@evalops/maestro 0.10.51 → 0.10.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +1 -1
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-handoff.d.ts.map +1 -1
- package/dist/agent/context-handoff.js +2 -1
- package/dist/agent/context-handoff.js.map +1 -1
- package/dist/agent/index.d.ts +8 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +8 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +1 -1
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +56 -0
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/oracle-consultation-policy.d.ts +22 -0
- package/dist/agent/oracle-consultation-policy.d.ts.map +1 -0
- package/dist/agent/oracle-consultation-policy.js +72 -0
- package/dist/agent/oracle-consultation-policy.js.map +1 -0
- package/dist/agent/oracle-policy-experiment.d.ts +27 -0
- package/dist/agent/oracle-policy-experiment.d.ts.map +1 -0
- package/dist/agent/oracle-policy-experiment.js +59 -0
- package/dist/agent/oracle-policy-experiment.js.map +1 -0
- package/dist/agent/oracle-policy-rollout.d.ts +42 -0
- package/dist/agent/oracle-policy-rollout.d.ts.map +1 -0
- package/dist/agent/oracle-policy-rollout.js +80 -0
- package/dist/agent/oracle-policy-rollout.js.map +1 -0
- package/dist/agent/plugin-agent-api.d.ts +13 -0
- package/dist/agent/plugin-agent-api.d.ts.map +1 -0
- package/dist/agent/plugin-agent-api.js +11 -0
- package/dist/agent/plugin-agent-api.js.map +1 -0
- package/dist/agent/plugin-agent-loader.d.ts +17 -0
- package/dist/agent/plugin-agent-loader.d.ts.map +1 -0
- package/dist/agent/plugin-agent-loader.js +81 -0
- package/dist/agent/plugin-agent-loader.js.map +1 -0
- package/dist/agent/plugin-agent-registry.d.ts +62 -0
- package/dist/agent/plugin-agent-registry.d.ts.map +1 -0
- package/dist/agent/plugin-agent-registry.js +109 -0
- package/dist/agent/plugin-agent-registry.js.map +1 -0
- package/dist/agent/profile-loader.d.ts +7 -0
- package/dist/agent/profile-loader.d.ts.map +1 -0
- package/dist/agent/profile-loader.js +115 -0
- package/dist/agent/profile-loader.js.map +1 -0
- package/dist/agent/profiles.d.ts +30 -0
- package/dist/agent/profiles.d.ts.map +1 -0
- package/dist/agent/profiles.js +146 -0
- package/dist/agent/profiles.js.map +1 -0
- package/dist/agent/prompt-cache.d.ts +0 -4
- package/dist/agent/prompt-cache.d.ts.map +1 -1
- package/dist/agent/prompt-cache.js +1 -7
- package/dist/agent/prompt-cache.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +1 -0
- package/dist/agent/providers/google.js +1 -0
- package/dist/agent/providers/vertex.js +1 -0
- package/dist/agent/routing-receipt.d.ts +34 -0
- package/dist/agent/routing-receipt.d.ts.map +1 -0
- package/dist/agent/routing-receipt.js +55 -0
- package/dist/agent/routing-receipt.js.map +1 -0
- package/dist/{skills/artifact-metadata.d.ts → agent/skill-artifact-metadata.d.ts} +2 -4
- package/dist/agent/skill-artifact-metadata.d.ts.map +1 -0
- package/dist/{skills/artifact-metadata.js → agent/skill-artifact-metadata.js} +1 -38
- package/dist/agent/skill-artifact-metadata.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +2 -2
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/token-counter.d.ts +40 -0
- package/dist/agent/token-counter.d.ts.map +1 -0
- package/dist/agent/token-counter.js +74 -0
- package/dist/agent/token-counter.js.map +1 -0
- package/dist/agent/transport/events.d.ts +1 -1
- package/dist/agent/transport/events.d.ts.map +1 -1
- package/dist/agent/transport/events.js +1 -1
- package/dist/agent/transport/events.js.map +1 -1
- package/dist/agent/types.d.ts +4 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/app-server/plugin-bundle-api.d.ts.map +1 -1
- package/dist/app-server/plugin-bundle-api.js +1 -0
- package/dist/app-server/plugin-bundle-api.js.map +1 -1
- package/dist/app-server/session-api.d.ts.map +1 -1
- package/dist/app-server/session-api.js +15 -2
- package/dist/app-server/session-api.js.map +1 -1
- package/dist/audit/logger.d.ts +5 -5
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +18 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/direct-runtime-command.d.ts +1 -0
- package/dist/cli/direct-runtime-command.d.ts.map +1 -1
- package/dist/cli/direct-runtime-command.js +25 -3
- package/dist/cli/direct-runtime-command.js.map +1 -1
- package/dist/cli/headless.d.ts +3 -19
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +8 -619
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/native-tui-launcher.d.ts +126 -0
- package/dist/cli/native-tui-launcher.d.ts.map +1 -0
- package/dist/cli/native-tui-launcher.js +425 -0
- package/dist/cli/native-tui-launcher.js.map +1 -0
- package/dist/cli/rpc-mode.d.ts +3 -27
- package/dist/cli/rpc-mode.d.ts.map +1 -1
- package/dist/cli/rpc-mode.js +8 -177
- package/dist/cli/rpc-mode.js.map +1 -1
- package/dist/cli/session.d.ts +11 -19
- package/dist/cli/session.d.ts.map +1 -1
- package/dist/cli/session.js +6 -64
- package/dist/cli/session.js.map +1 -1
- package/dist/cli-command-runtime.d.ts.map +1 -1
- package/dist/cli-command-runtime.js +26 -24
- package/dist/cli-command-runtime.js.map +1 -1
- package/dist/cli-runtime.js +52529 -137615
- package/dist/config/env-vars.d.ts +12 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +12 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/{cli-tui → config}/ui-state.d.ts +6 -1
- package/dist/config/ui-state.d.ts.map +1 -0
- package/dist/{cli-tui → config}/ui-state.js +1 -1
- package/dist/config/ui-state.js.map +1 -0
- package/dist/context/repo-map.d.ts.map +1 -1
- package/dist/context/repo-map.js +1 -7
- package/dist/context/repo-map.js.map +1 -1
- package/dist/context/token-optimizer.d.ts.map +1 -1
- package/dist/context/token-optimizer.js +1 -8
- package/dist/context/token-optimizer.js.map +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/hooks/notification-hooks.d.ts +1 -1
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/hooks/tui-surface.d.ts +35 -0
- package/dist/hooks/tui-surface.d.ts.map +1 -0
- package/dist/hooks/tui-surface.js +11 -0
- package/dist/hooks/tui-surface.js.map +1 -0
- package/dist/hooks/types.d.ts +2 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks/typescript-loader.d.ts.map +1 -1
- package/dist/hooks/typescript-loader.js.map +1 -1
- package/dist/hooks/ui-context.d.ts.map +1 -1
- package/dist/hooks/ui-context.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +154 -882
- package/dist/main.js.map +1 -1
- package/dist/models/config-loader.d.ts +5 -5
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +45 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +284 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js +41 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts +986 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.js +49 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts +56 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js +86 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/package.json +1 -1
- package/dist/packages/discovery.d.ts.map +1 -1
- package/dist/packages/discovery.js +1 -0
- package/dist/packages/discovery.js.map +1 -1
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +7 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/loader.d.ts.map +1 -1
- package/dist/packages/loader.js +8 -1
- package/dist/packages/loader.js.map +1 -1
- package/dist/packages/runtime.d.ts +1 -0
- package/dist/packages/runtime.d.ts.map +1 -1
- package/dist/packages/runtime.js +9 -1
- package/dist/packages/runtime.js.map +1 -1
- package/dist/packages/types.d.ts +6 -0
- package/dist/packages/types.d.ts.map +1 -1
- package/dist/packages/types.js.map +1 -1
- package/dist/runtime/agent-runtime.d.ts +22 -6
- package/dist/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/runtime/agent-runtime.js +1 -1
- package/dist/runtime/agent-runtime.js.map +1 -1
- package/dist/runtime/env.d.ts +1 -0
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +1 -0
- package/dist/runtime/env.js.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.d.ts.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts +2 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +150 -5
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +78 -5
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/package.d.ts.map +1 -1
- package/dist/server/handlers/package.js +1 -0
- package/dist/server/handlers/package.js.map +1 -1
- package/dist/server/handlers/queue.js +1 -1
- package/dist/server/handlers/queue.js.map +1 -1
- package/dist/server/handlers/ui.js +1 -1
- package/dist/server/handlers/ui.js.map +1 -1
- package/dist/server/handlers/zen.js +1 -1
- package/dist/server/handlers/zen.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +3 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +26 -0
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/model-selection.d.ts +1 -0
- package/dist/server/model-selection.d.ts.map +1 -1
- package/dist/server/model-selection.js +4 -0
- package/dist/server/model-selection.js.map +1 -1
- package/dist/server/session-serialization.d.ts.map +1 -1
- package/dist/server/session-serialization.js +3 -0
- package/dist/server/session-serialization.js.map +1 -1
- package/dist/server/session-timeline.d.ts.map +1 -1
- package/dist/server/session-timeline.js +1 -1
- package/dist/server/session-timeline.js.map +1 -1
- package/dist/server/sse-session.d.ts +2 -0
- package/dist/server/sse-session.d.ts.map +1 -1
- package/dist/server/sse-session.js +3 -0
- package/dist/server/sse-session.js.map +1 -1
- package/dist/server/stores/ui-store.d.ts +1 -1
- package/dist/server/stores/ui-store.d.ts.map +1 -1
- package/dist/server/stores/ui-store.js.map +1 -1
- package/dist/server/utils/token-estimator.d.ts +2 -2
- package/dist/server/utils/token-estimator.d.ts.map +1 -1
- package/dist/server/utils/token-estimator.js +2 -12
- package/dist/server/utils/token-estimator.js.map +1 -1
- package/dist/server/validation.d.ts +54 -0
- package/dist/server/validation.d.ts.map +1 -1
- package/dist/services/image-providers/cost.d.ts +70 -0
- package/dist/services/image-providers/cost.d.ts.map +1 -0
- package/dist/services/image-providers/cost.js +164 -0
- package/dist/services/image-providers/cost.js.map +1 -0
- package/dist/services/image-providers/flux.d.ts +40 -0
- package/dist/services/image-providers/flux.d.ts.map +1 -0
- package/dist/services/image-providers/flux.js +99 -0
- package/dist/services/image-providers/flux.js.map +1 -0
- package/dist/services/image-providers/index.d.ts +24 -0
- package/dist/services/image-providers/index.d.ts.map +1 -0
- package/dist/services/image-providers/index.js +27 -0
- package/dist/services/image-providers/index.js.map +1 -0
- package/dist/services/image-providers/masks.d.ts +51 -0
- package/dist/services/image-providers/masks.d.ts.map +1 -0
- package/dist/services/image-providers/masks.js +132 -0
- package/dist/services/image-providers/masks.js.map +1 -0
- package/dist/services/image-providers/openai.d.ts +35 -0
- package/dist/services/image-providers/openai.d.ts.map +1 -0
- package/dist/services/image-providers/openai.js +93 -0
- package/dist/services/image-providers/openai.js.map +1 -0
- package/dist/services/image-providers/types.d.ts +61 -0
- package/dist/services/image-providers/types.d.ts.map +1 -0
- package/dist/services/image-providers/types.js +17 -0
- package/dist/services/image-providers/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +1 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -1
- package/dist/services/intelligent-router/index.js +1 -0
- package/dist/services/intelligent-router/index.js.map +1 -1
- package/dist/services/intelligent-router/normalize.d.ts +1 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -1
- package/dist/services/intelligent-router/normalize.js +17 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -1
- package/dist/services/intelligent-router/outcome.d.ts +19 -0
- package/dist/services/intelligent-router/outcome.d.ts.map +1 -0
- package/dist/services/intelligent-router/outcome.js +51 -0
- package/dist/services/intelligent-router/outcome.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +2 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -1
- package/dist/services/intelligent-router/recorder.js +72 -1
- package/dist/services/intelligent-router/recorder.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +1 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +60 -11
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/intelligent-router/types.d.ts +18 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -1
- package/dist/services/intelligent-router/types.js.map +1 -1
- package/dist/services/workspace-config/middleware.d.ts +2 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -1
- package/dist/services/workspace-config/middleware.js +25 -28
- package/dist/services/workspace-config/middleware.js.map +1 -1
- package/dist/session/agent-lineage-projection.d.ts +30 -0
- package/dist/session/agent-lineage-projection.d.ts.map +1 -0
- package/dist/session/agent-lineage-projection.js +109 -0
- package/dist/session/agent-lineage-projection.js.map +1 -0
- package/dist/session/manager.d.ts +3 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +24 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +11 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -1
- package/dist/session/session-graph-projection.js +28 -0
- package/dist/session/session-graph-projection.js.map +1 -1
- package/dist/session/types.d.ts +2 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/oracle-policy.d.ts +6 -0
- package/dist/telemetry/oracle-policy.d.ts.map +1 -0
- package/dist/telemetry/oracle-policy.js +17 -0
- package/dist/telemetry/oracle-policy.js.map +1 -0
- package/dist/telemetry/wide-events.d.ts +1 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/theme/theme.d.ts +2 -8
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +7 -0
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/tui-theme-helpers.d.ts +2 -1
- package/dist/theme/tui-theme-helpers.d.ts.map +1 -1
- package/dist/theme/tui-theme-helpers.js.map +1 -1
- package/dist/theme/tui-theme-types.d.ts +39 -0
- package/dist/theme/tui-theme-types.d.ts.map +1 -0
- package/dist/theme/tui-theme-types.js +10 -0
- package/dist/theme/tui-theme-types.js.map +1 -0
- package/dist/tools/index.d.ts +199 -160
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lazy-registry.d.ts.map +1 -1
- package/dist/tools/lazy-registry.js +1 -0
- package/dist/tools/lazy-registry.js.map +1 -1
- package/dist/tools/oracle.d.ts +9 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +26 -24
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/painter.d.ts +73 -0
- package/dist/tools/painter.d.ts.map +1 -0
- package/dist/tools/painter.js +283 -0
- package/dist/tools/painter.js.map +1 -0
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +1 -1
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/utils/terminal-image.d.ts +52 -0
- package/dist/utils/terminal-image.d.ts.map +1 -0
- package/dist/utils/terminal-image.js +95 -0
- package/dist/utils/terminal-image.js.map +1 -0
- package/dist/utils/terminal-text.d.ts +11 -0
- package/dist/utils/terminal-text.d.ts.map +1 -0
- package/dist/utils/terminal-text.js +21 -0
- package/dist/utils/terminal-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +24 -2
- package/dist/web-server.js.map +1 -1
- package/package.json +13 -11
- package/skills/incident-triage/SKILL.md +4 -3
- package/dist/cli/commands/agents.d.ts +0 -24
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -429
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/anthropic.d.ts +0 -2
- package/dist/cli/commands/anthropic.d.ts.map +0 -1
- package/dist/cli/commands/anthropic.js +0 -6
- package/dist/cli/commands/anthropic.js.map +0 -1
- package/dist/cli/commands/cost.d.ts +0 -13
- package/dist/cli/commands/cost.d.ts.map +0 -1
- package/dist/cli/commands/cost.js +0 -143
- package/dist/cli/commands/cost.js.map +0 -1
- package/dist/cli/commands/exec-constants.d.ts +0 -3
- package/dist/cli/commands/exec-constants.d.ts.map +0 -1
- package/dist/cli/commands/exec-constants.js +0 -3
- package/dist/cli/commands/exec-constants.js.map +0 -1
- package/dist/cli/commands/exec.d.ts +0 -19
- package/dist/cli/commands/exec.d.ts.map +0 -1
- package/dist/cli/commands/exec.js +0 -207
- package/dist/cli/commands/exec.js.map +0 -1
- package/dist/cli/commands/hooks.d.ts +0 -2
- package/dist/cli/commands/hooks.d.ts.map +0 -1
- package/dist/cli/commands/hooks.js +0 -25
- package/dist/cli/commands/hooks.js.map +0 -1
- package/dist/cli/commands/hosted-runner.d.ts +0 -25
- package/dist/cli/commands/hosted-runner.d.ts.map +0 -1
- package/dist/cli/commands/hosted-runner.js +0 -278
- package/dist/cli/commands/hosted-runner.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -2
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -208
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/models.d.ts +0 -3
- package/dist/cli/commands/models.d.ts.map +0 -1
- package/dist/cli/commands/models.js +0 -154
- package/dist/cli/commands/models.js.map +0 -1
- package/dist/cli/commands/modes.d.ts +0 -8
- package/dist/cli/commands/modes.d.ts.map +0 -1
- package/dist/cli/commands/modes.js +0 -151
- package/dist/cli/commands/modes.js.map +0 -1
- package/dist/cli/commands/openai.d.ts +0 -2
- package/dist/cli/commands/openai.d.ts.map +0 -1
- package/dist/cli/commands/openai.js +0 -116
- package/dist/cli/commands/openai.js.map +0 -1
- package/dist/cli/commands/session-transfer.d.ts +0 -5
- package/dist/cli/commands/session-transfer.d.ts.map +0 -1
- package/dist/cli/commands/session-transfer.js +0 -43
- package/dist/cli/commands/session-transfer.js.map +0 -1
- package/dist/cli/commands/sessions.d.ts +0 -8
- package/dist/cli/commands/sessions.d.ts.map +0 -1
- package/dist/cli/commands/sessions.js +0 -152
- package/dist/cli/commands/sessions.js.map +0 -1
- package/dist/cli/commands/skill.d.ts +0 -10
- package/dist/cli/commands/skill.d.ts.map +0 -1
- package/dist/cli/commands/skill.js +0 -303
- package/dist/cli/commands/skill.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -7
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -167
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -148
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli-tui/about-view.d.ts +0 -48
- package/dist/cli-tui/about-view.d.ts.map +0 -1
- package/dist/cli-tui/about-view.js +0 -206
- package/dist/cli-tui/about-view.js.map +0 -1
- package/dist/cli-tui/agent-event-router.d.ts +0 -28
- package/dist/cli-tui/agent-event-router.d.ts.map +0 -1
- package/dist/cli-tui/agent-event-router.js +0 -126
- package/dist/cli-tui/agent-event-router.js.map +0 -1
- package/dist/cli-tui/approval/approval-controller.d.ts +0 -28
- package/dist/cli-tui/approval/approval-controller.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-controller.js +0 -99
- package/dist/cli-tui/approval/approval-controller.js.map +0 -1
- package/dist/cli-tui/approval/approval-modal.d.ts +0 -26
- package/dist/cli-tui/approval/approval-modal.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-modal.js +0 -143
- package/dist/cli-tui/approval/approval-modal.js.map +0 -1
- package/dist/cli-tui/assistant-message.d.ts +0 -41
- package/dist/cli-tui/assistant-message.d.ts.map +0 -1
- package/dist/cli-tui/assistant-message.js +0 -236
- package/dist/cli-tui/assistant-message.js.map +0 -1
- package/dist/cli-tui/auth-state.d.ts +0 -7
- package/dist/cli-tui/auth-state.d.ts.map +0 -1
- package/dist/cli-tui/auth-state.js +0 -46
- package/dist/cli-tui/auth-state.js.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.d.ts +0 -31
- package/dist/cli-tui/background/background-tasks-controller.d.ts.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.js +0 -84
- package/dist/cli-tui/background/background-tasks-controller.js.map +0 -1
- package/dist/cli-tui/base-view.d.ts +0 -111
- package/dist/cli-tui/base-view.d.ts.map +0 -1
- package/dist/cli-tui/base-view.js +0 -145
- package/dist/cli-tui/base-view.js.map +0 -1
- package/dist/cli-tui/bash/background-launcher.d.ts +0 -14
- package/dist/cli-tui/bash/background-launcher.d.ts.map +0 -1
- package/dist/cli-tui/bash/background-launcher.js +0 -50
- package/dist/cli-tui/bash/background-launcher.js.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.d.ts +0 -40
- package/dist/cli-tui/bash/bash-autocomplete.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.js +0 -347
- package/dist/cli-tui/bash/bash-autocomplete.js.map +0 -1
- package/dist/cli-tui/bash/bash-history.d.ts +0 -21
- package/dist/cli-tui/bash/bash-history.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-history.js +0 -72
- package/dist/cli-tui/bash/bash-history.js.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.d.ts +0 -5
- package/dist/cli-tui/bash/bash-syntax.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.js +0 -176
- package/dist/cli-tui/bash/bash-syntax.js.map +0 -1
- package/dist/cli-tui/bash/index.d.ts +0 -4
- package/dist/cli-tui/bash/index.d.ts.map +0 -1
- package/dist/cli-tui/bash/index.js +0 -4
- package/dist/cli-tui/bash/index.js.map +0 -1
- package/dist/cli-tui/bash-mode-view.d.ts +0 -86
- package/dist/cli-tui/bash-mode-view.d.ts.map +0 -1
- package/dist/cli-tui/bash-mode-view.js +0 -560
- package/dist/cli-tui/bash-mode-view.js.map +0 -1
- package/dist/cli-tui/bash-shell-block.d.ts +0 -50
- package/dist/cli-tui/bash-shell-block.d.ts.map +0 -1
- package/dist/cli-tui/bash-shell-block.js +0 -119
- package/dist/cli-tui/bash-shell-block.js.map +0 -1
- package/dist/cli-tui/changelog-view.d.ts +0 -13
- package/dist/cli-tui/changelog-view.d.ts.map +0 -1
- package/dist/cli-tui/changelog-view.js +0 -34
- package/dist/cli-tui/changelog-view.js.map +0 -1
- package/dist/cli-tui/clean-mode.d.ts +0 -13
- package/dist/cli-tui/clean-mode.d.ts.map +0 -1
- package/dist/cli-tui/clean-mode.js +0 -32
- package/dist/cli-tui/clean-mode.js.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts +0 -41
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +0 -860
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts +0 -33
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.js +0 -94
- package/dist/cli-tui/client-tools/local-client-tool-service.js.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +0 -7
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.js +0 -215
- package/dist/cli-tui/commands/a2a-handlers.js.map +0 -1
- package/dist/cli-tui/commands/access-command.d.ts +0 -3
- package/dist/cli-tui/commands/access-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/access-command.js +0 -89
- package/dist/cli-tui/commands/access-command.js.map +0 -1
- package/dist/cli-tui/commands/argument-parser.d.ts +0 -12
- package/dist/cli-tui/commands/argument-parser.d.ts.map +0 -1
- package/dist/cli-tui/commands/argument-parser.js +0 -135
- package/dist/cli-tui/commands/argument-parser.js.map +0 -1
- package/dist/cli-tui/commands/audit-command.d.ts +0 -5
- package/dist/cli-tui/commands/audit-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/audit-command.js +0 -35
- package/dist/cli-tui/commands/audit-command.js.map +0 -1
- package/dist/cli-tui/commands/background-handlers.d.ts +0 -14
- package/dist/cli-tui/commands/background-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/background-handlers.js +0 -115
- package/dist/cli-tui/commands/background-handlers.js.map +0 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +0 -29
- package/dist/cli-tui/commands/command-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-catalog.js +0 -666
- package/dist/cli-tui/commands/command-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +0 -12
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +0 -129
- package/dist/cli-tui/commands/command-registry-adapter.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +0 -14
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.js +0 -147
- package/dist/cli-tui/commands/command-suite-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.d.ts +0 -111
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.js +0 -110
- package/dist/cli-tui/commands/command-suite-handlers.js.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.d.ts +0 -8
- package/dist/cli-tui/commands/composer-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.js +0 -90
- package/dist/cli-tui/commands/composer-handlers.js.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.d.ts +0 -18
- package/dist/cli-tui/commands/framework-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.js +0 -57
- package/dist/cli-tui/commands/framework-handlers.js.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.d.ts +0 -20
- package/dist/cli-tui/commands/guardian-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.js +0 -48
- package/dist/cli-tui/commands/guardian-handlers.js.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts +0 -32
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +0 -153
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts +0 -8
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.js +0 -61
- package/dist/cli-tui/commands/hotkeys-command.js.map +0 -1
- package/dist/cli-tui/commands/limits-command.d.ts +0 -3
- package/dist/cli-tui/commands/limits-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/limits-command.js +0 -88
- package/dist/cli-tui/commands/limits-command.js.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts +0 -12
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.js +0 -1306
- package/dist/cli-tui/commands/mcp-handlers.js.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.d.ts +0 -28
- package/dist/cli-tui/commands/memory-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.js +0 -414
- package/dist/cli-tui/commands/memory-handlers.js.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.d.ts +0 -11
- package/dist/cli-tui/commands/otel-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.js +0 -20
- package/dist/cli-tui/commands/otel-handlers.js.map +0 -1
- package/dist/cli-tui/commands/package-handlers.d.ts +0 -30
- package/dist/cli-tui/commands/package-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/package-handlers.js +0 -499
- package/dist/cli-tui/commands/package-handlers.js.map +0 -1
- package/dist/cli-tui/commands/pii-command.d.ts +0 -3
- package/dist/cli-tui/commands/pii-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/pii-command.js +0 -54
- package/dist/cli-tui/commands/pii-command.js.map +0 -1
- package/dist/cli-tui/commands/registry.d.ts +0 -3
- package/dist/cli-tui/commands/registry.d.ts.map +0 -1
- package/dist/cli-tui/commands/registry.js +0 -36
- package/dist/cli-tui/commands/registry.js.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.d.ts +0 -36
- package/dist/cli-tui/commands/safety-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.js +0 -62
- package/dist/cli-tui/commands/safety-handlers.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.js +0 -79
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts +0 -23
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.js +0 -61
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts +0 -46
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.js +0 -163
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.js +0 -50
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.js +0 -18
- package/dist/cli-tui/commands/subcommands/index.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.js +0 -149
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts +0 -36
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.js +0 -112
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts +0 -27
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.js +0 -80
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts +0 -30
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts +0 -25
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts +0 -19
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.js +0 -63
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.d.ts +0 -127
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.js +0 -395
- package/dist/cli-tui/commands/subcommands/utils.js.map +0 -1
- package/dist/cli-tui/commands/types.d.ts +0 -105
- package/dist/cli-tui/commands/types.d.ts.map +0 -1
- package/dist/cli-tui/commands/types.js +0 -2
- package/dist/cli-tui/commands/types.js.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.d.ts +0 -29
- package/dist/cli-tui/commands/undo-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.js +0 -305
- package/dist/cli-tui/commands/undo-handlers.js.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +0 -55
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.js +0 -137
- package/dist/cli-tui/commands/utility-handlers.js.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.d.ts +0 -22
- package/dist/cli-tui/commands/workflow-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.js +0 -227
- package/dist/cli-tui/commands/workflow-handlers.js.map +0 -1
- package/dist/cli-tui/compact-boundary-message.d.ts +0 -9
- package/dist/cli-tui/compact-boundary-message.d.ts.map +0 -1
- package/dist/cli-tui/compact-boundary-message.js +0 -18
- package/dist/cli-tui/compact-boundary-message.js.map +0 -1
- package/dist/cli-tui/compaction-recovery.d.ts +0 -6
- package/dist/cli-tui/compaction-recovery.d.ts.map +0 -1
- package/dist/cli-tui/compaction-recovery.js +0 -13
- package/dist/cli-tui/compaction-recovery.js.map +0 -1
- package/dist/cli-tui/config-view.d.ts +0 -30
- package/dist/cli-tui/config-view.d.ts.map +0 -1
- package/dist/cli-tui/config-view.js +0 -255
- package/dist/cli-tui/config-view.js.map +0 -1
- package/dist/cli-tui/context-view.d.ts +0 -20
- package/dist/cli-tui/context-view.d.ts.map +0 -1
- package/dist/cli-tui/context-view.js +0 -191
- package/dist/cli-tui/context-view.js.map +0 -1
- package/dist/cli-tui/custom-editor.d.ts +0 -25
- package/dist/cli-tui/custom-editor.d.ts.map +0 -1
- package/dist/cli-tui/custom-editor.js +0 -241
- package/dist/cli-tui/custom-editor.js.map +0 -1
- package/dist/cli-tui/editor-view.d.ts +0 -34
- package/dist/cli-tui/editor-view.d.ts.map +0 -1
- package/dist/cli-tui/editor-view.js +0 -102
- package/dist/cli-tui/editor-view.js.map +0 -1
- package/dist/cli-tui/feedback-view.d.ts +0 -35
- package/dist/cli-tui/feedback-view.d.ts.map +0 -1
- package/dist/cli-tui/feedback-view.js +0 -271
- package/dist/cli-tui/feedback-view.js.map +0 -1
- package/dist/cli-tui/footer.d.ts +0 -56
- package/dist/cli-tui/footer.d.ts.map +0 -1
- package/dist/cli-tui/footer.js +0 -228
- package/dist/cli-tui/footer.js.map +0 -1
- package/dist/cli-tui/git/commit-modal.d.ts +0 -14
- package/dist/cli-tui/git/commit-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/commit-modal.js +0 -56
- package/dist/cli-tui/git/commit-modal.js.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.d.ts +0 -40
- package/dist/cli-tui/git/git-preview-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.js +0 -123
- package/dist/cli-tui/git/git-preview-modal.js.map +0 -1
- package/dist/cli-tui/git/git-view.d.ts +0 -65
- package/dist/cli-tui/git/git-view.d.ts.map +0 -1
- package/dist/cli-tui/git/git-view.js +0 -529
- package/dist/cli-tui/git/git-view.js.map +0 -1
- package/dist/cli-tui/history/history-config.d.ts +0 -7
- package/dist/cli-tui/history/history-config.d.ts.map +0 -1
- package/dist/cli-tui/history/history-config.js +0 -49
- package/dist/cli-tui/history/history-config.js.map +0 -1
- package/dist/cli-tui/history/prompt-history.d.ts +0 -33
- package/dist/cli-tui/history/prompt-history.d.ts.map +0 -1
- package/dist/cli-tui/history/prompt-history.js +0 -185
- package/dist/cli-tui/history/prompt-history.js.map +0 -1
- package/dist/cli-tui/history/tool-history.d.ts +0 -50
- package/dist/cli-tui/history/tool-history.d.ts.map +0 -1
- package/dist/cli-tui/history/tool-history.js +0 -253
- package/dist/cli-tui/history/tool-history.js.map +0 -1
- package/dist/cli-tui/hook-message.d.ts +0 -13
- package/dist/cli-tui/hook-message.d.ts.map +0 -1
- package/dist/cli-tui/hook-message.js +0 -56
- package/dist/cli-tui/hook-message.js.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.d.ts +0 -22
- package/dist/cli-tui/hooks/hook-input-modal.d.ts.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.js +0 -63
- package/dist/cli-tui/hooks/hook-input-modal.js.map +0 -1
- package/dist/cli-tui/hotkeys-view.d.ts +0 -13
- package/dist/cli-tui/hotkeys-view.d.ts.map +0 -1
- package/dist/cli-tui/hotkeys-view.js +0 -96
- package/dist/cli-tui/hotkeys-view.js.map +0 -1
- package/dist/cli-tui/import-view.d.ts +0 -28
- package/dist/cli-tui/import-view.d.ts.map +0 -1
- package/dist/cli-tui/import-view.js +0 -184
- package/dist/cli-tui/import-view.js.map +0 -1
- package/dist/cli-tui/info-view.d.ts +0 -18
- package/dist/cli-tui/info-view.d.ts.map +0 -1
- package/dist/cli-tui/info-view.js +0 -107
- package/dist/cli-tui/info-view.js.map +0 -1
- package/dist/cli-tui/instruction-panel.d.ts +0 -11
- package/dist/cli-tui/instruction-panel.d.ts.map +0 -1
- package/dist/cli-tui/instruction-panel.js +0 -86
- package/dist/cli-tui/instruction-panel.js.map +0 -1
- package/dist/cli-tui/interrupt-controller.d.ts +0 -78
- package/dist/cli-tui/interrupt-controller.d.ts.map +0 -1
- package/dist/cli-tui/interrupt-controller.js +0 -104
- package/dist/cli-tui/interrupt-controller.js.map +0 -1
- package/dist/cli-tui/keybindings-config.d.ts +0 -27
- package/dist/cli-tui/keybindings-config.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-config.js +0 -372
- package/dist/cli-tui/keybindings-config.js.map +0 -1
- package/dist/cli-tui/keybindings-watcher.d.ts +0 -8
- package/dist/cli-tui/keybindings-watcher.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-watcher.js +0 -56
- package/dist/cli-tui/keybindings-watcher.js.map +0 -1
- package/dist/cli-tui/keybindings.d.ts +0 -13
- package/dist/cli-tui/keybindings.d.ts.map +0 -1
- package/dist/cli-tui/keybindings.js +0 -223
- package/dist/cli-tui/keybindings.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.d.ts +0 -43
- package/dist/cli-tui/loader/loader-stage-manager.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.js +0 -241
- package/dist/cli-tui/loader/loader-stage-manager.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts +0 -14
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.js +0 -34
- package/dist/cli-tui/loader/loader-stage-telemetry.js.map +0 -1
- package/dist/cli-tui/loader/loader-view.d.ts +0 -41
- package/dist/cli-tui/loader/loader-view.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-view.js +0 -162
- package/dist/cli-tui/loader/loader-view.js.map +0 -1
- package/dist/cli-tui/lsp-view.d.ts +0 -21
- package/dist/cli-tui/lsp-view.d.ts.map +0 -1
- package/dist/cli-tui/lsp-view.js +0 -183
- package/dist/cli-tui/lsp-view.js.map +0 -1
- package/dist/cli-tui/mermaid-renderer.d.ts +0 -2
- package/dist/cli-tui/mermaid-renderer.d.ts.map +0 -1
- package/dist/cli-tui/mermaid-renderer.js +0 -391
- package/dist/cli-tui/mermaid-renderer.js.map +0 -1
- package/dist/cli-tui/message-view.d.ts +0 -27
- package/dist/cli-tui/message-view.d.ts.map +0 -1
- package/dist/cli-tui/message-view.js +0 -169
- package/dist/cli-tui/message-view.js.map +0 -1
- package/dist/cli-tui/modal-manager.d.ts +0 -77
- package/dist/cli-tui/modal-manager.d.ts.map +0 -1
- package/dist/cli-tui/modal-manager.js +0 -131
- package/dist/cli-tui/modal-manager.js.map +0 -1
- package/dist/cli-tui/notification-view.d.ts +0 -16
- package/dist/cli-tui/notification-view.d.ts.map +0 -1
- package/dist/cli-tui/notification-view.js +0 -53
- package/dist/cli-tui/notification-view.js.map +0 -1
- package/dist/cli-tui/oauth/index.d.ts +0 -2
- package/dist/cli-tui/oauth/index.d.ts.map +0 -1
- package/dist/cli-tui/oauth/index.js +0 -2
- package/dist/cli-tui/oauth/index.js.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +0 -65
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +0 -400
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +0 -1
- package/dist/cli-tui/ollama-view.d.ts +0 -38
- package/dist/cli-tui/ollama-view.d.ts.map +0 -1
- package/dist/cli-tui/ollama-view.js +0 -395
- package/dist/cli-tui/ollama-view.js.map +0 -1
- package/dist/cli-tui/paste/index.d.ts +0 -2
- package/dist/cli-tui/paste/index.d.ts.map +0 -1
- package/dist/cli-tui/paste/index.js +0 -2
- package/dist/cli-tui/paste/index.js.map +0 -1
- package/dist/cli-tui/paste/paste-handler.d.ts +0 -54
- package/dist/cli-tui/paste/paste-handler.d.ts.map +0 -1
- package/dist/cli-tui/paste/paste-handler.js +0 -128
- package/dist/cli-tui/paste/paste-handler.js.map +0 -1
- package/dist/cli-tui/plan/plan-controller.d.ts +0 -28
- package/dist/cli-tui/plan/plan-controller.d.ts.map +0 -1
- package/dist/cli-tui/plan/plan-controller.js +0 -66
- package/dist/cli-tui/plan/plan-controller.js.map +0 -1
- package/dist/cli-tui/plan-panel-modal.d.ts +0 -28
- package/dist/cli-tui/plan-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/plan-panel-modal.js +0 -193
- package/dist/cli-tui/plan-panel-modal.js.map +0 -1
- package/dist/cli-tui/plan-view.d.ts +0 -57
- package/dist/cli-tui/plan-view.d.ts.map +0 -1
- package/dist/cli-tui/plan-view.js +0 -404
- package/dist/cli-tui/plan-view.js.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts +0 -6
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.js +0 -12
- package/dist/cli-tui/queue/follow-up-shortcut.js.map +0 -1
- package/dist/cli-tui/queue/index.d.ts +0 -3
- package/dist/cli-tui/queue/index.d.ts.map +0 -1
- package/dist/cli-tui/queue/index.js +0 -3
- package/dist/cli-tui/queue/index.js.map +0 -1
- package/dist/cli-tui/queue/queue-controller.d.ts +0 -109
- package/dist/cli-tui/queue/queue-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-controller.js +0 -327
- package/dist/cli-tui/queue/queue-controller.js.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.d.ts +0 -34
- package/dist/cli-tui/queue/queue-panel-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.js +0 -163
- package/dist/cli-tui/queue/queue-panel-controller.js.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts +0 -7
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js +0 -14
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js.map +0 -1
- package/dist/cli-tui/queue-panel-modal.d.ts +0 -26
- package/dist/cli-tui/queue-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/queue-panel-modal.js +0 -159
- package/dist/cli-tui/queue-panel-modal.js.map +0 -1
- package/dist/cli-tui/run/run-command-view.d.ts +0 -17
- package/dist/cli-tui/run/run-command-view.d.ts.map +0 -1
- package/dist/cli-tui/run/run-command-view.js +0 -62
- package/dist/cli-tui/run/run-command-view.js.map +0 -1
- package/dist/cli-tui/run/run-controller.d.ts +0 -24
- package/dist/cli-tui/run/run-controller.d.ts.map +0 -1
- package/dist/cli-tui/run/run-controller.js +0 -38
- package/dist/cli-tui/run/run-controller.js.map +0 -1
- package/dist/cli-tui/run/run-shell-command.d.ts +0 -13
- package/dist/cli-tui/run/run-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/run-shell-command.js +0 -51
- package/dist/cli-tui/run/run-shell-command.js.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts +0 -19
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.js +0 -107
- package/dist/cli-tui/run/streaming-shell-command.js.map +0 -1
- package/dist/cli-tui/search/file-search-view.d.ts +0 -22
- package/dist/cli-tui/search/file-search-view.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search-view.js +0 -68
- package/dist/cli-tui/search/file-search-view.js.map +0 -1
- package/dist/cli-tui/search/file-search.d.ts +0 -13
- package/dist/cli-tui/search/file-search.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search.js +0 -52
- package/dist/cli-tui/search/file-search.js.map +0 -1
- package/dist/cli-tui/security-status.d.ts +0 -83
- package/dist/cli-tui/security-status.d.ts.map +0 -1
- package/dist/cli-tui/security-status.js +0 -214
- package/dist/cli-tui/security-status.js.map +0 -1
- package/dist/cli-tui/selectors/base-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/base-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/base-selector.js +0 -47
- package/dist/cli-tui/selectors/base-selector.js.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts +0 -18
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.js +0 -24
- package/dist/cli-tui/selectors/branch-summary-modal.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.d.ts +0 -22
- package/dist/cli-tui/selectors/model-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.js +0 -31
- package/dist/cli-tui/selectors/model-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/model-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector.js +0 -218
- package/dist/cli-tui/selectors/model-selector.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.js +0 -28
- package/dist/cli-tui/selectors/oauth-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.d.ts +0 -19
- package/dist/cli-tui/selectors/oauth-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.js +0 -120
- package/dist/cli-tui/selectors/oauth-selector.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.js +0 -29
- package/dist/cli-tui/selectors/queue-mode-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts +0 -5
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.js +0 -34
- package/dist/cli-tui/selectors/queue-mode-selector.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.d.ts +0 -17
- package/dist/cli-tui/selectors/report-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.js +0 -29
- package/dist/cli-tui/selectors/report-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector.d.ts +0 -7
- package/dist/cli-tui/selectors/report-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector.js +0 -31
- package/dist/cli-tui/selectors/report-selector.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/theme-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.js +0 -41
- package/dist/cli-tui/selectors/theme-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.d.ts +0 -14
- package/dist/cli-tui/selectors/theme-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.js +0 -46
- package/dist/cli-tui/selectors/theme-selector.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.js +0 -31
- package/dist/cli-tui/selectors/thinking-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.d.ts +0 -9
- package/dist/cli-tui/selectors/thinking-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.js +0 -47
- package/dist/cli-tui/selectors/thinking-selector.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.d.ts +0 -32
- package/dist/cli-tui/selectors/tree-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.js +0 -407
- package/dist/cli-tui/selectors/tree-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/tree-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.js +0 -194
- package/dist/cli-tui/selectors/tree-selector.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts +0 -25
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.js +0 -101
- package/dist/cli-tui/selectors/user-message-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/user-message-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.js +0 -114
- package/dist/cli-tui/selectors/user-message-selector.js.map +0 -1
- package/dist/cli-tui/session/branch-controller.d.ts +0 -65
- package/dist/cli-tui/session/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/branch-controller.js +0 -125
- package/dist/cli-tui/session/branch-controller.js.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.d.ts +0 -64
- package/dist/cli-tui/session/conversation-compactor.d.ts.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.js +0 -77
- package/dist/cli-tui/session/conversation-compactor.js.map +0 -1
- package/dist/cli-tui/session/session-context.d.ts +0 -59
- package/dist/cli-tui/session/session-context.d.ts.map +0 -1
- package/dist/cli-tui/session/session-context.js +0 -79
- package/dist/cli-tui/session/session-context.js.map +0 -1
- package/dist/cli-tui/session/session-data-provider.d.ts +0 -23
- package/dist/cli-tui/session/session-data-provider.d.ts.map +0 -1
- package/dist/cli-tui/session/session-data-provider.js +0 -22
- package/dist/cli-tui/session/session-data-provider.js.map +0 -1
- package/dist/cli-tui/session/session-list.d.ts +0 -18
- package/dist/cli-tui/session/session-list.d.ts.map +0 -1
- package/dist/cli-tui/session/session-list.js +0 -103
- package/dist/cli-tui/session/session-list.js.map +0 -1
- package/dist/cli-tui/session/session-selector.d.ts +0 -12
- package/dist/cli-tui/session/session-selector.d.ts.map +0 -1
- package/dist/cli-tui/session/session-selector.js +0 -37
- package/dist/cli-tui/session/session-selector.js.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.d.ts +0 -24
- package/dist/cli-tui/session/session-summary-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.js +0 -96
- package/dist/cli-tui/session/session-summary-controller.js.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.d.ts +0 -20
- package/dist/cli-tui/session/session-switcher-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.js +0 -43
- package/dist/cli-tui/session/session-switcher-view.js.map +0 -1
- package/dist/cli-tui/session/session-switcher.d.ts +0 -38
- package/dist/cli-tui/session/session-switcher.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher.js +0 -204
- package/dist/cli-tui/session/session-switcher.js.map +0 -1
- package/dist/cli-tui/session/session-view.d.ts +0 -46
- package/dist/cli-tui/session/session-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-view.js +0 -311
- package/dist/cli-tui/session/session-view.js.map +0 -1
- package/dist/cli-tui/slash/index.d.ts +0 -2
- package/dist/cli-tui/slash/index.d.ts.map +0 -1
- package/dist/cli-tui/slash/index.js +0 -2
- package/dist/cli-tui/slash/index.js.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.d.ts +0 -55
- package/dist/cli-tui/slash/slash-command-matcher.d.ts.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.js +0 -113
- package/dist/cli-tui/slash/slash-command-matcher.js.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.d.ts +0 -5
- package/dist/cli-tui/smart-autocomplete-provider.d.ts.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.js +0 -44
- package/dist/cli-tui/smart-autocomplete-provider.js.map +0 -1
- package/dist/cli-tui/startup-announcements.d.ts +0 -15
- package/dist/cli-tui/startup-announcements.d.ts.map +0 -1
- package/dist/cli-tui/startup-announcements.js +0 -75
- package/dist/cli-tui/startup-announcements.js.map +0 -1
- package/dist/cli-tui/status/cost-view.d.ts +0 -27
- package/dist/cli-tui/status/cost-view.d.ts.map +0 -1
- package/dist/cli-tui/status/cost-view.js +0 -212
- package/dist/cli-tui/status/cost-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.d.ts +0 -34
- package/dist/cli-tui/status/diagnostics-templates.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.js +0 -167
- package/dist/cli-tui/status/diagnostics-templates.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.d.ts +0 -48
- package/dist/cli-tui/status/diagnostics-view.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.js +0 -249
- package/dist/cli-tui/status/diagnostics-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics.d.ts +0 -39
- package/dist/cli-tui/status/diagnostics.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics.js +0 -286
- package/dist/cli-tui/status/diagnostics.js.map +0 -1
- package/dist/cli-tui/status/health-snapshot.d.ts +0 -17
- package/dist/cli-tui/status/health-snapshot.d.ts.map +0 -1
- package/dist/cli-tui/status/health-snapshot.js +0 -28
- package/dist/cli-tui/status/health-snapshot.js.map +0 -1
- package/dist/cli-tui/status/quota-view.d.ts +0 -37
- package/dist/cli-tui/status/quota-view.d.ts.map +0 -1
- package/dist/cli-tui/status/quota-view.js +0 -309
- package/dist/cli-tui/status/quota-view.js.map +0 -1
- package/dist/cli-tui/status/telemetry-view.d.ts +0 -23
- package/dist/cli-tui/status/telemetry-view.d.ts.map +0 -1
- package/dist/cli-tui/status/telemetry-view.js +0 -77
- package/dist/cli-tui/status/telemetry-view.js.map +0 -1
- package/dist/cli-tui/status/training-view.d.ts +0 -23
- package/dist/cli-tui/status/training-view.d.ts.map +0 -1
- package/dist/cli-tui/status/training-view.js +0 -71
- package/dist/cli-tui/status/training-view.js.map +0 -1
- package/dist/cli-tui/streaming-view.d.ts +0 -43
- package/dist/cli-tui/streaming-view.d.ts.map +0 -1
- package/dist/cli-tui/streaming-view.js +0 -176
- package/dist/cli-tui/streaming-view.js.map +0 -1
- package/dist/cli-tui/terminal/index.d.ts +0 -2
- package/dist/cli-tui/terminal/index.d.ts.map +0 -1
- package/dist/cli-tui/terminal/index.js +0 -2
- package/dist/cli-tui/terminal/index.js.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.d.ts +0 -44
- package/dist/cli-tui/terminal/terminal-utils.d.ts.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.js +0 -145
- package/dist/cli-tui/terminal/terminal-utils.js.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.d.ts +0 -19
- package/dist/cli-tui/tips/tip-scheduler.d.ts.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.js +0 -135
- package/dist/cli-tui/tips/tip-scheduler.js.map +0 -1
- package/dist/cli-tui/tool-execution.d.ts +0 -76
- package/dist/cli-tui/tool-execution.d.ts.map +0 -1
- package/dist/cli-tui/tool-execution.js +0 -217
- package/dist/cli-tui/tool-execution.js.map +0 -1
- package/dist/cli-tui/tool-output-view.d.ts +0 -22
- package/dist/cli-tui/tool-output-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-output-view.js +0 -71
- package/dist/cli-tui/tool-output-view.js.map +0 -1
- package/dist/cli-tui/tool-renderers/index.d.ts +0 -4
- package/dist/cli-tui/tool-renderers/index.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/index.js +0 -19
- package/dist/cli-tui/tool-renderers/index.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-bash.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.js +0 -90
- package/dist/cli-tui/tool-renderers/render-bash.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.d.ts +0 -12
- package/dist/cli-tui/tool-renderers/render-batch.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.js +0 -133
- package/dist/cli-tui/tool-renderers/render-batch.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-edit.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.js +0 -125
- package/dist/cli-tui/tool-renderers/render-edit.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-generic.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.js +0 -66
- package/dist/cli-tui/tool-renderers/render-generic.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.d.ts +0 -9
- package/dist/cli-tui/tool-renderers/render-read.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.js +0 -108
- package/dist/cli-tui/tool-renderers/render-read.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.d.ts +0 -21
- package/dist/cli-tui/tool-renderers/render-style.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.js +0 -51
- package/dist/cli-tui/tool-renderers/render-style.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.d.ts +0 -5
- package/dist/cli-tui/tool-renderers/render-write.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.js +0 -60
- package/dist/cli-tui/tool-renderers/render-write.js.map +0 -1
- package/dist/cli-tui/tool-renderers/types.d.ts +0 -20
- package/dist/cli-tui/tool-renderers/types.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/types.js +0 -2
- package/dist/cli-tui/tool-renderers/types.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts +0 -29
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.js +0 -110
- package/dist/cli-tui/tool-retry/tool-retry-controller.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts +0 -27
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.js +0 -118
- package/dist/cli-tui/tool-retry/tool-retry-modal.js.map +0 -1
- package/dist/cli-tui/tool-status-view.d.ts +0 -32
- package/dist/cli-tui/tool-status-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-status-view.js +0 -86
- package/dist/cli-tui/tool-status-view.js.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +0 -129
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/approval-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts +0 -54
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/attachment-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts +0 -9
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js +0 -7
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts +0 -41
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.js +0 -102
- package/dist/cli-tui/tui-renderer/branch-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.js +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/client-tools-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +0 -111
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +0 -163
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.d.ts +0 -16
- package/dist/cli-tui/tui-renderer/command-registry.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.js +0 -23
- package/dist/cli-tui/tui-renderer/command-registry.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +0 -29
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +0 -108
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts +0 -100
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/compaction-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts +0 -42
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js +0 -106
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts +0 -37
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js +0 -139
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.js +0 -76
- package/dist/cli-tui/tui-renderer/editor-bindings.js.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js +0 -152
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.d.ts +0 -35
- package/dist/cli-tui/tui-renderer/history-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.js +0 -153
- package/dist/cli-tui/tui-renderer/history-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts +0 -83
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js +0 -309
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.js +0 -54
- package/dist/cli-tui/tui-renderer/initial-preferences.js.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +0 -56
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +0 -104
- package/dist/cli-tui/tui-renderer/input-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.js +0 -18
- package/dist/cli-tui/tui-renderer/interrupt-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.js +0 -13
- package/dist/cli-tui/tui-renderer/loader-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts +0 -55
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js +0 -143
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.js +0 -143
- package/dist/cli-tui/tui-renderer/misc-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.js +0 -26
- package/dist/cli-tui/tui-renderer/oauth-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/plan-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js +0 -64
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts +0 -18
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.js +0 -42
- package/dist/cli-tui/tui-renderer/queue-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts +0 -53
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js +0 -100
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.d.ts +0 -31
- package/dist/cli-tui/tui-renderer/session-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.js +0 -45
- package/dist/cli-tui/tui-renderer/session-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts +0 -66
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.js +0 -139
- package/dist/cli-tui/tui-renderer/session-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts +0 -73
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +0 -455
- package/dist/cli-tui/tui-renderer/skills-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js +0 -131
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts +0 -38
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js +0 -48
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +0 -70
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +0 -184
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.js +0 -11
- package/dist/cli-tui/tui-renderer/ui-state-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts +0 -26
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/utility-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts +0 -33
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.js +0 -98
- package/dist/cli-tui/tui-renderer/viewport-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer.d.ts +0 -268
- package/dist/cli-tui/tui-renderer.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer.js +0 -2131
- package/dist/cli-tui/tui-renderer.js.map +0 -1
- package/dist/cli-tui/ui-state.d.ts.map +0 -1
- package/dist/cli-tui/ui-state.js.map +0 -1
- package/dist/cli-tui/update-view.d.ts +0 -16
- package/dist/cli-tui/update-view.d.ts.map +0 -1
- package/dist/cli-tui/update-view.js +0 -45
- package/dist/cli-tui/update-view.js.map +0 -1
- package/dist/cli-tui/user-message.d.ts +0 -17
- package/dist/cli-tui/user-message.d.ts.map +0 -1
- package/dist/cli-tui/user-message.js +0 -83
- package/dist/cli-tui/user-message.js.map +0 -1
- package/dist/cli-tui/utils/borders.d.ts +0 -131
- package/dist/cli-tui/utils/borders.d.ts.map +0 -1
- package/dist/cli-tui/utils/borders.js +0 -254
- package/dist/cli-tui/utils/borders.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts +0 -22
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.js +0 -31
- package/dist/cli-tui/utils/commands/command-palette-view.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.d.ts +0 -29
- package/dist/cli-tui/utils/commands/command-palette.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.js +0 -213
- package/dist/cli-tui/utils/commands/command-palette.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts +0 -8
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.js +0 -9
- package/dist/cli-tui/utils/commands/command-registry-builder.js.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +0 -10
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +0 -90
- package/dist/cli-tui/utils/commands/review-prompt.js.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts +0 -15
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.js +0 -106
- package/dist/cli-tui/utils/commands/slash-hint-bar.js.map +0 -1
- package/dist/cli-tui/utils/env-detect.d.ts +0 -11
- package/dist/cli-tui/utils/env-detect.d.ts.map +0 -1
- package/dist/cli-tui/utils/env-detect.js +0 -107
- package/dist/cli-tui/utils/env-detect.js.map +0 -1
- package/dist/cli-tui/utils/external-editor.d.ts +0 -7
- package/dist/cli-tui/utils/external-editor.d.ts.map +0 -1
- package/dist/cli-tui/utils/external-editor.js +0 -53
- package/dist/cli-tui/utils/external-editor.js.map +0 -1
- package/dist/cli-tui/utils/footer-utils.d.ts +0 -169
- package/dist/cli-tui/utils/footer-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-utils.js +0 -716
- package/dist/cli-tui/utils/footer-utils.js.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts +0 -38
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.js +0 -141
- package/dist/cli-tui/utils/footer-visual-widgets.js.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.d.ts +0 -38
- package/dist/cli-tui/utils/git-branch-tracker.d.ts.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.js +0 -90
- package/dist/cli-tui/utils/git-branch-tracker.js.map +0 -1
- package/dist/cli-tui/utils/glyphs.d.ts +0 -207
- package/dist/cli-tui/utils/glyphs.d.ts.map +0 -1
- package/dist/cli-tui/utils/glyphs.js +0 -249
- package/dist/cli-tui/utils/glyphs.js.map +0 -1
- package/dist/cli-tui/utils/layout.d.ts +0 -77
- package/dist/cli-tui/utils/layout.d.ts.map +0 -1
- package/dist/cli-tui/utils/layout.js +0 -83
- package/dist/cli-tui/utils/layout.js.map +0 -1
- package/dist/cli-tui/utils/links.d.ts +0 -2
- package/dist/cli-tui/utils/links.d.ts.map +0 -1
- package/dist/cli-tui/utils/links.js +0 -14
- package/dist/cli-tui/utils/links.js.map +0 -1
- package/dist/cli-tui/utils/motion.d.ts +0 -4
- package/dist/cli-tui/utils/motion.d.ts.map +0 -1
- package/dist/cli-tui/utils/motion.js +0 -28
- package/dist/cli-tui/utils/motion.js.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +0 -26
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.js +0 -178
- package/dist/cli-tui/utils/runtime-badges.js.map +0 -1
- package/dist/cli-tui/utils/shimmer.d.ts +0 -12
- package/dist/cli-tui/utils/shimmer.d.ts.map +0 -1
- package/dist/cli-tui/utils/shimmer.js +0 -57
- package/dist/cli-tui/utils/shimmer.js.map +0 -1
- package/dist/cli-tui/utils/stage-labels.d.ts +0 -9
- package/dist/cli-tui/utils/stage-labels.d.ts.map +0 -1
- package/dist/cli-tui/utils/stage-labels.js +0 -65
- package/dist/cli-tui/utils/stage-labels.js.map +0 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +0 -13
- package/dist/cli-tui/utils/text-formatting.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-formatting.js +0 -109
- package/dist/cli-tui/utils/text-formatting.js.map +0 -1
- package/dist/cli-tui/utils/text-preview.d.ts +0 -10
- package/dist/cli-tui/utils/text-preview.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-preview.js +0 -26
- package/dist/cli-tui/utils/text-preview.js.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.d.ts +0 -42
- package/dist/cli-tui/utils/tool-text-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.js +0 -361
- package/dist/cli-tui/utils/tool-text-utils.js.map +0 -1
- package/dist/cli-tui/welcome-animation.d.ts +0 -24
- package/dist/cli-tui/welcome-animation.d.ts.map +0 -1
- package/dist/cli-tui/welcome-animation.js +0 -99
- package/dist/cli-tui/welcome-animation.js.map +0 -1
- package/dist/cli-tui/welcome-colors.d.ts +0 -3
- package/dist/cli-tui/welcome-colors.d.ts.map +0 -1
- package/dist/cli-tui/welcome-colors.js +0 -39
- package/dist/cli-tui/welcome-colors.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts +0 -304
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js +0 -712
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts +0 -185
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.js +0 -1460
- package/dist/node_modules/@evalops/tui/dist/components/editor.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts +0 -117
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.js +0 -391
- package/dist/node_modules/@evalops/tui/dist/components/input.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts +0 -256
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.js +0 -478
- package/dist/node_modules/@evalops/tui/dist/components/layout.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts +0 -199
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.js +0 -374
- package/dist/node_modules/@evalops/tui/dist/components/loader.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts +0 -65
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js +0 -562
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts +0 -262
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js +0 -575
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts +0 -131
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js +0 -257
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts +0 -11
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js +0 -19
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts +0 -22
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts +0 -26
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.js +0 -181
- package/dist/node_modules/@evalops/tui/dist/components/text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts +0 -15
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js +0 -84
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.d.ts +0 -87
- package/dist/node_modules/@evalops/tui/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.js +0 -85
- package/dist/node_modules/@evalops/tui/dist/index.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts +0 -189
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.js +0 -363
- package/dist/node_modules/@evalops/tui/dist/keymap.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts +0 -25
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js +0 -828
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts +0 -40
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js +0 -474
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts +0 -201
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.js +0 -241
- package/dist/node_modules/@evalops/tui/dist/terminal.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts +0 -263
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.js +0 -694
- package/dist/node_modules/@evalops/tui/dist/tui.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts +0 -14
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts +0 -32
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.js +0 -556
- package/dist/node_modules/@evalops/tui/dist/utils.js.map +0 -1
- package/dist/node_modules/@evalops/tui/package.json +0 -58
- package/dist/skills/artifact-metadata.d.ts.map +0 -1
- package/dist/skills/artifact-metadata.js.map +0 -1
- package/dist/skills/composer-diagnostics.d.ts +0 -69
- package/dist/skills/composer-diagnostics.d.ts.map +0 -1
- package/dist/skills/composer-diagnostics.js +0 -78
- package/dist/skills/composer-diagnostics.js.map +0 -1
- package/dist/skills/composer.d.ts +0 -19
- package/dist/skills/composer.d.ts.map +0 -1
- package/dist/skills/composer.js +0 -64
- package/dist/skills/composer.js.map +0 -1
- package/dist/skills/eval-harness.d.ts +0 -38
- package/dist/skills/eval-harness.d.ts.map +0 -1
- package/dist/skills/eval-harness.js +0 -112
- package/dist/skills/eval-harness.js.map +0 -1
- package/dist/skills/index.d.ts +0 -41
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -41
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/learned-guidelines.d.ts +0 -33
- package/dist/skills/learned-guidelines.d.ts.map +0 -1
- package/dist/skills/learned-guidelines.js +0 -291
- package/dist/skills/learned-guidelines.js.map +0 -1
- package/dist/skills/linter.d.ts +0 -36
- package/dist/skills/linter.d.ts.map +0 -1
- package/dist/skills/linter.js +0 -397
- package/dist/skills/linter.js.map +0 -1
- package/dist/skills/loader.d.ts +0 -252
- package/dist/skills/loader.d.ts.map +0 -1
- package/dist/skills/loader.js +0 -957
- package/dist/skills/loader.js.map +0 -1
- package/dist/skills/package-contract.d.ts +0 -45
- package/dist/skills/package-contract.d.ts.map +0 -1
- package/dist/skills/package-contract.js +0 -153
- package/dist/skills/package-contract.js.map +0 -1
- package/dist/skills/runtime-activation.d.ts +0 -69
- package/dist/skills/runtime-activation.d.ts.map +0 -1
- package/dist/skills/runtime-activation.js +0 -227
- package/dist/skills/runtime-activation.js.map +0 -1
- package/dist/skills/scaffold-from-template.d.ts +0 -58
- package/dist/skills/scaffold-from-template.d.ts.map +0 -1
- package/dist/skills/scaffold-from-template.js +0 -72
- package/dist/skills/scaffold-from-template.js.map +0 -1
- package/dist/skills/scaffolder.d.ts +0 -65
- package/dist/skills/scaffolder.d.ts.map +0 -1
- package/dist/skills/scaffolder.js +0 -167
- package/dist/skills/scaffolder.js.map +0 -1
- package/dist/skills/service-client.d.ts +0 -56
- package/dist/skills/service-client.d.ts.map +0 -1
- package/dist/skills/service-client.js +0 -266
- package/dist/skills/service-client.js.map +0 -1
- package/dist/skills/skill-templates.d.ts +0 -70
- package/dist/skills/skill-templates.d.ts.map +0 -1
- package/dist/skills/skill-templates.js +0 -154
- package/dist/skills/skill-templates.js.map +0 -1
- package/dist/skills/tool.d.ts +0 -21
- package/dist/skills/tool.d.ts.map +0 -1
- package/dist/skills/tool.js +0 -339
- package/dist/skills/tool.js.map +0 -1
- package/dist/skills/trust-cache.d.ts +0 -65
- package/dist/skills/trust-cache.d.ts.map +0 -1
- package/dist/skills/trust-cache.js +0 -146
- package/dist/skills/trust-cache.js.map +0 -1
- package/dist/skills/types.d.ts +0 -91
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -8
- package/dist/skills/types.js.map +0 -1
- /package/dist/{cli-tui → runtime}/prompt-queue.d.ts +0 -0
- /package/dist/{cli-tui → runtime}/prompt-queue.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-highlighter.js","sourceRoot":"","sources":["../../src/style/code-highlighter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;GAGG;AACH,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC3B,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,UAAU;IACV,UAAU;IACV,SAAS;IACT,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,MAAM;I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AC/E,aAAa;AACb,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY,EAAE,QAAiB;IACjE,MAAM,OAAO,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrC,sDAAsD;IACtD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC/C,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,4DAA4D;IAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC5C,0CAA0C;IAC1C,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["/**\n * @fileoverview Lightweight Syntax Highlighting for Terminal Display\n *\n * This module provides fast, regex-based syntax highlighting for code blocks\n * in terminal output. Unlike full parsers (tree-sitter, etc.), this uses\n * simple pattern matching that's fast enough for real-time rendering.\n *\n * ## Supported Languages\n *\n * - **JSON/JSONC**: Keys, values, strings, numbers, booleans\n * - **Shell**: Commands, flags, comments\n * - **Diff**: Added (+), removed (-), and meta (@@) lines\n * - **JavaScript/TypeScript**: Keywords, strings, numbers, comments\n * - **Python**: Keywords, strings (including triple-quoted), comments\n * - **SQL**: Keywords (uppercase), strings, numbers\n * - **YAML**: Keys, values, strings, booleans\n *\n * ## Design Philosophy\n *\n * 1. **Speed over Accuracy**: Good-enough highlighting that's fast\n * 2. **No Dependencies**: Uses only chalk for ANSI colors\n * 3. **Line-at-a-time**: Each line is processed independently\n * 4. **Graceful Degradation**: Unknown languages get default styling\n *\n * ## Color Palette\n *\n * The colors are chosen for readability on dark terminal backgrounds:\n * - Keywords: Pink (#f472b6)\n * - Strings: Light pink (#f9a8d4)\n * - Numbers: Yellow (#fcd34d)\n * - Comments: Slate (#94a3b8)\n * - Default: Light gray (#e2e8f0)\n */\nimport chalk from \"chalk\";\n\n/**\n * A painter function takes a line of code and returns it with ANSI styling.\n */\ntype Painter = (line: string) => string;\n\n/**\n * JavaScript/TypeScript reserved keywords.\n * These are highlighted in pink when encountered as whole words.\n */\nconst JS_KEYWORDS = new Set([\n\t\"break\",\n\t\"case\",\n\t\"catch\",\n\t\"class\",\n\t\"const\",\n\t\"continue\",\n\t\"debugger\",\n\t\"default\",\n\t\"delete\",\n\t\"do\",\n\t\"else\",\n\t\"enum\",\n\t\"export\",\n\t\"extends\",\n\t\"finally\",\n\t\"for\",\n\t\"from\",\n\t\"function\",\n\t\"if\",\n\t\"import\",\n\t\"in\",\n\t\"instanceof\",\n\t\"let\",\n\t\"new\",\n\t\"return\",\n\t\"switch\",\n\t\"this\",\n\t\"throw\",\n\t\"try\",\n\t\"typeof\",\n\t\"var\",\n\t\"void\",\n\t\"while\",\n\t\"with\",\n\t\"yield\",\n\t\"async\",\n\t\"await\",\n]);\n\n/**\n * Python reserved keywords.\n */\nconst PY_KEYWORDS = new Set([\n\t\"def\",\n\t\"class\",\n\t\"import\",\n\t\"from\",\n\t\"return\",\n\t\"if\",\n\t\"elif\",\n\t\"else\",\n\t\"for\",\n\t\"while\",\n\t\"try\",\n\t\"except\",\n\t\"finally\",\n\t\"with\",\n\t\"as\",\n\t\"pass\",\n\t\"continue\",\n\t\"break\",\n\t\"yield\",\n\t\"lambda\",\n\t\"async\",\n\t\"await\",\n]);\n\n/**\n * SQL reserved keywords (matched case-insensitively).\n * These are uppercased when displayed for conventional SQL formatting.\n */\nconst SQL_KEYWORDS = new Set([\n\t\"select\",\n\t\"from\",\n\t\"where\",\n\t\"group\",\n\t\"by\",\n\t\"order\",\n\t\"insert\",\n\t\"into\",\n\t\"values\",\n\t\"update\",\n\t\"set\",\n\t\"delete\",\n\t\"join\",\n\t\"left\",\n\t\"right\",\n\t\"inner\",\n\t\"outer\",\n\t\"on\",\n\t\"limit\",\n\t\"offset\",\n\t\"create\",\n\t\"table\",\n\t\"primary\",\n\t\"key\",\n\t\"unique\",\n]);\n\n// ────────────────────────────────────────────────────────────────────────────\n// COLOR PALETTE\n// These colors are optimized for dark terminal backgrounds\n// ────────────────────────────────────────────────────────────────────────────\n\n/** Default code color (light gray) */\nconst DEFAULT_CODE_COLOR = chalk.hex(\"#e2e8f0\");\n\n/** Comment color (muted slate) */\nconst COMMENT_COLOR = chalk.hex(\"#94a3b8\");\n\n/** Keyword color (pink) */\nconst KEYWORD_COLOR = chalk.hex(\"#f472b6\");\n\n/** Number literal color (yellow) */\nconst NUMBER_COLOR = chalk.hex(\"#fcd34d\");\n\n/** String literal color (light pink) */\nconst STRING_COLOR = chalk.hex(\"#f9a8d4\");\n\n/** Diff: added lines (green) */\nconst DIFF_ADD = chalk.hex(\"#4ade80\");\n\n/** Diff: removed lines (red) */\nconst DIFF_REMOVE = chalk.hex(\"#f87171\");\n\n/** Diff: meta lines like @@ (blue) */\nconst DIFF_META = chalk.hex(\"#38bdf8\");\n\n/** Shell: command name (bold blue) */\nconst SHELL_CMD = chalk.hex(\"#93c5fd\").bold;\n\n/** Shell: flags and options (yellow) */\nconst SHELL_FLAG = chalk.hex(\"#fcd34d\");\n\n// ────────────────────────────────────────────────────────────────────────────\n// LANGUAGE DETECTION\n// Maps language identifiers to painter groups\n// ────────────────────────────────────────────────────────────────────────────\n\nconst JSON_LANGS = new Set([\"json\", \"jsonc\"]);\nconst SHELL_LANGS = new Set([\n\t\"bash\",\n\t\"sh\",\n\t\"shell\",\n\t\"zsh\",\n\t\"powershell\",\n\t\"pwsh\",\n]);\nconst DIFF_LANGS = new Set([\"diff\", \"patch\"]);\nconst JS_LANGS = new Set([\n\t\"js\",\n\t\"jsx\",\n\t\"ts\",\n\t\"tsx\",\n\t\"javascript\",\n\t\"typescript\",\n]);\nconst PY_LANGS = new Set([\"py\", \"python\"]);\nconst SQL_LANGS = new Set([\"sql\"]);\nconst YAML_LANGS = new Set([\"yaml\", \"yml\"]);\n\n// ────────────────────────────────────────────────────────────────────────────\n// UTILITY FUNCTIONS\n// ────────────────────────────────────────────────────────────────────────────\n\n/**\n * Separates leading whitespace from the rest of the line.\n * This allows us to preserve indentation while styling the code.\n *\n * @param line - Input line\n * @returns Object with indent (whitespace) and body (rest of line)\n */\nfunction stripIndent(line: string): { indent: string; body: string } {\n\tconst match = line.match(/^\\s*/);\n\tconst indent = match ? match[0] : \"\";\n\treturn { indent, body: line.slice(indent.length) };\n}\n\n// ────────────────────────────────────────────────────────────────────────────\n// LANGUAGE-SPECIFIC PAINTERS\n// Each painter handles one language or family of languages\n// ────────────────────────────────────────────────────────────────────────────\n\n/**\n * Default painter: applies base code color to the entire line.\n */\nfunction paintDefault(line: string): string {\n\tif (!line) return \"\";\n\treturn DEFAULT_CODE_COLOR(line);\n}\n\n/**\n * JSON painter: highlights keys, string values, numbers, and booleans.\n *\n * Pattern matching:\n * - Keys: `\"key\":` → cyan key\n * - String values: `: \"value\"` → pink value\n * - Number values: `: 123` → yellow number\n * - Booleans/null: `true`, `false`, `null` → green\n */\nfunction paintJson(line: string): string {\n\tconst { indent, body } = stripIndent(line);\n\tlet result = body;\n\n\t// Match JSON keys (strings followed by colon)\n\tresult = result.replace(/\"([^\"]*)\"(?=\\s*:)/g, (_match, key) =>\n\t\tchalk.hex(\"#7dd3fc\")(`\"${key}\"`),\n\t);\n\n\t// Match string values after colon\n\tresult = result.replace(\n\t\t/:\\s*(\"[^\"]*\")/g,\n\t\t(_m, value) => `: ${STRING_COLOR(value)}`,\n\t);\n\n\t// Match numeric values after colon\n\tresult = result.replace(\n\t\t/:\\s*(-?\\d+(?:\\.\\d+)?)/g,\n\t\t(_m, value) => `: ${NUMBER_COLOR(value)}`,\n\t);\n\n\t// Match boolean and null literals\n\tresult = result.replace(/\\b(true|false|null)\\b/g, (_m, val) =>\n\t\tchalk.hex(\"#34d399\")(val),\n\t);\n\n\treturn indent + result;\n}\n\n/**\n * Shell painter: highlights commands, flags, and comments.\n *\n * Recognizes:\n * - Comments: lines starting with #\n * - Commands: first word (bold blue)\n * - Long flags: --flag-name (yellow)\n * - Short flags: -f (yellow)\n */\nfunction paintShell(line: string): string {\n\tconst { indent, body } = stripIndent(line);\n\tconst trimmed = body.trim();\n\n\tif (!trimmed) return indent;\n\n\t// Shell comments\n\tif (trimmed.startsWith(\"#\")) {\n\t\treturn indent + COMMENT_COLOR(trimmed);\n\t}\n\n\t// Split into command and arguments\n\tconst parts = trimmed.split(/\\s+/);\n\tconst [command, ...rest] = parts;\n\n\t// Highlight flags in the arguments\n\tlet restJoined = rest.join(\" \");\n\trestJoined = restJoined.replace(/(--[\\w-]+)/g, (_m, flag) =>\n\t\tSHELL_FLAG(flag),\n\t);\n\trestJoined = restJoined.replace(/\\b(-[\\w])\\b/g, (_m, flag) =>\n\t\tSHELL_FLAG(flag),\n\t);\n\n\treturn indent + SHELL_CMD(command) + (restJoined ? ` ${restJoined}` : \"\");\n}\n\n/**\n * Diff painter: colors based on line prefix.\n *\n * Conventions:\n * - `+++`/`---`: File headers (blue)\n * - `@@`: Hunk headers (blue)\n * - `+`: Added lines (green)\n * - `-`: Removed lines (red)\n * - Everything else: default color\n */\nfunction paintDiff(line: string): string {\n\tif (line.startsWith(\"+++\") || line.startsWith(\"---\")) {\n\t\treturn DIFF_META(line);\n\t}\n\tif (line.startsWith(\"@@\")) {\n\t\treturn DIFF_META(line);\n\t}\n\tif (line.startsWith(\"+\")) {\n\t\treturn DIFF_ADD(line);\n\t}\n\tif (line.startsWith(\"-\")) {\n\t\treturn DIFF_REMOVE(line);\n\t}\n\treturn DEFAULT_CODE_COLOR(line);\n}\n\n/**\n * Generic keyword-based painter for C-like languages.\n *\n * Handles:\n * - // style comments\n * - String literals (\", ', `)\n * - Number literals\n * - Keywords from the provided set\n *\n * @param line - Input line\n * @param keywords - Set of language keywords to highlight\n */\nfunction paintKeywordLine(line: string, keywords: Set<string>): string {\n\tconst { indent, body } = stripIndent(line);\n\tif (!body) return indent;\n\n\t// Split code from trailing comment\n\tconst commentIndex = body.indexOf(\"//\");\n\tlet code = commentIndex >= 0 ? body.slice(0, commentIndex) : body;\n\tconst comment = commentIndex >= 0 ? body.slice(commentIndex) : \"\";\n\n\t// Highlight numbers\n\tcode = code.replace(/\\b(\\d+(?:\\.\\d+)?)\\b/g, (_m, value) =>\n\t\tNUMBER_COLOR(value),\n\t);\n\n\t// Highlight keywords\n\tcode = code.replace(/\\b([A-Za-z_][\\w]*)\\b/g, (_m, word) =>\n\t\tkeywords.has(word) ? KEYWORD_COLOR(word) : word,\n\t);\n\n\t// Highlight strings (double, single, and template literals)\n\tconst stringRegex = /(\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`)/g;\n\tcode = code.replace(stringRegex, (match) => STRING_COLOR(match));\n\n\treturn indent + code + (comment ? COMMENT_COLOR(comment) : \"\");\n}\n\n/**\n * Python painter: handles Python-specific syntax.\n *\n * Differences from C-like languages:\n * - Comments start with # instead of //\n * - Triple-quoted strings (\"\"\" and ''')\n * - Python-specific keywords\n */\nfunction paintPython(line: string): string {\n\tconst { indent, body } = stripIndent(line);\n\tif (!body) return indent;\n\n\t// Python comments use #\n\tconst commentIndex = body.indexOf(\"#\");\n\tlet code = commentIndex >= 0 ? body.slice(0, commentIndex) : body;\n\tconst comment = commentIndex >= 0 ? body.slice(commentIndex) : \"\";\n\n\t// Highlight numbers\n\tcode = code.replace(/\\b(\\d+(?:\\.\\d+)?)\\b/g, (_m, value) =>\n\t\tNUMBER_COLOR(value),\n\t);\n\n\t// Highlight Python keywords\n\tcode = code.replace(/\\b([A-Za-z_][\\w]*)\\b/g, (_m, word) =>\n\t\tPY_KEYWORDS.has(word) ? KEYWORD_COLOR(word) : word,\n\t);\n\n\t// Highlight strings (including triple-quoted)\n\tconst stringRegex =\n\t\t/(\"\"\"[\\s\\S]*?\"\"\"|'''[\\s\\S]*?'''|\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*')/g;\n\tcode = code.replace(stringRegex, (match) => STRING_COLOR(match));\n\n\treturn indent + code + (comment ? COMMENT_COLOR(comment) : \"\");\n}\n\n/**\n * SQL painter: highlights SQL syntax with uppercase keywords.\n *\n * SQL convention is to uppercase keywords, so we transform\n * matched keywords to uppercase in addition to coloring them.\n */\nfunction paintSql(line: string): string {\n\tconst { indent, body } = stripIndent(line);\n\tlet result = body;\n\n\t// Match words and uppercase keywords\n\tresult = result.replace(/\\b([a-z]+)\\b/gi, (match) =>\n\t\tSQL_KEYWORDS.has(match.toLowerCase())\n\t\t\t? KEYWORD_COLOR(match.toUpperCase())\n\t\t\t: match,\n\t);\n\n\t// SQL strings use single quotes (with '' for escaping)\n\tresult = result.replace(/'(?:''|[^'])*'/g, (match) => STRING_COLOR(match));\n\n\t// Highlight numbers\n\tresult = result.replace(/\\b\\d+(?:\\.\\d+)?\\b/g, (match) => NUMBER_COLOR(match));\n\n\treturn indent + result;\n}\n\n/**\n * YAML painter: highlights keys, values, and special literals.\n *\n * YAML structure is `key: value`, so we parse that pattern\n * and color the key in cyan.\n */\nfunction paintYaml(line: string): string {\n\tconst match = line.match(/^(\\s*)([^:#]+):(.*)$/);\n\tif (!match) {\n\t\treturn DEFAULT_CODE_COLOR(line);\n\t}\n\n\tconst [, indent, key, rest] = match;\n\tlet value = rest!.trimStart();\n\n\t// Highlight quoted strings in values\n\tvalue = value.replace(/\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'/g, (str) =>\n\t\tSTRING_COLOR(str),\n\t);\n\n\t// Highlight boolean and null literals\n\tvalue = value.replace(/\\b(true|false|null)\\b/gi, (word) =>\n\t\tKEYWORD_COLOR(word),\n\t);\n\n\treturn `${indent}${chalk.hex(\"#7dd3fc\")(`${key}:`)}${value ? ` ${value}` : \"\"}`;\n}\n\n// ────────────────────────────────────────────────────────────────────────────\n// PAINTER REGISTRY\n// Maps language identifiers to their painter functions\n// ────────────────────────────────────────────────────────────────────────────\n\n/**\n * Registry of language painters.\n *\n * Each entry has:\n * - matcher: Function to test if a language ID matches\n * - painter: Function to apply highlighting to a line\n *\n * The first matching painter is used, so order matters for\n * overlapping language names.\n */\nconst PAINTERS: Array<{\n\tmatcher: (lang: string) => boolean;\n\tpainter: Painter;\n}> = [\n\t{ matcher: (lang) => JSON_LANGS.has(lang), painter: paintJson },\n\t{ matcher: (lang) => SHELL_LANGS.has(lang), painter: paintShell },\n\t{ matcher: (lang) => DIFF_LANGS.has(lang), painter: paintDiff },\n\t{\n\t\tmatcher: (lang) => JS_LANGS.has(lang),\n\t\tpainter: (line) => paintKeywordLine(line, JS_KEYWORDS),\n\t},\n\t{ matcher: (lang) => PY_LANGS.has(lang), painter: paintPython },\n\t{ matcher: (lang) => SQL_LANGS.has(lang), painter: paintSql },\n\t{ matcher: (lang) => YAML_LANGS.has(lang), painter: paintYaml },\n];\n\n/**\n * Looks up the appropriate painter for a language.\n *\n * @param language - Language identifier (e.g., \"typescript\", \"py\", \"json\")\n * @returns Painter function for the language, or default painter\n */\nfunction getPainter(language?: string): Painter {\n\tconst lang = (language || \"\").toLowerCase();\n\tfor (const entry of PAINTERS) {\n\t\tif (entry.matcher(lang)) {\n\t\t\treturn entry.painter;\n\t\t}\n\t}\n\treturn paintDefault;\n}\n\n// ────────────────────────────────────────────────────────────────────────────\n// PUBLIC API\n// ────────────────────────────────────────────────────────────────────────────\n\n/**\n * Highlights a multi-line code block.\n *\n * This is the main entry point for syntax highlighting. It:\n * 1. Selects the appropriate painter based on language\n * 2. Normalizes tabs to 2 spaces\n * 3. Applies highlighting line-by-line\n *\n * @param text - Code block content\n * @param language - Optional language identifier\n * @returns Array of ANSI-styled lines\n *\n * @example\n * ```typescript\n * const lines = highlightCodeLines(\n * 'const x = 42;\\nconsole.log(x);',\n * 'typescript'\n * );\n * lines.forEach(line => console.log(line));\n * ```\n */\nexport function highlightCodeLines(text: string, language?: string): string[] {\n\tconst painter = getPainter(language);\n\t// Normalize tabs to 2 spaces for consistent rendering\n\tconst normalized = text.replace(/\\t/g, \" \");\n\tconst lines = normalized.split(\"\\n\");\n\treturn lines.map((line) => painter(line));\n}\n\n/**\n * Highlights inline code (single backticks in markdown).\n *\n * Uses a dark background with yellow text for visibility.\n * Newlines are converted to spaces since inline code should\n * remain on a single line.\n *\n * @param text - Inline code content\n * @returns ANSI-styled string\n *\n * @example\n * ```typescript\n * const styled = highlightInlineCode('foo.bar()');\n * console.log(`Use ${styled} to call the method`);\n * ```\n */\nexport function highlightInlineCode(text: string): string {\n\tif (!text) return \"\";\n\t// Replace newlines with spaces (inline code is single-line)\n\tconst cleaned = text.replace(/\\r?\\n/g, \" \");\n\t// Dark purple background with yellow text\n\treturn chalk.bgRgb(40, 42, 54)(chalk.hex(\"#facc15\")(cleaned));\n}\n"]}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Terminal Abstraction Layer for TUI Rendering
|
|
3
|
-
*
|
|
4
|
-
* This module provides a clean abstraction over the Node.js terminal APIs,
|
|
5
|
-
* encapsulating raw mode setup, ANSI escape sequence generation, and
|
|
6
|
-
* terminal state management.
|
|
7
|
-
*
|
|
8
|
-
* ## Design Rationale
|
|
9
|
-
*
|
|
10
|
-
* The Terminal interface enables:
|
|
11
|
-
* 1. **Testability**: Mock terminals can be injected for unit testing
|
|
12
|
-
* 2. **Portability**: Different implementations for different environments
|
|
13
|
-
* 3. **State Encapsulation**: Proper cleanup and restoration on exit
|
|
14
|
-
*
|
|
15
|
-
* ## ANSI Escape Sequences Used
|
|
16
|
-
*
|
|
17
|
-
* This module uses the following control sequences:
|
|
18
|
-
* - CSI n A/B: Cursor up/down by n lines
|
|
19
|
-
* - CSI ? 25 l/h: Hide/show cursor (DECTCEM)
|
|
20
|
-
* - CSI K: Erase to end of line (EL)
|
|
21
|
-
* - CSI J: Erase to end of screen (ED)
|
|
22
|
-
* - CSI 2J: Erase entire screen
|
|
23
|
-
* - CSI H: Cursor home (1,1)
|
|
24
|
-
* - CSI ? 1049 h/l: Alternate screen buffer (DECSET/DECRST)
|
|
25
|
-
* - CSI ? 2004 h/l: Bracketed paste mode
|
|
26
|
-
* - CSI ? 1007 h/l: Alternate scroll mode
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* Abstract terminal interface for TUI rendering.
|
|
30
|
-
*
|
|
31
|
-
* Implementations must handle:
|
|
32
|
-
* - Raw mode setup and teardown
|
|
33
|
-
* - Input event routing
|
|
34
|
-
* - Cursor control
|
|
35
|
-
* - Screen clearing
|
|
36
|
-
*
|
|
37
|
-
* Optional features (may return undefined):
|
|
38
|
-
* - Alternate screen buffer
|
|
39
|
-
* - Bracketed paste mode
|
|
40
|
-
*/
|
|
41
|
-
export interface Terminal {
|
|
42
|
-
/** Initialize terminal and begin receiving input/resize events */
|
|
43
|
-
start(onInput: (data: string) => void, onResize: () => void): void;
|
|
44
|
-
/** Restore terminal state and stop event handling */
|
|
45
|
-
stop(): void;
|
|
46
|
-
/** Write raw output to the terminal */
|
|
47
|
-
write(data: string): void;
|
|
48
|
-
/** Current terminal width in columns */
|
|
49
|
-
get columns(): number;
|
|
50
|
-
/** Current terminal height in rows */
|
|
51
|
-
get rows(): number;
|
|
52
|
-
/** Move cursor up (negative) or down (positive) by n lines */
|
|
53
|
-
moveBy(lines: number): void;
|
|
54
|
-
/** Hide the cursor (for clean rendering) */
|
|
55
|
-
hideCursor(): void;
|
|
56
|
-
/** Show the cursor (restore after rendering) */
|
|
57
|
-
showCursor(): void;
|
|
58
|
-
/** Clear from cursor to end of current line */
|
|
59
|
-
clearLine(): void;
|
|
60
|
-
/** Clear from cursor to end of screen */
|
|
61
|
-
clearFromCursor(): void;
|
|
62
|
-
/** Clear entire screen and move cursor home */
|
|
63
|
-
clearScreen(): void;
|
|
64
|
-
/** Switch to alternate screen buffer (optional) */
|
|
65
|
-
enterAltScreen?(): void;
|
|
66
|
-
/** Return from alternate screen buffer (optional) */
|
|
67
|
-
leaveAltScreen?(): void;
|
|
68
|
-
/** Enable bracketed paste mode (optional) */
|
|
69
|
-
enableBracketedPaste?(): void;
|
|
70
|
-
/** Disable bracketed paste mode (optional) */
|
|
71
|
-
disableBracketedPaste?(): void;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Real terminal implementation using Node.js process.stdin/stdout.
|
|
75
|
-
*
|
|
76
|
-
* This class manages the terminal lifecycle:
|
|
77
|
-
*
|
|
78
|
-
* ## Startup (start())
|
|
79
|
-
* 1. Saves current raw mode state for later restoration
|
|
80
|
-
* 2. Enables raw mode to receive individual keystrokes
|
|
81
|
-
* 3. Sets UTF-8 encoding for proper Unicode handling
|
|
82
|
-
* 4. Enables bracketed paste if supported
|
|
83
|
-
* 5. Registers input and resize event handlers
|
|
84
|
-
*
|
|
85
|
-
* ## Shutdown (stop())
|
|
86
|
-
* 1. Exits alternate screen if active
|
|
87
|
-
* 2. Disables bracketed paste
|
|
88
|
-
* 3. Removes event handlers to prevent memory leaks
|
|
89
|
-
* 4. Restores original raw mode state
|
|
90
|
-
*
|
|
91
|
-
* ## Raw Mode
|
|
92
|
-
*
|
|
93
|
-
* In raw mode, stdin delivers data byte-by-byte without line buffering.
|
|
94
|
-
* This is essential for handling special keys (arrows, Ctrl combinations)
|
|
95
|
-
* and providing responsive UI feedback.
|
|
96
|
-
*
|
|
97
|
-
* ## Bracketed Paste
|
|
98
|
-
*
|
|
99
|
-
* When enabled, pasted text is wrapped in escape sequences:
|
|
100
|
-
* `\x1b[200~` ... pasted content ... `\x1b[201~`
|
|
101
|
-
*
|
|
102
|
-
* This allows the TUI to distinguish between typed and pasted input,
|
|
103
|
-
* enabling features like multi-line paste handling.
|
|
104
|
-
*/
|
|
105
|
-
export declare class ProcessTerminal implements Terminal {
|
|
106
|
-
/** Original raw mode state to restore on stop() */
|
|
107
|
-
private wasRaw;
|
|
108
|
-
/** Registered input event handler (for cleanup) */
|
|
109
|
-
private inputHandler?;
|
|
110
|
-
/** Registered resize event handler (for cleanup) */
|
|
111
|
-
private resizeHandler?;
|
|
112
|
-
/** Whether bracketed paste mode is currently enabled */
|
|
113
|
-
private bracketedPasteEnabled;
|
|
114
|
-
/** Whether we're currently in the alternate screen buffer */
|
|
115
|
-
private altScreenActive;
|
|
116
|
-
/**
|
|
117
|
-
* Initializes the terminal for TUI operation.
|
|
118
|
-
*
|
|
119
|
-
* @param onInput - Callback for each keystroke/paste event
|
|
120
|
-
* @param onResize - Callback when terminal dimensions change
|
|
121
|
-
*/
|
|
122
|
-
start(onInput: (data: string) => void, onResize: () => void): void;
|
|
123
|
-
/**
|
|
124
|
-
* Restores terminal to its original state.
|
|
125
|
-
*
|
|
126
|
-
* This should always be called when the TUI exits, even on crashes.
|
|
127
|
-
* Consider using a cleanup handler or signal listener to ensure this runs.
|
|
128
|
-
*/
|
|
129
|
-
stop(): void;
|
|
130
|
-
/** Writes raw data to stdout without any processing */
|
|
131
|
-
write(data: string): void;
|
|
132
|
-
/** Returns terminal width, defaulting to 80 if unavailable */
|
|
133
|
-
get columns(): number;
|
|
134
|
-
/** Returns terminal height, defaulting to 24 if unavailable */
|
|
135
|
-
get rows(): number;
|
|
136
|
-
/**
|
|
137
|
-
* Moves cursor vertically by the specified number of lines.
|
|
138
|
-
*
|
|
139
|
-
* Uses CSI A (up) or CSI B (down) sequences.
|
|
140
|
-
*
|
|
141
|
-
* @param lines - Positive for down, negative for up, 0 for no movement
|
|
142
|
-
*/
|
|
143
|
-
moveBy(lines: number): void;
|
|
144
|
-
/**
|
|
145
|
-
* Hides the cursor using DECTCEM.
|
|
146
|
-
* Use during rendering to prevent cursor flicker.
|
|
147
|
-
*/
|
|
148
|
-
hideCursor(): void;
|
|
149
|
-
/**
|
|
150
|
-
* Shows the cursor using DECTCEM.
|
|
151
|
-
* Call after rendering is complete.
|
|
152
|
-
*/
|
|
153
|
-
showCursor(): void;
|
|
154
|
-
/**
|
|
155
|
-
* Erases from cursor to end of line (EL 0).
|
|
156
|
-
* Useful for updating lines without leaving artifacts.
|
|
157
|
-
*/
|
|
158
|
-
clearLine(): void;
|
|
159
|
-
/**
|
|
160
|
-
* Erases from cursor to end of screen (ED 0).
|
|
161
|
-
* Useful for clearing content below the current render area.
|
|
162
|
-
*/
|
|
163
|
-
clearFromCursor(): void;
|
|
164
|
-
/**
|
|
165
|
-
* Clears entire screen and moves cursor to home position.
|
|
166
|
-
* Combines ED 2 (clear all) with CUP (cursor home).
|
|
167
|
-
*/
|
|
168
|
-
clearScreen(): void;
|
|
169
|
-
/**
|
|
170
|
-
* Switches to the alternate screen buffer.
|
|
171
|
-
*
|
|
172
|
-
* The alternate buffer:
|
|
173
|
-
* - Preserves the original terminal content
|
|
174
|
-
* - Provides a clean slate for full-screen TUI
|
|
175
|
-
* - Restores original content on exit
|
|
176
|
-
*
|
|
177
|
-
* Also enables alternate scroll mode (1007) for proper mouse wheel behavior.
|
|
178
|
-
*/
|
|
179
|
-
enterAltScreen(): void;
|
|
180
|
-
/**
|
|
181
|
-
* Returns from alternate screen buffer to normal buffer.
|
|
182
|
-
* The original terminal content is restored.
|
|
183
|
-
*/
|
|
184
|
-
leaveAltScreen(): void;
|
|
185
|
-
/**
|
|
186
|
-
* Enables bracketed paste mode.
|
|
187
|
-
*
|
|
188
|
-
* When enabled, pasted text is wrapped:
|
|
189
|
-
* ESC[200~ + pasted text + ESC[201~
|
|
190
|
-
*
|
|
191
|
-
* This allows the application to handle pasted text differently
|
|
192
|
-
* from typed input (e.g., inserting all at once, handling newlines).
|
|
193
|
-
*/
|
|
194
|
-
enableBracketedPaste(): void;
|
|
195
|
-
/**
|
|
196
|
-
* Disables bracketed paste mode.
|
|
197
|
-
* Pasted text will be delivered as if it were typed.
|
|
198
|
-
*/
|
|
199
|
-
disableBracketedPaste(): void;
|
|
200
|
-
}
|
|
201
|
-
//# sourceMappingURL=terminal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,QAAQ;IACxB,kEAAkE;IAClE,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAEnE,qDAAqD;IACrD,IAAI,IAAI,IAAI,CAAC;IAEb,uCAAuC;IACvC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,wCAAwC;IACxC,IAAI,OAAO,IAAI,MAAM,CAAC;IAEtB,sCAAsC;IACtC,IAAI,IAAI,IAAI,MAAM,CAAC;IAEnB,8DAA8D;IAC9D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,4CAA4C;IAC5C,UAAU,IAAI,IAAI,CAAC;IAEnB,gDAAgD;IAChD,UAAU,IAAI,IAAI,CAAC;IAEnB,+CAA+C;IAC/C,SAAS,IAAI,IAAI,CAAC;IAElB,yCAAyC;IACzC,eAAe,IAAI,IAAI,CAAC;IAExB,+CAA+C;IAC/C,WAAW,IAAI,IAAI,CAAC;IAEpB,mDAAmD;IACnD,cAAc,CAAC,IAAI,IAAI,CAAC;IAExB,qDAAqD;IACrD,cAAc,CAAC,IAAI,IAAI,CAAC;IAExB,6CAA6C;IAC7C,oBAAoB,CAAC,IAAI,IAAI,CAAC;IAE9B,8CAA8C;IAC9C,qBAAqB,CAAC,IAAI,IAAI,CAAC;CAC/B;AAED;;;;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APIs,
|
|
5
|
-
* encapsulating raw mode setup, ANSI escape sequence generation, and
|
|
6
|
-
* terminal state management.
|
|
7
|
-
*
|
|
8
|
-
* ## Design Rationale
|
|
9
|
-
*
|
|
10
|
-
* The Terminal interface enables:
|
|
11
|
-
* 1. **Testability**: Mock terminals can be injected for unit testing
|
|
12
|
-
* 2. **Portability**: Different implementations for different environments
|
|
13
|
-
* 3. **State Encapsulation**: Proper cleanup and restoration on exit
|
|
14
|
-
*
|
|
15
|
-
* ## ANSI Escape Sequences Used
|
|
16
|
-
*
|
|
17
|
-
* This module uses the following control sequences:
|
|
18
|
-
* - CSI n A/B: Cursor up/down by n lines
|
|
19
|
-
* - CSI ? 25 l/h: Hide/show cursor (DECTCEM)
|
|
20
|
-
* - CSI K: Erase to end of line (EL)
|
|
21
|
-
* - CSI J: Erase to end of screen (ED)
|
|
22
|
-
* - CSI 2J: Erase entire screen
|
|
23
|
-
* - CSI H: Cursor home (1,1)
|
|
24
|
-
* - CSI ? 1049 h/l: Alternate screen buffer (DECSET/DECRST)
|
|
25
|
-
* - CSI ? 2004 h/l: Bracketed paste mode
|
|
26
|
-
* - CSI ? 1007 h/l: Alternate scroll mode
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* Real terminal implementation using Node.js process.stdin/stdout.
|
|
30
|
-
*
|
|
31
|
-
* This class manages the terminal lifecycle:
|
|
32
|
-
*
|
|
33
|
-
* ## Startup (start())
|
|
34
|
-
* 1. Saves current raw mode state for later restoration
|
|
35
|
-
* 2. Enables raw mode to receive individual keystrokes
|
|
36
|
-
* 3. Sets UTF-8 encoding for proper Unicode handling
|
|
37
|
-
* 4. Enables bracketed paste if supported
|
|
38
|
-
* 5. Registers input and resize event handlers
|
|
39
|
-
*
|
|
40
|
-
* ## Shutdown (stop())
|
|
41
|
-
* 1. Exits alternate screen if active
|
|
42
|
-
* 2. Disables bracketed paste
|
|
43
|
-
* 3. Removes event handlers to prevent memory leaks
|
|
44
|
-
* 4. Restores original raw mode state
|
|
45
|
-
*
|
|
46
|
-
* ## Raw Mode
|
|
47
|
-
*
|
|
48
|
-
* In raw mode, stdin delivers data byte-by-byte without line buffering.
|
|
49
|
-
* This is essential for handling special keys (arrows, Ctrl combinations)
|
|
50
|
-
* and providing responsive UI feedback.
|
|
51
|
-
*
|
|
52
|
-
* ## Bracketed Paste
|
|
53
|
-
*
|
|
54
|
-
* When enabled, pasted text is wrapped in escape sequences:
|
|
55
|
-
* `\x1b[200~` ... pasted content ... `\x1b[201~`
|
|
56
|
-
*
|
|
57
|
-
* This allows the TUI to distinguish between typed and pasted input,
|
|
58
|
-
* enabling features like multi-line paste handling.
|
|
59
|
-
*/
|
|
60
|
-
export class ProcessTerminal {
|
|
61
|
-
constructor() {
|
|
62
|
-
/** Original raw mode state to restore on stop() */
|
|
63
|
-
this.wasRaw = false;
|
|
64
|
-
/** Whether bracketed paste mode is currently enabled */
|
|
65
|
-
this.bracketedPasteEnabled = false;
|
|
66
|
-
/** Whether we're currently in the alternate screen buffer */
|
|
67
|
-
this.altScreenActive = false;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Initializes the terminal for TUI operation.
|
|
71
|
-
*
|
|
72
|
-
* @param onInput - Callback for each keystroke/paste event
|
|
73
|
-
* @param onResize - Callback when terminal dimensions change
|
|
74
|
-
*/
|
|
75
|
-
start(onInput, onResize) {
|
|
76
|
-
this.inputHandler = onInput;
|
|
77
|
-
this.resizeHandler = onResize;
|
|
78
|
-
const features = detectTerminalFeatures();
|
|
79
|
-
// Save and modify terminal state
|
|
80
|
-
// This is critical for proper cleanup - we restore this in stop()
|
|
81
|
-
this.wasRaw = process.stdin.isRaw || false;
|
|
82
|
-
if (process.stdin.setRawMode) {
|
|
83
|
-
process.stdin.setRawMode(true);
|
|
84
|
-
}
|
|
85
|
-
process.stdin.setEncoding("utf8");
|
|
86
|
-
process.stdin.resume();
|
|
87
|
-
// Enable bracketed paste for better paste handling
|
|
88
|
-
if (features.supportsBracketedPaste) {
|
|
89
|
-
this.enableBracketedPaste?.();
|
|
90
|
-
}
|
|
91
|
-
// Register event listeners
|
|
92
|
-
process.stdin.on("data", this.inputHandler);
|
|
93
|
-
process.stdout.on("resize", this.resizeHandler);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Restores terminal to its original state.
|
|
97
|
-
*
|
|
98
|
-
* This should always be called when the TUI exits, even on crashes.
|
|
99
|
-
* Consider using a cleanup handler or signal listener to ensure this runs.
|
|
100
|
-
*/
|
|
101
|
-
stop() {
|
|
102
|
-
// Exit alternate screen first (restores scroll buffer)
|
|
103
|
-
if (this.altScreenActive) {
|
|
104
|
-
this.leaveAltScreen?.();
|
|
105
|
-
}
|
|
106
|
-
this.disableBracketedPaste?.();
|
|
107
|
-
// Remove event handlers to prevent memory leaks and stale callbacks
|
|
108
|
-
if (this.inputHandler) {
|
|
109
|
-
process.stdin.removeListener("data", this.inputHandler);
|
|
110
|
-
this.inputHandler = undefined;
|
|
111
|
-
}
|
|
112
|
-
if (this.resizeHandler) {
|
|
113
|
-
process.stdout.removeListener("resize", this.resizeHandler);
|
|
114
|
-
this.resizeHandler = undefined;
|
|
115
|
-
}
|
|
116
|
-
// Restore original raw mode state
|
|
117
|
-
if (process.stdin.setRawMode) {
|
|
118
|
-
process.stdin.setRawMode(this.wasRaw);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
/** Writes raw data to stdout without any processing */
|
|
122
|
-
write(data) {
|
|
123
|
-
process.stdout.write(data);
|
|
124
|
-
}
|
|
125
|
-
/** Returns terminal width, defaulting to 80 if unavailable */
|
|
126
|
-
get columns() {
|
|
127
|
-
return process.stdout.columns || 80;
|
|
128
|
-
}
|
|
129
|
-
/** Returns terminal height, defaulting to 24 if unavailable */
|
|
130
|
-
get rows() {
|
|
131
|
-
return process.stdout.rows || 24;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Moves cursor vertically by the specified number of lines.
|
|
135
|
-
*
|
|
136
|
-
* Uses CSI A (up) or CSI B (down) sequences.
|
|
137
|
-
*
|
|
138
|
-
* @param lines - Positive for down, negative for up, 0 for no movement
|
|
139
|
-
*/
|
|
140
|
-
moveBy(lines) {
|
|
141
|
-
if (lines > 0) {
|
|
142
|
-
// CSI n B - Cursor Down
|
|
143
|
-
process.stdout.write(`\x1b[${lines}B`);
|
|
144
|
-
}
|
|
145
|
-
else if (lines < 0) {
|
|
146
|
-
// CSI n A - Cursor Up
|
|
147
|
-
process.stdout.write(`\x1b[${-lines}A`);
|
|
148
|
-
}
|
|
149
|
-
// lines === 0: no-op
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Hides the cursor using DECTCEM.
|
|
153
|
-
* Use during rendering to prevent cursor flicker.
|
|
154
|
-
*/
|
|
155
|
-
hideCursor() {
|
|
156
|
-
process.stdout.write("\x1b[?25l");
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Shows the cursor using DECTCEM.
|
|
160
|
-
* Call after rendering is complete.
|
|
161
|
-
*/
|
|
162
|
-
showCursor() {
|
|
163
|
-
process.stdout.write("\x1b[?25h");
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Erases from cursor to end of line (EL 0).
|
|
167
|
-
* Useful for updating lines without leaving artifacts.
|
|
168
|
-
*/
|
|
169
|
-
clearLine() {
|
|
170
|
-
process.stdout.write("\x1b[K");
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Erases from cursor to end of screen (ED 0).
|
|
174
|
-
* Useful for clearing content below the current render area.
|
|
175
|
-
*/
|
|
176
|
-
clearFromCursor() {
|
|
177
|
-
process.stdout.write("\x1b[J");
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Clears entire screen and moves cursor to home position.
|
|
181
|
-
* Combines ED 2 (clear all) with CUP (cursor home).
|
|
182
|
-
*/
|
|
183
|
-
clearScreen() {
|
|
184
|
-
process.stdout.write("\x1b[2J\x1b[H");
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Switches to the alternate screen buffer.
|
|
188
|
-
*
|
|
189
|
-
* The alternate buffer:
|
|
190
|
-
* - Preserves the original terminal content
|
|
191
|
-
* - Provides a clean slate for full-screen TUI
|
|
192
|
-
* - Restores original content on exit
|
|
193
|
-
*
|
|
194
|
-
* Also enables alternate scroll mode (1007) for proper mouse wheel behavior.
|
|
195
|
-
*/
|
|
196
|
-
enterAltScreen() {
|
|
197
|
-
if (this.altScreenActive)
|
|
198
|
-
return;
|
|
199
|
-
// 1049: alternate screen buffer, 1007: alternate scroll mode
|
|
200
|
-
process.stdout.write("\x1b[?1049h\x1b[?1007h");
|
|
201
|
-
this.altScreenActive = true;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Returns from alternate screen buffer to normal buffer.
|
|
205
|
-
* The original terminal content is restored.
|
|
206
|
-
*/
|
|
207
|
-
leaveAltScreen() {
|
|
208
|
-
if (!this.altScreenActive)
|
|
209
|
-
return;
|
|
210
|
-
// Disable in reverse order
|
|
211
|
-
process.stdout.write("\x1b[?1007l\x1b[?1049l");
|
|
212
|
-
this.altScreenActive = false;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Enables bracketed paste mode.
|
|
216
|
-
*
|
|
217
|
-
* When enabled, pasted text is wrapped:
|
|
218
|
-
* ESC[200~ + pasted text + ESC[201~
|
|
219
|
-
*
|
|
220
|
-
* This allows the application to handle pasted text differently
|
|
221
|
-
* from typed input (e.g., inserting all at once, handling newlines).
|
|
222
|
-
*/
|
|
223
|
-
enableBracketedPaste() {
|
|
224
|
-
if (this.bracketedPasteEnabled)
|
|
225
|
-
return;
|
|
226
|
-
process.stdout.write("\x1b[?2004h");
|
|
227
|
-
this.bracketedPasteEnabled = true;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Disables bracketed paste mode.
|
|
231
|
-
* Pasted text will be delivered as if it were typed.
|
|
232
|
-
*/
|
|
233
|
-
disableBracketedPaste() {
|
|
234
|
-
if (!this.bracketedPasteEnabled)
|
|
235
|
-
return;
|
|
236
|
-
process.stdout.write("\x1b[?2004l");
|
|
237
|
-
this.bracketedPasteEnabled = false;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
import { detectTerminalFeatures } from "./utils/terminal-features.js";
|
|
241
|
-
//# sourceMappingURL=terminal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AA8DH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,OAAO,eAAe;IAA5B;QACC,mDAAmD;QAC3C,WAAM,GAAG,KAAK,CAAC;QAQvB,wDAAwD;QAChD,0BAAqB,GAAG,KAAK,CAAC;QAEtC,6DAA6D;QACrD,oBAAe,GAAG,KAAK,CAAC;IA0LjC,CAAC;IAxLA;;;;;OAKG;IACH,KAAK,CAAC,OAA+B,EAAE,QAAoB;QAC1D,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC;QAC9B,MAAM,QAAQ,GAAG,sBAAsB,EAAE,CAAC;QAE1C,iCAAiC;QACjC,kEAAkE;QAClE,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC;QAC3C,IAAI,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;YAC9B,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAEvB,mDAAmD;QACnD,IAAI,QAAQ,CAAC,sBAAsB,EAAE,CAAC;YACrC,IAAI,CAAC,oBAAoB,EAAE,EAAE,CAA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,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACH,oBAAoB;QACnB,IAAI,IAAI,CAAC,qBAAqB;YAAE,OAAO;QACvC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,qBAAqB;QACpB,IAAI,CAAC,IAAI,CAAC,qBAAqB;YAAE,OAAO;QACxC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;IACpC,CAAC;CACD;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["/**\n * @fileoverview Terminal Abstraction Layer for TUI Rendering\n *\n * This module provides a clean abstraction over the Node.js terminal APIs,\n * encapsulating raw mode setup, ANSI escape sequence generation, and\n * terminal state management.\n *\n * ## Design Rationale\n *\n * The Terminal interface enables:\n * 1. **Testability**: Mock terminals can be injected for unit testing\n * 2. **Portability**: Different implementations for different environments\n * 3. **State Encapsulation**: Proper cleanup and restoration on exit\n *\n * ## ANSI Escape Sequences Used\n *\n * This module uses the following control sequences:\n * - CSI n A/B: Cursor up/down by n lines\n * - CSI ? 25 l/h: Hide/show cursor (DECTCEM)\n * - CSI K: Erase to end of line (EL)\n * - CSI J: Erase to end of screen (ED)\n * - CSI 2J: Erase entire screen\n * - CSI H: Cursor home (1,1)\n * - CSI ? 1049 h/l: Alternate screen buffer (DECSET/DECRST)\n * - CSI ? 2004 h/l: Bracketed paste mode\n * - CSI ? 1007 h/l: Alternate scroll mode\n */\n\n/**\n * Abstract terminal interface for TUI rendering.\n *\n * Implementations must handle:\n * - Raw mode setup and teardown\n * - Input event routing\n * - Cursor control\n * - Screen clearing\n *\n * Optional features (may return undefined):\n * - Alternate screen buffer\n * - Bracketed paste mode\n */\nexport interface Terminal {\n\t/** Initialize terminal and begin receiving input/resize events */\n\tstart(onInput: (data: string) => void, onResize: () => void): void;\n\n\t/** Restore terminal state and stop event handling */\n\tstop(): void;\n\n\t/** Write raw output to the terminal */\n\twrite(data: string): void;\n\n\t/** Current terminal width in columns */\n\tget columns(): number;\n\n\t/** Current terminal height in rows */\n\tget rows(): number;\n\n\t/** Move cursor up (negative) or down (positive) by n lines */\n\tmoveBy(lines: number): void;\n\n\t/** Hide the cursor (for clean rendering) */\n\thideCursor(): void;\n\n\t/** Show the cursor (restore after rendering) */\n\tshowCursor(): void;\n\n\t/** Clear from cursor to end of current line */\n\tclearLine(): void;\n\n\t/** Clear from cursor to end of screen */\n\tclearFromCursor(): void;\n\n\t/** Clear entire screen and move cursor home */\n\tclearScreen(): void;\n\n\t/** Switch to alternate screen buffer (optional) */\n\tenterAltScreen?(): void;\n\n\t/** Return from alternate screen buffer (optional) */\n\tleaveAltScreen?(): void;\n\n\t/** Enable bracketed paste mode (optional) */\n\tenableBracketedPaste?(): void;\n\n\t/** Disable bracketed paste mode (optional) */\n\tdisableBracketedPaste?(): void;\n}\n\n/**\n * Real terminal implementation using Node.js process.stdin/stdout.\n *\n * This class manages the terminal lifecycle:\n *\n * ## Startup (start())\n * 1. Saves current raw mode state for later restoration\n * 2. Enables raw mode to receive individual keystrokes\n * 3. Sets UTF-8 encoding for proper Unicode handling\n * 4. Enables bracketed paste if supported\n * 5. Registers input and resize event handlers\n *\n * ## Shutdown (stop())\n * 1. Exits alternate screen if active\n * 2. Disables bracketed paste\n * 3. Removes event handlers to prevent memory leaks\n * 4. Restores original raw mode state\n *\n * ## Raw Mode\n *\n * In raw mode, stdin delivers data byte-by-byte without line buffering.\n * This is essential for handling special keys (arrows, Ctrl combinations)\n * and providing responsive UI feedback.\n *\n * ## Bracketed Paste\n *\n * When enabled, pasted text is wrapped in escape sequences:\n * `\\x1b[200~` ... pasted content ... `\\x1b[201~`\n *\n * This allows the TUI to distinguish between typed and pasted input,\n * enabling features like multi-line paste handling.\n */\nexport class ProcessTerminal implements Terminal {\n\t/** Original raw mode state to restore on stop() */\n\tprivate wasRaw = false;\n\n\t/** Registered input event handler (for cleanup) */\n\tprivate inputHandler?: (data: string) => void;\n\n\t/** Registered resize event handler (for cleanup) */\n\tprivate resizeHandler?: () => void;\n\n\t/** Whether bracketed paste mode is currently enabled */\n\tprivate bracketedPasteEnabled = false;\n\n\t/** Whether we're currently in the alternate screen buffer */\n\tprivate altScreenActive = false;\n\n\t/**\n\t * Initializes the terminal for TUI operation.\n\t *\n\t * @param onInput - Callback for each keystroke/paste event\n\t * @param onResize - Callback when terminal dimensions change\n\t */\n\tstart(onInput: (data: string) => void, onResize: () => void): void {\n\t\tthis.inputHandler = onInput;\n\t\tthis.resizeHandler = onResize;\n\t\tconst features = detectTerminalFeatures();\n\n\t\t// Save and modify terminal state\n\t\t// This is critical for proper cleanup - we restore this in stop()\n\t\tthis.wasRaw = process.stdin.isRaw || false;\n\t\tif (process.stdin.setRawMode) {\n\t\t\tprocess.stdin.setRawMode(true);\n\t\t}\n\t\tprocess.stdin.setEncoding(\"utf8\");\n\t\tprocess.stdin.resume();\n\n\t\t// Enable bracketed paste for better paste handling\n\t\tif (features.supportsBracketedPaste) {\n\t\t\tthis.enableBracketedPaste?.();\n\t\t}\n\n\t\t// Register event listeners\n\t\tprocess.stdin.on(\"data\", this.inputHandler);\n\t\tprocess.stdout.on(\"resize\", this.resizeHandler);\n\t}\n\n\t/**\n\t * Restores terminal to its original state.\n\t *\n\t * This should always be called when the TUI exits, even on crashes.\n\t * Consider using a cleanup handler or signal listener to ensure this runs.\n\t */\n\tstop(): void {\n\t\t// Exit alternate screen first (restores scroll buffer)\n\t\tif (this.altScreenActive) {\n\t\t\tthis.leaveAltScreen?.();\n\t\t}\n\t\tthis.disableBracketedPaste?.();\n\n\t\t// Remove event handlers to prevent memory leaks and stale callbacks\n\t\tif (this.inputHandler) {\n\t\t\tprocess.stdin.removeListener(\"data\", this.inputHandler);\n\t\t\tthis.inputHandler = undefined;\n\t\t}\n\t\tif (this.resizeHandler) {\n\t\t\tprocess.stdout.removeListener(\"resize\", this.resizeHandler);\n\t\t\tthis.resizeHandler = undefined;\n\t\t}\n\n\t\t// Restore original raw mode state\n\t\tif (process.stdin.setRawMode) {\n\t\t\tprocess.stdin.setRawMode(this.wasRaw);\n\t\t}\n\t}\n\n\t/** Writes raw data to stdout without any processing */\n\twrite(data: string): void {\n\t\tprocess.stdout.write(data);\n\t}\n\n\t/** Returns terminal width, defaulting to 80 if unavailable */\n\tget columns(): number {\n\t\treturn process.stdout.columns || 80;\n\t}\n\n\t/** Returns terminal height, defaulting to 24 if unavailable */\n\tget rows(): number {\n\t\treturn process.stdout.rows || 24;\n\t}\n\n\t/**\n\t * Moves cursor vertically by the specified number of lines.\n\t *\n\t * Uses CSI A (up) or CSI B (down) sequences.\n\t *\n\t * @param lines - Positive for down, negative for up, 0 for no movement\n\t */\n\tmoveBy(lines: number): void {\n\t\tif (lines > 0) {\n\t\t\t// CSI n B - Cursor Down\n\t\t\tprocess.stdout.write(`\\x1b[${lines}B`);\n\t\t} else if (lines < 0) {\n\t\t\t// CSI n A - Cursor Up\n\t\t\tprocess.stdout.write(`\\x1b[${-lines}A`);\n\t\t}\n\t\t// lines === 0: no-op\n\t}\n\n\t/**\n\t * Hides the cursor using DECTCEM.\n\t * Use during rendering to prevent cursor flicker.\n\t */\n\thideCursor(): void {\n\t\tprocess.stdout.write(\"\\x1b[?25l\");\n\t}\n\n\t/**\n\t * Shows the cursor using DECTCEM.\n\t * Call after rendering is complete.\n\t */\n\tshowCursor(): void {\n\t\tprocess.stdout.write(\"\\x1b[?25h\");\n\t}\n\n\t/**\n\t * Erases from cursor to end of line (EL 0).\n\t * Useful for updating lines without leaving artifacts.\n\t */\n\tclearLine(): void {\n\t\tprocess.stdout.write(\"\\x1b[K\");\n\t}\n\n\t/**\n\t * Erases from cursor to end of screen (ED 0).\n\t * Useful for clearing content below the current render area.\n\t */\n\tclearFromCursor(): void {\n\t\tprocess.stdout.write(\"\\x1b[J\");\n\t}\n\n\t/**\n\t * Clears entire screen and moves cursor to home position.\n\t * Combines ED 2 (clear all) with CUP (cursor home).\n\t */\n\tclearScreen(): void {\n\t\tprocess.stdout.write(\"\\x1b[2J\\x1b[H\");\n\t}\n\n\t/**\n\t * Switches to the alternate screen buffer.\n\t *\n\t * The alternate buffer:\n\t * - Preserves the original terminal content\n\t * - Provides a clean slate for full-screen TUI\n\t * - Restores original content on exit\n\t *\n\t * Also enables alternate scroll mode (1007) for proper mouse wheel behavior.\n\t */\n\tenterAltScreen(): void {\n\t\tif (this.altScreenActive) return;\n\t\t// 1049: alternate screen buffer, 1007: alternate scroll mode\n\t\tprocess.stdout.write(\"\\x1b[?1049h\\x1b[?1007h\");\n\t\tthis.altScreenActive = true;\n\t}\n\n\t/**\n\t * Returns from alternate screen buffer to normal buffer.\n\t * The original terminal content is restored.\n\t */\n\tleaveAltScreen(): void {\n\t\tif (!this.altScreenActive) return;\n\t\t// Disable in reverse order\n\t\tprocess.stdout.write(\"\\x1b[?1007l\\x1b[?1049l\");\n\t\tthis.altScreenActive = false;\n\t}\n\n\t/**\n\t * Enables bracketed paste mode.\n\t *\n\t * When enabled, pasted text is wrapped:\n\t * ESC[200~ + pasted text + ESC[201~\n\t *\n\t * This allows the application to handle pasted text differently\n\t * from typed input (e.g., inserting all at once, handling newlines).\n\t */\n\tenableBracketedPaste(): void {\n\t\tif (this.bracketedPasteEnabled) return;\n\t\tprocess.stdout.write(\"\\x1b[?2004h\");\n\t\tthis.bracketedPasteEnabled = true;\n\t}\n\n\t/**\n\t * Disables bracketed paste mode.\n\t * Pasted text will be delivered as if it were typed.\n\t */\n\tdisableBracketedPaste(): void {\n\t\tif (!this.bracketedPasteEnabled) return;\n\t\tprocess.stdout.write(\"\\x1b[?2004l\");\n\t\tthis.bracketedPasteEnabled = false;\n\t}\n}\n\nimport { detectTerminalFeatures } from \"./utils/terminal-features.js\";\n"]}
|