@evalops/maestro 0.10.17 → 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/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +6 -0
- package/dist/cli/commands/init.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 +136 -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 +49209 -26165
- 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/agent-bootstrap.d.ts +1 -0
- package/dist/evalops/agent-bootstrap.d.ts.map +1 -1
- package/dist/evalops/agent-bootstrap.js +41 -1
- package/dist/evalops/agent-bootstrap.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 +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -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 +217 -0
- package/dist/platform/a2a-client.d.ts.map +1 -0
- package/dist/platform/a2a-client.js +589 -0
- package/dist/platform/a2a-client.js.map +1 -0
- 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 +2 -0
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +7 -14
- 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,459 @@
|
|
|
1
|
+
const COUNT_KEYS = [
|
|
2
|
+
"assertions",
|
|
3
|
+
"passed",
|
|
4
|
+
"failed",
|
|
5
|
+
"warnings",
|
|
6
|
+
"events",
|
|
7
|
+
"toolCalls",
|
|
8
|
+
"replayDeltas",
|
|
9
|
+
"scoreFailures",
|
|
10
|
+
"scoreWarnings",
|
|
11
|
+
];
|
|
12
|
+
function isObject(value) {
|
|
13
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
14
|
+
}
|
|
15
|
+
function stableId(...parts) {
|
|
16
|
+
const id = parts
|
|
17
|
+
.join(".")
|
|
18
|
+
.toLowerCase()
|
|
19
|
+
.replace(/[^a-z0-9._-]+/gu, "-")
|
|
20
|
+
.replace(/^-+|-+$/gu, "")
|
|
21
|
+
.replace(/--+/gu, "-");
|
|
22
|
+
return id || "maestro-scenario";
|
|
23
|
+
}
|
|
24
|
+
function scenarioResultLabel(result) {
|
|
25
|
+
return `${result.scenario.id} (${result.run.id})`;
|
|
26
|
+
}
|
|
27
|
+
function requireSameScenario(expected, actual) {
|
|
28
|
+
if (expected.scenario.id !== actual.scenario.id) {
|
|
29
|
+
throw new Error(`Fermata scenario suite requires matching scenario ids; expected ${scenarioResultLabel(expected)}, received ${scenarioResultLabel(actual)}`);
|
|
30
|
+
}
|
|
31
|
+
if (expected.schemaVersion !== actual.schemaVersion) {
|
|
32
|
+
throw new Error(`Fermata scenario suite requires matching result schema versions for ${expected.scenario.id}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function serializeCaseInput(value) {
|
|
36
|
+
return JSON.stringify(value, null, "\t");
|
|
37
|
+
}
|
|
38
|
+
function assertionMap(result) {
|
|
39
|
+
return new Map(result.assertions.map((assertion) => [assertion.id, assertion]));
|
|
40
|
+
}
|
|
41
|
+
function evidenceLabels(assertion) {
|
|
42
|
+
return (assertion?.evidence ?? []).map((evidence) => `${evidence.source}:${evidence.kind}:${evidence.id}`);
|
|
43
|
+
}
|
|
44
|
+
function requireNonEmpty(value, label) {
|
|
45
|
+
const trimmed = value?.trim();
|
|
46
|
+
if (!trimmed) {
|
|
47
|
+
throw new Error(`Fermata scenario suite LLM judge requires ${label}`);
|
|
48
|
+
}
|
|
49
|
+
return trimmed;
|
|
50
|
+
}
|
|
51
|
+
function optionalPositiveNumber(value, label, max) {
|
|
52
|
+
if (value === undefined)
|
|
53
|
+
return undefined;
|
|
54
|
+
if (!Number.isFinite(value) ||
|
|
55
|
+
value <= 0 ||
|
|
56
|
+
(max !== undefined && value > max)) {
|
|
57
|
+
throw new Error(`Fermata scenario suite LLM judge ${label} is invalid`);
|
|
58
|
+
}
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
function optionalPositiveInteger(value, label) {
|
|
62
|
+
if (value === undefined)
|
|
63
|
+
return undefined;
|
|
64
|
+
if (!Number.isInteger(value) || value <= 0) {
|
|
65
|
+
throw new Error(`Fermata scenario suite LLM judge ${label} is invalid`);
|
|
66
|
+
}
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
function optionalTrimmed(value) {
|
|
70
|
+
const trimmed = value?.trim();
|
|
71
|
+
return trimmed || undefined;
|
|
72
|
+
}
|
|
73
|
+
function llmRubricConfig(options) {
|
|
74
|
+
const repeat = optionalPositiveInteger(options.repeat, "repeat");
|
|
75
|
+
const quorum = optionalPositiveInteger(options.quorum, "quorum");
|
|
76
|
+
if (repeat !== undefined && quorum !== undefined && quorum > repeat) {
|
|
77
|
+
throw new Error("Fermata scenario suite LLM judge quorum cannot exceed repeat");
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
judgeId: requireNonEmpty(options.judgeId, "judgeId"),
|
|
81
|
+
verifierJudgeId: options.verifierJudgeId?.trim() || undefined,
|
|
82
|
+
rubric: requireNonEmpty(options.rubric, "rubric"),
|
|
83
|
+
minScore: optionalPositiveNumber(options.minScore, "minScore", 1),
|
|
84
|
+
repeat,
|
|
85
|
+
quorum,
|
|
86
|
+
recordJudgeValidation: options.recordJudgeValidation ?? true,
|
|
87
|
+
requireCalibratedJudge: options.requireCalibratedJudge,
|
|
88
|
+
minJudgeValidationAccuracy: optionalPositiveNumber(options.minJudgeValidationAccuracy, "minJudgeValidationAccuracy", 1),
|
|
89
|
+
minJudgeValidationCount: optionalPositiveInteger(options.minJudgeValidationCount, "minJudgeValidationCount"),
|
|
90
|
+
rubricVersion: optionalTrimmed(options.rubricVersion),
|
|
91
|
+
calibrationCohort: optionalTrimmed(options.calibrationCohort),
|
|
92
|
+
advisoryOnly: options.advisoryOnly,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function llmPairwiseRubricConfig(options) {
|
|
96
|
+
const repeat = optionalPositiveInteger(options.repeat, "repeat");
|
|
97
|
+
const quorum = optionalPositiveInteger(options.quorum, "quorum");
|
|
98
|
+
if (repeat !== undefined && quorum !== undefined && quorum > repeat) {
|
|
99
|
+
throw new Error("Fermata scenario suite LLM judge quorum cannot exceed repeat");
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
judgeId: requireNonEmpty(options.judgeId, "judgeId"),
|
|
103
|
+
verifierJudgeId: options.verifierJudgeId?.trim() || undefined,
|
|
104
|
+
rubric: requireNonEmpty(options.rubric, "rubric"),
|
|
105
|
+
baselineLabel: options.baselineLabel?.trim() || undefined,
|
|
106
|
+
candidateLabel: options.candidateLabel?.trim() || undefined,
|
|
107
|
+
minScore: optionalPositiveNumber(options.minScore, "minScore", 1),
|
|
108
|
+
repeat,
|
|
109
|
+
quorum,
|
|
110
|
+
recordJudgeValidation: options.recordJudgeValidation ?? true,
|
|
111
|
+
requireCalibratedJudge: options.requireCalibratedJudge,
|
|
112
|
+
minJudgeValidationAccuracy: optionalPositiveNumber(options.minJudgeValidationAccuracy, "minJudgeValidationAccuracy", 1),
|
|
113
|
+
minJudgeValidationCount: optionalPositiveInteger(options.minJudgeValidationCount, "minJudgeValidationCount"),
|
|
114
|
+
rubricVersion: optionalTrimmed(options.rubricVersion),
|
|
115
|
+
calibrationCohort: optionalTrimmed(options.calibrationCohort),
|
|
116
|
+
advisoryOnly: options.advisoryOnly,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function llmJudgeMetadata(options) {
|
|
120
|
+
const rubricVersion = optionalTrimmed(options.rubricVersion);
|
|
121
|
+
const calibrationCohort = optionalTrimmed(options.calibrationCohort);
|
|
122
|
+
if (options.advisoryOnly === undefined &&
|
|
123
|
+
!rubricVersion &&
|
|
124
|
+
!calibrationCohort) {
|
|
125
|
+
return {};
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
judge_mode: options.advisoryOnly ? "advisory" : "blocking",
|
|
129
|
+
...(rubricVersion ? { rubric_version: rubricVersion } : {}),
|
|
130
|
+
...(calibrationCohort ? { calibration_cohort: calibrationCohort } : {}),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function realScenarioResultJSON(result) {
|
|
134
|
+
return JSON.stringify(result, null, "\t");
|
|
135
|
+
}
|
|
136
|
+
function uniqueValues(values) {
|
|
137
|
+
const seen = new Set();
|
|
138
|
+
for (const value of values) {
|
|
139
|
+
const trimmed = value?.trim();
|
|
140
|
+
if (trimmed)
|
|
141
|
+
seen.add(trimmed);
|
|
142
|
+
}
|
|
143
|
+
return [...seen];
|
|
144
|
+
}
|
|
145
|
+
function agentTrajectoryConfig(expected) {
|
|
146
|
+
return {
|
|
147
|
+
requiredEvents: uniqueValues(expected.provenance?.map((event) => event.eventType) ?? []),
|
|
148
|
+
requiredAssertionStatuses: expected.assertions.map((assertion) => ({
|
|
149
|
+
id: assertion.id,
|
|
150
|
+
status: assertion.status,
|
|
151
|
+
})),
|
|
152
|
+
maxEvents: expected.counts.events,
|
|
153
|
+
maxToolCalls: expected.counts.toolCalls,
|
|
154
|
+
maxReplayDeltas: expected.counts.replayDeltas,
|
|
155
|
+
maxScoreFailures: expected.counts.scoreFailures,
|
|
156
|
+
maxScoreWarnings: expected.counts.scoreWarnings,
|
|
157
|
+
requireIdempotentReplay: true,
|
|
158
|
+
forbidDuplicateExternalActions: true,
|
|
159
|
+
requiredTraceJoinKeys: expected.platform.traceJoinKeys,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function agentTrajectoryCase(expected, actual) {
|
|
163
|
+
const scenarioId = expected.scenario.id;
|
|
164
|
+
const id = stableId(scenarioId, "agent-trajectory", "native-trajectory-guard");
|
|
165
|
+
return {
|
|
166
|
+
id,
|
|
167
|
+
name: `${scenarioId} native trajectory guard`,
|
|
168
|
+
input: serializeCaseInput({
|
|
169
|
+
scenarioId,
|
|
170
|
+
title: expected.scenario.title,
|
|
171
|
+
platformPrimitive: actual.platform.primitive,
|
|
172
|
+
expectedRunId: expected.run.id,
|
|
173
|
+
actualRunId: actual.run.id,
|
|
174
|
+
traceJoinKeys: actual.platform.traceJoinKeys,
|
|
175
|
+
expectedAssertionIds: expected.assertions.map((assertion) => assertion.id),
|
|
176
|
+
actualAssertionIds: actual.assertions.map((assertion) => assertion.id),
|
|
177
|
+
}),
|
|
178
|
+
expectedOutput: realScenarioResultJSON(expected),
|
|
179
|
+
metadata: {
|
|
180
|
+
actual_output: realScenarioResultJSON(actual),
|
|
181
|
+
case_kind: "scenario_agent_trajectory",
|
|
182
|
+
ci_tier: "core-regression",
|
|
183
|
+
scenario_id: scenarioId,
|
|
184
|
+
expected_run_id: expected.run.id,
|
|
185
|
+
actual_run_id: actual.run.id,
|
|
186
|
+
expected_assertion_count: expected.counts.assertions,
|
|
187
|
+
actual_assertion_count: actual.counts.assertions,
|
|
188
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
189
|
+
},
|
|
190
|
+
assertions: [
|
|
191
|
+
{
|
|
192
|
+
id: `${id}.agent-trajectory`,
|
|
193
|
+
kind: "ASSERTION_KIND_AGENT_TRAJECTORY",
|
|
194
|
+
target: "response",
|
|
195
|
+
description: "Native Fermata trajectory assertion evaluates real Maestro replay results for event, assertion, budget, idempotency, and trace-link invariants.",
|
|
196
|
+
agentTrajectory: agentTrajectoryConfig(expected),
|
|
197
|
+
metadata: {
|
|
198
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
199
|
+
case_kind: "scenario_agent_trajectory",
|
|
200
|
+
ci_tier: "core-regression",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function llmRubricCase(expected, actual, options) {
|
|
207
|
+
const scenarioId = expected.scenario.id;
|
|
208
|
+
const id = stableId(scenarioId, "llm-rubric", "semantic-trajectory-quality");
|
|
209
|
+
return {
|
|
210
|
+
id,
|
|
211
|
+
name: `${scenarioId} semantic trajectory quality`,
|
|
212
|
+
input: serializeCaseInput({
|
|
213
|
+
scenarioId,
|
|
214
|
+
title: expected.scenario.title,
|
|
215
|
+
platformPrimitive: actual.platform.primitive,
|
|
216
|
+
expectedRunId: expected.run.id,
|
|
217
|
+
actualRunId: actual.run.id,
|
|
218
|
+
traceJoinKeys: actual.platform.traceJoinKeys,
|
|
219
|
+
expectedAssertionIds: expected.assertions.map((assertion) => assertion.id),
|
|
220
|
+
actualAssertionIds: actual.assertions.map((assertion) => assertion.id),
|
|
221
|
+
}),
|
|
222
|
+
expectedOutput: realScenarioResultJSON(expected),
|
|
223
|
+
metadata: {
|
|
224
|
+
actual_output: realScenarioResultJSON(actual),
|
|
225
|
+
case_kind: "scenario_llm_rubric",
|
|
226
|
+
...llmJudgeMetadata(options),
|
|
227
|
+
scenario_id: scenarioId,
|
|
228
|
+
expected_run_id: expected.run.id,
|
|
229
|
+
actual_run_id: actual.run.id,
|
|
230
|
+
expected_assertion_count: expected.counts.assertions,
|
|
231
|
+
actual_assertion_count: actual.counts.assertions,
|
|
232
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
233
|
+
},
|
|
234
|
+
assertions: [
|
|
235
|
+
{
|
|
236
|
+
id: `${id}.llm-rubric`,
|
|
237
|
+
kind: "ASSERTION_KIND_LLM_RUBRIC",
|
|
238
|
+
target: "response",
|
|
239
|
+
description: "Cataloged Fermata LLM judge evaluates semantic trajectory quality against the committed real Maestro scenario result.",
|
|
240
|
+
llmRubric: llmRubricConfig(options),
|
|
241
|
+
metadata: {
|
|
242
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
243
|
+
case_kind: "scenario_llm_rubric",
|
|
244
|
+
...llmJudgeMetadata(options),
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
function llmPairwiseRubricCase(expected, actual, options) {
|
|
251
|
+
const scenarioId = expected.scenario.id;
|
|
252
|
+
const id = stableId(scenarioId, "llm-pairwise-rubric", "semantic-trajectory-preference");
|
|
253
|
+
return {
|
|
254
|
+
id,
|
|
255
|
+
name: `${scenarioId} semantic trajectory preference`,
|
|
256
|
+
input: serializeCaseInput({
|
|
257
|
+
scenarioId,
|
|
258
|
+
title: expected.scenario.title,
|
|
259
|
+
platformPrimitive: actual.platform.primitive,
|
|
260
|
+
baselineRunId: expected.run.id,
|
|
261
|
+
candidateRunId: actual.run.id,
|
|
262
|
+
traceJoinKeys: actual.platform.traceJoinKeys,
|
|
263
|
+
baselineAssertionIds: expected.assertions.map((assertion) => assertion.id),
|
|
264
|
+
candidateAssertionIds: actual.assertions.map((assertion) => assertion.id),
|
|
265
|
+
}),
|
|
266
|
+
expectedOutput: realScenarioResultJSON(expected),
|
|
267
|
+
metadata: {
|
|
268
|
+
actual_output: realScenarioResultJSON(actual),
|
|
269
|
+
case_kind: "scenario_llm_pairwise_rubric",
|
|
270
|
+
...llmJudgeMetadata(options),
|
|
271
|
+
scenario_id: scenarioId,
|
|
272
|
+
baseline_run_id: expected.run.id,
|
|
273
|
+
candidate_run_id: actual.run.id,
|
|
274
|
+
baseline_assertion_count: expected.counts.assertions,
|
|
275
|
+
candidate_assertion_count: actual.counts.assertions,
|
|
276
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
277
|
+
},
|
|
278
|
+
assertions: [
|
|
279
|
+
{
|
|
280
|
+
id: `${id}.llm-pairwise-rubric`,
|
|
281
|
+
kind: "ASSERTION_KIND_LLM_PAIRWISE_RUBRIC",
|
|
282
|
+
target: "response",
|
|
283
|
+
description: "Cataloged Fermata LLM judge compares real Maestro trajectory outputs and prefers the stronger candidate.",
|
|
284
|
+
llmPairwiseRubric: llmPairwiseRubricConfig(options),
|
|
285
|
+
metadata: {
|
|
286
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
287
|
+
case_kind: "scenario_llm_pairwise_rubric",
|
|
288
|
+
...llmJudgeMetadata(options),
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function equalsCase(id, name, input, expected, actual, metadata) {
|
|
295
|
+
return {
|
|
296
|
+
id,
|
|
297
|
+
name,
|
|
298
|
+
input: serializeCaseInput(input),
|
|
299
|
+
expectedOutput: expected,
|
|
300
|
+
metadata: {
|
|
301
|
+
...metadata,
|
|
302
|
+
actual_output: actual,
|
|
303
|
+
},
|
|
304
|
+
assertions: [
|
|
305
|
+
{
|
|
306
|
+
id: `${id}.equals`,
|
|
307
|
+
kind: "ASSERTION_KIND_EQUALS",
|
|
308
|
+
target: "response",
|
|
309
|
+
expected,
|
|
310
|
+
metadata: {
|
|
311
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function outcomeCase(expected, actual) {
|
|
318
|
+
const scenarioId = expected.scenario.id;
|
|
319
|
+
return equalsCase(stableId(scenarioId, "observed-outcome"), `${scenarioId} observed outcome`, {
|
|
320
|
+
scenarioId,
|
|
321
|
+
title: expected.scenario.title,
|
|
322
|
+
expectedOutcome: expected.scenario.expectedOutcome,
|
|
323
|
+
committedObservedOutcome: expected.scenario.observedOutcome,
|
|
324
|
+
actualObservedOutcome: actual.scenario.observedOutcome,
|
|
325
|
+
}, expected.scenario.observedOutcome, actual.scenario.observedOutcome, {
|
|
326
|
+
case_kind: "scenario_observed_outcome",
|
|
327
|
+
scenario_id: scenarioId,
|
|
328
|
+
expected_outcome: expected.scenario.expectedOutcome,
|
|
329
|
+
expected_observed_outcome: expected.scenario.observedOutcome,
|
|
330
|
+
actual_observed_outcome: actual.scenario.observedOutcome,
|
|
331
|
+
review_labels: actual.scenario.reviewLabels,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
function countCases(expected, actual) {
|
|
335
|
+
return COUNT_KEYS.map((key) => equalsCase(stableId(expected.scenario.id, "count", key), `${expected.scenario.id} ${key} count`, {
|
|
336
|
+
scenarioId: expected.scenario.id,
|
|
337
|
+
count: key,
|
|
338
|
+
expected: expected.counts[key],
|
|
339
|
+
actual: actual.counts[key],
|
|
340
|
+
}, String(expected.counts[key]), String(actual.counts[key]), {
|
|
341
|
+
case_kind: "scenario_count",
|
|
342
|
+
scenario_id: expected.scenario.id,
|
|
343
|
+
count: key,
|
|
344
|
+
expected_count: expected.counts[key],
|
|
345
|
+
actual_count: actual.counts[key],
|
|
346
|
+
}));
|
|
347
|
+
}
|
|
348
|
+
function assertionCases(expected, actual) {
|
|
349
|
+
const actualById = assertionMap(actual);
|
|
350
|
+
return expected.assertions.map((expectedAssertion) => {
|
|
351
|
+
const actualAssertion = actualById.get(expectedAssertion.id);
|
|
352
|
+
const actualStatus = actualAssertion?.status ?? "missing";
|
|
353
|
+
return equalsCase(stableId(expected.scenario.id, "assertion", expectedAssertion.id), `${expected.scenario.id} ${expectedAssertion.id}`, {
|
|
354
|
+
scenarioId: expected.scenario.id,
|
|
355
|
+
assertionId: expectedAssertion.id,
|
|
356
|
+
kind: expectedAssertion.kind,
|
|
357
|
+
expectedStatus: expectedAssertion.status,
|
|
358
|
+
actualStatus,
|
|
359
|
+
expectedMessage: expectedAssertion.message,
|
|
360
|
+
actualMessage: actualAssertion?.message ?? null,
|
|
361
|
+
}, expectedAssertion.status, actualStatus, {
|
|
362
|
+
case_kind: "scenario_assertion_status",
|
|
363
|
+
scenario_id: expected.scenario.id,
|
|
364
|
+
assertion_id: expectedAssertion.id,
|
|
365
|
+
assertion_kind: expectedAssertion.kind,
|
|
366
|
+
severity: expectedAssertion.severity,
|
|
367
|
+
expected_message: expectedAssertion.message,
|
|
368
|
+
actual_message: actualAssertion?.message,
|
|
369
|
+
expected_evidence: evidenceLabels(expectedAssertion),
|
|
370
|
+
actual_evidence: evidenceLabels(actualAssertion),
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
function suiteMetadata(expected, actual, extra) {
|
|
375
|
+
return {
|
|
376
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
377
|
+
schema_version: actual.schemaVersion,
|
|
378
|
+
scenario_schema_version: actual.scenarioSchemaVersion,
|
|
379
|
+
scenario_id: actual.scenario.id,
|
|
380
|
+
scenario_title: actual.scenario.title,
|
|
381
|
+
expected_run_id: expected.run.id,
|
|
382
|
+
actual_run_id: actual.run.id,
|
|
383
|
+
expected_outcome: expected.scenario.expectedOutcome,
|
|
384
|
+
committed_observed_outcome: expected.scenario.observedOutcome,
|
|
385
|
+
actual_observed_outcome: actual.scenario.observedOutcome,
|
|
386
|
+
platform_primitive: actual.platform.primitive,
|
|
387
|
+
evidence_event_type: actual.platform.evidenceEventType,
|
|
388
|
+
trace_join_keys: actual.platform.traceJoinKeys,
|
|
389
|
+
...(isObject(extra) ? extra : {}),
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
export function buildFermataCreateScenarioSuiteRequest(config, expected, actual, options = {}) {
|
|
393
|
+
requireSameScenario(expected, actual);
|
|
394
|
+
if (!config.organizationId || !config.workspaceId) {
|
|
395
|
+
throw new Error("Fermata scenario suite requires organizationId and workspaceId");
|
|
396
|
+
}
|
|
397
|
+
const scenarioId = expected.scenario.id;
|
|
398
|
+
return {
|
|
399
|
+
organizationId: config.organizationId,
|
|
400
|
+
workspaceId: config.workspaceId,
|
|
401
|
+
name: options.name ?? `Maestro scenario: ${scenarioId}`,
|
|
402
|
+
description: options.description ??
|
|
403
|
+
`Recorded Maestro agent trajectory scenario suite for ${scenarioId}.`,
|
|
404
|
+
cases: [
|
|
405
|
+
outcomeCase(expected, actual),
|
|
406
|
+
...countCases(expected, actual),
|
|
407
|
+
...assertionCases(expected, actual),
|
|
408
|
+
agentTrajectoryCase(expected, actual),
|
|
409
|
+
...(options.llmJudge
|
|
410
|
+
? [llmRubricCase(expected, actual, options.llmJudge)]
|
|
411
|
+
: []),
|
|
412
|
+
...(options.llmPairwiseJudge
|
|
413
|
+
? [llmPairwiseRubricCase(expected, actual, options.llmPairwiseJudge)]
|
|
414
|
+
: []),
|
|
415
|
+
],
|
|
416
|
+
metadata: suiteMetadata(expected, actual, options.metadata),
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
export function buildFermataRunScenarioSuiteRequest(config, suiteId, expected, actual, options = {}) {
|
|
420
|
+
if (!config.organizationId || !config.workspaceId) {
|
|
421
|
+
throw new Error("Fermata scenario suite run requires organizationId and workspaceId");
|
|
422
|
+
}
|
|
423
|
+
const scenarioId = actual.scenario.id;
|
|
424
|
+
const runId = stableId(scenarioId, actual.run.id);
|
|
425
|
+
const model = options.model ?? "maestro-agent-trajectory-replay";
|
|
426
|
+
return {
|
|
427
|
+
suiteId,
|
|
428
|
+
organizationId: config.organizationId,
|
|
429
|
+
workspaceId: config.workspaceId,
|
|
430
|
+
evaluationId: options.evaluationId ?? `maestro-${runId}`,
|
|
431
|
+
runIdPrefix: options.runIdPrefix ?? stableId("maestro", scenarioId),
|
|
432
|
+
lineageId: options.lineageId ?? actual.run.id,
|
|
433
|
+
traceId: options.traceId,
|
|
434
|
+
maxConcurrency: options.maxConcurrency ?? 1,
|
|
435
|
+
stopOnFirstFailure: false,
|
|
436
|
+
runContext: {
|
|
437
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
438
|
+
scenarioId,
|
|
439
|
+
runId: actual.run.id,
|
|
440
|
+
sessionId: actual.run.sessionId,
|
|
441
|
+
platformPrimitive: actual.platform.primitive,
|
|
442
|
+
traceJoinKeys: actual.platform.traceJoinKeys,
|
|
443
|
+
},
|
|
444
|
+
metadata: suiteMetadata(expected, actual, options.metadata),
|
|
445
|
+
candidates: [
|
|
446
|
+
{
|
|
447
|
+
candidateId: options.candidateId ?? stableId("maestro-recorded", scenarioId),
|
|
448
|
+
label: options.candidateLabel ?? "Maestro recorded trajectory",
|
|
449
|
+
model,
|
|
450
|
+
metadata: {
|
|
451
|
+
source: "maestro.agent_trajectory_scenario_result",
|
|
452
|
+
scenario_id: scenarioId,
|
|
453
|
+
run_id: actual.run.id,
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
//# sourceMappingURL=fermata-scenario-suite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fermata-scenario-suite.js","sourceRoot":"","sources":["../../src/platform/fermata-scenario-suite.ts"],"names":[],"mappings":"AA0EA,MAAM,UAAU,GAAG;IAClB,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;CACN,CAAC;AAwCX,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED,SAAS,QAAQ,CAAC,GAAG,KAAe;IACnC,MAAM,EAAE,GAAG,KAAK;SACd,IAAI,CAAC,GAAG,CAAC;SACT,WAAW,EAAE;SACb,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC;SAC/B,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;SACxB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACxB,OAAO,EAAE,IAAI,kBAAkB,CAAC;AACjC,CAAC;AAED,SAAS,mBAAmB,CAAC,MAAqC;IACjE,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC;AACnD,CAAC;AAED,SAAS,mBAAmB,CAC3B,QAAuC,EACvC,MAAqC;IAErC,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjD,MAAM,IAAI,KAAK,CACd,mEAAmE,mBAAmB,CAC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AAU,EAAE;YACX;gBACC,WAAW,EACV,OAAO,CAAC,WAAW,IAAI,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAC;gBAChE,KAAK,EAAE,OAAO,CAAC,cAAc,IAAI,6BAA6B;gBAC9D,KAAK;gBACL,QAAQ,EAAE;oBACT,MAAM,EAAE,0CAA0C;oBAClD,WAAW,EAAE,UAAU;oBACvB,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE;iBACrB;aACD;SACD;KACD,CAAC;AACH,CAAC","sourcesContent":["import type {\n\tCreateFermataTestSuiteRequest,\n\tFermataAgentTrajectoryAssertion,\n\tFermataEvalServiceConfig,\n\tFermataLLMPairwiseRubricAssertion,\n\tFermataLLMRubricAssertion,\n\tFermataTestCase,\n\tRunFermataTestSuiteRequest,\n} from \"./fermata-eval-client.js\";\n\ntype AgentTrajectoryScenarioAssertionStatus = \"pass\" | \"fail\" | \"warn\";\n\ninterface AgentTrajectoryScenarioEvidence {\n\tkind: string;\n\tid: string;\n\tsource: string;\n\tlabel: string;\n}\n\ninterface AgentTrajectoryScenarioAssertionResult {\n\tid: string;\n\tkind: string;\n\tstatus: AgentTrajectoryScenarioAssertionStatus;\n\tseverity: string;\n\tmessage: string;\n\tevidence: AgentTrajectoryScenarioEvidence[];\n}\n\ninterface AgentTrajectoryScenarioResult {\n\tschemaVersion: string;\n\tscenarioSchemaVersion: string;\n\tscenario: {\n\t\tid: string;\n\t\ttitle: string;\n\t\texpectedOutcome: string;\n\t\tobservedOutcome: string;\n\t\treviewLabels: string[];\n\t};\n\trun: {\n\t\tid: string;\n\t\tsessionId: string;\n\t\tsource?: string;\n\t\tplatformBacked?: boolean;\n\t\tscenarioId?: string;\n\t\treplay?: boolean;\n\t\tgeneratedAt?: string;\n\t};\n\tcounts: {\n\t\tassertions: number;\n\t\tpassed: number;\n\t\tfailed: number;\n\t\twarnings: number;\n\t\tevents: number;\n\t\ttoolCalls: number;\n\t\treplayDeltas: number;\n\t\tscoreFailures: number;\n\t\tscoreWarnings: number;\n\t};\n\tplatform: {\n\t\tprimitive: string;\n\t\tevidenceEventType: string;\n\t\ttraceJoinKeys: string[];\n\t\teventType?: string;\n\t\trationale?: string;\n\t};\n\tassertions: AgentTrajectoryScenarioAssertionResult[];\n\tprovenance?: Array<{\n\t\teventId: string;\n\t\teventType: string;\n\t\tphase?: string;\n\t\tactor?: string;\n\t}>;\n}\n\nconst COUNT_KEYS = [\n\t\"assertions\",\n\t\"passed\",\n\t\"failed\",\n\t\"warnings\",\n\t\"events\",\n\t\"toolCalls\",\n\t\"replayDeltas\",\n\t\"scoreFailures\",\n\t\"scoreWarnings\",\n] as const;\n\nexport interface FermataScenarioSuiteLLMJudgeOptions {\n\tjudgeId: string;\n\tverifierJudgeId?: string;\n\trubric: string;\n\tminScore?: number;\n\trepeat?: number;\n\tquorum?: number;\n\trecordJudgeValidation?: boolean;\n\trequireCalibratedJudge?: boolean;\n\tminJudgeValidationAccuracy?: number;\n\tminJudgeValidationCount?: number;\n\trubricVersion?: string;\n\tcalibrationCohort?: string;\n\tadvisoryOnly?: boolean;\n}\n\nexport interface FermataScenarioSuiteLLMPairwiseJudgeOptions\n\textends FermataScenarioSuiteLLMJudgeOptions {\n\tbaselineLabel?: string;\n\tcandidateLabel?: string;\n}\n\nexport interface FermataScenarioSuiteOptions {\n\tname?: string;\n\tdescription?: string;\n\tmodel?: string;\n\tcandidateId?: string;\n\tcandidateLabel?: string;\n\tevaluationId?: string;\n\trunIdPrefix?: string;\n\tlineageId?: string;\n\ttraceId?: string;\n\tmaxConcurrency?: number;\n\tmetadata?: Record<string, unknown>;\n\tllmJudge?: FermataScenarioSuiteLLMJudgeOptions;\n\tllmPairwiseJudge?: FermataScenarioSuiteLLMPairwiseJudgeOptions;\n}\n\nfunction isObject(value: unknown): value is Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction stableId(...parts: string[]): string {\n\tconst id = parts\n\t\t.join(\".\")\n\t\t.toLowerCase()\n\t\t.replace(/[^a-z0-9._-]+/gu, \"-\")\n\t\t.replace(/^-+|-+$/gu, \"\")\n\t\t.replace(/--+/gu, \"-\");\n\treturn id || \"maestro-scenario\";\n}\n\nfunction scenarioResultLabel(result: AgentTrajectoryScenarioResult): string {\n\treturn `${result.scenario.id} (${result.run.id})`;\n}\n\nfunction requireSameScenario(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n): void {\n\tif (expected.scenario.id !== actual.scenario.id) {\n\t\tthrow new Error(\n\t\t\t`Fermata scenario suite requires matching scenario ids; expected ${scenarioResultLabel(\n\t\t\t\texpected,\n\t\t\t)}, received ${scenarioResultLabel(actual)}`,\n\t\t);\n\t}\n\tif (expected.schemaVersion !== actual.schemaVersion) {\n\t\tthrow new Error(\n\t\t\t`Fermata scenario suite requires matching result schema versions for ${expected.scenario.id}`,\n\t\t);\n\t}\n}\n\nfunction serializeCaseInput(value: Record<string, unknown>): string {\n\treturn JSON.stringify(value, null, \"\\t\");\n}\n\nfunction assertionMap(\n\tresult: AgentTrajectoryScenarioResult,\n): Map<string, AgentTrajectoryScenarioAssertionResult> {\n\treturn new Map(\n\t\tresult.assertions.map((assertion) => [assertion.id, assertion]),\n\t);\n}\n\nfunction evidenceLabels(\n\tassertion: AgentTrajectoryScenarioAssertionResult | undefined,\n): string[] {\n\treturn (assertion?.evidence ?? []).map(\n\t\t(evidence) => `${evidence.source}:${evidence.kind}:${evidence.id}`,\n\t);\n}\n\nfunction requireNonEmpty(value: string | undefined, label: string): string {\n\tconst trimmed = value?.trim();\n\tif (!trimmed) {\n\t\tthrow new Error(`Fermata scenario suite LLM judge requires ${label}`);\n\t}\n\treturn trimmed;\n}\n\nfunction optionalPositiveNumber(\n\tvalue: number | undefined,\n\tlabel: string,\n\tmax?: number,\n): number | undefined {\n\tif (value === undefined) return undefined;\n\tif (\n\t\t!Number.isFinite(value) ||\n\t\tvalue <= 0 ||\n\t\t(max !== undefined && value > max)\n\t) {\n\t\tthrow new Error(`Fermata scenario suite LLM judge ${label} is invalid`);\n\t}\n\treturn value;\n}\n\nfunction optionalPositiveInteger(\n\tvalue: number | undefined,\n\tlabel: string,\n): number | undefined {\n\tif (value === undefined) return undefined;\n\tif (!Number.isInteger(value) || value <= 0) {\n\t\tthrow new Error(`Fermata scenario suite LLM judge ${label} is invalid`);\n\t}\n\treturn value;\n}\n\nfunction optionalTrimmed(value: string | undefined): string | undefined {\n\tconst trimmed = value?.trim();\n\treturn trimmed || undefined;\n}\n\nfunction llmRubricConfig(\n\toptions: FermataScenarioSuiteLLMJudgeOptions,\n): FermataLLMRubricAssertion {\n\tconst repeat = optionalPositiveInteger(options.repeat, \"repeat\");\n\tconst quorum = optionalPositiveInteger(options.quorum, \"quorum\");\n\tif (repeat !== undefined && quorum !== undefined && quorum > repeat) {\n\t\tthrow new Error(\n\t\t\t\"Fermata scenario suite LLM judge quorum cannot exceed repeat\",\n\t\t);\n\t}\n\treturn {\n\t\tjudgeId: requireNonEmpty(options.judgeId, \"judgeId\"),\n\t\tverifierJudgeId: options.verifierJudgeId?.trim() || undefined,\n\t\trubric: requireNonEmpty(options.rubric, \"rubric\"),\n\t\tminScore: optionalPositiveNumber(options.minScore, \"minScore\", 1),\n\t\trepeat,\n\t\tquorum,\n\t\trecordJudgeValidation: options.recordJudgeValidation ?? true,\n\t\trequireCalibratedJudge: options.requireCalibratedJudge,\n\t\tminJudgeValidationAccuracy: optionalPositiveNumber(\n\t\t\toptions.minJudgeValidationAccuracy,\n\t\t\t\"minJudgeValidationAccuracy\",\n\t\t\t1,\n\t\t),\n\t\tminJudgeValidationCount: optionalPositiveInteger(\n\t\t\toptions.minJudgeValidationCount,\n\t\t\t\"minJudgeValidationCount\",\n\t\t),\n\t\trubricVersion: optionalTrimmed(options.rubricVersion),\n\t\tcalibrationCohort: optionalTrimmed(options.calibrationCohort),\n\t\tadvisoryOnly: options.advisoryOnly,\n\t};\n}\n\nfunction llmPairwiseRubricConfig(\n\toptions: FermataScenarioSuiteLLMPairwiseJudgeOptions,\n): FermataLLMPairwiseRubricAssertion {\n\tconst repeat = optionalPositiveInteger(options.repeat, \"repeat\");\n\tconst quorum = optionalPositiveInteger(options.quorum, \"quorum\");\n\tif (repeat !== undefined && quorum !== undefined && quorum > repeat) {\n\t\tthrow new Error(\n\t\t\t\"Fermata scenario suite LLM judge quorum cannot exceed repeat\",\n\t\t);\n\t}\n\treturn {\n\t\tjudgeId: requireNonEmpty(options.judgeId, \"judgeId\"),\n\t\tverifierJudgeId: options.verifierJudgeId?.trim() || undefined,\n\t\trubric: requireNonEmpty(options.rubric, \"rubric\"),\n\t\tbaselineLabel: options.baselineLabel?.trim() || undefined,\n\t\tcandidateLabel: options.candidateLabel?.trim() || undefined,\n\t\tminScore: optionalPositiveNumber(options.minScore, \"minScore\", 1),\n\t\trepeat,\n\t\tquorum,\n\t\trecordJudgeValidation: options.recordJudgeValidation ?? true,\n\t\trequireCalibratedJudge: options.requireCalibratedJudge,\n\t\tminJudgeValidationAccuracy: optionalPositiveNumber(\n\t\t\toptions.minJudgeValidationAccuracy,\n\t\t\t\"minJudgeValidationAccuracy\",\n\t\t\t1,\n\t\t),\n\t\tminJudgeValidationCount: optionalPositiveInteger(\n\t\t\toptions.minJudgeValidationCount,\n\t\t\t\"minJudgeValidationCount\",\n\t\t),\n\t\trubricVersion: optionalTrimmed(options.rubricVersion),\n\t\tcalibrationCohort: optionalTrimmed(options.calibrationCohort),\n\t\tadvisoryOnly: options.advisoryOnly,\n\t};\n}\n\nfunction llmJudgeMetadata(\n\toptions: FermataScenarioSuiteLLMJudgeOptions,\n): Record<string, unknown> {\n\tconst rubricVersion = optionalTrimmed(options.rubricVersion);\n\tconst calibrationCohort = optionalTrimmed(options.calibrationCohort);\n\tif (\n\t\toptions.advisoryOnly === undefined &&\n\t\t!rubricVersion &&\n\t\t!calibrationCohort\n\t) {\n\t\treturn {};\n\t}\n\treturn {\n\t\tjudge_mode: options.advisoryOnly ? \"advisory\" : \"blocking\",\n\t\t...(rubricVersion ? { rubric_version: rubricVersion } : {}),\n\t\t...(calibrationCohort ? { calibration_cohort: calibrationCohort } : {}),\n\t};\n}\n\nfunction realScenarioResultJSON(result: AgentTrajectoryScenarioResult): string {\n\treturn JSON.stringify(result, null, \"\\t\");\n}\n\nfunction uniqueValues(values: Iterable<string | undefined>): string[] {\n\tconst seen = new Set<string>();\n\tfor (const value of values) {\n\t\tconst trimmed = value?.trim();\n\t\tif (trimmed) seen.add(trimmed);\n\t}\n\treturn [...seen];\n}\n\nfunction agentTrajectoryConfig(\n\texpected: AgentTrajectoryScenarioResult,\n): FermataAgentTrajectoryAssertion {\n\treturn {\n\t\trequiredEvents: uniqueValues(\n\t\t\texpected.provenance?.map((event) => event.eventType) ?? [],\n\t\t),\n\t\trequiredAssertionStatuses: expected.assertions.map((assertion) => ({\n\t\t\tid: assertion.id,\n\t\t\tstatus: assertion.status,\n\t\t})),\n\t\tmaxEvents: expected.counts.events,\n\t\tmaxToolCalls: expected.counts.toolCalls,\n\t\tmaxReplayDeltas: expected.counts.replayDeltas,\n\t\tmaxScoreFailures: expected.counts.scoreFailures,\n\t\tmaxScoreWarnings: expected.counts.scoreWarnings,\n\t\trequireIdempotentReplay: true,\n\t\tforbidDuplicateExternalActions: true,\n\t\trequiredTraceJoinKeys: expected.platform.traceJoinKeys,\n\t};\n}\n\nfunction agentTrajectoryCase(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n): FermataTestCase {\n\tconst scenarioId = expected.scenario.id;\n\tconst id = stableId(\n\t\tscenarioId,\n\t\t\"agent-trajectory\",\n\t\t\"native-trajectory-guard\",\n\t);\n\treturn {\n\t\tid,\n\t\tname: `${scenarioId} native trajectory guard`,\n\t\tinput: serializeCaseInput({\n\t\t\tscenarioId,\n\t\t\ttitle: expected.scenario.title,\n\t\t\tplatformPrimitive: actual.platform.primitive,\n\t\t\texpectedRunId: expected.run.id,\n\t\t\tactualRunId: actual.run.id,\n\t\t\ttraceJoinKeys: actual.platform.traceJoinKeys,\n\t\t\texpectedAssertionIds: expected.assertions.map(\n\t\t\t\t(assertion) => assertion.id,\n\t\t\t),\n\t\t\tactualAssertionIds: actual.assertions.map((assertion) => assertion.id),\n\t\t}),\n\t\texpectedOutput: realScenarioResultJSON(expected),\n\t\tmetadata: {\n\t\t\tactual_output: realScenarioResultJSON(actual),\n\t\t\tcase_kind: \"scenario_agent_trajectory\",\n\t\t\tci_tier: \"core-regression\",\n\t\t\tscenario_id: scenarioId,\n\t\t\texpected_run_id: expected.run.id,\n\t\t\tactual_run_id: actual.run.id,\n\t\t\texpected_assertion_count: expected.counts.assertions,\n\t\t\tactual_assertion_count: actual.counts.assertions,\n\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t},\n\t\tassertions: [\n\t\t\t{\n\t\t\t\tid: `${id}.agent-trajectory`,\n\t\t\t\tkind: \"ASSERTION_KIND_AGENT_TRAJECTORY\",\n\t\t\t\ttarget: \"response\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"Native Fermata trajectory assertion evaluates real Maestro replay results for event, assertion, budget, idempotency, and trace-link invariants.\",\n\t\t\t\tagentTrajectory: agentTrajectoryConfig(expected),\n\t\t\t\tmetadata: {\n\t\t\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\t\t\tcase_kind: \"scenario_agent_trajectory\",\n\t\t\t\t\tci_tier: \"core-regression\",\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n}\n\nfunction llmRubricCase(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n\toptions: FermataScenarioSuiteLLMJudgeOptions,\n): FermataTestCase {\n\tconst scenarioId = expected.scenario.id;\n\tconst id = stableId(scenarioId, \"llm-rubric\", \"semantic-trajectory-quality\");\n\treturn {\n\t\tid,\n\t\tname: `${scenarioId} semantic trajectory quality`,\n\t\tinput: serializeCaseInput({\n\t\t\tscenarioId,\n\t\t\ttitle: expected.scenario.title,\n\t\t\tplatformPrimitive: actual.platform.primitive,\n\t\t\texpectedRunId: expected.run.id,\n\t\t\tactualRunId: actual.run.id,\n\t\t\ttraceJoinKeys: actual.platform.traceJoinKeys,\n\t\t\texpectedAssertionIds: expected.assertions.map(\n\t\t\t\t(assertion) => assertion.id,\n\t\t\t),\n\t\t\tactualAssertionIds: actual.assertions.map((assertion) => assertion.id),\n\t\t}),\n\t\texpectedOutput: realScenarioResultJSON(expected),\n\t\tmetadata: {\n\t\t\tactual_output: realScenarioResultJSON(actual),\n\t\t\tcase_kind: \"scenario_llm_rubric\",\n\t\t\t...llmJudgeMetadata(options),\n\t\t\tscenario_id: scenarioId,\n\t\t\texpected_run_id: expected.run.id,\n\t\t\tactual_run_id: actual.run.id,\n\t\t\texpected_assertion_count: expected.counts.assertions,\n\t\t\tactual_assertion_count: actual.counts.assertions,\n\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t},\n\t\tassertions: [\n\t\t\t{\n\t\t\t\tid: `${id}.llm-rubric`,\n\t\t\t\tkind: \"ASSERTION_KIND_LLM_RUBRIC\",\n\t\t\t\ttarget: \"response\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"Cataloged Fermata LLM judge evaluates semantic trajectory quality against the committed real Maestro scenario result.\",\n\t\t\t\tllmRubric: llmRubricConfig(options),\n\t\t\t\tmetadata: {\n\t\t\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\t\t\tcase_kind: \"scenario_llm_rubric\",\n\t\t\t\t\t...llmJudgeMetadata(options),\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n}\n\nfunction llmPairwiseRubricCase(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n\toptions: FermataScenarioSuiteLLMPairwiseJudgeOptions,\n): FermataTestCase {\n\tconst scenarioId = expected.scenario.id;\n\tconst id = stableId(\n\t\tscenarioId,\n\t\t\"llm-pairwise-rubric\",\n\t\t\"semantic-trajectory-preference\",\n\t);\n\treturn {\n\t\tid,\n\t\tname: `${scenarioId} semantic trajectory preference`,\n\t\tinput: serializeCaseInput({\n\t\t\tscenarioId,\n\t\t\ttitle: expected.scenario.title,\n\t\t\tplatformPrimitive: actual.platform.primitive,\n\t\t\tbaselineRunId: expected.run.id,\n\t\t\tcandidateRunId: actual.run.id,\n\t\t\ttraceJoinKeys: actual.platform.traceJoinKeys,\n\t\t\tbaselineAssertionIds: expected.assertions.map(\n\t\t\t\t(assertion) => assertion.id,\n\t\t\t),\n\t\t\tcandidateAssertionIds: actual.assertions.map((assertion) => assertion.id),\n\t\t}),\n\t\texpectedOutput: realScenarioResultJSON(expected),\n\t\tmetadata: {\n\t\t\tactual_output: realScenarioResultJSON(actual),\n\t\t\tcase_kind: \"scenario_llm_pairwise_rubric\",\n\t\t\t...llmJudgeMetadata(options),\n\t\t\tscenario_id: scenarioId,\n\t\t\tbaseline_run_id: expected.run.id,\n\t\t\tcandidate_run_id: actual.run.id,\n\t\t\tbaseline_assertion_count: expected.counts.assertions,\n\t\t\tcandidate_assertion_count: actual.counts.assertions,\n\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t},\n\t\tassertions: [\n\t\t\t{\n\t\t\t\tid: `${id}.llm-pairwise-rubric`,\n\t\t\t\tkind: \"ASSERTION_KIND_LLM_PAIRWISE_RUBRIC\",\n\t\t\t\ttarget: \"response\",\n\t\t\t\tdescription:\n\t\t\t\t\t\"Cataloged Fermata LLM judge compares real Maestro trajectory outputs and prefers the stronger candidate.\",\n\t\t\t\tllmPairwiseRubric: llmPairwiseRubricConfig(options),\n\t\t\t\tmetadata: {\n\t\t\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\t\t\tcase_kind: \"scenario_llm_pairwise_rubric\",\n\t\t\t\t\t...llmJudgeMetadata(options),\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n}\n\nfunction equalsCase(\n\tid: string,\n\tname: string,\n\tinput: Record<string, unknown>,\n\texpected: string,\n\tactual: string,\n\tmetadata: Record<string, unknown>,\n): FermataTestCase {\n\treturn {\n\t\tid,\n\t\tname,\n\t\tinput: serializeCaseInput(input),\n\t\texpectedOutput: expected,\n\t\tmetadata: {\n\t\t\t...metadata,\n\t\t\tactual_output: actual,\n\t\t},\n\t\tassertions: [\n\t\t\t{\n\t\t\t\tid: `${id}.equals`,\n\t\t\t\tkind: \"ASSERTION_KIND_EQUALS\",\n\t\t\t\ttarget: \"response\",\n\t\t\t\texpected,\n\t\t\t\tmetadata: {\n\t\t\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n}\n\nfunction outcomeCase(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n): FermataTestCase {\n\tconst scenarioId = expected.scenario.id;\n\treturn equalsCase(\n\t\tstableId(scenarioId, \"observed-outcome\"),\n\t\t`${scenarioId} observed outcome`,\n\t\t{\n\t\t\tscenarioId,\n\t\t\ttitle: expected.scenario.title,\n\t\t\texpectedOutcome: expected.scenario.expectedOutcome,\n\t\t\tcommittedObservedOutcome: expected.scenario.observedOutcome,\n\t\t\tactualObservedOutcome: actual.scenario.observedOutcome,\n\t\t},\n\t\texpected.scenario.observedOutcome,\n\t\tactual.scenario.observedOutcome,\n\t\t{\n\t\t\tcase_kind: \"scenario_observed_outcome\",\n\t\t\tscenario_id: scenarioId,\n\t\t\texpected_outcome: expected.scenario.expectedOutcome,\n\t\t\texpected_observed_outcome: expected.scenario.observedOutcome,\n\t\t\tactual_observed_outcome: actual.scenario.observedOutcome,\n\t\t\treview_labels: actual.scenario.reviewLabels,\n\t\t},\n\t);\n}\n\nfunction countCases(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n): FermataTestCase[] {\n\treturn COUNT_KEYS.map((key) =>\n\t\tequalsCase(\n\t\t\tstableId(expected.scenario.id, \"count\", key),\n\t\t\t`${expected.scenario.id} ${key} count`,\n\t\t\t{\n\t\t\t\tscenarioId: expected.scenario.id,\n\t\t\t\tcount: key,\n\t\t\t\texpected: expected.counts[key],\n\t\t\t\tactual: actual.counts[key],\n\t\t\t},\n\t\t\tString(expected.counts[key]),\n\t\t\tString(actual.counts[key]),\n\t\t\t{\n\t\t\t\tcase_kind: \"scenario_count\",\n\t\t\t\tscenario_id: expected.scenario.id,\n\t\t\t\tcount: key,\n\t\t\t\texpected_count: expected.counts[key],\n\t\t\t\tactual_count: actual.counts[key],\n\t\t\t},\n\t\t),\n\t);\n}\n\nfunction assertionCases(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n): FermataTestCase[] {\n\tconst actualById = assertionMap(actual);\n\treturn expected.assertions.map((expectedAssertion) => {\n\t\tconst actualAssertion = actualById.get(expectedAssertion.id);\n\t\tconst actualStatus = actualAssertion?.status ?? \"missing\";\n\t\treturn equalsCase(\n\t\t\tstableId(expected.scenario.id, \"assertion\", expectedAssertion.id),\n\t\t\t`${expected.scenario.id} ${expectedAssertion.id}`,\n\t\t\t{\n\t\t\t\tscenarioId: expected.scenario.id,\n\t\t\t\tassertionId: expectedAssertion.id,\n\t\t\t\tkind: expectedAssertion.kind,\n\t\t\t\texpectedStatus: expectedAssertion.status,\n\t\t\t\tactualStatus,\n\t\t\t\texpectedMessage: expectedAssertion.message,\n\t\t\t\tactualMessage: actualAssertion?.message ?? null,\n\t\t\t},\n\t\t\texpectedAssertion.status,\n\t\t\tactualStatus,\n\t\t\t{\n\t\t\t\tcase_kind: \"scenario_assertion_status\",\n\t\t\t\tscenario_id: expected.scenario.id,\n\t\t\t\tassertion_id: expectedAssertion.id,\n\t\t\t\tassertion_kind: expectedAssertion.kind,\n\t\t\t\tseverity: expectedAssertion.severity,\n\t\t\t\texpected_message: expectedAssertion.message,\n\t\t\t\tactual_message: actualAssertion?.message,\n\t\t\t\texpected_evidence: evidenceLabels(expectedAssertion),\n\t\t\t\tactual_evidence: evidenceLabels(actualAssertion),\n\t\t\t},\n\t\t);\n\t});\n}\n\nfunction suiteMetadata(\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n\textra: Record<string, unknown> | undefined,\n): Record<string, unknown> {\n\treturn {\n\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\tschema_version: actual.schemaVersion,\n\t\tscenario_schema_version: actual.scenarioSchemaVersion,\n\t\tscenario_id: actual.scenario.id,\n\t\tscenario_title: actual.scenario.title,\n\t\texpected_run_id: expected.run.id,\n\t\tactual_run_id: actual.run.id,\n\t\texpected_outcome: expected.scenario.expectedOutcome,\n\t\tcommitted_observed_outcome: expected.scenario.observedOutcome,\n\t\tactual_observed_outcome: actual.scenario.observedOutcome,\n\t\tplatform_primitive: actual.platform.primitive,\n\t\tevidence_event_type: actual.platform.evidenceEventType,\n\t\ttrace_join_keys: actual.platform.traceJoinKeys,\n\t\t...(isObject(extra) ? extra : {}),\n\t};\n}\n\nexport function buildFermataCreateScenarioSuiteRequest(\n\tconfig: Pick<FermataEvalServiceConfig, \"organizationId\" | \"workspaceId\">,\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n\toptions: FermataScenarioSuiteOptions = {},\n): CreateFermataTestSuiteRequest {\n\trequireSameScenario(expected, actual);\n\tif (!config.organizationId || !config.workspaceId) {\n\t\tthrow new Error(\n\t\t\t\"Fermata scenario suite requires organizationId and workspaceId\",\n\t\t);\n\t}\n\tconst scenarioId = expected.scenario.id;\n\treturn {\n\t\torganizationId: config.organizationId,\n\t\tworkspaceId: config.workspaceId,\n\t\tname: options.name ?? `Maestro scenario: ${scenarioId}`,\n\t\tdescription:\n\t\t\toptions.description ??\n\t\t\t`Recorded Maestro agent trajectory scenario suite for ${scenarioId}.`,\n\t\tcases: [\n\t\t\toutcomeCase(expected, actual),\n\t\t\t...countCases(expected, actual),\n\t\t\t...assertionCases(expected, actual),\n\t\t\tagentTrajectoryCase(expected, actual),\n\t\t\t...(options.llmJudge\n\t\t\t\t? [llmRubricCase(expected, actual, options.llmJudge)]\n\t\t\t\t: []),\n\t\t\t...(options.llmPairwiseJudge\n\t\t\t\t? [llmPairwiseRubricCase(expected, actual, options.llmPairwiseJudge)]\n\t\t\t\t: []),\n\t\t],\n\t\tmetadata: suiteMetadata(expected, actual, options.metadata),\n\t};\n}\n\nexport function buildFermataRunScenarioSuiteRequest(\n\tconfig: Pick<FermataEvalServiceConfig, \"organizationId\" | \"workspaceId\">,\n\tsuiteId: string,\n\texpected: AgentTrajectoryScenarioResult,\n\tactual: AgentTrajectoryScenarioResult,\n\toptions: FermataScenarioSuiteOptions = {},\n): RunFermataTestSuiteRequest {\n\tif (!config.organizationId || !config.workspaceId) {\n\t\tthrow new Error(\n\t\t\t\"Fermata scenario suite run requires organizationId and workspaceId\",\n\t\t);\n\t}\n\tconst scenarioId = actual.scenario.id;\n\tconst runId = stableId(scenarioId, actual.run.id);\n\tconst model = options.model ?? \"maestro-agent-trajectory-replay\";\n\treturn {\n\t\tsuiteId,\n\t\torganizationId: config.organizationId,\n\t\tworkspaceId: config.workspaceId,\n\t\tevaluationId: options.evaluationId ?? `maestro-${runId}`,\n\t\trunIdPrefix: options.runIdPrefix ?? stableId(\"maestro\", scenarioId),\n\t\tlineageId: options.lineageId ?? actual.run.id,\n\t\ttraceId: options.traceId,\n\t\tmaxConcurrency: options.maxConcurrency ?? 1,\n\t\tstopOnFirstFailure: false,\n\t\trunContext: {\n\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\tscenarioId,\n\t\t\trunId: actual.run.id,\n\t\t\tsessionId: actual.run.sessionId,\n\t\t\tplatformPrimitive: actual.platform.primitive,\n\t\t\ttraceJoinKeys: actual.platform.traceJoinKeys,\n\t\t},\n\t\tmetadata: suiteMetadata(expected, actual, options.metadata),\n\t\tcandidates: [\n\t\t\t{\n\t\t\t\tcandidateId:\n\t\t\t\t\toptions.candidateId ?? stableId(\"maestro-recorded\", scenarioId),\n\t\t\t\tlabel: options.candidateLabel ?? \"Maestro recorded trajectory\",\n\t\t\t\tmodel,\n\t\t\t\tmetadata: {\n\t\t\t\t\tsource: \"maestro.agent_trajectory_scenario_result\",\n\t\t\t\t\tscenario_id: scenarioId,\n\t\t\t\t\trun_id: actual.run.id,\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maestro-timeline-client.d.ts","sourceRoot":"","sources":["../../src/platform/maestro-timeline-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIX,2BAA2B,EAG3B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"maestro-timeline-client.d.ts","sourceRoot":"","sources":["../../src/platform/maestro-timeline-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIX,2BAA2B,EAG3B,MAAM,oBAAoB,CAAC;AAY5B,OAAO,EACN,KAAK,qBAAqB,EAI1B,MAAM,aAAa,CAAC;AAmDrB,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;CAAG;AAE9E,MAAM,WAAW,4BAA4B;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAiCD,wBAAsB,mCAAmC,CACxD,SAAS,GAAE,OAAO,CAAC,4BAA4B,CAAM,GACnD,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC,CAoC9C;AAmUD,wBAAsB,+BAA+B,CACpD,MAAM,EAAE,4BAA4B,EACpC,KAAK,EAAE,4BAA4B,EACnC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,2BAA2B,CAAC,CA+CtC;AAED,wBAAsB,kCAAkC,CACvD,KAAK,EAAE,4BAA4B,EACnC,OAAO,CAAC,EAAE;IACT,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB,GACC,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAkB7C"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { EVALOPS_ACCESS_TOKEN_ENV_VARS, EVALOPS_ORGANIZATION_ID_ENV_VARS, EVALOPS_WORKSPACE_ID_ENV_VARS, } from "../evalops/env-aliases.js";
|
|
1
2
|
import { compactTimelineMetadata, compactTimelineSummary, redactTimelineMetadata, } from "../timeline/redaction.js";
|
|
3
|
+
import { isAbortError } from "../utils/abort-error.js";
|
|
2
4
|
import { postPlatformConnect, resolvePlatformServiceConfig, trimString, } from "./client.js";
|
|
3
5
|
import { PLATFORM_CONNECT_METHODS, platformConnectMethodPath, platformConnectServicePath, } from "./core-services.js";
|
|
4
6
|
const DEFAULT_TIMEOUT_MS = 2_500;
|
|
@@ -14,23 +16,18 @@ const TIMELINE_BASE_URL_ENV_VARS = [
|
|
|
14
16
|
const TIMELINE_TOKEN_ENV_VARS = [
|
|
15
17
|
"MAESTRO_TIMELINE_SERVICE_TOKEN",
|
|
16
18
|
"MAESTRO_PLATFORM_TIMELINE_SERVICE_TOKEN",
|
|
17
|
-
|
|
18
|
-
"EVALOPS_TOKEN",
|
|
19
|
+
...EVALOPS_ACCESS_TOKEN_ENV_VARS,
|
|
19
20
|
];
|
|
20
21
|
const TIMELINE_ORGANIZATION_ENV_VARS = [
|
|
21
22
|
"MAESTRO_TIMELINE_ORG_ID",
|
|
22
23
|
"MAESTRO_PLATFORM_TIMELINE_ORG_ID",
|
|
23
|
-
|
|
24
|
-
"EVALOPS_ORGANIZATION_ID",
|
|
25
|
-
"MAESTRO_ENTERPRISE_ORG_ID",
|
|
24
|
+
...EVALOPS_ORGANIZATION_ID_ENV_VARS,
|
|
26
25
|
];
|
|
27
26
|
const TIMELINE_WORKSPACE_ENV_VARS = [
|
|
28
27
|
"MAESTRO_TIMELINE_WORKSPACE_ID",
|
|
29
28
|
"MAESTRO_PLATFORM_TIMELINE_WORKSPACE_ID",
|
|
30
29
|
"MAESTRO_REMOTE_RUNNER_WORKSPACE_ID",
|
|
31
|
-
|
|
32
|
-
"EVALOPS_WORKSPACE_ID",
|
|
33
|
-
"MAESTRO_WORKSPACE_ID",
|
|
30
|
+
...EVALOPS_WORKSPACE_ID_ENV_VARS,
|
|
34
31
|
];
|
|
35
32
|
const TIMELINE_TIMEOUT_ENV_VARS = [
|
|
36
33
|
"MAESTRO_TIMELINE_SERVICE_TIMEOUT_MS",
|
|
@@ -78,9 +75,6 @@ function stringValue(value) {
|
|
|
78
75
|
? value.trim()
|
|
79
76
|
: undefined;
|
|
80
77
|
}
|
|
81
|
-
function isAbortError(error) {
|
|
82
|
-
return error instanceof Error && error.name === "AbortError";
|
|
83
|
-
}
|
|
84
78
|
function relatedString(relatedIds, ...keys) {
|
|
85
79
|
for (const key of keys) {
|
|
86
80
|
const value = stringValue(relatedIds?.[key]);
|