@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"history-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/history-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAqBzE,gFAAgF;AAEhF,MAAM,OAAO,iBAAiB;IAI7B,YAAY,OAAiC;QAC5C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,CAAC;IAED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AAM,OAAO,GAAG,KAAK,CAAC,OAAO;gBAC5B,CAAC,CAAC,MAAM,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE;gBAC1C,CAAC,CAAC,EAAE,CAAC;YACN,KAAK,CAAC,IAAI,CACT,GAAG,MAAM,IAAI,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,GAAG,OAAO,EAAE,CACpE,CAAC;QACH,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpD,CAAC;CACD;AAED,gFAAgF;AAEhF,MAAM,UAAU,uBAAuB,CACtC,OAAiC;IAEjC,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC","sourcesContent":["/**\n * HistoryController — Handles /history and /toolhistory commands.\n *\n * Renders prompt history, tool execution history, and tool statistics.\n * Stateless — all data comes from the SessionContext stores.\n */\n\nimport type { CommandExecutionContext } from \"../commands/types.js\";\nimport type { PromptHistoryEntry } from \"../history/prompt-history.js\";\nimport type {\n\tToolHistoryEntry,\n\tToolHistoryStore,\n} from \"../history/tool-history.js\";\nimport type { SessionContext } from \"../session/session-context.js\";\nimport { formatDuration, formatPreview } from \"../utils/text-preview.js\";\n\n// ─── Callback & Dependency Interfaces ────────────────────────────────────────\n\nexport interface HistoryControllerCallbacks {\n\t/** Push markdown/text content into the chat container. */\n\tpushCommandOutput: (text: string) => void;\n\t/** Show a transient info notification. */\n\tshowInfo: (message: string) => void;\n}\n\nexport interface HistoryControllerDeps {\n\t/** Session context that owns the history stores. */\n\tsessionContext: SessionContext;\n}\n\nexport interface HistoryControllerOptions {\n\tdeps: HistoryControllerDeps;\n\tcallbacks: HistoryControllerCallbacks;\n}\n\n// ─── Controller ──────────────────────────────────────────────────────────────\n\nexport class HistoryController {\n\tprivate readonly deps: HistoryControllerDeps;\n\tprivate readonly callbacks: HistoryControllerCallbacks;\n\n\tconstructor(options: HistoryControllerOptions) {\n\t\tthis.deps = options.deps;\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\t// ─── /history ──────────────────────────────────────────────────────────\n\n\thandleHistoryCommand(context: CommandExecutionContext): void {\n\t\tconst raw = context.argumentText.trim();\n\t\tconst history = this.deps.sessionContext.getPromptHistory();\n\t\tif ([\"help\", \"?\", \"-h\", \"--help\"].includes(raw.toLowerCase())) {\n\t\t\tcontext.renderHelp();\n\t\t\treturn;\n\t\t}\n\n\t\tif (!raw) {\n\t\t\tthis.renderPromptHistory(history.recent(20), \"Recent Prompts\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (raw.toLowerCase() === \"clear\") {\n\t\t\thistory.clear();\n\t\t\tcontext.showInfo(\"Prompt history cleared.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (/^\\d+$/.test(raw)) {\n\t\t\tconst count = Number.parseInt(raw, 10);\n\t\t\tthis.renderPromptHistory(history.recent(count), \"Recent Prompts\");\n\t\t\treturn;\n\t\t}\n\n\t\tconst results = history.search(raw, 10);\n\t\tif (results.length === 0) {\n\t\t\tcontext.showInfo(`No matches for \"${raw}\".`);\n\t\t\treturn;\n\t\t}\n\t\tthis.renderPromptHistory(results, `Search Results for \"${raw}\"`);\n\t}\n\n\t// ─── /toolhistory ──────────────────────────────────────────────────────\n\n\thandleToolHistoryCommand(context: CommandExecutionContext): void {\n\t\tconst raw = context.argumentText.trim();\n\t\tconst toolHistory = this.deps.sessionContext.getToolHistory();\n\t\tif ([\"help\", \"?\", \"-h\", \"--help\"].includes(raw.toLowerCase())) {\n\t\t\tcontext.renderHelp();\n\t\t\treturn;\n\t\t}\n\n\t\tconst parts = raw.split(/\\s+/).filter(Boolean);\n\t\tconst primary = parts[0]?.toLowerCase();\n\n\t\tif (!primary) {\n\t\t\tthis.renderToolHistoryList(\n\t\t\t\ttoolHistory.recent(10),\n\t\t\t\t\"Recent Tool Executions\",\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tif (primary === \"clear\") {\n\t\t\ttoolHistory.clear();\n\t\t\tcontext.showInfo(\"Tool history cleared.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (primary === \"stats\" || primary === \"statistics\") {\n\t\t\tthis.renderToolHistoryStats(toolHistory);\n\t\t\treturn;\n\t\t}\n\n\t\tif (primary === \"tool\") {\n\t\t\tconst name = parts.slice(1).join(\" \").trim();\n\t\t\tif (!name) {\n\t\t\t\tcontext.showError(\"Usage: /toolhistory tool <name>\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.renderToolHistoryForTool(toolHistory, name);\n\t\t\treturn;\n\t\t}\n\n\t\tif (/^\\d+$/.test(primary)) {\n\t\t\tconst count = Number.parseInt(primary, 10);\n\t\t\tthis.renderToolHistoryList(\n\t\t\t\ttoolHistory.recent(count),\n\t\t\t\t\"Recent Tool Executions\",\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.renderToolHistoryForTool(toolHistory, primary);\n\t}\n\n\t// ─── Rendering ─────────────────────────────────────────────────────────\n\n\tprivate renderPromptHistory(\n\t\tentries: PromptHistoryEntry[],\n\t\ttitle: string,\n\t): void {\n\t\tif (!entries.length) {\n\t\t\tthis.callbacks.showInfo(\"No prompt history.\");\n\t\t\treturn;\n\t\t}\n\t\tconst lines = [`## ${title}`, \"\"];\n\t\tfor (let i = 0; i < entries.length; i++) {\n\t\t\tconst entry = entries[i];\n\t\t\tif (!entry) continue;\n\t\t\tlines.push(`${i + 1}. ${formatPreview(entry.prompt, 80)}`);\n\t\t}\n\t\tthis.callbacks.pushCommandOutput(lines.join(\"\\n\"));\n\t}\n\n\tprivate renderToolHistoryList(\n\t\tentries: ToolHistoryEntry[],\n\t\ttitle: string,\n\t): void {\n\t\tif (!entries.length) {\n\t\t\tthis.callbacks.showInfo(\"No tool history.\");\n\t\t\treturn;\n\t\t}\n\t\tconst lines = [`## ${title}`, \"\"];\n\t\tfor (const entry of entries) {\n\t\t\tconst status = entry.isError ? \"✗\" : \"✓\";\n\t\t\tconst label = entry.summary ?? entry.tool;\n\t\t\tlines.push(`${status} ${label} (${formatDuration(entry.durationMs)})`);\n\t\t}\n\t\tthis.callbacks.pushCommandOutput(lines.join(\"\\n\"));\n\t}\n\n\tprivate renderToolHistoryStats(toolHistory: ToolHistoryStore): void {\n\t\tconst stats = toolHistory.stats();\n\t\tif (stats.total === 0) {\n\t\t\tthis.callbacks.showInfo(\"No tool history.\");\n\t\t\treturn;\n\t\t}\n\t\tconst entries = Array.from(stats.byTool.entries()).sort(\n\t\t\t(a, b) => b[1].total - a[1].total,\n\t\t);\n\t\tconst lines = [\n\t\t\t\"## Tool Statistics\",\n\t\t\t\"\",\n\t\t\t`Total executions: ${stats.total}`,\n\t\t\t\"\",\n\t\t];\n\t\tfor (const [tool, summary] of entries) {\n\t\t\tconst errorRate =\n\t\t\t\tsummary.total > 0\n\t\t\t\t\t? `${Math.round((summary.errors / summary.total) * 100)}%`\n\t\t\t\t\t: \"0%\";\n\t\t\tlines.push(\n\t\t\t\t`${tool}: ${summary.total} run${summary.total === 1 ? \"\" : \"s\"} (${summary.errors} error${summary.errors === 1 ? \"\" : \"s\"}, ${errorRate} error rate)`,\n\t\t\t);\n\t\t}\n\t\tthis.callbacks.pushCommandOutput(lines.join(\"\\n\"));\n\t}\n\n\tprivate renderToolHistoryForTool(\n\t\ttoolHistory: ToolHistoryStore,\n\t\tname: string,\n\t): void {\n\t\tconst entries = toolHistory.forTool(name, 10);\n\t\tif (!entries.length) {\n\t\t\tthis.callbacks.showInfo(`No history for tool \"${name}\".`);\n\t\t\treturn;\n\t\t}\n\t\tconst lines = [`## History for \"${name}\"`, \"\"];\n\t\tfor (const entry of entries) {\n\t\t\tconst status = entry.isError ? \"✗\" : \"✓\";\n\t\t\tconst label = entry.summary ?? entry.tool;\n\t\t\tconst preview = entry.preview\n\t\t\t\t? ` · ${formatPreview(entry.preview, 80)}`\n\t\t\t\t: \"\";\n\t\t\tlines.push(\n\t\t\t\t`${status} ${formatDuration(entry.durationMs)} - ${label}${preview}`,\n\t\t\t);\n\t\t}\n\t\tthis.callbacks.pushCommandOutput(lines.join(\"\\n\"));\n\t}\n}\n\n// ─── Factory ─────────────────────────────────────────────────────────────────\n\nexport function createHistoryController(\n\toptions: HistoryControllerOptions,\n): HistoryController {\n\treturn new HistoryController(options);\n}\n"]}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HookUiController — Manages hook UI interactions and command entries.
|
|
3
|
-
*
|
|
4
|
-
* Provides the HookUIContext and HookCommandContext implementations used by
|
|
5
|
-
* TypeScript hooks, and builds slash-command entries for registered hook commands.
|
|
6
|
-
*/
|
|
7
|
-
import type { Component, SlashCommand, TUI } from "@evalops/tui";
|
|
8
|
-
import type { Agent } from "../../agent/agent.js";
|
|
9
|
-
import type { SessionManager } from "../../session/manager.js";
|
|
10
|
-
import type { CommandEntry, CommandExecutionContext } from "../commands/types.js";
|
|
11
|
-
import type { ModalManager } from "../modal-manager.js";
|
|
12
|
-
import type { NotificationView } from "../notification-view.js";
|
|
13
|
-
import type { FooterHint } from "../utils/footer-utils.js";
|
|
14
|
-
export interface HookUiControllerCallbacks {
|
|
15
|
-
/** Trigger a footer hint refresh cycle. */
|
|
16
|
-
refreshFooterHint: () => void;
|
|
17
|
-
/** Request a UI render cycle. */
|
|
18
|
-
requestRender: () => void;
|
|
19
|
-
}
|
|
20
|
-
export interface HookUiControllerDeps {
|
|
21
|
-
/** The TUI instance for rendering. */
|
|
22
|
-
ui: TUI;
|
|
23
|
-
/** Get the current editor text. */
|
|
24
|
-
getEditorText: () => string;
|
|
25
|
-
/** Set the editor text content. */
|
|
26
|
-
setEditorText: (text: string) => void;
|
|
27
|
-
/** Modal manager for pushing/popping modal overlays. */
|
|
28
|
-
modalManager: ModalManager;
|
|
29
|
-
/** Agent for streaming state and abort. */
|
|
30
|
-
agent: Agent;
|
|
31
|
-
/** Session manager for session file path. */
|
|
32
|
-
sessionManager: SessionManager;
|
|
33
|
-
/** Notification view for toasts and error messages. */
|
|
34
|
-
notificationView: NotificationView;
|
|
35
|
-
/** Create a HookInputModal instance. */
|
|
36
|
-
createHookInputModal: (options: {
|
|
37
|
-
ui: TUI;
|
|
38
|
-
title: string;
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
prefill?: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
onSubmit: (value: string) => void;
|
|
43
|
-
onCancel: () => void;
|
|
44
|
-
}) => Component;
|
|
45
|
-
/** Build a CommandExecutionContext from raw command data. */
|
|
46
|
-
createCommandContext: (params: {
|
|
47
|
-
command: SlashCommand;
|
|
48
|
-
rawInput: string;
|
|
49
|
-
argumentText: string;
|
|
50
|
-
}) => CommandExecutionContext;
|
|
51
|
-
}
|
|
52
|
-
export interface HookUiControllerOptions {
|
|
53
|
-
deps: HookUiControllerDeps;
|
|
54
|
-
callbacks: HookUiControllerCallbacks;
|
|
55
|
-
}
|
|
56
|
-
export declare class HookUiController {
|
|
57
|
-
private readonly deps;
|
|
58
|
-
private readonly callbacks;
|
|
59
|
-
private readonly hookStatusByKey;
|
|
60
|
-
private hookUiContext?;
|
|
61
|
-
constructor(options: HookUiControllerOptions);
|
|
62
|
-
/** Create and register the global HookUIContext. */
|
|
63
|
-
initializeGlobalContext(): void;
|
|
64
|
-
/** Footer hints from active hook status entries. */
|
|
65
|
-
getHookStatusHints(): FooterHint[];
|
|
66
|
-
/** Build slash-command entries for registered TypeScript hook commands. */
|
|
67
|
-
buildHookCommandEntries(existingCommands: SlashCommand[]): {
|
|
68
|
-
entries: CommandEntry[];
|
|
69
|
-
commands: SlashCommand[];
|
|
70
|
-
};
|
|
71
|
-
private createHookUiContext;
|
|
72
|
-
private showHookSelector;
|
|
73
|
-
private showHookConfirm;
|
|
74
|
-
private showHookInput;
|
|
75
|
-
private showHookEditor;
|
|
76
|
-
private showHookCustom;
|
|
77
|
-
private createHookCommandContext;
|
|
78
|
-
private execHookCommand;
|
|
79
|
-
private sanitizeHookStatusText;
|
|
80
|
-
private setHookStatus;
|
|
81
|
-
}
|
|
82
|
-
export declare function createHookUiController(options: HookUiControllerOptions): HookUiController;
|
|
83
|
-
//# sourceMappingURL=hook-ui-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook-ui-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/hook-ui-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EACX,YAAY,EACZ,uBAAuB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,MAAM,WAAW,yBAAyB;IACzC,2CAA2C;IAC3C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,iCAAiC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACpC,sCAAsC;IACtC,EAAE,EAAE,GAAG,CAAC;IACR,mCAAmC;IACnC,aAAa,EAAE,MAAM,MAAM,CAAC;IAC5B,mCAAmC;IACnC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,wDAAwD;IACxD,YAAY,EAAE,YAAY,CAAC;IAC3B,2CAA2C;IAC3C,KAAK,EAAE,KAAK,CAAC;IACb,6CAA6C;IAC7C,cAAc,EAAE,cAAc,CAAC;IAC/B,uDAAuD;IACvD,gBAAgB,EAAE,gB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;YAuBR,cAAc;IAwC5B,OAAO,CAAC,wBAAwB;IA0BhC,OAAO,CAAC,eAAe;IAwCvB,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,aAAa;CAgBrB;AAID,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,uBAAuB,GAC9B,gBAAgB,CAElB"}
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HookUiController — Manages hook UI interactions and command entries.
|
|
3
|
-
*
|
|
4
|
-
* Provides the HookUIContext and HookCommandContext implementations used by
|
|
5
|
-
* TypeScript hooks, and builds slash-command entries for registered hook commands.
|
|
6
|
-
*/
|
|
7
|
-
import { spawn } from "node:child_process";
|
|
8
|
-
import { Spacer, Text } from "@evalops/tui";
|
|
9
|
-
import { getTypeScriptHookCommands, setGlobalUIContext, } from "../../hooks/index.js";
|
|
10
|
-
import { theme } from "../../theme/theme.js";
|
|
11
|
-
import { createLogger } from "../../utils/logger.js";
|
|
12
|
-
import { BaseSelectorComponent } from "../selectors/base-selector.js";
|
|
13
|
-
const logger = createLogger("hook-ui-controller");
|
|
14
|
-
// ─── Controller ──────────────────────────────────────────────────────────────
|
|
15
|
-
export class HookUiController {
|
|
16
|
-
constructor(options) {
|
|
17
|
-
this.hookStatusByKey = new Map();
|
|
18
|
-
this.deps = options.deps;
|
|
19
|
-
this.callbacks = options.callbacks;
|
|
20
|
-
}
|
|
21
|
-
/** Create and register the global HookUIContext. */
|
|
22
|
-
initializeGlobalContext() {
|
|
23
|
-
this.hookUiContext = this.createHookUiContext();
|
|
24
|
-
setGlobalUIContext(this.hookUiContext, true);
|
|
25
|
-
}
|
|
26
|
-
/** Footer hints from active hook status entries. */
|
|
27
|
-
getHookStatusHints() {
|
|
28
|
-
const hints = [];
|
|
29
|
-
for (const text of this.hookStatusByKey.values()) {
|
|
30
|
-
hints.push({ type: "custom", message: text, priority: 130 });
|
|
31
|
-
}
|
|
32
|
-
return hints;
|
|
33
|
-
}
|
|
34
|
-
/** Build slash-command entries for registered TypeScript hook commands. */
|
|
35
|
-
buildHookCommandEntries(existingCommands) {
|
|
36
|
-
const existingNames = new Set(existingCommands.map((cmd) => cmd.name));
|
|
37
|
-
const entries = [];
|
|
38
|
-
const commands = [];
|
|
39
|
-
for (const command of getTypeScriptHookCommands()) {
|
|
40
|
-
if (existingNames.has(command.name)) {
|
|
41
|
-
logger.warn("Skipping hook command due to name conflict", {
|
|
42
|
-
name: command.name,
|
|
43
|
-
});
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
const slashCommand = {
|
|
47
|
-
name: command.name,
|
|
48
|
-
description: command.description ?? "Hook command",
|
|
49
|
-
usage: `/${command.name} [args]`,
|
|
50
|
-
tags: ["hooks"],
|
|
51
|
-
};
|
|
52
|
-
const matches = (input) => input === `/${command.name}` || input.startsWith(`/${command.name} `);
|
|
53
|
-
const execute = (input) => {
|
|
54
|
-
const argumentText = input
|
|
55
|
-
.replace(new RegExp(`^/${command.name}\\s*`), "")
|
|
56
|
-
.trim();
|
|
57
|
-
const context = this.deps.createCommandContext({
|
|
58
|
-
command: slashCommand,
|
|
59
|
-
rawInput: input,
|
|
60
|
-
argumentText,
|
|
61
|
-
});
|
|
62
|
-
if (argumentText === "?" ||
|
|
63
|
-
argumentText === "--help" ||
|
|
64
|
-
argumentText === "-h") {
|
|
65
|
-
context.renderHelp();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const hookContext = this.createHookCommandContext();
|
|
69
|
-
const result = command.handler(argumentText, hookContext);
|
|
70
|
-
if (result && typeof result.then === "function") {
|
|
71
|
-
result.catch((error) => {
|
|
72
|
-
context.showError(error instanceof Error ? error.message : String(error));
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
entries.push({ command: slashCommand, matches, execute });
|
|
77
|
-
commands.push(slashCommand);
|
|
78
|
-
existingNames.add(command.name);
|
|
79
|
-
}
|
|
80
|
-
return { entries, commands };
|
|
81
|
-
}
|
|
82
|
-
// ─── Internal ──────────────────────────────────────────────────────────
|
|
83
|
-
createHookUiContext() {
|
|
84
|
-
return {
|
|
85
|
-
select: (title, options) => this.showHookSelector(title, options),
|
|
86
|
-
confirm: (title, message) => this.showHookConfirm(title, message),
|
|
87
|
-
input: (title, placeholder) => this.showHookInput(title, placeholder),
|
|
88
|
-
notify: (message, type) => {
|
|
89
|
-
if (type === "error") {
|
|
90
|
-
this.deps.notificationView.showError(message);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const tone = type === "warning" ? "warn" : "info";
|
|
94
|
-
this.deps.notificationView.showToast(message, tone);
|
|
95
|
-
},
|
|
96
|
-
setStatus: (key, text) => this.setHookStatus(key, text),
|
|
97
|
-
custom: (factory) => this.showHookCustom(factory),
|
|
98
|
-
setEditorText: (text) => {
|
|
99
|
-
this.deps.setEditorText(text);
|
|
100
|
-
this.callbacks.requestRender();
|
|
101
|
-
},
|
|
102
|
-
getEditorText: () => this.deps.getEditorText(),
|
|
103
|
-
editor: (title, prefill) => this.showHookEditor(title, prefill),
|
|
104
|
-
get theme() {
|
|
105
|
-
return theme;
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
showHookSelector(title, options) {
|
|
110
|
-
return new Promise((resolve) => {
|
|
111
|
-
if (options.length === 0) {
|
|
112
|
-
resolve(null);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const items = options.map((option) => ({
|
|
116
|
-
label: option,
|
|
117
|
-
value: option,
|
|
118
|
-
}));
|
|
119
|
-
const selector = new BaseSelectorComponent({
|
|
120
|
-
items,
|
|
121
|
-
visibleRows: Math.min(10, items.length),
|
|
122
|
-
onSelect: (value) => {
|
|
123
|
-
this.deps.modalManager.pop();
|
|
124
|
-
resolve(value);
|
|
125
|
-
},
|
|
126
|
-
onCancel: () => {
|
|
127
|
-
this.deps.modalManager.pop();
|
|
128
|
-
resolve(null);
|
|
129
|
-
},
|
|
130
|
-
prepend: [new Text(theme.fg("accent", title), 1, 0), new Spacer(1)],
|
|
131
|
-
});
|
|
132
|
-
this.deps.modalManager.push(selector);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
showHookConfirm(title, message) {
|
|
136
|
-
return new Promise((resolve) => {
|
|
137
|
-
const items = [
|
|
138
|
-
{ label: "Yes", value: "yes" },
|
|
139
|
-
{ label: "No", value: "no" },
|
|
140
|
-
];
|
|
141
|
-
const selector = new BaseSelectorComponent({
|
|
142
|
-
items,
|
|
143
|
-
visibleRows: 2,
|
|
144
|
-
onSelect: (value) => {
|
|
145
|
-
this.deps.modalManager.pop();
|
|
146
|
-
resolve(value === "yes");
|
|
147
|
-
},
|
|
148
|
-
onCancel: () => {
|
|
149
|
-
this.deps.modalManager.pop();
|
|
150
|
-
resolve(false);
|
|
151
|
-
},
|
|
152
|
-
prepend: [
|
|
153
|
-
new Text(theme.fg("accent", title), 1, 0),
|
|
154
|
-
new Text(theme.fg("muted", message), 1, 0),
|
|
155
|
-
new Spacer(1),
|
|
156
|
-
],
|
|
157
|
-
});
|
|
158
|
-
this.deps.modalManager.push(selector);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
showHookInput(title, placeholder) {
|
|
162
|
-
return new Promise((resolve) => {
|
|
163
|
-
const modal = this.deps.createHookInputModal({
|
|
164
|
-
ui: this.deps.ui,
|
|
165
|
-
title,
|
|
166
|
-
placeholder,
|
|
167
|
-
onSubmit: (value) => {
|
|
168
|
-
this.deps.modalManager.pop();
|
|
169
|
-
resolve(value);
|
|
170
|
-
},
|
|
171
|
-
onCancel: () => {
|
|
172
|
-
this.deps.modalManager.pop();
|
|
173
|
-
resolve(null);
|
|
174
|
-
},
|
|
175
|
-
});
|
|
176
|
-
this.deps.modalManager.push(modal);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
showHookEditor(title, prefill) {
|
|
180
|
-
return new Promise((resolve) => {
|
|
181
|
-
const modal = this.deps.createHookInputModal({
|
|
182
|
-
ui: this.deps.ui,
|
|
183
|
-
title,
|
|
184
|
-
prefill,
|
|
185
|
-
description: "Enter to save | Esc to cancel | Shift+Enter for newline",
|
|
186
|
-
onSubmit: (value) => {
|
|
187
|
-
this.deps.modalManager.pop();
|
|
188
|
-
resolve(value);
|
|
189
|
-
},
|
|
190
|
-
onCancel: () => {
|
|
191
|
-
this.deps.modalManager.pop();
|
|
192
|
-
resolve(null);
|
|
193
|
-
},
|
|
194
|
-
});
|
|
195
|
-
this.deps.modalManager.push(modal);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
async showHookCustom(factory) {
|
|
199
|
-
return new Promise((resolve) => {
|
|
200
|
-
let resolved = false;
|
|
201
|
-
const done = (result) => {
|
|
202
|
-
if (resolved)
|
|
203
|
-
return;
|
|
204
|
-
resolved = true;
|
|
205
|
-
this.deps.modalManager.pop();
|
|
206
|
-
resolve(result);
|
|
207
|
-
};
|
|
208
|
-
void (async () => {
|
|
209
|
-
try {
|
|
210
|
-
const component = await factory(this.deps.ui, theme, done);
|
|
211
|
-
const modal = component;
|
|
212
|
-
const previousOnClose = modal.onClose;
|
|
213
|
-
modal.onClose = () => {
|
|
214
|
-
previousOnClose?.();
|
|
215
|
-
if (!resolved) {
|
|
216
|
-
done(undefined);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
this.deps.modalManager.push(modal);
|
|
220
|
-
}
|
|
221
|
-
catch (error) {
|
|
222
|
-
this.deps.notificationView.showError(error instanceof Error ? error.message : "Hook custom UI failed");
|
|
223
|
-
resolve(undefined);
|
|
224
|
-
}
|
|
225
|
-
})();
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
createHookCommandContext() {
|
|
229
|
-
return {
|
|
230
|
-
exec: (command, args) => this.execHookCommand(command, args),
|
|
231
|
-
ui: this.hookUiContext ?? this.createHookUiContext(),
|
|
232
|
-
hasUI: true,
|
|
233
|
-
cwd: process.cwd(),
|
|
234
|
-
sessionFile: this.deps.sessionManager.getSessionFile(),
|
|
235
|
-
isIdle: () => !this.deps.agent.state.isStreaming,
|
|
236
|
-
abort: () => this.deps.agent.abort(),
|
|
237
|
-
hasQueuedMessages: () => this.deps.agent.getQueuedMessageCount() > 0,
|
|
238
|
-
waitForIdle: () => {
|
|
239
|
-
if (!this.deps.agent.state.isStreaming) {
|
|
240
|
-
return Promise.resolve();
|
|
241
|
-
}
|
|
242
|
-
return new Promise((resolve) => {
|
|
243
|
-
const unsubscribe = this.deps.agent.subscribe((event) => {
|
|
244
|
-
if (event.type === "agent_end") {
|
|
245
|
-
unsubscribe();
|
|
246
|
-
resolve();
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
},
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
execHookCommand(command, args) {
|
|
254
|
-
return new Promise((resolve) => {
|
|
255
|
-
const child = spawn(command, args, {
|
|
256
|
-
cwd: process.cwd(),
|
|
257
|
-
shell: false,
|
|
258
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
259
|
-
});
|
|
260
|
-
let stdout = "";
|
|
261
|
-
let stderr = "";
|
|
262
|
-
child.stdout?.on("data", (data) => {
|
|
263
|
-
stdout += data.toString();
|
|
264
|
-
});
|
|
265
|
-
child.stderr?.on("data", (data) => {
|
|
266
|
-
stderr += data.toString();
|
|
267
|
-
});
|
|
268
|
-
child.on("error", (error) => {
|
|
269
|
-
resolve({
|
|
270
|
-
stdout,
|
|
271
|
-
stderr: `${stderr}\n${error.message}`,
|
|
272
|
-
code: 1,
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
child.on("close", (code) => {
|
|
276
|
-
resolve({
|
|
277
|
-
stdout,
|
|
278
|
-
stderr,
|
|
279
|
-
code: code ?? 1,
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
sanitizeHookStatusText(text) {
|
|
285
|
-
return text.replace(/[\r\n\t]+/g, " ");
|
|
286
|
-
}
|
|
287
|
-
setHookStatus(key, text) {
|
|
288
|
-
if (!key)
|
|
289
|
-
return;
|
|
290
|
-
if (!text || text.trim().length === 0) {
|
|
291
|
-
if (this.hookStatusByKey.delete(key)) {
|
|
292
|
-
this.callbacks.refreshFooterHint();
|
|
293
|
-
}
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
const sanitized = this.sanitizeHookStatusText(text);
|
|
297
|
-
const previous = this.hookStatusByKey.get(key);
|
|
298
|
-
if (previous === sanitized) {
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
this.hookStatusByKey.set(key, sanitized);
|
|
302
|
-
this.callbacks.refreshFooterHint();
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
// ─── Factory ─────────────────────────────────────────────────────────────────
|
|
306
|
-
export function createHookUiController(options) {
|
|
307
|
-
return new HookUiController(options);
|
|
308
|
-
}
|
|
309
|
-
//# sourceMappingURL=hook-ui-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook-ui-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/hook-ui-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACN,yBAAyB,EACzB,kBAAkB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAc,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAOrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,MAAM,MAAM,GAAG,YAAY,CAAC,oBAAoB,CAAC,CAAC;AAiDlD,gFAAgF;AAEhF,MAAM,OAAO,gBAAgB;IAM5B,YAAY,OAAgC;QAH3B,oBAAe,GAAG,IAAI,GAAG,EAAkB,CAAC;QAI5D,IAAI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AG,CAAC,CAAC;IACxC,CAAC;IAEO,aAAa,CAAC,GAAW,EAAE,IAAwB;QAC1D,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gBACtC,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC;YACpC,CAAC;YACD,OAAO;QACR,CAAC;QACD,MAAM,SAAS,GAAG,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO;QACR,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC;IACpC,CAAC;CACD;AAED,gFAAgF;AAEhF,MAAM,UAAU,sBAAsB,CACrC,OAAgC;IAEhC,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC","sourcesContent":["/**\n * HookUiController — Manages hook UI interactions and command entries.\n *\n * Provides the HookUIContext and HookCommandContext implementations used by\n * TypeScript hooks, and builds slash-command entries for registered hook commands.\n */\n\nimport { spawn } from \"node:child_process\";\nimport type { Component, SlashCommand, TUI } from \"@evalops/tui\";\nimport { Spacer, Text } from \"@evalops/tui\";\nimport type { Agent } from \"../../agent/agent.js\";\nimport {\n\tgetTypeScriptHookCommands,\n\tsetGlobalUIContext,\n} from \"../../hooks/index.js\";\nimport type { HookCommandContext, HookUIContext } from \"../../hooks/types.js\";\nimport type { SessionManager } from \"../../session/manager.js\";\nimport { type Theme, theme } from \"../../theme/theme.js\";\nimport { createLogger } from \"../../utils/logger.js\";\nimport type {\n\tCommandEntry,\n\tCommandExecutionContext,\n} from \"../commands/types.js\";\nimport type { ModalManager } from \"../modal-manager.js\";\nimport type { NotificationView } from \"../notification-view.js\";\nimport { BaseSelectorComponent } from \"../selectors/base-selector.js\";\nimport type { FooterHint } from \"../utils/footer-utils.js\";\n\nconst logger = createLogger(\"hook-ui-controller\");\n\n// ─── Callback & Dependency Interfaces ────────────────────────────────────────\n\nexport interface HookUiControllerCallbacks {\n\t/** Trigger a footer hint refresh cycle. */\n\trefreshFooterHint: () => void;\n\t/** Request a UI render cycle. */\n\trequestRender: () => void;\n}\n\nexport interface HookUiControllerDeps {\n\t/** The TUI instance for rendering. */\n\tui: TUI;\n\t/** Get the current editor text. */\n\tgetEditorText: () => string;\n\t/** Set the editor text content. */\n\tsetEditorText: (text: string) => void;\n\t/** Modal manager for pushing/popping modal overlays. */\n\tmodalManager: ModalManager;\n\t/** Agent for streaming state and abort. */\n\tagent: Agent;\n\t/** Session manager for session file path. */\n\tsessionManager: SessionManager;\n\t/** Notification view for toasts and error messages. */\n\tnotificationView: NotificationView;\n\t/** Create a HookInputModal instance. */\n\tcreateHookInputModal: (options: {\n\t\tui: TUI;\n\t\ttitle: string;\n\t\tplaceholder?: string;\n\t\tprefill?: string;\n\t\tdescription?: string;\n\t\tonSubmit: (value: string) => void;\n\t\tonCancel: () => void;\n\t}) => Component;\n\t/** Build a CommandExecutionContext from raw command data. */\n\tcreateCommandContext: (params: {\n\t\tcommand: SlashCommand;\n\t\trawInput: string;\n\t\targumentText: string;\n\t}) => CommandExecutionContext;\n}\n\nexport interface HookUiControllerOptions {\n\tdeps: HookUiControllerDeps;\n\tcallbacks: HookUiControllerCallbacks;\n}\n\n// ─── Controller ──────────────────────────────────────────────────────────────\n\nexport class HookUiController {\n\tprivate readonly deps: HookUiControllerDeps;\n\tprivate readonly callbacks: HookUiControllerCallbacks;\n\tprivate readonly hookStatusByKey = new Map<string, string>();\n\tprivate hookUiContext?: HookUIContext;\n\n\tconstructor(options: HookUiControllerOptions) {\n\t\tthis.deps = options.deps;\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\t/** Create and register the global HookUIContext. */\n\tinitializeGlobalContext(): void {\n\t\tthis.hookUiContext = this.createHookUiContext();\n\t\tsetGlobalUIContext(this.hookUiContext, true);\n\t}\n\n\t/** Footer hints from active hook status entries. */\n\tgetHookStatusHints(): FooterHint[] {\n\t\tconst hints: FooterHint[] = [];\n\t\tfor (const text of this.hookStatusByKey.values()) {\n\t\t\thints.push({ type: \"custom\", message: text, priority: 130 });\n\t\t}\n\t\treturn hints;\n\t}\n\n\t/** Build slash-command entries for registered TypeScript hook commands. */\n\tbuildHookCommandEntries(existingCommands: SlashCommand[]): {\n\t\tentries: CommandEntry[];\n\t\tcommands: SlashCommand[];\n\t} {\n\t\tconst existingNames = new Set(existingCommands.map((cmd) => cmd.name));\n\t\tconst entries: CommandEntry[] = [];\n\t\tconst commands: SlashCommand[] = [];\n\t\tfor (const command of getTypeScriptHookCommands()) {\n\t\t\tif (existingNames.has(command.name)) {\n\t\t\t\tlogger.warn(\"Skipping hook command due to name conflict\", {\n\t\t\t\t\tname: command.name,\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst slashCommand: SlashCommand = {\n\t\t\t\tname: command.name,\n\t\t\t\tdescription: command.description ?? \"Hook command\",\n\t\t\t\tusage: `/${command.name} [args]`,\n\t\t\t\ttags: [\"hooks\"],\n\t\t\t};\n\t\t\tconst matches = (input: string) =>\n\t\t\t\tinput === `/${command.name}` || input.startsWith(`/${command.name} `);\n\t\t\tconst execute = (input: string) => {\n\t\t\t\tconst argumentText = input\n\t\t\t\t\t.replace(new RegExp(`^/${command.name}\\\\s*`), \"\")\n\t\t\t\t\t.trim();\n\t\t\t\tconst context = this.deps.createCommandContext({\n\t\t\t\t\tcommand: slashCommand,\n\t\t\t\t\trawInput: input,\n\t\t\t\t\targumentText,\n\t\t\t\t});\n\t\t\t\tif (\n\t\t\t\t\targumentText === \"?\" ||\n\t\t\t\t\targumentText === \"--help\" ||\n\t\t\t\t\targumentText === \"-h\"\n\t\t\t\t) {\n\t\t\t\t\tcontext.renderHelp();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst hookContext = this.createHookCommandContext();\n\t\t\t\tconst result = command.handler(argumentText, hookContext);\n\t\t\t\tif (result && typeof (result as Promise<void>).then === \"function\") {\n\t\t\t\t\t(result as Promise<void>).catch((error) => {\n\t\t\t\t\t\tcontext.showError(\n\t\t\t\t\t\t\terror instanceof Error ? error.message : String(error),\n\t\t\t\t\t\t);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t};\n\t\t\tentries.push({ command: slashCommand, matches, execute });\n\t\t\tcommands.push(slashCommand);\n\t\t\texistingNames.add(command.name);\n\t\t}\n\t\treturn { entries, commands };\n\t}\n\n\t// ─── Internal ──────────────────────────────────────────────────────────\n\n\tprivate createHookUiContext(): HookUIContext {\n\t\treturn {\n\t\t\tselect: (title, options) => this.showHookSelector(title, options),\n\t\t\tconfirm: (title, message) => this.showHookConfirm(title, message),\n\t\t\tinput: (title, placeholder) => this.showHookInput(title, placeholder),\n\t\t\tnotify: (message, type) => {\n\t\t\t\tif (type === \"error\") {\n\t\t\t\t\tthis.deps.notificationView.showError(message);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst tone = type === \"warning\" ? \"warn\" : \"info\";\n\t\t\t\tthis.deps.notificationView.showToast(message, tone);\n\t\t\t},\n\t\t\tsetStatus: (key, text) => this.setHookStatus(key, text),\n\t\t\tcustom: (factory) => this.showHookCustom(factory),\n\t\t\tsetEditorText: (text) => {\n\t\t\t\tthis.deps.setEditorText(text);\n\t\t\t\tthis.callbacks.requestRender();\n\t\t\t},\n\t\t\tgetEditorText: () => this.deps.getEditorText(),\n\t\t\teditor: (title, prefill) => this.showHookEditor(title, prefill),\n\t\t\tget theme() {\n\t\t\t\treturn theme;\n\t\t\t},\n\t\t};\n\t}\n\n\tprivate showHookSelector(\n\t\ttitle: string,\n\t\toptions: string[],\n\t): Promise<string | null> {\n\t\treturn new Promise((resolve) => {\n\t\t\tif (options.length === 0) {\n\t\t\t\tresolve(null);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst items = options.map((option) => ({\n\t\t\t\tlabel: option,\n\t\t\t\tvalue: option,\n\t\t\t}));\n\t\t\tconst selector = new BaseSelectorComponent<string>({\n\t\t\t\titems,\n\t\t\t\tvisibleRows: Math.min(10, items.length),\n\t\t\t\tonSelect: (value) => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(value);\n\t\t\t\t},\n\t\t\t\tonCancel: () => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(null);\n\t\t\t\t},\n\t\t\t\tprepend: [new Text(theme.fg(\"accent\", title), 1, 0), new Spacer(1)],\n\t\t\t});\n\t\t\tthis.deps.modalManager.push(selector);\n\t\t});\n\t}\n\n\tprivate showHookConfirm(title: string, message: string): Promise<boolean> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst items = [\n\t\t\t\t{ label: \"Yes\", value: \"yes\" },\n\t\t\t\t{ label: \"No\", value: \"no\" },\n\t\t\t];\n\t\t\tconst selector = new BaseSelectorComponent<string>({\n\t\t\t\titems,\n\t\t\t\tvisibleRows: 2,\n\t\t\t\tonSelect: (value) => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(value === \"yes\");\n\t\t\t\t},\n\t\t\t\tonCancel: () => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(false);\n\t\t\t\t},\n\t\t\t\tprepend: [\n\t\t\t\t\tnew Text(theme.fg(\"accent\", title), 1, 0),\n\t\t\t\t\tnew Text(theme.fg(\"muted\", message), 1, 0),\n\t\t\t\t\tnew Spacer(1),\n\t\t\t\t],\n\t\t\t});\n\t\t\tthis.deps.modalManager.push(selector);\n\t\t});\n\t}\n\n\tprivate showHookInput(\n\t\ttitle: string,\n\t\tplaceholder?: string,\n\t): Promise<string | null> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst modal = this.deps.createHookInputModal({\n\t\t\t\tui: this.deps.ui,\n\t\t\t\ttitle,\n\t\t\t\tplaceholder,\n\t\t\t\tonSubmit: (value) => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(value);\n\t\t\t\t},\n\t\t\t\tonCancel: () => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(null);\n\t\t\t\t},\n\t\t\t});\n\t\t\tthis.deps.modalManager.push(modal);\n\t\t});\n\t}\n\n\tprivate showHookEditor(\n\t\ttitle: string,\n\t\tprefill?: string,\n\t): Promise<string | null> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst modal = this.deps.createHookInputModal({\n\t\t\t\tui: this.deps.ui,\n\t\t\t\ttitle,\n\t\t\t\tprefill,\n\t\t\t\tdescription: \"Enter to save | Esc to cancel | Shift+Enter for newline\",\n\t\t\t\tonSubmit: (value) => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(value);\n\t\t\t\t},\n\t\t\t\tonCancel: () => {\n\t\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\t\tresolve(null);\n\t\t\t\t},\n\t\t\t});\n\t\t\tthis.deps.modalManager.push(modal);\n\t\t});\n\t}\n\n\tprivate async showHookCustom<T>(\n\t\tfactory: (\n\t\t\ttui: TUI,\n\t\t\ttheme: Theme,\n\t\t\tdone: (result: T) => void,\n\t\t) => Component | Promise<Component>,\n\t): Promise<T> {\n\t\treturn new Promise((resolve) => {\n\t\t\tlet resolved = false;\n\t\t\tconst done = (result: T) => {\n\t\t\t\tif (resolved) return;\n\t\t\t\tresolved = true;\n\t\t\t\tthis.deps.modalManager.pop();\n\t\t\t\tresolve(result);\n\t\t\t};\n\n\t\t\tvoid (async () => {\n\t\t\t\ttry {\n\t\t\t\t\tconst component = await factory(this.deps.ui, theme, done);\n\t\t\t\t\tconst modal = component as Component & {\n\t\t\t\t\t\tonClose?: () => void;\n\t\t\t\t\t};\n\t\t\t\t\tconst previousOnClose = modal.onClose;\n\t\t\t\t\tmodal.onClose = () => {\n\t\t\t\t\t\tpreviousOnClose?.();\n\t\t\t\t\t\tif (!resolved) {\n\t\t\t\t\t\t\tdone(undefined as T);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tthis.deps.modalManager.push(modal);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tthis.deps.notificationView.showError(\n\t\t\t\t\t\terror instanceof Error ? error.message : \"Hook custom UI failed\",\n\t\t\t\t\t);\n\t\t\t\t\tresolve(undefined as T);\n\t\t\t\t}\n\t\t\t})();\n\t\t});\n\t}\n\n\tprivate createHookCommandContext(): HookCommandContext {\n\t\treturn {\n\t\t\texec: (command, args) => this.execHookCommand(command, args),\n\t\t\tui: this.hookUiContext ?? this.createHookUiContext(),\n\t\t\thasUI: true,\n\t\t\tcwd: process.cwd(),\n\t\t\tsessionFile: this.deps.sessionManager.getSessionFile(),\n\t\t\tisIdle: () => !this.deps.agent.state.isStreaming,\n\t\t\tabort: () => this.deps.agent.abort(),\n\t\t\thasQueuedMessages: () => this.deps.agent.getQueuedMessageCount() > 0,\n\t\t\twaitForIdle: () => {\n\t\t\t\tif (!this.deps.agent.state.isStreaming) {\n\t\t\t\t\treturn Promise.resolve();\n\t\t\t\t}\n\t\t\t\treturn new Promise((resolve) => {\n\t\t\t\t\tconst unsubscribe = this.deps.agent.subscribe((event) => {\n\t\t\t\t\t\tif (event.type === \"agent_end\") {\n\t\t\t\t\t\t\tunsubscribe();\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t},\n\t\t};\n\t}\n\n\tprivate execHookCommand(\n\t\tcommand: string,\n\t\targs: string[],\n\t): Promise<{ stdout: string; stderr: string; code: number }> {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst child = spawn(command, args, {\n\t\t\t\tcwd: process.cwd(),\n\t\t\t\tshell: false,\n\t\t\t\tstdio: [\"pipe\", \"pipe\", \"pipe\"],\n\t\t\t});\n\n\t\t\tlet stdout = \"\";\n\t\t\tlet stderr = \"\";\n\n\t\t\tchild.stdout?.on(\"data\", (data) => {\n\t\t\t\tstdout += data.toString();\n\t\t\t});\n\n\t\t\tchild.stderr?.on(\"data\", (data) => {\n\t\t\t\tstderr += data.toString();\n\t\t\t});\n\n\t\t\tchild.on(\"error\", (error) => {\n\t\t\t\tresolve({\n\t\t\t\t\tstdout,\n\t\t\t\t\tstderr: `${stderr}\\n${error.message}`,\n\t\t\t\t\tcode: 1,\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tchild.on(\"close\", (code) => {\n\t\t\t\tresolve({\n\t\t\t\t\tstdout,\n\t\t\t\t\tstderr,\n\t\t\t\t\tcode: code ?? 1,\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate sanitizeHookStatusText(text: string): string {\n\t\treturn text.replace(/[\\r\\n\\t]+/g, \" \");\n\t}\n\n\tprivate setHookStatus(key: string, text: string | undefined): void {\n\t\tif (!key) return;\n\t\tif (!text || text.trim().length === 0) {\n\t\t\tif (this.hookStatusByKey.delete(key)) {\n\t\t\t\tthis.callbacks.refreshFooterHint();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tconst sanitized = this.sanitizeHookStatusText(text);\n\t\tconst previous = this.hookStatusByKey.get(key);\n\t\tif (previous === sanitized) {\n\t\t\treturn;\n\t\t}\n\t\tthis.hookStatusByKey.set(key, sanitized);\n\t\tthis.callbacks.refreshFooterHint();\n\t}\n}\n\n// ─── Factory ─────────────────────────────────────────────────────────────────\n\nexport function createHookUiController(\n\toptions: HookUiControllerOptions,\n): HookUiController {\n\treturn new HookUiController(options);\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CleanMode } from "../../conversation/render-model.js";
|
|
2
|
-
import type { QueueMode, UiState } from "../ui-state.js";
|
|
3
|
-
import type { FooterMode } from "../utils/footer-utils.js";
|
|
4
|
-
export type InitialQueueMode = QueueMode;
|
|
5
|
-
export interface TuiRendererInitialPreferences {
|
|
6
|
-
uiState: UiState;
|
|
7
|
-
initialSteeringMode: InitialQueueMode;
|
|
8
|
-
initialFollowUpMode: InitialQueueMode;
|
|
9
|
-
cleanMode?: CleanMode;
|
|
10
|
-
footerMode?: FooterMode;
|
|
11
|
-
reducedMotion?: boolean;
|
|
12
|
-
reducedMotionForced: boolean;
|
|
13
|
-
zenMode?: boolean;
|
|
14
|
-
hideThinkingBlocks?: boolean;
|
|
15
|
-
recentCommands: string[];
|
|
16
|
-
favoriteCommands: Set<string>;
|
|
17
|
-
}
|
|
18
|
-
export declare function loadInitialTuiRendererPreferences(): TuiRendererInitialPreferences;
|
|
19
|
-
//# sourceMappingURL=initial-preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initial-preferences.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/initial-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC,MAAM,WAAW,6BAA6B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,EAAE,gBAAgB,CAAC;IACtC,mBAAmB,EAAE,gBAAgB,CAAC;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,wBAAgB,iCAAiC,IAAI,6BAA6B,CA6DjF"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { readCleanModeFromEnv } from "../clean-mode.js";
|
|
2
|
-
import { loadCommandPrefs, loadUiState } from "../ui-state.js";
|
|
3
|
-
import { isReducedMotionEnabled, setReducedMotionEnv, } from "../utils/motion.js";
|
|
4
|
-
export function loadInitialTuiRendererPreferences() {
|
|
5
|
-
const uiState = loadUiState();
|
|
6
|
-
const initialSteeringMode = uiState.steeringMode === "one" || uiState.steeringMode === "all"
|
|
7
|
-
? uiState.steeringMode
|
|
8
|
-
: uiState.queueMode === "one" || uiState.queueMode === "all"
|
|
9
|
-
? uiState.queueMode
|
|
10
|
-
: "all";
|
|
11
|
-
const initialFollowUpMode = uiState.followUpMode === "one" || uiState.followUpMode === "all"
|
|
12
|
-
? uiState.followUpMode
|
|
13
|
-
: uiState.queueMode === "one" || uiState.queueMode === "all"
|
|
14
|
-
? uiState.queueMode
|
|
15
|
-
: "all";
|
|
16
|
-
const envCleanMode = readCleanModeFromEnv();
|
|
17
|
-
const cleanMode = envCleanMode ?? uiState.cleanMode;
|
|
18
|
-
const envReducedMotion = isReducedMotionEnabled();
|
|
19
|
-
const reducedMotion = typeof uiState.reducedMotion === "boolean"
|
|
20
|
-
? uiState.reducedMotion
|
|
21
|
-
: envReducedMotion;
|
|
22
|
-
const reducedMotionForced = !!(envReducedMotion && uiState.reducedMotion !== false);
|
|
23
|
-
setReducedMotionEnv(reducedMotion);
|
|
24
|
-
const recentCommands = Array.isArray(uiState.recentCommands)
|
|
25
|
-
? [...uiState.recentCommands]
|
|
26
|
-
: [];
|
|
27
|
-
const favoriteCommands = new Set();
|
|
28
|
-
if (Array.isArray(uiState.favoriteCommands)) {
|
|
29
|
-
for (const name of uiState.favoriteCommands) {
|
|
30
|
-
favoriteCommands.add(name);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const diskPrefs = loadCommandPrefs();
|
|
34
|
-
if (diskPrefs.recents.length > 0) {
|
|
35
|
-
recentCommands.splice(0, recentCommands.length, ...diskPrefs.recents);
|
|
36
|
-
}
|
|
37
|
-
for (const fav of diskPrefs.favorites) {
|
|
38
|
-
favoriteCommands.add(fav);
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
uiState,
|
|
42
|
-
initialSteeringMode,
|
|
43
|
-
initialFollowUpMode,
|
|
44
|
-
cleanMode: cleanMode ?? undefined,
|
|
45
|
-
footerMode: uiState.footerMode,
|
|
46
|
-
reducedMotion,
|
|
47
|
-
reducedMotionForced,
|
|
48
|
-
zenMode: uiState.zenMode,
|
|
49
|
-
hideThinkingBlocks: uiState.hideThinkingBlocks,
|
|
50
|
-
recentCommands,
|
|
51
|
-
favoriteCommands,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=initial-preferences.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initial-preferences.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/initial-preferences.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EACN,sBAAsB,EACtB,mBAAmB,GACnB,MAAM,oBAAoB,CAAC;AAkB5B,MAAM,UAAU,iCAAiC;IAChD,MAAM,OAAO,GAAG,WAAW,EAAE,CAAC;IAE9B,MAAM,mBAAmB,GACxB,OAAO,CAAC,YAAY,KAAK,KAAK,IAAI,OAAO,CAAC,YAAY,KAAK,KAAK;QAC/D,CAAC,CAAC,OAAO,CAAC,YAAY;QACtB,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,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AAC;IAED,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,IAAI,SAAS,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACvC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,OAAO;QACN,OAAO;QACP,mBAAmB;QACnB,mBAAmB;QACnB,SAAS,EAAE,SAAS,IAAI,SAAS;QACjC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,aAAa;QACb,mBAAmB;QACnB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;QAC9C,cAAc;QACd,gBAAgB;KAChB,CAAC;AACH,CAAC","sourcesContent":["import type { CleanMode } from \"../../conversation/render-model.js\";\nimport { readCleanModeFromEnv } from \"../clean-mode.js\";\nimport type { QueueMode, UiState } from \"../ui-state.js\";\nimport { loadCommandPrefs, loadUiState } from \"../ui-state.js\";\nimport type { FooterMode } from \"../utils/footer-utils.js\";\nimport {\n\tisReducedMotionEnabled,\n\tsetReducedMotionEnv,\n} from \"../utils/motion.js\";\n\nexport type InitialQueueMode = QueueMode;\n\nexport interface TuiRendererInitialPreferences {\n\tuiState: UiState;\n\tinitialSteeringMode: InitialQueueMode;\n\tinitialFollowUpMode: InitialQueueMode;\n\tcleanMode?: CleanMode;\n\tfooterMode?: FooterMode;\n\treducedMotion?: boolean;\n\treducedMotionForced: boolean;\n\tzenMode?: boolean;\n\thideThinkingBlocks?: boolean;\n\trecentCommands: string[];\n\tfavoriteCommands: Set<string>;\n}\n\nexport function loadInitialTuiRendererPreferences(): TuiRendererInitialPreferences {\n\tconst uiState = loadUiState();\n\n\tconst initialSteeringMode: QueueMode =\n\t\tuiState.steeringMode === \"one\" || uiState.steeringMode === \"all\"\n\t\t\t? uiState.steeringMode\n\t\t\t: uiState.queueMode === \"one\" || uiState.queueMode === \"all\"\n\t\t\t\t? uiState.queueMode\n\t\t\t\t: \"all\";\n\n\tconst initialFollowUpMode: QueueMode =\n\t\tuiState.followUpMode === \"one\" || uiState.followUpMode === \"all\"\n\t\t\t? uiState.followUpMode\n\t\t\t: uiState.queueMode === \"one\" || uiState.queueMode === \"all\"\n\t\t\t\t? uiState.queueMode\n\t\t\t\t: \"all\";\n\n\tconst envCleanMode = readCleanModeFromEnv();\n\tconst cleanMode = envCleanMode ?? uiState.cleanMode;\n\n\tconst envReducedMotion = isReducedMotionEnabled();\n\tconst reducedMotion =\n\t\ttypeof uiState.reducedMotion === \"boolean\"\n\t\t\t? uiState.reducedMotion\n\t\t\t: envReducedMotion;\n\tconst reducedMotionForced = !!(\n\t\tenvReducedMotion && uiState.reducedMotion !== false\n\t);\n\tsetReducedMotionEnv(reducedMotion);\n\n\tconst recentCommands: string[] = Array.isArray(uiState.recentCommands)\n\t\t? [...uiState.recentCommands]\n\t\t: [];\n\tconst favoriteCommands = new Set<string>();\n\tif (Array.isArray(uiState.favoriteCommands)) {\n\t\tfor (const name of uiState.favoriteCommands) {\n\t\t\tfavoriteCommands.add(name);\n\t\t}\n\t}\n\n\tconst diskPrefs = loadCommandPrefs();\n\tif (diskPrefs.recents.length > 0) {\n\t\trecentCommands.splice(0, recentCommands.length, ...diskPrefs.recents);\n\t}\n\tfor (const fav of diskPrefs.favorites) {\n\t\tfavoriteCommands.add(fav);\n\t}\n\n\treturn {\n\t\tuiState,\n\t\tinitialSteeringMode,\n\t\tinitialFollowUpMode,\n\t\tcleanMode: cleanMode ?? undefined,\n\t\tfooterMode: uiState.footerMode,\n\t\treducedMotion,\n\t\treducedMotionForced,\n\t\tzenMode: uiState.zenMode,\n\t\thideThinkingBlocks: uiState.hideThinkingBlocks,\n\t\trecentCommands,\n\t\tfavoriteCommands,\n\t};\n}\n"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InputController - Handles editor input submission and interrupt wiring.
|
|
3
|
-
*
|
|
4
|
-
* Keeps input lifecycle logic out of TuiRenderer while preserving behavior.
|
|
5
|
-
*/
|
|
6
|
-
import type { AutoRetryController } from "../../agent/auto-retry.js";
|
|
7
|
-
import type { BashModeView } from "../bash-mode-view.js";
|
|
8
|
-
import type { CustomEditor } from "../custom-editor.js";
|
|
9
|
-
import type { InterruptController } from "../interrupt-controller.js";
|
|
10
|
-
import type { PasteHandler } from "../paste/paste-handler.js";
|
|
11
|
-
import type { PromptPayload } from "../prompt-queue.js";
|
|
12
|
-
export interface InputControllerDeps {
|
|
13
|
-
editor: CustomEditor;
|
|
14
|
-
getPasteHandler: () => PasteHandler;
|
|
15
|
-
isBashModeActive: () => boolean;
|
|
16
|
-
getBashModeView: () => BashModeView;
|
|
17
|
-
getInterruptController: () => InterruptController;
|
|
18
|
-
autoRetryController: AutoRetryController;
|
|
19
|
-
consumeAttachments: (text: string) => PromptPayload;
|
|
20
|
-
}
|
|
21
|
-
export interface InputControllerCallbacks {
|
|
22
|
-
showInfo: (message: string) => void;
|
|
23
|
-
stopRenderer: () => Promise<void> | void;
|
|
24
|
-
exitProcess: (code?: number) => void;
|
|
25
|
-
}
|
|
26
|
-
export interface InputControllerOptions {
|
|
27
|
-
deps: InputControllerDeps;
|
|
28
|
-
callbacks: InputControllerCallbacks;
|
|
29
|
-
}
|
|
30
|
-
export declare class InputController {
|
|
31
|
-
private readonly deps;
|
|
32
|
-
private readonly callbacks;
|
|
33
|
-
private onInputCallback?;
|
|
34
|
-
private onInterruptCallback?;
|
|
35
|
-
constructor(options: InputControllerOptions);
|
|
36
|
-
getUserInput(): Promise<PromptPayload>;
|
|
37
|
-
setInterruptCallback(callback: (options?: {
|
|
38
|
-
keepPartial?: boolean;
|
|
39
|
-
}) => void): void;
|
|
40
|
-
notifyInterrupt(options?: {
|
|
41
|
-
keepPartial?: boolean;
|
|
42
|
-
}): void;
|
|
43
|
-
handleTextSubmit(text: string): Promise<void>;
|
|
44
|
-
handleFollowUpSubmit(text: string): Promise<boolean>;
|
|
45
|
-
handleInterruptRequest(): void;
|
|
46
|
-
handleKeepPartialRequest(): boolean;
|
|
47
|
-
interruptNow(options?: {
|
|
48
|
-
keepPartial?: boolean;
|
|
49
|
-
}): void;
|
|
50
|
-
handleCtrlDExit(): Promise<void>;
|
|
51
|
-
prepareQueuedPayload(text: string): Promise<PromptPayload | null>;
|
|
52
|
-
submitPreparedPayload(payload: PromptPayload): boolean;
|
|
53
|
-
private preparePayload;
|
|
54
|
-
}
|
|
55
|
-
export declare function createInputController(options: InputControllerOptions): InputController;
|
|
56
|
-
//# sourceMappingURL=input-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/input-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,eAAe,EAAE,MAAM,YAAY,CAAC;IACpC,gBAAgB,EAAE,MAAM,OAAO,CAAC;IAChC,eAAe,EAAE,MAAM,YAAY,CAAC;IACpC,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;IAClD,mBAAmB,EAAE,mBAAmB,CA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