* fix(#3022): suppress spurious typebox fallback warning on Pi startup The Pi adapter's buildGsdInvokeParameters attempts require('typebox') and falls back to a plain JSON-Schema object when it's unavailable (typebox is NOT a gsd-core dependency). The fallback is the normal, expected path — typebox is never installed in a Pi extension context. But the code emitted a process.stderr.write warning on every startup, alarming users. Removed the warning; the catch comment now explains the fallback is normal. * chore(#3022): backfill changeset PR number 3111 --------- Co-authored-by: sim <sim@local>
This commit is contained in:
5
.changeset/daring-hawks-bark.md
Normal file
5
.changeset/daring-hawks-bark.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
type: Fixed
|
||||
pr: 3111
|
||||
---
|
||||
**Pi no longer emits a `typebox unavailable` warning at every startup** — the warning fired because the Pi adapter attempts to `require('typebox')` (not a gsd-core dependency) and falls back to a plain JSON-Schema object on every startup. The fallback is the normal path; the warning is now suppressed. (#3022)
|
||||
@@ -148,11 +148,10 @@ function buildGsdInvokeParameters() {
|
||||
});
|
||||
}
|
||||
} catch {
|
||||
// typebox is not installed in this environment — fall through.
|
||||
// typebox is not installed in this environment — fall through to the
|
||||
// plain JSON-Schema fallback below. This is the normal path (typebox is
|
||||
// NOT a gsd-core dependency), so no warning is emitted (#3022).
|
||||
}
|
||||
process.stderr.write(
|
||||
'gsd: typebox unavailable — gsd_invoke "parameters" falling back to a plain JSON-schema object.\n',
|
||||
);
|
||||
return {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user