@evalops/maestro 0.10.50 → 0.10.51
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/dist/agent/agent-outcome.d.ts +54 -0
- package/dist/agent/agent-outcome.d.ts.map +1 -0
- package/dist/agent/agent-outcome.js +142 -0
- package/dist/agent/agent-outcome.js.map +1 -0
- package/dist/agent/agent-resume.d.ts.map +1 -1
- package/dist/agent/agent-resume.js +3 -3
- package/dist/agent/agent-resume.js.map +1 -1
- package/dist/agent/agent-run-summary.d.ts +37 -0
- package/dist/agent/agent-run-summary.d.ts.map +1 -0
- package/dist/agent/agent-run-summary.js +15 -0
- package/dist/agent/agent-run-summary.js.map +1 -0
- package/dist/agent/agent-work-board.d.ts +82 -0
- package/dist/agent/agent-work-board.d.ts.map +1 -0
- package/dist/agent/agent-work-board.js +312 -0
- package/dist/agent/agent-work-board.js.map +1 -0
- package/dist/agent/auto-compaction.d.ts +7 -2
- package/dist/agent/auto-compaction.d.ts.map +1 -1
- package/dist/agent/auto-compaction.js +23 -10
- package/dist/agent/auto-compaction.js.map +1 -1
- package/dist/agent/mission-artifacts.d.ts +62 -0
- package/dist/agent/mission-artifacts.d.ts.map +1 -0
- package/dist/agent/mission-artifacts.js +438 -0
- package/dist/agent/mission-artifacts.js.map +1 -0
- package/dist/agent/mission-manifest.d.ts +139 -3
- package/dist/agent/mission-manifest.d.ts.map +1 -1
- package/dist/agent/mission-manifest.js +549 -3
- package/dist/agent/mission-manifest.js.map +1 -1
- package/dist/agent/mission-store.d.ts +80 -0
- package/dist/agent/mission-store.d.ts.map +1 -0
- package/dist/agent/mission-store.js +603 -0
- package/dist/agent/mission-store.js.map +1 -0
- package/dist/agent/modes.d.ts +2 -2
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +10 -3
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/providers/codex-app-server.d.ts.map +1 -1
- package/dist/agent/providers/codex-app-server.js +1 -3
- package/dist/agent/providers/codex-app-server.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +203 -107
- package/dist/agent/providers/google.js +100 -41
- package/dist/agent/providers/scripted.d.ts.map +1 -1
- package/dist/agent/providers/scripted.js +1 -3
- package/dist/agent/providers/scripted.js.map +1 -1
- package/dist/agent/providers/validation.d.ts.map +1 -1
- package/dist/agent/providers/validation.js +1 -3
- package/dist/agent/providers/validation.js.map +1 -1
- package/dist/agent/providers/vertex.js +203 -107
- package/dist/agent/snapshot-store.d.ts +32 -0
- package/dist/agent/snapshot-store.d.ts.map +1 -0
- package/dist/agent/snapshot-store.js +195 -0
- package/dist/agent/snapshot-store.js.map +1 -0
- package/dist/agent/specialist-profiles.d.ts +36 -0
- package/dist/agent/specialist-profiles.d.ts.map +1 -0
- package/dist/agent/specialist-profiles.js +159 -0
- package/dist/agent/specialist-profiles.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +4 -1
- package/dist/agent/subagent-specs.d.ts.map +1 -1
- package/dist/agent/subagent-specs.js +81 -8
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/swarm/coverage-gate.d.ts +37 -0
- package/dist/agent/swarm/coverage-gate.d.ts.map +1 -0
- package/dist/agent/swarm/coverage-gate.js +48 -0
- package/dist/agent/swarm/coverage-gate.js.map +1 -0
- package/dist/agent/swarm/executor.d.ts +1 -0
- package/dist/agent/swarm/executor.d.ts.map +1 -1
- package/dist/agent/swarm/executor.js +151 -15
- package/dist/agent/swarm/executor.js.map +1 -1
- package/dist/agent/swarm/orchestrator-prompt.d.ts +25 -0
- package/dist/agent/swarm/orchestrator-prompt.d.ts.map +1 -0
- package/dist/agent/swarm/orchestrator-prompt.js +48 -0
- package/dist/agent/swarm/orchestrator-prompt.js.map +1 -0
- package/dist/agent/swarm/plan-parser.d.ts.map +1 -1
- package/dist/agent/swarm/plan-parser.js +27 -2
- package/dist/agent/swarm/plan-parser.js.map +1 -1
- package/dist/agent/swarm/types.d.ts +17 -0
- package/dist/agent/swarm/types.d.ts.map +1 -1
- package/dist/agent/swarm/types.js.map +1 -1
- package/dist/agent/swarm/validation-directive.d.ts +21 -0
- package/dist/agent/swarm/validation-directive.d.ts.map +1 -0
- package/dist/agent/swarm/validation-directive.js +25 -0
- package/dist/agent/swarm/validation-directive.js.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.js +4 -1
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -1
- package/dist/api/enterprise-routes.d.ts.map +1 -1
- package/dist/api/enterprise-routes.js +87 -10
- package/dist/api/enterprise-routes.js.map +1 -1
- package/dist/api/org-settings-merge.d.ts +12 -0
- package/dist/api/org-settings-merge.d.ts.map +1 -0
- package/dist/api/org-settings-merge.js +38 -0
- package/dist/api/org-settings-merge.js.map +1 -0
- package/dist/api/user-settings-merge.d.ts +16 -0
- package/dist/api/user-settings-merge.d.ts.map +1 -0
- package/dist/api/user-settings-merge.js +37 -0
- package/dist/api/user-settings-merge.js.map +1 -0
- package/dist/app-server/daemon-lifecycle-api.d.ts.map +1 -1
- package/dist/app-server/daemon-lifecycle-api.js +1 -3
- package/dist/app-server/daemon-lifecycle-api.js.map +1 -1
- package/dist/app-server/external-agent-import-api.d.ts.map +1 -1
- package/dist/app-server/external-agent-import-api.js +1 -3
- package/dist/app-server/external-agent-import-api.js.map +1 -1
- package/dist/app-server/network-governance-api.d.ts.map +1 -1
- package/dist/app-server/network-governance-api.js +1 -3
- package/dist/app-server/network-governance-api.js.map +1 -1
- package/dist/app-server/plugin-bundle-api.d.ts.map +1 -1
- package/dist/app-server/plugin-bundle-api.js +1 -3
- package/dist/app-server/plugin-bundle-api.js.map +1 -1
- package/dist/app-server/policy-control-api.d.ts.map +1 -1
- package/dist/app-server/policy-control-api.js +1 -3
- package/dist/app-server/policy-control-api.js.map +1 -1
- package/dist/app-server/protocol-modes-api.d.ts.map +1 -1
- package/dist/app-server/protocol-modes-api.js +1 -3
- package/dist/app-server/protocol-modes-api.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 +15 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/a2a.d.ts.map +1 -1
- package/dist/cli/commands/a2a.js +1 -3
- package/dist/cli/commands/a2a.js.map +1 -1
- package/dist/cli/commands/agents.d.ts +4 -0
- package/dist/cli/commands/agents.d.ts.map +1 -1
- package/dist/cli/commands/agents.js +149 -0
- package/dist/cli/commands/agents.js.map +1 -1
- package/dist/cli/commands/mission.d.ts +4 -0
- package/dist/cli/commands/mission.d.ts.map +1 -0
- package/dist/cli/commands/mission.js +196 -0
- package/dist/cli/commands/mission.js.map +1 -0
- package/dist/cli/commands/value.d.ts +10 -0
- package/dist/cli/commands/value.d.ts.map +1 -0
- package/dist/cli/commands/value.js +33 -0
- package/dist/cli/commands/value.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +1 -3
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +10 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/system-prompt.d.ts.map +1 -1
- package/dist/cli/system-prompt.js +38 -7
- package/dist/cli/system-prompt.js.map +1 -1
- package/dist/cli-runtime.js +7756 -2800
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +1 -3
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +1 -1
- package/dist/cli-tui/commands/undo-handlers.d.ts.map +1 -1
- package/dist/cli-tui/commands/undo-handlers.js +7 -2
- package/dist/cli-tui/commands/undo-handlers.js.map +1 -1
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts +3 -0
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +77 -33
- package/dist/cli-tui/tui-renderer/skills-controller.js.map +1 -1
- package/dist/codex/app-server-client.d.ts.map +1 -1
- package/dist/codex/app-server-client.js +1 -3
- package/dist/codex/app-server-client.js.map +1 -1
- package/dist/codex/compatibility.d.ts.map +1 -1
- package/dist/codex/compatibility.js +1 -3
- package/dist/codex/compatibility.js.map +1 -1
- package/dist/codex/subagent-dispatch-table.d.ts +8 -0
- package/dist/codex/subagent-dispatch-table.d.ts.map +1 -1
- package/dist/codex/subagent-dispatch-table.js +23 -0
- package/dist/codex/subagent-dispatch-table.js.map +1 -1
- package/dist/context/manifest.d.ts.map +1 -1
- package/dist/context/manifest.js +1 -3
- package/dist/context/manifest.js.map +1 -1
- package/dist/conversation/render-model.d.ts +0 -36
- package/dist/conversation/render-model.d.ts.map +1 -1
- package/dist/conversation/render-model.js +1 -3
- package/dist/conversation/render-model.js.map +1 -1
- package/dist/customer-value/ambient-learning.d.ts +75 -0
- package/dist/customer-value/ambient-learning.d.ts.map +1 -0
- package/dist/customer-value/ambient-learning.js +472 -0
- package/dist/customer-value/ambient-learning.js.map +1 -0
- package/dist/customer-value/internal-helpers.d.ts +13 -0
- package/dist/customer-value/internal-helpers.d.ts.map +1 -0
- package/dist/customer-value/internal-helpers.js +70 -0
- package/dist/customer-value/internal-helpers.js.map +1 -0
- package/dist/customer-value/report.d.ts +282 -0
- package/dist/customer-value/report.d.ts.map +1 -0
- package/dist/customer-value/report.js +2085 -0
- package/dist/customer-value/report.js.map +1 -0
- package/dist/db/schema.d.ts +5 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/agent-bootstrap.d.ts.map +1 -1
- package/dist/evalops/agent-bootstrap.js +1 -3
- package/dist/evalops/agent-bootstrap.js.map +1 -1
- package/dist/evalops/agent-mcp-metadata.d.ts.map +1 -1
- package/dist/evalops/agent-mcp-metadata.js +1 -3
- package/dist/evalops/agent-mcp-metadata.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/installers/maestro-review-workflow.d.ts +38 -0
- package/dist/installers/maestro-review-workflow.d.ts.map +1 -0
- package/dist/installers/maestro-review-workflow.js +163 -0
- package/dist/installers/maestro-review-workflow.js.map +1 -0
- package/dist/load-env.d.ts.map +1 -1
- package/dist/load-env.js +2 -1
- package/dist/load-env.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +92 -3
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +1 -3
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/elicitation.d.ts.map +1 -1
- package/dist/mcp/elicitation.js +1 -3
- package/dist/mcp/elicitation.js.map +1 -1
- package/dist/mcp/official-registry.d.ts.map +1 -1
- package/dist/mcp/official-registry.js +1 -3
- package/dist/mcp/official-registry.js.map +1 -1
- package/dist/mcp/workspace-trust.d.ts.map +1 -1
- package/dist/mcp/workspace-trust.js +1 -3
- package/dist/mcp/workspace-trust.js.map +1 -1
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +1 -3
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +1 -3
- package/dist/models/config-loader.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +1 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +1 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-settings.d.ts +61 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-settings.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-settings.js +183 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-settings.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/package.json +1 -1
- package/dist/node_modules/@evalops/tui/package.json +1 -1
- package/dist/oauth/connectors.d.ts.map +1 -1
- package/dist/oauth/connectors.js +1 -3
- package/dist/oauth/connectors.js.map +1 -1
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +1 -3
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/platform/a2a-client.d.ts.map +1 -1
- package/dist/platform/a2a-client.js +1 -3
- package/dist/platform/a2a-client.js.map +1 -1
- package/dist/platform/a2a-cockpit.d.ts +1 -0
- package/dist/platform/a2a-cockpit.d.ts.map +1 -1
- package/dist/platform/a2a-cockpit.js +42 -11
- package/dist/platform/a2a-cockpit.js.map +1 -1
- package/dist/platform/a2a-completion-audit.d.ts +1 -1
- package/dist/platform/a2a-completion-audit.d.ts.map +1 -1
- package/dist/platform/a2a-completion-audit.js +7 -11
- package/dist/platform/a2a-completion-audit.js.map +1 -1
- package/dist/platform/a2a-maestro-peer.js +16 -0
- package/dist/platform/a2a-maestro-peer.js.map +1 -1
- package/dist/platform/a2a-peer-pairing.d.ts.map +1 -1
- package/dist/platform/a2a-peer-pairing.js +1 -3
- package/dist/platform/a2a-peer-pairing.js.map +1 -1
- package/dist/platform/a2a-peer-registry.d.ts.map +1 -1
- package/dist/platform/a2a-peer-registry.js +1 -3
- package/dist/platform/a2a-peer-registry.js.map +1 -1
- package/dist/platform/a2a-task-ledger.d.ts +20 -0
- package/dist/platform/a2a-task-ledger.d.ts.map +1 -1
- package/dist/platform/a2a-task-ledger.js +207 -11
- package/dist/platform/a2a-task-ledger.js.map +1 -1
- package/dist/platform/a2a-work-graph.d.ts.map +1 -1
- package/dist/platform/a2a-work-graph.js +1 -3
- package/dist/platform/a2a-work-graph.js.map +1 -1
- package/dist/platform/operating-layer.d.ts.map +1 -1
- package/dist/platform/operating-layer.js +14 -8
- package/dist/platform/operating-layer.js.map +1 -1
- package/dist/platform/tool-execution-client.d.ts.map +1 -1
- package/dist/platform/tool-execution-client.js +19 -2
- package/dist/platform/tool-execution-client.js.map +1 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +1 -3
- package/dist/providers/auth.js.map +1 -1
- package/dist/runtime/env.d.ts +9 -1
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +63 -1
- package/dist/runtime/env.js.map +1 -1
- package/dist/safety/policy.d.ts.map +1 -1
- package/dist/safety/policy.js +1 -4
- package/dist/safety/policy.js.map +1 -1
- package/dist/sandbox/docker-sandbox.d.ts.map +1 -1
- package/dist/sandbox/docker-sandbox.js +6 -1
- package/dist/sandbox/docker-sandbox.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.js +1 -3
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -1
- package/dist/server/handlers/platform-a2a-push.d.ts.map +1 -1
- package/dist/server/handlers/platform-a2a-push.js +53 -2
- package/dist/server/handlers/platform-a2a-push.js.map +1 -1
- package/dist/server/handlers/runtime-app-server-ws.d.ts.map +1 -1
- package/dist/server/handlers/runtime-app-server-ws.js +1 -3
- package/dist/server/handlers/runtime-app-server-ws.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +16 -0
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +232 -206
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-agent-runtime-progress.d.ts.map +1 -1
- package/dist/server/hosted-agent-runtime-progress.js +12 -3
- package/dist/server/hosted-agent-runtime-progress.js.map +1 -1
- package/dist/server/pending-request-payload.d.ts.map +1 -1
- package/dist/server/pending-request-payload.js +1 -3
- package/dist/server/pending-request-payload.js.map +1 -1
- package/dist/server/route-auth.d.ts.map +1 -1
- package/dist/server/route-auth.js +2 -0
- package/dist/server/route-auth.js.map +1 -1
- package/dist/server/session-serialization.d.ts.map +1 -1
- package/dist/server/session-serialization.js +1 -3
- package/dist/server/session-serialization.js.map +1 -1
- package/dist/services/compliance/normalize.d.ts.map +1 -1
- package/dist/services/compliance/normalize.js +1 -3
- package/dist/services/compliance/normalize.js.map +1 -1
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -1
- package/dist/services/intelligent-router/normalize.js +1 -3
- package/dist/services/intelligent-router/normalize.js.map +1 -1
- package/dist/services/revenue-attribution/normalize.d.ts.map +1 -1
- package/dist/services/revenue-attribution/normalize.js +1 -3
- package/dist/services/revenue-attribution/normalize.js.map +1 -1
- package/dist/services/traces/normalize.d.ts.map +1 -1
- package/dist/services/traces/normalize.js +1 -3
- package/dist/services/traces/normalize.js.map +1 -1
- package/dist/services/workspace-config/normalize.d.ts.map +1 -1
- package/dist/services/workspace-config/normalize.js +1 -3
- package/dist/services/workspace-config/normalize.js.map +1 -1
- package/dist/skills/composer.d.ts.map +1 -1
- package/dist/skills/composer.js +13 -1
- package/dist/skills/composer.js.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/learned-guidelines.d.ts +33 -0
- package/dist/skills/learned-guidelines.d.ts.map +1 -0
- package/dist/skills/learned-guidelines.js +291 -0
- package/dist/skills/learned-guidelines.js.map +1 -0
- package/dist/skills/linter.d.ts.map +1 -1
- package/dist/skills/linter.js +1 -3
- package/dist/skills/linter.js.map +1 -1
- package/dist/skills/runtime-activation.d.ts +1 -0
- package/dist/skills/runtime-activation.d.ts.map +1 -1
- package/dist/skills/runtime-activation.js +2 -3
- package/dist/skills/runtime-activation.js.map +1 -1
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +26 -21
- package/dist/skills/tool.js.map +1 -1
- package/dist/skills/trust-cache.d.ts +7 -0
- package/dist/skills/trust-cache.d.ts.map +1 -1
- package/dist/skills/trust-cache.js +16 -0
- package/dist/skills/trust-cache.js.map +1 -1
- package/dist/telemetry/agent-workforce-native-event.d.ts.map +1 -1
- package/dist/telemetry/agent-workforce-native-event.js +1 -3
- package/dist/telemetry/agent-workforce-native-event.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js +42 -81
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -1
- package/dist/telemetry/maestro-platform-replay-fixture.js +1 -3
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +54 -43
- package/dist/telemetry.js.map +1 -1
- package/dist/theme/theme-loader.d.ts.map +1 -1
- package/dist/theme/theme-loader.js +1 -3
- package/dist/theme/theme-loader.js.map +1 -1
- package/dist/tools/apply-patch.d.ts.map +1 -1
- package/dist/tools/apply-patch.js +76 -8
- package/dist/tools/apply-patch.js.map +1 -1
- package/dist/tools/diff-preview.d.ts.map +1 -1
- package/dist/tools/diff-preview.js +10 -1
- package/dist/tools/diff-preview.js.map +1 -1
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +17 -0
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +9 -0
- package/dist/tools/write.js.map +1 -1
- package/dist/undo/tracker.d.ts +5 -0
- package/dist/undo/tracker.d.ts.map +1 -1
- package/dist/undo/tracker.js +13 -0
- package/dist/undo/tracker.js.map +1 -1
- package/dist/utils/fs.d.ts +1 -1
- package/dist/utils/fs.d.ts.map +1 -1
- package/dist/utils/fs.js +29 -2
- package/dist/utils/fs.js.map +1 -1
- package/dist/utils/git-stash.d.ts.map +1 -1
- package/dist/utils/git-stash.js +15 -8
- package/dist/utils/git-stash.js.map +1 -1
- package/dist/utils/json.d.ts +11 -0
- package/dist/utils/json.d.ts.map +1 -1
- package/dist/utils/json.js +9 -0
- package/dist/utils/json.js.map +1 -1
- package/dist/utils/shell-env.d.ts.map +1 -1
- package/dist/utils/shell-env.js +2 -0
- package/dist/utils/shell-env.js.map +1 -1
- package/dist/utils/url-extractor-git.d.ts +26 -0
- package/dist/utils/url-extractor-git.d.ts.map +1 -0
- package/dist/utils/url-extractor-git.js +259 -0
- package/dist/utils/url-extractor-git.js.map +1 -0
- package/dist/utils/url-extractor.d.ts.map +1 -1
- package/dist/utils/url-extractor.js +23 -251
- package/dist/utils/url-extractor.js.map +1 -1
- package/dist/version.json +2 -2
- package/package.json +310 -306
- package/skills/incident-triage/SKILL.md +19 -1
- package/skills/install-code-review/SKILL.md +69 -0
- package/skills/security-review/SKILL.md +68 -0
- package/skills/security-review/reference/rubric.md +85 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAE9B;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;A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
55
55
|
export * from "./memory-utils.js";
|
|
56
56
|
export * from "./maestro-app-server.js";
|
|
57
|
+
export * from "./maestro-settings.js";
|
|
57
58
|
export * from "./onboarding-utils.js";
|
|
58
59
|
export * from "./proto/maestro/v1/headless_pb.js";
|
|
59
60
|
export * from "./runtime-constraints.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAksC9B,+BAA+B;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @fileoverview @evalops/contracts - Shared TypeScript Definitions\n *\n * This package provides the TypeScript type definitions that form the contract\n * between Maestro's frontend (Web UI) and backend (API server). All shared\n * types, interfaces, and enums are defined here to ensure type safety across\n * the client-server boundary.\n *\n * ## Key Types\n *\n * | Type | Description |\n * |------|-------------|\n * | `ComposerMessage` | Chat message with role, content, tools, and usage |\n * | `ComposerSession` | Session with metadata and message history |\n * | `ComposerChatRequest` | Request payload for the chat API |\n * | `ComposerUsage` | Token usage and cost tracking |\n * | `ComposerToolCall` | Tool invocation with status and result |\n *\n * ## Usage\n *\n * ```typescript\n * import type {\n * ComposerMessage,\n * ComposerSession,\n * ComposerChatRequest\n * } from \"@evalops/contracts\";\n *\n * // Type-safe message handling\n * const message: ComposerMessage = {\n * role: \"user\",\n * content: \"Hello, Maestro!\",\n * timestamp: new Date().toISOString(),\n * };\n *\n * // Type-safe API request\n * const request: ComposerChatRequest = {\n * messages: [message],\n * model: \"claude-sonnet-4-5\",\n * thinkingLevel: \"medium\",\n * };\n * ```\n *\n * @module @evalops/contracts\n */\n\nexport * from \"./headless-protocol-generated.js\";\nexport * from \"./headless-protocol-schemas.generated.js\";\nexport * as headlessProto from \"./proto/maestro/v1/headless_pb.js\";\nexport * from \"./advisor-effort.js\";\nexport * from \"./artifacts.js\";\nexport * from \"./delegation-prompt.js\";\nexport * from \"./guarded-files-settings.js\";\nexport * from \"./key-value-tokens.js\";\nexport * from \"./mcp-settings.js\";\nexport * from \"./memory.js\";\nexport * from \"./memory-utils.js\";\nexport * from \"./maestro-app-server.js\";\nexport * from \"./onboarding-utils.js\";\nexport * from \"./proto/maestro/v1/headless_pb.js\";\nexport * from \"./runtime-constraints.js\";\nexport * from \"./runtime-app-server.js\";\nexport * from \"./runtime-server-request.js\";\nexport * from \"./scenario.js\";\n\n/**\n * Role of a message in the conversation.\n *\n * - `user` - Messages from the human user\n * - `assistant` - Messages from the AI assistant\n * - `system` - System prompts and instructions\n * - `tool` - Tool execution results\n */\nexport type ComposerRole = \"user\" | \"assistant\" | \"system\" | \"tool\";\n\n/**\n * Content blocks used for rich message payloads.\n */\nexport interface ComposerTextContent {\n\ttype: \"text\";\n\ttext: string;\n\ttextSignature?: string;\n}\n\nexport interface ComposerImageContent {\n\ttype: \"image\";\n\tdata: string;\n\tmimeType: string;\n}\n\nexport interface ComposerThinkingContent {\n\ttype: \"thinking\";\n\tthinking: string;\n\tthinkingSignature?: string;\n}\n\nexport interface ComposerToolCallContent {\n\ttype: \"toolCall\";\n\tid: string;\n\tname: string;\n\targuments: Record<string, unknown>;\n\tthoughtSignature?: string;\n}\n\nexport type ComposerContentBlock =\n\t| ComposerTextContent\n\t| ComposerImageContent\n\t| ComposerThinkingContent\n\t| ComposerToolCallContent;\n\n/**\n * Extended thinking/reasoning level for supported models.\n *\n * Higher levels produce more detailed reasoning at the cost of latency:\n * - `off` - No extended thinking\n * - `minimal` - Brief reasoning hints\n * - `low` - Light reasoning\n * - `medium` - Moderate reasoning depth\n * - `high` - Thorough step-by-step reasoning\n */\nexport type ComposerThinkingLevel =\n\t| \"off\"\n\t| \"minimal\"\n\t| \"low\"\n\t| \"medium\"\n\t| \"high\";\n\n/**\n * Represents a tool invocation within a message.\n *\n * Tools are actions the agent can take like reading files, executing commands,\n * or searching the web. Each tool call tracks its execution lifecycle.\n */\nexport interface ComposerToolCall {\n\t/** Name of the tool being invoked (e.g., \"read\", \"bash\", \"search\") */\n\tname: string;\n\t/** Current execution status of the tool call */\n\tstatus: \"pending\" | \"running\" | \"completed\" | \"error\";\n\t/** Arguments passed to the tool */\n\targs?: Record<string, unknown>;\n\t/** Result returned by the tool (if completed) */\n\tresult?: unknown;\n\t/** Unique identifier for this tool call (for matching results) */\n\ttoolCallId?: string;\n}\n\n/**\n * File attachment included in a user message.\n *\n * Attachments can be images (for vision-capable models) or documents\n * (typically accompanied by extracted text for model consumption).\n *\n * `content` is base64-encoded raw bytes. Servers may omit `content` in some\n * read APIs for size reasons; when omitted, `contentOmitted` is set to true.\n */\nexport interface ComposerAttachment {\n\t/** Unique identifier for this attachment */\n\tid: string;\n\t/** Attachment type */\n\ttype: \"image\" | \"document\";\n\t/** Original filename */\n\tfileName: string;\n\t/** MIME type */\n\tmimeType: string;\n\t/** Size in bytes */\n\tsize: number;\n\t/** Base64-encoded file content (may be omitted) */\n\tcontent?: string;\n\t/** True when `content` was intentionally omitted */\n\tcontentOmitted?: boolean;\n\t/** Extracted text content (for documents) */\n\textractedText?: string;\n\t/** Preview image (typically base64, small) */\n\tpreview?: string;\n}\n\n/**\n * A message in the Maestro conversation.\n *\n * Messages can contain text content, tool calls, thinking traces,\n * and usage statistics. This is the primary data structure for\n * conversation history.\n */\nexport interface ComposerMessage {\n\t/** Role of the message sender */\n\trole: ComposerRole;\n\t/** Text content of the message */\n\tcontent: string | ComposerContentBlock[];\n\t/** Optional file attachments (for user messages) */\n\tattachments?: ComposerAttachment[];\n\t/** ISO 8601 timestamp when the message was created */\n\ttimestamp?: string;\n\t/** Extended thinking/reasoning trace (for supported models) */\n\tthinking?: string;\n\t/** Tool calls made in this message (for assistant messages) */\n\ttools?: ComposerToolCall[];\n\t/** Name of the tool (for tool result messages) */\n\ttoolName?: string;\n\t/** Whether this message represents an error */\n\tisError?: boolean;\n\t/** Token usage and cost for this message */\n\tusage?: ComposerUsage;\n\t/** Original provider for assistant messages (for cross-provider resume) */\n\tprovider?: string;\n\t/** Original API for assistant messages (for cross-provider resume) */\n\tapi?: string;\n\t/** Original model ID for assistant messages (for cross-provider resume) */\n\tmodel?: string;\n}\n\n/**\n * Cost breakdown for token usage.\n *\n * Costs are typically in USD, calculated based on the model's pricing.\n */\nexport interface ComposerUsageCost {\n\t/** Cost for input tokens */\n\tinput: number;\n\t/** Cost for output tokens */\n\toutput: number;\n\t/** Cost savings from cache reads (if applicable) */\n\tcacheRead?: number;\n\t/** Cost for cache writes (if applicable) */\n\tcacheWrite?: number;\n\t/** Total cost for this message */\n\ttotal?: number;\n}\n\n/**\n * Token usage statistics for a message or session.\n *\n * Tracks input/output tokens and cache utilization for cost monitoring.\n */\nexport interface ComposerUsage {\n\t/** Number of input tokens consumed */\n\tinput: number;\n\t/** Number of output tokens generated */\n\toutput: number;\n\t/** Tokens served from cache (reduces cost) */\n\tcacheRead?: number;\n\t/** Tokens written to cache */\n\tcacheWrite?: number;\n\t/** Calculated cost breakdown */\n\tcost?: ComposerUsageCost;\n}\n\n/**\n * Model capability metadata exposed by the API.\n */\nexport interface ComposerModelCapabilities {\n\tstreaming?: boolean;\n\ttools?: boolean;\n\tvision?: boolean;\n\treasoning?: boolean;\n}\n\n/**\n * Model metadata returned by `/api/models` and `/api/model`.\n */\nexport interface ComposerModel {\n\tid: string;\n\tprovider: string;\n\tname: string;\n\tapi?: string;\n\tcontextWindow?: number;\n\tmaxOutputTokens?: number;\n\tmaxTokens?: number;\n\treasoning?: boolean;\n\tcost?: ComposerUsageCost;\n\tcapabilities?: ComposerModelCapabilities;\n}\n\n/**\n * Response payload for `/api/models`.\n */\nexport interface ComposerModelListResponse {\n\tmodels: ComposerModel[];\n}\n\n/**\n * Argument definition for a custom command.\n */\nexport interface ComposerCommandArg {\n\tname: string;\n\trequired?: boolean;\n}\n\n/**\n * Custom command definition (safe for client consumption).\n */\nexport interface ComposerCommand {\n\tname: string;\n\tdescription?: string;\n\tprompt: string;\n\targs?: ComposerCommandArg[];\n}\n\n/**\n * Response payload for `/api/commands`.\n */\nexport interface ComposerCommandListResponse {\n\tcommands: ComposerCommand[];\n}\n\n/**\n * Command favorites/recents preferences.\n */\nexport interface ComposerCommandPrefs {\n\tfavorites: string[];\n\trecents: string[];\n}\n\n/**\n * Update payload for command preferences.\n */\nexport interface ComposerCommandPrefsUpdate {\n\tfavorites?: string[];\n\trecents?: string[];\n}\n\n/**\n * Response payload for command preference updates.\n */\nexport interface ComposerCommandPrefsWriteResponse {\n\tok: boolean;\n}\n\n/**\n * Request payload for `/api/config`.\n */\nexport interface ComposerConfigWriteRequest {\n\tconfig: Record<string, unknown>;\n}\n\n/**\n * Response payload for `/api/config` GET.\n */\nexport interface ComposerConfigResponse {\n\tconfig: Record<string, unknown>;\n\tconfigPath: string;\n}\n\n/**\n * Response payload for `/api/config` POST.\n */\nexport interface ComposerConfigWriteResponse {\n\tsuccess: boolean;\n}\n\n/**\n * Response payload for `/api/files`.\n */\nexport interface ComposerFilesResponse {\n\tfiles: string[];\n}\n\n/**\n * Request payload for the chat API endpoint.\n *\n * Sent to `POST /api/chat` to initiate or continue a conversation.\n */\nexport interface ComposerChatRequest {\n\t/** Model ID to use (e.g., \"claude-sonnet-4-5-20250929\") */\n\tmodel?: string;\n\t/** Conversation history including the current user message */\n\tmessages: ComposerMessage[];\n\t/** Extended thinking level for supported models */\n\tthinkingLevel?: ComposerThinkingLevel;\n\t/** Session ID to resume (optional - creates new session if omitted) */\n\tsessionId?: string;\n\t/** Whether to stream the response via SSE (default: true) */\n\tstream?: boolean;\n}\n\n/**\n * Request payload for prompt suggestion generation.\n *\n * Sent to `POST /api/prompt-suggestion` to generate a likely next user prompt\n * from the current conversation state.\n */\nexport interface ComposerPromptSuggestionRequest {\n\t/** Optional model preference used to select a suggestion model. */\n\tmodel?: string;\n\t/** Conversation history to summarize into a likely next user prompt. */\n\tmessages: ComposerMessage[];\n\t/** Optional session id for callers that want request correlation. */\n\tsessionId?: string;\n}\n\n/**\n * Response payload for prompt suggestion generation.\n */\nexport interface ComposerPromptSuggestionResponse {\n\t/** Suggested next user prompt, or null when suggestion generation is suppressed. */\n\tsuggestion: string | null;\n\t/** Optional suppression or filtering reason when no suggestion is returned. */\n\tsuppressedReason?: string;\n\t/** Model used to generate the suggestion, when generation ran. */\n\tmodel?: string;\n}\n\n/**\n * Summary metadata for a session (without full message history).\n *\n * Used in session list views for performance.\n */\nexport interface ComposerSessionSummary {\n\t/** Unique session identifier */\n\tid: string;\n\t/** User-assigned or auto-generated title */\n\ttitle?: string;\n\t/** Short persisted recap shown when resuming a session */\n\tresumeSummary?: string;\n\t/** ISO 8601 timestamp when session was created */\n\tcreatedAt: string;\n\t/** ISO 8601 timestamp when session was last updated */\n\tupdatedAt: string;\n\t/** Total number of messages in the session */\n\tmessageCount: number;\n\t/** Whether the session is marked as a favorite */\n\tfavorite?: boolean;\n\t/** User-assigned tags for organization */\n\ttags?: string[];\n}\n\nexport type ComposerSessionMessagesView = \"full\" | \"summary\" | \"notLoaded\";\n\nexport interface ComposerPendingClientToolRequest {\n\ttoolCallId: string;\n\ttoolName: string;\n\targs: unknown;\n\tkind?: \"client_tool\" | \"mcp_elicitation\" | \"user_input\";\n\treason?: string;\n}\n\nexport type ComposerPendingRequestKind =\n\t| \"approval\"\n\t| \"client_tool\"\n\t| \"mcp_elicitation\"\n\t| \"user_input\"\n\t| \"tool_retry\";\n\nexport type ComposerPendingRequestResolution =\n\t| \"approved\"\n\t| \"denied\"\n\t| \"completed\"\n\t| \"failed\"\n\t| \"answered\"\n\t| \"retried\"\n\t| \"skipped\"\n\t| \"aborted\"\n\t| \"cancelled\";\n\nexport type ComposerPendingRequestPlatformOperation =\n\t| \"ResolveApproval\"\n\t| \"ResumeToolExecution\"\n\t| \"ResumeRun\";\n\nexport interface ComposerPendingRequestPlatformRef {\n\tsource: \"approvals_service\" | \"tool_execution\";\n\ttoolExecutionId?: string;\n\tapprovalRequestId?: string;\n}\n\nexport interface ComposerPendingRequest {\n\tid: string;\n\tkind: ComposerPendingRequestKind;\n\tstatus: \"pending\";\n\tvisibility: \"user\";\n\tsessionId?: string;\n\ttoolCallId: string;\n\ttoolName: string;\n\tdisplayName?: string;\n\tsummaryLabel?: string;\n\tactionDescription?: string;\n\targs: unknown;\n\treason: string;\n\tcreatedAt: string;\n\texpiresAt?: string;\n\tsource: \"local\" | \"platform\";\n\tplatform?: ComposerPendingRequestPlatformRef;\n}\n\nexport type ComposerClientToolResultContent =\n\t| ComposerTextContent\n\t| ComposerImageContent;\n\nexport interface ComposerPendingRequestResumeRequest {\n\tkind?: ComposerPendingRequestKind;\n\tsessionId?: string;\n\tdecision?: \"approved\" | \"denied\";\n\taction?: \"retry\" | \"skip\" | \"abort\";\n\tcontent?: ComposerClientToolResultContent[];\n\tisError?: boolean;\n\treason?: string;\n}\n\nexport interface ComposerPendingRequestResumeResponse {\n\tsuccess: true;\n\trequest: {\n\t\tid: string;\n\t\tkind: ComposerPendingRequestKind;\n\t\tsessionId?: string;\n\t\tresolution: ComposerPendingRequestResolution;\n\t\tsource: \"local\" | \"platform\";\n\t\tplatform?: ComposerPendingRequestPlatformRef;\n\t\tplatformOperation?: ComposerPendingRequestPlatformOperation;\n\t};\n}\n\nexport type ComposerRunTimelineVisibility = \"user\" | \"admin\" | \"audit\";\n\nexport type ComposerRunTimelineSource = \"local\" | \"platform\";\n\nexport type ComposerRunTimelineEventType =\n\t| \"session.started\"\n\t| \"session.updated\"\n\t| \"message.user\"\n\t| \"message.assistant\"\n\t| \"tool.requested\"\n\t| \"tool.completed\"\n\t| \"tool.failed\"\n\t| \"file.changed\"\n\t| \"diagnostic.delta\"\n\t| \"artifact.linked\"\n\t| \"policy.decision\"\n\t| \"wait.pending\"\n\t| \"agent.run.started\"\n\t| \"agent.run.completed\"\n\t| \"agent.run.failed\"\n\t| \"compaction.created\"\n\t| \"branch.created\"\n\t| \"model.changed\"\n\t| \"thinking.changed\"\n\t| \"runtime.recovery\"\n\t| \"runtime.finished\"\n\t| \"custom.event\";\n\nexport type ComposerRunTimelineStatus =\n\t| \"pending\"\n\t| \"running\"\n\t| \"completed\"\n\t| \"failed\"\n\t| \"approved\"\n\t| \"denied\"\n\t| \"info\";\n\nexport interface ComposerRunTimelineItem {\n\tid: string;\n\tsessionId: string;\n\ttimestamp: string;\n\ttype: ComposerRunTimelineEventType;\n\ttitle: string;\n\tvisibility: ComposerRunTimelineVisibility;\n\tsource: ComposerRunTimelineSource;\n\tstatus?: ComposerRunTimelineStatus;\n\tsummary?: string;\n\trole?: ComposerRole;\n\ttoolCallId?: string;\n\ttoolName?: string;\n\tpendingRequestId?: string;\n\tpendingRequestKind?: ComposerPendingRequestKind;\n\tapprovalRequestId?: string;\n\ttoolExecutionId?: string;\n\tartifactId?: string;\n\tagentRunId?: string;\n\tparentAgentRunId?: string;\n\tchildAgentRunId?: string;\n\tremoteRunnerSessionId?: string;\n\tplatform?: ComposerPendingRequestPlatformRef;\n\tplatformOperation?: ComposerPendingRequestPlatformOperation;\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface ComposerRunTimelineResponse {\n\tsessionId: string;\n\tsource: ComposerRunTimelineSource;\n\tgeneratedAt: string;\n\tplatformBacked: boolean;\n\tpendingRequestCount: number;\n\titems: ComposerRunTimelineItem[];\n}\n\n/**\n * Full session data including message history.\n *\n * Returned when loading a specific session.\n */\nexport interface ComposerSession extends ComposerSessionSummary {\n\t/** Hydration level used for the messages array. Defaults to full. */\n\tmessagesView?: ComposerSessionMessagesView;\n\t/** Complete conversation history */\n\tmessages: ComposerMessage[];\n\t/** Pending approval requests that still require a decision */\n\tpendingApprovalRequests?: ComposerActionApprovalRequest[];\n\t/** Pending client or ask_user requests that still require client handling */\n\tpendingClientToolRequests?: ComposerPendingClientToolRequest[];\n\t/** Pending tool retry requests that still require a decision */\n\tpendingToolRetryRequests?: ComposerToolRetryRequest[];\n\t/** Unified pending requests for hosted attach, Platform, and admin surfaces */\n\tpendingRequests?: ComposerPendingRequest[];\n}\n\n/**\n * Streaming events emitted while generating assistant messages.\n */\nexport type ComposerAssistantMessageEvent =\n\t| {\n\t\t\ttype: \"start\";\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_end\";\n\t\t\tcontentIndex: number;\n\t\t\tcontent: string;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_end\";\n\t\t\tcontentIndex: number;\n\t\t\tcontent: string;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial?: ComposerMessage;\n\t\t\ttoolCallId?: string;\n\t\t\ttoolCallName?: string;\n\t\t\ttoolCallArgs?: Record<string, unknown>;\n\t\t\ttoolCallArgsTruncated?: boolean;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t\t\ttoolCallId?: string;\n\t\t\ttoolCallName?: string;\n\t\t\ttoolCallArgs?: Record<string, unknown>;\n\t\t\ttoolCallArgsTruncated?: boolean;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_end\";\n\t\t\tcontentIndex: number;\n\t\t\ttoolCall: ComposerToolCallContent;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"done\";\n\t\t\treason: \"stop\" | \"length\" | \"toolUse\";\n\t\t\tmessage: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"error\";\n\t\t\treason: \"aborted\" | \"error\";\n\t\t\terror: ComposerMessage;\n\t };\n\nexport interface ComposerActionApprovalRequest {\n\tid: string;\n\ttoolName: string;\n\tdisplayName?: string;\n\tsummaryLabel?: string;\n\tactionDescription?: string;\n\targs: unknown;\n\treason: string;\n\tstartedAtMs?: number;\n\tplatform?: ComposerPendingRequestPlatformRef;\n}\n\nexport interface ComposerActionApprovalDecision {\n\tapproved: boolean;\n\treason?: string;\n\tresolvedBy: \"policy\" | \"user\";\n\tresolvedAtMs?: number;\n}\n\nexport interface ComposerToolRetryRequest {\n\tid: string;\n\ttoolCallId: string;\n\ttoolName: string;\n\targs: unknown;\n\terrorMessage: string;\n\tattempt: number;\n\tmaxAttempts?: number;\n\tsummary?: string;\n}\n\nexport interface ComposerToolRetryDecision {\n\taction: \"retry\" | \"skip\" | \"abort\";\n\treason?: string;\n\tresolvedBy: \"policy\" | \"user\" | \"runtime\";\n}\n\n/**\n * Agent-level streaming events (SSE payloads).\n */\nexport type ComposerAgentEvent =\n\t| { type: \"agent_start\" }\n\t| {\n\t\t\ttype: \"agent_end\";\n\t\t\tmessages: ComposerMessage[];\n\t\t\taborted?: boolean;\n\t\t\tpartialAccepted?: ComposerMessage;\n\t\t\tstopReason?: \"stop\" | \"length\" | \"toolUse\" | \"error\" | \"aborted\";\n\t }\n\t| { type: \"status\"; status: string; details: Record<string, unknown> }\n\t| { type: \"error\"; message: string }\n\t| { type: \"turn_start\" }\n\t| {\n\t\t\ttype: \"turn_end\";\n\t\t\tmessage: ComposerMessage;\n\t\t\ttoolResults: ComposerMessage[];\n\t }\n\t| { type: \"message_start\"; message: ComposerMessage }\n\t| {\n\t\t\ttype: \"message_update\";\n\t\t\tmessage?: ComposerMessage;\n\t\t\tassistantMessageEvent: ComposerAssistantMessageEvent;\n\t }\n\t| { type: \"message_end\"; message: ComposerMessage }\n\t| {\n\t\t\ttype: \"tool_execution_start\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\targs: Record<string, unknown>;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_update\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\targs: Record<string, unknown>;\n\t\t\tpartialResult: unknown;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_end\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\tresult: unknown;\n\t\t\tisError: boolean;\n\t }\n\t| {\n\t\t\ttype: \"tool_batch_summary\";\n\t\t\tsummary: string;\n\t\t\tsummaryLabels: string[];\n\t\t\ttoolCallIds: string[];\n\t\t\ttoolNames: string[];\n\t\t\tcallsSucceeded: number;\n\t\t\tcallsFailed: number;\n\t }\n\t| { type: \"action_approval_required\"; request: ComposerActionApprovalRequest }\n\t| {\n\t\t\ttype: \"action_approval_resolved\";\n\t\t\trequest: ComposerActionApprovalRequest;\n\t\t\tdecision: ComposerActionApprovalDecision;\n\t }\n\t| {\n\t\t\ttype: \"client_tool_request\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\targs: unknown;\n\t }\n\t| { type: \"tool_retry_required\"; request: ComposerToolRetryRequest }\n\t| {\n\t\t\ttype: \"tool_retry_resolved\";\n\t\t\trequest: ComposerToolRetryRequest;\n\t\t\tdecision: ComposerToolRetryDecision;\n\t }\n\t| {\n\t\t\ttype: \"compaction\";\n\t\t\tsummary: string;\n\t\t\tfirstKeptEntryIndex: number;\n\t\t\ttokensBefore: number;\n\t\t\tauto?: boolean;\n\t\t\tcustomInstructions?: string;\n\t\t\ttimestamp: string;\n\t }\n\t| {\n\t\t\ttype: \"auto_retry_start\";\n\t\t\tattempt: number;\n\t\t\tmaxAttempts: number;\n\t\t\tdelayMs: number;\n\t\t\terrorMessage: string;\n\t }\n\t| {\n\t\t\ttype: \"auto_retry_end\";\n\t\t\tsuccess: boolean;\n\t\t\tattempt: number;\n\t\t\tfinalError?: string;\n\t }\n\t| { type: \"session_update\"; sessionId: string }\n\t| { type: \"heartbeat\" }\n\t| { type: \"aborted\" }\n\t| { type: \"done\" };\n\n/**\n * Error severity levels for API payloads.\n */\nexport type ComposerErrorSeverity = \"error\" | \"warning\" | \"info\";\n\n/**\n * Error categories for API payloads.\n */\nexport type ComposerErrorCategory =\n\t| \"validation\"\n\t| \"permission\"\n\t| \"network\"\n\t| \"timeout\"\n\t| \"filesystem\"\n\t| \"tool\"\n\t| \"session\"\n\t| \"config\"\n\t| \"api\"\n\t| \"internal\";\n\n/**\n * Structured error payload for API responses.\n */\nexport interface ComposerErrorPayload {\n\tcode: string;\n\tcategory: ComposerErrorCategory;\n\tseverity?: ComposerErrorSeverity;\n\tretriable?: boolean;\n\tcontext?: Record<string, unknown>;\n}\n\n/**\n * Standard API error response shape.\n */\nexport interface ComposerErrorResponse {\n\terror: string;\n\tcode?: string;\n\tdetails?: Record<string, unknown>[];\n\tcomposer?: ComposerErrorPayload;\n}\n\n/**\n * Response payload for session list endpoint.\n */\nexport interface ComposerSessionListResponse {\n\t/** Array of session summaries */\n\tsessions: ComposerSessionSummary[];\n}\n\n/**\n * SSE event sent when a session is created or updated.\n *\n * Allows clients to sync session state in real-time.\n */\nexport interface ComposerSessionUpdateEvent {\n\ttype: \"session_update\";\n\t/** ID of the created/updated session */\n\tsessionId: string;\n}\n\n/**\n * Background task resource limit breach metadata.\n */\nexport interface ComposerBackgroundTaskLimitBreach {\n\tkind: \"memory\" | \"cpu\";\n\tlimit: number;\n\tactual: number;\n}\n\n/**\n * Background task history record.\n */\nexport interface ComposerBackgroundTaskHistoryEntry {\n\tevent: \"started\" | \"restarted\" | \"exited\" | \"failed\" | \"stopped\";\n\ttaskId: string;\n\tstatus: string;\n\tcommand: string;\n\ttimestamp: string;\n\trestartAttempts: number;\n\tfailureReason?: string;\n\tlimitBreach?: ComposerBackgroundTaskLimitBreach;\n}\n\n/**\n * Background task health entry.\n */\nexport interface ComposerBackgroundTaskHealthEntry {\n\tid: string;\n\tstatus: string;\n\tsummary: string;\n\tcommand: string;\n\trestarts?: string;\n\tissues: string[];\n\tlastLogLine?: string;\n\tlogTruncated?: boolean;\n\tdurationSeconds: number;\n}\n\n/**\n * Background task health snapshot.\n */\nexport interface ComposerBackgroundTaskHealth {\n\ttotal: number;\n\trunning: number;\n\trestarting: number;\n\tfailed: number;\n\tentries: ComposerBackgroundTaskHealthEntry[];\n\ttruncated: boolean;\n\tnotificationsEnabled: boolean;\n\tdetailsRedacted: boolean;\n\thistory: ComposerBackgroundTaskHistoryEntry[];\n\thistoryTruncated: boolean;\n}\n\nexport type ComposerGuardianTarget = \"staged\" | \"all\";\n\nexport type ComposerGuardianStatus = \"passed\" | \"failed\" | \"skipped\" | \"error\";\n\nexport interface ComposerGuardianToolResult {\n\ttool: string;\n\texitCode: number;\n\tstdout: string;\n\tstderr: string;\n\tdurationMs: number;\n\tskipped?: boolean;\n\treason?: string;\n}\n\nexport interface ComposerGuardianRunResult {\n\tstatus: ComposerGuardianStatus;\n\texitCode: number;\n\tstartedAt: number;\n\tdurationMs: number;\n\ttarget: ComposerGuardianTarget;\n\ttrigger?: string;\n\tfilesScanned: number;\n\tfiles?: string[];\n\tsummary: string;\n\tskipReason?: string;\n\ttoolResults: ComposerGuardianToolResult[];\n}\n\nexport interface ComposerGuardianState {\n\tenabled: boolean;\n\tlastRun?: ComposerGuardianRunResult;\n}\n\nexport interface ComposerGuardianStatusResponse {\n\tenabled: boolean;\n\tstate: ComposerGuardianState;\n}\n\nexport type ComposerGuardianRunResponse = ComposerGuardianRunResult;\n\nexport interface ComposerGuardianConfigRequest {\n\tenabled: boolean;\n}\n\nexport interface ComposerGuardianConfigResponse {\n\tsuccess: boolean;\n\tenabled: boolean;\n}\n\nexport interface ComposerPlanModeState {\n\tactive: boolean;\n\tfilePath: string;\n\tsessionId?: string;\n\tgitBranch?: string;\n\tgitCommitSha?: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tname?: string;\n}\n\nexport interface ComposerPlanStatusResponse {\n\tstate: ComposerPlanModeState | null;\n\tcontent: string | null;\n}\n\nexport type ComposerPlanRequest =\n\t| { action: \"enter\"; name?: string; sessionId?: string }\n\t| { action: \"exit\" }\n\t| { action: \"update\"; content: string };\n\nexport type ComposerPlanActionResponse =\n\t| { success: boolean; state: ComposerPlanModeState }\n\t| { success: boolean };\n\nexport interface ComposerBackgroundSettings {\n\tnotificationsEnabled: boolean;\n\tstatusDetailsEnabled: boolean;\n}\n\nexport interface ComposerBackgroundStatusSnapshot {\n\trunning: number;\n\ttotal: number;\n\tfailed: number;\n\tdetailsRedacted: boolean;\n}\n\nexport interface ComposerBackgroundStatusResponse {\n\tsettings: ComposerBackgroundSettings;\n\tsnapshot: ComposerBackgroundStatusSnapshot | null;\n}\n\nexport interface ComposerBackgroundHistoryEntry {\n\ttimestamp: string;\n\tevent: \"started\" | \"restarted\" | \"exited\" | \"failed\" | \"stopped\";\n\ttaskId: string;\n\tcommand: string;\n\tfailureReason?: string;\n\tlimitBreach?: ComposerBackgroundTaskLimitBreach;\n}\n\nexport interface ComposerBackgroundHistoryResponse {\n\thistory: ComposerBackgroundHistoryEntry[];\n\ttruncated: boolean;\n}\n\nexport interface ComposerBackgroundPathResponse {\n\tpath: string;\n\texists: boolean;\n\toverridden: boolean;\n}\n\nexport interface ComposerBackgroundUpdateRequest {\n\tenabled: boolean;\n}\n\nexport interface ComposerBackgroundUpdateResponse {\n\tsuccess: boolean;\n\tmessage: string;\n}\n\nexport type ComposerApprovalMode = \"auto\" | \"prompt\" | \"fail\";\n\nexport interface ComposerApprovalsStatusResponse {\n\tmode: ComposerApprovalMode;\n\tavailableModes: ComposerApprovalMode[];\n}\n\nexport interface ComposerApprovalsUpdateRequest {\n\tmode: ComposerApprovalMode;\n\tsessionId?: string;\n}\n\nexport interface ComposerApprovalsUpdateResponse {\n\tsuccess: boolean;\n\tmode: ComposerApprovalMode;\n\tmessage: string;\n}\n\nexport type ComposerFrameworkScope = \"user\" | \"workspace\";\n\nexport interface ComposerFrameworkStatusResponse {\n\tframework: string;\n\tsource: string;\n\tlocked: boolean;\n\tscope: ComposerFrameworkScope;\n}\n\nexport interface ComposerFrameworkListEntry {\n\tid: string;\n\tsummary: string;\n}\n\nexport interface ComposerFrameworkListResponse {\n\tframeworks: ComposerFrameworkListEntry[];\n}\n\nexport interface ComposerFrameworkUpdateRequest {\n\tframework?: string | null;\n\tscope?: ComposerFrameworkScope;\n}\n\nexport interface ComposerFrameworkUpdateResponse {\n\tsuccess: boolean;\n\tmessage: string;\n\tframework: string | null;\n\tsummary?: string;\n\tscope?: ComposerFrameworkScope;\n}\n\nexport type ComposerChangeType = \"create\" | \"modify\" | \"delete\";\n\nexport interface ComposerFileChange {\n\tid: string;\n\ttype: ComposerChangeType;\n\tpath: string;\n\tbefore: string | null;\n\tafter: string | null;\n\ttoolName: string;\n\ttoolCallId: string;\n\ttimestamp: number;\n\tisGitTracked: boolean;\n\tmessageId?: string;\n}\n\nexport type ComposerUndoRestoreAction = \"restore\" | \"delete\" | \"recreate\";\n\nexport interface ComposerUndoPreview {\n\tchanges: ComposerFileChange[];\n\trestores: Array<{ path: string; action: ComposerUndoRestoreAction }>;\n\tconflicts: Array<{ path: string; reason: string }>;\n}\n\nexport interface ComposerUndoCheckpoint {\n\tname: string;\n\tdescription?: string;\n\tchangeCount: number;\n\ttimestamp: number;\n}\n\nexport interface ComposerUndoStatusResponse {\n\ttotalChanges: number;\n\tcanUndo: boolean;\n\tcheckpoints: ComposerUndoCheckpoint[];\n}\n\nexport interface ComposerUndoHistoryEntry {\n\tdescription: string;\n\tfileCount: number;\n\ttimestamp: number;\n}\n\nexport interface ComposerUndoHistoryResponse {\n\thistory: ComposerUndoHistoryEntry[];\n}\n\nexport interface ComposerUndoPreviewMessage {\n\tmessage: string;\n\tfileCount?: number;\n\tdescription?: string;\n}\n\nexport interface ComposerUndoRequest {\n\taction?: \"undo\" | \"checkpoint\" | \"restore\";\n\tcount?: number;\n\tpreview?: boolean;\n\tforce?: boolean;\n\tname?: string;\n\tdescription?: string;\n}\n\nexport type ComposerUndoOperationResponse =\n\t| { success: boolean; undone: number; errors: string[] }\n\t| { success: boolean; message: string; files?: string[] }\n\t| { message: string }\n\t| { preview: ComposerUndoPreview | ComposerUndoPreviewMessage }\n\t| {\n\t\t\tsuccess: boolean;\n\t\t\tcheckpoint: { name: string; changeCount: number; timestamp: number };\n\t }\n\t| { checkpoints: ComposerUndoCheckpoint[] };\n\nexport interface ComposerProjectOnboardingStep {\n\tkey: \"workspace\" | \"instructions\";\n\ttext: string;\n\tisComplete: boolean;\n\tisEnabled: boolean;\n}\n\nexport interface ComposerProjectOnboardingState {\n\tshouldShow: boolean;\n\tcompleted: boolean;\n\tseenCount: number;\n\tsteps: ComposerProjectOnboardingStep[];\n}\n\n/**\n * Workspace status response payload.\n */\nexport interface ComposerStatusResponse {\n\tcwd: string;\n\tgit: {\n\t\tbranch: string;\n\t\tstatus: {\n\t\t\tmodified: number;\n\t\t\tadded: number;\n\t\t\tdeleted: number;\n\t\t\tuntracked: number;\n\t\t\ttotal: number;\n\t\t};\n\t} | null;\n\tcontext: {\n\t\tagentMd: boolean;\n\t\tclaudeMd: boolean;\n\t};\n\tonboarding?: ComposerProjectOnboardingState;\n\tserver: {\n\t\tuptime: number;\n\t\tversion: string;\n\t\tstaticCacheMaxAgeSeconds?: number;\n\t};\n\tdatabase: {\n\t\tconfigured: boolean;\n\t\tconnected: boolean;\n\t};\n\tbackgroundTasks: ComposerBackgroundTaskHealth | null;\n\thooks: {\n\t\tasyncInFlight: number;\n\t\tconcurrency: {\n\t\t\tmax: number;\n\t\t\tactive: number;\n\t\t\tqueued: number;\n\t\t};\n\t};\n\tlastUpdated: number;\n\tlastLatencyMs: number;\n}\n\n/**\n * Token totals for usage summaries.\n */\nexport interface ComposerUsageTokenTotals {\n\tinput: number;\n\toutput: number;\n\tcacheRead: number;\n\tcacheWrite: number;\n\ttotal: number;\n}\n\n/**\n * Usage breakdown entry.\n */\nexport interface ComposerUsageBreakdown {\n\tcost: number;\n\trequests: number;\n\ttokens: number;\n\ttokensDetailed: ComposerUsageTokenTotals;\n\tcalls: number;\n\tcachedTokens: number;\n}\n\n/**\n * Usage summary response payload.\n */\nexport interface ComposerUsageSummary {\n\ttotalCost: number;\n\ttotalRequests: number;\n\ttotalTokens: number;\n\ttokensDetailed: ComposerUsageTokenTotals;\n\ttotalTokensDetailed: ComposerUsageTokenTotals;\n\ttotalTokensBreakdown: ComposerUsageTokenTotals;\n\ttotalCachedTokens: number;\n\tbyProvider: Record<string, ComposerUsageBreakdown>;\n\tbyModel: Record<string, ComposerUsageBreakdown>;\n}\n\n/**\n * Usage API response payload.\n */\nexport interface ComposerUsageResponse {\n\tsummary: ComposerUsageSummary;\n\thasData: boolean;\n}\n\n// Runtime schemas + validators\nexport * from \"./schemas.js\";\nexport * from \"./validators.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAksC9B,+BAA+B;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @fileoverview @evalops/contracts - Shared TypeScript Definitions\n *\n * This package provides the TypeScript type definitions that form the contract\n * between Maestro's frontend (Web UI) and backend (API server). All shared\n * types, interfaces, and enums are defined here to ensure type safety across\n * the client-server boundary.\n *\n * ## Key Types\n *\n * | Type | Description |\n * |------|-------------|\n * | `ComposerMessage` | Chat message with role, content, tools, and usage |\n * | `ComposerSession` | Session with metadata and message history |\n * | `ComposerChatRequest` | Request payload for the chat API |\n * | `ComposerUsage` | Token usage and cost tracking |\n * | `ComposerToolCall` | Tool invocation with status and result |\n *\n * ## Usage\n *\n * ```typescript\n * import type {\n * ComposerMessage,\n * ComposerSession,\n * ComposerChatRequest\n * } from \"@evalops/contracts\";\n *\n * // Type-safe message handling\n * const message: ComposerMessage = {\n * role: \"user\",\n * content: \"Hello, Maestro!\",\n * timestamp: new Date().toISOString(),\n * };\n *\n * // Type-safe API request\n * const request: ComposerChatRequest = {\n * messages: [message],\n * model: \"claude-sonnet-4-5\",\n * thinkingLevel: \"medium\",\n * };\n * ```\n *\n * @module @evalops/contracts\n */\n\nexport * from \"./headless-protocol-generated.js\";\nexport * from \"./headless-protocol-schemas.generated.js\";\nexport * as headlessProto from \"./proto/maestro/v1/headless_pb.js\";\nexport * from \"./advisor-effort.js\";\nexport * from \"./artifacts.js\";\nexport * from \"./delegation-prompt.js\";\nexport * from \"./guarded-files-settings.js\";\nexport * from \"./key-value-tokens.js\";\nexport * from \"./mcp-settings.js\";\nexport * from \"./memory.js\";\nexport * from \"./memory-utils.js\";\nexport * from \"./maestro-app-server.js\";\nexport * from \"./maestro-settings.js\";\nexport * from \"./onboarding-utils.js\";\nexport * from \"./proto/maestro/v1/headless_pb.js\";\nexport * from \"./runtime-constraints.js\";\nexport * from \"./runtime-app-server.js\";\nexport * from \"./runtime-server-request.js\";\nexport * from \"./scenario.js\";\n\n/**\n * Role of a message in the conversation.\n *\n * - `user` - Messages from the human user\n * - `assistant` - Messages from the AI assistant\n * - `system` - System prompts and instructions\n * - `tool` - Tool execution results\n */\nexport type ComposerRole = \"user\" | \"assistant\" | \"system\" | \"tool\";\n\n/**\n * Content blocks used for rich message payloads.\n */\nexport interface ComposerTextContent {\n\ttype: \"text\";\n\ttext: string;\n\ttextSignature?: string;\n}\n\nexport interface ComposerImageContent {\n\ttype: \"image\";\n\tdata: string;\n\tmimeType: string;\n}\n\nexport interface ComposerThinkingContent {\n\ttype: \"thinking\";\n\tthinking: string;\n\tthinkingSignature?: string;\n}\n\nexport interface ComposerToolCallContent {\n\ttype: \"toolCall\";\n\tid: string;\n\tname: string;\n\targuments: Record<string, unknown>;\n\tthoughtSignature?: string;\n}\n\nexport type ComposerContentBlock =\n\t| ComposerTextContent\n\t| ComposerImageContent\n\t| ComposerThinkingContent\n\t| ComposerToolCallContent;\n\n/**\n * Extended thinking/reasoning level for supported models.\n *\n * Higher levels produce more detailed reasoning at the cost of latency:\n * - `off` - No extended thinking\n * - `minimal` - Brief reasoning hints\n * - `low` - Light reasoning\n * - `medium` - Moderate reasoning depth\n * - `high` - Thorough step-by-step reasoning\n */\nexport type ComposerThinkingLevel =\n\t| \"off\"\n\t| \"minimal\"\n\t| \"low\"\n\t| \"medium\"\n\t| \"high\";\n\n/**\n * Represents a tool invocation within a message.\n *\n * Tools are actions the agent can take like reading files, executing commands,\n * or searching the web. Each tool call tracks its execution lifecycle.\n */\nexport interface ComposerToolCall {\n\t/** Name of the tool being invoked (e.g., \"read\", \"bash\", \"search\") */\n\tname: string;\n\t/** Current execution status of the tool call */\n\tstatus: \"pending\" | \"running\" | \"completed\" | \"error\";\n\t/** Arguments passed to the tool */\n\targs?: Record<string, unknown>;\n\t/** Result returned by the tool (if completed) */\n\tresult?: unknown;\n\t/** Unique identifier for this tool call (for matching results) */\n\ttoolCallId?: string;\n}\n\n/**\n * File attachment included in a user message.\n *\n * Attachments can be images (for vision-capable models) or documents\n * (typically accompanied by extracted text for model consumption).\n *\n * `content` is base64-encoded raw bytes. Servers may omit `content` in some\n * read APIs for size reasons; when omitted, `contentOmitted` is set to true.\n */\nexport interface ComposerAttachment {\n\t/** Unique identifier for this attachment */\n\tid: string;\n\t/** Attachment type */\n\ttype: \"image\" | \"document\";\n\t/** Original filename */\n\tfileName: string;\n\t/** MIME type */\n\tmimeType: string;\n\t/** Size in bytes */\n\tsize: number;\n\t/** Base64-encoded file content (may be omitted) */\n\tcontent?: string;\n\t/** True when `content` was intentionally omitted */\n\tcontentOmitted?: boolean;\n\t/** Extracted text content (for documents) */\n\textractedText?: string;\n\t/** Preview image (typically base64, small) */\n\tpreview?: string;\n}\n\n/**\n * A message in the Maestro conversation.\n *\n * Messages can contain text content, tool calls, thinking traces,\n * and usage statistics. This is the primary data structure for\n * conversation history.\n */\nexport interface ComposerMessage {\n\t/** Role of the message sender */\n\trole: ComposerRole;\n\t/** Text content of the message */\n\tcontent: string | ComposerContentBlock[];\n\t/** Optional file attachments (for user messages) */\n\tattachments?: ComposerAttachment[];\n\t/** ISO 8601 timestamp when the message was created */\n\ttimestamp?: string;\n\t/** Extended thinking/reasoning trace (for supported models) */\n\tthinking?: string;\n\t/** Tool calls made in this message (for assistant messages) */\n\ttools?: ComposerToolCall[];\n\t/** Name of the tool (for tool result messages) */\n\ttoolName?: string;\n\t/** Whether this message represents an error */\n\tisError?: boolean;\n\t/** Token usage and cost for this message */\n\tusage?: ComposerUsage;\n\t/** Original provider for assistant messages (for cross-provider resume) */\n\tprovider?: string;\n\t/** Original API for assistant messages (for cross-provider resume) */\n\tapi?: string;\n\t/** Original model ID for assistant messages (for cross-provider resume) */\n\tmodel?: string;\n}\n\n/**\n * Cost breakdown for token usage.\n *\n * Costs are typically in USD, calculated based on the model's pricing.\n */\nexport interface ComposerUsageCost {\n\t/** Cost for input tokens */\n\tinput: number;\n\t/** Cost for output tokens */\n\toutput: number;\n\t/** Cost savings from cache reads (if applicable) */\n\tcacheRead?: number;\n\t/** Cost for cache writes (if applicable) */\n\tcacheWrite?: number;\n\t/** Total cost for this message */\n\ttotal?: number;\n}\n\n/**\n * Token usage statistics for a message or session.\n *\n * Tracks input/output tokens and cache utilization for cost monitoring.\n */\nexport interface ComposerUsage {\n\t/** Number of input tokens consumed */\n\tinput: number;\n\t/** Number of output tokens generated */\n\toutput: number;\n\t/** Tokens served from cache (reduces cost) */\n\tcacheRead?: number;\n\t/** Tokens written to cache */\n\tcacheWrite?: number;\n\t/** Calculated cost breakdown */\n\tcost?: ComposerUsageCost;\n}\n\n/**\n * Model capability metadata exposed by the API.\n */\nexport interface ComposerModelCapabilities {\n\tstreaming?: boolean;\n\ttools?: boolean;\n\tvision?: boolean;\n\treasoning?: boolean;\n}\n\n/**\n * Model metadata returned by `/api/models` and `/api/model`.\n */\nexport interface ComposerModel {\n\tid: string;\n\tprovider: string;\n\tname: string;\n\tapi?: string;\n\tcontextWindow?: number;\n\tmaxOutputTokens?: number;\n\tmaxTokens?: number;\n\treasoning?: boolean;\n\tcost?: ComposerUsageCost;\n\tcapabilities?: ComposerModelCapabilities;\n}\n\n/**\n * Response payload for `/api/models`.\n */\nexport interface ComposerModelListResponse {\n\tmodels: ComposerModel[];\n}\n\n/**\n * Argument definition for a custom command.\n */\nexport interface ComposerCommandArg {\n\tname: string;\n\trequired?: boolean;\n}\n\n/**\n * Custom command definition (safe for client consumption).\n */\nexport interface ComposerCommand {\n\tname: string;\n\tdescription?: string;\n\tprompt: string;\n\targs?: ComposerCommandArg[];\n}\n\n/**\n * Response payload for `/api/commands`.\n */\nexport interface ComposerCommandListResponse {\n\tcommands: ComposerCommand[];\n}\n\n/**\n * Command favorites/recents preferences.\n */\nexport interface ComposerCommandPrefs {\n\tfavorites: string[];\n\trecents: string[];\n}\n\n/**\n * Update payload for command preferences.\n */\nexport interface ComposerCommandPrefsUpdate {\n\tfavorites?: string[];\n\trecents?: string[];\n}\n\n/**\n * Response payload for command preference updates.\n */\nexport interface ComposerCommandPrefsWriteResponse {\n\tok: boolean;\n}\n\n/**\n * Request payload for `/api/config`.\n */\nexport interface ComposerConfigWriteRequest {\n\tconfig: Record<string, unknown>;\n}\n\n/**\n * Response payload for `/api/config` GET.\n */\nexport interface ComposerConfigResponse {\n\tconfig: Record<string, unknown>;\n\tconfigPath: string;\n}\n\n/**\n * Response payload for `/api/config` POST.\n */\nexport interface ComposerConfigWriteResponse {\n\tsuccess: boolean;\n}\n\n/**\n * Response payload for `/api/files`.\n */\nexport interface ComposerFilesResponse {\n\tfiles: string[];\n}\n\n/**\n * Request payload for the chat API endpoint.\n *\n * Sent to `POST /api/chat` to initiate or continue a conversation.\n */\nexport interface ComposerChatRequest {\n\t/** Model ID to use (e.g., \"claude-sonnet-4-5-20250929\") */\n\tmodel?: string;\n\t/** Conversation history including the current user message */\n\tmessages: ComposerMessage[];\n\t/** Extended thinking level for supported models */\n\tthinkingLevel?: ComposerThinkingLevel;\n\t/** Session ID to resume (optional - creates new session if omitted) */\n\tsessionId?: string;\n\t/** Whether to stream the response via SSE (default: true) */\n\tstream?: boolean;\n}\n\n/**\n * Request payload for prompt suggestion generation.\n *\n * Sent to `POST /api/prompt-suggestion` to generate a likely next user prompt\n * from the current conversation state.\n */\nexport interface ComposerPromptSuggestionRequest {\n\t/** Optional model preference used to select a suggestion model. */\n\tmodel?: string;\n\t/** Conversation history to summarize into a likely next user prompt. */\n\tmessages: ComposerMessage[];\n\t/** Optional session id for callers that want request correlation. */\n\tsessionId?: string;\n}\n\n/**\n * Response payload for prompt suggestion generation.\n */\nexport interface ComposerPromptSuggestionResponse {\n\t/** Suggested next user prompt, or null when suggestion generation is suppressed. */\n\tsuggestion: string | null;\n\t/** Optional suppression or filtering reason when no suggestion is returned. */\n\tsuppressedReason?: string;\n\t/** Model used to generate the suggestion, when generation ran. */\n\tmodel?: string;\n}\n\n/**\n * Summary metadata for a session (without full message history).\n *\n * Used in session list views for performance.\n */\nexport interface ComposerSessionSummary {\n\t/** Unique session identifier */\n\tid: string;\n\t/** User-assigned or auto-generated title */\n\ttitle?: string;\n\t/** Short persisted recap shown when resuming a session */\n\tresumeSummary?: string;\n\t/** ISO 8601 timestamp when session was created */\n\tcreatedAt: string;\n\t/** ISO 8601 timestamp when session was last updated */\n\tupdatedAt: string;\n\t/** Total number of messages in the session */\n\tmessageCount: number;\n\t/** Whether the session is marked as a favorite */\n\tfavorite?: boolean;\n\t/** User-assigned tags for organization */\n\ttags?: string[];\n}\n\nexport type ComposerSessionMessagesView = \"full\" | \"summary\" | \"notLoaded\";\n\nexport interface ComposerPendingClientToolRequest {\n\ttoolCallId: string;\n\ttoolName: string;\n\targs: unknown;\n\tkind?: \"client_tool\" | \"mcp_elicitation\" | \"user_input\";\n\treason?: string;\n}\n\nexport type ComposerPendingRequestKind =\n\t| \"approval\"\n\t| \"client_tool\"\n\t| \"mcp_elicitation\"\n\t| \"user_input\"\n\t| \"tool_retry\";\n\nexport type ComposerPendingRequestResolution =\n\t| \"approved\"\n\t| \"denied\"\n\t| \"completed\"\n\t| \"failed\"\n\t| \"answered\"\n\t| \"retried\"\n\t| \"skipped\"\n\t| \"aborted\"\n\t| \"cancelled\";\n\nexport type ComposerPendingRequestPlatformOperation =\n\t| \"ResolveApproval\"\n\t| \"ResumeToolExecution\"\n\t| \"ResumeRun\";\n\nexport interface ComposerPendingRequestPlatformRef {\n\tsource: \"approvals_service\" | \"tool_execution\";\n\ttoolExecutionId?: string;\n\tapprovalRequestId?: string;\n}\n\nexport interface ComposerPendingRequest {\n\tid: string;\n\tkind: ComposerPendingRequestKind;\n\tstatus: \"pending\";\n\tvisibility: \"user\";\n\tsessionId?: string;\n\ttoolCallId: string;\n\ttoolName: string;\n\tdisplayName?: string;\n\tsummaryLabel?: string;\n\tactionDescription?: string;\n\targs: unknown;\n\treason: string;\n\tcreatedAt: string;\n\texpiresAt?: string;\n\tsource: \"local\" | \"platform\";\n\tplatform?: ComposerPendingRequestPlatformRef;\n}\n\nexport type ComposerClientToolResultContent =\n\t| ComposerTextContent\n\t| ComposerImageContent;\n\nexport interface ComposerPendingRequestResumeRequest {\n\tkind?: ComposerPendingRequestKind;\n\tsessionId?: string;\n\tdecision?: \"approved\" | \"denied\";\n\taction?: \"retry\" | \"skip\" | \"abort\";\n\tcontent?: ComposerClientToolResultContent[];\n\tisError?: boolean;\n\treason?: string;\n}\n\nexport interface ComposerPendingRequestResumeResponse {\n\tsuccess: true;\n\trequest: {\n\t\tid: string;\n\t\tkind: ComposerPendingRequestKind;\n\t\tsessionId?: string;\n\t\tresolution: ComposerPendingRequestResolution;\n\t\tsource: \"local\" | \"platform\";\n\t\tplatform?: ComposerPendingRequestPlatformRef;\n\t\tplatformOperation?: ComposerPendingRequestPlatformOperation;\n\t};\n}\n\nexport type ComposerRunTimelineVisibility = \"user\" | \"admin\" | \"audit\";\n\nexport type ComposerRunTimelineSource = \"local\" | \"platform\";\n\nexport type ComposerRunTimelineEventType =\n\t| \"session.started\"\n\t| \"session.updated\"\n\t| \"message.user\"\n\t| \"message.assistant\"\n\t| \"tool.requested\"\n\t| \"tool.completed\"\n\t| \"tool.failed\"\n\t| \"file.changed\"\n\t| \"diagnostic.delta\"\n\t| \"artifact.linked\"\n\t| \"policy.decision\"\n\t| \"wait.pending\"\n\t| \"agent.run.started\"\n\t| \"agent.run.completed\"\n\t| \"agent.run.failed\"\n\t| \"compaction.created\"\n\t| \"branch.created\"\n\t| \"model.changed\"\n\t| \"thinking.changed\"\n\t| \"runtime.recovery\"\n\t| \"runtime.finished\"\n\t| \"custom.event\";\n\nexport type ComposerRunTimelineStatus =\n\t| \"pending\"\n\t| \"running\"\n\t| \"completed\"\n\t| \"failed\"\n\t| \"approved\"\n\t| \"denied\"\n\t| \"info\";\n\nexport interface ComposerRunTimelineItem {\n\tid: string;\n\tsessionId: string;\n\ttimestamp: string;\n\ttype: ComposerRunTimelineEventType;\n\ttitle: string;\n\tvisibility: ComposerRunTimelineVisibility;\n\tsource: ComposerRunTimelineSource;\n\tstatus?: ComposerRunTimelineStatus;\n\tsummary?: string;\n\trole?: ComposerRole;\n\ttoolCallId?: string;\n\ttoolName?: string;\n\tpendingRequestId?: string;\n\tpendingRequestKind?: ComposerPendingRequestKind;\n\tapprovalRequestId?: string;\n\ttoolExecutionId?: string;\n\tartifactId?: string;\n\tagentRunId?: string;\n\tparentAgentRunId?: string;\n\tchildAgentRunId?: string;\n\tremoteRunnerSessionId?: string;\n\tplatform?: ComposerPendingRequestPlatformRef;\n\tplatformOperation?: ComposerPendingRequestPlatformOperation;\n\tmetadata?: Record<string, unknown>;\n}\n\nexport interface ComposerRunTimelineResponse {\n\tsessionId: string;\n\tsource: ComposerRunTimelineSource;\n\tgeneratedAt: string;\n\tplatformBacked: boolean;\n\tpendingRequestCount: number;\n\titems: ComposerRunTimelineItem[];\n}\n\n/**\n * Full session data including message history.\n *\n * Returned when loading a specific session.\n */\nexport interface ComposerSession extends ComposerSessionSummary {\n\t/** Hydration level used for the messages array. Defaults to full. */\n\tmessagesView?: ComposerSessionMessagesView;\n\t/** Complete conversation history */\n\tmessages: ComposerMessage[];\n\t/** Pending approval requests that still require a decision */\n\tpendingApprovalRequests?: ComposerActionApprovalRequest[];\n\t/** Pending client or ask_user requests that still require client handling */\n\tpendingClientToolRequests?: ComposerPendingClientToolRequest[];\n\t/** Pending tool retry requests that still require a decision */\n\tpendingToolRetryRequests?: ComposerToolRetryRequest[];\n\t/** Unified pending requests for hosted attach, Platform, and admin surfaces */\n\tpendingRequests?: ComposerPendingRequest[];\n}\n\n/**\n * Streaming events emitted while generating assistant messages.\n */\nexport type ComposerAssistantMessageEvent =\n\t| {\n\t\t\ttype: \"start\";\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"text_end\";\n\t\t\tcontentIndex: number;\n\t\t\tcontent: string;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"thinking_end\";\n\t\t\tcontentIndex: number;\n\t\t\tcontent: string;\n\t\t\tpartial: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_start\";\n\t\t\tcontentIndex: number;\n\t\t\tpartial?: ComposerMessage;\n\t\t\ttoolCallId?: string;\n\t\t\ttoolCallName?: string;\n\t\t\ttoolCallArgs?: Record<string, unknown>;\n\t\t\ttoolCallArgsTruncated?: boolean;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_delta\";\n\t\t\tcontentIndex: number;\n\t\t\tdelta: string;\n\t\t\tpartial?: ComposerMessage;\n\t\t\ttoolCallId?: string;\n\t\t\ttoolCallName?: string;\n\t\t\ttoolCallArgs?: Record<string, unknown>;\n\t\t\ttoolCallArgsTruncated?: boolean;\n\t }\n\t| {\n\t\t\ttype: \"toolcall_end\";\n\t\t\tcontentIndex: number;\n\t\t\ttoolCall: ComposerToolCallContent;\n\t\t\tpartial?: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"done\";\n\t\t\treason: \"stop\" | \"length\" | \"toolUse\";\n\t\t\tmessage: ComposerMessage;\n\t }\n\t| {\n\t\t\ttype: \"error\";\n\t\t\treason: \"aborted\" | \"error\";\n\t\t\terror: ComposerMessage;\n\t };\n\nexport interface ComposerActionApprovalRequest {\n\tid: string;\n\ttoolName: string;\n\tdisplayName?: string;\n\tsummaryLabel?: string;\n\tactionDescription?: string;\n\targs: unknown;\n\treason: string;\n\tstartedAtMs?: number;\n\tplatform?: ComposerPendingRequestPlatformRef;\n}\n\nexport interface ComposerActionApprovalDecision {\n\tapproved: boolean;\n\treason?: string;\n\tresolvedBy: \"policy\" | \"user\";\n\tresolvedAtMs?: number;\n}\n\nexport interface ComposerToolRetryRequest {\n\tid: string;\n\ttoolCallId: string;\n\ttoolName: string;\n\targs: unknown;\n\terrorMessage: string;\n\tattempt: number;\n\tmaxAttempts?: number;\n\tsummary?: string;\n}\n\nexport interface ComposerToolRetryDecision {\n\taction: \"retry\" | \"skip\" | \"abort\";\n\treason?: string;\n\tresolvedBy: \"policy\" | \"user\" | \"runtime\";\n}\n\n/**\n * Agent-level streaming events (SSE payloads).\n */\nexport type ComposerAgentEvent =\n\t| { type: \"agent_start\" }\n\t| {\n\t\t\ttype: \"agent_end\";\n\t\t\tmessages: ComposerMessage[];\n\t\t\taborted?: boolean;\n\t\t\tpartialAccepted?: ComposerMessage;\n\t\t\tstopReason?: \"stop\" | \"length\" | \"toolUse\" | \"error\" | \"aborted\";\n\t }\n\t| { type: \"status\"; status: string; details: Record<string, unknown> }\n\t| { type: \"error\"; message: string }\n\t| { type: \"turn_start\" }\n\t| {\n\t\t\ttype: \"turn_end\";\n\t\t\tmessage: ComposerMessage;\n\t\t\ttoolResults: ComposerMessage[];\n\t }\n\t| { type: \"message_start\"; message: ComposerMessage }\n\t| {\n\t\t\ttype: \"message_update\";\n\t\t\tmessage?: ComposerMessage;\n\t\t\tassistantMessageEvent: ComposerAssistantMessageEvent;\n\t }\n\t| { type: \"message_end\"; message: ComposerMessage }\n\t| {\n\t\t\ttype: \"tool_execution_start\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\targs: Record<string, unknown>;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_update\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\targs: Record<string, unknown>;\n\t\t\tpartialResult: unknown;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_end\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t\tresult: unknown;\n\t\t\tisError: boolean;\n\t }\n\t| {\n\t\t\ttype: \"tool_batch_summary\";\n\t\t\tsummary: string;\n\t\t\tsummaryLabels: string[];\n\t\t\ttoolCallIds: string[];\n\t\t\ttoolNames: string[];\n\t\t\tcallsSucceeded: number;\n\t\t\tcallsFailed: number;\n\t }\n\t| { type: \"action_approval_required\"; request: ComposerActionApprovalRequest }\n\t| {\n\t\t\ttype: \"action_approval_resolved\";\n\t\t\trequest: ComposerActionApprovalRequest;\n\t\t\tdecision: ComposerActionApprovalDecision;\n\t }\n\t| {\n\t\t\ttype: \"client_tool_request\";\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\targs: unknown;\n\t }\n\t| { type: \"tool_retry_required\"; request: ComposerToolRetryRequest }\n\t| {\n\t\t\ttype: \"tool_retry_resolved\";\n\t\t\trequest: ComposerToolRetryRequest;\n\t\t\tdecision: ComposerToolRetryDecision;\n\t }\n\t| {\n\t\t\ttype: \"compaction\";\n\t\t\tsummary: string;\n\t\t\tfirstKeptEntryIndex: number;\n\t\t\ttokensBefore: number;\n\t\t\tauto?: boolean;\n\t\t\tcustomInstructions?: string;\n\t\t\ttimestamp: string;\n\t }\n\t| {\n\t\t\ttype: \"auto_retry_start\";\n\t\t\tattempt: number;\n\t\t\tmaxAttempts: number;\n\t\t\tdelayMs: number;\n\t\t\terrorMessage: string;\n\t }\n\t| {\n\t\t\ttype: \"auto_retry_end\";\n\t\t\tsuccess: boolean;\n\t\t\tattempt: number;\n\t\t\tfinalError?: string;\n\t }\n\t| { type: \"session_update\"; sessionId: string }\n\t| { type: \"heartbeat\" }\n\t| { type: \"aborted\" }\n\t| { type: \"done\" };\n\n/**\n * Error severity levels for API payloads.\n */\nexport type ComposerErrorSeverity = \"error\" | \"warning\" | \"info\";\n\n/**\n * Error categories for API payloads.\n */\nexport type ComposerErrorCategory =\n\t| \"validation\"\n\t| \"permission\"\n\t| \"network\"\n\t| \"timeout\"\n\t| \"filesystem\"\n\t| \"tool\"\n\t| \"session\"\n\t| \"config\"\n\t| \"api\"\n\t| \"internal\";\n\n/**\n * Structured error payload for API responses.\n */\nexport interface ComposerErrorPayload {\n\tcode: string;\n\tcategory: ComposerErrorCategory;\n\tseverity?: ComposerErrorSeverity;\n\tretriable?: boolean;\n\tcontext?: Record<string, unknown>;\n}\n\n/**\n * Standard API error response shape.\n */\nexport interface ComposerErrorResponse {\n\terror: string;\n\tcode?: string;\n\tdetails?: Record<string, unknown>[];\n\tcomposer?: ComposerErrorPayload;\n}\n\n/**\n * Response payload for session list endpoint.\n */\nexport interface ComposerSessionListResponse {\n\t/** Array of session summaries */\n\tsessions: ComposerSessionSummary[];\n}\n\n/**\n * SSE event sent when a session is created or updated.\n *\n * Allows clients to sync session state in real-time.\n */\nexport interface ComposerSessionUpdateEvent {\n\ttype: \"session_update\";\n\t/** ID of the created/updated session */\n\tsessionId: string;\n}\n\n/**\n * Background task resource limit breach metadata.\n */\nexport interface ComposerBackgroundTaskLimitBreach {\n\tkind: \"memory\" | \"cpu\";\n\tlimit: number;\n\tactual: number;\n}\n\n/**\n * Background task history record.\n */\nexport interface ComposerBackgroundTaskHistoryEntry {\n\tevent: \"started\" | \"restarted\" | \"exited\" | \"failed\" | \"stopped\";\n\ttaskId: string;\n\tstatus: string;\n\tcommand: string;\n\ttimestamp: string;\n\trestartAttempts: number;\n\tfailureReason?: string;\n\tlimitBreach?: ComposerBackgroundTaskLimitBreach;\n}\n\n/**\n * Background task health entry.\n */\nexport interface ComposerBackgroundTaskHealthEntry {\n\tid: string;\n\tstatus: string;\n\tsummary: string;\n\tcommand: string;\n\trestarts?: string;\n\tissues: string[];\n\tlastLogLine?: string;\n\tlogTruncated?: boolean;\n\tdurationSeconds: number;\n}\n\n/**\n * Background task health snapshot.\n */\nexport interface ComposerBackgroundTaskHealth {\n\ttotal: number;\n\trunning: number;\n\trestarting: number;\n\tfailed: number;\n\tentries: ComposerBackgroundTaskHealthEntry[];\n\ttruncated: boolean;\n\tnotificationsEnabled: boolean;\n\tdetailsRedacted: boolean;\n\thistory: ComposerBackgroundTaskHistoryEntry[];\n\thistoryTruncated: boolean;\n}\n\nexport type ComposerGuardianTarget = \"staged\" | \"all\";\n\nexport type ComposerGuardianStatus = \"passed\" | \"failed\" | \"skipped\" | \"error\";\n\nexport interface ComposerGuardianToolResult {\n\ttool: string;\n\texitCode: number;\n\tstdout: string;\n\tstderr: string;\n\tdurationMs: number;\n\tskipped?: boolean;\n\treason?: string;\n}\n\nexport interface ComposerGuardianRunResult {\n\tstatus: ComposerGuardianStatus;\n\texitCode: number;\n\tstartedAt: number;\n\tdurationMs: number;\n\ttarget: ComposerGuardianTarget;\n\ttrigger?: string;\n\tfilesScanned: number;\n\tfiles?: string[];\n\tsummary: string;\n\tskipReason?: string;\n\ttoolResults: ComposerGuardianToolResult[];\n}\n\nexport interface ComposerGuardianState {\n\tenabled: boolean;\n\tlastRun?: ComposerGuardianRunResult;\n}\n\nexport interface ComposerGuardianStatusResponse {\n\tenabled: boolean;\n\tstate: ComposerGuardianState;\n}\n\nexport type ComposerGuardianRunResponse = ComposerGuardianRunResult;\n\nexport interface ComposerGuardianConfigRequest {\n\tenabled: boolean;\n}\n\nexport interface ComposerGuardianConfigResponse {\n\tsuccess: boolean;\n\tenabled: boolean;\n}\n\nexport interface ComposerPlanModeState {\n\tactive: boolean;\n\tfilePath: string;\n\tsessionId?: string;\n\tgitBranch?: string;\n\tgitCommitSha?: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tname?: string;\n}\n\nexport interface ComposerPlanStatusResponse {\n\tstate: ComposerPlanModeState | null;\n\tcontent: string | null;\n}\n\nexport type ComposerPlanRequest =\n\t| { action: \"enter\"; name?: string; sessionId?: string }\n\t| { action: \"exit\" }\n\t| { action: \"update\"; content: string };\n\nexport type ComposerPlanActionResponse =\n\t| { success: boolean; state: ComposerPlanModeState }\n\t| { success: boolean };\n\nexport interface ComposerBackgroundSettings {\n\tnotificationsEnabled: boolean;\n\tstatusDetailsEnabled: boolean;\n}\n\nexport interface ComposerBackgroundStatusSnapshot {\n\trunning: number;\n\ttotal: number;\n\tfailed: number;\n\tdetailsRedacted: boolean;\n}\n\nexport interface ComposerBackgroundStatusResponse {\n\tsettings: ComposerBackgroundSettings;\n\tsnapshot: ComposerBackgroundStatusSnapshot | null;\n}\n\nexport interface ComposerBackgroundHistoryEntry {\n\ttimestamp: string;\n\tevent: \"started\" | \"restarted\" | \"exited\" | \"failed\" | \"stopped\";\n\ttaskId: string;\n\tcommand: string;\n\tfailureReason?: string;\n\tlimitBreach?: ComposerBackgroundTaskLimitBreach;\n}\n\nexport interface ComposerBackgroundHistoryResponse {\n\thistory: ComposerBackgroundHistoryEntry[];\n\ttruncated: boolean;\n}\n\nexport interface ComposerBackgroundPathResponse {\n\tpath: string;\n\texists: boolean;\n\toverridden: boolean;\n}\n\nexport interface ComposerBackgroundUpdateRequest {\n\tenabled: boolean;\n}\n\nexport interface ComposerBackgroundUpdateResponse {\n\tsuccess: boolean;\n\tmessage: string;\n}\n\nexport type ComposerApprovalMode = \"auto\" | \"prompt\" | \"fail\";\n\nexport interface ComposerApprovalsStatusResponse {\n\tmode: ComposerApprovalMode;\n\tavailableModes: ComposerApprovalMode[];\n}\n\nexport interface ComposerApprovalsUpdateRequest {\n\tmode: ComposerApprovalMode;\n\tsessionId?: string;\n}\n\nexport interface ComposerApprovalsUpdateResponse {\n\tsuccess: boolean;\n\tmode: ComposerApprovalMode;\n\tmessage: string;\n}\n\nexport type ComposerFrameworkScope = \"user\" | \"workspace\";\n\nexport interface ComposerFrameworkStatusResponse {\n\tframework: string;\n\tsource: string;\n\tlocked: boolean;\n\tscope: ComposerFrameworkScope;\n}\n\nexport interface ComposerFrameworkListEntry {\n\tid: string;\n\tsummary: string;\n}\n\nexport interface ComposerFrameworkListResponse {\n\tframeworks: ComposerFrameworkListEntry[];\n}\n\nexport interface ComposerFrameworkUpdateRequest {\n\tframework?: string | null;\n\tscope?: ComposerFrameworkScope;\n}\n\nexport interface ComposerFrameworkUpdateResponse {\n\tsuccess: boolean;\n\tmessage: string;\n\tframework: string | null;\n\tsummary?: string;\n\tscope?: ComposerFrameworkScope;\n}\n\nexport type ComposerChangeType = \"create\" | \"modify\" | \"delete\";\n\nexport interface ComposerFileChange {\n\tid: string;\n\ttype: ComposerChangeType;\n\tpath: string;\n\tbefore: string | null;\n\tafter: string | null;\n\ttoolName: string;\n\ttoolCallId: string;\n\ttimestamp: number;\n\tisGitTracked: boolean;\n\tmessageId?: string;\n}\n\nexport type ComposerUndoRestoreAction = \"restore\" | \"delete\" | \"recreate\";\n\nexport interface ComposerUndoPreview {\n\tchanges: ComposerFileChange[];\n\trestores: Array<{ path: string; action: ComposerUndoRestoreAction }>;\n\tconflicts: Array<{ path: string; reason: string }>;\n}\n\nexport interface ComposerUndoCheckpoint {\n\tname: string;\n\tdescription?: string;\n\tchangeCount: number;\n\ttimestamp: number;\n}\n\nexport interface ComposerUndoStatusResponse {\n\ttotalChanges: number;\n\tcanUndo: boolean;\n\tcheckpoints: ComposerUndoCheckpoint[];\n}\n\nexport interface ComposerUndoHistoryEntry {\n\tdescription: string;\n\tfileCount: number;\n\ttimestamp: number;\n}\n\nexport interface ComposerUndoHistoryResponse {\n\thistory: ComposerUndoHistoryEntry[];\n}\n\nexport interface ComposerUndoPreviewMessage {\n\tmessage: string;\n\tfileCount?: number;\n\tdescription?: string;\n}\n\nexport interface ComposerUndoRequest {\n\taction?: \"undo\" | \"checkpoint\" | \"restore\";\n\tcount?: number;\n\tpreview?: boolean;\n\tforce?: boolean;\n\tname?: string;\n\tdescription?: string;\n}\n\nexport type ComposerUndoOperationResponse =\n\t| { success: boolean; undone: number; errors: string[] }\n\t| { success: boolean; message: string; files?: string[] }\n\t| { message: string }\n\t| { preview: ComposerUndoPreview | ComposerUndoPreviewMessage }\n\t| {\n\t\t\tsuccess: boolean;\n\t\t\tcheckpoint: { name: string; changeCount: number; timestamp: number };\n\t }\n\t| { checkpoints: ComposerUndoCheckpoint[] };\n\nexport interface ComposerProjectOnboardingStep {\n\tkey: \"workspace\" | \"instructions\";\n\ttext: string;\n\tisComplete: boolean;\n\tisEnabled: boolean;\n}\n\nexport interface ComposerProjectOnboardingState {\n\tshouldShow: boolean;\n\tcompleted: boolean;\n\tseenCount: number;\n\tsteps: ComposerProjectOnboardingStep[];\n}\n\n/**\n * Workspace status response payload.\n */\nexport interface ComposerStatusResponse {\n\tcwd: string;\n\tgit: {\n\t\tbranch: string;\n\t\tstatus: {\n\t\t\tmodified: number;\n\t\t\tadded: number;\n\t\t\tdeleted: number;\n\t\t\tuntracked: number;\n\t\t\ttotal: number;\n\t\t};\n\t} | null;\n\tcontext: {\n\t\tagentMd: boolean;\n\t\tclaudeMd: boolean;\n\t};\n\tonboarding?: ComposerProjectOnboardingState;\n\tserver: {\n\t\tuptime: number;\n\t\tversion: string;\n\t\tstaticCacheMaxAgeSeconds?: number;\n\t};\n\tdatabase: {\n\t\tconfigured: boolean;\n\t\tconnected: boolean;\n\t};\n\tbackgroundTasks: ComposerBackgroundTaskHealth | null;\n\thooks: {\n\t\tasyncInFlight: number;\n\t\tconcurrency: {\n\t\t\tmax: number;\n\t\t\tactive: number;\n\t\t\tqueued: number;\n\t\t};\n\t};\n\tlastUpdated: number;\n\tlastLatencyMs: number;\n}\n\n/**\n * Token totals for usage summaries.\n */\nexport interface ComposerUsageTokenTotals {\n\tinput: number;\n\toutput: number;\n\tcacheRead: number;\n\tcacheWrite: number;\n\ttotal: number;\n}\n\n/**\n * Usage breakdown entry.\n */\nexport interface ComposerUsageBreakdown {\n\tcost: number;\n\trequests: number;\n\ttokens: number;\n\ttokensDetailed: ComposerUsageTokenTotals;\n\tcalls: number;\n\tcachedTokens: number;\n}\n\n/**\n * Usage summary response payload.\n */\nexport interface ComposerUsageSummary {\n\ttotalCost: number;\n\ttotalRequests: number;\n\ttotalTokens: number;\n\ttokensDetailed: ComposerUsageTokenTotals;\n\ttotalTokensDetailed: ComposerUsageTokenTotals;\n\ttotalTokensBreakdown: ComposerUsageTokenTotals;\n\ttotalCachedTokens: number;\n\tbyProvider: Record<string, ComposerUsageBreakdown>;\n\tbyModel: Record<string, ComposerUsageBreakdown>;\n}\n\n/**\n * Usage API response payload.\n */\nexport interface ComposerUsageResponse {\n\tsummary: ComposerUsageSummary;\n\thasData: boolean;\n}\n\n// Runtime schemas + validators\nexport * from \"./schemas.js\";\nexport * from \"./validators.js\";\n"]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* Compaction runtime knobs. Mirrors the existing auto-compaction behavior in
|
|
4
|
+
* `src/agent/auto-compaction.ts`, promoted from process env to typed settings.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MaestroCompactionSettingsSchema: import("@sinclair/typebox").TObject<{
|
|
7
|
+
/** Context-window usage percentage that triggers compaction (50-100). */
|
|
8
|
+
thresholdPercent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
9
|
+
/** Whether auto-compaction is enabled. */
|
|
10
|
+
enabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
|
+
/** Minimum message count before compaction is considered. */
|
|
12
|
+
minMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
13
|
+
/** Number of recent messages always retained during compaction. */
|
|
14
|
+
keepRecentMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Tool gating overlays. `disable` / `enable` are tool-name lists that overlay
|
|
18
|
+
* the PlatformToolExecutionBridge classification.
|
|
19
|
+
*/
|
|
20
|
+
export declare const MaestroToolsSettingsSchema: import("@sinclair/typebox").TObject<{
|
|
21
|
+
disable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
22
|
+
enable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Typed catalog of Maestro runtime knobs.
|
|
26
|
+
*/
|
|
27
|
+
export declare const MaestroSettingsSchema: import("@sinclair/typebox").TObject<{
|
|
28
|
+
compaction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
29
|
+
/** Context-window usage percentage that triggers compaction (50-100). */
|
|
30
|
+
thresholdPercent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
31
|
+
/** Whether auto-compaction is enabled. */
|
|
32
|
+
enabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33
|
+
/** Minimum message count before compaction is considered. */
|
|
34
|
+
minMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
35
|
+
/** Number of recent messages always retained during compaction. */
|
|
36
|
+
keepRecentMessages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
37
|
+
}>>;
|
|
38
|
+
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>]>>;
|
|
39
|
+
tools: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
40
|
+
disable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
41
|
+
enable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
42
|
+
}>>;
|
|
43
|
+
}>;
|
|
44
|
+
export type MaestroSettings = Static<typeof MaestroSettingsSchema>;
|
|
45
|
+
export type MaestroCompactionSettings = NonNullable<MaestroSettings["compaction"]>;
|
|
46
|
+
export type MaestroToolsSettings = NonNullable<MaestroSettings["tools"]>;
|
|
47
|
+
export declare const DEFAULT_MAESTRO_COMPACTION_SETTINGS: Required<MaestroCompactionSettings>;
|
|
48
|
+
/**
|
|
49
|
+
* Defensively parse an untyped settings payload (e.g. raw JSONB) into a typed
|
|
50
|
+
* `MaestroSettings`, dropping anything that does not validate. Unknown keys
|
|
51
|
+
* are ignored so the catalog can grow without rejecting stored rows.
|
|
52
|
+
*/
|
|
53
|
+
export declare function normalizeMaestroSettings(input: unknown): MaestroSettings;
|
|
54
|
+
/**
|
|
55
|
+
* Merge organization- and user-level Maestro settings with user-leaf-wins
|
|
56
|
+
* precedence. Both inputs are normalized first; `undefined` namespaces fall
|
|
57
|
+
* through to the other layer. Env / built-in defaults are applied by the
|
|
58
|
+
* runtime consumer, not here, so this stays a pure function.
|
|
59
|
+
*/
|
|
60
|
+
export declare function mergeMaestroSettings(organization?: MaestroSettings | null, user?: MaestroSettings | null): MaestroSettings;
|
|
61
|
+
//# sourceMappingURL=maestro-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maestro-settings.d.ts","sourceRoot":"","sources":["../src/maestro-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAyBtD;;;GAGG;AACH,eAAO,MAAM,+BAA+B;IAC3C,yEAAyE;;IAEzE,0CAA0C;;IAE1C,6DAA6D;;IAE7D,mEAAmE;;EAElE,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;EAGrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;QAtBjC,yEAAyE;;QAEzE,0CAA0C;;QAE1C,6DAA6D;;QAE7D,mEAAmE;;;;;;;;EAoBlE,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACnE,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAClD,eAAe,CAAC,YAAY,CAAC,CAC7B,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,yBAAyB,CAMlF,CAAC;AAoFH;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAUxE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CACnC,YAAY,CAAC,EAAE,eAAe,GAAG,IAAI,EACrC,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,GAC3B,eAAe,CAejB"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
/**
|
|
3
|
+
* Maestro runtime settings catalog.
|
|
4
|
+
*
|
|
5
|
+
* A single typed source of truth for the runtime knobs an agent honors, so
|
|
6
|
+
* "what knobs even exist" stops being a code-archaeology question. Settings
|
|
7
|
+
* resolve org -> user -> env (legacy) -> built-in default, and the schema is
|
|
8
|
+
* the auditable artifact: every per-tenant deviation from defaults is a typed,
|
|
9
|
+
* queryable record stored on `organizations.settings` / `users.settings`.
|
|
10
|
+
*
|
|
11
|
+
* See:
|
|
12
|
+
* - evalops/maestro#298 (server-validated runtime knob catalog)
|
|
13
|
+
* - evalops/maestro#296 (auto-compaction promotion)
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Model selection: a single model id, or a per-mode override map
|
|
17
|
+
* (e.g. `{ "reasoning": "gpt-5", "default": "gpt-4o" }`).
|
|
18
|
+
*/
|
|
19
|
+
const MaestroModelSelectionSchema = Type.Union([
|
|
20
|
+
Type.String(),
|
|
21
|
+
Type.Record(Type.String(), Type.String()),
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* Compaction runtime knobs. Mirrors the existing auto-compaction behavior in
|
|
25
|
+
* `src/agent/auto-compaction.ts`, promoted from process env to typed settings.
|
|
26
|
+
*/
|
|
27
|
+
export const MaestroCompactionSettingsSchema = Type.Object({
|
|
28
|
+
/** Context-window usage percentage that triggers compaction (50-100). */
|
|
29
|
+
thresholdPercent: Type.Optional(Type.Integer({ minimum: 50, maximum: 100 })),
|
|
30
|
+
/** Whether auto-compaction is enabled. */
|
|
31
|
+
enabled: Type.Optional(Type.Boolean()),
|
|
32
|
+
/** Minimum message count before compaction is considered. */
|
|
33
|
+
minMessages: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
34
|
+
/** Number of recent messages always retained during compaction. */
|
|
35
|
+
keepRecentMessages: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Tool gating overlays. `disable` / `enable` are tool-name lists that overlay
|
|
39
|
+
* the PlatformToolExecutionBridge classification.
|
|
40
|
+
*/
|
|
41
|
+
export const MaestroToolsSettingsSchema = Type.Object({
|
|
42
|
+
disable: Type.Optional(Type.Array(Type.String())),
|
|
43
|
+
enable: Type.Optional(Type.Array(Type.String())),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Typed catalog of Maestro runtime knobs.
|
|
47
|
+
*/
|
|
48
|
+
export const MaestroSettingsSchema = Type.Object({
|
|
49
|
+
compaction: Type.Optional(MaestroCompactionSettingsSchema),
|
|
50
|
+
model: Type.Optional(MaestroModelSelectionSchema),
|
|
51
|
+
tools: Type.Optional(MaestroToolsSettingsSchema),
|
|
52
|
+
});
|
|
53
|
+
export const DEFAULT_MAESTRO_COMPACTION_SETTINGS = {
|
|
54
|
+
thresholdPercent: 85,
|
|
55
|
+
enabled: true,
|
|
56
|
+
minMessages: 10,
|
|
57
|
+
keepRecentMessages: 6,
|
|
58
|
+
};
|
|
59
|
+
function isPlainObject(value) {
|
|
60
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
61
|
+
}
|
|
62
|
+
function parseBoolean(value) {
|
|
63
|
+
if (typeof value === "boolean") {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
if (typeof value === "string") {
|
|
67
|
+
const trimmed = value.trim().toLowerCase();
|
|
68
|
+
if (trimmed === "true")
|
|
69
|
+
return true;
|
|
70
|
+
if (trimmed === "false")
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
function parseInteger(value) {
|
|
76
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
77
|
+
return Number.isInteger(value) ? value : Math.trunc(value);
|
|
78
|
+
}
|
|
79
|
+
if (typeof value === "string") {
|
|
80
|
+
const parsed = Number.parseInt(value.trim(), 10);
|
|
81
|
+
if (!Number.isNaN(parsed))
|
|
82
|
+
return parsed;
|
|
83
|
+
}
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
function parseStringList(value) {
|
|
87
|
+
if (!Array.isArray(value))
|
|
88
|
+
return undefined;
|
|
89
|
+
const cleaned = value
|
|
90
|
+
.filter((entry) => typeof entry === "string")
|
|
91
|
+
.map((entry) => entry.trim())
|
|
92
|
+
.filter(Boolean);
|
|
93
|
+
return cleaned.length > 0 ? Array.from(new Set(cleaned)) : undefined;
|
|
94
|
+
}
|
|
95
|
+
function normalizeCompaction(input) {
|
|
96
|
+
if (!isPlainObject(input))
|
|
97
|
+
return undefined;
|
|
98
|
+
const thresholdPercent = parseInteger(input.thresholdPercent);
|
|
99
|
+
const enabled = parseBoolean(input.enabled);
|
|
100
|
+
const minMessages = parseInteger(input.minMessages);
|
|
101
|
+
const keepRecentMessages = parseInteger(input.keepRecentMessages);
|
|
102
|
+
const normalized = {};
|
|
103
|
+
if (thresholdPercent !== undefined) {
|
|
104
|
+
normalized.thresholdPercent = Math.min(100, Math.max(50, thresholdPercent));
|
|
105
|
+
}
|
|
106
|
+
if (enabled !== undefined)
|
|
107
|
+
normalized.enabled = enabled;
|
|
108
|
+
if (minMessages !== undefined) {
|
|
109
|
+
normalized.minMessages = Math.max(0, minMessages);
|
|
110
|
+
}
|
|
111
|
+
if (keepRecentMessages !== undefined) {
|
|
112
|
+
normalized.keepRecentMessages = Math.max(0, keepRecentMessages);
|
|
113
|
+
}
|
|
114
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
115
|
+
}
|
|
116
|
+
function normalizeModel(input) {
|
|
117
|
+
if (typeof input === "string" && input.trim())
|
|
118
|
+
return input.trim();
|
|
119
|
+
if (isPlainObject(input)) {
|
|
120
|
+
const record = {};
|
|
121
|
+
for (const [key, value] of Object.entries(input)) {
|
|
122
|
+
if (typeof value === "string" && value.trim()) {
|
|
123
|
+
record[key.trim()] = value.trim();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return Object.keys(record).length > 0 ? record : undefined;
|
|
127
|
+
}
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
function normalizeTools(input) {
|
|
131
|
+
if (!isPlainObject(input))
|
|
132
|
+
return undefined;
|
|
133
|
+
const disable = parseStringList(input.disable);
|
|
134
|
+
const enable = parseStringList(input.enable);
|
|
135
|
+
const normalized = {};
|
|
136
|
+
if (disable !== undefined)
|
|
137
|
+
normalized.disable = disable;
|
|
138
|
+
if (enable !== undefined)
|
|
139
|
+
normalized.enable = enable;
|
|
140
|
+
return Object.keys(normalized).length > 0 ? normalized : undefined;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Defensively parse an untyped settings payload (e.g. raw JSONB) into a typed
|
|
144
|
+
* `MaestroSettings`, dropping anything that does not validate. Unknown keys
|
|
145
|
+
* are ignored so the catalog can grow without rejecting stored rows.
|
|
146
|
+
*/
|
|
147
|
+
export function normalizeMaestroSettings(input) {
|
|
148
|
+
if (!isPlainObject(input))
|
|
149
|
+
return {};
|
|
150
|
+
const compaction = normalizeCompaction(input.compaction);
|
|
151
|
+
const model = normalizeModel(input.model);
|
|
152
|
+
const tools = normalizeTools(input.tools);
|
|
153
|
+
const normalized = {};
|
|
154
|
+
if (compaction !== undefined)
|
|
155
|
+
normalized.compaction = compaction;
|
|
156
|
+
if (model !== undefined)
|
|
157
|
+
normalized.model = model;
|
|
158
|
+
if (tools !== undefined)
|
|
159
|
+
normalized.tools = tools;
|
|
160
|
+
return normalized;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Merge organization- and user-level Maestro settings with user-leaf-wins
|
|
164
|
+
* precedence. Both inputs are normalized first; `undefined` namespaces fall
|
|
165
|
+
* through to the other layer. Env / built-in defaults are applied by the
|
|
166
|
+
* runtime consumer, not here, so this stays a pure function.
|
|
167
|
+
*/
|
|
168
|
+
export function mergeMaestroSettings(organization, user) {
|
|
169
|
+
const orgSettings = normalizeMaestroSettings(organization);
|
|
170
|
+
const userSettings = normalizeMaestroSettings(user);
|
|
171
|
+
const merged = {};
|
|
172
|
+
const compaction = { ...orgSettings.compaction, ...userSettings.compaction };
|
|
173
|
+
if (Object.keys(compaction).length > 0)
|
|
174
|
+
merged.compaction = compaction;
|
|
175
|
+
const model = userSettings.model ?? orgSettings.model;
|
|
176
|
+
if (model !== undefined)
|
|
177
|
+
merged.model = model;
|
|
178
|
+
const tools = { ...orgSettings.tools, ...userSettings.tools };
|
|
179
|
+
if (Object.keys(tools).length > 0)
|
|
180
|
+
merged.tools = tools;
|
|
181
|
+
return merged;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=maestro-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maestro-settings.js","sourceRoot":"","sources":["../src/maestro-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AACH,MAAM,2BAA2B,GAAG,IAAI,CAAC,KAAK,CAAC;IAC9C,IAAI,CAAC,MAAM,EAAE;IACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1D,yEAAyE;IACzE,gBAAgB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5E,0CAA0C;IAC1C,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACtC,6DAA6D;IAC7D,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;IACxD,mEAAmE;IACnE,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;CAC/D,CAAC,CAAC;AAEH;;;GA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AAC,KAAK,CAAC,CAAC;IAC1C,MAAM,UAAU,GAAoB,EAAE,CAAC;IACvC,IAAI,UAAU,KAAK,SAAS;QAAE,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;IACjE,IAAI,KAAK,KAAK,SAAS;QAAE,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;IAClD,IAAI,KAAK,KAAK,SAAS;QAAE,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;IAClD,OAAO,UAAU,CAAC;AACnB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CACnC,YAAqC,EACrC,IAA6B;IAE7B,MAAM,WAAW,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,YAAY,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,MAAM,GAAoB,EAAE,CAAC;IAEnC,MAAM,UAAU,GAAG,EAAE,GAAG,WAAW,CAAC,UAAU,EAAE,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAC7E,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;IAEvE,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC;IACtD,IAAI,KAAK,KAAK,SAAS;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;IAE9C,MAAM,KAAK,GAAG,EAAE,GAAG,WAAW,CAAC,KAAK,EAAE,GAAG,YAAY,CAAC,KAAK,EAAE,CAAC;IAC9D,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;IAExD,OAAO,MAAM,CAAC;AACf,CAAC","sourcesContent":["import { type Static, Type } from \"@sinclair/typebox\";\n\n/**\n * Maestro runtime settings catalog.\n *\n * A single typed source of truth for the runtime knobs an agent honors, so\n * \"what knobs even exist\" stops being a code-archaeology question. Settings\n * resolve org -> user -> env (legacy) -> built-in default, and the schema is\n * the auditable artifact: every per-tenant deviation from defaults is a typed,\n * queryable record stored on `organizations.settings` / `users.settings`.\n *\n * See:\n * - evalops/maestro#298 (server-validated runtime knob catalog)\n * - evalops/maestro#296 (auto-compaction promotion)\n */\n\n/**\n * Model selection: a single model id, or a per-mode override map\n * (e.g. `{ \"reasoning\": \"gpt-5\", \"default\": \"gpt-4o\" }`).\n */\nconst MaestroModelSelectionSchema = Type.Union([\n\tType.String(),\n\tType.Record(Type.String(), Type.String()),\n]);\n\n/**\n * Compaction runtime knobs. Mirrors the existing auto-compaction behavior in\n * `src/agent/auto-compaction.ts`, promoted from process env to typed settings.\n */\nexport const MaestroCompactionSettingsSchema = Type.Object({\n\t/** Context-window usage percentage that triggers compaction (50-100). */\n\tthresholdPercent: Type.Optional(Type.Integer({ minimum: 50, maximum: 100 })),\n\t/** Whether auto-compaction is enabled. */\n\tenabled: Type.Optional(Type.Boolean()),\n\t/** Minimum message count before compaction is considered. */\n\tminMessages: Type.Optional(Type.Integer({ minimum: 0 })),\n\t/** Number of recent messages always retained during compaction. */\n\tkeepRecentMessages: Type.Optional(Type.Integer({ minimum: 0 })),\n});\n\n/**\n * Tool gating overlays. `disable` / `enable` are tool-name lists that overlay\n * the PlatformToolExecutionBridge classification.\n */\nexport const MaestroToolsSettingsSchema = Type.Object({\n\tdisable: Type.Optional(Type.Array(Type.String())),\n\tenable: Type.Optional(Type.Array(Type.String())),\n});\n\n/**\n * Typed catalog of Maestro runtime knobs.\n */\nexport const MaestroSettingsSchema = Type.Object({\n\tcompaction: Type.Optional(MaestroCompactionSettingsSchema),\n\tmodel: Type.Optional(MaestroModelSelectionSchema),\n\ttools: Type.Optional(MaestroToolsSettingsSchema),\n});\n\nexport type MaestroSettings = Static<typeof MaestroSettingsSchema>;\nexport type MaestroCompactionSettings = NonNullable<\n\tMaestroSettings[\"compaction\"]\n>;\nexport type MaestroToolsSettings = NonNullable<MaestroSettings[\"tools\"]>;\n\nexport const DEFAULT_MAESTRO_COMPACTION_SETTINGS: Required<MaestroCompactionSettings> =\n\t{\n\t\tthresholdPercent: 85,\n\t\tenabled: true,\n\t\tminMessages: 10,\n\t\tkeepRecentMessages: 6,\n\t};\n\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n\treturn value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\n\nfunction parseBoolean(value: unknown): boolean | undefined {\n\tif (typeof value === \"boolean\") {\n\t\treturn value;\n\t}\n\tif (typeof value === \"string\") {\n\t\tconst trimmed = value.trim().toLowerCase();\n\t\tif (trimmed === \"true\") return true;\n\t\tif (trimmed === \"false\") return false;\n\t}\n\treturn undefined;\n}\n\nfunction parseInteger(value: unknown): number | undefined {\n\tif (typeof value === \"number\" && Number.isFinite(value)) {\n\t\treturn Number.isInteger(value) ? value : Math.trunc(value);\n\t}\n\tif (typeof value === \"string\") {\n\t\tconst parsed = Number.parseInt(value.trim(), 10);\n\t\tif (!Number.isNaN(parsed)) return parsed;\n\t}\n\treturn undefined;\n}\n\nfunction parseStringList(value: unknown): string[] | undefined {\n\tif (!Array.isArray(value)) return undefined;\n\tconst cleaned = value\n\t\t.filter((entry): entry is string => typeof entry === \"string\")\n\t\t.map((entry) => entry.trim())\n\t\t.filter(Boolean);\n\treturn cleaned.length > 0 ? Array.from(new Set(cleaned)) : undefined;\n}\n\nfunction normalizeCompaction(\n\tinput: unknown,\n): MaestroCompactionSettings | undefined {\n\tif (!isPlainObject(input)) return undefined;\n\tconst thresholdPercent = parseInteger(input.thresholdPercent);\n\tconst enabled = parseBoolean(input.enabled);\n\tconst minMessages = parseInteger(input.minMessages);\n\tconst keepRecentMessages = parseInteger(input.keepRecentMessages);\n\tconst normalized: MaestroCompactionSettings = {};\n\tif (thresholdPercent !== undefined) {\n\t\tnormalized.thresholdPercent = Math.min(100, Math.max(50, thresholdPercent));\n\t}\n\tif (enabled !== undefined) normalized.enabled = enabled;\n\tif (minMessages !== undefined) {\n\t\tnormalized.minMessages = Math.max(0, minMessages);\n\t}\n\tif (keepRecentMessages !== undefined) {\n\t\tnormalized.keepRecentMessages = Math.max(0, keepRecentMessages);\n\t}\n\treturn Object.keys(normalized).length > 0 ? normalized : undefined;\n}\n\nfunction normalizeModel(input: unknown): MaestroSettings[\"model\"] {\n\tif (typeof input === \"string\" && input.trim()) return input.trim();\n\tif (isPlainObject(input)) {\n\t\tconst record: Record<string, string> = {};\n\t\tfor (const [key, value] of Object.entries(input)) {\n\t\t\tif (typeof value === \"string\" && value.trim()) {\n\t\t\t\trecord[key.trim()] = value.trim();\n\t\t\t}\n\t\t}\n\t\treturn Object.keys(record).length > 0 ? record : undefined;\n\t}\n\treturn undefined;\n}\n\nfunction normalizeTools(input: unknown): MaestroToolsSettings | undefined {\n\tif (!isPlainObject(input)) return undefined;\n\tconst disable = parseStringList(input.disable);\n\tconst enable = parseStringList(input.enable);\n\tconst normalized: MaestroToolsSettings = {};\n\tif (disable !== undefined) normalized.disable = disable;\n\tif (enable !== undefined) normalized.enable = enable;\n\treturn Object.keys(normalized).length > 0 ? normalized : undefined;\n}\n\n/**\n * Defensively parse an untyped settings payload (e.g. raw JSONB) into a typed\n * `MaestroSettings`, dropping anything that does not validate. Unknown keys\n * are ignored so the catalog can grow without rejecting stored rows.\n */\nexport function normalizeMaestroSettings(input: unknown): MaestroSettings {\n\tif (!isPlainObject(input)) return {};\n\tconst compaction = normalizeCompaction(input.compaction);\n\tconst model = normalizeModel(input.model);\n\tconst tools = normalizeTools(input.tools);\n\tconst normalized: MaestroSettings = {};\n\tif (compaction !== undefined) normalized.compaction = compaction;\n\tif (model !== undefined) normalized.model = model;\n\tif (tools !== undefined) normalized.tools = tools;\n\treturn normalized;\n}\n\n/**\n * Merge organization- and user-level Maestro settings with user-leaf-wins\n * precedence. Both inputs are normalized first; `undefined` namespaces fall\n * through to the other layer. Env / built-in defaults are applied by the\n * runtime consumer, not here, so this stays a pure function.\n */\nexport function mergeMaestroSettings(\n\torganization?: MaestroSettings | null,\n\tuser?: MaestroSettings | null,\n): MaestroSettings {\n\tconst orgSettings = normalizeMaestroSettings(organization);\n\tconst userSettings = normalizeMaestroSettings(user);\n\tconst merged: MaestroSettings = {};\n\n\tconst compaction = { ...orgSettings.compaction, ...userSettings.compaction };\n\tif (Object.keys(compaction).length > 0) merged.compaction = compaction;\n\n\tconst model = userSettings.model ?? orgSettings.model;\n\tif (model !== undefined) merged.model = model;\n\n\tconst tools = { ...orgSettings.tools, ...userSettings.tools };\n\tif (Object.keys(tools).length > 0) merged.tools = tools;\n\n\treturn merged;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/oauth/connectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/oauth/connectors.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EACN,KAAK,gBAAgB,EAGrB,MAAM,cAAc,CAAC;AAEtB,KAAK,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAqBzE,eAAO,MAAM,+BAA+B,6DAMlC,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACrC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,WAAW,8CAA8C;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,0CAA0C;IAC1D,QAAQ,EAAE,sBAAsB,CAAC;IACjC,IAAI,EAAE,0BAA0B,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IA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