Skip to content

refactor(pi-ask): replace typebox with @earendil-works/pi-schema - #111

Open
GaganSD wants to merge 3 commits into
mainfrom
refactor/pi-ask-pi-schema
Open

GaganSD wants to merge 3 commits into
mainfrom
refactor/pi-ask-pi-schema

Conversation

@GaganSD

@GaganSD GaganSD commented Nov 3, 2026

Copy link
Copy Markdown
Owner
  • Replaced TypeBox builders/validators with @earendil-works/pi-schema@1.5.0 across ask schemas, config validation, answer extraction, and tests.
  • Added a small local string-enum helper so tool schemas keep { type: "string", enum: [...] } for Google-style providers.
  • Swapped typebox peer/dev dependencies for a pi-schema runtime dependency (8.5 KB gzipped, zero transitive deps), so the dependency count is unchanged, not reduced.
  • Preserved schema JSON behavior; the only diff is lit() emitting const without type.
  • Verified: npm ci, lint, typecheck, 120 unit tests, 31 integration tests, and the packed artifact smoke build; typebox remains only in historical CHANGELOG lines.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant