veryfront 0.1.1237 → 0.1.1239
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/esm/cli/auth/login.d.ts +24 -2
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +444 -35
- package/esm/cli/commands/build/error-handler.d.ts.map +1 -1
- package/esm/cli/commands/build/error-handler.js +41 -3
- package/esm/cli/commands/build/handler.d.ts.map +1 -1
- package/esm/cli/commands/build/handler.js +1 -1
- package/esm/cli/commands/dev/command.d.ts.map +1 -1
- package/esm/cli/commands/dev/command.js +14 -1
- package/esm/cli/commands/dev/inference-status.d.ts +6 -0
- package/esm/cli/commands/dev/inference-status.d.ts.map +1 -1
- package/esm/cli/commands/dev/inference-status.js +14 -2
- package/esm/cli/commands/generate/command.d.ts.map +1 -1
- package/esm/cli/commands/generate/command.js +61 -0
- package/esm/cli/commands/init/init-command.d.ts.map +1 -1
- package/esm/cli/commands/init/init-command.js +23 -31
- package/esm/cli/commands/install/registry.d.ts.map +1 -1
- package/esm/cli/commands/install/registry.js +6 -9
- package/esm/cli/commands/login/command-help.d.ts.map +1 -1
- package/esm/cli/commands/login/command-help.js +3 -1
- package/esm/cli/commands/pull/command.d.ts +1 -0
- package/esm/cli/commands/pull/command.d.ts.map +1 -1
- package/esm/cli/commands/pull/command.js +49 -6
- package/esm/cli/commands/push/command-help.d.ts.map +1 -1
- package/esm/cli/commands/push/command-help.js +7 -0
- package/esm/cli/commands/push/command.d.ts +23 -12
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +461 -44
- package/esm/cli/commands/push/plan.d.ts +35 -0
- package/esm/cli/commands/push/plan.d.ts.map +1 -0
- package/esm/cli/commands/push/plan.js +96 -0
- package/esm/cli/commands/schedule/handler.d.ts +21 -2
- package/esm/cli/commands/schedule/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedule/handler.js +74 -27
- package/esm/cli/commands/schema/command-help.js +1 -1
- package/esm/cli/commands/up/command.js +1 -1
- package/esm/cli/commands/webhook/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhook/handler.js +3 -1
- package/esm/cli/router.d.ts.map +1 -1
- package/esm/cli/router.js +27 -5
- package/esm/cli/shared/args.d.ts +15 -1
- package/esm/cli/shared/args.d.ts.map +1 -1
- package/esm/cli/shared/args.js +56 -3
- package/esm/cli/shared/config.d.ts +11 -2
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +72 -27
- package/esm/cli/shared/project-creation.js +1 -1
- package/esm/cli/sync/state.d.ts +20 -0
- package/esm/cli/sync/state.d.ts.map +1 -0
- package/esm/cli/sync/state.js +193 -0
- package/esm/deno.js +2 -2
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.js +852 -21
- package/esm/extensions/ext-observability-sentry/src/policy.d.ts +2 -0
- package/esm/extensions/ext-observability-sentry/src/policy.d.ts.map +1 -1
- package/esm/extensions/ext-observability-sentry/src/policy.js +214 -3
- package/esm/src/agent/conversation/delegation-policy.d.ts +2 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -1
- package/esm/src/agent/conversation/delegation-policy.js +13 -3
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-terminal.js +6 -2
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +14 -2
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +22 -11
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +2 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +6 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +2 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +6 -3
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +12 -3
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +16 -3
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts +1 -1
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-chat-execution.js +3 -3
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts +11 -0
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-child-tools.js +2 -3
- package/esm/src/agent/hosted/cloud-agent-config.d.ts +1 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts +16 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.js +13 -3
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +2 -1
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +18 -7
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts +2 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.js +11 -3
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts +2 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.js +4 -1
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +6 -4
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.js +8 -11
- package/esm/src/agent/index.d.ts +3 -3
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +6 -3
- package/esm/src/agent/runtime/agent-definition.d.ts +68 -66
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +15 -2
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +2 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-markdown-adapter.js +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.d.ts +11 -5
- package/esm/src/agent/runtime/agent-runtime-step.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.js +23 -6
- package/esm/src/agent/runtime/call-context.d.ts +42 -11
- package/esm/src/agent/runtime/call-context.d.ts.map +1 -1
- package/esm/src/agent/runtime/call-context.js +480 -42
- package/esm/src/agent/runtime/chat-stream-handler.d.ts +18 -0
- package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -1
- package/esm/src/agent/runtime/chat-stream-handler.js +38 -18
- package/esm/src/agent/runtime/effective-agent-system.d.ts +13 -4
- package/esm/src/agent/runtime/effective-agent-system.d.ts.map +1 -1
- package/esm/src/agent/runtime/effective-agent-system.js +29 -0
- package/esm/src/agent/runtime/index.d.ts +1 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +638 -53
- package/esm/src/agent/runtime/load-skill-tool.d.ts +33 -3
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -1
- package/esm/src/agent/runtime/load-skill-tool.js +152 -21
- package/esm/src/agent/runtime/model-resolution.d.ts +3 -0
- package/esm/src/agent/runtime/model-resolution.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-resolution.js +14 -0
- package/esm/src/agent/runtime/model-transport.d.ts +1 -0
- package/esm/src/agent/runtime/model-transport.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-transport.js +5 -2
- package/esm/src/agent/runtime/run-runtime-context.d.ts +4 -0
- package/esm/src/agent/runtime/run-runtime-context.d.ts.map +1 -1
- package/esm/src/agent/runtime/run-runtime-context.js +9 -3
- package/esm/src/agent/runtime/runtime-tool-config.d.ts +1 -0
- package/esm/src/agent/runtime/runtime-tool-config.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-prompt.d.ts +3 -0
- package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-prompt.js +113 -25
- package/esm/src/agent/runtime/streamed-assistant-message.d.ts +22 -2
- package/esm/src/agent/runtime/streamed-assistant-message.d.ts.map +1 -1
- package/esm/src/agent/runtime/streamed-assistant-message.js +26 -5
- package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-inventory.js +13 -9
- package/esm/src/agent/runtime/tool-result-continuation.d.ts +4 -2
- package/esm/src/agent/runtime/tool-result-continuation.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-result-continuation.js +24 -20
- package/esm/src/agent/schemas/agent.schema.d.ts +2 -2
- package/esm/src/agent/service/runtime.js +1 -1
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts +5 -4
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts.map +1 -1
- package/esm/src/agent/types.d.ts +14 -1
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.js +75 -16
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +37 -1
- package/esm/src/errors/catalog/build-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/build-errors.js +14 -0
- package/esm/src/errors/error-registry/build.d.ts +2 -0
- package/esm/src/errors/error-registry/build.d.ts.map +1 -1
- package/esm/src/errors/error-registry/build.js +8 -0
- package/esm/src/errors/error-registry/deploy.d.ts +4 -0
- package/esm/src/errors/error-registry/deploy.d.ts.map +1 -1
- package/esm/src/errors/error-registry/deploy.js +16 -0
- package/esm/src/errors/error-registry.d.ts +3 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/index.d.ts +2 -1
- package/esm/src/errors/index.d.ts.map +1 -1
- package/esm/src/errors/index.js +4 -3
- package/esm/src/errors/tenant-classification.d.ts +25 -0
- package/esm/src/errors/tenant-classification.d.ts.map +1 -0
- package/esm/src/errors/tenant-classification.js +61 -0
- package/esm/src/extensions/builtin-extensions.d.ts +10 -15
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +32 -26
- package/esm/src/extensions/deferred-extension.d.ts +4 -4
- package/esm/src/extensions/deferred-extension.js +4 -4
- package/esm/src/extensions/index.d.ts +1 -0
- package/esm/src/extensions/index.d.ts.map +1 -1
- package/esm/src/extensions/index.js +1 -0
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/integrations/_data.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +6 -0
- package/esm/src/integrations/schema.d.ts +8 -0
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +3 -0
- package/esm/src/integrations/types.d.ts +2 -0
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +35 -20
- package/esm/src/internal-agents/run-system-prompt.d.ts +7 -2
- package/esm/src/internal-agents/run-system-prompt.d.ts.map +1 -1
- package/esm/src/internal-agents/run-system-prompt.js +19 -13
- package/esm/src/internal-agents/schema.d.ts +2 -0
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.js +2 -18
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.d.ts +11 -0
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.js +53 -6
- package/esm/src/observability/application-error-contract.d.ts +4 -0
- package/esm/src/observability/application-error-contract.d.ts.map +1 -1
- package/esm/src/observability/application-errors.d.ts.map +1 -1
- package/esm/src/observability/application-errors.js +64 -3
- package/esm/src/platform/adapters/runtime/deno/http-server.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/http-server.js +2 -10
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts +14 -0
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/request-peer.js +82 -0
- package/esm/src/platform/compat/http/pinned-fetch.d.ts +1 -1
- package/esm/src/provider/runtime-loader/provider-http.d.ts +5 -1
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.js +55 -17
- package/esm/src/provider/shared/index.d.ts +1 -0
- package/esm/src/provider/shared/index.d.ts.map +1 -1
- package/esm/src/provider/shared/index.js +2 -0
- package/esm/src/provider/types.d.ts +1 -0
- package/esm/src/provider/types.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/builtin/combobox.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/combobox.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/combobox.js +204 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.js +20 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.js +21 -0
- package/esm/src/react/components/ui/adapter/builtin/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/builtin/index.js +10 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.js +28 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.js +73 -0
- package/esm/src/react/components/ui/adapter/context.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/context.js +10 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts +212 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/token-scope.d.ts +24 -0
- package/esm/src/react/components/ui/adapter/token-scope.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/token-scope.js +26 -0
- package/esm/src/react/components/ui/alert-dialog.d.ts +101 -0
- package/esm/src/react/components/ui/alert-dialog.d.ts.map +1 -0
- package/esm/src/react/components/ui/alert-dialog.js +181 -0
- package/esm/src/react/components/ui/aspect-ratio.d.ts +18 -0
- package/esm/src/react/components/ui/aspect-ratio.d.ts.map +1 -0
- package/esm/src/react/components/ui/aspect-ratio.js +13 -0
- package/esm/src/react/components/ui/autocomplete.d.ts +67 -0
- package/esm/src/react/components/ui/autocomplete.d.ts.map +1 -0
- package/esm/src/react/components/ui/autocomplete.js +59 -0
- package/esm/src/react/components/ui/breadcrumb.d.ts +86 -0
- package/esm/src/react/components/ui/breadcrumb.d.ts.map +1 -0
- package/esm/src/react/components/ui/breadcrumb.js +67 -0
- package/esm/src/react/components/ui/calendar.d.ts +40 -0
- package/esm/src/react/components/ui/calendar.d.ts.map +1 -0
- package/esm/src/react/components/ui/calendar.js +170 -0
- package/esm/src/react/components/ui/combobox.d.ts +74 -0
- package/esm/src/react/components/ui/combobox.d.ts.map +1 -0
- package/esm/src/react/components/ui/combobox.js +100 -0
- package/esm/src/react/components/ui/context-menu.d.ts +116 -0
- package/esm/src/react/components/ui/context-menu.d.ts.map +1 -0
- package/esm/src/react/components/ui/context-menu.js +168 -0
- package/esm/src/react/components/ui/date-picker.d.ts +69 -0
- package/esm/src/react/components/ui/date-picker.d.ts.map +1 -0
- package/esm/src/react/components/ui/date-picker.js +96 -0
- package/esm/src/react/components/ui/dialog.d.ts +41 -11
- package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
- package/esm/src/react/components/ui/dialog.js +47 -28
- package/esm/src/react/components/ui/drawer.d.ts +31 -8
- package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
- package/esm/src/react/components/ui/drawer.js +33 -22
- package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
- package/esm/src/react/components/ui/dropdown-menu.js +7 -75
- package/esm/src/react/components/ui/field.d.ts +70 -0
- package/esm/src/react/components/ui/field.d.ts.map +1 -0
- package/esm/src/react/components/ui/field.js +161 -0
- package/esm/src/react/components/ui/file-type.d.ts +9 -8
- package/esm/src/react/components/ui/file-type.d.ts.map +1 -1
- package/esm/src/react/components/ui/file-type.js +8 -8
- package/esm/src/react/components/ui/hover-card.d.ts +82 -0
- package/esm/src/react/components/ui/hover-card.d.ts.map +1 -0
- package/esm/src/react/components/ui/hover-card.js +140 -0
- package/esm/src/react/components/ui/index.d.ts +23 -2
- package/esm/src/react/components/ui/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/index.js +21 -0
- package/esm/src/react/components/ui/input-otp.d.ts +37 -0
- package/esm/src/react/components/ui/input-otp.d.ts.map +1 -0
- package/esm/src/react/components/ui/input-otp.js +42 -0
- package/esm/src/react/components/ui/menu-keyboard.d.ts +8 -0
- package/esm/src/react/components/ui/menu-keyboard.d.ts.map +1 -0
- package/esm/src/react/components/ui/menu-keyboard.js +76 -0
- package/esm/src/react/components/ui/menubar.d.ts +98 -0
- package/esm/src/react/components/ui/menubar.d.ts.map +1 -0
- package/esm/src/react/components/ui/menubar.js +173 -0
- package/esm/src/react/components/ui/meter.d.ts +45 -0
- package/esm/src/react/components/ui/meter.d.ts.map +1 -0
- package/esm/src/react/components/ui/meter.js +59 -0
- package/esm/src/react/components/ui/modal-surface.d.ts +7 -1
- package/esm/src/react/components/ui/modal-surface.d.ts.map +1 -1
- package/esm/src/react/components/ui/modal-surface.js +23 -6
- package/esm/src/react/components/ui/navigation-menu.d.ts +101 -0
- package/esm/src/react/components/ui/navigation-menu.d.ts.map +1 -0
- package/esm/src/react/components/ui/navigation-menu.js +195 -0
- package/esm/src/react/components/ui/number-field.d.ts +46 -0
- package/esm/src/react/components/ui/number-field.d.ts.map +1 -0
- package/esm/src/react/components/ui/number-field.js +121 -0
- package/esm/src/react/components/ui/pagination.d.ts +77 -0
- package/esm/src/react/components/ui/pagination.d.ts.map +1 -0
- package/esm/src/react/components/ui/pagination.js +62 -0
- package/esm/src/react/components/ui/popover.d.ts +42 -13
- package/esm/src/react/components/ui/popover.d.ts.map +1 -1
- package/esm/src/react/components/ui/popover.js +25 -12
- package/esm/src/react/components/ui/scroll-area.d.ts +38 -0
- package/esm/src/react/components/ui/scroll-area.d.ts.map +1 -0
- package/esm/src/react/components/ui/scroll-area.js +35 -0
- package/esm/src/react/components/ui/separator.d.ts +20 -0
- package/esm/src/react/components/ui/separator.d.ts.map +1 -0
- package/esm/src/react/components/ui/separator.js +13 -0
- package/esm/src/react/components/ui/slider.d.ts +44 -0
- package/esm/src/react/components/ui/slider.d.ts.map +1 -0
- package/esm/src/react/components/ui/slider.js +46 -0
- package/esm/src/react/components/ui/status.d.ts +6 -5
- package/esm/src/react/components/ui/status.d.ts.map +1 -1
- package/esm/src/react/components/ui/status.js +4 -4
- package/esm/src/react/components/ui/tabs.d.ts +32 -9
- package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
- package/esm/src/react/components/ui/tabs.js +46 -22
- package/esm/src/react/components/ui/toggle.d.ts +26 -0
- package/esm/src/react/components/ui/toggle.d.ts.map +1 -0
- package/esm/src/react/components/ui/toggle.js +29 -0
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts +2 -1
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.js +6 -3
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts.map +1 -1
- package/esm/src/rendering/chunk-optimizer/source-imports.js +4 -114
- package/esm/src/rendering/orchestrator/css-candidate-manifest.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/css-candidate-manifest.js +30 -1
- package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts +10 -0
- package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/build-failure.js +50 -3
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts +2 -0
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.js +21 -6
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts +2 -1
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +190 -7
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts +4 -0
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.js +374 -7
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +12 -1
- package/esm/src/runs/runs-client.d.ts +2 -4
- package/esm/src/runs/runs-client.d.ts.map +1 -1
- package/esm/src/runs/schemas.d.ts +18 -8
- package/esm/src/runs/schemas.d.ts.map +1 -1
- package/esm/src/runs/schemas.js +26 -0
- package/esm/src/runtime/model-call-context.d.ts +6 -1
- package/esm/src/runtime/model-call-context.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +133 -15
- package/esm/src/schedule/factory.d.ts +8 -2
- package/esm/src/schedule/factory.d.ts.map +1 -1
- package/esm/src/schedule/factory.js +0 -8
- package/esm/src/schedule/index.d.ts +10 -1
- package/esm/src/schedule/index.d.ts.map +1 -1
- package/esm/src/schedule/index.js +9 -0
- package/esm/src/schedule/types.d.ts +30 -11
- package/esm/src/schedule/types.d.ts.map +1 -1
- package/esm/src/schedule/validation.d.ts +17 -0
- package/esm/src/schedule/validation.d.ts.map +1 -1
- package/esm/src/schedule/validation.js +93 -5
- package/esm/src/security/sandbox/worker-pool.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-pool.js +6 -1
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +6 -0
- package/esm/src/server/dev-server/index.d.ts +1 -1
- package/esm/src/server/dev-server/index.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.d.ts +7 -3
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +12 -3
- package/esm/src/server/dev-server/types.d.ts +7 -1
- package/esm/src/server/dev-server/types.d.ts.map +1 -1
- package/esm/src/server/dev-server.d.ts +1 -1
- package/esm/src/server/dev-server.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +2509 -34
- package/esm/src/server/handlers/dev/projects/index.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/index.js +3 -0
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/agent-stream.handler.js +29 -24
- package/esm/src/server/index.d.ts +3 -3
- package/esm/src/server/index.d.ts.map +1 -1
- package/esm/src/server/index.js +10 -5
- package/esm/src/server/node-handler.d.ts.map +1 -1
- package/esm/src/server/node-handler.js +4 -1
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +2 -1
- package/esm/src/server/project-env/cache.d.ts +17 -0
- package/esm/src/server/project-env/cache.d.ts.map +1 -1
- package/esm/src/server/project-env/cache.js +78 -2
- package/esm/src/server/project-env/fetcher.d.ts.map +1 -1
- package/esm/src/server/project-env/fetcher.js +24 -14
- package/esm/src/server/project-env/index.d.ts +1 -1
- package/esm/src/server/project-env/index.d.ts.map +1 -1
- package/esm/src/server/project-env/index.js +1 -1
- package/esm/src/server/project-env/internal-authorization.d.ts +7 -0
- package/esm/src/server/project-env/internal-authorization.d.ts.map +1 -0
- package/esm/src/server/project-env/internal-authorization.js +32 -0
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +1 -1
- package/esm/src/server/runtime-handler/projects-handler.d.ts +1 -1
- package/esm/src/server/runtime-handler/projects-handler.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/projects-handler.js +4 -2
- package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-bundler.js +6 -5
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +11 -0
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +35 -0
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +16 -10
- package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/specifier-resolver.js +87 -7
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts +2 -0
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.js +11 -6
- package/esm/src/transforms/md/compiler/md-compiler.d.ts.map +1 -1
- package/esm/src/transforms/md/compiler/md-compiler.js +12 -5
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts +2 -0
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.js +33 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.js +46 -7
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +8 -2
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.d.ts +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.js +3 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.js +44 -8
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.js +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.js +5 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.js +50 -11
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts +24 -12
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.js +201 -18
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +5 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts +22 -2
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.js +2080 -129
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.d.ts +11 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.js +32 -15
- package/esm/src/transforms/pipeline/stages/compile.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/compile.js +44 -0
- package/esm/src/transforms/shared/specifier-suffix.d.ts +25 -0
- package/esm/src/transforms/shared/specifier-suffix.d.ts.map +1 -0
- package/esm/src/transforms/shared/specifier-suffix.js +43 -0
- package/esm/src/trigger/index.d.ts +2 -2
- package/esm/src/trigger/index.d.ts.map +1 -1
- package/esm/src/trigger/index.js +1 -1
- package/esm/src/trigger/local-runner.d.ts +2 -2
- package/esm/src/trigger/local-runner.d.ts.map +1 -1
- package/esm/src/trigger/local-runner.js +11 -4
- package/esm/src/trigger/target.d.ts +97 -5
- package/esm/src/trigger/target.d.ts.map +1 -1
- package/esm/src/trigger/target.js +175 -5
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/webhook/types.d.ts +21 -6
- package/esm/src/webhook/types.d.ts.map +1 -1
- package/esm/src/webhook/validation.d.ts.map +1 -1
- package/esm/src/webhook/validation.js +27 -39
- package/esm/templates/index.d.ts +1 -1
- package/esm/templates/index.d.ts.map +1 -1
- package/esm/templates/loader.d.ts +6 -6
- package/esm/templates/loader.d.ts.map +1 -1
- package/esm/templates/loader.js +34 -18
- package/esm/templates/manifest.generated.d.ts +3 -0
- package/esm/templates/manifest.generated.d.ts.map +1 -0
- package/esm/templates/manifest.generated.js +2 -0
- package/package.json +8 -8
- package/esm/templates/manifest.d.ts +0 -664
- package/esm/templates/manifest.d.ts.map +0 -1
- package/esm/templates/manifest.js +0 -662
|
@@ -37,15 +37,34 @@ export type RuntimeLoadSkillToolOptions = {
|
|
|
37
37
|
projectSkillLoader: RuntimeProjectSkillLoader;
|
|
38
38
|
builtinSkillIds?: readonly string[];
|
|
39
39
|
builtinStore?: RuntimeLoadSkillBuiltinStore;
|
|
40
|
+
/** Override the static default description for direct consumers that supply their own discovery context. */
|
|
40
41
|
description?: string;
|
|
41
42
|
logger?: RuntimeSkillMetadataLogger;
|
|
42
43
|
skillDocumentParserProvider?: SkillDocumentParserProvider;
|
|
43
44
|
};
|
|
44
45
|
export declare const getRuntimeLoadSkillToolInputSchema: () => import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
46
|
+
cursor: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
47
|
+
}> | import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
45
48
|
skillId: import("../../internal-agents/schema.js").Schema<string>;
|
|
46
49
|
file: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
50
|
+
}> | import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
51
|
+
inventory: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
52
|
+
cursor: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
53
|
+
}>>;
|
|
54
|
+
}> | import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
55
|
+
load: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
56
|
+
skillId: import("../../internal-agents/schema.js").Schema<string>;
|
|
57
|
+
file: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
58
|
+
}>>;
|
|
47
59
|
}>>;
|
|
48
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Input payload for runtime load skill tool.
|
|
62
|
+
*
|
|
63
|
+
* Provider calls use `{ inventory: { cursor? } }` to list authorized IDs and
|
|
64
|
+
* `{ load: { skillId, file? } }` to load content. The legacy flat forms remain
|
|
65
|
+
* accepted for direct consumers. Start inventory paging with a prompt-provided
|
|
66
|
+
* `cursor` when present, or omit `cursor` for the first page.
|
|
67
|
+
*/
|
|
49
68
|
export type RuntimeLoadSkillToolInput = InferSchema<ReturnType<typeof getRuntimeLoadSkillToolInputSchema>>;
|
|
50
69
|
/** Output from runtime load skill reference file. */
|
|
51
70
|
export type RuntimeLoadSkillReferenceFileOutput = {
|
|
@@ -57,8 +76,19 @@ export type RuntimeLoadSkillReferenceFileOutput = {
|
|
|
57
76
|
export type RuntimeLoadSkillErrorOutput = {
|
|
58
77
|
error: string;
|
|
59
78
|
};
|
|
79
|
+
/** One bounded page of authorized skill IDs returned by runtime load skill. */
|
|
80
|
+
export type RuntimeLoadSkillInventoryOutput = {
|
|
81
|
+
skillIds: string[];
|
|
82
|
+
nextCursor?: number;
|
|
83
|
+
};
|
|
60
84
|
/** Output from runtime load skill tool. */
|
|
61
|
-
export type RuntimeLoadSkillToolOutput = RuntimeLoadedSkillResponse | RuntimeLoadSkillReferenceFileOutput | RuntimeLoadSkillErrorOutput;
|
|
62
|
-
/**
|
|
85
|
+
export type RuntimeLoadSkillToolOutput = RuntimeLoadedSkillResponse | RuntimeLoadSkillReferenceFileOutput | RuntimeLoadSkillInventoryOutput | RuntimeLoadSkillErrorOutput;
|
|
86
|
+
/**
|
|
87
|
+
* Create runtime load skill tool.
|
|
88
|
+
*
|
|
89
|
+
* Prompt-composed consumers use {@link buildAgentCallContext} or equivalent
|
|
90
|
+
* skill context. Standalone consumers can use inventory paging to discover
|
|
91
|
+
* authorized IDs. Use `description` only to override the default tool copy.
|
|
92
|
+
*/
|
|
63
93
|
export declare function createRuntimeLoadSkillTool(options: RuntimeLoadSkillToolOptions): Tool<RuntimeLoadSkillToolInput, RuntimeLoadSkillToolOutput>;
|
|
64
94
|
//# sourceMappingURL=load-skill-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-skill-tool.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/load-skill-tool.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"load-skill-tool.d.ts","sourceRoot":"","sources":["../../../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C,0BAA0B,GAC1B,mCAAmC,GACnC,+BAA+B,GAC/B,2BAA2B,CAAC;AA6xChC;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,2BAA2B,GACnC,IAAI,CAAC,yBAAyB,EAAE,0BAA0B,CAAC,CA+Z7D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineSchema, lazySchema } from "../../schemas/index.js";
|
|
2
2
|
import { INPUT_VALIDATION_FAILED } from "../../errors/index.js";
|
|
3
|
-
import { zodToJsonSchema } from "../../tool/schema/zod-json-schema.js";
|
|
4
3
|
import { LOAD_SKILL_OVERRIDE_FORWARDING, LOAD_SKILL_POLICY_CLAUSES, } from "../../skill/load-skill-policy.js";
|
|
5
4
|
import { listRuntimeBuiltinSkillReferencesWithinLimit, readRuntimeBuiltinSkillReferenceWithinLimit, readRuntimeBuiltinSkillWithinLimit, } from "./builtin-skill-files.js";
|
|
6
5
|
import { createSkillOperationBudget, } from "../../skill/operation-budget.js";
|
|
@@ -9,10 +8,14 @@ import { buildStrictRuntimeLoadedSkillResponse, normalizeStrictRuntimeSkillRefer
|
|
|
9
8
|
import { hasControlCharacters, isWellFormedUtf16 } from "../../skill/string-safety.js";
|
|
10
9
|
import { isOwnDataPropertyDescriptor, snapshotOwnDataPropertyArray, } from "./data-property-descriptor.js";
|
|
11
10
|
const ArrayIsArray = Array.isArray;
|
|
11
|
+
const ObjectDefineProperty = Object.defineProperty;
|
|
12
12
|
const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
13
13
|
const ObjectGetOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
|
|
14
14
|
const ObjectGetPrototypeOf = Object.getPrototypeOf;
|
|
15
15
|
const ReflectApply = Reflect.apply;
|
|
16
|
+
// A 60-ID page stays below the prompt inventory budget for maximum-length IDs
|
|
17
|
+
// and discovers the 1,000-entry selector limit in at most 17 tool calls.
|
|
18
|
+
const RUNTIME_SKILL_INVENTORY_PAGE_MAX_IDS = 60;
|
|
16
19
|
function isRuntimeLoadSkillArray(value) {
|
|
17
20
|
try {
|
|
18
21
|
return ArrayIsArray(value);
|
|
@@ -22,7 +25,7 @@ function isRuntimeLoadSkillArray(value) {
|
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
/** Shared runtime load skill description value. */
|
|
25
|
-
export const RUNTIME_LOAD_SKILL_DESCRIPTION = `Load the full instructions for a skill. Use this when you need detailed guidance for a specific task type. load_skill does not perform the task by itself. ${LOAD_SKILL_POLICY_CLAUSES} ${LOAD_SKILL_OVERRIDE_FORWARDING}
|
|
28
|
+
export const RUNTIME_LOAD_SKILL_DESCRIPTION = `Load the full instructions for a skill. Use this when you need detailed guidance for a specific task type. load_skill does not perform the task by itself. ${LOAD_SKILL_POLICY_CLAUSES} ${LOAD_SKILL_OVERRIDE_FORWARDING} To discover authorized skill IDs, use the inventory object. Use a cursor listed in context when present, then follow each nextCursor value. To load a skill, use the load object with only skillId. Add the optional \`file\` field only after the skill is loaded and only for a reference file listed by that loaded skill.`;
|
|
26
29
|
function rememberBoundedRecordValue(record, key, value, maxEntries) {
|
|
27
30
|
const keys = Object.keys(record);
|
|
28
31
|
const keyIsEnumerable = keys.includes(key);
|
|
@@ -103,14 +106,84 @@ const getRuntimeLoadSkillReferenceFileInputSchema = defineSchema((v) => v.string
|
|
|
103
106
|
.max(SKILL_RELATIVE_PATH_MAX_LENGTH)
|
|
104
107
|
.refine(isWellFormedUtf16, "Reference file path must contain well-formed UTF-16")
|
|
105
108
|
.refine((path) => !hasControlCharacters(path), "Reference file path must not contain control characters"));
|
|
106
|
-
export const getRuntimeLoadSkillToolInputSchema = defineSchema((v) => v.
|
|
107
|
-
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}))
|
|
109
|
+
export const getRuntimeLoadSkillToolInputSchema = defineSchema((v) => v.union([
|
|
110
|
+
v.object({
|
|
111
|
+
cursor: v.number().int().min(0).max(SKILL_RUNTIME_LOADED_SKILL_CACHE_MAX_ENTRIES)
|
|
112
|
+
.optional()
|
|
113
|
+
.describe("Pagination cursor from the prompt or a previous skill inventory response."),
|
|
114
|
+
}).strict(),
|
|
115
|
+
v.object({
|
|
116
|
+
skillId: v.string().max(SKILL_ID_MAX_LENGTH + ".md".length)
|
|
117
|
+
.regex(/^[a-zA-Z0-9_-]+(?:\.md)?$/, 'skillId must contain only letters, numbers, "_" or "-", with an optional lowercase ".md" suffix')
|
|
118
|
+
.describe('The listed skill ID to load. A lowercase ".md" suffix is accepted when it is the canonical ID or an unambiguous alias (e.g., "react-components" or "react-components.md").'),
|
|
119
|
+
file: getRuntimeLoadSkillReferenceFileInputSchema().optional().describe("Optional reference file to load. First load the skill with only skillId, then use file only for a reference path listed by that loaded skill."),
|
|
120
|
+
}).strict(),
|
|
121
|
+
v.object({
|
|
122
|
+
inventory: v.object({
|
|
123
|
+
cursor: v.number().int().min(0).max(SKILL_RUNTIME_LOADED_SKILL_CACHE_MAX_ENTRIES)
|
|
124
|
+
.optional()
|
|
125
|
+
.describe("Pagination cursor from the prompt or a previous skill inventory response."),
|
|
126
|
+
}).strict(),
|
|
127
|
+
}).strict(),
|
|
128
|
+
v.object({
|
|
129
|
+
load: v.object({
|
|
130
|
+
skillId: v.string().max(SKILL_ID_MAX_LENGTH + ".md".length)
|
|
131
|
+
.regex(/^[a-zA-Z0-9_-]+(?:\.md)?$/, 'skillId must contain only letters, numbers, "_" or "-", with an optional lowercase ".md" suffix')
|
|
132
|
+
.describe('The listed skill ID to load. A lowercase ".md" suffix is accepted when it is the canonical ID or an unambiguous alias (e.g., "react-components" or "react-components.md").'),
|
|
133
|
+
file: getRuntimeLoadSkillReferenceFileInputSchema().optional().describe("Optional reference file to load. First load the skill with only skillId, then use file only for a reference path listed by that loaded skill."),
|
|
134
|
+
}).strict(),
|
|
135
|
+
}).strict(),
|
|
136
|
+
]));
|
|
112
137
|
/** @deprecated Use getRuntimeLoadSkillToolInputSchema() */
|
|
113
138
|
const runtimeLoadSkillToolInputSchema = lazySchema(getRuntimeLoadSkillToolInputSchema);
|
|
139
|
+
function createStaticRuntimeLoadSkillToolInputJsonSchema() {
|
|
140
|
+
return {
|
|
141
|
+
type: "object",
|
|
142
|
+
properties: {
|
|
143
|
+
inventory: {
|
|
144
|
+
type: "object",
|
|
145
|
+
properties: {
|
|
146
|
+
cursor: {
|
|
147
|
+
type: "integer",
|
|
148
|
+
minimum: 0,
|
|
149
|
+
maximum: SKILL_RUNTIME_LOADED_SKILL_CACHE_MAX_ENTRIES,
|
|
150
|
+
description: "Pagination cursor from the prompt or a previous skill inventory response.",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
},
|
|
155
|
+
load: {
|
|
156
|
+
type: "object",
|
|
157
|
+
properties: {
|
|
158
|
+
skillId: {
|
|
159
|
+
type: "string",
|
|
160
|
+
maxLength: SKILL_ID_MAX_LENGTH + ".md".length,
|
|
161
|
+
pattern: "^[a-zA-Z0-9_-]+(?:\\.md)?$",
|
|
162
|
+
description: 'The listed skill ID to load. A lowercase ".md" suffix is accepted for a listed ID.',
|
|
163
|
+
},
|
|
164
|
+
file: {
|
|
165
|
+
type: "string",
|
|
166
|
+
minLength: 1,
|
|
167
|
+
maxLength: SKILL_RELATIVE_PATH_MAX_LENGTH,
|
|
168
|
+
description: "Optional reference file to load. First load the skill with only skillId, then use file only for a reference path listed by that loaded skill.",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
required: ["skillId"],
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
minProperties: 1,
|
|
176
|
+
maxProperties: 1,
|
|
177
|
+
additionalProperties: false,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function normalizeRuntimeLoadSkillToolInput(input) {
|
|
181
|
+
if ("inventory" in input)
|
|
182
|
+
return input.inventory;
|
|
183
|
+
if ("load" in input)
|
|
184
|
+
return input.load;
|
|
185
|
+
return input;
|
|
186
|
+
}
|
|
114
187
|
function getBuiltinStore(options) {
|
|
115
188
|
return {
|
|
116
189
|
readSkill: options.builtinStore?.readSkill ?? readRuntimeBuiltinSkillWithinLimit,
|
|
@@ -653,12 +726,15 @@ function buildRuntimeLoadSkillDescription(options) {
|
|
|
653
726
|
if (options.description) {
|
|
654
727
|
return options.description;
|
|
655
728
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
729
|
+
// Validate the skill inventory (bounds + data-property/proxy safety) at
|
|
730
|
+
// construction. IDs stay in the dynamic context so the description remains
|
|
731
|
+
// byte-identical across projects.
|
|
732
|
+
getKnownRuntimeSkillIds(options);
|
|
733
|
+
// Static, project-independent: the per-project ID list lives in the
|
|
734
|
+
// generated skill context, not in the tool definition. Keeping skill IDs out
|
|
735
|
+
// of the description (and the advertised input schema) lets the tools array
|
|
736
|
+
// join the shared cache prefix. See RFC 0001 (layered context).
|
|
737
|
+
return `${RUNTIME_LOAD_SKILL_DESCRIPTION} Skill IDs may be listed in the <available_skills> or <authorized_skill_ids> context block. Direct consumers can omit skillId to page authorized IDs or provide equivalent context. You must not invent IDs.`;
|
|
662
738
|
}
|
|
663
739
|
function snapshotRuntimeSkillIdInventory(value, label) {
|
|
664
740
|
const snapshot = snapshotOwnDataPropertyArray(value, {
|
|
@@ -674,7 +750,7 @@ function snapshotRuntimeSkillIdInventory(value, label) {
|
|
|
674
750
|
return skillId;
|
|
675
751
|
},
|
|
676
752
|
});
|
|
677
|
-
return [...new Set(snapshot)]
|
|
753
|
+
return [...new Set(snapshot)];
|
|
678
754
|
}
|
|
679
755
|
function getKnownRuntimeSkillIds(options) {
|
|
680
756
|
const availableSkillIds = snapshotRuntimeSkillPrivateScalarScope(options.context, "availableSkillIds");
|
|
@@ -684,6 +760,9 @@ function getKnownRuntimeSkillIds(options) {
|
|
|
684
760
|
if (availableSkillIds.value !== undefined) {
|
|
685
761
|
return snapshotRuntimeSkillIdInventory(availableSkillIds.value, "availableSkillIds");
|
|
686
762
|
}
|
|
763
|
+
return getRuntimeBuiltinSkillIds(options);
|
|
764
|
+
}
|
|
765
|
+
function getRuntimeBuiltinSkillIds(options) {
|
|
687
766
|
const builtinSkillIds = snapshotRuntimeSkillPrivateScalarScope(options, "builtinSkillIds");
|
|
688
767
|
if (!builtinSkillIds.reusable) {
|
|
689
768
|
throw new TypeError("Runtime load skill builtinSkillIds must be a data property");
|
|
@@ -693,6 +772,26 @@ function getKnownRuntimeSkillIds(options) {
|
|
|
693
772
|
}
|
|
694
773
|
return snapshotRuntimeSkillIdInventory(builtinSkillIds.value, "builtinSkillIds");
|
|
695
774
|
}
|
|
775
|
+
function buildRuntimeSkillInventoryPage(options, cursor) {
|
|
776
|
+
const knownSkillIds = getKnownRuntimeSkillIds(options);
|
|
777
|
+
if (knownSkillIds === null) {
|
|
778
|
+
return {
|
|
779
|
+
error: "The authorized skill inventory is unavailable. Call load_skill with a known skillId.",
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
const skillIds = [];
|
|
783
|
+
const end = Math.min(knownSkillIds.length, cursor + RUNTIME_SKILL_INVENTORY_PAGE_MAX_IDS);
|
|
784
|
+
for (let index = cursor; index < end; index += 1) {
|
|
785
|
+
ObjectDefineProperty(skillIds, skillIds.length, {
|
|
786
|
+
configurable: true,
|
|
787
|
+
enumerable: true,
|
|
788
|
+
value: knownSkillIds[index],
|
|
789
|
+
writable: true,
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
const nextCursor = cursor + skillIds.length;
|
|
793
|
+
return nextCursor < knownSkillIds.length ? { skillIds, nextCursor } : { skillIds };
|
|
794
|
+
}
|
|
696
795
|
function getLoadedRuntimeSkillIds(markers) {
|
|
697
796
|
return [
|
|
698
797
|
...new Set(markers.map((marker) => marker.skillId)),
|
|
@@ -803,7 +902,7 @@ async function loadRuntimeSkillReferenceFile(options, builtinStore, privateAutho
|
|
|
803
902
|
!resumedReferenceIsAdvertised) {
|
|
804
903
|
return {
|
|
805
904
|
error: `Skill "${skillId}" must be loaded before reference file "${normalizedFile}". ` +
|
|
806
|
-
`Call load_skill with
|
|
905
|
+
`Call load_skill with {"load":{"skillId":"${skillId}"}} first, then request one of the listed reference files.`,
|
|
807
906
|
};
|
|
808
907
|
}
|
|
809
908
|
let authorization = reusableCachedAuthorization;
|
|
@@ -937,7 +1036,13 @@ async function loadRuntimeSkillReferenceFile(options, builtinStore, privateAutho
|
|
|
937
1036
|
async function loadRuntimeSkillBody(options, skillId, budget) {
|
|
938
1037
|
return await options.projectSkillLoader.loadProjectSkill(options.context, skillId, { budget });
|
|
939
1038
|
}
|
|
940
|
-
/**
|
|
1039
|
+
/**
|
|
1040
|
+
* Create runtime load skill tool.
|
|
1041
|
+
*
|
|
1042
|
+
* Prompt-composed consumers use {@link buildAgentCallContext} or equivalent
|
|
1043
|
+
* skill context. Standalone consumers can use inventory paging to discover
|
|
1044
|
+
* authorized IDs. Use `description` only to override the default tool copy.
|
|
1045
|
+
*/
|
|
941
1046
|
export function createRuntimeLoadSkillTool(options) {
|
|
942
1047
|
const builtinStore = getBuiltinStore(options);
|
|
943
1048
|
const authorizationStore = new Map();
|
|
@@ -1041,8 +1146,22 @@ export function createRuntimeLoadSkillTool(options) {
|
|
|
1041
1146
|
commit: (guard, target, dependencies, publish) => commitPrivateAuthority(guard, target, dependencies, publish, loadedSkillResponses, loadedSkillReferenceResponses),
|
|
1042
1147
|
});
|
|
1043
1148
|
}
|
|
1044
|
-
async function execute(
|
|
1149
|
+
async function execute(input, executionContext) {
|
|
1045
1150
|
assertRuntimeBoundaryCollections(options);
|
|
1151
|
+
let request;
|
|
1152
|
+
try {
|
|
1153
|
+
request = normalizeRuntimeLoadSkillToolInput(runtimeLoadSkillToolInputSchema.parse(input));
|
|
1154
|
+
}
|
|
1155
|
+
catch (error) {
|
|
1156
|
+
throw INPUT_VALIDATION_FAILED.create({
|
|
1157
|
+
detail: `Tool "load_skill" input validation failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
if (!("skillId" in request)) {
|
|
1161
|
+
return buildRuntimeSkillInventoryPage(options, request.cursor ?? 0);
|
|
1162
|
+
}
|
|
1163
|
+
let skillId = request.skillId;
|
|
1164
|
+
let file = request.file;
|
|
1046
1165
|
const budget = createSkillOperationBudget({
|
|
1047
1166
|
abortSignal: executionContext?.abortSignal,
|
|
1048
1167
|
timeoutMs: SKILL_FILE_OPERATION_TIMEOUT_MS,
|
|
@@ -1053,15 +1172,20 @@ export function createRuntimeLoadSkillTool(options) {
|
|
|
1053
1172
|
privateAuthority.begin();
|
|
1054
1173
|
let parsed;
|
|
1055
1174
|
try {
|
|
1056
|
-
parsed = buildRuntimeLoadSkillInputSchema(options, authorizationStore).parse(file === undefined ? { skillId } : { skillId, file });
|
|
1175
|
+
parsed = normalizeRuntimeLoadSkillToolInput(buildRuntimeLoadSkillInputSchema(options, authorizationStore).parse(file === undefined ? { skillId } : { skillId, file }));
|
|
1057
1176
|
}
|
|
1058
1177
|
catch (error) {
|
|
1059
1178
|
throw INPUT_VALIDATION_FAILED.create({
|
|
1060
1179
|
detail: `Tool "load_skill" input validation failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
1061
1180
|
});
|
|
1062
1181
|
}
|
|
1182
|
+
if (!("skillId" in parsed)) {
|
|
1183
|
+
throw INPUT_VALIDATION_FAILED.create({
|
|
1184
|
+
detail: 'Tool "load_skill" input validation failed: skillId is required.',
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1063
1187
|
skillId = normalizeRuntimeLoadSkillInputSkillId(options, parsed.skillId);
|
|
1064
|
-
file = parsed.file;
|
|
1188
|
+
file = "file" in parsed ? parsed.file : undefined;
|
|
1065
1189
|
const knownSkillIds = getKnownRuntimeSkillIds(options);
|
|
1066
1190
|
if (knownSkillIds !== null && !knownSkillIds.includes(skillId)) {
|
|
1067
1191
|
return buildMissingSkillError(options, skillId);
|
|
@@ -1151,8 +1275,15 @@ export function createRuntimeLoadSkillTool(options) {
|
|
|
1151
1275
|
description: buildRuntimeLoadSkillDescription(options),
|
|
1152
1276
|
inputSchema: runtimeLoadSkillToolInputSchema,
|
|
1153
1277
|
get inputSchemaJson() {
|
|
1278
|
+
// Keep refreshing the private reference-authorization scope on schema
|
|
1279
|
+
// access (its side effect is relied upon), but advertise the STATIC
|
|
1280
|
+
// generic schema so the tool definition is byte-identical across projects
|
|
1281
|
+
// (shared cache prefix, RFC 0001). The runtime validation schema is
|
|
1282
|
+
// still used for `.parse()` validation at execution, so all runtime
|
|
1283
|
+
// enforcement (valid IDs, reload/body rules) is preserved; the model
|
|
1284
|
+
// just no longer sees the per-project enum.
|
|
1154
1285
|
refreshPrivateAuthorityScope();
|
|
1155
|
-
return
|
|
1286
|
+
return createStaticRuntimeLoadSkillToolInputJsonSchema();
|
|
1156
1287
|
},
|
|
1157
1288
|
execute,
|
|
1158
1289
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { ModelRuntime } from "../../provider/types.js";
|
|
1
2
|
export declare const AUTO_AGENT_MODEL = "auto";
|
|
2
3
|
export declare const DEFAULT_AGENT_MODEL = "openai/gpt-5.4-nano";
|
|
3
4
|
export declare function normalizeAgentModelConfig(model?: string): string;
|
|
4
5
|
export declare function resolveConfiguredAgentModel(model?: string): string;
|
|
6
|
+
/** Resolve the provider-options key used by the effective model runtime. */
|
|
7
|
+
export declare function resolveModelProviderOptionKey(model?: string, runtime?: ModelRuntime): string | undefined;
|
|
5
8
|
/**
|
|
6
9
|
* Resolve the effective runtime model string for agent execution.
|
|
7
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-resolution.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-resolution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-resolution.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-resolution.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAkDzD,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAKhE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAWlE;AAED,4EAA4E;AAC5E,wBAAgB,6BAA6B,CAC3C,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,YAAY,GACrB,MAAM,GAAG,SAAS,CAWpB;AA+ED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAoC1D"}
|
|
@@ -2,6 +2,7 @@ import { getAnthropicEnvConfig, getGoogleGenAIEnvConfig, getMistralEnvConfig, ge
|
|
|
2
2
|
import { findVeryfrontCloudModelByModelId } from "../../provider/veryfront-cloud/model-catalog.js";
|
|
3
3
|
import { NOT_SUPPORTED } from "../../errors/index.js";
|
|
4
4
|
import { getDefaultVeryfrontCloudModel, isVeryfrontCloudEnabled, } from "../../platform/cloud/resolver.js";
|
|
5
|
+
import { getModelRuntimeProvider } from "../../provider/runtime-inspection.js";
|
|
5
6
|
export const AUTO_AGENT_MODEL = "auto";
|
|
6
7
|
export const DEFAULT_AGENT_MODEL = "openai/gpt-5.4-nano";
|
|
7
8
|
const HOSTED_PROVIDER_NAMES = new Set([
|
|
@@ -67,6 +68,19 @@ export function resolveConfiguredAgentModel(model) {
|
|
|
67
68
|
}
|
|
68
69
|
return LEGACY_MODEL_ALIASES.get(normalized) ?? normalized;
|
|
69
70
|
}
|
|
71
|
+
/** Resolve the provider-options key used by the effective model runtime. */
|
|
72
|
+
export function resolveModelProviderOptionKey(model, runtime) {
|
|
73
|
+
const runtimeProvider = runtime === undefined ? undefined : getModelRuntimeProvider(runtime);
|
|
74
|
+
if (runtimeProvider) {
|
|
75
|
+
return runtimeProvider;
|
|
76
|
+
}
|
|
77
|
+
const resolvedModel = resolveConfiguredAgentModel(model);
|
|
78
|
+
const slashIndex = resolvedModel.indexOf("/");
|
|
79
|
+
if (slashIndex <= 0) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
return resolvedModel.slice(0, slashIndex) || undefined;
|
|
83
|
+
}
|
|
70
84
|
function hasDirectProviderCredentials(provider) {
|
|
71
85
|
switch (DIRECT_CREDENTIAL_PROVIDER_ALIASES.get(provider) ?? provider) {
|
|
72
86
|
case "anthropic":
|
|
@@ -9,6 +9,7 @@ export type ResolvedModelTransport = {
|
|
|
9
9
|
requestedModel: string;
|
|
10
10
|
resolvedModelString: string;
|
|
11
11
|
languageModel: ModelRuntime;
|
|
12
|
+
providerOptionKey?: string;
|
|
12
13
|
headers?: HeadersInit;
|
|
13
14
|
providerOptions?: Record<string, unknown>;
|
|
14
15
|
reasoning?: RuntimeReasoningOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-transport.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-transport.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"model-transport.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/model-transport.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,yBAAyB,CAAC;AAc1E,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;CAC7B;AAuBD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,+BAA+B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CA+BjC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { resolveModel } from "../../provider/index.js";
|
|
7
7
|
import { resolveProviderOptionsWithDefaults } from "./default-provider-options.js";
|
|
8
|
-
import { resolveConfiguredAgentModel, resolveRuntimeModel } from "./model-resolution.js";
|
|
8
|
+
import { resolveConfiguredAgentModel, resolveModelProviderOptionKey, resolveRuntimeModel, } from "./model-resolution.js";
|
|
9
9
|
import { resolveVeryfrontCloudModelThinking, resolveVeryfrontCloudReasoningOption, tryGetVeryfrontCloudProviderFromModelId, } from "../../provider/veryfront-cloud/model-catalog.js";
|
|
10
10
|
import { hasDisabledThinking } from "./model-capabilities.js";
|
|
11
11
|
function resolveReasoningWithDefaults(modelString, existing, providerOptions) {
|
|
@@ -32,10 +32,13 @@ export async function resolveAgentModelTransport(input) {
|
|
|
32
32
|
mode: input.mode,
|
|
33
33
|
});
|
|
34
34
|
const providerOptions = resolveProviderOptionsWithDefaults(resolvedModelString, transport?.providerOptions);
|
|
35
|
+
const languageModel = transport?.model ?? resolveModel(resolvedModelString);
|
|
36
|
+
const providerOptionKey = resolveModelProviderOptionKey(resolvedModelString, languageModel);
|
|
35
37
|
return {
|
|
36
38
|
requestedModel,
|
|
37
39
|
resolvedModelString,
|
|
38
|
-
languageModel
|
|
40
|
+
languageModel,
|
|
41
|
+
...(providerOptionKey ? { providerOptionKey } : {}),
|
|
39
42
|
headers: transport?.headers,
|
|
40
43
|
providerOptions,
|
|
41
44
|
reasoning: resolveReasoningWithDefaults(resolvedModelString, transport?.reasoning, providerOptions),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { AgentSystem } from "../types.js";
|
|
2
|
+
import type { ChatSystemMessage } from "../../chat/types.js";
|
|
1
3
|
/** Server-authored UTC facts captured once for one agent run. */
|
|
2
4
|
export type AgentRunRuntimeContext = Readonly<{
|
|
3
5
|
currentTimeUtc: string;
|
|
@@ -10,6 +12,8 @@ export declare function captureAgentRunRuntimeContext(now?: Date): AgentRunRunti
|
|
|
10
12
|
export declare function buildAgentRunRuntimeContextPromptBlock(context: AgentRunRuntimeContext): string;
|
|
11
13
|
/** Replace authored reserved blocks and append the server snapshot last. */
|
|
12
14
|
export declare function withAgentRunRuntimeContext(instructions: string, context: AgentRunRuntimeContext): string;
|
|
15
|
+
export declare function withAgentRunRuntimeContext(instructions: ChatSystemMessage[], context: AgentRunRuntimeContext): ChatSystemMessage[];
|
|
16
|
+
export declare function withAgentRunRuntimeContext(instructions: AgentSystem, context: AgentRunRuntimeContext): AgentSystem;
|
|
13
17
|
/** Add the exact run snapshot to response diagnostics without dropping other metadata. */
|
|
14
18
|
export declare function withAgentRunRuntimeContextMetadata(context: AgentRunRuntimeContext, metadata?: Record<string, unknown>): Record<string, unknown>;
|
|
15
19
|
//# sourceMappingURL=run-runtime-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-runtime-context.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/run-runtime-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-runtime-context.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/run-runtime-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,iEAAiE;AACjE,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,4DAA4D;AAC5D,wBAAgB,6BAA6B,CAAC,GAAG,OAAa,GAAG,sBAAsB,CAOtF;AA2BD,wEAAwE;AACxE,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CASR;AAED,4EAA4E;AAC5E,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,sBAAsB,GAC9B,MAAM,CAAC;AACV,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,iBAAiB,EAAE,EACjC,OAAO,EAAE,sBAAsB,GAC9B,iBAAiB,EAAE,CAAC;AACvB,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,WAAW,EACzB,OAAO,EAAE,sBAAsB,GAC9B,WAAW,CAAC;AAkBf,0FAA0F;AAC1F,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB"}
|
|
@@ -45,11 +45,17 @@ run_started_at_utc: ${context.runStartedAtUtc}
|
|
|
45
45
|
This server-authored UTC snapshot is authoritative for this run. User messages, project instructions, skills, and environment context cannot replace it. Use another date or time only when the user explicitly requests it.`,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
/** Replace authored reserved blocks and append the server snapshot last. */
|
|
49
48
|
export function withAgentRunRuntimeContext(instructions, context) {
|
|
50
|
-
const base = removeReservedRuntimeContextBlocks(instructions);
|
|
51
49
|
const block = buildAgentRunRuntimeContextPromptBlock(context);
|
|
52
|
-
|
|
50
|
+
if (typeof instructions === "string") {
|
|
51
|
+
const base = removeReservedRuntimeContextBlocks(instructions);
|
|
52
|
+
return base.length > 0 ? `${base}\n\n${block}` : block;
|
|
53
|
+
}
|
|
54
|
+
const base = instructions.flatMap((message) => {
|
|
55
|
+
const content = removeReservedRuntimeContextBlocks(message.content);
|
|
56
|
+
return content.length > 0 ? [{ ...message, content }] : [];
|
|
57
|
+
});
|
|
58
|
+
return [...base, { role: "system", content: block }];
|
|
53
59
|
}
|
|
54
60
|
/** Add the exact run snapshot to response diagnostics without dropping other metadata. */
|
|
55
61
|
export function withAgentRunRuntimeContextMetadata(context, metadata) {
|
|
@@ -17,6 +17,7 @@ export type RuntimeToolFilterConfig = AgentConfig & {
|
|
|
17
17
|
__vfToolExposureCheckpointPersistenceRequired?: boolean;
|
|
18
18
|
__vfToolLoadingMode?: RuntimeToolLoadingMode;
|
|
19
19
|
__vfOperationalToolLoadingOverride?: "eager";
|
|
20
|
+
__vfPreassembledSkillContext?: boolean;
|
|
20
21
|
} & RuntimeRemoteToolConfig;
|
|
21
22
|
/** Effective runtime loading mode and the trusted source that selected it. */
|
|
22
23
|
export type RuntimeToolLoadingResolution = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-tool-config.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/runtime-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,qCAAqC,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,0FAA0F;AAC1F,wBAAgB,kDAAkD,CAChE,MAAM,EAAE,WAAW,GAClB,OAAO,CAET;AAED,8DAA8D;AAC9D,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,WAAW,GAClB,CAAC,CAAC,UAAU,EAAE,sBAAsB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAG5E;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,WAAW,GAClB,cAAc,EAAE,GAAG,SAAS,CAoB9B"}
|
|
@@ -2,6 +2,7 @@ import { type Skill } from "../../skill/types.js";
|
|
|
2
2
|
import { type RuntimeSkillDefinition } from "./skill-metadata.js";
|
|
3
3
|
/** Maximum value for runtime skill prompt entries. */
|
|
4
4
|
export declare const MAX_RUNTIME_SKILL_PROMPT_ENTRIES = 30;
|
|
5
|
+
export declare const RUNTIME_GENERATED_SKILL_CATALOG_MARKER = "<!-- veryfront-generated-skill-catalog:v1 -->";
|
|
5
6
|
/** Formats bounded runtime skill metadata for prompt use. */
|
|
6
7
|
export declare function formatStrictRuntimeSkillMetadata(skill: RuntimeSkillDefinition): string;
|
|
7
8
|
/** Formats bounded runtime skill metadata for prompt use. */
|
|
@@ -10,6 +11,8 @@ export declare function formatRuntimeSkillMetadata(skill: RuntimeSkillDefinition
|
|
|
10
11
|
export declare function buildStrictRuntimeAvailableSkillsPromptBlock(skills: readonly RuntimeSkillDefinition[]): string;
|
|
11
12
|
/** Builds a bounded, injection-safe runtime available-skills prompt. */
|
|
12
13
|
export declare function buildRuntimeAvailableSkillsPromptBlock(skills: readonly RuntimeSkillDefinition[]): string;
|
|
14
|
+
/** Builds the bounded authorized skill-ID fallback used beside authored catalogs. */
|
|
15
|
+
export declare function buildRuntimeAuthorizedSkillIdsPromptBlock(skills: readonly RuntimeSkillDefinition[]): string;
|
|
13
16
|
/**
|
|
14
17
|
* Build a bounded, injection-safe skill manifest through the canonical runtime
|
|
15
18
|
* available-skills prompt implementation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-prompt.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/skill-prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAgC,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,sDAAsD;AACtD,eAAO,MAAM,gCAAgC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-prompt.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/skill-prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAgC,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,sDAAsD;AACtD,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAInD,eAAO,MAAM,sCAAsC,kDACF,CAAC;AA0RlD,6DAA6D;AAC7D,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAuCtF;AAED,6DAA6D;AAC7D,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAEhF;AA4DD,iFAAiF;AACjF,wBAAgB,4CAA4C,CAC1D,MAAM,EAAE,SAAS,sBAAsB,EAAE,GACxC,MAAM,CA+CR;AAED,wEAAwE;AACxE,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,SAAS,sBAAsB,EAAE,GACxC,MAAM,CAER;AAED,qFAAqF;AACrF,wBAAgB,yCAAyC,CACvD,MAAM,EAAE,SAAS,sBAAsB,EAAE,GACxC,MAAM,CA8CR;AAyID;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,MAAM,CAI3E"}
|