@evalops/maestro 0.10.18 → 0.10.20
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/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/node_modules/@evalops/contracts/dist/advisor-effort.d.ts +8 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js +35 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts +10 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js +48 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts +20 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js +147 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +280 -5
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +36 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +15 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +6 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +593 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js +218 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +91 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +92 -61
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +3 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts +28 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js +71 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +7 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +2 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/scenario.d.ts +191 -0
- package/node_modules/@evalops/contracts/dist/scenario.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/scenario.js +4 -0
- package/node_modules/@evalops/contracts/dist/scenario.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +17 -3
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +16 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/package.json +41 -7
- 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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const EFFORT_LINE = /^\s*Effort:\s*(S|M|L|XL)\s*(?:\(([^)]*)\)|[-:]\s*(.*)|\s*)$/gim;
|
|
2
|
+
const REVISIT_LINE = /^\s*Revisit-if:\s*(.+)$/gim;
|
|
3
|
+
const ADVISOR_EFFORT_SIZES = new Set(["S", "M", "L", "XL"]);
|
|
4
|
+
function normalizeAdvisorEffortSize(value) {
|
|
5
|
+
const normalized = value.toUpperCase();
|
|
6
|
+
if (ADVISOR_EFFORT_SIZES.has(normalized)) {
|
|
7
|
+
return normalized;
|
|
8
|
+
}
|
|
9
|
+
throw new Error(`Invalid advisor effort size: ${value}`);
|
|
10
|
+
}
|
|
11
|
+
export function parseAdvisorEffortSignal(output) {
|
|
12
|
+
let effortMatch = null;
|
|
13
|
+
for (let match = EFFORT_LINE.exec(output); match; match = EFFORT_LINE.exec(output)) {
|
|
14
|
+
effortMatch = match;
|
|
15
|
+
}
|
|
16
|
+
EFFORT_LINE.lastIndex = 0;
|
|
17
|
+
if (!effortMatch) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const selectedEffortEnd = effortMatch.index + effortMatch[0].length;
|
|
21
|
+
const selectedEffortScope = output.slice(selectedEffortEnd);
|
|
22
|
+
let revisitMatch = null;
|
|
23
|
+
for (let match = REVISIT_LINE.exec(selectedEffortScope); match; match = REVISIT_LINE.exec(selectedEffortScope)) {
|
|
24
|
+
revisitMatch = match;
|
|
25
|
+
}
|
|
26
|
+
REVISIT_LINE.lastIndex = 0;
|
|
27
|
+
const justification = (effortMatch[2] ?? effortMatch[3] ?? "").trim();
|
|
28
|
+
const revisitIf = revisitMatch?.[1]?.trim();
|
|
29
|
+
return {
|
|
30
|
+
size: normalizeAdvisorEffortSize(effortMatch[1] ?? ""),
|
|
31
|
+
justification,
|
|
32
|
+
...(revisitIf ? { revisitIf } : {}),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=advisor-effort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advisor-effort.js","sourceRoot":"","sources":["../src/advisor-effort.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,GAChB,gEAAgE,CAAC;AAClE,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAClD,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AAE5D,SAAS,0BAA0B,CAAC,KAAa;IAChD,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACvC,IAAI,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1C,OAAO,UAA+B,CAAC;IACxC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,wBAAwB,C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| \"L\" | \"XL\";\n\nexport interface AdvisorEffortSignal {\n\tsize: AdvisorEffortSize;\n\tjustification: string;\n\trevisitIf?: string;\n}\n\nconst EFFORT_LINE =\n\t/^\\s*Effort:\\s*(S|M|L|XL)\\s*(?:\\(([^)]*)\\)|[-:]\\s*(.*)|\\s*)$/gim;\nconst REVISIT_LINE = /^\\s*Revisit-if:\\s*(.+)$/gim;\nconst ADVISOR_EFFORT_SIZES = new Set([\"S\", \"M\", \"L\", \"XL\"]);\n\nfunction normalizeAdvisorEffortSize(value: string): AdvisorEffortSize {\n\tconst normalized = value.toUpperCase();\n\tif (ADVISOR_EFFORT_SIZES.has(normalized)) {\n\t\treturn normalized as AdvisorEffortSize;\n\t}\n\tthrow new Error(`Invalid advisor effort size: ${value}`);\n}\n\nexport function parseAdvisorEffortSignal(\n\toutput: string,\n): AdvisorEffortSignal | null {\n\tlet effortMatch: RegExpExecArray | null = null;\n\tfor (\n\t\tlet match = EFFORT_LINE.exec(output);\n\t\tmatch;\n\t\tmatch = EFFORT_LINE.exec(output)\n\t) {\n\t\teffortMatch = match;\n\t}\n\tEFFORT_LINE.lastIndex = 0;\n\n\tif (!effortMatch) {\n\t\treturn null;\n\t}\n\n\tconst selectedEffortEnd = effortMatch.index + effortMatch[0].length;\n\tconst selectedEffortScope = output.slice(selectedEffortEnd);\n\tlet revisitMatch: RegExpExecArray | null = null;\n\tfor (\n\t\tlet match = REVISIT_LINE.exec(selectedEffortScope);\n\t\tmatch;\n\t\tmatch = REVISIT_LINE.exec(selectedEffortScope)\n\t) {\n\t\trevisitMatch = match;\n\t}\n\tREVISIT_LINE.lastIndex = 0;\n\n\tconst justification = (effortMatch[2] ?? effortMatch[3] ?? \"\").trim();\n\tconst revisitIf = revisitMatch?.[1]?.trim();\n\n\treturn {\n\t\tsize: normalizeAdvisorEffortSize(effortMatch[1] ?? \"\"),\n\t\tjustification,\n\t\t...(revisitIf ? { revisitIf } : {}),\n\t};\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface DelegationPrompt {
|
|
2
|
+
goal: string;
|
|
3
|
+
context: string;
|
|
4
|
+
task: string;
|
|
5
|
+
evidence: string[];
|
|
6
|
+
validation: string;
|
|
7
|
+
stoppingCondition: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function formatDelegation(prompt: DelegationPrompt): string;
|
|
10
|
+
//# sourceMappingURL=delegation-prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegation-prompt.d.ts","sourceRoot":"","sources":["../src/delegation-prompt.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC1B;AA8BD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAwBjE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const EMPTY_FIELD_PLACEHOLDER = "Not provided.";
|
|
2
|
+
const EMPTY_EVIDENCE_PLACEHOLDER = "No specific evidence provided.";
|
|
3
|
+
function normalizeField(value) {
|
|
4
|
+
const trimmed = value.trim();
|
|
5
|
+
return trimmed.length > 0
|
|
6
|
+
? escapeDelegationHeadings(trimmed)
|
|
7
|
+
: EMPTY_FIELD_PLACEHOLDER;
|
|
8
|
+
}
|
|
9
|
+
function normalizeEvidence(evidence) {
|
|
10
|
+
const normalized = evidence
|
|
11
|
+
.map((item) => item.trim())
|
|
12
|
+
.filter((item) => item.length > 0);
|
|
13
|
+
return normalized.length > 0 ? normalized : [EMPTY_EVIDENCE_PLACEHOLDER];
|
|
14
|
+
}
|
|
15
|
+
function escapeDelegationHeadings(value) {
|
|
16
|
+
return value.replace(/^##(?=\s)/gm, "\\##");
|
|
17
|
+
}
|
|
18
|
+
function formatEvidenceItem(item) {
|
|
19
|
+
const escaped = escapeDelegationHeadings(item);
|
|
20
|
+
const lines = escaped.split("\n");
|
|
21
|
+
const [first = "", ...rest] = lines;
|
|
22
|
+
return [`- ${first}`, ...rest.map((line) => ` ${line}`)].join("\n");
|
|
23
|
+
}
|
|
24
|
+
export function formatDelegation(prompt) {
|
|
25
|
+
const evidence = normalizeEvidence(prompt.evidence)
|
|
26
|
+
.map(formatEvidenceItem)
|
|
27
|
+
.join("\n");
|
|
28
|
+
return [
|
|
29
|
+
"## Goal",
|
|
30
|
+
normalizeField(prompt.goal),
|
|
31
|
+
"",
|
|
32
|
+
"## Context",
|
|
33
|
+
normalizeField(prompt.context),
|
|
34
|
+
"",
|
|
35
|
+
"## Task",
|
|
36
|
+
normalizeField(prompt.task),
|
|
37
|
+
"",
|
|
38
|
+
"## Evidence",
|
|
39
|
+
evidence,
|
|
40
|
+
"",
|
|
41
|
+
"## Validation",
|
|
42
|
+
normalizeField(prompt.validation),
|
|
43
|
+
"",
|
|
44
|
+
"## Stopping Condition",
|
|
45
|
+
normalizeField(prompt.stoppingCondition),
|
|
46
|
+
].join("\n");
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=delegation-prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegation-prompt.js","sourceRoot":"","sources":["../src/delegation-prompt.ts"],"names":[],"mappings":"AASA,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAChD,MAAM,0BAA0B,GAAG,gCAAgC,CAAC;AAEpE,SAAS,cAAc,CAAC,KAAa;IACpC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC;QACxB,CAAC,CAAC,wBAAwB,CAAC,OAAO,CAAC;QACnC,CAAC,CAAC,uBAAuB,CAAC;AAC5B,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAkB;IAC5C,MAAM,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b,QAAQ;QACR,EAAE;QACF,eAAe;QACf,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC;QACjC,EAAE;QACF,uBAAuB;QACvB,cAAc,CAAC,MAAM,CAAC,iBAAiB,CAAC;KACxC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC","sourcesContent":["export interface DelegationPrompt {\n\tgoal: string;\n\tcontext: string;\n\ttask: string;\n\tevidence: string[];\n\tvalidation: string;\n\tstoppingCondition: string;\n}\n\nconst EMPTY_FIELD_PLACEHOLDER = \"Not provided.\";\nconst EMPTY_EVIDENCE_PLACEHOLDER = \"No specific evidence provided.\";\n\nfunction normalizeField(value: string): string {\n\tconst trimmed = value.trim();\n\treturn trimmed.length > 0\n\t\t? escapeDelegationHeadings(trimmed)\n\t\t: EMPTY_FIELD_PLACEHOLDER;\n}\n\nfunction normalizeEvidence(evidence: string[]): string[] {\n\tconst normalized = evidence\n\t\t.map((item) => item.trim())\n\t\t.filter((item) => item.length > 0);\n\treturn normalized.length > 0 ? normalized : [EMPTY_EVIDENCE_PLACEHOLDER];\n}\n\nfunction escapeDelegationHeadings(value: string): string {\n\treturn value.replace(/^##(?=\\s)/gm, \"\\\\##\");\n}\n\nfunction formatEvidenceItem(item: string): string {\n\tconst escaped = escapeDelegationHeadings(item);\n\tconst lines = escaped.split(\"\\n\");\n\tconst [first = \"\", ...rest] = lines;\n\treturn [`- ${first}`, ...rest.map((line) => ` ${line}`)].join(\"\\n\");\n}\n\nexport function formatDelegation(prompt: DelegationPrompt): string {\n\tconst evidence = normalizeEvidence(prompt.evidence)\n\t\t.map(formatEvidenceItem)\n\t\t.join(\"\\n\");\n\n\treturn [\n\t\t\"## Goal\",\n\t\tnormalizeField(prompt.goal),\n\t\t\"\",\n\t\t\"## Context\",\n\t\tnormalizeField(prompt.context),\n\t\t\"\",\n\t\t\"## Task\",\n\t\tnormalizeField(prompt.task),\n\t\t\"\",\n\t\t\"## Evidence\",\n\t\tevidence,\n\t\t\"\",\n\t\t\"## Validation\",\n\t\tnormalizeField(prompt.validation),\n\t\t\"\",\n\t\t\"## Stopping Condition\",\n\t\tnormalizeField(prompt.stoppingCondition),\n\t].join(\"\\n\");\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type GuardedFileDefaultBehavior = "ask" | "block";
|
|
2
|
+
export interface GuardedFilePattern {
|
|
3
|
+
key: string;
|
|
4
|
+
description: string;
|
|
5
|
+
patterns: string[];
|
|
6
|
+
reason?: string;
|
|
7
|
+
defaultBehavior: GuardedFileDefaultBehavior;
|
|
8
|
+
}
|
|
9
|
+
export interface GuardedFilesSettings {
|
|
10
|
+
allowlist?: string[];
|
|
11
|
+
rules?: GuardedFilePattern[];
|
|
12
|
+
mandatoryKeys?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface GuardedFilesPolicySettings {
|
|
15
|
+
user?: GuardedFilesSettings | null;
|
|
16
|
+
organization?: GuardedFilesSettings | null;
|
|
17
|
+
}
|
|
18
|
+
export declare const DEFAULT_GUARDED_FILE_PATTERNS: GuardedFilePattern[];
|
|
19
|
+
export declare function normalizeGuardedFilesSettings(settings?: GuardedFilesSettings | null): Required<Pick<GuardedFilesSettings, "allowlist" | "rules" | "mandatoryKeys">>;
|
|
20
|
+
//# sourceMappingURL=guarded-files-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guarded-files-settings.d.ts","sourceRoot":"","sources":["../src/guarded-files-settings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,0BAA0B,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,0BAA0B,CAAC;CAC5C;AAED,MAAM,WAAW,oBAAoB;IACpC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,0BAA0B;IAC1C,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC,YAAY,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,6BAA6B,EAAE,kBAAkB,EAuG7D,CAAC;AA8CF,wBAAgB,6BAA6B,CAC5C,QAAQ,CAAC,EAAE,oBAAoB,GAAG,IAAI,GACpC,QAAQ,CACV,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,OAAO,GAAG,eAAe,CAAC,CACnE,CAWA"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export const DEFAULT_GUARDED_FILE_PATTERNS = [
|
|
2
|
+
{
|
|
3
|
+
key: "cursor-config",
|
|
4
|
+
description: "Cursor configuration",
|
|
5
|
+
patterns: [
|
|
6
|
+
"**/.cursor/**",
|
|
7
|
+
"~/.cursor/**",
|
|
8
|
+
"~/Library/Application Support/Cursor/**",
|
|
9
|
+
"~/.config/Cursor/**",
|
|
10
|
+
"%APPDATA%/Cursor/**",
|
|
11
|
+
],
|
|
12
|
+
reason: "Editor configuration can contain local agent state and credentials.",
|
|
13
|
+
defaultBehavior: "ask",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "windsurf-config",
|
|
17
|
+
description: "Windsurf configuration",
|
|
18
|
+
patterns: [
|
|
19
|
+
"**/.windsurf/**",
|
|
20
|
+
"~/.codeium/windsurf/**",
|
|
21
|
+
"~/Library/Application Support/Windsurf/**",
|
|
22
|
+
"~/.config/Windsurf/**",
|
|
23
|
+
"%APPDATA%/Windsurf/**",
|
|
24
|
+
"/Library/Application Support/Windsurf/**",
|
|
25
|
+
"/etc/windsurf/**",
|
|
26
|
+
"%ProgramData%/Windsurf/**",
|
|
27
|
+
],
|
|
28
|
+
reason: "Editor configuration can contain local agent state and credentials.",
|
|
29
|
+
defaultBehavior: "ask",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: "antigravity-config",
|
|
33
|
+
description: "Antigravity configuration",
|
|
34
|
+
patterns: ["~/.gemini/**"],
|
|
35
|
+
reason: "Agent configuration can contain prompts, state, and credentials.",
|
|
36
|
+
defaultBehavior: "ask",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "jetbrains-app-config",
|
|
40
|
+
description: "JetBrains application configuration",
|
|
41
|
+
patterns: [
|
|
42
|
+
"~/Library/Application Support/JetBrains/**",
|
|
43
|
+
"~/.config/JetBrains/**",
|
|
44
|
+
"~/.local/share/JetBrains/**",
|
|
45
|
+
"%APPDATA%/JetBrains/**",
|
|
46
|
+
"%LOCALAPPDATA%/JetBrains/**",
|
|
47
|
+
],
|
|
48
|
+
reason: "IDE application settings can contain credentials and local history.",
|
|
49
|
+
defaultBehavior: "ask",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "jetbrains-project-config",
|
|
53
|
+
description: "JetBrains project configuration",
|
|
54
|
+
patterns: ["**/.idea/**"],
|
|
55
|
+
reason: "Project IDE state can contain machine-local paths and credentials.",
|
|
56
|
+
defaultBehavior: "ask",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "neovim-config",
|
|
60
|
+
description: "Neovim configuration",
|
|
61
|
+
patterns: [
|
|
62
|
+
"~/.config/nvim/**",
|
|
63
|
+
"~/.local/share/nvim/**",
|
|
64
|
+
"~/.local/state/nvim/**",
|
|
65
|
+
],
|
|
66
|
+
reason: "Editor configuration can execute code or reveal local workflow state.",
|
|
67
|
+
defaultBehavior: "ask",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "amp-settings",
|
|
71
|
+
description: "Amp settings",
|
|
72
|
+
patterns: ["**/amp.json", "**/.amp/**"],
|
|
73
|
+
reason: "Agent configuration can contain prompts, state, and credentials.",
|
|
74
|
+
defaultBehavior: "ask",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: "shell-config",
|
|
78
|
+
description: "Shell configuration",
|
|
79
|
+
patterns: [
|
|
80
|
+
"~/.bashrc",
|
|
81
|
+
"~/.zshrc",
|
|
82
|
+
"~/.config/fish/config.fish",
|
|
83
|
+
"~/.config/fish/conf.d/**",
|
|
84
|
+
"~/.cshrc",
|
|
85
|
+
"~/.tcshrc",
|
|
86
|
+
],
|
|
87
|
+
reason: "Shell startup files can alter command execution and privilege boundaries.",
|
|
88
|
+
defaultBehavior: "ask",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "ssh-gpg-keys",
|
|
92
|
+
description: "SSH and GPG keys",
|
|
93
|
+
patterns: ["**/.ssh/**", "~/.ssh/**", "**/.gnupg/**", "~/.gnupg/**"],
|
|
94
|
+
reason: "Private keys and signing material must not be read or modified implicitly.",
|
|
95
|
+
defaultBehavior: "ask",
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
function normalizeStringList(values) {
|
|
99
|
+
return Array.isArray(values)
|
|
100
|
+
? [
|
|
101
|
+
...new Set(values
|
|
102
|
+
.filter((value) => typeof value === "string")
|
|
103
|
+
.map((value) => value.trim())
|
|
104
|
+
.filter(Boolean)),
|
|
105
|
+
]
|
|
106
|
+
: [];
|
|
107
|
+
}
|
|
108
|
+
function normalizeGuardedFilePattern(rule) {
|
|
109
|
+
if (rule === null || typeof rule !== "object") {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
const record = rule;
|
|
113
|
+
const key = typeof record.key === "string" ? record.key.trim() : "";
|
|
114
|
+
const patterns = normalizeStringList(record.patterns);
|
|
115
|
+
if (!key || patterns.length === 0) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
const description = typeof record.description === "string" && record.description.trim()
|
|
119
|
+
? record.description.trim()
|
|
120
|
+
: key;
|
|
121
|
+
const defaultBehavior = record.defaultBehavior === "block" || record.defaultBehavior === "ask"
|
|
122
|
+
? record.defaultBehavior
|
|
123
|
+
: "ask";
|
|
124
|
+
const reason = typeof record.reason === "string" && record.reason.trim()
|
|
125
|
+
? record.reason.trim()
|
|
126
|
+
: undefined;
|
|
127
|
+
return {
|
|
128
|
+
key,
|
|
129
|
+
description,
|
|
130
|
+
patterns,
|
|
131
|
+
...(reason ? { reason } : {}),
|
|
132
|
+
defaultBehavior,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export function normalizeGuardedFilesSettings(settings) {
|
|
136
|
+
return {
|
|
137
|
+
allowlist: normalizeStringList(settings?.allowlist),
|
|
138
|
+
rules: Array.isArray(settings?.rules)
|
|
139
|
+
? settings.rules.flatMap((rule) => {
|
|
140
|
+
const normalizedRule = normalizeGuardedFilePattern(rule);
|
|
141
|
+
return normalizedRule ? [normalizedRule] : [];
|
|
142
|
+
})
|
|
143
|
+
: [],
|
|
144
|
+
mandatoryKeys: normalizeStringList(settings?.mandatoryKeys),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=guarded-files-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guarded-files-settings.js","sourceRoot":"","sources":["../src/guarded-files-settings.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,6BAA6B,GAAyB;IAClE;QACC,GAAG,EAAE,eAAe;QACpB,WAAW,EAAE,sBAAsB;QACnC,QAAQ,EAAE;YACT,eAAe;YACf,cAAc;YACd,yCAAyC;YACzC,qBAAqB;YACrB,qBAAqB;SACrB;QACD,MAAM,EACL,qEAAqE;QACtE,eAAe,EAAE,KAAK;KACtB;IACD;QACC,GAAG,EAAE,iBAAiB;QACtB,WAAW,EAAE,wBAAwB;QACrC,QAAQ,EAAE;YACT,iBAAiB;YACjB,wBAAwB;YACxB,2CAA2C;YAC3C,uBAAuB;YACvB,uBAAuB;YACvB,0CAA0C;YAC1C,kBAAkB;YAClB,2BAA2B;SAC3B;QAC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AK;QACrE,CAAC,CAAC,MAAM,CAAC,eAAe;QACxB,CAAC,CAAC,KAAK,CAAC;IACV,MAAM,MAAM,GACX,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QACxD,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QACtB,CAAC,CAAC,SAAS,CAAC;IACd,OAAO;QACN,GAAG;QACH,WAAW;QACX,QAAQ;QACR,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,eAAe;KACf,CAAC;AACH,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC5C,QAAsC;IAItC,OAAO;QACN,SAAS,EAAE,mBAAmB,CAAC,QAAQ,EAAE,SAAS,CAAC;QACnD,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC;YACpC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBAChC,MAAM,cAAc,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;gBACzD,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/C,CAAC,CAAC;YACH,CAAC,CAAC,EAAE;QACL,aAAa,EAAE,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC;KAC3D,CAAC;AACH,CAAC","sourcesContent":["export type GuardedFileDefaultBehavior = \"ask\" | \"block\";\n\nexport interface GuardedFilePattern {\n\tkey: string;\n\tdescription: string;\n\tpatterns: string[];\n\treason?: string;\n\tdefaultBehavior: GuardedFileDefaultBehavior;\n}\n\nexport interface GuardedFilesSettings {\n\tallowlist?: string[];\n\trules?: GuardedFilePattern[];\n\tmandatoryKeys?: string[];\n}\n\nexport interface GuardedFilesPolicySettings {\n\tuser?: GuardedFilesSettings | null;\n\torganization?: GuardedFilesSettings | null;\n}\n\nexport const DEFAULT_GUARDED_FILE_PATTERNS: GuardedFilePattern[] = [\n\t{\n\t\tkey: \"cursor-config\",\n\t\tdescription: \"Cursor configuration\",\n\t\tpatterns: [\n\t\t\t\"**/.cursor/**\",\n\t\t\t\"~/.cursor/**\",\n\t\t\t\"~/Library/Application Support/Cursor/**\",\n\t\t\t\"~/.config/Cursor/**\",\n\t\t\t\"%APPDATA%/Cursor/**\",\n\t\t],\n\t\treason:\n\t\t\t\"Editor configuration can contain local agent state and credentials.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"windsurf-config\",\n\t\tdescription: \"Windsurf configuration\",\n\t\tpatterns: [\n\t\t\t\"**/.windsurf/**\",\n\t\t\t\"~/.codeium/windsurf/**\",\n\t\t\t\"~/Library/Application Support/Windsurf/**\",\n\t\t\t\"~/.config/Windsurf/**\",\n\t\t\t\"%APPDATA%/Windsurf/**\",\n\t\t\t\"/Library/Application Support/Windsurf/**\",\n\t\t\t\"/etc/windsurf/**\",\n\t\t\t\"%ProgramData%/Windsurf/**\",\n\t\t],\n\t\treason:\n\t\t\t\"Editor configuration can contain local agent state and credentials.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"antigravity-config\",\n\t\tdescription: \"Antigravity configuration\",\n\t\tpatterns: [\"~/.gemini/**\"],\n\t\treason: \"Agent configuration can contain prompts, state, and credentials.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"jetbrains-app-config\",\n\t\tdescription: \"JetBrains application configuration\",\n\t\tpatterns: [\n\t\t\t\"~/Library/Application Support/JetBrains/**\",\n\t\t\t\"~/.config/JetBrains/**\",\n\t\t\t\"~/.local/share/JetBrains/**\",\n\t\t\t\"%APPDATA%/JetBrains/**\",\n\t\t\t\"%LOCALAPPDATA%/JetBrains/**\",\n\t\t],\n\t\treason:\n\t\t\t\"IDE application settings can contain credentials and local history.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"jetbrains-project-config\",\n\t\tdescription: \"JetBrains project configuration\",\n\t\tpatterns: [\"**/.idea/**\"],\n\t\treason:\n\t\t\t\"Project IDE state can contain machine-local paths and credentials.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"neovim-config\",\n\t\tdescription: \"Neovim configuration\",\n\t\tpatterns: [\n\t\t\t\"~/.config/nvim/**\",\n\t\t\t\"~/.local/share/nvim/**\",\n\t\t\t\"~/.local/state/nvim/**\",\n\t\t],\n\t\treason:\n\t\t\t\"Editor configuration can execute code or reveal local workflow state.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"amp-settings\",\n\t\tdescription: \"Amp settings\",\n\t\tpatterns: [\"**/amp.json\", \"**/.amp/**\"],\n\t\treason: \"Agent configuration can contain prompts, state, and credentials.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"shell-config\",\n\t\tdescription: \"Shell configuration\",\n\t\tpatterns: [\n\t\t\t\"~/.bashrc\",\n\t\t\t\"~/.zshrc\",\n\t\t\t\"~/.config/fish/config.fish\",\n\t\t\t\"~/.config/fish/conf.d/**\",\n\t\t\t\"~/.cshrc\",\n\t\t\t\"~/.tcshrc\",\n\t\t],\n\t\treason:\n\t\t\t\"Shell startup files can alter command execution and privilege boundaries.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n\t{\n\t\tkey: \"ssh-gpg-keys\",\n\t\tdescription: \"SSH and GPG keys\",\n\t\tpatterns: [\"**/.ssh/**\", \"~/.ssh/**\", \"**/.gnupg/**\", \"~/.gnupg/**\"],\n\t\treason:\n\t\t\t\"Private keys and signing material must not be read or modified implicitly.\",\n\t\tdefaultBehavior: \"ask\",\n\t},\n];\n\nfunction normalizeStringList(values: unknown): string[] {\n\treturn Array.isArray(values)\n\t\t? [\n\t\t\t\t...new Set(\n\t\t\t\t\tvalues\n\t\t\t\t\t\t.filter((value): value is string => typeof value === \"string\")\n\t\t\t\t\t\t.map((value) => value.trim())\n\t\t\t\t\t\t.filter(Boolean),\n\t\t\t\t),\n\t\t\t]\n\t\t: [];\n}\n\nfunction normalizeGuardedFilePattern(rule: unknown): GuardedFilePattern | null {\n\tif (rule === null || typeof rule !== \"object\") {\n\t\treturn null;\n\t}\n\tconst record = rule as Record<string, unknown>;\n\tconst key = typeof record.key === \"string\" ? record.key.trim() : \"\";\n\tconst patterns = normalizeStringList(record.patterns);\n\tif (!key || patterns.length === 0) {\n\t\treturn null;\n\t}\n\tconst description =\n\t\ttypeof record.description === \"string\" && record.description.trim()\n\t\t\t? record.description.trim()\n\t\t\t: key;\n\tconst defaultBehavior =\n\t\trecord.defaultBehavior === \"block\" || record.defaultBehavior === \"ask\"\n\t\t\t? record.defaultBehavior\n\t\t\t: \"ask\";\n\tconst reason =\n\t\ttypeof record.reason === \"string\" && record.reason.trim()\n\t\t\t? record.reason.trim()\n\t\t\t: undefined;\n\treturn {\n\t\tkey,\n\t\tdescription,\n\t\tpatterns,\n\t\t...(reason ? { reason } : {}),\n\t\tdefaultBehavior,\n\t};\n}\n\nexport function normalizeGuardedFilesSettings(\n\tsettings?: GuardedFilesSettings | null,\n): Required<\n\tPick<GuardedFilesSettings, \"allowlist\" | \"rules\" | \"mandatoryKeys\">\n> {\n\treturn {\n\t\tallowlist: normalizeStringList(settings?.allowlist),\n\t\trules: Array.isArray(settings?.rules)\n\t\t\t? settings.rules.flatMap((rule) => {\n\t\t\t\t\tconst normalizedRule = normalizeGuardedFilePattern(rule);\n\t\t\t\t\treturn normalizedRule ? [normalizedRule] : [];\n\t\t\t\t})\n\t\t\t: [],\n\t\tmandatoryKeys: normalizeStringList(settings?.mandatoryKeys),\n\t};\n}\n"]}
|
|
@@ -19,6 +19,8 @@ export declare const headlessThinkingLevels: readonly ["off", "minimal", "low",
|
|
|
19
19
|
export type HeadlessThinkingLevel = (typeof headlessThinkingLevels)[number];
|
|
20
20
|
export declare const headlessApprovalModes: readonly ["auto", "prompt", "fail"];
|
|
21
21
|
export type HeadlessApprovalMode = (typeof headlessApprovalModes)[number];
|
|
22
|
+
export declare const headlessExecutorTypes: readonly ["live", "replay"];
|
|
23
|
+
export type HeadlessExecutorType = (typeof headlessExecutorTypes)[number];
|
|
22
24
|
export declare const headlessErrorTypes: readonly ["transient", "fatal", "tool", "cancelled", "protocol"];
|
|
23
25
|
export type HeadlessErrorType = (typeof headlessErrorTypes)[number];
|
|
24
26
|
export declare const headlessUtilityOperations: readonly ["command_exec", "file_search", "file_watch", "file_read"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-protocol-generated.d.ts","sourceRoot":"","sources":["../src/headless-protocol-generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,uBAAuB,EAAG,YAAqB,CAAC;AAE7D,eAAO,MAAM,0BAA0B,qFAM7B,CAAC;AACX,MAAM,MAAM,yBAAyB,GACpC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,gCAAgC,kHAUnC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,+BAA+B,kDAKlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAC1C,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,eAAO,MAAM,gCAAgC,qCAInC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,uBAAuB,mCAAoC,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,eAAO,MAAM,yBAAyB,mEAK5B,CAAC;AACX,MAAM,MAAM,wBAAwB,GACnC,CAAC,OA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CAAC;AAI7E,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAU,CAAC;AAI5E,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAClD,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACC,CAAC;AAIX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,OAAO;IACP,MAAM;IACN,QAAQ;IACR,WAAW;IACX,eAAe;IACf,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,qBAAqB;IACrB,mBAAmB;IACnB,0BAA0B;IAC1B,yBAAyB;IACzB,QAAQ;IACR,UAAU;CACD,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,UAAU;IACV,OAAO;IACP,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,YAAY;IACZ,aAAa;IACb,UAAU;IACV,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;IACzB,iBAAiB;IACjB,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;IAC1B,4BAA4B;IAC5B,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,cAAc;IACd,iBAAiB;CACR,CAAC","sourcesContent":["/**\n * Auto-generated by `scripts/headless-protocol-codegen.mjs`.\n * Do not edit manually; update `proto/maestro/v1/headless.proto` instead.\n */\n\nexport const headlessProtocolVersion = \"2026-04-02\" as const;\n\nexport const headlessServerRequestTypes = [\n\t\"approval\",\n\t\"client_tool\",\n\t\"mcp_elicitation\",\n\t\"user_input\",\n\t\"tool_retry\",\n] as const;\nexport type HeadlessServerRequestType =\n\t(typeof headlessServerRequestTypes)[number];\n\nexport const headlessServerRequestResolutions = [\n\t\"approved\",\n\t\"denied\",\n\t\"completed\",\n\t\"failed\",\n\t\"answered\",\n\t\"retried\",\n\t\"skipped\",\n\t\"aborted\",\n\t\"cancelled\",\n] as const;\nexport type HeadlessServerRequestResolution =\n\t(typeof headlessServerRequestResolutions)[number];\n\nexport const headlessServerRequestResolvedBy = [\n\t\"user\",\n\t\"policy\",\n\t\"client\",\n\t\"runtime\",\n] as const;\nexport type HeadlessServerRequestResolvedBy =\n\t(typeof headlessServerRequestResolvedBy)[number];\n\nexport const headlessToolRetryDecisionActions = [\n\t\"retry\",\n\t\"skip\",\n\t\"abort\",\n] as const;\nexport type HeadlessToolRetryDecisionAction =\n\t(typeof headlessToolRetryDecisionActions)[number];\n\nexport const headlessConnectionRoles = [\"viewer\", \"controller\"] as const;\nexport type HeadlessConnectionRole = (typeof headlessConnectionRoles)[number];\n\nexport const headlessNotificationTypes = [\n\t\"status\",\n\t\"heartbeat\",\n\t\"connection_info\",\n\t\"compaction\",\n] as const;\nexport type HeadlessNotificationType =\n\t(typeof headlessNotificationTypes)[number];\n\nexport const headlessThinkingLevels = [\n\t\"off\",\n\t\"minimal\",\n\t\"low\",\n\t\"medium\",\n\t\"high\",\n\t\"ultra\",\n] as const;\nexport type HeadlessThinkingLevel = (typeof headlessThinkingLevels)[number];\n\nexport const headlessApprovalModes = [\"auto\", \"prompt\", \"fail\"] as const;\nexport type HeadlessApprovalMode = (typeof headlessApprovalModes)[number];\n\nexport const headlessErrorTypes = [\n\t\"transient\",\n\t\"fatal\",\n\t\"tool\",\n\t\"cancelled\",\n\t\"protocol\",\n] as const;\nexport type HeadlessErrorType = (typeof headlessErrorTypes)[number];\n\nexport const headlessUtilityOperations = [\n\t\"command_exec\",\n\t\"file_search\",\n\t\"file_watch\",\n\t\"file_read\",\n] as const;\nexport type HeadlessUtilityOperation =\n\t(typeof headlessUtilityOperations)[number];\n\nexport const headlessUtilityCommandStreams = [\"stdout\", \"stderr\"] as const;\nexport type HeadlessUtilityCommandStream =\n\t(typeof headlessUtilityCommandStreams)[number];\n\nexport const headlessUtilityCommandShellModes = [\"shell\", \"direct\"] as const;\nexport type HeadlessUtilityCommandShellMode =\n\t(typeof headlessUtilityCommandShellModes)[number];\n\nexport const headlessUtilityCommandTerminalModes = [\"pipe\", \"pty\"] as const;\nexport type HeadlessUtilityCommandTerminalMode =\n\t(typeof headlessUtilityCommandTerminalModes)[number];\n\nexport const headlessUtilityFileWatchChangeTypes = [\n\t\"create\",\n\t\"modify\",\n\t\"delete\",\n\t\"rename\",\n] as const;\nexport type HeadlessUtilityFileWatchChangeType =\n\t(typeof headlessUtilityFileWatchChangeTypes)[number];\n\nexport const headlessToAgentMessageTypes = [\n\t\"hello\",\n\t\"init\",\n\t\"prompt\",\n\t\"interrupt\",\n\t\"tool_response\",\n\t\"client_tool_result\",\n\t\"server_request_response\",\n\t\"utility_command_start\",\n\t\"utility_command_terminate\",\n\t\"utility_command_stdin\",\n\t\"utility_command_resize\",\n\t\"utility_file_search\",\n\t\"utility_file_read\",\n\t\"utility_file_watch_start\",\n\t\"utility_file_watch_stop\",\n\t\"cancel\",\n\t\"shutdown\",\n] as const;\nexport type HeadlessToAgentMessageType =\n\t(typeof headlessToAgentMessageTypes)[number];\n\nexport const headlessFromAgentMessageTypes = [\n\t\"hello_ok\",\n\t\"ready\",\n\t\"response_start\",\n\t\"response_chunk\",\n\t\"response_end\",\n\t\"tool_call\",\n\t\"tool_start\",\n\t\"tool_output\",\n\t\"tool_end\",\n\t\"client_tool_request\",\n\t\"server_request\",\n\t\"server_request_resolved\",\n\t\"raw_agent_event\",\n\t\"utility_command_started\",\n\t\"utility_command_resized\",\n\t\"utility_command_output\",\n\t\"utility_command_exited\",\n\t\"utility_file_search_results\",\n\t\"utility_file_read_result\",\n\t\"utility_file_watch_started\",\n\t\"utility_file_watch_event\",\n\t\"utility_file_watch_stopped\",\n\t\"error\",\n\t\"status\",\n\t\"compaction\",\n\t\"session_info\",\n\t\"connection_info\",\n] as const;\nexport type HeadlessFromAgentMessageType =\n\t(typeof headlessFromAgentMessageTypes)[number];\n"]}
|
|
1
|
+
{"version":3,"file":"headless-protocol-generated.js","sourceRoot":"","sources":["../src/headless-protocol-generated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAqB,CAAC;AAE7D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,UAAU;IACV,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,YAAY;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC/C,UAAU;IACV,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;CACF,CAAC;AAIX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC9C,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,SAAS;CACA,CAAC;AAIX,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC/C,OAAO;IACP,MAAM;IACN,OAAO;CACE,CAAC;AAIX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU,CAAC;AAGzE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,QAAQ;IACR,WAAW;IACX,iBAAiB;IACjB,YAAY;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,KAAK;IACL,SAAS;IACT,KAAK;IACL,QAAQ;IACR,MAAM;IACN,OAAO;CACE,CAAC;AAGX,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAGzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC;AAGjE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,WAAW;IACX,OAAO;IACP,MAAM;IACN,WAAW;IACX,UAAU;CACD,CAAC;AAGX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,cAAc;IACd,aAAa;IACb,YAAY;IACZ,WAAW;CACF,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAI3E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;AAI7E,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAU,CAAC;AAI5E,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAClD,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACC,CAAC;AAIX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,OAAO;IACP,MAAM;IACN,QAAQ;IACR,WAAW;IACX,eAAe;IACf,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,2BAA2B;IAC3B,uBAAuB;IACvB,wBAAwB;IACxB,qBAAqB;IACrB,mBAAmB;IACnB,0BAA0B;IAC1B,yBAAyB;IACzB,QAAQ;IACR,UAAU;CACD,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,UAAU;IACV,OAAO;IACP,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,YAAY;IACZ,aAAa;IACb,UAAU;IACV,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;IACzB,iBAAiB;IACjB,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;IAC1B,4BAA4B;IAC5B,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,cAAc;IACd,iBAAiB;CACR,CAAC","sourcesContent":["/**\n * Auto-generated by `scripts/headless-protocol-codegen.mjs`.\n * Do not edit manually; update `proto/maestro/v1/headless.proto` instead.\n */\n\nexport const headlessProtocolVersion = \"2026-04-02\" as const;\n\nexport const headlessServerRequestTypes = [\n\t\"approval\",\n\t\"client_tool\",\n\t\"mcp_elicitation\",\n\t\"user_input\",\n\t\"tool_retry\",\n] as const;\nexport type HeadlessServerRequestType =\n\t(typeof headlessServerRequestTypes)[number];\n\nexport const headlessServerRequestResolutions = [\n\t\"approved\",\n\t\"denied\",\n\t\"completed\",\n\t\"failed\",\n\t\"answered\",\n\t\"retried\",\n\t\"skipped\",\n\t\"aborted\",\n\t\"cancelled\",\n] as const;\nexport type HeadlessServerRequestResolution =\n\t(typeof headlessServerRequestResolutions)[number];\n\nexport const headlessServerRequestResolvedBy = [\n\t\"user\",\n\t\"policy\",\n\t\"client\",\n\t\"runtime\",\n] as const;\nexport type HeadlessServerRequestResolvedBy =\n\t(typeof headlessServerRequestResolvedBy)[number];\n\nexport const headlessToolRetryDecisionActions = [\n\t\"retry\",\n\t\"skip\",\n\t\"abort\",\n] as const;\nexport type HeadlessToolRetryDecisionAction =\n\t(typeof headlessToolRetryDecisionActions)[number];\n\nexport const headlessConnectionRoles = [\"viewer\", \"controller\"] as const;\nexport type HeadlessConnectionRole = (typeof headlessConnectionRoles)[number];\n\nexport const headlessNotificationTypes = [\n\t\"status\",\n\t\"heartbeat\",\n\t\"connection_info\",\n\t\"compaction\",\n] as const;\nexport type HeadlessNotificationType =\n\t(typeof headlessNotificationTypes)[number];\n\nexport const headlessThinkingLevels = [\n\t\"off\",\n\t\"minimal\",\n\t\"low\",\n\t\"medium\",\n\t\"high\",\n\t\"ultra\",\n] as const;\nexport type HeadlessThinkingLevel = (typeof headlessThinkingLevels)[number];\n\nexport const headlessApprovalModes = [\"auto\", \"prompt\", \"fail\"] as const;\nexport type HeadlessApprovalMode = (typeof headlessApprovalModes)[number];\n\nexport const headlessExecutorTypes = [\"live\", \"replay\"] as const;\nexport type HeadlessExecutorType = (typeof headlessExecutorTypes)[number];\n\nexport const headlessErrorTypes = [\n\t\"transient\",\n\t\"fatal\",\n\t\"tool\",\n\t\"cancelled\",\n\t\"protocol\",\n] as const;\nexport type HeadlessErrorType = (typeof headlessErrorTypes)[number];\n\nexport const headlessUtilityOperations = [\n\t\"command_exec\",\n\t\"file_search\",\n\t\"file_watch\",\n\t\"file_read\",\n] as const;\nexport type HeadlessUtilityOperation =\n\t(typeof headlessUtilityOperations)[number];\n\nexport const headlessUtilityCommandStreams = [\"stdout\", \"stderr\"] as const;\nexport type HeadlessUtilityCommandStream =\n\t(typeof headlessUtilityCommandStreams)[number];\n\nexport const headlessUtilityCommandShellModes = [\"shell\", \"direct\"] as const;\nexport type HeadlessUtilityCommandShellMode =\n\t(typeof headlessUtilityCommandShellModes)[number];\n\nexport const headlessUtilityCommandTerminalModes = [\"pipe\", \"pty\"] as const;\nexport type HeadlessUtilityCommandTerminalMode =\n\t(typeof headlessUtilityCommandTerminalModes)[number];\n\nexport const headlessUtilityFileWatchChangeTypes = [\n\t\"create\",\n\t\"modify\",\n\t\"delete\",\n\t\"rename\",\n] as const;\nexport type HeadlessUtilityFileWatchChangeType =\n\t(typeof headlessUtilityFileWatchChangeTypes)[number];\n\nexport const headlessToAgentMessageTypes = [\n\t\"hello\",\n\t\"init\",\n\t\"prompt\",\n\t\"interrupt\",\n\t\"tool_response\",\n\t\"client_tool_result\",\n\t\"server_request_response\",\n\t\"utility_command_start\",\n\t\"utility_command_terminate\",\n\t\"utility_command_stdin\",\n\t\"utility_command_resize\",\n\t\"utility_file_search\",\n\t\"utility_file_read\",\n\t\"utility_file_watch_start\",\n\t\"utility_file_watch_stop\",\n\t\"cancel\",\n\t\"shutdown\",\n] as const;\nexport type HeadlessToAgentMessageType =\n\t(typeof headlessToAgentMessageTypes)[number];\n\nexport const headlessFromAgentMessageTypes = [\n\t\"hello_ok\",\n\t\"ready\",\n\t\"response_start\",\n\t\"response_chunk\",\n\t\"response_end\",\n\t\"tool_call\",\n\t\"tool_start\",\n\t\"tool_output\",\n\t\"tool_end\",\n\t\"client_tool_request\",\n\t\"server_request\",\n\t\"server_request_resolved\",\n\t\"raw_agent_event\",\n\t\"utility_command_started\",\n\t\"utility_command_resized\",\n\t\"utility_command_output\",\n\t\"utility_command_exited\",\n\t\"utility_file_search_results\",\n\t\"utility_file_read_result\",\n\t\"utility_file_watch_started\",\n\t\"utility_file_watch_event\",\n\t\"utility_file_watch_stopped\",\n\t\"error\",\n\t\"status\",\n\t\"compaction\",\n\t\"session_info\",\n\t\"connection_info\",\n] as const;\nexport type HeadlessFromAgentMessageType =\n\t(typeof headlessFromAgentMessageTypes)[number];\n"]}
|