@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,372 +0,0 @@
|
|
|
1
|
-
import { fileExists, readTextFile, writeTextFile } from "../utils/fs.js";
|
|
2
|
-
import { safeJsonParse } from "../utils/json.js";
|
|
3
|
-
import { TUI_KEYBINDING_ACTIONS, TUI_KEYBINDING_SHORTCUTS, getDefaultTuiKeybindingShortcut, getResolvedTuiKeybindings, getTuiKeybindingsFilePath, } from "./keybindings.js";
|
|
4
|
-
const RUST_TUI_KEYBINDING_ACTIONS = [
|
|
5
|
-
"command-palette",
|
|
6
|
-
"file-search",
|
|
7
|
-
"toggle-tool-outputs",
|
|
8
|
-
"edit-last-follow-up",
|
|
9
|
-
];
|
|
10
|
-
const RUST_TUI_KEYBINDING_SHORTCUTS = [
|
|
11
|
-
"ctrl+p",
|
|
12
|
-
"ctrl+o",
|
|
13
|
-
"ctrl+t",
|
|
14
|
-
"alt+up",
|
|
15
|
-
"shift+left",
|
|
16
|
-
];
|
|
17
|
-
export function summarizeKeybindingConfigIssues(report) {
|
|
18
|
-
if (!report.exists || report.issues.length === 0) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return `Keyboard shortcuts config has ${report.issues.length} issue${report.issues.length === 1 ? "" : "s"}. Run /hotkeys validate.`;
|
|
22
|
-
}
|
|
23
|
-
const TUI_ACTION_SET = new Set(TUI_KEYBINDING_ACTIONS);
|
|
24
|
-
const TUI_SHORTCUT_SET = new Set(TUI_KEYBINDING_SHORTCUTS);
|
|
25
|
-
const RUST_ACTION_SET = new Set(RUST_TUI_KEYBINDING_ACTIONS);
|
|
26
|
-
const RUST_SHORTCUT_SET = new Set(RUST_TUI_KEYBINDING_SHORTCUTS);
|
|
27
|
-
function normalizeActionName(value) {
|
|
28
|
-
return value.trim().toLowerCase();
|
|
29
|
-
}
|
|
30
|
-
function normalizeShortcutName(value) {
|
|
31
|
-
return value.replace(/\s+/g, "").toLowerCase();
|
|
32
|
-
}
|
|
33
|
-
function isPlainObject(value) {
|
|
34
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
35
|
-
}
|
|
36
|
-
function isTuiAction(value) {
|
|
37
|
-
return TUI_ACTION_SET.has(value);
|
|
38
|
-
}
|
|
39
|
-
function isTuiShortcut(value) {
|
|
40
|
-
return TUI_SHORTCUT_SET.has(value);
|
|
41
|
-
}
|
|
42
|
-
function isRustAction(value) {
|
|
43
|
-
return RUST_ACTION_SET.has(value);
|
|
44
|
-
}
|
|
45
|
-
function isRustShortcut(value) {
|
|
46
|
-
return RUST_SHORTCUT_SET.has(value);
|
|
47
|
-
}
|
|
48
|
-
function getDefaultRustShortcut(action, env = process.env) {
|
|
49
|
-
switch (action) {
|
|
50
|
-
case "command-palette":
|
|
51
|
-
return "ctrl+p";
|
|
52
|
-
case "file-search":
|
|
53
|
-
return "ctrl+o";
|
|
54
|
-
case "toggle-tool-outputs":
|
|
55
|
-
return "ctrl+t";
|
|
56
|
-
case "edit-last-follow-up":
|
|
57
|
-
return getDefaultTuiKeybindingShortcut("edit-last-follow-up", env);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function buildDefaultRustBindings(env = process.env) {
|
|
61
|
-
return {
|
|
62
|
-
"command-palette": getDefaultRustShortcut("command-palette", env),
|
|
63
|
-
"file-search": getDefaultRustShortcut("file-search", env),
|
|
64
|
-
"toggle-tool-outputs": getDefaultRustShortcut("toggle-tool-outputs", env),
|
|
65
|
-
"edit-last-follow-up": getDefaultRustShortcut("edit-last-follow-up", env),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function parseTuiOverrides(value, issues) {
|
|
69
|
-
if (value === undefined) {
|
|
70
|
-
return {};
|
|
71
|
-
}
|
|
72
|
-
if (!isPlainObject(value)) {
|
|
73
|
-
issues.push({
|
|
74
|
-
severity: "error",
|
|
75
|
-
message: '"bindings" must be an object of action-to-shortcut overrides.',
|
|
76
|
-
});
|
|
77
|
-
return {};
|
|
78
|
-
}
|
|
79
|
-
const overrides = {};
|
|
80
|
-
for (const [rawAction, rawShortcut] of Object.entries(value)) {
|
|
81
|
-
const action = normalizeActionName(rawAction);
|
|
82
|
-
if (!isTuiAction(action)) {
|
|
83
|
-
issues.push({
|
|
84
|
-
severity: "error",
|
|
85
|
-
message: `Unknown TUI keybinding action "${rawAction}". Supported actions: ${TUI_KEYBINDING_ACTIONS.join(", ")}.`,
|
|
86
|
-
});
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
if (typeof rawShortcut !== "string") {
|
|
90
|
-
issues.push({
|
|
91
|
-
severity: "error",
|
|
92
|
-
message: `TUI action "${action}" must map to a shortcut string.`,
|
|
93
|
-
});
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
const shortcut = normalizeShortcutName(rawShortcut);
|
|
97
|
-
if (!isTuiShortcut(shortcut)) {
|
|
98
|
-
issues.push({
|
|
99
|
-
severity: "error",
|
|
100
|
-
message: `Unsupported TUI shortcut "${rawShortcut}" for "${action}". Supported shortcuts: ${TUI_KEYBINDING_SHORTCUTS.join(", ")}.`,
|
|
101
|
-
});
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
overrides[action] = shortcut;
|
|
105
|
-
}
|
|
106
|
-
return overrides;
|
|
107
|
-
}
|
|
108
|
-
function parseRustOverrides(value, issues) {
|
|
109
|
-
if (value === undefined) {
|
|
110
|
-
return {};
|
|
111
|
-
}
|
|
112
|
-
if (!isPlainObject(value)) {
|
|
113
|
-
issues.push({
|
|
114
|
-
severity: "error",
|
|
115
|
-
message: '"rustBindings" must be an object of action-to-shortcut overrides.',
|
|
116
|
-
});
|
|
117
|
-
return {};
|
|
118
|
-
}
|
|
119
|
-
const overrides = {};
|
|
120
|
-
for (const [rawAction, rawShortcut] of Object.entries(value)) {
|
|
121
|
-
const action = normalizeActionName(rawAction);
|
|
122
|
-
if (!isRustAction(action)) {
|
|
123
|
-
issues.push({
|
|
124
|
-
severity: "error",
|
|
125
|
-
message: `Unknown Rust TUI keybinding action "${rawAction}". Supported actions: ${RUST_TUI_KEYBINDING_ACTIONS.join(", ")}.`,
|
|
126
|
-
});
|
|
127
|
-
continue;
|
|
128
|
-
}
|
|
129
|
-
if (typeof rawShortcut !== "string") {
|
|
130
|
-
issues.push({
|
|
131
|
-
severity: "error",
|
|
132
|
-
message: `Rust TUI action "${action}" must map to a shortcut string.`,
|
|
133
|
-
});
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
const shortcut = normalizeShortcutName(rawShortcut);
|
|
137
|
-
if (!isRustShortcut(shortcut)) {
|
|
138
|
-
issues.push({
|
|
139
|
-
severity: "error",
|
|
140
|
-
message: `Unsupported Rust TUI shortcut "${rawShortcut}" for "${action}". Supported shortcuts: ${RUST_TUI_KEYBINDING_SHORTCUTS.join(", ")}.`,
|
|
141
|
-
});
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
overrides[action] = shortcut;
|
|
145
|
-
}
|
|
146
|
-
return overrides;
|
|
147
|
-
}
|
|
148
|
-
function collectTuiConflictIssues(overrides, env) {
|
|
149
|
-
const defaults = Object.fromEntries(TUI_KEYBINDING_ACTIONS.map((action) => [
|
|
150
|
-
action,
|
|
151
|
-
getDefaultTuiKeybindingShortcut(action, env),
|
|
152
|
-
]));
|
|
153
|
-
const resolved = { ...defaults, ...overrides };
|
|
154
|
-
const issues = [];
|
|
155
|
-
const seen = new Set();
|
|
156
|
-
let changed = true;
|
|
157
|
-
while (changed) {
|
|
158
|
-
changed = false;
|
|
159
|
-
const actionsByShortcut = new Map();
|
|
160
|
-
for (const action of TUI_KEYBINDING_ACTIONS) {
|
|
161
|
-
const shortcut = resolved[action];
|
|
162
|
-
const actions = actionsByShortcut.get(shortcut) ?? [];
|
|
163
|
-
actions.push(action);
|
|
164
|
-
actionsByShortcut.set(shortcut, actions);
|
|
165
|
-
}
|
|
166
|
-
for (const [shortcut, actions] of actionsByShortcut.entries()) {
|
|
167
|
-
if (actions.length < 2) {
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
for (const action of actions) {
|
|
171
|
-
if (!Object.prototype.hasOwnProperty.call(overrides, action)) {
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
if (resolved[action] === defaults[action]) {
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
const key = `${action}:${shortcut}`;
|
|
178
|
-
if (!seen.has(key)) {
|
|
179
|
-
issues.push({
|
|
180
|
-
severity: "warning",
|
|
181
|
-
message: `TUI override "${action}: ${shortcut}" conflicts with ${actions
|
|
182
|
-
.filter((candidate) => candidate !== action)
|
|
183
|
-
.join(", ")} and falls back to ${defaults[action]}.`,
|
|
184
|
-
});
|
|
185
|
-
seen.add(key);
|
|
186
|
-
}
|
|
187
|
-
resolved[action] = defaults[action];
|
|
188
|
-
changed = true;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return issues;
|
|
193
|
-
}
|
|
194
|
-
function collectRustConflictIssues(overrides, env) {
|
|
195
|
-
const defaults = buildDefaultRustBindings(env);
|
|
196
|
-
const resolved = { ...defaults, ...overrides };
|
|
197
|
-
const issues = [];
|
|
198
|
-
const seen = new Set();
|
|
199
|
-
let changed = true;
|
|
200
|
-
while (changed) {
|
|
201
|
-
changed = false;
|
|
202
|
-
const actionsByShortcut = new Map();
|
|
203
|
-
for (const action of RUST_TUI_KEYBINDING_ACTIONS) {
|
|
204
|
-
const shortcut = resolved[action];
|
|
205
|
-
const actions = actionsByShortcut.get(shortcut) ?? [];
|
|
206
|
-
actions.push(action);
|
|
207
|
-
actionsByShortcut.set(shortcut, actions);
|
|
208
|
-
}
|
|
209
|
-
for (const [shortcut, actions] of actionsByShortcut.entries()) {
|
|
210
|
-
if (actions.length < 2) {
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
for (const action of actions) {
|
|
214
|
-
if (!Object.prototype.hasOwnProperty.call(overrides, action)) {
|
|
215
|
-
continue;
|
|
216
|
-
}
|
|
217
|
-
if (resolved[action] === defaults[action]) {
|
|
218
|
-
continue;
|
|
219
|
-
}
|
|
220
|
-
const key = `${action}:${shortcut}`;
|
|
221
|
-
if (!seen.has(key)) {
|
|
222
|
-
issues.push({
|
|
223
|
-
severity: "warning",
|
|
224
|
-
message: `Rust TUI override "${action}: ${shortcut}" conflicts with ${actions
|
|
225
|
-
.filter((candidate) => candidate !== action)
|
|
226
|
-
.join(", ")} and falls back to ${defaults[action]}.`,
|
|
227
|
-
});
|
|
228
|
-
seen.add(key);
|
|
229
|
-
}
|
|
230
|
-
resolved[action] = defaults[action];
|
|
231
|
-
changed = true;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
return issues;
|
|
236
|
-
}
|
|
237
|
-
export function inspectKeybindingConfig(env = process.env) {
|
|
238
|
-
const path = getTuiKeybindingsFilePath(env);
|
|
239
|
-
if (!fileExists(path)) {
|
|
240
|
-
return {
|
|
241
|
-
path,
|
|
242
|
-
exists: false,
|
|
243
|
-
tuiRequestedOverrides: 0,
|
|
244
|
-
tuiActiveOverrides: 0,
|
|
245
|
-
rustRequestedOverrides: 0,
|
|
246
|
-
rustActiveOverrides: 0,
|
|
247
|
-
issues: [],
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
try {
|
|
251
|
-
const content = readTextFile(path);
|
|
252
|
-
const issues = [];
|
|
253
|
-
const parsed = safeJsonParse(content, path);
|
|
254
|
-
if (!parsed.success) {
|
|
255
|
-
return {
|
|
256
|
-
path,
|
|
257
|
-
exists: true,
|
|
258
|
-
tuiRequestedOverrides: 0,
|
|
259
|
-
tuiActiveOverrides: 0,
|
|
260
|
-
rustRequestedOverrides: 0,
|
|
261
|
-
rustActiveOverrides: 0,
|
|
262
|
-
issues: [
|
|
263
|
-
{
|
|
264
|
-
severity: "error",
|
|
265
|
-
message: parsed.error.cause?.message ??
|
|
266
|
-
"Failed to parse keybindings.json.",
|
|
267
|
-
},
|
|
268
|
-
],
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
if (!isPlainObject(parsed.data)) {
|
|
272
|
-
return {
|
|
273
|
-
path,
|
|
274
|
-
exists: true,
|
|
275
|
-
tuiRequestedOverrides: 0,
|
|
276
|
-
tuiActiveOverrides: 0,
|
|
277
|
-
rustRequestedOverrides: 0,
|
|
278
|
-
rustActiveOverrides: 0,
|
|
279
|
-
issues: [
|
|
280
|
-
{
|
|
281
|
-
severity: "error",
|
|
282
|
-
message: "keybindings.json must contain a JSON object.",
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
if (parsed.data.version !== 1) {
|
|
288
|
-
issues.push({
|
|
289
|
-
severity: "error",
|
|
290
|
-
message: 'keybindings.json must include `"version": 1`.',
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
const tuiOverrides = parseTuiOverrides(parsed.data.bindings, issues);
|
|
294
|
-
const rustOverrides = parseRustOverrides(parsed.data.rustBindings, issues);
|
|
295
|
-
issues.push(...collectTuiConflictIssues(tuiOverrides, env));
|
|
296
|
-
issues.push(...collectRustConflictIssues(rustOverrides, env));
|
|
297
|
-
const activeTuiOverrides = Object.entries(tuiOverrides).filter(([action, shortcut]) => getResolvedTuiKeybindings(env)[action] ===
|
|
298
|
-
shortcut).length;
|
|
299
|
-
const rustDefaults = buildDefaultRustBindings(env);
|
|
300
|
-
const activeRustOverrides = Object.entries(rustOverrides).filter(([action, shortcut]) => rustDefaults[action] !== shortcut).length;
|
|
301
|
-
return {
|
|
302
|
-
path,
|
|
303
|
-
exists: true,
|
|
304
|
-
tuiRequestedOverrides: Object.keys(tuiOverrides).length,
|
|
305
|
-
tuiActiveOverrides: activeTuiOverrides,
|
|
306
|
-
rustRequestedOverrides: Object.keys(rustOverrides).length,
|
|
307
|
-
rustActiveOverrides: activeRustOverrides,
|
|
308
|
-
issues,
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
catch {
|
|
312
|
-
return {
|
|
313
|
-
path,
|
|
314
|
-
exists: true,
|
|
315
|
-
tuiRequestedOverrides: 0,
|
|
316
|
-
tuiActiveOverrides: 0,
|
|
317
|
-
rustRequestedOverrides: 0,
|
|
318
|
-
rustActiveOverrides: 0,
|
|
319
|
-
issues: [
|
|
320
|
-
{
|
|
321
|
-
severity: "error",
|
|
322
|
-
message: "Failed to read keybindings.json.",
|
|
323
|
-
},
|
|
324
|
-
],
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
export function generateKeybindingsTemplate(env = process.env) {
|
|
329
|
-
const bindings = Object.fromEntries(TUI_KEYBINDING_ACTIONS.map((action) => [
|
|
330
|
-
action,
|
|
331
|
-
getDefaultTuiKeybindingShortcut(action, env),
|
|
332
|
-
]));
|
|
333
|
-
const rustBindings = buildDefaultRustBindings(env);
|
|
334
|
-
return `${JSON.stringify({
|
|
335
|
-
$docs: "https://github.com/evalops/maestro",
|
|
336
|
-
$comment: "Delete any entries you do not want to override, then run /hotkeys validate inside Maestro.",
|
|
337
|
-
version: 1,
|
|
338
|
-
bindings,
|
|
339
|
-
rustBindings,
|
|
340
|
-
}, null, 2)}\n`;
|
|
341
|
-
}
|
|
342
|
-
export function initializeKeybindingsFile(options) {
|
|
343
|
-
const env = options?.env ?? process.env;
|
|
344
|
-
const path = getTuiKeybindingsFilePath(env);
|
|
345
|
-
const report = inspectKeybindingConfig(env);
|
|
346
|
-
if (report.exists && !options?.force) {
|
|
347
|
-
return { path, created: false };
|
|
348
|
-
}
|
|
349
|
-
writeTextFile(path, generateKeybindingsTemplate(env));
|
|
350
|
-
return { path, created: true };
|
|
351
|
-
}
|
|
352
|
-
export function formatKeybindingConfigReport(report) {
|
|
353
|
-
const lines = ["Keyboard Shortcuts Config:"];
|
|
354
|
-
lines.push(` Path: ${report.path}`);
|
|
355
|
-
lines.push(` Status: ${report.exists ? "present" : "missing"}`);
|
|
356
|
-
if (!report.exists) {
|
|
357
|
-
lines.push(" Hint: run /hotkeys init to create a starter file.");
|
|
358
|
-
return lines.join("\n");
|
|
359
|
-
}
|
|
360
|
-
lines.push(` TUI overrides: ${report.tuiActiveOverrides}/${report.tuiRequestedOverrides} active`);
|
|
361
|
-
lines.push(` Rust TUI overrides: ${report.rustActiveOverrides}/${report.rustRequestedOverrides} active`);
|
|
362
|
-
if (report.issues.length === 0) {
|
|
363
|
-
lines.push(" Validation: OK");
|
|
364
|
-
return lines.join("\n");
|
|
365
|
-
}
|
|
366
|
-
lines.push(` Issues: ${report.issues.length}`);
|
|
367
|
-
for (const issue of report.issues) {
|
|
368
|
-
lines.push(` - ${issue.severity.toUpperCase()}: ${issue.message}`);
|
|
369
|
-
}
|
|
370
|
-
return lines.join("\n");
|
|
371
|
-
}
|
|
372
|
-
//# sourceMappingURL=keybindings-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keybindings-config.js","sourceRoot":"","sources":["../../src/cli-tui/keybindings-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EAGxB,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,GACzB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,2BAA2B,GAAG;IACnC,iBAAiB;IACjB,aAAa;IACb,qBAAqB;IACrB,qBAAqB;CACZ,CAAC;AAEX,MAAM,6BAA6B,GAAG;IACrC,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,YAAY;CACH,CAAC;AAsBX,MAAM,UAAU,+BAA+B,CAC9C,MAA8B;IAE9B,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,iCAAiC,MAAM,CAAC,MAAM,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC;AACtI,CAAC;AAQD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAS,sBAAsB,CAAC,CAAC;AAC/D,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS,wBAAwB,CAAC,CAAC;AACnE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAS,2BAA2B,CAAC,CAAC;AACrE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS,6BAA6B,CAAC,CAAC;AAEzE,SAAS,mBAAmB,CAAC,KAAa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sBAAsB,SAAS,CAC7F,CAAC;IACF,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC","sourcesContent":["import { fileExists, readTextFile, writeTextFile } from \"../utils/fs.js\";\nimport { safeJsonParse } from \"../utils/json.js\";\nimport {\n\tTUI_KEYBINDING_ACTIONS,\n\tTUI_KEYBINDING_SHORTCUTS,\n\ttype TuiKeybindingAction,\n\ttype TuiKeybindingShortcut,\n\tgetDefaultTuiKeybindingShortcut,\n\tgetResolvedTuiKeybindings,\n\tgetTuiKeybindingsFilePath,\n} from \"./keybindings.js\";\n\nconst RUST_TUI_KEYBINDING_ACTIONS = [\n\t\"command-palette\",\n\t\"file-search\",\n\t\"toggle-tool-outputs\",\n\t\"edit-last-follow-up\",\n] as const;\n\nconst RUST_TUI_KEYBINDING_SHORTCUTS = [\n\t\"ctrl+p\",\n\t\"ctrl+o\",\n\t\"ctrl+t\",\n\t\"alt+up\",\n\t\"shift+left\",\n] as const;\n\ntype RustTuiKeybindingAction = (typeof RUST_TUI_KEYBINDING_ACTIONS)[number];\ntype RustTuiKeybindingShortcut = (typeof RUST_TUI_KEYBINDING_SHORTCUTS)[number];\n\ntype KeybindingIssueSeverity = \"error\" | \"warning\";\n\nexport interface KeybindingConfigIssue {\n\tseverity: KeybindingIssueSeverity;\n\tmessage: string;\n}\n\nexport interface KeybindingConfigReport {\n\tpath: string;\n\texists: boolean;\n\ttuiRequestedOverrides: number;\n\ttuiActiveOverrides: number;\n\trustRequestedOverrides: number;\n\trustActiveOverrides: number;\n\tissues: KeybindingConfigIssue[];\n}\n\nexport function summarizeKeybindingConfigIssues(\n\treport: KeybindingConfigReport,\n): string | null {\n\tif (!report.exists || report.issues.length === 0) {\n\t\treturn null;\n\t}\n\treturn `Keyboard shortcuts config has ${report.issues.length} issue${report.issues.length === 1 ? \"\" : \"s\"}. Run /hotkeys validate.`;\n}\n\ntype ParsedKeybindingConfig = {\n\tversion?: unknown;\n\tbindings?: unknown;\n\trustBindings?: unknown;\n};\n\nconst TUI_ACTION_SET = new Set<string>(TUI_KEYBINDING_ACTIONS);\nconst TUI_SHORTCUT_SET = new Set<string>(TUI_KEYBINDING_SHORTCUTS);\nconst RUST_ACTION_SET = new Set<string>(RUST_TUI_KEYBINDING_ACTIONS);\nconst RUST_SHORTCUT_SET = new Set<string>(RUST_TUI_KEYBINDING_SHORTCUTS);\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 isPlainObject(value: unknown): value is Record<string, unknown> {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction isTuiAction(value: string): value is TuiKeybindingAction {\n\treturn TUI_ACTION_SET.has(value);\n}\n\nfunction isTuiShortcut(value: string): value is TuiKeybindingShortcut {\n\treturn TUI_SHORTCUT_SET.has(value);\n}\n\nfunction isRustAction(value: string): value is RustTuiKeybindingAction {\n\treturn RUST_ACTION_SET.has(value);\n}\n\nfunction isRustShortcut(value: string): value is RustTuiKeybindingShortcut {\n\treturn RUST_SHORTCUT_SET.has(value);\n}\n\nfunction getDefaultRustShortcut(\n\taction: RustTuiKeybindingAction,\n\tenv: NodeJS.ProcessEnv = process.env,\n): RustTuiKeybindingShortcut {\n\tswitch (action) {\n\t\tcase \"command-palette\":\n\t\t\treturn \"ctrl+p\";\n\t\tcase \"file-search\":\n\t\t\treturn \"ctrl+o\";\n\t\tcase \"toggle-tool-outputs\":\n\t\t\treturn \"ctrl+t\";\n\t\tcase \"edit-last-follow-up\":\n\t\t\treturn getDefaultTuiKeybindingShortcut(\n\t\t\t\t\"edit-last-follow-up\",\n\t\t\t\tenv,\n\t\t\t) as RustTuiKeybindingShortcut;\n\t}\n}\n\nfunction buildDefaultRustBindings(\n\tenv: NodeJS.ProcessEnv = process.env,\n): Record<RustTuiKeybindingAction, RustTuiKeybindingShortcut> {\n\treturn {\n\t\t\"command-palette\": getDefaultRustShortcut(\"command-palette\", env),\n\t\t\"file-search\": getDefaultRustShortcut(\"file-search\", env),\n\t\t\"toggle-tool-outputs\": getDefaultRustShortcut(\"toggle-tool-outputs\", env),\n\t\t\"edit-last-follow-up\": getDefaultRustShortcut(\"edit-last-follow-up\", env),\n\t};\n}\n\nfunction parseTuiOverrides(\n\tvalue: unknown,\n\tissues: KeybindingConfigIssue[],\n): Partial<Record<TuiKeybindingAction, TuiKeybindingShortcut>> {\n\tif (value === undefined) {\n\t\treturn {};\n\t}\n\tif (!isPlainObject(value)) {\n\t\tissues.push({\n\t\t\tseverity: \"error\",\n\t\t\tmessage: '\"bindings\" must be an object of action-to-shortcut overrides.',\n\t\t});\n\t\treturn {};\n\t}\n\n\tconst overrides: Partial<Record<TuiKeybindingAction, TuiKeybindingShortcut>> =\n\t\t{};\n\tfor (const [rawAction, rawShortcut] of Object.entries(value)) {\n\t\tconst action = normalizeActionName(rawAction);\n\t\tif (!isTuiAction(action)) {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `Unknown TUI keybinding action \"${rawAction}\". Supported actions: ${TUI_KEYBINDING_ACTIONS.join(\", \")}.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof rawShortcut !== \"string\") {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `TUI action \"${action}\" must map to a shortcut string.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst shortcut = normalizeShortcutName(rawShortcut);\n\t\tif (!isTuiShortcut(shortcut)) {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `Unsupported TUI shortcut \"${rawShortcut}\" for \"${action}\". Supported shortcuts: ${TUI_KEYBINDING_SHORTCUTS.join(\", \")}.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\toverrides[action] = shortcut;\n\t}\n\treturn overrides;\n}\n\nfunction parseRustOverrides(\n\tvalue: unknown,\n\tissues: KeybindingConfigIssue[],\n): Partial<Record<RustTuiKeybindingAction, RustTuiKeybindingShortcut>> {\n\tif (value === undefined) {\n\t\treturn {};\n\t}\n\tif (!isPlainObject(value)) {\n\t\tissues.push({\n\t\t\tseverity: \"error\",\n\t\t\tmessage:\n\t\t\t\t'\"rustBindings\" must be an object of action-to-shortcut overrides.',\n\t\t});\n\t\treturn {};\n\t}\n\n\tconst overrides: Partial<\n\t\tRecord<RustTuiKeybindingAction, RustTuiKeybindingShortcut>\n\t> = {};\n\tfor (const [rawAction, rawShortcut] of Object.entries(value)) {\n\t\tconst action = normalizeActionName(rawAction);\n\t\tif (!isRustAction(action)) {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `Unknown Rust TUI keybinding action \"${rawAction}\". Supported actions: ${RUST_TUI_KEYBINDING_ACTIONS.join(\", \")}.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof rawShortcut !== \"string\") {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `Rust TUI action \"${action}\" must map to a shortcut string.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst shortcut = normalizeShortcutName(rawShortcut);\n\t\tif (!isRustShortcut(shortcut)) {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: `Unsupported Rust TUI shortcut \"${rawShortcut}\" for \"${action}\". Supported shortcuts: ${RUST_TUI_KEYBINDING_SHORTCUTS.join(\", \")}.`,\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\toverrides[action] = shortcut;\n\t}\n\treturn overrides;\n}\n\nfunction collectTuiConflictIssues(\n\toverrides: Partial<Record<TuiKeybindingAction, TuiKeybindingShortcut>>,\n\tenv: NodeJS.ProcessEnv,\n): KeybindingConfigIssue[] {\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 resolved = { ...defaults, ...overrides };\n\tconst issues: KeybindingConfigIssue[] = [];\n\tconst seen = new Set<string>();\n\tlet changed = true;\n\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 [shortcut, actions] of actionsByShortcut.entries()) {\n\t\t\tif (actions.length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (const action of actions) {\n\t\t\t\tif (!Object.prototype.hasOwnProperty.call(overrides, action)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (resolved[action] === defaults[action]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst key = `${action}:${shortcut}`;\n\t\t\t\tif (!seen.has(key)) {\n\t\t\t\t\tissues.push({\n\t\t\t\t\t\tseverity: \"warning\",\n\t\t\t\t\t\tmessage: `TUI override \"${action}: ${shortcut}\" conflicts with ${actions\n\t\t\t\t\t\t\t.filter((candidate) => candidate !== action)\n\t\t\t\t\t\t\t.join(\", \")} and falls back to ${defaults[action]}.`,\n\t\t\t\t\t});\n\t\t\t\t\tseen.add(key);\n\t\t\t\t}\n\t\t\t\tresolved[action] = defaults[action];\n\t\t\t\tchanged = true;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn issues;\n}\n\nfunction collectRustConflictIssues(\n\toverrides: Partial<\n\t\tRecord<RustTuiKeybindingAction, RustTuiKeybindingShortcut>\n\t>,\n\tenv: NodeJS.ProcessEnv,\n): KeybindingConfigIssue[] {\n\tconst defaults = buildDefaultRustBindings(env);\n\tconst resolved = { ...defaults, ...overrides };\n\tconst issues: KeybindingConfigIssue[] = [];\n\tconst seen = new Set<string>();\n\tlet changed = true;\n\n\twhile (changed) {\n\t\tchanged = false;\n\t\tconst actionsByShortcut = new Map<\n\t\t\tRustTuiKeybindingShortcut,\n\t\t\tRustTuiKeybindingAction[]\n\t\t>();\n\t\tfor (const action of RUST_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 [shortcut, actions] of actionsByShortcut.entries()) {\n\t\t\tif (actions.length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor (const action of actions) {\n\t\t\t\tif (!Object.prototype.hasOwnProperty.call(overrides, action)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (resolved[action] === defaults[action]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst key = `${action}:${shortcut}`;\n\t\t\t\tif (!seen.has(key)) {\n\t\t\t\t\tissues.push({\n\t\t\t\t\t\tseverity: \"warning\",\n\t\t\t\t\t\tmessage: `Rust TUI override \"${action}: ${shortcut}\" conflicts with ${actions\n\t\t\t\t\t\t\t.filter((candidate) => candidate !== action)\n\t\t\t\t\t\t\t.join(\", \")} and falls back to ${defaults[action]}.`,\n\t\t\t\t\t});\n\t\t\t\t\tseen.add(key);\n\t\t\t\t}\n\t\t\t\tresolved[action] = defaults[action];\n\t\t\t\tchanged = true;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn issues;\n}\n\nexport function inspectKeybindingConfig(\n\tenv: NodeJS.ProcessEnv = process.env,\n): KeybindingConfigReport {\n\tconst path = getTuiKeybindingsFilePath(env);\n\tif (!fileExists(path)) {\n\t\treturn {\n\t\t\tpath,\n\t\t\texists: false,\n\t\t\ttuiRequestedOverrides: 0,\n\t\t\ttuiActiveOverrides: 0,\n\t\t\trustRequestedOverrides: 0,\n\t\t\trustActiveOverrides: 0,\n\t\t\tissues: [],\n\t\t};\n\t}\n\ttry {\n\t\tconst content = readTextFile(path);\n\t\tconst issues: KeybindingConfigIssue[] = [];\n\t\tconst parsed = safeJsonParse<ParsedKeybindingConfig>(content, path);\n\t\tif (!parsed.success) {\n\t\t\treturn {\n\t\t\t\tpath,\n\t\t\t\texists: true,\n\t\t\t\ttuiRequestedOverrides: 0,\n\t\t\t\ttuiActiveOverrides: 0,\n\t\t\t\trustRequestedOverrides: 0,\n\t\t\t\trustActiveOverrides: 0,\n\t\t\t\tissues: [\n\t\t\t\t\t{\n\t\t\t\t\t\tseverity: \"error\",\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\tparsed.error.cause?.message ??\n\t\t\t\t\t\t\t\"Failed to parse keybindings.json.\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t};\n\t\t}\n\t\tif (!isPlainObject(parsed.data)) {\n\t\t\treturn {\n\t\t\t\tpath,\n\t\t\t\texists: true,\n\t\t\t\ttuiRequestedOverrides: 0,\n\t\t\t\ttuiActiveOverrides: 0,\n\t\t\t\trustRequestedOverrides: 0,\n\t\t\t\trustActiveOverrides: 0,\n\t\t\t\tissues: [\n\t\t\t\t\t{\n\t\t\t\t\t\tseverity: \"error\",\n\t\t\t\t\t\tmessage: \"keybindings.json must contain a JSON object.\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t};\n\t\t}\n\n\t\tif (parsed.data.version !== 1) {\n\t\t\tissues.push({\n\t\t\t\tseverity: \"error\",\n\t\t\t\tmessage: 'keybindings.json must include `\"version\": 1`.',\n\t\t\t});\n\t\t}\n\n\t\tconst tuiOverrides = parseTuiOverrides(parsed.data.bindings, issues);\n\t\tconst rustOverrides = parseRustOverrides(parsed.data.rustBindings, issues);\n\t\tissues.push(...collectTuiConflictIssues(tuiOverrides, env));\n\t\tissues.push(...collectRustConflictIssues(rustOverrides, env));\n\n\t\tconst activeTuiOverrides = Object.entries(tuiOverrides).filter(\n\t\t\t([action, shortcut]) =>\n\t\t\t\tgetResolvedTuiKeybindings(env)[action as TuiKeybindingAction] ===\n\t\t\t\tshortcut,\n\t\t).length;\n\n\t\tconst rustDefaults = buildDefaultRustBindings(env);\n\t\tconst activeRustOverrides = Object.entries(rustOverrides).filter(\n\t\t\t([action, shortcut]) =>\n\t\t\t\trustDefaults[action as RustTuiKeybindingAction] !== shortcut,\n\t\t).length;\n\n\t\treturn {\n\t\t\tpath,\n\t\t\texists: true,\n\t\t\ttuiRequestedOverrides: Object.keys(tuiOverrides).length,\n\t\t\ttuiActiveOverrides: activeTuiOverrides,\n\t\t\trustRequestedOverrides: Object.keys(rustOverrides).length,\n\t\t\trustActiveOverrides: activeRustOverrides,\n\t\t\tissues,\n\t\t};\n\t} catch {\n\t\treturn {\n\t\t\tpath,\n\t\t\texists: true,\n\t\t\ttuiRequestedOverrides: 0,\n\t\t\ttuiActiveOverrides: 0,\n\t\t\trustRequestedOverrides: 0,\n\t\t\trustActiveOverrides: 0,\n\t\t\tissues: [\n\t\t\t\t{\n\t\t\t\t\tseverity: \"error\",\n\t\t\t\t\tmessage: \"Failed to read keybindings.json.\",\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t}\n}\n\nexport function generateKeybindingsTemplate(\n\tenv: NodeJS.ProcessEnv = process.env,\n): string {\n\tconst bindings = Object.fromEntries(\n\t\tTUI_KEYBINDING_ACTIONS.map((action) => [\n\t\t\taction,\n\t\t\tgetDefaultTuiKeybindingShortcut(action, env),\n\t\t]),\n\t);\n\tconst rustBindings = buildDefaultRustBindings(env);\n\treturn `${JSON.stringify(\n\t\t{\n\t\t\t$docs: \"https://github.com/evalops/maestro\",\n\t\t\t$comment:\n\t\t\t\t\"Delete any entries you do not want to override, then run /hotkeys validate inside Maestro.\",\n\t\t\tversion: 1,\n\t\t\tbindings,\n\t\t\trustBindings,\n\t\t},\n\t\tnull,\n\t\t2,\n\t)}\\n`;\n}\n\nexport function initializeKeybindingsFile(options?: {\n\tenv?: NodeJS.ProcessEnv;\n\tforce?: boolean;\n}): { path: string; created: boolean } {\n\tconst env = options?.env ?? process.env;\n\tconst path = getTuiKeybindingsFilePath(env);\n\tconst report = inspectKeybindingConfig(env);\n\tif (report.exists && !options?.force) {\n\t\treturn { path, created: false };\n\t}\n\twriteTextFile(path, generateKeybindingsTemplate(env));\n\treturn { path, created: true };\n}\n\nexport function formatKeybindingConfigReport(\n\treport: KeybindingConfigReport,\n): string {\n\tconst lines = [\"Keyboard Shortcuts Config:\"];\n\tlines.push(` Path: ${report.path}`);\n\tlines.push(` Status: ${report.exists ? \"present\" : \"missing\"}`);\n\tif (!report.exists) {\n\t\tlines.push(\" Hint: run /hotkeys init to create a starter file.\");\n\t\treturn lines.join(\"\\n\");\n\t}\n\tlines.push(\n\t\t` TUI overrides: ${report.tuiActiveOverrides}/${report.tuiRequestedOverrides} active`,\n\t);\n\tlines.push(\n\t\t` Rust TUI overrides: ${report.rustActiveOverrides}/${report.rustRequestedOverrides} active`,\n\t);\n\tif (report.issues.length === 0) {\n\t\tlines.push(\" Validation: OK\");\n\t\treturn lines.join(\"\\n\");\n\t}\n\tlines.push(` Issues: ${report.issues.length}`);\n\tfor (const issue of report.issues) {\n\t\tlines.push(` - ${issue.severity.toUpperCase()}: ${issue.message}`);\n\t}\n\treturn lines.join(\"\\n\");\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type KeybindingConfigReport } from "./keybindings-config.js";
|
|
2
|
-
export interface TuiKeybindingWatcherOptions {
|
|
3
|
-
env?: NodeJS.ProcessEnv;
|
|
4
|
-
onReload?: (report: KeybindingConfigReport) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function startTuiKeybindingWatcher(options?: TuiKeybindingWatcherOptions): void;
|
|
7
|
-
export declare function stopTuiKeybindingWatcher(): void;
|
|
8
|
-
//# sourceMappingURL=keybindings-watcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keybindings-watcher.d.ts","sourceRoot":"","sources":["../../src/cli-tui/keybindings-watcher.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,sBAAsB,EAE3B,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,2BAA2B;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACpD;AAaD,wBAAgB,yBAAyB,CACxC,OAAO,GAAE,2BAAgC,GACvC,IAAI,CAkCN;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAO/C"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { existsSync, watch } from "node:fs";
|
|
2
|
-
import { basename, dirname } from "node:path";
|
|
3
|
-
import { inspectKeybindingConfig, } from "./keybindings-config.js";
|
|
4
|
-
import { getTuiKeybindingsFilePath, resetTuiKeybindingConfigCache, } from "./keybindings.js";
|
|
5
|
-
let keybindingWatcher;
|
|
6
|
-
let reloadTimeout;
|
|
7
|
-
let watcherGeneration = 0;
|
|
8
|
-
function clearWatcherTimer() {
|
|
9
|
-
if (reloadTimeout) {
|
|
10
|
-
clearTimeout(reloadTimeout);
|
|
11
|
-
reloadTimeout = undefined;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export function startTuiKeybindingWatcher(options = {}) {
|
|
15
|
-
stopTuiKeybindingWatcher();
|
|
16
|
-
const env = options.env ?? process.env;
|
|
17
|
-
const filePath = getTuiKeybindingsFilePath(env);
|
|
18
|
-
const configDir = dirname(filePath);
|
|
19
|
-
if (!existsSync(configDir)) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const expectedFilename = basename(filePath);
|
|
23
|
-
const generation = watcherGeneration;
|
|
24
|
-
try {
|
|
25
|
-
keybindingWatcher = watch(configDir, (_eventType, filename) => {
|
|
26
|
-
if (generation !== watcherGeneration) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const changedFilename = filename?.toString();
|
|
30
|
-
if (changedFilename && changedFilename !== expectedFilename) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
clearWatcherTimer();
|
|
34
|
-
reloadTimeout = setTimeout(() => {
|
|
35
|
-
if (generation !== watcherGeneration) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
resetTuiKeybindingConfigCache();
|
|
39
|
-
options.onReload?.(inspectKeybindingConfig(env));
|
|
40
|
-
}, 100);
|
|
41
|
-
});
|
|
42
|
-
keybindingWatcher.unref?.();
|
|
43
|
-
}
|
|
44
|
-
catch {
|
|
45
|
-
// Ignore watcher setup failures; keybindings still reload on the next launch.
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export function stopTuiKeybindingWatcher() {
|
|
49
|
-
watcherGeneration += 1;
|
|
50
|
-
clearWatcherTimer();
|
|
51
|
-
if (keybindingWatcher) {
|
|
52
|
-
keybindingWatcher.close();
|
|
53
|
-
keybindingWatcher = undefined;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=keybindings-watcher.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QAAQ,EAAE,QAAQ,EAAE,CAAC;YAC7C,IAAI,eAAe,IAAI,eAAe,KAAK,gBAAgB,EAAE,CAAC;gBAC7D,OAAO;YACR,CAAC;YACD,iBAAiB,EAAE,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC/B,IAAI,UAAU,KAAK,iBAAiB,EAAE,CAAC;oBACtC,OAAO;gBACR,CAAC;gBACD,6BAA6B,EAAE,CAAC;gBAChC,OAAO,CAAC,QAAQ,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC;YAClD,CAAC,EAAE,GAAG,CAAC,CAAC;QACT,CAAC,CAAC,CAAC;QACH,iBAAiB,CAAC,KAAK,EAAE,EAAE,CAAC;IAC7B,CAAC;IAAC,MAAM,CAAC;QACR,8EAA8E;IAC/E,CAAC;AACF,CAAC;AAED,MAAM,UAAU,wBAAwB;IACvC,iBAAiB,IAAI,CAAC,CAAC;IACvB,iBAAiB,EAAE,CAAC;IACpB,IAAI,iBAAiB,EAAE,CAAC;QACvB,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC1B,iBAAiB,GAAG,SAAS,CAAC;IAC/B,CAAC;AACF,CAAC","sourcesContent":["import { type FSWatcher, existsSync, watch } from \"node:fs\";\nimport { basename, dirname } from \"node:path\";\nimport {\n\ttype KeybindingConfigReport,\n\tinspectKeybindingConfig,\n} from \"./keybindings-config.js\";\nimport {\n\tgetTuiKeybindingsFilePath,\n\tresetTuiKeybindingConfigCache,\n} from \"./keybindings.js\";\n\nexport interface TuiKeybindingWatcherOptions {\n\tenv?: NodeJS.ProcessEnv;\n\tonReload?: (report: KeybindingConfigReport) => void;\n}\n\nlet keybindingWatcher: FSWatcher | undefined;\nlet reloadTimeout: ReturnType<typeof setTimeout> | undefined;\nlet watcherGeneration = 0;\n\nfunction clearWatcherTimer(): void {\n\tif (reloadTimeout) {\n\t\tclearTimeout(reloadTimeout);\n\t\treloadTimeout = undefined;\n\t}\n}\n\nexport function startTuiKeybindingWatcher(\n\toptions: TuiKeybindingWatcherOptions = {},\n): void {\n\tstopTuiKeybindingWatcher();\n\tconst env = options.env ?? process.env;\n\tconst filePath = getTuiKeybindingsFilePath(env);\n\tconst configDir = dirname(filePath);\n\tif (!existsSync(configDir)) {\n\t\treturn;\n\t}\n\n\tconst expectedFilename = basename(filePath);\n\tconst generation = watcherGeneration;\n\n\ttry {\n\t\tkeybindingWatcher = watch(configDir, (_eventType, filename) => {\n\t\t\tif (generation !== watcherGeneration) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst changedFilename = filename?.toString();\n\t\t\tif (changedFilename && changedFilename !== expectedFilename) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tclearWatcherTimer();\n\t\t\treloadTimeout = setTimeout(() => {\n\t\t\t\tif (generation !== watcherGeneration) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tresetTuiKeybindingConfigCache();\n\t\t\t\toptions.onReload?.(inspectKeybindingConfig(env));\n\t\t\t}, 100);\n\t\t});\n\t\tkeybindingWatcher.unref?.();\n\t} catch {\n\t\t// Ignore watcher setup failures; keybindings still reload on the next launch.\n\t}\n}\n\nexport function stopTuiKeybindingWatcher(): void {\n\twatcherGeneration += 1;\n\tclearWatcherTimer();\n\tif (keybindingWatcher) {\n\t\tkeybindingWatcher.close();\n\t\tkeybindingWatcher = undefined;\n\t}\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const TUI_KEYBINDING_ACTIONS: readonly ["cycle-model", "toggle-tool-outputs", "toggle-thinking-blocks", "external-editor", "suspend", "command-palette", "edit-last-follow-up"];
|
|
2
|
-
export type TuiKeybindingAction = (typeof TUI_KEYBINDING_ACTIONS)[number];
|
|
3
|
-
export declare const TUI_KEYBINDING_SHORTCUTS: readonly ["ctrl+g", "ctrl+k", "ctrl+o", "ctrl+p", "ctrl+t", "ctrl+z", "alt+up", "shift+left"];
|
|
4
|
-
export type TuiKeybindingShortcut = (typeof TUI_KEYBINDING_SHORTCUTS)[number];
|
|
5
|
-
export declare function getTuiKeybindingsFilePath(env?: NodeJS.ProcessEnv): string;
|
|
6
|
-
export declare function resetTuiKeybindingConfigCache(): void;
|
|
7
|
-
export declare function getDefaultTuiKeybindingShortcut(action: TuiKeybindingAction, env?: NodeJS.ProcessEnv): TuiKeybindingShortcut;
|
|
8
|
-
export declare function getResolvedTuiKeybindings(env?: NodeJS.ProcessEnv): Record<TuiKeybindingAction, TuiKeybindingShortcut>;
|
|
9
|
-
export declare function getTuiKeybindingShortcut(action: TuiKeybindingAction, env?: NodeJS.ProcessEnv): TuiKeybindingShortcut;
|
|
10
|
-
export declare function getTuiKeybindingLabel(action: TuiKeybindingAction, env?: NodeJS.ProcessEnv): string;
|
|
11
|
-
export declare function matchesTuiKeybinding(action: TuiKeybindingAction, data: string, env?: NodeJS.ProcessEnv): boolean;
|
|
12
|
-
export declare function getTuiKeybindingSequence(action: TuiKeybindingAction, env?: NodeJS.ProcessEnv): string;
|
|
13
|
-
//# sourceMappingURL=keybindings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keybindings.d.ts","sourceRoot":"","sources":["../../src/cli-tui/keybindings.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,mJAQzB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,+FAS3B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AA0H9E,wBAAgB,yBAAyB,CACxC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,MAAM,CAYR;AA0ED,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD;AAED,wBAAgB,+BAA+B,CAC9C,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,qBAAqB,CAKvB;AAED,wBAAgB,yBAAyB,CACxC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,MAAM,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAyCpD;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,qBAAqB,CAEvB;AAED,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,MAAM,CAER;AAED,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,OAAO,CAET;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,mBAAmB,EAC3B,GAAG,GAAE,MAAM,CAAC,UAAwB,GAClC,MAAM,CAER"}
|