@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,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AttachmentController — Manages pending image/file attachments.
|
|
3
|
-
*
|
|
4
|
-
* Tracks clipboard-pasted images and their marker tokens in the editor,
|
|
5
|
-
* and resolves them into Attachment objects when the user submits a prompt.
|
|
6
|
-
*/
|
|
7
|
-
import type { PromptPayload, QueuedPrompt } from "../prompt-queue.js";
|
|
8
|
-
export interface AttachmentControllerCallbacks {
|
|
9
|
-
/** Request a UI render cycle. */
|
|
10
|
-
requestRender: () => void;
|
|
11
|
-
}
|
|
12
|
-
export interface AttachmentControllerDeps {
|
|
13
|
-
/** Insert text at the editor cursor position. */
|
|
14
|
-
insertEditorText: (text: string) => void;
|
|
15
|
-
/** Set the full editor text. */
|
|
16
|
-
setEditorText: (text: string) => void;
|
|
17
|
-
}
|
|
18
|
-
export interface AttachmentControllerOptions {
|
|
19
|
-
deps: AttachmentControllerDeps;
|
|
20
|
-
callbacks: AttachmentControllerCallbacks;
|
|
21
|
-
}
|
|
22
|
-
export declare class AttachmentController {
|
|
23
|
-
private readonly deps;
|
|
24
|
-
private readonly callbacks;
|
|
25
|
-
private pendingAttachments;
|
|
26
|
-
private pendingAttachmentCounter;
|
|
27
|
-
constructor(options: AttachmentControllerOptions);
|
|
28
|
-
/** Remove all pending attachments and reset the counter. */
|
|
29
|
-
clearPendingAttachments(): void;
|
|
30
|
-
/** Whether there are pending attachments awaiting submission. */
|
|
31
|
-
hasPendingAttachments(): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Replace attachment markers in the submitted text with descriptive labels
|
|
34
|
-
* and return the resolved attachments alongside the updated text.
|
|
35
|
-
*/
|
|
36
|
-
consumeAttachments(text: string): PromptPayload;
|
|
37
|
-
/**
|
|
38
|
-
* Build the current prompt payload without consuming the editor markers.
|
|
39
|
-
*/
|
|
40
|
-
snapshotAttachments(text: string): PromptPayload;
|
|
41
|
-
/**
|
|
42
|
-
* Read an image from the system clipboard and register it as a pending
|
|
43
|
-
* attachment, inserting a marker into the editor.
|
|
44
|
-
*/
|
|
45
|
-
handleClipboardImagePaste(): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Re-register attachments from cancelled/restored queue entries so their
|
|
48
|
-
* markers resolve correctly on resubmission.
|
|
49
|
-
*/
|
|
50
|
-
restoreQueuedAttachments(entries: QueuedPrompt[]): void;
|
|
51
|
-
private resolvePendingAttachmentMarkers;
|
|
52
|
-
}
|
|
53
|
-
export declare function createAttachmentController(options: AttachmentControllerOptions): AttachmentController;
|
|
54
|
-
//# sourceMappingURL=attachment-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/attachment-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAStE,MAAM,WAAW,6BAA6B;IAC7C,iCAAiC;IACjC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACxC,iDAAiD;IACjD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gCAAgC;IAChC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,EAAE,wBAAwB,CAAC;IAC/B,SAAS,EAAE,6BAA6B,CAAC;CACzC;AAID,qBAAa,oBAAoB;IAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA2B;IAChD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAC1D,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,wBAAwB,CAAK;gBAEzB,OAAO,EAAE,2BAA2B;IAKhD,4DAA4D;IAC5D,uBAAuB,IAAI,IAAI;IAK/B,iEAAiE;IACjE,qBAAqB,IAAI,OAAO;IAIhC;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAS/C;;OAEG;IACH,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAShD;;;OAGG;IACG,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgChD;;;OAGG;IACH,wBAAwB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI;IAuCvD,OAAO,CAAC,+BAA+B;CA0BvC;AAID,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,2BAA2B,GAClC,oBAAoB,CAEtB"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AttachmentController — Manages pending image/file attachments.
|
|
3
|
-
*
|
|
4
|
-
* Tracks clipboard-pasted images and their marker tokens in the editor,
|
|
5
|
-
* and resolves them into Attachment objects when the user submits a prompt.
|
|
6
|
-
*/
|
|
7
|
-
import { randomUUID } from "node:crypto";
|
|
8
|
-
// ─── Controller ──────────────────────────────────────────────────────────────
|
|
9
|
-
export class AttachmentController {
|
|
10
|
-
constructor(options) {
|
|
11
|
-
this.pendingAttachments = new Map();
|
|
12
|
-
this.pendingAttachmentCounter = 0;
|
|
13
|
-
this.deps = options.deps;
|
|
14
|
-
this.callbacks = options.callbacks;
|
|
15
|
-
}
|
|
16
|
-
/** Remove all pending attachments and reset the counter. */
|
|
17
|
-
clearPendingAttachments() {
|
|
18
|
-
this.pendingAttachments.clear();
|
|
19
|
-
this.pendingAttachmentCounter = 0;
|
|
20
|
-
}
|
|
21
|
-
/** Whether there are pending attachments awaiting submission. */
|
|
22
|
-
hasPendingAttachments() {
|
|
23
|
-
return this.pendingAttachments.size > 0;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Replace attachment markers in the submitted text with descriptive labels
|
|
27
|
-
* and return the resolved attachments alongside the updated text.
|
|
28
|
-
*/
|
|
29
|
-
consumeAttachments(text) {
|
|
30
|
-
const { text: updatedText, attachments } = this.resolvePendingAttachmentMarkers(text, { consume: true });
|
|
31
|
-
return {
|
|
32
|
-
text: updatedText,
|
|
33
|
-
attachments: attachments.length > 0 ? attachments : undefined,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Build the current prompt payload without consuming the editor markers.
|
|
38
|
-
*/
|
|
39
|
-
snapshotAttachments(text) {
|
|
40
|
-
const { text: updatedText, attachments } = this.resolvePendingAttachmentMarkers(text, { consume: false });
|
|
41
|
-
return {
|
|
42
|
-
text: updatedText,
|
|
43
|
-
attachments: attachments.length > 0 ? attachments : undefined,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Read an image from the system clipboard and register it as a pending
|
|
48
|
-
* attachment, inserting a marker into the editor.
|
|
49
|
-
*/
|
|
50
|
-
async handleClipboardImagePaste() {
|
|
51
|
-
try {
|
|
52
|
-
const Clipboard = await loadClipboardApi();
|
|
53
|
-
if (!Clipboard) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (!Clipboard.hasImage()) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const imageData = await Clipboard.getImageBinary();
|
|
60
|
-
if (!imageData || imageData.length === 0) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const attachmentId = `att_${randomUUID()}`;
|
|
64
|
-
const fileName = `clipboard-image-${attachmentId.slice(-6)}.png`;
|
|
65
|
-
const attachment = {
|
|
66
|
-
id: attachmentId,
|
|
67
|
-
type: "image",
|
|
68
|
-
fileName,
|
|
69
|
-
mimeType: "image/png",
|
|
70
|
-
size: imageData.length,
|
|
71
|
-
content: Buffer.from(imageData).toString("base64"),
|
|
72
|
-
};
|
|
73
|
-
const markerId = ++this.pendingAttachmentCounter;
|
|
74
|
-
this.pendingAttachments.set(markerId, attachment);
|
|
75
|
-
this.deps.insertEditorText(`[image #${markerId}]`);
|
|
76
|
-
this.callbacks.requestRender();
|
|
77
|
-
}
|
|
78
|
-
catch {
|
|
79
|
-
// Ignore clipboard errors (permissions, empty clipboard, etc.)
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Re-register attachments from cancelled/restored queue entries so their
|
|
84
|
-
* markers resolve correctly on resubmission.
|
|
85
|
-
*/
|
|
86
|
-
restoreQueuedAttachments(entries) {
|
|
87
|
-
const restored = entries.some((entry) => (entry.attachments?.length ?? 0) > 0);
|
|
88
|
-
if (!restored) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
this.clearPendingAttachments();
|
|
92
|
-
const segments = [];
|
|
93
|
-
for (const entry of entries) {
|
|
94
|
-
let segment = entry.text;
|
|
95
|
-
const attachments = entry.attachments ?? [];
|
|
96
|
-
if (attachments.length > 0) {
|
|
97
|
-
const markers = [];
|
|
98
|
-
for (const attachment of attachments) {
|
|
99
|
-
const markerId = ++this.pendingAttachmentCounter;
|
|
100
|
-
this.pendingAttachments.set(markerId, attachment);
|
|
101
|
-
markers.push(`[image #${markerId}]`);
|
|
102
|
-
}
|
|
103
|
-
if (markers.length > 0) {
|
|
104
|
-
const trimmed = segment.trim();
|
|
105
|
-
segment =
|
|
106
|
-
trimmed.length > 0
|
|
107
|
-
? `${trimmed}\n${markers.join(" ")}`
|
|
108
|
-
: markers.join(" ");
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
segments.push(segment);
|
|
112
|
-
}
|
|
113
|
-
const restoredText = segments
|
|
114
|
-
.filter((s) => s.trim().length > 0)
|
|
115
|
-
.join("\n\n");
|
|
116
|
-
if (restoredText) {
|
|
117
|
-
this.deps.setEditorText(restoredText);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
// ─── Internal ──────────────────────────────────────────────────────────
|
|
121
|
-
resolvePendingAttachmentMarkers(text, options) {
|
|
122
|
-
if (this.pendingAttachments.size === 0) {
|
|
123
|
-
return { text, attachments: [] };
|
|
124
|
-
}
|
|
125
|
-
let updated = text;
|
|
126
|
-
const attachments = [];
|
|
127
|
-
for (const [id, attachment] of this.pendingAttachments) {
|
|
128
|
-
const marker = `[image #${id}]`;
|
|
129
|
-
if (!updated.includes(marker)) {
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
const replacement = `[attachment] ${attachment.fileName} (${attachment.mimeType})`;
|
|
133
|
-
updated = updated.split(marker).join(replacement);
|
|
134
|
-
attachments.push(attachment);
|
|
135
|
-
}
|
|
136
|
-
if (options.consume) {
|
|
137
|
-
this.clearPendingAttachments();
|
|
138
|
-
}
|
|
139
|
-
return { text: updated, attachments };
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
// ─── Factory ─────────────────────────────────────────────────────────────────
|
|
143
|
-
export function createAttachmentController(options) {
|
|
144
|
-
return new AttachmentController(options);
|
|
145
|
-
}
|
|
146
|
-
async function loadClipboardApi() {
|
|
147
|
-
try {
|
|
148
|
-
const module = await import("@crosscopy/clipboard");
|
|
149
|
-
const api = module.default ?? module;
|
|
150
|
-
if (typeof api.hasImage !== "function" ||
|
|
151
|
-
typeof api.getImageBinary !== "function") {
|
|
152
|
-
return undefined;
|
|
153
|
-
}
|
|
154
|
-
return api;
|
|
155
|
-
}
|
|
156
|
-
catch {
|
|
157
|
-
return undefined;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
//# sourceMappingURL=attachment-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/attachment-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA4BzC,gFAAgF;AAEhF,MAAM,OAAO,oBAAoB;IAMhC,YAAY,OAAoC;QAHxC,uBAAkB,GAAG,IAAI,GAAG,EAAsB,CAAC;QACnD,6BAAwB,GAAG,CAAC,CAAC;QAGpC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,4DAA4D;IAC5D,uBAAuB;QACtB,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;QAChC,IAAI,CAAC,wBAAwB,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,iEAAiE;IACjE,qBAAqB;QACpB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,GAAG,CAAC,CAAC;IACzC,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAAC,IAAY;QAC9B,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,W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BAC/B,SAAS;YACV,CAAC;YACD,MAAM,WAAW,GAAG,gBAAgB,UAAU,CAAC,QAAQ,KAAK,UAAU,CAAC,QAAQ,GAAG,CAAC;YACnF,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAClD,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC9B,CAAC;QACD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACvC,CAAC;CACD;AAED,gFAAgF;AAEhF,MAAM,UAAU,0BAA0B,CACzC,OAAoC;IAEpC,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,KAAK,UAAU,gBAAgB;IAC9B,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;QACpD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC;QACrC,IACC,OAAO,GAAG,CAAC,QAAQ,KAAK,UAAU;YAClC,OAAO,GAAG,CAAC,cAAc,KAAK,UAAU,EACvC,CAAC;YACF,OAAO,SAAS,CAAC;QAClB,CAAC;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC","sourcesContent":["/**\n * AttachmentController — Manages pending image/file attachments.\n *\n * Tracks clipboard-pasted images and their marker tokens in the editor,\n * and resolves them into Attachment objects when the user submits a prompt.\n */\n\nimport { randomUUID } from \"node:crypto\";\nimport type { Attachment } from \"../../agent/types.js\";\nimport type { PromptPayload, QueuedPrompt } from \"../prompt-queue.js\";\n\ntype ClipboardApi = {\n\thasImage: () => boolean;\n\tgetImageBinary: () => Promise<Array<number>>;\n};\n\n// ─── Callback & Dependency Interfaces ────────────────────────────────────────\n\nexport interface AttachmentControllerCallbacks {\n\t/** Request a UI render cycle. */\n\trequestRender: () => void;\n}\n\nexport interface AttachmentControllerDeps {\n\t/** Insert text at the editor cursor position. */\n\tinsertEditorText: (text: string) => void;\n\t/** Set the full editor text. */\n\tsetEditorText: (text: string) => void;\n}\n\nexport interface AttachmentControllerOptions {\n\tdeps: AttachmentControllerDeps;\n\tcallbacks: AttachmentControllerCallbacks;\n}\n\n// ─── Controller ──────────────────────────────────────────────────────────────\n\nexport class AttachmentController {\n\tprivate readonly deps: AttachmentControllerDeps;\n\tprivate readonly callbacks: AttachmentControllerCallbacks;\n\tprivate pendingAttachments = new Map<number, Attachment>();\n\tprivate pendingAttachmentCounter = 0;\n\n\tconstructor(options: AttachmentControllerOptions) {\n\t\tthis.deps = options.deps;\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\t/** Remove all pending attachments and reset the counter. */\n\tclearPendingAttachments(): void {\n\t\tthis.pendingAttachments.clear();\n\t\tthis.pendingAttachmentCounter = 0;\n\t}\n\n\t/** Whether there are pending attachments awaiting submission. */\n\thasPendingAttachments(): boolean {\n\t\treturn this.pendingAttachments.size > 0;\n\t}\n\n\t/**\n\t * Replace attachment markers in the submitted text with descriptive labels\n\t * and return the resolved attachments alongside the updated text.\n\t */\n\tconsumeAttachments(text: string): PromptPayload {\n\t\tconst { text: updatedText, attachments } =\n\t\t\tthis.resolvePendingAttachmentMarkers(text, { consume: true });\n\t\treturn {\n\t\t\ttext: updatedText,\n\t\t\tattachments: attachments.length > 0 ? attachments : undefined,\n\t\t};\n\t}\n\n\t/**\n\t * Build the current prompt payload without consuming the editor markers.\n\t */\n\tsnapshotAttachments(text: string): PromptPayload {\n\t\tconst { text: updatedText, attachments } =\n\t\t\tthis.resolvePendingAttachmentMarkers(text, { consume: false });\n\t\treturn {\n\t\t\ttext: updatedText,\n\t\t\tattachments: attachments.length > 0 ? attachments : undefined,\n\t\t};\n\t}\n\n\t/**\n\t * Read an image from the system clipboard and register it as a pending\n\t * attachment, inserting a marker into the editor.\n\t */\n\tasync handleClipboardImagePaste(): Promise<void> {\n\t\ttry {\n\t\t\tconst Clipboard = await loadClipboardApi();\n\t\t\tif (!Clipboard) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Clipboard.hasImage()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst imageData = await Clipboard.getImageBinary();\n\t\t\tif (!imageData || imageData.length === 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst attachmentId = `att_${randomUUID()}`;\n\t\t\tconst fileName = `clipboard-image-${attachmentId.slice(-6)}.png`;\n\t\t\tconst attachment: Attachment = {\n\t\t\t\tid: attachmentId,\n\t\t\t\ttype: \"image\",\n\t\t\t\tfileName,\n\t\t\t\tmimeType: \"image/png\",\n\t\t\t\tsize: imageData.length,\n\t\t\t\tcontent: Buffer.from(imageData).toString(\"base64\"),\n\t\t\t};\n\t\t\tconst markerId = ++this.pendingAttachmentCounter;\n\t\t\tthis.pendingAttachments.set(markerId, attachment);\n\t\t\tthis.deps.insertEditorText(`[image #${markerId}]`);\n\t\t\tthis.callbacks.requestRender();\n\t\t} catch {\n\t\t\t// Ignore clipboard errors (permissions, empty clipboard, etc.)\n\t\t}\n\t}\n\n\t/**\n\t * Re-register attachments from cancelled/restored queue entries so their\n\t * markers resolve correctly on resubmission.\n\t */\n\trestoreQueuedAttachments(entries: QueuedPrompt[]): void {\n\t\tconst restored = entries.some(\n\t\t\t(entry) => (entry.attachments?.length ?? 0) > 0,\n\t\t);\n\t\tif (!restored) {\n\t\t\treturn;\n\t\t}\n\t\tthis.clearPendingAttachments();\n\t\tconst segments: string[] = [];\n\t\tfor (const entry of entries) {\n\t\t\tlet segment = entry.text;\n\t\t\tconst attachments = entry.attachments ?? [];\n\t\t\tif (attachments.length > 0) {\n\t\t\t\tconst markers: string[] = [];\n\t\t\t\tfor (const attachment of attachments) {\n\t\t\t\t\tconst markerId = ++this.pendingAttachmentCounter;\n\t\t\t\t\tthis.pendingAttachments.set(markerId, attachment);\n\t\t\t\t\tmarkers.push(`[image #${markerId}]`);\n\t\t\t\t}\n\t\t\t\tif (markers.length > 0) {\n\t\t\t\t\tconst trimmed = segment.trim();\n\t\t\t\t\tsegment =\n\t\t\t\t\t\ttrimmed.length > 0\n\t\t\t\t\t\t\t? `${trimmed}\\n${markers.join(\" \")}`\n\t\t\t\t\t\t\t: markers.join(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsegments.push(segment);\n\t\t}\n\t\tconst restoredText = segments\n\t\t\t.filter((s) => s.trim().length > 0)\n\t\t\t.join(\"\\n\\n\");\n\t\tif (restoredText) {\n\t\t\tthis.deps.setEditorText(restoredText);\n\t\t}\n\t}\n\n\t// ─── Internal ──────────────────────────────────────────────────────────\n\n\tprivate resolvePendingAttachmentMarkers(\n\t\ttext: string,\n\t\toptions: { consume: boolean },\n\t): {\n\t\ttext: string;\n\t\tattachments: Attachment[];\n\t} {\n\t\tif (this.pendingAttachments.size === 0) {\n\t\t\treturn { text, attachments: [] };\n\t\t}\n\t\tlet updated = text;\n\t\tconst attachments: Attachment[] = [];\n\t\tfor (const [id, attachment] of this.pendingAttachments) {\n\t\t\tconst marker = `[image #${id}]`;\n\t\t\tif (!updated.includes(marker)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst replacement = `[attachment] ${attachment.fileName} (${attachment.mimeType})`;\n\t\t\tupdated = updated.split(marker).join(replacement);\n\t\t\tattachments.push(attachment);\n\t\t}\n\t\tif (options.consume) {\n\t\t\tthis.clearPendingAttachments();\n\t\t}\n\t\treturn { text: updated, attachments };\n\t}\n}\n\n// ─── Factory ─────────────────────────────────────────────────────────────────\n\nexport function createAttachmentController(\n\toptions: AttachmentControllerOptions,\n): AttachmentController {\n\treturn new AttachmentController(options);\n}\n\nasync function loadClipboardApi(): Promise<ClipboardApi | undefined> {\n\ttry {\n\t\tconst module = await import(\"@crosscopy/clipboard\");\n\t\tconst api = module.default ?? module;\n\t\tif (\n\t\t\ttypeof api.hasImage !== \"function\" ||\n\t\t\ttypeof api.getImageBinary !== \"function\"\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn api;\n\t} catch {\n\t\treturn undefined;\n\t}\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Container, TUI } from "@evalops/tui";
|
|
2
|
-
import { BackgroundTasksController } from "../background/background-tasks-controller.js";
|
|
3
|
-
import type { NotificationView } from "../notification-view.js";
|
|
4
|
-
export declare function createBackgroundTasksController(params: {
|
|
5
|
-
chatContainer: Container;
|
|
6
|
-
ui: TUI;
|
|
7
|
-
notificationView: NotificationView;
|
|
8
|
-
}): BackgroundTasksController;
|
|
9
|
-
//# sourceMappingURL=background-tasks-setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"background-tasks-setup.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/background-tasks-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE;IACvD,aAAa,EAAE,SAAS,CAAC;IACzB,EAAE,EAAE,GAAG,CAAC;IACR,gBAAgB,EAAE,gBAAgB,CAAC;CACnC,GAAG,yBAAyB,CAI5B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BackgroundTasksController } from "../background/background-tasks-controller.js";
|
|
2
|
-
export function createBackgroundTasksController(params) {
|
|
3
|
-
const controller = new BackgroundTasksController(params);
|
|
4
|
-
controller.startNotifications();
|
|
5
|
-
return controller;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=background-tasks-setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"background-tasks-setup.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/background-tasks-setup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAGzF,MAAM,UAAU,+BAA+B,CAAC,MAI/C;IACA,MAAM,UAAU,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACzD,UAAU,CAAC,kBAAkB,EAAE,CAAC;IAChC,OAAO,UAAU,CAAC;AACnB,CAAC","sourcesContent":["import type { Container, TUI } from \"@evalops/tui\";\nimport { BackgroundTasksController } from \"../background/background-tasks-controller.js\";\nimport type { NotificationView } from \"../notification-view.js\";\n\nexport function createBackgroundTasksController(params: {\n\tchatContainer: Container;\n\tui: TUI;\n\tnotificationView: NotificationView;\n}): BackgroundTasksController {\n\tconst controller = new BackgroundTasksController(params);\n\tcontroller.startNotifications();\n\treturn controller;\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BranchController - Handles session branching functionality
|
|
3
|
-
*
|
|
4
|
-
* Manages the /branch command which allows users to create a new session
|
|
5
|
-
* starting from a previous user message. This is useful for exploring
|
|
6
|
-
* alternative conversation paths.
|
|
7
|
-
*/
|
|
8
|
-
import type { AppMessage } from "../../agent/types.js";
|
|
9
|
-
import type { CommandExecutionContext } from "../commands/types.js";
|
|
10
|
-
export interface BranchControllerCallbacks {
|
|
11
|
-
/** Check if agent is currently running */
|
|
12
|
-
isAgentRunning: () => boolean;
|
|
13
|
-
/** Get current conversation messages */
|
|
14
|
-
getMessages: () => AppMessage[];
|
|
15
|
-
/** Show the interactive user message selector */
|
|
16
|
-
showSelector: () => void;
|
|
17
|
-
/** Create a branched session and return the new session file path */
|
|
18
|
-
createBranchedSession: (messageCount: number) => string;
|
|
19
|
-
/** Set the session file for the new branch */
|
|
20
|
-
setSessionFile: (path: string) => void;
|
|
21
|
-
/** Reset conversation to the given messages with editor seed */
|
|
22
|
-
resetConversation: (messages: AppMessage[], editorSeed: string, notification: string) => void;
|
|
23
|
-
/** Add content to chat container */
|
|
24
|
-
addContent: (text: string) => void;
|
|
25
|
-
/** Request UI render */
|
|
26
|
-
requestRender: () => void;
|
|
27
|
-
}
|
|
28
|
-
export interface BranchControllerOptions {
|
|
29
|
-
callbacks: BranchControllerCallbacks;
|
|
30
|
-
}
|
|
31
|
-
export declare class BranchController {
|
|
32
|
-
private readonly callbacks;
|
|
33
|
-
constructor(options: BranchControllerOptions);
|
|
34
|
-
handleBranchCommand(context: CommandExecutionContext): void;
|
|
35
|
-
private renderBranchList;
|
|
36
|
-
}
|
|
37
|
-
export declare function getMessageTimestamp(message: AppMessage): string | null;
|
|
38
|
-
export declare function extractUserText(message: AppMessage): string;
|
|
39
|
-
export declare function extractUserTextPreview(message: AppMessage): string;
|
|
40
|
-
export declare function createBranchController(options: BranchControllerOptions): BranchController;
|
|
41
|
-
//# sourceMappingURL=branch-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branch-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/branch-controller.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACzC,0CAA0C;IAC1C,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,wCAAwC;IACxC,WAAW,EAAE,MAAM,UAAU,EAAE,CAAC;IAChC,iDAAiD;IACjD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,qEAAqE;IACrE,qBAAqB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,8CAA8C;IAC9C,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gEAAgE;IAChE,iBAAiB,EAAE,CAClB,QAAQ,EAAE,UAAU,EAAE,EACtB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,KAChB,IAAI,CAAC;IACV,oCAAoC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wBAAwB;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACvC,SAAS,EAAE,yBAAyB,CAAC;CACrC;AAED,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4B;gBAE1C,OAAO,EAAE,uBAAuB;IAI5C,mBAAmB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IA2D3D,OAAO,CAAC,gBAAgB;CAaxB;AAID,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAQtE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAgB3D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAIlE;AAED,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,uBAAuB,GAC9B,gBAAgB,CAElB"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BranchController - Handles session branching functionality
|
|
3
|
-
*
|
|
4
|
-
* Manages the /branch command which allows users to create a new session
|
|
5
|
-
* starting from a previous user message. This is useful for exploring
|
|
6
|
-
* alternative conversation paths.
|
|
7
|
-
*/
|
|
8
|
-
export class BranchController {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.callbacks = options.callbacks;
|
|
11
|
-
}
|
|
12
|
-
handleBranchCommand(context) {
|
|
13
|
-
if (this.callbacks.isAgentRunning()) {
|
|
14
|
-
context.showError("Wait for the current run to finish before branching the session.");
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const messages = this.callbacks.getMessages();
|
|
18
|
-
const userMessages = messages
|
|
19
|
-
.map((msg, index) => ({ msg, index }))
|
|
20
|
-
.filter(({ msg }) => "role" in msg && msg.role === "user");
|
|
21
|
-
if (userMessages.length === 0) {
|
|
22
|
-
context.showInfo("No user messages available to branch from yet.");
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const arg = context.argumentText.trim();
|
|
26
|
-
if (!arg) {
|
|
27
|
-
// No argument - show interactive selector
|
|
28
|
-
this.callbacks.showSelector();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (arg === "list") {
|
|
32
|
-
this.renderBranchList(userMessages);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const targetIndex = Number.parseInt(arg, 10);
|
|
36
|
-
if (!Number.isFinite(targetIndex) || targetIndex < 1) {
|
|
37
|
-
context.showError("Provide a valid user message number to branch from.");
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (targetIndex > userMessages.length) {
|
|
41
|
-
context.showError(`Only ${userMessages.length} user message${userMessages.length === 1 ? "" : "s"} available.`);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const selection = userMessages[targetIndex - 1];
|
|
45
|
-
if (!selection) {
|
|
46
|
-
context.showError("Failed to find the selected message.");
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const slice = messages.slice(0, selection.index);
|
|
50
|
-
const editorSeed = extractUserText(selection.msg);
|
|
51
|
-
const newSessionFile = this.callbacks.createBranchedSession(slice.length);
|
|
52
|
-
this.callbacks.setSessionFile(newSessionFile);
|
|
53
|
-
this.callbacks.resetConversation(slice, editorSeed, `Branched to new session before user message #${targetIndex}.`);
|
|
54
|
-
}
|
|
55
|
-
renderBranchList(userMessages) {
|
|
56
|
-
const lines = ["User messages (use /branch <number>):"];
|
|
57
|
-
userMessages.forEach(({ msg }, idx) => {
|
|
58
|
-
const created = getMessageTimestamp(msg);
|
|
59
|
-
const preview = extractUserTextPreview(msg);
|
|
60
|
-
const meta = created ? ` • ${created}` : "";
|
|
61
|
-
lines.push(`${idx + 1}. ${preview}${meta}`);
|
|
62
|
-
});
|
|
63
|
-
this.callbacks.addContent(lines.join("\n"));
|
|
64
|
-
this.callbacks.requestRender();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
// ─── Utility Functions ───────────────────────────────────────────────────────
|
|
68
|
-
export function getMessageTimestamp(message) {
|
|
69
|
-
const ts = "timestamp" in message ? message.timestamp : undefined;
|
|
70
|
-
if (!ts || typeof ts !== "number")
|
|
71
|
-
return null;
|
|
72
|
-
try {
|
|
73
|
-
return new Date(ts).toLocaleString();
|
|
74
|
-
}
|
|
75
|
-
catch {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
export function extractUserText(message) {
|
|
80
|
-
const content = "content" in message ? message.content : undefined;
|
|
81
|
-
if (typeof content === "string") {
|
|
82
|
-
return content;
|
|
83
|
-
}
|
|
84
|
-
if (Array.isArray(content)) {
|
|
85
|
-
const textBlock = content.find((block) => block != null &&
|
|
86
|
-
typeof block === "object" &&
|
|
87
|
-
"type" in block &&
|
|
88
|
-
block.type === "text");
|
|
89
|
-
return textBlock?.text ?? "";
|
|
90
|
-
}
|
|
91
|
-
return "";
|
|
92
|
-
}
|
|
93
|
-
export function extractUserTextPreview(message) {
|
|
94
|
-
const text = extractUserText(message).replace(/\s+/g, " ").trim();
|
|
95
|
-
if (!text)
|
|
96
|
-
return "(empty)";
|
|
97
|
-
return text.length > 80 ? `${text.slice(0, 77)}…` : text;
|
|
98
|
-
}
|
|
99
|
-
export function createBranchController(options) {
|
|
100
|
-
return new BranchController(options);
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=branch-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branch-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/branch-controller.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgCH,MAA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AC9B,CAAC;IACD,OAAO,EAAE,CAAC;AACX,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAmB;IACzD,MAAM,IAAI,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAClE,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,OAAO,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,sBAAsB,CACrC,OAAgC;IAEhC,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC","sourcesContent":["/**\n * BranchController - Handles session branching functionality\n *\n * Manages the /branch command which allows users to create a new session\n * starting from a previous user message. This is useful for exploring\n * alternative conversation paths.\n */\n\nimport type { AppMessage } from \"../../agent/types.js\";\nimport type { CommandExecutionContext } from \"../commands/types.js\";\n\nexport interface BranchControllerCallbacks {\n\t/** Check if agent is currently running */\n\tisAgentRunning: () => boolean;\n\t/** Get current conversation messages */\n\tgetMessages: () => AppMessage[];\n\t/** Show the interactive user message selector */\n\tshowSelector: () => void;\n\t/** Create a branched session and return the new session file path */\n\tcreateBranchedSession: (messageCount: number) => string;\n\t/** Set the session file for the new branch */\n\tsetSessionFile: (path: string) => void;\n\t/** Reset conversation to the given messages with editor seed */\n\tresetConversation: (\n\t\tmessages: AppMessage[],\n\t\teditorSeed: string,\n\t\tnotification: string,\n\t) => void;\n\t/** Add content to chat container */\n\taddContent: (text: string) => void;\n\t/** Request UI render */\n\trequestRender: () => void;\n}\n\nexport interface BranchControllerOptions {\n\tcallbacks: BranchControllerCallbacks;\n}\n\nexport class BranchController {\n\tprivate readonly callbacks: BranchControllerCallbacks;\n\n\tconstructor(options: BranchControllerOptions) {\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\thandleBranchCommand(context: CommandExecutionContext): void {\n\t\tif (this.callbacks.isAgentRunning()) {\n\t\t\tcontext.showError(\n\t\t\t\t\"Wait for the current run to finish before branching the session.\",\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst messages = this.callbacks.getMessages();\n\t\tconst userMessages = messages\n\t\t\t.map((msg, index) => ({ msg, index }))\n\t\t\t.filter(({ msg }) => \"role\" in msg && msg.role === \"user\");\n\n\t\tif (userMessages.length === 0) {\n\t\t\tcontext.showInfo(\"No user messages available to branch from yet.\");\n\t\t\treturn;\n\t\t}\n\n\t\tconst arg = context.argumentText.trim();\n\t\tif (!arg) {\n\t\t\t// No argument - show interactive selector\n\t\t\tthis.callbacks.showSelector();\n\t\t\treturn;\n\t\t}\n\n\t\tif (arg === \"list\") {\n\t\t\tthis.renderBranchList(userMessages);\n\t\t\treturn;\n\t\t}\n\n\t\tconst targetIndex = Number.parseInt(arg, 10);\n\t\tif (!Number.isFinite(targetIndex) || targetIndex < 1) {\n\t\t\tcontext.showError(\"Provide a valid user message number to branch from.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (targetIndex > userMessages.length) {\n\t\t\tcontext.showError(\n\t\t\t\t`Only ${userMessages.length} user message${userMessages.length === 1 ? \"\" : \"s\"} available.`,\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst selection = userMessages[targetIndex - 1];\n\t\tif (!selection) {\n\t\t\tcontext.showError(\"Failed to find the selected message.\");\n\t\t\treturn;\n\t\t}\n\t\tconst slice = messages.slice(0, selection.index);\n\t\tconst editorSeed = extractUserText(selection.msg);\n\t\tconst newSessionFile = this.callbacks.createBranchedSession(slice.length);\n\t\tthis.callbacks.setSessionFile(newSessionFile);\n\t\tthis.callbacks.resetConversation(\n\t\t\tslice,\n\t\t\teditorSeed,\n\t\t\t`Branched to new session before user message #${targetIndex}.`,\n\t\t);\n\t}\n\n\tprivate renderBranchList(\n\t\tuserMessages: Array<{ msg: AppMessage; index: number }>,\n\t): void {\n\t\tconst lines: string[] = [\"User messages (use /branch <number>):\"];\n\t\tuserMessages.forEach(({ msg }, idx) => {\n\t\t\tconst created = getMessageTimestamp(msg);\n\t\t\tconst preview = extractUserTextPreview(msg);\n\t\t\tconst meta = created ? ` • ${created}` : \"\";\n\t\t\tlines.push(`${idx + 1}. ${preview}${meta}`);\n\t\t});\n\t\tthis.callbacks.addContent(lines.join(\"\\n\"));\n\t\tthis.callbacks.requestRender();\n\t}\n}\n\n// ─── Utility Functions ───────────────────────────────────────────────────────\n\nexport function getMessageTimestamp(message: AppMessage): string | null {\n\tconst ts = \"timestamp\" in message ? message.timestamp : undefined;\n\tif (!ts || typeof ts !== \"number\") return null;\n\ttry {\n\t\treturn new Date(ts).toLocaleString();\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport function extractUserText(message: AppMessage): string {\n\tconst content = \"content\" in message ? message.content : undefined;\n\tif (typeof content === \"string\") {\n\t\treturn content;\n\t}\n\tif (Array.isArray(content)) {\n\t\tconst textBlock = content.find(\n\t\t\t(block): block is { type: \"text\"; text: string } =>\n\t\t\t\tblock != null &&\n\t\t\t\ttypeof block === \"object\" &&\n\t\t\t\t\"type\" in block &&\n\t\t\t\tblock.type === \"text\",\n\t\t);\n\t\treturn textBlock?.text ?? \"\";\n\t}\n\treturn \"\";\n}\n\nexport function extractUserTextPreview(message: AppMessage): string {\n\tconst text = extractUserText(message).replace(/\\s+/g, \" \").trim();\n\tif (!text) return \"(empty)\";\n\treturn text.length > 80 ? `${text.slice(0, 77)}…` : text;\n}\n\nexport function createBranchController(\n\toptions: BranchControllerOptions,\n): BranchController {\n\treturn new BranchController(options);\n}\n"]}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ClearController - Handles session clearing functionality
|
|
3
|
-
*
|
|
4
|
-
* Manages the /clear command which resets the conversation state,
|
|
5
|
-
* aborts any running agent work, and starts a fresh session.
|
|
6
|
-
*/
|
|
7
|
-
import type { AgentState } from "../../agent/types.js";
|
|
8
|
-
import type { SessionEndHookInput } from "../../hooks/types.js";
|
|
9
|
-
export interface ClearControllerCallbacks {
|
|
10
|
-
/** Abort agent and wait for idle */
|
|
11
|
-
abortAndWait: () => Promise<void>;
|
|
12
|
-
/** Set agent running state */
|
|
13
|
-
setAgentRunning: (running: boolean) => void;
|
|
14
|
-
/** Cancel all queued prompts */
|
|
15
|
-
cancelQueuedPrompts: () => void;
|
|
16
|
-
/** Stop loading animation */
|
|
17
|
-
stopLoader: () => void;
|
|
18
|
-
/** Clear status container */
|
|
19
|
-
clearStatusContainer: () => void;
|
|
20
|
-
/** Reset agent state */
|
|
21
|
-
resetAgent: () => void;
|
|
22
|
-
/** Reset session */
|
|
23
|
-
resetSession: () => void;
|
|
24
|
-
/** Reset session artifacts */
|
|
25
|
-
resetArtifacts: () => void;
|
|
26
|
-
/** Clear active skills */
|
|
27
|
-
clearActiveSkills?: () => void;
|
|
28
|
-
/** Clear tool output tracking */
|
|
29
|
-
clearToolTracking: () => void;
|
|
30
|
-
/** Clear chat container */
|
|
31
|
-
clearChatContainer: () => void;
|
|
32
|
-
/** Clear scroll history */
|
|
33
|
-
clearScrollHistory: () => void;
|
|
34
|
-
/** Clear startup container */
|
|
35
|
-
clearStartupContainer: () => void;
|
|
36
|
-
/** Sync plan hint with store */
|
|
37
|
-
syncPlanHint: () => void;
|
|
38
|
-
/** Set plan hint */
|
|
39
|
-
setPlanHint: (hint: string | null) => void;
|
|
40
|
-
/** Clear editor */
|
|
41
|
-
clearEditor: () => void;
|
|
42
|
-
/** Clear pending tools */
|
|
43
|
-
clearPendingTools: () => void;
|
|
44
|
-
/** Clear interrupt state */
|
|
45
|
-
clearInterruptState: () => void;
|
|
46
|
-
/** Render initial messages */
|
|
47
|
-
renderInitialMessages: (state: AgentState) => void;
|
|
48
|
-
/** Get current agent state */
|
|
49
|
-
getAgentState: () => AgentState;
|
|
50
|
-
/** Update footer state */
|
|
51
|
-
updateFooterState: (state: AgentState) => void;
|
|
52
|
-
/** Refresh footer hint */
|
|
53
|
-
refreshFooterHint: () => void;
|
|
54
|
-
/** Run session end hooks before clearing */
|
|
55
|
-
runSessionEndHooks?: (reason: SessionEndHookInput["reason"]) => Promise<void>;
|
|
56
|
-
/** Run session start hooks after clearing */
|
|
57
|
-
runSessionStartHooks?: (source: string) => Promise<void>;
|
|
58
|
-
/** Show success notification */
|
|
59
|
-
showSuccess: (message: string) => void;
|
|
60
|
-
/** Show error in chat */
|
|
61
|
-
showError: (message: string) => void;
|
|
62
|
-
/** Request UI render */
|
|
63
|
-
requestRender: () => void;
|
|
64
|
-
}
|
|
65
|
-
export interface ClearControllerOptions {
|
|
66
|
-
callbacks: ClearControllerCallbacks;
|
|
67
|
-
}
|
|
68
|
-
export declare class ClearController {
|
|
69
|
-
private readonly callbacks;
|
|
70
|
-
private clearInProgress;
|
|
71
|
-
constructor(options: ClearControllerOptions);
|
|
72
|
-
handleClearCommand(): Promise<void>;
|
|
73
|
-
}
|
|
74
|
-
export declare function createClearController(options: ClearControllerOptions): ClearController;
|
|
75
|
-
//# sourceMappingURL=clear-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/clear-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,WAAW,wBAAwB;IACxC,oCAAoC;IACpC,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,8BAA8B;IAC9B,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,gCAAgC;IAChC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,6BAA6B;IAC7B,UAAU,EAAE,M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AE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,gCAAgC;IAChC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,yBAAyB;IACzB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,wBAAwB;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,wBAAwB,CAAC;CACpC;AAED,qBAAa,eAAe;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2B;IACrD,OAAO,CAAC,eAAe,CAAS;gBAEpB,OAAO,EAAE,sBAAsB;IAIrC,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;CA0EzC;AAED,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,sBAAsB,GAC7B,eAAe,CAEjB"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ClearController - Handles session clearing functionality
|
|
3
|
-
*
|
|
4
|
-
* Manages the /clear command which resets the conversation state,
|
|
5
|
-
* aborts any running agent work, and starts a fresh session.
|
|
6
|
-
*/
|
|
7
|
-
export class ClearController {
|
|
8
|
-
constructor(options) {
|
|
9
|
-
this.clearInProgress = false;
|
|
10
|
-
this.callbacks = options.callbacks;
|
|
11
|
-
}
|
|
12
|
-
async handleClearCommand() {
|
|
13
|
-
// Prevent concurrent clear operations
|
|
14
|
-
if (this.clearInProgress) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
this.clearInProgress = true;
|
|
18
|
-
try {
|
|
19
|
-
// Abort any in-flight agent work
|
|
20
|
-
await this.callbacks.abortAndWait();
|
|
21
|
-
// Reset running flag immediately so the UI reflects idle state
|
|
22
|
-
this.callbacks.setAgentRunning(false);
|
|
23
|
-
// Cancel any queued prompts
|
|
24
|
-
this.callbacks.cancelQueuedPrompts();
|
|
25
|
-
// Stop loading animation if present
|
|
26
|
-
this.callbacks.stopLoader();
|
|
27
|
-
this.callbacks.clearStatusContainer();
|
|
28
|
-
await this.callbacks.runSessionEndHooks?.("clear");
|
|
29
|
-
// Reset agent and session
|
|
30
|
-
this.callbacks.resetAgent();
|
|
31
|
-
this.callbacks.resetSession();
|
|
32
|
-
this.callbacks.clearActiveSkills?.();
|
|
33
|
-
// Reset session artifacts and tool tracking
|
|
34
|
-
this.callbacks.resetArtifacts();
|
|
35
|
-
this.callbacks.clearToolTracking();
|
|
36
|
-
// Clear all UI containers and scroll history
|
|
37
|
-
this.callbacks.clearChatContainer();
|
|
38
|
-
this.callbacks.clearScrollHistory();
|
|
39
|
-
this.callbacks.clearStartupContainer();
|
|
40
|
-
// Reset plan state
|
|
41
|
-
this.callbacks.syncPlanHint();
|
|
42
|
-
this.callbacks.setPlanHint(null);
|
|
43
|
-
// Clear editor input
|
|
44
|
-
this.callbacks.clearEditor();
|
|
45
|
-
// Clear pending tools
|
|
46
|
-
this.callbacks.clearPendingTools();
|
|
47
|
-
// Clear interrupt state if armed
|
|
48
|
-
this.callbacks.clearInterruptState();
|
|
49
|
-
await this.callbacks.runSessionStartHooks?.("clear");
|
|
50
|
-
// Reset message view state and render initial messages
|
|
51
|
-
const state = this.callbacks.getAgentState();
|
|
52
|
-
this.callbacks.renderInitialMessages(state);
|
|
53
|
-
// Update footer and refresh hints
|
|
54
|
-
this.callbacks.updateFooterState(state);
|
|
55
|
-
this.callbacks.refreshFooterHint();
|
|
56
|
-
// Show success confirmation
|
|
57
|
-
this.callbacks.showSuccess("Context cleared - started fresh session");
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
// On error, ensure UI is in a consistent state
|
|
61
|
-
this.callbacks.stopLoader();
|
|
62
|
-
this.callbacks.clearStatusContainer();
|
|
63
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
64
|
-
this.callbacks.showError(`✗ Error clearing context: ${errorMsg}`);
|
|
65
|
-
}
|
|
66
|
-
finally {
|
|
67
|
-
this.clearInProgress = false;
|
|
68
|
-
this.callbacks.requestRender();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
export function createClearController(options) {
|
|
73
|
-
return new ClearController(options);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=clear-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/clear-controller.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkEH,MAAM,OAAO,eAAe;IAI3B,YAAY,OAA+B;QAFnC,oBAAe,GAAG,KAAK,CAAC;QAG/B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,kBAAkB;QACvB,sCAAsC;QACtC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,OAAO;QACR,CAAC;QACD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAE5B,IAAI,CAAC;YACJ,iCAAiC;YACjC,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;YAEpC,+DAA+D;YAC/D,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;YAEtC,4BAA4B;YAC5B,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAC;YAErC,oCAAoC;YACpC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,oBAAoB,EAAE,CAAC;YAEtC,MAAM,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,CAAC,OAAO,CAAC,CAAC;YAEnD,0BAA0B;YAC1B,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,CA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AAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,6BAA6B,QAAQ,EAAE,CAAC,CAAC;QACnE,CAAC;gBAAS,CAAC;YACV,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YAC7B,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;QAChC,CAAC;IACF,CAAC;CACD;AAED,MAAM,UAAU,qBAAqB,CACpC,OAA+B;IAE/B,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC","sourcesContent":["/**\n * ClearController - Handles session clearing functionality\n *\n * Manages the /clear command which resets the conversation state,\n * aborts any running agent work, and starts a fresh session.\n */\n\nimport type { AgentState } from \"../../agent/types.js\";\nimport type { SessionEndHookInput } from \"../../hooks/types.js\";\n\nexport interface ClearControllerCallbacks {\n\t/** Abort agent and wait for idle */\n\tabortAndWait: () => Promise<void>;\n\t/** Set agent running state */\n\tsetAgentRunning: (running: boolean) => void;\n\t/** Cancel all queued prompts */\n\tcancelQueuedPrompts: () => void;\n\t/** Stop loading animation */\n\tstopLoader: () => void;\n\t/** Clear status container */\n\tclearStatusContainer: () => void;\n\t/** Reset agent state */\n\tresetAgent: () => void;\n\t/** Reset session */\n\tresetSession: () => void;\n\t/** Reset session artifacts */\n\tresetArtifacts: () => void;\n\t/** Clear active skills */\n\tclearActiveSkills?: () => void;\n\t/** Clear tool output tracking */\n\tclearToolTracking: () => void;\n\t/** Clear chat container */\n\tclearChatContainer: () => void;\n\t/** Clear scroll history */\n\tclearScrollHistory: () => void;\n\t/** Clear startup container */\n\tclearStartupContainer: () => void;\n\t/** Sync plan hint with store */\n\tsyncPlanHint: () => void;\n\t/** Set plan hint */\n\tsetPlanHint: (hint: string | null) => void;\n\t/** Clear editor */\n\tclearEditor: () => void;\n\t/** Clear pending tools */\n\tclearPendingTools: () => void;\n\t/** Clear interrupt state */\n\tclearInterruptState: () => void;\n\t/** Render initial messages */\n\trenderInitialMessages: (state: AgentState) => void;\n\t/** Get current agent state */\n\tgetAgentState: () => AgentState;\n\t/** Update footer state */\n\tupdateFooterState: (state: AgentState) => void;\n\t/** Refresh footer hint */\n\trefreshFooterHint: () => void;\n\t/** Run session end hooks before clearing */\n\trunSessionEndHooks?: (reason: SessionEndHookInput[\"reason\"]) => Promise<void>;\n\t/** Run session start hooks after clearing */\n\trunSessionStartHooks?: (source: string) => Promise<void>;\n\t/** Show success notification */\n\tshowSuccess: (message: string) => void;\n\t/** Show error in chat */\n\tshowError: (message: string) => void;\n\t/** Request UI render */\n\trequestRender: () => void;\n}\n\nexport interface ClearControllerOptions {\n\tcallbacks: ClearControllerCallbacks;\n}\n\nexport class ClearController {\n\tprivate readonly callbacks: ClearControllerCallbacks;\n\tprivate clearInProgress = false;\n\n\tconstructor(options: ClearControllerOptions) {\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\tasync handleClearCommand(): Promise<void> {\n\t\t// Prevent concurrent clear operations\n\t\tif (this.clearInProgress) {\n\t\t\treturn;\n\t\t}\n\t\tthis.clearInProgress = true;\n\n\t\ttry {\n\t\t\t// Abort any in-flight agent work\n\t\t\tawait this.callbacks.abortAndWait();\n\n\t\t\t// Reset running flag immediately so the UI reflects idle state\n\t\t\tthis.callbacks.setAgentRunning(false);\n\n\t\t\t// Cancel any queued prompts\n\t\t\tthis.callbacks.cancelQueuedPrompts();\n\n\t\t\t// Stop loading animation if present\n\t\t\tthis.callbacks.stopLoader();\n\t\t\tthis.callbacks.clearStatusContainer();\n\n\t\t\tawait this.callbacks.runSessionEndHooks?.(\"clear\");\n\n\t\t\t// Reset agent and session\n\t\t\tthis.callbacks.resetAgent();\n\t\t\tthis.callbacks.resetSession();\n\t\t\tthis.callbacks.clearActiveSkills?.();\n\n\t\t\t// Reset session artifacts and tool tracking\n\t\t\tthis.callbacks.resetArtifacts();\n\t\t\tthis.callbacks.clearToolTracking();\n\n\t\t\t// Clear all UI containers and scroll history\n\t\t\tthis.callbacks.clearChatContainer();\n\t\t\tthis.callbacks.clearScrollHistory();\n\t\t\tthis.callbacks.clearStartupContainer();\n\n\t\t\t// Reset plan state\n\t\t\tthis.callbacks.syncPlanHint();\n\t\t\tthis.callbacks.setPlanHint(null);\n\n\t\t\t// Clear editor input\n\t\t\tthis.callbacks.clearEditor();\n\n\t\t\t// Clear pending tools\n\t\t\tthis.callbacks.clearPendingTools();\n\n\t\t\t// Clear interrupt state if armed\n\t\t\tthis.callbacks.clearInterruptState();\n\n\t\t\tawait this.callbacks.runSessionStartHooks?.(\"clear\");\n\n\t\t\t// Reset message view state and render initial messages\n\t\t\tconst state = this.callbacks.getAgentState();\n\t\t\tthis.callbacks.renderInitialMessages(state);\n\n\t\t\t// Update footer and refresh hints\n\t\t\tthis.callbacks.updateFooterState(state);\n\t\t\tthis.callbacks.refreshFooterHint();\n\n\t\t\t// Show success confirmation\n\t\t\tthis.callbacks.showSuccess(\"Context cleared - started fresh session\");\n\t\t} catch (error) {\n\t\t\t// On error, ensure UI is in a consistent state\n\t\t\tthis.callbacks.stopLoader();\n\t\t\tthis.callbacks.clearStatusContainer();\n\n\t\t\tconst errorMsg = error instanceof Error ? error.message : String(error);\n\t\t\tthis.callbacks.showError(`✗ Error clearing context: ${errorMsg}`);\n\t\t} finally {\n\t\t\tthis.clearInProgress = false;\n\t\t\tthis.callbacks.requestRender();\n\t\t}\n\t}\n}\n\nexport function createClearController(\n\toptions: ClearControllerOptions,\n): ClearController {\n\treturn new ClearController(options);\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Container, TUI } from "@evalops/tui";
|
|
2
|
-
import { ClientToolController } from "../client-tools/client-tool-controller.js";
|
|
3
|
-
import type { TuiClientToolService } from "../client-tools/local-client-tool-service.js";
|
|
4
|
-
import type { CustomEditor } from "../custom-editor.js";
|
|
5
|
-
import type { NotificationView } from "../notification-view.js";
|
|
6
|
-
export declare function createClientToolController(params: {
|
|
7
|
-
clientToolService: TuiClientToolService;
|
|
8
|
-
ui: TUI;
|
|
9
|
-
editor: CustomEditor;
|
|
10
|
-
editorContainer: Container;
|
|
11
|
-
notificationView: NotificationView;
|
|
12
|
-
onPendingStatusChange?: (toolCallId: string, status: string | null) => void;
|
|
13
|
-
}): ClientToolController;
|
|
14
|
-
//# sourceMappingURL=client-tools-setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-tools-setup.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/client-tools-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IAClD,iBAAiB,EAAE,oBAAoB,CAAC;IACxC,EAAE,EAAE,GAAG,CAAC;IACR,MAAM,EAAE,YAAY,CAAC;IACrB,eAAe,EAAE,SAAS,CAAC;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5E,GAAG,oBAAoB,CAEvB"}
|