@jsonstudio/rcc 0.90.367 → 0.90.701
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/providers/ali-coding-plan.json +5 -0
- package/dist/build-info.js +2 -2
- package/dist/cli/commands/codex.js +37 -35
- package/dist/cli/commands/codex.js.map +1 -1
- package/dist/cli/commands/heartbeat.d.ts +20 -0
- package/dist/cli/commands/heartbeat.js +322 -0
- package/dist/cli/commands/heartbeat.js.map +1 -0
- package/dist/cli/commands/launcher/types.d.ts +1 -1
- package/dist/cli/commands/launcher/utils.js +28 -2
- package/dist/cli/commands/launcher/utils.js.map +1 -1
- package/dist/cli/commands/launcher-kernel.js +226 -82
- package/dist/cli/commands/launcher-kernel.js.map +1 -1
- package/dist/cli/commands/start.js +5 -3
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/register/heartbeat-command.d.ts +3 -0
- package/dist/cli/register/heartbeat-command.js +5 -0
- package/dist/cli/register/heartbeat-command.js.map +1 -0
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/validate.js +34 -13
- package/dist/commands/validate.js.map +1 -1
- package/dist/config/system-prompts/codex-cli.txt +1 -1
- package/dist/config/user-data-paths.d.ts +1 -0
- package/dist/config/user-data-paths.js +43 -3
- package/dist/config/user-data-paths.js.map +1 -1
- package/dist/index.js +31 -12
- package/dist/index.js.map +1 -1
- package/dist/manager/modules/quota/antigravity-quota-manager.js +50 -37
- package/dist/manager/modules/quota/antigravity-quota-manager.js.map +1 -1
- package/dist/manager/modules/quota/antigravity-quota-persistence.js +38 -21
- package/dist/manager/modules/quota/antigravity-quota-persistence.js.map +1 -1
- package/dist/manager/modules/quota/antigravity-quota-runtime.js +20 -11
- package/dist/manager/modules/quota/antigravity-quota-runtime.js.map +1 -1
- package/dist/manager/modules/quota/quota-adapter.js +28 -12
- package/dist/manager/modules/quota/quota-adapter.js.map +1 -1
- package/dist/manager/quota/provider-quota-store.js +32 -18
- package/dist/manager/quota/provider-quota-store.js.map +1 -1
- package/dist/manager/storage/file-store.js +15 -9
- package/dist/manager/storage/file-store.js.map +1 -1
- package/dist/modules/llmswitch/bridge/index.d.ts +2 -2
- package/dist/modules/llmswitch/bridge/index.js +2 -2
- package/dist/modules/llmswitch/bridge/index.js.map +1 -1
- package/dist/modules/llmswitch/bridge/module-loader.js +2 -2
- package/dist/modules/llmswitch/bridge/module-loader.js.map +1 -1
- package/dist/modules/llmswitch/bridge/quota-manager.js +1 -1
- package/dist/modules/llmswitch/bridge/quota-manager.js.map +1 -1
- package/dist/modules/llmswitch/bridge/runtime-integrations.d.ts +1 -1
- package/dist/modules/llmswitch/bridge/runtime-integrations.js +1 -1
- package/dist/modules/llmswitch/bridge/runtime-integrations.js.map +1 -1
- package/dist/modules/llmswitch/bridge/snapshot-recorder.d.ts +1 -0
- package/dist/modules/llmswitch/bridge/snapshot-recorder.js +227 -24
- package/dist/modules/llmswitch/bridge/snapshot-recorder.js.map +1 -1
- package/dist/modules/llmswitch/bridge/state-integrations.d.ts +46 -0
- package/dist/modules/llmswitch/bridge/state-integrations.js +171 -0
- package/dist/modules/llmswitch/bridge/state-integrations.js.map +1 -1
- package/dist/modules/llmswitch/bridge.d.ts +7 -7
- package/dist/modules/llmswitch/bridge.js +2 -2
- package/dist/modules/llmswitch/bridge.js.map +1 -1
- package/dist/modules/llmswitch/core-loader.js +24 -35
- package/dist/modules/llmswitch/core-loader.js.map +1 -1
- package/dist/providers/auth/apikey-auth.d.ts +1 -0
- package/dist/providers/auth/apikey-auth.js +7 -2
- package/dist/providers/auth/apikey-auth.js.map +1 -1
- package/dist/providers/auth/oauth-auth.js +5 -3
- package/dist/providers/auth/oauth-auth.js.map +1 -1
- package/dist/providers/auth/oauth-lifecycle.js +84 -34
- package/dist/providers/auth/oauth-lifecycle.js.map +1 -1
- package/dist/providers/auth/tokenfile-auth.js +22 -12
- package/dist/providers/auth/tokenfile-auth.js.map +1 -1
- package/dist/providers/core/api/provider-types.d.ts +16 -0
- package/dist/providers/core/runtime/provider-factory-helpers.js +25 -3
- package/dist/providers/core/runtime/provider-factory-helpers.js.map +1 -1
- package/dist/providers/core/runtime/transport/request-header-builder.d.ts +8 -0
- package/dist/providers/core/runtime/transport/request-header-builder.js +129 -9
- package/dist/providers/core/runtime/transport/request-header-builder.js.map +1 -1
- package/dist/providers/core/runtime/vercel-ai-sdk/openai-sdk-transport.d.ts +2 -1
- package/dist/providers/core/runtime/vercel-ai-sdk/openai-sdk-transport.js +28 -2
- package/dist/providers/core/runtime/vercel-ai-sdk/openai-sdk-transport.js.map +1 -1
- package/dist/providers/core/strategies/oauth-auth-code-flow.js +3 -1
- package/dist/providers/core/strategies/oauth-auth-code-flow.js.map +1 -1
- package/dist/providers/core/utils/snapshot-writer.js +36 -27
- package/dist/providers/core/utils/snapshot-writer.js.map +1 -1
- package/dist/providers/mock/mock-provider-runtime.js +1 -1
- package/dist/providers/mock/mock-provider-runtime.js.map +1 -1
- package/dist/server/handlers/handler-response-utils.js +155 -17
- package/dist/server/handlers/handler-response-utils.js.map +1 -1
- package/dist/server/handlers/handler-utils.js +18 -10
- package/dist/server/handlers/handler-utils.js.map +1 -1
- package/dist/server/handlers/types.d.ts +4 -0
- package/dist/server/runtime/http-server/clock-runtime-hooks.js +133 -37
- package/dist/server/runtime/http-server/clock-runtime-hooks.js.map +1 -1
- package/dist/server/runtime/http-server/daemon-admin/providers-handler-routing-utils.js +0 -30
- package/dist/server/runtime/http-server/daemon-admin/providers-handler-routing-utils.js.map +1 -1
- package/dist/server/runtime/http-server/daemon-admin/providers-handler.js +1 -113
- package/dist/server/runtime/http-server/daemon-admin/providers-handler.js.map +1 -1
- package/dist/server/runtime/http-server/daemon-admin/status-handler.js +11 -2
- package/dist/server/runtime/http-server/daemon-admin/status-handler.js.map +1 -1
- package/dist/server/runtime/http-server/executor/client-injection-flow.js +9 -8
- package/dist/server/runtime/http-server/executor/client-injection-flow.js.map +1 -1
- package/dist/server/runtime/http-server/executor/provider-response-converter.js +35 -140
- package/dist/server/runtime/http-server/executor/provider-response-converter.js.map +1 -1
- package/dist/server/runtime/http-server/executor/provider-runtime-resolver.js +11 -1
- package/dist/server/runtime/http-server/executor/provider-runtime-resolver.js.map +1 -1
- package/dist/server/runtime/http-server/executor-metadata.js +60 -6
- package/dist/server/runtime/http-server/executor-metadata.js.map +1 -1
- package/dist/server/runtime/http-server/executor-pipeline.js +24 -1
- package/dist/server/runtime/http-server/executor-pipeline.js.map +1 -1
- package/dist/server/runtime/http-server/executor-provider.js +1 -1
- package/dist/server/runtime/http-server/executor-provider.js.map +1 -1
- package/dist/server/runtime/http-server/executor-response.js +1 -62
- package/dist/server/runtime/http-server/executor-response.js.map +1 -1
- package/dist/server/runtime/http-server/heartbeat-runtime-hooks.d.ts +23 -0
- package/dist/server/runtime/http-server/heartbeat-runtime-hooks.js +248 -0
- package/dist/server/runtime/http-server/heartbeat-runtime-hooks.js.map +1 -0
- package/dist/server/runtime/http-server/http-server-legacy-pipeline.js +6 -2
- package/dist/server/runtime/http-server/http-server-legacy-pipeline.js.map +1 -1
- package/dist/server/runtime/http-server/http-server-lifecycle.js +18 -0
- package/dist/server/runtime/http-server/http-server-lifecycle.js.map +1 -1
- package/dist/server/runtime/http-server/http-server-runtime-providers.js +14 -0
- package/dist/server/runtime/http-server/http-server-runtime-providers.js.map +1 -1
- package/dist/server/runtime/http-server/http-server-runtime-setup.js +2 -0
- package/dist/server/runtime/http-server/http-server-runtime-setup.js.map +1 -1
- package/dist/server/runtime/http-server/http-server-session-daemon.d.ts +1 -0
- package/dist/server/runtime/http-server/http-server-session-daemon.js +34 -8
- package/dist/server/runtime/http-server/http-server-session-daemon.js.map +1 -1
- package/dist/server/runtime/http-server/index.d.ts +1 -0
- package/dist/server/runtime/http-server/index.js +38 -2
- package/dist/server/runtime/http-server/index.js.map +1 -1
- package/dist/server/runtime/http-server/request-activity-tracker.d.ts +7 -0
- package/dist/server/runtime/http-server/request-activity-tracker.js +58 -0
- package/dist/server/runtime/http-server/request-activity-tracker.js.map +1 -0
- package/dist/server/runtime/http-server/request-executor.d.ts +7 -0
- package/dist/server/runtime/http-server/request-executor.js +554 -472
- package/dist/server/runtime/http-server/request-executor.js.map +1 -1
- package/dist/server/runtime/http-server/session-client-reaper.js +9 -2
- package/dist/server/runtime/http-server/session-client-reaper.js.map +1 -1
- package/dist/server/runtime/http-server/session-client-registry-utils.d.ts +1 -0
- package/dist/server/runtime/http-server/session-client-registry-utils.js +10 -2
- package/dist/server/runtime/http-server/session-client-registry-utils.js.map +1 -1
- package/dist/server/runtime/http-server/session-client-registry.d.ts +3 -0
- package/dist/server/runtime/http-server/session-client-registry.js +32 -1
- package/dist/server/runtime/http-server/session-client-registry.js.map +1 -1
- package/dist/server/runtime/http-server/session-client-route-utils.js +5 -38
- package/dist/server/runtime/http-server/session-client-route-utils.js.map +1 -1
- package/dist/server/runtime/http-server/session-client-routes.js +154 -3
- package/dist/server/runtime/http-server/session-client-routes.js.map +1 -1
- package/dist/server/runtime/http-server/session-execution-state.d.ts +47 -0
- package/dist/server/runtime/http-server/session-execution-state.js +328 -0
- package/dist/server/runtime/http-server/session-execution-state.js.map +1 -0
- package/dist/server/runtime/http-server/session-scope-resolution.d.ts +2 -0
- package/dist/server/runtime/http-server/session-scope-resolution.js +98 -4
- package/dist/server/runtime/http-server/session-scope-resolution.js.map +1 -1
- package/dist/server/runtime/http-server/session-storage-cleanup.d.ts +19 -0
- package/dist/server/runtime/http-server/session-storage-cleanup.js +325 -0
- package/dist/server/runtime/http-server/session-storage-cleanup.js.map +1 -0
- package/dist/server/runtime/http-server/tmux-injection-history.d.ts +12 -0
- package/dist/server/runtime/http-server/tmux-injection-history.js +94 -0
- package/dist/server/runtime/http-server/tmux-injection-history.js.map +1 -0
- package/dist/server/runtime/http-server/tmux-injection-runtime-config.d.ts +42 -0
- package/dist/server/runtime/http-server/tmux-injection-runtime-config.js +245 -0
- package/dist/server/runtime/http-server/tmux-injection-runtime-config.js.map +1 -0
- package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.d.ts +21 -0
- package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.js +59 -0
- package/dist/server/runtime/http-server/tmux-scope-cleanup-policy.js.map +1 -0
- package/dist/server/runtime/http-server/tmux-session-probe.d.ts +2 -0
- package/dist/server/runtime/http-server/tmux-session-probe.js +112 -2
- package/dist/server/runtime/http-server/tmux-session-probe.js.map +1 -1
- package/dist/server/utils/request-id-manager.d.ts +8 -0
- package/dist/server/utils/request-id-manager.js +116 -27
- package/dist/server/utils/request-id-manager.js.map +1 -1
- package/dist/server/utils/request-log-color.d.ts +1 -0
- package/dist/server/utils/request-log-color.js +12 -1
- package/dist/server/utils/request-log-color.js.map +1 -1
- package/dist/server/utils/stage-logger.js +37 -3
- package/dist/server/utils/stage-logger.js.map +1 -1
- package/dist/server-lifecycle/port-utils.js +38 -7
- package/dist/server-lifecycle/port-utils.js.map +1 -1
- package/dist/tools/semantic-replay-snapshot-loader.js +2 -2
- package/dist/tools/semantic-replay-snapshot-loader.js.map +1 -1
- package/dist/utils/errorsamples.js +181 -1
- package/dist/utils/errorsamples.js.map +1 -1
- package/dist/utils/snapshot-writer.js +18 -12
- package/dist/utils/snapshot-writer.js.map +1 -1
- package/docs/ARCHITECTURE.md +8 -0
- package/docs/CLOCK.md +51 -0
- package/docs/INSTRUCTION_MARKUP.md +28 -2
- package/docs/design/heartbeat-session-execution-state.md +227 -0
- package/docs/reports/apply-patch-errorsamples-classification.md +144 -0
- package/docs/session-client-daemon-design.md +92 -0
- package/package.json +9 -7
- package/scripts/analyze-thinking-keywords.mjs +1 -1
- package/scripts/ci/repo-sanity.mjs +38 -32
- package/scripts/ensure-llmswitch-mode.mjs +63 -5
- package/scripts/install-global.sh +23 -0
- package/scripts/install-release.sh +55 -5
- package/scripts/install-verify.mjs +143 -18
- package/scripts/link-global-llms-local.mjs +108 -0
- package/scripts/link-llmswitch.mjs +56 -0
- package/scripts/pack-mode.mjs +39 -16
- package/scripts/pack-rcc.mjs +63 -4
- package/scripts/publish-rcc.mjs +59 -4
- package/scripts/snapshot-inspect.mjs +5 -24
- package/scripts/tests/blackbox-rcc-vs-routecodex-antigravity.mjs +2 -2
- package/scripts/vendor-core.mjs +9 -30
- package/vendor/llmswitch-core/README.md +0 -271
- package/vendor/llmswitch-core/dist/bridge/routecodex-adapter.d.ts +0 -74
- package/vendor/llmswitch-core/dist/bridge/routecodex-adapter.js +0 -229
- package/vendor/llmswitch-core/dist/config-unified/enhanced-path-resolver.d.ts +0 -5
- package/vendor/llmswitch-core/dist/config-unified/enhanced-path-resolver.js +0 -46
- package/vendor/llmswitch-core/dist/config-unified/unified-config.d.ts +0 -26
- package/vendor/llmswitch-core/dist/config-unified/unified-config.js +0 -231
- package/vendor/llmswitch-core/dist/conversion/args-mapping.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/args-mapping.js +0 -8
- package/vendor/llmswitch-core/dist/conversion/bridge-actions.d.ts +0 -39
- package/vendor/llmswitch-core/dist/conversion/bridge-actions.js +0 -82
- package/vendor/llmswitch-core/dist/conversion/bridge-id-utils.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/bridge-id-utils.js +0 -13
- package/vendor/llmswitch-core/dist/conversion/bridge-instructions.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/bridge-instructions.js +0 -17
- package/vendor/llmswitch-core/dist/conversion/bridge-message-utils.d.ts +0 -23
- package/vendor/llmswitch-core/dist/conversion/bridge-message-utils.js +0 -45
- package/vendor/llmswitch-core/dist/conversion/bridge-metadata.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/bridge-metadata.js +0 -5
- package/vendor/llmswitch-core/dist/conversion/bridge-policies.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/bridge-policies.js +0 -11
- package/vendor/llmswitch-core/dist/conversion/codec-registry.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/codec-registry.js +0 -37
- package/vendor/llmswitch-core/dist/conversion/codecs/anthropic-openai-codec.d.ts +0 -22
- package/vendor/llmswitch-core/dist/conversion/codecs/anthropic-openai-codec.js +0 -52
- package/vendor/llmswitch-core/dist/conversion/codecs/gemini-openai-codec.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/codecs/gemini-openai-codec.js +0 -85
- package/vendor/llmswitch-core/dist/conversion/codecs/openai-openai-codec.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/codecs/openai-openai-codec.js +0 -54
- package/vendor/llmswitch-core/dist/conversion/codecs/responses-openai-codec.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/codecs/responses-openai-codec.js +0 -66
- package/vendor/llmswitch-core/dist/conversion/compaction-detect.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compaction-detect.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-system-prompt.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-system-prompt.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-user-id.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/anthropic-claude-code-user-id.js +0 -30
- package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-cache.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-cache.js +0 -8
- package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-prepare.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/antigravity-thought-signature-prepare.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/compat/actions/apply-patch-fixer.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/compat/actions/apply-patch-fixer.js +0 -30
- package/vendor/llmswitch-core/dist/conversion/compat/actions/auto-thinking.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/compat/actions/auto-thinking.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/compat/actions/claude-thinking-tools.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/claude-thinking-tools.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-request.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-request.js +0 -62
- package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-response.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/compat/actions/deepseek-web-response.js +0 -114
- package/vendor/llmswitch-core/dist/conversion/compat/actions/field-mapping.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/compat/actions/field-mapping.js +0 -155
- package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-cli-request.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-cli-request.js +0 -27
- package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-web-search.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/gemini-web-search.js +0 -24
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-history-image-trim.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-history-image-trim.js +0 -54
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-image-content.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-image-content.js +0 -54
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-native-compat.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-native-compat.js +0 -34
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-tool-extraction.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-tool-extraction.js +0 -35
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-vision-prompt.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-vision-prompt.js +0 -104
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-web-search.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/glm-web-search.js +0 -30
- package/vendor/llmswitch-core/dist/conversion/compat/actions/harvest-tool-calls-from-text.d.ts +0 -15
- package/vendor/llmswitch-core/dist/conversion/compat/actions/harvest-tool-calls-from-text.js +0 -124
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-cli-defaults.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-cli-defaults.js +0 -31
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-history-media-placeholder.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-history-media-placeholder.js +0 -25
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-thinking-reasoning-fill.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-kimi-thinking-reasoning-fill.js +0 -46
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-native-compat.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-native-compat.js +0 -36
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-response-body-unwrap.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-response-body-unwrap.js +0 -25
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-tool-text-fallback.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-tool-text-fallback.js +0 -29
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-web-search.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/compat/actions/iflow-web-search.js +0 -49
- package/vendor/llmswitch-core/dist/conversion/compat/actions/index.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/index.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-fc-ids.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-fc-ids.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-input-stringify.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/compat/actions/lmstudio-responses-input-stringify.js +0 -125
- package/vendor/llmswitch-core/dist/conversion/compat/actions/normalize-tool-call-ids.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/normalize-tool-call-ids.js +0 -10
- package/vendor/llmswitch-core/dist/conversion/compat/actions/qwen-transform.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/qwen-transform.js +0 -40
- package/vendor/llmswitch-core/dist/conversion/compat/actions/request-rules.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/compat/actions/request-rules.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-blacklist.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-blacklist.js +0 -10
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-normalize.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-normalize.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-validate.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/compat/actions/response-validate.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/snapshot.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/compat/actions/snapshot.js +0 -21
- package/vendor/llmswitch-core/dist/conversion/compat/actions/strip-orphan-function-calls-tag.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/compat/actions/strip-orphan-function-calls-tag.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-schema.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-schema.js +0 -91
- package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-text-request-guidance.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/compat/actions/tool-text-request-guidance.js +0 -7
- package/vendor/llmswitch-core/dist/conversion/compat/actions/universal-shape-filter.d.ts +0 -57
- package/vendor/llmswitch-core/dist/conversion/compat/actions/universal-shape-filter.js +0 -14
- package/vendor/llmswitch-core/dist/conversion/compat/antigravity-session-signature.d.ts +0 -86
- package/vendor/llmswitch-core/dist/conversion/compat/antigravity-session-signature.js +0 -1143
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/anthropic-claude-code.json +0 -17
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-claude-code.json +0 -18
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-deepseek-web.json +0 -47
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-gemini-cli.json +0 -23
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-gemini.json +0 -31
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-glm.json +0 -405
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-iflow.json +0 -353
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-lmstudio.json +0 -80
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/chat-qwen.json +0 -22
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-c4m.json +0 -45
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-crs.json +0 -15
- package/vendor/llmswitch-core/dist/conversion/compat/profiles/responses-output2choices-test.json +0 -12
- package/vendor/llmswitch-core/dist/conversion/config/config-manager.d.ts +0 -212
- package/vendor/llmswitch-core/dist/conversion/config/config-manager.js +0 -310
- package/vendor/llmswitch-core/dist/conversion/config/sample-config.json +0 -314
- package/vendor/llmswitch-core/dist/conversion/config/version-switch.json +0 -150
- package/vendor/llmswitch-core/dist/conversion/hub/config/types.d.ts +0 -26
- package/vendor/llmswitch-core/dist/conversion/hub/config/types.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/core/detour-registry.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/hub/core/detour-registry.js +0 -23
- package/vendor/llmswitch-core/dist/conversion/hub/core/hub-context.d.ts +0 -23
- package/vendor/llmswitch-core/dist/conversion/hub/core/hub-context.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/core/index.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/core/index.js +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/core/stage-driver.d.ts +0 -30
- package/vendor/llmswitch-core/dist/conversion/hub/core/stage-driver.js +0 -33
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/anthropic-format-adapter.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/anthropic-format-adapter.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/chat-format-adapter.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/chat-format-adapter.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/gemini-format-adapter.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/gemini-format-adapter.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/index.d.ts +0 -21
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/index.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/responses-format-adapter.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/hub/format-adapters/responses-format-adapter.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/hub/hub-feature.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/hub-feature.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/hub/node-support.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/hub/node-support.js +0 -136
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/operation-table-runner.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/operation-table-runner.js +0 -162
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/anthropic-mapper.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/anthropic-mapper.js +0 -503
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/archive/chat-mapper.archive.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/archive/chat-mapper.archive.js +0 -409
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/chat-mapper.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/chat-mapper.js +0 -350
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/gemini-mapper.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/gemini-mapper.js +0 -1540
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/responses-mapper.d.ts +0 -21
- package/vendor/llmswitch-core/dist/conversion/hub/operation-table/semantic-mappers/responses-mapper.js +0 -491
- package/vendor/llmswitch-core/dist/conversion/hub/ops/operations.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/hub/ops/operations.js +0 -7
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-engine.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-engine.js +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-pipeline-executor.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-pipeline-executor.js +0 -46
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-resolver.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-resolver.js +0 -14
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-store.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-profile-store.js +0 -94
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-types.d.ts +0 -175
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/compat-types.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/native-adapter-context.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/compat/native-adapter-context.js +0 -40
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-pipeline.d.ts +0 -111
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-pipeline.js +0 -1927
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-stage-timing.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/hub-stage-timing.js +0 -211
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/session-identifiers.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/session-identifiers.js +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage1_format_parse/index.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage1_format_parse/index.js +0 -236
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/index.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/index.js +0 -132
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/semantic-lift.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage2_semantic_map/semantic-lift.js +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/archive/shell-like-tool-call-normalization-fallback.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/archive/shell-like-tool-call-normalization-fallback.js +0 -157
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-capture-orchestration.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-capture-orchestration.js +0 -29
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-factories.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/context-factories.js +0 -19
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/index.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/index.js +0 -22
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/responses-context-snapshot.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/responses-context-snapshot.js +0 -28
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-diagnostics.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-diagnostics.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-snapshot.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_inbound/req_inbound_stage3_context_capture/tool-output-snapshot.js +0 -12
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/context-merge.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/context-merge.js +0 -30
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/index.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage1_semantic_map/index.js +0 -84
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage2_format_build/index.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage2_format_build/index.js +0 -12
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage3_compat/index.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_outbound/req_outbound_stage3_compat/index.js +0 -45
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage1_tool_governance/index.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage1_tool_governance/index.js +0 -62
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage2_route_select/index.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/req_process/req_process_stage2_route_select/index.js +0 -35
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/index.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/index.js +0 -243
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/stream-json-sniffer.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage1_sse_decode/stream-json-sniffer.js +0 -81
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage2_format_parse/index.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage2_format_parse/index.js +0 -50
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage3_semantic_map/index.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_inbound/resp_inbound_stage3_semantic_map/index.js +0 -25
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/chat-process-semantics-bridge.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/chat-process-semantics-bridge.js +0 -17
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/client-remap-protocol-switch.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/client-remap-protocol-switch.js +0 -103
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/index.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage1_client_remap/index.js +0 -30
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage2_sse_stream/index.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_outbound/resp_outbound_stage2_sse_stream/index.js +0 -35
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage1_tool_governance/index.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage1_tool_governance/index.js +0 -52
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage2_finalize/index.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage2_finalize/index.js +0 -40
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage3_servertool_orchestration/index.d.ts +0 -44
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/resp_process/resp_process_stage3_servertool_orchestration/index.js +0 -88
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/utils.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/stages/utils.js +0 -27
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/target-utils.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/pipeline/target-utils.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/hub/pipelines/inbound.d.ts +0 -22
- package/vendor/llmswitch-core/dist/conversion/hub/pipelines/inbound.js +0 -66
- package/vendor/llmswitch-core/dist/conversion/hub/pipelines/outbound.d.ts +0 -22
- package/vendor/llmswitch-core/dist/conversion/hub/pipelines/outbound.js +0 -59
- package/vendor/llmswitch-core/dist/conversion/hub/policy/policy-engine.d.ts +0 -48
- package/vendor/llmswitch-core/dist/conversion/hub/policy/policy-engine.js +0 -269
- package/vendor/llmswitch-core/dist/conversion/hub/policy/protocol-spec.d.ts +0 -75
- package/vendor/llmswitch-core/dist/conversion/hub/policy/protocol-spec.js +0 -27
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-anthropic-alias.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-anthropic-alias.js +0 -36
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directive-parser.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directive-parser.js +0 -56
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directives.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-directives.js +0 -98
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-directives.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-directives.js +0 -42
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-finalize.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-finalize.js +0 -10
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-messages.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-messages.js +0 -10
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-orchestration.d.ts +0 -30
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-orchestration.js +0 -68
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-time-tag.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminder-time-tag.js +0 -18
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminders.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-reminders.js +0 -104
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tool-schemas.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tool-schemas.js +0 -280
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tools.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-clock-tools.js +0 -41
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-continue-execution.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-continue-execution.js +0 -83
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-context.d.ts +0 -15
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-context.js +0 -7
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-finalize.d.ts +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-finalize.js +0 -11
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-orchestration.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governance-orchestration.js +0 -49
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-control-ops.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-control-ops.js +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-filter-call.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-filter-call.js +0 -18
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-merge.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-governed-merge.js +0 -11
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-media.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-media.js +0 -108
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-node-result.d.ts +0 -23
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-node-result.js +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-pending-tool-sync.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-pending-tool-sync.js +0 -52
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-post-governed-normalization.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-post-governed-normalization.js +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-review.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-review.js +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-servertool-orchestration.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-servertool-orchestration.js +0 -22
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-session-usage.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-session-usage.js +0 -147
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-tool-normalization.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-tool-normalization.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-intent.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-intent.js +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-tool-schema.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search-tool-schema.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process-web-search.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process.d.ts +0 -15
- package/vendor/llmswitch-core/dist/conversion/hub/process/chat-process.js +0 -27
- package/vendor/llmswitch-core/dist/conversion/hub/process/client-inject-readiness.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/process/client-inject-readiness.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/registry.d.ts +0 -28
- package/vendor/llmswitch-core/dist/conversion/hub/registry.js +0 -101
- package/vendor/llmswitch-core/dist/conversion/hub/response/chat-response-utils.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/response/chat-response-utils.js +0 -8
- package/vendor/llmswitch-core/dist/conversion/hub/response/provider-response.d.ts +0 -51
- package/vendor/llmswitch-core/dist/conversion/hub/response/provider-response.js +0 -529
- package/vendor/llmswitch-core/dist/conversion/hub/response/response-mappers.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/response/response-mappers.js +0 -73
- package/vendor/llmswitch-core/dist/conversion/hub/response/response-runtime.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/response/response-runtime.js +0 -758
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/anthropic-mapper.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/anthropic-mapper.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/chat-mapper.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/chat-mapper.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/gemini-mapper.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/gemini-mapper.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/index.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/index.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/responses-mapper.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/semantic-mappers/responses-mapper.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/snapshot-recorder.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/snapshot-recorder.js +0 -38
- package/vendor/llmswitch-core/dist/conversion/hub/standardized-bridge.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/hub/standardized-bridge.js +0 -16
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/engine.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/engine.js +0 -118
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/index.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/index.js +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/rules.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/rules.js +0 -80
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/types.d.ts +0 -38
- package/vendor/llmswitch-core/dist/conversion/hub/tool-governance/types.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/tool-session-compat.d.ts +0 -26
- package/vendor/llmswitch-core/dist/conversion/hub/tool-session-compat.js +0 -86
- package/vendor/llmswitch-core/dist/conversion/hub/tool-surface/tool-surface-engine.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/hub/tool-surface/tool-surface-engine.js +0 -574
- package/vendor/llmswitch-core/dist/conversion/hub/types/chat-envelope.d.ts +0 -79
- package/vendor/llmswitch-core/dist/conversion/hub/types/chat-envelope.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/types/chat-schema.d.ts +0 -112
- package/vendor/llmswitch-core/dist/conversion/hub/types/chat-schema.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/types/errors.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/hub/types/errors.js +0 -13
- package/vendor/llmswitch-core/dist/conversion/hub/types/format-envelope.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/hub/types/format-envelope.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/types/index.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/types/index.js +0 -6
- package/vendor/llmswitch-core/dist/conversion/hub/types/json.d.ts +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/types/json.js +0 -9
- package/vendor/llmswitch-core/dist/conversion/hub/types/node.d.ts +0 -31
- package/vendor/llmswitch-core/dist/conversion/hub/types/node.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/hub/types/standardized.d.ts +0 -99
- package/vendor/llmswitch-core/dist/conversion/hub/types/standardized.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/index.d.ts +0 -33
- package/vendor/llmswitch-core/dist/conversion/index.js +0 -33
- package/vendor/llmswitch-core/dist/conversion/jsonish.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/jsonish.js +0 -20
- package/vendor/llmswitch-core/dist/conversion/mcp-injection.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/mcp-injection.js +0 -7
- package/vendor/llmswitch-core/dist/conversion/media.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/media.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/metadata-passthrough.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/metadata-passthrough.js +0 -20
- package/vendor/llmswitch-core/dist/conversion/payload-budget.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/payload-budget.js +0 -47
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/anthropic-openai-pipeline.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/anthropic-openai-pipeline.js +0 -104
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/openai-openai-pipeline.d.ts +0 -15
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/openai-openai-pipeline.js +0 -176
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/responses-openai-pipeline.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/responses-openai-pipeline.js +0 -212
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/shared/openai-chat-helpers.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/pipeline/codecs/v2/shared/openai-chat-helpers.js +0 -34
- package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/adapter-context.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/adapter-context.js +0 -18
- package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/protocol-hooks.d.ts +0 -67
- package/vendor/llmswitch-core/dist/conversion/pipeline/hooks/protocol-hooks.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/pipeline/index.d.ts +0 -35
- package/vendor/llmswitch-core/dist/conversion/pipeline/index.js +0 -103
- package/vendor/llmswitch-core/dist/conversion/pipeline/meta/meta-bag.d.ts +0 -20
- package/vendor/llmswitch-core/dist/conversion/pipeline/meta/meta-bag.js +0 -81
- package/vendor/llmswitch-core/dist/conversion/pipeline/schema/canonical-chat.d.ts +0 -18
- package/vendor/llmswitch-core/dist/conversion/pipeline/schema/canonical-chat.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/pipeline/schema/index.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/pipeline/schema/index.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/protocol-field-allowlists.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/protocol-field-allowlists.js +0 -9
- package/vendor/llmswitch-core/dist/conversion/protocol-state.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/protocol-state.js +0 -27
- package/vendor/llmswitch-core/dist/conversion/provider-protocol-error.d.ts +0 -17
- package/vendor/llmswitch-core/dist/conversion/provider-protocol-error.js +0 -25
- package/vendor/llmswitch-core/dist/conversion/responses/responses-host-policy.d.ts +0 -6
- package/vendor/llmswitch-core/dist/conversion/responses/responses-host-policy.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/response-payload.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/response-payload.js +0 -190
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/types.d.ts +0 -35
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge/types.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge.d.ts +0 -15
- package/vendor/llmswitch-core/dist/conversion/responses/responses-openai-bridge.js +0 -475
- package/vendor/llmswitch-core/dist/conversion/runtime-metadata.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/runtime-metadata.js +0 -31
- package/vendor/llmswitch-core/dist/conversion/schema-validator.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/schema-validator.js +0 -67
- package/vendor/llmswitch-core/dist/conversion/shared/anthropic-message-utils.d.ts +0 -22
- package/vendor/llmswitch-core/dist/conversion/shared/anthropic-message-utils.js +0 -1416
- package/vendor/llmswitch-core/dist/conversion/shared/chat-envelope-validator.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/shared/chat-envelope-validator.js +0 -4
- package/vendor/llmswitch-core/dist/conversion/shared/chat-output-normalizer.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/shared/chat-output-normalizer.js +0 -10
- package/vendor/llmswitch-core/dist/conversion/shared/chat-request-filters.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/shared/chat-request-filters.js +0 -63
- package/vendor/llmswitch-core/dist/conversion/shared/gemini-tool-utils.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/shared/gemini-tool-utils.js +0 -20
- package/vendor/llmswitch-core/dist/conversion/shared/openai-finalizer.d.ts +0 -8
- package/vendor/llmswitch-core/dist/conversion/shared/openai-finalizer.js +0 -22
- package/vendor/llmswitch-core/dist/conversion/shared/openai-message-normalize.d.ts +0 -1
- package/vendor/llmswitch-core/dist/conversion/shared/openai-message-normalize.js +0 -151
- package/vendor/llmswitch-core/dist/conversion/shared/output-content-normalizer.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/shared/output-content-normalizer.js +0 -26
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-mapping.d.ts +0 -5
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-mapping.js +0 -7
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-normalizer.d.ts +0 -25
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-normalizer.js +0 -114
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-normalizer.d.ts +0 -12
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-normalizer.js +0 -22
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-parser.d.ts +0 -10
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-tool-parser.js +0 -11
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-utils.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/shared/reasoning-utils.js +0 -19
- package/vendor/llmswitch-core/dist/conversion/shared/responses-conversation-store.d.ts +0 -35
- package/vendor/llmswitch-core/dist/conversion/shared/responses-conversation-store.js +0 -195
- package/vendor/llmswitch-core/dist/conversion/shared/responses-output-builder.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/shared/responses-output-builder.js +0 -32
- package/vendor/llmswitch-core/dist/conversion/shared/responses-reasoning-registry.d.ts +0 -24
- package/vendor/llmswitch-core/dist/conversion/shared/responses-reasoning-registry.js +0 -185
- package/vendor/llmswitch-core/dist/conversion/shared/responses-request-adapter.d.ts +0 -7
- package/vendor/llmswitch-core/dist/conversion/shared/responses-request-adapter.js +0 -14
- package/vendor/llmswitch-core/dist/conversion/shared/responses-response-utils.d.ts +0 -3
- package/vendor/llmswitch-core/dist/conversion/shared/responses-response-utils.js +0 -254
- package/vendor/llmswitch-core/dist/conversion/shared/responses-tool-utils.d.ts +0 -14
- package/vendor/llmswitch-core/dist/conversion/shared/responses-tool-utils.js +0 -102
- package/vendor/llmswitch-core/dist/conversion/shared/streaming-text-extractor.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/shared/streaming-text-extractor.js +0 -39
- package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer/normalize.d.ts +0 -2
- package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer/normalize.js +0 -116
- package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer.d.ts +0 -4
- package/vendor/llmswitch-core/dist/conversion/shared/text-markup-normalizer.js +0 -3
- package/vendor/llmswitch-core/dist/conversion/shared/thought-signature-validator.d.ts +0 -52
- package/vendor/llmswitch-core/dist/conversion/shared/thought-signature-validator.js +0 -58
- package/vendor/llmswitch-core/dist/conversion/shared/tool-argument-repairer.d.ts +0 -39
- package/vendor/llmswitch-core/dist/conversion/shared/tool-argument-repairer.js +0 -53
- package/vendor/llmswitch-core/dist/conversion/shared/tool-call-id-manager.d.ts +0 -109
- package/vendor/llmswitch-core/dist/conversion/shared/tool-call-id-manager.js +0 -202
- package/vendor/llmswitch-core/dist/conversion/shared/tool-call-utils.d.ts +0 -11
- package/vendor/llmswitch-core/dist/conversion/shared/tool-call-utils.js +0 -14
- package/vendor/llmswitch-core/dist/conversion/shared/tool-filter-pipeline.d.ts +0 -21
- package/vendor/llmswitch-core/dist/conversion/shared/tool-filter-pipeline.js +0 -171
- package/vendor/llmswitch-core/dist/conversion/shared/tool-governor.d.ts +0 -29
- package/vendor/llmswitch-core/dist/conversion/shared/tool-governor.js +0 -694
- package/vendor/llmswitch-core/dist/conversion/shared/tool-harvester.d.ts +0 -31
- package/vendor/llmswitch-core/dist/conversion/shared/tool-harvester.js +0 -23
- package/vendor/llmswitch-core/dist/conversion/shared/tool-mapping.d.ts +0 -19
- package/vendor/llmswitch-core/dist/conversion/shared/tool-mapping.js +0 -65
- package/vendor/llmswitch-core/dist/conversion/shared/tooling.d.ts +0 -29
- package/vendor/llmswitch-core/dist/conversion/shared/tooling.js +0 -57
- package/vendor/llmswitch-core/dist/conversion/snapshot-utils.d.ts +0 -31
- package/vendor/llmswitch-core/dist/conversion/snapshot-utils.js +0 -49
- package/vendor/llmswitch-core/dist/conversion/types/bridge-message-types.d.ts +0 -41
- package/vendor/llmswitch-core/dist/conversion/types/bridge-message-types.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/types/text-markup-normalizer.d.ts +0 -13
- package/vendor/llmswitch-core/dist/conversion/types/text-markup-normalizer.js +0 -1
- package/vendor/llmswitch-core/dist/conversion/types.d.ts +0 -33
- package/vendor/llmswitch-core/dist/conversion/types.js +0 -1
- package/vendor/llmswitch-core/dist/filters/builtin/add-fields-filter.d.ts +0 -8
- package/vendor/llmswitch-core/dist/filters/builtin/add-fields-filter.js +0 -16
- package/vendor/llmswitch-core/dist/filters/builtin/blacklist-filter.d.ts +0 -8
- package/vendor/llmswitch-core/dist/filters/builtin/blacklist-filter.js +0 -19
- package/vendor/llmswitch-core/dist/filters/builtin/whitelist-filter.d.ts +0 -8
- package/vendor/llmswitch-core/dist/filters/builtin/whitelist-filter.js +0 -19
- package/vendor/llmswitch-core/dist/filters/config/openai-openai.fieldmap.json +0 -18
- package/vendor/llmswitch-core/dist/filters/engine.d.ts +0 -16
- package/vendor/llmswitch-core/dist/filters/engine.js +0 -167
- package/vendor/llmswitch-core/dist/filters/index.d.ts +0 -18
- package/vendor/llmswitch-core/dist/filters/index.js +0 -22
- package/vendor/llmswitch-core/dist/filters/special/request-tool-choice-policy.d.ts +0 -11
- package/vendor/llmswitch-core/dist/filters/special/request-tool-choice-policy.js +0 -29
- package/vendor/llmswitch-core/dist/filters/special/request-tool-list-filter.d.ts +0 -11
- package/vendor/llmswitch-core/dist/filters/special/request-tool-list-filter.js +0 -322
- package/vendor/llmswitch-core/dist/filters/special/request-toolcalls-stringify.d.ts +0 -13
- package/vendor/llmswitch-core/dist/filters/special/request-toolcalls-stringify.js +0 -94
- package/vendor/llmswitch-core/dist/filters/special/request-tools-normalize.d.ts +0 -11
- package/vendor/llmswitch-core/dist/filters/special/request-tools-normalize.js +0 -114
- package/vendor/llmswitch-core/dist/filters/special/response-finish-invariants.d.ts +0 -11
- package/vendor/llmswitch-core/dist/filters/special/response-finish-invariants.js +0 -30
- package/vendor/llmswitch-core/dist/filters/special/response-openai-to-responses-bridge.d.ts +0 -13
- package/vendor/llmswitch-core/dist/filters/special/response-openai-to-responses-bridge.js +0 -24
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-blacklist.d.ts +0 -12
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-blacklist.js +0 -63
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-schema-converge.d.ts +0 -13
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-schema-converge.js +0 -63
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-stringify.d.ts +0 -9
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-stringify.js +0 -132
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-whitelist.d.ts +0 -11
- package/vendor/llmswitch-core/dist/filters/special/response-tool-arguments-whitelist.js +0 -56
- package/vendor/llmswitch-core/dist/filters/special/response-tool-text-canonicalize.d.ts +0 -13
- package/vendor/llmswitch-core/dist/filters/special/response-tool-text-canonicalize.js +0 -16
- package/vendor/llmswitch-core/dist/filters/special/tool-filter-hooks.d.ts +0 -19
- package/vendor/llmswitch-core/dist/filters/special/tool-filter-hooks.js +0 -394
- package/vendor/llmswitch-core/dist/filters/special/tool-post-constraints.d.ts +0 -31
- package/vendor/llmswitch-core/dist/filters/special/tool-post-constraints.js +0 -120
- package/vendor/llmswitch-core/dist/filters/types.d.ts +0 -68
- package/vendor/llmswitch-core/dist/filters/types.js +0 -3
- package/vendor/llmswitch-core/dist/filters/utils/fieldmap-loader.d.ts +0 -2
- package/vendor/llmswitch-core/dist/filters/utils/fieldmap-loader.js +0 -16
- package/vendor/llmswitch-core/dist/filters/utils/snapshot-writer.d.ts +0 -10
- package/vendor/llmswitch-core/dist/filters/utils/snapshot-writer.js +0 -85
- package/vendor/llmswitch-core/dist/guidance/index.d.ts +0 -3
- package/vendor/llmswitch-core/dist/guidance/index.js +0 -299
- package/vendor/llmswitch-core/dist/http/sse-response.d.ts +0 -22
- package/vendor/llmswitch-core/dist/http/sse-response.js +0 -103
- package/vendor/llmswitch-core/dist/index.d.ts +0 -11
- package/vendor/llmswitch-core/dist/index.js +0 -11
- package/vendor/llmswitch-core/dist/native/router_hotpath_napi.node +0 -0
- package/vendor/llmswitch-core/dist/quota/apikey-reset.d.ts +0 -17
- package/vendor/llmswitch-core/dist/quota/apikey-reset.js +0 -43
- package/vendor/llmswitch-core/dist/quota/index.d.ts +0 -2
- package/vendor/llmswitch-core/dist/quota/index.js +0 -1
- package/vendor/llmswitch-core/dist/quota/quota-manager.d.ts +0 -44
- package/vendor/llmswitch-core/dist/quota/quota-manager.js +0 -463
- package/vendor/llmswitch-core/dist/quota/quota-state.d.ts +0 -6
- package/vendor/llmswitch-core/dist/quota/quota-state.js +0 -191
- package/vendor/llmswitch-core/dist/quota/types.d.ts +0 -62
- package/vendor/llmswitch-core/dist/quota/types.js +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/auth-utils.d.ts +0 -6
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/auth-utils.js +0 -288
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/claude-code-helpers.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/claude-code-helpers.js +0 -18
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-defaults.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-defaults.js +0 -13
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-normalizers.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/config-normalizers.js +0 -106
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/profile-builder.d.ts +0 -8
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/profile-builder.js +0 -87
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/provider-normalization.d.ts +0 -44
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/provider-normalization.js +0 -272
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/responses-helpers.d.ts +0 -15
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/responses-helpers.js +0 -65
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/routing-config.d.ts +0 -24
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/routing-config.js +0 -346
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/streaming-helpers.d.ts +0 -19
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/streaming-helpers.js +0 -172
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/utils.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/utils.js +0 -41
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/web-search-config.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap/web-search-config.js +0 -156
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/bootstrap.js +0 -329
- package/vendor/llmswitch-core/dist/router/virtual-router/classifier.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/classifier.js +0 -187
- package/vendor/llmswitch-core/dist/router/virtual-router/context-advisor.d.ts +0 -23
- package/vendor/llmswitch-core/dist/router/virtual-router/context-advisor.js +0 -67
- package/vendor/llmswitch-core/dist/router/virtual-router/context-weighted.d.ts +0 -31
- package/vendor/llmswitch-core/dist/router/virtual-router/context-weighted.js +0 -54
- package/vendor/llmswitch-core/dist/router/virtual-router/default-thinking-keywords.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/default-thinking-keywords.js +0 -13
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/antigravity/alias-lease.d.ts +0 -33
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/antigravity/alias-lease.js +0 -257
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/cooldown-manager.d.ts +0 -34
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/cooldown-manager.js +0 -118
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/health/index.d.ts +0 -23
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/health/index.js +0 -724
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/provider-key/parse.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/provider-key/parse.js +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/route-analytics.d.ts +0 -28
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/route-analytics.js +0 -44
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-pools/index.d.ts +0 -13
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-pools/index.js +0 -386
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/keys.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/keys.js +0 -30
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/metadata.d.ts +0 -6
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/metadata.js +0 -132
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/store.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/routing-state/store.js +0 -156
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/sticky-session-manager.d.ts +0 -29
- package/vendor/llmswitch-core/dist/router/virtual-router/engine/sticky-session-manager.js +0 -55
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-health.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-health.js +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/config.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/config.js +0 -108
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/direct-model.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/direct-model.js +0 -38
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/health.d.ts +0 -13
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/health.js +0 -104
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/helpers.d.ts +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/helpers.js +0 -226
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/route-utils.d.ts +0 -19
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/route-utils.js +0 -212
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-core.d.ts +0 -28
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-core.js +0 -112
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-state.d.ts +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/selection-state.js +0 -187
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/state-accessors.d.ts +0 -21
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy/state-accessors.js +0 -118
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy.d.ts +0 -123
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-legacy.js +0 -245
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-logging.d.ts +0 -67
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-logging.js +0 -356
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/alias-selection.d.ts +0 -15
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/alias-selection.js +0 -118
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/context-weight-multipliers.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/context-weight-multipliers.js +0 -23
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/direct-provider-model.d.ts +0 -9
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/direct-provider-model.js +0 -49
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/instruction-target.d.ts +0 -6
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/instruction-target.js +0 -54
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/key-parsing.d.ts +0 -8
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/key-parsing.js +0 -47
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/multimodal-capability.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/multimodal-capability.js +0 -26
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-directive-parser.d.ts +0 -24
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-directive-parser.js +0 -209
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-directives.d.ts +0 -7
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-directives.js +0 -121
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-orchestration-semantics.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-orchestration-semantics.js +0 -110
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-semantics.d.ts +0 -8
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-semantics.js +0 -281
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-time-tag-semantics.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminder-time-tag-semantics.js +0 -25
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminders-semantics.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-reminders-semantics.js +0 -44
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-tool-schema-semantics.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-clock-tool-schema-semantics.js +0 -62
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governance-semantics.d.ts +0 -49
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governance-semantics.js +0 -552
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governed-filter-semantics.d.ts +0 -9
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-governed-filter-semantics.js +0 -64
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-node-result-semantics.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-node-result-semantics.js +0 -163
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-post-governed-normalization-semantics.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-post-governed-normalization-semantics.js +0 -49
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-servertool-orchestration-semantics.d.ts +0 -30
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-servertool-orchestration-semantics.js +0 -446
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-web-search-intent-semantics.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-process-web-search-intent-semantics.js +0 -49
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-request-filter-semantics.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-chat-request-filter-semantics.js +0 -54
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-compat-action-semantics.d.ts +0 -22
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-compat-action-semantics.js +0 -559
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-deepseek-web-compat.d.ts +0 -17
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-deepseek-web-compat.js +0 -26
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-action-semantics.d.ts +0 -276
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-action-semantics.js +0 -1291
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-policy-semantics.d.ts +0 -72
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-bridge-policy-semantics.js +0 -405
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-edge-stage-semantics.d.ts +0 -18
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-edge-stage-semantics.js +0 -333
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-governance-semantics.d.ts +0 -30
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-governance-semantics.js +0 -202
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-inbound-outbound-semantics.d.ts +0 -22
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-inbound-outbound-semantics.js +0 -426
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-orchestration-semantics.d.ts +0 -57
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-orchestration-semantics.js +0 -705
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.d.ts +0 -53
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-inbound-semantics.js +0 -598
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-outbound-semantics.d.ts +0 -147
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-outbound-semantics.js +0 -570
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-process-semantics.d.ts +0 -26
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-req-process-semantics.js +0 -148
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-resp-semantics.d.ts +0 -46
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-resp-semantics.js +0 -755
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-semantic-mappers.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-semantic-mappers.js +0 -83
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-session-identifiers-semantics.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-session-identifiers-semantics.js +0 -207
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-target-semantics.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-hub-pipeline-target-semantics.js +0 -128
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-analysis.d.ts +0 -57
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-analysis.js +0 -217
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-loader.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-loader.js +0 -464
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-policy.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-policy.js +0 -18
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-quota-buckets.d.ts +0 -25
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath-quota-buckets.js +0 -85
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath.d.ts +0 -59
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-router-hotpath.js +0 -117
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-shared-conversion-semantics.d.ts +0 -243
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-shared-conversion-semantics.js +0 -2594
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-snapshot-hooks.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-snapshot-hooks.js +0 -109
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-alias-selection-semantics.d.ts +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-alias-selection-semantics.js +0 -96
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-engine-proxy.d.ts +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-engine-proxy.js +0 -14
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-routing-instructions-semantics.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-routing-instructions-semantics.js +0 -123
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-actions-semantics.d.ts +0 -6
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-actions-semantics.js +0 -85
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-semantics.d.ts +0 -9
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-semantics.js +0 -70
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-state-semantics.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/native-virtual-router-stop-message-state-semantics.js +0 -76
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/route-utils.d.ts +0 -15
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/route-utils.js +0 -248
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/routing-state-filter.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/routing-state-filter.js +0 -50
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/selection-deps.d.ts +0 -58
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/selection-deps.js +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/sticky-pool.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/sticky-pool.js +0 -109
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-load-balancing.d.ts +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-load-balancing.js +0 -120
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-priority.d.ts +0 -11
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-priority.js +0 -55
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-session-lease.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-session-lease.js +0 -231
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-target-split.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-antigravity-target-split.js +0 -43
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-quota-integration.d.ts +0 -29
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-quota-integration.js +0 -194
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-select.d.ts +0 -22
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection-select.js +0 -352
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection/tier-selection.js +0 -309
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection.d.ts +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine-selection.js +0 -1
- package/vendor/llmswitch-core/dist/router/virtual-router/engine.d.ts +0 -43
- package/vendor/llmswitch-core/dist/router/virtual-router/engine.js +0 -360
- package/vendor/llmswitch-core/dist/router/virtual-router/error-center.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/error-center.js +0 -39
- package/vendor/llmswitch-core/dist/router/virtual-router/features.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/features.js +0 -124
- package/vendor/llmswitch-core/dist/router/virtual-router/health-manager.d.ts +0 -23
- package/vendor/llmswitch-core/dist/router/virtual-router/health-manager.js +0 -107
- package/vendor/llmswitch-core/dist/router/virtual-router/health-weighted.d.ts +0 -25
- package/vendor/llmswitch-core/dist/router/virtual-router/health-weighted.js +0 -63
- package/vendor/llmswitch-core/dist/router/virtual-router/load-balancer.d.ts +0 -28
- package/vendor/llmswitch-core/dist/router/virtual-router/load-balancer.js +0 -160
- package/vendor/llmswitch-core/dist/router/virtual-router/message-utils.d.ts +0 -15
- package/vendor/llmswitch-core/dist/router/virtual-router/message-utils.js +0 -235
- package/vendor/llmswitch-core/dist/router/virtual-router/pre-command-file-resolver.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/pre-command-file-resolver.js +0 -117
- package/vendor/llmswitch-core/dist/router/virtual-router/provider-registry.d.ts +0 -17
- package/vendor/llmswitch-core/dist/router/virtual-router/provider-registry.js +0 -145
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/clean.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/clean.js +0 -34
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/parse.d.ts +0 -6
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/parse.js +0 -24
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/state.d.ts +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/state.js +0 -284
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/types.d.ts +0 -74
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions/types.js +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions.d.ts +0 -5
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-instructions.js +0 -4
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-actions.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-actions.js +0 -26
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-parser.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-parser.js +0 -85
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-state-codec.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-pre-command-state-codec.js +0 -24
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-actions.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-actions.js +0 -99
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-parser.d.ts +0 -3
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-parser.js +0 -19
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-state-codec.d.ts +0 -7
- package/vendor/llmswitch-core/dist/router/virtual-router/routing-stop-message-state-codec.js +0 -121
- package/vendor/llmswitch-core/dist/router/virtual-router/sticky-session-store.d.ts +0 -8
- package/vendor/llmswitch-core/dist/router/virtual-router/sticky-session-store.js +0 -296
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-file-resolver.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-file-resolver.js +0 -76
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-stage-template-files.d.ts +0 -12
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-stage-template-files.js +0 -67
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-state-sync.d.ts +0 -17
- package/vendor/llmswitch-core/dist/router/virtual-router/stop-message-state-sync.js +0 -82
- package/vendor/llmswitch-core/dist/router/virtual-router/success-center.d.ts +0 -10
- package/vendor/llmswitch-core/dist/router/virtual-router/success-center.js +0 -32
- package/vendor/llmswitch-core/dist/router/virtual-router/token-counter.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/token-counter.js +0 -148
- package/vendor/llmswitch-core/dist/router/virtual-router/token-estimator.d.ts +0 -2
- package/vendor/llmswitch-core/dist/router/virtual-router/token-estimator.js +0 -16
- package/vendor/llmswitch-core/dist/router/virtual-router/token-file-scanner.d.ts +0 -24
- package/vendor/llmswitch-core/dist/router/virtual-router/token-file-scanner.js +0 -117
- package/vendor/llmswitch-core/dist/router/virtual-router/tool-signals.d.ts +0 -19
- package/vendor/llmswitch-core/dist/router/virtual-router/tool-signals.js +0 -647
- package/vendor/llmswitch-core/dist/router/virtual-router/types.d.ts +0 -681
- package/vendor/llmswitch-core/dist/router/virtual-router/types.js +0 -34
- package/vendor/llmswitch-core/dist/runtime/user-data-paths.d.ts +0 -5
- package/vendor/llmswitch-core/dist/runtime/user-data-paths.js +0 -43
- package/vendor/llmswitch-core/dist/servertool/clock/config.d.ts +0 -17
- package/vendor/llmswitch-core/dist/servertool/clock/config.js +0 -48
- package/vendor/llmswitch-core/dist/servertool/clock/daemon.d.ts +0 -24
- package/vendor/llmswitch-core/dist/servertool/clock/daemon.js +0 -207
- package/vendor/llmswitch-core/dist/servertool/clock/io.d.ts +0 -2
- package/vendor/llmswitch-core/dist/servertool/clock/io.js +0 -14
- package/vendor/llmswitch-core/dist/servertool/clock/log.d.ts +0 -3
- package/vendor/llmswitch-core/dist/servertool/clock/log.js +0 -13
- package/vendor/llmswitch-core/dist/servertool/clock/ntp.d.ts +0 -18
- package/vendor/llmswitch-core/dist/servertool/clock/ntp.js +0 -318
- package/vendor/llmswitch-core/dist/servertool/clock/paths.d.ts +0 -5
- package/vendor/llmswitch-core/dist/servertool/clock/paths.js +0 -28
- package/vendor/llmswitch-core/dist/servertool/clock/recurrence.d.ts +0 -7
- package/vendor/llmswitch-core/dist/servertool/clock/recurrence.js +0 -248
- package/vendor/llmswitch-core/dist/servertool/clock/session-scope.d.ts +0 -3
- package/vendor/llmswitch-core/dist/servertool/clock/session-scope.js +0 -41
- package/vendor/llmswitch-core/dist/servertool/clock/session-store.d.ts +0 -3
- package/vendor/llmswitch-core/dist/servertool/clock/session-store.js +0 -63
- package/vendor/llmswitch-core/dist/servertool/clock/state.d.ts +0 -9
- package/vendor/llmswitch-core/dist/servertool/clock/state.js +0 -135
- package/vendor/llmswitch-core/dist/servertool/clock/task-store.d.ts +0 -5
- package/vendor/llmswitch-core/dist/servertool/clock/task-store.js +0 -4
- package/vendor/llmswitch-core/dist/servertool/clock/tasks.d.ts +0 -24
- package/vendor/llmswitch-core/dist/servertool/clock/tasks.js +0 -595
- package/vendor/llmswitch-core/dist/servertool/clock/types.d.ts +0 -98
- package/vendor/llmswitch-core/dist/servertool/clock/types.js +0 -1
- package/vendor/llmswitch-core/dist/servertool/continue-execution/log.d.ts +0 -3
- package/vendor/llmswitch-core/dist/servertool/continue-execution/log.js +0 -13
- package/vendor/llmswitch-core/dist/servertool/engine.d.ts +0 -38
- package/vendor/llmswitch-core/dist/servertool/engine.js +0 -1660
- package/vendor/llmswitch-core/dist/servertool/followup-shadow.d.ts +0 -16
- package/vendor/llmswitch-core/dist/servertool/followup-shadow.js +0 -145
- package/vendor/llmswitch-core/dist/servertool/handlers/antigravity-thought-signature-bootstrap.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/antigravity-thought-signature-bootstrap.js +0 -225
- package/vendor/llmswitch-core/dist/servertool/handlers/apply-patch-guard.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/apply-patch-guard.js +0 -5
- package/vendor/llmswitch-core/dist/servertool/handlers/clock-auto.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/clock-auto.js +0 -177
- package/vendor/llmswitch-core/dist/servertool/handlers/clock.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/clock.js +0 -544
- package/vendor/llmswitch-core/dist/servertool/handlers/compaction-detect.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/compaction-detect.js +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/continue-execution.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/continue-execution.js +0 -110
- package/vendor/llmswitch-core/dist/servertool/handlers/exec-command-guard.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/exec-command-guard.js +0 -10
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-message-trimmer.d.ts +0 -16
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-message-trimmer.js +0 -198
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-request-builder.d.ts +0 -25
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-request-builder.js +0 -515
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-sanitize.d.ts +0 -2
- package/vendor/llmswitch-core/dist/servertool/handlers/followup-sanitize.js +0 -7
- package/vendor/llmswitch-core/dist/servertool/handlers/gemini-empty-reply-continue.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/gemini-empty-reply-continue.js +0 -3
- package/vendor/llmswitch-core/dist/servertool/handlers/iflow-model-error-retry.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/iflow-model-error-retry.js +0 -92
- package/vendor/llmswitch-core/dist/servertool/handlers/recursive-detection-guard.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/recursive-detection-guard.js +0 -374
- package/vendor/llmswitch-core/dist/servertool/handlers/review.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/review.js +0 -181
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/blocked-report.d.ts +0 -16
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/blocked-report.js +0 -407
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/iflow-followup.d.ts +0 -44
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/iflow-followup.js +0 -816
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/routing-state.d.ts +0 -28
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/routing-state.js +0 -123
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/runtime-utils.d.ts +0 -81
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto/runtime-utils.js +0 -355
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto.d.ts +0 -1
- package/vendor/llmswitch-core/dist/servertool/handlers/stop-message-auto.js +0 -553
- package/vendor/llmswitch-core/dist/servertool/handlers/vision.d.ts +0 -7
- package/vendor/llmswitch-core/dist/servertool/handlers/vision.js +0 -240
- package/vendor/llmswitch-core/dist/servertool/handlers/web-search.d.ts +0 -7
- package/vendor/llmswitch-core/dist/servertool/handlers/web-search.js +0 -926
- package/vendor/llmswitch-core/dist/servertool/log/progress-file.d.ts +0 -14
- package/vendor/llmswitch-core/dist/servertool/log/progress-file.js +0 -88
- package/vendor/llmswitch-core/dist/servertool/pending-session.d.ts +0 -19
- package/vendor/llmswitch-core/dist/servertool/pending-session.js +0 -99
- package/vendor/llmswitch-core/dist/servertool/pre-command-hooks.d.ts +0 -17
- package/vendor/llmswitch-core/dist/servertool/pre-command-hooks.js +0 -491
- package/vendor/llmswitch-core/dist/servertool/reenter-backend.d.ts +0 -23
- package/vendor/llmswitch-core/dist/servertool/reenter-backend.js +0 -20
- package/vendor/llmswitch-core/dist/servertool/registry.d.ts +0 -35
- package/vendor/llmswitch-core/dist/servertool/registry.js +0 -92
- package/vendor/llmswitch-core/dist/servertool/server-side-tools.d.ts +0 -15
- package/vendor/llmswitch-core/dist/servertool/server-side-tools.js +0 -898
- package/vendor/llmswitch-core/dist/servertool/stop-gateway-context.d.ts +0 -14
- package/vendor/llmswitch-core/dist/servertool/stop-gateway-context.js +0 -167
- package/vendor/llmswitch-core/dist/servertool/stop-message-compare-context.d.ts +0 -24
- package/vendor/llmswitch-core/dist/servertool/stop-message-compare-context.js +0 -133
- package/vendor/llmswitch-core/dist/servertool/strip-servertool-calls.d.ts +0 -2
- package/vendor/llmswitch-core/dist/servertool/strip-servertool-calls.js +0 -75
- package/vendor/llmswitch-core/dist/servertool/types.d.ts +0 -235
- package/vendor/llmswitch-core/dist/servertool/types.js +0 -1
- package/vendor/llmswitch-core/dist/sse/index.d.ts +0 -176
- package/vendor/llmswitch-core/dist/sse/index.js +0 -142
- package/vendor/llmswitch-core/dist/sse/json-to-sse/anthropic-json-to-sse-converter.d.ts +0 -15
- package/vendor/llmswitch-core/dist/sse/json-to-sse/anthropic-json-to-sse-converter.js +0 -112
- package/vendor/llmswitch-core/dist/sse/json-to-sse/chat-json-to-sse-converter.d.ts +0 -80
- package/vendor/llmswitch-core/dist/sse/json-to-sse/chat-json-to-sse-converter.js +0 -300
- package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/chat.d.ts +0 -55
- package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/chat.js +0 -233
- package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/responses.d.ts +0 -103
- package/vendor/llmswitch-core/dist/sse/json-to-sse/event-generators/responses.js +0 -703
- package/vendor/llmswitch-core/dist/sse/json-to-sse/gemini-json-to-sse-converter.d.ts +0 -15
- package/vendor/llmswitch-core/dist/sse/json-to-sse/gemini-json-to-sse-converter.js +0 -99
- package/vendor/llmswitch-core/dist/sse/json-to-sse/index.d.ts +0 -7
- package/vendor/llmswitch-core/dist/sse/json-to-sse/index.js +0 -9
- package/vendor/llmswitch-core/dist/sse/json-to-sse/responses-json-to-sse-converter.d.ts +0 -80
- package/vendor/llmswitch-core/dist/sse/json-to-sse/responses-json-to-sse-converter.js +0 -322
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/anthropic-sequencer.d.ts +0 -13
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/anthropic-sequencer.js +0 -162
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/chat-sequencer.d.ts +0 -39
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/chat-sequencer.js +0 -264
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/gemini-sequencer.d.ts +0 -10
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/gemini-sequencer.js +0 -95
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/responses-sequencer.d.ts +0 -40
- package/vendor/llmswitch-core/dist/sse/json-to-sse/sequencers/responses-sequencer.js +0 -293
- package/vendor/llmswitch-core/dist/sse/registry/sse-codec-registry.d.ts +0 -32
- package/vendor/llmswitch-core/dist/sse/registry/sse-codec-registry.js +0 -135
- package/vendor/llmswitch-core/dist/sse/shared/chat-serializer.d.ts +0 -4
- package/vendor/llmswitch-core/dist/sse/shared/chat-serializer.js +0 -40
- package/vendor/llmswitch-core/dist/sse/shared/constants.d.ts +0 -272
- package/vendor/llmswitch-core/dist/sse/shared/constants.js +0 -321
- package/vendor/llmswitch-core/dist/sse/shared/reasoning-dispatcher.d.ts +0 -10
- package/vendor/llmswitch-core/dist/sse/shared/reasoning-dispatcher.js +0 -25
- package/vendor/llmswitch-core/dist/sse/shared/responses-output-normalizer.d.ts +0 -13
- package/vendor/llmswitch-core/dist/sse/shared/responses-output-normalizer.js +0 -47
- package/vendor/llmswitch-core/dist/sse/shared/serializers/anthropic-event-serializer.d.ts +0 -2
- package/vendor/llmswitch-core/dist/sse/shared/serializers/anthropic-event-serializer.js +0 -9
- package/vendor/llmswitch-core/dist/sse/shared/serializers/base-serializer.d.ts +0 -158
- package/vendor/llmswitch-core/dist/sse/shared/serializers/base-serializer.js +0 -210
- package/vendor/llmswitch-core/dist/sse/shared/serializers/chat-event-serializer.d.ts +0 -82
- package/vendor/llmswitch-core/dist/sse/shared/serializers/chat-event-serializer.js +0 -275
- package/vendor/llmswitch-core/dist/sse/shared/serializers/gemini-event-serializer.d.ts +0 -2
- package/vendor/llmswitch-core/dist/sse/shared/serializers/gemini-event-serializer.js +0 -5
- package/vendor/llmswitch-core/dist/sse/shared/serializers/index.d.ts +0 -42
- package/vendor/llmswitch-core/dist/sse/shared/serializers/index.js +0 -56
- package/vendor/llmswitch-core/dist/sse/shared/serializers/responses-event-serializer.d.ts +0 -131
- package/vendor/llmswitch-core/dist/sse/shared/serializers/responses-event-serializer.js +0 -375
- package/vendor/llmswitch-core/dist/sse/shared/serializers/types.d.ts +0 -51
- package/vendor/llmswitch-core/dist/sse/shared/serializers/types.js +0 -4
- package/vendor/llmswitch-core/dist/sse/shared/utils.d.ts +0 -254
- package/vendor/llmswitch-core/dist/sse/shared/utils.js +0 -543
- package/vendor/llmswitch-core/dist/sse/shared/writer.d.ts +0 -127
- package/vendor/llmswitch-core/dist/sse/shared/writer.js +0 -321
- package/vendor/llmswitch-core/dist/sse/sse-to-json/anthropic-sse-to-json-converter.d.ts +0 -20
- package/vendor/llmswitch-core/dist/sse/sse-to-json/anthropic-sse-to-json-converter.js +0 -204
- package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/anthropic-response-builder.d.ts +0 -16
- package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/anthropic-response-builder.js +0 -258
- package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/response-builder.d.ts +0 -177
- package/vendor/llmswitch-core/dist/sse/sse-to-json/builders/response-builder.js +0 -1135
- package/vendor/llmswitch-core/dist/sse/sse-to-json/chat-sse-to-json-converter.d.ts +0 -119
- package/vendor/llmswitch-core/dist/sse/sse-to-json/chat-sse-to-json-converter.js +0 -850
- package/vendor/llmswitch-core/dist/sse/sse-to-json/gemini-sse-to-json-converter.d.ts +0 -14
- package/vendor/llmswitch-core/dist/sse/sse-to-json/gemini-sse-to-json-converter.js +0 -186
- package/vendor/llmswitch-core/dist/sse/sse-to-json/index.d.ts +0 -7
- package/vendor/llmswitch-core/dist/sse/sse-to-json/index.js +0 -9
- package/vendor/llmswitch-core/dist/sse/sse-to-json/parsers/sse-parser.d.ts +0 -73
- package/vendor/llmswitch-core/dist/sse/sse-to-json/parsers/sse-parser.js +0 -434
- package/vendor/llmswitch-core/dist/sse/sse-to-json/responses-sse-to-json-converter.d.ts +0 -61
- package/vendor/llmswitch-core/dist/sse/sse-to-json/responses-sse-to-json-converter.js +0 -306
- package/vendor/llmswitch-core/dist/sse/types/anthropic-types.d.ts +0 -194
- package/vendor/llmswitch-core/dist/sse/types/anthropic-types.js +0 -8
- package/vendor/llmswitch-core/dist/sse/types/chat-types.d.ts +0 -321
- package/vendor/llmswitch-core/dist/sse/types/chat-types.js +0 -33
- package/vendor/llmswitch-core/dist/sse/types/conversion-context.d.ts +0 -214
- package/vendor/llmswitch-core/dist/sse/types/conversion-context.js +0 -20
- package/vendor/llmswitch-core/dist/sse/types/core-interfaces.d.ts +0 -94
- package/vendor/llmswitch-core/dist/sse/types/core-interfaces.js +0 -5
- package/vendor/llmswitch-core/dist/sse/types/gemini-types.d.ts +0 -135
- package/vendor/llmswitch-core/dist/sse/types/gemini-types.js +0 -5
- package/vendor/llmswitch-core/dist/sse/types/index.d.ts +0 -17
- package/vendor/llmswitch-core/dist/sse/types/index.js +0 -9
- package/vendor/llmswitch-core/dist/sse/types/responses-types.d.ts +0 -334
- package/vendor/llmswitch-core/dist/sse/types/responses-types.js +0 -38
- package/vendor/llmswitch-core/dist/sse/types/sse-events.d.ts +0 -181
- package/vendor/llmswitch-core/dist/sse/types/sse-events.js +0 -150
- package/vendor/llmswitch-core/dist/sse/types/stream-state.d.ts +0 -199
- package/vendor/llmswitch-core/dist/sse/types/stream-state.js +0 -44
- package/vendor/llmswitch-core/dist/sse/types/utility-types.d.ts +0 -234
- package/vendor/llmswitch-core/dist/sse/types/utility-types.js +0 -46
- package/vendor/llmswitch-core/dist/telemetry/stats-center.d.ts +0 -82
- package/vendor/llmswitch-core/dist/telemetry/stats-center.js +0 -308
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/default-actions.d.ts +0 -2
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/default-actions.js +0 -12
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/extract-patch.d.ts +0 -2
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/extract-patch.js +0 -15
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/index.d.ts +0 -2
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/index.js +0 -164
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/structured-builders.d.ts +0 -7
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/structured-builders.js +0 -85
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/types.d.ts +0 -54
- package/vendor/llmswitch-core/dist/tools/apply-patch/args-normalizer/types.js +0 -1
- package/vendor/llmswitch-core/dist/tools/apply-patch/execution-capturer.d.ts +0 -13
- package/vendor/llmswitch-core/dist/tools/apply-patch/execution-capturer.js +0 -181
- package/vendor/llmswitch-core/dist/tools/apply-patch/json/parse-loose.d.ts +0 -3
- package/vendor/llmswitch-core/dist/tools/apply-patch/json/parse-loose.js +0 -139
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/context-diff.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/context-diff.js +0 -173
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/git-diff.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/git-diff.js +0 -138
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/looks-like-patch.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/looks-like-patch.js +0 -11
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/normalize.d.ts +0 -3
- package/vendor/llmswitch-core/dist/tools/apply-patch/patch-text/normalize.js +0 -383
- package/vendor/llmswitch-core/dist/tools/apply-patch/regression-capturer.d.ts +0 -13
- package/vendor/llmswitch-core/dist/tools/apply-patch/regression-capturer.js +0 -113
- package/vendor/llmswitch-core/dist/tools/apply-patch/structured/coercion.d.ts +0 -3
- package/vendor/llmswitch-core/dist/tools/apply-patch/structured/coercion.js +0 -103
- package/vendor/llmswitch-core/dist/tools/apply-patch/structured.d.ts +0 -20
- package/vendor/llmswitch-core/dist/tools/apply-patch/structured.js +0 -537
- package/vendor/llmswitch-core/dist/tools/apply-patch/validation/shared.d.ts +0 -3
- package/vendor/llmswitch-core/dist/tools/apply-patch/validation/shared.js +0 -6
- package/vendor/llmswitch-core/dist/tools/apply-patch/validator.d.ts +0 -8
- package/vendor/llmswitch-core/dist/tools/apply-patch/validator.js +0 -21
- package/vendor/llmswitch-core/dist/tools/apply-patch-structured.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/apply-patch-structured.js +0 -1
- package/vendor/llmswitch-core/dist/tools/args-json.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/args-json.js +0 -204
- package/vendor/llmswitch-core/dist/tools/exec-command/normalize.d.ts +0 -17
- package/vendor/llmswitch-core/dist/tools/exec-command/normalize.js +0 -116
- package/vendor/llmswitch-core/dist/tools/exec-command/regression-capturer.d.ts +0 -11
- package/vendor/llmswitch-core/dist/tools/exec-command/regression-capturer.js +0 -144
- package/vendor/llmswitch-core/dist/tools/exec-command/validator.d.ts +0 -10
- package/vendor/llmswitch-core/dist/tools/exec-command/validator.js +0 -238
- package/vendor/llmswitch-core/dist/tools/patch-regression-capturer.d.ts +0 -1
- package/vendor/llmswitch-core/dist/tools/patch-regression-capturer.js +0 -1
- package/vendor/llmswitch-core/dist/tools/tool-description-utils.d.ts +0 -5
- package/vendor/llmswitch-core/dist/tools/tool-description-utils.js +0 -50
- package/vendor/llmswitch-core/dist/tools/tool-registry.d.ts +0 -15
- package/vendor/llmswitch-core/dist/tools/tool-registry.js +0 -253
- package/vendor/llmswitch-core/package.json +0 -189
|
@@ -1,755 +0,0 @@
|
|
|
1
|
-
import { failNativeRequired, isNativeDisabledByEnv } from './native-router-hotpath-policy.js';
|
|
2
|
-
import { loadNativeRouterHotpathBindingForInternalUse } from './native-router-hotpath.js';
|
|
3
|
-
function readNativeFunction(name) {
|
|
4
|
-
const binding = loadNativeRouterHotpathBindingForInternalUse();
|
|
5
|
-
const fn = binding?.[name];
|
|
6
|
-
return typeof fn === 'function' ? fn : null;
|
|
7
|
-
}
|
|
8
|
-
function safeStringify(value) {
|
|
9
|
-
try {
|
|
10
|
-
return JSON.stringify(value);
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function parseAliasMap(raw) {
|
|
17
|
-
try {
|
|
18
|
-
const parsed = JSON.parse(raw);
|
|
19
|
-
if (parsed === null) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
const out = {};
|
|
26
|
-
for (const [key, value] of Object.entries(parsed)) {
|
|
27
|
-
if (typeof key !== 'string' || typeof value !== 'string') {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
const trimmedKey = key.trim();
|
|
31
|
-
const trimmedValue = value.trim();
|
|
32
|
-
if (!trimmedKey || !trimmedValue) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
out[trimmedKey] = trimmedValue;
|
|
36
|
-
}
|
|
37
|
-
return Object.keys(out).length ? out : undefined;
|
|
38
|
-
}
|
|
39
|
-
catch {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function parseClientToolsRaw(raw) {
|
|
44
|
-
try {
|
|
45
|
-
const parsed = JSON.parse(raw);
|
|
46
|
-
if (parsed === null) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
if (!Array.isArray(parsed)) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
return parsed;
|
|
53
|
-
}
|
|
54
|
-
catch {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function parseRecord(raw) {
|
|
59
|
-
try {
|
|
60
|
-
const parsed = JSON.parse(raw);
|
|
61
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
return parsed;
|
|
65
|
-
}
|
|
66
|
-
catch {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function parseBoolean(raw) {
|
|
71
|
-
try {
|
|
72
|
-
const parsed = JSON.parse(raw);
|
|
73
|
-
return typeof parsed === 'boolean' ? parsed : null;
|
|
74
|
-
}
|
|
75
|
-
catch {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function parseUnknown(raw) {
|
|
80
|
-
try {
|
|
81
|
-
return JSON.parse(raw);
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function parseStringOrUndefined(raw) {
|
|
88
|
-
try {
|
|
89
|
-
const parsed = JSON.parse(raw);
|
|
90
|
-
if (parsed === null) {
|
|
91
|
-
return undefined;
|
|
92
|
-
}
|
|
93
|
-
return typeof parsed === 'string' ? parsed : null;
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function parseContextLengthDiagnostics(raw) {
|
|
100
|
-
try {
|
|
101
|
-
const parsed = JSON.parse(raw);
|
|
102
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
const row = parsed;
|
|
106
|
-
const output = {};
|
|
107
|
-
const estimated = row.estimatedPromptTokens;
|
|
108
|
-
const maxContext = row.maxContextTokens;
|
|
109
|
-
if (typeof estimated === 'number' && Number.isFinite(estimated)) {
|
|
110
|
-
output.estimatedPromptTokens = Math.floor(estimated);
|
|
111
|
-
}
|
|
112
|
-
if (typeof maxContext === 'number' && Number.isFinite(maxContext)) {
|
|
113
|
-
output.maxContextTokens = Math.floor(maxContext);
|
|
114
|
-
}
|
|
115
|
-
return output;
|
|
116
|
-
}
|
|
117
|
-
catch {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function parseRespInboundSseErrorDescriptor(raw) {
|
|
122
|
-
try {
|
|
123
|
-
const parsed = JSON.parse(raw);
|
|
124
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
const row = parsed;
|
|
128
|
-
const code = row.code;
|
|
129
|
-
const protocol = row.protocol;
|
|
130
|
-
const errorMessage = row.errorMessage;
|
|
131
|
-
const details = row.details;
|
|
132
|
-
const stageRecord = row.stageRecord;
|
|
133
|
-
const status = row.status;
|
|
134
|
-
const providerType = row.providerType;
|
|
135
|
-
if ((code !== 'SSE_DECODE_ERROR' && code !== 'HTTP_502') || typeof protocol !== 'string' || !protocol.trim()) {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
if (typeof errorMessage !== 'string' || !errorMessage.trim()) {
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
if (!details || typeof details !== 'object' || Array.isArray(details)) {
|
|
142
|
-
return null;
|
|
143
|
-
}
|
|
144
|
-
if (!stageRecord || typeof stageRecord !== 'object' || Array.isArray(stageRecord)) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
if (providerType != null && typeof providerType !== 'string') {
|
|
148
|
-
return null;
|
|
149
|
-
}
|
|
150
|
-
if (status != null && (typeof status !== 'number' || !Number.isFinite(status))) {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
return {
|
|
154
|
-
code,
|
|
155
|
-
protocol: protocol.trim(),
|
|
156
|
-
providerType: typeof providerType === 'string' && providerType.trim() ? providerType.trim() : undefined,
|
|
157
|
-
errorMessage,
|
|
158
|
-
details: details,
|
|
159
|
-
stageRecord: stageRecord,
|
|
160
|
-
status: typeof status === 'number' ? Math.floor(status) : undefined
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
catch {
|
|
164
|
-
return null;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function parseJsonObjectCandidate(raw) {
|
|
168
|
-
try {
|
|
169
|
-
const parsed = JSON.parse(raw);
|
|
170
|
-
if (parsed === null) {
|
|
171
|
-
return null;
|
|
172
|
-
}
|
|
173
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
174
|
-
return undefined;
|
|
175
|
-
}
|
|
176
|
-
return parsed;
|
|
177
|
-
}
|
|
178
|
-
catch {
|
|
179
|
-
return undefined;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function parseResponsesHostPolicyResult(raw) {
|
|
183
|
-
try {
|
|
184
|
-
const parsed = JSON.parse(raw);
|
|
185
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
188
|
-
const row = parsed;
|
|
189
|
-
if (typeof row.shouldStripHostManagedFields !== 'boolean') {
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
if (typeof row.targetProtocol !== 'string') {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
const targetProtocol = row.targetProtocol.trim();
|
|
196
|
-
if (!targetProtocol.length) {
|
|
197
|
-
return null;
|
|
198
|
-
}
|
|
199
|
-
return {
|
|
200
|
-
shouldStripHostManagedFields: row.shouldStripHostManagedFields,
|
|
201
|
-
targetProtocol
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
catch {
|
|
205
|
-
return null;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
export function normalizeAliasMapWithNative(candidate) {
|
|
209
|
-
const capability = 'normalizeAliasMapJson';
|
|
210
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
211
|
-
if (isNativeDisabledByEnv()) {
|
|
212
|
-
return fail('native disabled');
|
|
213
|
-
}
|
|
214
|
-
const fn = readNativeFunction('normalizeAliasMapJson');
|
|
215
|
-
if (!fn) {
|
|
216
|
-
return fail();
|
|
217
|
-
}
|
|
218
|
-
const candidateJson = safeStringify(candidate ?? null);
|
|
219
|
-
if (!candidateJson) {
|
|
220
|
-
return fail('json stringify failed');
|
|
221
|
-
}
|
|
222
|
-
try {
|
|
223
|
-
const raw = fn(candidateJson);
|
|
224
|
-
if (typeof raw !== 'string' || !raw) {
|
|
225
|
-
return fail('empty result');
|
|
226
|
-
}
|
|
227
|
-
const parsed = parseAliasMap(raw);
|
|
228
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
232
|
-
return fail(reason);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
export function resolveClientToolsRawWithNative(candidate) {
|
|
236
|
-
const capability = 'resolveClientToolsRawJson';
|
|
237
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
238
|
-
if (isNativeDisabledByEnv()) {
|
|
239
|
-
return fail('native disabled');
|
|
240
|
-
}
|
|
241
|
-
const fn = readNativeFunction('resolveClientToolsRawJson');
|
|
242
|
-
if (!fn) {
|
|
243
|
-
return fail();
|
|
244
|
-
}
|
|
245
|
-
const candidateJson = safeStringify(candidate ?? null);
|
|
246
|
-
if (!candidateJson) {
|
|
247
|
-
return fail('json stringify failed');
|
|
248
|
-
}
|
|
249
|
-
try {
|
|
250
|
-
const raw = fn(candidateJson);
|
|
251
|
-
if (typeof raw !== 'string' || !raw) {
|
|
252
|
-
return fail('empty result');
|
|
253
|
-
}
|
|
254
|
-
const parsed = parseClientToolsRaw(raw);
|
|
255
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
256
|
-
}
|
|
257
|
-
catch (error) {
|
|
258
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
259
|
-
return fail(reason);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
export function resolveAliasMapFromRespSemanticsWithNative(semantics) {
|
|
263
|
-
const capability = 'resolveAliasMapFromRespSemanticsJson';
|
|
264
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
265
|
-
if (isNativeDisabledByEnv()) {
|
|
266
|
-
return fail('native disabled');
|
|
267
|
-
}
|
|
268
|
-
const fn = readNativeFunction('resolveAliasMapFromRespSemanticsJson');
|
|
269
|
-
if (!fn) {
|
|
270
|
-
return fail();
|
|
271
|
-
}
|
|
272
|
-
const semanticsJson = safeStringify(semantics ?? null);
|
|
273
|
-
if (!semanticsJson) {
|
|
274
|
-
return fail('json stringify failed');
|
|
275
|
-
}
|
|
276
|
-
try {
|
|
277
|
-
const raw = fn(semanticsJson);
|
|
278
|
-
if (typeof raw !== 'string' || !raw) {
|
|
279
|
-
return fail('empty result');
|
|
280
|
-
}
|
|
281
|
-
const parsed = parseAliasMap(raw);
|
|
282
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
283
|
-
}
|
|
284
|
-
catch (error) {
|
|
285
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
286
|
-
return fail(reason);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
export function resolveClientToolsRawFromRespSemanticsWithNative(semantics) {
|
|
290
|
-
const capability = 'resolveClientToolsRawFromRespSemanticsJson';
|
|
291
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
292
|
-
if (isNativeDisabledByEnv()) {
|
|
293
|
-
return fail('native disabled');
|
|
294
|
-
}
|
|
295
|
-
const fn = readNativeFunction('resolveClientToolsRawFromRespSemanticsJson');
|
|
296
|
-
if (!fn) {
|
|
297
|
-
return fail();
|
|
298
|
-
}
|
|
299
|
-
const semanticsJson = safeStringify(semantics ?? null);
|
|
300
|
-
if (!semanticsJson) {
|
|
301
|
-
return fail('json stringify failed');
|
|
302
|
-
}
|
|
303
|
-
try {
|
|
304
|
-
const raw = fn(semanticsJson);
|
|
305
|
-
if (typeof raw !== 'string' || !raw) {
|
|
306
|
-
return fail('empty result');
|
|
307
|
-
}
|
|
308
|
-
const parsed = parseClientToolsRaw(raw);
|
|
309
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
310
|
-
}
|
|
311
|
-
catch (error) {
|
|
312
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
313
|
-
return fail(reason);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
export function sanitizeResponsesFunctionNameWithNative(rawName) {
|
|
317
|
-
const capability = 'sanitizeResponsesFunctionNameJson';
|
|
318
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
319
|
-
if (isNativeDisabledByEnv()) {
|
|
320
|
-
return fail('native disabled');
|
|
321
|
-
}
|
|
322
|
-
const fn = readNativeFunction(capability);
|
|
323
|
-
if (!fn) {
|
|
324
|
-
return fail();
|
|
325
|
-
}
|
|
326
|
-
const rawNameJson = safeStringify(rawName ?? null);
|
|
327
|
-
if (!rawNameJson) {
|
|
328
|
-
return fail('json stringify failed');
|
|
329
|
-
}
|
|
330
|
-
try {
|
|
331
|
-
const raw = fn(rawNameJson);
|
|
332
|
-
if (typeof raw !== 'string' || !raw) {
|
|
333
|
-
return fail('empty result');
|
|
334
|
-
}
|
|
335
|
-
const parsed = parseStringOrUndefined(raw);
|
|
336
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
337
|
-
}
|
|
338
|
-
catch (error) {
|
|
339
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
340
|
-
return fail(reason);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
export function extractSseWrapperErrorWithNative(payload) {
|
|
344
|
-
const capability = 'extractSseWrapperErrorJson';
|
|
345
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
346
|
-
if (isNativeDisabledByEnv()) {
|
|
347
|
-
return fail('native disabled');
|
|
348
|
-
}
|
|
349
|
-
const fn = readNativeFunction(capability);
|
|
350
|
-
if (!fn) {
|
|
351
|
-
return fail();
|
|
352
|
-
}
|
|
353
|
-
const payloadJson = safeStringify(payload ?? null);
|
|
354
|
-
if (!payloadJson) {
|
|
355
|
-
return fail('json stringify failed');
|
|
356
|
-
}
|
|
357
|
-
try {
|
|
358
|
-
const raw = fn(payloadJson);
|
|
359
|
-
if (typeof raw !== 'string' || !raw) {
|
|
360
|
-
return fail('empty result');
|
|
361
|
-
}
|
|
362
|
-
const parsed = parseStringOrUndefined(raw);
|
|
363
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
364
|
-
}
|
|
365
|
-
catch (error) {
|
|
366
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
367
|
-
return fail(reason);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
export function extractContextLengthDiagnosticsWithNative(adapterContext) {
|
|
371
|
-
const capability = 'extractContextLengthDiagnosticsJson';
|
|
372
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
373
|
-
if (isNativeDisabledByEnv()) {
|
|
374
|
-
return fail('native disabled');
|
|
375
|
-
}
|
|
376
|
-
const fn = readNativeFunction(capability);
|
|
377
|
-
if (!fn) {
|
|
378
|
-
return fail();
|
|
379
|
-
}
|
|
380
|
-
const contextJson = safeStringify(adapterContext ?? null);
|
|
381
|
-
if (!contextJson) {
|
|
382
|
-
return fail('json stringify failed');
|
|
383
|
-
}
|
|
384
|
-
try {
|
|
385
|
-
const raw = fn(contextJson);
|
|
386
|
-
if (typeof raw !== 'string' || !raw) {
|
|
387
|
-
return fail('empty result');
|
|
388
|
-
}
|
|
389
|
-
const parsed = parseContextLengthDiagnostics(raw);
|
|
390
|
-
return parsed ?? fail('invalid payload');
|
|
391
|
-
}
|
|
392
|
-
catch (error) {
|
|
393
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
394
|
-
return fail(reason);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
export function isContextLengthExceededSignalWithNative(code, message, context) {
|
|
398
|
-
const capability = 'isContextLengthExceededSignalJson';
|
|
399
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
400
|
-
if (isNativeDisabledByEnv()) {
|
|
401
|
-
return fail('native disabled');
|
|
402
|
-
}
|
|
403
|
-
const fn = readNativeFunction(capability);
|
|
404
|
-
if (!fn) {
|
|
405
|
-
return fail();
|
|
406
|
-
}
|
|
407
|
-
const contextJson = safeStringify(context ?? null);
|
|
408
|
-
if (!contextJson) {
|
|
409
|
-
return fail('json stringify failed');
|
|
410
|
-
}
|
|
411
|
-
const normalizedCode = typeof code === 'string' ? code : '';
|
|
412
|
-
try {
|
|
413
|
-
const raw = fn(normalizedCode, String(message || ''), contextJson);
|
|
414
|
-
if (typeof raw !== 'string' || !raw) {
|
|
415
|
-
return fail('empty result');
|
|
416
|
-
}
|
|
417
|
-
const parsed = parseBoolean(raw);
|
|
418
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
419
|
-
}
|
|
420
|
-
catch (error) {
|
|
421
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
422
|
-
return fail(reason);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
export function buildRespInboundSseErrorDescriptorWithNative(input) {
|
|
426
|
-
const capability = 'buildRespInboundSseErrorDescriptorJson';
|
|
427
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
428
|
-
if (isNativeDisabledByEnv()) {
|
|
429
|
-
return fail('native disabled');
|
|
430
|
-
}
|
|
431
|
-
const fn = readNativeFunction(capability);
|
|
432
|
-
if (!fn) {
|
|
433
|
-
return fail();
|
|
434
|
-
}
|
|
435
|
-
const inputJson = safeStringify(input ?? null);
|
|
436
|
-
if (!inputJson) {
|
|
437
|
-
return fail('json stringify failed');
|
|
438
|
-
}
|
|
439
|
-
try {
|
|
440
|
-
const raw = fn(inputJson);
|
|
441
|
-
if (typeof raw !== 'string' || !raw) {
|
|
442
|
-
return fail('empty result');
|
|
443
|
-
}
|
|
444
|
-
const parsed = parseRespInboundSseErrorDescriptor(raw);
|
|
445
|
-
return parsed ?? fail('invalid payload');
|
|
446
|
-
}
|
|
447
|
-
catch (error) {
|
|
448
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
449
|
-
return fail(reason);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
export function normalizeRespInboundReasoningPayloadWithNative(input) {
|
|
453
|
-
const capability = 'normalizeRespInboundReasoningPayloadJson';
|
|
454
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
455
|
-
if (isNativeDisabledByEnv()) {
|
|
456
|
-
return fail('native disabled');
|
|
457
|
-
}
|
|
458
|
-
const fn = readNativeFunction(capability);
|
|
459
|
-
if (!fn) {
|
|
460
|
-
return fail();
|
|
461
|
-
}
|
|
462
|
-
const inputJson = safeStringify(input);
|
|
463
|
-
if (!inputJson) {
|
|
464
|
-
return fail('json stringify failed');
|
|
465
|
-
}
|
|
466
|
-
try {
|
|
467
|
-
const raw = fn(inputJson);
|
|
468
|
-
if (typeof raw !== 'string' || !raw) {
|
|
469
|
-
return fail('empty result');
|
|
470
|
-
}
|
|
471
|
-
const parsed = parseUnknown(raw);
|
|
472
|
-
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
473
|
-
return fail('invalid payload');
|
|
474
|
-
}
|
|
475
|
-
return parsed;
|
|
476
|
-
}
|
|
477
|
-
catch (error) {
|
|
478
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
479
|
-
return fail(reason);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
export function applyClientPassthroughPatchWithNative(clientPayload, sourcePayload) {
|
|
483
|
-
const capability = 'applyClientPassthroughPatchJson';
|
|
484
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
485
|
-
if (isNativeDisabledByEnv()) {
|
|
486
|
-
return fail('native disabled');
|
|
487
|
-
}
|
|
488
|
-
const fn = readNativeFunction(capability);
|
|
489
|
-
if (!fn) {
|
|
490
|
-
return fail();
|
|
491
|
-
}
|
|
492
|
-
const clientPayloadJson = safeStringify(clientPayload);
|
|
493
|
-
const sourcePayloadJson = safeStringify(sourcePayload);
|
|
494
|
-
if (!clientPayloadJson || !sourcePayloadJson) {
|
|
495
|
-
return fail('json stringify failed');
|
|
496
|
-
}
|
|
497
|
-
try {
|
|
498
|
-
const raw = fn(clientPayloadJson, sourcePayloadJson);
|
|
499
|
-
if (typeof raw !== 'string' || !raw) {
|
|
500
|
-
return fail('empty result');
|
|
501
|
-
}
|
|
502
|
-
const parsed = parseRecord(raw);
|
|
503
|
-
return parsed ?? fail('invalid payload');
|
|
504
|
-
}
|
|
505
|
-
catch (error) {
|
|
506
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
507
|
-
return fail(reason);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
export function buildAnthropicResponseFromChatWithNative(chatResponse, aliasMap) {
|
|
511
|
-
const capability = 'buildAnthropicResponseFromChatJson';
|
|
512
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
513
|
-
if (isNativeDisabledByEnv()) {
|
|
514
|
-
return fail('native disabled');
|
|
515
|
-
}
|
|
516
|
-
const fn = readNativeFunction(capability);
|
|
517
|
-
if (!fn) {
|
|
518
|
-
return fail();
|
|
519
|
-
}
|
|
520
|
-
const chatResponseJson = safeStringify(chatResponse);
|
|
521
|
-
const aliasMapJson = safeStringify(aliasMap ?? null);
|
|
522
|
-
if (!chatResponseJson || !aliasMapJson) {
|
|
523
|
-
return fail('json stringify failed');
|
|
524
|
-
}
|
|
525
|
-
try {
|
|
526
|
-
const raw = fn(chatResponseJson, aliasMapJson);
|
|
527
|
-
const nativeErrorMessage = raw instanceof Error
|
|
528
|
-
? raw.message
|
|
529
|
-
: raw && typeof raw === 'object' && 'message' in raw
|
|
530
|
-
? (() => {
|
|
531
|
-
const candidate = raw.message;
|
|
532
|
-
return typeof candidate === 'string' ? candidate : '';
|
|
533
|
-
})()
|
|
534
|
-
: '';
|
|
535
|
-
if (nativeErrorMessage) {
|
|
536
|
-
return fail(nativeErrorMessage);
|
|
537
|
-
}
|
|
538
|
-
if (typeof raw !== 'string' || !raw) {
|
|
539
|
-
return fail('empty result');
|
|
540
|
-
}
|
|
541
|
-
const parsed = parseRecord(raw);
|
|
542
|
-
return parsed ?? fail('invalid payload');
|
|
543
|
-
}
|
|
544
|
-
catch (error) {
|
|
545
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
546
|
-
return fail(reason);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
export function normalizeResponsesToolCallArgumentsForClientWithNative(responsesPayload, toolsRaw) {
|
|
550
|
-
const capability = 'normalizeResponsesToolCallArgumentsForClientJson';
|
|
551
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
552
|
-
if (isNativeDisabledByEnv()) {
|
|
553
|
-
return fail('native disabled');
|
|
554
|
-
}
|
|
555
|
-
const fn = readNativeFunction(capability);
|
|
556
|
-
if (!fn) {
|
|
557
|
-
return fail();
|
|
558
|
-
}
|
|
559
|
-
const payloadJson = safeStringify(responsesPayload);
|
|
560
|
-
const toolsRawJson = safeStringify(toolsRaw ?? []);
|
|
561
|
-
if (!payloadJson || !toolsRawJson) {
|
|
562
|
-
return fail('json stringify failed');
|
|
563
|
-
}
|
|
564
|
-
try {
|
|
565
|
-
const raw = fn(payloadJson, toolsRawJson);
|
|
566
|
-
const nativeErrorMessage = raw instanceof Error
|
|
567
|
-
? raw.message
|
|
568
|
-
: raw && typeof raw === 'object' && 'message' in raw
|
|
569
|
-
? (() => {
|
|
570
|
-
const candidate = raw.message;
|
|
571
|
-
return typeof candidate === 'string' ? candidate : '';
|
|
572
|
-
})()
|
|
573
|
-
: '';
|
|
574
|
-
if (nativeErrorMessage) {
|
|
575
|
-
return fail(nativeErrorMessage);
|
|
576
|
-
}
|
|
577
|
-
if (typeof raw !== 'string' || !raw) {
|
|
578
|
-
return fail('empty result');
|
|
579
|
-
}
|
|
580
|
-
const parsed = parseRecord(raw);
|
|
581
|
-
return parsed ?? fail('invalid payload');
|
|
582
|
-
}
|
|
583
|
-
catch (error) {
|
|
584
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
585
|
-
return fail(reason);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
export function normalizeResponsesUsageWithNative(usageRaw) {
|
|
589
|
-
const capability = 'normalizeResponsesUsageJson';
|
|
590
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
591
|
-
if (isNativeDisabledByEnv()) {
|
|
592
|
-
return fail('native disabled');
|
|
593
|
-
}
|
|
594
|
-
const fn = readNativeFunction(capability);
|
|
595
|
-
if (!fn) {
|
|
596
|
-
return fail();
|
|
597
|
-
}
|
|
598
|
-
const usageJson = safeStringify(usageRaw ?? null);
|
|
599
|
-
if (!usageJson) {
|
|
600
|
-
return fail('json stringify failed');
|
|
601
|
-
}
|
|
602
|
-
try {
|
|
603
|
-
const raw = fn(usageJson);
|
|
604
|
-
const nativeErrorMessage = raw instanceof Error
|
|
605
|
-
? raw.message
|
|
606
|
-
: raw && typeof raw === 'object' && 'message' in raw
|
|
607
|
-
? (() => {
|
|
608
|
-
const candidate = raw.message;
|
|
609
|
-
return typeof candidate === 'string' ? candidate : '';
|
|
610
|
-
})()
|
|
611
|
-
: '';
|
|
612
|
-
if (nativeErrorMessage) {
|
|
613
|
-
return fail(nativeErrorMessage);
|
|
614
|
-
}
|
|
615
|
-
if (typeof raw !== 'string' || !raw) {
|
|
616
|
-
return fail('empty result');
|
|
617
|
-
}
|
|
618
|
-
try {
|
|
619
|
-
return JSON.parse(raw);
|
|
620
|
-
}
|
|
621
|
-
catch {
|
|
622
|
-
return fail('invalid payload');
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
catch (error) {
|
|
626
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
627
|
-
return fail(reason);
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
export function buildResponsesPayloadFromChatWithNative(payload, context = {}) {
|
|
631
|
-
const capability = 'buildResponsesPayloadFromChatJson';
|
|
632
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
633
|
-
if (isNativeDisabledByEnv()) {
|
|
634
|
-
return fail('native disabled');
|
|
635
|
-
}
|
|
636
|
-
const fn = readNativeFunction(capability);
|
|
637
|
-
if (!fn) {
|
|
638
|
-
return fail();
|
|
639
|
-
}
|
|
640
|
-
const payloadJson = safeStringify(payload);
|
|
641
|
-
const contextJson = safeStringify({
|
|
642
|
-
requestId: context.requestId,
|
|
643
|
-
toolsRaw: Array.isArray(context.toolsRaw) ? context.toolsRaw : [],
|
|
644
|
-
metadata: context.metadata,
|
|
645
|
-
parallelToolCalls: context.parallelToolCalls,
|
|
646
|
-
toolChoice: context.toolChoice,
|
|
647
|
-
include: context.include,
|
|
648
|
-
store: context.store,
|
|
649
|
-
stripHostManagedFields: context.stripHostManagedFields,
|
|
650
|
-
sourceForRetention: context.sourceForRetention
|
|
651
|
-
});
|
|
652
|
-
if (!payloadJson || !contextJson) {
|
|
653
|
-
return fail('json stringify failed');
|
|
654
|
-
}
|
|
655
|
-
try {
|
|
656
|
-
const raw = fn(payloadJson, contextJson);
|
|
657
|
-
const nativeErrorMessage = raw instanceof Error
|
|
658
|
-
? raw.message
|
|
659
|
-
: raw && typeof raw === 'object' && 'message' in raw
|
|
660
|
-
? (() => {
|
|
661
|
-
const candidate = raw.message;
|
|
662
|
-
return typeof candidate === 'string' ? candidate : '';
|
|
663
|
-
})()
|
|
664
|
-
: '';
|
|
665
|
-
if (nativeErrorMessage) {
|
|
666
|
-
return fail(nativeErrorMessage);
|
|
667
|
-
}
|
|
668
|
-
if (typeof raw !== 'string' || !raw) {
|
|
669
|
-
return fail('empty result');
|
|
670
|
-
}
|
|
671
|
-
const parsed = parseRecord(raw);
|
|
672
|
-
return parsed ?? fail('invalid payload');
|
|
673
|
-
}
|
|
674
|
-
catch (error) {
|
|
675
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
676
|
-
return fail(reason);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
export function looksLikeJsonStreamPrefixWithNative(firstChunkText) {
|
|
680
|
-
const capability = 'looksLikeJsonStreamPrefixJson';
|
|
681
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
682
|
-
if (isNativeDisabledByEnv()) {
|
|
683
|
-
return fail('native disabled');
|
|
684
|
-
}
|
|
685
|
-
const fn = readNativeFunction('looksLikeJsonStreamPrefixJson');
|
|
686
|
-
if (!fn) {
|
|
687
|
-
return fail();
|
|
688
|
-
}
|
|
689
|
-
try {
|
|
690
|
-
const raw = fn(String(firstChunkText || ''));
|
|
691
|
-
if (typeof raw !== 'string' || !raw) {
|
|
692
|
-
return fail('empty result');
|
|
693
|
-
}
|
|
694
|
-
const parsed = parseBoolean(raw);
|
|
695
|
-
return parsed === null ? fail('invalid payload') : parsed;
|
|
696
|
-
}
|
|
697
|
-
catch (error) {
|
|
698
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
699
|
-
return fail(reason);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
export function parseJsonObjectCandidateWithNative(rawText, maxBytes) {
|
|
703
|
-
const capability = 'parseJsonObjectCandidateJson';
|
|
704
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
705
|
-
if (isNativeDisabledByEnv()) {
|
|
706
|
-
return fail('native disabled');
|
|
707
|
-
}
|
|
708
|
-
const fn = readNativeFunction('parseJsonObjectCandidateJson');
|
|
709
|
-
if (!fn) {
|
|
710
|
-
return fail();
|
|
711
|
-
}
|
|
712
|
-
const bounded = Number.isFinite(maxBytes) && maxBytes > 0 ? Math.floor(maxBytes) : 0;
|
|
713
|
-
try {
|
|
714
|
-
const raw = fn(String(rawText || ''), bounded);
|
|
715
|
-
if (typeof raw !== 'string' || !raw) {
|
|
716
|
-
return fail('empty result');
|
|
717
|
-
}
|
|
718
|
-
const parsed = parseJsonObjectCandidate(raw);
|
|
719
|
-
return parsed === undefined ? fail('invalid payload') : parsed;
|
|
720
|
-
}
|
|
721
|
-
catch (error) {
|
|
722
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
723
|
-
return fail(reason);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
export function evaluateResponsesHostPolicyWithNative(context, targetProtocol) {
|
|
727
|
-
const capability = 'evaluateResponsesHostPolicyJson';
|
|
728
|
-
const fail = (reason) => failNativeRequired(capability, reason);
|
|
729
|
-
if (isNativeDisabledByEnv()) {
|
|
730
|
-
return fail('native disabled');
|
|
731
|
-
}
|
|
732
|
-
const fn = readNativeFunction(capability);
|
|
733
|
-
if (!fn) {
|
|
734
|
-
return fail();
|
|
735
|
-
}
|
|
736
|
-
const payloadJson = safeStringify({
|
|
737
|
-
context: context && typeof context === 'object' && !Array.isArray(context) ? context : undefined,
|
|
738
|
-
targetProtocol
|
|
739
|
-
});
|
|
740
|
-
if (!payloadJson) {
|
|
741
|
-
return fail('json stringify failed');
|
|
742
|
-
}
|
|
743
|
-
try {
|
|
744
|
-
const raw = fn(payloadJson);
|
|
745
|
-
if (typeof raw !== 'string' || !raw) {
|
|
746
|
-
return fail('empty result');
|
|
747
|
-
}
|
|
748
|
-
const parsed = parseResponsesHostPolicyResult(raw);
|
|
749
|
-
return parsed ?? fail('invalid payload');
|
|
750
|
-
}
|
|
751
|
-
catch (error) {
|
|
752
|
-
const reason = error instanceof Error ? error.message : String(error ?? 'unknown');
|
|
753
|
-
return fail(reason);
|
|
754
|
-
}
|
|
755
|
-
}
|