@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":"config-view.js","sourceRoot":"","sources":["../../src/cli-tui/config-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,cAAc,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,M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,SAAS,CAAC,CAAC;YAChE,MAAM,IAAI,GACT,OAAO;gBACP,KAAK,CAAC,GAAG,CACR,8DAA8D,CAC9D,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,gBAAgB,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QACvE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,MAAM,OAAO,GACZ,KAAK,YAAY,KAAK;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO;gBACf,CAAC,CAAC,sCAAsC,CAAC;YAC3C,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAEO,UAAU;QACjB,MAAM,OAAO,GAAG;YACf,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;YAC3B,8CAA8C;YAC9C,6DAA6D;YAC7D,uCAAuC;SACvC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD;AAED,SAAS,WAAW,CAAC,KAAa;IACjC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,QAAQ,CAAC;IAC1C,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AACnD,CAAC","sourcesContent":["import { Spacer, Text } from \"@evalops/tui\";\nimport type { Container, TUI } from \"@evalops/tui\";\nimport chalk from \"chalk\";\nimport type {\n\tConfigInspection,\n\tConfigValidationResult,\n} from \"../models/registry.js\";\nimport {\n\tgetConfigHierarchy,\n\tinspectConfig,\n\tvalidateConfig,\n} from \"../models/registry.js\";\nimport { badge, muted, separator } from \"../style/theme.js\";\nimport { getHomeDir } from \"../utils/path-expansion.js\";\nimport type { CommandExecutionContext } from \"./commands/types.js\";\n\ninterface ConfigViewOptions {\n\tchatContainer: Container;\n\tui: TUI;\n\tshowError: (message: string) => void;\n\tshowInfo?: (message: string) => void;\n}\n\ntype ConfigSection =\n\t| \"summary\"\n\t| \"validation\"\n\t| \"sources\"\n\t| \"providers\"\n\t| \"env\"\n\t| \"files\";\n\nexport class ConfigView {\n\tconstructor(private readonly options: ConfigViewOptions) {}\n\n\tshowConfigSummary(): void {\n\t\tthis.renderConfigReport(\"summary\");\n\t}\n\n\thandleConfigCommand(\n\t\tcontext: CommandExecutionContext<{ section?: ConfigSection }>,\n\t): void {\n\t\tconst tokens = context.argumentText\n\t\t\t.trim()\n\t\t\t.split(/\\s+/)\n\t\t\t.filter((token) => token.length > 0);\n\t\tconst fromParser = context.parsedArgs?.section;\n\t\tconst action = tokens[0]?.toLowerCase();\n\n\t\tif (!action && !fromParser) {\n\t\t\tthis.showConfigSummary();\n\t\t\treturn;\n\t\t}\n\n\t\tif (fromParser) {\n\t\t\tthis.renderConfigReport(fromParser);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!action || action === \"show\" || action === \"summary\") {\n\t\t\tthis.showConfigSummary();\n\t\t\treturn;\n\t\t}\n\t\tif (action === \"sources\" || action === \"files\") {\n\t\t\tthis.showSourcesOnly();\n\t\t\treturn;\n\t\t}\n\t\tif (action === \"help\") {\n\t\t\tthis.renderHelp();\n\t\t\treturn;\n\t\t}\n\n\t\tconst section = this.toConfigSection(action);\n\t\tif (section) {\n\t\t\tthis.renderConfigReport(section);\n\t\t\treturn;\n\t\t}\n\n\t\tthis.renderHelp();\n\t\tthis.options.showInfo?.(\n\t\t\t`Unknown config option \"${action}\". Showing help instructions instead.`,\n\t\t);\n\t}\n\n\tprivate toConfigSection(value?: string): ConfigSection | undefined {\n\t\tif (!value) {\n\t\t\treturn undefined;\n\t\t}\n\t\tswitch (value) {\n\t\t\tcase \"summary\":\n\t\t\tcase \"validation\":\n\t\t\tcase \"sources\":\n\t\t\tcase \"providers\":\n\t\t\tcase \"env\":\n\t\t\tcase \"files\":\n\t\t\t\treturn value;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t}\n\t}\n\n\tprivate renderConfigReport(section: ConfigSection): void {\n\t\ttry {\n\t\t\tconst validation = validateConfig();\n\t\t\tconst inspection = inspectConfig();\n\t\t\tconst hierarchy = getConfigHierarchy();\n\t\t\tconst sections = this.buildSections(validation, inspection, hierarchy);\n\t\t\tconst content =\n\t\t\t\tsections[section] ??\n\t\t\t\tsections.summary ??\n\t\t\t\tchalk.dim(\"No data available.\");\n\t\t\tconst body =\n\t\t\t\tcontent.trim().length > 0\n\t\t\t\t\t? content\n\t\t\t\t\t: chalk.dim(\"No configuration details available.\");\n\t\t\tthis.render(body);\n\t\t} catch (error) {\n\t\t\tconst message =\n\t\t\t\terror instanceof Error\n\t\t\t\t\t? error.message\n\t\t\t\t\t: \"Unable to inspect configuration\";\n\t\t\tthis.options.showError(`Config inspection failed: ${message}`);\n\t\t}\n\t}\n\n\tprivate buildSections(\n\t\tvalidation: ConfigValidationResult,\n\t\tinspection: ConfigInspection,\n\t\thierarchy: string[],\n\t): Record<ConfigSection, string> {\n\t\tconst validationSection = this.buildValidationSection(validation);\n\t\tconst sourcesSection = this.buildSourcesSection(inspection, hierarchy);\n\t\tconst providersSection = this.buildProvidersSection(inspection);\n\t\tconst envSection = this.buildEnvSection(inspection);\n\t\tconst filesSection = this.buildFileReferenceSection(inspection);\n\t\tconst summaryParts = [\n\t\t\tchalk.bold(\"Maestro configuration\"),\n\t\t\tvalidationSection,\n\t\t\tsourcesSection,\n\t\t\tprovidersSection,\n\t\t\tenvSection,\n\t\t\tfilesSection,\n\t\t]\n\t\t\t.filter((part) => part && part.trim().length > 0)\n\t\t\t.join(\"\\n\\n\");\n\t\treturn {\n\t\t\tsummary: summaryParts,\n\t\t\tvalidation: validationSection,\n\t\t\tsources: sourcesSection,\n\t\t\tproviders: providersSection,\n\t\t\tenv: envSection,\n\t\t\tfiles: filesSection,\n\t\t};\n\t}\n\n\tprivate render(text: string): void {\n\t\tthis.options.chatContainer.addChild(new Spacer(1));\n\t\tthis.options.chatContainer.addChild(new Text(text, 1, 0));\n\t\tthis.options.ui.requestRender();\n\t}\n\n\tprivate buildValidationSection(result: ConfigValidationResult): string {\n\t\tconst verdict = result.valid\n\t\t\t? badge(\"Validation\", \"ok\", \"success\")\n\t\t\t: badge(\"Validation\", \"needs attention\", \"danger\");\n\t\tconst metrics = [\n\t\t\tbadge(\"Config files\", String(result.summary.configFiles.length)),\n\t\t\tbadge(\"Providers\", String(result.summary.providers)),\n\t\t\tbadge(\"Models\", String(result.summary.models)),\n\t\t\tbadge(\"File refs\", String(result.summary.fileReferences.length)),\n\t\t\tbadge(\"Env vars\", String(result.summary.envVars.length)),\n\t\t].join(separator());\n\t\tconst errors = result.errors.length\n\t\t\t? `${badge(\"Errors\", undefined, \"danger\")}\\n${result.errors.map((error) => chalk.red(` • ${error}`)).join(\"\\n\")}`\n\t\t\t: badge(\"Errors\", \"none\", \"success\");\n\t\tconst warnings = result.warnings.length\n\t\t\t? `${badge(\"Warnings\", undefined, \"warn\")}\\n${result.warnings.map((warning) => chalk.yellow(` • ${warning}`)).join(\"\\n\")}`\n\t\t\t: badge(\"Warnings\", \"none\", \"info\");\n\t\treturn [verdict, metrics, errors, warnings].join(\"\\n\");\n\t}\n\n\tprivate buildSourcesSection(\n\t\tinspection: ConfigInspection,\n\t\thierarchy: string[],\n\t): string {\n\t\tif (inspection.sources.length === 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst homeDir = getHomeDir();\n\t\tconst lines = inspection.sources.map((source) => {\n\t\t\tconst rel = source.path.startsWith(homeDir)\n\t\t\t\t? `~${source.path.slice(homeDir.length)}`\n\t\t\t\t: source.path;\n\t\t\tconst status = source.exists\n\t\t\t\t? badge(source.loaded ? \"loaded\" : \"present\", undefined, \"success\")\n\t\t\t\t: badge(\"missing\", undefined, \"warn\");\n\t\t\tconst mark = hierarchy.includes(source.path) ? \"•\" : \" \";\n\t\t\treturn ` ${mark} ${status} ${muted(rel)}`;\n\t\t});\n\t\treturn `${badge(\"Config sources\", undefined, \"info\")}\\n${lines.join(\"\\n\")}`;\n\t}\n\n\tprivate buildProvidersSection(inspection: ConfigInspection): string {\n\t\tif (inspection.providers.length === 0) {\n\t\t\treturn badge(\"Providers\", \"none configured\", \"warn\");\n\t\t}\n\t\tconst sections = inspection.providers.map((provider) => {\n\t\t\tconst header = `${chalk.bold(provider.name)} ${muted(`(${provider.id})`)}`;\n\t\t\tconst metaParts = [badge(\"Models\", String(provider.modelCount))];\n\t\t\tconst isOverrideOnly = provider.modelCount === 0;\n\t\t\tif (isOverrideOnly) {\n\t\t\t\tmetaParts.push(badge(\"override-only\", undefined, \"info\"));\n\t\t\t\tif (provider.apiKeySource) {\n\t\t\t\t\tmetaParts.push(badge(\"API key\", provider.apiKeySource, \"success\"));\n\t\t\t\t}\n\t\t\t} else if (provider.apiKeySource) {\n\t\t\t\tmetaParts.push(badge(\"API key\", provider.apiKeySource, \"success\"));\n\t\t\t} else if (provider.isLocal) {\n\t\t\t\tmetaParts.push(badge(\"No API key\", \"local\", \"info\"));\n\t\t\t} else {\n\t\t\t\tmetaParts.push(badge(\"API key missing\", undefined, \"warn\"));\n\t\t\t}\n\t\t\tif (provider.isLocal) {\n\t\t\t\tmetaParts.push(badge(\"local\", undefined, \"warn\"));\n\t\t\t}\n\t\t\tconst meta = metaParts.join(separator());\n\t\t\tconst baseUrlLine = muted(`Base URL: ${provider.baseUrl}`);\n\t\t\tconst modelsToShow = provider.models.slice(0, 3);\n\t\t\tconst modelLines = modelsToShow.map((model) =>\n\t\t\t\tmuted(` • ${model.id}${model.name ? ` — ${model.name}` : \"\"}`),\n\t\t\t);\n\t\t\tif (provider.models.length > modelsToShow.length) {\n\t\t\t\tmodelLines.push(\n\t\t\t\t\tmuted(\n\t\t\t\t\t\t` • … and ${provider.models.length - modelsToShow.length} more`,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn [header, ` ${meta}`, ` ${baseUrlLine}`, ...modelLines].join(\n\t\t\t\t\"\\n\",\n\t\t\t);\n\t\t});\n\t\treturn `${badge(\"Providers\", String(inspection.providers.length), \"info\")}\\n${sections.join(\"\\n\\n\")}`;\n\t}\n\n\tprivate buildEnvSection(inspection: ConfigInspection): string {\n\t\tif (inspection.envVars.length === 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst lines = inspection.envVars.map((env) => {\n\t\t\tconst status = env.set\n\t\t\t\t? badge(\"set\", undefined, \"success\")\n\t\t\t\t: badge(\"missing\", undefined, \"warn\");\n\t\t\tconst value = env.maskedValue\n\t\t\t\t? muted(env.maskedValue)\n\t\t\t\t: muted(\"(not set)\");\n\t\t\treturn ` ${status} ${chalk.cyan(env.name)} ${value}`;\n\t\t});\n\t\treturn `${badge(\"Environment variables\", String(inspection.envVars.length), \"info\")}\\n${lines.join(\"\\n\")}`;\n\t}\n\n\tprivate buildFileReferenceSection(inspection: ConfigInspection): string {\n\t\tif (inspection.fileReferences.length === 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst homeDir = getHomeDir();\n\t\tconst lines = inspection.fileReferences.map((ref) => {\n\t\t\tconst rel = ref.path.startsWith(homeDir)\n\t\t\t\t? `~${ref.path.slice(homeDir.length)}`\n\t\t\t\t: ref.path;\n\t\t\tconst status = ref.exists\n\t\t\t\t? badge(\"present\", undefined, \"success\")\n\t\t\t\t: badge(\"missing\", undefined, \"danger\");\n\t\t\tconst size =\n\t\t\t\ttypeof ref.size === \"number\"\n\t\t\t\t\t? muted(` (${formatBytes(ref.size)})`)\n\t\t\t\t\t: \"\";\n\t\t\treturn ` ${status} ${muted(rel)}${size}`;\n\t\t});\n\t\treturn `${badge(\"File references\", String(inspection.fileReferences.length), \"info\")}\\n${lines.join(\"\\n\")}`;\n\t}\n\n\tprivate showSourcesOnly(): void {\n\t\ttry {\n\t\t\tconst inspection = inspectConfig();\n\t\t\tconst hierarchy = getConfigHierarchy();\n\t\t\tconst sources = this.buildSourcesSection(inspection, hierarchy);\n\t\t\tconst body =\n\t\t\t\tsources ||\n\t\t\t\tchalk.dim(\n\t\t\t\t\t\"No configuration sources were discovered for this workspace.\",\n\t\t\t\t);\n\t\t\tthis.render(`${badge(\"Config sources\", undefined, \"info\")}\\n${body}`);\n\t\t} catch (error) {\n\t\t\tconst message =\n\t\t\t\terror instanceof Error\n\t\t\t\t\t? error.message\n\t\t\t\t\t: \"Unable to load configuration sources\";\n\t\t\tthis.options.showError(`Config sources failed: ${message}`);\n\t\t}\n\t}\n\n\tprivate renderHelp(): void {\n\t\tconst content = [\n\t\t\tchalk.bold(\"/config usage\"),\n\t\t\t\"/config — show validation + provider summary\",\n\t\t\t\"/config sources — list config files and whether they loaded\",\n\t\t\t\"/config help — show this help message\",\n\t\t].join(\"\\n\");\n\t\tthis.render(content);\n\t}\n}\n\nfunction formatBytes(bytes: number): string {\n\tif (bytes < 1024) return `${bytes} bytes`;\n\tif (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;\n\treturn `${(bytes / (1024 * 1024)).toFixed(1)} MB`;\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Component } from "@evalops/tui";
|
|
2
|
-
import type { AgentState } from "../agent/types.js";
|
|
3
|
-
interface ContextViewOptions {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
state: AgentState;
|
|
6
|
-
}
|
|
7
|
-
export declare class ContextView implements Component {
|
|
8
|
-
private readonly options;
|
|
9
|
-
private scrollOffset;
|
|
10
|
-
private cachedItems;
|
|
11
|
-
private lastStateRef;
|
|
12
|
-
constructor(options: ContextViewOptions);
|
|
13
|
-
private getItems;
|
|
14
|
-
render(width: number): string[];
|
|
15
|
-
handleInput(data: string): void;
|
|
16
|
-
private analyzeContext;
|
|
17
|
-
private getTypeIcon;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=context-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-view.d.ts","sourceRoot":"","sources":["../../src/cli-tui/context-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EACX,UAAU,EAGV,MAAM,mBAAmB,CAAC;AAc3B,UAAU,kBAAkB;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;CAClB;AASD,qBAAa,WAAY,YAAW,SAAS;IAKhC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,YAAY,CAA2B;gBAElB,OAAO,EAAE,kBAAkB;IAExD,OAAO,CAAC,QAAQ;IAgBhB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IA6E/B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAsB/B,OAAO,CAAC,cAAc;IA2FtB,OAAO,CAAC,WAAW;CAcnB"}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { convertAppMessageToLlm } from "../agent/custom-messages.js";
|
|
2
|
-
import { theme } from "../theme/theme.js";
|
|
3
|
-
import { themedBottomLine, themedSeparatorLine, themedTopLine, } from "./utils/borders.js";
|
|
4
|
-
import { calculateFooterStats, formatTokenCount, normalizeUsage, } from "./utils/footer-utils.js";
|
|
5
|
-
import { centerText, padLine, truncateText } from "./utils/text-formatting.js";
|
|
6
|
-
export class ContextView {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
this.options = options;
|
|
9
|
-
this.scrollOffset = 0;
|
|
10
|
-
this.cachedItems = [];
|
|
11
|
-
this.lastStateRef = null;
|
|
12
|
-
}
|
|
13
|
-
getItems() {
|
|
14
|
-
if (this.options.state === this.lastStateRef &&
|
|
15
|
-
this.cachedItems.length > 0) {
|
|
16
|
-
return this.cachedItems;
|
|
17
|
-
}
|
|
18
|
-
const stats = calculateFooterStats(this.options.state);
|
|
19
|
-
this.cachedItems = this.analyzeContext(this.options.state, stats.contextTokens);
|
|
20
|
-
this.lastStateRef = this.options.state;
|
|
21
|
-
return this.cachedItems;
|
|
22
|
-
}
|
|
23
|
-
render(width) {
|
|
24
|
-
const lines = [];
|
|
25
|
-
const borderV = theme.fg("borderAccent", "│");
|
|
26
|
-
// Top border with title
|
|
27
|
-
lines.push(themedTopLine(width, {
|
|
28
|
-
title: theme.bold("CONTEXT USAGE"),
|
|
29
|
-
titleAlign: "center",
|
|
30
|
-
color: "borderAccent",
|
|
31
|
-
}));
|
|
32
|
-
// Separator after title
|
|
33
|
-
lines.push(themedSeparatorLine(width, { color: "borderAccent" }));
|
|
34
|
-
const stats = calculateFooterStats(this.options.state);
|
|
35
|
-
const items = this.getItems();
|
|
36
|
-
// Stats Summary
|
|
37
|
-
const summary = `Total: ${formatTokenCount(stats.contextTokens)} / ${formatTokenCount(stats.contextWindow)} (${stats.contextPercent.toFixed(1)}%)`;
|
|
38
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${padLine(theme.fg("accent", summary), width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
39
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${" ".repeat(width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
40
|
-
// Render Items
|
|
41
|
-
const maxDisplay = 15;
|
|
42
|
-
const visibleItems = items.slice(this.scrollOffset, this.scrollOffset + maxDisplay);
|
|
43
|
-
for (const item of visibleItems) {
|
|
44
|
-
const typeIcon = this.getTypeIcon(item.type);
|
|
45
|
-
const label = truncateText(item.label, width - 24);
|
|
46
|
-
const tokens = formatTokenCount(item.tokens).padStart(6);
|
|
47
|
-
const percent = `${item.percent.toFixed(1)}%`.padStart(6);
|
|
48
|
-
const line = `${typeIcon} ${theme.fg("text", label.padEnd(width - 24))} ${theme.fg("dim", tokens)} ${theme.fg("dim", percent)}`;
|
|
49
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${line}${theme.fg("borderAccent", " │")}`);
|
|
50
|
-
}
|
|
51
|
-
// Fill remaining space if few items
|
|
52
|
-
if (visibleItems.length < maxDisplay) {
|
|
53
|
-
for (let i = 0; i < maxDisplay - visibleItems.length; i++) {
|
|
54
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${" ".repeat(width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if (items.length > maxDisplay) {
|
|
58
|
-
const moreText = `... ${items.length - maxDisplay} more (use arrows to scroll)`;
|
|
59
|
-
lines.push(`${theme.fg("borderAccent", "│ ")}${padLine(theme.fg("dim", moreText), width - 4)}${theme.fg("borderAccent", " │")}`);
|
|
60
|
-
}
|
|
61
|
-
// Bottom separator
|
|
62
|
-
lines.push(themedSeparatorLine(width, { color: "borderAccent" }));
|
|
63
|
-
const helpText = "[esc] close [↑/↓] scroll";
|
|
64
|
-
lines.push(`${borderV} ${centerText(theme.fg("dim", helpText), width - 4)} ${borderV}`);
|
|
65
|
-
// Bottom border
|
|
66
|
-
lines.push(themedBottomLine(width, { color: "borderAccent" }));
|
|
67
|
-
return lines;
|
|
68
|
-
}
|
|
69
|
-
handleInput(data) {
|
|
70
|
-
if (data === "\x1b") {
|
|
71
|
-
this.options.onClose();
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const maxDisplay = 15;
|
|
75
|
-
const items = this.getItems();
|
|
76
|
-
const maxOffset = Math.max(0, items.length - maxDisplay);
|
|
77
|
-
if (data === "\x1b[A") {
|
|
78
|
-
// Up
|
|
79
|
-
this.scrollOffset = Math.max(0, this.scrollOffset - 1);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (data === "\x1b[B") {
|
|
83
|
-
// Down
|
|
84
|
-
this.scrollOffset = Math.min(maxOffset, this.scrollOffset + 1);
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
analyzeContext(state, totalTokens) {
|
|
89
|
-
const items = [];
|
|
90
|
-
// Estimate tokens: roughly chars / 4
|
|
91
|
-
const estimate = (text) => Math.ceil(text.length / 4);
|
|
92
|
-
// System Prompt
|
|
93
|
-
if (state.systemPrompt) {
|
|
94
|
-
const tokens = estimate(state.systemPrompt);
|
|
95
|
-
items.push({
|
|
96
|
-
label: "System Prompt (est.)",
|
|
97
|
-
tokens,
|
|
98
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
99
|
-
type: "system",
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
for (const msg of state.messages) {
|
|
103
|
-
const llmMessage = convertAppMessageToLlm(msg);
|
|
104
|
-
if (!llmMessage) {
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
const tokens = estimate(JSON.stringify(llmMessage.content));
|
|
108
|
-
if (msg.role === "user") {
|
|
109
|
-
let label = "";
|
|
110
|
-
if (Array.isArray(llmMessage.content)) {
|
|
111
|
-
label = "Multipart User Message";
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
label = llmMessage.content
|
|
115
|
-
.slice(0, 50)
|
|
116
|
-
.replace(/\n/g, " ");
|
|
117
|
-
}
|
|
118
|
-
items.push({
|
|
119
|
-
label: `${label} (est.)`,
|
|
120
|
-
tokens,
|
|
121
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
122
|
-
type: "user",
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
else if (msg.role === "assistant") {
|
|
126
|
-
const assistantMsg = msg;
|
|
127
|
-
// Use actual usage if available
|
|
128
|
-
const hasUsage = !!assistantMsg.usage;
|
|
129
|
-
const usage = normalizeUsage(assistantMsg.usage);
|
|
130
|
-
const actualTokens = hasUsage
|
|
131
|
-
? usage.input + usage.cacheRead + usage.output
|
|
132
|
-
: tokens;
|
|
133
|
-
items.push({
|
|
134
|
-
label: hasUsage ? "Assistant Response" : "Assistant Response (est.)",
|
|
135
|
-
tokens: actualTokens,
|
|
136
|
-
percent: totalTokens > 0 ? (actualTokens / totalTokens) * 100 : 0,
|
|
137
|
-
type: "assistant",
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
else if (msg.role === "toolResult") {
|
|
141
|
-
// Tool result
|
|
142
|
-
items.push({
|
|
143
|
-
label: `Tool Output (${msg.toolName}) (est.)`,
|
|
144
|
-
tokens,
|
|
145
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
146
|
-
type: "tool",
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
else if (msg.role === "hookMessage") {
|
|
150
|
-
items.push({
|
|
151
|
-
label: `Hook Message (${msg.customType}) (est.)`,
|
|
152
|
-
tokens,
|
|
153
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
154
|
-
type: "tool",
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
else if (msg.role === "branchSummary") {
|
|
158
|
-
items.push({
|
|
159
|
-
label: "Branch Summary (est.)",
|
|
160
|
-
tokens,
|
|
161
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
162
|
-
type: "user",
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
else if (msg.role === "compactionSummary") {
|
|
166
|
-
items.push({
|
|
167
|
-
label: "Compaction Summary (est.)",
|
|
168
|
-
tokens,
|
|
169
|
-
percent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,
|
|
170
|
-
type: "user",
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return items.sort((a, b) => b.tokens - a.tokens);
|
|
175
|
-
}
|
|
176
|
-
getTypeIcon(type) {
|
|
177
|
-
switch (type) {
|
|
178
|
-
case "system":
|
|
179
|
-
return "⚙";
|
|
180
|
-
case "user":
|
|
181
|
-
return "👤";
|
|
182
|
-
case "assistant":
|
|
183
|
-
return "🤖";
|
|
184
|
-
case "tool":
|
|
185
|
-
return "🛠";
|
|
186
|
-
case "file":
|
|
187
|
-
return "📄";
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=context-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-view.js","sourceRoot":"","sources":["../../src/cli-tui/context-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAMrE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAc/E,MAAM,OAAO,WAAW;IAKvB,YAA6B,OAA2B;QAA3B,YAAO,GAAP,OAAO,CAAoB;QAJhD,iBAAY,GAAG,CAAC,CAAC;QACjB,gBAAW,GAAkB,EAAE,CAAC;QAChC,iBAAY,GAAsB,IAAI,CAAC;IAEY,CAAC;IAEpD,QAAQ;QACf,IACC,IAAI,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,YAAY;YACxC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAC1B,CAAC;YACF,OAAO,IAAI,CAAC,WAAW,CAAC;QACzB,CAAC;QACD,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACvD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,CACrC,IAAI,CAAC,OAAO,CAAC,KAAK,EACl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AAK,EAAE,uBAAuB;oBAC9B,MAAM;oBACN,OAAO,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBAC3D,IAAI,EAAE,MAAM;iBACZ,CAAC,CAAC;YACJ,CAAC;iBAAM,IAAI,GAAG,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;gBAC7C,KAAK,CAAC,IAAI,CAAC;oBACV,KAAK,EAAE,2BAA2B;oBAClC,MAAM;oBACN,OAAO,EAAE,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBAC3D,IAAI,EAAE,MAAM;iBACZ,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAEO,WAAW,CAAC,IAAyB;QAC5C,QAAQ,IAAI,EAAE,CAAC;YACd,KAAK,QAAQ;gBACZ,OAAO,GAAG,CAAC;YACZ,KAAK,MAAM;gBACV,OAAO,IAAI,CAAC;YACb,KAAK,WAAW;gBACf,OAAO,IAAI,CAAC;YACb,KAAK,MAAM;gBACV,OAAO,IAAI,CAAC;YACb,KAAK,MAAM;gBACV,OAAO,IAAI,CAAC;QACd,CAAC;IACF,CAAC;CACD","sourcesContent":["import type { Component } from \"@evalops/tui\";\nimport { convertAppMessageToLlm } from \"../agent/custom-messages.js\";\nimport type {\n\tAgentState,\n\tAssistantMessage,\n\tToolResultMessage,\n} from \"../agent/types.js\";\nimport { theme } from \"../theme/theme.js\";\nimport {\n\tthemedBottomLine,\n\tthemedSeparatorLine,\n\tthemedTopLine,\n} from \"./utils/borders.js\";\nimport {\n\tcalculateFooterStats,\n\tformatTokenCount,\n\tnormalizeUsage,\n} from \"./utils/footer-utils.js\";\nimport { centerText, padLine, truncateText } from \"./utils/text-formatting.js\";\n\ninterface ContextViewOptions {\n\tonClose: () => void;\n\tstate: AgentState;\n}\n\ninterface ContextItem {\n\tlabel: string;\n\ttokens: number;\n\tpercent: number;\n\ttype: \"system\" | \"user\" | \"assistant\" | \"tool\" | \"file\";\n}\n\nexport class ContextView implements Component {\n\tprivate scrollOffset = 0;\n\tprivate cachedItems: ContextItem[] = [];\n\tprivate lastStateRef: AgentState | null = null;\n\n\tconstructor(private readonly options: ContextViewOptions) {}\n\n\tprivate getItems(): ContextItem[] {\n\t\tif (\n\t\t\tthis.options.state === this.lastStateRef &&\n\t\t\tthis.cachedItems.length > 0\n\t\t) {\n\t\t\treturn this.cachedItems;\n\t\t}\n\t\tconst stats = calculateFooterStats(this.options.state);\n\t\tthis.cachedItems = this.analyzeContext(\n\t\t\tthis.options.state,\n\t\t\tstats.contextTokens,\n\t\t);\n\t\tthis.lastStateRef = this.options.state;\n\t\treturn this.cachedItems;\n\t}\n\n\trender(width: number): string[] {\n\t\tconst lines: string[] = [];\n\t\tconst borderV = theme.fg(\"borderAccent\", \"│\");\n\n\t\t// Top border with title\n\t\tlines.push(\n\t\t\tthemedTopLine(width, {\n\t\t\t\ttitle: theme.bold(\"CONTEXT USAGE\"),\n\t\t\t\ttitleAlign: \"center\",\n\t\t\t\tcolor: \"borderAccent\",\n\t\t\t}),\n\t\t);\n\n\t\t// Separator after title\n\t\tlines.push(themedSeparatorLine(width, { color: \"borderAccent\" }));\n\n\t\tconst stats = calculateFooterStats(this.options.state);\n\t\tconst items = this.getItems();\n\n\t\t// Stats Summary\n\t\tconst summary = `Total: ${formatTokenCount(stats.contextTokens)} / ${formatTokenCount(stats.contextWindow)} (${stats.contextPercent.toFixed(1)}%)`;\n\t\tlines.push(\n\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${padLine(theme.fg(\"accent\", summary), width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t);\n\t\tlines.push(\n\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${\" \".repeat(width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t);\n\n\t\t// Render Items\n\t\tconst maxDisplay = 15;\n\t\tconst visibleItems = items.slice(\n\t\t\tthis.scrollOffset,\n\t\t\tthis.scrollOffset + maxDisplay,\n\t\t);\n\n\t\tfor (const item of visibleItems) {\n\t\t\tconst typeIcon = this.getTypeIcon(item.type);\n\t\t\tconst label = truncateText(item.label, width - 24);\n\t\t\tconst tokens = formatTokenCount(item.tokens).padStart(6);\n\t\t\tconst percent = `${item.percent.toFixed(1)}%`.padStart(6);\n\n\t\t\tconst line = `${typeIcon} ${theme.fg(\"text\", label.padEnd(width - 24))} ${theme.fg(\"dim\", tokens)} ${theme.fg(\"dim\", percent)}`;\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${line}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\t\t}\n\n\t\t// Fill remaining space if few items\n\t\tif (visibleItems.length < maxDisplay) {\n\t\t\tfor (let i = 0; i < maxDisplay - visibleItems.length; i++) {\n\t\t\t\tlines.push(\n\t\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${\" \".repeat(width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif (items.length > maxDisplay) {\n\t\t\tconst moreText = `... ${items.length - maxDisplay} more (use arrows to scroll)`;\n\t\t\tlines.push(\n\t\t\t\t`${theme.fg(\"borderAccent\", \"│ \")}${padLine(theme.fg(\"dim\", moreText), width - 4)}${theme.fg(\"borderAccent\", \" │\")}`,\n\t\t\t);\n\t\t}\n\n\t\t// Bottom separator\n\t\tlines.push(themedSeparatorLine(width, { color: \"borderAccent\" }));\n\n\t\tconst helpText = \"[esc] close [↑/↓] scroll\";\n\t\tlines.push(\n\t\t\t`${borderV} ${centerText(theme.fg(\"dim\", helpText), width - 4)} ${borderV}`,\n\t\t);\n\n\t\t// Bottom border\n\t\tlines.push(themedBottomLine(width, { color: \"borderAccent\" }));\n\n\t\treturn lines;\n\t}\n\n\thandleInput(data: string): void {\n\t\tif (data === \"\\x1b\") {\n\t\t\tthis.options.onClose();\n\t\t\treturn;\n\t\t}\n\n\t\tconst maxDisplay = 15;\n\t\tconst items = this.getItems();\n\t\tconst maxOffset = Math.max(0, items.length - maxDisplay);\n\n\t\tif (data === \"\\x1b[A\") {\n\t\t\t// Up\n\t\t\tthis.scrollOffset = Math.max(0, this.scrollOffset - 1);\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b[B\") {\n\t\t\t// Down\n\t\t\tthis.scrollOffset = Math.min(maxOffset, this.scrollOffset + 1);\n\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate analyzeContext(\n\t\tstate: AgentState,\n\t\ttotalTokens: number,\n\t): ContextItem[] {\n\t\tconst items: ContextItem[] = [];\n\t\t// Estimate tokens: roughly chars / 4\n\t\tconst estimate = (text: string) => Math.ceil(text.length / 4);\n\n\t\t// System Prompt\n\t\tif (state.systemPrompt) {\n\t\t\tconst tokens = estimate(state.systemPrompt);\n\t\t\titems.push({\n\t\t\t\tlabel: \"System Prompt (est.)\",\n\t\t\t\ttokens,\n\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\ttype: \"system\",\n\t\t\t});\n\t\t}\n\n\t\tfor (const msg of state.messages) {\n\t\t\tconst llmMessage = convertAppMessageToLlm(msg);\n\t\t\tif (!llmMessage) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst tokens = estimate(JSON.stringify(llmMessage.content));\n\n\t\t\tif (msg.role === \"user\") {\n\t\t\t\tlet label = \"\";\n\t\t\t\tif (Array.isArray(llmMessage.content)) {\n\t\t\t\t\tlabel = \"Multipart User Message\";\n\t\t\t\t} else {\n\t\t\t\t\tlabel = (llmMessage.content as string)\n\t\t\t\t\t\t.slice(0, 50)\n\t\t\t\t\t\t.replace(/\\n/g, \" \");\n\t\t\t\t}\n\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: `${label} (est.)`,\n\t\t\t\t\ttokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"user\",\n\t\t\t\t});\n\t\t\t} else if (msg.role === \"assistant\") {\n\t\t\t\tconst assistantMsg = msg as AssistantMessage;\n\t\t\t\t// Use actual usage if available\n\t\t\t\tconst hasUsage = !!assistantMsg.usage;\n\t\t\t\tconst usage = normalizeUsage(assistantMsg.usage);\n\t\t\t\tconst actualTokens = hasUsage\n\t\t\t\t\t? usage.input + usage.cacheRead + usage.output\n\t\t\t\t\t: tokens;\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: hasUsage ? \"Assistant Response\" : \"Assistant Response (est.)\",\n\t\t\t\t\ttokens: actualTokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (actualTokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"assistant\",\n\t\t\t\t});\n\t\t\t} else if (msg.role === \"toolResult\") {\n\t\t\t\t// Tool result\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: `Tool Output (${(msg as ToolResultMessage).toolName}) (est.)`,\n\t\t\t\t\ttokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"tool\",\n\t\t\t\t});\n\t\t\t} else if (msg.role === \"hookMessage\") {\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: `Hook Message (${msg.customType}) (est.)`,\n\t\t\t\t\ttokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"tool\",\n\t\t\t\t});\n\t\t\t} else if (msg.role === \"branchSummary\") {\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: \"Branch Summary (est.)\",\n\t\t\t\t\ttokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"user\",\n\t\t\t\t});\n\t\t\t} else if (msg.role === \"compactionSummary\") {\n\t\t\t\titems.push({\n\t\t\t\t\tlabel: \"Compaction Summary (est.)\",\n\t\t\t\t\ttokens,\n\t\t\t\t\tpercent: totalTokens > 0 ? (tokens / totalTokens) * 100 : 0,\n\t\t\t\t\ttype: \"user\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn items.sort((a, b) => b.tokens - a.tokens);\n\t}\n\n\tprivate getTypeIcon(type: ContextItem[\"type\"]): string {\n\t\tswitch (type) {\n\t\t\tcase \"system\":\n\t\t\t\treturn \"⚙\";\n\t\t\tcase \"user\":\n\t\t\t\treturn \"👤\";\n\t\t\tcase \"assistant\":\n\t\t\t\treturn \"🤖\";\n\t\t\tcase \"tool\":\n\t\t\t\treturn \"🛠\";\n\t\t\tcase \"file\":\n\t\t\t\treturn \"📄\";\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Editor } from "@evalops/tui";
|
|
2
|
-
/**
|
|
3
|
-
* Custom editor that handles Escape and Ctrl+C keys for Maestro
|
|
4
|
-
*/
|
|
5
|
-
export declare class CustomEditor extends Editor {
|
|
6
|
-
onEscape?: () => void;
|
|
7
|
-
onCtrlC?: () => void;
|
|
8
|
-
onCtrlD?: () => void;
|
|
9
|
-
onShortcut?: (shortcut: string) => boolean;
|
|
10
|
-
onFollowUp?: () => void;
|
|
11
|
-
onHistoryNavigate?: (direction: "prev" | "next") => boolean;
|
|
12
|
-
onShiftTab?: () => boolean | undefined;
|
|
13
|
-
onCtrlP?: () => void;
|
|
14
|
-
onCtrlO?: () => void;
|
|
15
|
-
onCtrlT?: () => void;
|
|
16
|
-
onCtrlG?: () => void;
|
|
17
|
-
onCtrlZ?: () => void;
|
|
18
|
-
onTyping?: () => void;
|
|
19
|
-
onTab?: () => boolean;
|
|
20
|
-
onPasteImage?: () => void;
|
|
21
|
-
handleInput(rawData: string): void;
|
|
22
|
-
private tryHandleKeyBindings;
|
|
23
|
-
private isPrintableInput;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=custom-editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor.d.ts","sourceRoot":"","sources":["../../src/cli-tui/custom-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAkC,MAAM,cAAc,CAAC;AAiNtE;;GAEG;AACH,qBAAa,YAAa,SAAQ,MAAM;IAChC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;IAC5D,UAAU,CAAC,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAa3C,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,gBAAgB;CAmBxB"}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { Editor, KittyKeys, isCtrlD, isShiftTab } from "@evalops/tui";
|
|
2
|
-
import { recordUserInteraction } from "../interaction/user-interaction.js";
|
|
3
|
-
import { matchesTuiKeybinding } from "./keybindings.js";
|
|
4
|
-
const CUSTOM_EDITOR_KEYMAP = [
|
|
5
|
-
{
|
|
6
|
-
description: "Tab cycles slash hints, sends, or queues while running",
|
|
7
|
-
matches: (data) => data === "\t",
|
|
8
|
-
when: (editor) => Boolean(editor.onTab) && !editor.isShowingAutocomplete(),
|
|
9
|
-
handle: (editor) => editor.onTab?.() === true,
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
description: "Cycles models",
|
|
13
|
-
matches: (data) => matchesTuiKeybinding("cycle-model", data),
|
|
14
|
-
when: (editor) => Boolean(editor.onCtrlP),
|
|
15
|
-
handle: (editor) => {
|
|
16
|
-
editor.onCtrlP?.();
|
|
17
|
-
return true;
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
description: "Toggles tool output expansion",
|
|
22
|
-
matches: (data) => matchesTuiKeybinding("toggle-tool-outputs", data),
|
|
23
|
-
when: (editor) => Boolean(editor.onCtrlO),
|
|
24
|
-
handle: (editor) => {
|
|
25
|
-
editor.onCtrlO?.();
|
|
26
|
-
return true;
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
description: "Toggles thinking block visibility",
|
|
31
|
-
matches: (data) => matchesTuiKeybinding("toggle-thinking-blocks", data),
|
|
32
|
-
when: (editor) => Boolean(editor.onCtrlT),
|
|
33
|
-
handle: (editor) => {
|
|
34
|
-
editor.onCtrlT?.();
|
|
35
|
-
return true;
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "Opens the external editor",
|
|
40
|
-
matches: (data) => matchesTuiKeybinding("external-editor", data),
|
|
41
|
-
when: (editor) => Boolean(editor.onCtrlG),
|
|
42
|
-
handle: (editor) => {
|
|
43
|
-
editor.onCtrlG?.();
|
|
44
|
-
return true;
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "Suspends to background",
|
|
49
|
-
matches: (data) => matchesTuiKeybinding("suspend", data),
|
|
50
|
-
when: (editor) => Boolean(editor.onCtrlZ),
|
|
51
|
-
handle: (editor) => {
|
|
52
|
-
editor.onCtrlZ?.();
|
|
53
|
-
return true;
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "Shift+Tab cycles thinking levels (or slash reverse cycle)",
|
|
58
|
-
matches: (data) => isShiftTab(data),
|
|
59
|
-
when: (editor) => Boolean(editor.onShiftTab),
|
|
60
|
-
handle: (editor) => editor.onShiftTab?.() === true,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
description: "Shift+Enter inserts newline (Kitty protocol)",
|
|
64
|
-
matches: (data) => data === KittyKeys.SHIFT_ENTER,
|
|
65
|
-
handle: (editor) => {
|
|
66
|
-
editor.insertText("\n");
|
|
67
|
-
return true;
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "Alt+Enter queues a follow-up message (Kitty protocol)",
|
|
72
|
-
matches: (data) => data === KittyKeys.ALT_ENTER,
|
|
73
|
-
when: (editor) => Boolean(editor.onFollowUp),
|
|
74
|
-
handle: (editor) => {
|
|
75
|
-
editor.onFollowUp?.();
|
|
76
|
-
return true;
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "Alt+Enter inserts newline (Kitty protocol)",
|
|
81
|
-
matches: (data) => data === KittyKeys.ALT_ENTER,
|
|
82
|
-
handle: (editor) => {
|
|
83
|
-
editor.insertText("\n");
|
|
84
|
-
return true;
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
description: "Ctrl+V pastes an image from clipboard",
|
|
89
|
-
matches: (data) => data === "\x16",
|
|
90
|
-
when: (editor) => Boolean(editor.onPasteImage),
|
|
91
|
-
handle: (editor) => {
|
|
92
|
-
editor.onPasteImage?.();
|
|
93
|
-
return true;
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
description: "Escape closes Maestro modals (unless autocomplete is open)",
|
|
98
|
-
matches: (data) => data === "\x1b",
|
|
99
|
-
when: (editor) => Boolean(editor.onEscape) && !editor.isShowingAutocomplete(),
|
|
100
|
-
handle: (editor) => {
|
|
101
|
-
editor.onEscape?.();
|
|
102
|
-
return true;
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
description: "Opens the command palette",
|
|
107
|
-
matches: (data) => matchesTuiKeybinding("command-palette", data),
|
|
108
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
109
|
-
handle: (editor) => editor.onShortcut?.("command-palette") === true,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
description: "@ triggers file search (only when not autocompleting)",
|
|
113
|
-
matches: (data) => data === "@",
|
|
114
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
115
|
-
handle: (editor) => editor.onShortcut?.("at") === true,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
description: "'k' can trigger keep-partial during interrupt (if handler returns true)",
|
|
119
|
-
matches: (data) => data === "k" || data === "K",
|
|
120
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
121
|
-
handle: (editor) => editor.onShortcut?.("k") === true,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
description: "Ctrl+C interrupts the current run",
|
|
125
|
-
matches: (data) => data === "\x03",
|
|
126
|
-
when: (editor) => Boolean(editor.onCtrlC),
|
|
127
|
-
handle: (editor) => {
|
|
128
|
-
editor.onCtrlC?.();
|
|
129
|
-
return true;
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
description: "Edits queued follow-ups",
|
|
134
|
-
matches: (data) => matchesTuiKeybinding("edit-last-follow-up", data),
|
|
135
|
-
when: (editor) => Boolean(editor.onShortcut) && !editor.isShowingAutocomplete(),
|
|
136
|
-
handle: (editor) => editor.onShortcut?.("edit-last-follow-up") === true,
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
description: "Up arrow navigates history (when autocomplete is hidden)",
|
|
140
|
-
matches: (data) => data === "\x1b[A",
|
|
141
|
-
when: (editor) => Boolean(editor.onHistoryNavigate) && !editor.isShowingAutocomplete(),
|
|
142
|
-
handle: (editor) => editor.onHistoryNavigate?.("prev") === true,
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
description: "Down arrow navigates history (when autocomplete is hidden)",
|
|
146
|
-
matches: (data) => data === "\x1b[B",
|
|
147
|
-
when: (editor) => Boolean(editor.onHistoryNavigate) && !editor.isShowingAutocomplete(),
|
|
148
|
-
handle: (editor) => editor.onHistoryNavigate?.("next") === true,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
description: "Page Up scrolls chat history",
|
|
152
|
-
matches: (data) => data === "\x1b[5~",
|
|
153
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
154
|
-
handle: (editor) => editor.onShortcut?.("pageup") === true,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
description: "Page Down scrolls chat history",
|
|
158
|
-
matches: (data) => data === "\x1b[6~",
|
|
159
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
160
|
-
handle: (editor) => editor.onShortcut?.("pagedown") === true,
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
description: "Ctrl+U scrolls chat history half a page up (vim-style)",
|
|
164
|
-
matches: (data) => data === "\x15",
|
|
165
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
166
|
-
handle: (editor) => editor.onShortcut?.("ctrl+u") === true,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
description: "Ctrl+D exits when editor empty, otherwise scrolls half page down",
|
|
170
|
-
matches: (data) => isCtrlD(data),
|
|
171
|
-
when: (editor) => Boolean(editor.onShortcut) || Boolean(editor.onCtrlD),
|
|
172
|
-
handle: (editor) => {
|
|
173
|
-
// When editor is empty and onCtrlD is set, exit
|
|
174
|
-
if (editor.isEditorEmpty() && editor.onCtrlD) {
|
|
175
|
-
editor.onCtrlD();
|
|
176
|
-
return true;
|
|
177
|
-
}
|
|
178
|
-
// Otherwise scroll (vim-style behavior)
|
|
179
|
-
return editor.onShortcut?.("ctrl+d") === true;
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
description: "Ctrl+Home jumps to top of chat history",
|
|
184
|
-
matches: (data) => data === "\x1b[1;5H",
|
|
185
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
186
|
-
handle: (editor) => editor.onShortcut?.("ctrl+home") === true,
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
description: "Ctrl+End jumps to bottom of chat history",
|
|
190
|
-
matches: (data) => data === "\x1b[1;5F",
|
|
191
|
-
when: (editor) => Boolean(editor.onShortcut),
|
|
192
|
-
handle: (editor) => editor.onShortcut?.("ctrl+end") === true,
|
|
193
|
-
},
|
|
194
|
-
];
|
|
195
|
-
/**
|
|
196
|
-
* Custom editor that handles Escape and Ctrl+C keys for Maestro
|
|
197
|
-
*/
|
|
198
|
-
export class CustomEditor extends Editor {
|
|
199
|
-
handleInput(rawData) {
|
|
200
|
-
recordUserInteraction();
|
|
201
|
-
const data = this.normalizeArrowInput(rawData);
|
|
202
|
-
if (this.tryHandleKeyBindings(data))
|
|
203
|
-
return;
|
|
204
|
-
if (this.isPrintableInput(data) && this.onTyping) {
|
|
205
|
-
this.onTyping();
|
|
206
|
-
}
|
|
207
|
-
// Pass to parent for normal handling
|
|
208
|
-
super.handleInput(data);
|
|
209
|
-
}
|
|
210
|
-
tryHandleKeyBindings(data) {
|
|
211
|
-
for (const binding of CUSTOM_EDITOR_KEYMAP) {
|
|
212
|
-
if (!binding.matches(data))
|
|
213
|
-
continue;
|
|
214
|
-
if (binding.when && !binding.when(this))
|
|
215
|
-
continue;
|
|
216
|
-
if (binding.handle(this, data))
|
|
217
|
-
return true;
|
|
218
|
-
}
|
|
219
|
-
return false;
|
|
220
|
-
}
|
|
221
|
-
isPrintableInput(data) {
|
|
222
|
-
if (!data) {
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
// Ignore escape/control sequences that begin with ESC
|
|
226
|
-
if (data.startsWith("\x1b")) {
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
for (const char of data) {
|
|
230
|
-
const codePoint = char.codePointAt(0);
|
|
231
|
-
if (codePoint === undefined) {
|
|
232
|
-
continue;
|
|
233
|
-
}
|
|
234
|
-
if (codePoint >= 0x20 && codePoint !== 0x7f) {
|
|
235
|
-
return true;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
return false;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
//# sourceMappingURL=custom-editor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor.js","sourceRoot":"","sources":["../../src/cli-tui/custom-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AASxD,MAAM,oBAAoB,GAA0B;IACnD;QACC,WAAW,EAAE,wDAAwD;QACrE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI;QAChC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE;QAC1E,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,IAAI;KAC7C;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE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I,IAAI,EAAE,CAAC;YACzB,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACtC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBAC7B,SAAS;YACV,CAAC;YACD,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;gBAC7C,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;CACD","sourcesContent":["import { Editor, KittyKeys, isCtrlD, isShiftTab } from \"@evalops/tui\";\nimport { recordUserInteraction } from \"../interaction/user-interaction.js\";\nimport { matchesTuiKeybinding } from \"./keybindings.js\";\n\ntype CustomEditorBinding = {\n\tdescription: string;\n\tmatches: (data: string) => boolean;\n\twhen?: (editor: CustomEditor) => boolean;\n\thandle: (editor: CustomEditor, data: string) => boolean;\n};\n\nconst CUSTOM_EDITOR_KEYMAP: CustomEditorBinding[] = [\n\t{\n\t\tdescription: \"Tab cycles slash hints, sends, or queues while running\",\n\t\tmatches: (data) => data === \"\\t\",\n\t\twhen: (editor) => Boolean(editor.onTab) && !editor.isShowingAutocomplete(),\n\t\thandle: (editor) => editor.onTab?.() === true,\n\t},\n\t{\n\t\tdescription: \"Cycles models\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"cycle-model\", data),\n\t\twhen: (editor) => Boolean(editor.onCtrlP),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlP?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Toggles tool output expansion\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"toggle-tool-outputs\", data),\n\t\twhen: (editor) => Boolean(editor.onCtrlO),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlO?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Toggles thinking block visibility\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"toggle-thinking-blocks\", data),\n\t\twhen: (editor) => Boolean(editor.onCtrlT),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlT?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Opens the external editor\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"external-editor\", data),\n\t\twhen: (editor) => Boolean(editor.onCtrlG),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlG?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Suspends to background\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"suspend\", data),\n\t\twhen: (editor) => Boolean(editor.onCtrlZ),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlZ?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Shift+Tab cycles thinking levels (or slash reverse cycle)\",\n\t\tmatches: (data) => isShiftTab(data),\n\t\twhen: (editor) => Boolean(editor.onShiftTab),\n\t\thandle: (editor) => editor.onShiftTab?.() === true,\n\t},\n\t{\n\t\tdescription: \"Shift+Enter inserts newline (Kitty protocol)\",\n\t\tmatches: (data) => data === KittyKeys.SHIFT_ENTER,\n\t\thandle: (editor) => {\n\t\t\teditor.insertText(\"\\n\");\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Alt+Enter queues a follow-up message (Kitty protocol)\",\n\t\tmatches: (data) => data === KittyKeys.ALT_ENTER,\n\t\twhen: (editor) => Boolean(editor.onFollowUp),\n\t\thandle: (editor) => {\n\t\t\teditor.onFollowUp?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Alt+Enter inserts newline (Kitty protocol)\",\n\t\tmatches: (data) => data === KittyKeys.ALT_ENTER,\n\t\thandle: (editor) => {\n\t\t\teditor.insertText(\"\\n\");\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Ctrl+V pastes an image from clipboard\",\n\t\tmatches: (data) => data === \"\\x16\",\n\t\twhen: (editor) => Boolean(editor.onPasteImage),\n\t\thandle: (editor) => {\n\t\t\teditor.onPasteImage?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Escape closes Maestro modals (unless autocomplete is open)\",\n\t\tmatches: (data) => data === \"\\x1b\",\n\t\twhen: (editor) =>\n\t\t\tBoolean(editor.onEscape) && !editor.isShowingAutocomplete(),\n\t\thandle: (editor) => {\n\t\t\teditor.onEscape?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Opens the command palette\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"command-palette\", data),\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"command-palette\") === true,\n\t},\n\t{\n\t\tdescription: \"@ triggers file search (only when not autocompleting)\",\n\t\tmatches: (data) => data === \"@\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"at\") === true,\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"'k' can trigger keep-partial during interrupt (if handler returns true)\",\n\t\tmatches: (data) => data === \"k\" || data === \"K\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"k\") === true,\n\t},\n\t{\n\t\tdescription: \"Ctrl+C interrupts the current run\",\n\t\tmatches: (data) => data === \"\\x03\",\n\t\twhen: (editor) => Boolean(editor.onCtrlC),\n\t\thandle: (editor) => {\n\t\t\teditor.onCtrlC?.();\n\t\t\treturn true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Edits queued follow-ups\",\n\t\tmatches: (data) => matchesTuiKeybinding(\"edit-last-follow-up\", data),\n\t\twhen: (editor) =>\n\t\t\tBoolean(editor.onShortcut) && !editor.isShowingAutocomplete(),\n\t\thandle: (editor) => editor.onShortcut?.(\"edit-last-follow-up\") === true,\n\t},\n\t{\n\t\tdescription: \"Up arrow navigates history (when autocomplete is hidden)\",\n\t\tmatches: (data) => data === \"\\x1b[A\",\n\t\twhen: (editor) =>\n\t\t\tBoolean(editor.onHistoryNavigate) && !editor.isShowingAutocomplete(),\n\t\thandle: (editor) => editor.onHistoryNavigate?.(\"prev\") === true,\n\t},\n\t{\n\t\tdescription: \"Down arrow navigates history (when autocomplete is hidden)\",\n\t\tmatches: (data) => data === \"\\x1b[B\",\n\t\twhen: (editor) =>\n\t\t\tBoolean(editor.onHistoryNavigate) && !editor.isShowingAutocomplete(),\n\t\thandle: (editor) => editor.onHistoryNavigate?.(\"next\") === true,\n\t},\n\t{\n\t\tdescription: \"Page Up scrolls chat history\",\n\t\tmatches: (data) => data === \"\\x1b[5~\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"pageup\") === true,\n\t},\n\t{\n\t\tdescription: \"Page Down scrolls chat history\",\n\t\tmatches: (data) => data === \"\\x1b[6~\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"pagedown\") === true,\n\t},\n\t{\n\t\tdescription: \"Ctrl+U scrolls chat history half a page up (vim-style)\",\n\t\tmatches: (data) => data === \"\\x15\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"ctrl+u\") === true,\n\t},\n\t{\n\t\tdescription:\n\t\t\t\"Ctrl+D exits when editor empty, otherwise scrolls half page down\",\n\t\tmatches: (data) => isCtrlD(data),\n\t\twhen: (editor) => Boolean(editor.onShortcut) || Boolean(editor.onCtrlD),\n\t\thandle: (editor) => {\n\t\t\t// When editor is empty and onCtrlD is set, exit\n\t\t\tif (editor.isEditorEmpty() && editor.onCtrlD) {\n\t\t\t\teditor.onCtrlD();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t// Otherwise scroll (vim-style behavior)\n\t\t\treturn editor.onShortcut?.(\"ctrl+d\") === true;\n\t\t},\n\t},\n\t{\n\t\tdescription: \"Ctrl+Home jumps to top of chat history\",\n\t\tmatches: (data) => data === \"\\x1b[1;5H\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"ctrl+home\") === true,\n\t},\n\t{\n\t\tdescription: \"Ctrl+End jumps to bottom of chat history\",\n\t\tmatches: (data) => data === \"\\x1b[1;5F\",\n\t\twhen: (editor) => Boolean(editor.onShortcut),\n\t\thandle: (editor) => editor.onShortcut?.(\"ctrl+end\") === true,\n\t},\n];\n\n/**\n * Custom editor that handles Escape and Ctrl+C keys for Maestro\n */\nexport class CustomEditor extends Editor {\n\tpublic onEscape?: () => void;\n\tpublic onCtrlC?: () => void;\n\tpublic onCtrlD?: () => void;\n\tpublic onShortcut?: (shortcut: string) => boolean;\n\tpublic onFollowUp?: () => void;\n\tpublic onHistoryNavigate?: (direction: \"prev\" | \"next\") => boolean;\n\tpublic onShiftTab?: () => boolean | undefined;\n\tpublic onCtrlP?: () => void;\n\tpublic onCtrlO?: () => void;\n\tpublic onCtrlT?: () => void;\n\tpublic onCtrlG?: () => void;\n\tpublic onCtrlZ?: () => void;\n\tpublic onTyping?: () => void;\n\tpublic onTab?: () => boolean;\n\tpublic onPasteImage?: () => void;\n\n\toverride handleInput(rawData: string): void {\n\t\trecordUserInteraction();\n\t\tconst data = this.normalizeArrowInput(rawData);\n\t\tif (this.tryHandleKeyBindings(data)) return;\n\n\t\tif (this.isPrintableInput(data) && this.onTyping) {\n\t\t\tthis.onTyping();\n\t\t}\n\n\t\t// Pass to parent for normal handling\n\t\tsuper.handleInput(data);\n\t}\n\n\tprivate tryHandleKeyBindings(data: string): boolean {\n\t\tfor (const binding of CUSTOM_EDITOR_KEYMAP) {\n\t\t\tif (!binding.matches(data)) continue;\n\t\t\tif (binding.when && !binding.when(this)) continue;\n\t\t\tif (binding.handle(this, data)) return true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate isPrintableInput(data: string): boolean {\n\t\tif (!data) {\n\t\t\treturn false;\n\t\t}\n\t\t// Ignore escape/control sequences that begin with ESC\n\t\tif (data.startsWith(\"\\x1b\")) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (const char of data) {\n\t\t\tconst codePoint = char.codePointAt(0);\n\t\t\tif (codePoint === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (codePoint >= 0x20 && codePoint !== 0x7f) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|