Repository navigation
Commit 964c8c8
authored
refactor: consolidate coercion ownership (#122299)
* refactor: consolidate coercion ownership
Centralize four canonical coercion helpers, migrate exact core and plugin duplicates through narrow Plugin SDK facades, and enforce declaration and plugin-normalization ownership boundaries.
The sweep adds eight focused SDK exports while deleting more production and tooling code than it adds. User-visible behavior is unchanged except for safer equivalent object and UI parsing at existing boundaries.
* fix: guard integer option ownership
Register resolveIntegerOption with the canonical function owner and extend the declaration-guard fixture so future local duplicates fail validation.
* fix: keep integer helpers on numeric facade
Remove the unshipped duplicate string-coerce exports and route every affected plugin consumer through the existing number-runtime contract.
* fix: point numeric coercion to number runtime
Make boundary and declaration diagnostics recommend the canonical numeric facade, with failing-before coverage for both guidance paths.1 parent 88dba70 commit 964c8c8
258 files changed
Lines changed: 1766 additions & 1902 deletions
File tree
- docs/.generated/plugin-sdk-api-baseline
- extensions
- acpx/src
- active-memory
- anthropic-vertex
- baseten
- browser/src
- browser
- clawrouter
- clickclack/src
- cloudflare-ai-gateway
- codex/src
- app-server
- migration
- comfy
- copilot
- src
- crabbox/src
- diagnostics-otel/src
- discord/src
- actions
- activities
- internal
- monitor
- duckduckgo/src
- elevenlabs
- feishu/src
- fish-audio-speech
- google-meet/src
- googlechat/src
- google
- imessage/src
- monitor
- linux-node/src
- matrix/src/matrix
- client
- sdk
- mattermost/src/mattermost
- memory-wiki/src
- meta
- msteams/src
- nextcloud-talk/src
- nostr/src
- onepassword
- openai
- openrouter
- parallel/src
- qa-lab/src
- live-transports
- discord
- matrix
- slack
- whatsapp
- reef/src
- searxng/src
- slack/src
- monitor
- talk-voice
- tlon/src
- tts-local-cli
- voice-call
- src
- whatsapp/src/auto-reply/monitor
- workboard/src
- xai
- packages
- agent-core/src
- ai/src
- providers
- transports
- utils
- markdown-core/src
- memory-host-sdk/src/host
- normalization-core/src
- tool-call-repair/src
- scripts
- e2e/lib
- bundled-plugin-install-uninstall
- npm-telegram-live
- openai-web-search-minimal
- lib
- pr-lib
- src
- acp
- runtime
- agents
- auth-profiles
- command
- embedded-agent-runner
- runtime-plan
- subagents/announce
- auto-reply/reply
- channels
- chat
- config/sessions
- cron
- isolated-agent
- gateway
- server-methods
- infra
- outbound
- llm/providers/stream-wrappers
- logging
- plugin-sdk
- test-helpers
- plugins
- runtime
- state
- system-agent
- talk
- tts
- test
- e2e/qa-lab/runtime
- scripts
- ui/src
- api
- app
- components
- e2e
- lib
- board
- chat
- sessions
- workboard
- pages
- chat
- components
- config
- labs
- new-session
- plugins
- workboard
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments