@evalops/maestro 0.10.18 → 0.10.21
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/README.md +56 -1
- package/dist/agent/action-approval.d.ts +12 -2
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js +19 -32
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +1 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +26 -0
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts +2 -0
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +4 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +56 -4
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +163 -2
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/prompt-recovery.d.ts.map +1 -1
- package/dist/agent/prompt-recovery.js +1 -3
- package/dist/agent/prompt-recovery.js.map +1 -1
- package/dist/agent/providers/anthropic.d.ts.map +1 -1
- package/dist/agent/providers/anthropic.js +9 -1
- package/dist/agent/providers/anthropic.js.map +1 -1
- package/dist/agent/providers/codex-app-server.d.ts +12 -0
- package/dist/agent/providers/codex-app-server.d.ts.map +1 -0
- package/dist/agent/providers/codex-app-server.js +788 -0
- package/dist/agent/providers/codex-app-server.js.map +1 -0
- package/dist/agent/providers/google-gemini-cli.js +14 -3
- package/dist/agent/providers/google.js +22 -3
- package/dist/agent/providers/scripted.d.ts +11 -0
- package/dist/agent/providers/scripted.d.ts.map +1 -0
- package/dist/agent/providers/scripted.js +399 -0
- package/dist/agent/providers/scripted.js.map +1 -0
- package/dist/agent/providers/vertex.js +14 -3
- package/dist/agent/scenario-source.d.ts +19 -0
- package/dist/agent/scenario-source.d.ts.map +1 -0
- package/dist/agent/scenario-source.js +112 -0
- package/dist/agent/scenario-source.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +1 -1
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/swarm/executor.d.ts +25 -0
- package/dist/agent/swarm/executor.d.ts.map +1 -1
- package/dist/agent/swarm/executor.js +795 -20
- package/dist/agent/swarm/executor.js.map +1 -1
- package/dist/agent/swarm/runtime-events.d.ts +11 -0
- package/dist/agent/swarm/runtime-events.d.ts.map +1 -0
- package/dist/agent/swarm/runtime-events.js +26 -0
- package/dist/agent/swarm/runtime-events.js.map +1 -0
- package/dist/agent/swarm/types.d.ts +78 -0
- package/dist/agent/swarm/types.d.ts.map +1 -1
- package/dist/agent/swarm/types.js.map +1 -1
- package/dist/agent/tracing.d.ts +1 -1
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +17 -9
- package/dist/agent/tracing.js.map +1 -1
- package/dist/agent/transport/create-provider-stream.d.ts.map +1 -1
- package/dist/agent/transport/create-provider-stream.js +14 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/stable-stringify.d.ts +2 -0
- package/dist/agent/transport/stable-stringify.d.ts.map +1 -0
- package/dist/agent/transport/stable-stringify.js +14 -0
- package/dist/agent/transport/stable-stringify.js.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.js +2 -15
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +5 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +184 -36
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport.d.ts +8 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +1613 -68
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +170 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/enterprise-routes.d.ts.map +1 -1
- package/dist/api/enterprise-routes.js +34 -3
- package/dist/api/enterprise-routes.js.map +1 -1
- package/dist/app-server/in-process-client.d.ts +32 -0
- package/dist/app-server/in-process-client.d.ts.map +1 -0
- package/dist/app-server/in-process-client.js +73 -0
- package/dist/app-server/in-process-client.js.map +1 -0
- package/dist/app-server/session-api.d.ts +36 -0
- package/dist/app-server/session-api.d.ts.map +1 -0
- package/dist/app-server/session-api.js +713 -0
- package/dist/app-server/session-api.js.map +1 -0
- package/dist/approvals/platform-action-approval.d.ts +3 -1
- package/dist/approvals/platform-action-approval.d.ts.map +1 -1
- package/dist/approvals/platform-action-approval.js +16 -9
- package/dist/approvals/platform-action-approval.js.map +1 -1
- package/dist/approvals/service-client.d.ts.map +1 -1
- package/dist/approvals/service-client.js +7 -7
- package/dist/approvals/service-client.js.map +1 -1
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/agent-creation-setup.d.ts +4 -0
- package/dist/bootstrap/agent-creation-setup.d.ts.map +1 -1
- package/dist/bootstrap/agent-creation-setup.js +3 -1
- package/dist/bootstrap/agent-creation-setup.js.map +1 -1
- package/dist/bootstrap/auth-setup.js +1 -1
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.d.ts +6 -0
- package/dist/bootstrap/event-subscriptions-setup.d.ts.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.js +26 -2
- package/dist/bootstrap/event-subscriptions-setup.js.map +1 -1
- package/dist/bootstrap/model-resolution-setup.d.ts.map +1 -1
- package/dist/bootstrap/model-resolution-setup.js +4 -1
- package/dist/bootstrap/model-resolution-setup.js.map +1 -1
- package/dist/bootstrap/tools-setup.d.ts +2 -1
- package/dist/bootstrap/tools-setup.d.ts.map +1 -1
- package/dist/bootstrap/tools-setup.js +5 -1
- package/dist/bootstrap/tools-setup.js.map +1 -1
- package/dist/cli/args.d.ts +9 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +130 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/a2a.d.ts +9 -0
- package/dist/cli/commands/a2a.d.ts.map +1 -0
- package/dist/cli/commands/a2a.js +1714 -0
- package/dist/cli/commands/a2a.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +16 -2
- package/dist/cli/commands/agents.d.ts.map +1 -1
- package/dist/cli/commands/agents.js +223 -35
- package/dist/cli/commands/agents.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +1 -1
- package/dist/cli/commands/codex.d.ts.map +1 -1
- package/dist/cli/commands/codex.js +145 -39
- package/dist/cli/commands/codex.js.map +1 -1
- package/dist/cli/commands/context.d.ts +10 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +176 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +1 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -1
- package/dist/cli/commands/hosted-runner.js +9 -1
- package/dist/cli/commands/hosted-runner.js.map +1 -1
- package/dist/cli/commands/modes.d.ts +8 -0
- package/dist/cli/commands/modes.d.ts.map +1 -0
- package/dist/cli/commands/modes.js +151 -0
- package/dist/cli/commands/modes.js.map +1 -0
- package/dist/cli/commands/operating-plane.d.ts +14 -0
- package/dist/cli/commands/operating-plane.d.ts.map +1 -0
- package/dist/cli/commands/operating-plane.js +160 -0
- package/dist/cli/commands/operating-plane.js.map +1 -0
- package/dist/cli/commands/run.d.ts +87 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +356 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/scenario.d.ts +7 -0
- package/dist/cli/commands/scenario.d.ts.map +1 -0
- package/dist/cli/commands/scenario.js +195 -0
- package/dist/cli/commands/scenario.js.map +1 -0
- package/dist/cli/commands/skill.d.ts +7 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +286 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +55 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +446 -7
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless-runtime-selection.d.ts +38 -0
- package/dist/cli/headless-runtime-selection.d.ts.map +1 -0
- package/dist/cli/headless-runtime-selection.js +48 -0
- package/dist/cli/headless-runtime-selection.js.map +1 -0
- package/dist/cli/headless.d.ts +5 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +11 -1
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts +3 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +135 -30
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/system-prompt.d.ts +22 -4
- package/dist/cli/system-prompt.d.ts.map +1 -1
- package/dist/cli/system-prompt.js +224 -127
- package/dist/cli/system-prompt.js.map +1 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +7 -0
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/a2a-handlers.js +160 -0
- package/dist/cli-tui/commands/a2a-handlers.js.map +1 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -1
- package/dist/cli-tui/commands/command-catalog.js +15 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +10 -1
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +22 -10
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.js +6 -5
- package/dist/cli-tui/commands/mcp-handlers.js.map +1 -1
- package/dist/cli-tui/commands/types.d.ts +1 -0
- package/dist/cli-tui/commands/types.d.ts.map +1 -1
- package/dist/cli-tui/commands/types.js.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +4 -0
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.js +45 -6
- package/dist/cli-tui/commands/utility-handlers.js.map +1 -1
- package/dist/cli-tui/run/run-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/run-shell-command.js +14 -5
- package/dist/cli-tui/run/run-shell-command.js.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.js +14 -5
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +1 -0
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +6 -2
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +5 -0
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +8 -3
- package/dist/cli-tui/utils/commands/review-prompt.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +1 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +7 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +1 -0
- package/dist/cli-tui/utils/text-formatting.d.ts.map +1 -1
- package/dist/cli-tui/utils/text-formatting.js +5 -0
- package/dist/cli-tui/utils/text-formatting.js.map +1 -1
- package/dist/cli.js +49158 -26161
- package/dist/cli.js.map +1 -1
- package/dist/codex/app-server-client.d.ts +139 -0
- package/dist/codex/app-server-client.d.ts.map +1 -0
- package/dist/codex/app-server-client.js +352 -0
- package/dist/codex/app-server-client.js.map +1 -0
- package/dist/codex/compatibility.d.ts +48 -0
- package/dist/codex/compatibility.d.ts.map +1 -0
- package/dist/codex/compatibility.js +344 -0
- package/dist/codex/compatibility.js.map +1 -0
- package/dist/codex/subagent-dispatch-table.d.ts +66 -0
- package/dist/codex/subagent-dispatch-table.d.ts.map +1 -0
- package/dist/codex/subagent-dispatch-table.js +127 -0
- package/dist/codex/subagent-dispatch-table.js.map +1 -0
- package/dist/codex/subagent-workgraph.d.ts +56 -0
- package/dist/codex/subagent-workgraph.d.ts.map +1 -0
- package/dist/codex/subagent-workgraph.js +89 -0
- package/dist/codex/subagent-workgraph.js.map +1 -0
- package/dist/config/constants.d.ts +3 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +9 -0
- package/dist/config/constants.js.map +1 -1
- package/dist/config/feature-flags.d.ts +10 -1
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +17 -6
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/toml-config.d.ts +32 -0
- package/dist/config/toml-config.d.ts.map +1 -1
- package/dist/config/toml-config.js +152 -43
- package/dist/config/toml-config.js.map +1 -1
- package/dist/connectors/service-client.d.ts.map +1 -1
- package/dist/connectors/service-client.js +4 -7
- package/dist/connectors/service-client.js.map +1 -1
- package/dist/context/manifest-types.d.ts +59 -0
- package/dist/context/manifest-types.d.ts.map +1 -0
- package/dist/context/manifest-types.js +2 -0
- package/dist/context/manifest-types.js.map +1 -0
- package/dist/context/manifest.d.ts +16 -0
- package/dist/context/manifest.d.ts.map +1 -0
- package/dist/context/manifest.js +503 -0
- package/dist/context/manifest.js.map +1 -0
- package/dist/db/schema.d.ts +10 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/env-aliases.d.ts +13 -0
- package/dist/evalops/env-aliases.d.ts.map +1 -0
- package/dist/evalops/env-aliases.js +60 -0
- package/dist/evalops/env-aliases.js.map +1 -0
- package/dist/evalops/managed-context.d.ts.map +1 -1
- package/dist/evalops/managed-context.js +28 -62
- package/dist/evalops/managed-context.js.map +1 -1
- package/dist/guardian/config.d.ts.map +1 -1
- package/dist/guardian/config.js +1 -0
- package/dist/guardian/config.js.map +1 -1
- package/dist/guardian/runner.d.ts +2 -0
- package/dist/guardian/runner.d.ts.map +1 -1
- package/dist/guardian/runner.js +105 -2
- package/dist/guardian/runner.js.map +1 -1
- package/dist/guardian/types.d.ts +1 -0
- package/dist/guardian/types.d.ts.map +1 -1
- package/dist/guardian/types.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +267 -55
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +89 -7
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/manager.d.ts +5 -1
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +159 -4
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts.map +1 -1
- package/dist/mcp/platform-plugin.js +9 -26
- package/dist/mcp/platform-plugin.js.map +1 -1
- package/dist/mcp/schema.d.ts +15 -0
- package/dist/mcp/schema.d.ts.map +1 -1
- package/dist/mcp/schema.js +24 -0
- package/dist/mcp/schema.js.map +1 -1
- package/dist/mcp/tool-bridge.d.ts +39 -10
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +101 -24
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/mcp/types.d.ts +27 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/workspace-trust.d.ts +10 -0
- package/dist/mcp/workspace-trust.d.ts.map +1 -0
- package/dist/mcp/workspace-trust.js +295 -0
- package/dist/mcp/workspace-trust.js.map +1 -0
- package/dist/memory/service-client.d.ts +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +194 -9
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +66 -25
- package/dist/models/builtin.js.map +1 -1
- package/dist/models/config-loader.d.ts +10 -10
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +2 -0
- package/dist/models/config-loader.js.map +1 -1
- package/dist/models/registry.d.ts +1 -0
- package/dist/models/registry.d.ts.map +1 -1
- package/dist/models/registry.js +1 -0
- package/dist/models/registry.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/advisor-effort.d.ts +8 -0
- package/dist/node_modules/@evalops/contracts/dist/advisor-effort.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/advisor-effort.js +35 -0
- package/dist/node_modules/@evalops/contracts/dist/advisor-effort.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts +10 -0
- package/dist/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/delegation-prompt.js +48 -0
- package/dist/node_modules/@evalops/contracts/dist/delegation-prompt.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts +20 -0
- package/dist/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/guarded-files-settings.js +147 -0
- package/dist/node_modules/@evalops/contracts/dist/guarded-files-settings.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts +40 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-generated.js +122 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-generated.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +3273 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +666 -0
- package/dist/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +1124 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js +65 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +593 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js +218 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +2217 -0
- package/dist/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +879 -0
- package/dist/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +185 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts +28 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-constraints.js +71 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-constraints.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +140 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-server-request.js +70 -0
- package/dist/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/scenario.d.ts +191 -0
- package/dist/node_modules/@evalops/contracts/dist/scenario.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/scenario.js +4 -0
- package/dist/node_modules/@evalops/contracts/dist/scenario.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts +3614 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js +1082 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/package.json +30 -0
- package/dist/node_modules/@evalops/tui/package.json +58 -0
- package/dist/oauth/device-identity.d.ts.map +1 -1
- package/dist/oauth/device-identity.js +1 -3
- package/dist/oauth/device-identity.js.map +1 -1
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +2 -5
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +12 -12
- package/dist/opentelemetry.js.map +1 -1
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +11 -0
- package/dist/package-version.js.map +1 -0
- package/dist/packages/constants.d.ts +3 -0
- package/dist/packages/constants.d.ts.map +1 -0
- package/dist/packages/constants.js +3 -0
- package/dist/packages/constants.js.map +1 -0
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +2 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/search.d.ts.map +1 -1
- package/dist/packages/search.js +1 -1
- package/dist/packages/search.js.map +1 -1
- package/dist/platform/a2a-capability-market.d.ts +21 -0
- package/dist/platform/a2a-capability-market.d.ts.map +1 -0
- package/dist/platform/a2a-capability-market.js +176 -0
- package/dist/platform/a2a-capability-market.js.map +1 -0
- package/dist/platform/a2a-client.d.ts +119 -0
- package/dist/platform/a2a-client.d.ts.map +1 -1
- package/dist/platform/a2a-client.js +413 -24
- package/dist/platform/a2a-client.js.map +1 -1
- package/dist/platform/a2a-fleet.d.ts +41 -0
- package/dist/platform/a2a-fleet.d.ts.map +1 -0
- package/dist/platform/a2a-fleet.js +109 -0
- package/dist/platform/a2a-fleet.js.map +1 -0
- package/dist/platform/a2a-maestro-peer.d.ts +20 -0
- package/dist/platform/a2a-maestro-peer.d.ts.map +1 -0
- package/dist/platform/a2a-maestro-peer.js +176 -0
- package/dist/platform/a2a-maestro-peer.js.map +1 -0
- package/dist/platform/a2a-peer-pairing.d.ts +107 -0
- package/dist/platform/a2a-peer-pairing.d.ts.map +1 -0
- package/dist/platform/a2a-peer-pairing.js +489 -0
- package/dist/platform/a2a-peer-pairing.js.map +1 -0
- package/dist/platform/a2a-peer-registry.d.ts +68 -0
- package/dist/platform/a2a-peer-registry.d.ts.map +1 -0
- package/dist/platform/a2a-peer-registry.js +320 -0
- package/dist/platform/a2a-peer-registry.js.map +1 -0
- package/dist/platform/a2a-task-ledger.d.ts +86 -0
- package/dist/platform/a2a-task-ledger.d.ts.map +1 -0
- package/dist/platform/a2a-task-ledger.js +546 -0
- package/dist/platform/a2a-task-ledger.js.map +1 -0
- package/dist/platform/a2a-work-graph.d.ts +43 -0
- package/dist/platform/a2a-work-graph.d.ts.map +1 -0
- package/dist/platform/a2a-work-graph.js +267 -0
- package/dist/platform/a2a-work-graph.js.map +1 -0
- package/dist/platform/agent-registry-client.d.ts +327 -0
- package/dist/platform/agent-registry-client.d.ts.map +1 -0
- package/dist/platform/agent-registry-client.js +803 -0
- package/dist/platform/agent-registry-client.js.map +1 -0
- package/dist/platform/agent-runtime-client.d.ts +135 -1
- package/dist/platform/agent-runtime-client.d.ts.map +1 -1
- package/dist/platform/agent-runtime-client.js +467 -10
- package/dist/platform/agent-runtime-client.js.map +1 -1
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -1
- package/dist/platform/cerebro-facts-client.js +4 -7
- package/dist/platform/cerebro-facts-client.js.map +1 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +3 -12
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +68 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +68 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/fermata-eval-client.d.ts +195 -0
- package/dist/platform/fermata-eval-client.d.ts.map +1 -0
- package/dist/platform/fermata-eval-client.js +146 -0
- package/dist/platform/fermata-eval-client.js.map +1 -0
- package/dist/platform/fermata-scenario-suite.d.ts +99 -0
- package/dist/platform/fermata-scenario-suite.d.ts.map +1 -0
- package/dist/platform/fermata-scenario-suite.js +459 -0
- package/dist/platform/fermata-scenario-suite.js.map +1 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -1
- package/dist/platform/maestro-timeline-client.js +5 -11
- package/dist/platform/maestro-timeline-client.js.map +1 -1
- package/dist/platform/operating-plane-client.d.ts +156 -0
- package/dist/platform/operating-plane-client.d.ts.map +1 -0
- package/dist/platform/operating-plane-client.js +131 -0
- package/dist/platform/operating-plane-client.js.map +1 -0
- package/dist/platform/operating-plane-summary.d.ts +47 -0
- package/dist/platform/operating-plane-summary.d.ts.map +1 -0
- package/dist/platform/operating-plane-summary.js +209 -0
- package/dist/platform/operating-plane-summary.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -1
- package/dist/platform/tool-execution-client.js +4 -11
- package/dist/platform/tool-execution-client.js.map +1 -1
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +3 -5
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/prompts/system-prompt.d.ts +3 -0
- package/dist/prompts/system-prompt.d.ts.map +1 -1
- package/dist/prompts/system-prompt.js +13 -3
- package/dist/prompts/system-prompt.js.map +1 -1
- package/dist/prompts/types.d.ts +2 -0
- package/dist/prompts/types.d.ts.map +1 -1
- package/dist/prompts/types.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -1
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +2 -1
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +48 -25
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts.map +1 -1
- package/dist/remote-runner/attach-client.js +1 -0
- package/dist/remote-runner/attach-client.js.map +1 -1
- package/dist/remote-runner/client.d.ts.map +1 -1
- package/dist/remote-runner/client.js +4 -7
- package/dist/remote-runner/client.js.map +1 -1
- package/dist/rpc/rpc-types.d.ts.map +1 -1
- package/dist/rpc/rpc-types.js +1 -0
- package/dist/rpc/rpc-types.js.map +1 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +69 -6
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/attack-patterns.d.ts.map +1 -1
- package/dist/safety/attack-patterns.js +31 -14
- package/dist/safety/attack-patterns.js.map +1 -1
- package/dist/safety/bash-parser.d.ts.map +1 -1
- package/dist/safety/bash-parser.js +4 -3
- package/dist/safety/bash-parser.js.map +1 -1
- package/dist/safety/execpolicy.d.ts +15 -3
- package/dist/safety/execpolicy.d.ts.map +1 -1
- package/dist/safety/execpolicy.js +248 -37
- package/dist/safety/execpolicy.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts.map +1 -1
- package/dist/safety/governance-service-client.js +4 -7
- package/dist/safety/governance-service-client.js.map +1 -1
- package/dist/safety/guarded-files.d.ts +34 -0
- package/dist/safety/guarded-files.d.ts.map +1 -0
- package/dist/safety/guarded-files.js +372 -0
- package/dist/safety/guarded-files.js.map +1 -0
- package/dist/safety/loop-detector.d.ts.map +1 -1
- package/dist/safety/loop-detector.js +6 -1
- package/dist/safety/loop-detector.js.map +1 -1
- package/dist/safety/permission-profile.d.ts +47 -0
- package/dist/safety/permission-profile.d.ts.map +1 -0
- package/dist/safety/permission-profile.js +349 -0
- package/dist/safety/permission-profile.js.map +1 -0
- package/dist/safety/safety-middleware.d.ts +5 -1
- package/dist/safety/safety-middleware.d.ts.map +1 -1
- package/dist/safety/safety-middleware.js +3 -2
- package/dist/safety/safety-middleware.js.map +1 -1
- package/dist/safety/suspicious-patterns.d.ts.map +1 -1
- package/dist/safety/suspicious-patterns.js +12 -7
- package/dist/safety/suspicious-patterns.js.map +1 -1
- package/dist/safety/tool-categorization.js +1 -1
- package/dist/safety/tool-categorization.js.map +1 -1
- package/dist/safety/validators/path-policy-validator.d.ts.map +1 -1
- package/dist/safety/validators/path-policy-validator.js +7 -0
- package/dist/safety/validators/path-policy-validator.js.map +1 -1
- package/dist/sandbox/index.d.ts +6 -1
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +30 -4
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/native-sandbox.d.ts +3 -0
- package/dist/sandbox/native-sandbox.d.ts.map +1 -1
- package/dist/sandbox/native-sandbox.js +139 -18
- package/dist/sandbox/native-sandbox.js.map +1 -1
- package/dist/sentry.d.ts +17 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +91 -0
- package/dist/sentry.js.map +1 -0
- package/dist/server/agent-runtime-ledger.d.ts +141 -0
- package/dist/server/agent-runtime-ledger.d.ts.map +1 -0
- package/dist/server/agent-runtime-ledger.js +334 -0
- package/dist/server/agent-runtime-ledger.js.map +1 -0
- package/dist/server/agent-trajectory-inspection.d.ts +104 -0
- package/dist/server/agent-trajectory-inspection.d.ts.map +1 -0
- package/dist/server/agent-trajectory-inspection.js +168 -0
- package/dist/server/agent-trajectory-inspection.js.map +1 -0
- package/dist/server/agent-trajectory-replay.d.ts +56 -0
- package/dist/server/agent-trajectory-replay.d.ts.map +1 -0
- package/dist/server/agent-trajectory-replay.js +214 -0
- package/dist/server/agent-trajectory-replay.js.map +1 -0
- package/dist/server/agent-trajectory-scenarios.d.ts +109 -0
- package/dist/server/agent-trajectory-scenarios.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scenarios.js +822 -0
- package/dist/server/agent-trajectory-scenarios.js.map +1 -0
- package/dist/server/agent-trajectory-scorers.d.ts +61 -0
- package/dist/server/agent-trajectory-scorers.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scorers.js +162 -0
- package/dist/server/agent-trajectory-scorers.js.map +1 -0
- package/dist/server/agent-trajectory-validation.d.ts +7 -0
- package/dist/server/agent-trajectory-validation.d.ts.map +1 -0
- package/dist/server/agent-trajectory-validation.js +101 -0
- package/dist/server/agent-trajectory-validation.js.map +1 -0
- package/dist/server/agent-trajectory.d.ts +50 -0
- package/dist/server/agent-trajectory.d.ts.map +1 -0
- package/dist/server/agent-trajectory.js +159 -0
- package/dist/server/agent-trajectory.js.map +1 -0
- package/dist/server/app-context.d.ts +18 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +64 -27
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +6 -0
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +6 -0
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +69 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.js +309 -18
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.d.ts +16 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.js +43 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -1
- package/dist/server/handlers/mode.d.ts.map +1 -1
- package/dist/server/handlers/mode.js +3 -1
- package/dist/server/handlers/mode.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts.map +1 -1
- package/dist/server/handlers/pending-requests.js +336 -51
- package/dist/server/handlers/pending-requests.js.map +1 -1
- package/dist/server/handlers/platform-a2a-push.d.ts +6 -0
- package/dist/server/handlers/platform-a2a-push.d.ts.map +1 -0
- package/dist/server/handlers/platform-a2a-push.js +136 -0
- package/dist/server/handlers/platform-a2a-push.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +21 -1
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +9 -2
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +39 -0
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-agent-runtime-progress.d.ts +144 -0
- package/dist/server/hosted-agent-runtime-progress.d.ts.map +1 -0
- package/dist/server/hosted-agent-runtime-progress.js +1650 -0
- package/dist/server/hosted-agent-runtime-progress.js.map +1 -0
- package/dist/server/hosted-runner-lease.d.ts +41 -0
- package/dist/server/hosted-runner-lease.d.ts.map +1 -0
- package/dist/server/hosted-runner-lease.js +140 -0
- package/dist/server/hosted-runner-lease.js.map +1 -0
- package/dist/server/hosted-session-manager.d.ts +16 -8
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +98 -76
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/junit-xml.d.ts +2 -0
- package/dist/server/junit-xml.d.ts.map +1 -0
- package/dist/server/junit-xml.js +9 -0
- package/dist/server/junit-xml.js.map +1 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +6 -0
- package/dist/server/routes.js.map +1 -1
- package/dist/server/scenario-recorder.d.ts +56 -0
- package/dist/server/scenario-recorder.d.ts.map +1 -0
- package/dist/server/scenario-recorder.js +109 -0
- package/dist/server/scenario-recorder.js.map +1 -0
- package/dist/server/scripted-scenario-runner.d.ts +46 -0
- package/dist/server/scripted-scenario-runner.d.ts.map +1 -0
- package/dist/server/scripted-scenario-runner.js +190 -0
- package/dist/server/scripted-scenario-runner.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +6 -2
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +8 -2
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +9 -1
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +49 -4
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +2 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +4 -0
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/service-authority.d.ts +25 -0
- package/dist/services/service-authority.d.ts.map +1 -0
- package/dist/services/service-authority.js +143 -0
- package/dist/services/service-authority.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +2 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -1
- package/dist/services/workspace-config/service.js +4 -0
- package/dist/services/workspace-config/service.js.map +1 -1
- package/dist/session/manager.d.ts +8 -2
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +19 -4
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-branch.d.ts.map +1 -1
- package/dist/session/session-branch.js +5 -1
- package/dist/session/session-branch.js.map +1 -1
- package/dist/session/session-catalog.d.ts +7 -2
- package/dist/session/session-catalog.d.ts.map +1 -1
- package/dist/session/session-catalog.js +13 -2
- package/dist/session/session-catalog.js.map +1 -1
- package/dist/session/session-context.d.ts +6 -2
- package/dist/session/session-context.d.ts.map +1 -1
- package/dist/session/session-context.js +44 -4
- package/dist/session/session-context.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +32 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -0
- package/dist/session/session-graph-projection.js +133 -0
- package/dist/session/session-graph-projection.js.map +1 -0
- package/dist/session/types.d.ts +18 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +8 -0
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.generated.d.ts +3 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -1
- package/dist/session/wire-format.generated.js +20 -0
- package/dist/session/wire-format.generated.js.map +1 -1
- package/dist/skills/eval-harness.d.ts +38 -0
- package/dist/skills/eval-harness.d.ts.map +1 -0
- package/dist/skills/eval-harness.js +112 -0
- package/dist/skills/eval-harness.js.map +1 -0
- package/dist/skills/index.d.ts +5 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +5 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/linter.d.ts +36 -0
- package/dist/skills/linter.d.ts.map +1 -0
- package/dist/skills/linter.js +398 -0
- package/dist/skills/linter.js.map +1 -0
- package/dist/skills/loader.d.ts +36 -6
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +169 -86
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/package-contract.d.ts +45 -0
- package/dist/skills/package-contract.d.ts.map +1 -0
- package/dist/skills/package-contract.js +153 -0
- package/dist/skills/package-contract.js.map +1 -0
- package/dist/skills/runtime-activation.d.ts +68 -0
- package/dist/skills/runtime-activation.d.ts.map +1 -0
- package/dist/skills/runtime-activation.js +228 -0
- package/dist/skills/runtime-activation.js.map +1 -0
- package/dist/skills/service-client.d.ts.map +1 -1
- package/dist/skills/service-client.js +3 -4
- package/dist/skills/service-client.js.map +1 -1
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +2 -0
- package/dist/skills/tool.js.map +1 -1
- package/dist/skills/types.d.ts +14 -0
- package/dist/skills/types.d.ts.map +1 -1
- package/dist/skills/types.js.map +1 -1
- package/dist/telemetry/agent-operating-plane-context.d.ts +24 -0
- package/dist/telemetry/agent-operating-plane-context.d.ts.map +1 -0
- package/dist/telemetry/agent-operating-plane-context.js +54 -0
- package/dist/telemetry/agent-operating-plane-context.js.map +1 -0
- package/dist/telemetry/beacon.d.ts +24 -0
- package/dist/telemetry/beacon.d.ts.map +1 -0
- package/dist/telemetry/beacon.js +115 -0
- package/dist/telemetry/beacon.js.map +1 -0
- package/dist/telemetry/cli-command-aggregator.d.ts +36 -0
- package/dist/telemetry/cli-command-aggregator.d.ts.map +1 -0
- package/dist/telemetry/cli-command-aggregator.js +251 -0
- package/dist/telemetry/cli-command-aggregator.js.map +1 -0
- package/dist/telemetry/cli-startup.d.ts +21 -0
- package/dist/telemetry/cli-startup.d.ts.map +1 -0
- package/dist/telemetry/cli-startup.js +83 -0
- package/dist/telemetry/cli-startup.js.map +1 -0
- package/dist/telemetry/disablement.d.ts +13 -0
- package/dist/telemetry/disablement.d.ts.map +1 -0
- package/dist/telemetry/disablement.js +19 -0
- package/dist/telemetry/disablement.js.map +1 -0
- package/dist/telemetry/index.d.ts +6 -2
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +6 -2
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +52 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js +179 -3
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-event-catalog.d.ts +3 -1
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-catalog.js +2 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.js +74 -9
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +46 -11
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/mcp-beacon.d.ts +20 -0
- package/dist/telemetry/mcp-beacon.d.ts.map +1 -0
- package/dist/telemetry/mcp-beacon.js +54 -0
- package/dist/telemetry/mcp-beacon.js.map +1 -0
- package/dist/telemetry/metadata-normalization.d.ts +7 -0
- package/dist/telemetry/metadata-normalization.d.ts.map +1 -0
- package/dist/telemetry/metadata-normalization.js +189 -0
- package/dist/telemetry/metadata-normalization.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +5 -10
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/metrics.d.ts +123 -0
- package/dist/telemetry/metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics.js +184 -0
- package/dist/telemetry/metrics.js.map +1 -0
- package/dist/telemetry/turn-tracker.d.ts +1 -0
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +22 -1
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +31 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +229 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +39 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +160 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/testing/test-verification-hook.d.ts.map +1 -1
- package/dist/testing/test-verification-hook.js +34 -21
- package/dist/testing/test-verification-hook.js.map +1 -1
- package/dist/tools/apply-patch-parser.d.ts +26 -0
- package/dist/tools/apply-patch-parser.d.ts.map +1 -0
- package/dist/tools/apply-patch-parser.js +146 -0
- package/dist/tools/apply-patch-parser.js.map +1 -0
- package/dist/tools/apply-patch.d.ts +42 -0
- package/dist/tools/apply-patch.d.ts.map +1 -0
- package/dist/tools/apply-patch.js +648 -0
- package/dist/tools/apply-patch.js.map +1 -0
- package/dist/tools/ask-user.d.ts +1 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/background/tool-handler.d.ts +1 -0
- package/dist/tools/background/tool-handler.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -0
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/codesearch.d.ts +1 -0
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/conductor-client.d.ts +1 -0
- package/dist/tools/conductor-client.d.ts.map +1 -1
- package/dist/tools/conductor-client.js +63 -0
- package/dist/tools/conductor-client.js.map +1 -1
- package/dist/tools/diff.d.ts +1 -0
- package/dist/tools/diff.d.ts.map +1 -1
- package/dist/tools/edit.d.ts +1 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/extract-document.d.ts +1 -0
- package/dist/tools/extract-document.d.ts.map +1 -1
- package/dist/tools/find.d.ts +10 -0
- package/dist/tools/find.d.ts.map +1 -1
- package/dist/tools/find.js +236 -27
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/gh.d.ts +3 -0
- package/dist/tools/gh.d.ts.map +1 -1
- package/dist/tools/index.d.ts +50 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list.d.ts +1 -0
- package/dist/tools/list.d.ts.map +1 -1
- package/dist/tools/notebook.d.ts +1 -0
- package/dist/tools/notebook.d.ts.map +1 -1
- package/dist/tools/oracle.d.ts +1 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +17 -32
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/parallel-execution.d.ts +13 -2
- package/dist/tools/parallel-execution.d.ts.map +1 -1
- package/dist/tools/parallel-execution.js +178 -7
- package/dist/tools/parallel-execution.js.map +1 -1
- package/dist/tools/parallel-ripgrep.d.ts +1 -0
- package/dist/tools/parallel-ripgrep.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts +4 -0
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/read.d.ts +1 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/search.d.ts +1 -0
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/status.d.ts +1 -0
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/todo.d.ts +1 -0
- package/dist/tools/todo.d.ts.map +1 -1
- package/dist/tools/tool-dsl.d.ts +5 -1
- package/dist/tools/tool-dsl.d.ts.map +1 -1
- package/dist/tools/tool-dsl.js +1 -0
- package/dist/tools/tool-dsl.js.map +1 -1
- package/dist/tools/tool-result-cache.d.ts.map +1 -1
- package/dist/tools/tool-result-cache.js +1 -0
- package/dist/tools/tool-result-cache.js.map +1 -1
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +3 -0
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/tools/webfetch.d.ts +1 -0
- package/dist/tools/webfetch.d.ts.map +1 -1
- package/dist/tools/websearch.d.ts +1 -0
- package/dist/tools/websearch.d.ts.map +1 -1
- package/dist/tools/write.d.ts +1 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/utils/abort-error.d.ts +2 -0
- package/dist/utils/abort-error.d.ts.map +1 -0
- package/dist/utils/abort-error.js +7 -0
- package/dist/utils/abort-error.js.map +1 -0
- package/dist/utils/downstream.d.ts.map +1 -1
- package/dist/utils/downstream.js +4 -0
- package/dist/utils/downstream.js.map +1 -1
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +14 -3
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path-containment.d.ts +2 -0
- package/dist/utils/path-containment.d.ts.map +1 -0
- package/dist/utils/path-containment.js +14 -0
- package/dist/utils/path-containment.js.map +1 -0
- package/dist/utils/prompt-safe-text.d.ts +7 -0
- package/dist/utils/prompt-safe-text.d.ts.map +1 -0
- package/dist/utils/prompt-safe-text.js +44 -0
- package/dist/utils/prompt-safe-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +32 -7
- package/dist/web-server.js.map +1 -1
- package/dist/workspace/root-resolver.d.ts +4 -1
- package/dist/workspace/root-resolver.d.ts.map +1 -1
- package/dist/workspace/root-resolver.js +16 -6
- package/dist/workspace/root-resolver.js.map +1 -1
- package/package.json +283 -248
- package/skills/incident-triage/SKILL.md +40 -0
- package/skills/incident-triage/mcp.json +14 -0
- package/skills/incident-triage/reference/triage.md +20 -0
- package/skills/incident-triage/toolbox/incident-timeline +22 -0
- package/skills/incident-triage/toolbox/incident-timeline.cmd +16 -0
- package/skills/pr-review/SKILL.md +40 -0
- package/skills/pr-review/mcp.json +14 -0
- package/skills/pr-review/reference/rubric.md +20 -0
- package/skills/pr-review/toolbox/review-summary +20 -0
- package/skills/pr-review/toolbox/review-summary.cmd +14 -0
- package/skills/release-verification/SKILL.md +40 -0
- package/skills/release-verification/mcp.json +15 -0
- package/skills/release-verification/reference/checklist.md +21 -0
- package/skills/release-verification/toolbox/release-readiness +18 -0
- package/skills/release-verification/toolbox/release-readiness.cmd +12 -0
- package/node_modules/@bufbuild/protobuf/README.md +0 -44
- package/node_modules/@bufbuild/protobuf/dist/cjs/clone.d.ts +0 -6
- package/node_modules/@bufbuild/protobuf/dist/cjs/clone.js +0 -66
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/enum.js +0 -31
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/extension.js +0 -28
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.d.ts +0 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/file.js +0 -18
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/index.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/message.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/service.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.d.ts +0 -135
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/symbols.js +0 -43
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.d.ts +0 -75
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv1/types.js +0 -22
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.d.ts +0 -63
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/boot.js +0 -105
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/embed.js +0 -244
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.d.ts +0 -18
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/enum.js +0 -40
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/extension.js +0 -28
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.d.ts +0 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/file.js +0 -35
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.d.ts +0 -15
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/message.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.d.ts +0 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/restore-json-names.js +0 -29
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/scalar.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/service.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.d.ts +0 -135
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/symbols.js +0 -72
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.d.ts +0 -81
- package/node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/types.js +0 -22
- package/node_modules/@bufbuild/protobuf/dist/cjs/create.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/create.js +0 -259
- package/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts +0 -634
- package/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.js +0 -53
- package/node_modules/@bufbuild/protobuf/dist/cjs/equals.d.ts +0 -41
- package/node_modules/@bufbuild/protobuf/dist/cjs/equals.js +0 -204
- package/node_modules/@bufbuild/protobuf/dist/cjs/extensions.d.ts +0 -59
- package/node_modules/@bufbuild/protobuf/dist/cjs/extensions.js +0 -169
- package/node_modules/@bufbuild/protobuf/dist/cjs/fields.d.ts +0 -23
- package/node_modules/@bufbuild/protobuf/dist/cjs/fields.js +0 -45
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.d.ts +0 -34
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js +0 -241
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts +0 -56
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js +0 -619
- package/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts +0 -18
- package/node_modules/@bufbuild/protobuf/dist/cjs/index.js +0 -54
- package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts +0 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js +0 -33
- package/node_modules/@bufbuild/protobuf/dist/cjs/json-value.d.ts +0 -16
- package/node_modules/@bufbuild/protobuf/dist/cjs/json-value.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/cjs/merge.d.ts +0 -13
- package/node_modules/@bufbuild/protobuf/dist/cjs/merge.js +0 -70
- package/node_modules/@bufbuild/protobuf/dist/cjs/package.json +0 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts +0 -98
- package/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js +0 -130
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/error.js +0 -36
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.d.ts +0 -20
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/guard.js +0 -78
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/index.js +0 -41
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.d.ts +0 -30
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/names.js +0 -115
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.d.ts +0 -35
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/nested-types.js +0 -110
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts +0 -107
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.js +0 -376
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.d.ts +0 -19
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-check.js +0 -266
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.d.ts +0 -217
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect-types.js +0 -16
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/reflect.js +0 -545
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.d.ts +0 -21
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/scalar.js +0 -102
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.d.ts +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/unsafe.js +0 -149
- package/node_modules/@bufbuild/protobuf/dist/cjs/registry.d.ts +0 -98
- package/node_modules/@bufbuild/protobuf/dist/cjs/registry.js +0 -945
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.d.ts +0 -24
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-binary.js +0 -199
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts +0 -67
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js +0 -391
- package/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts +0 -128
- package/node_modules/@bufbuild/protobuf/dist/cjs/types.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.d.ts +0 -23
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/base64-encoding.js +0 -156
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts +0 -266
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js +0 -525
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.d.ts +0 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/index.js +0 -34
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.d.ts +0 -51
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/size-delimited.js +0 -153
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts +0 -28
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js +0 -61
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.d.ts +0 -13
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-format.js +0 -199
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.d.ts +0 -70
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/varint.js +0 -322
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.d.ts +0 -38
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/any.js +0 -75
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/duration.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/duration.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +0 -238
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/any_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +0 -537
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +0 -490
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -68
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +0 -91
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js +0 -60
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +0 -4143
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +0 -892
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +0 -161
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +0 -39
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +0 -424
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +0 -189
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +0 -126
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +0 -194
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +0 -106
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +0 -195
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +0 -59
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +0 -222
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +0 -722
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.js +0 -242
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +0 -330
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.d.ts +0 -19
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/index.js +0 -48
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.d.ts +0 -21
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/timestamp.js +0 -57
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts +0 -25
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js +0 -66
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.d.ts +0 -6
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -63
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +0 -26
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +0 -25
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.d.ts +0 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.d.ts +0 -135
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +0 -40
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.d.ts +0 -75
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.d.ts +0 -63
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +0 -101
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -239
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.d.ts +0 -18
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -25
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.d.ts +0 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +0 -32
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.d.ts +0 -10
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.d.ts +0 -15
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.d.ts +0 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +0 -26
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -63
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.d.ts +0 -135
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -69
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.d.ts +0 -81
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/create.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +0 -256
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +0 -634
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +0 -50
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.d.ts +0 -41
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -201
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.d.ts +0 -59
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -160
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.d.ts +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -41
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.d.ts +0 -34
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +0 -236
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +0 -56
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -611
- package/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +0 -18
- package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -28
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +0 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -30
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.d.ts +0 -16
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.d.ts +0 -13
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +0 -98
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -127
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +0 -31
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.d.ts +0 -20
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +0 -71
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.d.ts +0 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.d.ts +0 -30
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +0 -109
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.d.ts +0 -35
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +0 -105
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +0 -107
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +0 -369
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.d.ts +0 -19
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +0 -260
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.d.ts +0 -217
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +0 -540
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.d.ts +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +0 -97
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.d.ts +0 -39
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +0 -140
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.d.ts +0 -98
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +0 -939
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.d.ts +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +0 -195
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +0 -67
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -386
- package/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +0 -128
- package/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.d.ts +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +0 -152
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +0 -266
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +0 -520
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.d.ts +0 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -18
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.d.ts +0 -51
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -148
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +0 -28
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +0 -57
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.d.ts +0 -13
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +0 -195
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.d.ts +0 -70
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +0 -313
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.d.ts +0 -38
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -69
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.d.ts +0 -9
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -35
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +0 -238
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +0 -537
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +0 -490
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -65
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +0 -91
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -57
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +0 -4143
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +0 -888
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +0 -161
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +0 -39
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +0 -424
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +0 -189
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -123
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +0 -194
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -103
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +0 -43
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +0 -195
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -56
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +0 -222
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +0 -722
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -239
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +0 -330
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -64
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts +0 -19
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -32
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -50
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +0 -25
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +0 -61
- package/node_modules/@bufbuild/protobuf/package.json +0 -68
- package/node_modules/@evalops/contracts/README.md +0 -69
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts +0 -38
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js +0 -121
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js.map +0 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +0 -2998
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +0 -631
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +0 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +0 -1110
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/index.js +0 -59
- package/node_modules/@evalops/contracts/dist/index.js.map +0 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +0 -2126
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +0 -848
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +0 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +0 -182
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +0 -133
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +0 -68
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +0 -1
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +0 -3600
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +0 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +0 -1066
- package/node_modules/@evalops/contracts/dist/schemas.js.map +0 -1
- package/node_modules/@evalops/contracts/package.json +0 -30
- package/node_modules/@evalops/tui/README.md +0 -255
- package/node_modules/@evalops/tui/dist/testing/index.d.ts +0 -46
- package/node_modules/@evalops/tui/dist/testing/index.d.ts.map +0 -1
- package/node_modules/@evalops/tui/dist/testing/index.js +0 -46
- package/node_modules/@evalops/tui/dist/testing/index.js.map +0 -1
- package/node_modules/@evalops/tui/dist/testing/virtual-terminal.d.ts +0 -147
- package/node_modules/@evalops/tui/dist/testing/virtual-terminal.d.ts.map +0 -1
- package/node_modules/@evalops/tui/dist/testing/virtual-terminal.js +0 -269
- package/node_modules/@evalops/tui/dist/testing/virtual-terminal.js.map +0 -1
- package/node_modules/@evalops/tui/package.json +0 -58
- package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.d.ts +0 -55
- package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.js +0 -670
- package/node_modules/@sinclair/typebox/build/cjs/compiler/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/compiler/index.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/errors/errors.d.ts +0 -91
- package/node_modules/@sinclair/typebox/build/cjs/errors/errors.js +0 -599
- package/node_modules/@sinclair/typebox/build/cjs/errors/function.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/errors/function.js +0 -153
- package/node_modules/@sinclair/typebox/build/cjs/errors/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/errors/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/index.d.ts +0 -71
- package/node_modules/@sinclair/typebox/build/cjs/index.js +0 -97
- package/node_modules/@sinclair/typebox/build/cjs/parser/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/parser/index.js +0 -39
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.d.ts +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.js +0 -86
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.js +0 -45
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.js +0 -160
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.d.ts +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.js +0 -230
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.d.ts +0 -98
- package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.js +0 -71
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.js +0 -43
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.d.ts +0 -108
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.d.ts +0 -69
- package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/syntax/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/syntax/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.d.ts +0 -167
- package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.js +0 -491
- package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.d.ts +0 -162
- package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.js +0 -191
- package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.js +0 -54
- package/node_modules/@sinclair/typebox/build/cjs/system/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/system/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/system/policy.d.ts +0 -29
- package/node_modules/@sinclair/typebox/build/cjs/system/policy.js +0 -58
- package/node_modules/@sinclair/typebox/build/cjs/system/system.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/system/system.js +0 -43
- package/node_modules/@sinclair/typebox/build/cjs/type/any/any.d.ts +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/type/any/any.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/any/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/any/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/array/array.d.ts +0 -28
- package/node_modules/@sinclair/typebox/build/cjs/type/array/array.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/array/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/array/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.d.ts +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js +0 -41
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js +0 -73
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.d.ts +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js +0 -46
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/const/const.d.ts +0 -27
- package/node_modules/@sinclair/typebox/build/cjs/type/const/const.js +0 -58
- package/node_modules/@sinclair/typebox/build/cjs/type/const/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/const/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.d.ts +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.d.ts +0 -7
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js +0 -44
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js +0 -70
- package/node_modules/@sinclair/typebox/build/cjs/type/create/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/create/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/create/type.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/create/type.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/date/date.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/date/date.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/date/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/date/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.d.ts +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/error/error.d.ts +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/error/error.js +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/error/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/error/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js +0 -29
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js +0 -641
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.d.ts +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js +0 -29
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js +0 -24
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js +0 -27
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js +0 -29
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/function/function.d.ts +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/function/function.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/function/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/function/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js +0 -40
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.d.ts +0 -147
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js +0 -320
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.d.ts +0 -152
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js +0 -597
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.d.ts +0 -34
- package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js +0 -89
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.d.ts +0 -42
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/index.d.ts +0 -71
- package/node_modules/@sinclair/typebox/build/cjs/type/index.js +0 -88
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.d.ts +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js +0 -26
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js +0 -24
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.d.ts +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js +0 -36
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.d.ts +0 -52
- package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js +0 -98
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js +0 -44
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.d.ts +0 -50
- package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.js +0 -153
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js +0 -42
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.d.ts +0 -15
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.d.ts +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js +0 -30
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js +0 -68
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.d.ts +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.d.ts +0 -7
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.d.ts +0 -24
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js +0 -78
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js +0 -40
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.d.ts +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.d.ts +0 -47
- package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js +0 -107
- package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.d.ts +0 -59
- package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.js +0 -205
- package/node_modules/@sinclair/typebox/build/cjs/type/module/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/module/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.d.ts +0 -49
- package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/module/module.d.ts +0 -27
- package/node_modules/@sinclair/typebox/build/cjs/type/module/module.js +0 -38
- package/node_modules/@sinclair/typebox/build/cjs/type/never/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/never/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/never/never.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/never/never.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/not/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/not/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/not/not.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/not/not.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/null/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/null/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/null/null.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/null/null.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/number/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/number/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/number/number.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/number/number.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/object/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/object/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/object/object.d.ts +0 -51
- package/node_modules/@sinclair/typebox/build/cjs/type/object/object.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js +0 -26
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.d.ts +0 -36
- package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js +0 -75
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js +0 -26
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.d.ts +0 -7
- package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js +0 -44
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.d.ts +0 -35
- package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js +0 -111
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.d.ts +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js +0 -28
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.d.ts +0 -36
- package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js +0 -70
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js +0 -26
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/record/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/record/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/record/record.d.ts +0 -71
- package/node_modules/@sinclair/typebox/build/cjs/type/record/record.js +0 -123
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.d.ts +0 -41
- package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js +0 -35
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js +0 -39
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js +0 -35
- package/node_modules/@sinclair/typebox/build/cjs/type/required/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/required/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required.d.ts +0 -35
- package/node_modules/@sinclair/typebox/build/cjs/type/required/required.js +0 -110
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js +0 -44
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.d.ts +0 -33
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts +0 -29
- package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.d.ts +0 -28
- package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js +0 -59
- package/node_modules/@sinclair/typebox/build/cjs/type/static/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/static/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/static/static.d.ts +0 -39
- package/node_modules/@sinclair/typebox/build/cjs/type/static/static.js +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/string/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/string/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/string/string.d.ts +0 -25
- package/node_modules/@sinclair/typebox/build/cjs/type/string/string.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.d.ts +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.d.ts +0 -19
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js +0 -56
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.d.ts +0 -21
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js +0 -60
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.d.ts +0 -7
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js +0 -24
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js +0 -174
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js +0 -39
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js +0 -59
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.d.ts +0 -30
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js +0 -17
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.d.ts +0 -30
- package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js +0 -47
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/type/index.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/type/index.js +0 -51
- package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.d.ts +0 -64
- package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js +0 -104
- package/node_modules/@sinclair/typebox/build/cjs/type/type/json.d.ts +0 -208
- package/node_modules/@sinclair/typebox/build/cjs/type/type/json.js +0 -226
- package/node_modules/@sinclair/typebox/build/cjs/type/type/type.d.ts +0 -59
- package/node_modules/@sinclair/typebox/build/cjs/type/type/type.js +0 -129
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/union/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/union/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.d.ts +0 -13
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js +0 -40
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js +0 -4
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/type/union/union.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.d.ts +0 -8
- package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/type/void/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/type/void/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/type/void/void.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/type/void/void.js +0 -10
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.d.ts +0 -15
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.js +0 -55
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.js +0 -241
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/check/check.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/value/check/check.js +0 -476
- package/node_modules/@sinclair/typebox/build/cjs/value/check/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/check/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.js +0 -149
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.js +0 -60
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.js +0 -264
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/create/create.d.ts +0 -11
- package/node_modules/@sinclair/typebox/build/cjs/value/create/create.js +0 -474
- package/node_modules/@sinclair/typebox/build/cjs/value/create/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/create/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.js +0 -14
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/default/default.d.ts +0 -5
- package/node_modules/@sinclair/typebox/build/cjs/value/default/default.js +0 -176
- package/node_modules/@sinclair/typebox/build/cjs/value/default/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/default/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.d.ts +0 -32
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.js +0 -178
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.d.ts +0 -12
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js +0 -36
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.d.ts +0 -6
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.js +0 -15
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.d.ts +0 -2
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.js +0 -50
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.d.ts +0 -74
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js +0 -195
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.d.ts +0 -7
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js +0 -152
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/index.d.ts +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/value/index.js +0 -53
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.d.ts +0 -9
- package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.js +0 -104
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.js +0 -18
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.d.ts +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.js +0 -87
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.js +0 -38
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.d.ts +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.js +0 -126
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.d.ts +0 -22
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.js +0 -214
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.d.ts +0 -23
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.js +0 -225
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.js +0 -133
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.d.ts +0 -3
- package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.js +0 -20
- package/node_modules/@sinclair/typebox/build/cjs/value/value/index.d.ts +0 -1
- package/node_modules/@sinclair/typebox/build/cjs/value/value/index.js +0 -38
- package/node_modules/@sinclair/typebox/build/cjs/value/value/value.d.ts +0 -16
- package/node_modules/@sinclair/typebox/build/cjs/value/value/value.js +0 -39
- package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.d.mts +0 -55
- package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs +0 -663
- package/node_modules/@sinclair/typebox/build/esm/compiler/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/compiler/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/errors/errors.d.mts +0 -91
- package/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs +0 -592
- package/node_modules/@sinclair/typebox/build/esm/errors/function.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/errors/function.mjs +0 -147
- package/node_modules/@sinclair/typebox/build/esm/errors/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/errors/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/index.d.mts +0 -71
- package/node_modules/@sinclair/typebox/build/esm/index.mjs +0 -80
- package/node_modules/@sinclair/typebox/build/esm/parser/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/parser/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.d.mts +0 -23
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.mjs +0 -72
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.mjs +0 -17
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.mjs +0 -123
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.d.mts +0 -8
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.mjs +0 -223
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.d.mts +0 -98
- package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.mjs +0 -55
- package/node_modules/@sinclair/typebox/build/esm/parser/static/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/parser/static/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/parser/static/token.d.mts +0 -108
- package/node_modules/@sinclair/typebox/build/esm/parser/static/token.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/parser/static/types.d.mts +0 -69
- package/node_modules/@sinclair/typebox/build/esm/parser/static/types.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/syntax/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/syntax/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.d.mts +0 -167
- package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.mjs +0 -386
- package/node_modules/@sinclair/typebox/build/esm/syntax/parser.d.mts +0 -162
- package/node_modules/@sinclair/typebox/build/esm/syntax/parser.mjs +0 -78
- package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.mjs +0 -16
- package/node_modules/@sinclair/typebox/build/esm/system/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/system/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/system/policy.d.mts +0 -29
- package/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +0 -54
- package/node_modules/@sinclair/typebox/build/esm/system/system.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/system/system.mjs +0 -37
- package/node_modules/@sinclair/typebox/build/esm/type/any/any.d.mts +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/any/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/argument/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/array/array.d.mts +0 -28
- package/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/array/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.d.mts +0 -14
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +0 -37
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/clone/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/clone/type.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/clone/value.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +0 -36
- package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.d.mts +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +0 -42
- package/node_modules/@sinclair/typebox/build/esm/type/composite/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/computed/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/const/const.d.mts +0 -27
- package/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +0 -54
- package/node_modules/@sinclair/typebox/build/esm/type/const/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.d.mts +0 -23
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.d.mts +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +0 -33
- package/node_modules/@sinclair/typebox/build/esm/type/create/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/create/type.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +0 -15
- package/node_modules/@sinclair/typebox/build/esm/type/date/date.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/date/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/discard/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.d.mts +0 -14
- package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/enum/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/error/error.d.mts +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/error/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +0 -25
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +0 -635
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.d.mts +0 -14
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +0 -25
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +0 -23
- package/node_modules/@sinclair/typebox/build/esm/type/extends/index.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +0 -25
- package/node_modules/@sinclair/typebox/build/esm/type/extract/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/function/function.d.mts +0 -23
- package/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/function/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/guard/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.d.mts +0 -147
- package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +0 -235
- package/node_modules/@sinclair/typebox/build/esm/type/guard/type.d.mts +0 -152
- package/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +0 -509
- package/node_modules/@sinclair/typebox/build/esm/type/guard/value.d.mts +0 -34
- package/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +0 -70
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.d.mts +0 -42
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/index.d.mts +0 -71
- package/node_modules/@sinclair/typebox/build/esm/type/index.mjs +0 -71
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.d.mts +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +0 -22
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.d.mts +0 -14
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +0 -32
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.d.mts +0 -52
- package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +0 -91
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.d.mts +0 -50
- package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +0 -115
- package/node_modules/@sinclair/typebox/build/esm/type/integer/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +0 -38
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.d.mts +0 -15
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +0 -17
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.d.mts +0 -14
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +0 -26
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +0 -64
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.d.mts +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +0 -4
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.d.mts +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.d.mts +0 -24
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +0 -73
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +0 -35
- package/node_modules/@sinclair/typebox/build/esm/type/literal/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.d.mts +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.d.mts +0 -47
- package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +0 -102
- package/node_modules/@sinclair/typebox/build/esm/type/module/compute.d.mts +0 -59
- package/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +0 -166
- package/node_modules/@sinclair/typebox/build/esm/type/module/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/module/infer.d.mts +0 -49
- package/node_modules/@sinclair/typebox/build/esm/type/module/infer.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/module/module.d.mts +0 -27
- package/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +0 -32
- package/node_modules/@sinclair/typebox/build/esm/type/never/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/never/never.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/not/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/not/not.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/null/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/null/null.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/number/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/number/number.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/object/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/object/object.d.mts +0 -51
- package/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/omit/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +0 -22
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.d.mts +0 -36
- package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +0 -71
- package/node_modules/@sinclair/typebox/build/esm/type/optional/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +0 -22
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.d.mts +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/partial/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.d.mts +0 -35
- package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +0 -74
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.d.mts +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/pick/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +0 -24
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.d.mts +0 -36
- package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +0 -66
- package/node_modules/@sinclair/typebox/build/esm/type/promise/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +0 -22
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/record/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/record/record.d.mts +0 -71
- package/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +0 -116
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +0 -15
- package/node_modules/@sinclair/typebox/build/esm/type/ref/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.d.mts +0 -41
- package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/registry/format.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +0 -26
- package/node_modules/@sinclair/typebox/build/esm/type/registry/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/registry/type.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +0 -26
- package/node_modules/@sinclair/typebox/build/esm/type/required/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +0 -18
- package/node_modules/@sinclair/typebox/build/esm/type/required/required.d.mts +0 -35
- package/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +0 -73
- package/node_modules/@sinclair/typebox/build/esm/type/rest/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +0 -15
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.d.mts +0 -33
- package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/schema/index.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +0 -2
- package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.d.mts +0 -29
- package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/sets/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/sets/set.d.mts +0 -28
- package/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +0 -48
- package/node_modules/@sinclair/typebox/build/esm/type/static/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/static/static.d.mts +0 -39
- package/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/string/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/string/string.d.mts +0 -25
- package/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.d.mts +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.d.mts +0 -19
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +0 -49
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.d.mts +0 -21
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +0 -53
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.d.mts +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +0 -7
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +0 -167
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +0 -33
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +0 -55
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.d.mts +0 -30
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/transform/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.d.mts +0 -30
- package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +0 -40
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/type/index.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.d.mts +0 -64
- package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +0 -99
- package/node_modules/@sinclair/typebox/build/esm/type/type/json.d.mts +0 -208
- package/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +0 -221
- package/node_modules/@sinclair/typebox/build/esm/type/type/type.d.mts +0 -59
- package/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +0 -62
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/union/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +0 -5
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.d.mts +0 -13
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +0 -36
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/union/union.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +0 -10
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.d.mts +0 -8
- package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/type/void/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/type/void/void.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +0 -6
- package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.d.mts +0 -15
- package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.mjs +0 -49
- package/node_modules/@sinclair/typebox/build/esm/value/assert/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/assert/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.mjs +0 -235
- package/node_modules/@sinclair/typebox/build/esm/value/cast/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/cast/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/check/check.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs +0 -470
- package/node_modules/@sinclair/typebox/build/esm/value/check/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/check/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.mjs +0 -145
- package/node_modules/@sinclair/typebox/build/esm/value/clean/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/clean/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.mjs +0 -56
- package/node_modules/@sinclair/typebox/build/esm/value/clone/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/clone/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.mjs +0 -260
- package/node_modules/@sinclair/typebox/build/esm/value/convert/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/convert/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/create/create.d.mts +0 -11
- package/node_modules/@sinclair/typebox/build/esm/value/create/create.mjs +0 -468
- package/node_modules/@sinclair/typebox/build/esm/value/create/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/create/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.mjs +0 -10
- package/node_modules/@sinclair/typebox/build/esm/value/decode/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/decode/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/default/default.d.mts +0 -5
- package/node_modules/@sinclair/typebox/build/esm/value/default/default.mjs +0 -172
- package/node_modules/@sinclair/typebox/build/esm/value/default/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/default/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.d.mts +0 -32
- package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.mjs +0 -171
- package/node_modules/@sinclair/typebox/build/esm/value/delta/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/delta/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.d.mts +0 -12
- package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs +0 -29
- package/node_modules/@sinclair/typebox/build/esm/value/deref/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/deref/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.d.mts +0 -6
- package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.mjs +0 -11
- package/node_modules/@sinclair/typebox/build/esm/value/encode/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/encode/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.d.mts +0 -2
- package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.mjs +0 -46
- package/node_modules/@sinclair/typebox/build/esm/value/equal/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/equal/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.d.mts +0 -74
- package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +0 -158
- package/node_modules/@sinclair/typebox/build/esm/value/guard/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.d.mts +0 -7
- package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs +0 -146
- package/node_modules/@sinclair/typebox/build/esm/value/hash/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/hash/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/index.d.mts +0 -20
- package/node_modules/@sinclair/typebox/build/esm/value/index.mjs +0 -32
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.d.mts +0 -9
- package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.mjs +0 -98
- package/node_modules/@sinclair/typebox/build/esm/value/parse/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/parse/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.d.mts +0 -22
- package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.mjs +0 -81
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.d.mts +0 -22
- package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs +0 -115
- package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.d.mts +0 -22
- package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs +0 -207
- package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.d.mts +0 -23
- package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs +0 -218
- package/node_modules/@sinclair/typebox/build/esm/value/transform/has.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs +0 -129
- package/node_modules/@sinclair/typebox/build/esm/value/transform/index.d.mts +0 -3
- package/node_modules/@sinclair/typebox/build/esm/value/transform/index.mjs +0 -3
- package/node_modules/@sinclair/typebox/build/esm/value/value/index.d.mts +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/value/index.mjs +0 -1
- package/node_modules/@sinclair/typebox/build/esm/value/value/value.d.mts +0 -16
- package/node_modules/@sinclair/typebox/build/esm/value/value/value.mjs +0 -16
- package/node_modules/@sinclair/typebox/compiler/package.json +0 -4
- package/node_modules/@sinclair/typebox/errors/package.json +0 -4
- package/node_modules/@sinclair/typebox/license +0 -25
- package/node_modules/@sinclair/typebox/package.json +0 -116
- package/node_modules/@sinclair/typebox/parser/package.json +0 -4
- package/node_modules/@sinclair/typebox/readme.md +0 -1865
- package/node_modules/@sinclair/typebox/syntax/package.json +0 -4
- package/node_modules/@sinclair/typebox/system/package.json +0 -4
- package/node_modules/@sinclair/typebox/type/package.json +0 -4
- package/node_modules/@sinclair/typebox/value/package.json +0 -4
- package/node_modules/ansi-regex/index.d.ts +0 -33
- package/node_modules/ansi-regex/index.js +0 -14
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/package.json +0 -61
- package/node_modules/ansi-regex/readme.md +0 -66
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/package.json +0 -83
- package/node_modules/chalk/readme.md +0 -297
- package/node_modules/chalk/source/index.d.ts +0 -325
- package/node_modules/chalk/source/index.js +0 -225
- package/node_modules/chalk/source/utilities.js +0 -33
- package/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- package/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- package/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- package/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
- package/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- package/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
- package/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/node_modules/get-east-asian-width/index.js +0 -30
- package/node_modules/get-east-asian-width/license +0 -9
- package/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/node_modules/get-east-asian-width/lookup.js +0 -135
- package/node_modules/get-east-asian-width/package.json +0 -71
- package/node_modules/get-east-asian-width/readme.md +0 -65
- package/node_modules/get-east-asian-width/utilities.js +0 -24
- package/node_modules/marked/LICENSE.md +0 -44
- package/node_modules/marked/README.md +0 -107
- package/node_modules/marked/bin/main.js +0 -284
- package/node_modules/marked/bin/marked.js +0 -16
- package/node_modules/marked/lib/marked.d.ts +0 -759
- package/node_modules/marked/lib/marked.esm.js +0 -72
- package/node_modules/marked/lib/marked.esm.js.map +0 -7
- package/node_modules/marked/lib/marked.umd.js +0 -74
- package/node_modules/marked/lib/marked.umd.js.map +0 -7
- package/node_modules/marked/man/marked.1 +0 -113
- package/node_modules/marked/man/marked.1.md +0 -93
- package/node_modules/marked/package.json +0 -103
- package/node_modules/string-width/index.d.ts +0 -39
- package/node_modules/string-width/index.js +0 -203
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/package.json +0 -65
- package/node_modules/string-width/readme.md +0 -66
- package/node_modules/strip-ansi/index.d.ts +0 -15
- package/node_modules/strip-ansi/index.js +0 -19
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/package.json +0 -59
- package/node_modules/strip-ansi/readme.md +0 -37
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/key-value-tokens.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/key-value-tokens.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/key-value-tokens.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/key-value-tokens.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/mcp-settings.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/mcp-settings.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/mcp-settings.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/mcp-settings.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory-utils.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory-utils.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory-utils.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory-utils.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/memory.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/onboarding-utils.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/onboarding-utils.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/onboarding-utils.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/onboarding-utils.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/runtime-app-server.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/runtime-app-server.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/typebox-utils.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/typebox-utils.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/typebox-utils.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/typebox-utils.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/validators.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/validators.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/validators.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/contracts/dist/validators.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/autocomplete.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/autocomplete.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/autocomplete.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/autocomplete.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/editor.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/editor.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/editor.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/editor.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/input.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/input.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/input.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/input.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/layout.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/layout.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/layout.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/layout.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/loader.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/loader.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/loader.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/loader.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/markdown.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/markdown.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/markdown.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/markdown.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/scroll-container.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/scroll-container.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/scroll-container.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/scroll-container.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/select-list.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/select-list.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/select-list.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/select-list.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/spacer.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/spacer.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/spacer.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/spacer.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/status-bar.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/status-bar.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/status-bar.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/status-bar.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/text.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/text.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/text.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/text.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/truncated-text.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/truncated-text.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/truncated-text.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/components/truncated-text.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/index.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/index.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/index.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/index.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/keymap.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/keymap.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/keymap.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/keymap.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/mermaid-renderer.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/mermaid-renderer.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/mermaid-renderer.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/mermaid-renderer.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/style/code-highlighter.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/style/code-highlighter.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/style/code-highlighter.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/style/code-highlighter.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/terminal.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/terminal.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/terminal.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/terminal.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/tui.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/tui.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/tui.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/tui.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils/terminal-features.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils/terminal-features.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils/terminal-features.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils/terminal-features.js.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils.d.ts +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils.d.ts.map +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils.js +0 -0
- /package/{node_modules → dist/node_modules}/@evalops/tui/dist/utils.js.map +0 -0
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
*
|
|
27
27
|
* @module tools/parallel-execution
|
|
28
28
|
*/
|
|
29
|
+
import { isAbsolute, resolve } from "node:path";
|
|
29
30
|
/**
|
|
30
31
|
* Set of known read-only tool names.
|
|
31
32
|
*
|
|
@@ -74,6 +75,7 @@ export const READ_ONLY_TOOLS = new Set([
|
|
|
74
75
|
* operations on the same resources.
|
|
75
76
|
*/
|
|
76
77
|
export const WRITE_TOOLS = new Set([
|
|
78
|
+
"apply_patch",
|
|
77
79
|
"write",
|
|
78
80
|
"Write",
|
|
79
81
|
"edit",
|
|
@@ -92,7 +94,7 @@ export const WRITE_TOOLS = new Set([
|
|
|
92
94
|
* @param annotations - Optional tool annotations
|
|
93
95
|
* @returns true if the tool is read-only
|
|
94
96
|
*/
|
|
95
|
-
export function isReadOnlyTool(toolName, annotations) {
|
|
97
|
+
export function isReadOnlyTool(toolName, annotations, _source) {
|
|
96
98
|
// Check explicit annotation first
|
|
97
99
|
if (annotations?.readOnlyHint === true) {
|
|
98
100
|
return true;
|
|
@@ -103,6 +105,15 @@ export function isReadOnlyTool(toolName, annotations) {
|
|
|
103
105
|
// Fall back to known tool lists
|
|
104
106
|
return READ_ONLY_TOOLS.has(toolName);
|
|
105
107
|
}
|
|
108
|
+
export function isParallelSafeTool(toolName, annotations, source) {
|
|
109
|
+
if (isReadOnlyTool(toolName, annotations, source)) {
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
if (annotations?.destructiveHint === true) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
return source?.type === "mcp" && source.supportsParallelToolCalls === true;
|
|
116
|
+
}
|
|
106
117
|
/**
|
|
107
118
|
* Check if a tool is a write/mutating operation.
|
|
108
119
|
*
|
|
@@ -136,12 +147,18 @@ export function getOptimalConcurrency(toolCalls, tools, config) {
|
|
|
136
147
|
return baseConcurrency;
|
|
137
148
|
}
|
|
138
149
|
// Build a map of tool names to annotations
|
|
139
|
-
const
|
|
150
|
+
const toolMetadata = new Map();
|
|
140
151
|
for (const tool of tools) {
|
|
141
|
-
|
|
152
|
+
toolMetadata.set(tool.name, {
|
|
153
|
+
annotations: tool.annotations,
|
|
154
|
+
source: tool.source,
|
|
155
|
+
});
|
|
142
156
|
}
|
|
143
157
|
// Check if all tools are read-only
|
|
144
|
-
const allReadOnly = toolCalls.every((call) =>
|
|
158
|
+
const allReadOnly = toolCalls.every((call) => {
|
|
159
|
+
const metadata = toolMetadata.get(call.name);
|
|
160
|
+
return isReadOnlyTool(call.name, metadata?.annotations, metadata?.source);
|
|
161
|
+
});
|
|
145
162
|
if (allReadOnly) {
|
|
146
163
|
// Safe to use higher concurrency
|
|
147
164
|
return Math.min(maxReadOnlyConcurrency, toolCalls.length);
|
|
@@ -160,14 +177,18 @@ export function getOptimalConcurrency(toolCalls, tools, config) {
|
|
|
160
177
|
* @returns Object with readOnly and write arrays
|
|
161
178
|
*/
|
|
162
179
|
export function partitionToolCalls(toolCalls, tools) {
|
|
163
|
-
const
|
|
180
|
+
const toolMetadata = new Map();
|
|
164
181
|
for (const tool of tools) {
|
|
165
|
-
|
|
182
|
+
toolMetadata.set(tool.name, {
|
|
183
|
+
annotations: tool.annotations,
|
|
184
|
+
source: tool.source,
|
|
185
|
+
});
|
|
166
186
|
}
|
|
167
187
|
const readOnly = [];
|
|
168
188
|
const write = [];
|
|
169
189
|
for (const call of toolCalls) {
|
|
170
|
-
|
|
190
|
+
const metadata = toolMetadata.get(call.name);
|
|
191
|
+
if (isReadOnlyTool(call.name, metadata?.annotations, metadata?.source)) {
|
|
171
192
|
readOnly.push(call);
|
|
172
193
|
}
|
|
173
194
|
else {
|
|
@@ -176,6 +197,156 @@ export function partitionToolCalls(toolCalls, tools) {
|
|
|
176
197
|
}
|
|
177
198
|
return { readOnly, write };
|
|
178
199
|
}
|
|
200
|
+
const PATH_SCOPED_MUTATION_TOOLS = new Set([
|
|
201
|
+
"apply_patch",
|
|
202
|
+
"write",
|
|
203
|
+
"Write",
|
|
204
|
+
"edit",
|
|
205
|
+
"Edit",
|
|
206
|
+
"MultiEdit",
|
|
207
|
+
"notebook_edit",
|
|
208
|
+
"NotebookEdit",
|
|
209
|
+
]);
|
|
210
|
+
const PATH_ARGUMENT_KEYS = new Set([
|
|
211
|
+
"file",
|
|
212
|
+
"file_path",
|
|
213
|
+
"filePath",
|
|
214
|
+
"files",
|
|
215
|
+
"path",
|
|
216
|
+
"paths",
|
|
217
|
+
"target",
|
|
218
|
+
"targets",
|
|
219
|
+
"target_path",
|
|
220
|
+
"targetPath",
|
|
221
|
+
"notebook_path",
|
|
222
|
+
"notebookPath",
|
|
223
|
+
"output_path",
|
|
224
|
+
"outputPath",
|
|
225
|
+
]);
|
|
226
|
+
const PATH_ARGUMENT_CONTAINER_KEYS = new Set([
|
|
227
|
+
"edits",
|
|
228
|
+
"operations",
|
|
229
|
+
"patches",
|
|
230
|
+
]);
|
|
231
|
+
const PATCH_ARGUMENT_KEYS = new Set(["patch", "patch_text", "patchText"]);
|
|
232
|
+
function normalizeMutationPath(value, cwd = process.cwd()) {
|
|
233
|
+
const input = value.trim().replace(/\\/g, "/");
|
|
234
|
+
if (!input || /[*?[\]{}]/u.test(input)) {
|
|
235
|
+
return undefined;
|
|
236
|
+
}
|
|
237
|
+
const basePath = cwd.replace(/\\/g, "/");
|
|
238
|
+
let normalized = (isAbsolute(input) ? resolve(input) : resolve(basePath, input))
|
|
239
|
+
.replace(/\\/g, "/")
|
|
240
|
+
.replace(/\/+/g, "/");
|
|
241
|
+
normalized = normalized.toLowerCase();
|
|
242
|
+
if (normalized.length > 1) {
|
|
243
|
+
normalized = normalized.replace(/\/$/u, "");
|
|
244
|
+
}
|
|
245
|
+
return normalized || undefined;
|
|
246
|
+
}
|
|
247
|
+
function collectPathArgumentValues(value, paths, cwd, matchedKeys, stringIsPath) {
|
|
248
|
+
if (typeof value === "string") {
|
|
249
|
+
if (stringIsPath) {
|
|
250
|
+
const path = normalizeMutationPath(value, cwd);
|
|
251
|
+
if (path) {
|
|
252
|
+
paths.push(path);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
if (Array.isArray(value)) {
|
|
258
|
+
for (const entry of value) {
|
|
259
|
+
collectPathArgumentValues(entry, paths, cwd, matchedKeys, stringIsPath);
|
|
260
|
+
}
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (value && typeof value === "object") {
|
|
264
|
+
for (const [key, nested] of Object.entries(value)) {
|
|
265
|
+
if (PATH_ARGUMENT_KEYS.has(key)) {
|
|
266
|
+
matchedKeys.add(key);
|
|
267
|
+
collectPathArgumentValues(nested, paths, cwd, matchedKeys, true);
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
if (PATCH_ARGUMENT_KEYS.has(key)) {
|
|
271
|
+
matchedKeys.add(key);
|
|
272
|
+
collectPatchHeaderPaths(nested, paths, cwd, matchedKeys);
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
if (PATH_ARGUMENT_CONTAINER_KEYS.has(key)) {
|
|
276
|
+
matchedKeys.add(key);
|
|
277
|
+
collectPathArgumentValues(nested, paths, cwd, matchedKeys, false);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function collectPatchHeaderPaths(value, paths, cwd, matchedKeys) {
|
|
283
|
+
if (typeof value === "string") {
|
|
284
|
+
for (const match of value.matchAll(/^\*\*\* (?:Update File|Add File|Delete File|Move to):\s+(.+)$/gmu)) {
|
|
285
|
+
const rawPath = match[1]?.trim();
|
|
286
|
+
if (!rawPath)
|
|
287
|
+
continue;
|
|
288
|
+
const path = normalizeMutationPath(rawPath, cwd);
|
|
289
|
+
if (path) {
|
|
290
|
+
paths.push(path);
|
|
291
|
+
matchedKeys.add("patch");
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
if (Array.isArray(value)) {
|
|
297
|
+
for (const entry of value) {
|
|
298
|
+
collectPatchHeaderPaths(entry, paths, cwd, matchedKeys);
|
|
299
|
+
}
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
if (value && typeof value === "object") {
|
|
303
|
+
collectPathArgumentValues(value, paths, cwd, matchedKeys, false);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
export function getPathScopedMutation(toolCall, tool, cwd = process.cwd()) {
|
|
307
|
+
const annotations = tool?.annotations;
|
|
308
|
+
const source = annotations?.pathScopedMutationHint === true ? "annotation" : "known_tool";
|
|
309
|
+
const isPathScopedTool = annotations?.pathScopedMutationHint === true ||
|
|
310
|
+
PATH_SCOPED_MUTATION_TOOLS.has(tool?.name ?? toolCall.name);
|
|
311
|
+
if (!isPathScopedTool || annotations?.readOnlyHint === true) {
|
|
312
|
+
return undefined;
|
|
313
|
+
}
|
|
314
|
+
const args = toolCall.arguments &&
|
|
315
|
+
typeof toolCall.arguments === "object" &&
|
|
316
|
+
!Array.isArray(toolCall.arguments)
|
|
317
|
+
? toolCall.arguments
|
|
318
|
+
: undefined;
|
|
319
|
+
if (!args) {
|
|
320
|
+
return undefined;
|
|
321
|
+
}
|
|
322
|
+
const paths = [];
|
|
323
|
+
const matchedKeys = new Set();
|
|
324
|
+
for (const [key, value] of Object.entries(args)) {
|
|
325
|
+
if (PATH_ARGUMENT_KEYS.has(key)) {
|
|
326
|
+
matchedKeys.add(key);
|
|
327
|
+
collectPathArgumentValues(value, paths, cwd, matchedKeys, true);
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
if (PATCH_ARGUMENT_KEYS.has(key)) {
|
|
331
|
+
matchedKeys.add(key);
|
|
332
|
+
collectPatchHeaderPaths(value, paths, cwd, matchedKeys);
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
if (PATH_ARGUMENT_CONTAINER_KEYS.has(key)) {
|
|
336
|
+
matchedKeys.add(key);
|
|
337
|
+
collectPathArgumentValues(value, paths, cwd, matchedKeys, false);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
const uniquePaths = [...new Set(paths)];
|
|
341
|
+
return uniquePaths.length > 0
|
|
342
|
+
? { paths: uniquePaths, source, argumentKeys: [...matchedKeys].sort() }
|
|
343
|
+
: undefined;
|
|
344
|
+
}
|
|
345
|
+
export function pathScopesOverlap(left, right) {
|
|
346
|
+
return left.paths.some((leftPath) => right.paths.some((rightPath) => leftPath === rightPath ||
|
|
347
|
+
leftPath.startsWith(`${rightPath}/`) ||
|
|
348
|
+
rightPath.startsWith(`${leftPath}/`)));
|
|
349
|
+
}
|
|
179
350
|
/**
|
|
180
351
|
* Add read-only annotation to a tool definition.
|
|
181
352
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallel-execution.js","sourceRoot":"","sources":["../../src/tools/parallel-execution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IACtC,eAAe;IACf,MAAM;IACN,MAAM;IACN,oBAAoB;IACpB,IAAI;IACJ,MAAM;IACN,eAAe;IACf,MAAM;IACN,MAAM;IACN,iBAAiB;IACjB,MAAM;IACN,QAAQ;IACR,kBAAkB;IAClB,6BAA6B;IAC7B,MAAM;IACN,cAAc;IACd,QAAQ;IACR,sBAAsB;IACtB,kBAAkB;IAClB,0BAA0B;IAC1B,uBAAuB;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,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACP,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;IACF,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAsB,IAAO;IACxD,OAAO;QACN,GAAG,IAAI;QACP,WAAW,EAAE;YACZ,GAAG,IAAI,CAAC,WAAW;YACnB,YAAY,EAAE,IAAI;SAClB;KACD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAsB,IAAO;IAC3D,OAAO;QACN,GAAG,IAAI;QACP,WAAW,EAAE;YACZ,GAAG,IAAI,CAAC,WAAW;YACnB,eAAe,EAAE,IAAI;SACrB;KACD,CAAC;AACH,CAAC","sourcesContent":["/**\n * Parallel Execution - Optimized concurrent tool execution for read-only operations\n *\n * This module provides utilities for safely increasing concurrency when executing\n * read-only tools. Read-only tools can run in parallel without risk of conflicts,\n * enabling significant latency improvements for batch operations.\n *\n * ## Read-Only Tools\n *\n * Tools are considered read-only if they:\n * - Do not modify files or system state\n * - Are idempotent (same input = same output)\n * - Have no side effects on external systems\n *\n * Examples: read, list, find, search, diff, status\n *\n * ## Usage\n *\n * ```typescript\n * import { isReadOnlyTool, getOptimalConcurrency } from './parallel-execution.js';\n *\n * const tools = [readTool, listTool, findTool];\n * const allReadOnly = tools.every(t => isReadOnlyTool(t.name));\n * const concurrency = getOptimalConcurrency(tools, baseConcurrency);\n * ```\n *\n * @module tools/parallel-execution\n */\n\nimport type { AgentTool, ToolAnnotations } from \"../agent/types.js\";\n\n/**\n * Set of known read-only tool names.\n *\n * These tools are safe to execute in parallel because they:\n * - Only read data, never modify it\n * - Have no side effects\n * - Are idempotent\n */\nexport const READ_ONLY_TOOLS = new Set([\n\t// File reading\n\t\"Read\",\n\t\"read\",\n\t// Directory listing\n\t\"LS\",\n\t\"list\",\n\t// File finding\n\t\"Glob\",\n\t\"find\",\n\t// Content search\n\t\"Grep\",\n\t\"search\",\n\t\"parallel_ripgrep\",\n\t// Git operations (read-only)\n\t\"diff\",\n\t// System info\n\t\"status\",\n\t// Document extraction\n\t\"extract_document\",\n\t// VS Code read operations\n\t\"vscode_get_definition\",\n\t\"vscode_find_references\",\n\t\"vscode_get_diagnostics\",\n\t\"vscode_read_file_range\",\n\t// JetBrains read operations\n\t\"jetbrains_get_definition\",\n\t\"jetbrains_find_references\",\n\t\"jetbrains_get_diagnostics\",\n\t\"jetbrains_read_file_range\",\n\t// LSP operations (read-only)\n\t\"LSP\",\n]);\n\n/**\n * Set of known write/mutating tool names.\n *\n * These tools modify state and should not run concurrently with\n * operations on the same resources.\n */\nexport const WRITE_TOOLS = new Set([\n\t\"write\",\n\t\"Write\",\n\t\"edit\",\n\t\"Edit\",\n\t\"MultiEdit\",\n\t\"notebook_edit\",\n\t\"NotebookEdit\",\n\t\"bash\",\n\t\"Bash\",\n\t\"background_tasks\",\n]);\n\n/**\n * Check if a tool is read-only based on its name or annotations.\n *\n * @param toolName - Name of the tool\n * @param annotations - Optional tool annotations\n * @returns true if the tool is read-only\n */\nexport function isReadOnlyTool(\n\ttoolName: string,\n\tannotations?: ToolAnnotations,\n): boolean {\n\t// Check explicit annotation first\n\tif (annotations?.readOnlyHint === true) {\n\t\treturn true;\n\t}\n\tif (annotations?.readOnlyHint === false) {\n\t\treturn false;\n\t}\n\n\t// Fall back to known tool lists\n\treturn READ_ONLY_TOOLS.has(toolName);\n}\n\n/**\n * Check if a tool is a write/mutating operation.\n *\n * @param toolName - Name of the tool\n * @param annotations - Optional tool annotations\n * @returns true if the tool modifies state\n */\nexport function isWriteTool(\n\ttoolName: string,\n\tannotations?: ToolAnnotations,\n): boolean {\n\t// Check explicit annotation\n\tif (annotations?.destructiveHint === true) {\n\t\treturn true;\n\t}\n\n\treturn WRITE_TOOLS.has(toolName);\n}\n\n/**\n * Configuration for parallel execution optimization.\n */\nexport interface ParallelExecutionConfig {\n\t/** Base concurrency limit (default: 2) */\n\tbaseConcurrency?: number;\n\t/** Maximum concurrency for read-only batches (default: 8) */\n\tmaxReadOnlyConcurrency?: number;\n\t/** Whether to enable parallel optimization (default: true) */\n\tenabled?: boolean;\n}\n\n/**\n * Get the optimal concurrency level for a batch of tool calls.\n *\n * When all tools in a batch are read-only, we can safely increase\n * concurrency to improve latency. Write operations force serialization.\n *\n * @param toolCalls - Array of tool calls to analyze\n * @param tools - Tool definitions (for annotation lookup)\n * @param config - Parallel execution configuration\n * @returns Optimal concurrency level for this batch\n */\nexport function getOptimalConcurrency(\n\ttoolCalls: Array<{ name: string }>,\n\ttools: AgentTool[],\n\tconfig?: ParallelExecutionConfig,\n): number {\n\tconst baseConcurrency = config?.baseConcurrency ?? 2;\n\tconst maxReadOnlyConcurrency = config?.maxReadOnlyConcurrency ?? 8;\n\tconst enabled = config?.enabled ?? true;\n\n\tif (!enabled || toolCalls.length === 0) {\n\t\treturn baseConcurrency;\n\t}\n\n\t// Build a map of tool names to annotations\n\tconst toolAnnotations = new Map<string, ToolAnnotations | undefined>();\n\tfor (const tool of tools) {\n\t\ttoolAnnotations.set(tool.name, tool.annotations);\n\t}\n\n\t// Check if all tools are read-only\n\tconst allReadOnly = toolCalls.every((call) =>\n\t\tisReadOnlyTool(call.name, toolAnnotations.get(call.name)),\n\t);\n\n\tif (allReadOnly) {\n\t\t// Safe to use higher concurrency\n\t\treturn Math.min(maxReadOnlyConcurrency, toolCalls.length);\n\t}\n\n\t// Has write operations - use base concurrency\n\treturn baseConcurrency;\n}\n\n/**\n * Partition tool calls into read-only and write batches.\n *\n * This enables executing all read-only operations in parallel first,\n * then executing write operations with appropriate ordering.\n *\n * @param toolCalls - Array of tool calls\n * @param tools - Tool definitions\n * @returns Object with readOnly and write arrays\n */\nexport function partitionToolCalls<T extends { name: string }>(\n\ttoolCalls: T[],\n\ttools: AgentTool[],\n): { readOnly: T[]; write: T[] } {\n\tconst toolAnnotations = new Map<string, ToolAnnotations | undefined>();\n\tfor (const tool of tools) {\n\t\ttoolAnnotations.set(tool.name, tool.annotations);\n\t}\n\n\tconst readOnly: T[] = [];\n\tconst write: T[] = [];\n\n\tfor (const call of toolCalls) {\n\t\tif (isReadOnlyTool(call.name, toolAnnotations.get(call.name))) {\n\t\t\treadOnly.push(call);\n\t\t} else {\n\t\t\twrite.push(call);\n\t\t}\n\t}\n\n\treturn { readOnly, write };\n}\n\n/**\n * Add read-only annotation to a tool definition.\n *\n * Use this to mark custom tools as read-only for parallel execution.\n *\n * @param tool - Tool definition to annotate\n * @returns Tool with readOnlyHint annotation\n */\nexport function markReadOnly<T extends AgentTool>(tool: T): T {\n\treturn {\n\t\t...tool,\n\t\tannotations: {\n\t\t\t...tool.annotations,\n\t\t\treadOnlyHint: true,\n\t\t},\n\t};\n}\n\n/**\n * Add write/destructive annotation to a tool definition.\n *\n * @param tool - Tool definition to annotate\n * @returns Tool with destructiveHint annotation\n */\nexport function markDestructive<T extends AgentTool>(tool: T): T {\n\treturn {\n\t\t...tool,\n\t\tannotations: {\n\t\t\t...tool.annotations,\n\t\t\tdestructiveHint: true,\n\t\t},\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"parallel-execution.js","sourceRoot":"","sources":["../../src/tools/parallel-execution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOhD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IACtC,eAAe;IACf,MAAM;IACN,MAAM;IACN,oBAAoB;IACpB,IAAI;IACJ,MAAM;IACN,eAAe;IACf,MAAM;IACN,MAAM;IACN,iBAAiB;IACjB,MAAM;IACN,QAAQ;IACR,kBAAkB;IAClB,6BAA6B;IAC7B,MAAM;IACN,cAAc;IACd,QAAQ;IACR,sBAAsB;IACtB,kBAAkB;IAClB,0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AC,GAAG,CAAC,CAAC;YACrB,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QAClE,CAAC;IACF,CAAC;IACD,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IACxC,OAAO,WAAW,CAAC,MAAM,GAAG,CAAC;QAC5B,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;QACvE,CAAC,CAAC,SAAS,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAChC,IAAwB,EACxB,KAAyB;IAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACnC,KAAK,CAAC,KAAK,CAAC,IAAI,CACf,CAAC,SAAS,EAAE,EAAE,CACb,QAAQ,KAAK,SAAS;QACtB,QAAQ,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC;QACpC,SAAS,CAAC,UAAU,CAAC,GAAG,QAAQ,GAAG,CAAC,CACrC,CACD,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAsB,IAAO;IACxD,OAAO;QACN,GAAG,IAAI;QACP,WAAW,EAAE;YACZ,GAAG,IAAI,CAAC,WAAW;YACnB,YAAY,EAAE,IAAI;SAClB;KACD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAsB,IAAO;IAC3D,OAAO;QACN,GAAG,IAAI;QACP,WAAW,EAAE;YACZ,GAAG,IAAI,CAAC,WAAW;YACnB,eAAe,EAAE,IAAI;SACrB;KACD,CAAC;AACH,CAAC","sourcesContent":["/**\n * Parallel Execution - Optimized concurrent tool execution for read-only operations\n *\n * This module provides utilities for safely increasing concurrency when executing\n * read-only tools. Read-only tools can run in parallel without risk of conflicts,\n * enabling significant latency improvements for batch operations.\n *\n * ## Read-Only Tools\n *\n * Tools are considered read-only if they:\n * - Do not modify files or system state\n * - Are idempotent (same input = same output)\n * - Have no side effects on external systems\n *\n * Examples: read, list, find, search, diff, status\n *\n * ## Usage\n *\n * ```typescript\n * import { isReadOnlyTool, getOptimalConcurrency } from './parallel-execution.js';\n *\n * const tools = [readTool, listTool, findTool];\n * const allReadOnly = tools.every(t => isReadOnlyTool(t.name));\n * const concurrency = getOptimalConcurrency(tools, baseConcurrency);\n * ```\n *\n * @module tools/parallel-execution\n */\n\nimport { isAbsolute, resolve } from \"node:path\";\nimport type {\n\tAgentTool,\n\tToolAnnotations,\n\tToolSourceMetadata,\n} from \"../agent/types.js\";\n\n/**\n * Set of known read-only tool names.\n *\n * These tools are safe to execute in parallel because they:\n * - Only read data, never modify it\n * - Have no side effects\n * - Are idempotent\n */\nexport const READ_ONLY_TOOLS = new Set([\n\t// File reading\n\t\"Read\",\n\t\"read\",\n\t// Directory listing\n\t\"LS\",\n\t\"list\",\n\t// File finding\n\t\"Glob\",\n\t\"find\",\n\t// Content search\n\t\"Grep\",\n\t\"search\",\n\t\"parallel_ripgrep\",\n\t// Git operations (read-only)\n\t\"diff\",\n\t// System info\n\t\"status\",\n\t// Document extraction\n\t\"extract_document\",\n\t// VS Code read operations\n\t\"vscode_get_definition\",\n\t\"vscode_find_references\",\n\t\"vscode_get_diagnostics\",\n\t\"vscode_read_file_range\",\n\t// JetBrains read operations\n\t\"jetbrains_get_definition\",\n\t\"jetbrains_find_references\",\n\t\"jetbrains_get_diagnostics\",\n\t\"jetbrains_read_file_range\",\n\t// LSP operations (read-only)\n\t\"LSP\",\n]);\n\n/**\n * Set of known write/mutating tool names.\n *\n * These tools modify state and should not run concurrently with\n * operations on the same resources.\n */\nexport const WRITE_TOOLS = new Set([\n\t\"apply_patch\",\n\t\"write\",\n\t\"Write\",\n\t\"edit\",\n\t\"Edit\",\n\t\"MultiEdit\",\n\t\"notebook_edit\",\n\t\"NotebookEdit\",\n\t\"bash\",\n\t\"Bash\",\n\t\"background_tasks\",\n]);\n\n/**\n * Check if a tool is read-only based on its name or annotations.\n *\n * @param toolName - Name of the tool\n * @param annotations - Optional tool annotations\n * @returns true if the tool is read-only\n */\nexport function isReadOnlyTool(\n\ttoolName: string,\n\tannotations?: ToolAnnotations,\n\t_source?: ToolSourceMetadata,\n): boolean {\n\t// Check explicit annotation first\n\tif (annotations?.readOnlyHint === true) {\n\t\treturn true;\n\t}\n\tif (annotations?.readOnlyHint === false) {\n\t\treturn false;\n\t}\n\n\t// Fall back to known tool lists\n\treturn READ_ONLY_TOOLS.has(toolName);\n}\n\nexport function isParallelSafeTool(\n\ttoolName: string,\n\tannotations?: ToolAnnotations,\n\tsource?: ToolSourceMetadata,\n): boolean {\n\tif (isReadOnlyTool(toolName, annotations, source)) {\n\t\treturn true;\n\t}\n\tif (annotations?.destructiveHint === true) {\n\t\treturn false;\n\t}\n\treturn source?.type === \"mcp\" && source.supportsParallelToolCalls === true;\n}\n\n/**\n * Check if a tool is a write/mutating operation.\n *\n * @param toolName - Name of the tool\n * @param annotations - Optional tool annotations\n * @returns true if the tool modifies state\n */\nexport function isWriteTool(\n\ttoolName: string,\n\tannotations?: ToolAnnotations,\n): boolean {\n\t// Check explicit annotation\n\tif (annotations?.destructiveHint === true) {\n\t\treturn true;\n\t}\n\n\treturn WRITE_TOOLS.has(toolName);\n}\n\n/**\n * Configuration for parallel execution optimization.\n */\nexport interface ParallelExecutionConfig {\n\t/** Base concurrency limit (default: 2) */\n\tbaseConcurrency?: number;\n\t/** Maximum concurrency for read-only batches (default: 8) */\n\tmaxReadOnlyConcurrency?: number;\n\t/** Whether to enable parallel optimization (default: true) */\n\tenabled?: boolean;\n}\n\n/**\n * Get the optimal concurrency level for a batch of tool calls.\n *\n * When all tools in a batch are read-only, we can safely increase\n * concurrency to improve latency. Write operations force serialization.\n *\n * @param toolCalls - Array of tool calls to analyze\n * @param tools - Tool definitions (for annotation lookup)\n * @param config - Parallel execution configuration\n * @returns Optimal concurrency level for this batch\n */\nexport function getOptimalConcurrency(\n\ttoolCalls: Array<{ name: string }>,\n\ttools: AgentTool[],\n\tconfig?: ParallelExecutionConfig,\n): number {\n\tconst baseConcurrency = config?.baseConcurrency ?? 2;\n\tconst maxReadOnlyConcurrency = config?.maxReadOnlyConcurrency ?? 8;\n\tconst enabled = config?.enabled ?? true;\n\n\tif (!enabled || toolCalls.length === 0) {\n\t\treturn baseConcurrency;\n\t}\n\n\t// Build a map of tool names to annotations\n\tconst toolMetadata = new Map<\n\t\tstring,\n\t\t{ annotations?: ToolAnnotations; source?: ToolSourceMetadata }\n\t>();\n\tfor (const tool of tools) {\n\t\ttoolMetadata.set(tool.name, {\n\t\t\tannotations: tool.annotations,\n\t\t\tsource: tool.source,\n\t\t});\n\t}\n\n\t// Check if all tools are read-only\n\tconst allReadOnly = toolCalls.every((call) => {\n\t\tconst metadata = toolMetadata.get(call.name);\n\t\treturn isReadOnlyTool(call.name, metadata?.annotations, metadata?.source);\n\t});\n\n\tif (allReadOnly) {\n\t\t// Safe to use higher concurrency\n\t\treturn Math.min(maxReadOnlyConcurrency, toolCalls.length);\n\t}\n\n\t// Has write operations - use base concurrency\n\treturn baseConcurrency;\n}\n\n/**\n * Partition tool calls into read-only and write batches.\n *\n * This enables executing all read-only operations in parallel first,\n * then executing write operations with appropriate ordering.\n *\n * @param toolCalls - Array of tool calls\n * @param tools - Tool definitions\n * @returns Object with readOnly and write arrays\n */\nexport function partitionToolCalls<T extends { name: string }>(\n\ttoolCalls: T[],\n\ttools: AgentTool[],\n): { readOnly: T[]; write: T[] } {\n\tconst toolMetadata = new Map<\n\t\tstring,\n\t\t{ annotations?: ToolAnnotations; source?: ToolSourceMetadata }\n\t>();\n\tfor (const tool of tools) {\n\t\ttoolMetadata.set(tool.name, {\n\t\t\tannotations: tool.annotations,\n\t\t\tsource: tool.source,\n\t\t});\n\t}\n\n\tconst readOnly: T[] = [];\n\tconst write: T[] = [];\n\n\tfor (const call of toolCalls) {\n\t\tconst metadata = toolMetadata.get(call.name);\n\t\tif (isReadOnlyTool(call.name, metadata?.annotations, metadata?.source)) {\n\t\t\treadOnly.push(call);\n\t\t} else {\n\t\t\twrite.push(call);\n\t\t}\n\t}\n\n\treturn { readOnly, write };\n}\n\nexport interface PathScopedMutation {\n\tpaths: string[];\n\tsource: \"annotation\" | \"known_tool\";\n\targumentKeys?: string[];\n}\n\nconst PATH_SCOPED_MUTATION_TOOLS = new Set([\n\t\"apply_patch\",\n\t\"write\",\n\t\"Write\",\n\t\"edit\",\n\t\"Edit\",\n\t\"MultiEdit\",\n\t\"notebook_edit\",\n\t\"NotebookEdit\",\n]);\n\nconst PATH_ARGUMENT_KEYS = new Set([\n\t\"file\",\n\t\"file_path\",\n\t\"filePath\",\n\t\"files\",\n\t\"path\",\n\t\"paths\",\n\t\"target\",\n\t\"targets\",\n\t\"target_path\",\n\t\"targetPath\",\n\t\"notebook_path\",\n\t\"notebookPath\",\n\t\"output_path\",\n\t\"outputPath\",\n]);\n\nconst PATH_ARGUMENT_CONTAINER_KEYS = new Set([\n\t\"edits\",\n\t\"operations\",\n\t\"patches\",\n]);\n\nconst PATCH_ARGUMENT_KEYS = new Set([\"patch\", \"patch_text\", \"patchText\"]);\n\nfunction normalizeMutationPath(\n\tvalue: string,\n\tcwd = process.cwd(),\n): string | undefined {\n\tconst input = value.trim().replace(/\\\\/g, \"/\");\n\tif (!input || /[*?[\\]{}]/u.test(input)) {\n\t\treturn undefined;\n\t}\n\tconst basePath = cwd.replace(/\\\\/g, \"/\");\n\tlet normalized = (\n\t\tisAbsolute(input) ? resolve(input) : resolve(basePath, input)\n\t)\n\t\t.replace(/\\\\/g, \"/\")\n\t\t.replace(/\\/+/g, \"/\");\n\tnormalized = normalized.toLowerCase();\n\tif (normalized.length > 1) {\n\t\tnormalized = normalized.replace(/\\/$/u, \"\");\n\t}\n\treturn normalized || undefined;\n}\n\nfunction collectPathArgumentValues(\n\tvalue: unknown,\n\tpaths: string[],\n\tcwd: string,\n\tmatchedKeys: Set<string>,\n\tstringIsPath: boolean,\n): void {\n\tif (typeof value === \"string\") {\n\t\tif (stringIsPath) {\n\t\t\tconst path = normalizeMutationPath(value, cwd);\n\t\t\tif (path) {\n\t\t\t\tpaths.push(path);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (Array.isArray(value)) {\n\t\tfor (const entry of value) {\n\t\t\tcollectPathArgumentValues(entry, paths, cwd, matchedKeys, stringIsPath);\n\t\t}\n\t\treturn;\n\t}\n\tif (value && typeof value === \"object\") {\n\t\tfor (const [key, nested] of Object.entries(\n\t\t\tvalue as Record<string, unknown>,\n\t\t)) {\n\t\t\tif (PATH_ARGUMENT_KEYS.has(key)) {\n\t\t\t\tmatchedKeys.add(key);\n\t\t\t\tcollectPathArgumentValues(nested, paths, cwd, matchedKeys, true);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (PATCH_ARGUMENT_KEYS.has(key)) {\n\t\t\t\tmatchedKeys.add(key);\n\t\t\t\tcollectPatchHeaderPaths(nested, paths, cwd, matchedKeys);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (PATH_ARGUMENT_CONTAINER_KEYS.has(key)) {\n\t\t\t\tmatchedKeys.add(key);\n\t\t\t\tcollectPathArgumentValues(nested, paths, cwd, matchedKeys, false);\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction collectPatchHeaderPaths(\n\tvalue: unknown,\n\tpaths: string[],\n\tcwd: string,\n\tmatchedKeys: Set<string>,\n): void {\n\tif (typeof value === \"string\") {\n\t\tfor (const match of value.matchAll(\n\t\t\t/^\\*\\*\\* (?:Update File|Add File|Delete File|Move to):\\s+(.+)$/gmu,\n\t\t)) {\n\t\t\tconst rawPath = match[1]?.trim();\n\t\t\tif (!rawPath) continue;\n\t\t\tconst path = normalizeMutationPath(rawPath, cwd);\n\t\t\tif (path) {\n\t\t\t\tpaths.push(path);\n\t\t\t\tmatchedKeys.add(\"patch\");\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (Array.isArray(value)) {\n\t\tfor (const entry of value) {\n\t\t\tcollectPatchHeaderPaths(entry, paths, cwd, matchedKeys);\n\t\t}\n\t\treturn;\n\t}\n\tif (value && typeof value === \"object\") {\n\t\tcollectPathArgumentValues(value, paths, cwd, matchedKeys, false);\n\t}\n}\n\nexport function getPathScopedMutation(\n\ttoolCall: { name: string; arguments?: unknown },\n\ttool?: AgentTool,\n\tcwd = process.cwd(),\n): PathScopedMutation | undefined {\n\tconst annotations = tool?.annotations;\n\tconst source =\n\t\tannotations?.pathScopedMutationHint === true ? \"annotation\" : \"known_tool\";\n\tconst isPathScopedTool =\n\t\tannotations?.pathScopedMutationHint === true ||\n\t\tPATH_SCOPED_MUTATION_TOOLS.has(tool?.name ?? toolCall.name);\n\tif (!isPathScopedTool || annotations?.readOnlyHint === true) {\n\t\treturn undefined;\n\t}\n\tconst args =\n\t\ttoolCall.arguments &&\n\t\ttypeof toolCall.arguments === \"object\" &&\n\t\t!Array.isArray(toolCall.arguments)\n\t\t\t? (toolCall.arguments as Record<string, unknown>)\n\t\t\t: undefined;\n\tif (!args) {\n\t\treturn undefined;\n\t}\n\tconst paths: string[] = [];\n\tconst matchedKeys = new Set<string>();\n\tfor (const [key, value] of Object.entries(args)) {\n\t\tif (PATH_ARGUMENT_KEYS.has(key)) {\n\t\t\tmatchedKeys.add(key);\n\t\t\tcollectPathArgumentValues(value, paths, cwd, matchedKeys, true);\n\t\t\tcontinue;\n\t\t}\n\t\tif (PATCH_ARGUMENT_KEYS.has(key)) {\n\t\t\tmatchedKeys.add(key);\n\t\t\tcollectPatchHeaderPaths(value, paths, cwd, matchedKeys);\n\t\t\tcontinue;\n\t\t}\n\t\tif (PATH_ARGUMENT_CONTAINER_KEYS.has(key)) {\n\t\t\tmatchedKeys.add(key);\n\t\t\tcollectPathArgumentValues(value, paths, cwd, matchedKeys, false);\n\t\t}\n\t}\n\tconst uniquePaths = [...new Set(paths)];\n\treturn uniquePaths.length > 0\n\t\t? { paths: uniquePaths, source, argumentKeys: [...matchedKeys].sort() }\n\t\t: undefined;\n}\n\nexport function pathScopesOverlap(\n\tleft: PathScopedMutation,\n\tright: PathScopedMutation,\n): boolean {\n\treturn left.paths.some((leftPath) =>\n\t\tright.paths.some(\n\t\t\t(rightPath) =>\n\t\t\t\tleftPath === rightPath ||\n\t\t\t\tleftPath.startsWith(`${rightPath}/`) ||\n\t\t\t\trightPath.startsWith(`${leftPath}/`),\n\t\t),\n\t);\n}\n\n/**\n * Add read-only annotation to a tool definition.\n *\n * Use this to mark custom tools as read-only for parallel execution.\n *\n * @param tool - Tool definition to annotate\n * @returns Tool with readOnlyHint annotation\n */\nexport function markReadOnly<T extends AgentTool>(tool: T): T {\n\treturn {\n\t\t...tool,\n\t\tannotations: {\n\t\t\t...tool.annotations,\n\t\t\treadOnlyHint: true,\n\t\t},\n\t};\n}\n\n/**\n * Add write/destructive annotation to a tool definition.\n *\n * @param tool - Tool definition to annotate\n * @returns Tool with destructiveHint annotation\n */\nexport function markDestructive<T extends AgentTool>(tool: T): T {\n\treturn {\n\t\t...tool,\n\t\tannotations: {\n\t\t\t...tool.annotations,\n\t\t\tdestructiveHint: true,\n\t\t},\n\t};\n}\n"]}
|
|
@@ -75,6 +75,7 @@ export declare const parallelRipgrepTool: Readonly<{
|
|
|
75
75
|
headLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
76
76
|
}>;
|
|
77
77
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
78
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
78
79
|
toolType: string | undefined;
|
|
79
80
|
inputExamples: unknown[] | undefined;
|
|
80
81
|
allowedCallers: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallel-ripgrep.d.ts","sourceRoot":"","sources":["../../src/tools/parallel-ripgrep.ts"],"names":[],"mappings":"AAAA;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DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,iDAAiD;IACjD,SAAS,EAAE,OAAO,CAAC;CACnB,CAAC;AA+HF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4N9B,CAAC"}
|
package/dist/tools/pipeline.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare const pipelineSearchContactsTool: Readonly<{
|
|
|
60
60
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
61
61
|
}>;
|
|
62
62
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
63
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
63
64
|
toolType: string | undefined;
|
|
64
65
|
inputExamples: unknown[] | undefined;
|
|
65
66
|
allowedCallers: string[] | undefined;
|
|
@@ -85,6 +86,7 @@ export declare const pipelineSearchDealsTool: Readonly<{
|
|
|
85
86
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
86
87
|
}>;
|
|
87
88
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
89
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
88
90
|
toolType: string | undefined;
|
|
89
91
|
inputExamples: unknown[] | undefined;
|
|
90
92
|
allowedCallers: string[] | undefined;
|
|
@@ -113,6 +115,7 @@ export declare const pipelineCreateSignalTool: Readonly<{
|
|
|
113
115
|
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
114
116
|
}>;
|
|
115
117
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
118
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
116
119
|
toolType: string | undefined;
|
|
117
120
|
inputExamples: unknown[] | undefined;
|
|
118
121
|
allowedCallers: string[] | undefined;
|
|
@@ -143,6 +146,7 @@ export declare const pipelineLogActivityTool: Readonly<{
|
|
|
143
146
|
occurredAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
144
147
|
}>;
|
|
145
148
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
149
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
146
150
|
toolType: string | undefined;
|
|
147
151
|
inputExamples: unknown[] | undefined;
|
|
148
152
|
allowedCallers: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/tools/pipeline.ts"],"names":[],"mappings":"AAwCA,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAuMD,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,KAAK,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,C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,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDnC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDlC,CAAC"}
|
package/dist/tools/read.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare const readTool: Readonly<{
|
|
|
70
70
|
encoding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"utf-8">, import("@sinclair/typebox").TLiteral<"utf-16le">, import("@sinclair/typebox").TLiteral<"latin1">, import("@sinclair/typebox").TLiteral<"ascii">]>>;
|
|
71
71
|
}>;
|
|
72
72
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
73
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
73
74
|
toolType: string | undefined;
|
|
74
75
|
inputExamples: unknown[] | undefined;
|
|
75
76
|
allowedCallers: string[] | undefined;
|
package/dist/tools/read.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/tools/read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAoOH;;;GAGG;AACH,KAAK,eAAe,GAAG;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/tools/read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAoOH;;;GAGG;AACH,KAAK,eAAe,GAAG;IACtB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ZnB,CAAC"}
|
package/dist/tools/search.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const searchTool: Readonly<{
|
|
|
90
90
|
headLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
91
91
|
}>;
|
|
92
92
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
93
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
93
94
|
toolType: string | undefined;
|
|
94
95
|
inputExamples: unknown[] | undefined;
|
|
95
96
|
allowedCallers: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAIH,OAAO,EACN,KAAK,YAAY,EAMjB,MAAM,oBAAoB,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsUrB,CAAC"}
|
package/dist/tools/status.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const statusTool: Readonly<{
|
|
|
9
9
|
paths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
|
|
10
10
|
}>;
|
|
11
11
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
12
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
12
13
|
toolType: string | undefined;
|
|
13
14
|
inputExamples: unknown[] | undefined;
|
|
14
15
|
allowedCallers: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/tools/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,WAAW,CAAC;AA0EjE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/tools/status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,WAAW,CAAC;AA0EjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;iBAEX,MAAM;iBAAW,YAAY;;iBAA7B,MAAM;iBAAW,YAAY;;EAyDvC,CAAC"}
|
package/dist/tools/todo.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export declare const todoTool: Readonly<{
|
|
|
122
122
|
includeSummary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
123
123
|
}>;
|
|
124
124
|
annotations: import("../agent/types.js").ToolAnnotations | undefined;
|
|
125
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
125
126
|
toolType: string | undefined;
|
|
126
127
|
inputExamples: unknown[] | undefined;
|
|
127
128
|
allowedCallers: string[] | undefined;
|
package/dist/tools/todo.d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AgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,OAAO,EAAE,MAAM,CAAC,GACzC,MAAM,CAYR;AAeD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,MAAM,CAMlE;AA4BD,KAAK,eAAe,GAAG;IACtB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+GnB,CAAC"}
|
package/dist/tools/tool-dsl.d.ts
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
* @module tools/tool-dsl
|
|
65
65
|
*/
|
|
66
66
|
import type { Static, TSchema } from "@sinclair/typebox";
|
|
67
|
-
import type { AgentToolResult, AgentToolUpdateCallback, ToolAnnotations } from "../agent/types.js";
|
|
67
|
+
import type { AgentToolResult, AgentToolUpdateCallback, ToolAnnotations, ToolSourceMetadata } from "../agent/types.js";
|
|
68
68
|
import type { Sandbox } from "../sandbox/types.js";
|
|
69
69
|
export declare class ToolResponseBuilder<Details> {
|
|
70
70
|
private _content;
|
|
@@ -89,6 +89,7 @@ export interface CreateToolOptions<Schema extends TSchema, Details> {
|
|
|
89
89
|
description: string;
|
|
90
90
|
schema: Schema;
|
|
91
91
|
annotations?: ToolAnnotations;
|
|
92
|
+
source?: ToolSourceMetadata;
|
|
92
93
|
toolType?: string;
|
|
93
94
|
inputExamples?: unknown[];
|
|
94
95
|
allowedCallers?: string[];
|
|
@@ -112,6 +113,7 @@ export declare function createTool<Schema extends TSchema, Details = undefined>(
|
|
|
112
113
|
description: string;
|
|
113
114
|
parameters: Schema;
|
|
114
115
|
annotations: ToolAnnotations | undefined;
|
|
116
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
115
117
|
toolType: string | undefined;
|
|
116
118
|
inputExamples: unknown[] | undefined;
|
|
117
119
|
allowedCallers: string[] | undefined;
|
|
@@ -142,6 +144,7 @@ export declare function createTextTool<Schema extends TSchema, Details = undefin
|
|
|
142
144
|
description: string;
|
|
143
145
|
parameters: Schema;
|
|
144
146
|
annotations: ToolAnnotations | undefined;
|
|
147
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
145
148
|
toolType: string | undefined;
|
|
146
149
|
inputExamples: unknown[] | undefined;
|
|
147
150
|
allowedCallers: string[] | undefined;
|
|
@@ -165,6 +168,7 @@ export declare function createJsonTool<Schema extends TSchema, Details = undefin
|
|
|
165
168
|
description: string;
|
|
166
169
|
parameters: Schema;
|
|
167
170
|
annotations: ToolAnnotations | undefined;
|
|
171
|
+
source: import("../agent/types.js").McpToolSourceMetadata | undefined;
|
|
168
172
|
toolType: string | undefined;
|
|
169
173
|
inputExamples: unknown[] | undefined;
|
|
170
174
|
allowedCallers: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-dsl.d.ts","sourceRoot":"","sources":["../../src/tools/tool-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,KAAK,EACX,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAmCnD,qBAAa,mBAAmB,CAAC,OAAO;IACvC,OAAO,CAAC,QAAQ,CAGP;IACT,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,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AC,KAE9B,OAAO,GACP,SAAS,GACT,mBAAmB,CAAC,OAAO,CAAC,GAC5B,eAAe,CAAC,OAAO,CAAC,GACxB,OAAO,CACL,OAAO,GACP,SAAS,GACT,mBAAmB,CAAC,OAAO,CAAC,GAC5B,eAAe,CAAC,OAAO,CAAC,CACzB,CAAC;CACL;AAED,wBAAgB,cAAc,CAAC,MAAM,SAAS,OAAO,EAAE,OAAO,GAAG,SAAS,EACzE,OAAO,EAAE,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;0BAlNzB,OAAO,KAAK,OAAO;iCAqC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;8BAIvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;sCAIvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;0BAKtB,MAAM,UACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACtB,WAAW;kBACE,OAAO;;GA+K/B"}
|
package/dist/tools/tool-dsl.js
CHANGED
|
@@ -140,6 +140,7 @@ export function createTool(options) {
|
|
|
140
140
|
description: options.description,
|
|
141
141
|
parameters: options.schema,
|
|
142
142
|
annotations: options.annotations,
|
|
143
|
+
source: options.source,
|
|
143
144
|
toolType: options.toolType,
|
|
144
145
|
inputExamples: options.inputExamples,
|
|
145
146
|
allowedCallers: options.allowedCallers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-dsl.js","sourceRoot":"","sources":["../../src/tools/tool-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAGH,OAAO,EAAE,GAAG,EAA2C,MAAM,KAAK,CAAC;AACnE,OAAO,gBAAwC,MAAM,aAAa,CAAC;AAOnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,oFAAoF;AACpF,MAAM,UAAU,GAAG,oBAAoB,CAAgB,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AAC;YACf,CAAC;YACD,IAAI,iBAAiB,CAAU,MAAM,CAAC,EAAE,CAAC;gBACxC,OAAO,MAAM,CAAC;YACf,CAAC;YACD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9D,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACzB,KAAc;IAEd,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,SAAS,IAAI,KAAK;QAClB,KAAK,CAAC,OAAO,CAAE,KAAkC,CAAC,OAAO,CAAC,CAC1D,CAAC;AACH,CAAC","sourcesContent":["/**\n * Tool DSL - Domain-Specific Language for Creating Agent Tools\n *\n * This module provides a fluent, type-safe API for defining tools that can be\n * executed by the Composer agent. It handles schema validation, response building,\n * retry logic, and sandbox integration.\n *\n * ## Architecture\n *\n * ```\n * ┌─────────────────────────────────────────────────────────────────┐\n * │ Tool Creation Flow │\n * ├─────────────────────────────────────────────────────────────────┤\n * │ createTool(options) │\n * │ │ │\n * │ ▼ │\n * │ ┌─────────────┐ ┌──────────────┐ ┌─────────────────┐ │\n * │ │ Schema │───▶│ Validator │───▶│ execute() │ │\n * │ │ (TypeBox) │ │ (AJV) │ │ function │ │\n * │ └─────────────┘ └──────────────┘ └─────────────────┘ │\n * │ │ │\n * │ ▼ │\n * │ ┌─────────────────────────────────────┐ │\n * │ │ ToolResponseBuilder │ │\n * │ │ - text(), image(), error() │ │\n * │ │ - detail() for structured data │ │\n * │ └─────────────────────────────────────┘ │\n * └─────────────────────────────────────────────────────────────────┘\n * ```\n *\n * ## Tool Types\n *\n * | Factory | Return Type | Use Case |\n * |---------------|------------------|-----------------------------------|\n * | createTool | AgentToolResult | Full control over response |\n * | createTextTool| string → text | Simple text responses |\n * | createJsonTool| object → JSON | Structured data responses |\n *\n * ## Example\n *\n * ```typescript\n * import { createTool, Type } from './tool-dsl';\n *\n * const greetTool = createTool({\n * name: 'greet',\n * description: 'Greet a user by name',\n * schema: Type.Object({\n * name: Type.String({ description: 'Name to greet' }),\n * }),\n * run: async ({ name }, { respond }) => {\n * return respond.text(`Hello, ${name}!`);\n * },\n * });\n * ```\n *\n * ## Features\n *\n * - **Type-safe schemas**: Uses TypeBox for compile-time type inference\n * - **AJV validation**: Runtime validation with format support\n * - **Retry logic**: Built-in exponential backoff for transient failures\n * - **Sandbox support**: Tools can run in isolated environments\n * - **Context interpolation**: Environment variables and paths\n *\n * @module tools/tool-dsl\n */\n\nimport type { Static, TSchema } from \"@sinclair/typebox\";\nimport { Ajv, type ErrorObject, type ValidateFunction } from \"ajv\";\nimport addFormatsModule, { type FormatsPlugin } from \"ajv-formats\";\nimport type {\n\tAgentToolResult,\n\tAgentToolUpdateCallback,\n\tToolAnnotations,\n} from \"../agent/types.js\";\nimport type { Sandbox } from \"../sandbox/types.js\";\nimport { resolveDefaultExport } from \"../utils/module-interop.js\";\n\n// ESM/CJS interop: ajv-formats default may be nested under .default in some loaders\nconst addFormats = resolveDefaultExport<FormatsPlugin>(addFormatsModule);\n\n// Create a singleton AJV instance for schema validation\nlet ajv: Ajv | null = null;\ntry {\n\tajv = new Ajv({\n\t\t// Avoid unbounded error collection on large/invalid payloads\n\t\tallErrors: false,\n\t\tstrict: false,\n\t\tuseDefaults: true, // Apply schema defaults to input\n\t});\n\taddFormats(ajv);\n} catch {\n\t// AJV initialization failed (likely CSP restriction)\n\tajv = null;\n}\n\n// Cache compiled validators per schema to avoid recompiling on every execute()\nconst validatorCache = new WeakMap<TSchema, ValidateFunction>();\n\nfunction getOrCompileValidator(schema: TSchema): ValidateFunction | null {\n\tif (!ajv) return null;\n\n\tlet validate = validatorCache.get(schema);\n\tif (!validate) {\n\t\tvalidate = ajv.compile(schema);\n\t\tvalidatorCache.set(schema, validate);\n\t}\n\treturn validate;\n}\n\nexport class ToolResponseBuilder<Details> {\n\tprivate _content: (\n\t\t| { type: \"text\"; text: string }\n\t\t| { type: \"image\"; data: string; mimeType: string }\n\t)[] = [];\n\tprivate _details?: Details;\n\tprivate _isError = false;\n\n\ttext(content: string): this {\n\t\tthis._content.push({ type: \"text\", text: content });\n\t\treturn this;\n\t}\n\n\timage(base64: string, mimeType: string): this {\n\t\tthis._content.push({ type: \"image\", data: base64, mimeType });\n\t\treturn this;\n\t}\n\n\tdetail(details: Details): this {\n\t\tthis._details = details;\n\t\treturn this;\n\t}\n\n\terror(message: string): this {\n\t\tthis.text(message);\n\t\tthis._isError = true;\n\t\treturn this;\n\t}\n\n\tbuild(): AgentToolResult<Details> {\n\t\treturn {\n\t\t\tcontent: this._content,\n\t\t\tdetails: this._details,\n\t\t\tisError: this._isError,\n\t\t};\n\t}\n}\n\nexport interface ToolRunContext<Details> {\n\ttoolCallId: string;\n\tsignal?: AbortSignal;\n\trespond: ToolResponseBuilder<Details>;\n\tsandbox?: Sandbox;\n\tonUpdate?: AgentToolUpdateCallback<Details>;\n}\n\nexport interface CreateToolOptions<Schema extends TSchema, Details> {\n\tname: string;\n\tlabel?: string;\n\tdescription: string;\n\tschema: Schema;\n\tannotations?: ToolAnnotations;\n\ttoolType?: string;\n\tinputExamples?: unknown[];\n\tallowedCallers?: string[];\n\tdeferApiDefinition?: boolean;\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\tundefined | ToolResponseBuilder<Details> | AgentToolResult<Details>\n\t\t >;\n\tmaxRetries?: number;\n\tretryDelayMs?: number;\n\tshouldRetry?: (error: unknown) => boolean;\n\tgetToolUseSummary?: (params: Static<Schema>) => string | null;\n\tgetDisplayName?: (params: Static<Schema>) => string | null;\n\tgetActivityDescription?: (params: Static<Schema>) => string | null;\n}\n\ntype StaticSchema<Schema extends TSchema> = Static<Schema>;\n\nexport class ToolError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly code?: string,\n\t\tpublic readonly details?: unknown,\n\t) {\n\t\tsuper(message);\n\t\tthis.name = \"ToolError\";\n\t}\n}\n\nexport function createTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateToolOptions<Schema, Details>,\n) {\n\treturn Object.freeze({\n\t\tname: options.name,\n\t\tlabel: options.label ?? options.name,\n\t\tdescription: options.description,\n\t\tparameters: options.schema,\n\t\tannotations: options.annotations,\n\t\ttoolType: options.toolType,\n\t\tinputExamples: options.inputExamples,\n\t\tallowedCallers: options.allowedCallers,\n\t\tdeferApiDefinition: options.deferApiDefinition,\n\t\tmaxRetries: options.maxRetries,\n\t\tretryDelayMs: options.retryDelayMs,\n\t\tshouldRetry: options.shouldRetry,\n\t\tgetToolUseSummary: options.getToolUseSummary\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getToolUseSummary?.(params as StaticSchema<Schema>) ?? null\n\t\t\t: undefined,\n\t\tgetDisplayName: options.getDisplayName\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getDisplayName?.(params as StaticSchema<Schema>) ?? null\n\t\t\t: undefined,\n\t\tgetActivityDescription: options.getActivityDescription\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getActivityDescription?.(params as StaticSchema<Schema>) ??\n\t\t\t\t\tnull\n\t\t\t: undefined,\n\t\texecute: async (\n\t\t\ttoolCallId: string,\n\t\t\tparams: Record<string, unknown>,\n\t\t\tsignal?: AbortSignal,\n\t\t\tcontext?: { sandbox?: Sandbox },\n\t\t\tonUpdate?: AgentToolUpdateCallback<Details>,\n\t\t) => {\n\t\t\t// Validate params against schema using cached validator\n\t\t\tif (options.schema) {\n\t\t\t\tconst validate = getOrCompileValidator(options.schema);\n\t\t\t\tif (validate && !validate(params)) {\n\t\t\t\t\tconst errors =\n\t\t\t\t\t\t(validate.errors ?? [])\n\t\t\t\t\t\t\t.map((err) => {\n\t\t\t\t\t\t\t\tconst path =\n\t\t\t\t\t\t\t\t\terr.instancePath && err.instancePath.length > 1\n\t\t\t\t\t\t\t\t\t\t? err.instancePath.substring(1)\n\t\t\t\t\t\t\t\t\t\t: (err.params as { missingProperty?: string })\n\t\t\t\t\t\t\t\t\t\t\t\t.missingProperty || \"root\";\n\t\t\t\t\t\t\t\treturn ` - ${path}: ${err.message ?? \"invalid value\"}`;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.join(\"\\n\") || \"Unknown validation error\";\n\t\t\t\t\tthrow new ToolError(\n\t\t\t\t\t\t`Validation failed for tool \"${options.name}\":\\n${errors}`,\n\t\t\t\t\t\t\"VALIDATION_ERROR\",\n\t\t\t\t\t\t{ params },\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst maxRetries = options.maxRetries ?? 0;\n\t\t\tconst retryDelayMs = options.retryDelayMs ?? 1000;\n\t\t\tconst shouldRetry = options.shouldRetry ?? (() => true);\n\t\t\tconst typedParams = params as StaticSchema<Schema>;\n\n\t\t\tlet lastError: unknown;\n\t\t\tfor (let attempt = 0; attempt <= maxRetries; attempt++) {\n\t\t\t\tif (attempt > 0) {\n\t\t\t\t\t// Exponential backoff: delay * 2^(attempt-1)\n\t\t\t\t\tconst delay = retryDelayMs * 2 ** (attempt - 1);\n\t\t\t\t\tif (signal) {\n\t\t\t\t\t\tconst activeSignal = signal;\n\t\t\t\t\t\tawait new Promise<void>((resolve, reject) => {\n\t\t\t\t\t\t\tif (activeSignal.aborted) {\n\t\t\t\t\t\t\t\treject(new Error(\"Operation aborted\"));\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\t\t\t\tactiveSignal.removeEventListener(\"abort\", onAbort);\n\t\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t}, delay);\n\t\t\t\t\t\t\tfunction onAbort() {\n\t\t\t\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\t\t\t\tactiveSignal.removeEventListener(\"abort\", onAbort);\n\t\t\t\t\t\t\t\treject(new Error(\"Operation aborted\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tactiveSignal.addEventListener(\"abort\", onAbort, { once: true });\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tawait new Promise((resolve) => setTimeout(resolve, delay));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tconst builder = new ToolResponseBuilder<Details>();\n\t\t\t\t\tconst result = await options.run(typedParams, {\n\t\t\t\t\t\ttoolCallId,\n\t\t\t\t\t\tsignal,\n\t\t\t\t\t\trespond: builder,\n\t\t\t\t\t\tsandbox: context?.sandbox,\n\t\t\t\t\t\tonUpdate,\n\t\t\t\t\t});\n\t\t\t\t\tif (result instanceof ToolResponseBuilder) {\n\t\t\t\t\t\treturn result.build();\n\t\t\t\t\t}\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\treturn builder.build();\n\t\t\t\t} catch (error) {\n\t\t\t\t\tlastError = error;\n\t\t\t\t\tif (attempt < maxRetries && shouldRetry(error)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow lastError;\n\t\t},\n\t});\n}\n\nimport { getHomeDir } from \"../utils/path-expansion.js\";\nimport { expandUserPath as expandUserPathBase } from \"../utils/path-validation.js\";\n\n// Re-export shared path expansion utility to keep tool-dsl API stable\nexport const expandUserPath = expandUserPathBase;\n\n/**\n * Interpolate environment variables and context in a string.\n * Supports: ${env.VAR}, ${cwd}, ${home}\n */\nexport function interpolateContext(value: string): string {\n\treturn value\n\t\t.replace(/\\$\\{env\\.([^}]+)\\}/g, (_, varName) => process.env[varName] ?? \"\")\n\t\t.replace(/\\$\\{cwd\\}/g, process.cwd())\n\t\t.replace(/\\$\\{home\\}/g, getHomeDir());\n}\n\nexport interface CreateTextToolOptions<Schema extends TSchema, Details>\n\textends Omit<CreateToolOptions<Schema, Details>, \"run\"> {\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| string\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\t| string\n\t\t\t\t| undefined\n\t\t\t\t| ToolResponseBuilder<Details>\n\t\t\t\t| AgentToolResult<Details>\n\t\t >;\n}\n\nexport function createTextTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateTextToolOptions<Schema, Details>,\n) {\n\treturn createTool<Schema, Details>({\n\t\t...options,\n\t\trun: async (params, context) => {\n\t\t\tconst result = await options.run(params, context);\n\t\t\tif (typeof result === \"string\") {\n\t\t\t\treturn context.respond.text(result);\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t});\n}\n\nexport interface CreateJsonToolOptions<Schema extends TSchema, Details>\n\textends Omit<CreateToolOptions<Schema, Details>, \"run\"> {\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| unknown\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\t| unknown\n\t\t\t\t| undefined\n\t\t\t\t| ToolResponseBuilder<Details>\n\t\t\t\t| AgentToolResult<Details>\n\t\t >;\n}\n\nexport function createJsonTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateJsonToolOptions<Schema, Details>,\n) {\n\treturn createTool<Schema, Details>({\n\t\t...options,\n\t\trun: async (params, context) => {\n\t\t\tconst result = await options.run(params, context);\n\t\t\tif (result === undefined) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (result instanceof ToolResponseBuilder) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (isAgentToolResult<Details>(result)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn context.respond.text(JSON.stringify(result, null, 2));\n\t\t},\n\t});\n}\n\nfunction isAgentToolResult<Details>(\n\tvalue: unknown,\n): value is AgentToolResult<Details> {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null &&\n\t\t\"content\" in value &&\n\t\tArray.isArray((value as AgentToolResult<Details>).content)\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tool-dsl.js","sourceRoot":"","sources":["../../src/tools/tool-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAGH,OAAO,EAAE,GAAG,EAA2C,MAAM,KAAK,CAAC;AACnE,OAAO,gBAAwC,MAAM,aAAa,CAAC;AAQnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,oFAAoF;AACpF,MAAM,UAAU,GAAG,oBAAoB,CAAgB,gBAAgB,CAAC,CAAC;AAEzE,wDAAwD;AACxD,IAAI,GAAG,GAAe,IAAI,CAAC;AAC3B,IAAI,CAAC;IACJ,GAAG,GAAG,IAAI,GAAG,CAAC;QACb,6DAA6D;QAC7D,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,KAAK;QACb,WAAW,EAAE,IAAI,EAAE,iCAAiC;KACpD,CAAC,CAAC;IACH,UAAU,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC;AAAC,MAAM,CAAC;IACR,qDAAqD;IACrD,GAAG,GAAG,IAAI,CAAC;AACZ,CAAC;AAED,+EAA+E;AAC/E,MAAM,cAAc,GAAG,IAAI,OAAO,EAA6B,CAAC;AAEhE,SAAS,qBAAqB,CAAC,MAAe;IAC7C,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IAEtB,IAAI,QAAQ,GAAG,cAAc,CA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*\n * This module provides a fluent, type-safe API for defining tools that can be\n * executed by the Composer agent. It handles schema validation, response building,\n * retry logic, and sandbox integration.\n *\n * ## Architecture\n *\n * ```\n * ┌─────────────────────────────────────────────────────────────────┐\n * │ Tool Creation Flow │\n * ├─────────────────────────────────────────────────────────────────┤\n * │ createTool(options) │\n * │ │ │\n * │ ▼ │\n * │ ┌─────────────┐ ┌──────────────┐ ┌─────────────────┐ │\n * │ │ Schema │───▶│ Validator │───▶│ execute() │ │\n * │ │ (TypeBox) │ │ (AJV) │ │ function │ │\n * │ └─────────────┘ └──────────────┘ └─────────────────┘ │\n * │ │ │\n * │ ▼ │\n * │ ┌─────────────────────────────────────┐ │\n * │ │ ToolResponseBuilder │ │\n * │ │ - text(), image(), error() │ │\n * │ │ - detail() for structured data │ │\n * │ └─────────────────────────────────────┘ │\n * └─────────────────────────────────────────────────────────────────┘\n * ```\n *\n * ## Tool Types\n *\n * | Factory | Return Type | Use Case |\n * |---------------|------------------|-----------------------------------|\n * | createTool | AgentToolResult | Full control over response |\n * | createTextTool| string → text | Simple text responses |\n * | createJsonTool| object → JSON | Structured data responses |\n *\n * ## Example\n *\n * ```typescript\n * import { createTool, Type } from './tool-dsl';\n *\n * const greetTool = createTool({\n * name: 'greet',\n * description: 'Greet a user by name',\n * schema: Type.Object({\n * name: Type.String({ description: 'Name to greet' }),\n * }),\n * run: async ({ name }, { respond }) => {\n * return respond.text(`Hello, ${name}!`);\n * },\n * });\n * ```\n *\n * ## Features\n *\n * - **Type-safe schemas**: Uses TypeBox for compile-time type inference\n * - **AJV validation**: Runtime validation with format support\n * - **Retry logic**: Built-in exponential backoff for transient failures\n * - **Sandbox support**: Tools can run in isolated environments\n * - **Context interpolation**: Environment variables and paths\n *\n * @module tools/tool-dsl\n */\n\nimport type { Static, TSchema } from \"@sinclair/typebox\";\nimport { Ajv, type ErrorObject, type ValidateFunction } from \"ajv\";\nimport addFormatsModule, { type FormatsPlugin } from \"ajv-formats\";\nimport type {\n\tAgentToolResult,\n\tAgentToolUpdateCallback,\n\tToolAnnotations,\n\tToolSourceMetadata,\n} from \"../agent/types.js\";\nimport type { Sandbox } from \"../sandbox/types.js\";\nimport { resolveDefaultExport } from \"../utils/module-interop.js\";\n\n// ESM/CJS interop: ajv-formats default may be nested under .default in some loaders\nconst addFormats = resolveDefaultExport<FormatsPlugin>(addFormatsModule);\n\n// Create a singleton AJV instance for schema validation\nlet ajv: Ajv | null = null;\ntry {\n\tajv = new Ajv({\n\t\t// Avoid unbounded error collection on large/invalid payloads\n\t\tallErrors: false,\n\t\tstrict: false,\n\t\tuseDefaults: true, // Apply schema defaults to input\n\t});\n\taddFormats(ajv);\n} catch {\n\t// AJV initialization failed (likely CSP restriction)\n\tajv = null;\n}\n\n// Cache compiled validators per schema to avoid recompiling on every execute()\nconst validatorCache = new WeakMap<TSchema, ValidateFunction>();\n\nfunction getOrCompileValidator(schema: TSchema): ValidateFunction | null {\n\tif (!ajv) return null;\n\n\tlet validate = validatorCache.get(schema);\n\tif (!validate) {\n\t\tvalidate = ajv.compile(schema);\n\t\tvalidatorCache.set(schema, validate);\n\t}\n\treturn validate;\n}\n\nexport class ToolResponseBuilder<Details> {\n\tprivate _content: (\n\t\t| { type: \"text\"; text: string }\n\t\t| { type: \"image\"; data: string; mimeType: string }\n\t)[] = [];\n\tprivate _details?: Details;\n\tprivate _isError = false;\n\n\ttext(content: string): this {\n\t\tthis._content.push({ type: \"text\", text: content });\n\t\treturn this;\n\t}\n\n\timage(base64: string, mimeType: string): this {\n\t\tthis._content.push({ type: \"image\", data: base64, mimeType });\n\t\treturn this;\n\t}\n\n\tdetail(details: Details): this {\n\t\tthis._details = details;\n\t\treturn this;\n\t}\n\n\terror(message: string): this {\n\t\tthis.text(message);\n\t\tthis._isError = true;\n\t\treturn this;\n\t}\n\n\tbuild(): AgentToolResult<Details> {\n\t\treturn {\n\t\t\tcontent: this._content,\n\t\t\tdetails: this._details,\n\t\t\tisError: this._isError,\n\t\t};\n\t}\n}\n\nexport interface ToolRunContext<Details> {\n\ttoolCallId: string;\n\tsignal?: AbortSignal;\n\trespond: ToolResponseBuilder<Details>;\n\tsandbox?: Sandbox;\n\tonUpdate?: AgentToolUpdateCallback<Details>;\n}\n\nexport interface CreateToolOptions<Schema extends TSchema, Details> {\n\tname: string;\n\tlabel?: string;\n\tdescription: string;\n\tschema: Schema;\n\tannotations?: ToolAnnotations;\n\tsource?: ToolSourceMetadata;\n\ttoolType?: string;\n\tinputExamples?: unknown[];\n\tallowedCallers?: string[];\n\tdeferApiDefinition?: boolean;\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\tundefined | ToolResponseBuilder<Details> | AgentToolResult<Details>\n\t\t >;\n\tmaxRetries?: number;\n\tretryDelayMs?: number;\n\tshouldRetry?: (error: unknown) => boolean;\n\tgetToolUseSummary?: (params: Static<Schema>) => string | null;\n\tgetDisplayName?: (params: Static<Schema>) => string | null;\n\tgetActivityDescription?: (params: Static<Schema>) => string | null;\n}\n\ntype StaticSchema<Schema extends TSchema> = Static<Schema>;\n\nexport class ToolError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly code?: string,\n\t\tpublic readonly details?: unknown,\n\t) {\n\t\tsuper(message);\n\t\tthis.name = \"ToolError\";\n\t}\n}\n\nexport function createTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateToolOptions<Schema, Details>,\n) {\n\treturn Object.freeze({\n\t\tname: options.name,\n\t\tlabel: options.label ?? options.name,\n\t\tdescription: options.description,\n\t\tparameters: options.schema,\n\t\tannotations: options.annotations,\n\t\tsource: options.source,\n\t\ttoolType: options.toolType,\n\t\tinputExamples: options.inputExamples,\n\t\tallowedCallers: options.allowedCallers,\n\t\tdeferApiDefinition: options.deferApiDefinition,\n\t\tmaxRetries: options.maxRetries,\n\t\tretryDelayMs: options.retryDelayMs,\n\t\tshouldRetry: options.shouldRetry,\n\t\tgetToolUseSummary: options.getToolUseSummary\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getToolUseSummary?.(params as StaticSchema<Schema>) ?? null\n\t\t\t: undefined,\n\t\tgetDisplayName: options.getDisplayName\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getDisplayName?.(params as StaticSchema<Schema>) ?? null\n\t\t\t: undefined,\n\t\tgetActivityDescription: options.getActivityDescription\n\t\t\t? (params: Record<string, unknown>) =>\n\t\t\t\t\toptions.getActivityDescription?.(params as StaticSchema<Schema>) ??\n\t\t\t\t\tnull\n\t\t\t: undefined,\n\t\texecute: async (\n\t\t\ttoolCallId: string,\n\t\t\tparams: Record<string, unknown>,\n\t\t\tsignal?: AbortSignal,\n\t\t\tcontext?: { sandbox?: Sandbox },\n\t\t\tonUpdate?: AgentToolUpdateCallback<Details>,\n\t\t) => {\n\t\t\t// Validate params against schema using cached validator\n\t\t\tif (options.schema) {\n\t\t\t\tconst validate = getOrCompileValidator(options.schema);\n\t\t\t\tif (validate && !validate(params)) {\n\t\t\t\t\tconst errors =\n\t\t\t\t\t\t(validate.errors ?? [])\n\t\t\t\t\t\t\t.map((err) => {\n\t\t\t\t\t\t\t\tconst path =\n\t\t\t\t\t\t\t\t\terr.instancePath && err.instancePath.length > 1\n\t\t\t\t\t\t\t\t\t\t? err.instancePath.substring(1)\n\t\t\t\t\t\t\t\t\t\t: (err.params as { missingProperty?: string })\n\t\t\t\t\t\t\t\t\t\t\t\t.missingProperty || \"root\";\n\t\t\t\t\t\t\t\treturn ` - ${path}: ${err.message ?? \"invalid value\"}`;\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.join(\"\\n\") || \"Unknown validation error\";\n\t\t\t\t\tthrow new ToolError(\n\t\t\t\t\t\t`Validation failed for tool \"${options.name}\":\\n${errors}`,\n\t\t\t\t\t\t\"VALIDATION_ERROR\",\n\t\t\t\t\t\t{ params },\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst maxRetries = options.maxRetries ?? 0;\n\t\t\tconst retryDelayMs = options.retryDelayMs ?? 1000;\n\t\t\tconst shouldRetry = options.shouldRetry ?? (() => true);\n\t\t\tconst typedParams = params as StaticSchema<Schema>;\n\n\t\t\tlet lastError: unknown;\n\t\t\tfor (let attempt = 0; attempt <= maxRetries; attempt++) {\n\t\t\t\tif (attempt > 0) {\n\t\t\t\t\t// Exponential backoff: delay * 2^(attempt-1)\n\t\t\t\t\tconst delay = retryDelayMs * 2 ** (attempt - 1);\n\t\t\t\t\tif (signal) {\n\t\t\t\t\t\tconst activeSignal = signal;\n\t\t\t\t\t\tawait new Promise<void>((resolve, reject) => {\n\t\t\t\t\t\t\tif (activeSignal.aborted) {\n\t\t\t\t\t\t\t\treject(new Error(\"Operation aborted\"));\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\t\t\t\tactiveSignal.removeEventListener(\"abort\", onAbort);\n\t\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t}, delay);\n\t\t\t\t\t\t\tfunction onAbort() {\n\t\t\t\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\t\t\t\tactiveSignal.removeEventListener(\"abort\", onAbort);\n\t\t\t\t\t\t\t\treject(new Error(\"Operation aborted\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tactiveSignal.addEventListener(\"abort\", onAbort, { once: true });\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tawait new Promise((resolve) => setTimeout(resolve, delay));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tconst builder = new ToolResponseBuilder<Details>();\n\t\t\t\t\tconst result = await options.run(typedParams, {\n\t\t\t\t\t\ttoolCallId,\n\t\t\t\t\t\tsignal,\n\t\t\t\t\t\trespond: builder,\n\t\t\t\t\t\tsandbox: context?.sandbox,\n\t\t\t\t\t\tonUpdate,\n\t\t\t\t\t});\n\t\t\t\t\tif (result instanceof ToolResponseBuilder) {\n\t\t\t\t\t\treturn result.build();\n\t\t\t\t\t}\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\treturn builder.build();\n\t\t\t\t} catch (error) {\n\t\t\t\t\tlastError = error;\n\t\t\t\t\tif (attempt < maxRetries && shouldRetry(error)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow lastError;\n\t\t},\n\t});\n}\n\nimport { getHomeDir } from \"../utils/path-expansion.js\";\nimport { expandUserPath as expandUserPathBase } from \"../utils/path-validation.js\";\n\n// Re-export shared path expansion utility to keep tool-dsl API stable\nexport const expandUserPath = expandUserPathBase;\n\n/**\n * Interpolate environment variables and context in a string.\n * Supports: ${env.VAR}, ${cwd}, ${home}\n */\nexport function interpolateContext(value: string): string {\n\treturn value\n\t\t.replace(/\\$\\{env\\.([^}]+)\\}/g, (_, varName) => process.env[varName] ?? \"\")\n\t\t.replace(/\\$\\{cwd\\}/g, process.cwd())\n\t\t.replace(/\\$\\{home\\}/g, getHomeDir());\n}\n\nexport interface CreateTextToolOptions<Schema extends TSchema, Details>\n\textends Omit<CreateToolOptions<Schema, Details>, \"run\"> {\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| string\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\t| string\n\t\t\t\t| undefined\n\t\t\t\t| ToolResponseBuilder<Details>\n\t\t\t\t| AgentToolResult<Details>\n\t\t >;\n}\n\nexport function createTextTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateTextToolOptions<Schema, Details>,\n) {\n\treturn createTool<Schema, Details>({\n\t\t...options,\n\t\trun: async (params, context) => {\n\t\t\tconst result = await options.run(params, context);\n\t\t\tif (typeof result === \"string\") {\n\t\t\t\treturn context.respond.text(result);\n\t\t\t}\n\t\t\treturn result;\n\t\t},\n\t});\n}\n\nexport interface CreateJsonToolOptions<Schema extends TSchema, Details>\n\textends Omit<CreateToolOptions<Schema, Details>, \"run\"> {\n\trun: (\n\t\tparams: import(\"@sinclair/typebox\").Static<Schema>,\n\t\tcontext: ToolRunContext<Details>,\n\t) =>\n\t\t| unknown\n\t\t| undefined\n\t\t| ToolResponseBuilder<Details>\n\t\t| AgentToolResult<Details>\n\t\t| Promise<\n\t\t\t\t| unknown\n\t\t\t\t| undefined\n\t\t\t\t| ToolResponseBuilder<Details>\n\t\t\t\t| AgentToolResult<Details>\n\t\t >;\n}\n\nexport function createJsonTool<Schema extends TSchema, Details = undefined>(\n\toptions: CreateJsonToolOptions<Schema, Details>,\n) {\n\treturn createTool<Schema, Details>({\n\t\t...options,\n\t\trun: async (params, context) => {\n\t\t\tconst result = await options.run(params, context);\n\t\t\tif (result === undefined) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (result instanceof ToolResponseBuilder) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (isAgentToolResult<Details>(result)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\treturn context.respond.text(JSON.stringify(result, null, 2));\n\t\t},\n\t});\n}\n\nfunction isAgentToolResult<Details>(\n\tvalue: unknown,\n): value is AgentToolResult<Details> {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null &&\n\t\t\"content\" in value &&\n\t\tArray.isArray((value as AgentToolResult<Details>).content)\n\t);\n}\n"]}
|