@evalops/maestro 0.10.18 → 0.10.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -1
- package/dist/agent/action-approval.d.ts +12 -2
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js +19 -32
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +1 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +26 -0
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts +2 -0
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +4 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +56 -4
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +163 -2
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/prompt-recovery.d.ts.map +1 -1
- package/dist/agent/prompt-recovery.js +1 -3
- package/dist/agent/prompt-recovery.js.map +1 -1
- package/dist/agent/providers/anthropic.d.ts.map +1 -1
- package/dist/agent/providers/anthropic.js +9 -1
- package/dist/agent/providers/anthropic.js.map +1 -1
- package/dist/agent/providers/codex-app-server.d.ts +12 -0
- package/dist/agent/providers/codex-app-server.d.ts.map +1 -0
- package/dist/agent/providers/codex-app-server.js +788 -0
- package/dist/agent/providers/codex-app-server.js.map +1 -0
- package/dist/agent/providers/google-gemini-cli.js +14 -3
- package/dist/agent/providers/google.js +22 -3
- package/dist/agent/providers/scripted.d.ts +11 -0
- package/dist/agent/providers/scripted.d.ts.map +1 -0
- package/dist/agent/providers/scripted.js +399 -0
- package/dist/agent/providers/scripted.js.map +1 -0
- package/dist/agent/providers/vertex.js +14 -3
- package/dist/agent/scenario-source.d.ts +19 -0
- package/dist/agent/scenario-source.d.ts.map +1 -0
- package/dist/agent/scenario-source.js +112 -0
- package/dist/agent/scenario-source.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +1 -1
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/swarm/executor.d.ts +25 -0
- package/dist/agent/swarm/executor.d.ts.map +1 -1
- package/dist/agent/swarm/executor.js +795 -20
- package/dist/agent/swarm/executor.js.map +1 -1
- package/dist/agent/swarm/runtime-events.d.ts +11 -0
- package/dist/agent/swarm/runtime-events.d.ts.map +1 -0
- package/dist/agent/swarm/runtime-events.js +26 -0
- package/dist/agent/swarm/runtime-events.js.map +1 -0
- package/dist/agent/swarm/types.d.ts +78 -0
- package/dist/agent/swarm/types.d.ts.map +1 -1
- package/dist/agent/swarm/types.js.map +1 -1
- package/dist/agent/tracing.d.ts +1 -1
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +17 -9
- package/dist/agent/tracing.js.map +1 -1
- package/dist/agent/transport/create-provider-stream.d.ts.map +1 -1
- package/dist/agent/transport/create-provider-stream.js +14 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/stable-stringify.d.ts +2 -0
- package/dist/agent/transport/stable-stringify.d.ts.map +1 -0
- package/dist/agent/transport/stable-stringify.js +14 -0
- package/dist/agent/transport/stable-stringify.js.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.js +2 -15
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +5 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +184 -36
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport.d.ts +8 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +1613 -68
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +170 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/enterprise-routes.d.ts.map +1 -1
- package/dist/api/enterprise-routes.js +34 -3
- package/dist/api/enterprise-routes.js.map +1 -1
- package/dist/app-server/in-process-client.d.ts +32 -0
- package/dist/app-server/in-process-client.d.ts.map +1 -0
- package/dist/app-server/in-process-client.js +73 -0
- package/dist/app-server/in-process-client.js.map +1 -0
- package/dist/app-server/session-api.d.ts +36 -0
- package/dist/app-server/session-api.d.ts.map +1 -0
- package/dist/app-server/session-api.js +713 -0
- package/dist/app-server/session-api.js.map +1 -0
- package/dist/approvals/platform-action-approval.d.ts +3 -1
- package/dist/approvals/platform-action-approval.d.ts.map +1 -1
- package/dist/approvals/platform-action-approval.js +16 -9
- package/dist/approvals/platform-action-approval.js.map +1 -1
- package/dist/approvals/service-client.d.ts.map +1 -1
- package/dist/approvals/service-client.js +7 -7
- package/dist/approvals/service-client.js.map +1 -1
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/agent-creation-setup.d.ts +4 -0
- package/dist/bootstrap/agent-creation-setup.d.ts.map +1 -1
- package/dist/bootstrap/agent-creation-setup.js +3 -1
- package/dist/bootstrap/agent-creation-setup.js.map +1 -1
- package/dist/bootstrap/auth-setup.js +1 -1
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.d.ts +6 -0
- package/dist/bootstrap/event-subscriptions-setup.d.ts.map +1 -1
- package/dist/bootstrap/event-subscriptions-setup.js +26 -2
- package/dist/bootstrap/event-subscriptions-setup.js.map +1 -1
- package/dist/bootstrap/model-resolution-setup.d.ts.map +1 -1
- package/dist/bootstrap/model-resolution-setup.js +4 -1
- package/dist/bootstrap/model-resolution-setup.js.map +1 -1
- package/dist/bootstrap/tools-setup.d.ts +2 -1
- package/dist/bootstrap/tools-setup.d.ts.map +1 -1
- package/dist/bootstrap/tools-setup.js +5 -1
- package/dist/bootstrap/tools-setup.js.map +1 -1
- package/dist/cli/args.d.ts +9 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +130 -5
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/a2a.d.ts +9 -0
- package/dist/cli/commands/a2a.d.ts.map +1 -0
- package/dist/cli/commands/a2a.js +1714 -0
- package/dist/cli/commands/a2a.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +16 -2
- package/dist/cli/commands/agents.d.ts.map +1 -1
- package/dist/cli/commands/agents.js +223 -35
- package/dist/cli/commands/agents.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +1 -1
- package/dist/cli/commands/codex.d.ts.map +1 -1
- package/dist/cli/commands/codex.js +145 -39
- package/dist/cli/commands/codex.js.map +1 -1
- package/dist/cli/commands/context.d.ts +10 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +176 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +1 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -1
- package/dist/cli/commands/hosted-runner.js +9 -1
- package/dist/cli/commands/hosted-runner.js.map +1 -1
- package/dist/cli/commands/modes.d.ts +8 -0
- package/dist/cli/commands/modes.d.ts.map +1 -0
- package/dist/cli/commands/modes.js +151 -0
- package/dist/cli/commands/modes.js.map +1 -0
- package/dist/cli/commands/operating-plane.d.ts +14 -0
- package/dist/cli/commands/operating-plane.d.ts.map +1 -0
- package/dist/cli/commands/operating-plane.js +160 -0
- package/dist/cli/commands/operating-plane.js.map +1 -0
- package/dist/cli/commands/run.d.ts +87 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +356 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/scenario.d.ts +7 -0
- package/dist/cli/commands/scenario.d.ts.map +1 -0
- package/dist/cli/commands/scenario.js +195 -0
- package/dist/cli/commands/scenario.js.map +1 -0
- package/dist/cli/commands/skill.d.ts +7 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +286 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +55 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +446 -7
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless-runtime-selection.d.ts +38 -0
- package/dist/cli/headless-runtime-selection.d.ts.map +1 -0
- package/dist/cli/headless-runtime-selection.js +48 -0
- package/dist/cli/headless-runtime-selection.js.map +1 -0
- package/dist/cli/headless.d.ts +5 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +11 -1
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts +3 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +135 -30
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/system-prompt.d.ts +22 -4
- package/dist/cli/system-prompt.d.ts.map +1 -1
- package/dist/cli/system-prompt.js +224 -127
- package/dist/cli/system-prompt.js.map +1 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +7 -0
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/a2a-handlers.js +160 -0
- package/dist/cli-tui/commands/a2a-handlers.js.map +1 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -1
- package/dist/cli-tui/commands/command-catalog.js +15 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +10 -1
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +1 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +22 -10
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/mcp-handlers.js +6 -5
- package/dist/cli-tui/commands/mcp-handlers.js.map +1 -1
- package/dist/cli-tui/commands/types.d.ts +1 -0
- package/dist/cli-tui/commands/types.d.ts.map +1 -1
- package/dist/cli-tui/commands/types.js.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +4 -0
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/utility-handlers.js +45 -6
- package/dist/cli-tui/commands/utility-handlers.js.map +1 -1
- package/dist/cli-tui/run/run-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/run-shell-command.js +14 -5
- package/dist/cli-tui/run/run-shell-command.js.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.js +14 -5
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +1 -0
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +6 -2
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +5 -0
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +1 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +8 -3
- package/dist/cli-tui/utils/commands/review-prompt.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +1 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +7 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +1 -0
- package/dist/cli-tui/utils/text-formatting.d.ts.map +1 -1
- package/dist/cli-tui/utils/text-formatting.js +5 -0
- package/dist/cli-tui/utils/text-formatting.js.map +1 -1
- package/dist/cli.js +49158 -26161
- package/dist/cli.js.map +1 -1
- package/dist/codex/app-server-client.d.ts +139 -0
- package/dist/codex/app-server-client.d.ts.map +1 -0
- package/dist/codex/app-server-client.js +352 -0
- package/dist/codex/app-server-client.js.map +1 -0
- package/dist/codex/compatibility.d.ts +48 -0
- package/dist/codex/compatibility.d.ts.map +1 -0
- package/dist/codex/compatibility.js +344 -0
- package/dist/codex/compatibility.js.map +1 -0
- package/dist/codex/subagent-dispatch-table.d.ts +66 -0
- package/dist/codex/subagent-dispatch-table.d.ts.map +1 -0
- package/dist/codex/subagent-dispatch-table.js +127 -0
- package/dist/codex/subagent-dispatch-table.js.map +1 -0
- package/dist/codex/subagent-workgraph.d.ts +56 -0
- package/dist/codex/subagent-workgraph.d.ts.map +1 -0
- package/dist/codex/subagent-workgraph.js +89 -0
- package/dist/codex/subagent-workgraph.js.map +1 -0
- package/dist/config/constants.d.ts +3 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +9 -0
- package/dist/config/constants.js.map +1 -1
- package/dist/config/feature-flags.d.ts +10 -1
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +17 -6
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/dist/config/toml-config.d.ts +32 -0
- package/dist/config/toml-config.d.ts.map +1 -1
- package/dist/config/toml-config.js +152 -43
- package/dist/config/toml-config.js.map +1 -1
- package/dist/connectors/service-client.d.ts.map +1 -1
- package/dist/connectors/service-client.js +4 -7
- package/dist/connectors/service-client.js.map +1 -1
- package/dist/context/manifest-types.d.ts +59 -0
- package/dist/context/manifest-types.d.ts.map +1 -0
- package/dist/context/manifest-types.js +2 -0
- package/dist/context/manifest-types.js.map +1 -0
- package/dist/context/manifest.d.ts +16 -0
- package/dist/context/manifest.d.ts.map +1 -0
- package/dist/context/manifest.js +503 -0
- package/dist/context/manifest.js.map +1 -0
- package/dist/db/schema.d.ts +10 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/env-aliases.d.ts +13 -0
- package/dist/evalops/env-aliases.d.ts.map +1 -0
- package/dist/evalops/env-aliases.js +60 -0
- package/dist/evalops/env-aliases.js.map +1 -0
- package/dist/evalops/managed-context.d.ts.map +1 -1
- package/dist/evalops/managed-context.js +28 -62
- package/dist/evalops/managed-context.js.map +1 -1
- package/dist/guardian/config.d.ts.map +1 -1
- package/dist/guardian/config.js +1 -0
- package/dist/guardian/config.js.map +1 -1
- package/dist/guardian/runner.d.ts +2 -0
- package/dist/guardian/runner.d.ts.map +1 -1
- package/dist/guardian/runner.js +105 -2
- package/dist/guardian/runner.js.map +1 -1
- package/dist/guardian/types.d.ts +1 -0
- package/dist/guardian/types.d.ts.map +1 -1
- package/dist/guardian/types.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +267 -55
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +89 -7
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/manager.d.ts +5 -1
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +159 -4
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts.map +1 -1
- package/dist/mcp/platform-plugin.js +9 -26
- package/dist/mcp/platform-plugin.js.map +1 -1
- package/dist/mcp/schema.d.ts +15 -0
- package/dist/mcp/schema.d.ts.map +1 -1
- package/dist/mcp/schema.js +24 -0
- package/dist/mcp/schema.js.map +1 -1
- package/dist/mcp/tool-bridge.d.ts +39 -10
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +101 -24
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/mcp/types.d.ts +27 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/mcp/types.js.map +1 -1
- package/dist/mcp/workspace-trust.d.ts +10 -0
- package/dist/mcp/workspace-trust.d.ts.map +1 -0
- package/dist/mcp/workspace-trust.js +295 -0
- package/dist/mcp/workspace-trust.js.map +1 -0
- package/dist/memory/service-client.d.ts +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +194 -9
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +66 -25
- package/dist/models/builtin.js.map +1 -1
- package/dist/models/config-loader.d.ts +10 -10
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +2 -0
- package/dist/models/config-loader.js.map +1 -1
- package/dist/models/registry.d.ts +1 -0
- package/dist/models/registry.d.ts.map +1 -1
- package/dist/models/registry.js +1 -0
- package/dist/models/registry.js.map +1 -1
- package/dist/oauth/device-identity.d.ts.map +1 -1
- package/dist/oauth/device-identity.js +1 -3
- package/dist/oauth/device-identity.js.map +1 -1
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +2 -5
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +12 -12
- package/dist/opentelemetry.js.map +1 -1
- package/dist/package-version.d.ts +2 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +11 -0
- package/dist/package-version.js.map +1 -0
- package/dist/packages/constants.d.ts +3 -0
- package/dist/packages/constants.d.ts.map +1 -0
- package/dist/packages/constants.js +3 -0
- package/dist/packages/constants.js.map +1 -0
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +2 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/search.d.ts.map +1 -1
- package/dist/packages/search.js +1 -1
- package/dist/packages/search.js.map +1 -1
- package/dist/platform/a2a-capability-market.d.ts +21 -0
- package/dist/platform/a2a-capability-market.d.ts.map +1 -0
- package/dist/platform/a2a-capability-market.js +176 -0
- package/dist/platform/a2a-capability-market.js.map +1 -0
- package/dist/platform/a2a-client.d.ts +119 -0
- package/dist/platform/a2a-client.d.ts.map +1 -1
- package/dist/platform/a2a-client.js +413 -24
- package/dist/platform/a2a-client.js.map +1 -1
- package/dist/platform/a2a-fleet.d.ts +41 -0
- package/dist/platform/a2a-fleet.d.ts.map +1 -0
- package/dist/platform/a2a-fleet.js +109 -0
- package/dist/platform/a2a-fleet.js.map +1 -0
- package/dist/platform/a2a-maestro-peer.d.ts +20 -0
- package/dist/platform/a2a-maestro-peer.d.ts.map +1 -0
- package/dist/platform/a2a-maestro-peer.js +176 -0
- package/dist/platform/a2a-maestro-peer.js.map +1 -0
- package/dist/platform/a2a-peer-pairing.d.ts +107 -0
- package/dist/platform/a2a-peer-pairing.d.ts.map +1 -0
- package/dist/platform/a2a-peer-pairing.js +489 -0
- package/dist/platform/a2a-peer-pairing.js.map +1 -0
- package/dist/platform/a2a-peer-registry.d.ts +68 -0
- package/dist/platform/a2a-peer-registry.d.ts.map +1 -0
- package/dist/platform/a2a-peer-registry.js +320 -0
- package/dist/platform/a2a-peer-registry.js.map +1 -0
- package/dist/platform/a2a-task-ledger.d.ts +86 -0
- package/dist/platform/a2a-task-ledger.d.ts.map +1 -0
- package/dist/platform/a2a-task-ledger.js +546 -0
- package/dist/platform/a2a-task-ledger.js.map +1 -0
- package/dist/platform/a2a-work-graph.d.ts +43 -0
- package/dist/platform/a2a-work-graph.d.ts.map +1 -0
- package/dist/platform/a2a-work-graph.js +267 -0
- package/dist/platform/a2a-work-graph.js.map +1 -0
- package/dist/platform/agent-registry-client.d.ts +327 -0
- package/dist/platform/agent-registry-client.d.ts.map +1 -0
- package/dist/platform/agent-registry-client.js +803 -0
- package/dist/platform/agent-registry-client.js.map +1 -0
- package/dist/platform/agent-runtime-client.d.ts +135 -1
- package/dist/platform/agent-runtime-client.d.ts.map +1 -1
- package/dist/platform/agent-runtime-client.js +467 -10
- package/dist/platform/agent-runtime-client.js.map +1 -1
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -1
- package/dist/platform/cerebro-facts-client.js +4 -7
- package/dist/platform/cerebro-facts-client.js.map +1 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +3 -12
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +68 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +68 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/fermata-eval-client.d.ts +195 -0
- package/dist/platform/fermata-eval-client.d.ts.map +1 -0
- package/dist/platform/fermata-eval-client.js +146 -0
- package/dist/platform/fermata-eval-client.js.map +1 -0
- package/dist/platform/fermata-scenario-suite.d.ts +99 -0
- package/dist/platform/fermata-scenario-suite.d.ts.map +1 -0
- package/dist/platform/fermata-scenario-suite.js +459 -0
- package/dist/platform/fermata-scenario-suite.js.map +1 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -1
- package/dist/platform/maestro-timeline-client.js +5 -11
- package/dist/platform/maestro-timeline-client.js.map +1 -1
- package/dist/platform/operating-plane-client.d.ts +156 -0
- package/dist/platform/operating-plane-client.d.ts.map +1 -0
- package/dist/platform/operating-plane-client.js +131 -0
- package/dist/platform/operating-plane-client.js.map +1 -0
- package/dist/platform/operating-plane-summary.d.ts +47 -0
- package/dist/platform/operating-plane-summary.d.ts.map +1 -0
- package/dist/platform/operating-plane-summary.js +209 -0
- package/dist/platform/operating-plane-summary.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -1
- package/dist/platform/tool-execution-client.js +4 -11
- package/dist/platform/tool-execution-client.js.map +1 -1
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +3 -5
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/prompts/system-prompt.d.ts +3 -0
- package/dist/prompts/system-prompt.d.ts.map +1 -1
- package/dist/prompts/system-prompt.js +13 -3
- package/dist/prompts/system-prompt.js.map +1 -1
- package/dist/prompts/types.d.ts +2 -0
- package/dist/prompts/types.d.ts.map +1 -1
- package/dist/prompts/types.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -1
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +2 -1
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +48 -25
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts.map +1 -1
- package/dist/remote-runner/attach-client.js +1 -0
- package/dist/remote-runner/attach-client.js.map +1 -1
- package/dist/remote-runner/client.d.ts.map +1 -1
- package/dist/remote-runner/client.js +4 -7
- package/dist/remote-runner/client.js.map +1 -1
- package/dist/rpc/rpc-types.d.ts.map +1 -1
- package/dist/rpc/rpc-types.js +1 -0
- package/dist/rpc/rpc-types.js.map +1 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +69 -6
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/attack-patterns.d.ts.map +1 -1
- package/dist/safety/attack-patterns.js +31 -14
- package/dist/safety/attack-patterns.js.map +1 -1
- package/dist/safety/bash-parser.d.ts.map +1 -1
- package/dist/safety/bash-parser.js +4 -3
- package/dist/safety/bash-parser.js.map +1 -1
- package/dist/safety/execpolicy.d.ts +15 -3
- package/dist/safety/execpolicy.d.ts.map +1 -1
- package/dist/safety/execpolicy.js +248 -37
- package/dist/safety/execpolicy.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts.map +1 -1
- package/dist/safety/governance-service-client.js +4 -7
- package/dist/safety/governance-service-client.js.map +1 -1
- package/dist/safety/guarded-files.d.ts +34 -0
- package/dist/safety/guarded-files.d.ts.map +1 -0
- package/dist/safety/guarded-files.js +372 -0
- package/dist/safety/guarded-files.js.map +1 -0
- package/dist/safety/loop-detector.d.ts.map +1 -1
- package/dist/safety/loop-detector.js +6 -1
- package/dist/safety/loop-detector.js.map +1 -1
- package/dist/safety/permission-profile.d.ts +47 -0
- package/dist/safety/permission-profile.d.ts.map +1 -0
- package/dist/safety/permission-profile.js +349 -0
- package/dist/safety/permission-profile.js.map +1 -0
- package/dist/safety/safety-middleware.d.ts +5 -1
- package/dist/safety/safety-middleware.d.ts.map +1 -1
- package/dist/safety/safety-middleware.js +3 -2
- package/dist/safety/safety-middleware.js.map +1 -1
- package/dist/safety/suspicious-patterns.d.ts.map +1 -1
- package/dist/safety/suspicious-patterns.js +12 -7
- package/dist/safety/suspicious-patterns.js.map +1 -1
- package/dist/safety/tool-categorization.js +1 -1
- package/dist/safety/tool-categorization.js.map +1 -1
- package/dist/safety/validators/path-policy-validator.d.ts.map +1 -1
- package/dist/safety/validators/path-policy-validator.js +7 -0
- package/dist/safety/validators/path-policy-validator.js.map +1 -1
- package/dist/sandbox/index.d.ts +6 -1
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +30 -4
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/native-sandbox.d.ts +3 -0
- package/dist/sandbox/native-sandbox.d.ts.map +1 -1
- package/dist/sandbox/native-sandbox.js +139 -18
- package/dist/sandbox/native-sandbox.js.map +1 -1
- package/dist/sentry.d.ts +17 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +91 -0
- package/dist/sentry.js.map +1 -0
- package/dist/server/agent-runtime-ledger.d.ts +141 -0
- package/dist/server/agent-runtime-ledger.d.ts.map +1 -0
- package/dist/server/agent-runtime-ledger.js +334 -0
- package/dist/server/agent-runtime-ledger.js.map +1 -0
- package/dist/server/agent-trajectory-inspection.d.ts +104 -0
- package/dist/server/agent-trajectory-inspection.d.ts.map +1 -0
- package/dist/server/agent-trajectory-inspection.js +168 -0
- package/dist/server/agent-trajectory-inspection.js.map +1 -0
- package/dist/server/agent-trajectory-replay.d.ts +56 -0
- package/dist/server/agent-trajectory-replay.d.ts.map +1 -0
- package/dist/server/agent-trajectory-replay.js +214 -0
- package/dist/server/agent-trajectory-replay.js.map +1 -0
- package/dist/server/agent-trajectory-scenarios.d.ts +109 -0
- package/dist/server/agent-trajectory-scenarios.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scenarios.js +822 -0
- package/dist/server/agent-trajectory-scenarios.js.map +1 -0
- package/dist/server/agent-trajectory-scorers.d.ts +61 -0
- package/dist/server/agent-trajectory-scorers.d.ts.map +1 -0
- package/dist/server/agent-trajectory-scorers.js +162 -0
- package/dist/server/agent-trajectory-scorers.js.map +1 -0
- package/dist/server/agent-trajectory-validation.d.ts +7 -0
- package/dist/server/agent-trajectory-validation.d.ts.map +1 -0
- package/dist/server/agent-trajectory-validation.js +101 -0
- package/dist/server/agent-trajectory-validation.js.map +1 -0
- package/dist/server/agent-trajectory.d.ts +50 -0
- package/dist/server/agent-trajectory.d.ts.map +1 -0
- package/dist/server/agent-trajectory.js +159 -0
- package/dist/server/agent-trajectory.js.map +1 -0
- package/dist/server/app-context.d.ts +18 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +64 -27
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +6 -0
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +6 -0
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +69 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.js +309 -18
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.d.ts +16 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-identity.js +43 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -1
- package/dist/server/handlers/mode.d.ts.map +1 -1
- package/dist/server/handlers/mode.js +3 -1
- package/dist/server/handlers/mode.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts.map +1 -1
- package/dist/server/handlers/pending-requests.js +336 -51
- package/dist/server/handlers/pending-requests.js.map +1 -1
- package/dist/server/handlers/platform-a2a-push.d.ts +6 -0
- package/dist/server/handlers/platform-a2a-push.d.ts.map +1 -0
- package/dist/server/handlers/platform-a2a-push.js +136 -0
- package/dist/server/handlers/platform-a2a-push.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +21 -1
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +9 -2
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +39 -0
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-agent-runtime-progress.d.ts +144 -0
- package/dist/server/hosted-agent-runtime-progress.d.ts.map +1 -0
- package/dist/server/hosted-agent-runtime-progress.js +1650 -0
- package/dist/server/hosted-agent-runtime-progress.js.map +1 -0
- package/dist/server/hosted-runner-lease.d.ts +41 -0
- package/dist/server/hosted-runner-lease.d.ts.map +1 -0
- package/dist/server/hosted-runner-lease.js +140 -0
- package/dist/server/hosted-runner-lease.js.map +1 -0
- package/dist/server/hosted-session-manager.d.ts +16 -8
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +98 -76
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/junit-xml.d.ts +2 -0
- package/dist/server/junit-xml.d.ts.map +1 -0
- package/dist/server/junit-xml.js +9 -0
- package/dist/server/junit-xml.js.map +1 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +6 -0
- package/dist/server/routes.js.map +1 -1
- package/dist/server/scenario-recorder.d.ts +56 -0
- package/dist/server/scenario-recorder.d.ts.map +1 -0
- package/dist/server/scenario-recorder.js +109 -0
- package/dist/server/scenario-recorder.js.map +1 -0
- package/dist/server/scripted-scenario-runner.d.ts +46 -0
- package/dist/server/scripted-scenario-runner.d.ts.map +1 -0
- package/dist/server/scripted-scenario-runner.js +190 -0
- package/dist/server/scripted-scenario-runner.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +6 -2
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +8 -2
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +9 -1
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +49 -4
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +2 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +4 -0
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/service-authority.d.ts +25 -0
- package/dist/services/service-authority.d.ts.map +1 -0
- package/dist/services/service-authority.js +143 -0
- package/dist/services/service-authority.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +2 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -1
- package/dist/services/workspace-config/service.js +4 -0
- package/dist/services/workspace-config/service.js.map +1 -1
- package/dist/session/manager.d.ts +8 -2
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +19 -4
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-branch.d.ts.map +1 -1
- package/dist/session/session-branch.js +5 -1
- package/dist/session/session-branch.js.map +1 -1
- package/dist/session/session-catalog.d.ts +7 -2
- package/dist/session/session-catalog.d.ts.map +1 -1
- package/dist/session/session-catalog.js +13 -2
- package/dist/session/session-catalog.js.map +1 -1
- package/dist/session/session-context.d.ts +6 -2
- package/dist/session/session-context.d.ts.map +1 -1
- package/dist/session/session-context.js +44 -4
- package/dist/session/session-context.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +32 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -0
- package/dist/session/session-graph-projection.js +133 -0
- package/dist/session/session-graph-projection.js.map +1 -0
- package/dist/session/types.d.ts +18 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +8 -0
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.generated.d.ts +3 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -1
- package/dist/session/wire-format.generated.js +20 -0
- package/dist/session/wire-format.generated.js.map +1 -1
- package/dist/skills/eval-harness.d.ts +38 -0
- package/dist/skills/eval-harness.d.ts.map +1 -0
- package/dist/skills/eval-harness.js +112 -0
- package/dist/skills/eval-harness.js.map +1 -0
- package/dist/skills/index.d.ts +5 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +5 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/linter.d.ts +36 -0
- package/dist/skills/linter.d.ts.map +1 -0
- package/dist/skills/linter.js +398 -0
- package/dist/skills/linter.js.map +1 -0
- package/dist/skills/loader.d.ts +36 -6
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +169 -86
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/package-contract.d.ts +45 -0
- package/dist/skills/package-contract.d.ts.map +1 -0
- package/dist/skills/package-contract.js +153 -0
- package/dist/skills/package-contract.js.map +1 -0
- package/dist/skills/runtime-activation.d.ts +68 -0
- package/dist/skills/runtime-activation.d.ts.map +1 -0
- package/dist/skills/runtime-activation.js +228 -0
- package/dist/skills/runtime-activation.js.map +1 -0
- package/dist/skills/service-client.d.ts.map +1 -1
- package/dist/skills/service-client.js +3 -4
- package/dist/skills/service-client.js.map +1 -1
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +2 -0
- package/dist/skills/tool.js.map +1 -1
- package/dist/skills/types.d.ts +14 -0
- package/dist/skills/types.d.ts.map +1 -1
- package/dist/skills/types.js.map +1 -1
- package/dist/telemetry/agent-operating-plane-context.d.ts +24 -0
- package/dist/telemetry/agent-operating-plane-context.d.ts.map +1 -0
- package/dist/telemetry/agent-operating-plane-context.js +54 -0
- package/dist/telemetry/agent-operating-plane-context.js.map +1 -0
- package/dist/telemetry/beacon.d.ts +24 -0
- package/dist/telemetry/beacon.d.ts.map +1 -0
- package/dist/telemetry/beacon.js +115 -0
- package/dist/telemetry/beacon.js.map +1 -0
- package/dist/telemetry/cli-command-aggregator.d.ts +36 -0
- package/dist/telemetry/cli-command-aggregator.d.ts.map +1 -0
- package/dist/telemetry/cli-command-aggregator.js +251 -0
- package/dist/telemetry/cli-command-aggregator.js.map +1 -0
- package/dist/telemetry/cli-startup.d.ts +21 -0
- package/dist/telemetry/cli-startup.d.ts.map +1 -0
- package/dist/telemetry/cli-startup.js +83 -0
- package/dist/telemetry/cli-startup.js.map +1 -0
- package/dist/telemetry/disablement.d.ts +13 -0
- package/dist/telemetry/disablement.d.ts.map +1 -0
- package/dist/telemetry/disablement.js +19 -0
- package/dist/telemetry/disablement.js.map +1 -0
- package/dist/telemetry/index.d.ts +6 -2
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +6 -2
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +52 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js +179 -3
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-event-catalog.d.ts +3 -1
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-catalog.js +2 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.js +74 -9
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +46 -11
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/mcp-beacon.d.ts +20 -0
- package/dist/telemetry/mcp-beacon.d.ts.map +1 -0
- package/dist/telemetry/mcp-beacon.js +54 -0
- package/dist/telemetry/mcp-beacon.js.map +1 -0
- package/dist/telemetry/metadata-normalization.d.ts +7 -0
- package/dist/telemetry/metadata-normalization.d.ts.map +1 -0
- package/dist/telemetry/metadata-normalization.js +189 -0
- package/dist/telemetry/metadata-normalization.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +5 -10
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/metrics.d.ts +123 -0
- package/dist/telemetry/metrics.d.ts.map +1 -0
- package/dist/telemetry/metrics.js +184 -0
- package/dist/telemetry/metrics.js.map +1 -0
- package/dist/telemetry/turn-tracker.d.ts +1 -0
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +22 -1
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +31 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +229 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +39 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +160 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/testing/test-verification-hook.d.ts.map +1 -1
- package/dist/testing/test-verification-hook.js +34 -21
- package/dist/testing/test-verification-hook.js.map +1 -1
- package/dist/tools/apply-patch-parser.d.ts +26 -0
- package/dist/tools/apply-patch-parser.d.ts.map +1 -0
- package/dist/tools/apply-patch-parser.js +146 -0
- package/dist/tools/apply-patch-parser.js.map +1 -0
- package/dist/tools/apply-patch.d.ts +42 -0
- package/dist/tools/apply-patch.d.ts.map +1 -0
- package/dist/tools/apply-patch.js +648 -0
- package/dist/tools/apply-patch.js.map +1 -0
- package/dist/tools/ask-user.d.ts +1 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/background/tool-handler.d.ts +1 -0
- package/dist/tools/background/tool-handler.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -0
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/codesearch.d.ts +1 -0
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/conductor-client.d.ts +1 -0
- package/dist/tools/conductor-client.d.ts.map +1 -1
- package/dist/tools/conductor-client.js +63 -0
- package/dist/tools/conductor-client.js.map +1 -1
- package/dist/tools/diff.d.ts +1 -0
- package/dist/tools/diff.d.ts.map +1 -1
- package/dist/tools/edit.d.ts +1 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/extract-document.d.ts +1 -0
- package/dist/tools/extract-document.d.ts.map +1 -1
- package/dist/tools/find.d.ts +10 -0
- package/dist/tools/find.d.ts.map +1 -1
- package/dist/tools/find.js +236 -27
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/gh.d.ts +3 -0
- package/dist/tools/gh.d.ts.map +1 -1
- package/dist/tools/index.d.ts +50 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list.d.ts +1 -0
- package/dist/tools/list.d.ts.map +1 -1
- package/dist/tools/notebook.d.ts +1 -0
- package/dist/tools/notebook.d.ts.map +1 -1
- package/dist/tools/oracle.d.ts +1 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +17 -32
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/parallel-execution.d.ts +13 -2
- package/dist/tools/parallel-execution.d.ts.map +1 -1
- package/dist/tools/parallel-execution.js +178 -7
- package/dist/tools/parallel-execution.js.map +1 -1
- package/dist/tools/parallel-ripgrep.d.ts +1 -0
- package/dist/tools/parallel-ripgrep.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts +4 -0
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/read.d.ts +1 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/search.d.ts +1 -0
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/status.d.ts +1 -0
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/todo.d.ts +1 -0
- package/dist/tools/todo.d.ts.map +1 -1
- package/dist/tools/tool-dsl.d.ts +5 -1
- package/dist/tools/tool-dsl.d.ts.map +1 -1
- package/dist/tools/tool-dsl.js +1 -0
- package/dist/tools/tool-dsl.js.map +1 -1
- package/dist/tools/tool-result-cache.d.ts.map +1 -1
- package/dist/tools/tool-result-cache.js +1 -0
- package/dist/tools/tool-result-cache.js.map +1 -1
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +3 -0
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/tools/webfetch.d.ts +1 -0
- package/dist/tools/webfetch.d.ts.map +1 -1
- package/dist/tools/websearch.d.ts +1 -0
- package/dist/tools/websearch.d.ts.map +1 -1
- package/dist/tools/write.d.ts +1 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/utils/abort-error.d.ts +2 -0
- package/dist/utils/abort-error.d.ts.map +1 -0
- package/dist/utils/abort-error.js +7 -0
- package/dist/utils/abort-error.js.map +1 -0
- package/dist/utils/downstream.d.ts.map +1 -1
- package/dist/utils/downstream.js +4 -0
- package/dist/utils/downstream.js.map +1 -1
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +14 -3
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path-containment.d.ts +2 -0
- package/dist/utils/path-containment.d.ts.map +1 -0
- package/dist/utils/path-containment.js +14 -0
- package/dist/utils/path-containment.js.map +1 -0
- package/dist/utils/prompt-safe-text.d.ts +7 -0
- package/dist/utils/prompt-safe-text.d.ts.map +1 -0
- package/dist/utils/prompt-safe-text.js +44 -0
- package/dist/utils/prompt-safe-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +32 -7
- package/dist/web-server.js.map +1 -1
- package/dist/workspace/root-resolver.d.ts +4 -1
- package/dist/workspace/root-resolver.d.ts.map +1 -1
- package/dist/workspace/root-resolver.js +16 -6
- package/dist/workspace/root-resolver.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/advisor-effort.d.ts +8 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js +35 -0
- package/node_modules/@evalops/contracts/dist/advisor-effort.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts +10 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js +48 -0
- package/node_modules/@evalops/contracts/dist/delegation-prompt.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts +20 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js +147 -0
- package/node_modules/@evalops/contracts/dist/guarded-files-settings.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js +1 -0
- package/node_modules/@evalops/contracts/dist/headless-protocol-generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +280 -5
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +36 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +15 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +6 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +593 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js +218 -0
- package/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +91 -0
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +92 -61
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +3 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts +28 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js +71 -0
- package/node_modules/@evalops/contracts/dist/runtime-constraints.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +7 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +2 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/scenario.d.ts +191 -0
- package/node_modules/@evalops/contracts/dist/scenario.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/scenario.js +4 -0
- package/node_modules/@evalops/contracts/dist/scenario.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +17 -3
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +16 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/package.json +41 -7
- package/skills/incident-triage/SKILL.md +40 -0
- package/skills/incident-triage/mcp.json +14 -0
- package/skills/incident-triage/reference/triage.md +20 -0
- package/skills/incident-triage/toolbox/incident-timeline +22 -0
- package/skills/incident-triage/toolbox/incident-timeline.cmd +16 -0
- package/skills/pr-review/SKILL.md +40 -0
- package/skills/pr-review/mcp.json +14 -0
- package/skills/pr-review/reference/rubric.md +20 -0
- package/skills/pr-review/toolbox/review-summary +20 -0
- package/skills/pr-review/toolbox/review-summary.cmd +14 -0
- package/skills/release-verification/SKILL.md +40 -0
- package/skills/release-verification/mcp.json +15 -0
- package/skills/release-verification/reference/checklist.md +21 -0
- package/skills/release-verification/toolbox/release-readiness +18 -0
- package/skills/release-verification/toolbox/release-readiness.cmd +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fermata-eval-client.js","sourceRoot":"","sources":["../../src/platform/fermata-eval-client.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n\tEVALOPS_ACCESS_TOKEN_ENV_VARS,\n\tEVALOPS_ORGANIZATION_ID_ENV_VARS,\n\tEVALOPS_WORKSPACE_ID_ENV_VARS,\n} from \"../evalops/env-aliases.js\";\nimport {\n\ttype PlatformServiceConfig,\n\tnormalizeBaseUrl,\n\tpostPlatformConnect,\n\tresolvePlatformServiceConfig,\n\ttrimString,\n} from \"./client.js\";\nimport {\n\tPLATFORM_CONNECT_METHODS,\n\tplatformConnectMethodPath,\n\tplatformConnectServicePath,\n} from \"./core-services.js\";\n\nconst DEFAULT_TIMEOUT_MS = 5_000;\nconst DEFAULT_MAX_ATTEMPTS = 1;\n\nconst CREATE_TEST_SUITE_PATH = platformConnectMethodPath(\n\tPLATFORM_CONNECT_METHODS.fermata.createTestSuite,\n);\nconst RUN_TEST_SUITE_PATH = platformConnectMethodPath(\n\tPLATFORM_CONNECT_METHODS.fermataExecution.runTestSuite,\n);\n\nconst FERMATA_BASE_URL_SUFFIXES = [\n\tCREATE_TEST_SUITE_PATH,\n\tRUN_TEST_SUITE_PATH,\n\tplatformConnectServicePath(\n\t\tPLATFORM_CONNECT_METHODS.fermata.createTestSuite.service,\n\t),\n\tplatformConnectServicePath(\n\t\tPLATFORM_CONNECT_METHODS.fermataExecution.runTestSuite.service,\n\t),\n] as const;\n\nconst FERMATA_BASE_URL_ENV_VARS = [\n\t\"FERMATA_SERVICE_URL\",\n\t\"MAESTRO_FERMATA_SERVICE_URL\",\n\t\"MAESTRO_FERMATA_EXECUTION_SERVICE_URL\",\n\t\"MAESTRO_PLATFORM_BASE_URL\",\n\t\"MAESTRO_EVALOPS_BASE_URL\",\n\t\"EVALOPS_BASE_URL\",\n] as const;\n\nconst FERMATA_TOKEN_ENV_VARS = [\n\t\"FERMATA_SERVICE_TOKEN\",\n\t\"MAESTRO_FERMATA_SERVICE_TOKEN\",\n\t\"MAESTRO_FERMATA_EXECUTION_SERVICE_TOKEN\",\n\t...EVALOPS_ACCESS_TOKEN_ENV_VARS,\n] as const;\n\nconst FERMATA_ORGANIZATION_ENV_VARS = [\n\t\"FERMATA_SERVICE_ORGANIZATION_ID\",\n\t\"MAESTRO_FERMATA_ORGANIZATION_ID\",\n\t\"MAESTRO_FERMATA_EXECUTION_ORGANIZATION_ID\",\n\t...EVALOPS_ORGANIZATION_ID_ENV_VARS,\n] as const;\n\nconst FERMATA_WORKSPACE_ENV_VARS = [\n\t\"FERMATA_SERVICE_WORKSPACE_ID\",\n\t\"MAESTRO_FERMATA_WORKSPACE_ID\",\n\t\"MAESTRO_FERMATA_EXECUTION_WORKSPACE_ID\",\n\t...EVALOPS_WORKSPACE_ID_ENV_VARS,\n] as const;\n\nconst FERMATA_TIMEOUT_ENV_VARS = [\n\t\"FERMATA_SERVICE_TIMEOUT_MS\",\n\t\"MAESTRO_FERMATA_SERVICE_TIMEOUT_MS\",\n\t\"MAESTRO_FERMATA_EXECUTION_SERVICE_TIMEOUT_MS\",\n] as const;\n\nconst FERMATA_MAX_ATTEMPTS_ENV_VARS = [\n\t\"FERMATA_SERVICE_MAX_ATTEMPTS\",\n\t\"MAESTRO_FERMATA_SERVICE_MAX_ATTEMPTS\",\n\t\"MAESTRO_FERMATA_EXECUTION_SERVICE_MAX_ATTEMPTS\",\n] as const;\n\nexport type FermataAssertionKind =\n\t| \"ASSERTION_KIND_CONTAINS\"\n\t| \"ASSERTION_KIND_NOT_CONTAINS\"\n\t| \"ASSERTION_KIND_REGEX\"\n\t| \"ASSERTION_KIND_SIMILARITY\"\n\t| \"ASSERTION_KIND_CUSTOM_JUDGE\"\n\t| \"ASSERTION_KIND_JSON_SCHEMA\"\n\t| \"ASSERTION_KIND_EQUALS\"\n\t| \"ASSERTION_KIND_STARTS_WITH\"\n\t| \"ASSERTION_KIND_CONTAINS_ANY\"\n\t| \"ASSERTION_KIND_CONTAINS_ALL\"\n\t| \"ASSERTION_KIND_WORD_COUNT\"\n\t| \"ASSERTION_KIND_NUMERIC_GTE\"\n\t| \"ASSERTION_KIND_NUMERIC_LTE\"\n\t| \"ASSERTION_KIND_TOOL_CALLED\"\n\t| \"ASSERTION_KIND_TOOL_NOT_CALLED\"\n\t| \"ASSERTION_KIND_TOOL_SEQUENCE\"\n\t| \"ASSERTION_KIND_TRACE_SPAN_COUNT\"\n\t| \"ASSERTION_KIND_TOOL_ARGS_MATCH\"\n\t| \"ASSERTION_KIND_TRACE_ERROR_SPANS\"\n\t| \"ASSERTION_KIND_TRACE_SPAN_DURATION\"\n\t| \"ASSERTION_KIND_TRACE_STEP_COUNT\"\n\t| \"ASSERTION_KIND_TOOL_CALL_F1\"\n\t| \"ASSERTION_KIND_LLM_RUBRIC\"\n\t| \"ASSERTION_KIND_LLM_PAIRWISE_RUBRIC\"\n\t| \"ASSERTION_KIND_AGENT_TRAJECTORY\";\n\nexport interface FermataLLMRubricAssertion {\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 FermataLLMPairwiseRubricAssertion {\n\tjudgeId: string;\n\tverifierJudgeId?: string;\n\trubric: string;\n\tbaselineLabel?: string;\n\tcandidateLabel?: 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 FermataAgentTrajectoryStatusExpectation {\n\tid: string;\n\tstatus: string;\n}\n\nexport interface FermataAgentTrajectoryStateExpectation {\n\tpath: string;\n\tvalueJson?: string;\n}\n\nexport interface FermataAgentTrajectoryAssertion {\n\trequiredTools?: string[];\n\tforbiddenTools?: string[];\n\trequiredEvents?: string[];\n\tforbiddenEvents?: string[];\n\trequiredAssertionStatuses?: FermataAgentTrajectoryStatusExpectation[];\n\trequiredStateWrites?: FermataAgentTrajectoryStateExpectation[];\n\tforbiddenStateWrites?: FermataAgentTrajectoryStateExpectation[];\n\tmaxEvents?: number;\n\tmaxToolCalls?: number;\n\tmaxReplayDeltas?: number;\n\tmaxScoreFailures?: number;\n\tmaxScoreWarnings?: number;\n\tmaxLatencyMs?: number;\n\tmaxCostMicros?: number;\n\tmaxRetries?: number;\n\trequireIdempotentReplay?: boolean;\n\tforbidDuplicateExternalActions?: boolean;\n\tforbiddenExternalActions?: string[];\n\trequiredTraceJoinKeys?: string[];\n}\n\nexport interface FermataAssertion {\n\tid?: string;\n\tkind: FermataAssertionKind;\n\ttarget?: string;\n\texpected?: string;\n\tdescription?: string;\n\tmetadata?: Record<string, unknown>;\n\tllmRubric?: FermataLLMRubricAssertion;\n\tllmPairwiseRubric?: FermataLLMPairwiseRubricAssertion;\n\tagentTrajectory?: FermataAgentTrajectoryAssertion;\n}\n\nexport interface FermataTestCase {\n\tid?: string;\n\tname: string;\n\tinput: string;\n\texpectedOutput?: string;\n\tassertions: FermataAssertion[];\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface FermataTestSuite {\n\tid?: string;\n\torganizationId?: string;\n\tworkspaceId?: string;\n\tname?: string;\n\tdescription?: string;\n\tcases?: FermataTestCase[];\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface CreateFermataTestSuiteRequest {\n\torganizationId: string;\n\tworkspaceId: string;\n\tname: string;\n\tdescription?: string;\n\tcases: FermataTestCase[];\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface CreateFermataTestSuiteResponse {\n\tsuite: FermataTestSuite;\n}\n\nexport interface FermataProviderRef {\n\tprovider?: string;\n\tenvironment?: string;\n\tcredentialName?: string;\n\tteamId?: string;\n}\n\nexport interface FermataTestSuiteCandidate {\n\tcandidateId: string;\n\tlabel?: string;\n\tmodel: string;\n\tproviderRef?: FermataProviderRef;\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface RunFermataTestSuiteRequest {\n\tsuiteId: string;\n\torganizationId: string;\n\tworkspaceId: string;\n\tevaluationId?: string;\n\tmodel?: string;\n\trunContext?: Record<string, unknown>;\n\tmetadata?: Record<string, unknown>;\n\trunIdPrefix?: string;\n\ttraceId?: string;\n\tlineageId?: string;\n\tcaseIds?: string[];\n\tmaxConcurrency?: number;\n\tstopOnFirstFailure?: boolean;\n\tcandidates?: FermataTestSuiteCandidate[];\n}\n\nexport interface FermataAssertionResult {\n\tassertionId?: string;\n\tpassed?: boolean;\n\tscore?: number;\n\tactual?: string;\n\tmessage?: string;\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface FermataTestCaseRun {\n\ttestCaseId?: string;\n\ttestCaseName?: string;\n\tpassed?: boolean;\n\tscore?: number;\n\toutput?: string;\n\tassertionResults?: FermataAssertionResult[];\n\tcandidateId?: string;\n\tcandidateLabel?: string;\n\tmodel?: string;\n\tproviderRef?: FermataProviderRef;\n}\n\nexport interface FermataTestSuiteCandidateSummary {\n\tcandidateId?: string;\n\tcandidateLabel?: string;\n\tmodel?: string;\n\tproviderRef?: FermataProviderRef;\n\ttotalCases?: number;\n\tpassedCases?: number;\n\tfailedCases?: number;\n\tscore?: number;\n\tpassRate?: number;\n\tpassed?: boolean;\n}\n\nexport interface FermataTestSuiteAssertionSummary {\n\tassertionId?: string;\n\ttotalResults?: number;\n\tpassedResults?: number;\n\tfailedResults?: number;\n\tscore?: number;\n\tpassRate?: number;\n\tpassed?: boolean;\n\tfailedTestCaseIds?: string[];\n\tfailedCandidateIds?: string[];\n\tfailedModels?: string[];\n}\n\nexport interface RunFermataTestSuiteResponse {\n\tevaluationId?: string;\n\tsuite?: FermataTestSuite;\n\tcaseResults?: FermataTestCaseRun[];\n\tpassed?: boolean;\n\tscore?: number;\n\ttotalCases?: number;\n\tpassedCases?: number;\n\tfailedCases?: number;\n\tlineageId?: string;\n\tcandidateSummaries?: FermataTestSuiteCandidateSummary[];\n\tassertionSummaries?: FermataTestSuiteAssertionSummary[];\n}\n\nexport interface FermataEvalServiceConfig extends PlatformServiceConfig {}\n\nfunction stripUndefinedValues(\n\trecord: Record<string, unknown>,\n): Record<string, unknown> {\n\treturn Object.fromEntries(\n\t\tObject.entries(record).filter(([, value]) => value !== undefined),\n\t);\n}\n\nasync function parseJsonResponse(\n\tresponse: Response,\n\tserviceName: string,\n): Promise<Record<string, unknown>> {\n\tconst text = await response.text();\n\tif (!response.ok) {\n\t\tthrow new Error(\n\t\t\t`${serviceName} returned ${response.status}: ${text || response.statusText}`,\n\t\t);\n\t}\n\tif (!text.trim()) {\n\t\tthrow new Error(`${serviceName} returned empty response`);\n\t}\n\treturn JSON.parse(text) as Record<string, unknown>;\n}\n\nexport async function resolveFermataEvalServiceConfig(\n\toverrides: Partial<FermataEvalServiceConfig> = {},\n): Promise<FermataEvalServiceConfig | null> {\n\tconst config = await resolvePlatformServiceConfig({\n\t\tbaseUrlEnvVars: FERMATA_BASE_URL_ENV_VARS,\n\t\ttokenEnvVars: FERMATA_TOKEN_ENV_VARS,\n\t\torganizationEnvVars: FERMATA_ORGANIZATION_ENV_VARS,\n\t\tworkspaceEnvVars: FERMATA_WORKSPACE_ENV_VARS,\n\t\ttimeoutEnvVars: FERMATA_TIMEOUT_ENV_VARS,\n\t\tmaxAttemptsEnvVars: FERMATA_MAX_ATTEMPTS_ENV_VARS,\n\t\tbaseUrlSuffixes: FERMATA_BASE_URL_SUFFIXES,\n\t\tdefaultTimeoutMs: DEFAULT_TIMEOUT_MS,\n\t\tdefaultMaxAttempts: DEFAULT_MAX_ATTEMPTS,\n\t\trequireBaseUrl: true,\n\t\trequireOrganizationId: true,\n\t\trequireToken: true,\n\t\tallowOAuthTokenFallback: false,\n\t});\n\tif (!config?.baseUrl || !config.workspaceId) {\n\t\treturn null;\n\t}\n\treturn {\n\t\t...config,\n\t\tbaseUrl: normalizeBaseUrl(\n\t\t\ttrimString(overrides.baseUrl ?? config.baseUrl) ?? config.baseUrl,\n\t\t\tFERMATA_BASE_URL_SUFFIXES,\n\t\t),\n\t\torganizationId:\n\t\t\ttrimString(overrides.organizationId ?? config.organizationId) ??\n\t\t\tconfig.organizationId,\n\t\tworkspaceId:\n\t\t\ttrimString(overrides.workspaceId ?? config.workspaceId) ??\n\t\t\tconfig.workspaceId,\n\t\ttoken: trimString(overrides.token ?? config.token) ?? config.token,\n\t\ttimeoutMs: overrides.timeoutMs ?? config.timeoutMs,\n\t\tmaxAttempts: overrides.maxAttempts ?? config.maxAttempts,\n\t\tteamId: trimString(overrides.teamId ?? config.teamId),\n\t};\n}\n\nexport async function requireFermataEvalServiceConfig(\n\toverrides: Partial<FermataEvalServiceConfig> = {},\n): Promise<FermataEvalServiceConfig> {\n\tconst config = await resolveFermataEvalServiceConfig(overrides);\n\tif (!config) {\n\t\tthrow new Error(\n\t\t\t\"Fermata eval integration requires FERMATA_SERVICE_URL, FERMATA_SERVICE_TOKEN, organization id, and workspace id\",\n\t\t);\n\t}\n\treturn config;\n}\n\nexport async function createFermataTestSuiteWithPlatform(\n\tconfig: FermataEvalServiceConfig,\n\trequest: CreateFermataTestSuiteRequest,\n\tsignal?: AbortSignal,\n): Promise<CreateFermataTestSuiteResponse> {\n\tconst response = await postPlatformConnect(\n\t\tconfig,\n\t\tCREATE_TEST_SUITE_PATH,\n\t\tstripUndefinedValues({\n\t\t\torganizationId: request.organizationId,\n\t\t\tworkspaceId: request.workspaceId,\n\t\t\tname: request.name,\n\t\t\tdescription: request.description,\n\t\t\tcases: request.cases,\n\t\t\tmetadata: request.metadata,\n\t\t}),\n\t\t{\n\t\t\tserviceName: \"fermata test suite service\",\n\t\t\tfailureMode: \"required\",\n\t\t\ttimeoutMs: config.timeoutMs,\n\t\t\tmaxAttempts: config.maxAttempts,\n\t\t\tsignal,\n\t\t},\n\t);\n\tconst payload = await parseJsonResponse(\n\t\tresponse,\n\t\t\"fermata test suite service\",\n\t);\n\treturn payload as unknown as CreateFermataTestSuiteResponse;\n}\n\nexport async function runFermataTestSuiteWithPlatform(\n\tconfig: FermataEvalServiceConfig,\n\trequest: RunFermataTestSuiteRequest,\n\tsignal?: AbortSignal,\n): Promise<RunFermataTestSuiteResponse> {\n\tconst response = await postPlatformConnect(\n\t\tconfig,\n\t\tRUN_TEST_SUITE_PATH,\n\t\tstripUndefinedValues({\n\t\t\tsuiteId: request.suiteId,\n\t\t\torganizationId: request.organizationId,\n\t\t\tworkspaceId: request.workspaceId,\n\t\t\tevaluationId: request.evaluationId,\n\t\t\tmodel: request.model,\n\t\t\trunContext: request.runContext,\n\t\t\tmetadata: request.metadata,\n\t\t\trunIdPrefix: request.runIdPrefix,\n\t\t\ttraceId: request.traceId,\n\t\t\tlineageId: request.lineageId,\n\t\t\tcaseIds: request.caseIds,\n\t\t\tmaxConcurrency: request.maxConcurrency,\n\t\t\tstopOnFirstFailure: request.stopOnFirstFailure,\n\t\t\tcandidates: request.candidates,\n\t\t}),\n\t\t{\n\t\t\tserviceName: \"fermata test suite execution service\",\n\t\t\tfailureMode: \"required\",\n\t\t\ttimeoutMs: config.timeoutMs,\n\t\t\tmaxAttempts: config.maxAttempts,\n\t\t\tsignal,\n\t\t},\n\t);\n\tconst payload = await parseJsonResponse(\n\t\tresponse,\n\t\t\"fermata test suite execution service\",\n\t);\n\treturn payload as unknown as RunFermataTestSuiteResponse;\n}\n"]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { CreateFermataTestSuiteRequest, FermataEvalServiceConfig, RunFermataTestSuiteRequest } from "./fermata-eval-client.js";
|
|
2
|
+
type AgentTrajectoryScenarioAssertionStatus = "pass" | "fail" | "warn";
|
|
3
|
+
interface AgentTrajectoryScenarioEvidence {
|
|
4
|
+
kind: string;
|
|
5
|
+
id: string;
|
|
6
|
+
source: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
interface AgentTrajectoryScenarioAssertionResult {
|
|
10
|
+
id: string;
|
|
11
|
+
kind: string;
|
|
12
|
+
status: AgentTrajectoryScenarioAssertionStatus;
|
|
13
|
+
severity: string;
|
|
14
|
+
message: string;
|
|
15
|
+
evidence: AgentTrajectoryScenarioEvidence[];
|
|
16
|
+
}
|
|
17
|
+
interface AgentTrajectoryScenarioResult {
|
|
18
|
+
schemaVersion: string;
|
|
19
|
+
scenarioSchemaVersion: string;
|
|
20
|
+
scenario: {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
expectedOutcome: string;
|
|
24
|
+
observedOutcome: string;
|
|
25
|
+
reviewLabels: string[];
|
|
26
|
+
};
|
|
27
|
+
run: {
|
|
28
|
+
id: string;
|
|
29
|
+
sessionId: string;
|
|
30
|
+
source?: string;
|
|
31
|
+
platformBacked?: boolean;
|
|
32
|
+
scenarioId?: string;
|
|
33
|
+
replay?: boolean;
|
|
34
|
+
generatedAt?: string;
|
|
35
|
+
};
|
|
36
|
+
counts: {
|
|
37
|
+
assertions: number;
|
|
38
|
+
passed: number;
|
|
39
|
+
failed: number;
|
|
40
|
+
warnings: number;
|
|
41
|
+
events: number;
|
|
42
|
+
toolCalls: number;
|
|
43
|
+
replayDeltas: number;
|
|
44
|
+
scoreFailures: number;
|
|
45
|
+
scoreWarnings: number;
|
|
46
|
+
};
|
|
47
|
+
platform: {
|
|
48
|
+
primitive: string;
|
|
49
|
+
evidenceEventType: string;
|
|
50
|
+
traceJoinKeys: string[];
|
|
51
|
+
eventType?: string;
|
|
52
|
+
rationale?: string;
|
|
53
|
+
};
|
|
54
|
+
assertions: AgentTrajectoryScenarioAssertionResult[];
|
|
55
|
+
provenance?: Array<{
|
|
56
|
+
eventId: string;
|
|
57
|
+
eventType: string;
|
|
58
|
+
phase?: string;
|
|
59
|
+
actor?: string;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
export interface FermataScenarioSuiteLLMJudgeOptions {
|
|
63
|
+
judgeId: string;
|
|
64
|
+
verifierJudgeId?: string;
|
|
65
|
+
rubric: string;
|
|
66
|
+
minScore?: number;
|
|
67
|
+
repeat?: number;
|
|
68
|
+
quorum?: number;
|
|
69
|
+
recordJudgeValidation?: boolean;
|
|
70
|
+
requireCalibratedJudge?: boolean;
|
|
71
|
+
minJudgeValidationAccuracy?: number;
|
|
72
|
+
minJudgeValidationCount?: number;
|
|
73
|
+
rubricVersion?: string;
|
|
74
|
+
calibrationCohort?: string;
|
|
75
|
+
advisoryOnly?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface FermataScenarioSuiteLLMPairwiseJudgeOptions extends FermataScenarioSuiteLLMJudgeOptions {
|
|
78
|
+
baselineLabel?: string;
|
|
79
|
+
candidateLabel?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface FermataScenarioSuiteOptions {
|
|
82
|
+
name?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
model?: string;
|
|
85
|
+
candidateId?: string;
|
|
86
|
+
candidateLabel?: string;
|
|
87
|
+
evaluationId?: string;
|
|
88
|
+
runIdPrefix?: string;
|
|
89
|
+
lineageId?: string;
|
|
90
|
+
traceId?: string;
|
|
91
|
+
maxConcurrency?: number;
|
|
92
|
+
metadata?: Record<string, unknown>;
|
|
93
|
+
llmJudge?: FermataScenarioSuiteLLMJudgeOptions;
|
|
94
|
+
llmPairwiseJudge?: FermataScenarioSuiteLLMPairwiseJudgeOptions;
|
|
95
|
+
}
|
|
96
|
+
export declare function buildFermataCreateScenarioSuiteRequest(config: Pick<FermataEvalServiceConfig, "organizationId" | "workspaceId">, expected: AgentTrajectoryScenarioResult, actual: AgentTrajectoryScenarioResult, options?: FermataScenarioSuiteOptions): CreateFermataTestSuiteRequest;
|
|
97
|
+
export declare function buildFermataRunScenarioSuiteRequest(config: Pick<FermataEvalServiceConfig, "organizationId" | "workspaceId">, suiteId: string, expected: AgentTrajectoryScenarioResult, actual: AgentTrajectoryScenarioResult, options?: FermataScenarioSuiteOptions): RunFermataTestSuiteRequest;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=fermata-scenario-suite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fermata-scenario-suite.d.ts","sourceRoot":"","sources":["../../src/platform/fermata-scenario-suite.ts"],"names":[],"mappings":"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"}
|
|
@@ -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
|