@evalops/maestro 0.10.8 → 0.10.10
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 +3 -1
- package/dist/agent/action-approval.d.ts +6 -0
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +13 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +368 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/auto-compaction.d.ts +4 -4
- package/dist/agent/auto-compaction.d.ts.map +1 -1
- package/dist/agent/auto-compaction.js.map +1 -1
- package/dist/agent/compaction-cleanup.d.ts +2 -0
- package/dist/agent/compaction-cleanup.d.ts.map +1 -1
- package/dist/agent/compaction-cleanup.js +17 -2
- package/dist/agent/compaction-cleanup.js.map +1 -1
- package/dist/agent/compaction.d.ts +3 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +10 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-manager.d.ts +4 -0
- package/dist/agent/context-manager.d.ts.map +1 -1
- package/dist/agent/context-manager.js +8 -0
- package/dist/agent/context-manager.js.map +1 -1
- package/dist/agent/context-providers.d.ts +2 -0
- package/dist/agent/context-providers.d.ts.map +1 -1
- package/dist/agent/context-providers.js +3 -2
- package/dist/agent/context-providers.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +17 -5
- package/dist/agent/providers/google.js +174 -144
- package/dist/agent/providers/openai-codex-responses.d.ts +4 -0
- package/dist/agent/providers/openai-codex-responses.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-responses.js +637 -0
- package/dist/agent/providers/openai-codex-responses.js.map +1 -0
- package/dist/agent/providers/openai-codex-session.d.ts +18 -0
- package/dist/agent/providers/openai-codex-session.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-session.js +53 -0
- package/dist/agent/providers/openai-codex-session.js.map +1 -0
- package/dist/agent/providers/openai-responses-sdk.d.ts.map +1 -1
- package/dist/agent/providers/openai-responses-sdk.js +16 -6
- package/dist/agent/providers/openai-responses-sdk.js.map +1 -1
- package/dist/agent/providers/openai-shared.d.ts +12 -5
- package/dist/agent/providers/openai-shared.d.ts.map +1 -1
- package/dist/agent/providers/openai-shared.js +291 -2
- package/dist/agent/providers/openai-shared.js.map +1 -1
- package/dist/agent/providers/openai.d.ts +1 -1
- package/dist/agent/providers/openai.d.ts.map +1 -1
- package/dist/agent/providers/openai.js +48 -20
- package/dist/agent/providers/openai.js.map +1 -1
- package/dist/agent/providers/vertex.js +7 -0
- package/dist/agent/tracing.d.ts +16 -5
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +44 -2
- 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 +9 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.d.ts +86 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.js +665 -0
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -0
- package/dist/agent/transport/tool-execution.d.ts +3 -0
- package/dist/agent/transport/tool-execution.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution.js +16 -1
- package/dist/agent/transport/tool-execution.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +7 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +207 -40
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport/tool-update-queue.d.ts +2 -0
- package/dist/agent/transport/tool-update-queue.d.ts.map +1 -1
- package/dist/agent/transport/tool-update-queue.js.map +1 -1
- package/dist/agent/transport.d.ts +3 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +96 -16
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +50 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/approvals/platform-action-approval.d.ts +32 -0
- package/dist/approvals/platform-action-approval.d.ts.map +1 -0
- package/dist/approvals/platform-action-approval.js +210 -0
- package/dist/approvals/platform-action-approval.js.map +1 -0
- package/dist/approvals/service-client.d.ts +56 -0
- package/dist/approvals/service-client.d.ts.map +1 -0
- package/dist/approvals/service-client.js +316 -0
- package/dist/approvals/service-client.js.map +1 -0
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/auth-setup.d.ts +2 -2
- package/dist/bootstrap/auth-setup.d.ts.map +1 -1
- package/dist/bootstrap/auth-setup.js +4 -7
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +28 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +2 -0
- package/dist/cli/commands/codex.d.ts.map +1 -0
- package/dist/cli/commands/codex.js +65 -0
- package/dist/cli/commands/codex.js.map +1 -0
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/evalops.d.ts +2 -0
- package/dist/cli/commands/evalops.d.ts.map +1 -0
- package/dist/cli/commands/evalops.js +69 -0
- package/dist/cli/commands/evalops.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +23 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -0
- package/dist/cli/commands/hosted-runner.js +241 -0
- package/dist/cli/commands/hosted-runner.js.map +1 -0
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +23 -30
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/remote.d.ts +3 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +631 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +7 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +167 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +16 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +60 -4
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +1 -0
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +36 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/jsonl-writer.d.ts.map +1 -1
- package/dist/cli/jsonl-writer.js +19 -6
- package/dist/cli/jsonl-writer.js.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +17 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +1 -1
- package/dist/cli-tui/commands/access-command.js +1 -1
- package/dist/cli-tui/commands/access-command.js.map +1 -1
- package/dist/cli-tui/commands/audit-command.js +1 -1
- package/dist/cli-tui/commands/audit-command.js.map +1 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +29 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-catalog.js +645 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +12 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.js +120 -0
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +14 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.js +147 -0
- package/dist/cli-tui/commands/command-suite-catalog.js.map +1 -0
- package/dist/cli-tui/commands/{grouped-command-handlers.d.ts → command-suite-handlers.d.ts} +27 -26
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-handlers.js +110 -0
- package/dist/cli-tui/commands/command-suite-handlers.js.map +1 -0
- package/dist/cli-tui/commands/hotkeys-command.d.ts +1 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +1 -1
- package/dist/cli-tui/commands/hotkeys-command.js +2 -2
- package/dist/cli-tui/commands/hotkeys-command.js.map +1 -1
- package/dist/cli-tui/commands/limits-command.js +1 -1
- package/dist/cli-tui/commands/limits-command.js.map +1 -1
- package/dist/cli-tui/commands/pii-command.js +1 -1
- package/dist/cli-tui/commands/pii-command.js.map +1 -1
- package/dist/cli-tui/commands/registry.d.ts +1 -1
- package/dist/cli-tui/commands/registry.d.ts.map +1 -1
- package/dist/cli-tui/commands/registry.js +29 -921
- package/dist/cli-tui/commands/registry.js.map +1 -1
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.d.ts +2 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.js +22 -6
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.js +5 -7
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.d.ts +0 -2
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.d.ts +2 -2
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.js +2 -2
- package/dist/cli-tui/commands/subcommands/index.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.js +12 -12
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.js +3 -3
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.js +5 -5
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.js +6 -6
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +1 -0
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.d.ts +15 -15
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.js +13 -8
- package/dist/cli-tui/commands/subcommands/utils.js.map +1 -0
- package/dist/cli-tui/commands/types.d.ts +3 -3
- 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/editor-view.d.ts +1 -1
- package/dist/cli-tui/editor-view.d.ts.map +1 -1
- package/dist/cli-tui/editor-view.js +1 -1
- package/dist/cli-tui/editor-view.js.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +4 -0
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +76 -5
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +1 -1
- package/dist/cli-tui/run/run-controller.d.ts +2 -2
- package/dist/cli-tui/run/run-controller.d.ts.map +1 -1
- package/dist/cli-tui/run/run-controller.js +3 -2
- package/dist/cli-tui/run/run-controller.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 +11 -3
- 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 +11 -3
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +1 -0
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +8 -0
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +23 -2
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +3 -3
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +12 -2
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +32 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +1 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +108 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +1 -0
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer.d.ts +1 -3
- package/dist/cli-tui/tui-renderer.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer.js +37 -83
- package/dist/cli-tui/tui-renderer.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +8 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +58 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli.js +41771 -22892
- package/dist/cli.js.map +1 -1
- package/dist/config/env-vars.d.ts +4 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +4 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/config/feature-flags.d.ts +44 -0
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +214 -0
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/connectors/service-client.d.ts +98 -0
- package/dist/connectors/service-client.d.ts.map +1 -0
- package/dist/connectors/service-client.js +459 -0
- package/dist/connectors/service-client.js.map +1 -0
- package/dist/conversation/render-model.d.ts.map +1 -1
- package/dist/conversation/render-model.js +53 -3
- package/dist/conversation/render-model.js.map +1 -1
- package/dist/db/health.d.ts +8 -0
- package/dist/db/health.d.ts.map +1 -0
- package/dist/db/health.js +64 -0
- package/dist/db/health.js.map +1 -0
- package/dist/db/migrate.d.ts +301 -0
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +186 -0
- package/dist/db/migrate.js.map +1 -1
- package/dist/db/migrations/0000_initial.sql +308 -0
- package/dist/db/migrations/0001_shared_sessions.sql +18 -0
- package/dist/db/migrations/0002_usage_metrics.sql +28 -0
- package/dist/db/migrations/0003_execution_traces.sql +18 -0
- package/dist/db/migrations/0004_workspace_config.sql +11 -0
- package/dist/db/migrations/0005_revenue_attribution.sql +31 -0
- package/dist/db/migrations/0006_hosted_session_storage.sql +51 -0
- package/dist/db/migrations/0007_reconcile_legacy_audit_hash_cache.sql +24 -0
- package/dist/db/migrations/0008_reconcile_legacy_webhook_deliveries.sql +290 -0
- package/dist/db/migrations/meta/0000_snapshot.json +2438 -0
- package/dist/db/migrations/meta/_journal.json +69 -0
- package/dist/db/schema.d.ts +2232 -844
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +187 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/export-html.d.ts.map +1 -1
- package/dist/export-html.js +7 -4
- package/dist/export-html.js.map +1 -1
- package/dist/headless/utility-command-manager.d.ts +2 -1
- package/dist/headless/utility-command-manager.d.ts.map +1 -1
- package/dist/headless/utility-command-manager.js +12 -6
- package/dist/headless/utility-command-manager.js.map +1 -1
- package/dist/headless/utility-file-read.d.ts +1 -0
- package/dist/headless/utility-file-read.d.ts.map +1 -1
- package/dist/headless/utility-file-read.js +5 -1
- package/dist/headless/utility-file-read.js.map +1 -1
- package/dist/headless/utility-file-search.d.ts +1 -0
- package/dist/headless/utility-file-search.d.ts.map +1 -1
- package/dist/headless/utility-file-search.js +4 -1
- package/dist/headless/utility-file-search.js.map +1 -1
- package/dist/headless/utility-file-watch-manager.d.ts +2 -1
- package/dist/headless/utility-file-watch-manager.d.ts.map +1 -1
- package/dist/headless/utility-file-watch-manager.js +6 -2
- package/dist/headless/utility-file-watch-manager.js.map +1 -1
- package/dist/headless/workspace-root.d.ts +8 -0
- package/dist/headless/workspace-root.d.ts.map +1 -0
- package/dist/headless/workspace-root.js +74 -0
- package/dist/headless/workspace-root.js.map +1 -0
- package/dist/hooks/notification-hooks.d.ts +5 -0
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js +4 -0
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/lsp/diagnostic-deltas.d.ts +20 -0
- package/dist/lsp/diagnostic-deltas.d.ts.map +1 -0
- package/dist/lsp/diagnostic-deltas.js +92 -0
- package/dist/lsp/diagnostic-deltas.js.map +1 -0
- package/dist/lsp/diagnostic-repair.d.ts +48 -0
- package/dist/lsp/diagnostic-repair.d.ts.map +1 -0
- package/dist/lsp/diagnostic-repair.js +143 -0
- package/dist/lsp/diagnostic-repair.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +122 -37
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts +4 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +58 -14
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/manager.d.ts +1 -0
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +1 -0
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts +3 -0
- package/dist/mcp/platform-plugin.d.ts.map +1 -0
- package/dist/mcp/platform-plugin.js +83 -0
- package/dist/mcp/platform-plugin.js.map +1 -0
- package/dist/mcp/tool-bridge.d.ts +15 -0
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +194 -6
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/memory/platform-memory-client.d.ts +130 -0
- package/dist/memory/platform-memory-client.d.ts.map +1 -0
- package/dist/memory/platform-memory-client.js +330 -0
- package/dist/memory/platform-memory-client.js.map +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +1 -2
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +137 -0
- 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 +1 -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/connectors.d.ts +25 -0
- package/dist/oauth/connectors.d.ts.map +1 -0
- package/dist/oauth/connectors.js +253 -0
- package/dist/oauth/connectors.js.map +1 -0
- package/dist/oauth/device-identity.d.ts +18 -0
- package/dist/oauth/device-identity.d.ts.map +1 -0
- package/dist/oauth/device-identity.js +193 -0
- package/dist/oauth/device-identity.js.map +1 -0
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +73 -14
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.d.ts.map +1 -1
- package/dist/oauth/index.js +31 -1
- package/dist/oauth/index.js.map +1 -1
- package/dist/oauth/openai-codex.d.ts +16 -0
- package/dist/oauth/openai-codex.d.ts.map +1 -0
- package/dist/oauth/openai-codex.js +300 -0
- package/dist/oauth/openai-codex.js.map +1 -0
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +9 -2
- package/dist/opentelemetry.js.map +1 -1
- package/dist/platform/agent-runtime-client.d.ts +279 -0
- package/dist/platform/agent-runtime-client.d.ts.map +1 -0
- package/dist/platform/agent-runtime-client.js +515 -0
- package/dist/platform/agent-runtime-client.js.map +1 -0
- package/dist/platform/cerebro-facts-client.d.ts +56 -0
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -0
- package/dist/platform/cerebro-facts-client.js +297 -0
- package/dist/platform/cerebro-facts-client.js.map +1 -0
- package/dist/platform/client.d.ts +2 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +9 -26
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +128 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +128 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/maestro-timeline-client.d.ts +22 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -0
- package/dist/platform/maestro-timeline-client.js +373 -0
- package/dist/platform/maestro-timeline-client.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts +104 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -0
- package/dist/platform/tool-execution-client.js +284 -0
- package/dist/platform/tool-execution-client.js.map +1 -0
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +5 -2
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/providers/anthropic-auth.d.ts.map +1 -1
- package/dist/providers/anthropic-auth.js +8 -6
- package/dist/providers/anthropic-auth.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -0
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +5 -0
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts +2 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +26 -3
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts +41 -0
- package/dist/remote-runner/attach-client.d.ts.map +1 -0
- package/dist/remote-runner/attach-client.js +692 -0
- package/dist/remote-runner/attach-client.js.map +1 -0
- package/dist/remote-runner/client.d.ts +205 -0
- package/dist/remote-runner/client.d.ts.map +1 -0
- package/dist/remote-runner/client.js +633 -0
- package/dist/remote-runner/client.js.map +1 -0
- package/dist/safety/action-firewall.d.ts +6 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +62 -26
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts +36 -0
- package/dist/safety/governance-service-client.d.ts.map +1 -0
- package/dist/safety/governance-service-client.js +279 -0
- package/dist/safety/governance-service-client.js.map +1 -0
- package/dist/safety/policy.d.ts +13 -2
- package/dist/safety/policy.d.ts.map +1 -1
- package/dist/safety/policy.js +474 -52
- package/dist/safety/policy.js.map +1 -1
- package/dist/sdk-tools.d.ts +21 -0
- package/dist/sdk-tools.d.ts.map +1 -1
- package/dist/sdk-tools.js +16 -0
- package/dist/sdk-tools.js.map +1 -1
- package/dist/server/app-context.d.ts +25 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/approval-service.d.ts +7 -8
- package/dist/server/approval-service.d.ts.map +1 -1
- package/dist/server/approval-service.js +12 -24
- package/dist/server/approval-service.js.map +1 -1
- package/dist/server/authz.d.ts +23 -2
- package/dist/server/authz.d.ts.map +1 -1
- package/dist/server/authz.js +153 -17
- package/dist/server/authz.js.map +1 -1
- package/dist/server/handlers/approvals.d.ts.map +1 -1
- package/dist/server/handlers/approvals.js +3 -10
- package/dist/server/handlers/approvals.js.map +1 -1
- package/dist/server/handlers/branch.d.ts.map +1 -1
- package/dist/server/handlers/branch.js +29 -20
- package/dist/server/handlers/branch.js.map +1 -1
- package/dist/server/handlers/bridge.d.ts.map +1 -1
- package/dist/server/handlers/bridge.js +3 -2
- package/dist/server/handlers/bridge.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +23 -31
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +105 -46
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/compliance.d.ts +3 -0
- package/dist/server/handlers/compliance.d.ts.map +1 -0
- package/dist/server/handlers/compliance.js +53 -0
- package/dist/server/handlers/compliance.js.map +1 -0
- package/dist/server/handlers/context.d.ts.map +1 -1
- package/dist/server/handlers/context.js +3 -8
- package/dist/server/handlers/context.js.map +1 -1
- package/dist/server/handlers/fleet.d.ts +4 -0
- package/dist/server/handlers/fleet.d.ts.map +1 -0
- package/dist/server/handlers/fleet.js +9 -0
- package/dist/server/handlers/fleet.js.map +1 -0
- package/dist/server/handlers/headless-sessions.d.ts +4 -0
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +168 -3
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +31 -2
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +82 -8
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +128 -0
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-drain.js +373 -0
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts +17 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.js +39 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -0
- package/dist/server/handlers/intelligent-router.d.ts +3 -0
- package/dist/server/handlers/intelligent-router.d.ts.map +1 -0
- package/dist/server/handlers/intelligent-router.js +141 -0
- package/dist/server/handlers/intelligent-router.js.map +1 -0
- package/dist/server/handlers/models.d.ts.map +1 -1
- package/dist/server/handlers/models.js +14 -0
- package/dist/server/handlers/models.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts +8 -0
- package/dist/server/handlers/pending-requests.d.ts.map +1 -0
- package/dist/server/handlers/pending-requests.js +149 -0
- package/dist/server/handlers/pending-requests.js.map +1 -0
- package/dist/server/handlers/revenue-attribution.d.ts +3 -0
- package/dist/server/handlers/revenue-attribution.d.ts.map +1 -0
- package/dist/server/handlers/revenue-attribution.js +45 -0
- package/dist/server/handlers/revenue-attribution.js.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts +10 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.js +206 -0
- package/dist/server/handlers/runtime-app-server-ws.js.map +1 -0
- package/dist/server/handlers/session-artifacts.js +2 -2
- package/dist/server/handlers/session-artifacts.js.map +1 -1
- package/dist/server/handlers/session-attachments.js +3 -3
- package/dist/server/handlers/session-attachments.js.map +1 -1
- package/dist/server/handlers/session-timeline.d.ts +11 -0
- package/dist/server/handlers/session-timeline.d.ts.map +1 -0
- package/dist/server/handlers/session-timeline.js +77 -0
- package/dist/server/handlers/session-timeline.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts +11 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +68 -100
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/handlers/traces.d.ts +3 -0
- package/dist/server/handlers/traces.d.ts.map +1 -0
- package/dist/server/handlers/traces.js +60 -0
- package/dist/server/handlers/traces.js.map +1 -0
- package/dist/server/handlers/usage-analytics.d.ts +3 -0
- package/dist/server/handlers/usage-analytics.d.ts.map +1 -0
- package/dist/server/handlers/usage-analytics.js +40 -0
- package/dist/server/handlers/usage-analytics.js.map +1 -0
- package/dist/server/handlers/workspace-config.d.ts +3 -0
- package/dist/server/handlers/workspace-config.d.ts.map +1 -0
- package/dist/server/handlers/workspace-config.js +62 -0
- package/dist/server/handlers/workspace-config.js.map +1 -0
- package/dist/server/headless-in-process-host.d.ts +8 -1
- package/dist/server/headless-in-process-host.d.ts.map +1 -1
- package/dist/server/headless-in-process-host.js +6 -0
- package/dist/server/headless-in-process-host.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +99 -1
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +286 -23
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +103 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -0
- package/dist/server/hosted-session-manager.js +629 -0
- package/dist/server/hosted-session-manager.js.map +1 -0
- package/dist/server/pending-request-payload.d.ts +4 -0
- package/dist/server/pending-request-payload.d.ts.map +1 -0
- package/dist/server/pending-request-payload.js +107 -0
- package/dist/server/pending-request-payload.js.map +1 -0
- package/dist/server/request-context.d.ts +4 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/request-context.js +9 -0
- package/dist/server/request-context.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +149 -1
- package/dist/server/routes.js.map +1 -1
- package/dist/server/runtime-ws-access.d.ts +16 -0
- package/dist/server/runtime-ws-access.d.ts.map +1 -0
- package/dist/server/runtime-ws-access.js +21 -0
- package/dist/server/runtime-ws-access.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +1 -1
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +35 -27
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +8 -27
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +7 -0
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/server/server-utils.d.ts +2 -1
- package/dist/server/server-utils.d.ts.map +1 -1
- package/dist/server/server-utils.js +11 -1
- package/dist/server/server-utils.js.map +1 -1
- package/dist/server/session-event-env.d.ts +2 -0
- package/dist/server/session-event-env.d.ts.map +1 -0
- package/dist/server/session-event-env.js +8 -0
- package/dist/server/session-event-env.js.map +1 -0
- package/dist/server/session-initialization.d.ts +25 -4
- package/dist/server/session-initialization.d.ts.map +1 -1
- package/dist/server/session-initialization.js +22 -5
- package/dist/server/session-initialization.js.map +1 -1
- package/dist/server/session-scope.d.ts +4 -0
- package/dist/server/session-scope.d.ts.map +1 -1
- package/dist/server/session-scope.js +44 -4
- package/dist/server/session-scope.js.map +1 -1
- package/dist/server/session-timeline.d.ts +13 -0
- package/dist/server/session-timeline.d.ts.map +1 -0
- package/dist/server/session-timeline.js +566 -0
- package/dist/server/session-timeline.js.map +1 -0
- package/dist/services/compliance/controls.d.ts +6 -0
- package/dist/services/compliance/controls.d.ts.map +1 -0
- package/dist/services/compliance/controls.js +113 -0
- package/dist/services/compliance/controls.js.map +1 -0
- package/dist/services/compliance/index.d.ts +6 -0
- package/dist/services/compliance/index.d.ts.map +1 -0
- package/dist/services/compliance/index.js +5 -0
- package/dist/services/compliance/index.js.map +1 -0
- package/dist/services/compliance/normalize.d.ts +23 -0
- package/dist/services/compliance/normalize.d.ts.map +1 -0
- package/dist/services/compliance/normalize.js +226 -0
- package/dist/services/compliance/normalize.js.map +1 -0
- package/dist/services/compliance/recorder.d.ts +22 -0
- package/dist/services/compliance/recorder.d.ts.map +1 -0
- package/dist/services/compliance/recorder.js +89 -0
- package/dist/services/compliance/recorder.js.map +1 -0
- package/dist/services/compliance/service.d.ts +24 -0
- package/dist/services/compliance/service.d.ts.map +1 -0
- package/dist/services/compliance/service.js +426 -0
- package/dist/services/compliance/service.js.map +1 -0
- package/dist/services/compliance/types.d.ts +185 -0
- package/dist/services/compliance/types.d.ts.map +1 -0
- package/dist/services/compliance/types.js +2 -0
- package/dist/services/compliance/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +5 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -0
- package/dist/services/intelligent-router/index.js +5 -0
- package/dist/services/intelligent-router/index.js.map +1 -0
- package/dist/services/intelligent-router/normalize.d.ts +9 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -0
- package/dist/services/intelligent-router/normalize.js +169 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +24 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -0
- package/dist/services/intelligent-router/recorder.js +98 -0
- package/dist/services/intelligent-router/recorder.js.map +1 -0
- package/dist/services/intelligent-router/service.d.ts +22 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -0
- package/dist/services/intelligent-router/service.js +328 -0
- package/dist/services/intelligent-router/service.js.map +1 -0
- package/dist/services/intelligent-router/types.d.ts +98 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -0
- package/dist/services/intelligent-router/types.js +7 -0
- package/dist/services/intelligent-router/types.js.map +1 -0
- package/dist/services/revenue-attribution/index.d.ts +4 -0
- package/dist/services/revenue-attribution/index.d.ts.map +1 -0
- package/dist/services/revenue-attribution/index.js +4 -0
- package/dist/services/revenue-attribution/index.js.map +1 -0
- package/dist/services/revenue-attribution/normalize.d.ts +13 -0
- package/dist/services/revenue-attribution/normalize.d.ts.map +1 -0
- package/dist/services/revenue-attribution/normalize.js +155 -0
- package/dist/services/revenue-attribution/normalize.js.map +1 -0
- package/dist/services/revenue-attribution/service.d.ts +21 -0
- package/dist/services/revenue-attribution/service.d.ts.map +1 -0
- package/dist/services/revenue-attribution/service.js +248 -0
- package/dist/services/revenue-attribution/service.js.map +1 -0
- package/dist/services/revenue-attribution/types.d.ts +96 -0
- package/dist/services/revenue-attribution/types.d.ts.map +1 -0
- package/dist/services/revenue-attribution/types.js +7 -0
- package/dist/services/revenue-attribution/types.js.map +1 -0
- package/dist/services/traces/index.d.ts +5 -0
- package/dist/services/traces/index.d.ts.map +1 -0
- package/dist/services/traces/index.js +4 -0
- package/dist/services/traces/index.js.map +1 -0
- package/dist/services/traces/normalize.d.ts +20 -0
- package/dist/services/traces/normalize.d.ts.map +1 -0
- package/dist/services/traces/normalize.js +261 -0
- package/dist/services/traces/normalize.js.map +1 -0
- package/dist/services/traces/otel.d.ts +3 -0
- package/dist/services/traces/otel.d.ts.map +1 -0
- package/dist/services/traces/otel.js +173 -0
- package/dist/services/traces/otel.js.map +1 -0
- package/dist/services/traces/service.d.ts +17 -0
- package/dist/services/traces/service.d.ts.map +1 -0
- package/dist/services/traces/service.js +197 -0
- package/dist/services/traces/service.js.map +1 -0
- package/dist/services/traces/types.d.ts +130 -0
- package/dist/services/traces/types.d.ts.map +1 -0
- package/dist/services/traces/types.js +8 -0
- package/dist/services/traces/types.js.map +1 -0
- package/dist/services/usage-analytics/aggregation.d.ts +18 -0
- package/dist/services/usage-analytics/aggregation.d.ts.map +1 -0
- package/dist/services/usage-analytics/aggregation.js +130 -0
- package/dist/services/usage-analytics/aggregation.js.map +1 -0
- package/dist/services/usage-analytics/index.d.ts +5 -0
- package/dist/services/usage-analytics/index.d.ts.map +1 -0
- package/dist/services/usage-analytics/index.js +4 -0
- package/dist/services/usage-analytics/index.js.map +1 -0
- package/dist/services/usage-analytics/recorder.d.ts +16 -0
- package/dist/services/usage-analytics/recorder.d.ts.map +1 -0
- package/dist/services/usage-analytics/recorder.js +128 -0
- package/dist/services/usage-analytics/recorder.js.map +1 -0
- package/dist/services/usage-analytics/service.d.ts +15 -0
- package/dist/services/usage-analytics/service.d.ts.map +1 -0
- package/dist/services/usage-analytics/service.js +210 -0
- package/dist/services/usage-analytics/service.js.map +1 -0
- package/dist/services/usage-analytics/types.d.ts +80 -0
- package/dist/services/usage-analytics/types.d.ts.map +1 -0
- package/dist/services/usage-analytics/types.js +2 -0
- package/dist/services/usage-analytics/types.js.map +1 -0
- package/dist/services/workspace-config/index.d.ts +6 -0
- package/dist/services/workspace-config/index.d.ts.map +1 -0
- package/dist/services/workspace-config/index.js +5 -0
- package/dist/services/workspace-config/index.js.map +1 -0
- package/dist/services/workspace-config/middleware.d.ts +5 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -0
- package/dist/services/workspace-config/middleware.js +98 -0
- package/dist/services/workspace-config/middleware.js.map +1 -0
- package/dist/services/workspace-config/normalize.d.ts +17 -0
- package/dist/services/workspace-config/normalize.d.ts.map +1 -0
- package/dist/services/workspace-config/normalize.js +148 -0
- package/dist/services/workspace-config/normalize.js.map +1 -0
- package/dist/services/workspace-config/policy.d.ts +16 -0
- package/dist/services/workspace-config/policy.d.ts.map +1 -0
- package/dist/services/workspace-config/policy.js +77 -0
- package/dist/services/workspace-config/policy.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +20 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -0
- package/dist/services/workspace-config/service.js +162 -0
- package/dist/services/workspace-config/service.js.map +1 -0
- package/dist/services/workspace-config/types.d.ts +71 -0
- package/dist/services/workspace-config/types.d.ts.map +1 -0
- package/dist/services/workspace-config/types.js +2 -0
- package/dist/services/workspace-config/types.js.map +1 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +10 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/migration.d.ts.map +1 -1
- package/dist/session/migration.js +2 -1
- package/dist/session/migration.js.map +1 -1
- package/dist/session/session-memory.d.ts.map +1 -1
- package/dist/session/session-memory.js +7 -1
- package/dist/session/session-memory.js.map +1 -1
- package/dist/session/types.d.ts +1 -2
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +1 -22
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.d.ts +7 -0
- package/dist/session/wire-format.d.ts.map +1 -0
- package/dist/session/wire-format.generated.d.ts +95 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -0
- package/dist/session/wire-format.generated.js +111 -0
- package/dist/session/wire-format.generated.js.map +1 -0
- package/dist/session/wire-format.js +145 -0
- package/dist/session/wire-format.js.map +1 -0
- package/dist/shared-memory/client.d.ts.map +1 -1
- package/dist/shared-memory/client.js +22 -22
- package/dist/shared-memory/client.js.map +1 -1
- package/dist/skills/artifact-metadata.d.ts +16 -0
- package/dist/skills/artifact-metadata.d.ts.map +1 -0
- package/dist/skills/artifact-metadata.js +86 -0
- package/dist/skills/artifact-metadata.js.map +1 -0
- package/dist/skills/loader.d.ts +2 -2
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +1 -0
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/service-client.d.ts +42 -0
- package/dist/skills/service-client.d.ts.map +1 -0
- package/dist/skills/service-client.js +258 -0
- package/dist/skills/service-client.js.map +1 -0
- package/dist/skills/tool.d.ts +3 -0
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +67 -5
- package/dist/skills/tool.js.map +1 -1
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +5 -0
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +440 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-bus.js +784 -0
- package/dist/telemetry/maestro-event-bus.js.map +1 -0
- package/dist/telemetry/maestro-event-catalog.d.ts +48 -0
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-catalog.js +69 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts +24 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js +400 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +29 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +240 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts +0 -33
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +22 -50
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +5 -5
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +8 -0
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +28 -0
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +14 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/timeline/redaction.d.ts +5 -0
- package/dist/timeline/redaction.d.ts.map +1 -0
- package/dist/timeline/redaction.js +119 -0
- package/dist/timeline/redaction.js.map +1 -0
- package/dist/tools/ask-user.d.ts +26 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/ask-user.js +33 -1
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/background/task-types.d.ts +1 -1
- package/dist/tools/edit.d.ts +2 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +27 -7
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/pipeline.js +16 -7
- package/dist/tools/pipeline.js.map +1 -1
- package/dist/tools/write.d.ts +2 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +24 -6
- package/dist/tools/write.js.map +1 -1
- package/dist/tracking/cost-tracker.d.ts +15 -12
- package/dist/tracking/cost-tracker.d.ts.map +1 -1
- package/dist/tracking/cost-tracker.js +29 -40
- package/dist/tracking/cost-tracker.js.map +1 -1
- package/dist/utils/checkpoint-profiler.d.ts +29 -0
- package/dist/utils/checkpoint-profiler.d.ts.map +1 -0
- package/dist/utils/checkpoint-profiler.js +118 -0
- package/dist/utils/checkpoint-profiler.js.map +1 -0
- package/dist/utils/downstream-http.d.ts +21 -0
- package/dist/utils/downstream-http.d.ts.map +1 -0
- package/dist/utils/downstream-http.js +151 -0
- package/dist/utils/downstream-http.js.map +1 -0
- package/dist/utils/downstream.d.ts +18 -0
- package/dist/utils/downstream.d.ts.map +1 -0
- package/dist/utils/downstream.js +47 -0
- package/dist/utils/downstream.js.map +1 -0
- package/dist/utils/logger.d.ts +3 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +12 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/oauth-http.d.ts +8 -0
- package/dist/utils/oauth-http.d.ts.map +1 -0
- package/dist/utils/oauth-http.js +41 -0
- package/dist/utils/oauth-http.js.map +1 -0
- package/dist/utils/path-utils.d.ts +2 -0
- package/dist/utils/path-utils.d.ts.map +1 -0
- package/dist/utils/path-utils.js +12 -0
- package/dist/utils/path-utils.js.map +1 -0
- package/dist/utils/path-validation.d.ts +1 -1
- package/dist/utils/path-validation.d.ts.map +1 -1
- package/dist/utils/path-validation.js +3 -3
- package/dist/utils/path-validation.js.map +1 -1
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts +7 -1
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +117 -15
- package/dist/web-server.js.map +1 -1
- package/dist/webhooks/delivery.d.ts.map +1 -1
- package/dist/webhooks/delivery.js +9 -12
- package/dist/webhooks/delivery.js.map +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js +9 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +38 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +10 -11
- package/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +37 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +23 -0
- package/node_modules/@bufbuild/protobuf/package.json +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +305 -2
- 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 +34 -4
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +88 -0
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +77 -77
- 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 +1 -1
- 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 +182 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js +83 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +133 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +68 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +178 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +165 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js +5 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/validators.d.ts +4 -1
- package/node_modules/@evalops/contracts/dist/validators.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/validators.js +4 -1
- package/node_modules/@evalops/contracts/dist/validators.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/node_modules/string-width/index.js +93 -9
- package/node_modules/string-width/package.json +1 -1
- package/package.json +32 -25
- package/dist/cli-tui/commands/grouped/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/index.js.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.js.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.js +0 -135
- package/dist/cli-tui/commands/grouped-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts +0 -78
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js +0 -129
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js.map +0 -1
- package/node_modules/@evalops/memory/dist/client.d.ts +0 -94
- package/node_modules/@evalops/memory/dist/client.js +0 -503
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.d.ts +0 -608
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.js +0 -187
- package/node_modules/@evalops/memory/package.json +0 -26
- /package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.d.ts +0 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { MaestroBusEventType, buildMaestroCloudEvent, } from "./maestro-event-bus.js";
|
|
2
|
+
export const CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME = "canonical-maestro-session-platform-replay";
|
|
3
|
+
const ORGANIZATION_ID = "org_evalops_fixture";
|
|
4
|
+
const WORKSPACE_ID = "workspace_platform_replay";
|
|
5
|
+
const SESSION_ID = "session_platform_replay_001";
|
|
6
|
+
const AGENT_RUN_ID = "agent_run_platform_replay_001";
|
|
7
|
+
const BASH_TOOL_CALL_ID = "tool_call_platform_replay_bash_001";
|
|
8
|
+
const BASH_TOOL_EXECUTION_ID = "tool_exec_platform_replay_bash_001";
|
|
9
|
+
const SKILL_TOOL_CALL_ID = "tool_call_platform_replay_skill_001";
|
|
10
|
+
const SKILL_TOOL_EXECUTION_ID = "tool_exec_platform_replay_skill_001";
|
|
11
|
+
const APPROVAL_REQUEST_ID = "approval_platform_replay_001";
|
|
12
|
+
const SKILL_ID = "skill_incident_review";
|
|
13
|
+
const promptMetadata = {
|
|
14
|
+
name: "maestro-system",
|
|
15
|
+
label: "production",
|
|
16
|
+
surface: "web",
|
|
17
|
+
version: 9,
|
|
18
|
+
versionId: "prompt_version_9",
|
|
19
|
+
hash: "sha256:prompt-platform-replay",
|
|
20
|
+
source: "service",
|
|
21
|
+
};
|
|
22
|
+
const skillMetadata = {
|
|
23
|
+
name: "incident-review",
|
|
24
|
+
hash: "sha256:skill-incident-review",
|
|
25
|
+
source: "service",
|
|
26
|
+
artifactId: SKILL_ID,
|
|
27
|
+
version: "3",
|
|
28
|
+
};
|
|
29
|
+
const baseCorrelation = {
|
|
30
|
+
organization_id: ORGANIZATION_ID,
|
|
31
|
+
workspace_id: WORKSPACE_ID,
|
|
32
|
+
session_id: SESSION_ID,
|
|
33
|
+
agent_run_id: AGENT_RUN_ID,
|
|
34
|
+
agent_run_step_id: "agent_run_step_platform_replay_001",
|
|
35
|
+
agent_id: "agent_maestro_platform_replay",
|
|
36
|
+
actor_id: "user_platform_replay",
|
|
37
|
+
principal_id: "principal_platform_replay",
|
|
38
|
+
trace_id: "trace_platform_replay_001",
|
|
39
|
+
request_id: "request_platform_replay_001",
|
|
40
|
+
remote_runner_session_id: "remote_runner_platform_replay_001",
|
|
41
|
+
objective_id: "objective_platform_replay_001",
|
|
42
|
+
conversation_id: "conversation_platform_replay_001",
|
|
43
|
+
attributes: {
|
|
44
|
+
fixture: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
const principal = {
|
|
48
|
+
subject: "user:platform-replay@example.com",
|
|
49
|
+
user_id: "user_platform_replay",
|
|
50
|
+
organization_id: ORGANIZATION_ID,
|
|
51
|
+
workspace_id: WORKSPACE_ID,
|
|
52
|
+
roles: ["developer"],
|
|
53
|
+
scopes: ["maestro:run", "tool:execute"],
|
|
54
|
+
claims: {
|
|
55
|
+
auth_provider: "fixture",
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
const fixtureEnv = {
|
|
59
|
+
MAESTRO_EVENT_BUS_URL: "nats://maestro-fixture.invalid:4222",
|
|
60
|
+
MAESTRO_EVENT_BUS_SOURCE: "maestro-fixture",
|
|
61
|
+
MAESTRO_EVALOPS_ORG_ID: ORGANIZATION_ID,
|
|
62
|
+
MAESTRO_EVALOPS_WORKSPACE_ID: WORKSPACE_ID,
|
|
63
|
+
MAESTRO_SESSION_ID: SESSION_ID,
|
|
64
|
+
MAESTRO_AGENT_RUN_ID: AGENT_RUN_ID,
|
|
65
|
+
MAESTRO_AGENT_ID: baseCorrelation.agent_id,
|
|
66
|
+
MAESTRO_ACTOR_ID: baseCorrelation.actor_id,
|
|
67
|
+
MAESTRO_PRINCIPAL_ID: baseCorrelation.principal_id,
|
|
68
|
+
MAESTRO_REQUEST_ID: baseCorrelation.request_id,
|
|
69
|
+
MAESTRO_REMOTE_RUNNER_SESSION_ID: baseCorrelation.remote_runner_session_id,
|
|
70
|
+
MAESTRO_OBJECTIVE_ID: baseCorrelation.objective_id,
|
|
71
|
+
MAESTRO_CONVERSATION_ID: baseCorrelation.conversation_id,
|
|
72
|
+
MAESTRO_SURFACE: "web",
|
|
73
|
+
MAESTRO_RUNTIME_MODE: "hosted",
|
|
74
|
+
};
|
|
75
|
+
const eventPlan = [
|
|
76
|
+
{
|
|
77
|
+
type: MaestroBusEventType.SessionStarted,
|
|
78
|
+
id: "evt_maestro_replay_001_session_started",
|
|
79
|
+
time: "2026-04-23T18:00:00.000Z",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: MaestroBusEventType.PromptVariantSelected,
|
|
83
|
+
id: "evt_maestro_replay_002_prompt_variant_selected",
|
|
84
|
+
time: "2026-04-23T18:01:00.000Z",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: MaestroBusEventType.ToolCallAttempted,
|
|
88
|
+
id: "evt_maestro_replay_003_skill_tool_call_attempted",
|
|
89
|
+
time: "2026-04-23T18:02:00.000Z",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: MaestroBusEventType.ToolCallCompleted,
|
|
93
|
+
id: "evt_maestro_replay_004_skill_tool_call_completed",
|
|
94
|
+
time: "2026-04-23T18:03:00.000Z",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: MaestroBusEventType.SkillInvoked,
|
|
98
|
+
id: "evt_maestro_replay_005_skill_invoked",
|
|
99
|
+
time: "2026-04-23T18:04:00.000Z",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: MaestroBusEventType.ApprovalHit,
|
|
103
|
+
id: "evt_maestro_replay_006_approval_hit",
|
|
104
|
+
time: "2026-04-23T18:05:00.000Z",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: MaestroBusEventType.ToolCallAttempted,
|
|
108
|
+
id: "evt_maestro_replay_007_eval_tool_call_attempted",
|
|
109
|
+
time: "2026-04-23T18:06:00.000Z",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: MaestroBusEventType.ToolCallCompleted,
|
|
113
|
+
id: "evt_maestro_replay_008_eval_tool_call_completed",
|
|
114
|
+
time: "2026-04-23T18:07:00.000Z",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: MaestroBusEventType.EvalScored,
|
|
118
|
+
id: "evt_maestro_replay_009_eval_scored",
|
|
119
|
+
time: "2026-04-23T18:08:00.000Z",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: MaestroBusEventType.SkillFailed,
|
|
123
|
+
id: "evt_maestro_replay_010_skill_failed",
|
|
124
|
+
time: "2026-04-23T18:09:00.000Z",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: MaestroBusEventType.SessionClosed,
|
|
128
|
+
id: "evt_maestro_replay_011_session_closed",
|
|
129
|
+
time: "2026-04-23T18:10:00.000Z",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
const TOOL_CALL_CORRELATED_EVENT_TYPES = new Set([
|
|
133
|
+
MaestroBusEventType.ToolCallAttempted,
|
|
134
|
+
MaestroBusEventType.ToolCallCompleted,
|
|
135
|
+
MaestroBusEventType.SkillInvoked,
|
|
136
|
+
MaestroBusEventType.EvalScored,
|
|
137
|
+
]);
|
|
138
|
+
function eventFor(type, data, index, agentRunStepId) {
|
|
139
|
+
const plan = eventPlan[index];
|
|
140
|
+
if (!plan) {
|
|
141
|
+
throw new Error(`missing Maestro platform replay event plan at index ${index}`);
|
|
142
|
+
}
|
|
143
|
+
const stepId = agentRunStepId ??
|
|
144
|
+
(TOOL_CALL_CORRELATED_EVENT_TYPES.has(type) &&
|
|
145
|
+
typeof data.tool_call_id === "string"
|
|
146
|
+
? data.tool_call_id
|
|
147
|
+
: undefined) ??
|
|
148
|
+
baseCorrelation.agent_run_step_id;
|
|
149
|
+
return buildMaestroCloudEvent(type, {
|
|
150
|
+
correlation: {
|
|
151
|
+
...baseCorrelation,
|
|
152
|
+
agent_run_step_id: stepId,
|
|
153
|
+
traceparent: fixtureTraceparent(index),
|
|
154
|
+
},
|
|
155
|
+
...data,
|
|
156
|
+
}, {
|
|
157
|
+
env: fixtureEnv,
|
|
158
|
+
eventId: plan.id,
|
|
159
|
+
time: plan.time,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function fixtureTraceparent(index) {
|
|
163
|
+
return `00-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-${String(index + 1).padStart(16, "0")}-01`;
|
|
164
|
+
}
|
|
165
|
+
function buildEvents() {
|
|
166
|
+
return [
|
|
167
|
+
eventFor(MaestroBusEventType.SessionStarted, {
|
|
168
|
+
state: "MAESTRO_SESSION_STATE_STARTED",
|
|
169
|
+
surface: "MAESTRO_SURFACE_WEB",
|
|
170
|
+
runtime_mode: "MAESTRO_RUNTIME_MODE_HOSTED",
|
|
171
|
+
principal,
|
|
172
|
+
workspace_root: "/workspace/evalops/platform-replay",
|
|
173
|
+
repository: "evalops/maestro-internal",
|
|
174
|
+
git_ref: "refs/heads/codex/maestro-platform-replay-fixture",
|
|
175
|
+
runtime_version: "0.0.0-fixture",
|
|
176
|
+
runner_profile: "hosted-standard",
|
|
177
|
+
started_at: eventPlan[0].time,
|
|
178
|
+
metadata: {
|
|
179
|
+
fixture: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,
|
|
180
|
+
},
|
|
181
|
+
}, 0),
|
|
182
|
+
eventFor(MaestroBusEventType.PromptVariantSelected, {
|
|
183
|
+
prompt_id: "prompt_platform_replay_system",
|
|
184
|
+
prompt_name: "maestro-system",
|
|
185
|
+
version_id: "prompt_version_9",
|
|
186
|
+
prompt_metadata: promptMetadata,
|
|
187
|
+
selected_at: eventPlan[1].time,
|
|
188
|
+
}, 1),
|
|
189
|
+
eventFor(MaestroBusEventType.ToolCallAttempted, {
|
|
190
|
+
tool_call_id: SKILL_TOOL_CALL_ID,
|
|
191
|
+
tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
192
|
+
prompt_metadata: promptMetadata,
|
|
193
|
+
tool_namespace: "builtin",
|
|
194
|
+
tool_name: "Skill",
|
|
195
|
+
tool_version: "1",
|
|
196
|
+
capability: "skill:invoke",
|
|
197
|
+
mutates_resource: false,
|
|
198
|
+
risk_level: "RISK_LEVEL_LOW",
|
|
199
|
+
safe_arguments: {
|
|
200
|
+
skill_id: SKILL_ID,
|
|
201
|
+
},
|
|
202
|
+
idempotency_key: "idempotency_platform_replay_skill_001",
|
|
203
|
+
attempted_at: eventPlan[2].time,
|
|
204
|
+
}, 2),
|
|
205
|
+
eventFor(MaestroBusEventType.ToolCallCompleted, {
|
|
206
|
+
tool_call_id: SKILL_TOOL_CALL_ID,
|
|
207
|
+
tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
208
|
+
prompt_metadata: promptMetadata,
|
|
209
|
+
skill_metadata: skillMetadata,
|
|
210
|
+
status: "MAESTRO_TOOL_CALL_STATUS_SUCCEEDED",
|
|
211
|
+
duration: "1.111s",
|
|
212
|
+
safe_output: {
|
|
213
|
+
summary: "Skill selected incident review workflow",
|
|
214
|
+
},
|
|
215
|
+
completed_at: eventPlan[3].time,
|
|
216
|
+
}, 3),
|
|
217
|
+
eventFor(MaestroBusEventType.SkillInvoked, {
|
|
218
|
+
invocation_id: "invocation_platform_replay_skill_001",
|
|
219
|
+
skill_id: SKILL_ID,
|
|
220
|
+
prompt_metadata: promptMetadata,
|
|
221
|
+
skill_metadata: skillMetadata,
|
|
222
|
+
tool_call_id: SKILL_TOOL_CALL_ID,
|
|
223
|
+
tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
224
|
+
invoked_at: eventPlan[4].time,
|
|
225
|
+
}, 4),
|
|
226
|
+
eventFor(MaestroBusEventType.ApprovalHit, {
|
|
227
|
+
approval_request_id: APPROVAL_REQUEST_ID,
|
|
228
|
+
governance_decision_id: "governance_decision_platform_replay_001",
|
|
229
|
+
action: "Run workspace test command",
|
|
230
|
+
command: "bunx vitest --run test/telemetry",
|
|
231
|
+
risk_level: "RISK_LEVEL_MEDIUM",
|
|
232
|
+
decision_mode: "MAESTRO_DECISION_MODE_REQUIRE_APPROVAL",
|
|
233
|
+
policy_id: "policy_workspace_test_approval",
|
|
234
|
+
reason: "fixture approval path",
|
|
235
|
+
context: {
|
|
236
|
+
tool_name: "Bash",
|
|
237
|
+
display_name: "Bash",
|
|
238
|
+
summary_label: "Bash",
|
|
239
|
+
args: {
|
|
240
|
+
command: "bunx vitest --run test/telemetry",
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
occurred_at: eventPlan[5].time,
|
|
244
|
+
}, 5, BASH_TOOL_CALL_ID),
|
|
245
|
+
eventFor(MaestroBusEventType.ToolCallAttempted, {
|
|
246
|
+
tool_call_id: BASH_TOOL_CALL_ID,
|
|
247
|
+
tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
248
|
+
prompt_metadata: promptMetadata,
|
|
249
|
+
tool_namespace: "builtin",
|
|
250
|
+
tool_name: "Bash",
|
|
251
|
+
tool_version: "1",
|
|
252
|
+
capability: "workspace:test",
|
|
253
|
+
mutates_resource: false,
|
|
254
|
+
risk_level: "RISK_LEVEL_MEDIUM",
|
|
255
|
+
safe_arguments: {
|
|
256
|
+
command_summary: "bunx vitest --run test/telemetry",
|
|
257
|
+
},
|
|
258
|
+
redactions: ["raw_command"],
|
|
259
|
+
idempotency_key: "idempotency_platform_replay_bash_001",
|
|
260
|
+
attempted_at: eventPlan[6].time,
|
|
261
|
+
}, 6),
|
|
262
|
+
eventFor(MaestroBusEventType.ToolCallCompleted, {
|
|
263
|
+
tool_call_id: BASH_TOOL_CALL_ID,
|
|
264
|
+
tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
265
|
+
prompt_metadata: promptMetadata,
|
|
266
|
+
skill_metadata: skillMetadata,
|
|
267
|
+
approval_request_id: APPROVAL_REQUEST_ID,
|
|
268
|
+
status: "MAESTRO_TOOL_CALL_STATUS_SUCCEEDED",
|
|
269
|
+
duration: "2.345s",
|
|
270
|
+
safe_output: {
|
|
271
|
+
exit_code: 0,
|
|
272
|
+
summary: "8 telemetry tests passed",
|
|
273
|
+
},
|
|
274
|
+
redactions: ["stdout"],
|
|
275
|
+
completed_at: eventPlan[7].time,
|
|
276
|
+
}, 7),
|
|
277
|
+
eventFor(MaestroBusEventType.EvalScored, {
|
|
278
|
+
eval_run_id: "eval_run_platform_replay_001",
|
|
279
|
+
scenario_id: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,
|
|
280
|
+
prompt_metadata: promptMetadata,
|
|
281
|
+
skill_metadata: skillMetadata,
|
|
282
|
+
tool_call_id: BASH_TOOL_CALL_ID,
|
|
283
|
+
tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
284
|
+
tool_name: "Bash",
|
|
285
|
+
score: 0.82,
|
|
286
|
+
passed: false,
|
|
287
|
+
threshold: 0.9,
|
|
288
|
+
scorer: "fermata.replay.score",
|
|
289
|
+
rationale: "formatting checks failed",
|
|
290
|
+
assertion_count: 1,
|
|
291
|
+
scored_at: eventPlan[8].time,
|
|
292
|
+
}, 8),
|
|
293
|
+
eventFor(MaestroBusEventType.SkillFailed, {
|
|
294
|
+
invocation_id: "invocation_platform_replay_skill_001",
|
|
295
|
+
skill_id: SKILL_ID,
|
|
296
|
+
prompt_metadata: promptMetadata,
|
|
297
|
+
skill_metadata: skillMetadata,
|
|
298
|
+
tool_call_id: SKILL_TOOL_CALL_ID,
|
|
299
|
+
tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
300
|
+
turn_status: "evaluation_failed",
|
|
301
|
+
error_category: "evaluation",
|
|
302
|
+
error_message: "formatting checks failed",
|
|
303
|
+
evaluation_tool_name: "Bash",
|
|
304
|
+
evaluation_tool_call_id: BASH_TOOL_CALL_ID,
|
|
305
|
+
evaluation_tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
306
|
+
evaluation_score: 0.82,
|
|
307
|
+
evaluation_threshold: 0.9,
|
|
308
|
+
evaluation_assertion_count: 1,
|
|
309
|
+
evaluation_rationale: "formatting checks failed",
|
|
310
|
+
outcome_at: eventPlan[9].time,
|
|
311
|
+
}, 9),
|
|
312
|
+
eventFor(MaestroBusEventType.SessionClosed, {
|
|
313
|
+
state: "MAESTRO_SESSION_STATE_CLOSED",
|
|
314
|
+
surface: "MAESTRO_SURFACE_WEB",
|
|
315
|
+
runtime_mode: "MAESTRO_RUNTIME_MODE_HOSTED",
|
|
316
|
+
principal,
|
|
317
|
+
workspace_root: "/workspace/evalops/platform-replay",
|
|
318
|
+
repository: "evalops/maestro-internal",
|
|
319
|
+
git_ref: "refs/heads/codex/maestro-platform-replay-fixture",
|
|
320
|
+
runtime_version: "0.0.0-fixture",
|
|
321
|
+
runner_profile: "hosted-standard",
|
|
322
|
+
closed_at: eventPlan[10].time,
|
|
323
|
+
close_reason: "MAESTRO_CLOSE_REASON_COMPLETED",
|
|
324
|
+
close_message: "fixture run complete",
|
|
325
|
+
}, 10),
|
|
326
|
+
];
|
|
327
|
+
}
|
|
328
|
+
export function buildCanonicalMaestroPlatformReplayFixture() {
|
|
329
|
+
const events = buildEvents();
|
|
330
|
+
const subjects = eventPlan.map((event) => event.type);
|
|
331
|
+
return {
|
|
332
|
+
fixture_version: "maestro-platform-replay/v1",
|
|
333
|
+
name: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,
|
|
334
|
+
event_count: events.length,
|
|
335
|
+
correlation: {
|
|
336
|
+
organization_id: ORGANIZATION_ID,
|
|
337
|
+
workspace_id: WORKSPACE_ID,
|
|
338
|
+
session_id: SESSION_ID,
|
|
339
|
+
agent_run_id: AGENT_RUN_ID,
|
|
340
|
+
tool_call_id: BASH_TOOL_CALL_ID,
|
|
341
|
+
tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
342
|
+
skill_tool_call_id: SKILL_TOOL_CALL_ID,
|
|
343
|
+
skill_tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
344
|
+
approval_request_id: APPROVAL_REQUEST_ID,
|
|
345
|
+
},
|
|
346
|
+
subjects,
|
|
347
|
+
events,
|
|
348
|
+
expected_assertions: {
|
|
349
|
+
required_event_types: subjects,
|
|
350
|
+
required_subjects: subjects,
|
|
351
|
+
platform_join_keys: {
|
|
352
|
+
agent_run_id: AGENT_RUN_ID,
|
|
353
|
+
prompt_id: "prompt_platform_replay_system",
|
|
354
|
+
prompt_version_id: promptMetadata.versionId,
|
|
355
|
+
prompt_artifact_hash: promptMetadata.hash,
|
|
356
|
+
tool_call_id: BASH_TOOL_CALL_ID,
|
|
357
|
+
tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
358
|
+
evaluation_tool_call_id: BASH_TOOL_CALL_ID,
|
|
359
|
+
evaluation_tool_execution_id: BASH_TOOL_EXECUTION_ID,
|
|
360
|
+
eval_run_id: "eval_run_platform_replay_001",
|
|
361
|
+
skill_tool_call_id: SKILL_TOOL_CALL_ID,
|
|
362
|
+
skill_tool_execution_id: SKILL_TOOL_EXECUTION_ID,
|
|
363
|
+
skill_invocation_id: "invocation_platform_replay_skill_001",
|
|
364
|
+
approval_request_id: APPROVAL_REQUEST_ID,
|
|
365
|
+
skill_id: SKILL_ID,
|
|
366
|
+
},
|
|
367
|
+
timeline: [
|
|
368
|
+
{
|
|
369
|
+
type: MaestroBusEventType.SessionStarted,
|
|
370
|
+
title: "Session started",
|
|
371
|
+
visible: true,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
type: MaestroBusEventType.ApprovalHit,
|
|
375
|
+
title: "Approval required",
|
|
376
|
+
visible: true,
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: MaestroBusEventType.ToolCallCompleted,
|
|
380
|
+
title: "Tool completed",
|
|
381
|
+
visible: true,
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
type: MaestroBusEventType.EvalScored,
|
|
385
|
+
title: "Evaluation scored",
|
|
386
|
+
visible: true,
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
type: MaestroBusEventType.SessionClosed,
|
|
390
|
+
title: "Session closed",
|
|
391
|
+
visible: true,
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
export function canonicalMaestroPlatformReplayFixtureJson() {
|
|
398
|
+
return `${JSON.stringify(buildCanonicalMaestroPlatformReplayFixture(), null, 2)}\n`;
|
|
399
|
+
}
|
|
400
|
+
//# sourceMappingURL=maestro-platform-replay-fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maestro-platform-replay-fixture.js","sourceRoot":"","sources":["../../src/telemetry/maestro-platform-replay-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EAInB,sBAAsB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,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B,EAAE,sCAAsC;gBAC3D,mBAAmB,EAAE,mBAAmB;gBACxC,QAAQ,EAAE,QAAQ;aAClB;YACD,QAAQ,EAAE;gBACT;oBACC,IAAI,EAAE,mBAAmB,CAAC,cAAc;oBACxC,KAAK,EAAE,iBAAiB;oBACxB,OAAO,EAAE,IAAI;iBACb;gBACD;oBACC,IAAI,EAAE,mBAAmB,CAAC,WAAW;oBACrC,KAAK,EAAE,mBAAmB;oBAC1B,OAAO,EAAE,IAAI;iBACb;gBACD;oBACC,IAAI,EAAE,mBAAmB,CAAC,iBAAiB;oBAC3C,KAAK,EAAE,gBAAgB;oBACvB,OAAO,EAAE,IAAI;iBACb;gBACD;oBACC,IAAI,EAAE,mBAAmB,CAAC,UAAU;oBACpC,KAAK,EAAE,mBAAmB;oBAC1B,OAAO,EAAE,IAAI;iBACb;gBACD;oBACC,IAAI,EAAE,mBAAmB,CAAC,aAAa;oBACvC,KAAK,EAAE,gBAAgB;oBACvB,OAAO,EAAE,IAAI;iBACb;aACD;SACD;KACD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,yCAAyC;IACxD,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;AACrF,CAAC","sourcesContent":["import {\n\tMaestroBusEventType,\n\ttype MaestroCloudEvent,\n\ttype MaestroCorrelation,\n\ttype MaestroPrincipal,\n\tbuildMaestroCloudEvent,\n} from \"./maestro-event-bus.js\";\n\nexport const CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME =\n\t\"canonical-maestro-session-platform-replay\";\n\nconst ORGANIZATION_ID = \"org_evalops_fixture\";\nconst WORKSPACE_ID = \"workspace_platform_replay\";\nconst SESSION_ID = \"session_platform_replay_001\";\nconst AGENT_RUN_ID = \"agent_run_platform_replay_001\";\nconst BASH_TOOL_CALL_ID = \"tool_call_platform_replay_bash_001\";\nconst BASH_TOOL_EXECUTION_ID = \"tool_exec_platform_replay_bash_001\";\nconst SKILL_TOOL_CALL_ID = \"tool_call_platform_replay_skill_001\";\nconst SKILL_TOOL_EXECUTION_ID = \"tool_exec_platform_replay_skill_001\";\nconst APPROVAL_REQUEST_ID = \"approval_platform_replay_001\";\nconst SKILL_ID = \"skill_incident_review\";\n\nconst promptMetadata = {\n\tname: \"maestro-system\",\n\tlabel: \"production\",\n\tsurface: \"web\",\n\tversion: 9,\n\tversionId: \"prompt_version_9\",\n\thash: \"sha256:prompt-platform-replay\",\n\tsource: \"service\",\n};\n\nconst skillMetadata = {\n\tname: \"incident-review\",\n\thash: \"sha256:skill-incident-review\",\n\tsource: \"service\",\n\tartifactId: SKILL_ID,\n\tversion: \"3\",\n};\n\nconst baseCorrelation: MaestroCorrelation = {\n\torganization_id: ORGANIZATION_ID,\n\tworkspace_id: WORKSPACE_ID,\n\tsession_id: SESSION_ID,\n\tagent_run_id: AGENT_RUN_ID,\n\tagent_run_step_id: \"agent_run_step_platform_replay_001\",\n\tagent_id: \"agent_maestro_platform_replay\",\n\tactor_id: \"user_platform_replay\",\n\tprincipal_id: \"principal_platform_replay\",\n\ttrace_id: \"trace_platform_replay_001\",\n\trequest_id: \"request_platform_replay_001\",\n\tremote_runner_session_id: \"remote_runner_platform_replay_001\",\n\tobjective_id: \"objective_platform_replay_001\",\n\tconversation_id: \"conversation_platform_replay_001\",\n\tattributes: {\n\t\tfixture: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,\n\t},\n};\n\nconst principal: MaestroPrincipal = {\n\tsubject: \"user:platform-replay@example.com\",\n\tuser_id: \"user_platform_replay\",\n\torganization_id: ORGANIZATION_ID,\n\tworkspace_id: WORKSPACE_ID,\n\troles: [\"developer\"],\n\tscopes: [\"maestro:run\", \"tool:execute\"],\n\tclaims: {\n\t\tauth_provider: \"fixture\",\n\t},\n};\n\nconst fixtureEnv: NodeJS.ProcessEnv = {\n\tMAESTRO_EVENT_BUS_URL: \"nats://maestro-fixture.invalid:4222\",\n\tMAESTRO_EVENT_BUS_SOURCE: \"maestro-fixture\",\n\tMAESTRO_EVALOPS_ORG_ID: ORGANIZATION_ID,\n\tMAESTRO_EVALOPS_WORKSPACE_ID: WORKSPACE_ID,\n\tMAESTRO_SESSION_ID: SESSION_ID,\n\tMAESTRO_AGENT_RUN_ID: AGENT_RUN_ID,\n\tMAESTRO_AGENT_ID: baseCorrelation.agent_id,\n\tMAESTRO_ACTOR_ID: baseCorrelation.actor_id,\n\tMAESTRO_PRINCIPAL_ID: baseCorrelation.principal_id,\n\tMAESTRO_REQUEST_ID: baseCorrelation.request_id,\n\tMAESTRO_REMOTE_RUNNER_SESSION_ID: baseCorrelation.remote_runner_session_id,\n\tMAESTRO_OBJECTIVE_ID: baseCorrelation.objective_id,\n\tMAESTRO_CONVERSATION_ID: baseCorrelation.conversation_id,\n\tMAESTRO_SURFACE: \"web\",\n\tMAESTRO_RUNTIME_MODE: \"hosted\",\n};\n\nconst eventPlan = [\n\t{\n\t\ttype: MaestroBusEventType.SessionStarted,\n\t\tid: \"evt_maestro_replay_001_session_started\",\n\t\ttime: \"2026-04-23T18:00:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.PromptVariantSelected,\n\t\tid: \"evt_maestro_replay_002_prompt_variant_selected\",\n\t\ttime: \"2026-04-23T18:01:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.ToolCallAttempted,\n\t\tid: \"evt_maestro_replay_003_skill_tool_call_attempted\",\n\t\ttime: \"2026-04-23T18:02:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.ToolCallCompleted,\n\t\tid: \"evt_maestro_replay_004_skill_tool_call_completed\",\n\t\ttime: \"2026-04-23T18:03:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.SkillInvoked,\n\t\tid: \"evt_maestro_replay_005_skill_invoked\",\n\t\ttime: \"2026-04-23T18:04:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.ApprovalHit,\n\t\tid: \"evt_maestro_replay_006_approval_hit\",\n\t\ttime: \"2026-04-23T18:05:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.ToolCallAttempted,\n\t\tid: \"evt_maestro_replay_007_eval_tool_call_attempted\",\n\t\ttime: \"2026-04-23T18:06:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.ToolCallCompleted,\n\t\tid: \"evt_maestro_replay_008_eval_tool_call_completed\",\n\t\ttime: \"2026-04-23T18:07:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.EvalScored,\n\t\tid: \"evt_maestro_replay_009_eval_scored\",\n\t\ttime: \"2026-04-23T18:08:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.SkillFailed,\n\t\tid: \"evt_maestro_replay_010_skill_failed\",\n\t\ttime: \"2026-04-23T18:09:00.000Z\",\n\t},\n\t{\n\t\ttype: MaestroBusEventType.SessionClosed,\n\t\tid: \"evt_maestro_replay_011_session_closed\",\n\t\ttime: \"2026-04-23T18:10:00.000Z\",\n\t},\n] as const;\n\nconst TOOL_CALL_CORRELATED_EVENT_TYPES = new Set<MaestroBusEventType>([\n\tMaestroBusEventType.ToolCallAttempted,\n\tMaestroBusEventType.ToolCallCompleted,\n\tMaestroBusEventType.SkillInvoked,\n\tMaestroBusEventType.EvalScored,\n]);\n\nexport type MaestroPlatformReplayFixtureEvent = MaestroCloudEvent<\n\tRecord<string, unknown>\n>;\n\nexport interface MaestroPlatformReplayFixture {\n\tfixture_version: \"maestro-platform-replay/v1\";\n\tname: typeof CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME;\n\tevent_count: number;\n\tcorrelation: Record<string, string>;\n\tsubjects: MaestroBusEventType[];\n\tevents: MaestroPlatformReplayFixtureEvent[];\n\texpected_assertions: {\n\t\trequired_event_types: MaestroBusEventType[];\n\t\trequired_subjects: MaestroBusEventType[];\n\t\tplatform_join_keys: Record<string, string>;\n\t\ttimeline: Array<{\n\t\t\ttype: MaestroBusEventType;\n\t\t\ttitle: string;\n\t\t\tvisible: boolean;\n\t\t}>;\n\t};\n}\n\nfunction eventFor(\n\ttype: MaestroBusEventType,\n\tdata: Record<string, unknown>,\n\tindex: number,\n\tagentRunStepId?: string,\n): MaestroPlatformReplayFixtureEvent {\n\tconst plan = eventPlan[index];\n\tif (!plan) {\n\t\tthrow new Error(\n\t\t\t`missing Maestro platform replay event plan at index ${index}`,\n\t\t);\n\t}\n\tconst stepId =\n\t\tagentRunStepId ??\n\t\t(TOOL_CALL_CORRELATED_EVENT_TYPES.has(type) &&\n\t\ttypeof data.tool_call_id === \"string\"\n\t\t\t? data.tool_call_id\n\t\t\t: undefined) ??\n\t\tbaseCorrelation.agent_run_step_id;\n\treturn buildMaestroCloudEvent(\n\t\ttype,\n\t\t{\n\t\t\tcorrelation: {\n\t\t\t\t...baseCorrelation,\n\t\t\t\tagent_run_step_id: stepId,\n\t\t\t\ttraceparent: fixtureTraceparent(index),\n\t\t\t},\n\t\t\t...data,\n\t\t},\n\t\t{\n\t\t\tenv: fixtureEnv,\n\t\t\teventId: plan.id,\n\t\t\ttime: plan.time,\n\t\t},\n\t);\n}\n\nfunction fixtureTraceparent(index: number): string {\n\treturn `00-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-${String(index + 1).padStart(16, \"0\")}-01`;\n}\n\nfunction buildEvents(): MaestroPlatformReplayFixtureEvent[] {\n\treturn [\n\t\teventFor(\n\t\t\tMaestroBusEventType.SessionStarted,\n\t\t\t{\n\t\t\t\tstate: \"MAESTRO_SESSION_STATE_STARTED\",\n\t\t\t\tsurface: \"MAESTRO_SURFACE_WEB\",\n\t\t\t\truntime_mode: \"MAESTRO_RUNTIME_MODE_HOSTED\",\n\t\t\t\tprincipal,\n\t\t\t\tworkspace_root: \"/workspace/evalops/platform-replay\",\n\t\t\t\trepository: \"evalops/maestro-internal\",\n\t\t\t\tgit_ref: \"refs/heads/codex/maestro-platform-replay-fixture\",\n\t\t\t\truntime_version: \"0.0.0-fixture\",\n\t\t\t\trunner_profile: \"hosted-standard\",\n\t\t\t\tstarted_at: eventPlan[0].time,\n\t\t\t\tmetadata: {\n\t\t\t\t\tfixture: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,\n\t\t\t\t},\n\t\t\t},\n\t\t\t0,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.PromptVariantSelected,\n\t\t\t{\n\t\t\t\tprompt_id: \"prompt_platform_replay_system\",\n\t\t\t\tprompt_name: \"maestro-system\",\n\t\t\t\tversion_id: \"prompt_version_9\",\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tselected_at: eventPlan[1].time,\n\t\t\t},\n\t\t\t1,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.ToolCallAttempted,\n\t\t\t{\n\t\t\t\ttool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\ttool_namespace: \"builtin\",\n\t\t\t\ttool_name: \"Skill\",\n\t\t\t\ttool_version: \"1\",\n\t\t\t\tcapability: \"skill:invoke\",\n\t\t\t\tmutates_resource: false,\n\t\t\t\trisk_level: \"RISK_LEVEL_LOW\",\n\t\t\t\tsafe_arguments: {\n\t\t\t\t\tskill_id: SKILL_ID,\n\t\t\t\t},\n\t\t\t\tidempotency_key: \"idempotency_platform_replay_skill_001\",\n\t\t\t\tattempted_at: eventPlan[2].time,\n\t\t\t},\n\t\t\t2,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.ToolCallCompleted,\n\t\t\t{\n\t\t\t\ttool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tskill_metadata: skillMetadata,\n\t\t\t\tstatus: \"MAESTRO_TOOL_CALL_STATUS_SUCCEEDED\",\n\t\t\t\tduration: \"1.111s\",\n\t\t\t\tsafe_output: {\n\t\t\t\t\tsummary: \"Skill selected incident review workflow\",\n\t\t\t\t},\n\t\t\t\tcompleted_at: eventPlan[3].time,\n\t\t\t},\n\t\t\t3,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.SkillInvoked,\n\t\t\t{\n\t\t\t\tinvocation_id: \"invocation_platform_replay_skill_001\",\n\t\t\t\tskill_id: SKILL_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tskill_metadata: skillMetadata,\n\t\t\t\ttool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\t\tinvoked_at: eventPlan[4].time,\n\t\t\t},\n\t\t\t4,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.ApprovalHit,\n\t\t\t{\n\t\t\t\tapproval_request_id: APPROVAL_REQUEST_ID,\n\t\t\t\tgovernance_decision_id: \"governance_decision_platform_replay_001\",\n\t\t\t\taction: \"Run workspace test command\",\n\t\t\t\tcommand: \"bunx vitest --run test/telemetry\",\n\t\t\t\trisk_level: \"RISK_LEVEL_MEDIUM\",\n\t\t\t\tdecision_mode: \"MAESTRO_DECISION_MODE_REQUIRE_APPROVAL\",\n\t\t\t\tpolicy_id: \"policy_workspace_test_approval\",\n\t\t\t\treason: \"fixture approval path\",\n\t\t\t\tcontext: {\n\t\t\t\t\ttool_name: \"Bash\",\n\t\t\t\t\tdisplay_name: \"Bash\",\n\t\t\t\t\tsummary_label: \"Bash\",\n\t\t\t\t\targs: {\n\t\t\t\t\t\tcommand: \"bunx vitest --run test/telemetry\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\toccurred_at: eventPlan[5].time,\n\t\t\t},\n\t\t\t5,\n\t\t\tBASH_TOOL_CALL_ID,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.ToolCallAttempted,\n\t\t\t{\n\t\t\t\ttool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\ttool_namespace: \"builtin\",\n\t\t\t\ttool_name: \"Bash\",\n\t\t\t\ttool_version: \"1\",\n\t\t\t\tcapability: \"workspace:test\",\n\t\t\t\tmutates_resource: false,\n\t\t\t\trisk_level: \"RISK_LEVEL_MEDIUM\",\n\t\t\t\tsafe_arguments: {\n\t\t\t\t\tcommand_summary: \"bunx vitest --run test/telemetry\",\n\t\t\t\t},\n\t\t\t\tredactions: [\"raw_command\"],\n\t\t\t\tidempotency_key: \"idempotency_platform_replay_bash_001\",\n\t\t\t\tattempted_at: eventPlan[6].time,\n\t\t\t},\n\t\t\t6,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.ToolCallCompleted,\n\t\t\t{\n\t\t\t\ttool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tskill_metadata: skillMetadata,\n\t\t\t\tapproval_request_id: APPROVAL_REQUEST_ID,\n\t\t\t\tstatus: \"MAESTRO_TOOL_CALL_STATUS_SUCCEEDED\",\n\t\t\t\tduration: \"2.345s\",\n\t\t\t\tsafe_output: {\n\t\t\t\t\texit_code: 0,\n\t\t\t\t\tsummary: \"8 telemetry tests passed\",\n\t\t\t\t},\n\t\t\t\tredactions: [\"stdout\"],\n\t\t\t\tcompleted_at: eventPlan[7].time,\n\t\t\t},\n\t\t\t7,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.EvalScored,\n\t\t\t{\n\t\t\t\teval_run_id: \"eval_run_platform_replay_001\",\n\t\t\t\tscenario_id: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tskill_metadata: skillMetadata,\n\t\t\t\ttool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\ttool_name: \"Bash\",\n\t\t\t\tscore: 0.82,\n\t\t\t\tpassed: false,\n\t\t\t\tthreshold: 0.9,\n\t\t\t\tscorer: \"fermata.replay.score\",\n\t\t\t\trationale: \"formatting checks failed\",\n\t\t\t\tassertion_count: 1,\n\t\t\t\tscored_at: eventPlan[8].time,\n\t\t\t},\n\t\t\t8,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.SkillFailed,\n\t\t\t{\n\t\t\t\tinvocation_id: \"invocation_platform_replay_skill_001\",\n\t\t\t\tskill_id: SKILL_ID,\n\t\t\t\tprompt_metadata: promptMetadata,\n\t\t\t\tskill_metadata: skillMetadata,\n\t\t\t\ttool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\t\tturn_status: \"evaluation_failed\",\n\t\t\t\terror_category: \"evaluation\",\n\t\t\t\terror_message: \"formatting checks failed\",\n\t\t\t\tevaluation_tool_name: \"Bash\",\n\t\t\t\tevaluation_tool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\tevaluation_tool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\tevaluation_score: 0.82,\n\t\t\t\tevaluation_threshold: 0.9,\n\t\t\t\tevaluation_assertion_count: 1,\n\t\t\t\tevaluation_rationale: \"formatting checks failed\",\n\t\t\t\toutcome_at: eventPlan[9].time,\n\t\t\t},\n\t\t\t9,\n\t\t),\n\t\teventFor(\n\t\t\tMaestroBusEventType.SessionClosed,\n\t\t\t{\n\t\t\t\tstate: \"MAESTRO_SESSION_STATE_CLOSED\",\n\t\t\t\tsurface: \"MAESTRO_SURFACE_WEB\",\n\t\t\t\truntime_mode: \"MAESTRO_RUNTIME_MODE_HOSTED\",\n\t\t\t\tprincipal,\n\t\t\t\tworkspace_root: \"/workspace/evalops/platform-replay\",\n\t\t\t\trepository: \"evalops/maestro-internal\",\n\t\t\t\tgit_ref: \"refs/heads/codex/maestro-platform-replay-fixture\",\n\t\t\t\truntime_version: \"0.0.0-fixture\",\n\t\t\t\trunner_profile: \"hosted-standard\",\n\t\t\t\tclosed_at: eventPlan[10].time,\n\t\t\t\tclose_reason: \"MAESTRO_CLOSE_REASON_COMPLETED\",\n\t\t\t\tclose_message: \"fixture run complete\",\n\t\t\t},\n\t\t\t10,\n\t\t),\n\t];\n}\n\nexport function buildCanonicalMaestroPlatformReplayFixture(): MaestroPlatformReplayFixture {\n\tconst events = buildEvents();\n\tconst subjects = eventPlan.map((event) => event.type);\n\treturn {\n\t\tfixture_version: \"maestro-platform-replay/v1\",\n\t\tname: CANONICAL_MAESTRO_PLATFORM_REPLAY_FIXTURE_NAME,\n\t\tevent_count: events.length,\n\t\tcorrelation: {\n\t\t\torganization_id: ORGANIZATION_ID,\n\t\t\tworkspace_id: WORKSPACE_ID,\n\t\t\tsession_id: SESSION_ID,\n\t\t\tagent_run_id: AGENT_RUN_ID,\n\t\t\ttool_call_id: BASH_TOOL_CALL_ID,\n\t\t\ttool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\tskill_tool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\tskill_tool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\tapproval_request_id: APPROVAL_REQUEST_ID,\n\t\t},\n\t\tsubjects,\n\t\tevents,\n\t\texpected_assertions: {\n\t\t\trequired_event_types: subjects,\n\t\t\trequired_subjects: subjects,\n\t\t\tplatform_join_keys: {\n\t\t\t\tagent_run_id: AGENT_RUN_ID,\n\t\t\t\tprompt_id: \"prompt_platform_replay_system\",\n\t\t\t\tprompt_version_id: promptMetadata.versionId,\n\t\t\t\tprompt_artifact_hash: promptMetadata.hash,\n\t\t\t\ttool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\ttool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\tevaluation_tool_call_id: BASH_TOOL_CALL_ID,\n\t\t\t\tevaluation_tool_execution_id: BASH_TOOL_EXECUTION_ID,\n\t\t\t\teval_run_id: \"eval_run_platform_replay_001\",\n\t\t\t\tskill_tool_call_id: SKILL_TOOL_CALL_ID,\n\t\t\t\tskill_tool_execution_id: SKILL_TOOL_EXECUTION_ID,\n\t\t\t\tskill_invocation_id: \"invocation_platform_replay_skill_001\",\n\t\t\t\tapproval_request_id: APPROVAL_REQUEST_ID,\n\t\t\t\tskill_id: SKILL_ID,\n\t\t\t},\n\t\t\ttimeline: [\n\t\t\t\t{\n\t\t\t\t\ttype: MaestroBusEventType.SessionStarted,\n\t\t\t\t\ttitle: \"Session started\",\n\t\t\t\t\tvisible: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: MaestroBusEventType.ApprovalHit,\n\t\t\t\t\ttitle: \"Approval required\",\n\t\t\t\t\tvisible: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: MaestroBusEventType.ToolCallCompleted,\n\t\t\t\t\ttitle: \"Tool completed\",\n\t\t\t\t\tvisible: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: MaestroBusEventType.EvalScored,\n\t\t\t\t\ttitle: \"Evaluation scored\",\n\t\t\t\t\tvisible: true,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttype: MaestroBusEventType.SessionClosed,\n\t\t\t\t\ttitle: \"Session closed\",\n\t\t\t\t\tvisible: true,\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t};\n}\n\nexport function canonicalMaestroPlatformReplayFixtureJson(): string {\n\treturn `${JSON.stringify(buildCanonicalMaestroPlatformReplayFixture(), null, 2)}\\n`;\n}\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MaestroBusEventType, type MaestroCloudEvent } from "./maestro-event-bus.js";
|
|
2
|
+
export declare const CANONICAL_MAESTRO_PUBLISHER_CONFORMANCE_FIXTURE_NAME = "maestro-publisher-critical-path";
|
|
3
|
+
export type MaestroPublisherConformanceFixtureEvent = MaestroCloudEvent<Record<string, unknown>>;
|
|
4
|
+
export interface BuildMaestroPublisherConformanceFixtureOptions {
|
|
5
|
+
sourceRevision?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MaestroPublisherConformanceFixture {
|
|
8
|
+
fixture_version: "maestro-publisher-conformance/v1";
|
|
9
|
+
name: typeof CANONICAL_MAESTRO_PUBLISHER_CONFORMANCE_FIXTURE_NAME;
|
|
10
|
+
event_count: number;
|
|
11
|
+
origin: {
|
|
12
|
+
repository: "evalops/maestro";
|
|
13
|
+
issue: "evalops/maestro#49";
|
|
14
|
+
publisher_package: "packages/ai";
|
|
15
|
+
source_paths: string[];
|
|
16
|
+
generated_by: "scripts/generate-maestro-publisher-conformance-fixture.ts";
|
|
17
|
+
source_revision: string;
|
|
18
|
+
};
|
|
19
|
+
subjects: MaestroBusEventType[];
|
|
20
|
+
stable_untyped_keys: Record<string, string[]>;
|
|
21
|
+
expected_assertions: {
|
|
22
|
+
required_event_types: MaestroBusEventType[];
|
|
23
|
+
required_subjects: MaestroBusEventType[];
|
|
24
|
+
};
|
|
25
|
+
events: MaestroPublisherConformanceFixtureEvent[];
|
|
26
|
+
}
|
|
27
|
+
export declare function buildCanonicalMaestroPublisherConformanceFixture(options?: BuildMaestroPublisherConformanceFixtureOptions): Promise<MaestroPublisherConformanceFixture>;
|
|
28
|
+
export declare function canonicalMaestroPublisherConformanceFixtureJson(options?: BuildMaestroPublisherConformanceFixtureOptions): Promise<string>;
|
|
29
|
+
//# sourceMappingURL=maestro-publisher-conformance-fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maestro-publisher-conformance-fixture.d.ts","sourceRoot":"","sources":["../../src/telemetry/maestro-publisher-conformance-fixture.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,mBAAmB,EACnB,KAAK,iBAAiB,EAOtB,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,oDAAoD,oCAC/B,CAAC;AAuFnC,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,CACtE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACvB,CAAC;AAEF,MAAM,WAAW,8CAA8C;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kCAAkC;IAClD,eAAe,EAAE,kCAAkC,CAAC;IACpD,IAAI,EAAE,OAAO,oDAAoD,CAAC;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACP,UAAU,EAAE,iBAAiB,CAAC;QAC9B,KAAK,EAAE,oBAAoB,CAAC;QAC5B,iBAAiB,EAAE,aAAa,CAAC;QACjC,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,YAAY,EAAE,2DAA2D,CAAC;QAC1E,eAAe,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,mBAAmB,EAAE;QACpB,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;QAC5C,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;KACzC,CAAC;IACF,MAAM,EAAE,uCAAuC,EAAE,CAAC;CAClD;AAkID,wBAAsB,gDAAgD,CACrE,OAAO,GAAE,8CAAmD,GAC1D,OAAO,CAAC,kCAAkC,CAAC,CAyC7C;AAED,wBAAsB,+CAA+C,CACpE,OAAO,GAAE,8CAAmD,GAC1D,OAAO,CAAC,MAAM,CAAC,CAMjB"}
|