diff --git a/.changeset/daring-hawks-bark.md b/.changeset/daring-hawks-bark.md new file mode 100644 index 000000000..d461728cb --- /dev/null +++ b/.changeset/daring-hawks-bark.md @@ -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) diff --git a/pi/gsd.cjs b/pi/gsd.cjs index 9a3fdc702..7b3bca182 100644 --- a/pi/gsd.cjs +++ b/pi/gsd.cjs @@ -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: {