@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,128 +0,0 @@
|
|
|
1
|
-
import { createLogger } from "../../utils/logger.js";
|
|
2
|
-
const logger = createLogger("tui:paste-handler");
|
|
3
|
-
/**
|
|
4
|
-
* Handler for large paste events.
|
|
5
|
-
*
|
|
6
|
-
* When a user pastes a large block of text, this handler:
|
|
7
|
-
* 1. Shows a loading indicator
|
|
8
|
-
* 2. Generates a summary using the agent
|
|
9
|
-
* 3. Replaces the placeholder with the summary
|
|
10
|
-
*/
|
|
11
|
-
export class PasteHandler {
|
|
12
|
-
constructor(options) {
|
|
13
|
-
this.pendingSummaries = new Set();
|
|
14
|
-
this.agent = options.agent;
|
|
15
|
-
this.notificationView = options.notificationView;
|
|
16
|
-
this.sessionContext = options.sessionContext;
|
|
17
|
-
this.editor = options.editor;
|
|
18
|
-
this.refreshFooterHint = options.refreshFooterHint;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Check if any paste summaries are pending.
|
|
22
|
-
*/
|
|
23
|
-
hasPending() {
|
|
24
|
-
return this.pendingSummaries.size > 0;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Get count of pending paste summaries.
|
|
28
|
-
*/
|
|
29
|
-
pendingCount() {
|
|
30
|
-
return this.pendingSummaries.size;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Handle a large paste event.
|
|
34
|
-
*/
|
|
35
|
-
async handleLargePaste(event) {
|
|
36
|
-
if (!event.content.trim()) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (this.pendingSummaries.has(event.pasteId)) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
this.pendingSummaries.add(event.pasteId);
|
|
43
|
-
this.refreshFooterHint();
|
|
44
|
-
this.notificationView.showInfo(`Summarizing pasted block (~${event.lineCount} lines)…`);
|
|
45
|
-
try {
|
|
46
|
-
const summaryMessage = await this.agent.generateSummary([
|
|
47
|
-
{
|
|
48
|
-
role: "user",
|
|
49
|
-
content: [
|
|
50
|
-
{
|
|
51
|
-
type: "text",
|
|
52
|
-
text: this.buildPasteSummaryContext(event.content),
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
timestamp: Date.now(),
|
|
56
|
-
},
|
|
57
|
-
], this.buildPasteSummaryPrompt(event.lineCount, event.charCount), "You turn large clipboard snippets into concise summaries highlighting key takeaways, files, and follow-ups.");
|
|
58
|
-
const summaryText = this.extractTextFromMessage(summaryMessage).trim();
|
|
59
|
-
if (!summaryText) {
|
|
60
|
-
throw new Error("Empty summary");
|
|
61
|
-
}
|
|
62
|
-
const decorated = this.decoratePasteSummary(summaryText, event.lineCount, event.charCount);
|
|
63
|
-
const replaced = this.editor.replacePasteMarker(event.pasteId, decorated);
|
|
64
|
-
if (replaced) {
|
|
65
|
-
this.notificationView.showToast(`Summarized pasted block (~${event.lineCount} lines)`, "success");
|
|
66
|
-
this.sessionContext.recordPasteSummaryArtifact({
|
|
67
|
-
placeholder: event.marker,
|
|
68
|
-
lineCount: event.lineCount,
|
|
69
|
-
charCount: event.charCount,
|
|
70
|
-
summaryPreview: summaryText.split("\n")[0]?.slice(0, 120) ?? "",
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
this.notificationView.showInfo("Generated paste summary but it was no longer needed.");
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
logger.error("Failed to summarize pasted content", error instanceof Error ? error : undefined);
|
|
79
|
-
this.notificationView.showError("Couldn't summarize pasted content. The original text will be sent.");
|
|
80
|
-
}
|
|
81
|
-
finally {
|
|
82
|
-
this.pendingSummaries.delete(event.pasteId);
|
|
83
|
-
this.refreshFooterHint();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
buildPasteSummaryPrompt(lines, chars) {
|
|
87
|
-
const formatter = new Intl.NumberFormat("en-US");
|
|
88
|
-
return `Summarize the preceding clipboard snippet (~${formatter.format(lines)} lines, ${formatter.format(chars)} chars). Provide concise bullet points highlighting what the snippet contains, key issues, and any follow-up actions. Limit to 120 words.`;
|
|
89
|
-
}
|
|
90
|
-
buildPasteSummaryContext(content) {
|
|
91
|
-
const limit = 12000;
|
|
92
|
-
if (content.length <= limit) {
|
|
93
|
-
return content;
|
|
94
|
-
}
|
|
95
|
-
return `${content.slice(0, limit)}\n\n[truncated ${content.length - limit} additional chars]`;
|
|
96
|
-
}
|
|
97
|
-
decoratePasteSummary(summary, lines, chars) {
|
|
98
|
-
const formatter = new Intl.NumberFormat("en-US");
|
|
99
|
-
const meta = `[[Pasted ${formatter.format(lines)} lines (~${formatter.format(chars)} chars) summarized]]`;
|
|
100
|
-
return `${meta}\n${summary.trim()}\n[[End paste summary]]`;
|
|
101
|
-
}
|
|
102
|
-
extractTextFromMessage(message) {
|
|
103
|
-
if (!message) {
|
|
104
|
-
return "";
|
|
105
|
-
}
|
|
106
|
-
const rawContent = message.content;
|
|
107
|
-
if (typeof rawContent === "string") {
|
|
108
|
-
return rawContent;
|
|
109
|
-
}
|
|
110
|
-
if (!Array.isArray(rawContent)) {
|
|
111
|
-
return "";
|
|
112
|
-
}
|
|
113
|
-
const textParts = [];
|
|
114
|
-
for (const chunk of rawContent) {
|
|
115
|
-
const typedChunk = chunk;
|
|
116
|
-
const type = typeof typedChunk.type === "string" ? typedChunk.type : undefined;
|
|
117
|
-
if (type === "text" && typeof typedChunk.text === "string") {
|
|
118
|
-
textParts.push(typedChunk.text);
|
|
119
|
-
}
|
|
120
|
-
else if (type === "thinking" &&
|
|
121
|
-
typeof typedChunk.thinking === "string") {
|
|
122
|
-
textParts.push(typedChunk.thinking);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return textParts.join("\n");
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=paste-handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paste-handler.js","sourceRoot":"","sources":["../../../src/cli-tui/paste/paste-handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,MAAM,MAAM,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;AAoBjD;;;;;;;GAOG;AACH,MAAM,OAAO,YAAY;IAQxB,YAAY,OAA4B;QAFhC,qBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;QAG5C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAA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D,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,KAAK,MAAM,KAAK,IAAI,UAA4C,EAAE,CAAC;YAClE,MAAM,UAAU,GAAG,KAIlB,CAAC;YACF,MAAM,IAAI,GACT,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACnE,IAAI,IAAI,KAAK,MAAM,IAAI,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC5D,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;iBAAM,IACN,IAAI,KAAK,UAAU;gBACnB,OAAO,UAAU,CAAC,QAAQ,KAAK,QAAQ,EACtC,CAAC;gBACF,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACrC,CAAC;QACF,CAAC;QACD,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACD","sourcesContent":["import type { LargePasteEvent } from \"@evalops/tui\";\nimport type { Agent } from \"../../agent/agent.js\";\nimport type { AppMessage, Message } from \"../../agent/types.js\";\nimport { createLogger } from \"../../utils/logger.js\";\nimport type { NotificationView } from \"../notification-view.js\";\nimport type { SessionContext } from \"../session/session-context.js\";\n\nconst logger = createLogger(\"tui:paste-handler\");\n\n/**\n * Editor interface for paste replacement.\n */\nexport interface PasteEditorInterface {\n\treplacePasteMarker(pasteId: number, text: string): boolean;\n}\n\n/**\n * Options for the paste handler.\n */\nexport interface PasteHandlerOptions {\n\tagent: Agent;\n\tnotificationView: NotificationView;\n\tsessionContext: SessionContext;\n\teditor: PasteEditorInterface;\n\trefreshFooterHint(): void;\n}\n\n/**\n * Handler for large paste events.\n *\n * When a user pastes a large block of text, this handler:\n * 1. Shows a loading indicator\n * 2. Generates a summary using the agent\n * 3. Replaces the placeholder with the summary\n */\nexport class PasteHandler {\n\tprivate readonly agent: Agent;\n\tprivate readonly notificationView: NotificationView;\n\tprivate readonly sessionContext: SessionContext;\n\tprivate readonly editor: PasteEditorInterface;\n\tprivate readonly refreshFooterHint: () => void;\n\tprivate pendingSummaries = new Set<number>();\n\n\tconstructor(options: PasteHandlerOptions) {\n\t\tthis.agent = options.agent;\n\t\tthis.notificationView = options.notificationView;\n\t\tthis.sessionContext = options.sessionContext;\n\t\tthis.editor = options.editor;\n\t\tthis.refreshFooterHint = options.refreshFooterHint;\n\t}\n\n\t/**\n\t * Check if any paste summaries are pending.\n\t */\n\thasPending(): boolean {\n\t\treturn this.pendingSummaries.size > 0;\n\t}\n\n\t/**\n\t * Get count of pending paste summaries.\n\t */\n\tpendingCount(): number {\n\t\treturn this.pendingSummaries.size;\n\t}\n\n\t/**\n\t * Handle a large paste event.\n\t */\n\tasync handleLargePaste(event: LargePasteEvent): Promise<void> {\n\t\tif (!event.content.trim()) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.pendingSummaries.has(event.pasteId)) {\n\t\t\treturn;\n\t\t}\n\t\tthis.pendingSummaries.add(event.pasteId);\n\t\tthis.refreshFooterHint();\n\t\tthis.notificationView.showInfo(\n\t\t\t`Summarizing pasted block (~${event.lineCount} lines)…`,\n\t\t);\n\t\ttry {\n\t\t\tconst summaryMessage = await this.agent.generateSummary(\n\t\t\t\t[\n\t\t\t\t\t{\n\t\t\t\t\t\trole: \"user\",\n\t\t\t\t\t\tcontent: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\t\t\ttext: this.buildPasteSummaryContext(event.content),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\ttimestamp: Date.now(),\n\t\t\t\t\t} as Message,\n\t\t\t\t],\n\t\t\t\tthis.buildPasteSummaryPrompt(event.lineCount, event.charCount),\n\t\t\t\t\"You turn large clipboard snippets into concise summaries highlighting key takeaways, files, and follow-ups.\",\n\t\t\t);\n\t\t\tconst summaryText = this.extractTextFromMessage(\n\t\t\t\tsummaryMessage as AppMessage,\n\t\t\t).trim();\n\t\t\tif (!summaryText) {\n\t\t\t\tthrow new Error(\"Empty summary\");\n\t\t\t}\n\t\t\tconst decorated = this.decoratePasteSummary(\n\t\t\t\tsummaryText,\n\t\t\t\tevent.lineCount,\n\t\t\t\tevent.charCount,\n\t\t\t);\n\t\t\tconst replaced = this.editor.replacePasteMarker(event.pasteId, decorated);\n\t\t\tif (replaced) {\n\t\t\t\tthis.notificationView.showToast(\n\t\t\t\t\t`Summarized pasted block (~${event.lineCount} lines)`,\n\t\t\t\t\t\"success\",\n\t\t\t\t);\n\t\t\t\tthis.sessionContext.recordPasteSummaryArtifact({\n\t\t\t\t\tplaceholder: event.marker,\n\t\t\t\t\tlineCount: event.lineCount,\n\t\t\t\t\tcharCount: event.charCount,\n\t\t\t\t\tsummaryPreview: summaryText.split(\"\\n\")[0]?.slice(0, 120) ?? \"\",\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.notificationView.showInfo(\n\t\t\t\t\t\"Generated paste summary but it was no longer needed.\",\n\t\t\t\t);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tlogger.error(\n\t\t\t\t\"Failed to summarize pasted content\",\n\t\t\t\terror instanceof Error ? error : undefined,\n\t\t\t);\n\t\t\tthis.notificationView.showError(\n\t\t\t\t\"Couldn't summarize pasted content. The original text will be sent.\",\n\t\t\t);\n\t\t} finally {\n\t\t\tthis.pendingSummaries.delete(event.pasteId);\n\t\t\tthis.refreshFooterHint();\n\t\t}\n\t}\n\n\tprivate buildPasteSummaryPrompt(lines: number, chars: number): string {\n\t\tconst formatter = new Intl.NumberFormat(\"en-US\");\n\t\treturn `Summarize the preceding clipboard snippet (~${formatter.format(\n\t\t\tlines,\n\t\t)} lines, ${formatter.format(chars)} chars). Provide concise bullet points highlighting what the snippet contains, key issues, and any follow-up actions. Limit to 120 words.`;\n\t}\n\n\tprivate buildPasteSummaryContext(content: string): string {\n\t\tconst limit = 12000;\n\t\tif (content.length <= limit) {\n\t\t\treturn content;\n\t\t}\n\t\treturn `${content.slice(0, limit)}\\n\\n[truncated ${content.length - limit} additional chars]`;\n\t}\n\n\tprivate decoratePasteSummary(\n\t\tsummary: string,\n\t\tlines: number,\n\t\tchars: number,\n\t): string {\n\t\tconst formatter = new Intl.NumberFormat(\"en-US\");\n\t\tconst meta = `[[Pasted ${formatter.format(lines)} lines (~${formatter.format(\n\t\t\tchars,\n\t\t)} chars) summarized]]`;\n\t\treturn `${meta}\\n${summary.trim()}\\n[[End paste summary]]`;\n\t}\n\n\tprivate extractTextFromMessage(\n\t\tmessage: AppMessage | null | undefined,\n\t): string {\n\t\tif (!message) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst rawContent = (message as { content?: unknown }).content;\n\t\tif (typeof rawContent === \"string\") {\n\t\t\treturn rawContent;\n\t\t}\n\t\tif (!Array.isArray(rawContent)) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst textParts: string[] = [];\n\t\tfor (const chunk of rawContent as Array<Record<string, unknown>>) {\n\t\t\tconst typedChunk = chunk as {\n\t\t\t\ttype?: unknown;\n\t\t\t\ttext?: unknown;\n\t\t\t\tthinking?: unknown;\n\t\t\t};\n\t\t\tconst type =\n\t\t\t\ttypeof typedChunk.type === \"string\" ? typedChunk.type : undefined;\n\t\t\tif (type === \"text\" && typeof typedChunk.text === \"string\") {\n\t\t\t\ttextParts.push(typedChunk.text);\n\t\t\t} else if (\n\t\t\t\ttype === \"thinking\" &&\n\t\t\t\ttypeof typedChunk.thinking === \"string\"\n\t\t\t) {\n\t\t\t\ttextParts.push(typedChunk.thinking);\n\t\t\t}\n\t\t}\n\t\treturn textParts.join(\"\\n\");\n\t}\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TUI } from "@evalops/tui";
|
|
2
|
-
import type { CommandExecutionContext } from "../commands/types.js";
|
|
3
|
-
import type { ModalManager } from "../modal-manager.js";
|
|
4
|
-
import type { NotificationView } from "../notification-view.js";
|
|
5
|
-
import { type PlanView, type TodoStore } from "../plan-view.js";
|
|
6
|
-
export interface PlanControllerOptions {
|
|
7
|
-
filePath: string;
|
|
8
|
-
planView: PlanView;
|
|
9
|
-
modalManager: ModalManager;
|
|
10
|
-
ui: TUI;
|
|
11
|
-
notificationView: NotificationView;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* UI controller for the /plan slash command and PlanPanelModal lifecycle.
|
|
15
|
-
*
|
|
16
|
-
* Keeps modal selection/mutation wiring out of TuiRenderer.
|
|
17
|
-
*/
|
|
18
|
-
export declare class PlanController {
|
|
19
|
-
private readonly options;
|
|
20
|
-
private readonly modal;
|
|
21
|
-
constructor(options: PlanControllerOptions);
|
|
22
|
-
handlePlanCommand(context: CommandExecutionContext): void;
|
|
23
|
-
showPanel(): void;
|
|
24
|
-
handleStoreChanged(store: TodoStore): void;
|
|
25
|
-
private toggleSelectedTaskCompletion;
|
|
26
|
-
private moveSelectedTask;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=plan-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/plan/plan-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAiB,MAAM,iBAAiB,CAAC;AAE/E,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,EAAE,EAAE,GAAG,CAAC;IACR,gBAAgB,EAAE,gBAAgB,CAAC;CACnC;AAED;;;;GAIG;AACH,qBAAa,cAAc;IAGd,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;gBAEV,OAAO,EAAE,qBAAqB;IAkB3D,iBAAiB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IASzD,SAAS,IAAI,IAAI;IAMjB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAO1C,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,gBAAgB;CAcxB"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { PlanPanelModal } from "../plan-panel-modal.js";
|
|
2
|
-
import { loadTodoStore } from "../plan-view.js";
|
|
3
|
-
/**
|
|
4
|
-
* UI controller for the /plan slash command and PlanPanelModal lifecycle.
|
|
5
|
-
*
|
|
6
|
-
* Keeps modal selection/mutation wiring out of TuiRenderer.
|
|
7
|
-
*/
|
|
8
|
-
export class PlanController {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
this.modal = new PlanPanelModal({
|
|
12
|
-
onClose: () => {
|
|
13
|
-
this.options.modalManager.pop();
|
|
14
|
-
},
|
|
15
|
-
onNavigate: (delta) => {
|
|
16
|
-
this.modal.navigateTasks(delta);
|
|
17
|
-
this.options.ui.requestRender();
|
|
18
|
-
},
|
|
19
|
-
onToggleComplete: () => {
|
|
20
|
-
this.toggleSelectedTaskCompletion();
|
|
21
|
-
},
|
|
22
|
-
onMoveTask: (direction) => {
|
|
23
|
-
this.moveSelectedTask(direction);
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
handlePlanCommand(context) {
|
|
28
|
-
const args = context.argumentText.trim();
|
|
29
|
-
if (!args || args === "list") {
|
|
30
|
-
this.showPanel();
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.options.planView.handlePlanCommand(context.rawInput);
|
|
34
|
-
}
|
|
35
|
-
showPanel() {
|
|
36
|
-
const store = loadTodoStore(this.options.filePath);
|
|
37
|
-
this.modal.setData(store);
|
|
38
|
-
this.options.modalManager.push(this.modal);
|
|
39
|
-
}
|
|
40
|
-
handleStoreChanged(store) {
|
|
41
|
-
this.modal.setData(store);
|
|
42
|
-
if (this.options.modalManager.getActiveModal() === this.modal) {
|
|
43
|
-
this.options.ui.requestRender();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
toggleSelectedTaskCompletion() {
|
|
47
|
-
const selectedGoal = this.modal.getSelectedGoal();
|
|
48
|
-
const selectedTask = this.modal.getSelectedTask();
|
|
49
|
-
if (!selectedGoal || !selectedTask) {
|
|
50
|
-
this.options.notificationView.showInfo("Select a task to toggle.");
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.options.planView.toggleTaskCompletion(selectedGoal.key, selectedTask.id);
|
|
54
|
-
}
|
|
55
|
-
moveSelectedTask(direction) {
|
|
56
|
-
const selectedGoal = this.modal.getSelectedGoal();
|
|
57
|
-
const selectedTask = this.modal.getSelectedTask();
|
|
58
|
-
if (!selectedGoal || !selectedTask) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.options.planView.moveTask(selectedGoal.key, selectedTask.id, direction);
|
|
62
|
-
const delta = direction === "up" ? -1 : 1;
|
|
63
|
-
this.modal.navigateTasks(delta);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=plan-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/plan/plan-controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAiC,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAU/E;;;;GAIG;AACH,MAAM,OAAO,cAAc;IAG1B,YAA6B,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;QAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;YAC/D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC;QACjC,CAAC;IACF,CAAC;IAEO,4BAA4B;QACnC,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAClD,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY,EAAE,CAAC;YACpC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC;YACnE,OAAO;QACR,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CACzC,YAAY,CAAC,GAAG,EAChB,YAAY,CAAC,EAAE,CACf,CAAC;IACH,CAAC;IAEO,gBAAgB,CAAC,SAAwB;QAChD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QAClD,IAAI,CAAC,YAAY,IAAI,CAAC,YAAY,EAAE,CAAC;YACpC,OAAO;QACR,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAC7B,YAAY,CAAC,GAAG,EAChB,YAAY,CAAC,EAAE,EACf,SAAS,CACT,CAAC;QACF,MAAM,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;CACD","sourcesContent":["import type { TUI } from \"@evalops/tui\";\nimport type { CommandExecutionContext } from \"../commands/types.js\";\nimport type { ModalManager } from \"../modal-manager.js\";\nimport type { NotificationView } from \"../notification-view.js\";\nimport { PlanPanelModal } from \"../plan-panel-modal.js\";\nimport { type PlanView, type TodoStore, loadTodoStore } from \"../plan-view.js\";\n\nexport interface PlanControllerOptions {\n\tfilePath: string;\n\tplanView: PlanView;\n\tmodalManager: ModalManager;\n\tui: TUI;\n\tnotificationView: NotificationView;\n}\n\n/**\n * UI controller for the /plan slash command and PlanPanelModal lifecycle.\n *\n * Keeps modal selection/mutation wiring out of TuiRenderer.\n */\nexport class PlanController {\n\tprivate readonly modal: PlanPanelModal;\n\n\tconstructor(private readonly options: PlanControllerOptions) {\n\t\tthis.modal = new PlanPanelModal({\n\t\t\tonClose: () => {\n\t\t\t\tthis.options.modalManager.pop();\n\t\t\t},\n\t\t\tonNavigate: (delta) => {\n\t\t\t\tthis.modal.navigateTasks(delta);\n\t\t\t\tthis.options.ui.requestRender();\n\t\t\t},\n\t\t\tonToggleComplete: () => {\n\t\t\t\tthis.toggleSelectedTaskCompletion();\n\t\t\t},\n\t\t\tonMoveTask: (direction) => {\n\t\t\t\tthis.moveSelectedTask(direction);\n\t\t\t},\n\t\t});\n\t}\n\n\thandlePlanCommand(context: CommandExecutionContext): void {\n\t\tconst args = context.argumentText.trim();\n\t\tif (!args || args === \"list\") {\n\t\t\tthis.showPanel();\n\t\t\treturn;\n\t\t}\n\t\tthis.options.planView.handlePlanCommand(context.rawInput);\n\t}\n\n\tshowPanel(): void {\n\t\tconst store = loadTodoStore(this.options.filePath);\n\t\tthis.modal.setData(store);\n\t\tthis.options.modalManager.push(this.modal);\n\t}\n\n\thandleStoreChanged(store: TodoStore): void {\n\t\tthis.modal.setData(store);\n\t\tif (this.options.modalManager.getActiveModal() === this.modal) {\n\t\t\tthis.options.ui.requestRender();\n\t\t}\n\t}\n\n\tprivate toggleSelectedTaskCompletion(): void {\n\t\tconst selectedGoal = this.modal.getSelectedGoal();\n\t\tconst selectedTask = this.modal.getSelectedTask();\n\t\tif (!selectedGoal || !selectedTask) {\n\t\t\tthis.options.notificationView.showInfo(\"Select a task to toggle.\");\n\t\t\treturn;\n\t\t}\n\t\tthis.options.planView.toggleTaskCompletion(\n\t\t\tselectedGoal.key,\n\t\t\tselectedTask.id,\n\t\t);\n\t}\n\n\tprivate moveSelectedTask(direction: \"up\" | \"down\"): void {\n\t\tconst selectedGoal = this.modal.getSelectedGoal();\n\t\tconst selectedTask = this.modal.getSelectedTask();\n\t\tif (!selectedGoal || !selectedTask) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.planView.moveTask(\n\t\t\tselectedGoal.key,\n\t\t\tselectedTask.id,\n\t\t\tdirection,\n\t\t);\n\t\tconst delta = direction === \"up\" ? -1 : 1;\n\t\tthis.modal.navigateTasks(delta);\n\t}\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Component } from "@evalops/tui";
|
|
2
|
-
import type { TodoGoalEntry, TodoItem } from "./plan-view.js";
|
|
3
|
-
interface PlanPanelModalOptions {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onNavigate: (delta: number) => void;
|
|
6
|
-
onToggleComplete: () => void;
|
|
7
|
-
onMoveTask: (direction: "up" | "down") => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class PlanPanelModal implements Component {
|
|
10
|
-
private readonly options;
|
|
11
|
-
private goals;
|
|
12
|
-
private selectedGoalIndex;
|
|
13
|
-
private selectedTaskIndex;
|
|
14
|
-
constructor(options: PlanPanelModalOptions);
|
|
15
|
-
setData(store: Record<string, TodoGoalEntry>): void;
|
|
16
|
-
render(width: number): string[];
|
|
17
|
-
handleInput(data: string): void;
|
|
18
|
-
getSelectedGoal(): {
|
|
19
|
-
key: string;
|
|
20
|
-
entry: TodoGoalEntry;
|
|
21
|
-
} | null;
|
|
22
|
-
getSelectedTask(): TodoItem | null;
|
|
23
|
-
navigateTasks(delta: number): void;
|
|
24
|
-
private getStatusSymbol;
|
|
25
|
-
private countTodoStatuses;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=plan-panel-modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-panel-modal.d.ts","sourceRoot":"","sources":["../../src/cli-tui/plan-panel-modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAS9D,UAAU,qBAAqB;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,qBAAa,cAAe,YAAW,SAAS;IAKnC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,KAAK,CAA+C;IAC5D,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,iBAAiB,CAAK;gBAED,OAAO,EAAE,qBAAqB;IAE3D,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI;IAkBnD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAmI/B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAmD/B,eAAe,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,aAAa,CAAA;KAAE,GAAG,IAAI;IAI/D,eAAe,IAAI,QAAQ,GAAG,IAAI;IAMlC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IASlC,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,iBAAiB;CAgBzB"}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { theme } from "../theme/theme.js";
|
|
2
|
-
import { centerText, padLine, truncateText } from "./utils/text-formatting.js";
|
|
3
|
-
const PLAN_STATUS_SYMBOLS = {
|
|
4
|
-
pending: "[ ]",
|
|
5
|
-
in_progress: "[~]",
|
|
6
|
-
completed: "[x]",
|
|
7
|
-
};
|
|
8
|
-
export class PlanPanelModal {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
this.goals = [];
|
|
12
|
-
this.selectedGoalIndex = 0;
|
|
13
|
-
this.selectedTaskIndex = 0;
|
|
14
|
-
}
|
|
15
|
-
setData(store) {
|
|
16
|
-
this.goals = Object.entries(store).map(([key, entry]) => ({
|
|
17
|
-
key,
|
|
18
|
-
entry,
|
|
19
|
-
}));
|
|
20
|
-
// Clamp indices
|
|
21
|
-
if (this.selectedGoalIndex >= this.goals.length) {
|
|
22
|
-
this.selectedGoalIndex = Math.max(0, this.goals.length - 1);
|
|
23
|
-
}
|
|
24
|
-
const selectedGoal = this.goals[this.selectedGoalIndex];
|
|
25
|
-
if (selectedGoal &&
|
|
26
|
-
this.selectedTaskIndex >= selectedGoal.entry.items.length) {
|
|
27
|
-
this.selectedTaskIndex = Math.max(0, selectedGoal.entry.items.length - 1);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
render(width) {
|
|
31
|
-
const lines = [];
|
|
32
|
-
const borderColor = "#8b5cf6";
|
|
33
|
-
// Top border
|
|
34
|
-
lines.push(theme.fg("borderAccent", `╭${"─".repeat(width - 2)}╮`));
|
|
35
|
-
// Title
|
|
36
|
-
const title = centerText("PLANS", width - 4);
|
|
37
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${theme.bold(theme.fg("text", title))}${theme.fg("borderAccent", " │")}`);
|
|
38
|
-
// Separator
|
|
39
|
-
lines.push(theme.fg("borderAccent", `├${"─".repeat(width - 2)}┤`));
|
|
40
|
-
if (this.goals.length === 0) {
|
|
41
|
-
const emptyLine = padLine(theme.fg("dim", "No plans found. Use /plan new <goal> to create one."), width - 4);
|
|
42
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${emptyLine}${theme.fg("borderAccent", " │")}`);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const selectedGoal = this.goals[this.selectedGoalIndex];
|
|
46
|
-
if (!selectedGoal)
|
|
47
|
-
return lines;
|
|
48
|
-
// Show all goals as tabs
|
|
49
|
-
const goalTabs = this.goals.map((g, idx) => {
|
|
50
|
-
const counts = this.countTodoStatuses(g.entry.items);
|
|
51
|
-
const progress = `${counts.completed}/${g.entry.items.length}`;
|
|
52
|
-
if (idx === this.selectedGoalIndex) {
|
|
53
|
-
return theme.bold(theme.fg("accent", `[${g.key} ${progress}]`));
|
|
54
|
-
}
|
|
55
|
-
return theme.fg("dim", `${g.key} ${progress}`);
|
|
56
|
-
});
|
|
57
|
-
const tabsLine = padLine(goalTabs.join(" · "), width - 4);
|
|
58
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${tabsLine}${theme.fg("borderAccent", " │")}`);
|
|
59
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${" ".repeat(width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
60
|
-
// Show tasks for selected goal
|
|
61
|
-
if (selectedGoal.entry.items.length === 0) {
|
|
62
|
-
const emptyLine = padLine(theme.fg("dim", "No tasks yet."), width - 4);
|
|
63
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${emptyLine}${theme.fg("borderAccent", " │")}`);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const maxDisplay = 10;
|
|
67
|
-
const start = Math.max(0, Math.min(this.selectedTaskIndex - Math.floor(maxDisplay / 2), selectedGoal.entry.items.length - maxDisplay));
|
|
68
|
-
const visible = selectedGoal.entry.items.slice(start, start + maxDisplay);
|
|
69
|
-
for (let i = 0; i < visible.length; i++) {
|
|
70
|
-
const task = visible[i];
|
|
71
|
-
if (!task)
|
|
72
|
-
continue;
|
|
73
|
-
const actualIndex = start + i;
|
|
74
|
-
const isSelected = actualIndex === this.selectedTaskIndex;
|
|
75
|
-
const prefix = isSelected ? theme.fg("accent", "► ") : " ";
|
|
76
|
-
const status = this.getStatusSymbol(task);
|
|
77
|
-
const content = truncateText(task.content, width - 12);
|
|
78
|
-
const taskLine = padLine(`${prefix}${status} ${theme.fg("text", content)}`, width - 4);
|
|
79
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${taskLine}${theme.fg("borderAccent", " │")}`);
|
|
80
|
-
}
|
|
81
|
-
if (selectedGoal.entry.items.length > maxDisplay) {
|
|
82
|
-
const remainingCount = selectedGoal.entry.items.length - maxDisplay;
|
|
83
|
-
const moreLabel = padLine(theme.fg("dim", `... and ${remainingCount} more`), width - 4);
|
|
84
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${moreLabel}${theme.fg("borderAccent", " │")}`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// Summary stats
|
|
88
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${" ".repeat(width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
89
|
-
const counts = this.countTodoStatuses(selectedGoal.entry.items);
|
|
90
|
-
const statsLine = padLine(theme.fg("dim", `Stats: ${counts.completed} completed · ${counts.in_progress} in progress · ${counts.pending} pending`), width - 4);
|
|
91
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${statsLine}${theme.fg("borderAccent", " │")}`);
|
|
92
|
-
}
|
|
93
|
-
// Bottom separator
|
|
94
|
-
lines.push(theme.fg("borderAccent", `├${"─".repeat(width - 2)}┤`));
|
|
95
|
-
// Help text
|
|
96
|
-
const helpText = this.goals.length > 0
|
|
97
|
-
? "[↑/↓] navigate [shift+↑/↓] move [←/→] switch goals [space] toggle [esc] close"
|
|
98
|
-
: "[esc] close";
|
|
99
|
-
const helpLine = centerText(helpText, width - 4);
|
|
100
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${theme.fg("dim", helpLine)}${theme.fg("borderAccent", " │")}`);
|
|
101
|
-
// Bottom border
|
|
102
|
-
lines.push(theme.fg("borderAccent", `╰${"─".repeat(width - 2)}╯`));
|
|
103
|
-
return lines;
|
|
104
|
-
}
|
|
105
|
-
handleInput(data) {
|
|
106
|
-
if (data === "\x1b") {
|
|
107
|
-
// Escape
|
|
108
|
-
this.options.onClose();
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (data === "\x1b[A") {
|
|
112
|
-
// Up arrow
|
|
113
|
-
this.options.onNavigate(-1);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (data === "\x1b[B") {
|
|
117
|
-
// Down arrow
|
|
118
|
-
this.options.onNavigate(1);
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
if (data === "\x1b[1;2A" || data === "K") {
|
|
122
|
-
// Shift+Up or K
|
|
123
|
-
this.options.onMoveTask("up");
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (data === "\x1b[1;2B" || data === "J") {
|
|
127
|
-
// Shift+Down or J
|
|
128
|
-
this.options.onMoveTask("down");
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
if (data === "\x1b[C") {
|
|
132
|
-
// Right arrow - next goal
|
|
133
|
-
if (this.goals.length > 0) {
|
|
134
|
-
this.selectedGoalIndex =
|
|
135
|
-
(this.selectedGoalIndex + 1) % this.goals.length;
|
|
136
|
-
this.selectedTaskIndex = 0;
|
|
137
|
-
}
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (data === "\x1b[D") {
|
|
141
|
-
// Left arrow - previous goal
|
|
142
|
-
if (this.goals.length > 0) {
|
|
143
|
-
this.selectedGoalIndex =
|
|
144
|
-
(this.selectedGoalIndex - 1 + this.goals.length) % this.goals.length;
|
|
145
|
-
this.selectedTaskIndex = 0;
|
|
146
|
-
}
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (data === " ") {
|
|
150
|
-
// Space - toggle completion
|
|
151
|
-
this.options.onToggleComplete();
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
getSelectedGoal() {
|
|
156
|
-
return this.goals[this.selectedGoalIndex] || null;
|
|
157
|
-
}
|
|
158
|
-
getSelectedTask() {
|
|
159
|
-
const goal = this.goals[this.selectedGoalIndex];
|
|
160
|
-
if (!goal)
|
|
161
|
-
return null;
|
|
162
|
-
return goal.entry.items[this.selectedTaskIndex] || null;
|
|
163
|
-
}
|
|
164
|
-
navigateTasks(delta) {
|
|
165
|
-
const goal = this.goals[this.selectedGoalIndex];
|
|
166
|
-
if (!goal)
|
|
167
|
-
return;
|
|
168
|
-
this.selectedTaskIndex = Math.max(0, Math.min(goal.entry.items.length - 1, this.selectedTaskIndex + delta));
|
|
169
|
-
}
|
|
170
|
-
getStatusSymbol(task) {
|
|
171
|
-
const status = (task.status ??
|
|
172
|
-
"pending");
|
|
173
|
-
const symbol = PLAN_STATUS_SYMBOLS[status] || PLAN_STATUS_SYMBOLS.pending;
|
|
174
|
-
switch (status) {
|
|
175
|
-
case "completed":
|
|
176
|
-
return theme.fg("success", symbol);
|
|
177
|
-
case "in_progress":
|
|
178
|
-
return theme.fg("warning", symbol);
|
|
179
|
-
default:
|
|
180
|
-
return theme.fg("dim", symbol);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
countTodoStatuses(items) {
|
|
184
|
-
return items.reduce((acc, item) => {
|
|
185
|
-
const status = item.status ?? "pending";
|
|
186
|
-
if (status in acc) {
|
|
187
|
-
acc[status]++;
|
|
188
|
-
}
|
|
189
|
-
return acc;
|
|
190
|
-
}, { pending: 0, in_progress: 0, completed: 0 });
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
//# sourceMappingURL=plan-panel-modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-panel-modal.js","sourceRoot":"","sources":["../../src/cli-tui/plan-panel-modal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,UAAU,E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AC,SAAS,EAAE,MAAM,CAAC,CAAC;YACpC;gBACC,OAAO,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACjC,CAAC;IACF,CAAC;IAEO,iBAAiB,CAAC,KAAiB;QAK1C,OAAO,KAAK,CAAC,MAAM,CAClB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACb,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC;YACxC,IAAI,MAAM,IAAI,GAAG,EAAE,CAAC;gBACnB,GAAG,CAAC,MAA0B,CAAC,EAAE,CAAC;YACnC,CAAC;YACD,OAAO,GAAG,CAAC;QACZ,CAAC,EACD,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAC5C,CAAC;IACH,CAAC;CACD","sourcesContent":["import type { Component } from \"@evalops/tui\";\nimport chalk from \"chalk\";\nimport { theme } from \"../theme/theme.js\";\nimport type { TodoGoalEntry, TodoItem } from \"./plan-view.js\";\nimport { centerText, padLine, truncateText } from \"./utils/text-formatting.js\";\n\nconst PLAN_STATUS_SYMBOLS = {\n\tpending: \"[ ]\",\n\tin_progress: \"[~]\",\n\tcompleted: \"[x]\",\n} as const;\n\ninterface PlanPanelModalOptions {\n\tonClose: () => void;\n\tonNavigate: (delta: number) => void;\n\tonToggleComplete: () => void;\n\tonMoveTask: (direction: \"up\" | \"down\") => void;\n}\n\nexport class PlanPanelModal implements Component {\n\tprivate goals: { key: string; entry: TodoGoalEntry }[] = [];\n\tprivate selectedGoalIndex = 0;\n\tprivate selectedTaskIndex = 0;\n\n\tconstructor(private readonly options: PlanPanelModalOptions) {}\n\n\tsetData(store: Record<string, TodoGoalEntry>): void {\n\t\tthis.goals = Object.entries(store).map(([key, entry]) => ({\n\t\t\tkey,\n\t\t\tentry,\n\t\t}));\n\t\t// Clamp indices\n\t\tif (this.selectedGoalIndex >= this.goals.length) {\n\t\t\tthis.selectedGoalIndex = Math.max(0, this.goals.length - 1);\n\t\t}\n\t\tconst selectedGoal = this.goals[this.selectedGoalIndex];\n\t\tif (\n\t\t\tselectedGoal &&\n\t\t\tthis.selectedTaskIndex >= selectedGoal.entry.items.length\n\t\t) {\n\t\t\tthis.selectedTaskIndex = Math.max(0, selectedGoal.entry.items.length - 1);\n\t\t}\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst borderColor = \"#8b5cf6\";\n\n\t\t// Top border\n\t\tlines.push(theme.fg(\"borderAccent\", `╭${\"─\".repeat(width - 2)}╮`));\n\n\t\t// Title\n\t\tconst title = centerText(\"PLANS\", width - 4);\n\t\tlines.push(\n\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${theme.bold(theme.fg(\"text\", title))}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t);\n\n\t\t// Separator\n\t\tlines.push(theme.fg(\"borderAccent\", `├${\"─\".repeat(width - 2)}┤`));\n\n\t\tif (this.goals.length === 0) {\n\t\t\tconst emptyLine = padLine(\n\t\t\t\ttheme.fg(\"dim\", \"No plans found. Use /plan new <goal> to create one.\"),\n\t\t\t\twidth - 4,\n\t\t\t);\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${emptyLine}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\t\t} else {\n\t\t\tconst selectedGoal = this.goals[this.selectedGoalIndex];\n\t\t\tif (!selectedGoal) return lines;\n\n\t\t\t// Show all goals as tabs\n\t\t\tconst goalTabs = this.goals.map((g, idx) => {\n\t\t\t\tconst counts = this.countTodoStatuses(g.entry.items);\n\t\t\t\tconst progress = `${counts.completed}/${g.entry.items.length}`;\n\t\t\t\tif (idx === this.selectedGoalIndex) {\n\t\t\t\t\treturn theme.bold(theme.fg(\"accent\", `[${g.key} ${progress}]`));\n\t\t\t\t}\n\t\t\t\treturn theme.fg(\"dim\", `${g.key} ${progress}`);\n\t\t\t});\n\t\t\tconst tabsLine = padLine(goalTabs.join(\" · \"), width - 4);\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${tabsLine}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${\" \".repeat(width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\n\t\t\t// Show tasks for selected goal\n\t\t\tif (selectedGoal.entry.items.length === 0) {\n\t\t\t\tconst emptyLine = padLine(theme.fg(\"dim\", \"No tasks yet.\"), width - 4);\n\t\t\t\tlines.push(\n\t\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${emptyLine}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tconst maxDisplay = 10;\n\t\t\t\tconst start = Math.max(\n\t\t\t\t\t0,\n\t\t\t\t\tMath.min(\n\t\t\t\t\t\tthis.selectedTaskIndex - Math.floor(maxDisplay / 2),\n\t\t\t\t\t\tselectedGoal.entry.items.length - maxDisplay,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\t\tconst visible = selectedGoal.entry.items.slice(\n\t\t\t\t\tstart,\n\t\t\t\t\tstart + maxDisplay,\n\t\t\t\t);\n\n\t\t\t\tfor (let i = 0; i < visible.length; i++) {\n\t\t\t\t\tconst task = visible[i];\n\t\t\t\t\tif (!task) continue;\n\t\t\t\t\tconst actualIndex = start + i;\n\t\t\t\t\tconst isSelected = actualIndex === this.selectedTaskIndex;\n\t\t\t\t\tconst prefix = isSelected ? theme.fg(\"accent\", \"► \") : \" \";\n\t\t\t\t\tconst status = this.getStatusSymbol(task);\n\t\t\t\t\tconst content = truncateText(task.content, width - 12);\n\t\t\t\t\tconst taskLine = padLine(\n\t\t\t\t\t\t`${prefix}${status} ${theme.fg(\"text\", content)}`,\n\t\t\t\t\t\twidth - 4,\n\t\t\t\t\t);\n\t\t\t\t\tlines.push(\n\t\t\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${taskLine}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (selectedGoal.entry.items.length > maxDisplay) {\n\t\t\t\t\tconst remainingCount = selectedGoal.entry.items.length - maxDisplay;\n\t\t\t\t\tconst moreLabel = padLine(\n\t\t\t\t\t\ttheme.fg(\"dim\", `... and ${remainingCount} more`),\n\t\t\t\t\t\twidth - 4,\n\t\t\t\t\t);\n\t\t\t\t\tlines.push(\n\t\t\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${moreLabel}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Summary stats\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${\" \".repeat(width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\t\t\tconst counts = this.countTodoStatuses(selectedGoal.entry.items);\n\t\t\tconst statsLine = padLine(\n\t\t\t\ttheme.fg(\n\t\t\t\t\t\"dim\",\n\t\t\t\t\t`Stats: ${counts.completed} completed · ${counts.in_progress} in progress · ${counts.pending} pending`,\n\t\t\t\t),\n\t\t\t\twidth - 4,\n\t\t\t);\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${statsLine}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\t\t}\n\n\t\t// Bottom separator\n\t\tlines.push(theme.fg(\"borderAccent\", `├${\"─\".repeat(width - 2)}┤`));\n\n\t\t// Help text\n\t\tconst helpText =\n\t\t\tthis.goals.length > 0\n\t\t\t\t? \"[↑/↓] navigate [shift+↑/↓] move [←/→] switch goals [space] toggle [esc] close\"\n\t\t\t\t: \"[esc] close\";\n\t\tconst helpLine = centerText(helpText, width - 4);\n\t\tlines.push(\n\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${theme.fg(\"dim\", helpLine)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t);\n\n\t\t// Bottom border\n\t\tlines.push(theme.fg(\"borderAccent\", `╰${\"─\".repeat(width - 2)}╯`));\n\n\t\treturn lines;\n\t}\n\n\thandleInput(data: string): void {\n\t\tif (data === \"\\x1b\") {\n\t\t\t// Escape\n\t\t\tthis.options.onClose();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[A\") {\n\t\t\t// Up arrow\n\t\t\tthis.options.onNavigate(-1);\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[B\") {\n\t\t\t// Down arrow\n\t\t\tthis.options.onNavigate(1);\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[1;2A\" || data === \"K\") {\n\t\t\t// Shift+Up or K\n\t\t\tthis.options.onMoveTask(\"up\");\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[1;2B\" || data === \"J\") {\n\t\t\t// Shift+Down or J\n\t\t\tthis.options.onMoveTask(\"down\");\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[C\") {\n\t\t\t// Right arrow - next goal\n\t\t\tif (this.goals.length > 0) {\n\t\t\t\tthis.selectedGoalIndex =\n\t\t\t\t\t(this.selectedGoalIndex + 1) % this.goals.length;\n\t\t\t\tthis.selectedTaskIndex = 0;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[D\") {\n\t\t\t// Left arrow - previous goal\n\t\t\tif (this.goals.length > 0) {\n\t\t\t\tthis.selectedGoalIndex =\n\t\t\t\t\t(this.selectedGoalIndex - 1 + this.goals.length) % this.goals.length;\n\t\t\t\tthis.selectedTaskIndex = 0;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (data === \" \") {\n\t\t\t// Space - toggle completion\n\t\t\tthis.options.onToggleComplete();\n\t\t\treturn;\n\t\t}\n\t}\n\n\tgetSelectedGoal(): { key: string; entry: TodoGoalEntry } | null {\n\t\treturn this.goals[this.selectedGoalIndex] || null;\n\t}\n\n\tgetSelectedTask(): TodoItem | null {\n\t\tconst goal = this.goals[this.selectedGoalIndex];\n\t\tif (!goal) return null;\n\t\treturn goal.entry.items[this.selectedTaskIndex] || null;\n\t}\n\n\tnavigateTasks(delta: number): void {\n\t\tconst goal = this.goals[this.selectedGoalIndex];\n\t\tif (!goal) return;\n\t\tthis.selectedTaskIndex = Math.max(\n\t\t\t0,\n\t\t\tMath.min(goal.entry.items.length - 1, this.selectedTaskIndex + delta),\n\t\t);\n\t}\n\n\tprivate getStatusSymbol(task: TodoItem): string {\n\t\tconst status = (task.status ??\n\t\t\t\"pending\") as keyof typeof PLAN_STATUS_SYMBOLS;\n\t\tconst symbol = PLAN_STATUS_SYMBOLS[status] || PLAN_STATUS_SYMBOLS.pending;\n\n\t\tswitch (status) {\n\t\t\tcase \"completed\":\n\t\t\t\treturn theme.fg(\"success\", symbol);\n\t\t\tcase \"in_progress\":\n\t\t\t\treturn theme.fg(\"warning\", symbol);\n\t\t\tdefault:\n\t\t\t\treturn theme.fg(\"dim\", symbol);\n\t\t}\n\t}\n\n\tprivate countTodoStatuses(items: TodoItem[]): {\n\t\tpending: number;\n\t\tin_progress: number;\n\t\tcompleted: number;\n\t} {\n\t\treturn items.reduce(\n\t\t\t(acc, item) => {\n\t\t\t\tconst status = item.status ?? \"pending\";\n\t\t\t\tif (status in acc) {\n\t\t\t\t\tacc[status as keyof typeof acc]++;\n\t\t\t\t}\n\t\t\t\treturn acc;\n\t\t\t},\n\t\t\t{ pending: 0, in_progress: 0, completed: 0 },\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { Container, TUI } from "@evalops/tui";
|
|
2
|
-
declare const PLAN_STATUS_SYMBOLS: {
|
|
3
|
-
readonly pending: "[ ]";
|
|
4
|
-
readonly in_progress: "[~]";
|
|
5
|
-
readonly completed: "[x]";
|
|
6
|
-
};
|
|
7
|
-
export type PlanStatusKey = keyof typeof PLAN_STATUS_SYMBOLS;
|
|
8
|
-
export interface TodoItem {
|
|
9
|
-
id: string;
|
|
10
|
-
content: string;
|
|
11
|
-
status: string;
|
|
12
|
-
priority: string;
|
|
13
|
-
notes?: string;
|
|
14
|
-
due?: string;
|
|
15
|
-
blockedBy?: string[];
|
|
16
|
-
}
|
|
17
|
-
export interface TodoGoalEntry {
|
|
18
|
-
goal: string;
|
|
19
|
-
items: TodoItem[];
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
}
|
|
22
|
-
export type TodoStore = Record<string, TodoGoalEntry>;
|
|
23
|
-
export interface PlanViewOptions {
|
|
24
|
-
filePath: string;
|
|
25
|
-
chatContainer: Container;
|
|
26
|
-
ui: TUI;
|
|
27
|
-
showInfoMessage: (message: string) => void;
|
|
28
|
-
setPlanHint: (hint: string | null) => void;
|
|
29
|
-
onStoreChanged?: (store: TodoStore) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare class PlanView {
|
|
32
|
-
private readonly options;
|
|
33
|
-
constructor(options: PlanViewOptions);
|
|
34
|
-
syncHintWithStore(): void;
|
|
35
|
-
handlePlanCommand(text: string): void;
|
|
36
|
-
private showTextBlock;
|
|
37
|
-
private notifyStoreChanged;
|
|
38
|
-
private extractArgs;
|
|
39
|
-
private tryHandlePlanAction;
|
|
40
|
-
private handlePlanCreate;
|
|
41
|
-
private handlePlanAdd;
|
|
42
|
-
private handlePlanComplete;
|
|
43
|
-
private handlePlanClear;
|
|
44
|
-
toggleTaskCompletion(goalKey: string, taskId: string): void;
|
|
45
|
-
moveTask(goalKey: string, taskId: string, direction: "up" | "down"): void;
|
|
46
|
-
private resolveTask;
|
|
47
|
-
private showPlanSummary;
|
|
48
|
-
private showGoalDetail;
|
|
49
|
-
}
|
|
50
|
-
export declare function loadTodoStore(filePath: string): TodoStore;
|
|
51
|
-
export declare function saveTodoStore(filePath: string, store: TodoStore): void;
|
|
52
|
-
export declare function calculatePlanHint(store: TodoStore): string | null;
|
|
53
|
-
export declare function countTodoStatuses(items: Array<{
|
|
54
|
-
status: string;
|
|
55
|
-
}>): Record<PlanStatusKey, number>;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=plan-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-view.d.ts","sourceRoot":"","sources":["../../src/cli-tui/plan-view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAKnD,QAAA,MAAM,mBAAmB;;;;CAIf,CAAC;AAiBX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAE7D,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC;IACzB,EAAE,EAAE,GAAG,CAAC;IACR,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CAC5C;AAED,qBAAa,QAAQ;IACR,OAAO,CAAC,QAAQ,C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