@evalops/maestro 0.10.51 → 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.d.ts.map +1 -1
- package/dist/agent/agent.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/modes.d.ts +1 -1
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +56 -0
- 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/google-gemini-cli.js +1 -0
- package/dist/agent/providers/google.js +1 -0
- package/dist/agent/providers/vertex.js +1 -0
- 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/{skills/artifact-metadata.d.ts → agent/skill-artifact-metadata.d.ts} +2 -4
- package/dist/agent/skill-artifact-metadata.d.ts.map +1 -0
- package/dist/{skills/artifact-metadata.js → agent/skill-artifact-metadata.js} +1 -38
- package/dist/agent/skill-artifact-metadata.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +2 -2
- package/dist/agent/subagent-specs.js.map +1 -1
- 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/types.d.ts +4 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/app-server/plugin-bundle-api.d.ts.map +1 -1
- package/dist/app-server/plugin-bundle-api.js +1 -0
- package/dist/app-server/plugin-bundle-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 +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +18 -1
- package/dist/cli/args.js.map +1 -1
- 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.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 +3 -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-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 +52529 -137615
- 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/{cli-tui → config}/ui-state.d.ts +6 -1
- package/dist/config/ui-state.d.ts.map +1 -0
- package/dist/{cli-tui → config}/ui-state.js +1 -1
- package/dist/config/ui-state.js.map +1 -0
- 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/db/schema.d.ts +2 -2
- 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/main.d.ts.map +1 -1
- package/dist/main.js +154 -882
- package/dist/main.js.map +1 -1
- package/dist/models/config-loader.d.ts +5 -5
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +45 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +2 -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/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/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/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 +1 -0
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +1 -0
- package/dist/runtime/env.js.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.d.ts.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.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/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/queue.js +1 -1
- package/dist/server/handlers/queue.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/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/session-serialization.d.ts.map +1 -1
- package/dist/server/session-serialization.js +3 -0
- 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/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 +17 -0
- 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/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/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/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.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/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/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/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/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 +13 -11
- package/skills/incident-triage/SKILL.md +4 -3
- package/dist/cli/commands/agents.d.ts +0 -24
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -429
- 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 -860
- 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 -305
- 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/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 -73
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +0 -455
- 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.map +0 -1
- 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.map +0 -1
- 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 -64
- 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 -41
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -41
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/learned-guidelines.d.ts +0 -33
- package/dist/skills/learned-guidelines.d.ts.map +0 -1
- package/dist/skills/learned-guidelines.js +0 -291
- package/dist/skills/learned-guidelines.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 -397
- 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 -69
- package/dist/skills/runtime-activation.d.ts.map +0 -1
- package/dist/skills/runtime-activation.js +0 -227
- 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 -339
- package/dist/skills/tool.js.map +0 -1
- package/dist/skills/trust-cache.d.ts +0 -65
- package/dist/skills/trust-cache.d.ts.map +0 -1
- package/dist/skills/trust-cache.js +0 -146
- 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
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { join } from "node:path";
|
|
2
|
-
import { PATHS } from "../config/constants.js";
|
|
3
|
-
import { readJsonFile } from "../utils/fs.js";
|
|
4
|
-
import { resolveEnvPath } from "../utils/path-expansion.js";
|
|
5
|
-
export const TUI_KEYBINDING_ACTIONS = [
|
|
6
|
-
"cycle-model",
|
|
7
|
-
"toggle-tool-outputs",
|
|
8
|
-
"toggle-thinking-blocks",
|
|
9
|
-
"external-editor",
|
|
10
|
-
"suspend",
|
|
11
|
-
"command-palette",
|
|
12
|
-
"edit-last-follow-up",
|
|
13
|
-
];
|
|
14
|
-
export const TUI_KEYBINDING_SHORTCUTS = [
|
|
15
|
-
"ctrl+g",
|
|
16
|
-
"ctrl+k",
|
|
17
|
-
"ctrl+o",
|
|
18
|
-
"ctrl+p",
|
|
19
|
-
"ctrl+t",
|
|
20
|
-
"ctrl+z",
|
|
21
|
-
"alt+up",
|
|
22
|
-
"shift+left",
|
|
23
|
-
];
|
|
24
|
-
const EMPTY_TUI_KEYBINDING_STORE = {
|
|
25
|
-
version: 1,
|
|
26
|
-
bindings: {},
|
|
27
|
-
};
|
|
28
|
-
const TUI_KEYBINDING_ACTION_SET = new Set(TUI_KEYBINDING_ACTIONS);
|
|
29
|
-
const TUI_KEYBINDING_SHORTCUT_SET = new Set(TUI_KEYBINDING_SHORTCUTS);
|
|
30
|
-
const CTRL_SHORTCUT_LETTERS = {
|
|
31
|
-
"ctrl+g": "g",
|
|
32
|
-
"ctrl+k": "k",
|
|
33
|
-
"ctrl+o": "o",
|
|
34
|
-
"ctrl+p": "p",
|
|
35
|
-
"ctrl+t": "t",
|
|
36
|
-
"ctrl+z": "z",
|
|
37
|
-
};
|
|
38
|
-
const ALT_UP_SEQUENCES = new Set(["\x1b[1;3A", "\x1b\x1b[A", "\x1b\x1bOA"]);
|
|
39
|
-
const SHIFT_LEFT_SEQUENCES = new Set(["\x1b[1;2D"]);
|
|
40
|
-
const DEFAULT_TUI_KEYBINDINGS = {
|
|
41
|
-
"cycle-model": "ctrl+p",
|
|
42
|
-
"toggle-tool-outputs": "ctrl+o",
|
|
43
|
-
"toggle-thinking-blocks": "ctrl+t",
|
|
44
|
-
"external-editor": "ctrl+g",
|
|
45
|
-
suspend: "ctrl+z",
|
|
46
|
-
"command-palette": "ctrl+k",
|
|
47
|
-
};
|
|
48
|
-
const keybindingStoreCache = new Map();
|
|
49
|
-
function normalizeActionName(value) {
|
|
50
|
-
return value.trim().toLowerCase();
|
|
51
|
-
}
|
|
52
|
-
function normalizeShortcutName(value) {
|
|
53
|
-
return value.replace(/\s+/g, "").toLowerCase();
|
|
54
|
-
}
|
|
55
|
-
function isTuiKeybindingAction(value) {
|
|
56
|
-
return TUI_KEYBINDING_ACTION_SET.has(value);
|
|
57
|
-
}
|
|
58
|
-
function isTuiKeybindingShortcut(value) {
|
|
59
|
-
return TUI_KEYBINDING_SHORTCUT_SET.has(value);
|
|
60
|
-
}
|
|
61
|
-
function buildCtrlRawSequence(letter) {
|
|
62
|
-
return String.fromCharCode(letter.toLowerCase().charCodeAt(0) & 0x1f);
|
|
63
|
-
}
|
|
64
|
-
function buildCtrlKittySequence(letter) {
|
|
65
|
-
return `\x1b[${letter.toLowerCase().charCodeAt(0)};5u`;
|
|
66
|
-
}
|
|
67
|
-
function getShortcutLabel(shortcut) {
|
|
68
|
-
switch (shortcut) {
|
|
69
|
-
case "ctrl+g":
|
|
70
|
-
return "Ctrl+G";
|
|
71
|
-
case "ctrl+k":
|
|
72
|
-
return "Ctrl+K";
|
|
73
|
-
case "ctrl+o":
|
|
74
|
-
return "Ctrl+O";
|
|
75
|
-
case "ctrl+p":
|
|
76
|
-
return "Ctrl+P";
|
|
77
|
-
case "ctrl+t":
|
|
78
|
-
return "Ctrl+T";
|
|
79
|
-
case "ctrl+z":
|
|
80
|
-
return "Ctrl+Z";
|
|
81
|
-
case "alt+up":
|
|
82
|
-
return "Alt+Up";
|
|
83
|
-
case "shift+left":
|
|
84
|
-
return "Shift+Left";
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function matchesShortcut(shortcut, data) {
|
|
88
|
-
if (shortcut === "alt+up") {
|
|
89
|
-
return ALT_UP_SEQUENCES.has(data);
|
|
90
|
-
}
|
|
91
|
-
if (shortcut === "shift+left") {
|
|
92
|
-
return SHIFT_LEFT_SEQUENCES.has(data);
|
|
93
|
-
}
|
|
94
|
-
const letter = CTRL_SHORTCUT_LETTERS[shortcut];
|
|
95
|
-
return (data === buildCtrlRawSequence(letter) ||
|
|
96
|
-
data === buildCtrlKittySequence(letter));
|
|
97
|
-
}
|
|
98
|
-
function getCanonicalShortcutSequence(shortcut) {
|
|
99
|
-
if (shortcut === "alt+up") {
|
|
100
|
-
return "\x1b[1;3A";
|
|
101
|
-
}
|
|
102
|
-
if (shortcut === "shift+left") {
|
|
103
|
-
return "\x1b[1;2D";
|
|
104
|
-
}
|
|
105
|
-
return buildCtrlRawSequence(CTRL_SHORTCUT_LETTERS[shortcut]);
|
|
106
|
-
}
|
|
107
|
-
export function getTuiKeybindingsFilePath(env = process.env) {
|
|
108
|
-
if (env === process.env) {
|
|
109
|
-
return PATHS.TUI_KEYBINDINGS_FILE;
|
|
110
|
-
}
|
|
111
|
-
const explicitPath = resolveEnvPath(env.MAESTRO_KEYBINDINGS_FILE);
|
|
112
|
-
if (explicitPath) {
|
|
113
|
-
return explicitPath;
|
|
114
|
-
}
|
|
115
|
-
const maestroHome = resolveEnvPath(env.MAESTRO_HOME);
|
|
116
|
-
return maestroHome
|
|
117
|
-
? join(maestroHome, "keybindings.json")
|
|
118
|
-
: PATHS.TUI_KEYBINDINGS_FILE;
|
|
119
|
-
}
|
|
120
|
-
function normalizeTuiKeybindingStore(raw) {
|
|
121
|
-
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
122
|
-
return EMPTY_TUI_KEYBINDING_STORE;
|
|
123
|
-
}
|
|
124
|
-
const candidate = raw;
|
|
125
|
-
if (candidate.version !== 1) {
|
|
126
|
-
return EMPTY_TUI_KEYBINDING_STORE;
|
|
127
|
-
}
|
|
128
|
-
const bindings = candidate.bindings && typeof candidate.bindings === "object"
|
|
129
|
-
? candidate.bindings
|
|
130
|
-
: {};
|
|
131
|
-
const normalizedBindings = {};
|
|
132
|
-
for (const [action, shortcut] of Object.entries(bindings)) {
|
|
133
|
-
const normalizedAction = normalizeActionName(action);
|
|
134
|
-
const normalizedShortcut = typeof shortcut === "string" ? normalizeShortcutName(shortcut) : shortcut;
|
|
135
|
-
if (isTuiKeybindingAction(normalizedAction) &&
|
|
136
|
-
typeof normalizedShortcut === "string" &&
|
|
137
|
-
isTuiKeybindingShortcut(normalizedShortcut)) {
|
|
138
|
-
normalizedBindings[normalizedAction] = normalizedShortcut;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return {
|
|
142
|
-
version: 1,
|
|
143
|
-
bindings: normalizedBindings,
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
function readTuiKeybindingOverrides(env = process.env) {
|
|
147
|
-
const filePath = getTuiKeybindingsFilePath(env);
|
|
148
|
-
const cached = keybindingStoreCache.get(filePath);
|
|
149
|
-
if (cached) {
|
|
150
|
-
return cached;
|
|
151
|
-
}
|
|
152
|
-
const normalized = normalizeTuiKeybindingStore(readJsonFile(filePath, {
|
|
153
|
-
fallback: EMPTY_TUI_KEYBINDING_STORE,
|
|
154
|
-
}));
|
|
155
|
-
keybindingStoreCache.set(filePath, normalized.bindings);
|
|
156
|
-
return normalized.bindings;
|
|
157
|
-
}
|
|
158
|
-
function getDefaultQueuedFollowUpShortcut(env = process.env) {
|
|
159
|
-
const termProgram = env.TERM_PROGRAM?.trim().toLowerCase();
|
|
160
|
-
if (env.TMUX ||
|
|
161
|
-
termProgram === "tmux" ||
|
|
162
|
-
termProgram === "apple_terminal" ||
|
|
163
|
-
termProgram === "warp" ||
|
|
164
|
-
termProgram === "warpterminal" ||
|
|
165
|
-
termProgram === "vscode") {
|
|
166
|
-
return "shift+left";
|
|
167
|
-
}
|
|
168
|
-
return "alt+up";
|
|
169
|
-
}
|
|
170
|
-
export function resetTuiKeybindingConfigCache() {
|
|
171
|
-
keybindingStoreCache.clear();
|
|
172
|
-
}
|
|
173
|
-
export function getDefaultTuiKeybindingShortcut(action, env = process.env) {
|
|
174
|
-
if (action === "edit-last-follow-up") {
|
|
175
|
-
return getDefaultQueuedFollowUpShortcut(env);
|
|
176
|
-
}
|
|
177
|
-
return DEFAULT_TUI_KEYBINDINGS[action];
|
|
178
|
-
}
|
|
179
|
-
export function getResolvedTuiKeybindings(env = process.env) {
|
|
180
|
-
const defaults = Object.fromEntries(TUI_KEYBINDING_ACTIONS.map((action) => [
|
|
181
|
-
action,
|
|
182
|
-
getDefaultTuiKeybindingShortcut(action, env),
|
|
183
|
-
]));
|
|
184
|
-
const overrides = readTuiKeybindingOverrides(env);
|
|
185
|
-
const resolved = { ...defaults, ...overrides };
|
|
186
|
-
let changed = true;
|
|
187
|
-
while (changed) {
|
|
188
|
-
changed = false;
|
|
189
|
-
const actionsByShortcut = new Map();
|
|
190
|
-
for (const action of TUI_KEYBINDING_ACTIONS) {
|
|
191
|
-
const shortcut = resolved[action];
|
|
192
|
-
const actions = actionsByShortcut.get(shortcut) ?? [];
|
|
193
|
-
actions.push(action);
|
|
194
|
-
actionsByShortcut.set(shortcut, actions);
|
|
195
|
-
}
|
|
196
|
-
for (const actions of actionsByShortcut.values()) {
|
|
197
|
-
if (actions.length < 2) {
|
|
198
|
-
continue;
|
|
199
|
-
}
|
|
200
|
-
const overriddenActions = actions.filter((action) => Object.prototype.hasOwnProperty.call(overrides, action));
|
|
201
|
-
for (const action of overriddenActions) {
|
|
202
|
-
if (resolved[action] !== defaults[action]) {
|
|
203
|
-
resolved[action] = defaults[action];
|
|
204
|
-
changed = true;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
return resolved;
|
|
210
|
-
}
|
|
211
|
-
export function getTuiKeybindingShortcut(action, env = process.env) {
|
|
212
|
-
return getResolvedTuiKeybindings(env)[action];
|
|
213
|
-
}
|
|
214
|
-
export function getTuiKeybindingLabel(action, env = process.env) {
|
|
215
|
-
return getShortcutLabel(getTuiKeybindingShortcut(action, env));
|
|
216
|
-
}
|
|
217
|
-
export function matchesTuiKeybinding(action, data, env = process.env) {
|
|
218
|
-
return matchesShortcut(getTuiKeybindingShortcut(action, env), data);
|
|
219
|
-
}
|
|
220
|
-
export function getTuiKeybindingSequence(action, env = process.env) {
|
|
221
|
-
return getCanonicalShortcutSequence(getTuiKeybindingShortcut(action, env));
|
|
222
|
-
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BAC3C,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACpC,OAAO,GAAG,IAAI,CAAC;gBAChB,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,wBAAwB,CACvC,MAA2B,EAC3B,MAAyB,OAAO,CAAC,GAAG;IAEpC,OAAO,yBAAyB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,qBAAqB,CACpC,MAA2B,EAC3B,MAAyB,OAAO,CAAC,GAAG;IAEpC,OAAO,gBAAgB,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,oBAAoB,CACnC,MAA2B,EAC3B,IAAY,EACZ,MAAyB,OAAO,CAAC,GAAG;IAEpC,OAAO,eAAe,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,wBAAwB,CACvC,MAA2B,EAC3B,MAAyB,OAAO,CAAC,GAAG;IAEpC,OAAO,4BAA4B,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAC5E,CAAC","sourcesContent":["import { join } from \"node:path\";\nimport { PATHS } from \"../config/constants.js\";\nimport { readJsonFile } from \"../utils/fs.js\";\nimport { resolveEnvPath } from \"../utils/path-expansion.js\";\n\nexport const TUI_KEYBINDING_ACTIONS = [\n\t\"cycle-model\",\n\t\"toggle-tool-outputs\",\n\t\"toggle-thinking-blocks\",\n\t\"external-editor\",\n\t\"suspend\",\n\t\"command-palette\",\n\t\"edit-last-follow-up\",\n] as const;\n\nexport type TuiKeybindingAction = (typeof TUI_KEYBINDING_ACTIONS)[number];\n\nexport const TUI_KEYBINDING_SHORTCUTS = [\n\t\"ctrl+g\",\n\t\"ctrl+k\",\n\t\"ctrl+o\",\n\t\"ctrl+p\",\n\t\"ctrl+t\",\n\t\"ctrl+z\",\n\t\"alt+up\",\n\t\"shift+left\",\n] as const;\n\nexport type TuiKeybindingShortcut = (typeof TUI_KEYBINDING_SHORTCUTS)[number];\n\ninterface StoredTuiKeybindingStore {\n\tversion: 1;\n\tbindings: Partial<Record<TuiKeybindingAction, TuiKeybindingShortcut>>;\n}\n\nconst EMPTY_TUI_KEYBINDING_STORE: StoredTuiKeybindingStore = {\n\tversion: 1,\n\tbindings: {},\n};\n\nconst TUI_KEYBINDING_ACTION_SET = new Set<string>(TUI_KEYBINDING_ACTIONS);\nconst TUI_KEYBINDING_SHORTCUT_SET = new Set<string>(TUI_KEYBINDING_SHORTCUTS);\nconst CTRL_SHORTCUT_LETTERS: Record<\n\tExtract<\n\t\tTuiKeybindingShortcut,\n\t\t\"ctrl+g\" | \"ctrl+k\" | \"ctrl+o\" | \"ctrl+p\" | \"ctrl+t\" | \"ctrl+z\"\n\t>,\n\tstring\n> = {\n\t\"ctrl+g\": \"g\",\n\t\"ctrl+k\": \"k\",\n\t\"ctrl+o\": \"o\",\n\t\"ctrl+p\": \"p\",\n\t\"ctrl+t\": \"t\",\n\t\"ctrl+z\": \"z\",\n};\n\nconst ALT_UP_SEQUENCES = new Set([\"\\x1b[1;3A\", \"\\x1b\\x1b[A\", \"\\x1b\\x1bOA\"]);\nconst SHIFT_LEFT_SEQUENCES = new Set([\"\\x1b[1;2D\"]);\nconst DEFAULT_TUI_KEYBINDINGS: Record<\n\tExclude<TuiKeybindingAction, \"edit-last-follow-up\">,\n\tTuiKeybindingShortcut\n> = {\n\t\"cycle-model\": \"ctrl+p\",\n\t\"toggle-tool-outputs\": \"ctrl+o\",\n\t\"toggle-thinking-blocks\": \"ctrl+t\",\n\t\"external-editor\": \"ctrl+g\",\n\tsuspend: \"ctrl+z\",\n\t\"command-palette\": \"ctrl+k\",\n};\n\nconst keybindingStoreCache = new Map<\n\tstring,\n\tStoredTuiKeybindingStore[\"bindings\"]\n>();\n\nfunction normalizeActionName(value: string): string {\n\treturn value.trim().toLowerCase();\n}\n\nfunction normalizeShortcutName(value: string): string {\n\treturn value.replace(/\\s+/g, \"\").toLowerCase();\n}\n\nfunction isTuiKeybindingAction(value: string): value is TuiKeybindingAction {\n\treturn TUI_KEYBINDING_ACTION_SET.has(value);\n}\n\nfunction isTuiKeybindingShortcut(\n\tvalue: string,\n): value is TuiKeybindingShortcut {\n\treturn TUI_KEYBINDING_SHORTCUT_SET.has(value);\n}\n\nfunction buildCtrlRawSequence(letter: string): string {\n\treturn String.fromCharCode(letter.toLowerCase().charCodeAt(0) & 0x1f);\n}\n\nfunction buildCtrlKittySequence(letter: string): string {\n\treturn `\\x1b[${letter.toLowerCase().charCodeAt(0)};5u`;\n}\n\nfunction getShortcutLabel(shortcut: TuiKeybindingShortcut): string {\n\tswitch (shortcut) {\n\t\tcase \"ctrl+g\":\n\t\t\treturn \"Ctrl+G\";\n\t\tcase \"ctrl+k\":\n\t\t\treturn \"Ctrl+K\";\n\t\tcase \"ctrl+o\":\n\t\t\treturn \"Ctrl+O\";\n\t\tcase \"ctrl+p\":\n\t\t\treturn \"Ctrl+P\";\n\t\tcase \"ctrl+t\":\n\t\t\treturn \"Ctrl+T\";\n\t\tcase \"ctrl+z\":\n\t\t\treturn \"Ctrl+Z\";\n\t\tcase \"alt+up\":\n\t\t\treturn \"Alt+Up\";\n\t\tcase \"shift+left\":\n\t\t\treturn \"Shift+Left\";\n\t}\n}\n\nfunction matchesShortcut(\n\tshortcut: TuiKeybindingShortcut,\n\tdata: string,\n): boolean {\n\tif (shortcut === \"alt+up\") {\n\t\treturn ALT_UP_SEQUENCES.has(data);\n\t}\n\tif (shortcut === \"shift+left\") {\n\t\treturn SHIFT_LEFT_SEQUENCES.has(data);\n\t}\n\tconst letter = CTRL_SHORTCUT_LETTERS[shortcut];\n\treturn (\n\t\tdata === buildCtrlRawSequence(letter) ||\n\t\tdata === buildCtrlKittySequence(letter)\n\t);\n}\n\nfunction getCanonicalShortcutSequence(shortcut: TuiKeybindingShortcut): string {\n\tif (shortcut === \"alt+up\") {\n\t\treturn \"\\x1b[1;3A\";\n\t}\n\tif (shortcut === \"shift+left\") {\n\t\treturn \"\\x1b[1;2D\";\n\t}\n\treturn buildCtrlRawSequence(CTRL_SHORTCUT_LETTERS[shortcut]);\n}\n\nexport function getTuiKeybindingsFilePath(\n\tenv: NodeJS.ProcessEnv = process.env,\n): string {\n\tif (env === process.env) {\n\t\treturn PATHS.TUI_KEYBINDINGS_FILE;\n\t}\n\tconst explicitPath = resolveEnvPath(env.MAESTRO_KEYBINDINGS_FILE);\n\tif (explicitPath) {\n\t\treturn explicitPath;\n\t}\n\tconst maestroHome = resolveEnvPath(env.MAESTRO_HOME);\n\treturn maestroHome\n\t\t? join(maestroHome, \"keybindings.json\")\n\t\t: PATHS.TUI_KEYBINDINGS_FILE;\n}\n\nfunction normalizeTuiKeybindingStore(raw: unknown): StoredTuiKeybindingStore {\n\tif (!raw || typeof raw !== \"object\" || Array.isArray(raw)) {\n\t\treturn EMPTY_TUI_KEYBINDING_STORE;\n\t}\n\tconst candidate = raw as {\n\t\tversion?: unknown;\n\t\tbindings?: unknown;\n\t};\n\tif (candidate.version !== 1) {\n\t\treturn EMPTY_TUI_KEYBINDING_STORE;\n\t}\n\n\tconst bindings =\n\t\tcandidate.bindings && typeof candidate.bindings === \"object\"\n\t\t\t? candidate.bindings\n\t\t\t: {};\n\tconst normalizedBindings: StoredTuiKeybindingStore[\"bindings\"] = {};\n\n\tfor (const [action, shortcut] of Object.entries(bindings)) {\n\t\tconst normalizedAction = normalizeActionName(action);\n\t\tconst normalizedShortcut =\n\t\t\ttypeof shortcut === \"string\" ? normalizeShortcutName(shortcut) : shortcut;\n\t\tif (\n\t\t\tisTuiKeybindingAction(normalizedAction) &&\n\t\t\ttypeof normalizedShortcut === \"string\" &&\n\t\t\tisTuiKeybindingShortcut(normalizedShortcut)\n\t\t) {\n\t\t\tnormalizedBindings[normalizedAction] = normalizedShortcut;\n\t\t}\n\t}\n\n\treturn {\n\t\tversion: 1,\n\t\tbindings: normalizedBindings,\n\t};\n}\n\nfunction readTuiKeybindingOverrides(\n\tenv: NodeJS.ProcessEnv = process.env,\n): StoredTuiKeybindingStore[\"bindings\"] {\n\tconst filePath = getTuiKeybindingsFilePath(env);\n\tconst cached = keybindingStoreCache.get(filePath);\n\tif (cached) {\n\t\treturn cached;\n\t}\n\n\tconst normalized = normalizeTuiKeybindingStore(\n\t\treadJsonFile<unknown>(filePath, {\n\t\t\tfallback: EMPTY_TUI_KEYBINDING_STORE,\n\t\t}),\n\t);\n\tkeybindingStoreCache.set(filePath, normalized.bindings);\n\treturn normalized.bindings;\n}\n\nfunction getDefaultQueuedFollowUpShortcut(\n\tenv: NodeJS.ProcessEnv = process.env,\n): TuiKeybindingShortcut {\n\tconst termProgram = env.TERM_PROGRAM?.trim().toLowerCase();\n\tif (\n\t\tenv.TMUX ||\n\t\ttermProgram === \"tmux\" ||\n\t\ttermProgram === \"apple_terminal\" ||\n\t\ttermProgram === \"warp\" ||\n\t\ttermProgram === \"warpterminal\" ||\n\t\ttermProgram === \"vscode\"\n\t) {\n\t\treturn \"shift+left\";\n\t}\n\treturn \"alt+up\";\n}\n\nexport function resetTuiKeybindingConfigCache(): void {\n\tkeybindingStoreCache.clear();\n}\n\nexport function getDefaultTuiKeybindingShortcut(\n\taction: TuiKeybindingAction,\n\tenv: NodeJS.ProcessEnv = process.env,\n): TuiKeybindingShortcut {\n\tif (action === \"edit-last-follow-up\") {\n\t\treturn getDefaultQueuedFollowUpShortcut(env);\n\t}\n\treturn DEFAULT_TUI_KEYBINDINGS[action];\n}\n\nexport function getResolvedTuiKeybindings(\n\tenv: NodeJS.ProcessEnv = process.env,\n): Record<TuiKeybindingAction, TuiKeybindingShortcut> {\n\tconst defaults = Object.fromEntries(\n\t\tTUI_KEYBINDING_ACTIONS.map((action) => [\n\t\t\taction,\n\t\t\tgetDefaultTuiKeybindingShortcut(action, env),\n\t\t]),\n\t) as Record<TuiKeybindingAction, TuiKeybindingShortcut>;\n\tconst overrides = readTuiKeybindingOverrides(env);\n\tconst resolved = { ...defaults, ...overrides };\n\n\tlet changed = true;\n\twhile (changed) {\n\t\tchanged = false;\n\t\tconst actionsByShortcut = new Map<\n\t\t\tTuiKeybindingShortcut,\n\t\t\tTuiKeybindingAction[]\n\t\t>();\n\t\tfor (const action of TUI_KEYBINDING_ACTIONS) {\n\t\t\tconst shortcut = resolved[action];\n\t\t\tconst actions = actionsByShortcut.get(shortcut) ?? [];\n\t\t\tactions.push(action);\n\t\t\tactionsByShortcut.set(shortcut, actions);\n\t\t}\n\n\t\tfor (const actions of actionsByShortcut.values()) {\n\t\t\tif (actions.length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst overriddenActions = actions.filter((action) =>\n\t\t\t\tObject.prototype.hasOwnProperty.call(overrides, action),\n\t\t\t);\n\t\t\tfor (const action of overriddenActions) {\n\t\t\t\tif (resolved[action] !== defaults[action]) {\n\t\t\t\t\tresolved[action] = defaults[action];\n\t\t\t\t\tchanged = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn resolved;\n}\n\nexport function getTuiKeybindingShortcut(\n\taction: TuiKeybindingAction,\n\tenv: NodeJS.ProcessEnv = process.env,\n): TuiKeybindingShortcut {\n\treturn getResolvedTuiKeybindings(env)[action];\n}\n\nexport function getTuiKeybindingLabel(\n\taction: TuiKeybindingAction,\n\tenv: NodeJS.ProcessEnv = process.env,\n): string {\n\treturn getShortcutLabel(getTuiKeybindingShortcut(action, env));\n}\n\nexport function matchesTuiKeybinding(\n\taction: TuiKeybindingAction,\n\tdata: string,\n\tenv: NodeJS.ProcessEnv = process.env,\n): boolean {\n\treturn matchesShortcut(getTuiKeybindingShortcut(action, env), data);\n}\n\nexport function getTuiKeybindingSequence(\n\taction: TuiKeybindingAction,\n\tenv: NodeJS.ProcessEnv = process.env,\n): string {\n\treturn getCanonicalShortcutSequence(getTuiKeybindingShortcut(action, env));\n}\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
interface LoaderStageManagerOptions {
|
|
2
|
-
setFooterStage: (label: string | null) => void;
|
|
3
|
-
setFooterHint?: (hint: string | null) => void;
|
|
4
|
-
selectDreamingHint?: () => string | null;
|
|
5
|
-
onStageChanged: (label: string, index: number, total: number) => void;
|
|
6
|
-
onProgressChanged: (value: number | null) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare class LoaderStageManager {
|
|
9
|
-
private readonly options;
|
|
10
|
-
private stages;
|
|
11
|
-
private toolStageMeta;
|
|
12
|
-
private toolStagesByGroup;
|
|
13
|
-
private completedToolStages;
|
|
14
|
-
private completedStageKeys;
|
|
15
|
-
private currentStageKey;
|
|
16
|
-
private streamingActive;
|
|
17
|
-
private telemetry;
|
|
18
|
-
private dreamingTimeout;
|
|
19
|
-
private dreamingActive;
|
|
20
|
-
private readonly dreamingDelayMs;
|
|
21
|
-
private readonly dreamingHint;
|
|
22
|
-
constructor(options: LoaderStageManagerOptions);
|
|
23
|
-
start(): void;
|
|
24
|
-
stop(): void;
|
|
25
|
-
setStreamingActive(active: boolean): void;
|
|
26
|
-
maybeTransitionToResponding(): void;
|
|
27
|
-
registerToolStage(toolCallId: string, toolName: string, args?: Record<string, unknown>, summaryLabel?: string): void;
|
|
28
|
-
markToolComplete(toolCallId: string): void;
|
|
29
|
-
finish(): void;
|
|
30
|
-
completeTurn(): void;
|
|
31
|
-
private resetTracking;
|
|
32
|
-
private clearTracking;
|
|
33
|
-
private updateStage;
|
|
34
|
-
private formatStageLabel;
|
|
35
|
-
private refreshToolStageLabels;
|
|
36
|
-
private renameStage;
|
|
37
|
-
private refreshProgress;
|
|
38
|
-
private getCurrentStageProgress;
|
|
39
|
-
private scheduleDreaming;
|
|
40
|
-
private clearDreamingState;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=loader-stage-manager.d.ts.map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AE,MAAM,EAChB,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAClC,YAAY,CAAC,EAAE,MAAM,GACnB,IAAI;IAwBP,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAO1C,MAAM,IAAI,IAAI;IASd,YAAY,IAAI,IAAI;IAWpB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,WAAW;IAgCnB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,eAAe;IA4BvB,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,kBAAkB;CAc1B"}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { summarizeToolUse } from "../../utils/tool-use-summary.js";
|
|
2
|
-
import { STAGE_DISPLAY_LABELS, formatWorkingStageLabel, } from "../utils/stage-labels.js";
|
|
3
|
-
import { LoaderStageTelemetry } from "./loader-stage-telemetry.js";
|
|
4
|
-
export class LoaderStageManager {
|
|
5
|
-
constructor(options) {
|
|
6
|
-
this.options = options;
|
|
7
|
-
this.stages = [];
|
|
8
|
-
this.toolStageMeta = new Map();
|
|
9
|
-
this.toolStagesByGroup = new Map();
|
|
10
|
-
this.completedToolStages = new Set();
|
|
11
|
-
this.completedStageKeys = new Set();
|
|
12
|
-
this.currentStageKey = null;
|
|
13
|
-
this.streamingActive = false;
|
|
14
|
-
this.dreamingTimeout = null;
|
|
15
|
-
this.dreamingActive = false;
|
|
16
|
-
this.dreamingDelayMs = 5000;
|
|
17
|
-
this.dreamingHint = "maestro is pondering a haiku…";
|
|
18
|
-
this.telemetry = new LoaderStageTelemetry();
|
|
19
|
-
}
|
|
20
|
-
start() {
|
|
21
|
-
this.resetTracking();
|
|
22
|
-
this.updateStage("planning");
|
|
23
|
-
}
|
|
24
|
-
stop() {
|
|
25
|
-
this.clearTracking();
|
|
26
|
-
}
|
|
27
|
-
setStreamingActive(active) {
|
|
28
|
-
this.streamingActive = active;
|
|
29
|
-
}
|
|
30
|
-
maybeTransitionToResponding() {
|
|
31
|
-
const noToolStages = this.toolStageMeta.size === 0;
|
|
32
|
-
const allComplete = this.toolStageMeta.size > 0 &&
|
|
33
|
-
this.completedToolStages.size === this.toolStageMeta.size;
|
|
34
|
-
if (noToolStages || allComplete) {
|
|
35
|
-
this.updateStage("responding");
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
registerToolStage(toolCallId, toolName, args = {}, summaryLabel) {
|
|
39
|
-
if (this.toolStageMeta.has(toolCallId)) {
|
|
40
|
-
this.updateStage(toolCallId);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const summary = summaryLabel || summarizeToolUse(toolName, args);
|
|
44
|
-
const groupKey = `${toolName}:${summary}`;
|
|
45
|
-
this.toolStageMeta.set(toolCallId, { toolName, summary, groupKey });
|
|
46
|
-
const respondingIndex = this.stages.findIndex((stage) => stage.key === "responding");
|
|
47
|
-
const insertIndex = respondingIndex === -1 ? this.stages.length : respondingIndex;
|
|
48
|
-
this.stages.splice(insertIndex, 0, {
|
|
49
|
-
key: toolCallId,
|
|
50
|
-
label: formatWorkingStageLabel(summary),
|
|
51
|
-
});
|
|
52
|
-
const group = this.toolStagesByGroup.get(groupKey) ?? [];
|
|
53
|
-
group.push(toolCallId);
|
|
54
|
-
this.toolStagesByGroup.set(groupKey, group);
|
|
55
|
-
this.refreshToolStageLabels(groupKey);
|
|
56
|
-
this.updateStage(toolCallId);
|
|
57
|
-
}
|
|
58
|
-
markToolComplete(toolCallId) {
|
|
59
|
-
this.completedToolStages.add(toolCallId);
|
|
60
|
-
this.completedStageKeys.add(toolCallId);
|
|
61
|
-
this.refreshProgress();
|
|
62
|
-
this.maybeTransitionToResponding();
|
|
63
|
-
}
|
|
64
|
-
finish() {
|
|
65
|
-
if (this.currentStageKey) {
|
|
66
|
-
this.completedStageKeys.add(this.currentStageKey);
|
|
67
|
-
this.refreshProgress();
|
|
68
|
-
}
|
|
69
|
-
this.options.onProgressChanged(1);
|
|
70
|
-
this.clearTracking();
|
|
71
|
-
}
|
|
72
|
-
completeTurn() {
|
|
73
|
-
if (this.currentStageKey) {
|
|
74
|
-
this.telemetry.recordStage(this.currentStageKey, this.stages);
|
|
75
|
-
this.completedStageKeys.add(this.currentStageKey);
|
|
76
|
-
}
|
|
77
|
-
this.options.onProgressChanged(1);
|
|
78
|
-
this.options.setFooterStage(null);
|
|
79
|
-
this.clearDreamingState(false);
|
|
80
|
-
this.currentStageKey = null;
|
|
81
|
-
}
|
|
82
|
-
resetTracking() {
|
|
83
|
-
this.telemetry.finalize(this.stages);
|
|
84
|
-
this.clearDreamingState(false);
|
|
85
|
-
this.stages = [
|
|
86
|
-
{ key: "planning", label: STAGE_DISPLAY_LABELS.thinking },
|
|
87
|
-
{ key: "responding", label: STAGE_DISPLAY_LABELS.responding },
|
|
88
|
-
];
|
|
89
|
-
this.toolStageMeta.clear();
|
|
90
|
-
this.toolStagesByGroup.clear();
|
|
91
|
-
this.completedToolStages.clear();
|
|
92
|
-
this.completedStageKeys.clear();
|
|
93
|
-
this.currentStageKey = null;
|
|
94
|
-
this.options.setFooterStage(null);
|
|
95
|
-
}
|
|
96
|
-
clearTracking() {
|
|
97
|
-
this.telemetry.finalize(this.stages);
|
|
98
|
-
this.clearDreamingState(false);
|
|
99
|
-
this.stages = [];
|
|
100
|
-
this.toolStageMeta.clear();
|
|
101
|
-
this.toolStagesByGroup.clear();
|
|
102
|
-
this.completedToolStages.clear();
|
|
103
|
-
this.completedStageKeys.clear();
|
|
104
|
-
this.currentStageKey = null;
|
|
105
|
-
this.options.setFooterStage(null);
|
|
106
|
-
this.options.onProgressChanged(null);
|
|
107
|
-
}
|
|
108
|
-
updateStage(key, labelOverride) {
|
|
109
|
-
const stageChanged = this.currentStageKey !== key;
|
|
110
|
-
if (stageChanged && this.currentStageKey) {
|
|
111
|
-
this.telemetry.recordStage(this.currentStageKey, this.stages);
|
|
112
|
-
}
|
|
113
|
-
const previousStageKey = stageChanged ? this.currentStageKey : null;
|
|
114
|
-
let index = this.stages.findIndex((stage) => stage.key === key);
|
|
115
|
-
if (index === -1) {
|
|
116
|
-
const label = labelOverride ?? this.formatStageLabel(key);
|
|
117
|
-
this.stages.push({ key, label });
|
|
118
|
-
index = this.stages.length - 1;
|
|
119
|
-
}
|
|
120
|
-
else if (labelOverride) {
|
|
121
|
-
this.stages[index].label = labelOverride;
|
|
122
|
-
}
|
|
123
|
-
if (previousStageKey) {
|
|
124
|
-
this.completedStageKeys.add(previousStageKey);
|
|
125
|
-
}
|
|
126
|
-
const stage = this.stages[index];
|
|
127
|
-
this.currentStageKey = key;
|
|
128
|
-
if (stageChanged) {
|
|
129
|
-
this.telemetry.updateCurrentStage(key);
|
|
130
|
-
}
|
|
131
|
-
this.options.onStageChanged(stage.label, index + 1, this.stages.length);
|
|
132
|
-
this.options.setFooterStage(stage.label);
|
|
133
|
-
if (key === "planning") {
|
|
134
|
-
this.scheduleDreaming();
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.clearDreamingState();
|
|
138
|
-
}
|
|
139
|
-
this.refreshProgress();
|
|
140
|
-
}
|
|
141
|
-
formatStageLabel(key) {
|
|
142
|
-
if (key === "planning")
|
|
143
|
-
return STAGE_DISPLAY_LABELS.thinking;
|
|
144
|
-
if (key === "responding")
|
|
145
|
-
return STAGE_DISPLAY_LABELS.responding;
|
|
146
|
-
const toolMeta = this.toolStageMeta.get(key);
|
|
147
|
-
if (toolMeta) {
|
|
148
|
-
return formatWorkingStageLabel(toolMeta.summary);
|
|
149
|
-
}
|
|
150
|
-
return key;
|
|
151
|
-
}
|
|
152
|
-
refreshToolStageLabels(groupKey) {
|
|
153
|
-
const entries = this.toolStagesByGroup.get(groupKey);
|
|
154
|
-
if (!entries || entries.length === 0)
|
|
155
|
-
return;
|
|
156
|
-
const total = entries.length;
|
|
157
|
-
entries.forEach((key, index) => {
|
|
158
|
-
const summary = this.toolStageMeta.get(key)?.summary ?? key;
|
|
159
|
-
const label = formatWorkingStageLabel(summary, index + 1, total);
|
|
160
|
-
this.renameStage(key, label);
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
renameStage(key, label) {
|
|
164
|
-
const stage = this.stages.find((entry) => entry.key === key);
|
|
165
|
-
if (!stage)
|
|
166
|
-
return;
|
|
167
|
-
stage.label = label;
|
|
168
|
-
if (this.currentStageKey === key) {
|
|
169
|
-
const index = this.stages.findIndex((entry) => entry.key === key);
|
|
170
|
-
this.options.onStageChanged(label, index + 1, this.stages.length);
|
|
171
|
-
this.options.setFooterStage(label);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
refreshProgress() {
|
|
175
|
-
if (!this.currentStageKey) {
|
|
176
|
-
this.options.onProgressChanged(null);
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
const total = this.stages.length;
|
|
180
|
-
if (total === 0) {
|
|
181
|
-
this.options.onProgressChanged(null);
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const completedCount = this.stages.reduce((count, stage) => {
|
|
185
|
-
return this.completedStageKeys.has(stage.key) ? count + 1 : count;
|
|
186
|
-
}, 0);
|
|
187
|
-
const currentStageCompleted = this.completedStageKeys.has(this.currentStageKey);
|
|
188
|
-
const currentPartial = currentStageCompleted
|
|
189
|
-
? 0
|
|
190
|
-
: this.getCurrentStageProgress(this.currentStageKey);
|
|
191
|
-
if (this.currentStageKey === "responding") {
|
|
192
|
-
this.options.onProgressChanged(null);
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
const rawProgress = (completedCount + currentPartial) / total;
|
|
196
|
-
const normalized = Math.min(0.99, Math.max(0, rawProgress));
|
|
197
|
-
this.options.onProgressChanged(normalized);
|
|
198
|
-
}
|
|
199
|
-
getCurrentStageProgress(stageKey) {
|
|
200
|
-
if (stageKey === "responding") {
|
|
201
|
-
return this.streamingActive ? 0.6 : 0.85;
|
|
202
|
-
}
|
|
203
|
-
if (stageKey === "planning") {
|
|
204
|
-
return 0.4;
|
|
205
|
-
}
|
|
206
|
-
if (this.toolStageMeta.has(stageKey)) {
|
|
207
|
-
// Current tool stage should use in-progress partial value
|
|
208
|
-
return 0.5;
|
|
209
|
-
}
|
|
210
|
-
return 0.3;
|
|
211
|
-
}
|
|
212
|
-
scheduleDreaming() {
|
|
213
|
-
if (this.dreamingActive || this.dreamingTimeout) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
this.dreamingTimeout = setTimeout(() => {
|
|
217
|
-
this.dreamingTimeout = null;
|
|
218
|
-
if (this.currentStageKey !== "planning") {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
this.dreamingActive = true;
|
|
222
|
-
this.renameStage("planning", STAGE_DISPLAY_LABELS.dreaming);
|
|
223
|
-
this.options.setFooterHint?.(this.options.selectDreamingHint?.() ?? this.dreamingHint);
|
|
224
|
-
}, this.dreamingDelayMs);
|
|
225
|
-
}
|
|
226
|
-
clearDreamingState(resetLabel = true) {
|
|
227
|
-
if (this.dreamingTimeout) {
|
|
228
|
-
clearTimeout(this.dreamingTimeout);
|
|
229
|
-
this.dreamingTimeout = null;
|
|
230
|
-
}
|
|
231
|
-
if (!this.dreamingActive) {
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
this.dreamingActive = false;
|
|
235
|
-
if (resetLabel) {
|
|
236
|
-
this.renameStage("planning", STAGE_DISPLAY_LABELS.thinking);
|
|
237
|
-
}
|
|
238
|
-
this.options.setFooterHint?.(null);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
//# sourceMappingURL=loader-stage-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader-stage-manager.js","sourceRoot":"","sources":["../../../src/cli-tui/loader/loader-stage-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,C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YACD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC3B,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;YAC5D,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAC3B,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,IAAI,IAAI,CAAC,YAAY,CACxD,CAAC;QACH,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAC1B,CAAC;IAEO,kBAAkB,CAAC,UAAU,GAAG,IAAI;QAC3C,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACnC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YAC1B,OAAO;QACR,CAAC;QACD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC5B,IAAI,UAAU,EAAE,CAAC;YAChB,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;CACD","sourcesContent":["import { summarizeToolUse } from \"../../utils/tool-use-summary.js\";\nimport {\n\tSTAGE_DISPLAY_LABELS,\n\tformatWorkingStageLabel,\n} from \"../utils/stage-labels.js\";\nimport { LoaderStageTelemetry } from \"./loader-stage-telemetry.js\";\n\ninterface LoaderStageEntry {\n\tkey: string;\n\tlabel: string;\n}\n\ninterface LoaderStageManagerOptions {\n\tsetFooterStage: (label: string | null) => void;\n\tsetFooterHint?: (hint: string | null) => void;\n\tselectDreamingHint?: () => string | null;\n\tonStageChanged: (label: string, index: number, total: number) => void;\n\tonProgressChanged: (value: number | null) => void;\n}\n\nexport class LoaderStageManager {\n\tprivate stages: LoaderStageEntry[] = [];\n\tprivate toolStageMeta = new Map<\n\t\tstring,\n\t\t{ toolName: string; summary: string; groupKey: string }\n\t>();\n\tprivate toolStagesByGroup = new Map<string, string[]>();\n\tprivate completedToolStages = new Set<string>();\n\tprivate completedStageKeys = new Set<string>();\n\tprivate currentStageKey: string | null = null;\n\tprivate streamingActive = false;\n\tprivate telemetry: LoaderStageTelemetry;\n\tprivate dreamingTimeout: NodeJS.Timeout | null = null;\n\tprivate dreamingActive = false;\n\tprivate readonly dreamingDelayMs = 5000;\n\tprivate readonly dreamingHint = \"maestro is pondering a haiku…\";\n\n\tconstructor(private readonly options: LoaderStageManagerOptions) {\n\t\tthis.telemetry = new LoaderStageTelemetry();\n\t}\n\n\tstart(): void {\n\t\tthis.resetTracking();\n\t\tthis.updateStage(\"planning\");\n\t}\n\n\tstop(): void {\n\t\tthis.clearTracking();\n\t}\n\n\tsetStreamingActive(active: boolean): void {\n\t\tthis.streamingActive = active;\n\t}\n\n\tmaybeTransitionToResponding(): void {\n\t\tconst noToolStages = this.toolStageMeta.size === 0;\n\t\tconst allComplete =\n\t\t\tthis.toolStageMeta.size > 0 &&\n\t\t\tthis.completedToolStages.size === this.toolStageMeta.size;\n\t\tif (noToolStages || allComplete) {\n\t\t\tthis.updateStage(\"responding\");\n\t\t}\n\t}\n\n\tregisterToolStage(\n\t\ttoolCallId: string,\n\t\ttoolName: string,\n\t\targs: Record<string, unknown> = {},\n\t\tsummaryLabel?: string,\n\t): void {\n\t\tif (this.toolStageMeta.has(toolCallId)) {\n\t\t\tthis.updateStage(toolCallId);\n\t\t\treturn;\n\t\t}\n\t\tconst summary = summaryLabel || summarizeToolUse(toolName, args);\n\t\tconst groupKey = `${toolName}:${summary}`;\n\t\tthis.toolStageMeta.set(toolCallId, { toolName, summary, groupKey });\n\t\tconst respondingIndex = this.stages.findIndex(\n\t\t\t(stage) => stage.key === \"responding\",\n\t\t);\n\t\tconst insertIndex =\n\t\t\trespondingIndex === -1 ? this.stages.length : respondingIndex;\n\t\tthis.stages.splice(insertIndex, 0, {\n\t\t\tkey: toolCallId,\n\t\t\tlabel: formatWorkingStageLabel(summary),\n\t\t});\n\t\tconst group = this.toolStagesByGroup.get(groupKey) ?? [];\n\t\tgroup.push(toolCallId);\n\t\tthis.toolStagesByGroup.set(groupKey, group);\n\t\tthis.refreshToolStageLabels(groupKey);\n\t\tthis.updateStage(toolCallId);\n\t}\n\n\tmarkToolComplete(toolCallId: string): void {\n\t\tthis.completedToolStages.add(toolCallId);\n\t\tthis.completedStageKeys.add(toolCallId);\n\t\tthis.refreshProgress();\n\t\tthis.maybeTransitionToResponding();\n\t}\n\n\tfinish(): void {\n\t\tif (this.currentStageKey) {\n\t\t\tthis.completedStageKeys.add(this.currentStageKey);\n\t\t\tthis.refreshProgress();\n\t\t}\n\t\tthis.options.onProgressChanged(1);\n\t\tthis.clearTracking();\n\t}\n\n\tcompleteTurn(): void {\n\t\tif (this.currentStageKey) {\n\t\t\tthis.telemetry.recordStage(this.currentStageKey, this.stages);\n\t\t\tthis.completedStageKeys.add(this.currentStageKey);\n\t\t}\n\t\tthis.options.onProgressChanged(1);\n\t\tthis.options.setFooterStage(null);\n\t\tthis.clearDreamingState(false);\n\t\tthis.currentStageKey = null;\n\t}\n\n\tprivate resetTracking(): void {\n\t\tthis.telemetry.finalize(this.stages);\n\t\tthis.clearDreamingState(false);\n\t\tthis.stages = [\n\t\t\t{ key: \"planning\", label: STAGE_DISPLAY_LABELS.thinking },\n\t\t\t{ key: \"responding\", label: STAGE_DISPLAY_LABELS.responding },\n\t\t];\n\t\tthis.toolStageMeta.clear();\n\t\tthis.toolStagesByGroup.clear();\n\t\tthis.completedToolStages.clear();\n\t\tthis.completedStageKeys.clear();\n\t\tthis.currentStageKey = null;\n\t\tthis.options.setFooterStage(null);\n\t}\n\n\tprivate clearTracking(): void {\n\t\tthis.telemetry.finalize(this.stages);\n\t\tthis.clearDreamingState(false);\n\t\tthis.stages = [];\n\t\tthis.toolStageMeta.clear();\n\t\tthis.toolStagesByGroup.clear();\n\t\tthis.completedToolStages.clear();\n\t\tthis.completedStageKeys.clear();\n\t\tthis.currentStageKey = null;\n\t\tthis.options.setFooterStage(null);\n\t\tthis.options.onProgressChanged(null);\n\t}\n\n\tprivate updateStage(key: string, labelOverride?: string): void {\n\t\tconst stageChanged = this.currentStageKey !== key;\n\t\tif (stageChanged && this.currentStageKey) {\n\t\t\tthis.telemetry.recordStage(this.currentStageKey, this.stages);\n\t\t}\n\t\tconst previousStageKey = stageChanged ? this.currentStageKey : null;\n\t\tlet index = this.stages.findIndex((stage) => stage.key === key);\n\t\tif (index === -1) {\n\t\t\tconst label = labelOverride ?? this.formatStageLabel(key);\n\t\t\tthis.stages.push({ key, label });\n\t\t\tindex = this.stages.length - 1;\n\t\t} else if (labelOverride) {\n\t\t\tthis.stages[index]!.label = labelOverride;\n\t\t}\n\t\tif (previousStageKey) {\n\t\t\tthis.completedStageKeys.add(previousStageKey);\n\t\t}\n\t\tconst stage = this.stages[index]!;\n\t\tthis.currentStageKey = key;\n\t\tif (stageChanged) {\n\t\t\tthis.telemetry.updateCurrentStage(key);\n\t\t}\n\t\tthis.options.onStageChanged(stage.label, index + 1, this.stages.length);\n\t\tthis.options.setFooterStage(stage.label);\n\t\tif (key === \"planning\") {\n\t\t\tthis.scheduleDreaming();\n\t\t} else {\n\t\t\tthis.clearDreamingState();\n\t\t}\n\t\tthis.refreshProgress();\n\t}\n\n\tprivate formatStageLabel(key: string): string {\n\t\tif (key === \"planning\") return STAGE_DISPLAY_LABELS.thinking;\n\t\tif (key === \"responding\") return STAGE_DISPLAY_LABELS.responding;\n\t\tconst toolMeta = this.toolStageMeta.get(key);\n\t\tif (toolMeta) {\n\t\t\treturn formatWorkingStageLabel(toolMeta.summary);\n\t\t}\n\t\treturn key;\n\t}\n\n\tprivate refreshToolStageLabels(groupKey: string): void {\n\t\tconst entries = this.toolStagesByGroup.get(groupKey);\n\t\tif (!entries || entries.length === 0) return;\n\t\tconst total = entries.length;\n\t\tentries.forEach((key, index) => {\n\t\t\tconst summary = this.toolStageMeta.get(key)?.summary ?? key;\n\t\t\tconst label = formatWorkingStageLabel(summary, index + 1, total);\n\t\t\tthis.renameStage(key, label);\n\t\t});\n\t}\n\n\tprivate renameStage(key: string, label: string): void {\n\t\tconst stage = this.stages.find((entry) => entry.key === key);\n\t\tif (!stage) return;\n\t\tstage.label = label;\n\t\tif (this.currentStageKey === key) {\n\t\t\tconst index = this.stages.findIndex((entry) => entry.key === key);\n\t\t\tthis.options.onStageChanged(label, index + 1, this.stages.length);\n\t\t\tthis.options.setFooterStage(label);\n\t\t}\n\t}\n\n\tprivate refreshProgress(): void {\n\t\tif (!this.currentStageKey) {\n\t\t\tthis.options.onProgressChanged(null);\n\t\t\treturn;\n\t\t}\n\t\tconst total = this.stages.length;\n\t\tif (total === 0) {\n\t\t\tthis.options.onProgressChanged(null);\n\t\t\treturn;\n\t\t}\n\t\tconst completedCount = this.stages.reduce((count, stage) => {\n\t\t\treturn this.completedStageKeys.has(stage.key) ? count + 1 : count;\n\t\t}, 0);\n\t\tconst currentStageCompleted = this.completedStageKeys.has(\n\t\t\tthis.currentStageKey,\n\t\t);\n\t\tconst currentPartial = currentStageCompleted\n\t\t\t? 0\n\t\t\t: this.getCurrentStageProgress(this.currentStageKey);\n\t\tif (this.currentStageKey === \"responding\") {\n\t\t\tthis.options.onProgressChanged(null);\n\t\t\treturn;\n\t\t}\n\t\tconst rawProgress = (completedCount + currentPartial) / total;\n\t\tconst normalized = Math.min(0.99, Math.max(0, rawProgress));\n\t\tthis.options.onProgressChanged(normalized);\n\t}\n\n\tprivate getCurrentStageProgress(stageKey: string): number {\n\t\tif (stageKey === \"responding\") {\n\t\t\treturn this.streamingActive ? 0.6 : 0.85;\n\t\t}\n\t\tif (stageKey === \"planning\") {\n\t\t\treturn 0.4;\n\t\t}\n\t\tif (this.toolStageMeta.has(stageKey)) {\n\t\t\t// Current tool stage should use in-progress partial value\n\t\t\treturn 0.5;\n\t\t}\n\t\treturn 0.3;\n\t}\n\n\tprivate scheduleDreaming(): void {\n\t\tif (this.dreamingActive || this.dreamingTimeout) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dreamingTimeout = setTimeout(() => {\n\t\t\tthis.dreamingTimeout = null;\n\t\t\tif (this.currentStageKey !== \"planning\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.dreamingActive = true;\n\t\t\tthis.renameStage(\"planning\", STAGE_DISPLAY_LABELS.dreaming);\n\t\t\tthis.options.setFooterHint?.(\n\t\t\t\tthis.options.selectDreamingHint?.() ?? this.dreamingHint,\n\t\t\t);\n\t\t}, this.dreamingDelayMs);\n\t}\n\n\tprivate clearDreamingState(resetLabel = true): void {\n\t\tif (this.dreamingTimeout) {\n\t\t\tclearTimeout(this.dreamingTimeout);\n\t\t\tthis.dreamingTimeout = null;\n\t\t}\n\t\tif (!this.dreamingActive) {\n\t\t\treturn;\n\t\t}\n\t\tthis.dreamingActive = false;\n\t\tif (resetLabel) {\n\t\t\tthis.renameStage(\"planning\", STAGE_DISPLAY_LABELS.thinking);\n\t\t}\n\t\tthis.options.setFooterHint?.(null);\n\t}\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface LoaderStageEntry {
|
|
2
|
-
key: string;
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class LoaderStageTelemetry {
|
|
6
|
-
private currentStage;
|
|
7
|
-
private stageStartTime;
|
|
8
|
-
updateCurrentStage(key: string): void;
|
|
9
|
-
recordStage(stageKey: string, stages: LoaderStageEntry[]): void;
|
|
10
|
-
finalize(stages: LoaderStageEntry[]): void;
|
|
11
|
-
private logStage;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=loader-stage-telemetry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader-stage-telemetry.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/loader/loader-stage-telemetry.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,oBAAoB;IAChC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,cAAc,CAAuB;IAE7C,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKrC,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAO/D,QAAQ,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAY1C,OAAO,CAAC,QAAQ;CAYhB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { recordLoaderStage } from "../../telemetry.js";
|
|
2
|
-
export class LoaderStageTelemetry {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.currentStage = null;
|
|
5
|
-
this.stageStartTime = null;
|
|
6
|
-
}
|
|
7
|
-
updateCurrentStage(key) {
|
|
8
|
-
this.currentStage = key;
|
|
9
|
-
this.stageStartTime = Date.now();
|
|
10
|
-
}
|
|
11
|
-
recordStage(stageKey, stages) {
|
|
12
|
-
if (!this.stageStartTime)
|
|
13
|
-
return;
|
|
14
|
-
const duration = Date.now() - this.stageStartTime;
|
|
15
|
-
this.logStage(stageKey, stages, duration);
|
|
16
|
-
this.stageStartTime = Date.now();
|
|
17
|
-
}
|
|
18
|
-
finalize(stages) {
|
|
19
|
-
if (this.currentStage && this.stageStartTime) {
|
|
20
|
-
this.logStage(this.currentStage, stages, Date.now() - this.stageStartTime);
|
|
21
|
-
}
|
|
22
|
-
this.currentStage = null;
|
|
23
|
-
this.stageStartTime = null;
|
|
24
|
-
}
|
|
25
|
-
logStage(stageKey, stages, durationMs) {
|
|
26
|
-
const stage = stages.find((entry) => entry.key === stageKey);
|
|
27
|
-
const label = stage?.label ?? stageKey;
|
|
28
|
-
recordLoaderStage(label, durationMs, {
|
|
29
|
-
stageKey,
|
|
30
|
-
stages: stages.map((entry) => entry.label),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=loader-stage-telemetry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader-stage-telemetry.js","sourceRoot":"","sources":["../../../src/cli-tui/loader/loader-stage-telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAOvD,MAAM,OAAO,oBAAoB;IAAjC;QACS,iBAAY,GAAkB,IAAI,CAAC;QACnC,mBAAc,GAAkB,IAAI,CAAC;IAsC9C,CAAC;IApCA,kBAAkB,CAAC,GAAW;QAC7B,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAClC,CAAC;IAED,WAAW,CAAC,QAAgB,EAAE,MAA0B;QACvD,IAAI,CAAC,IAAI,CAAC,cAAc;YAAE,OAAO;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC;QAClD,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAClC,CAAC;IAED,QAAQ,CAAC,MAA0B;QAClC,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YAC9C,IAAI,CAAC,QAAQ,CACZ,IAAI,CAAC,YAAY,EACjB,MAAM,EACN,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,cAAc,CAChC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;IAC5B,CAAC;IAEO,QAAQ,CACf,QAAgB,EAChB,MAA0B,EAC1B,UAAkB;QAElB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;QAC7D,MAAM,KAAK,GAAG,KAAK,EAAE,KAAK,IAAI,QAAQ,CAAC;QACvC,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE;YACpC,QAAQ;YACR,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;SAC1C,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import { recordLoaderStage } from \"../../telemetry.js\";\n\ninterface LoaderStageEntry {\n\tkey: string;\n\tlabel: string;\n}\n\nexport class LoaderStageTelemetry {\n\tprivate currentStage: string | null = null;\n\tprivate stageStartTime: number | null = null;\n\n\tupdateCurrentStage(key: string): void {\n\t\tthis.currentStage = key;\n\t\tthis.stageStartTime = Date.now();\n\t}\n\n\trecordStage(stageKey: string, stages: LoaderStageEntry[]): void {\n\t\tif (!this.stageStartTime) return;\n\t\tconst duration = Date.now() - this.stageStartTime;\n\t\tthis.logStage(stageKey, stages, duration);\n\t\tthis.stageStartTime = Date.now();\n\t}\n\n\tfinalize(stages: LoaderStageEntry[]): void {\n\t\tif (this.currentStage && this.stageStartTime) {\n\t\t\tthis.logStage(\n\t\t\t\tthis.currentStage,\n\t\t\t\tstages,\n\t\t\t\tDate.now() - this.stageStartTime,\n\t\t\t);\n\t\t}\n\t\tthis.currentStage = null;\n\t\tthis.stageStartTime = null;\n\t}\n\n\tprivate logStage(\n\t\tstageKey: string,\n\t\tstages: LoaderStageEntry[],\n\t\tdurationMs: number,\n\t): void {\n\t\tconst stage = stages.find((entry) => entry.key === stageKey);\n\t\tconst label = stage?.label ?? stageKey;\n\t\trecordLoaderStage(label, durationMs, {\n\t\t\tstageKey,\n\t\t\tstages: stages.map((entry) => entry.label),\n\t\t});\n\t}\n}\n"]}
|