@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/guardian/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/guardian/types.ts"],"names":[],"mappings":"AAyFA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,eAAe;IACf,OAAO;IACP,MAAM;IACN,OAAO;IACP,WAAW;IACX,QAAQ;IACR,MAAM;IACN,SAAS;CACT,CAAC","sourcesContent":["export type GuardianTarget = \"staged\" | \"all\";\n\nexport type GuardianStatus = \"passed\" | \"failed\" | \"skipped\" | \"error\";\n\nexport interface GuardianToolResult {\n\ttool: string;\n\texitCode: number;\n\tstdout: string;\n\tstderr: string;\n\tdurationMs: number;\n\tskipped?: boolean;\n\treason?: string;\n}\n\nexport interface GuardianRunResult {\n\tstatus: GuardianStatus;\n\texitCode: number;\n\tstartedAt: number;\n\tdurationMs: number;\n\ttarget: GuardianTarget;\n\ttrigger?: string;\n\tfilesScanned: number;\n\tfiles?: string[];\n\tsummary: string;\n\tskipReason?: string;\n\ttoolResults: GuardianToolResult[];\n}\n\nexport interface GuardianState {\n\tenabled: boolean;\n\tlastRun?: GuardianRunResult;\n}\n\nexport interface GuardianEnablement {\n\tenabled: boolean;\n\treason?: string;\n\tenvOverride?: \"disabled\" | \"enabled\";\n}\n\nexport interface GuardianRunOptions {\n\ttarget?: GuardianTarget;\n\ttrigger?: string;\n\troot?: string;\n\trespectEnv?: boolean;\n\tquiet?: boolean;\n\tconfig?: GuardianConfig;\n}\n\n/**\n * User-configurable Guardian settings\n * Can be specified in .maestro/guardian.json or ~/.maestro/guardian.json\n */\nexport interface GuardianConfig {\n\t/** Enable/disable Guardian globally (default: true) */\n\tenabled?: boolean;\n\n\t/** Enable scanning on git commit/push (default: true) */\n\tscanGitOperations?: boolean;\n\n\t/** Enable scanning on destructive bash commands like rm -rf (default: true) */\n\tscanDestructiveCommands?: boolean;\n\n\t/** Custom secret patterns to detect (in addition to built-in patterns) */\n\tcustomSecretPatterns?: string[];\n\n\t/** Files/directories to exclude from scanning (merged with DEFAULT_EXCLUDES) */\n\texcludePatterns?: string[];\n\n\t/** Specific tools to enable/disable */\n\ttools?: {\n\t\tevidenceIntegrity?: boolean;\n\t\tsemgrep?: boolean;\n\t\tgitSecrets?: boolean;\n\t\ttrufflehog?: boolean;\n\t\theuristicScan?: boolean;\n\t};\n\n\t/** Timeout in milliseconds for individual tool execution (default: 120000) */\n\ttoolTimeoutMs?: number;\n\n\t/** Whether to block on findings or just warn (default: true = block) */\n\tblockOnFindings?: boolean;\n}\n\nexport interface GuardianFormatOptions {\n\tcompact?: boolean;\n\tincludeFiles?: boolean;\n}\n\nexport const DEFAULT_EXCLUDES = [\n\t\"node_modules/\",\n\t\"dist/\",\n\t\"tmp/\",\n\t\".git/\",\n\t\"coverage/\",\n\t\"build/\",\n\t\"out/\",\n\t\".turbo/\",\n];\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export { main } from "./main.js";
|
|
2
2
|
export { SessionManager } from "./session/manager.js";
|
|
3
3
|
export { askUserTool, bashTool, backgroundTasksTool, codingTools, editTool, notebookEditTool, readTool, todoTool, writeTool, ToolResultCache, createToolResultCache, getGlobalToolResultCache, } from "./tools/index.js";
|
|
4
|
-
export { recordEvaluationResult, recordToolExecution, } from "./telemetry.js";
|
|
4
|
+
export { recordEvaluationResult, recordSubagentDispatch, recordToolExecution, } from "./telemetry.js";
|
|
5
5
|
export * from "./sdk-tools.js";
|
|
6
6
|
export * from "./platform/a2a-client.js";
|
|
7
|
+
export * from "./platform/a2a-peer-pairing.js";
|
|
8
|
+
export * from "./platform/a2a-peer-registry.js";
|
|
9
|
+
export * from "./platform/operating-plane-client.js";
|
|
10
|
+
export * from "./platform/operating-plane-summary.js";
|
|
7
11
|
export { DistributedLockManager, createLockManager, getGlobalLockManager, resetGlobalLockManager, withLock, type LockResult, type LockInfo, type LockOptions, type LockManagerConfig, } from "./db/distributed-lock-manager.js";
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACN,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,SAAS,EAET,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACN,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,SAAS,EAET,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AAGtD,OAAO,EACN,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,GACtB,MAAM,kCAAkC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,10 +3,14 @@ export { SessionManager } from "./session/manager.js";
|
|
|
3
3
|
export { askUserTool, bashTool, backgroundTasksTool, codingTools, editTool, notebookEditTool, readTool, todoTool, writeTool,
|
|
4
4
|
// Tool result caching
|
|
5
5
|
ToolResultCache, createToolResultCache, getGlobalToolResultCache, } from "./tools/index.js";
|
|
6
|
-
export { recordEvaluationResult, recordToolExecution, } from "./telemetry.js";
|
|
6
|
+
export { recordEvaluationResult, recordSubagentDispatch, recordToolExecution, } from "./telemetry.js";
|
|
7
7
|
// SDK tool types for external consumers
|
|
8
8
|
export * from "./sdk-tools.js";
|
|
9
9
|
export * from "./platform/a2a-client.js";
|
|
10
|
+
export * from "./platform/a2a-peer-pairing.js";
|
|
11
|
+
export * from "./platform/a2a-peer-registry.js";
|
|
12
|
+
export * from "./platform/operating-plane-client.js";
|
|
13
|
+
export * from "./platform/operating-plane-summary.js";
|
|
10
14
|
// Distributed lock manager for concurrent operations
|
|
11
15
|
export { DistributedLockManager, createLockManager, getGlobalLockManager, resetGlobalLockManager, withLock, } from "./db/distributed-lock-manager.js";
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACN,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,SAAS;AACT,sBAAsB;AACtB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AAExB,wCAAwC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACN,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,SAAS;AACT,sBAAsB;AACtB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AAExB,wCAAwC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AAEtD,qDAAqD;AACrD,OAAO,EACN,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,QAAQ,GAKR,MAAM,kCAAkC,CAAC","sourcesContent":["export { main } from \"./main.js\";\nexport { SessionManager } from \"./session/manager.js\";\nexport {\n\taskUserTool,\n\tbashTool,\n\tbackgroundTasksTool,\n\tcodingTools,\n\teditTool,\n\tnotebookEditTool,\n\treadTool,\n\ttodoTool,\n\twriteTool,\n\t// Tool result caching\n\tToolResultCache,\n\tcreateToolResultCache,\n\tgetGlobalToolResultCache,\n} from \"./tools/index.js\";\nexport {\n\trecordEvaluationResult,\n\trecordSubagentDispatch,\n\trecordToolExecution,\n} from \"./telemetry.js\";\n\n// SDK tool types for external consumers\nexport * from \"./sdk-tools.js\";\nexport * from \"./platform/a2a-client.js\";\nexport * from \"./platform/a2a-peer-pairing.js\";\nexport * from \"./platform/a2a-peer-registry.js\";\nexport * from \"./platform/operating-plane-client.js\";\nexport * from \"./platform/operating-plane-summary.js\";\n\n// Distributed lock manager for concurrent operations\nexport {\n\tDistributedLockManager,\n\tcreateLockManager,\n\tgetGlobalLockManager,\n\tresetGlobalLockManager,\n\twithLock,\n\ttype LockResult,\n\ttype LockInfo,\n\ttype LockOptions,\n\ttype LockManagerConfig,\n} from \"./db/distributed-lock-manager.js\";\n"]}
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AA0XH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,iBAitCxC"}
|
package/dist/main.js
CHANGED
|
@@ -90,6 +90,9 @@ import { createRequire } from "node:module";
|
|
|
90
90
|
import chalk from "chalk";
|
|
91
91
|
import { createBackgroundTextAgent } from "./agent/background-agent.js";
|
|
92
92
|
import { isAssistantMessage, } from "./agent/index.js";
|
|
93
|
+
import { getAllModes, getModelForMode } from "./agent/modes.js";
|
|
94
|
+
import { loadScriptedScenarioFromSource } from "./agent/providers/scripted.js";
|
|
95
|
+
import { scenarioSourceLabel } from "./agent/scenario-source.js";
|
|
93
96
|
import { applySessionEndHooks } from "./agent/session-lifecycle-hooks.js";
|
|
94
97
|
import { ToolRetryService } from "./agent/tool-retry.js";
|
|
95
98
|
import { applySessionStartHooks, runUserPromptWithRecovery, } from "./agent/user-prompt-runtime.js";
|
|
@@ -98,15 +101,18 @@ import { createAuthSetup, validateCodexFlags } from "./bootstrap/auth-setup.js";
|
|
|
98
101
|
import { disposeCheckpointService, initCheckpointService, } from "./checkpoints/index.js";
|
|
99
102
|
import { TuiClientToolService } from "./cli-tui/client-tools/local-client-tool-service.js";
|
|
100
103
|
import { TuiRenderer } from "./cli-tui/tui-renderer.js";
|
|
104
|
+
import { sanitizeTerminalPreview } from "./cli-tui/utils/text-formatting.js";
|
|
101
105
|
import { parseArgs } from "./cli/args.js";
|
|
102
106
|
import { EXEC_SESSION_SUMMARY_PREFIX, runExecCommand, } from "./cli/commands/exec.js";
|
|
107
|
+
import { isHeadlessModeRequested, recordHeadlessRuntimeSelection, selectHeadlessRuntime, willDispatchHeadlessRuntime, } from "./cli/headless-runtime-selection.js";
|
|
103
108
|
import { runHeadlessMode } from "./cli/headless.js";
|
|
104
109
|
import { printHelp } from "./cli/help.js";
|
|
105
110
|
import { JsonlEventWriter, createAgentJsonlAdapter, emitThreadEnd, emitThreadStart, emitUserTurn as emitUserTurnEvent, } from "./cli/jsonl-writer.js";
|
|
106
111
|
import { selectSession } from "./cli/session.js";
|
|
107
|
-
import { resolveExplicitSystemPromptSourcePaths } from "./cli/system-prompt.js";
|
|
112
|
+
import { detectRuntimeConstraintContext, resolveExplicitSystemPromptSourcePaths, } from "./cli/system-prompt.js";
|
|
108
113
|
import { validateFrameworkPreference } from "./config/framework.js";
|
|
109
114
|
import { loadRuntimeConfig } from "./config/runtime-config.js";
|
|
115
|
+
import { loadUnifiedContextManifest } from "./context/manifest.js";
|
|
110
116
|
import { loadEnv } from "./load-env.js";
|
|
111
117
|
import { bootstrapLsp } from "./lsp/bootstrap.js";
|
|
112
118
|
import { withMcpPostKeepMessages } from "./mcp/prompt-recovery.js";
|
|
@@ -119,10 +125,14 @@ import { resolveMaestroSystemPrompt } from "./prompts/system-prompt.js";
|
|
|
119
125
|
import { AgentRuntimeController } from "./runtime/agent-runtime.js";
|
|
120
126
|
import { registerBackgroundTaskShutdownHooks } from "./runtime/background-task-hooks.js";
|
|
121
127
|
import { configureSafeMode } from "./safety/safe-mode.js";
|
|
128
|
+
import { LocalSandbox } from "./sandbox/index.js";
|
|
129
|
+
import { captureSentryException, flushSentry, initSentry } from "./sentry.js";
|
|
122
130
|
import { ServerRequestActionApprovalService } from "./server/approval-service.js";
|
|
123
131
|
import { clientToolService } from "./server/client-tools-service.js";
|
|
124
132
|
import { ServerRequestToolRetryService } from "./server/tool-retry-service.js";
|
|
125
133
|
import { SessionManager } from "./session/manager.js";
|
|
134
|
+
import { recordStagedRolloutSurfaceUsage } from "./telemetry.js";
|
|
135
|
+
import { beaconTimeoutMs } from "./telemetry/beacon.js";
|
|
126
136
|
import { askUserClientTool } from "./tools/ask-user-client.js";
|
|
127
137
|
import { createStartupProfilerFromEnv } from "./utils/checkpoint-profiler.js";
|
|
128
138
|
import { isInsideGitRepository } from "./utils/git.js";
|
|
@@ -133,9 +143,20 @@ import { isInsideGitRepository } from "./utils/git.js";
|
|
|
133
143
|
*/
|
|
134
144
|
const packageJson = createRequire(import.meta.url)("../package.json");
|
|
135
145
|
const VERSION = packageJson.version ?? "unknown";
|
|
146
|
+
const STARTUP_TELEMETRY_EXIT_WAIT_GRACE_MS = 25;
|
|
136
147
|
let enterpriseCleanupRegistered = false;
|
|
137
148
|
let checkpointCleanupRegistered = false;
|
|
138
149
|
let sandboxCleanupRegistered = false;
|
|
150
|
+
function printAllAgentModes() {
|
|
151
|
+
const lines = ["Agent modes:", ""];
|
|
152
|
+
for (const { mode, config } of getAllModes({ includeHidden: true })) {
|
|
153
|
+
const hiddenSuffix = config.visible === false ? " [hidden]" : "";
|
|
154
|
+
lines.push(`${mode}${hiddenSuffix}`);
|
|
155
|
+
lines.push(` ${config.description}`);
|
|
156
|
+
lines.push(` model: ${getModelForMode(mode)}`);
|
|
157
|
+
}
|
|
158
|
+
console.log(lines.join("\n"));
|
|
159
|
+
}
|
|
139
160
|
/**
|
|
140
161
|
* Runs the full interactive Terminal UI (TUI) mode.
|
|
141
162
|
*
|
|
@@ -200,6 +221,25 @@ async function runInteractiveMode(agent, sessionManager, version, approvalServic
|
|
|
200
221
|
});
|
|
201
222
|
}
|
|
202
223
|
}
|
|
224
|
+
async function waitForStartupTelemetryForImmediateExit(startupTelemetry) {
|
|
225
|
+
let timeout;
|
|
226
|
+
try {
|
|
227
|
+
await Promise.race([
|
|
228
|
+
startupTelemetry,
|
|
229
|
+
new Promise((resolve) => {
|
|
230
|
+
timeout = setTimeout(resolve, beaconTimeoutMs(process.env) + STARTUP_TELEMETRY_EXIT_WAIT_GRACE_MS);
|
|
231
|
+
}),
|
|
232
|
+
]);
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
// Startup telemetry is best effort and must not affect explicit exits.
|
|
236
|
+
}
|
|
237
|
+
finally {
|
|
238
|
+
if (timeout) {
|
|
239
|
+
clearTimeout(timeout);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
203
243
|
/**
|
|
204
244
|
* Runs the CLI in single-shot (non-interactive) mode.
|
|
205
245
|
*
|
|
@@ -308,6 +348,15 @@ function resolveSessionStartHookSource(params) {
|
|
|
308
348
|
}
|
|
309
349
|
return "cli";
|
|
310
350
|
}
|
|
351
|
+
async function readReplayScenarioId(source) {
|
|
352
|
+
try {
|
|
353
|
+
return (await loadScriptedScenarioFromSource(source)).id;
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
// The scripted provider surfaces schema and file errors during streaming.
|
|
357
|
+
}
|
|
358
|
+
return scenarioSourceLabel(source);
|
|
359
|
+
}
|
|
311
360
|
/**
|
|
312
361
|
* Main entry point for the Composer CLI application.
|
|
313
362
|
*
|
|
@@ -339,25 +388,90 @@ export async function main(args) {
|
|
|
339
388
|
// Parse arguments early to check for version/help flags before heavy initialization
|
|
340
389
|
const parsed = parseArgs(args);
|
|
341
390
|
startupProfiler.checkpoint("cli:parsed");
|
|
391
|
+
const startupTelemetry = import("./telemetry/cli-startup.js")
|
|
392
|
+
.then(({ recordCliStartupTelemetry }) => recordCliStartupTelemetry({
|
|
393
|
+
args: parsed,
|
|
394
|
+
clientVersion: VERSION,
|
|
395
|
+
commandCountLockTimeoutMs: 0,
|
|
396
|
+
rawArgs: args,
|
|
397
|
+
}))
|
|
398
|
+
.catch(() => undefined);
|
|
342
399
|
// Handle --version early exit (before any async operations)
|
|
343
400
|
if (parsed.version) {
|
|
344
401
|
console.log(`Maestro v${VERSION}`);
|
|
402
|
+
await waitForStartupTelemetryForImmediateExit(startupTelemetry);
|
|
345
403
|
process.exit(0);
|
|
346
404
|
}
|
|
347
405
|
// Handle --help early exit (before any logging redirection or heavy init)
|
|
348
406
|
if (parsed.help) {
|
|
349
|
-
|
|
407
|
+
const hiddenFlagTelemetry = parsed.helpHidden
|
|
408
|
+
? recordStagedRolloutSurfaceUsage("hidden_flag_used", {
|
|
409
|
+
surfaceId: "cli:--help-hidden",
|
|
410
|
+
surfaceType: "cli_flag",
|
|
411
|
+
owner: "platform-cli",
|
|
412
|
+
})
|
|
413
|
+
: Promise.resolve();
|
|
414
|
+
printHelp(VERSION, { includeHidden: parsed.helpHidden });
|
|
415
|
+
await waitForStartupTelemetryForImmediateExit(Promise.all([startupTelemetry, hiddenFlagTelemetry]).then(() => undefined));
|
|
416
|
+
process.exit(0);
|
|
417
|
+
}
|
|
418
|
+
if (parsed.listModesAll) {
|
|
419
|
+
const hiddenFlagTelemetry = recordStagedRolloutSurfaceUsage("hidden_flag_used", {
|
|
420
|
+
surfaceId: "cli:--list-modes-all",
|
|
421
|
+
surfaceType: "cli_flag",
|
|
422
|
+
owner: "agent-runtime",
|
|
423
|
+
});
|
|
424
|
+
printAllAgentModes();
|
|
425
|
+
await waitForStartupTelemetryForImmediateExit(Promise.all([startupTelemetry, hiddenFlagTelemetry]).then(() => undefined));
|
|
350
426
|
process.exit(0);
|
|
351
427
|
}
|
|
352
428
|
if (parsed.error) {
|
|
353
429
|
console.error(chalk.red(parsed.error));
|
|
430
|
+
await waitForStartupTelemetryForImmediateExit(startupTelemetry);
|
|
354
431
|
process.exit(1);
|
|
355
432
|
}
|
|
433
|
+
if (parsed.command === "modes") {
|
|
434
|
+
const { handleModesCommand } = await import("./cli/commands/modes.js");
|
|
435
|
+
await handleModesCommand(parsed.subcommand, parsed.messages, {
|
|
436
|
+
provider: parsed.provider,
|
|
437
|
+
json: parsed.execJson,
|
|
438
|
+
});
|
|
439
|
+
await waitForStartupTelemetryForImmediateExit(startupTelemetry);
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
const isHeadlessMode = isHeadlessModeRequested(parsed);
|
|
443
|
+
const willDispatchHeadlessMode = willDispatchHeadlessRuntime(parsed);
|
|
356
444
|
const exitWithEarlyStartupError = (error) => {
|
|
357
445
|
const message = error instanceof Error ? error.message : String(error);
|
|
358
|
-
|
|
446
|
+
if (isHeadlessMode) {
|
|
447
|
+
process.stdout.write(`${JSON.stringify({
|
|
448
|
+
type: "error",
|
|
449
|
+
message: `Headless startup failed: ${message}`,
|
|
450
|
+
fatal: true,
|
|
451
|
+
error_type: "fatal",
|
|
452
|
+
})}\n`);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
console.error(chalk.red(message));
|
|
456
|
+
}
|
|
359
457
|
process.exit(1);
|
|
360
458
|
};
|
|
459
|
+
try {
|
|
460
|
+
validateCodexFlags(args, parsed.help ? "help" : parsed.command);
|
|
461
|
+
}
|
|
462
|
+
catch (error) {
|
|
463
|
+
exitWithEarlyStartupError(error);
|
|
464
|
+
}
|
|
465
|
+
const replayScenarioPath = parsed.replayScenarioPath ?? process.env.MAESTRO_SCENARIO_PATH;
|
|
466
|
+
if (replayScenarioPath) {
|
|
467
|
+
parsed.replayScenarioPath = replayScenarioPath;
|
|
468
|
+
process.env.MAESTRO_SCENARIO_PATH = replayScenarioPath;
|
|
469
|
+
process.env.MAESTRO_SCENARIO_ID =
|
|
470
|
+
await readReplayScenarioId(replayScenarioPath);
|
|
471
|
+
process.env.MAESTRO_MODE = "replay";
|
|
472
|
+
parsed.provider = "scripted-replay";
|
|
473
|
+
parsed.model = "maestro-replay-v1";
|
|
474
|
+
}
|
|
361
475
|
// Handle `maestro hosted-runner` before importing web-server so hosted
|
|
362
476
|
// defaults are visible to its module-level runtime profile.
|
|
363
477
|
if (parsed.command === "hosted-runner") {
|
|
@@ -385,43 +499,55 @@ export async function main(args) {
|
|
|
385
499
|
// progress or diagnostic output on stderr, so route it before config loading
|
|
386
500
|
// can emit normal CLI startup logs.
|
|
387
501
|
if (parsed.command === "init") {
|
|
388
|
-
try {
|
|
389
|
-
validateCodexFlags(args, parsed.command);
|
|
390
|
-
}
|
|
391
|
-
catch (error) {
|
|
392
|
-
exitWithEarlyStartupError(error);
|
|
393
|
-
}
|
|
394
502
|
const { handleInitCommand } = await import("./cli/commands/init.js");
|
|
395
503
|
await handleInitCommand(parsed.commandArgs ?? []);
|
|
396
504
|
return;
|
|
397
505
|
}
|
|
398
506
|
if (parsed.command === "status") {
|
|
399
|
-
try {
|
|
400
|
-
validateCodexFlags(args, parsed.command);
|
|
401
|
-
}
|
|
402
|
-
catch (error) {
|
|
403
|
-
exitWithEarlyStartupError(error);
|
|
404
|
-
}
|
|
405
507
|
const { handleStatusCommand } = await import("./cli/commands/status.js");
|
|
406
508
|
await handleStatusCommand();
|
|
407
509
|
return;
|
|
408
510
|
}
|
|
511
|
+
if (parsed.command === "context") {
|
|
512
|
+
const { handleContextCommand } = await import("./cli/commands/context.js");
|
|
513
|
+
await handleContextCommand(parsed.subcommand, parsed.messages, {
|
|
514
|
+
json: parsed.execJson,
|
|
515
|
+
liveMcp: parsed.contextLiveMcp,
|
|
516
|
+
});
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
if (parsed.command === "scenario") {
|
|
520
|
+
const { handleScenarioCommand } = await import("./cli/commands/scenario.js");
|
|
521
|
+
await handleScenarioCommand(parsed.subcommand, parsed.messages, {
|
|
522
|
+
json: parsed.execJson,
|
|
523
|
+
junitPath: parsed.junitPath,
|
|
524
|
+
});
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
if (parsed.command === "skill") {
|
|
528
|
+
const { handleSkillCommand } = await import("./cli/commands/skill.js");
|
|
529
|
+
await handleSkillCommand(parsed.subcommand, parsed.commandArgs ?? []);
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
409
532
|
// If we're about to enter interactive TUI mode (no prompt messages and not RPC/exec),
|
|
410
533
|
// or headless mode (stdout is JSON-only), redirect all logging/console output to a file.
|
|
411
534
|
// This must run before config/model loading to catch any early warnings.
|
|
412
535
|
const isLikelyInteractiveTui = !parsed.messages.length &&
|
|
413
536
|
(parsed.mode === "text" || parsed.mode === undefined) &&
|
|
414
537
|
parsed.command === undefined;
|
|
415
|
-
|
|
416
|
-
if (isLikelyInteractiveTui || isHeadlessMode) {
|
|
538
|
+
if (isLikelyInteractiveTui || willDispatchHeadlessMode) {
|
|
417
539
|
const { redirectLoggerToFile, redirectConsoleToLogger, redirectStderrToLogger, pipeProcessEventsToLogger, } = await import("./utils/logger.js");
|
|
418
540
|
redirectLoggerToFile();
|
|
419
|
-
redirectConsoleToLogger({ preserveErrorStderr:
|
|
420
|
-
if (!
|
|
541
|
+
redirectConsoleToLogger({ preserveErrorStderr: willDispatchHeadlessMode });
|
|
542
|
+
if (!willDispatchHeadlessMode) {
|
|
421
543
|
redirectStderrToLogger();
|
|
422
544
|
}
|
|
423
545
|
pipeProcessEventsToLogger();
|
|
424
546
|
}
|
|
547
|
+
const headlessRuntimeSelection = selectHeadlessRuntime(process.env, {
|
|
548
|
+
allowLegacy: willDispatchHeadlessMode,
|
|
549
|
+
});
|
|
550
|
+
recordHeadlessRuntimeSelection(headlessRuntimeSelection);
|
|
425
551
|
const runtimeConfig = loadRuntimeConfig(parsed, process.cwd());
|
|
426
552
|
startupProfiler.checkpoint("config:loaded");
|
|
427
553
|
const reasoningSummary = runtimeConfig.config.model_supports_reasoning_summaries === false
|
|
@@ -429,7 +555,7 @@ export async function main(args) {
|
|
|
429
555
|
: runtimeConfig.config.model_reasoning_summary === "none"
|
|
430
556
|
? null
|
|
431
557
|
: runtimeConfig.config.model_reasoning_summary;
|
|
432
|
-
const exitWithStartupError = (error) => {
|
|
558
|
+
const exitWithStartupError = async (error) => {
|
|
433
559
|
const message = error instanceof Error ? error.message : String(error);
|
|
434
560
|
const stack = error instanceof Error ? error.stack : undefined;
|
|
435
561
|
if (isHeadlessMode) {
|
|
@@ -444,6 +570,8 @@ export async function main(args) {
|
|
|
444
570
|
else {
|
|
445
571
|
console.error(chalk.red(message));
|
|
446
572
|
}
|
|
573
|
+
captureSentryException(error);
|
|
574
|
+
await flushSentry();
|
|
447
575
|
process.exit(1);
|
|
448
576
|
};
|
|
449
577
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -452,6 +580,7 @@ export async function main(args) {
|
|
|
452
580
|
// Initialize OpenTelemetry tracing for observability
|
|
453
581
|
// This is non-blocking (void) to avoid startup latency
|
|
454
582
|
void initOpenTelemetry("composer-cli");
|
|
583
|
+
initSentry("maestro-cli");
|
|
455
584
|
const modelLoadPromise = (async () => {
|
|
456
585
|
await ensureModelsLoaded();
|
|
457
586
|
startupProfiler.checkpoint("models:loaded");
|
|
@@ -512,12 +641,6 @@ export async function main(args) {
|
|
|
512
641
|
// - api-key: Require explicit API key from --api-key or env var
|
|
513
642
|
// - claude: Force Anthropic OAuth (no API key fallback)
|
|
514
643
|
const authMode = parsed.authMode ?? "auto";
|
|
515
|
-
try {
|
|
516
|
-
validateCodexFlags(args, parsed.command);
|
|
517
|
-
}
|
|
518
|
-
catch (error) {
|
|
519
|
-
exitWithStartupError(error);
|
|
520
|
-
}
|
|
521
644
|
const { requireCredential } = createAuthSetup({
|
|
522
645
|
authMode,
|
|
523
646
|
explicitApiKey: parsed.apiKey,
|
|
@@ -525,13 +648,21 @@ export async function main(args) {
|
|
|
525
648
|
startupProfiler.checkpoint("auth:configured");
|
|
526
649
|
if (parsed.command === "exec") {
|
|
527
650
|
if (parsed.execFullAuto && parsed.execReadOnly) {
|
|
528
|
-
exitWithStartupError("Cannot combine --full-auto with --read-only in maestro exec.");
|
|
651
|
+
await exitWithStartupError("Cannot combine --full-auto with --read-only in maestro exec.");
|
|
529
652
|
}
|
|
530
653
|
}
|
|
531
654
|
// Validate sandbox mode (applies to both exec and interactive modes)
|
|
532
|
-
const validSandboxModes = [
|
|
655
|
+
const validSandboxModes = [
|
|
656
|
+
"docker",
|
|
657
|
+
"local",
|
|
658
|
+
"native",
|
|
659
|
+
"none",
|
|
660
|
+
"read-only",
|
|
661
|
+
"workspace-write",
|
|
662
|
+
"danger-full-access",
|
|
663
|
+
];
|
|
533
664
|
if (parsed.sandbox && !validSandboxModes.includes(parsed.sandbox)) {
|
|
534
|
-
exitWithStartupError(`Unknown sandbox mode "${parsed.sandbox}". Supported: ${validSandboxModes.join(", ")}`);
|
|
665
|
+
await exitWithStartupError(`Unknown sandbox mode "${parsed.sandbox}". Supported: ${validSandboxModes.join(", ")}`);
|
|
535
666
|
}
|
|
536
667
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
537
668
|
// PHASE 5: Safety, LSP, and Checkpointing
|
|
@@ -609,7 +740,7 @@ export async function main(args) {
|
|
|
609
740
|
}
|
|
610
741
|
if (parsed.command === "codex") {
|
|
611
742
|
const { handleCodexCommand } = await import("./cli/commands/codex.js");
|
|
612
|
-
await handleCodexCommand(parsed.subcommand, parsed.
|
|
743
|
+
await handleCodexCommand(parsed.subcommand, parsed.commandArgs ?? []);
|
|
613
744
|
return;
|
|
614
745
|
}
|
|
615
746
|
if (parsed.command === "hooks") {
|
|
@@ -617,6 +748,13 @@ export async function main(args) {
|
|
|
617
748
|
await handleHooksCommand(parsed.subcommand);
|
|
618
749
|
return;
|
|
619
750
|
}
|
|
751
|
+
if (parsed.command === "run") {
|
|
752
|
+
const { handleRunCommand } = await import("./cli/commands/run.js");
|
|
753
|
+
await handleRunCommand(parsed.subcommand, parsed.messages, {
|
|
754
|
+
json: parsed.execJson,
|
|
755
|
+
});
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
620
758
|
if (parsed.command === "export") {
|
|
621
759
|
const { handleExportCommand } = await import("./cli/commands/session-transfer.js");
|
|
622
760
|
await handleExportCommand(parsed.messages[0], parsed.messages[1], parsed.exportFormat, { redactSecrets: parsed.redactSecrets });
|
|
@@ -637,6 +775,16 @@ export async function main(args) {
|
|
|
637
775
|
await handleRemoteCommand(parsed.subcommand, parsed.commandArgs ?? []);
|
|
638
776
|
return;
|
|
639
777
|
}
|
|
778
|
+
if (parsed.command === "a2a") {
|
|
779
|
+
const { handleA2ACommand } = await import("./cli/commands/a2a.js");
|
|
780
|
+
await handleA2ACommand(parsed.commandArgs ?? []);
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
if (parsed.command === "operating-plane") {
|
|
784
|
+
const { handleOperatingPlaneCommand } = await import("./cli/commands/operating-plane.js");
|
|
785
|
+
await handleOperatingPlaneCommand(parsed.commandArgs ?? []);
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
640
788
|
if (parsed.command === "anthropic") {
|
|
641
789
|
const { handleAnthropicCommand } = await import("./cli/commands/anthropic.js");
|
|
642
790
|
await handleAnthropicCommand(parsed.subcommand, parsed.messages);
|
|
@@ -730,6 +878,21 @@ export async function main(args) {
|
|
|
730
878
|
// Track agents init state for deferred execution
|
|
731
879
|
let agentsInitPrompt = null;
|
|
732
880
|
let agentsInitPath = null;
|
|
881
|
+
const quoteShellArg = (value) => {
|
|
882
|
+
if (/^[A-Za-z0-9_./:=@+-]+$/.test(value)) {
|
|
883
|
+
return value;
|
|
884
|
+
}
|
|
885
|
+
if (process.platform === "win32") {
|
|
886
|
+
const escaped = value
|
|
887
|
+
.replace(/(\\*)"/g, (_match, slashes) => `${slashes}${slashes}\\"`)
|
|
888
|
+
.replace(/\\+$/g, (slashes) => `${slashes}${slashes}`);
|
|
889
|
+
return `"${escaped}"`;
|
|
890
|
+
}
|
|
891
|
+
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
892
|
+
};
|
|
893
|
+
const buildAgentsInitRerunCommand = (targetArg) => targetArg
|
|
894
|
+
? `maestro agents init ${quoteShellArg(targetArg)} --force`
|
|
895
|
+
: "maestro agents init --force";
|
|
733
896
|
// Handle "maestro agents init" command to generate AGENTS.md
|
|
734
897
|
if (parsed.command === "agents") {
|
|
735
898
|
const { buildAgentsInitPrompt, handleAgentsInit } = await import("./cli/commands/agents.js");
|
|
@@ -739,9 +902,23 @@ export async function main(args) {
|
|
|
739
902
|
}
|
|
740
903
|
try {
|
|
741
904
|
const targetArg = parsed.messages[0];
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
|
|
905
|
+
const result = handleAgentsInit(targetArg, { force: parsed.force });
|
|
906
|
+
if (result.action === "preview") {
|
|
907
|
+
const rerunCommand = buildAgentsInitRerunCommand(targetArg);
|
|
908
|
+
console.log([
|
|
909
|
+
`AGENTS instructions already exist at ${result.path}.`,
|
|
910
|
+
`Preview the proposed update below, then re-run with \`${rerunCommand}\` to apply it.`,
|
|
911
|
+
"",
|
|
912
|
+
sanitizeTerminalPreview(result.diff ?? ""),
|
|
913
|
+
].join("\n"));
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
if (result.action === "updated") {
|
|
917
|
+
console.log(`Updated AGENTS instructions at ${result.path}.`);
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
agentsInitPath = result.path;
|
|
921
|
+
agentsInitPrompt = buildAgentsInitPrompt(result.path, result.sources);
|
|
745
922
|
if (parsed.messages.length === 0) {
|
|
746
923
|
parsed.messages = [agentsInitPrompt];
|
|
747
924
|
}
|
|
@@ -765,6 +942,14 @@ export async function main(args) {
|
|
|
765
942
|
// - Model/thinking level tracking across restarts
|
|
766
943
|
const sessionManager = new SessionManager(parsed.continue && !parsed.resume, // continueSession: auto-load most recent
|
|
767
944
|
parsed.session);
|
|
945
|
+
let scenarioRecorder;
|
|
946
|
+
if (parsed.recordScenarioPath) {
|
|
947
|
+
const { ScriptedScenarioRecorder } = await import("./server/scenario-recorder.js");
|
|
948
|
+
scenarioRecorder = new ScriptedScenarioRecorder({
|
|
949
|
+
outPath: parsed.recordScenarioPath,
|
|
950
|
+
recordedFrom: () => sessionManager.getSessionId(),
|
|
951
|
+
});
|
|
952
|
+
}
|
|
768
953
|
startupProfiler.checkpoint("session:created");
|
|
769
954
|
let execResumeApplied = false;
|
|
770
955
|
if (parsed.command === "exec") {
|
|
@@ -818,26 +1003,8 @@ export async function main(args) {
|
|
|
818
1003
|
model = resolved.model;
|
|
819
1004
|
}
|
|
820
1005
|
catch (error) {
|
|
821
|
-
exitWithStartupError(error);
|
|
1006
|
+
await exitWithStartupError(error);
|
|
822
1007
|
}
|
|
823
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
824
|
-
// PHASE 9: System Prompt and Tool Configuration
|
|
825
|
-
// ─────────────────────────────────────────────────────────────────────────────
|
|
826
|
-
// Build the system prompt with project context
|
|
827
|
-
// The system prompt includes:
|
|
828
|
-
// - Base instructions for the agent
|
|
829
|
-
// - Project context files (COMPOSER.md, AGENTS.md, etc.)
|
|
830
|
-
// - Tool-specific instructions based on available tools
|
|
831
|
-
const systemPromptToolNames = parsed.tools;
|
|
832
|
-
const { systemPrompt, promptMetadata } = await resolveMaestroSystemPrompt({
|
|
833
|
-
customPrompt: parsed.systemPrompt,
|
|
834
|
-
toolNames: systemPromptToolNames,
|
|
835
|
-
appendPrompt: parsed.appendSystemPrompt,
|
|
836
|
-
});
|
|
837
|
-
startupProfiler.checkpoint("prompt:assembled", {
|
|
838
|
-
system_bytes: systemPrompt.length,
|
|
839
|
-
});
|
|
840
|
-
const systemPromptSourcePaths = resolveExplicitSystemPromptSourcePaths(parsed.systemPrompt, parsed.appendSystemPrompt);
|
|
841
1008
|
// Determine approval mode for tool execution:
|
|
842
1009
|
// - "prompt": Ask user before each tool execution (default for interactive)
|
|
843
1010
|
// - "auto": Automatically approve all tools (default for non-interactive)
|
|
@@ -881,11 +1048,12 @@ export async function main(args) {
|
|
|
881
1048
|
toolsResult = await createToolsAndSandbox({
|
|
882
1049
|
parsedTools: parsed.tools,
|
|
883
1050
|
parsedSandbox: parsed.sandbox,
|
|
1051
|
+
modelApi: model.api,
|
|
884
1052
|
cwd: process.cwd(),
|
|
885
1053
|
});
|
|
886
1054
|
}
|
|
887
1055
|
catch (error) {
|
|
888
|
-
exitWithStartupError(error);
|
|
1056
|
+
await exitWithStartupError(error);
|
|
889
1057
|
}
|
|
890
1058
|
const { allTools, sandbox, sandboxMode } = toolsResult;
|
|
891
1059
|
startupProfiler.checkpoint("tools:prepared", { tools: allTools.length });
|
|
@@ -894,6 +1062,41 @@ export async function main(args) {
|
|
|
894
1062
|
const configuredAllTools = useInteractiveClientTools
|
|
895
1063
|
? replaceAskUserTool(allTools)
|
|
896
1064
|
: allTools;
|
|
1065
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1066
|
+
// PHASE 11: System Prompt Assembly
|
|
1067
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1068
|
+
// Build the system prompt with project context after sandbox setup so runtime
|
|
1069
|
+
// constraint fragments reflect the resolved sandbox state, not just the
|
|
1070
|
+
// requested CLI mode.
|
|
1071
|
+
const resolvedConstraintSandboxMode = sandbox
|
|
1072
|
+
? sandbox instanceof LocalSandbox
|
|
1073
|
+
? "local"
|
|
1074
|
+
: (sandboxMode ?? null)
|
|
1075
|
+
: "none";
|
|
1076
|
+
const systemPromptToolNames = parsed.tools ??
|
|
1077
|
+
(model.api === "openai-codex-app-server"
|
|
1078
|
+
? toolsResult.baseTools.map((tool) => tool.name)
|
|
1079
|
+
: undefined);
|
|
1080
|
+
const runtimeConstraints = detectRuntimeConstraintContext({
|
|
1081
|
+
cwd: process.cwd(),
|
|
1082
|
+
sandboxMode: resolvedConstraintSandboxMode,
|
|
1083
|
+
sandboxEnabled: Boolean(sandbox) && resolvedConstraintSandboxMode !== "local",
|
|
1084
|
+
readOnly: parsed.execReadOnly || parsed.readonly ? true : undefined,
|
|
1085
|
+
});
|
|
1086
|
+
const { systemPrompt, promptMetadata, promptContextManifest } = await resolveMaestroSystemPrompt({
|
|
1087
|
+
customPrompt: parsed.systemPrompt,
|
|
1088
|
+
toolNames: systemPromptToolNames,
|
|
1089
|
+
appendPrompt: parsed.appendSystemPrompt,
|
|
1090
|
+
runtimeConstraints,
|
|
1091
|
+
cwd: process.cwd(),
|
|
1092
|
+
});
|
|
1093
|
+
const unifiedContextManifest = loadUnifiedContextManifest(process.cwd(), {
|
|
1094
|
+
projectDocs: promptContextManifest,
|
|
1095
|
+
});
|
|
1096
|
+
startupProfiler.checkpoint("prompt:assembled", {
|
|
1097
|
+
system_bytes: systemPrompt.length,
|
|
1098
|
+
});
|
|
1099
|
+
const systemPromptSourcePaths = resolveExplicitSystemPromptSourcePaths(parsed.systemPrompt, parsed.appendSystemPrompt);
|
|
897
1100
|
// Register sandbox cleanup on exit (only if sandbox is active)
|
|
898
1101
|
if (sandbox && toolsResult.disposeSandbox) {
|
|
899
1102
|
const cleanupSandbox = toolsResult.disposeSandbox;
|
|
@@ -911,7 +1114,7 @@ export async function main(args) {
|
|
|
911
1114
|
}
|
|
912
1115
|
}
|
|
913
1116
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
914
|
-
// PHASE
|
|
1117
|
+
// PHASE 12: Agent Creation
|
|
915
1118
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
916
1119
|
const { createAgentInstance } = await import("./bootstrap/agent-creation-setup.js");
|
|
917
1120
|
const { setTaskBudgetTotal } = await import("./agent/task-budget-access.js");
|
|
@@ -923,6 +1126,8 @@ export async function main(args) {
|
|
|
923
1126
|
systemPrompt,
|
|
924
1127
|
promptMetadata,
|
|
925
1128
|
systemPromptSourcePaths,
|
|
1129
|
+
promptContextManifest,
|
|
1130
|
+
unifiedContextManifest,
|
|
926
1131
|
model,
|
|
927
1132
|
reasoningSummary,
|
|
928
1133
|
allTools: configuredAllTools,
|
|
@@ -1037,6 +1242,13 @@ export async function main(args) {
|
|
|
1037
1242
|
cwd: process.cwd(),
|
|
1038
1243
|
enterpriseContext,
|
|
1039
1244
|
automaticMemoryExtraction,
|
|
1245
|
+
scenarioReplay: parsed.replayScenarioPath && process.env.MAESTRO_SCENARIO_ID
|
|
1246
|
+
? {
|
|
1247
|
+
path: scenarioSourceLabel(parsed.replayScenarioPath),
|
|
1248
|
+
scenarioId: process.env.MAESTRO_SCENARIO_ID,
|
|
1249
|
+
}
|
|
1250
|
+
: undefined,
|
|
1251
|
+
scenarioRecorder,
|
|
1040
1252
|
});
|
|
1041
1253
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1042
1254
|
// PHASE 14: Runtime Mode Dispatch
|
|
@@ -1063,7 +1275,7 @@ export async function main(args) {
|
|
|
1063
1275
|
else if (mode === "headless" || parsed.headless) {
|
|
1064
1276
|
// Headless mode - for native TUI communication
|
|
1065
1277
|
startupProfiler.terminal("headless:ready");
|
|
1066
|
-
await runHeadlessMode(agent, sessionManager, approvalService, toolRetryService);
|
|
1278
|
+
await runHeadlessMode(agent, sessionManager, approvalService, toolRetryService, { runtimeSelection: headlessRuntimeSelection });
|
|
1067
1279
|
}
|
|
1068
1280
|
else if (mode === "rpc") {
|
|
1069
1281
|
// RPC mode - headless operation
|