@evalops/maestro 0.10.50 → 0.10.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- 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/agent.d.ts.map +1 -1
- package/dist/agent/agent.js.map +1 -1
- 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/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +1 -1
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-handoff.d.ts.map +1 -1
- package/dist/agent/context-handoff.js +2 -1
- package/dist/agent/context-handoff.js.map +1 -1
- package/dist/agent/index.d.ts +8 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +8 -1
- package/dist/agent/index.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 +3 -3
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +66 -3
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/oracle-consultation-policy.d.ts +22 -0
- package/dist/agent/oracle-consultation-policy.d.ts.map +1 -0
- package/dist/agent/oracle-consultation-policy.js +72 -0
- package/dist/agent/oracle-consultation-policy.js.map +1 -0
- package/dist/agent/oracle-policy-experiment.d.ts +27 -0
- package/dist/agent/oracle-policy-experiment.d.ts.map +1 -0
- package/dist/agent/oracle-policy-experiment.js +59 -0
- package/dist/agent/oracle-policy-experiment.js.map +1 -0
- package/dist/agent/oracle-policy-rollout.d.ts +42 -0
- package/dist/agent/oracle-policy-rollout.d.ts.map +1 -0
- package/dist/agent/oracle-policy-rollout.js +80 -0
- package/dist/agent/oracle-policy-rollout.js.map +1 -0
- package/dist/agent/plugin-agent-api.d.ts +13 -0
- package/dist/agent/plugin-agent-api.d.ts.map +1 -0
- package/dist/agent/plugin-agent-api.js +11 -0
- package/dist/agent/plugin-agent-api.js.map +1 -0
- package/dist/agent/plugin-agent-loader.d.ts +17 -0
- package/dist/agent/plugin-agent-loader.d.ts.map +1 -0
- package/dist/agent/plugin-agent-loader.js +81 -0
- package/dist/agent/plugin-agent-loader.js.map +1 -0
- package/dist/agent/plugin-agent-registry.d.ts +62 -0
- package/dist/agent/plugin-agent-registry.d.ts.map +1 -0
- package/dist/agent/plugin-agent-registry.js +109 -0
- package/dist/agent/plugin-agent-registry.js.map +1 -0
- package/dist/agent/profile-loader.d.ts +7 -0
- package/dist/agent/profile-loader.d.ts.map +1 -0
- package/dist/agent/profile-loader.js +115 -0
- package/dist/agent/profile-loader.js.map +1 -0
- package/dist/agent/profiles.d.ts +30 -0
- package/dist/agent/profiles.d.ts.map +1 -0
- package/dist/agent/profiles.js +146 -0
- package/dist/agent/profiles.js.map +1 -0
- package/dist/agent/prompt-cache.d.ts +0 -4
- package/dist/agent/prompt-cache.d.ts.map +1 -1
- package/dist/agent/prompt-cache.js +1 -7
- package/dist/agent/prompt-cache.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 +204 -107
- package/dist/agent/providers/google.js +101 -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 +204 -107
- package/dist/agent/routing-receipt.d.ts +34 -0
- package/dist/agent/routing-receipt.d.ts.map +1 -0
- package/dist/agent/routing-receipt.js +55 -0
- package/dist/agent/routing-receipt.js.map +1 -0
- package/dist/agent/skill-artifact-metadata.d.ts +14 -0
- package/dist/agent/skill-artifact-metadata.d.ts.map +1 -0
- package/dist/agent/skill-artifact-metadata.js +49 -0
- package/dist/agent/skill-artifact-metadata.js.map +1 -0
- 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 +5 -2
- package/dist/agent/subagent-specs.d.ts.map +1 -1
- package/dist/agent/subagent-specs.js +83 -10
- 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/token-counter.d.ts +40 -0
- package/dist/agent/token-counter.d.ts.map +1 -0
- package/dist/agent/token-counter.js +74 -0
- package/dist/agent/token-counter.js.map +1 -0
- package/dist/agent/transport/events.d.ts +1 -1
- package/dist/agent/transport/events.d.ts.map +1 -1
- package/dist/agent/transport/events.js +1 -1
- package/dist/agent/transport/events.js.map +1 -1
- 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/agent/types.d.ts +4 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/api/enterprise-routes.d.ts.map +1 -1
- package/dist/api/enterprise-routes.js +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 +2 -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/app-server/session-api.d.ts.map +1 -1
- package/dist/app-server/session-api.js +15 -2
- package/dist/app-server/session-api.js.map +1 -1
- package/dist/audit/logger.d.ts +5 -5
- package/dist/cli/args.d.ts +4 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +33 -1
- 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/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/direct-runtime-command.d.ts +1 -0
- package/dist/cli/direct-runtime-command.d.ts.map +1 -1
- package/dist/cli/direct-runtime-command.js +25 -3
- package/dist/cli/direct-runtime-command.js.map +1 -1
- 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/headless.d.ts +3 -19
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +8 -619
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +13 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/native-tui-launcher.d.ts +126 -0
- package/dist/cli/native-tui-launcher.d.ts.map +1 -0
- package/dist/cli/native-tui-launcher.js +425 -0
- package/dist/cli/native-tui-launcher.js.map +1 -0
- package/dist/cli/rpc-mode.d.ts +3 -27
- package/dist/cli/rpc-mode.d.ts.map +1 -1
- package/dist/cli/rpc-mode.js +8 -177
- package/dist/cli/rpc-mode.js.map +1 -1
- package/dist/cli/session.d.ts +11 -19
- package/dist/cli/session.d.ts.map +1 -1
- package/dist/cli/session.js +6 -64
- package/dist/cli/session.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-command-runtime.d.ts.map +1 -1
- package/dist/cli-command-runtime.js +26 -24
- package/dist/cli-command-runtime.js.map +1 -1
- package/dist/cli-runtime.js +41729 -121859
- 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/config/env-vars.d.ts +12 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +12 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/config/ui-state.d.ts +32 -0
- package/dist/config/ui-state.d.ts.map +1 -0
- package/dist/config/ui-state.js +88 -0
- package/dist/config/ui-state.js.map +1 -0
- 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/context/repo-map.d.ts.map +1 -1
- package/dist/context/repo-map.js +1 -7
- package/dist/context/repo-map.js.map +1 -1
- package/dist/context/token-optimizer.d.ts.map +1 -1
- package/dist/context/token-optimizer.js +1 -8
- package/dist/context/token-optimizer.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 +7 -3
- 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/hooks/notification-hooks.d.ts +1 -1
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/hooks/tui-surface.d.ts +35 -0
- package/dist/hooks/tui-surface.d.ts.map +1 -0
- package/dist/hooks/tui-surface.js +11 -0
- package/dist/hooks/tui-surface.js.map +1 -0
- package/dist/hooks/types.d.ts +2 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks/typescript-loader.d.ts.map +1 -1
- package/dist/hooks/typescript-loader.js.map +1 -1
- package/dist/hooks/ui-context.d.ts.map +1 -1
- package/dist/hooks/ui-context.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 +201 -840
- 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 +5 -5
- 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 +46 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +3 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +284 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js +41 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.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/dist/schemas.d.ts +986 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.js +49 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts +56 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js +86 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/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/packages/discovery.d.ts.map +1 -1
- package/dist/packages/discovery.js +1 -0
- package/dist/packages/discovery.js.map +1 -1
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +7 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/loader.d.ts.map +1 -1
- package/dist/packages/loader.js +8 -1
- package/dist/packages/loader.js.map +1 -1
- package/dist/packages/runtime.d.ts +1 -0
- package/dist/packages/runtime.d.ts.map +1 -1
- package/dist/packages/runtime.js +9 -1
- package/dist/packages/runtime.js.map +1 -1
- package/dist/packages/types.d.ts +6 -0
- package/dist/packages/types.d.ts.map +1 -1
- package/dist/packages/types.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/agent-runtime.d.ts +22 -6
- package/dist/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/runtime/agent-runtime.js +1 -1
- package/dist/runtime/agent-runtime.js.map +1 -1
- package/dist/runtime/env.d.ts +10 -1
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +64 -1
- package/dist/runtime/env.js.map +1 -1
- package/dist/runtime/prompt-queue.d.ts.map +1 -0
- package/dist/runtime/prompt-queue.js.map +1 -0
- 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/chat-ws.d.ts +2 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +150 -5
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +78 -5
- package/dist/server/handlers/chat.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/package.d.ts.map +1 -1
- package/dist/server/handlers/package.js +1 -0
- package/dist/server/handlers/package.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/queue.js +1 -1
- package/dist/server/handlers/queue.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/handlers/ui.js +1 -1
- package/dist/server/handlers/ui.js.map +1 -1
- package/dist/server/handlers/zen.js +1 -1
- package/dist/server/handlers/zen.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/hosted-session-manager.d.ts +3 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +26 -0
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/model-selection.d.ts +1 -0
- package/dist/server/model-selection.d.ts.map +1 -1
- package/dist/server/model-selection.js +4 -0
- package/dist/server/model-selection.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 +4 -3
- package/dist/server/session-serialization.js.map +1 -1
- package/dist/server/session-timeline.d.ts.map +1 -1
- package/dist/server/session-timeline.js +1 -1
- package/dist/server/session-timeline.js.map +1 -1
- package/dist/server/sse-session.d.ts +2 -0
- package/dist/server/sse-session.d.ts.map +1 -1
- package/dist/server/sse-session.js +3 -0
- package/dist/server/sse-session.js.map +1 -1
- package/dist/server/stores/ui-store.d.ts +1 -1
- package/dist/server/stores/ui-store.d.ts.map +1 -1
- package/dist/server/stores/ui-store.js.map +1 -1
- package/dist/server/utils/token-estimator.d.ts +2 -2
- package/dist/server/utils/token-estimator.d.ts.map +1 -1
- package/dist/server/utils/token-estimator.js +2 -12
- package/dist/server/utils/token-estimator.js.map +1 -1
- package/dist/server/validation.d.ts +54 -0
- package/dist/server/validation.d.ts.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/image-providers/cost.d.ts +70 -0
- package/dist/services/image-providers/cost.d.ts.map +1 -0
- package/dist/services/image-providers/cost.js +164 -0
- package/dist/services/image-providers/cost.js.map +1 -0
- package/dist/services/image-providers/flux.d.ts +40 -0
- package/dist/services/image-providers/flux.d.ts.map +1 -0
- package/dist/services/image-providers/flux.js +99 -0
- package/dist/services/image-providers/flux.js.map +1 -0
- package/dist/services/image-providers/index.d.ts +24 -0
- package/dist/services/image-providers/index.d.ts.map +1 -0
- package/dist/services/image-providers/index.js +27 -0
- package/dist/services/image-providers/index.js.map +1 -0
- package/dist/services/image-providers/masks.d.ts +51 -0
- package/dist/services/image-providers/masks.d.ts.map +1 -0
- package/dist/services/image-providers/masks.js +132 -0
- package/dist/services/image-providers/masks.js.map +1 -0
- package/dist/services/image-providers/openai.d.ts +35 -0
- package/dist/services/image-providers/openai.d.ts.map +1 -0
- package/dist/services/image-providers/openai.js +93 -0
- package/dist/services/image-providers/openai.js.map +1 -0
- package/dist/services/image-providers/types.d.ts +61 -0
- package/dist/services/image-providers/types.d.ts.map +1 -0
- package/dist/services/image-providers/types.js +17 -0
- package/dist/services/image-providers/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +1 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -1
- package/dist/services/intelligent-router/index.js +1 -0
- package/dist/services/intelligent-router/index.js.map +1 -1
- package/dist/services/intelligent-router/normalize.d.ts +1 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -1
- package/dist/services/intelligent-router/normalize.js +18 -3
- package/dist/services/intelligent-router/normalize.js.map +1 -1
- package/dist/services/intelligent-router/outcome.d.ts +19 -0
- package/dist/services/intelligent-router/outcome.d.ts.map +1 -0
- package/dist/services/intelligent-router/outcome.js +51 -0
- package/dist/services/intelligent-router/outcome.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +2 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -1
- package/dist/services/intelligent-router/recorder.js +72 -1
- package/dist/services/intelligent-router/recorder.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +1 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +60 -11
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/intelligent-router/types.d.ts +18 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -1
- package/dist/services/intelligent-router/types.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/middleware.d.ts +2 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -1
- package/dist/services/workspace-config/middleware.js +25 -28
- package/dist/services/workspace-config/middleware.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/session/agent-lineage-projection.d.ts +30 -0
- package/dist/session/agent-lineage-projection.d.ts.map +1 -0
- package/dist/session/agent-lineage-projection.js +109 -0
- package/dist/session/agent-lineage-projection.js.map +1 -0
- package/dist/session/manager.d.ts +3 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +24 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +11 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -1
- package/dist/session/session-graph-projection.js +28 -0
- package/dist/session/session-graph-projection.js.map +1 -1
- package/dist/session/types.d.ts +2 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.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 +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/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/oracle-policy.d.ts +6 -0
- package/dist/telemetry/oracle-policy.d.ts.map +1 -0
- package/dist/telemetry/oracle-policy.js +17 -0
- package/dist/telemetry/oracle-policy.js.map +1 -0
- package/dist/telemetry/wide-events.d.ts +1 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.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/theme/theme.d.ts +2 -8
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +7 -0
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/tui-theme-helpers.d.ts +2 -1
- package/dist/theme/tui-theme-helpers.d.ts.map +1 -1
- package/dist/theme/tui-theme-helpers.js.map +1 -1
- package/dist/theme/tui-theme-types.d.ts +39 -0
- package/dist/theme/tui-theme-types.d.ts.map +1 -0
- package/dist/theme/tui-theme-types.js +10 -0
- package/dist/theme/tui-theme-types.js.map +1 -0
- 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/index.d.ts +199 -160
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lazy-registry.d.ts.map +1 -1
- package/dist/tools/lazy-registry.js +1 -0
- package/dist/tools/lazy-registry.js.map +1 -1
- package/dist/tools/oracle.d.ts +9 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +26 -24
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/painter.d.ts +73 -0
- package/dist/tools/painter.d.ts.map +1 -0
- package/dist/tools/painter.js +283 -0
- package/dist/tools/painter.js.map +1 -0
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +1 -1
- package/dist/tools/typebox-tool.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/terminal-image.d.ts +52 -0
- package/dist/utils/terminal-image.d.ts.map +1 -0
- package/dist/utils/terminal-image.js +95 -0
- package/dist/utils/terminal-image.js.map +1 -0
- package/dist/utils/terminal-text.d.ts +11 -0
- package/dist/utils/terminal-text.d.ts.map +1 -0
- package/dist/utils/terminal-text.js +21 -0
- package/dist/utils/terminal-text.js.map +1 -0
- 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/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +24 -2
- package/dist/web-server.js.map +1 -1
- package/package.json +312 -306
- package/skills/incident-triage/SKILL.md +20 -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
- package/dist/cli/commands/agents.d.ts +0 -20
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -280
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/anthropic.d.ts +0 -2
- package/dist/cli/commands/anthropic.d.ts.map +0 -1
- package/dist/cli/commands/anthropic.js +0 -6
- package/dist/cli/commands/anthropic.js.map +0 -1
- package/dist/cli/commands/cost.d.ts +0 -13
- package/dist/cli/commands/cost.d.ts.map +0 -1
- package/dist/cli/commands/cost.js +0 -143
- package/dist/cli/commands/cost.js.map +0 -1
- package/dist/cli/commands/exec-constants.d.ts +0 -3
- package/dist/cli/commands/exec-constants.d.ts.map +0 -1
- package/dist/cli/commands/exec-constants.js +0 -3
- package/dist/cli/commands/exec-constants.js.map +0 -1
- package/dist/cli/commands/exec.d.ts +0 -19
- package/dist/cli/commands/exec.d.ts.map +0 -1
- package/dist/cli/commands/exec.js +0 -207
- package/dist/cli/commands/exec.js.map +0 -1
- package/dist/cli/commands/hooks.d.ts +0 -2
- package/dist/cli/commands/hooks.d.ts.map +0 -1
- package/dist/cli/commands/hooks.js +0 -25
- package/dist/cli/commands/hooks.js.map +0 -1
- package/dist/cli/commands/hosted-runner.d.ts +0 -25
- package/dist/cli/commands/hosted-runner.d.ts.map +0 -1
- package/dist/cli/commands/hosted-runner.js +0 -278
- package/dist/cli/commands/hosted-runner.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -2
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -208
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/models.d.ts +0 -3
- package/dist/cli/commands/models.d.ts.map +0 -1
- package/dist/cli/commands/models.js +0 -154
- package/dist/cli/commands/models.js.map +0 -1
- package/dist/cli/commands/modes.d.ts +0 -8
- package/dist/cli/commands/modes.d.ts.map +0 -1
- package/dist/cli/commands/modes.js +0 -151
- package/dist/cli/commands/modes.js.map +0 -1
- package/dist/cli/commands/openai.d.ts +0 -2
- package/dist/cli/commands/openai.d.ts.map +0 -1
- package/dist/cli/commands/openai.js +0 -116
- package/dist/cli/commands/openai.js.map +0 -1
- package/dist/cli/commands/session-transfer.d.ts +0 -5
- package/dist/cli/commands/session-transfer.d.ts.map +0 -1
- package/dist/cli/commands/session-transfer.js +0 -43
- package/dist/cli/commands/session-transfer.js.map +0 -1
- package/dist/cli/commands/sessions.d.ts +0 -8
- package/dist/cli/commands/sessions.d.ts.map +0 -1
- package/dist/cli/commands/sessions.js +0 -152
- package/dist/cli/commands/sessions.js.map +0 -1
- package/dist/cli/commands/skill.d.ts +0 -10
- package/dist/cli/commands/skill.d.ts.map +0 -1
- package/dist/cli/commands/skill.js +0 -303
- package/dist/cli/commands/skill.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -7
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -167
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -148
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli-tui/about-view.d.ts +0 -48
- package/dist/cli-tui/about-view.d.ts.map +0 -1
- package/dist/cli-tui/about-view.js +0 -206
- package/dist/cli-tui/about-view.js.map +0 -1
- package/dist/cli-tui/agent-event-router.d.ts +0 -28
- package/dist/cli-tui/agent-event-router.d.ts.map +0 -1
- package/dist/cli-tui/agent-event-router.js +0 -126
- package/dist/cli-tui/agent-event-router.js.map +0 -1
- package/dist/cli-tui/approval/approval-controller.d.ts +0 -28
- package/dist/cli-tui/approval/approval-controller.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-controller.js +0 -99
- package/dist/cli-tui/approval/approval-controller.js.map +0 -1
- package/dist/cli-tui/approval/approval-modal.d.ts +0 -26
- package/dist/cli-tui/approval/approval-modal.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-modal.js +0 -143
- package/dist/cli-tui/approval/approval-modal.js.map +0 -1
- package/dist/cli-tui/assistant-message.d.ts +0 -41
- package/dist/cli-tui/assistant-message.d.ts.map +0 -1
- package/dist/cli-tui/assistant-message.js +0 -236
- package/dist/cli-tui/assistant-message.js.map +0 -1
- package/dist/cli-tui/auth-state.d.ts +0 -7
- package/dist/cli-tui/auth-state.d.ts.map +0 -1
- package/dist/cli-tui/auth-state.js +0 -46
- package/dist/cli-tui/auth-state.js.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.d.ts +0 -31
- package/dist/cli-tui/background/background-tasks-controller.d.ts.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.js +0 -84
- package/dist/cli-tui/background/background-tasks-controller.js.map +0 -1
- package/dist/cli-tui/base-view.d.ts +0 -111
- package/dist/cli-tui/base-view.d.ts.map +0 -1
- package/dist/cli-tui/base-view.js +0 -145
- package/dist/cli-tui/base-view.js.map +0 -1
- package/dist/cli-tui/bash/background-launcher.d.ts +0 -14
- package/dist/cli-tui/bash/background-launcher.d.ts.map +0 -1
- package/dist/cli-tui/bash/background-launcher.js +0 -50
- package/dist/cli-tui/bash/background-launcher.js.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.d.ts +0 -40
- package/dist/cli-tui/bash/bash-autocomplete.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.js +0 -347
- package/dist/cli-tui/bash/bash-autocomplete.js.map +0 -1
- package/dist/cli-tui/bash/bash-history.d.ts +0 -21
- package/dist/cli-tui/bash/bash-history.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-history.js +0 -72
- package/dist/cli-tui/bash/bash-history.js.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.d.ts +0 -5
- package/dist/cli-tui/bash/bash-syntax.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.js +0 -176
- package/dist/cli-tui/bash/bash-syntax.js.map +0 -1
- package/dist/cli-tui/bash/index.d.ts +0 -4
- package/dist/cli-tui/bash/index.d.ts.map +0 -1
- package/dist/cli-tui/bash/index.js +0 -4
- package/dist/cli-tui/bash/index.js.map +0 -1
- package/dist/cli-tui/bash-mode-view.d.ts +0 -86
- package/dist/cli-tui/bash-mode-view.d.ts.map +0 -1
- package/dist/cli-tui/bash-mode-view.js +0 -560
- package/dist/cli-tui/bash-mode-view.js.map +0 -1
- package/dist/cli-tui/bash-shell-block.d.ts +0 -50
- package/dist/cli-tui/bash-shell-block.d.ts.map +0 -1
- package/dist/cli-tui/bash-shell-block.js +0 -119
- package/dist/cli-tui/bash-shell-block.js.map +0 -1
- package/dist/cli-tui/changelog-view.d.ts +0 -13
- package/dist/cli-tui/changelog-view.d.ts.map +0 -1
- package/dist/cli-tui/changelog-view.js +0 -34
- package/dist/cli-tui/changelog-view.js.map +0 -1
- package/dist/cli-tui/clean-mode.d.ts +0 -13
- package/dist/cli-tui/clean-mode.d.ts.map +0 -1
- package/dist/cli-tui/clean-mode.js +0 -32
- package/dist/cli-tui/clean-mode.js.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts +0 -41
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +0 -862
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts +0 -33
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.js +0 -94
- package/dist/cli-tui/client-tools/local-client-tool-service.js.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +0 -7
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.js +0 -215
- package/dist/cli-tui/commands/a2a-handlers.js.map +0 -1
- package/dist/cli-tui/commands/access-command.d.ts +0 -3
- package/dist/cli-tui/commands/access-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/access-command.js +0 -89
- package/dist/cli-tui/commands/access-command.js.map +0 -1
- package/dist/cli-tui/commands/argument-parser.d.ts +0 -12
- package/dist/cli-tui/commands/argument-parser.d.ts.map +0 -1
- package/dist/cli-tui/commands/argument-parser.js +0 -135
- package/dist/cli-tui/commands/argument-parser.js.map +0 -1
- package/dist/cli-tui/commands/audit-command.d.ts +0 -5
- package/dist/cli-tui/commands/audit-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/audit-command.js +0 -35
- package/dist/cli-tui/commands/audit-command.js.map +0 -1
- package/dist/cli-tui/commands/background-handlers.d.ts +0 -14
- package/dist/cli-tui/commands/background-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/background-handlers.js +0 -115
- package/dist/cli-tui/commands/background-handlers.js.map +0 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +0 -29
- package/dist/cli-tui/commands/command-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-catalog.js +0 -666
- package/dist/cli-tui/commands/command-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +0 -12
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +0 -129
- package/dist/cli-tui/commands/command-registry-adapter.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +0 -14
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.js +0 -147
- package/dist/cli-tui/commands/command-suite-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.d.ts +0 -111
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.js +0 -110
- package/dist/cli-tui/commands/command-suite-handlers.js.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.d.ts +0 -8
- package/dist/cli-tui/commands/composer-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.js +0 -90
- package/dist/cli-tui/commands/composer-handlers.js.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.d.ts +0 -18
- package/dist/cli-tui/commands/framework-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.js +0 -57
- package/dist/cli-tui/commands/framework-handlers.js.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.d.ts +0 -20
- package/dist/cli-tui/commands/guardian-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.js +0 -48
- package/dist/cli-tui/commands/guardian-handlers.js.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts +0 -32
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +0 -153
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts +0 -8
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.js +0 -61
- package/dist/cli-tui/commands/hotkeys-command.js.map +0 -1
- package/dist/cli-tui/commands/limits-command.d.ts +0 -3
- package/dist/cli-tui/commands/limits-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/limits-command.js +0 -88
- package/dist/cli-tui/commands/limits-command.js.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts +0 -12
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.js +0 -1306
- package/dist/cli-tui/commands/mcp-handlers.js.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.d.ts +0 -28
- package/dist/cli-tui/commands/memory-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.js +0 -414
- package/dist/cli-tui/commands/memory-handlers.js.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.d.ts +0 -11
- package/dist/cli-tui/commands/otel-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.js +0 -20
- package/dist/cli-tui/commands/otel-handlers.js.map +0 -1
- package/dist/cli-tui/commands/package-handlers.d.ts +0 -30
- package/dist/cli-tui/commands/package-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/package-handlers.js +0 -499
- package/dist/cli-tui/commands/package-handlers.js.map +0 -1
- package/dist/cli-tui/commands/pii-command.d.ts +0 -3
- package/dist/cli-tui/commands/pii-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/pii-command.js +0 -54
- package/dist/cli-tui/commands/pii-command.js.map +0 -1
- package/dist/cli-tui/commands/registry.d.ts +0 -3
- package/dist/cli-tui/commands/registry.d.ts.map +0 -1
- package/dist/cli-tui/commands/registry.js +0 -36
- package/dist/cli-tui/commands/registry.js.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.d.ts +0 -36
- package/dist/cli-tui/commands/safety-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.js +0 -62
- package/dist/cli-tui/commands/safety-handlers.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.js +0 -79
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts +0 -23
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.js +0 -61
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts +0 -46
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.js +0 -163
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.js +0 -50
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.js +0 -18
- package/dist/cli-tui/commands/subcommands/index.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.js +0 -149
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts +0 -36
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.js +0 -112
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts +0 -27
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.js +0 -80
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts +0 -30
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts +0 -25
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts +0 -19
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.js +0 -63
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.d.ts +0 -127
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.js +0 -395
- package/dist/cli-tui/commands/subcommands/utils.js.map +0 -1
- package/dist/cli-tui/commands/types.d.ts +0 -105
- package/dist/cli-tui/commands/types.d.ts.map +0 -1
- package/dist/cli-tui/commands/types.js +0 -2
- package/dist/cli-tui/commands/types.js.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.d.ts +0 -29
- package/dist/cli-tui/commands/undo-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.js +0 -300
- package/dist/cli-tui/commands/undo-handlers.js.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +0 -55
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.js +0 -137
- package/dist/cli-tui/commands/utility-handlers.js.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.d.ts +0 -22
- package/dist/cli-tui/commands/workflow-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.js +0 -227
- package/dist/cli-tui/commands/workflow-handlers.js.map +0 -1
- package/dist/cli-tui/compact-boundary-message.d.ts +0 -9
- package/dist/cli-tui/compact-boundary-message.d.ts.map +0 -1
- package/dist/cli-tui/compact-boundary-message.js +0 -18
- package/dist/cli-tui/compact-boundary-message.js.map +0 -1
- package/dist/cli-tui/compaction-recovery.d.ts +0 -6
- package/dist/cli-tui/compaction-recovery.d.ts.map +0 -1
- package/dist/cli-tui/compaction-recovery.js +0 -13
- package/dist/cli-tui/compaction-recovery.js.map +0 -1
- package/dist/cli-tui/config-view.d.ts +0 -30
- package/dist/cli-tui/config-view.d.ts.map +0 -1
- package/dist/cli-tui/config-view.js +0 -255
- package/dist/cli-tui/config-view.js.map +0 -1
- package/dist/cli-tui/context-view.d.ts +0 -20
- package/dist/cli-tui/context-view.d.ts.map +0 -1
- package/dist/cli-tui/context-view.js +0 -191
- package/dist/cli-tui/context-view.js.map +0 -1
- package/dist/cli-tui/custom-editor.d.ts +0 -25
- package/dist/cli-tui/custom-editor.d.ts.map +0 -1
- package/dist/cli-tui/custom-editor.js +0 -241
- package/dist/cli-tui/custom-editor.js.map +0 -1
- package/dist/cli-tui/editor-view.d.ts +0 -34
- package/dist/cli-tui/editor-view.d.ts.map +0 -1
- package/dist/cli-tui/editor-view.js +0 -102
- package/dist/cli-tui/editor-view.js.map +0 -1
- package/dist/cli-tui/feedback-view.d.ts +0 -35
- package/dist/cli-tui/feedback-view.d.ts.map +0 -1
- package/dist/cli-tui/feedback-view.js +0 -271
- package/dist/cli-tui/feedback-view.js.map +0 -1
- package/dist/cli-tui/footer.d.ts +0 -56
- package/dist/cli-tui/footer.d.ts.map +0 -1
- package/dist/cli-tui/footer.js +0 -228
- package/dist/cli-tui/footer.js.map +0 -1
- package/dist/cli-tui/git/commit-modal.d.ts +0 -14
- package/dist/cli-tui/git/commit-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/commit-modal.js +0 -56
- package/dist/cli-tui/git/commit-modal.js.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.d.ts +0 -40
- package/dist/cli-tui/git/git-preview-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.js +0 -123
- package/dist/cli-tui/git/git-preview-modal.js.map +0 -1
- package/dist/cli-tui/git/git-view.d.ts +0 -65
- package/dist/cli-tui/git/git-view.d.ts.map +0 -1
- package/dist/cli-tui/git/git-view.js +0 -529
- package/dist/cli-tui/git/git-view.js.map +0 -1
- package/dist/cli-tui/history/history-config.d.ts +0 -7
- package/dist/cli-tui/history/history-config.d.ts.map +0 -1
- package/dist/cli-tui/history/history-config.js +0 -49
- package/dist/cli-tui/history/history-config.js.map +0 -1
- package/dist/cli-tui/history/prompt-history.d.ts +0 -33
- package/dist/cli-tui/history/prompt-history.d.ts.map +0 -1
- package/dist/cli-tui/history/prompt-history.js +0 -185
- package/dist/cli-tui/history/prompt-history.js.map +0 -1
- package/dist/cli-tui/history/tool-history.d.ts +0 -50
- package/dist/cli-tui/history/tool-history.d.ts.map +0 -1
- package/dist/cli-tui/history/tool-history.js +0 -253
- package/dist/cli-tui/history/tool-history.js.map +0 -1
- package/dist/cli-tui/hook-message.d.ts +0 -13
- package/dist/cli-tui/hook-message.d.ts.map +0 -1
- package/dist/cli-tui/hook-message.js +0 -56
- package/dist/cli-tui/hook-message.js.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.d.ts +0 -22
- package/dist/cli-tui/hooks/hook-input-modal.d.ts.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.js +0 -63
- package/dist/cli-tui/hooks/hook-input-modal.js.map +0 -1
- package/dist/cli-tui/hotkeys-view.d.ts +0 -13
- package/dist/cli-tui/hotkeys-view.d.ts.map +0 -1
- package/dist/cli-tui/hotkeys-view.js +0 -96
- package/dist/cli-tui/hotkeys-view.js.map +0 -1
- package/dist/cli-tui/import-view.d.ts +0 -28
- package/dist/cli-tui/import-view.d.ts.map +0 -1
- package/dist/cli-tui/import-view.js +0 -184
- package/dist/cli-tui/import-view.js.map +0 -1
- package/dist/cli-tui/info-view.d.ts +0 -18
- package/dist/cli-tui/info-view.d.ts.map +0 -1
- package/dist/cli-tui/info-view.js +0 -107
- package/dist/cli-tui/info-view.js.map +0 -1
- package/dist/cli-tui/instruction-panel.d.ts +0 -11
- package/dist/cli-tui/instruction-panel.d.ts.map +0 -1
- package/dist/cli-tui/instruction-panel.js +0 -86
- package/dist/cli-tui/instruction-panel.js.map +0 -1
- package/dist/cli-tui/interrupt-controller.d.ts +0 -78
- package/dist/cli-tui/interrupt-controller.d.ts.map +0 -1
- package/dist/cli-tui/interrupt-controller.js +0 -104
- package/dist/cli-tui/interrupt-controller.js.map +0 -1
- package/dist/cli-tui/keybindings-config.d.ts +0 -27
- package/dist/cli-tui/keybindings-config.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-config.js +0 -372
- package/dist/cli-tui/keybindings-config.js.map +0 -1
- package/dist/cli-tui/keybindings-watcher.d.ts +0 -8
- package/dist/cli-tui/keybindings-watcher.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-watcher.js +0 -56
- package/dist/cli-tui/keybindings-watcher.js.map +0 -1
- package/dist/cli-tui/keybindings.d.ts +0 -13
- package/dist/cli-tui/keybindings.d.ts.map +0 -1
- package/dist/cli-tui/keybindings.js +0 -223
- package/dist/cli-tui/keybindings.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.d.ts +0 -43
- package/dist/cli-tui/loader/loader-stage-manager.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.js +0 -241
- package/dist/cli-tui/loader/loader-stage-manager.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts +0 -14
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.js +0 -34
- package/dist/cli-tui/loader/loader-stage-telemetry.js.map +0 -1
- package/dist/cli-tui/loader/loader-view.d.ts +0 -41
- package/dist/cli-tui/loader/loader-view.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-view.js +0 -162
- package/dist/cli-tui/loader/loader-view.js.map +0 -1
- package/dist/cli-tui/lsp-view.d.ts +0 -21
- package/dist/cli-tui/lsp-view.d.ts.map +0 -1
- package/dist/cli-tui/lsp-view.js +0 -183
- package/dist/cli-tui/lsp-view.js.map +0 -1
- package/dist/cli-tui/mermaid-renderer.d.ts +0 -2
- package/dist/cli-tui/mermaid-renderer.d.ts.map +0 -1
- package/dist/cli-tui/mermaid-renderer.js +0 -391
- package/dist/cli-tui/mermaid-renderer.js.map +0 -1
- package/dist/cli-tui/message-view.d.ts +0 -27
- package/dist/cli-tui/message-view.d.ts.map +0 -1
- package/dist/cli-tui/message-view.js +0 -169
- package/dist/cli-tui/message-view.js.map +0 -1
- package/dist/cli-tui/modal-manager.d.ts +0 -77
- package/dist/cli-tui/modal-manager.d.ts.map +0 -1
- package/dist/cli-tui/modal-manager.js +0 -131
- package/dist/cli-tui/modal-manager.js.map +0 -1
- package/dist/cli-tui/notification-view.d.ts +0 -16
- package/dist/cli-tui/notification-view.d.ts.map +0 -1
- package/dist/cli-tui/notification-view.js +0 -53
- package/dist/cli-tui/notification-view.js.map +0 -1
- package/dist/cli-tui/oauth/index.d.ts +0 -2
- package/dist/cli-tui/oauth/index.d.ts.map +0 -1
- package/dist/cli-tui/oauth/index.js +0 -2
- package/dist/cli-tui/oauth/index.js.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +0 -65
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +0 -400
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +0 -1
- package/dist/cli-tui/ollama-view.d.ts +0 -38
- package/dist/cli-tui/ollama-view.d.ts.map +0 -1
- package/dist/cli-tui/ollama-view.js +0 -395
- package/dist/cli-tui/ollama-view.js.map +0 -1
- package/dist/cli-tui/paste/index.d.ts +0 -2
- package/dist/cli-tui/paste/index.d.ts.map +0 -1
- package/dist/cli-tui/paste/index.js +0 -2
- package/dist/cli-tui/paste/index.js.map +0 -1
- package/dist/cli-tui/paste/paste-handler.d.ts +0 -54
- package/dist/cli-tui/paste/paste-handler.d.ts.map +0 -1
- package/dist/cli-tui/paste/paste-handler.js +0 -128
- package/dist/cli-tui/paste/paste-handler.js.map +0 -1
- package/dist/cli-tui/plan/plan-controller.d.ts +0 -28
- package/dist/cli-tui/plan/plan-controller.d.ts.map +0 -1
- package/dist/cli-tui/plan/plan-controller.js +0 -66
- package/dist/cli-tui/plan/plan-controller.js.map +0 -1
- package/dist/cli-tui/plan-panel-modal.d.ts +0 -28
- package/dist/cli-tui/plan-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/plan-panel-modal.js +0 -193
- package/dist/cli-tui/plan-panel-modal.js.map +0 -1
- package/dist/cli-tui/plan-view.d.ts +0 -57
- package/dist/cli-tui/plan-view.d.ts.map +0 -1
- package/dist/cli-tui/plan-view.js +0 -404
- package/dist/cli-tui/plan-view.js.map +0 -1
- package/dist/cli-tui/prompt-queue.d.ts.map +0 -1
- package/dist/cli-tui/prompt-queue.js.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts +0 -6
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.js +0 -12
- package/dist/cli-tui/queue/follow-up-shortcut.js.map +0 -1
- package/dist/cli-tui/queue/index.d.ts +0 -3
- package/dist/cli-tui/queue/index.d.ts.map +0 -1
- package/dist/cli-tui/queue/index.js +0 -3
- package/dist/cli-tui/queue/index.js.map +0 -1
- package/dist/cli-tui/queue/queue-controller.d.ts +0 -109
- package/dist/cli-tui/queue/queue-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-controller.js +0 -327
- package/dist/cli-tui/queue/queue-controller.js.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.d.ts +0 -34
- package/dist/cli-tui/queue/queue-panel-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.js +0 -163
- package/dist/cli-tui/queue/queue-panel-controller.js.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts +0 -7
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js +0 -14
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js.map +0 -1
- package/dist/cli-tui/queue-panel-modal.d.ts +0 -26
- package/dist/cli-tui/queue-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/queue-panel-modal.js +0 -159
- package/dist/cli-tui/queue-panel-modal.js.map +0 -1
- package/dist/cli-tui/run/run-command-view.d.ts +0 -17
- package/dist/cli-tui/run/run-command-view.d.ts.map +0 -1
- package/dist/cli-tui/run/run-command-view.js +0 -62
- package/dist/cli-tui/run/run-command-view.js.map +0 -1
- package/dist/cli-tui/run/run-controller.d.ts +0 -24
- package/dist/cli-tui/run/run-controller.d.ts.map +0 -1
- package/dist/cli-tui/run/run-controller.js +0 -38
- package/dist/cli-tui/run/run-controller.js.map +0 -1
- package/dist/cli-tui/run/run-shell-command.d.ts +0 -13
- package/dist/cli-tui/run/run-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/run-shell-command.js +0 -51
- package/dist/cli-tui/run/run-shell-command.js.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts +0 -19
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.js +0 -107
- package/dist/cli-tui/run/streaming-shell-command.js.map +0 -1
- package/dist/cli-tui/search/file-search-view.d.ts +0 -22
- package/dist/cli-tui/search/file-search-view.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search-view.js +0 -68
- package/dist/cli-tui/search/file-search-view.js.map +0 -1
- package/dist/cli-tui/search/file-search.d.ts +0 -13
- package/dist/cli-tui/search/file-search.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search.js +0 -52
- package/dist/cli-tui/search/file-search.js.map +0 -1
- package/dist/cli-tui/security-status.d.ts +0 -83
- package/dist/cli-tui/security-status.d.ts.map +0 -1
- package/dist/cli-tui/security-status.js +0 -214
- package/dist/cli-tui/security-status.js.map +0 -1
- package/dist/cli-tui/selectors/base-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/base-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/base-selector.js +0 -47
- package/dist/cli-tui/selectors/base-selector.js.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts +0 -18
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.js +0 -24
- package/dist/cli-tui/selectors/branch-summary-modal.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.d.ts +0 -22
- package/dist/cli-tui/selectors/model-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.js +0 -31
- package/dist/cli-tui/selectors/model-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/model-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector.js +0 -218
- package/dist/cli-tui/selectors/model-selector.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.js +0 -28
- package/dist/cli-tui/selectors/oauth-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.d.ts +0 -19
- package/dist/cli-tui/selectors/oauth-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.js +0 -120
- package/dist/cli-tui/selectors/oauth-selector.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.js +0 -29
- package/dist/cli-tui/selectors/queue-mode-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts +0 -5
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.js +0 -34
- package/dist/cli-tui/selectors/queue-mode-selector.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.d.ts +0 -17
- package/dist/cli-tui/selectors/report-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.js +0 -29
- package/dist/cli-tui/selectors/report-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector.d.ts +0 -7
- package/dist/cli-tui/selectors/report-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector.js +0 -31
- package/dist/cli-tui/selectors/report-selector.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/theme-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.js +0 -41
- package/dist/cli-tui/selectors/theme-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.d.ts +0 -14
- package/dist/cli-tui/selectors/theme-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.js +0 -46
- package/dist/cli-tui/selectors/theme-selector.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.js +0 -31
- package/dist/cli-tui/selectors/thinking-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.d.ts +0 -9
- package/dist/cli-tui/selectors/thinking-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.js +0 -47
- package/dist/cli-tui/selectors/thinking-selector.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.d.ts +0 -32
- package/dist/cli-tui/selectors/tree-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.js +0 -407
- package/dist/cli-tui/selectors/tree-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/tree-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.js +0 -194
- package/dist/cli-tui/selectors/tree-selector.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts +0 -25
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.js +0 -101
- package/dist/cli-tui/selectors/user-message-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/user-message-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.js +0 -114
- package/dist/cli-tui/selectors/user-message-selector.js.map +0 -1
- package/dist/cli-tui/session/branch-controller.d.ts +0 -65
- package/dist/cli-tui/session/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/branch-controller.js +0 -125
- package/dist/cli-tui/session/branch-controller.js.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.d.ts +0 -64
- package/dist/cli-tui/session/conversation-compactor.d.ts.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.js +0 -77
- package/dist/cli-tui/session/conversation-compactor.js.map +0 -1
- package/dist/cli-tui/session/session-context.d.ts +0 -59
- package/dist/cli-tui/session/session-context.d.ts.map +0 -1
- package/dist/cli-tui/session/session-context.js +0 -79
- package/dist/cli-tui/session/session-context.js.map +0 -1
- package/dist/cli-tui/session/session-data-provider.d.ts +0 -23
- package/dist/cli-tui/session/session-data-provider.d.ts.map +0 -1
- package/dist/cli-tui/session/session-data-provider.js +0 -22
- package/dist/cli-tui/session/session-data-provider.js.map +0 -1
- package/dist/cli-tui/session/session-list.d.ts +0 -18
- package/dist/cli-tui/session/session-list.d.ts.map +0 -1
- package/dist/cli-tui/session/session-list.js +0 -103
- package/dist/cli-tui/session/session-list.js.map +0 -1
- package/dist/cli-tui/session/session-selector.d.ts +0 -12
- package/dist/cli-tui/session/session-selector.d.ts.map +0 -1
- package/dist/cli-tui/session/session-selector.js +0 -37
- package/dist/cli-tui/session/session-selector.js.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.d.ts +0 -24
- package/dist/cli-tui/session/session-summary-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.js +0 -96
- package/dist/cli-tui/session/session-summary-controller.js.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.d.ts +0 -20
- package/dist/cli-tui/session/session-switcher-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.js +0 -43
- package/dist/cli-tui/session/session-switcher-view.js.map +0 -1
- package/dist/cli-tui/session/session-switcher.d.ts +0 -38
- package/dist/cli-tui/session/session-switcher.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher.js +0 -204
- package/dist/cli-tui/session/session-switcher.js.map +0 -1
- package/dist/cli-tui/session/session-view.d.ts +0 -46
- package/dist/cli-tui/session/session-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-view.js +0 -311
- package/dist/cli-tui/session/session-view.js.map +0 -1
- package/dist/cli-tui/slash/index.d.ts +0 -2
- package/dist/cli-tui/slash/index.d.ts.map +0 -1
- package/dist/cli-tui/slash/index.js +0 -2
- package/dist/cli-tui/slash/index.js.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.d.ts +0 -55
- package/dist/cli-tui/slash/slash-command-matcher.d.ts.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.js +0 -113
- package/dist/cli-tui/slash/slash-command-matcher.js.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.d.ts +0 -5
- package/dist/cli-tui/smart-autocomplete-provider.d.ts.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.js +0 -44
- package/dist/cli-tui/smart-autocomplete-provider.js.map +0 -1
- package/dist/cli-tui/startup-announcements.d.ts +0 -15
- package/dist/cli-tui/startup-announcements.d.ts.map +0 -1
- package/dist/cli-tui/startup-announcements.js +0 -75
- package/dist/cli-tui/startup-announcements.js.map +0 -1
- package/dist/cli-tui/status/cost-view.d.ts +0 -27
- package/dist/cli-tui/status/cost-view.d.ts.map +0 -1
- package/dist/cli-tui/status/cost-view.js +0 -212
- package/dist/cli-tui/status/cost-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.d.ts +0 -34
- package/dist/cli-tui/status/diagnostics-templates.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.js +0 -167
- package/dist/cli-tui/status/diagnostics-templates.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.d.ts +0 -48
- package/dist/cli-tui/status/diagnostics-view.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.js +0 -249
- package/dist/cli-tui/status/diagnostics-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics.d.ts +0 -39
- package/dist/cli-tui/status/diagnostics.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics.js +0 -286
- package/dist/cli-tui/status/diagnostics.js.map +0 -1
- package/dist/cli-tui/status/health-snapshot.d.ts +0 -17
- package/dist/cli-tui/status/health-snapshot.d.ts.map +0 -1
- package/dist/cli-tui/status/health-snapshot.js +0 -28
- package/dist/cli-tui/status/health-snapshot.js.map +0 -1
- package/dist/cli-tui/status/quota-view.d.ts +0 -37
- package/dist/cli-tui/status/quota-view.d.ts.map +0 -1
- package/dist/cli-tui/status/quota-view.js +0 -309
- package/dist/cli-tui/status/quota-view.js.map +0 -1
- package/dist/cli-tui/status/telemetry-view.d.ts +0 -23
- package/dist/cli-tui/status/telemetry-view.d.ts.map +0 -1
- package/dist/cli-tui/status/telemetry-view.js +0 -77
- package/dist/cli-tui/status/telemetry-view.js.map +0 -1
- package/dist/cli-tui/status/training-view.d.ts +0 -23
- package/dist/cli-tui/status/training-view.d.ts.map +0 -1
- package/dist/cli-tui/status/training-view.js +0 -71
- package/dist/cli-tui/status/training-view.js.map +0 -1
- package/dist/cli-tui/streaming-view.d.ts +0 -43
- package/dist/cli-tui/streaming-view.d.ts.map +0 -1
- package/dist/cli-tui/streaming-view.js +0 -176
- package/dist/cli-tui/streaming-view.js.map +0 -1
- package/dist/cli-tui/terminal/index.d.ts +0 -2
- package/dist/cli-tui/terminal/index.d.ts.map +0 -1
- package/dist/cli-tui/terminal/index.js +0 -2
- package/dist/cli-tui/terminal/index.js.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.d.ts +0 -44
- package/dist/cli-tui/terminal/terminal-utils.d.ts.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.js +0 -145
- package/dist/cli-tui/terminal/terminal-utils.js.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.d.ts +0 -19
- package/dist/cli-tui/tips/tip-scheduler.d.ts.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.js +0 -135
- package/dist/cli-tui/tips/tip-scheduler.js.map +0 -1
- package/dist/cli-tui/tool-execution.d.ts +0 -76
- package/dist/cli-tui/tool-execution.d.ts.map +0 -1
- package/dist/cli-tui/tool-execution.js +0 -217
- package/dist/cli-tui/tool-execution.js.map +0 -1
- package/dist/cli-tui/tool-output-view.d.ts +0 -22
- package/dist/cli-tui/tool-output-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-output-view.js +0 -71
- package/dist/cli-tui/tool-output-view.js.map +0 -1
- package/dist/cli-tui/tool-renderers/index.d.ts +0 -4
- package/dist/cli-tui/tool-renderers/index.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/index.js +0 -19
- package/dist/cli-tui/tool-renderers/index.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-bash.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.js +0 -90
- package/dist/cli-tui/tool-renderers/render-bash.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.d.ts +0 -12
- package/dist/cli-tui/tool-renderers/render-batch.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.js +0 -133
- package/dist/cli-tui/tool-renderers/render-batch.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-edit.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.js +0 -125
- package/dist/cli-tui/tool-renderers/render-edit.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-generic.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.js +0 -66
- package/dist/cli-tui/tool-renderers/render-generic.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.d.ts +0 -9
- package/dist/cli-tui/tool-renderers/render-read.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.js +0 -108
- package/dist/cli-tui/tool-renderers/render-read.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.d.ts +0 -21
- package/dist/cli-tui/tool-renderers/render-style.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.js +0 -51
- package/dist/cli-tui/tool-renderers/render-style.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.d.ts +0 -5
- package/dist/cli-tui/tool-renderers/render-write.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.js +0 -60
- package/dist/cli-tui/tool-renderers/render-write.js.map +0 -1
- package/dist/cli-tui/tool-renderers/types.d.ts +0 -20
- package/dist/cli-tui/tool-renderers/types.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/types.js +0 -2
- package/dist/cli-tui/tool-renderers/types.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts +0 -29
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.js +0 -110
- package/dist/cli-tui/tool-retry/tool-retry-controller.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts +0 -27
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.js +0 -118
- package/dist/cli-tui/tool-retry/tool-retry-modal.js.map +0 -1
- package/dist/cli-tui/tool-status-view.d.ts +0 -32
- package/dist/cli-tui/tool-status-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-status-view.js +0 -86
- package/dist/cli-tui/tool-status-view.js.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +0 -129
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/approval-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts +0 -54
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/attachment-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts +0 -9
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js +0 -7
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts +0 -41
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.js +0 -102
- package/dist/cli-tui/tui-renderer/branch-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.js +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/client-tools-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +0 -111
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +0 -163
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.d.ts +0 -16
- package/dist/cli-tui/tui-renderer/command-registry.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.js +0 -23
- package/dist/cli-tui/tui-renderer/command-registry.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +0 -29
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +0 -108
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts +0 -100
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/compaction-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts +0 -42
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js +0 -106
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts +0 -37
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js +0 -139
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.js +0 -76
- package/dist/cli-tui/tui-renderer/editor-bindings.js.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js +0 -152
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.d.ts +0 -35
- package/dist/cli-tui/tui-renderer/history-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.js +0 -153
- package/dist/cli-tui/tui-renderer/history-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts +0 -83
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js +0 -309
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.js +0 -54
- package/dist/cli-tui/tui-renderer/initial-preferences.js.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +0 -56
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +0 -104
- package/dist/cli-tui/tui-renderer/input-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.js +0 -18
- package/dist/cli-tui/tui-renderer/interrupt-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.js +0 -13
- package/dist/cli-tui/tui-renderer/loader-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts +0 -55
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js +0 -143
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.js +0 -143
- package/dist/cli-tui/tui-renderer/misc-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.js +0 -26
- package/dist/cli-tui/tui-renderer/oauth-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/plan-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js +0 -64
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts +0 -18
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.js +0 -42
- package/dist/cli-tui/tui-renderer/queue-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts +0 -53
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js +0 -100
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.d.ts +0 -31
- package/dist/cli-tui/tui-renderer/session-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.js +0 -45
- package/dist/cli-tui/tui-renderer/session-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts +0 -66
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.js +0 -139
- package/dist/cli-tui/tui-renderer/session-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts +0 -70
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +0 -411
- package/dist/cli-tui/tui-renderer/skills-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js +0 -131
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts +0 -38
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js +0 -48
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +0 -70
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +0 -184
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.js +0 -11
- package/dist/cli-tui/tui-renderer/ui-state-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts +0 -26
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/utility-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts +0 -33
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.js +0 -98
- package/dist/cli-tui/tui-renderer/viewport-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer.d.ts +0 -268
- package/dist/cli-tui/tui-renderer.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer.js +0 -2131
- package/dist/cli-tui/tui-renderer.js.map +0 -1
- package/dist/cli-tui/ui-state.d.ts +0 -27
- package/dist/cli-tui/ui-state.d.ts.map +0 -1
- package/dist/cli-tui/ui-state.js +0 -88
- package/dist/cli-tui/ui-state.js.map +0 -1
- package/dist/cli-tui/update-view.d.ts +0 -16
- package/dist/cli-tui/update-view.d.ts.map +0 -1
- package/dist/cli-tui/update-view.js +0 -45
- package/dist/cli-tui/update-view.js.map +0 -1
- package/dist/cli-tui/user-message.d.ts +0 -17
- package/dist/cli-tui/user-message.d.ts.map +0 -1
- package/dist/cli-tui/user-message.js +0 -83
- package/dist/cli-tui/user-message.js.map +0 -1
- package/dist/cli-tui/utils/borders.d.ts +0 -131
- package/dist/cli-tui/utils/borders.d.ts.map +0 -1
- package/dist/cli-tui/utils/borders.js +0 -254
- package/dist/cli-tui/utils/borders.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts +0 -22
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.js +0 -31
- package/dist/cli-tui/utils/commands/command-palette-view.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.d.ts +0 -29
- package/dist/cli-tui/utils/commands/command-palette.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.js +0 -213
- package/dist/cli-tui/utils/commands/command-palette.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts +0 -8
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.js +0 -9
- package/dist/cli-tui/utils/commands/command-registry-builder.js.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +0 -10
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +0 -90
- package/dist/cli-tui/utils/commands/review-prompt.js.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts +0 -15
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.js +0 -106
- package/dist/cli-tui/utils/commands/slash-hint-bar.js.map +0 -1
- package/dist/cli-tui/utils/env-detect.d.ts +0 -11
- package/dist/cli-tui/utils/env-detect.d.ts.map +0 -1
- package/dist/cli-tui/utils/env-detect.js +0 -107
- package/dist/cli-tui/utils/env-detect.js.map +0 -1
- package/dist/cli-tui/utils/external-editor.d.ts +0 -7
- package/dist/cli-tui/utils/external-editor.d.ts.map +0 -1
- package/dist/cli-tui/utils/external-editor.js +0 -53
- package/dist/cli-tui/utils/external-editor.js.map +0 -1
- package/dist/cli-tui/utils/footer-utils.d.ts +0 -169
- package/dist/cli-tui/utils/footer-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-utils.js +0 -716
- package/dist/cli-tui/utils/footer-utils.js.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts +0 -38
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.js +0 -141
- package/dist/cli-tui/utils/footer-visual-widgets.js.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.d.ts +0 -38
- package/dist/cli-tui/utils/git-branch-tracker.d.ts.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.js +0 -90
- package/dist/cli-tui/utils/git-branch-tracker.js.map +0 -1
- package/dist/cli-tui/utils/glyphs.d.ts +0 -207
- package/dist/cli-tui/utils/glyphs.d.ts.map +0 -1
- package/dist/cli-tui/utils/glyphs.js +0 -249
- package/dist/cli-tui/utils/glyphs.js.map +0 -1
- package/dist/cli-tui/utils/layout.d.ts +0 -77
- package/dist/cli-tui/utils/layout.d.ts.map +0 -1
- package/dist/cli-tui/utils/layout.js +0 -83
- package/dist/cli-tui/utils/layout.js.map +0 -1
- package/dist/cli-tui/utils/links.d.ts +0 -2
- package/dist/cli-tui/utils/links.d.ts.map +0 -1
- package/dist/cli-tui/utils/links.js +0 -14
- package/dist/cli-tui/utils/links.js.map +0 -1
- package/dist/cli-tui/utils/motion.d.ts +0 -4
- package/dist/cli-tui/utils/motion.d.ts.map +0 -1
- package/dist/cli-tui/utils/motion.js +0 -28
- package/dist/cli-tui/utils/motion.js.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +0 -26
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.js +0 -178
- package/dist/cli-tui/utils/runtime-badges.js.map +0 -1
- package/dist/cli-tui/utils/shimmer.d.ts +0 -12
- package/dist/cli-tui/utils/shimmer.d.ts.map +0 -1
- package/dist/cli-tui/utils/shimmer.js +0 -57
- package/dist/cli-tui/utils/shimmer.js.map +0 -1
- package/dist/cli-tui/utils/stage-labels.d.ts +0 -9
- package/dist/cli-tui/utils/stage-labels.d.ts.map +0 -1
- package/dist/cli-tui/utils/stage-labels.js +0 -65
- package/dist/cli-tui/utils/stage-labels.js.map +0 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +0 -13
- package/dist/cli-tui/utils/text-formatting.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-formatting.js +0 -109
- package/dist/cli-tui/utils/text-formatting.js.map +0 -1
- package/dist/cli-tui/utils/text-preview.d.ts +0 -10
- package/dist/cli-tui/utils/text-preview.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-preview.js +0 -26
- package/dist/cli-tui/utils/text-preview.js.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.d.ts +0 -42
- package/dist/cli-tui/utils/tool-text-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.js +0 -361
- package/dist/cli-tui/utils/tool-text-utils.js.map +0 -1
- package/dist/cli-tui/welcome-animation.d.ts +0 -24
- package/dist/cli-tui/welcome-animation.d.ts.map +0 -1
- package/dist/cli-tui/welcome-animation.js +0 -99
- package/dist/cli-tui/welcome-animation.js.map +0 -1
- package/dist/cli-tui/welcome-colors.d.ts +0 -3
- package/dist/cli-tui/welcome-colors.d.ts.map +0 -1
- package/dist/cli-tui/welcome-colors.js +0 -39
- package/dist/cli-tui/welcome-colors.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts +0 -304
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js +0 -712
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts +0 -185
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.js +0 -1460
- package/dist/node_modules/@evalops/tui/dist/components/editor.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts +0 -117
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.js +0 -391
- package/dist/node_modules/@evalops/tui/dist/components/input.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts +0 -256
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.js +0 -478
- package/dist/node_modules/@evalops/tui/dist/components/layout.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts +0 -199
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.js +0 -374
- package/dist/node_modules/@evalops/tui/dist/components/loader.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts +0 -65
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js +0 -562
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts +0 -262
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js +0 -575
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts +0 -131
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js +0 -257
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts +0 -11
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js +0 -19
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts +0 -22
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts +0 -26
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.js +0 -181
- package/dist/node_modules/@evalops/tui/dist/components/text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts +0 -15
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js +0 -84
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.d.ts +0 -87
- package/dist/node_modules/@evalops/tui/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.js +0 -85
- package/dist/node_modules/@evalops/tui/dist/index.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts +0 -189
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.js +0 -363
- package/dist/node_modules/@evalops/tui/dist/keymap.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts +0 -25
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js +0 -828
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts +0 -40
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js +0 -474
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts +0 -201
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.js +0 -241
- package/dist/node_modules/@evalops/tui/dist/terminal.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts +0 -263
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.js +0 -694
- package/dist/node_modules/@evalops/tui/dist/tui.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts +0 -14
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts +0 -32
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.js +0 -556
- package/dist/node_modules/@evalops/tui/dist/utils.js.map +0 -1
- package/dist/node_modules/@evalops/tui/package.json +0 -58
- package/dist/skills/artifact-metadata.d.ts +0 -16
- package/dist/skills/artifact-metadata.d.ts.map +0 -1
- package/dist/skills/artifact-metadata.js +0 -86
- package/dist/skills/artifact-metadata.js.map +0 -1
- package/dist/skills/composer-diagnostics.d.ts +0 -69
- package/dist/skills/composer-diagnostics.d.ts.map +0 -1
- package/dist/skills/composer-diagnostics.js +0 -78
- package/dist/skills/composer-diagnostics.js.map +0 -1
- package/dist/skills/composer.d.ts +0 -19
- package/dist/skills/composer.d.ts.map +0 -1
- package/dist/skills/composer.js +0 -52
- package/dist/skills/composer.js.map +0 -1
- package/dist/skills/eval-harness.d.ts +0 -38
- package/dist/skills/eval-harness.d.ts.map +0 -1
- package/dist/skills/eval-harness.js +0 -112
- package/dist/skills/eval-harness.js.map +0 -1
- package/dist/skills/index.d.ts +0 -40
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -40
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/linter.d.ts +0 -36
- package/dist/skills/linter.d.ts.map +0 -1
- package/dist/skills/linter.js +0 -399
- package/dist/skills/linter.js.map +0 -1
- package/dist/skills/loader.d.ts +0 -252
- package/dist/skills/loader.d.ts.map +0 -1
- package/dist/skills/loader.js +0 -957
- package/dist/skills/loader.js.map +0 -1
- package/dist/skills/package-contract.d.ts +0 -45
- package/dist/skills/package-contract.d.ts.map +0 -1
- package/dist/skills/package-contract.js +0 -153
- package/dist/skills/package-contract.js.map +0 -1
- package/dist/skills/runtime-activation.d.ts +0 -68
- package/dist/skills/runtime-activation.d.ts.map +0 -1
- package/dist/skills/runtime-activation.js +0 -228
- package/dist/skills/runtime-activation.js.map +0 -1
- package/dist/skills/scaffold-from-template.d.ts +0 -58
- package/dist/skills/scaffold-from-template.d.ts.map +0 -1
- package/dist/skills/scaffold-from-template.js +0 -72
- package/dist/skills/scaffold-from-template.js.map +0 -1
- package/dist/skills/scaffolder.d.ts +0 -65
- package/dist/skills/scaffolder.d.ts.map +0 -1
- package/dist/skills/scaffolder.js +0 -167
- package/dist/skills/scaffolder.js.map +0 -1
- package/dist/skills/service-client.d.ts +0 -56
- package/dist/skills/service-client.d.ts.map +0 -1
- package/dist/skills/service-client.js +0 -266
- package/dist/skills/service-client.js.map +0 -1
- package/dist/skills/skill-templates.d.ts +0 -70
- package/dist/skills/skill-templates.d.ts.map +0 -1
- package/dist/skills/skill-templates.js +0 -154
- package/dist/skills/skill-templates.js.map +0 -1
- package/dist/skills/tool.d.ts +0 -21
- package/dist/skills/tool.d.ts.map +0 -1
- package/dist/skills/tool.js +0 -334
- package/dist/skills/tool.js.map +0 -1
- package/dist/skills/trust-cache.d.ts +0 -58
- package/dist/skills/trust-cache.d.ts.map +0 -1
- package/dist/skills/trust-cache.js +0 -130
- package/dist/skills/trust-cache.js.map +0 -1
- package/dist/skills/types.d.ts +0 -91
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -8
- package/dist/skills/types.js.map +0 -1
- /package/dist/{cli-tui → runtime}/prompt-queue.d.ts +0 -0
- /package/dist/{cli-tui → runtime}/prompt-queue.js +0 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ambient learner subsystem for the customer-value report.
|
|
3
|
+
*
|
|
4
|
+
* Owns everything that reads/classifies the ambient learner outcome file:
|
|
5
|
+
* daemon flush, JSON parsing, pattern derivation, transient-failure
|
|
6
|
+
* classification, and the ambient customer-value/opportunity builders that
|
|
7
|
+
* turn learner evidence into report sections.
|
|
8
|
+
*
|
|
9
|
+
* Extracted from report.ts to isolate the highest-churn surface (transient
|
|
10
|
+
* classification + flush freshness evolve frequently) behind a stable module
|
|
11
|
+
* boundary. Runtime dependencies are one-directional: this module imports
|
|
12
|
+
* shared leaf helpers from ./internal-helpers.js and types from ./report.js
|
|
13
|
+
* (type-only). report.ts imports the summary/build entry points back here.
|
|
14
|
+
*/
|
|
15
|
+
import { spawn } from "node:child_process";
|
|
16
|
+
import { existsSync } from "node:fs";
|
|
17
|
+
import { readFile } from "node:fs/promises";
|
|
18
|
+
import { sanitizeWithStaticMask } from "../utils/secret-redactor.js";
|
|
19
|
+
import { isTimestampInRangeOrUnbounded, numberOrZero, parseTimestampMs, redactLine, sanitizeA2ALabel, slugify, sum, } from "./internal-helpers.js";
|
|
20
|
+
function shellQuote(value) {
|
|
21
|
+
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
22
|
+
}
|
|
23
|
+
export function ambientLearnerPresenceCommand(learnerPath) {
|
|
24
|
+
return `test -s ${shellQuote(learnerPath)}`;
|
|
25
|
+
}
|
|
26
|
+
export async function flushAmbientLearnerForReport(env, _learnerPath, flush) {
|
|
27
|
+
return flush(env);
|
|
28
|
+
}
|
|
29
|
+
export async function flushAmbientLearnerBeforeRead(env) {
|
|
30
|
+
return new Promise((resolve) => {
|
|
31
|
+
const child = spawn("ambient", ["flush"], {
|
|
32
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
33
|
+
});
|
|
34
|
+
let stdout = "";
|
|
35
|
+
let stderr = "";
|
|
36
|
+
let settled = false;
|
|
37
|
+
const finish = (result) => {
|
|
38
|
+
if (settled)
|
|
39
|
+
return;
|
|
40
|
+
settled = true;
|
|
41
|
+
clearTimeout(timeout);
|
|
42
|
+
resolve(result);
|
|
43
|
+
};
|
|
44
|
+
const timeout = setTimeout(() => {
|
|
45
|
+
child.kill();
|
|
46
|
+
finish({
|
|
47
|
+
flushed: false,
|
|
48
|
+
collectionGap: "Ambient learner flush timed out before report generation.",
|
|
49
|
+
});
|
|
50
|
+
}, 40000);
|
|
51
|
+
child.stdout?.setEncoding("utf8");
|
|
52
|
+
child.stdout?.on("data", (chunk) => {
|
|
53
|
+
stdout += chunk;
|
|
54
|
+
});
|
|
55
|
+
child.stderr?.setEncoding("utf8");
|
|
56
|
+
child.stderr?.on("data", (chunk) => {
|
|
57
|
+
stderr += chunk;
|
|
58
|
+
});
|
|
59
|
+
child.on("error", (error) => {
|
|
60
|
+
if (error.code === "ENOENT" &&
|
|
61
|
+
!existsSync(env.ambientSocketFile)) {
|
|
62
|
+
finish({ flushed: false });
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
finish({
|
|
66
|
+
flushed: false,
|
|
67
|
+
collectionGap: `Ambient learner flush could not start: ${sanitizeWithStaticMask(error.message)}.`,
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
child.on("close", (code) => {
|
|
71
|
+
if (code === 0) {
|
|
72
|
+
finish({
|
|
73
|
+
flushed: true,
|
|
74
|
+
learnerPath: parseAmbientFlushLearnerPath(stdout, env.ambientLearnerDefaultFile),
|
|
75
|
+
});
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const failureMessage = stderr.trim() || stdout.trim() || `exit ${code ?? "unknown"}`;
|
|
79
|
+
if (isAmbientDaemonNotRunningFlushFailure(failureMessage, env)) {
|
|
80
|
+
finish({ flushed: false });
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
finish({
|
|
84
|
+
flushed: false,
|
|
85
|
+
collectionGap: `Ambient learner flush failed before report generation: ${sanitizeWithStaticMask(failureMessage)}.`,
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function isAmbientDaemonNotRunningFlushFailure(failureMessage, env) {
|
|
91
|
+
const normalized = failureMessage.toLowerCase();
|
|
92
|
+
return (normalized.includes("daemon is not running") ||
|
|
93
|
+
normalized.includes("daemon not running") ||
|
|
94
|
+
(normalized.includes("socket not found") &&
|
|
95
|
+
!existsSync(env.ambientSocketFile)));
|
|
96
|
+
}
|
|
97
|
+
function parseAmbientFlushLearnerPath(stdout, fallbackPath) {
|
|
98
|
+
const prefix = "Learner state flushed:";
|
|
99
|
+
const lines = stdout
|
|
100
|
+
.split(/\r?\n/u)
|
|
101
|
+
.map((line) => line.trim())
|
|
102
|
+
.filter(Boolean)
|
|
103
|
+
.reverse();
|
|
104
|
+
for (const line of lines) {
|
|
105
|
+
if (!line.startsWith(prefix))
|
|
106
|
+
continue;
|
|
107
|
+
const learnerPath = line.slice(prefix.length).trim();
|
|
108
|
+
if (learnerPath)
|
|
109
|
+
return learnerPath;
|
|
110
|
+
}
|
|
111
|
+
return fallbackPath;
|
|
112
|
+
}
|
|
113
|
+
export async function summarizeAmbientLearning(learnerPath, range, flushResult, requestedLearnerPath = learnerPath) {
|
|
114
|
+
const summary = {
|
|
115
|
+
learnerPath,
|
|
116
|
+
outcomes: [],
|
|
117
|
+
patterns: [],
|
|
118
|
+
collectionGaps: [],
|
|
119
|
+
};
|
|
120
|
+
if (flushResult?.collectionGap) {
|
|
121
|
+
summary.collectionGaps.push(flushResult.collectionGap);
|
|
122
|
+
}
|
|
123
|
+
if (flushResult?.learnerPath &&
|
|
124
|
+
requestedLearnerPath !== flushResult.learnerPath) {
|
|
125
|
+
summary.collectionGaps.push(`Ambient learner override at ${requestedLearnerPath} did not match the running daemon; report used flushed learner state from ${flushResult.learnerPath}.`);
|
|
126
|
+
}
|
|
127
|
+
if (!existsSync(learnerPath)) {
|
|
128
|
+
summary.collectionGaps.push(`Ambient learner file not found at ${learnerPath}. Run ambient work before claiming learned automation patterns.`);
|
|
129
|
+
return summary;
|
|
130
|
+
}
|
|
131
|
+
let raw = "";
|
|
132
|
+
try {
|
|
133
|
+
raw = await readFile(learnerPath, "utf8");
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
summary.collectionGaps.push(`Ambient learner file could not be read: ${sanitizeWithStaticMask(error instanceof Error ? error.message : String(error))}.`);
|
|
137
|
+
return summary;
|
|
138
|
+
}
|
|
139
|
+
let parsed;
|
|
140
|
+
try {
|
|
141
|
+
parsed = JSON.parse(raw);
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
summary.collectionGaps.push(`Ambient learner file at ${learnerPath} is not valid JSON.`);
|
|
145
|
+
return summary;
|
|
146
|
+
}
|
|
147
|
+
if (!parsed || typeof parsed !== "object") {
|
|
148
|
+
summary.collectionGaps.push(`Ambient learner file at ${learnerPath} did not contain an object.`);
|
|
149
|
+
return summary;
|
|
150
|
+
}
|
|
151
|
+
const record = parsed;
|
|
152
|
+
const outcomes = Array.isArray(record.outcomes) ? record.outcomes : [];
|
|
153
|
+
summary.outcomes = outcomes
|
|
154
|
+
.map(parseAmbientLearnerOutcome)
|
|
155
|
+
.filter((outcome) => Boolean(outcome))
|
|
156
|
+
.filter((outcome) => isTimestampInRangeOrUnbounded(outcome.timestamp, range));
|
|
157
|
+
summary.patterns = deriveAmbientLearnerPatterns(summary.outcomes);
|
|
158
|
+
if (summary.outcomes.length === 0) {
|
|
159
|
+
summary.collectionGaps.push(range.since === undefined && range.until === undefined
|
|
160
|
+
? `Ambient learner file at ${learnerPath} has no outcome evidence.`
|
|
161
|
+
: `Ambient learner file at ${learnerPath} has no outcome evidence for the selected range.`);
|
|
162
|
+
}
|
|
163
|
+
return summary;
|
|
164
|
+
}
|
|
165
|
+
function parseAmbientLearnerOutcome(value) {
|
|
166
|
+
if (!value || typeof value !== "object")
|
|
167
|
+
return undefined;
|
|
168
|
+
const record = value;
|
|
169
|
+
const success = record.success;
|
|
170
|
+
if (typeof success !== "boolean")
|
|
171
|
+
return undefined;
|
|
172
|
+
const labels = Array.isArray(record.labels)
|
|
173
|
+
? record.labels
|
|
174
|
+
.filter((label) => typeof label === "string")
|
|
175
|
+
.map((label) => sanitizeA2ALabel(label, 80))
|
|
176
|
+
: [];
|
|
177
|
+
return {
|
|
178
|
+
success,
|
|
179
|
+
...(typeof record.failure_reason === "string" &&
|
|
180
|
+
record.failure_reason.trim()
|
|
181
|
+
? { failureReason: redactLine(record.failure_reason) }
|
|
182
|
+
: {}),
|
|
183
|
+
labels,
|
|
184
|
+
...(typeof record.repo === "string"
|
|
185
|
+
? { repo: sanitizeA2ALabel(record.repo, 120) }
|
|
186
|
+
: {}),
|
|
187
|
+
...(typeof record.task_type === "string"
|
|
188
|
+
? { taskType: sanitizeA2ALabel(record.task_type, 80) }
|
|
189
|
+
: {}),
|
|
190
|
+
...(typeof record.event_type === "string"
|
|
191
|
+
? { eventType: sanitizeA2ALabel(record.event_type, 80) }
|
|
192
|
+
: {}),
|
|
193
|
+
costUsd: numberOrZero(record.cost_usd),
|
|
194
|
+
...(parseTimestampMs(record.timestamp) !== undefined
|
|
195
|
+
? { timestamp: parseTimestampMs(record.timestamp) }
|
|
196
|
+
: {}),
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function deriveAmbientLearnerPatterns(outcomes) {
|
|
200
|
+
const groups = new Map();
|
|
201
|
+
const add = (patternType, key, outcome) => {
|
|
202
|
+
if (!key)
|
|
203
|
+
return;
|
|
204
|
+
const groupKey = `${patternType}\u0000${key}`;
|
|
205
|
+
const group = groups.get(groupKey) ?? {
|
|
206
|
+
patternType,
|
|
207
|
+
key,
|
|
208
|
+
successCount: 0,
|
|
209
|
+
sampleCount: 0,
|
|
210
|
+
transientFailureCount: 0,
|
|
211
|
+
nonTransientFailureCount: 0,
|
|
212
|
+
};
|
|
213
|
+
group.sampleCount += 1;
|
|
214
|
+
if (outcome.success) {
|
|
215
|
+
group.successCount += 1;
|
|
216
|
+
}
|
|
217
|
+
else if (isTransientAmbientFailureOutcome(outcome)) {
|
|
218
|
+
group.transientFailureCount += 1;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
group.nonTransientFailureCount += 1;
|
|
222
|
+
}
|
|
223
|
+
groups.set(groupKey, group);
|
|
224
|
+
};
|
|
225
|
+
for (const outcome of outcomes) {
|
|
226
|
+
for (const label of outcome.labels)
|
|
227
|
+
add("Label", label, outcome);
|
|
228
|
+
add("Repo", outcome.repo, outcome);
|
|
229
|
+
add("TaskType", outcome.taskType, outcome);
|
|
230
|
+
add("EventType", outcome.eventType, outcome);
|
|
231
|
+
}
|
|
232
|
+
return [...groups.values()]
|
|
233
|
+
.map((group) => ({
|
|
234
|
+
patternType: group.patternType,
|
|
235
|
+
key: group.key,
|
|
236
|
+
successRate: group.successCount / group.sampleCount,
|
|
237
|
+
sampleCount: group.sampleCount,
|
|
238
|
+
successCount: group.successCount,
|
|
239
|
+
transientFailureCount: group.transientFailureCount,
|
|
240
|
+
nonTransientFailureCount: group.nonTransientFailureCount,
|
|
241
|
+
nonTransientSampleCount: group.successCount + group.nonTransientFailureCount,
|
|
242
|
+
nonTransientSuccessRate: group.successCount + group.nonTransientFailureCount > 0
|
|
243
|
+
? group.successCount /
|
|
244
|
+
(group.successCount + group.nonTransientFailureCount)
|
|
245
|
+
: null,
|
|
246
|
+
}))
|
|
247
|
+
.sort((left, right) => right.sampleCount - left.sampleCount ||
|
|
248
|
+
right.successRate - left.successRate ||
|
|
249
|
+
left.patternType.localeCompare(right.patternType) ||
|
|
250
|
+
left.key.localeCompare(right.key));
|
|
251
|
+
}
|
|
252
|
+
export function buildAmbientCustomerValue(input) {
|
|
253
|
+
const successCount = input.learning.outcomes.filter((outcome) => outcome.success).length;
|
|
254
|
+
const failureCount = input.learning.outcomes.length - successCount;
|
|
255
|
+
const protectedTransientFailureCount = input.learning.outcomes.filter(isTransientAmbientFailureOutcome).length;
|
|
256
|
+
const actionablePatternCount = input.learning.patterns.filter((pattern) => pattern.nonTransientSampleCount >= 3).length;
|
|
257
|
+
const base = {
|
|
258
|
+
learnerPath: input.learning.learnerPath,
|
|
259
|
+
outcomeCount: input.learning.outcomes.length,
|
|
260
|
+
successCount,
|
|
261
|
+
failureCount,
|
|
262
|
+
successRate: input.learning.outcomes.length > 0
|
|
263
|
+
? successCount / input.learning.outcomes.length
|
|
264
|
+
: null,
|
|
265
|
+
totalCostUsd: sum(input.learning.outcomes, (outcome) => outcome.costUsd),
|
|
266
|
+
patternCount: input.learning.patterns.length,
|
|
267
|
+
actionablePatternCount,
|
|
268
|
+
protectedTransientFailureCount,
|
|
269
|
+
collectionGaps: input.learning.collectionGaps,
|
|
270
|
+
};
|
|
271
|
+
const automationOpportunities = buildAmbientAutomationOpportunities({
|
|
272
|
+
ambient: base,
|
|
273
|
+
multiAgent: input.multiAgent,
|
|
274
|
+
trustCards: input.trustCards,
|
|
275
|
+
handoffs: input.handoffs,
|
|
276
|
+
});
|
|
277
|
+
const playbookLearningOpportunities = buildPlaybookLearningOpportunities({
|
|
278
|
+
ambient: base,
|
|
279
|
+
learning: input.learning,
|
|
280
|
+
multiAgent: input.multiAgent,
|
|
281
|
+
trustCards: input.trustCards,
|
|
282
|
+
handoffs: input.handoffs,
|
|
283
|
+
});
|
|
284
|
+
return {
|
|
285
|
+
...base,
|
|
286
|
+
automationOpportunities,
|
|
287
|
+
playbookLearningOpportunities,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function buildAmbientAutomationOpportunities(input) {
|
|
291
|
+
const opportunities = [];
|
|
292
|
+
if (input.multiAgent.delegatedPendingTaskCount > 0 ||
|
|
293
|
+
input.multiAgent.nextActions.length > 0) {
|
|
294
|
+
opportunities.push({
|
|
295
|
+
id: "a2a-followup-watchdog",
|
|
296
|
+
customerOutcome: "Wake operators only when delegated work needs a reply, wait, refresh, or evidence check.",
|
|
297
|
+
triggerEvidence: `${input.multiAgent.delegatedPendingTaskCount} pending delegated task(s) and ${input.multiAgent.nextActions.length} cockpit next action(s).`,
|
|
298
|
+
recommendedCadence: "hourly",
|
|
299
|
+
scriptGate: "maestro a2a cockpit --json | jq -e '.nextActions | length > 0'",
|
|
300
|
+
delivery: "Slack or CLI notification with the first cockpit next action and value-report link.",
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
const failedToolResults = sum(input.trustCards, (card) => card.failedToolResultCount);
|
|
304
|
+
if (failedToolResults > 0 || input.handoffs.blockedCount > 0) {
|
|
305
|
+
opportunities.push({
|
|
306
|
+
id: "failed-tool-digest",
|
|
307
|
+
customerOutcome: "Convert failed tool evidence into a daily repair queue instead of losing it in chat history.",
|
|
308
|
+
triggerEvidence: `${failedToolResults} failed tool result(s) and ${input.handoffs.blockedCount} blocked handoff(s).`,
|
|
309
|
+
recommendedCadence: "daily",
|
|
310
|
+
scriptGate: "maestro value yesterday --format json | jq -e '.handoffs.blockedCount > 0 or .summary.failedToolResultCount > 0'",
|
|
311
|
+
delivery: "Daily digest with blocked handoffs, failed tool counts, and replayable session paths.",
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
const memoryGapCount = input.trustCards.filter((card) => !card.evidence.hasMemoryProvenance).length;
|
|
315
|
+
if (memoryGapCount > 0) {
|
|
316
|
+
opportunities.push({
|
|
317
|
+
id: "memory-gap-digest",
|
|
318
|
+
customerOutcome: "Turn valuable one-off sessions into reusable customer context before the lessons go stale.",
|
|
319
|
+
triggerEvidence: `${memoryGapCount} trust card(s) lack durable memory provenance.`,
|
|
320
|
+
recommendedCadence: "weekly",
|
|
321
|
+
scriptGate: "maestro value week --format json | jq -e 'any(.trustCards[]?; .evidence.hasMemoryProvenance | not)'",
|
|
322
|
+
delivery: "Weekly report of sessions that need memory or playbook capture.",
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
if (input.ambient.outcomeCount > 0) {
|
|
326
|
+
opportunities.push({
|
|
327
|
+
id: "ambient-learner-review",
|
|
328
|
+
customerOutcome: "Review ambient outcomes on a schedule and promote only durable patterns into team playbooks.",
|
|
329
|
+
triggerEvidence: `${input.ambient.outcomeCount} learner outcome(s), ${input.ambient.actionablePatternCount} actionable pattern(s), ${input.ambient.protectedTransientFailureCount} protected transient failure(s).`,
|
|
330
|
+
recommendedCadence: "weekly",
|
|
331
|
+
scriptGate: ambientLearnerPresenceCommand(input.ambient.learnerPath),
|
|
332
|
+
delivery: "Weekly playbook review with successes, low-success patterns, and quarantined transient failures.",
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
return opportunities.slice(0, 5);
|
|
336
|
+
}
|
|
337
|
+
function buildPlaybookLearningOpportunities(input) {
|
|
338
|
+
const opportunities = [];
|
|
339
|
+
if (input.ambient.protectedTransientFailureCount > 0) {
|
|
340
|
+
opportunities.push({
|
|
341
|
+
id: "protect-transient-failures",
|
|
342
|
+
customerOutcome: "Prevent temporary setup failures from becoming permanent agent refusals or bad playbooks.",
|
|
343
|
+
evidenceSignal: `${input.ambient.protectedTransientFailureCount} learner failure(s) matched transient setup or environment patterns.`,
|
|
344
|
+
guardrail: "Capture the recovery command or setup prerequisite, not a durable claim that the tool is broken.",
|
|
345
|
+
recommendedArtifact: ".maestro/playbooks/ambient-transient-failure-guardrail.md",
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
const topSuccess = input.learning.patterns
|
|
349
|
+
.filter((pattern) => pattern.nonTransientSampleCount >= 3 &&
|
|
350
|
+
pattern.nonTransientSuccessRate !== null &&
|
|
351
|
+
pattern.nonTransientSuccessRate >= 0.75)
|
|
352
|
+
.sort((left, right) => (right.nonTransientSuccessRate ?? 0) -
|
|
353
|
+
(left.nonTransientSuccessRate ?? 0))[0];
|
|
354
|
+
if (topSuccess) {
|
|
355
|
+
opportunities.push({
|
|
356
|
+
id: "capture-successful-pattern",
|
|
357
|
+
customerOutcome: "Turn repeated ambient success into a reusable team playbook for similar work.",
|
|
358
|
+
evidenceSignal: `${topSuccess.patternType}=${topSuccess.key} succeeded ${((topSuccess.nonTransientSuccessRate ?? 0) * 100).toFixed(1)}% across ${topSuccess.nonTransientSampleCount} non-transient sample(s).`,
|
|
359
|
+
guardrail: "Promote the durable task shape, required evidence, and verification steps; do not copy one-off task details.",
|
|
360
|
+
recommendedArtifact: `.maestro/playbooks/ambient-${slugify(topSuccess.patternType)}-${slugify(topSuccess.key)}.md`,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
const lowSuccess = input.learning.patterns
|
|
364
|
+
.filter((pattern) => pattern.nonTransientSampleCount >= 3 &&
|
|
365
|
+
pattern.nonTransientSuccessRate !== null &&
|
|
366
|
+
pattern.nonTransientSuccessRate < 0.45 &&
|
|
367
|
+
pattern.nonTransientFailureCount > 0)
|
|
368
|
+
.sort((left, right) => (left.nonTransientSuccessRate ?? 1) -
|
|
369
|
+
(right.nonTransientSuccessRate ?? 1))[0];
|
|
370
|
+
if (lowSuccess) {
|
|
371
|
+
opportunities.push({
|
|
372
|
+
id: "repair-low-success-pattern",
|
|
373
|
+
customerOutcome: "Reduce repeated ambient failures by tightening routing, approval, or verification for a known weak pattern.",
|
|
374
|
+
evidenceSignal: `${lowSuccess.patternType}=${lowSuccess.key} succeeded only ${((lowSuccess.nonTransientSuccessRate ?? 0) * 100).toFixed(1)}% across ${lowSuccess.nonTransientSampleCount} non-transient sample(s).`,
|
|
375
|
+
guardrail: "Prefer threshold/routing changes or added checks over broad bans on the task class.",
|
|
376
|
+
recommendedArtifact: `.maestro/playbooks/ambient-${slugify(lowSuccess.patternType)}-${slugify(lowSuccess.key)}-repair.md`,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
if (input.multiAgent.delegatedEvidenceGapCount > 0 ||
|
|
380
|
+
input.multiAgent.nextActions.length > 0) {
|
|
381
|
+
opportunities.push({
|
|
382
|
+
id: "multi-agent-verification-playbook",
|
|
383
|
+
customerOutcome: "Make subagent work customer-trustworthy by requiring parent-side verification before value is claimed.",
|
|
384
|
+
evidenceSignal: `${input.multiAgent.delegatedEvidenceGapCount} delegated evidence gap(s) and ${input.multiAgent.nextActions.length} A2A next action(s).`,
|
|
385
|
+
guardrail: "Treat subagent summaries as self-reports until a URL, file path, task id, work graph, transcript, or test result is read back.",
|
|
386
|
+
recommendedArtifact: ".maestro/playbooks/multi-agent-verification.md",
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
if (input.handoffs.followupCount > 0 ||
|
|
390
|
+
input.handoffs.openWorkCount > 0 ||
|
|
391
|
+
input.trustCards.some((card) => card.riskSignals.length > 0)) {
|
|
392
|
+
opportunities.push({
|
|
393
|
+
id: "handoff-memory-playbook",
|
|
394
|
+
customerOutcome: "Convert unfinished work, blockers, and user corrections into durable next-session behavior.",
|
|
395
|
+
evidenceSignal: `${input.handoffs.followupCount} follow-up handoff(s), ${input.handoffs.openWorkCount} open work item(s).`,
|
|
396
|
+
guardrail: "Store user/workflow preferences as playbook steps, while keeping secrets and transient errors out of durable memory.",
|
|
397
|
+
recommendedArtifact: ".maestro/playbooks/customer-handoff-learning.md",
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return opportunities.slice(0, 6);
|
|
401
|
+
}
|
|
402
|
+
function isTransientAmbientFailureOutcome(outcome) {
|
|
403
|
+
if (outcome.success || !outcome.failureReason)
|
|
404
|
+
return false;
|
|
405
|
+
return isTransientFailureText(outcome.failureReason);
|
|
406
|
+
}
|
|
407
|
+
function isTransientFailureText(text) {
|
|
408
|
+
const normalized = text.toLowerCase();
|
|
409
|
+
return ([
|
|
410
|
+
"command not found",
|
|
411
|
+
"no such file or directory",
|
|
412
|
+
"missing binary",
|
|
413
|
+
"missing credential",
|
|
414
|
+
"unconfigured",
|
|
415
|
+
"not configured",
|
|
416
|
+
"authentication required",
|
|
417
|
+
"connection refused",
|
|
418
|
+
"temporary failure in name resolution",
|
|
419
|
+
].some((needle) => normalized.includes(needle)) ||
|
|
420
|
+
isTransientRateLimitFailureText(normalized) ||
|
|
421
|
+
isTransientTransportFailureText(normalized));
|
|
422
|
+
}
|
|
423
|
+
function isTransientRateLimitFailureText(normalized) {
|
|
424
|
+
return (["429 too many requests", "http 429", "status 429"].some((needle) => normalized.includes(needle)) ||
|
|
425
|
+
(normalized.includes("rate limit") &&
|
|
426
|
+
hasTransientEnvironmentContext(normalized)));
|
|
427
|
+
}
|
|
428
|
+
function isTransientTransportFailureText(normalized) {
|
|
429
|
+
return ([
|
|
430
|
+
"etimedout",
|
|
431
|
+
"econnreset",
|
|
432
|
+
"enotfound",
|
|
433
|
+
"eai_again",
|
|
434
|
+
"connection timed out",
|
|
435
|
+
"socket timed out",
|
|
436
|
+
"network unreachable",
|
|
437
|
+
"network unavailable",
|
|
438
|
+
"network reset",
|
|
439
|
+
"temporary network",
|
|
440
|
+
].some((needle) => normalized.includes(needle)) ||
|
|
441
|
+
([
|
|
442
|
+
"request timed out",
|
|
443
|
+
"connect timed out",
|
|
444
|
+
"fetch timed out",
|
|
445
|
+
"timed out",
|
|
446
|
+
"network error",
|
|
447
|
+
"network failure",
|
|
448
|
+
"dns lookup",
|
|
449
|
+
"name resolution",
|
|
450
|
+
].some((needle) => normalized.includes(needle)) &&
|
|
451
|
+
hasTransientEnvironmentContext(normalized)));
|
|
452
|
+
}
|
|
453
|
+
function hasTransientEnvironmentContext(normalized) {
|
|
454
|
+
return [
|
|
455
|
+
"while bootstrapping",
|
|
456
|
+
"while fetching",
|
|
457
|
+
"while downloading",
|
|
458
|
+
"while installing",
|
|
459
|
+
"while authenticating",
|
|
460
|
+
"while connecting",
|
|
461
|
+
"while calling",
|
|
462
|
+
"fetching dependencies",
|
|
463
|
+
"downloading dependencies",
|
|
464
|
+
"installing dependencies",
|
|
465
|
+
"dependency install",
|
|
466
|
+
"fresh runner",
|
|
467
|
+
"github api",
|
|
468
|
+
"npm registry",
|
|
469
|
+
"package registry",
|
|
470
|
+
].some((needle) => normalized.includes(needle));
|
|
471
|
+
}
|
|
472
|
+
//# sourceMappingURL=ambient-learning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ambient-learning.js","sourceRoot":"","sources":["../../src/customer-value/ambient-learning.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,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AC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,CAAC","sourcesContent":["/**\n * Ambient learner subsystem for the customer-value report.\n *\n * Owns everything that reads/classifies the ambient learner outcome file:\n * daemon flush, JSON parsing, pattern derivation, transient-failure\n * classification, and the ambient customer-value/opportunity builders that\n * turn learner evidence into report sections.\n *\n * Extracted from report.ts to isolate the highest-churn surface (transient\n * classification + flush freshness evolve frequently) behind a stable module\n * boundary. Runtime dependencies are one-directional: this module imports\n * shared leaf helpers from ./internal-helpers.js and types from ./report.js\n * (type-only). report.ts imports the summary/build entry points back here.\n */\nimport { spawn } from \"node:child_process\";\nimport { existsSync } from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport type { RuntimeEnv } from \"../runtime/env.js\";\nimport { sanitizeWithStaticMask } from \"../utils/secret-redactor.js\";\nimport {\n\tisTimestampInRangeOrUnbounded,\n\tnumberOrZero,\n\tparseTimestampMs,\n\tredactLine,\n\tsanitizeA2ALabel,\n\tslugify,\n\tsum,\n} from \"./internal-helpers.js\";\nimport type {\n\tCustomerValueRange,\n\tCustomerValueReport,\n\tMultiAgentValue,\n\tTrustCard,\n} from \"./report.js\";\n\nfunction shellQuote(value: string): string {\n\treturn `'${value.replaceAll(\"'\", \"'\\\\''\")}'`;\n}\n\nexport function ambientLearnerPresenceCommand(learnerPath: string): string {\n\treturn `test -s ${shellQuote(learnerPath)}`;\n}\n\nexport interface AmbientLearnerFlushResult {\n\tflushed: boolean;\n\tlearnerPath?: string;\n\tcollectionGap?: string;\n}\n\nexport interface AmbientAutomationOpportunity {\n\tid:\n\t\t| \"a2a-followup-watchdog\"\n\t\t| \"failed-tool-digest\"\n\t\t| \"memory-gap-digest\"\n\t\t| \"ambient-learner-review\";\n\tcustomerOutcome: string;\n\ttriggerEvidence: string;\n\trecommendedCadence: \"hourly\" | \"daily\" | \"weekly\";\n\tscriptGate: string;\n\tdelivery: string;\n}\n\nexport interface PlaybookLearningOpportunity {\n\tid:\n\t\t| \"protect-transient-failures\"\n\t\t| \"capture-successful-pattern\"\n\t\t| \"repair-low-success-pattern\"\n\t\t| \"multi-agent-verification-playbook\"\n\t\t| \"handoff-memory-playbook\";\n\tcustomerOutcome: string;\n\tevidenceSignal: string;\n\tguardrail: string;\n\trecommendedArtifact: string;\n}\n\nexport interface AmbientCustomerValue {\n\tlearnerPath: string;\n\toutcomeCount: number;\n\tsuccessCount: number;\n\tfailureCount: number;\n\tsuccessRate: number | null;\n\ttotalCostUsd: number;\n\tpatternCount: number;\n\tactionablePatternCount: number;\n\tprotectedTransientFailureCount: number;\n\tautomationOpportunities: AmbientAutomationOpportunity[];\n\tplaybookLearningOpportunities: PlaybookLearningOpportunity[];\n\tcollectionGaps: string[];\n}\n\ninterface AmbientLearningSummary {\n\tlearnerPath: string;\n\toutcomes: AmbientLearnerOutcome[];\n\tpatterns: AmbientLearnerPattern[];\n\tcollectionGaps: string[];\n}\n\ninterface AmbientLearnerOutcome {\n\tsuccess: boolean;\n\tfailureReason?: string;\n\tlabels: string[];\n\trepo?: string;\n\ttaskType?: string;\n\teventType?: string;\n\tcostUsd: number;\n\ttimestamp?: number;\n}\n\ninterface AmbientLearnerPattern {\n\tpatternType: string;\n\tkey: string;\n\tsuccessRate: number;\n\tsampleCount: number;\n\tsuccessCount: number;\n\ttransientFailureCount: number;\n\tnonTransientFailureCount: number;\n\tnonTransientSampleCount: number;\n\tnonTransientSuccessRate: number | null;\n}\n\nexport async function flushAmbientLearnerForReport(\n\tenv: RuntimeEnv,\n\t_learnerPath: string,\n\tflush: (env: RuntimeEnv) => Promise<AmbientLearnerFlushResult>,\n): Promise<AmbientLearnerFlushResult> {\n\treturn flush(env);\n}\n\nexport async function flushAmbientLearnerBeforeRead(\n\tenv: RuntimeEnv,\n): Promise<AmbientLearnerFlushResult> {\n\treturn new Promise((resolve) => {\n\t\tconst child = spawn(\"ambient\", [\"flush\"], {\n\t\t\tstdio: [\"ignore\", \"pipe\", \"pipe\"],\n\t\t});\n\t\tlet stdout = \"\";\n\t\tlet stderr = \"\";\n\t\tlet settled = false;\n\t\tconst finish = (result: AmbientLearnerFlushResult) => {\n\t\t\tif (settled) return;\n\t\t\tsettled = true;\n\t\t\tclearTimeout(timeout);\n\t\t\tresolve(result);\n\t\t};\n\t\tconst timeout = setTimeout(() => {\n\t\t\tchild.kill();\n\t\t\tfinish({\n\t\t\t\tflushed: false,\n\t\t\t\tcollectionGap:\n\t\t\t\t\t\"Ambient learner flush timed out before report generation.\",\n\t\t\t});\n\t\t}, 40000);\n\t\tchild.stdout?.setEncoding(\"utf8\");\n\t\tchild.stdout?.on(\"data\", (chunk: string) => {\n\t\t\tstdout += chunk;\n\t\t});\n\t\tchild.stderr?.setEncoding(\"utf8\");\n\t\tchild.stderr?.on(\"data\", (chunk: string) => {\n\t\t\tstderr += chunk;\n\t\t});\n\t\tchild.on(\"error\", (error) => {\n\t\t\tif (\n\t\t\t\t(error as NodeJS.ErrnoException).code === \"ENOENT\" &&\n\t\t\t\t!existsSync(env.ambientSocketFile)\n\t\t\t) {\n\t\t\t\tfinish({ flushed: false });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinish({\n\t\t\t\tflushed: false,\n\t\t\t\tcollectionGap: `Ambient learner flush could not start: ${sanitizeWithStaticMask(error.message)}.`,\n\t\t\t});\n\t\t});\n\t\tchild.on(\"close\", (code) => {\n\t\t\tif (code === 0) {\n\t\t\t\tfinish({\n\t\t\t\t\tflushed: true,\n\t\t\t\t\tlearnerPath: parseAmbientFlushLearnerPath(\n\t\t\t\t\t\tstdout,\n\t\t\t\t\t\tenv.ambientLearnerDefaultFile,\n\t\t\t\t\t),\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst failureMessage =\n\t\t\t\tstderr.trim() || stdout.trim() || `exit ${code ?? \"unknown\"}`;\n\t\t\tif (isAmbientDaemonNotRunningFlushFailure(failureMessage, env)) {\n\t\t\t\tfinish({ flushed: false });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinish({\n\t\t\t\tflushed: false,\n\t\t\t\tcollectionGap: `Ambient learner flush failed before report generation: ${sanitizeWithStaticMask(failureMessage)}.`,\n\t\t\t});\n\t\t});\n\t});\n}\n\nfunction isAmbientDaemonNotRunningFlushFailure(\n\tfailureMessage: string,\n\tenv: RuntimeEnv,\n): boolean {\n\tconst normalized = failureMessage.toLowerCase();\n\treturn (\n\t\tnormalized.includes(\"daemon is not running\") ||\n\t\tnormalized.includes(\"daemon not running\") ||\n\t\t(normalized.includes(\"socket not found\") &&\n\t\t\t!existsSync(env.ambientSocketFile))\n\t);\n}\n\nfunction parseAmbientFlushLearnerPath(\n\tstdout: string,\n\tfallbackPath: string,\n): string {\n\tconst prefix = \"Learner state flushed:\";\n\tconst lines = stdout\n\t\t.split(/\\r?\\n/u)\n\t\t.map((line) => line.trim())\n\t\t.filter(Boolean)\n\t\t.reverse();\n\tfor (const line of lines) {\n\t\tif (!line.startsWith(prefix)) continue;\n\t\tconst learnerPath = line.slice(prefix.length).trim();\n\t\tif (learnerPath) return learnerPath;\n\t}\n\treturn fallbackPath;\n}\n\nexport async function summarizeAmbientLearning(\n\tlearnerPath: string,\n\trange: CustomerValueRange,\n\tflushResult?: AmbientLearnerFlushResult,\n\trequestedLearnerPath = learnerPath,\n): Promise<AmbientLearningSummary> {\n\tconst summary: AmbientLearningSummary = {\n\t\tlearnerPath,\n\t\toutcomes: [],\n\t\tpatterns: [],\n\t\tcollectionGaps: [],\n\t};\n\tif (flushResult?.collectionGap) {\n\t\tsummary.collectionGaps.push(flushResult.collectionGap);\n\t}\n\tif (\n\t\tflushResult?.learnerPath &&\n\t\trequestedLearnerPath !== flushResult.learnerPath\n\t) {\n\t\tsummary.collectionGaps.push(\n\t\t\t`Ambient learner override at ${requestedLearnerPath} did not match the running daemon; report used flushed learner state from ${flushResult.learnerPath}.`,\n\t\t);\n\t}\n\tif (!existsSync(learnerPath)) {\n\t\tsummary.collectionGaps.push(\n\t\t\t`Ambient learner file not found at ${learnerPath}. Run ambient work before claiming learned automation patterns.`,\n\t\t);\n\t\treturn summary;\n\t}\n\tlet raw = \"\";\n\ttry {\n\t\traw = await readFile(learnerPath, \"utf8\");\n\t} catch (error) {\n\t\tsummary.collectionGaps.push(\n\t\t\t`Ambient learner file could not be read: ${sanitizeWithStaticMask(error instanceof Error ? error.message : String(error))}.`,\n\t\t);\n\t\treturn summary;\n\t}\n\tlet parsed: unknown;\n\ttry {\n\t\tparsed = JSON.parse(raw);\n\t} catch {\n\t\tsummary.collectionGaps.push(\n\t\t\t`Ambient learner file at ${learnerPath} is not valid JSON.`,\n\t\t);\n\t\treturn summary;\n\t}\n\tif (!parsed || typeof parsed !== \"object\") {\n\t\tsummary.collectionGaps.push(\n\t\t\t`Ambient learner file at ${learnerPath} did not contain an object.`,\n\t\t);\n\t\treturn summary;\n\t}\n\tconst record = parsed as Record<string, unknown>;\n\tconst outcomes = Array.isArray(record.outcomes) ? record.outcomes : [];\n\tsummary.outcomes = outcomes\n\t\t.map(parseAmbientLearnerOutcome)\n\t\t.filter((outcome): outcome is AmbientLearnerOutcome => Boolean(outcome))\n\t\t.filter((outcome) =>\n\t\t\tisTimestampInRangeOrUnbounded(outcome.timestamp, range),\n\t\t);\n\tsummary.patterns = deriveAmbientLearnerPatterns(summary.outcomes);\n\tif (summary.outcomes.length === 0) {\n\t\tsummary.collectionGaps.push(\n\t\t\trange.since === undefined && range.until === undefined\n\t\t\t\t? `Ambient learner file at ${learnerPath} has no outcome evidence.`\n\t\t\t\t: `Ambient learner file at ${learnerPath} has no outcome evidence for the selected range.`,\n\t\t);\n\t}\n\treturn summary;\n}\n\nfunction parseAmbientLearnerOutcome(\n\tvalue: unknown,\n): AmbientLearnerOutcome | undefined {\n\tif (!value || typeof value !== \"object\") return undefined;\n\tconst record = value as Record<string, unknown>;\n\tconst success = record.success;\n\tif (typeof success !== \"boolean\") return undefined;\n\tconst labels = Array.isArray(record.labels)\n\t\t? record.labels\n\t\t\t\t.filter((label): label is string => typeof label === \"string\")\n\t\t\t\t.map((label) => sanitizeA2ALabel(label, 80))\n\t\t: [];\n\treturn {\n\t\tsuccess,\n\t\t...(typeof record.failure_reason === \"string\" &&\n\t\trecord.failure_reason.trim()\n\t\t\t? { failureReason: redactLine(record.failure_reason) }\n\t\t\t: {}),\n\t\tlabels,\n\t\t...(typeof record.repo === \"string\"\n\t\t\t? { repo: sanitizeA2ALabel(record.repo, 120) }\n\t\t\t: {}),\n\t\t...(typeof record.task_type === \"string\"\n\t\t\t? { taskType: sanitizeA2ALabel(record.task_type, 80) }\n\t\t\t: {}),\n\t\t...(typeof record.event_type === \"string\"\n\t\t\t? { eventType: sanitizeA2ALabel(record.event_type, 80) }\n\t\t\t: {}),\n\t\tcostUsd: numberOrZero(record.cost_usd),\n\t\t...(parseTimestampMs(record.timestamp) !== undefined\n\t\t\t? { timestamp: parseTimestampMs(record.timestamp)! }\n\t\t\t: {}),\n\t};\n}\n\nfunction deriveAmbientLearnerPatterns(\n\toutcomes: AmbientLearnerOutcome[],\n): AmbientLearnerPattern[] {\n\tconst groups = new Map<\n\t\tstring,\n\t\t{\n\t\t\tpatternType: string;\n\t\t\tkey: string;\n\t\t\tsuccessCount: number;\n\t\t\tsampleCount: number;\n\t\t\ttransientFailureCount: number;\n\t\t\tnonTransientFailureCount: number;\n\t\t}\n\t>();\n\tconst add = (\n\t\tpatternType: string,\n\t\tkey: string | undefined,\n\t\toutcome: AmbientLearnerOutcome,\n\t) => {\n\t\tif (!key) return;\n\t\tconst groupKey = `${patternType}\\u0000${key}`;\n\t\tconst group = groups.get(groupKey) ?? {\n\t\t\tpatternType,\n\t\t\tkey,\n\t\t\tsuccessCount: 0,\n\t\t\tsampleCount: 0,\n\t\t\ttransientFailureCount: 0,\n\t\t\tnonTransientFailureCount: 0,\n\t\t};\n\t\tgroup.sampleCount += 1;\n\t\tif (outcome.success) {\n\t\t\tgroup.successCount += 1;\n\t\t} else if (isTransientAmbientFailureOutcome(outcome)) {\n\t\t\tgroup.transientFailureCount += 1;\n\t\t} else {\n\t\t\tgroup.nonTransientFailureCount += 1;\n\t\t}\n\t\tgroups.set(groupKey, group);\n\t};\n\tfor (const outcome of outcomes) {\n\t\tfor (const label of outcome.labels) add(\"Label\", label, outcome);\n\t\tadd(\"Repo\", outcome.repo, outcome);\n\t\tadd(\"TaskType\", outcome.taskType, outcome);\n\t\tadd(\"EventType\", outcome.eventType, outcome);\n\t}\n\treturn [...groups.values()]\n\t\t.map((group) => ({\n\t\t\tpatternType: group.patternType,\n\t\t\tkey: group.key,\n\t\t\tsuccessRate: group.successCount / group.sampleCount,\n\t\t\tsampleCount: group.sampleCount,\n\t\t\tsuccessCount: group.successCount,\n\t\t\ttransientFailureCount: group.transientFailureCount,\n\t\t\tnonTransientFailureCount: group.nonTransientFailureCount,\n\t\t\tnonTransientSampleCount:\n\t\t\t\tgroup.successCount + group.nonTransientFailureCount,\n\t\t\tnonTransientSuccessRate:\n\t\t\t\tgroup.successCount + group.nonTransientFailureCount > 0\n\t\t\t\t\t? group.successCount /\n\t\t\t\t\t\t(group.successCount + group.nonTransientFailureCount)\n\t\t\t\t\t: null,\n\t\t}))\n\t\t.sort(\n\t\t\t(left, right) =>\n\t\t\t\tright.sampleCount - left.sampleCount ||\n\t\t\t\tright.successRate - left.successRate ||\n\t\t\t\tleft.patternType.localeCompare(right.patternType) ||\n\t\t\t\tleft.key.localeCompare(right.key),\n\t\t);\n}\n\nexport function buildAmbientCustomerValue(input: {\n\tlearning: AmbientLearningSummary;\n\tmultiAgent: MultiAgentValue;\n\ttrustCards: TrustCard[];\n\thandoffs: CustomerValueReport[\"handoffs\"];\n}): AmbientCustomerValue {\n\tconst successCount = input.learning.outcomes.filter(\n\t\t(outcome) => outcome.success,\n\t).length;\n\tconst failureCount = input.learning.outcomes.length - successCount;\n\tconst protectedTransientFailureCount = input.learning.outcomes.filter(\n\t\tisTransientAmbientFailureOutcome,\n\t).length;\n\tconst actionablePatternCount = input.learning.patterns.filter(\n\t\t(pattern) => pattern.nonTransientSampleCount >= 3,\n\t).length;\n\tconst base: Omit<\n\t\tAmbientCustomerValue,\n\t\t\"automationOpportunities\" | \"playbookLearningOpportunities\"\n\t> = {\n\t\tlearnerPath: input.learning.learnerPath,\n\t\toutcomeCount: input.learning.outcomes.length,\n\t\tsuccessCount,\n\t\tfailureCount,\n\t\tsuccessRate:\n\t\t\tinput.learning.outcomes.length > 0\n\t\t\t\t? successCount / input.learning.outcomes.length\n\t\t\t\t: null,\n\t\ttotalCostUsd: sum(input.learning.outcomes, (outcome) => outcome.costUsd),\n\t\tpatternCount: input.learning.patterns.length,\n\t\tactionablePatternCount,\n\t\tprotectedTransientFailureCount,\n\t\tcollectionGaps: input.learning.collectionGaps,\n\t};\n\tconst automationOpportunities = buildAmbientAutomationOpportunities({\n\t\tambient: base,\n\t\tmultiAgent: input.multiAgent,\n\t\ttrustCards: input.trustCards,\n\t\thandoffs: input.handoffs,\n\t});\n\tconst playbookLearningOpportunities = buildPlaybookLearningOpportunities({\n\t\tambient: base,\n\t\tlearning: input.learning,\n\t\tmultiAgent: input.multiAgent,\n\t\ttrustCards: input.trustCards,\n\t\thandoffs: input.handoffs,\n\t});\n\treturn {\n\t\t...base,\n\t\tautomationOpportunities,\n\t\tplaybookLearningOpportunities,\n\t};\n}\n\nfunction buildAmbientAutomationOpportunities(input: {\n\tambient: Omit<\n\t\tAmbientCustomerValue,\n\t\t\"automationOpportunities\" | \"playbookLearningOpportunities\"\n\t>;\n\tmultiAgent: MultiAgentValue;\n\ttrustCards: TrustCard[];\n\thandoffs: CustomerValueReport[\"handoffs\"];\n}): AmbientAutomationOpportunity[] {\n\tconst opportunities: AmbientAutomationOpportunity[] = [];\n\tif (\n\t\tinput.multiAgent.delegatedPendingTaskCount > 0 ||\n\t\tinput.multiAgent.nextActions.length > 0\n\t) {\n\t\topportunities.push({\n\t\t\tid: \"a2a-followup-watchdog\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Wake operators only when delegated work needs a reply, wait, refresh, or evidence check.\",\n\t\t\ttriggerEvidence: `${input.multiAgent.delegatedPendingTaskCount} pending delegated task(s) and ${input.multiAgent.nextActions.length} cockpit next action(s).`,\n\t\t\trecommendedCadence: \"hourly\",\n\t\t\tscriptGate:\n\t\t\t\t\"maestro a2a cockpit --json | jq -e '.nextActions | length > 0'\",\n\t\t\tdelivery:\n\t\t\t\t\"Slack or CLI notification with the first cockpit next action and value-report link.\",\n\t\t});\n\t}\n\tconst failedToolResults = sum(\n\t\tinput.trustCards,\n\t\t(card) => card.failedToolResultCount,\n\t);\n\tif (failedToolResults > 0 || input.handoffs.blockedCount > 0) {\n\t\topportunities.push({\n\t\t\tid: \"failed-tool-digest\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Convert failed tool evidence into a daily repair queue instead of losing it in chat history.\",\n\t\t\ttriggerEvidence: `${failedToolResults} failed tool result(s) and ${input.handoffs.blockedCount} blocked handoff(s).`,\n\t\t\trecommendedCadence: \"daily\",\n\t\t\tscriptGate:\n\t\t\t\t\"maestro value yesterday --format json | jq -e '.handoffs.blockedCount > 0 or .summary.failedToolResultCount > 0'\",\n\t\t\tdelivery:\n\t\t\t\t\"Daily digest with blocked handoffs, failed tool counts, and replayable session paths.\",\n\t\t});\n\t}\n\tconst memoryGapCount = input.trustCards.filter(\n\t\t(card) => !card.evidence.hasMemoryProvenance,\n\t).length;\n\tif (memoryGapCount > 0) {\n\t\topportunities.push({\n\t\t\tid: \"memory-gap-digest\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Turn valuable one-off sessions into reusable customer context before the lessons go stale.\",\n\t\t\ttriggerEvidence: `${memoryGapCount} trust card(s) lack durable memory provenance.`,\n\t\t\trecommendedCadence: \"weekly\",\n\t\t\tscriptGate:\n\t\t\t\t\"maestro value week --format json | jq -e 'any(.trustCards[]?; .evidence.hasMemoryProvenance | not)'\",\n\t\t\tdelivery:\n\t\t\t\t\"Weekly report of sessions that need memory or playbook capture.\",\n\t\t});\n\t}\n\tif (input.ambient.outcomeCount > 0) {\n\t\topportunities.push({\n\t\t\tid: \"ambient-learner-review\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Review ambient outcomes on a schedule and promote only durable patterns into team playbooks.\",\n\t\t\ttriggerEvidence: `${input.ambient.outcomeCount} learner outcome(s), ${input.ambient.actionablePatternCount} actionable pattern(s), ${input.ambient.protectedTransientFailureCount} protected transient failure(s).`,\n\t\t\trecommendedCadence: \"weekly\",\n\t\t\tscriptGate: ambientLearnerPresenceCommand(input.ambient.learnerPath),\n\t\t\tdelivery:\n\t\t\t\t\"Weekly playbook review with successes, low-success patterns, and quarantined transient failures.\",\n\t\t});\n\t}\n\treturn opportunities.slice(0, 5);\n}\n\nfunction buildPlaybookLearningOpportunities(input: {\n\tambient: Omit<\n\t\tAmbientCustomerValue,\n\t\t\"automationOpportunities\" | \"playbookLearningOpportunities\"\n\t>;\n\tlearning: AmbientLearningSummary;\n\tmultiAgent: MultiAgentValue;\n\ttrustCards: TrustCard[];\n\thandoffs: CustomerValueReport[\"handoffs\"];\n}): PlaybookLearningOpportunity[] {\n\tconst opportunities: PlaybookLearningOpportunity[] = [];\n\tif (input.ambient.protectedTransientFailureCount > 0) {\n\t\topportunities.push({\n\t\t\tid: \"protect-transient-failures\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Prevent temporary setup failures from becoming permanent agent refusals or bad playbooks.\",\n\t\t\tevidenceSignal: `${input.ambient.protectedTransientFailureCount} learner failure(s) matched transient setup or environment patterns.`,\n\t\t\tguardrail:\n\t\t\t\t\"Capture the recovery command or setup prerequisite, not a durable claim that the tool is broken.\",\n\t\t\trecommendedArtifact:\n\t\t\t\t\".maestro/playbooks/ambient-transient-failure-guardrail.md\",\n\t\t});\n\t}\n\tconst topSuccess = input.learning.patterns\n\t\t.filter(\n\t\t\t(pattern) =>\n\t\t\t\tpattern.nonTransientSampleCount >= 3 &&\n\t\t\t\tpattern.nonTransientSuccessRate !== null &&\n\t\t\t\tpattern.nonTransientSuccessRate >= 0.75,\n\t\t)\n\t\t.sort(\n\t\t\t(left, right) =>\n\t\t\t\t(right.nonTransientSuccessRate ?? 0) -\n\t\t\t\t(left.nonTransientSuccessRate ?? 0),\n\t\t)[0];\n\tif (topSuccess) {\n\t\topportunities.push({\n\t\t\tid: \"capture-successful-pattern\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Turn repeated ambient success into a reusable team playbook for similar work.\",\n\t\t\tevidenceSignal: `${topSuccess.patternType}=${topSuccess.key} succeeded ${((topSuccess.nonTransientSuccessRate ?? 0) * 100).toFixed(1)}% across ${topSuccess.nonTransientSampleCount} non-transient sample(s).`,\n\t\t\tguardrail:\n\t\t\t\t\"Promote the durable task shape, required evidence, and verification steps; do not copy one-off task details.\",\n\t\t\trecommendedArtifact: `.maestro/playbooks/ambient-${slugify(topSuccess.patternType)}-${slugify(topSuccess.key)}.md`,\n\t\t});\n\t}\n\tconst lowSuccess = input.learning.patterns\n\t\t.filter(\n\t\t\t(pattern) =>\n\t\t\t\tpattern.nonTransientSampleCount >= 3 &&\n\t\t\t\tpattern.nonTransientSuccessRate !== null &&\n\t\t\t\tpattern.nonTransientSuccessRate < 0.45 &&\n\t\t\t\tpattern.nonTransientFailureCount > 0,\n\t\t)\n\t\t.sort(\n\t\t\t(left, right) =>\n\t\t\t\t(left.nonTransientSuccessRate ?? 1) -\n\t\t\t\t(right.nonTransientSuccessRate ?? 1),\n\t\t)[0];\n\tif (lowSuccess) {\n\t\topportunities.push({\n\t\t\tid: \"repair-low-success-pattern\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Reduce repeated ambient failures by tightening routing, approval, or verification for a known weak pattern.\",\n\t\t\tevidenceSignal: `${lowSuccess.patternType}=${lowSuccess.key} succeeded only ${((lowSuccess.nonTransientSuccessRate ?? 0) * 100).toFixed(1)}% across ${lowSuccess.nonTransientSampleCount} non-transient sample(s).`,\n\t\t\tguardrail:\n\t\t\t\t\"Prefer threshold/routing changes or added checks over broad bans on the task class.\",\n\t\t\trecommendedArtifact: `.maestro/playbooks/ambient-${slugify(lowSuccess.patternType)}-${slugify(lowSuccess.key)}-repair.md`,\n\t\t});\n\t}\n\tif (\n\t\tinput.multiAgent.delegatedEvidenceGapCount > 0 ||\n\t\tinput.multiAgent.nextActions.length > 0\n\t) {\n\t\topportunities.push({\n\t\t\tid: \"multi-agent-verification-playbook\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Make subagent work customer-trustworthy by requiring parent-side verification before value is claimed.\",\n\t\t\tevidenceSignal: `${input.multiAgent.delegatedEvidenceGapCount} delegated evidence gap(s) and ${input.multiAgent.nextActions.length} A2A next action(s).`,\n\t\t\tguardrail:\n\t\t\t\t\"Treat subagent summaries as self-reports until a URL, file path, task id, work graph, transcript, or test result is read back.\",\n\t\t\trecommendedArtifact: \".maestro/playbooks/multi-agent-verification.md\",\n\t\t});\n\t}\n\tif (\n\t\tinput.handoffs.followupCount > 0 ||\n\t\tinput.handoffs.openWorkCount > 0 ||\n\t\tinput.trustCards.some((card) => card.riskSignals.length > 0)\n\t) {\n\t\topportunities.push({\n\t\t\tid: \"handoff-memory-playbook\",\n\t\t\tcustomerOutcome:\n\t\t\t\t\"Convert unfinished work, blockers, and user corrections into durable next-session behavior.\",\n\t\t\tevidenceSignal: `${input.handoffs.followupCount} follow-up handoff(s), ${input.handoffs.openWorkCount} open work item(s).`,\n\t\t\tguardrail:\n\t\t\t\t\"Store user/workflow preferences as playbook steps, while keeping secrets and transient errors out of durable memory.\",\n\t\t\trecommendedArtifact: \".maestro/playbooks/customer-handoff-learning.md\",\n\t\t});\n\t}\n\treturn opportunities.slice(0, 6);\n}\n\nfunction isTransientAmbientFailureOutcome(\n\toutcome: AmbientLearnerOutcome,\n): boolean {\n\tif (outcome.success || !outcome.failureReason) return false;\n\treturn isTransientFailureText(outcome.failureReason);\n}\n\nfunction isTransientFailureText(text: string): boolean {\n\tconst normalized = text.toLowerCase();\n\treturn (\n\t\t[\n\t\t\t\"command not found\",\n\t\t\t\"no such file or directory\",\n\t\t\t\"missing binary\",\n\t\t\t\"missing credential\",\n\t\t\t\"unconfigured\",\n\t\t\t\"not configured\",\n\t\t\t\"authentication required\",\n\t\t\t\"connection refused\",\n\t\t\t\"temporary failure in name resolution\",\n\t\t].some((needle) => normalized.includes(needle)) ||\n\t\tisTransientRateLimitFailureText(normalized) ||\n\t\tisTransientTransportFailureText(normalized)\n\t);\n}\n\nfunction isTransientRateLimitFailureText(normalized: string): boolean {\n\treturn (\n\t\t[\"429 too many requests\", \"http 429\", \"status 429\"].some((needle) =>\n\t\t\tnormalized.includes(needle),\n\t\t) ||\n\t\t(normalized.includes(\"rate limit\") &&\n\t\t\thasTransientEnvironmentContext(normalized))\n\t);\n}\n\nfunction isTransientTransportFailureText(normalized: string): boolean {\n\treturn (\n\t\t[\n\t\t\t\"etimedout\",\n\t\t\t\"econnreset\",\n\t\t\t\"enotfound\",\n\t\t\t\"eai_again\",\n\t\t\t\"connection timed out\",\n\t\t\t\"socket timed out\",\n\t\t\t\"network unreachable\",\n\t\t\t\"network unavailable\",\n\t\t\t\"network reset\",\n\t\t\t\"temporary network\",\n\t\t].some((needle) => normalized.includes(needle)) ||\n\t\t([\n\t\t\t\"request timed out\",\n\t\t\t\"connect timed out\",\n\t\t\t\"fetch timed out\",\n\t\t\t\"timed out\",\n\t\t\t\"network error\",\n\t\t\t\"network failure\",\n\t\t\t\"dns lookup\",\n\t\t\t\"name resolution\",\n\t\t].some((needle) => normalized.includes(needle)) &&\n\t\t\thasTransientEnvironmentContext(normalized))\n\t);\n}\n\nfunction hasTransientEnvironmentContext(normalized: string): boolean {\n\treturn [\n\t\t\"while bootstrapping\",\n\t\t\"while fetching\",\n\t\t\"while downloading\",\n\t\t\"while installing\",\n\t\t\"while authenticating\",\n\t\t\"while connecting\",\n\t\t\"while calling\",\n\t\t\"fetching dependencies\",\n\t\t\"downloading dependencies\",\n\t\t\"installing dependencies\",\n\t\t\"dependency install\",\n\t\t\"fresh runner\",\n\t\t\"github api\",\n\t\t\"npm registry\",\n\t\t\"package registry\",\n\t].some((needle) => normalized.includes(needle));\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CustomerValueRange } from "./report.js";
|
|
2
|
+
export declare function sum<T>(values: T[], read: (value: T) => number): number;
|
|
3
|
+
export declare function parseTimestampMs(timestamp: unknown): number | undefined;
|
|
4
|
+
export declare function isTimestampInRange(timestamp: unknown, range: CustomerValueRange): boolean;
|
|
5
|
+
export declare function isTimestampInRangeOrUnbounded(timestamp: number | undefined, range: CustomerValueRange): boolean;
|
|
6
|
+
export declare function numberField(value: unknown): number | undefined;
|
|
7
|
+
export declare function numberOrZero(value: unknown): number;
|
|
8
|
+
export declare function slugify(text: string): string;
|
|
9
|
+
export declare function truncate(text: string, maxLength: number): string;
|
|
10
|
+
export declare function normalizeLine(text: string): string;
|
|
11
|
+
export declare function redactLine(text: string): string;
|
|
12
|
+
export declare function sanitizeA2ALabel(text: string, maxLength: number): string;
|
|
13
|
+
//# sourceMappingURL=internal-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-helpers.d.ts","sourceRoot":"","sources":["../../src/customer-value/internal-helpers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAEtE;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CASvE;AAED,wBAAgB,kBAAkB,CACjC,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,kBAAkB,GACvB,OAAO,CAMT;AAED,wBAAgB,6BAA6B,CAC5C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,kBAAkB,GACvB,OAAO,CAIT;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAI9D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEnD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM5C;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGhE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared leaf helpers extracted from report.ts so that the ambient-learning
|
|
3
|
+
* subsystem and the report builder can both depend on them without creating a
|
|
4
|
+
* runtime cycle between report.ts and ambient-learning.ts.
|
|
5
|
+
*
|
|
6
|
+
* Dependency direction (runtime): report.ts -> internal-helpers.ts,
|
|
7
|
+
* ambient-learning.ts -> internal-helpers.ts. No runtime imports point back at
|
|
8
|
+
* report.ts; the CustomerValueRange reference below is type-only (erased).
|
|
9
|
+
*/
|
|
10
|
+
import { sanitizeWithStaticMask } from "../utils/secret-redactor.js";
|
|
11
|
+
export function sum(values, read) {
|
|
12
|
+
return values.reduce((total, value) => total + read(value), 0);
|
|
13
|
+
}
|
|
14
|
+
export function parseTimestampMs(timestamp) {
|
|
15
|
+
if (typeof timestamp === "number" && Number.isFinite(timestamp)) {
|
|
16
|
+
return timestamp;
|
|
17
|
+
}
|
|
18
|
+
if (typeof timestamp !== "string" || timestamp.trim() === "") {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const parsed = Date.parse(timestamp);
|
|
22
|
+
return Number.isNaN(parsed) ? undefined : parsed;
|
|
23
|
+
}
|
|
24
|
+
export function isTimestampInRange(timestamp, range) {
|
|
25
|
+
const timestampMs = parseTimestampMs(timestamp);
|
|
26
|
+
if (timestampMs === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (range.since !== undefined && timestampMs < range.since)
|
|
29
|
+
return false;
|
|
30
|
+
if (range.until !== undefined && timestampMs >= range.until)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function isTimestampInRangeOrUnbounded(timestamp, range) {
|
|
35
|
+
if (range.since === undefined && range.until === undefined)
|
|
36
|
+
return true;
|
|
37
|
+
if (timestamp === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return isTimestampInRange(timestamp, range);
|
|
40
|
+
}
|
|
41
|
+
export function numberField(value) {
|
|
42
|
+
return typeof value === "number" && Number.isFinite(value)
|
|
43
|
+
? value
|
|
44
|
+
: undefined;
|
|
45
|
+
}
|
|
46
|
+
export function numberOrZero(value) {
|
|
47
|
+
return numberField(value) ?? 0;
|
|
48
|
+
}
|
|
49
|
+
export function slugify(text) {
|
|
50
|
+
return text
|
|
51
|
+
.toLowerCase()
|
|
52
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
53
|
+
.replace(/^-|-$/g, "")
|
|
54
|
+
.slice(0, 64);
|
|
55
|
+
}
|
|
56
|
+
export function truncate(text, maxLength) {
|
|
57
|
+
if (text.length <= maxLength)
|
|
58
|
+
return text;
|
|
59
|
+
return `${text.slice(0, maxLength - 3)}...`;
|
|
60
|
+
}
|
|
61
|
+
export function normalizeLine(text) {
|
|
62
|
+
return text.replace(/\s+/g, " ").trim();
|
|
63
|
+
}
|
|
64
|
+
export function redactLine(text) {
|
|
65
|
+
return sanitizeWithStaticMask(normalizeLine(text));
|
|
66
|
+
}
|
|
67
|
+
export function sanitizeA2ALabel(text, maxLength) {
|
|
68
|
+
return truncate(redactLine(text), maxLength);
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=internal-helpers.js.map
|