@evalops/maestro 0.10.51 → 0.10.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +1 -1
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-handoff.d.ts.map +1 -1
- package/dist/agent/context-handoff.js +2 -1
- package/dist/agent/context-handoff.js.map +1 -1
- package/dist/agent/index.d.ts +8 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +8 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +1 -1
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +56 -0
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/oracle-consultation-policy.d.ts +22 -0
- package/dist/agent/oracle-consultation-policy.d.ts.map +1 -0
- package/dist/agent/oracle-consultation-policy.js +72 -0
- package/dist/agent/oracle-consultation-policy.js.map +1 -0
- package/dist/agent/oracle-policy-experiment.d.ts +27 -0
- package/dist/agent/oracle-policy-experiment.d.ts.map +1 -0
- package/dist/agent/oracle-policy-experiment.js +59 -0
- package/dist/agent/oracle-policy-experiment.js.map +1 -0
- package/dist/agent/oracle-policy-rollout.d.ts +42 -0
- package/dist/agent/oracle-policy-rollout.d.ts.map +1 -0
- package/dist/agent/oracle-policy-rollout.js +80 -0
- package/dist/agent/oracle-policy-rollout.js.map +1 -0
- package/dist/agent/plugin-agent-api.d.ts +13 -0
- package/dist/agent/plugin-agent-api.d.ts.map +1 -0
- package/dist/agent/plugin-agent-api.js +11 -0
- package/dist/agent/plugin-agent-api.js.map +1 -0
- package/dist/agent/plugin-agent-loader.d.ts +17 -0
- package/dist/agent/plugin-agent-loader.d.ts.map +1 -0
- package/dist/agent/plugin-agent-loader.js +81 -0
- package/dist/agent/plugin-agent-loader.js.map +1 -0
- package/dist/agent/plugin-agent-registry.d.ts +62 -0
- package/dist/agent/plugin-agent-registry.d.ts.map +1 -0
- package/dist/agent/plugin-agent-registry.js +109 -0
- package/dist/agent/plugin-agent-registry.js.map +1 -0
- package/dist/agent/profile-loader.d.ts +7 -0
- package/dist/agent/profile-loader.d.ts.map +1 -0
- package/dist/agent/profile-loader.js +115 -0
- package/dist/agent/profile-loader.js.map +1 -0
- package/dist/agent/profiles.d.ts +30 -0
- package/dist/agent/profiles.d.ts.map +1 -0
- package/dist/agent/profiles.js +146 -0
- package/dist/agent/profiles.js.map +1 -0
- package/dist/agent/prompt-cache.d.ts +0 -4
- package/dist/agent/prompt-cache.d.ts.map +1 -1
- package/dist/agent/prompt-cache.js +1 -7
- package/dist/agent/prompt-cache.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +1 -0
- package/dist/agent/providers/google.js +1 -0
- package/dist/agent/providers/vertex.js +1 -0
- package/dist/agent/routing-receipt.d.ts +34 -0
- package/dist/agent/routing-receipt.d.ts.map +1 -0
- package/dist/agent/routing-receipt.js +55 -0
- package/dist/agent/routing-receipt.js.map +1 -0
- package/dist/{skills/artifact-metadata.d.ts → agent/skill-artifact-metadata.d.ts} +2 -4
- package/dist/agent/skill-artifact-metadata.d.ts.map +1 -0
- package/dist/{skills/artifact-metadata.js → agent/skill-artifact-metadata.js} +1 -38
- package/dist/agent/skill-artifact-metadata.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +2 -2
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/token-counter.d.ts +40 -0
- package/dist/agent/token-counter.d.ts.map +1 -0
- package/dist/agent/token-counter.js +74 -0
- package/dist/agent/token-counter.js.map +1 -0
- package/dist/agent/transport/events.d.ts +1 -1
- package/dist/agent/transport/events.d.ts.map +1 -1
- package/dist/agent/transport/events.js +1 -1
- package/dist/agent/transport/events.js.map +1 -1
- package/dist/agent/types.d.ts +4 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/app-server/plugin-bundle-api.d.ts.map +1 -1
- package/dist/app-server/plugin-bundle-api.js +1 -0
- package/dist/app-server/plugin-bundle-api.js.map +1 -1
- package/dist/app-server/session-api.d.ts.map +1 -1
- package/dist/app-server/session-api.js +15 -2
- package/dist/app-server/session-api.js.map +1 -1
- package/dist/audit/logger.d.ts +5 -5
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +18 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/direct-runtime-command.d.ts +1 -0
- package/dist/cli/direct-runtime-command.d.ts.map +1 -1
- package/dist/cli/direct-runtime-command.js +25 -3
- package/dist/cli/direct-runtime-command.js.map +1 -1
- package/dist/cli/headless.d.ts +3 -19
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +8 -619
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/native-tui-launcher.d.ts +126 -0
- package/dist/cli/native-tui-launcher.d.ts.map +1 -0
- package/dist/cli/native-tui-launcher.js +425 -0
- package/dist/cli/native-tui-launcher.js.map +1 -0
- package/dist/cli/rpc-mode.d.ts +3 -27
- package/dist/cli/rpc-mode.d.ts.map +1 -1
- package/dist/cli/rpc-mode.js +8 -177
- package/dist/cli/rpc-mode.js.map +1 -1
- package/dist/cli/session.d.ts +11 -19
- package/dist/cli/session.d.ts.map +1 -1
- package/dist/cli/session.js +6 -64
- package/dist/cli/session.js.map +1 -1
- package/dist/cli-command-runtime.d.ts.map +1 -1
- package/dist/cli-command-runtime.js +26 -24
- package/dist/cli-command-runtime.js.map +1 -1
- package/dist/cli-runtime.js +52529 -137615
- package/dist/config/env-vars.d.ts +12 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +12 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/{cli-tui → config}/ui-state.d.ts +6 -1
- package/dist/config/ui-state.d.ts.map +1 -0
- package/dist/{cli-tui → config}/ui-state.js +1 -1
- package/dist/config/ui-state.js.map +1 -0
- package/dist/context/repo-map.d.ts.map +1 -1
- package/dist/context/repo-map.js +1 -7
- package/dist/context/repo-map.js.map +1 -1
- package/dist/context/token-optimizer.d.ts.map +1 -1
- package/dist/context/token-optimizer.js +1 -8
- package/dist/context/token-optimizer.js.map +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/hooks/notification-hooks.d.ts +1 -1
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/hooks/tui-surface.d.ts +35 -0
- package/dist/hooks/tui-surface.d.ts.map +1 -0
- package/dist/hooks/tui-surface.js +11 -0
- package/dist/hooks/tui-surface.js.map +1 -0
- package/dist/hooks/types.d.ts +2 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks/typescript-loader.d.ts.map +1 -1
- package/dist/hooks/typescript-loader.js.map +1 -1
- package/dist/hooks/ui-context.d.ts.map +1 -1
- package/dist/hooks/ui-context.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +154 -882
- package/dist/main.js.map +1 -1
- package/dist/models/config-loader.d.ts +5 -5
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +45 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +284 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js +41 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts +986 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.js +49 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts +56 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js +86 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/package.json +1 -1
- package/dist/packages/discovery.d.ts.map +1 -1
- package/dist/packages/discovery.js +1 -0
- package/dist/packages/discovery.js.map +1 -1
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +7 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/loader.d.ts.map +1 -1
- package/dist/packages/loader.js +8 -1
- package/dist/packages/loader.js.map +1 -1
- package/dist/packages/runtime.d.ts +1 -0
- package/dist/packages/runtime.d.ts.map +1 -1
- package/dist/packages/runtime.js +9 -1
- package/dist/packages/runtime.js.map +1 -1
- package/dist/packages/types.d.ts +6 -0
- package/dist/packages/types.d.ts.map +1 -1
- package/dist/packages/types.js.map +1 -1
- package/dist/runtime/agent-runtime.d.ts +22 -6
- package/dist/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/runtime/agent-runtime.js +1 -1
- package/dist/runtime/agent-runtime.js.map +1 -1
- package/dist/runtime/env.d.ts +1 -0
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +1 -0
- package/dist/runtime/env.js.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.d.ts.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts +2 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +150 -5
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +78 -5
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/package.d.ts.map +1 -1
- package/dist/server/handlers/package.js +1 -0
- package/dist/server/handlers/package.js.map +1 -1
- package/dist/server/handlers/queue.js +1 -1
- package/dist/server/handlers/queue.js.map +1 -1
- package/dist/server/handlers/ui.js +1 -1
- package/dist/server/handlers/ui.js.map +1 -1
- package/dist/server/handlers/zen.js +1 -1
- package/dist/server/handlers/zen.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +3 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +26 -0
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/model-selection.d.ts +1 -0
- package/dist/server/model-selection.d.ts.map +1 -1
- package/dist/server/model-selection.js +4 -0
- package/dist/server/model-selection.js.map +1 -1
- package/dist/server/session-serialization.d.ts.map +1 -1
- package/dist/server/session-serialization.js +3 -0
- package/dist/server/session-serialization.js.map +1 -1
- package/dist/server/session-timeline.d.ts.map +1 -1
- package/dist/server/session-timeline.js +1 -1
- package/dist/server/session-timeline.js.map +1 -1
- package/dist/server/sse-session.d.ts +2 -0
- package/dist/server/sse-session.d.ts.map +1 -1
- package/dist/server/sse-session.js +3 -0
- package/dist/server/sse-session.js.map +1 -1
- package/dist/server/stores/ui-store.d.ts +1 -1
- package/dist/server/stores/ui-store.d.ts.map +1 -1
- package/dist/server/stores/ui-store.js.map +1 -1
- package/dist/server/utils/token-estimator.d.ts +2 -2
- package/dist/server/utils/token-estimator.d.ts.map +1 -1
- package/dist/server/utils/token-estimator.js +2 -12
- package/dist/server/utils/token-estimator.js.map +1 -1
- package/dist/server/validation.d.ts +54 -0
- package/dist/server/validation.d.ts.map +1 -1
- package/dist/services/image-providers/cost.d.ts +70 -0
- package/dist/services/image-providers/cost.d.ts.map +1 -0
- package/dist/services/image-providers/cost.js +164 -0
- package/dist/services/image-providers/cost.js.map +1 -0
- package/dist/services/image-providers/flux.d.ts +40 -0
- package/dist/services/image-providers/flux.d.ts.map +1 -0
- package/dist/services/image-providers/flux.js +99 -0
- package/dist/services/image-providers/flux.js.map +1 -0
- package/dist/services/image-providers/index.d.ts +24 -0
- package/dist/services/image-providers/index.d.ts.map +1 -0
- package/dist/services/image-providers/index.js +27 -0
- package/dist/services/image-providers/index.js.map +1 -0
- package/dist/services/image-providers/masks.d.ts +51 -0
- package/dist/services/image-providers/masks.d.ts.map +1 -0
- package/dist/services/image-providers/masks.js +132 -0
- package/dist/services/image-providers/masks.js.map +1 -0
- package/dist/services/image-providers/openai.d.ts +35 -0
- package/dist/services/image-providers/openai.d.ts.map +1 -0
- package/dist/services/image-providers/openai.js +93 -0
- package/dist/services/image-providers/openai.js.map +1 -0
- package/dist/services/image-providers/types.d.ts +61 -0
- package/dist/services/image-providers/types.d.ts.map +1 -0
- package/dist/services/image-providers/types.js +17 -0
- package/dist/services/image-providers/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +1 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -1
- package/dist/services/intelligent-router/index.js +1 -0
- package/dist/services/intelligent-router/index.js.map +1 -1
- package/dist/services/intelligent-router/normalize.d.ts +1 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -1
- package/dist/services/intelligent-router/normalize.js +17 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -1
- package/dist/services/intelligent-router/outcome.d.ts +19 -0
- package/dist/services/intelligent-router/outcome.d.ts.map +1 -0
- package/dist/services/intelligent-router/outcome.js +51 -0
- package/dist/services/intelligent-router/outcome.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +2 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -1
- package/dist/services/intelligent-router/recorder.js +72 -1
- package/dist/services/intelligent-router/recorder.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +1 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +60 -11
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/intelligent-router/types.d.ts +18 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -1
- package/dist/services/intelligent-router/types.js.map +1 -1
- package/dist/services/workspace-config/middleware.d.ts +2 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -1
- package/dist/services/workspace-config/middleware.js +25 -28
- package/dist/services/workspace-config/middleware.js.map +1 -1
- package/dist/session/agent-lineage-projection.d.ts +30 -0
- package/dist/session/agent-lineage-projection.d.ts.map +1 -0
- package/dist/session/agent-lineage-projection.js +109 -0
- package/dist/session/agent-lineage-projection.js.map +1 -0
- package/dist/session/manager.d.ts +3 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +24 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +11 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -1
- package/dist/session/session-graph-projection.js +28 -0
- package/dist/session/session-graph-projection.js.map +1 -1
- package/dist/session/types.d.ts +2 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/oracle-policy.d.ts +6 -0
- package/dist/telemetry/oracle-policy.d.ts.map +1 -0
- package/dist/telemetry/oracle-policy.js +17 -0
- package/dist/telemetry/oracle-policy.js.map +1 -0
- package/dist/telemetry/wide-events.d.ts +1 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/theme/theme.d.ts +2 -8
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +7 -0
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/tui-theme-helpers.d.ts +2 -1
- package/dist/theme/tui-theme-helpers.d.ts.map +1 -1
- package/dist/theme/tui-theme-helpers.js.map +1 -1
- package/dist/theme/tui-theme-types.d.ts +39 -0
- package/dist/theme/tui-theme-types.d.ts.map +1 -0
- package/dist/theme/tui-theme-types.js +10 -0
- package/dist/theme/tui-theme-types.js.map +1 -0
- package/dist/tools/index.d.ts +199 -160
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lazy-registry.d.ts.map +1 -1
- package/dist/tools/lazy-registry.js +1 -0
- package/dist/tools/lazy-registry.js.map +1 -1
- package/dist/tools/oracle.d.ts +9 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +26 -24
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/painter.d.ts +73 -0
- package/dist/tools/painter.d.ts.map +1 -0
- package/dist/tools/painter.js +283 -0
- package/dist/tools/painter.js.map +1 -0
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +1 -1
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/utils/terminal-image.d.ts +52 -0
- package/dist/utils/terminal-image.d.ts.map +1 -0
- package/dist/utils/terminal-image.js +95 -0
- package/dist/utils/terminal-image.js.map +1 -0
- package/dist/utils/terminal-text.d.ts +11 -0
- package/dist/utils/terminal-text.d.ts.map +1 -0
- package/dist/utils/terminal-text.js +21 -0
- package/dist/utils/terminal-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +24 -2
- package/dist/web-server.js.map +1 -1
- package/package.json +13 -11
- package/skills/incident-triage/SKILL.md +4 -3
- package/dist/cli/commands/agents.d.ts +0 -24
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -429
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/anthropic.d.ts +0 -2
- package/dist/cli/commands/anthropic.d.ts.map +0 -1
- package/dist/cli/commands/anthropic.js +0 -6
- package/dist/cli/commands/anthropic.js.map +0 -1
- package/dist/cli/commands/cost.d.ts +0 -13
- package/dist/cli/commands/cost.d.ts.map +0 -1
- package/dist/cli/commands/cost.js +0 -143
- package/dist/cli/commands/cost.js.map +0 -1
- package/dist/cli/commands/exec-constants.d.ts +0 -3
- package/dist/cli/commands/exec-constants.d.ts.map +0 -1
- package/dist/cli/commands/exec-constants.js +0 -3
- package/dist/cli/commands/exec-constants.js.map +0 -1
- package/dist/cli/commands/exec.d.ts +0 -19
- package/dist/cli/commands/exec.d.ts.map +0 -1
- package/dist/cli/commands/exec.js +0 -207
- package/dist/cli/commands/exec.js.map +0 -1
- package/dist/cli/commands/hooks.d.ts +0 -2
- package/dist/cli/commands/hooks.d.ts.map +0 -1
- package/dist/cli/commands/hooks.js +0 -25
- package/dist/cli/commands/hooks.js.map +0 -1
- package/dist/cli/commands/hosted-runner.d.ts +0 -25
- package/dist/cli/commands/hosted-runner.d.ts.map +0 -1
- package/dist/cli/commands/hosted-runner.js +0 -278
- package/dist/cli/commands/hosted-runner.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -2
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -208
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/models.d.ts +0 -3
- package/dist/cli/commands/models.d.ts.map +0 -1
- package/dist/cli/commands/models.js +0 -154
- package/dist/cli/commands/models.js.map +0 -1
- package/dist/cli/commands/modes.d.ts +0 -8
- package/dist/cli/commands/modes.d.ts.map +0 -1
- package/dist/cli/commands/modes.js +0 -151
- package/dist/cli/commands/modes.js.map +0 -1
- package/dist/cli/commands/openai.d.ts +0 -2
- package/dist/cli/commands/openai.d.ts.map +0 -1
- package/dist/cli/commands/openai.js +0 -116
- package/dist/cli/commands/openai.js.map +0 -1
- package/dist/cli/commands/session-transfer.d.ts +0 -5
- package/dist/cli/commands/session-transfer.d.ts.map +0 -1
- package/dist/cli/commands/session-transfer.js +0 -43
- package/dist/cli/commands/session-transfer.js.map +0 -1
- package/dist/cli/commands/sessions.d.ts +0 -8
- package/dist/cli/commands/sessions.d.ts.map +0 -1
- package/dist/cli/commands/sessions.js +0 -152
- package/dist/cli/commands/sessions.js.map +0 -1
- package/dist/cli/commands/skill.d.ts +0 -10
- package/dist/cli/commands/skill.d.ts.map +0 -1
- package/dist/cli/commands/skill.js +0 -303
- package/dist/cli/commands/skill.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -7
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -167
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -148
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli-tui/about-view.d.ts +0 -48
- package/dist/cli-tui/about-view.d.ts.map +0 -1
- package/dist/cli-tui/about-view.js +0 -206
- package/dist/cli-tui/about-view.js.map +0 -1
- package/dist/cli-tui/agent-event-router.d.ts +0 -28
- package/dist/cli-tui/agent-event-router.d.ts.map +0 -1
- package/dist/cli-tui/agent-event-router.js +0 -126
- package/dist/cli-tui/agent-event-router.js.map +0 -1
- package/dist/cli-tui/approval/approval-controller.d.ts +0 -28
- package/dist/cli-tui/approval/approval-controller.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-controller.js +0 -99
- package/dist/cli-tui/approval/approval-controller.js.map +0 -1
- package/dist/cli-tui/approval/approval-modal.d.ts +0 -26
- package/dist/cli-tui/approval/approval-modal.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-modal.js +0 -143
- package/dist/cli-tui/approval/approval-modal.js.map +0 -1
- package/dist/cli-tui/assistant-message.d.ts +0 -41
- package/dist/cli-tui/assistant-message.d.ts.map +0 -1
- package/dist/cli-tui/assistant-message.js +0 -236
- package/dist/cli-tui/assistant-message.js.map +0 -1
- package/dist/cli-tui/auth-state.d.ts +0 -7
- package/dist/cli-tui/auth-state.d.ts.map +0 -1
- package/dist/cli-tui/auth-state.js +0 -46
- package/dist/cli-tui/auth-state.js.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.d.ts +0 -31
- package/dist/cli-tui/background/background-tasks-controller.d.ts.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.js +0 -84
- package/dist/cli-tui/background/background-tasks-controller.js.map +0 -1
- package/dist/cli-tui/base-view.d.ts +0 -111
- package/dist/cli-tui/base-view.d.ts.map +0 -1
- package/dist/cli-tui/base-view.js +0 -145
- package/dist/cli-tui/base-view.js.map +0 -1
- package/dist/cli-tui/bash/background-launcher.d.ts +0 -14
- package/dist/cli-tui/bash/background-launcher.d.ts.map +0 -1
- package/dist/cli-tui/bash/background-launcher.js +0 -50
- package/dist/cli-tui/bash/background-launcher.js.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.d.ts +0 -40
- package/dist/cli-tui/bash/bash-autocomplete.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.js +0 -347
- package/dist/cli-tui/bash/bash-autocomplete.js.map +0 -1
- package/dist/cli-tui/bash/bash-history.d.ts +0 -21
- package/dist/cli-tui/bash/bash-history.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-history.js +0 -72
- package/dist/cli-tui/bash/bash-history.js.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.d.ts +0 -5
- package/dist/cli-tui/bash/bash-syntax.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.js +0 -176
- package/dist/cli-tui/bash/bash-syntax.js.map +0 -1
- package/dist/cli-tui/bash/index.d.ts +0 -4
- package/dist/cli-tui/bash/index.d.ts.map +0 -1
- package/dist/cli-tui/bash/index.js +0 -4
- package/dist/cli-tui/bash/index.js.map +0 -1
- package/dist/cli-tui/bash-mode-view.d.ts +0 -86
- package/dist/cli-tui/bash-mode-view.d.ts.map +0 -1
- package/dist/cli-tui/bash-mode-view.js +0 -560
- package/dist/cli-tui/bash-mode-view.js.map +0 -1
- package/dist/cli-tui/bash-shell-block.d.ts +0 -50
- package/dist/cli-tui/bash-shell-block.d.ts.map +0 -1
- package/dist/cli-tui/bash-shell-block.js +0 -119
- package/dist/cli-tui/bash-shell-block.js.map +0 -1
- package/dist/cli-tui/changelog-view.d.ts +0 -13
- package/dist/cli-tui/changelog-view.d.ts.map +0 -1
- package/dist/cli-tui/changelog-view.js +0 -34
- package/dist/cli-tui/changelog-view.js.map +0 -1
- package/dist/cli-tui/clean-mode.d.ts +0 -13
- package/dist/cli-tui/clean-mode.d.ts.map +0 -1
- package/dist/cli-tui/clean-mode.js +0 -32
- package/dist/cli-tui/clean-mode.js.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts +0 -41
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +0 -860
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts +0 -33
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.js +0 -94
- package/dist/cli-tui/client-tools/local-client-tool-service.js.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +0 -7
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.js +0 -215
- package/dist/cli-tui/commands/a2a-handlers.js.map +0 -1
- package/dist/cli-tui/commands/access-command.d.ts +0 -3
- package/dist/cli-tui/commands/access-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/access-command.js +0 -89
- package/dist/cli-tui/commands/access-command.js.map +0 -1
- package/dist/cli-tui/commands/argument-parser.d.ts +0 -12
- package/dist/cli-tui/commands/argument-parser.d.ts.map +0 -1
- package/dist/cli-tui/commands/argument-parser.js +0 -135
- package/dist/cli-tui/commands/argument-parser.js.map +0 -1
- package/dist/cli-tui/commands/audit-command.d.ts +0 -5
- package/dist/cli-tui/commands/audit-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/audit-command.js +0 -35
- package/dist/cli-tui/commands/audit-command.js.map +0 -1
- package/dist/cli-tui/commands/background-handlers.d.ts +0 -14
- package/dist/cli-tui/commands/background-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/background-handlers.js +0 -115
- package/dist/cli-tui/commands/background-handlers.js.map +0 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +0 -29
- package/dist/cli-tui/commands/command-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-catalog.js +0 -666
- package/dist/cli-tui/commands/command-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +0 -12
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +0 -129
- package/dist/cli-tui/commands/command-registry-adapter.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +0 -14
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.js +0 -147
- package/dist/cli-tui/commands/command-suite-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.d.ts +0 -111
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.js +0 -110
- package/dist/cli-tui/commands/command-suite-handlers.js.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.d.ts +0 -8
- package/dist/cli-tui/commands/composer-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.js +0 -90
- package/dist/cli-tui/commands/composer-handlers.js.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.d.ts +0 -18
- package/dist/cli-tui/commands/framework-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.js +0 -57
- package/dist/cli-tui/commands/framework-handlers.js.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.d.ts +0 -20
- package/dist/cli-tui/commands/guardian-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.js +0 -48
- package/dist/cli-tui/commands/guardian-handlers.js.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts +0 -32
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +0 -153
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts +0 -8
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.js +0 -61
- package/dist/cli-tui/commands/hotkeys-command.js.map +0 -1
- package/dist/cli-tui/commands/limits-command.d.ts +0 -3
- package/dist/cli-tui/commands/limits-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/limits-command.js +0 -88
- package/dist/cli-tui/commands/limits-command.js.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts +0 -12
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.js +0 -1306
- package/dist/cli-tui/commands/mcp-handlers.js.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.d.ts +0 -28
- package/dist/cli-tui/commands/memory-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.js +0 -414
- package/dist/cli-tui/commands/memory-handlers.js.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.d.ts +0 -11
- package/dist/cli-tui/commands/otel-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.js +0 -20
- package/dist/cli-tui/commands/otel-handlers.js.map +0 -1
- package/dist/cli-tui/commands/package-handlers.d.ts +0 -30
- package/dist/cli-tui/commands/package-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/package-handlers.js +0 -499
- package/dist/cli-tui/commands/package-handlers.js.map +0 -1
- package/dist/cli-tui/commands/pii-command.d.ts +0 -3
- package/dist/cli-tui/commands/pii-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/pii-command.js +0 -54
- package/dist/cli-tui/commands/pii-command.js.map +0 -1
- package/dist/cli-tui/commands/registry.d.ts +0 -3
- package/dist/cli-tui/commands/registry.d.ts.map +0 -1
- package/dist/cli-tui/commands/registry.js +0 -36
- package/dist/cli-tui/commands/registry.js.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.d.ts +0 -36
- package/dist/cli-tui/commands/safety-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.js +0 -62
- package/dist/cli-tui/commands/safety-handlers.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.js +0 -79
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts +0 -23
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.js +0 -61
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts +0 -46
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.js +0 -163
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.js +0 -50
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.js +0 -18
- package/dist/cli-tui/commands/subcommands/index.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.js +0 -149
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts +0 -36
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.js +0 -112
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts +0 -27
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.js +0 -80
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts +0 -30
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts +0 -25
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts +0 -19
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.js +0 -63
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.d.ts +0 -127
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.js +0 -395
- package/dist/cli-tui/commands/subcommands/utils.js.map +0 -1
- package/dist/cli-tui/commands/types.d.ts +0 -105
- package/dist/cli-tui/commands/types.d.ts.map +0 -1
- package/dist/cli-tui/commands/types.js +0 -2
- package/dist/cli-tui/commands/types.js.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.d.ts +0 -29
- package/dist/cli-tui/commands/undo-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.js +0 -305
- package/dist/cli-tui/commands/undo-handlers.js.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +0 -55
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.js +0 -137
- package/dist/cli-tui/commands/utility-handlers.js.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.d.ts +0 -22
- package/dist/cli-tui/commands/workflow-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.js +0 -227
- package/dist/cli-tui/commands/workflow-handlers.js.map +0 -1
- package/dist/cli-tui/compact-boundary-message.d.ts +0 -9
- package/dist/cli-tui/compact-boundary-message.d.ts.map +0 -1
- package/dist/cli-tui/compact-boundary-message.js +0 -18
- package/dist/cli-tui/compact-boundary-message.js.map +0 -1
- package/dist/cli-tui/compaction-recovery.d.ts +0 -6
- package/dist/cli-tui/compaction-recovery.d.ts.map +0 -1
- package/dist/cli-tui/compaction-recovery.js +0 -13
- package/dist/cli-tui/compaction-recovery.js.map +0 -1
- package/dist/cli-tui/config-view.d.ts +0 -30
- package/dist/cli-tui/config-view.d.ts.map +0 -1
- package/dist/cli-tui/config-view.js +0 -255
- package/dist/cli-tui/config-view.js.map +0 -1
- package/dist/cli-tui/context-view.d.ts +0 -20
- package/dist/cli-tui/context-view.d.ts.map +0 -1
- package/dist/cli-tui/context-view.js +0 -191
- package/dist/cli-tui/context-view.js.map +0 -1
- package/dist/cli-tui/custom-editor.d.ts +0 -25
- package/dist/cli-tui/custom-editor.d.ts.map +0 -1
- package/dist/cli-tui/custom-editor.js +0 -241
- package/dist/cli-tui/custom-editor.js.map +0 -1
- package/dist/cli-tui/editor-view.d.ts +0 -34
- package/dist/cli-tui/editor-view.d.ts.map +0 -1
- package/dist/cli-tui/editor-view.js +0 -102
- package/dist/cli-tui/editor-view.js.map +0 -1
- package/dist/cli-tui/feedback-view.d.ts +0 -35
- package/dist/cli-tui/feedback-view.d.ts.map +0 -1
- package/dist/cli-tui/feedback-view.js +0 -271
- package/dist/cli-tui/feedback-view.js.map +0 -1
- package/dist/cli-tui/footer.d.ts +0 -56
- package/dist/cli-tui/footer.d.ts.map +0 -1
- package/dist/cli-tui/footer.js +0 -228
- package/dist/cli-tui/footer.js.map +0 -1
- package/dist/cli-tui/git/commit-modal.d.ts +0 -14
- package/dist/cli-tui/git/commit-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/commit-modal.js +0 -56
- package/dist/cli-tui/git/commit-modal.js.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.d.ts +0 -40
- package/dist/cli-tui/git/git-preview-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.js +0 -123
- package/dist/cli-tui/git/git-preview-modal.js.map +0 -1
- package/dist/cli-tui/git/git-view.d.ts +0 -65
- package/dist/cli-tui/git/git-view.d.ts.map +0 -1
- package/dist/cli-tui/git/git-view.js +0 -529
- package/dist/cli-tui/git/git-view.js.map +0 -1
- package/dist/cli-tui/history/history-config.d.ts +0 -7
- package/dist/cli-tui/history/history-config.d.ts.map +0 -1
- package/dist/cli-tui/history/history-config.js +0 -49
- package/dist/cli-tui/history/history-config.js.map +0 -1
- package/dist/cli-tui/history/prompt-history.d.ts +0 -33
- package/dist/cli-tui/history/prompt-history.d.ts.map +0 -1
- package/dist/cli-tui/history/prompt-history.js +0 -185
- package/dist/cli-tui/history/prompt-history.js.map +0 -1
- package/dist/cli-tui/history/tool-history.d.ts +0 -50
- package/dist/cli-tui/history/tool-history.d.ts.map +0 -1
- package/dist/cli-tui/history/tool-history.js +0 -253
- package/dist/cli-tui/history/tool-history.js.map +0 -1
- package/dist/cli-tui/hook-message.d.ts +0 -13
- package/dist/cli-tui/hook-message.d.ts.map +0 -1
- package/dist/cli-tui/hook-message.js +0 -56
- package/dist/cli-tui/hook-message.js.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.d.ts +0 -22
- package/dist/cli-tui/hooks/hook-input-modal.d.ts.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.js +0 -63
- package/dist/cli-tui/hooks/hook-input-modal.js.map +0 -1
- package/dist/cli-tui/hotkeys-view.d.ts +0 -13
- package/dist/cli-tui/hotkeys-view.d.ts.map +0 -1
- package/dist/cli-tui/hotkeys-view.js +0 -96
- package/dist/cli-tui/hotkeys-view.js.map +0 -1
- package/dist/cli-tui/import-view.d.ts +0 -28
- package/dist/cli-tui/import-view.d.ts.map +0 -1
- package/dist/cli-tui/import-view.js +0 -184
- package/dist/cli-tui/import-view.js.map +0 -1
- package/dist/cli-tui/info-view.d.ts +0 -18
- package/dist/cli-tui/info-view.d.ts.map +0 -1
- package/dist/cli-tui/info-view.js +0 -107
- package/dist/cli-tui/info-view.js.map +0 -1
- package/dist/cli-tui/instruction-panel.d.ts +0 -11
- package/dist/cli-tui/instruction-panel.d.ts.map +0 -1
- package/dist/cli-tui/instruction-panel.js +0 -86
- package/dist/cli-tui/instruction-panel.js.map +0 -1
- package/dist/cli-tui/interrupt-controller.d.ts +0 -78
- package/dist/cli-tui/interrupt-controller.d.ts.map +0 -1
- package/dist/cli-tui/interrupt-controller.js +0 -104
- package/dist/cli-tui/interrupt-controller.js.map +0 -1
- package/dist/cli-tui/keybindings-config.d.ts +0 -27
- package/dist/cli-tui/keybindings-config.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-config.js +0 -372
- package/dist/cli-tui/keybindings-config.js.map +0 -1
- package/dist/cli-tui/keybindings-watcher.d.ts +0 -8
- package/dist/cli-tui/keybindings-watcher.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-watcher.js +0 -56
- package/dist/cli-tui/keybindings-watcher.js.map +0 -1
- package/dist/cli-tui/keybindings.d.ts +0 -13
- package/dist/cli-tui/keybindings.d.ts.map +0 -1
- package/dist/cli-tui/keybindings.js +0 -223
- package/dist/cli-tui/keybindings.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.d.ts +0 -43
- package/dist/cli-tui/loader/loader-stage-manager.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.js +0 -241
- package/dist/cli-tui/loader/loader-stage-manager.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts +0 -14
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.js +0 -34
- package/dist/cli-tui/loader/loader-stage-telemetry.js.map +0 -1
- package/dist/cli-tui/loader/loader-view.d.ts +0 -41
- package/dist/cli-tui/loader/loader-view.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-view.js +0 -162
- package/dist/cli-tui/loader/loader-view.js.map +0 -1
- package/dist/cli-tui/lsp-view.d.ts +0 -21
- package/dist/cli-tui/lsp-view.d.ts.map +0 -1
- package/dist/cli-tui/lsp-view.js +0 -183
- package/dist/cli-tui/lsp-view.js.map +0 -1
- package/dist/cli-tui/mermaid-renderer.d.ts +0 -2
- package/dist/cli-tui/mermaid-renderer.d.ts.map +0 -1
- package/dist/cli-tui/mermaid-renderer.js +0 -391
- package/dist/cli-tui/mermaid-renderer.js.map +0 -1
- package/dist/cli-tui/message-view.d.ts +0 -27
- package/dist/cli-tui/message-view.d.ts.map +0 -1
- package/dist/cli-tui/message-view.js +0 -169
- package/dist/cli-tui/message-view.js.map +0 -1
- package/dist/cli-tui/modal-manager.d.ts +0 -77
- package/dist/cli-tui/modal-manager.d.ts.map +0 -1
- package/dist/cli-tui/modal-manager.js +0 -131
- package/dist/cli-tui/modal-manager.js.map +0 -1
- package/dist/cli-tui/notification-view.d.ts +0 -16
- package/dist/cli-tui/notification-view.d.ts.map +0 -1
- package/dist/cli-tui/notification-view.js +0 -53
- package/dist/cli-tui/notification-view.js.map +0 -1
- package/dist/cli-tui/oauth/index.d.ts +0 -2
- package/dist/cli-tui/oauth/index.d.ts.map +0 -1
- package/dist/cli-tui/oauth/index.js +0 -2
- package/dist/cli-tui/oauth/index.js.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +0 -65
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +0 -400
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +0 -1
- package/dist/cli-tui/ollama-view.d.ts +0 -38
- package/dist/cli-tui/ollama-view.d.ts.map +0 -1
- package/dist/cli-tui/ollama-view.js +0 -395
- package/dist/cli-tui/ollama-view.js.map +0 -1
- package/dist/cli-tui/paste/index.d.ts +0 -2
- package/dist/cli-tui/paste/index.d.ts.map +0 -1
- package/dist/cli-tui/paste/index.js +0 -2
- package/dist/cli-tui/paste/index.js.map +0 -1
- package/dist/cli-tui/paste/paste-handler.d.ts +0 -54
- package/dist/cli-tui/paste/paste-handler.d.ts.map +0 -1
- package/dist/cli-tui/paste/paste-handler.js +0 -128
- package/dist/cli-tui/paste/paste-handler.js.map +0 -1
- package/dist/cli-tui/plan/plan-controller.d.ts +0 -28
- package/dist/cli-tui/plan/plan-controller.d.ts.map +0 -1
- package/dist/cli-tui/plan/plan-controller.js +0 -66
- package/dist/cli-tui/plan/plan-controller.js.map +0 -1
- package/dist/cli-tui/plan-panel-modal.d.ts +0 -28
- package/dist/cli-tui/plan-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/plan-panel-modal.js +0 -193
- package/dist/cli-tui/plan-panel-modal.js.map +0 -1
- package/dist/cli-tui/plan-view.d.ts +0 -57
- package/dist/cli-tui/plan-view.d.ts.map +0 -1
- package/dist/cli-tui/plan-view.js +0 -404
- package/dist/cli-tui/plan-view.js.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts +0 -6
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.js +0 -12
- package/dist/cli-tui/queue/follow-up-shortcut.js.map +0 -1
- package/dist/cli-tui/queue/index.d.ts +0 -3
- package/dist/cli-tui/queue/index.d.ts.map +0 -1
- package/dist/cli-tui/queue/index.js +0 -3
- package/dist/cli-tui/queue/index.js.map +0 -1
- package/dist/cli-tui/queue/queue-controller.d.ts +0 -109
- package/dist/cli-tui/queue/queue-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-controller.js +0 -327
- package/dist/cli-tui/queue/queue-controller.js.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.d.ts +0 -34
- package/dist/cli-tui/queue/queue-panel-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.js +0 -163
- package/dist/cli-tui/queue/queue-panel-controller.js.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts +0 -7
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js +0 -14
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js.map +0 -1
- package/dist/cli-tui/queue-panel-modal.d.ts +0 -26
- package/dist/cli-tui/queue-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/queue-panel-modal.js +0 -159
- package/dist/cli-tui/queue-panel-modal.js.map +0 -1
- package/dist/cli-tui/run/run-command-view.d.ts +0 -17
- package/dist/cli-tui/run/run-command-view.d.ts.map +0 -1
- package/dist/cli-tui/run/run-command-view.js +0 -62
- package/dist/cli-tui/run/run-command-view.js.map +0 -1
- package/dist/cli-tui/run/run-controller.d.ts +0 -24
- package/dist/cli-tui/run/run-controller.d.ts.map +0 -1
- package/dist/cli-tui/run/run-controller.js +0 -38
- package/dist/cli-tui/run/run-controller.js.map +0 -1
- package/dist/cli-tui/run/run-shell-command.d.ts +0 -13
- package/dist/cli-tui/run/run-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/run-shell-command.js +0 -51
- package/dist/cli-tui/run/run-shell-command.js.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts +0 -19
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.js +0 -107
- package/dist/cli-tui/run/streaming-shell-command.js.map +0 -1
- package/dist/cli-tui/search/file-search-view.d.ts +0 -22
- package/dist/cli-tui/search/file-search-view.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search-view.js +0 -68
- package/dist/cli-tui/search/file-search-view.js.map +0 -1
- package/dist/cli-tui/search/file-search.d.ts +0 -13
- package/dist/cli-tui/search/file-search.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search.js +0 -52
- package/dist/cli-tui/search/file-search.js.map +0 -1
- package/dist/cli-tui/security-status.d.ts +0 -83
- package/dist/cli-tui/security-status.d.ts.map +0 -1
- package/dist/cli-tui/security-status.js +0 -214
- package/dist/cli-tui/security-status.js.map +0 -1
- package/dist/cli-tui/selectors/base-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/base-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/base-selector.js +0 -47
- package/dist/cli-tui/selectors/base-selector.js.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts +0 -18
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.js +0 -24
- package/dist/cli-tui/selectors/branch-summary-modal.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.d.ts +0 -22
- package/dist/cli-tui/selectors/model-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.js +0 -31
- package/dist/cli-tui/selectors/model-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/model-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector.js +0 -218
- package/dist/cli-tui/selectors/model-selector.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.js +0 -28
- package/dist/cli-tui/selectors/oauth-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.d.ts +0 -19
- package/dist/cli-tui/selectors/oauth-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.js +0 -120
- package/dist/cli-tui/selectors/oauth-selector.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.js +0 -29
- package/dist/cli-tui/selectors/queue-mode-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts +0 -5
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.js +0 -34
- package/dist/cli-tui/selectors/queue-mode-selector.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.d.ts +0 -17
- package/dist/cli-tui/selectors/report-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.js +0 -29
- package/dist/cli-tui/selectors/report-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector.d.ts +0 -7
- package/dist/cli-tui/selectors/report-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector.js +0 -31
- package/dist/cli-tui/selectors/report-selector.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/theme-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.js +0 -41
- package/dist/cli-tui/selectors/theme-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.d.ts +0 -14
- package/dist/cli-tui/selectors/theme-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.js +0 -46
- package/dist/cli-tui/selectors/theme-selector.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.js +0 -31
- package/dist/cli-tui/selectors/thinking-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.d.ts +0 -9
- package/dist/cli-tui/selectors/thinking-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.js +0 -47
- package/dist/cli-tui/selectors/thinking-selector.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.d.ts +0 -32
- package/dist/cli-tui/selectors/tree-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.js +0 -407
- package/dist/cli-tui/selectors/tree-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/tree-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.js +0 -194
- package/dist/cli-tui/selectors/tree-selector.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts +0 -25
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.js +0 -101
- package/dist/cli-tui/selectors/user-message-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/user-message-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.js +0 -114
- package/dist/cli-tui/selectors/user-message-selector.js.map +0 -1
- package/dist/cli-tui/session/branch-controller.d.ts +0 -65
- package/dist/cli-tui/session/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/branch-controller.js +0 -125
- package/dist/cli-tui/session/branch-controller.js.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.d.ts +0 -64
- package/dist/cli-tui/session/conversation-compactor.d.ts.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.js +0 -77
- package/dist/cli-tui/session/conversation-compactor.js.map +0 -1
- package/dist/cli-tui/session/session-context.d.ts +0 -59
- package/dist/cli-tui/session/session-context.d.ts.map +0 -1
- package/dist/cli-tui/session/session-context.js +0 -79
- package/dist/cli-tui/session/session-context.js.map +0 -1
- package/dist/cli-tui/session/session-data-provider.d.ts +0 -23
- package/dist/cli-tui/session/session-data-provider.d.ts.map +0 -1
- package/dist/cli-tui/session/session-data-provider.js +0 -22
- package/dist/cli-tui/session/session-data-provider.js.map +0 -1
- package/dist/cli-tui/session/session-list.d.ts +0 -18
- package/dist/cli-tui/session/session-list.d.ts.map +0 -1
- package/dist/cli-tui/session/session-list.js +0 -103
- package/dist/cli-tui/session/session-list.js.map +0 -1
- package/dist/cli-tui/session/session-selector.d.ts +0 -12
- package/dist/cli-tui/session/session-selector.d.ts.map +0 -1
- package/dist/cli-tui/session/session-selector.js +0 -37
- package/dist/cli-tui/session/session-selector.js.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.d.ts +0 -24
- package/dist/cli-tui/session/session-summary-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.js +0 -96
- package/dist/cli-tui/session/session-summary-controller.js.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.d.ts +0 -20
- package/dist/cli-tui/session/session-switcher-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.js +0 -43
- package/dist/cli-tui/session/session-switcher-view.js.map +0 -1
- package/dist/cli-tui/session/session-switcher.d.ts +0 -38
- package/dist/cli-tui/session/session-switcher.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher.js +0 -204
- package/dist/cli-tui/session/session-switcher.js.map +0 -1
- package/dist/cli-tui/session/session-view.d.ts +0 -46
- package/dist/cli-tui/session/session-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-view.js +0 -311
- package/dist/cli-tui/session/session-view.js.map +0 -1
- package/dist/cli-tui/slash/index.d.ts +0 -2
- package/dist/cli-tui/slash/index.d.ts.map +0 -1
- package/dist/cli-tui/slash/index.js +0 -2
- package/dist/cli-tui/slash/index.js.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.d.ts +0 -55
- package/dist/cli-tui/slash/slash-command-matcher.d.ts.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.js +0 -113
- package/dist/cli-tui/slash/slash-command-matcher.js.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.d.ts +0 -5
- package/dist/cli-tui/smart-autocomplete-provider.d.ts.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.js +0 -44
- package/dist/cli-tui/smart-autocomplete-provider.js.map +0 -1
- package/dist/cli-tui/startup-announcements.d.ts +0 -15
- package/dist/cli-tui/startup-announcements.d.ts.map +0 -1
- package/dist/cli-tui/startup-announcements.js +0 -75
- package/dist/cli-tui/startup-announcements.js.map +0 -1
- package/dist/cli-tui/status/cost-view.d.ts +0 -27
- package/dist/cli-tui/status/cost-view.d.ts.map +0 -1
- package/dist/cli-tui/status/cost-view.js +0 -212
- package/dist/cli-tui/status/cost-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.d.ts +0 -34
- package/dist/cli-tui/status/diagnostics-templates.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.js +0 -167
- package/dist/cli-tui/status/diagnostics-templates.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.d.ts +0 -48
- package/dist/cli-tui/status/diagnostics-view.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.js +0 -249
- package/dist/cli-tui/status/diagnostics-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics.d.ts +0 -39
- package/dist/cli-tui/status/diagnostics.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics.js +0 -286
- package/dist/cli-tui/status/diagnostics.js.map +0 -1
- package/dist/cli-tui/status/health-snapshot.d.ts +0 -17
- package/dist/cli-tui/status/health-snapshot.d.ts.map +0 -1
- package/dist/cli-tui/status/health-snapshot.js +0 -28
- package/dist/cli-tui/status/health-snapshot.js.map +0 -1
- package/dist/cli-tui/status/quota-view.d.ts +0 -37
- package/dist/cli-tui/status/quota-view.d.ts.map +0 -1
- package/dist/cli-tui/status/quota-view.js +0 -309
- package/dist/cli-tui/status/quota-view.js.map +0 -1
- package/dist/cli-tui/status/telemetry-view.d.ts +0 -23
- package/dist/cli-tui/status/telemetry-view.d.ts.map +0 -1
- package/dist/cli-tui/status/telemetry-view.js +0 -77
- package/dist/cli-tui/status/telemetry-view.js.map +0 -1
- package/dist/cli-tui/status/training-view.d.ts +0 -23
- package/dist/cli-tui/status/training-view.d.ts.map +0 -1
- package/dist/cli-tui/status/training-view.js +0 -71
- package/dist/cli-tui/status/training-view.js.map +0 -1
- package/dist/cli-tui/streaming-view.d.ts +0 -43
- package/dist/cli-tui/streaming-view.d.ts.map +0 -1
- package/dist/cli-tui/streaming-view.js +0 -176
- package/dist/cli-tui/streaming-view.js.map +0 -1
- package/dist/cli-tui/terminal/index.d.ts +0 -2
- package/dist/cli-tui/terminal/index.d.ts.map +0 -1
- package/dist/cli-tui/terminal/index.js +0 -2
- package/dist/cli-tui/terminal/index.js.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.d.ts +0 -44
- package/dist/cli-tui/terminal/terminal-utils.d.ts.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.js +0 -145
- package/dist/cli-tui/terminal/terminal-utils.js.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.d.ts +0 -19
- package/dist/cli-tui/tips/tip-scheduler.d.ts.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.js +0 -135
- package/dist/cli-tui/tips/tip-scheduler.js.map +0 -1
- package/dist/cli-tui/tool-execution.d.ts +0 -76
- package/dist/cli-tui/tool-execution.d.ts.map +0 -1
- package/dist/cli-tui/tool-execution.js +0 -217
- package/dist/cli-tui/tool-execution.js.map +0 -1
- package/dist/cli-tui/tool-output-view.d.ts +0 -22
- package/dist/cli-tui/tool-output-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-output-view.js +0 -71
- package/dist/cli-tui/tool-output-view.js.map +0 -1
- package/dist/cli-tui/tool-renderers/index.d.ts +0 -4
- package/dist/cli-tui/tool-renderers/index.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/index.js +0 -19
- package/dist/cli-tui/tool-renderers/index.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-bash.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.js +0 -90
- package/dist/cli-tui/tool-renderers/render-bash.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.d.ts +0 -12
- package/dist/cli-tui/tool-renderers/render-batch.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.js +0 -133
- package/dist/cli-tui/tool-renderers/render-batch.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-edit.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.js +0 -125
- package/dist/cli-tui/tool-renderers/render-edit.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-generic.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.js +0 -66
- package/dist/cli-tui/tool-renderers/render-generic.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.d.ts +0 -9
- package/dist/cli-tui/tool-renderers/render-read.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.js +0 -108
- package/dist/cli-tui/tool-renderers/render-read.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.d.ts +0 -21
- package/dist/cli-tui/tool-renderers/render-style.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.js +0 -51
- package/dist/cli-tui/tool-renderers/render-style.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.d.ts +0 -5
- package/dist/cli-tui/tool-renderers/render-write.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.js +0 -60
- package/dist/cli-tui/tool-renderers/render-write.js.map +0 -1
- package/dist/cli-tui/tool-renderers/types.d.ts +0 -20
- package/dist/cli-tui/tool-renderers/types.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/types.js +0 -2
- package/dist/cli-tui/tool-renderers/types.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts +0 -29
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.js +0 -110
- package/dist/cli-tui/tool-retry/tool-retry-controller.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts +0 -27
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.js +0 -118
- package/dist/cli-tui/tool-retry/tool-retry-modal.js.map +0 -1
- package/dist/cli-tui/tool-status-view.d.ts +0 -32
- package/dist/cli-tui/tool-status-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-status-view.js +0 -86
- package/dist/cli-tui/tool-status-view.js.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +0 -129
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/approval-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts +0 -54
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/attachment-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts +0 -9
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js +0 -7
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts +0 -41
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.js +0 -102
- package/dist/cli-tui/tui-renderer/branch-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.js +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/client-tools-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +0 -111
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +0 -163
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.d.ts +0 -16
- package/dist/cli-tui/tui-renderer/command-registry.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.js +0 -23
- package/dist/cli-tui/tui-renderer/command-registry.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +0 -29
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +0 -108
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts +0 -100
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/compaction-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts +0 -42
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js +0 -106
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts +0 -37
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js +0 -139
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.js +0 -76
- package/dist/cli-tui/tui-renderer/editor-bindings.js.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js +0 -152
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.d.ts +0 -35
- package/dist/cli-tui/tui-renderer/history-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.js +0 -153
- package/dist/cli-tui/tui-renderer/history-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts +0 -83
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js +0 -309
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.js +0 -54
- package/dist/cli-tui/tui-renderer/initial-preferences.js.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +0 -56
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +0 -104
- package/dist/cli-tui/tui-renderer/input-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.js +0 -18
- package/dist/cli-tui/tui-renderer/interrupt-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.js +0 -13
- package/dist/cli-tui/tui-renderer/loader-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts +0 -55
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js +0 -143
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.js +0 -143
- package/dist/cli-tui/tui-renderer/misc-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.js +0 -26
- package/dist/cli-tui/tui-renderer/oauth-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/plan-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js +0 -64
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts +0 -18
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.js +0 -42
- package/dist/cli-tui/tui-renderer/queue-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts +0 -53
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js +0 -100
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.d.ts +0 -31
- package/dist/cli-tui/tui-renderer/session-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.js +0 -45
- package/dist/cli-tui/tui-renderer/session-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts +0 -66
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.js +0 -139
- package/dist/cli-tui/tui-renderer/session-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts +0 -73
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +0 -455
- package/dist/cli-tui/tui-renderer/skills-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js +0 -131
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts +0 -38
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js +0 -48
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +0 -70
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +0 -184
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.js +0 -11
- package/dist/cli-tui/tui-renderer/ui-state-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts +0 -26
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/utility-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts +0 -33
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.js +0 -98
- package/dist/cli-tui/tui-renderer/viewport-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer.d.ts +0 -268
- package/dist/cli-tui/tui-renderer.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer.js +0 -2131
- package/dist/cli-tui/tui-renderer.js.map +0 -1
- package/dist/cli-tui/ui-state.d.ts.map +0 -1
- package/dist/cli-tui/ui-state.js.map +0 -1
- package/dist/cli-tui/update-view.d.ts +0 -16
- package/dist/cli-tui/update-view.d.ts.map +0 -1
- package/dist/cli-tui/update-view.js +0 -45
- package/dist/cli-tui/update-view.js.map +0 -1
- package/dist/cli-tui/user-message.d.ts +0 -17
- package/dist/cli-tui/user-message.d.ts.map +0 -1
- package/dist/cli-tui/user-message.js +0 -83
- package/dist/cli-tui/user-message.js.map +0 -1
- package/dist/cli-tui/utils/borders.d.ts +0 -131
- package/dist/cli-tui/utils/borders.d.ts.map +0 -1
- package/dist/cli-tui/utils/borders.js +0 -254
- package/dist/cli-tui/utils/borders.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts +0 -22
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.js +0 -31
- package/dist/cli-tui/utils/commands/command-palette-view.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.d.ts +0 -29
- package/dist/cli-tui/utils/commands/command-palette.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.js +0 -213
- package/dist/cli-tui/utils/commands/command-palette.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts +0 -8
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.js +0 -9
- package/dist/cli-tui/utils/commands/command-registry-builder.js.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +0 -10
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +0 -90
- package/dist/cli-tui/utils/commands/review-prompt.js.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts +0 -15
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.js +0 -106
- package/dist/cli-tui/utils/commands/slash-hint-bar.js.map +0 -1
- package/dist/cli-tui/utils/env-detect.d.ts +0 -11
- package/dist/cli-tui/utils/env-detect.d.ts.map +0 -1
- package/dist/cli-tui/utils/env-detect.js +0 -107
- package/dist/cli-tui/utils/env-detect.js.map +0 -1
- package/dist/cli-tui/utils/external-editor.d.ts +0 -7
- package/dist/cli-tui/utils/external-editor.d.ts.map +0 -1
- package/dist/cli-tui/utils/external-editor.js +0 -53
- package/dist/cli-tui/utils/external-editor.js.map +0 -1
- package/dist/cli-tui/utils/footer-utils.d.ts +0 -169
- package/dist/cli-tui/utils/footer-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-utils.js +0 -716
- package/dist/cli-tui/utils/footer-utils.js.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts +0 -38
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.js +0 -141
- package/dist/cli-tui/utils/footer-visual-widgets.js.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.d.ts +0 -38
- package/dist/cli-tui/utils/git-branch-tracker.d.ts.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.js +0 -90
- package/dist/cli-tui/utils/git-branch-tracker.js.map +0 -1
- package/dist/cli-tui/utils/glyphs.d.ts +0 -207
- package/dist/cli-tui/utils/glyphs.d.ts.map +0 -1
- package/dist/cli-tui/utils/glyphs.js +0 -249
- package/dist/cli-tui/utils/glyphs.js.map +0 -1
- package/dist/cli-tui/utils/layout.d.ts +0 -77
- package/dist/cli-tui/utils/layout.d.ts.map +0 -1
- package/dist/cli-tui/utils/layout.js +0 -83
- package/dist/cli-tui/utils/layout.js.map +0 -1
- package/dist/cli-tui/utils/links.d.ts +0 -2
- package/dist/cli-tui/utils/links.d.ts.map +0 -1
- package/dist/cli-tui/utils/links.js +0 -14
- package/dist/cli-tui/utils/links.js.map +0 -1
- package/dist/cli-tui/utils/motion.d.ts +0 -4
- package/dist/cli-tui/utils/motion.d.ts.map +0 -1
- package/dist/cli-tui/utils/motion.js +0 -28
- package/dist/cli-tui/utils/motion.js.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +0 -26
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.js +0 -178
- package/dist/cli-tui/utils/runtime-badges.js.map +0 -1
- package/dist/cli-tui/utils/shimmer.d.ts +0 -12
- package/dist/cli-tui/utils/shimmer.d.ts.map +0 -1
- package/dist/cli-tui/utils/shimmer.js +0 -57
- package/dist/cli-tui/utils/shimmer.js.map +0 -1
- package/dist/cli-tui/utils/stage-labels.d.ts +0 -9
- package/dist/cli-tui/utils/stage-labels.d.ts.map +0 -1
- package/dist/cli-tui/utils/stage-labels.js +0 -65
- package/dist/cli-tui/utils/stage-labels.js.map +0 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +0 -13
- package/dist/cli-tui/utils/text-formatting.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-formatting.js +0 -109
- package/dist/cli-tui/utils/text-formatting.js.map +0 -1
- package/dist/cli-tui/utils/text-preview.d.ts +0 -10
- package/dist/cli-tui/utils/text-preview.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-preview.js +0 -26
- package/dist/cli-tui/utils/text-preview.js.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.d.ts +0 -42
- package/dist/cli-tui/utils/tool-text-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.js +0 -361
- package/dist/cli-tui/utils/tool-text-utils.js.map +0 -1
- package/dist/cli-tui/welcome-animation.d.ts +0 -24
- package/dist/cli-tui/welcome-animation.d.ts.map +0 -1
- package/dist/cli-tui/welcome-animation.js +0 -99
- package/dist/cli-tui/welcome-animation.js.map +0 -1
- package/dist/cli-tui/welcome-colors.d.ts +0 -3
- package/dist/cli-tui/welcome-colors.d.ts.map +0 -1
- package/dist/cli-tui/welcome-colors.js +0 -39
- package/dist/cli-tui/welcome-colors.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts +0 -304
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js +0 -712
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts +0 -185
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.js +0 -1460
- package/dist/node_modules/@evalops/tui/dist/components/editor.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts +0 -117
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.js +0 -391
- package/dist/node_modules/@evalops/tui/dist/components/input.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts +0 -256
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.js +0 -478
- package/dist/node_modules/@evalops/tui/dist/components/layout.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts +0 -199
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.js +0 -374
- package/dist/node_modules/@evalops/tui/dist/components/loader.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts +0 -65
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js +0 -562
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts +0 -262
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js +0 -575
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts +0 -131
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js +0 -257
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts +0 -11
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js +0 -19
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts +0 -22
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts +0 -26
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.js +0 -181
- package/dist/node_modules/@evalops/tui/dist/components/text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts +0 -15
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js +0 -84
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.d.ts +0 -87
- package/dist/node_modules/@evalops/tui/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.js +0 -85
- package/dist/node_modules/@evalops/tui/dist/index.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts +0 -189
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.js +0 -363
- package/dist/node_modules/@evalops/tui/dist/keymap.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts +0 -25
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js +0 -828
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts +0 -40
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js +0 -474
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts +0 -201
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.js +0 -241
- package/dist/node_modules/@evalops/tui/dist/terminal.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts +0 -263
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.js +0 -694
- package/dist/node_modules/@evalops/tui/dist/tui.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts +0 -14
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts +0 -32
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.js +0 -556
- package/dist/node_modules/@evalops/tui/dist/utils.js.map +0 -1
- package/dist/node_modules/@evalops/tui/package.json +0 -58
- package/dist/skills/artifact-metadata.d.ts.map +0 -1
- package/dist/skills/artifact-metadata.js.map +0 -1
- package/dist/skills/composer-diagnostics.d.ts +0 -69
- package/dist/skills/composer-diagnostics.d.ts.map +0 -1
- package/dist/skills/composer-diagnostics.js +0 -78
- package/dist/skills/composer-diagnostics.js.map +0 -1
- package/dist/skills/composer.d.ts +0 -19
- package/dist/skills/composer.d.ts.map +0 -1
- package/dist/skills/composer.js +0 -64
- package/dist/skills/composer.js.map +0 -1
- package/dist/skills/eval-harness.d.ts +0 -38
- package/dist/skills/eval-harness.d.ts.map +0 -1
- package/dist/skills/eval-harness.js +0 -112
- package/dist/skills/eval-harness.js.map +0 -1
- package/dist/skills/index.d.ts +0 -41
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -41
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/learned-guidelines.d.ts +0 -33
- package/dist/skills/learned-guidelines.d.ts.map +0 -1
- package/dist/skills/learned-guidelines.js +0 -291
- package/dist/skills/learned-guidelines.js.map +0 -1
- package/dist/skills/linter.d.ts +0 -36
- package/dist/skills/linter.d.ts.map +0 -1
- package/dist/skills/linter.js +0 -397
- package/dist/skills/linter.js.map +0 -1
- package/dist/skills/loader.d.ts +0 -252
- package/dist/skills/loader.d.ts.map +0 -1
- package/dist/skills/loader.js +0 -957
- package/dist/skills/loader.js.map +0 -1
- package/dist/skills/package-contract.d.ts +0 -45
- package/dist/skills/package-contract.d.ts.map +0 -1
- package/dist/skills/package-contract.js +0 -153
- package/dist/skills/package-contract.js.map +0 -1
- package/dist/skills/runtime-activation.d.ts +0 -69
- package/dist/skills/runtime-activation.d.ts.map +0 -1
- package/dist/skills/runtime-activation.js +0 -227
- package/dist/skills/runtime-activation.js.map +0 -1
- package/dist/skills/scaffold-from-template.d.ts +0 -58
- package/dist/skills/scaffold-from-template.d.ts.map +0 -1
- package/dist/skills/scaffold-from-template.js +0 -72
- package/dist/skills/scaffold-from-template.js.map +0 -1
- package/dist/skills/scaffolder.d.ts +0 -65
- package/dist/skills/scaffolder.d.ts.map +0 -1
- package/dist/skills/scaffolder.js +0 -167
- package/dist/skills/scaffolder.js.map +0 -1
- package/dist/skills/service-client.d.ts +0 -56
- package/dist/skills/service-client.d.ts.map +0 -1
- package/dist/skills/service-client.js +0 -266
- package/dist/skills/service-client.js.map +0 -1
- package/dist/skills/skill-templates.d.ts +0 -70
- package/dist/skills/skill-templates.d.ts.map +0 -1
- package/dist/skills/skill-templates.js +0 -154
- package/dist/skills/skill-templates.js.map +0 -1
- package/dist/skills/tool.d.ts +0 -21
- package/dist/skills/tool.d.ts.map +0 -1
- package/dist/skills/tool.js +0 -339
- package/dist/skills/tool.js.map +0 -1
- package/dist/skills/trust-cache.d.ts +0 -65
- package/dist/skills/trust-cache.d.ts.map +0 -1
- package/dist/skills/trust-cache.js +0 -146
- package/dist/skills/trust-cache.js.map +0 -1
- package/dist/skills/types.d.ts +0 -91
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -8
- package/dist/skills/types.js.map +0 -1
- /package/dist/{cli-tui → runtime}/prompt-queue.d.ts +0 -0
- /package/dist/{cli-tui → runtime}/prompt-queue.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-execution.js","sourceRoot":"","sources":["../../src/cli-tui/tool-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAmB,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAEN,kBAAkB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,qBAAqB,EACrB,cAAc,GAEd,M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,aAAa,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC;YAC/D,OAAO,GAAG,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;YACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,aAAa;YACzC,SAAS,EAAE,IAAI,CAAC,SAAS;SACzB,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC;QACb,CAAC;QACD,MAAM,MAAM,GAAG,KAAK,CAAC,EAAE,CACtB,SAAS,EACT,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,mBAAmB,EAAE,CACzD,CAAC;QACF,OAAO,GAAG,MAAM,OAAO,IAAI,EAAE,CAAC;IAC/B,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,yBAAyB;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC9B,CAAC","sourcesContent":["import { Container, Spacer, Text } from \"@evalops/tui\";\nimport { type ThemeColor, theme } from \"../theme/theme.js\";\nimport { summarizeToolUse } from \"../utils/tool-use-summary.js\";\nimport {\n\ttype ToolRenderer,\n\tcreateToolRenderer,\n} from \"./tool-renderers/index.js\";\nimport {\n\tbuildTopLineWithBadge,\n\tgetBorderChars,\n\tthemedBottomLine,\n} from \"./utils/borders.js\";\nimport {\n\ttype StatusName,\n\tskeletonFrames,\n\tstatusGlyph,\n\ttoolIcon,\n} from \"./utils/glyphs.js\";\nimport { PANEL_WIDTHS, responsiveWidth } from \"./utils/layout.js\";\n\n/** Tool execution status for visual display */\ntype ToolStatus = \"running\" | \"done\" | \"error\" | \"waiting\";\n\n/** Status badge config - Claude Code style (minimal, semantic) */\nconst STATUS_CONFIG: Record<\n\tToolStatus,\n\t{ label: string; glyphKey: StatusName; color: ThemeColor }\n> = {\n\trunning: { label: \"running\", glyphKey: \"running\", color: \"warning\" },\n\tdone: { label: \"done\", glyphKey: \"done\", color: \"success\" },\n\terror: { label: \"error\", glyphKey: \"error\", color: \"error\" },\n\twaiting: { label: \"waiting\", glyphKey: \"waiting\", color: \"warning\" },\n};\n\n/** Duration for border flash effect in ms */\nconst FLASH_DURATION_MS = 400;\n\n/** Skeleton shimmer animation interval */\nconst SKELETON_INTERVAL_MS = 150;\n\n/**\n * Component that renders a tool call with its result (updateable)\n */\nexport class ToolExecutionComponent extends Container {\n\tprivate contentText: Text;\n\tprivate topLine: Text;\n\tprivate bottomLine: Text;\n\tprivate toolName: string;\n\tprivate displayName?: string;\n\tprivate summaryLabel?: string;\n\tprivate args: Record<string, unknown>;\n\tprivate partialArgs: Record<string, unknown>;\n\tprivate collapsed = false;\n\tprivate defaultCollapsed = false;\n\tprivate pendingStatus: string | null = null;\n\tprivate result?: {\n\t\tcontent: Array<{\n\t\t\ttype: string;\n\t\t\ttext?: string;\n\t\t\tdata?: string;\n\t\t\tmimeType?: string;\n\t\t}>;\n\t\tisError: boolean;\n\t\tdetails?: unknown;\n\t};\n\tprivate partialResult?: {\n\t\tcontent: Array<{\n\t\t\ttype: string;\n\t\t\ttext?: string;\n\t\t\tdata?: string;\n\t\t\tmimeType?: string;\n\t\t}>;\n\t\tisError: boolean;\n\t\tdetails?: unknown;\n\t};\n\n\tprivate renderer: ToolRenderer;\n\n\t/** Border flash state: null = no flash, \"success\" | \"error\" = flashing */\n\tprivate flashState: \"success\" | \"error\" | null = null;\n\tprivate flashTimeout: NodeJS.Timeout | null = null;\n\n\t/** Skeleton shimmer animation state */\n\tprivate skeletonFrame = 0;\n\tprivate skeletonTimer: NodeJS.Timeout | null = null;\n\tprivate readonly animate: boolean;\n\n\tconstructor(\n\t\ttoolName: string,\n\t\targs: Record<string, unknown>,\n\t\toptions: {\n\t\t\tdisableAnimations?: boolean;\n\t\t\tdisplayName?: string;\n\t\t\tsummaryLabel?: string;\n\t\t} = {},\n\t) {\n\t\tsuper();\n\t\tthis.animate = !options.disableAnimations;\n\t\tthis.toolName = toolName;\n\t\tthis.displayName = options.displayName;\n\t\tthis.summaryLabel = options.summaryLabel;\n\t\tthis.args = args;\n\t\tthis.partialArgs = args;\n\t\tthis.defaultCollapsed = false;\n\t\tthis.collapsed = this.defaultCollapsed;\n\t\tthis.addChild(new Spacer(1));\n\t\tthis.topLine = new Text(this.buildTopLine(), 1, 0);\n\t\tthis.addChild(this.topLine);\n\t\t// Content\n\t\tthis.contentText = new Text(\"\", 1, 1);\n\t\tthis.addChild(this.contentText);\n\t\tthis.bottomLine = new Text(this.buildBottomLine(), 1, 0);\n\t\tthis.addChild(this.bottomLine);\n\t\tthis.renderer = createToolRenderer(this.toolName);\n\t\tthis.updateDisplay();\n\t\tif (this.animate) {\n\t\t\tthis.startSkeletonAnimation();\n\t\t}\n\t}\n\n\tprivate startSkeletonAnimation(): void {\n\t\tif (this.skeletonTimer) return;\n\t\tthis.skeletonTimer = setInterval(() => {\n\t\t\tif (!this.result) {\n\t\t\t\tthis.skeletonFrame = (this.skeletonFrame + 1) % skeletonFrames().length;\n\t\t\t\tthis.updateDisplay();\n\t\t\t}\n\t\t}, SKELETON_INTERVAL_MS);\n\t}\n\n\tprivate stopSkeletonAnimation(): void {\n\t\tif (this.skeletonTimer) {\n\t\t\tclearInterval(this.skeletonTimer);\n\t\t\tthis.skeletonTimer = null;\n\t\t}\n\t}\n\n\tprivate buildSkeletonLine(width: number): string {\n\t\tconst frames = skeletonFrames();\n\t\tconst frame = frames[this.skeletonFrame] ?? frames[0] ?? \"\";\n\t\treturn theme.fg(\"dim\", frame.repeat(Math.min(width, 30)));\n\t}\n\n\tsetCollapsed(collapsed: boolean): void {\n\t\tthis.collapsed = collapsed;\n\t\tthis.updateDisplay();\n\t}\n\n\tprivate static readonly PANEL_WIDTH = PANEL_WIDTHS.tool;\n\n\tprivate getToolIcon(): string {\n\t\treturn toolIcon(this.toolName);\n\t}\n\n\tprivate getStatus(): ToolStatus {\n\t\tif (this.pendingStatus) {\n\t\t\treturn \"waiting\";\n\t\t}\n\t\tif (!this.result) {\n\t\t\treturn \"running\";\n\t\t}\n\t\treturn this.result.isError ? \"error\" : \"done\";\n\t}\n\n\tprivate getBorderColor(): ThemeColor {\n\t\tif (this.flashState === \"success\") return \"success\";\n\t\tif (this.flashState === \"error\") return \"error\";\n\t\treturn \"borderMuted\";\n\t}\n\n\tprivate buildTopLine(): string {\n\t\tconst icon = this.getToolIcon();\n\t\tconst label = `${icon} ${\n\t\t\tthis.summaryLabel ||\n\t\t\tthis.displayName ||\n\t\t\tsummarizeToolUse(this.toolName, this.partialArgs)\n\t\t}`;\n\t\tconst status = this.getStatus();\n\t\tconst {\n\t\t\tlabel: statusLabel,\n\t\t\tglyphKey,\n\t\t\tcolor: badgeColor,\n\t\t} = STATUS_CONFIG[status];\n\t\tconst glyph = statusGlyph(glyphKey);\n\t\tconst badge = `${glyph} ${statusLabel}`;\n\n\t\treturn buildTopLineWithBadge(this.panelWidth(), {\n\t\t\tstyle: \"square\",\n\t\t\ttitle: label,\n\t\t\tbadge,\n\t\t\tbadgeColor,\n\t\t\tborderColor: this.getBorderColor(),\n\t\t});\n\t}\n\n\tprivate buildBottomLine(): string {\n\t\tconst chars = getBorderChars(\"square\");\n\t\tconst innerWidth = Math.max(0, this.panelWidth() - 2);\n\t\treturn theme.fg(\n\t\t\tthis.getBorderColor(),\n\t\t\t`${chars.bottomLeft}${chars.horizontal.repeat(innerWidth)}${chars.bottomRight}`,\n\t\t);\n\t}\n\n\tprivate triggerFlash(type: \"success\" | \"error\"): void {\n\t\t// Clear any existing flash timeout\n\t\tif (this.flashTimeout) {\n\t\t\tclearTimeout(this.flashTimeout);\n\t\t}\n\t\tthis.flashState = type;\n\t\tthis.updateDisplay();\n\n\t\t// Reset flash after duration\n\t\tthis.flashTimeout = setTimeout(() => {\n\t\t\tthis.flashState = null;\n\t\t\tthis.flashTimeout = null;\n\t\t\tthis.updateDisplay();\n\t\t}, FLASH_DURATION_MS);\n\t}\n\n\tprivate panelWidth(): number {\n\t\tconst cols = process.stdout.columns ?? 80;\n\t\t// Keep things readable on narrow terminals but expand when space allows.\n\t\treturn responsiveWidth(cols, 48, 100, 0.72);\n\t}\n\n\tupdateArgs(args: Record<string, unknown>): void {\n\t\tthis.args = args;\n\t\tthis.partialArgs = args;\n\t\tthis.updateDisplay();\n\t}\n\n\tupdatePresentation(\n\t\tpresentation: { displayName?: string; summaryLabel?: string } = {},\n\t): void {\n\t\tthis.displayName = presentation.displayName ?? this.displayName;\n\t\tthis.summaryLabel = presentation.summaryLabel ?? this.summaryLabel;\n\t\tthis.updateDisplay();\n\t}\n\n\tupdatePartialArgs(args: Record<string, unknown>): void {\n\t\tthis.partialArgs = args;\n\t\tthis.updateDisplay();\n\t}\n\n\tupdateResult(result: {\n\t\tcontent: Array<{\n\t\t\ttype: string;\n\t\t\ttext?: string;\n\t\t\tdata?: string;\n\t\t\tmimeType?: string;\n\t\t}>;\n\t\tdetails?: unknown;\n\t\tisError: boolean;\n\t}): void {\n\t\tconst wasRunning = !this.result;\n\t\tthis.result = result;\n\t\tthis.partialResult = undefined;\n\n\t\t// Stop skeleton animation once we have a result\n\t\tthis.stopSkeletonAnimation();\n\n\t\t// Trigger border flash on completion\n\t\tif (wasRunning && this.animate) {\n\t\t\tthis.triggerFlash(result.isError ? \"error\" : \"success\");\n\t\t} else {\n\t\t\tthis.updateDisplay();\n\t\t}\n\t}\n\n\tsetPendingStatus(status: string | null): void {\n\t\tthis.pendingStatus = status;\n\t\tthis.updateDisplay();\n\t}\n\n\tupdatePartialResult(partial: {\n\t\tcontent: Array<{\n\t\t\ttype: string;\n\t\t\ttext?: string;\n\t\t\tdata?: string;\n\t\t\tmimeType?: string;\n\t\t}>;\n\t\tdetails?: unknown;\n\t\tisError?: boolean;\n\t}): void {\n\t\tthis.partialResult = {\n\t\t\tcontent: partial.content,\n\t\t\tdetails: partial.details,\n\t\t\tisError: partial.isError ?? false,\n\t\t};\n\t\tthis.stopSkeletonAnimation();\n\t\tthis.updateDisplay();\n\t}\n\n\tprivate updateDisplay(): void {\n\t\t// Refresh borders so they adapt to current terminal width.\n\t\tthis.topLine.setText(this.buildTopLine());\n\t\tthis.bottomLine.setText(this.buildBottomLine());\n\t\t// We rely on ANSI colors in the text itself rather than background fill\n\t\t// for a cleaner look\n\t\tthis.contentText.setText(this.formatToolExecution());\n\t}\n\n\tprivate formatToolExecution(): string {\n\t\t// Show skeleton shimmer while waiting for result\n\t\tif (!this.result && !this.pendingStatus && !this.partialResult) {\n\t\t\tconst skeleton = this.buildSkeletonLine(this.panelWidth() - 4);\n\t\t\treturn `${skeleton}\\n${skeleton}`;\n\t\t}\n\n\t\tconst body = this.renderer.render({\n\t\t\ttoolName: this.toolName,\n\t\t\targs: this.args,\n\t\t\tpartialArgs: this.partialArgs,\n\t\t\tresult: this.result ?? this.partialResult,\n\t\t\tcollapsed: this.collapsed,\n\t\t});\n\t\tif (!this.pendingStatus) {\n\t\t\treturn body;\n\t\t}\n\t\tconst banner = theme.fg(\n\t\t\t\"warning\",\n\t\t\t`(!) ${this.pendingStatus.trim() || \"Awaiting approval\"}`,\n\t\t);\n\t\treturn `${banner}\\n\\n${body}`;\n\t}\n\n\tgetToolName(): string {\n\t\treturn this.toolName;\n\t}\n\n\tprefersCollapsedByDefault(): boolean {\n\t\treturn this.defaultCollapsed;\n\t}\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { TUI } from "@evalops/tui";
|
|
2
|
-
import type { ToolExecutionComponent } from "./tool-execution.js";
|
|
3
|
-
interface ToolOutputViewOptions {
|
|
4
|
-
ui: TUI;
|
|
5
|
-
showInfoMessage: (message: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare class ToolOutputView {
|
|
8
|
-
private readonly options;
|
|
9
|
-
private readonly toolComponents;
|
|
10
|
-
private compactToolOutputs;
|
|
11
|
-
constructor(options: ToolOutputViewOptions);
|
|
12
|
-
registerToolComponent(component: ToolExecutionComponent): void;
|
|
13
|
-
clearTrackedComponents(): void;
|
|
14
|
-
getTrackedComponents(): Set<ToolExecutionComponent>;
|
|
15
|
-
handleCompactToolsCommand(text: string): void;
|
|
16
|
-
setCompactMode(compact: boolean, silent?: boolean): void;
|
|
17
|
-
toggleCompactMode(): boolean;
|
|
18
|
-
isCompact(): boolean;
|
|
19
|
-
private applyCompactModeToTools;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=tool-output-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-output-view.d.ts","sourceRoot":"","sources":["../../src/cli-tui/tool-output-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,UAAU,qBAAqB;IAC9B,EAAE,EAAE,GAAG,CAAC;IACR,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,qBAAa,cAAc;IAId,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHpC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,kBAAkB,CAAS;gBAEN,OAAO,EAAE,qBAAqB;IAE3D,qBAAqB,CAAC,SAAS,EAAE,sBAAsB,GAAG,IAAI;IAO9D,sBAAsB,IAAI,IAAI;IAI9B,oBAAoB,IAAI,GAAG,CAAC,sBAAsB,CAAC;IAInD,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA2B7C,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAQ,GAAG,IAAI;IAYtD,iBAAiB,IAAI,OAAO;IAM5B,SAAS,IAAI,OAAO;IAIpB,OAAO,CAAC,uBAAuB;CAQ/B"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export class ToolOutputView {
|
|
2
|
-
constructor(options) {
|
|
3
|
-
this.options = options;
|
|
4
|
-
this.toolComponents = new Set();
|
|
5
|
-
this.compactToolOutputs = false;
|
|
6
|
-
}
|
|
7
|
-
registerToolComponent(component) {
|
|
8
|
-
this.toolComponents.add(component);
|
|
9
|
-
const shouldCollapse = this.compactToolOutputs || component.prefersCollapsedByDefault();
|
|
10
|
-
component.setCollapsed(shouldCollapse);
|
|
11
|
-
}
|
|
12
|
-
clearTrackedComponents() {
|
|
13
|
-
this.toolComponents.clear();
|
|
14
|
-
}
|
|
15
|
-
getTrackedComponents() {
|
|
16
|
-
return this.toolComponents;
|
|
17
|
-
}
|
|
18
|
-
handleCompactToolsCommand(text) {
|
|
19
|
-
const parts = text.trim().split(/\s+/);
|
|
20
|
-
let nextState = this.compactToolOutputs;
|
|
21
|
-
if (parts.length === 1) {
|
|
22
|
-
nextState = !nextState;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
const arg = parts[1]?.toLowerCase();
|
|
26
|
-
if (arg === "on" || arg === "true") {
|
|
27
|
-
nextState = true;
|
|
28
|
-
}
|
|
29
|
-
else if (arg === "off" || arg === "false") {
|
|
30
|
-
nextState = false;
|
|
31
|
-
}
|
|
32
|
-
else if (arg === "toggle") {
|
|
33
|
-
nextState = !nextState;
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.options.showInfoMessage("Usage: /compact-tools [on|off|toggle]");
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
this.compactToolOutputs = nextState;
|
|
41
|
-
this.applyCompactModeToTools();
|
|
42
|
-
this.options.showInfoMessage(nextState
|
|
43
|
-
? "Tool outputs will collapse by default."
|
|
44
|
-
: "Tool outputs will show full content.");
|
|
45
|
-
}
|
|
46
|
-
setCompactMode(compact, silent = false) {
|
|
47
|
-
this.compactToolOutputs = compact;
|
|
48
|
-
this.applyCompactModeToTools();
|
|
49
|
-
if (!silent) {
|
|
50
|
-
this.options.showInfoMessage(compact
|
|
51
|
-
? "Tool outputs will collapse by default."
|
|
52
|
-
: "Tool outputs will show full content.");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
toggleCompactMode() {
|
|
56
|
-
this.compactToolOutputs = !this.compactToolOutputs;
|
|
57
|
-
this.applyCompactModeToTools();
|
|
58
|
-
return this.compactToolOutputs;
|
|
59
|
-
}
|
|
60
|
-
isCompact() {
|
|
61
|
-
return this.compactToolOutputs;
|
|
62
|
-
}
|
|
63
|
-
applyCompactModeToTools() {
|
|
64
|
-
for (const component of this.toolComponents) {
|
|
65
|
-
const shouldCollapse = this.compactToolOutputs || component.prefersCollapsedByDefault();
|
|
66
|
-
component.setCollapsed(shouldCollapse);
|
|
67
|
-
}
|
|
68
|
-
this.options.ui.requestRender();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=tool-output-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-output-view.js","sourceRoot":"","sources":["../../src/cli-tui/tool-output-view.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,cAAc;IAI1B,YAA6B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;QAH1C,mBAAc,GAAG,IAAI,GAAG,EAA0B,CAAC;QAC5D,uBAAkB,GAAG,KAAK,CAAC;IAE2B,CAAC;IAE/D,qBAAqB,CAAC,SAAiC;QACtD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACnC,MAAM,cAAc,GACnB,IAAI,CAAC,kBAAkB,IAAI,SAAS,CAAC,yBAAyB,EAAE,CAAC;Q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IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC;QAClC,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,IAAI,CAAC,OAAO,CAAC,eAAe,CAC3B,OAAO;gBACN,CAAC,CAAC,wCAAwC;gBAC1C,CAAC,CAAC,sCAAsC,CACzC,CAAC;QACH,CAAC;IACF,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,kBAAkB,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC;QACnD,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC;IAChC,CAAC;IAED,SAAS;QACR,OAAO,IAAI,CAAC,kBAAkB,CAAC;IAChC,CAAC;IAEO,uBAAuB;QAC9B,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YAC7C,MAAM,cAAc,GACnB,IAAI,CAAC,kBAAkB,IAAI,SAAS,CAAC,yBAAyB,EAAE,CAAC;YAClE,SAAS,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC;CACD","sourcesContent":["import type { TUI } from \"@evalops/tui\";\nimport type { ToolExecutionComponent } from \"./tool-execution.js\";\n\ninterface ToolOutputViewOptions {\n\tui: TUI;\n\tshowInfoMessage: (message: string) => void;\n}\n\nexport class ToolOutputView {\n\tprivate readonly toolComponents = new Set<ToolExecutionComponent>();\n\tprivate compactToolOutputs = false;\n\n\tconstructor(private readonly options: ToolOutputViewOptions) {}\n\n\tregisterToolComponent(component: ToolExecutionComponent): void {\n\t\tthis.toolComponents.add(component);\n\t\tconst shouldCollapse =\n\t\t\tthis.compactToolOutputs || component.prefersCollapsedByDefault();\n\t\tcomponent.setCollapsed(shouldCollapse);\n\t}\n\n\tclearTrackedComponents(): void {\n\t\tthis.toolComponents.clear();\n\t}\n\n\tgetTrackedComponents(): Set<ToolExecutionComponent> {\n\t\treturn this.toolComponents;\n\t}\n\n\thandleCompactToolsCommand(text: string): void {\n\t\tconst parts = text.trim().split(/\\s+/);\n\t\tlet nextState = this.compactToolOutputs;\n\t\tif (parts.length === 1) {\n\t\t\tnextState = !nextState;\n\t\t} else {\n\t\t\tconst arg = parts[1]?.toLowerCase();\n\t\t\tif (arg === \"on\" || arg === \"true\") {\n\t\t\t\tnextState = true;\n\t\t\t} else if (arg === \"off\" || arg === \"false\") {\n\t\t\t\tnextState = false;\n\t\t\t} else if (arg === \"toggle\") {\n\t\t\t\tnextState = !nextState;\n\t\t\t} else {\n\t\t\t\tthis.options.showInfoMessage(\"Usage: /compact-tools [on|off|toggle]\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis.compactToolOutputs = nextState;\n\t\tthis.applyCompactModeToTools();\n\t\tthis.options.showInfoMessage(\n\t\t\tnextState\n\t\t\t\t? \"Tool outputs will collapse by default.\"\n\t\t\t\t: \"Tool outputs will show full content.\",\n\t\t);\n\t}\n\n\tsetCompactMode(compact: boolean, silent = false): void {\n\t\tthis.compactToolOutputs = compact;\n\t\tthis.applyCompactModeToTools();\n\t\tif (!silent) {\n\t\t\tthis.options.showInfoMessage(\n\t\t\t\tcompact\n\t\t\t\t\t? \"Tool outputs will collapse by default.\"\n\t\t\t\t\t: \"Tool outputs will show full content.\",\n\t\t\t);\n\t\t}\n\t}\n\n\ttoggleCompactMode(): boolean {\n\t\tthis.compactToolOutputs = !this.compactToolOutputs;\n\t\tthis.applyCompactModeToTools();\n\t\treturn this.compactToolOutputs;\n\t}\n\n\tisCompact(): boolean {\n\t\treturn this.compactToolOutputs;\n\t}\n\n\tprivate applyCompactModeToTools(): void {\n\t\tfor (const component of this.toolComponents) {\n\t\t\tconst shouldCollapse =\n\t\t\t\tthis.compactToolOutputs || component.prefersCollapsedByDefault();\n\t\t\tcomponent.setCollapsed(shouldCollapse);\n\t\t}\n\t\tthis.options.ui.requestRender();\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU/C,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE/D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAIjE"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BashRenderer } from "./render-bash.js";
|
|
2
|
-
import { BatchRenderer } from "./render-batch.js";
|
|
3
|
-
import { EditRenderer } from "./render-edit.js";
|
|
4
|
-
import { GenericRenderer } from "./render-generic.js";
|
|
5
|
-
import { ReadRenderer } from "./render-read.js";
|
|
6
|
-
import { WriteRenderer } from "./render-write.js";
|
|
7
|
-
const RENDERERS = {
|
|
8
|
-
batch: BatchRenderer,
|
|
9
|
-
bash: BashRenderer,
|
|
10
|
-
read: ReadRenderer,
|
|
11
|
-
write: WriteRenderer,
|
|
12
|
-
edit: EditRenderer,
|
|
13
|
-
};
|
|
14
|
-
export function createToolRenderer(toolName) {
|
|
15
|
-
const key = toolName.toLowerCase();
|
|
16
|
-
const RendererClass = RENDERERS[key] ?? GenericRenderer;
|
|
17
|
-
return new RendererClass();
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,SAAS,GAA2C;IACzD,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,YAAY;CAClB,CAAC;AAIF,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IAClD,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,eAAe,CAAC;IACxD,OAAO,IAAI,aAAa,EAAE,CAAC;AAC5B,CAAC","sourcesContent":["import { BashRenderer } from \"./render-bash.js\";\nimport { BatchRenderer } from \"./render-batch.js\";\nimport { EditRenderer } from \"./render-edit.js\";\nimport { GenericRenderer } from \"./render-generic.js\";\nimport { ReadRenderer } from \"./render-read.js\";\nimport { WriteRenderer } from \"./render-write.js\";\nimport type { ToolRenderer } from \"./types.js\";\n\nconst RENDERERS: Record<string, new () => ToolRenderer> = {\n\tbatch: BatchRenderer,\n\tbash: BashRenderer,\n\tread: ReadRenderer,\n\twrite: WriteRenderer,\n\tedit: EditRenderer,\n};\n\nexport type { ToolRenderer, ToolRenderArgs } from \"./types.js\";\n\nexport function createToolRenderer(toolName: string): ToolRenderer {\n\tconst key = toolName.toLowerCase();\n\tconst RendererClass = RENDERERS[key] ?? GenericRenderer;\n\treturn new RendererClass();\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-bash.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/render-bash.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/D,qBAAa,YAAa,YAAW,YAAY;IAChD,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM;IA8EvC,OAAO,CAAC,aAAa;CAwBrB"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { theme } from "../../theme/theme.js";
|
|
2
|
-
import { buildCollapsedSummary, clampAnsiLines, clampToolOutput, formatDetailSections, formatShellSnippet, formatToolOutputTruncation, summarizeLines, } from "../utils/tool-text-utils.js";
|
|
3
|
-
import { formatHeadline, renderCard, statusGlyph } from "./render-style.js";
|
|
4
|
-
export class BashRenderer {
|
|
5
|
-
render(context) {
|
|
6
|
-
const args = context.result
|
|
7
|
-
? context.args
|
|
8
|
-
: (context.partialArgs ?? context.args);
|
|
9
|
-
const command = typeof args?.command === "string"
|
|
10
|
-
? args.command
|
|
11
|
-
: String(args?.command ?? "");
|
|
12
|
-
const commandLines = formatShellSnippet(command ? `$ ${command}` : "$ ...");
|
|
13
|
-
const sections = [];
|
|
14
|
-
const status = context.result?.isError === true
|
|
15
|
-
? "error"
|
|
16
|
-
: context.result
|
|
17
|
-
? "success"
|
|
18
|
-
: "pending";
|
|
19
|
-
const headline = `${statusGlyph(status)} ${formatHeadline("bash", command || "command")}`;
|
|
20
|
-
// Command section (always show)
|
|
21
|
-
if (commandLines.length) {
|
|
22
|
-
sections.push(commandLines.join("\n"));
|
|
23
|
-
}
|
|
24
|
-
if (context.collapsed) {
|
|
25
|
-
const summarySource = context.result
|
|
26
|
-
? this.getTextOutput(context)
|
|
27
|
-
: command;
|
|
28
|
-
const summary = buildCollapsedSummary(summarySource);
|
|
29
|
-
const body = sections.length
|
|
30
|
-
? `${sections[0]}\n${theme.fg("dim", summary)}`
|
|
31
|
-
: theme.fg("dim", summary);
|
|
32
|
-
return `${headline}\n${renderCard(body.split("\n"))}`;
|
|
33
|
-
}
|
|
34
|
-
if (context.result) {
|
|
35
|
-
const rawOutput = this.getTextOutput(context).trim();
|
|
36
|
-
const clamped = clampToolOutput(rawOutput);
|
|
37
|
-
const output = clamped.text;
|
|
38
|
-
const banner = formatToolOutputTruncation(clamped);
|
|
39
|
-
if (output) {
|
|
40
|
-
const { lines, remaining } = summarizeLines(output, 5);
|
|
41
|
-
const terminalWidth = process.stdout.columns ?? 80;
|
|
42
|
-
const maxWidth = Math.max(48, Math.min(120, terminalWidth - 8));
|
|
43
|
-
const dimmed = clampAnsiLines(lines.map((line) => theme.fg("dim", line)), maxWidth);
|
|
44
|
-
sections.push(dimmed.join("\n"));
|
|
45
|
-
if (remaining > 0) {
|
|
46
|
-
sections.push(theme.fg("dim", `... (${remaining} more lines)`));
|
|
47
|
-
}
|
|
48
|
-
if (banner) {
|
|
49
|
-
sections.push(theme.fg("dim", banner));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
else if (banner) {
|
|
53
|
-
sections.push(theme.fg("dim", banner));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (!context.collapsed) {
|
|
57
|
-
const detailSections = formatDetailSections(context.result?.details, {
|
|
58
|
-
excludeKeys: ["command", "output"],
|
|
59
|
-
});
|
|
60
|
-
sections.push(...detailSections);
|
|
61
|
-
}
|
|
62
|
-
if (sections.length === 0) {
|
|
63
|
-
return `${headline}\n${renderCard([theme.fg("dim", "waiting for output...")])}`;
|
|
64
|
-
}
|
|
65
|
-
return `${headline}\n${renderCard(sections
|
|
66
|
-
.filter(Boolean)
|
|
67
|
-
.flatMap((block) => block.split("\n"))
|
|
68
|
-
.map((line) => line))}`;
|
|
69
|
-
}
|
|
70
|
-
getTextOutput(context) {
|
|
71
|
-
if (!context.result)
|
|
72
|
-
return "";
|
|
73
|
-
const { content } = context.result;
|
|
74
|
-
if (typeof content === "string") {
|
|
75
|
-
return content;
|
|
76
|
-
}
|
|
77
|
-
const blocks = Array.isArray(content) ? content : [];
|
|
78
|
-
const textBlocks = blocks.filter((c) => c.type === "text");
|
|
79
|
-
const imageBlocks = blocks.filter((c) => c.type === "image");
|
|
80
|
-
let output = textBlocks.map((c) => c.text).join("\n");
|
|
81
|
-
if (imageBlocks.length > 0) {
|
|
82
|
-
const imageIndicators = imageBlocks
|
|
83
|
-
.map((img) => `[Image: ${img.mimeType}]`)
|
|
84
|
-
.join("\n");
|
|
85
|
-
output = output ? `${output}\n${imageIndicators}` : imageIndicators;
|
|
86
|
-
}
|
|
87
|
-
return output;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=render-bash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-bash.js","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/render-bash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EACN,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,oBAAoB,EAEpB,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,GACd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG5E,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,OAAuB;QAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM;YAC1B,CAAC,CAAC,OAAO,CAAC,IAAI;YACd,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,OAAO,GACZ,OAAO,IAAI,EAAE,OAAO,KAAK,QAAQ;YAChC,CAAC,CAAC,IAAI,CAAC,OAAO;YACd,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;QAChC,MAAM,YAAY,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC5E,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,MAAM,MAAM,GACX,OAAO,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI;YAC/B,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,OA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AG,CAAC,EAAE,CAAC;YAC5B,MAAM,eAAe,GAAG,WAAW;iBACjC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,GAAG,CAAC,QAAQ,GAAG,CAAC;iBACxC,IAAI,CAAC,IAAI,CAAC,CAAC;YACb,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,KAAK,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;QACrE,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC;CACD","sourcesContent":["import { theme } from \"../../theme/theme.js\";\nimport {\n\tbuildCollapsedSummary,\n\tclampAnsiLines,\n\tclampToolOutput,\n\tformatDetailSections,\n\tformatSection,\n\tformatShellSnippet,\n\tformatToolOutputTruncation,\n\tsummarizeLines,\n} from \"../utils/tool-text-utils.js\";\nimport { formatHeadline, renderCard, statusGlyph } from \"./render-style.js\";\nimport type { ToolRenderArgs, ToolRenderer } from \"./types.js\";\n\nexport class BashRenderer implements ToolRenderer {\n\trender(context: ToolRenderArgs): string {\n\t\tconst args = context.result\n\t\t\t? context.args\n\t\t\t: (context.partialArgs ?? context.args);\n\t\tconst command =\n\t\t\ttypeof args?.command === \"string\"\n\t\t\t\t? args.command\n\t\t\t\t: String(args?.command ?? \"\");\n\t\tconst commandLines = formatShellSnippet(command ? `$ ${command}` : \"$ ...\");\n\t\tconst sections: string[] = [];\n\t\tconst status: \"success\" | \"error\" | \"pending\" =\n\t\t\tcontext.result?.isError === true\n\t\t\t\t? \"error\"\n\t\t\t\t: context.result\n\t\t\t\t\t? \"success\"\n\t\t\t\t\t: \"pending\";\n\t\tconst headline = `${statusGlyph(status)} ${formatHeadline(\"bash\", command || \"command\")}`;\n\n\t\t// Command section (always show)\n\t\tif (commandLines.length) {\n\t\t\tsections.push(commandLines.join(\"\\n\"));\n\t\t}\n\n\t\tif (context.collapsed) {\n\t\t\tconst summarySource = context.result\n\t\t\t\t? this.getTextOutput(context)\n\t\t\t\t: command;\n\t\t\tconst summary = buildCollapsedSummary(summarySource);\n\t\t\tconst body = sections.length\n\t\t\t\t? `${sections[0]}\\n${theme.fg(\"dim\", summary)}`\n\t\t\t\t: theme.fg(\"dim\", summary);\n\t\t\treturn `${headline}\\n${renderCard(body.split(\"\\n\"))}`;\n\t\t}\n\n\t\tif (context.result) {\n\t\t\tconst rawOutput = this.getTextOutput(context).trim();\n\t\t\tconst clamped = clampToolOutput(rawOutput);\n\t\t\tconst output = clamped.text;\n\t\t\tconst banner = formatToolOutputTruncation(clamped);\n\t\t\tif (output) {\n\t\t\t\tconst { lines, remaining } = summarizeLines(output, 5);\n\t\t\t\tconst terminalWidth = process.stdout.columns ?? 80;\n\t\t\t\tconst maxWidth = Math.max(48, Math.min(120, terminalWidth - 8));\n\t\t\t\tconst dimmed = clampAnsiLines(\n\t\t\t\t\tlines.map((line) => theme.fg(\"dim\", line)),\n\t\t\t\t\tmaxWidth,\n\t\t\t\t);\n\t\t\t\tsections.push(dimmed.join(\"\\n\"));\n\t\t\t\tif (remaining > 0) {\n\t\t\t\t\tsections.push(theme.fg(\"dim\", `... (${remaining} more lines)`));\n\t\t\t\t}\n\t\t\t\tif (banner) {\n\t\t\t\t\tsections.push(theme.fg(\"dim\", banner));\n\t\t\t\t}\n\t\t\t} else if (banner) {\n\t\t\t\tsections.push(theme.fg(\"dim\", banner));\n\t\t\t}\n\t\t}\n\n\t\tif (!context.collapsed) {\n\t\t\tconst detailSections = formatDetailSections(context.result?.details, {\n\t\t\t\texcludeKeys: [\"command\", \"output\"],\n\t\t\t});\n\t\t\tsections.push(...detailSections);\n\t\t}\n\n\t\tif (sections.length === 0) {\n\t\t\treturn `${headline}\\n${renderCard([theme.fg(\"dim\", \"waiting for output...\")])}`;\n\t\t}\n\n\t\treturn `${headline}\\n${renderCard(\n\t\t\tsections\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.flatMap((block) => block.split(\"\\n\"))\n\t\t\t\t.map((line) => line),\n\t\t)}`;\n\t}\n\n\tprivate getTextOutput(context: ToolRenderArgs): string {\n\t\tif (!context.result) return \"\";\n\t\tconst { content } = context.result;\n\t\tif (typeof content === \"string\") {\n\t\t\treturn content;\n\t\t}\n\t\tconst blocks = Array.isArray(content) ? content : [];\n\t\tconst textBlocks = blocks.filter(\n\t\t\t(c): c is { type: \"text\"; text: string } => c.type === \"text\",\n\t\t);\n\t\tconst imageBlocks = blocks.filter(\n\t\t\t(c): c is { type: \"image\"; mimeType: string; data: string } =>\n\t\t\t\tc.type === \"image\",\n\t\t);\n\n\t\tlet output = textBlocks.map((c) => c.text).join(\"\\n\");\n\t\tif (imageBlocks.length > 0) {\n\t\t\tconst imageIndicators = imageBlocks\n\t\t\t\t.map((img) => `[Image: ${img.mimeType}]`)\n\t\t\t\t.join(\"\\n\");\n\t\t\toutput = output ? `${output}\\n${imageIndicators}` : imageIndicators;\n\t\t}\n\t\treturn output;\n\t}\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ToolRenderArgs, ToolRenderer } from "./types.js";
|
|
2
|
-
export declare class BatchRenderer implements ToolRenderer {
|
|
3
|
-
render(context: ToolRenderArgs): string;
|
|
4
|
-
private getBatchResults;
|
|
5
|
-
private getBatchStats;
|
|
6
|
-
private isErrorEntry;
|
|
7
|
-
private buildSummaryLine;
|
|
8
|
-
private formatResultRow;
|
|
9
|
-
private extractContentSummary;
|
|
10
|
-
private extractPreviewText;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=render-batch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-batch.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/render-batch.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmB/D,qBAAa,aAAc,YAAW,YAAY;IACjD,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM;IAkEvC,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,kBAAkB;CAiB1B"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { theme } from "../../theme/theme.js";
|
|
2
|
-
import { truncateText } from "../utils/text-formatting.js";
|
|
3
|
-
import { buildCollapsedSummary, clampToolOutputLines, formatDetailSections, formatToolOutputTruncation, } from "../utils/tool-text-utils.js";
|
|
4
|
-
import { formatHeadline, renderCard, statusGlyph } from "./render-style.js";
|
|
5
|
-
const SUMMARY_MAX_WIDTH = 120;
|
|
6
|
-
export class BatchRenderer {
|
|
7
|
-
render(context) {
|
|
8
|
-
const status = context.result?.isError === true
|
|
9
|
-
? "error"
|
|
10
|
-
: context.result
|
|
11
|
-
? "success"
|
|
12
|
-
: "pending";
|
|
13
|
-
const headline = `${statusGlyph(status)} ${formatHeadline("batch", "batch")}`;
|
|
14
|
-
const sections = [];
|
|
15
|
-
const results = this.getBatchResults(context);
|
|
16
|
-
const stats = this.getBatchStats(results);
|
|
17
|
-
const summaryLine = this.buildSummaryLine(stats, status);
|
|
18
|
-
if (context.collapsed) {
|
|
19
|
-
const preview = this.extractPreviewText(context, results);
|
|
20
|
-
const summary = preview ? theme.fg("dim", preview) : "";
|
|
21
|
-
return `${headline}\n${renderCard([summaryLine, summary].filter(Boolean).map((line) => line))}`;
|
|
22
|
-
}
|
|
23
|
-
if (summaryLine) {
|
|
24
|
-
sections.push(summaryLine);
|
|
25
|
-
}
|
|
26
|
-
if (results.length > 0) {
|
|
27
|
-
const rows = results.map((entry, index) => this.formatResultRow(entry, index));
|
|
28
|
-
const clamped = clampToolOutputLines(rows);
|
|
29
|
-
const banner = formatToolOutputTruncation({
|
|
30
|
-
text: "",
|
|
31
|
-
truncated: clamped.truncated,
|
|
32
|
-
omittedChars: clamped.omittedChars,
|
|
33
|
-
omittedLines: clamped.omittedLines,
|
|
34
|
-
});
|
|
35
|
-
if (clamped.lines.length > 0) {
|
|
36
|
-
sections.push(clamped.lines.join("\n"));
|
|
37
|
-
}
|
|
38
|
-
if (banner) {
|
|
39
|
-
sections.push(theme.fg("dim", banner));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
else if (context.result) {
|
|
43
|
-
const preview = this.extractPreviewText(context, results);
|
|
44
|
-
if (preview) {
|
|
45
|
-
sections.push(theme.fg("dim", preview));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
sections.push(theme.fg("dim", "No batch results reported."));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
sections.push(theme.fg("dim", "waiting for output..."));
|
|
53
|
-
}
|
|
54
|
-
const detailSections = formatDetailSections(context.result?.details, {
|
|
55
|
-
excludeKeys: ["results"],
|
|
56
|
-
});
|
|
57
|
-
sections.push(...detailSections);
|
|
58
|
-
return `${headline}\n${renderCard(sections
|
|
59
|
-
.filter(Boolean)
|
|
60
|
-
.flatMap((block) => block.split("\n"))
|
|
61
|
-
.map((line) => line))}`;
|
|
62
|
-
}
|
|
63
|
-
getBatchResults(context) {
|
|
64
|
-
const details = context.result?.details;
|
|
65
|
-
if (!details || typeof details !== "object")
|
|
66
|
-
return [];
|
|
67
|
-
const results = details.results;
|
|
68
|
-
if (!Array.isArray(results))
|
|
69
|
-
return [];
|
|
70
|
-
return results.filter(Boolean);
|
|
71
|
-
}
|
|
72
|
-
getBatchStats(results) {
|
|
73
|
-
const total = results.length;
|
|
74
|
-
const failures = results.filter((entry) => this.isErrorEntry(entry)).length;
|
|
75
|
-
return { total, failures, successes: Math.max(0, total - failures) };
|
|
76
|
-
}
|
|
77
|
-
isErrorEntry(entry) {
|
|
78
|
-
return entry.success === false || entry.result?.isError === true;
|
|
79
|
-
}
|
|
80
|
-
buildSummaryLine(stats, status) {
|
|
81
|
-
const statusLabel = status === "pending"
|
|
82
|
-
? "running"
|
|
83
|
-
: status === "error"
|
|
84
|
-
? "errors"
|
|
85
|
-
: "complete";
|
|
86
|
-
const summaryParts = [
|
|
87
|
-
theme.fg("muted", "Batch"),
|
|
88
|
-
theme.fg("success", `${stats.successes} ok`),
|
|
89
|
-
theme.fg(stats.failures ? "error" : "muted", `${stats.failures} err`),
|
|
90
|
-
theme.fg("dim", statusLabel),
|
|
91
|
-
];
|
|
92
|
-
return summaryParts.join(" ");
|
|
93
|
-
}
|
|
94
|
-
formatResultRow(entry, index) {
|
|
95
|
-
const isError = this.isErrorEntry(entry);
|
|
96
|
-
const glyph = isError ? theme.fg("error", "✕") : theme.fg("success", "✓");
|
|
97
|
-
const toolLabel = entry.tool ? entry.tool : `call ${index + 1}`;
|
|
98
|
-
const summary = entry.summary ||
|
|
99
|
-
this.extractContentSummary(entry.result?.content) ||
|
|
100
|
-
"Completed";
|
|
101
|
-
const truncated = truncateText(summary, SUMMARY_MAX_WIDTH);
|
|
102
|
-
return `${glyph} ${theme.fg("muted", toolLabel)} ${truncated}`;
|
|
103
|
-
}
|
|
104
|
-
extractContentSummary(content) {
|
|
105
|
-
if (!content)
|
|
106
|
-
return null;
|
|
107
|
-
if (typeof content === "string") {
|
|
108
|
-
return content.replace(/\s+/g, " ").trim();
|
|
109
|
-
}
|
|
110
|
-
const textBlocks = content
|
|
111
|
-
.filter((block) => block.type === "text")
|
|
112
|
-
.map((block) => block.text ?? "")
|
|
113
|
-
.join(" ");
|
|
114
|
-
const normalized = textBlocks.replace(/\s+/g, " ").trim();
|
|
115
|
-
return normalized || null;
|
|
116
|
-
}
|
|
117
|
-
extractPreviewText(context, results) {
|
|
118
|
-
if (context.result?.content) {
|
|
119
|
-
const preview = this.extractContentSummary(context.result.content);
|
|
120
|
-
if (preview) {
|
|
121
|
-
return truncateText(preview, SUMMARY_MAX_WIDTH);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
const firstSummary = results.length
|
|
125
|
-
? results.map((entry) => entry.summary ?? "").join(" ")
|
|
126
|
-
: "";
|
|
127
|
-
if (!firstSummary.trim())
|
|
128
|
-
return null;
|
|
129
|
-
const fallback = buildCollapsedSummary(firstSummary);
|
|
130
|
-
return fallback ? truncateText(fallback, SUMMARY_MAX_WIDTH) : null;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=render-batch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-batch.js","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/render-batch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACN,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkB5E,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,OAAO,aAAa;IACzB,MAAM,CAAC,OAAuB;QAC7B,MAAM,MAAM,GACX,OAAO,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI;YAC/B,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,OAAO,CAAC,MAAM;gBACf,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,SAAS,CAAC;QACf,MAAM,QAAQ,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QAC9E,MAAM,QAAQ,GAAa,EAAE,CAAC;QAC9B,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE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C,CAAC;QACZ,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1D,OAAO,UAAU,IAAI,IAAI,CAAC;IAC3B,CAAC;IAEO,kBAAkB,CACzB,OAAuB,EACvB,OAA2B;QAE3B,IAAI,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;YAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACnE,IAAI,OAAO,EAAE,CAAC;gBACb,OAAO,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YACjD,CAAC;QACF,CAAC;QACD,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM;YAClC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACvD,CAAC,CAAC,EAAE,CAAC;QACN,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;YAAE,OAAO,IAAI,CAAC;QACtC,MAAM,QAAQ,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpE,CAAC;CACD","sourcesContent":["import { theme } from \"../../theme/theme.js\";\nimport { truncateText } from \"../utils/text-formatting.js\";\nimport {\n\tbuildCollapsedSummary,\n\tclampToolOutputLines,\n\tformatDetailSections,\n\tformatToolOutputTruncation,\n} from \"../utils/tool-text-utils.js\";\nimport { formatHeadline, renderCard, statusGlyph } from \"./render-style.js\";\nimport type { ToolRenderArgs, ToolRenderer } from \"./types.js\";\n\ntype BatchResultEntry = {\n\ttool?: string;\n\tsummary?: string;\n\tsuccess?: boolean;\n\tresult?: {\n\t\tcontent?:\n\t\t\t| Array<{\n\t\t\t\t\ttype: string;\n\t\t\t\t\ttext?: string;\n\t\t\t }>\n\t\t\t| string;\n\t\tisError?: boolean;\n\t};\n};\n\nconst SUMMARY_MAX_WIDTH = 120;\n\nexport class BatchRenderer implements ToolRenderer {\n\trender(context: ToolRenderArgs): string {\n\t\tconst status: \"success\" | \"error\" | \"pending\" =\n\t\t\tcontext.result?.isError === true\n\t\t\t\t? \"error\"\n\t\t\t\t: context.result\n\t\t\t\t\t? \"success\"\n\t\t\t\t\t: \"pending\";\n\t\tconst headline = `${statusGlyph(status)} ${formatHeadline(\"batch\", \"batch\")}`;\n\t\tconst sections: string[] = [];\n\t\tconst results = this.getBatchResults(context);\n\t\tconst stats = this.getBatchStats(results);\n\t\tconst summaryLine = this.buildSummaryLine(stats, status);\n\n\t\tif (context.collapsed) {\n\t\t\tconst preview = this.extractPreviewText(context, results);\n\t\t\tconst summary = preview ? theme.fg(\"dim\", preview) : \"\";\n\t\t\treturn `${headline}\\n${renderCard(\n\t\t\t\t[summaryLine, summary].filter(Boolean).map((line) => line),\n\t\t\t)}`;\n\t\t}\n\n\t\tif (summaryLine) {\n\t\t\tsections.push(summaryLine);\n\t\t}\n\n\t\tif (results.length > 0) {\n\t\t\tconst rows = results.map((entry, index) =>\n\t\t\t\tthis.formatResultRow(entry, index),\n\t\t\t);\n\t\t\tconst clamped = clampToolOutputLines(rows);\n\t\t\tconst banner = formatToolOutputTruncation({\n\t\t\t\ttext: \"\",\n\t\t\t\ttruncated: clamped.truncated,\n\t\t\t\tomittedChars: clamped.omittedChars,\n\t\t\t\tomittedLines: clamped.omittedLines,\n\t\t\t});\n\t\t\tif (clamped.lines.length > 0) {\n\t\t\t\tsections.push(clamped.lines.join(\"\\n\"));\n\t\t\t}\n\t\t\tif (banner) {\n\t\t\t\tsections.push(theme.fg(\"dim\", banner));\n\t\t\t}\n\t\t} else if (context.result) {\n\t\t\tconst preview = this.extractPreviewText(context, results);\n\t\t\tif (preview) {\n\t\t\t\tsections.push(theme.fg(\"dim\", preview));\n\t\t\t} else {\n\t\t\t\tsections.push(theme.fg(\"dim\", \"No batch results reported.\"));\n\t\t\t}\n\t\t} else {\n\t\t\tsections.push(theme.fg(\"dim\", \"waiting for output...\"));\n\t\t}\n\n\t\tconst detailSections = formatDetailSections(context.result?.details, {\n\t\t\texcludeKeys: [\"results\"],\n\t\t});\n\t\tsections.push(...detailSections);\n\n\t\treturn `${headline}\\n${renderCard(\n\t\t\tsections\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.flatMap((block) => block.split(\"\\n\"))\n\t\t\t\t.map((line) => line),\n\t\t)}`;\n\t}\n\n\tprivate getBatchResults(context: ToolRenderArgs): BatchResultEntry[] {\n\t\tconst details = context.result?.details;\n\t\tif (!details || typeof details !== \"object\") return [];\n\t\tconst results = (details as { results?: unknown }).results;\n\t\tif (!Array.isArray(results)) return [];\n\t\treturn results.filter(Boolean) as BatchResultEntry[];\n\t}\n\n\tprivate getBatchStats(results: BatchResultEntry[]): {\n\t\ttotal: number;\n\t\tsuccesses: number;\n\t\tfailures: number;\n\t} {\n\t\tconst total = results.length;\n\t\tconst failures = results.filter((entry) => this.isErrorEntry(entry)).length;\n\t\treturn { total, failures, successes: Math.max(0, total - failures) };\n\t}\n\n\tprivate isErrorEntry(entry: BatchResultEntry): boolean {\n\t\treturn entry.success === false || entry.result?.isError === true;\n\t}\n\n\tprivate buildSummaryLine(\n\t\tstats: { total: number; successes: number; failures: number },\n\t\tstatus: \"success\" | \"error\" | \"pending\",\n\t): string {\n\t\tconst statusLabel =\n\t\t\tstatus === \"pending\"\n\t\t\t\t? \"running\"\n\t\t\t\t: status === \"error\"\n\t\t\t\t\t? \"errors\"\n\t\t\t\t\t: \"complete\";\n\t\tconst summaryParts = [\n\t\t\ttheme.fg(\"muted\", \"Batch\"),\n\t\t\ttheme.fg(\"success\", `${stats.successes} ok`),\n\t\t\ttheme.fg(stats.failures ? \"error\" : \"muted\", `${stats.failures} err`),\n\t\t\ttheme.fg(\"dim\", statusLabel),\n\t\t];\n\t\treturn summaryParts.join(\" \");\n\t}\n\n\tprivate formatResultRow(entry: BatchResultEntry, index: number): string {\n\t\tconst isError = this.isErrorEntry(entry);\n\t\tconst glyph = isError ? theme.fg(\"error\", \"✕\") : theme.fg(\"success\", \"✓\");\n\t\tconst toolLabel = entry.tool ? entry.tool : `call ${index + 1}`;\n\t\tconst summary =\n\t\t\tentry.summary ||\n\t\t\tthis.extractContentSummary(entry.result?.content) ||\n\t\t\t\"Completed\";\n\t\tconst truncated = truncateText(summary, SUMMARY_MAX_WIDTH);\n\t\treturn `${glyph} ${theme.fg(\"muted\", toolLabel)} ${truncated}`;\n\t}\n\n\tprivate extractContentSummary(\n\t\tcontent: Array<{ type: string; text?: string }> | string | undefined,\n\t): string | null {\n\t\tif (!content) return null;\n\t\tif (typeof content === \"string\") {\n\t\t\treturn content.replace(/\\s+/g, \" \").trim();\n\t\t}\n\t\tconst textBlocks = content\n\t\t\t.filter((block) => block.type === \"text\")\n\t\t\t.map((block) => block.text ?? \"\")\n\t\t\t.join(\" \");\n\t\tconst normalized = textBlocks.replace(/\\s+/g, \" \").trim();\n\t\treturn normalized || null;\n\t}\n\n\tprivate extractPreviewText(\n\t\tcontext: ToolRenderArgs,\n\t\tresults: BatchResultEntry[],\n\t): string | null {\n\t\tif (context.result?.content) {\n\t\t\tconst preview = this.extractContentSummary(context.result.content);\n\t\t\tif (preview) {\n\t\t\t\treturn truncateText(preview, SUMMARY_MAX_WIDTH);\n\t\t\t}\n\t\t}\n\t\tconst firstSummary = results.length\n\t\t\t? results.map((entry) => entry.summary ?? \"\").join(\" \")\n\t\t\t: \"\";\n\t\tif (!firstSummary.trim()) return null;\n\t\tconst fallback = buildCollapsedSummary(firstSummary);\n\t\treturn fallback ? truncateText(fallback, SUMMARY_MAX_WIDTH) : null;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-edit.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tool-renderers/render-edit.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgC/D,qBAAa,YAAa,YAAW,YAAY;IAChD,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM;IAsGvC,OAAO,CAAC,aAAa;CAcrB"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { highlightCodeLines } from "../../style/code-highlighter.js";
|
|
2
|
-
import { theme } from "../../theme/theme.js";
|
|
3
|
-
import { buildCollapsedSummary, clampAnsiLines, clampToolOutput, formatDetailSections, formatToolOutputTruncation, generateDiff, shortenPath, } from "../utils/tool-text-utils.js";
|
|
4
|
-
import { formatHeadline, renderCard, statusGlyph } from "./render-style.js";
|
|
5
|
-
/** Count additions and deletions in a unified diff string */
|
|
6
|
-
function countDiffChanges(diffStr) {
|
|
7
|
-
let added = 0;
|
|
8
|
-
let removed = 0;
|
|
9
|
-
for (const line of diffStr.split("\n")) {
|
|
10
|
-
if (line.startsWith("+") && !line.startsWith("+++")) {
|
|
11
|
-
added++;
|
|
12
|
-
}
|
|
13
|
-
else if (line.startsWith("-") && !line.startsWith("---")) {
|
|
14
|
-
removed++;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return { added, removed };
|
|
18
|
-
}
|
|
19
|
-
/** Build a summary bar for diff changes */
|
|
20
|
-
function buildDiffSummary(diffStr) {
|
|
21
|
-
const { added, removed } = countDiffChanges(diffStr);
|
|
22
|
-
const parts = [];
|
|
23
|
-
if (added > 0) {
|
|
24
|
-
parts.push(theme.fg("success", `+${added}`));
|
|
25
|
-
}
|
|
26
|
-
if (removed > 0) {
|
|
27
|
-
parts.push(theme.fg("error", `-${removed}`));
|
|
28
|
-
}
|
|
29
|
-
if (parts.length === 0) {
|
|
30
|
-
return theme.fg("muted", "no changes");
|
|
31
|
-
}
|
|
32
|
-
return parts.join(" ");
|
|
33
|
-
}
|
|
34
|
-
export class EditRenderer {
|
|
35
|
-
render(context) {
|
|
36
|
-
const terminalWidth = process.stdout.columns ?? 80;
|
|
37
|
-
const maxDiffWidth = Math.max(48, Math.min(120, terminalWidth - 8));
|
|
38
|
-
const diffStyle = process.env.MAESTRO_TUI_DIFF_STYLE?.toLowerCase() ?? "auto";
|
|
39
|
-
const pathValue = typeof context.args?.file_path === "string"
|
|
40
|
-
? context.args.file_path
|
|
41
|
-
: typeof context.args?.path === "string"
|
|
42
|
-
? context.args.path
|
|
43
|
-
: "";
|
|
44
|
-
const path = shortenPath(pathValue);
|
|
45
|
-
const status = context.result?.isError === true
|
|
46
|
-
? "error"
|
|
47
|
-
: context.result
|
|
48
|
-
? "success"
|
|
49
|
-
: "pending";
|
|
50
|
-
const headline = `${statusGlyph(status)} ${formatHeadline("edit", path || "file")}`;
|
|
51
|
-
// Show path as the first line
|
|
52
|
-
const pathLine = path ? theme.fg("muted", path) : theme.fg("dim", "...");
|
|
53
|
-
if (context.collapsed) {
|
|
54
|
-
const diffText = (typeof context.result?.details === "object" &&
|
|
55
|
-
context.result?.details !== null &&
|
|
56
|
-
"diff" in context.result.details &&
|
|
57
|
-
typeof context.result.details.diff ===
|
|
58
|
-
"string" &&
|
|
59
|
-
context.result.details.diff) ||
|
|
60
|
-
this.getTextOutput(context);
|
|
61
|
-
return `${headline}\n${renderCard([
|
|
62
|
-
pathLine,
|
|
63
|
-
theme.fg("dim", buildCollapsedSummary(diffText)),
|
|
64
|
-
])}`;
|
|
65
|
-
}
|
|
66
|
-
const sections = [pathLine];
|
|
67
|
-
const details = typeof context.result?.details === "object"
|
|
68
|
-
? context.result.details
|
|
69
|
-
: null;
|
|
70
|
-
const diffValue = details && typeof details.diff === "string" ? details.diff : null;
|
|
71
|
-
if (diffValue) {
|
|
72
|
-
// Add summary bar
|
|
73
|
-
const summary = buildDiffSummary(diffValue);
|
|
74
|
-
sections.push(summary);
|
|
75
|
-
const diffLines = highlightCodeLines(diffValue, "diff");
|
|
76
|
-
const shouldCompact = diffStyle === "auto" && terminalWidth < 90;
|
|
77
|
-
const renderedLines = shouldCompact
|
|
78
|
-
? clampAnsiLines(diffLines
|
|
79
|
-
.slice(0, 80)
|
|
80
|
-
.concat(diffLines.length > 80
|
|
81
|
-
? [`${theme.fg("dim", "... truncated ...")}`]
|
|
82
|
-
: []), maxDiffWidth)
|
|
83
|
-
: clampAnsiLines(diffLines, maxDiffWidth);
|
|
84
|
-
sections.push(renderedLines.join("\n"));
|
|
85
|
-
}
|
|
86
|
-
else if (typeof context.args?.before === "string" &&
|
|
87
|
-
typeof context.args?.after === "string") {
|
|
88
|
-
const previewLines = clampAnsiLines(generateDiff(context.args.before, context.args.after).split("\n"), maxDiffWidth);
|
|
89
|
-
sections.push(previewLines.join("\n"));
|
|
90
|
-
}
|
|
91
|
-
const message = this.getTextOutput(context).trim();
|
|
92
|
-
if (message) {
|
|
93
|
-
const clamped = clampToolOutput(message);
|
|
94
|
-
const banner = formatToolOutputTruncation(clamped);
|
|
95
|
-
const messageLines = clamped.text
|
|
96
|
-
.split("\n")
|
|
97
|
-
.map((line) => theme.fg("dim", line));
|
|
98
|
-
sections.push(messageLines.join("\n"));
|
|
99
|
-
if (banner) {
|
|
100
|
-
sections.push(theme.fg("dim", banner));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
const detailSections = formatDetailSections(context.result?.details, {
|
|
104
|
-
excludeKeys: ["diff"],
|
|
105
|
-
});
|
|
106
|
-
sections.push(...detailSections);
|
|
107
|
-
return `${headline}\n${renderCard(sections
|
|
108
|
-
.filter(Boolean)
|
|
109
|
-
.flatMap((block) => block.split("\n"))
|
|
110
|
-
.map((line) => line))}`;
|
|
111
|
-
}
|
|
112
|
-
getTextOutput(context) {
|
|
113
|
-
if (!context.result)
|
|
114
|
-
return "";
|
|
115
|
-
const { content } = context.result;
|
|
116
|
-
if (typeof content === "string") {
|
|
117
|
-
return content;
|
|
118
|
-
}
|
|
119
|
-
const textBlocks = Array.isArray(content) && content.length
|
|
120
|
-
? content.filter((c) => c.type === "text")
|
|
121
|
-
: [];
|
|
122
|
-
return textBlocks.map((c) => c.text).join("\n");
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=render-edit.js.map
|