@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
package/dist/agent/agent.js
CHANGED
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
* @module agent/agent
|
|
81
81
|
*/
|
|
82
82
|
import { validate as uuidValidate } from "uuid";
|
|
83
|
+
import { buildDiagnosticRepairFollowUpMessage, getDiagnosticDeltaFromToolResult, hasDiagnosticRepairOptOut, } from "../lsp/diagnostic-repair.js";
|
|
84
|
+
import { recordMaestroEvalScored, recordMaestroSkillInvoked, recordMaestroSkillOutcome, recordMaestroToolCallAttempt, recordMaestroToolCallCompleted, } from "../telemetry/maestro-event-bus.js";
|
|
85
|
+
import { createQueryProfilerFromEnv } from "../utils/checkpoint-profiler.js";
|
|
83
86
|
import { createLogger } from "../utils/logger.js";
|
|
84
87
|
import { describeToolActivity, describeToolDisplayName, summarizeToolBatch, summarizeToolUse, } from "../utils/tool-use-summary.js";
|
|
85
88
|
import { AgentContextManager, } from "./context-manager.js";
|
|
@@ -88,6 +91,63 @@ import { convertAppMessagesToLlm, isCoreMessage } from "./custom-messages.js";
|
|
|
88
91
|
import { chainPreprocessMessages, defaultPreprocessMessages, } from "./preprocess-messages.js";
|
|
89
92
|
import { isAssistantMessage } from "./type-guards.js";
|
|
90
93
|
const logger = createLogger("agent");
|
|
94
|
+
function getToolEvaluationSummary(details) {
|
|
95
|
+
if (!details || typeof details !== "object" || Array.isArray(details)) {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
const normalized = details;
|
|
99
|
+
if (!normalized.evaluation ||
|
|
100
|
+
typeof normalized.evaluation !== "object" ||
|
|
101
|
+
Array.isArray(normalized.evaluation)) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
const evaluation = normalized.evaluation;
|
|
105
|
+
const summary = {};
|
|
106
|
+
if (typeof evaluation.score === "number" &&
|
|
107
|
+
Number.isFinite(evaluation.score)) {
|
|
108
|
+
summary.score = evaluation.score;
|
|
109
|
+
}
|
|
110
|
+
if (typeof evaluation.threshold === "number" &&
|
|
111
|
+
Number.isFinite(evaluation.threshold)) {
|
|
112
|
+
summary.threshold = evaluation.threshold;
|
|
113
|
+
}
|
|
114
|
+
if (typeof evaluation.passed === "boolean") {
|
|
115
|
+
summary.passed = evaluation.passed;
|
|
116
|
+
}
|
|
117
|
+
if (typeof evaluation.rationale === "string" &&
|
|
118
|
+
evaluation.rationale.trim().length > 0) {
|
|
119
|
+
summary.rationale = evaluation.rationale.trim();
|
|
120
|
+
}
|
|
121
|
+
if (Array.isArray(normalized.assertions) &&
|
|
122
|
+
normalized.assertions.length > 0) {
|
|
123
|
+
summary.assertionCount = normalized.assertions.length;
|
|
124
|
+
}
|
|
125
|
+
return Object.keys(summary).length > 0 ? summary : undefined;
|
|
126
|
+
}
|
|
127
|
+
function isFailedToolEvaluation(summary) {
|
|
128
|
+
if (summary.passed === false) {
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
if (summary.passed === true) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
return (typeof summary.score === "number" &&
|
|
135
|
+
typeof summary.threshold === "number" &&
|
|
136
|
+
summary.score < summary.threshold);
|
|
137
|
+
}
|
|
138
|
+
function buildEvaluationFailureMessage(failure) {
|
|
139
|
+
if (failure.rationale) {
|
|
140
|
+
return failure.rationale;
|
|
141
|
+
}
|
|
142
|
+
if (typeof failure.score === "number" &&
|
|
143
|
+
typeof failure.threshold === "number") {
|
|
144
|
+
return `Eval score ${failure.score} below threshold ${failure.threshold}`;
|
|
145
|
+
}
|
|
146
|
+
if (typeof failure.score === "number") {
|
|
147
|
+
return `Eval score ${failure.score} did not pass`;
|
|
148
|
+
}
|
|
149
|
+
return "Selected skill failed evaluation";
|
|
150
|
+
}
|
|
91
151
|
/**
|
|
92
152
|
* Default message transformer that converts app messages to LLM-ready format.
|
|
93
153
|
*
|
|
@@ -163,6 +223,9 @@ function mapThinkingLevel(level) {
|
|
|
163
223
|
case "medium":
|
|
164
224
|
return "medium"; // Moderate depth
|
|
165
225
|
case "high":
|
|
226
|
+
return "high"; // Thorough reasoning
|
|
227
|
+
case "ultra":
|
|
228
|
+
return "ultra"; // Provider max where supported
|
|
166
229
|
case "max":
|
|
167
230
|
return "high"; // Maximum reasoning (max maps to high for providers)
|
|
168
231
|
default:
|
|
@@ -382,6 +445,8 @@ export class Agent {
|
|
|
382
445
|
this.completedToolBatch = [];
|
|
383
446
|
this.suppressRecoverableOverflowErrors = false;
|
|
384
447
|
this.withheldRecoverableLengthMessages = [];
|
|
448
|
+
this.diagnosticRepairAttempts = new Map();
|
|
449
|
+
this.currentTurnSkillSelections = new Map();
|
|
385
450
|
/** Tracks if a partial message was accepted during abort */
|
|
386
451
|
this._partialAccepted = null;
|
|
387
452
|
this.transport = opts.transport;
|
|
@@ -679,10 +744,13 @@ export class Agent {
|
|
|
679
744
|
* This is useful before starting a fresh run, or after operations like
|
|
680
745
|
* compaction that rewrite history while the agent is otherwise idle.
|
|
681
746
|
*/
|
|
682
|
-
clearTransientRunState() {
|
|
747
|
+
clearTransientRunState(options) {
|
|
683
748
|
this._state.isStreaming = false;
|
|
684
749
|
this._state.streamMessage = null;
|
|
685
750
|
this._state.pendingToolCalls.clear();
|
|
751
|
+
if (options?.clearSessionContextCache) {
|
|
752
|
+
this.contextManager.clearSessionCache();
|
|
753
|
+
}
|
|
686
754
|
this.activeToolBatchIds = null;
|
|
687
755
|
this.completedToolBatch = [];
|
|
688
756
|
this.promptOnlyQueue = [];
|
|
@@ -693,6 +761,8 @@ export class Agent {
|
|
|
693
761
|
this.withheldRecoverableLengthMessages = [];
|
|
694
762
|
}
|
|
695
763
|
this._partialAccepted = null;
|
|
764
|
+
this.currentTurnEvaluationFailure = undefined;
|
|
765
|
+
this.currentTurnSkillSelections.clear();
|
|
696
766
|
}
|
|
697
767
|
setRecoverableOverflowErrorSuppression(enabled) {
|
|
698
768
|
this.suppressRecoverableOverflowErrors = enabled;
|
|
@@ -1015,6 +1085,9 @@ export class Agent {
|
|
|
1015
1085
|
this.withheldRecoverableLengthMessages = [];
|
|
1016
1086
|
this.pendingMergedRecoverableTurnEnd = undefined;
|
|
1017
1087
|
this.currentTaskBudget = undefined;
|
|
1088
|
+
this.diagnosticRepairAttempts.clear();
|
|
1089
|
+
this.currentTurnEvaluationFailure = undefined;
|
|
1090
|
+
this.currentTurnSkillSelections.clear();
|
|
1018
1091
|
// Note: Do NOT clear listeners - they contain the TUI subscription
|
|
1019
1092
|
// and must persist across resets for UI updates to work
|
|
1020
1093
|
}
|
|
@@ -1161,6 +1234,8 @@ export class Agent {
|
|
|
1161
1234
|
if (this.runningPrompt) {
|
|
1162
1235
|
throw new Error("A prompt is already in progress. Wait for it to complete before starting another.");
|
|
1163
1236
|
}
|
|
1237
|
+
const queryProfiler = createQueryProfilerFromEnv();
|
|
1238
|
+
queryProfiler.checkpoint("input:received");
|
|
1164
1239
|
this.clearTransientRunState();
|
|
1165
1240
|
// Set up running prompt tracking
|
|
1166
1241
|
this.runningPrompt = new Promise((resolve) => {
|
|
@@ -1186,6 +1261,9 @@ export class Agent {
|
|
|
1186
1261
|
try {
|
|
1187
1262
|
const transformedMessages = await this.messageTransformer(this._state.messages);
|
|
1188
1263
|
const messagesToSend = this.buildProviderMessages(transformedMessages);
|
|
1264
|
+
queryProfiler.checkpoint("context:loaded", {
|
|
1265
|
+
messages: messagesToSend.length,
|
|
1266
|
+
});
|
|
1189
1267
|
// Determine reasoning level
|
|
1190
1268
|
const level = this._state.thinkingLevel;
|
|
1191
1269
|
const reasoning = this._state.model.reasoning
|
|
@@ -1209,6 +1287,9 @@ export class Agent {
|
|
|
1209
1287
|
stack: error instanceof Error ? error.stack : undefined,
|
|
1210
1288
|
});
|
|
1211
1289
|
}
|
|
1290
|
+
queryProfiler.checkpoint("prompt:assembled", {
|
|
1291
|
+
system_bytes: systemPrompt.length,
|
|
1292
|
+
});
|
|
1212
1293
|
const runConfig = {
|
|
1213
1294
|
systemPrompt,
|
|
1214
1295
|
tools: this._state.tools,
|
|
@@ -1225,7 +1306,11 @@ export class Agent {
|
|
|
1225
1306
|
temperature: this._state.temperature,
|
|
1226
1307
|
topP: this._state.topP,
|
|
1227
1308
|
taskBudget: this.currentTaskBudget,
|
|
1309
|
+
queryProfiler,
|
|
1228
1310
|
};
|
|
1311
|
+
queryProfiler.checkpoint("tools:prepared", {
|
|
1312
|
+
tools: this._state.tools.length,
|
|
1313
|
+
});
|
|
1229
1314
|
for await (const event of this.transport.run(messagesToSend, // Include userMessage in messages array
|
|
1230
1315
|
userMessage, runConfig, abortController.signal)) {
|
|
1231
1316
|
if (event.type === "message_start" ||
|
|
@@ -1270,10 +1355,12 @@ export class Agent {
|
|
|
1270
1355
|
catch (error) {
|
|
1271
1356
|
if (error instanceof Error && error.name === "AbortError") {
|
|
1272
1357
|
aborted = true;
|
|
1358
|
+
queryProfiler.terminal("turn:aborted");
|
|
1273
1359
|
}
|
|
1274
1360
|
else {
|
|
1275
1361
|
this._state.error =
|
|
1276
1362
|
error instanceof Error ? error.message : String(error);
|
|
1363
|
+
queryProfiler.terminal("turn:error");
|
|
1277
1364
|
throw error;
|
|
1278
1365
|
}
|
|
1279
1366
|
}
|
|
@@ -1294,6 +1381,10 @@ export class Agent {
|
|
|
1294
1381
|
}
|
|
1295
1382
|
const partialAccepted = this._partialAccepted;
|
|
1296
1383
|
this._partialAccepted = null;
|
|
1384
|
+
this.publishCurrentTurnSkillOutcomes({
|
|
1385
|
+
aborted,
|
|
1386
|
+
stopReason: lastStopReason,
|
|
1387
|
+
});
|
|
1297
1388
|
this.emit({
|
|
1298
1389
|
type: "agent_end",
|
|
1299
1390
|
messages: this._state.messages,
|
|
@@ -1318,6 +1409,8 @@ export class Agent {
|
|
|
1318
1409
|
if (this._state.messages.length === 0) {
|
|
1319
1410
|
throw new Error("No messages to continue from");
|
|
1320
1411
|
}
|
|
1412
|
+
const queryProfiler = createQueryProfilerFromEnv();
|
|
1413
|
+
queryProfiler.checkpoint("input:received", { continuation: true });
|
|
1321
1414
|
this.clearTransientRunState();
|
|
1322
1415
|
// Set up running prompt tracking
|
|
1323
1416
|
this.runningPrompt = new Promise((resolve) => {
|
|
@@ -1337,6 +1430,9 @@ export class Agent {
|
|
|
1337
1430
|
const transformedMessages = await this.messageTransformer(this._state.messages);
|
|
1338
1431
|
const continuationPrompt = options?.continuationPrompt?.trim();
|
|
1339
1432
|
const providerMessages = this.buildProviderMessages(transformedMessages, continuationPrompt);
|
|
1433
|
+
queryProfiler.checkpoint("context:loaded", {
|
|
1434
|
+
messages: providerMessages.length,
|
|
1435
|
+
});
|
|
1340
1436
|
// Determine reasoning level
|
|
1341
1437
|
const level = this._state.thinkingLevel;
|
|
1342
1438
|
const reasoning = this._state.model.reasoning
|
|
@@ -1359,6 +1455,9 @@ export class Agent {
|
|
|
1359
1455
|
error: error instanceof Error ? error.message : String(error),
|
|
1360
1456
|
});
|
|
1361
1457
|
}
|
|
1458
|
+
queryProfiler.checkpoint("prompt:assembled", {
|
|
1459
|
+
system_bytes: systemPrompt.length,
|
|
1460
|
+
});
|
|
1362
1461
|
// Create a synthetic continuation trigger message
|
|
1363
1462
|
// This signals to the transport that we want the model to continue responding
|
|
1364
1463
|
const continuationMessage = {
|
|
@@ -1388,7 +1487,11 @@ export class Agent {
|
|
|
1388
1487
|
topP: this._state.topP,
|
|
1389
1488
|
taskBudget: this.currentTaskBudget,
|
|
1390
1489
|
emitUserMessageEnd: false,
|
|
1490
|
+
queryProfiler,
|
|
1391
1491
|
};
|
|
1492
|
+
queryProfiler.checkpoint("tools:prepared", {
|
|
1493
|
+
tools: this._state.tools.length,
|
|
1494
|
+
});
|
|
1392
1495
|
for await (const event of this.transport.run(providerMessages, continuationMessage, runConfig, abortController.signal)) {
|
|
1393
1496
|
if (event.type === "message_start" ||
|
|
1394
1497
|
event.type === "message_update" ||
|
|
@@ -1432,10 +1535,12 @@ export class Agent {
|
|
|
1432
1535
|
catch (error) {
|
|
1433
1536
|
if (error instanceof Error && error.name === "AbortError") {
|
|
1434
1537
|
aborted = true;
|
|
1538
|
+
queryProfiler.terminal("turn:aborted");
|
|
1435
1539
|
}
|
|
1436
1540
|
else {
|
|
1437
1541
|
this._state.error =
|
|
1438
1542
|
error instanceof Error ? error.message : String(error);
|
|
1543
|
+
queryProfiler.terminal("turn:error");
|
|
1439
1544
|
throw error;
|
|
1440
1545
|
}
|
|
1441
1546
|
}
|
|
@@ -1456,6 +1561,10 @@ export class Agent {
|
|
|
1456
1561
|
}
|
|
1457
1562
|
const partialAccepted = this._partialAccepted;
|
|
1458
1563
|
this._partialAccepted = null;
|
|
1564
|
+
this.publishCurrentTurnSkillOutcomes({
|
|
1565
|
+
aborted,
|
|
1566
|
+
stopReason: lastStopReason,
|
|
1567
|
+
});
|
|
1459
1568
|
this.emit({
|
|
1460
1569
|
type: "agent_end",
|
|
1461
1570
|
messages: this._state.messages,
|
|
@@ -1476,6 +1585,17 @@ export class Agent {
|
|
|
1476
1585
|
displayName,
|
|
1477
1586
|
summaryLabel,
|
|
1478
1587
|
});
|
|
1588
|
+
recordMaestroToolCallAttempt({
|
|
1589
|
+
tool_call_id: event.toolCallId,
|
|
1590
|
+
tool_execution_id: event.toolExecutionId,
|
|
1591
|
+
prompt_metadata: this._state.promptMetadata,
|
|
1592
|
+
tool_name: event.toolName,
|
|
1593
|
+
safe_arguments: event.args,
|
|
1594
|
+
correlation: {
|
|
1595
|
+
session_id: this._state.session?.id,
|
|
1596
|
+
agent_run_step_id: event.toolCallId,
|
|
1597
|
+
},
|
|
1598
|
+
});
|
|
1479
1599
|
this.emitStatus(describeToolActivity(event.toolName, event.args, tool), {
|
|
1480
1600
|
kind: "tool_execution_summary",
|
|
1481
1601
|
toolCallId: event.toolCallId,
|
|
@@ -1515,6 +1635,50 @@ export class Agent {
|
|
|
1515
1635
|
displayName: pending?.displayName,
|
|
1516
1636
|
summaryLabel: pending?.summaryLabel,
|
|
1517
1637
|
});
|
|
1638
|
+
recordMaestroToolCallCompleted({
|
|
1639
|
+
tool_call_id: event.toolCallId,
|
|
1640
|
+
tool_execution_id: event.toolExecutionId,
|
|
1641
|
+
prompt_metadata: this._state.promptMetadata,
|
|
1642
|
+
status: event.isError
|
|
1643
|
+
? "MAESTRO_TOOL_CALL_STATUS_FAILED"
|
|
1644
|
+
: "MAESTRO_TOOL_CALL_STATUS_SUCCEEDED",
|
|
1645
|
+
skill_metadata: event.skillMetadata,
|
|
1646
|
+
approval_request_id: event.approvalRequestId,
|
|
1647
|
+
governed_outcome: event.governedOutcome,
|
|
1648
|
+
error_code: event.errorCode,
|
|
1649
|
+
error_message: event.isError
|
|
1650
|
+
? event.result.content
|
|
1651
|
+
.map((part) => (part.type === "text" ? part.text : ""))
|
|
1652
|
+
.filter(Boolean)
|
|
1653
|
+
.join("\n")
|
|
1654
|
+
: undefined,
|
|
1655
|
+
correlation: {
|
|
1656
|
+
session_id: this._state.session?.id,
|
|
1657
|
+
agent_run_step_id: event.toolCallId,
|
|
1658
|
+
},
|
|
1659
|
+
});
|
|
1660
|
+
if (event.skillMetadata) {
|
|
1661
|
+
this.recordCurrentTurnSkillSelection({
|
|
1662
|
+
skillMetadata: event.skillMetadata,
|
|
1663
|
+
toolCallId: event.toolCallId,
|
|
1664
|
+
toolExecutionId: event.toolExecutionId,
|
|
1665
|
+
});
|
|
1666
|
+
if (event.toolName === "Skill") {
|
|
1667
|
+
recordMaestroSkillInvoked({
|
|
1668
|
+
prompt_metadata: this._state.promptMetadata,
|
|
1669
|
+
skill_metadata: event.skillMetadata,
|
|
1670
|
+
tool_call_id: event.toolCallId,
|
|
1671
|
+
tool_execution_id: event.toolExecutionId,
|
|
1672
|
+
correlation: {
|
|
1673
|
+
session_id: this._state.session?.id,
|
|
1674
|
+
agent_run_step_id: event.toolCallId,
|
|
1675
|
+
},
|
|
1676
|
+
invoked_at: new Date(event.result.timestamp).toISOString(),
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
this.publishCurrentTurnEvalScores(event);
|
|
1681
|
+
this.handleDiagnosticDeltaToolResult(event);
|
|
1518
1682
|
if (!pending) {
|
|
1519
1683
|
return;
|
|
1520
1684
|
}
|
|
@@ -1533,6 +1697,209 @@ export class Agent {
|
|
|
1533
1697
|
this.emitToolBatchSummary();
|
|
1534
1698
|
}
|
|
1535
1699
|
}
|
|
1700
|
+
buildSkillSelectionKey(skillMetadata) {
|
|
1701
|
+
return [
|
|
1702
|
+
skillMetadata.artifactId,
|
|
1703
|
+
skillMetadata.source,
|
|
1704
|
+
skillMetadata.name,
|
|
1705
|
+
skillMetadata.version,
|
|
1706
|
+
skillMetadata.hash,
|
|
1707
|
+
]
|
|
1708
|
+
.filter(Boolean)
|
|
1709
|
+
.join(":");
|
|
1710
|
+
}
|
|
1711
|
+
recordCurrentTurnSkillSelection(selection) {
|
|
1712
|
+
const key = this.buildSkillSelectionKey(selection.skillMetadata);
|
|
1713
|
+
if (!key) {
|
|
1714
|
+
return;
|
|
1715
|
+
}
|
|
1716
|
+
const existing = this.currentTurnSkillSelections.get(key);
|
|
1717
|
+
this.currentTurnSkillSelections.set(key, {
|
|
1718
|
+
...existing,
|
|
1719
|
+
...selection,
|
|
1720
|
+
evaluationFailure: existing?.evaluationFailure,
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
getCurrentTurnSkillSelectionForEvaluation(event) {
|
|
1724
|
+
if (event.skillMetadata) {
|
|
1725
|
+
return this.currentTurnSkillSelections.get(this.buildSkillSelectionKey(event.skillMetadata));
|
|
1726
|
+
}
|
|
1727
|
+
if (this.currentTurnSkillSelections.size === 1) {
|
|
1728
|
+
for (const selection of this.currentTurnSkillSelections.values()) {
|
|
1729
|
+
return selection;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
return undefined;
|
|
1733
|
+
}
|
|
1734
|
+
publishCurrentTurnEvalScores(event) {
|
|
1735
|
+
const evaluation = getToolEvaluationSummary(event.result.details);
|
|
1736
|
+
if (!evaluation || this.currentTurnSkillSelections.size === 0) {
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
const scoredAt = new Date(event.result.timestamp).toISOString();
|
|
1740
|
+
const failedEvaluation = isFailedToolEvaluation(evaluation)
|
|
1741
|
+
? {
|
|
1742
|
+
toolCallId: event.toolCallId,
|
|
1743
|
+
toolExecutionId: event.toolExecutionId,
|
|
1744
|
+
toolName: event.toolName,
|
|
1745
|
+
score: evaluation.score,
|
|
1746
|
+
threshold: evaluation.threshold,
|
|
1747
|
+
rationale: evaluation.rationale,
|
|
1748
|
+
assertionCount: evaluation.assertionCount,
|
|
1749
|
+
}
|
|
1750
|
+
: undefined;
|
|
1751
|
+
const evaluationTarget = failedEvaluation
|
|
1752
|
+
? this.getCurrentTurnSkillSelectionForEvaluation(event)
|
|
1753
|
+
: undefined;
|
|
1754
|
+
if (failedEvaluation) {
|
|
1755
|
+
this.currentTurnEvaluationFailure = failedEvaluation;
|
|
1756
|
+
}
|
|
1757
|
+
if (failedEvaluation && evaluationTarget) {
|
|
1758
|
+
evaluationTarget.evaluationFailure = failedEvaluation;
|
|
1759
|
+
}
|
|
1760
|
+
for (const selection of this.currentTurnSkillSelections.values()) {
|
|
1761
|
+
recordMaestroEvalScored({
|
|
1762
|
+
prompt_metadata: this._state.promptMetadata,
|
|
1763
|
+
skill_metadata: selection.skillMetadata,
|
|
1764
|
+
tool_call_id: event.toolCallId,
|
|
1765
|
+
tool_execution_id: event.toolExecutionId,
|
|
1766
|
+
tool_name: event.toolName,
|
|
1767
|
+
score: evaluation.score,
|
|
1768
|
+
threshold: evaluation.threshold,
|
|
1769
|
+
passed: evaluation.passed,
|
|
1770
|
+
rationale: evaluation.rationale,
|
|
1771
|
+
assertion_count: evaluation.assertionCount,
|
|
1772
|
+
correlation: {
|
|
1773
|
+
session_id: this._state.session?.id,
|
|
1774
|
+
agent_run_step_id: event.toolCallId,
|
|
1775
|
+
},
|
|
1776
|
+
scored_at: scoredAt,
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
publishCurrentTurnSkillOutcomes(options) {
|
|
1781
|
+
if (this.currentTurnSkillSelections.size === 0) {
|
|
1782
|
+
return;
|
|
1783
|
+
}
|
|
1784
|
+
const baseTurnStatus = options.aborted
|
|
1785
|
+
? "aborted"
|
|
1786
|
+
: this._state.error !== undefined
|
|
1787
|
+
? "error"
|
|
1788
|
+
: undefined;
|
|
1789
|
+
for (const selection of this.currentTurnSkillSelections.values()) {
|
|
1790
|
+
const evaluationFailure = selection.evaluationFailure;
|
|
1791
|
+
const turnStatus = baseTurnStatus ??
|
|
1792
|
+
(evaluationFailure || this.currentTurnEvaluationFailure
|
|
1793
|
+
? "evaluation_failed"
|
|
1794
|
+
: "success");
|
|
1795
|
+
const outcomeEvaluationFailure = evaluationFailure ?? this.currentTurnEvaluationFailure;
|
|
1796
|
+
const errorMessage = turnStatus === "aborted"
|
|
1797
|
+
? "Operation aborted"
|
|
1798
|
+
: turnStatus === "error"
|
|
1799
|
+
? this._state.error
|
|
1800
|
+
: turnStatus === "evaluation_failed" && outcomeEvaluationFailure
|
|
1801
|
+
? buildEvaluationFailureMessage(outcomeEvaluationFailure)
|
|
1802
|
+
: undefined;
|
|
1803
|
+
recordMaestroSkillOutcome({
|
|
1804
|
+
prompt_metadata: this._state.promptMetadata,
|
|
1805
|
+
skill_metadata: selection.skillMetadata,
|
|
1806
|
+
tool_call_id: selection.toolCallId,
|
|
1807
|
+
tool_execution_id: selection.toolExecutionId,
|
|
1808
|
+
turn_status: turnStatus,
|
|
1809
|
+
error_category: turnStatus === "success"
|
|
1810
|
+
? undefined
|
|
1811
|
+
: turnStatus === "evaluation_failed"
|
|
1812
|
+
? "evaluation"
|
|
1813
|
+
: "runtime",
|
|
1814
|
+
error_message: errorMessage,
|
|
1815
|
+
evaluation_tool_name: evaluationFailure?.toolName,
|
|
1816
|
+
evaluation_tool_call_id: evaluationFailure?.toolCallId,
|
|
1817
|
+
evaluation_tool_execution_id: evaluationFailure?.toolExecutionId,
|
|
1818
|
+
evaluation_score: evaluationFailure?.score,
|
|
1819
|
+
evaluation_threshold: evaluationFailure?.threshold,
|
|
1820
|
+
evaluation_assertion_count: evaluationFailure?.assertionCount,
|
|
1821
|
+
evaluation_rationale: evaluationFailure?.rationale,
|
|
1822
|
+
stop_reason: options.stopReason,
|
|
1823
|
+
correlation: {
|
|
1824
|
+
session_id: this._state.session?.id,
|
|
1825
|
+
},
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
this.currentTurnEvaluationFailure = undefined;
|
|
1829
|
+
this.currentTurnSkillSelections.clear();
|
|
1830
|
+
}
|
|
1831
|
+
handleDiagnosticDeltaToolResult(event) {
|
|
1832
|
+
const summary = getDiagnosticDeltaFromToolResult(event.result);
|
|
1833
|
+
if (!summary) {
|
|
1834
|
+
return;
|
|
1835
|
+
}
|
|
1836
|
+
if (summary.introducedCount === 0 && summary.repairedCount === 0) {
|
|
1837
|
+
return;
|
|
1838
|
+
}
|
|
1839
|
+
const repairKey = [event.toolName, summary.file, summary.fingerprint].join(":");
|
|
1840
|
+
const nextAttempt = (this.diagnosticRepairAttempts.get(repairKey) ?? 0) + 1;
|
|
1841
|
+
const hasPendingUserInput = this.steeringQueue.length > 0 || this.followUpQueue.length > 0;
|
|
1842
|
+
const hasOptOut = hasDiagnosticRepairOptOut(this._state.messages);
|
|
1843
|
+
const canAutoFollowUp = !event.isError &&
|
|
1844
|
+
summary.repair.shouldFollowUp &&
|
|
1845
|
+
!hasPendingUserInput &&
|
|
1846
|
+
!hasOptOut &&
|
|
1847
|
+
nextAttempt <= summary.repair.maxAttempts;
|
|
1848
|
+
const reason = !summary.repair.shouldFollowUp
|
|
1849
|
+
? summary.repair.reason
|
|
1850
|
+
: event.isError
|
|
1851
|
+
? "Tool call failed; leaving diagnostics in the tool result."
|
|
1852
|
+
: hasPendingUserInput
|
|
1853
|
+
? "Queued user input exists; not adding an automatic diagnostic repair turn."
|
|
1854
|
+
: hasOptOut
|
|
1855
|
+
? "User asked Maestro not to continue or repair automatically."
|
|
1856
|
+
: nextAttempt > summary.repair.maxAttempts
|
|
1857
|
+
? "Automatic diagnostic repair attempt limit reached."
|
|
1858
|
+
: "Queued a bounded diagnostic repair follow-up.";
|
|
1859
|
+
if (summary.repair.shouldFollowUp) {
|
|
1860
|
+
this.diagnosticRepairAttempts.set(repairKey, nextAttempt);
|
|
1861
|
+
}
|
|
1862
|
+
this.emit({
|
|
1863
|
+
type: "diagnostic_delta",
|
|
1864
|
+
toolCallId: event.toolCallId,
|
|
1865
|
+
toolName: event.toolName,
|
|
1866
|
+
file: summary.file,
|
|
1867
|
+
displayPath: summary.displayPath,
|
|
1868
|
+
usedDelta: summary.usedDelta,
|
|
1869
|
+
introducedCount: summary.introducedCount,
|
|
1870
|
+
repairedCount: summary.repairedCount,
|
|
1871
|
+
remainingCount: summary.remainingCount,
|
|
1872
|
+
fingerprint: summary.fingerprint,
|
|
1873
|
+
repairAttempt: summary.repair.shouldFollowUp ? nextAttempt : undefined,
|
|
1874
|
+
maxRepairAttempts: summary.repair.shouldFollowUp
|
|
1875
|
+
? summary.repair.maxAttempts
|
|
1876
|
+
: undefined,
|
|
1877
|
+
willAutoFollowUp: canAutoFollowUp,
|
|
1878
|
+
reason,
|
|
1879
|
+
});
|
|
1880
|
+
if (!canAutoFollowUp) {
|
|
1881
|
+
return;
|
|
1882
|
+
}
|
|
1883
|
+
this.enqueueFollowUpMessageSync(buildDiagnosticRepairFollowUpMessage({
|
|
1884
|
+
summary,
|
|
1885
|
+
toolName: event.toolName,
|
|
1886
|
+
toolCallId: event.toolCallId,
|
|
1887
|
+
attempt: nextAttempt,
|
|
1888
|
+
}), "front");
|
|
1889
|
+
}
|
|
1890
|
+
enqueueFollowUpMessageSync(message, position = "back") {
|
|
1891
|
+
const queued = {
|
|
1892
|
+
id: this.nextQueuedMessageId++,
|
|
1893
|
+
createdAt: Date.now(),
|
|
1894
|
+
original: message,
|
|
1895
|
+
llm: message,
|
|
1896
|
+
};
|
|
1897
|
+
if (position === "front") {
|
|
1898
|
+
this.followUpQueue.unshift(queued);
|
|
1899
|
+
return;
|
|
1900
|
+
}
|
|
1901
|
+
this.followUpQueue.push(queued);
|
|
1902
|
+
}
|
|
1536
1903
|
primeToolBatch(message) {
|
|
1537
1904
|
if (message.role !== "assistant" || message.stopReason !== "toolUse") {
|
|
1538
1905
|
return;
|