@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,143 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import { getBorderChars, } from "../utils/borders.js";
|
|
3
|
-
import { centerText, padLine, sanitizeAnsi, truncateText, wrapTextBlock, } from "../utils/text-formatting.js";
|
|
4
|
-
export class ApprovalModal {
|
|
5
|
-
constructor(options) {
|
|
6
|
-
this.options = options;
|
|
7
|
-
this.queueSize = options.queueSize;
|
|
8
|
-
}
|
|
9
|
-
setQueueSize(size) {
|
|
10
|
-
this.queueSize = size;
|
|
11
|
-
}
|
|
12
|
-
static { this.BORDER_COLOR = "#fbbf24"; }
|
|
13
|
-
static { this.BORDER_STYLE = "double"; }
|
|
14
|
-
render(width) {
|
|
15
|
-
const borderColor = ApprovalModal.BORDER_COLOR;
|
|
16
|
-
const chars = getBorderChars(ApprovalModal.BORDER_STYLE);
|
|
17
|
-
const innerWidth = Math.max(1, width - 4);
|
|
18
|
-
const lines = [];
|
|
19
|
-
const borderV = chalk.hex(borderColor)(chars.vertical);
|
|
20
|
-
const pushRow = (content) => {
|
|
21
|
-
const safeContent = truncateText(content, innerWidth);
|
|
22
|
-
const padded = padLine(safeContent, innerWidth);
|
|
23
|
-
lines.push(`${borderV} ${padded} ${borderV}`);
|
|
24
|
-
};
|
|
25
|
-
const pushSpacer = () => {
|
|
26
|
-
pushRow(" ".repeat(innerWidth));
|
|
27
|
-
};
|
|
28
|
-
const pushSection = (title, content) => {
|
|
29
|
-
pushRow(chalk.hex("#cbd5f5").bold(title));
|
|
30
|
-
for (const line of content) {
|
|
31
|
-
pushRow(line);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
// Top border with title
|
|
35
|
-
const topLine = `${chars.topLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.topRight}`;
|
|
36
|
-
lines.push(chalk.hex(borderColor)(topLine));
|
|
37
|
-
const title = centerText("ACTION APPROVAL", innerWidth);
|
|
38
|
-
pushRow(chalk.hex("#e2e8f0").bold(title));
|
|
39
|
-
// Separator
|
|
40
|
-
const sepLine = `${chars.leftT}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.rightT}`;
|
|
41
|
-
lines.push(chalk.hex(borderColor)(sepLine));
|
|
42
|
-
pushSection("Reason", this.describeReason(innerWidth));
|
|
43
|
-
pushSpacer();
|
|
44
|
-
pushSection("Tool", this.describeTool(innerWidth));
|
|
45
|
-
pushSpacer();
|
|
46
|
-
pushSection("Command", this.formatCommand(innerWidth));
|
|
47
|
-
pushSpacer();
|
|
48
|
-
pushSection("Queue Status", [this.describeQueue()]);
|
|
49
|
-
// Footer separator
|
|
50
|
-
lines.push(chalk.hex(borderColor)(sepLine));
|
|
51
|
-
const footer = centerText("[y] approve [n] deny [esc] cancel", innerWidth);
|
|
52
|
-
pushRow(chalk.dim(footer));
|
|
53
|
-
// Bottom border
|
|
54
|
-
const bottomLine = `${chars.bottomLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.bottomRight}`;
|
|
55
|
-
lines.push(chalk.hex(borderColor)(bottomLine));
|
|
56
|
-
return lines;
|
|
57
|
-
}
|
|
58
|
-
handleInput(data) {
|
|
59
|
-
if (data === "y" || data === "Y") {
|
|
60
|
-
this.options.onApprove();
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (data === "n" || data === "N") {
|
|
64
|
-
this.options.onDeny();
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (data === "\x1b") {
|
|
68
|
-
this.options.onCancel();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
extractCommand() {
|
|
72
|
-
const cmd = this.options.request.args &&
|
|
73
|
-
typeof this.options.request.args === "object" &&
|
|
74
|
-
"command" in this.options.request.args &&
|
|
75
|
-
typeof this.options.request.args.command ===
|
|
76
|
-
"string"
|
|
77
|
-
? this.options.request.args.command
|
|
78
|
-
: null;
|
|
79
|
-
if (typeof cmd !== "string" || cmd.trim().length === 0) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
// Strip control characters (including ANSI escapes) to avoid terminal injection
|
|
83
|
-
const scrubbed = cmd.replace(/[^\x20-\x7e\r\n]/g, "");
|
|
84
|
-
return scrubbed.trim().split(/\r?\n/).slice(0, 6);
|
|
85
|
-
}
|
|
86
|
-
describeReason(width) {
|
|
87
|
-
const reason = typeof this.options.request.reason === "string" &&
|
|
88
|
-
this.options.request.reason.trim().length > 0
|
|
89
|
-
? this.options.request.reason
|
|
90
|
-
: chalk.dim("(no reason provided)");
|
|
91
|
-
return wrapTextBlock(reason, width);
|
|
92
|
-
}
|
|
93
|
-
describeTool(width) {
|
|
94
|
-
const entries = [];
|
|
95
|
-
entries.push(`${chalk.hex("#94a3b8")("Name:")} ${chalk
|
|
96
|
-
.hex("#60a5fa")
|
|
97
|
-
.bold(this.options.request.summaryLabel ||
|
|
98
|
-
this.options.request.displayName ||
|
|
99
|
-
this.options.request.toolName)}`);
|
|
100
|
-
if (this.options.request.displayName &&
|
|
101
|
-
this.options.request.displayName !== this.options.request.toolName) {
|
|
102
|
-
entries.push(`${chalk.hex("#94a3b8")("Tool:")} ${chalk.hex("#e2e8f0")(this.options.request.toolName)}`);
|
|
103
|
-
}
|
|
104
|
-
if (this.options.request.actionDescription) {
|
|
105
|
-
entries.push(`${chalk.hex("#94a3b8")("Summary:")} ${chalk.hex("#e2e8f0")(this.options.request.actionDescription)}`);
|
|
106
|
-
}
|
|
107
|
-
const action = this.options.request.args &&
|
|
108
|
-
typeof this.options.request.args === "object" &&
|
|
109
|
-
"action" in this.options.request.args
|
|
110
|
-
? this.options.request.args.action
|
|
111
|
-
: undefined;
|
|
112
|
-
if (typeof action === "string") {
|
|
113
|
-
entries.push(`${chalk.hex("#94a3b8")("Action:")} ${chalk.hex("#e2e8f0")(action)}`);
|
|
114
|
-
}
|
|
115
|
-
const shell = this.options.request.args &&
|
|
116
|
-
typeof this.options.request.args === "object" &&
|
|
117
|
-
"shell" in this.options.request.args
|
|
118
|
-
? this.options.request.args.shell
|
|
119
|
-
: undefined;
|
|
120
|
-
if (typeof shell === "boolean") {
|
|
121
|
-
entries.push(`${chalk.hex("#94a3b8")("Shell mode:")} ${shell ? chalk.hex("#fbbf24")("enabled") : chalk.hex("#10b981")("disabled")}`);
|
|
122
|
-
}
|
|
123
|
-
return wrapTextBlock(entries.join("\n"), width);
|
|
124
|
-
}
|
|
125
|
-
formatCommand(width) {
|
|
126
|
-
const command = this.extractCommand();
|
|
127
|
-
if (!command) {
|
|
128
|
-
return [chalk.dim("(no literal command provided)")];
|
|
129
|
-
}
|
|
130
|
-
const sanitized = command
|
|
131
|
-
.map((line) => ` ${sanitizeAnsi(line)}`)
|
|
132
|
-
.join("\n");
|
|
133
|
-
return wrapTextBlock(sanitized, width);
|
|
134
|
-
}
|
|
135
|
-
describeQueue() {
|
|
136
|
-
if (this.queueSize > 0) {
|
|
137
|
-
const noun = this.queueSize === 1 ? "action" : "actions";
|
|
138
|
-
return chalk.dim(`${this.queueSize} more ${noun} awaiting approval`);
|
|
139
|
-
}
|
|
140
|
-
return chalk.dim("No other pending approvals");
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=approval-modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-modal.js","sourceRoot":"","sources":["../../../src/cli-tui/approval/approval-modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEN,cAAc,GAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,UAAU,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,aAAa,GACb,MAAM,6BAA6B,CAAC;AAUrC,MAAM,OAAO,aAAa;IAGzB,YAA6B,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;QACzD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,YAAY,CAAC,IAAY;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;aAEuB,iBAAY,GAAG,SAAS,CAAC;aACzB,iBAAY,GAAgB,QAAQ,CAAC;IAE7D,MAAM,CAAC,KAAa;QACnB,MAAM,WAAW,GAAG,aAAa,CAAC,YAAY,CAAC;QAC/C,MAAM,KAAK,GAAG,cAAc,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;QACzD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;QAC1C,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAA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AAC,UAAU,CAAC,EAAE,CACtH,CAAC;QACH,CAAC;QACD,OAAO,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IAEO,aAAa,CAAC,KAAa;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC,CAAC;QACrD,CAAC;QACD,MAAM,SAAS,GAAG,OAAO;aACvB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;aACxC,IAAI,CAAC,IAAI,CAAC,CAAC;QACb,OAAO,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAEO,aAAa;QACpB,IAAI,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACzD,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,SAAS,IAAI,oBAAoB,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,KAAK,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC","sourcesContent":["import type { Component } from \"@evalops/tui\";\nimport chalk from \"chalk\";\nimport type { ActionApprovalRequest } from \"../../agent/action-approval.js\";\nimport {\n\ttype BorderStyle,\n\tgetBorderChars,\n\tthemedBottomLine,\n\tthemedSeparatorLine,\n\tthemedTopLine,\n} from \"../utils/borders.js\";\nimport {\n\tcenterText,\n\tpadLine,\n\tsanitizeAnsi,\n\ttruncateText,\n\twrapTextBlock,\n} from \"../utils/text-formatting.js\";\n\ninterface ApprovalModalOptions {\n\trequest: ActionApprovalRequest;\n\tqueueSize: number;\n\tonApprove: () => void;\n\tonDeny: () => void;\n\tonCancel: () => void;\n}\n\nexport class ApprovalModal implements Component {\n\tprivate queueSize: number;\n\n\tconstructor(private readonly options: ApprovalModalOptions) {\n\t\tthis.queueSize = options.queueSize;\n\t}\n\n\tsetQueueSize(size: number): void {\n\t\tthis.queueSize = size;\n\t}\n\n\tprivate static readonly BORDER_COLOR = \"#fbbf24\";\n\tprivate static readonly BORDER_STYLE: BorderStyle = \"double\";\n\n\trender(width: number): string[] {\n\t\tconst borderColor = ApprovalModal.BORDER_COLOR;\n\t\tconst chars = getBorderChars(ApprovalModal.BORDER_STYLE);\n\t\tconst innerWidth = Math.max(1, width - 4);\n\t\tconst lines: string[] = [];\n\t\tconst borderV = chalk.hex(borderColor)(chars.vertical);\n\n\t\tconst pushRow = (content: string): void => {\n\t\t\tconst safeContent = truncateText(content, innerWidth);\n\t\t\tconst padded = padLine(safeContent, innerWidth);\n\t\t\tlines.push(`${borderV} ${padded} ${borderV}`);\n\t\t};\n\t\tconst pushSpacer = (): void => {\n\t\t\tpushRow(\" \".repeat(innerWidth));\n\t\t};\n\t\tconst pushSection = (title: string, content: string[]): void => {\n\t\t\tpushRow(chalk.hex(\"#cbd5f5\").bold(title));\n\t\t\tfor (const line of content) {\n\t\t\t\tpushRow(line);\n\t\t\t}\n\t\t};\n\n\t\t// Top border with title\n\t\tconst topLine = `${chars.topLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.topRight}`;\n\t\tlines.push(chalk.hex(borderColor)(topLine));\n\n\t\tconst title = centerText(\"ACTION APPROVAL\", innerWidth);\n\t\tpushRow(chalk.hex(\"#e2e8f0\").bold(title));\n\n\t\t// Separator\n\t\tconst sepLine = `${chars.leftT}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.rightT}`;\n\t\tlines.push(chalk.hex(borderColor)(sepLine));\n\n\t\tpushSection(\"Reason\", this.describeReason(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Tool\", this.describeTool(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Command\", this.formatCommand(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Queue Status\", [this.describeQueue()]);\n\n\t\t// Footer separator\n\t\tlines.push(chalk.hex(borderColor)(sepLine));\n\n\t\tconst footer = centerText(\n\t\t\t\"[y] approve [n] deny [esc] cancel\",\n\t\t\tinnerWidth,\n\t\t);\n\t\tpushRow(chalk.dim(footer));\n\n\t\t// Bottom border\n\t\tconst bottomLine = `${chars.bottomLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.bottomRight}`;\n\t\tlines.push(chalk.hex(borderColor)(bottomLine));\n\n\t\treturn lines;\n\t}\n\n\thandleInput(data: string): void {\n\t\tif (data === \"y\" || data === \"Y\") {\n\t\t\tthis.options.onApprove();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"n\" || data === \"N\") {\n\t\t\tthis.options.onDeny();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b\") {\n\t\t\tthis.options.onCancel();\n\t\t}\n\t}\n\n\tprivate extractCommand(): string[] | null {\n\t\tconst cmd =\n\t\t\tthis.options.request.args &&\n\t\t\ttypeof this.options.request.args === \"object\" &&\n\t\t\t\"command\" in this.options.request.args &&\n\t\t\ttypeof (this.options.request.args as { command?: unknown }).command ===\n\t\t\t\t\"string\"\n\t\t\t\t? (this.options.request.args as { command: string }).command\n\t\t\t\t: null;\n\t\tif (typeof cmd !== \"string\" || cmd.trim().length === 0) {\n\t\t\treturn null;\n\t\t}\n\t\t// Strip control characters (including ANSI escapes) to avoid terminal injection\n\t\tconst scrubbed = cmd.replace(/[^\\x20-\\x7e\\r\\n]/g, \"\");\n\t\treturn scrubbed.trim().split(/\\r?\\n/).slice(0, 6);\n\t}\n\n\tprivate describeReason(width: number): string[] {\n\t\tconst reason =\n\t\t\ttypeof this.options.request.reason === \"string\" &&\n\t\t\tthis.options.request.reason.trim().length > 0\n\t\t\t\t? this.options.request.reason\n\t\t\t\t: chalk.dim(\"(no reason provided)\");\n\t\treturn wrapTextBlock(reason, width);\n\t}\n\n\tprivate describeTool(width: number): string[] {\n\t\tconst entries: string[] = [];\n\t\tentries.push(\n\t\t\t`${chalk.hex(\"#94a3b8\")(\"Name:\")} ${chalk\n\t\t\t\t.hex(\"#60a5fa\")\n\t\t\t\t.bold(\n\t\t\t\t\tthis.options.request.summaryLabel ||\n\t\t\t\t\t\tthis.options.request.displayName ||\n\t\t\t\t\t\tthis.options.request.toolName,\n\t\t\t\t)}`,\n\t\t);\n\t\tif (\n\t\t\tthis.options.request.displayName &&\n\t\t\tthis.options.request.displayName !== this.options.request.toolName\n\t\t) {\n\t\t\tentries.push(\n\t\t\t\t`${chalk.hex(\"#94a3b8\")(\"Tool:\")} ${chalk.hex(\"#e2e8f0\")(this.options.request.toolName)}`,\n\t\t\t);\n\t\t}\n\t\tif (this.options.request.actionDescription) {\n\t\t\tentries.push(\n\t\t\t\t`${chalk.hex(\"#94a3b8\")(\"Summary:\")} ${chalk.hex(\"#e2e8f0\")(this.options.request.actionDescription)}`,\n\t\t\t);\n\t\t}\n\t\tconst action =\n\t\t\tthis.options.request.args &&\n\t\t\ttypeof this.options.request.args === \"object\" &&\n\t\t\t\"action\" in this.options.request.args\n\t\t\t\t? (this.options.request.args as { action?: unknown }).action\n\t\t\t\t: undefined;\n\t\tif (typeof action === \"string\") {\n\t\t\tentries.push(\n\t\t\t\t`${chalk.hex(\"#94a3b8\")(\"Action:\")} ${chalk.hex(\"#e2e8f0\")(action)}`,\n\t\t\t);\n\t\t}\n\t\tconst shell =\n\t\t\tthis.options.request.args &&\n\t\t\ttypeof this.options.request.args === \"object\" &&\n\t\t\t\"shell\" in this.options.request.args\n\t\t\t\t? (this.options.request.args as { shell?: unknown }).shell\n\t\t\t\t: undefined;\n\t\tif (typeof shell === \"boolean\") {\n\t\t\tentries.push(\n\t\t\t\t`${chalk.hex(\"#94a3b8\")(\"Shell mode:\")} ${shell ? chalk.hex(\"#fbbf24\")(\"enabled\") : chalk.hex(\"#10b981\")(\"disabled\")}`,\n\t\t\t);\n\t\t}\n\t\treturn wrapTextBlock(entries.join(\"\\n\"), width);\n\t}\n\n\tprivate formatCommand(width: number): string[] {\n\t\tconst command = this.extractCommand();\n\t\tif (!command) {\n\t\t\treturn [chalk.dim(\"(no literal command provided)\")];\n\t\t}\n\t\tconst sanitized = command\n\t\t\t.map((line) => ` ${sanitizeAnsi(line)}`)\n\t\t\t.join(\"\\n\");\n\t\treturn wrapTextBlock(sanitized, width);\n\t}\n\n\tprivate describeQueue(): string {\n\t\tif (this.queueSize > 0) {\n\t\t\tconst noun = this.queueSize === 1 ? \"action\" : \"actions\";\n\t\t\treturn chalk.dim(`${this.queueSize} more ${noun} awaiting approval`);\n\t\t}\n\t\treturn chalk.dim(\"No other pending approvals\");\n\t}\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Container } from "@evalops/tui";
|
|
2
|
-
import type { RenderableAssistantMessage } from "../conversation/render-model.js";
|
|
3
|
-
/**
|
|
4
|
-
* Component that renders a complete assistant message.
|
|
5
|
-
*
|
|
6
|
-
* During streaming, we reuse existing Markdown components and update their text
|
|
7
|
-
* via setText() rather than clearing and recreating the entire component tree.
|
|
8
|
-
* This prevents visual flickering/cascading where each delta would cause a full
|
|
9
|
-
* re-render of the content.
|
|
10
|
-
*/
|
|
11
|
-
export declare class AssistantMessageComponent extends Container {
|
|
12
|
-
private headerText;
|
|
13
|
-
private contentContainer;
|
|
14
|
-
private typingIndicator;
|
|
15
|
-
private typingSpacer;
|
|
16
|
-
private typingFrame;
|
|
17
|
-
private typingTimer;
|
|
18
|
-
private isStreaming;
|
|
19
|
-
private readonly animate;
|
|
20
|
-
private textMarkdowns;
|
|
21
|
-
private thinkingContainers;
|
|
22
|
-
private thinkingMarkdowns;
|
|
23
|
-
private statusText;
|
|
24
|
-
private topSpacer;
|
|
25
|
-
constructor(message?: RenderableAssistantMessage, options?: {
|
|
26
|
-
disableAnimations?: boolean;
|
|
27
|
-
});
|
|
28
|
-
startTypingIndicator(): void;
|
|
29
|
-
stopTypingIndicator(): void;
|
|
30
|
-
private removeTypingIndicator;
|
|
31
|
-
private buildTypingLine;
|
|
32
|
-
updateContent(message: RenderableAssistantMessage, options?: {
|
|
33
|
-
streaming?: boolean;
|
|
34
|
-
}): void;
|
|
35
|
-
private updateThinkingBlocks;
|
|
36
|
-
private updateTextBlocks;
|
|
37
|
-
private updateStatusText;
|
|
38
|
-
private createThinkingBlock;
|
|
39
|
-
private buildHeader;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=assistant-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-message.d.ts","sourceRoot":"","sources":["../../src/cli-tui/assistant-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAOlF;;;;;;;GAOG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACvD,OAAO,CAAC,UAAU,CAAO;IACzB,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAA+B;IAClD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAGlC,OAAO,CAAC,aAAa,CAAkB;IACvC,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,SAAS,CAAuB;gBAGvC,OAAO,CAAC,EAAE,0BAA0B,EACpC,OAAO,GAAE;QAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAO;IAuB9C,oBAAoB,IAAI,IAAI;IAiC5B,mBAAmB,IAAI,IAAI;IAS3B,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,eAAe;IAKvB,aAAa,CACZ,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAC/B,IAAI;IA2BP,OAAO,CAAC,oBAAoB;IA2C5B,OAAO,CAAC,gBAAgB;IA0CxB,OAAO,CAAC,gBAAgB;IA0BxB,OAAO,CAAC,mBAAmB;IA2B3B,OAAO,CAAC,WAAW;CAKnB"}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { Container, Markdown, Spacer, Text } from "@evalops/tui";
|
|
2
|
-
import { getMarkdownTheme, theme } from "../theme/theme.js";
|
|
3
|
-
/** Typing indicator dot animation frames */
|
|
4
|
-
const TYPING_FRAMES = ["· ", "·· ", "···", " ··", " ·", " "];
|
|
5
|
-
const TYPING_INTERVAL_MS = 150;
|
|
6
|
-
/**
|
|
7
|
-
* Component that renders a complete assistant message.
|
|
8
|
-
*
|
|
9
|
-
* During streaming, we reuse existing Markdown components and update their text
|
|
10
|
-
* via setText() rather than clearing and recreating the entire component tree.
|
|
11
|
-
* This prevents visual flickering/cascading where each delta would cause a full
|
|
12
|
-
* re-render of the content.
|
|
13
|
-
*/
|
|
14
|
-
export class AssistantMessageComponent extends Container {
|
|
15
|
-
constructor(message, options = {}) {
|
|
16
|
-
super();
|
|
17
|
-
this.typingIndicator = null;
|
|
18
|
-
this.typingSpacer = null;
|
|
19
|
-
this.typingFrame = 0;
|
|
20
|
-
this.typingTimer = null;
|
|
21
|
-
this.isStreaming = false;
|
|
22
|
-
// Track existing components for incremental updates during streaming
|
|
23
|
-
this.textMarkdowns = [];
|
|
24
|
-
this.thinkingContainers = [];
|
|
25
|
-
this.thinkingMarkdowns = [];
|
|
26
|
-
this.statusText = null;
|
|
27
|
-
this.topSpacer = null;
|
|
28
|
-
this.animate = !options.disableAnimations;
|
|
29
|
-
this.contentContainer = new Container();
|
|
30
|
-
// Header with minimal style; updated per message to reflect cleaning state
|
|
31
|
-
this.headerText = new Text("", 1, 0);
|
|
32
|
-
this.addChild(this.headerText);
|
|
33
|
-
this.addChild(this.contentContainer);
|
|
34
|
-
// Add a small spacer at the bottom for separation
|
|
35
|
-
this.addChild(new Spacer(1));
|
|
36
|
-
if (message) {
|
|
37
|
-
this.updateContent(message);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
// No message yet - show typing indicator
|
|
41
|
-
this.startTypingIndicator();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
startTypingIndicator() {
|
|
45
|
-
if (this.isStreaming)
|
|
46
|
-
return;
|
|
47
|
-
this.isStreaming = true;
|
|
48
|
-
this.headerText.setText(this.buildHeader(false));
|
|
49
|
-
this.contentContainer.clear();
|
|
50
|
-
// Reset tracked components since we cleared the container
|
|
51
|
-
this.textMarkdowns = [];
|
|
52
|
-
this.thinkingContainers = [];
|
|
53
|
-
this.thinkingMarkdowns = [];
|
|
54
|
-
this.statusText = null;
|
|
55
|
-
this.topSpacer = null;
|
|
56
|
-
this.typingSpacer = new Spacer(1);
|
|
57
|
-
this.contentContainer.addChild(this.typingSpacer);
|
|
58
|
-
this.typingIndicator = new Text(this.buildTypingLine(), 1, 0);
|
|
59
|
-
this.contentContainer.addChild(this.typingIndicator);
|
|
60
|
-
// Reduced motion / accessibility: render a static indicator and skip timers.
|
|
61
|
-
if (!this.animate) {
|
|
62
|
-
this.typingFrame = 2; // "···"
|
|
63
|
-
this.typingIndicator.setText(this.buildTypingLine());
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
this.typingTimer = setInterval(() => {
|
|
67
|
-
this.typingFrame = (this.typingFrame + 1) % TYPING_FRAMES.length;
|
|
68
|
-
if (this.typingIndicator) {
|
|
69
|
-
this.typingIndicator.setText(this.buildTypingLine());
|
|
70
|
-
}
|
|
71
|
-
}, TYPING_INTERVAL_MS);
|
|
72
|
-
}
|
|
73
|
-
stopTypingIndicator() {
|
|
74
|
-
if (this.typingTimer) {
|
|
75
|
-
clearInterval(this.typingTimer);
|
|
76
|
-
this.typingTimer = null;
|
|
77
|
-
}
|
|
78
|
-
this.removeTypingIndicator();
|
|
79
|
-
this.isStreaming = false;
|
|
80
|
-
}
|
|
81
|
-
removeTypingIndicator() {
|
|
82
|
-
if (!this.typingIndicator)
|
|
83
|
-
return;
|
|
84
|
-
const indicatorIndex = this.contentContainer.children.indexOf(this.typingIndicator);
|
|
85
|
-
if (indicatorIndex !== -1) {
|
|
86
|
-
this.contentContainer.children.splice(indicatorIndex, 1);
|
|
87
|
-
}
|
|
88
|
-
if (this.typingSpacer) {
|
|
89
|
-
const spacerIndex = this.contentContainer.children.indexOf(this.typingSpacer);
|
|
90
|
-
if (spacerIndex !== -1) {
|
|
91
|
-
this.contentContainer.children.splice(spacerIndex, 1);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
this.typingIndicator = null;
|
|
95
|
-
this.typingSpacer = null;
|
|
96
|
-
}
|
|
97
|
-
buildTypingLine() {
|
|
98
|
-
const dots = TYPING_FRAMES[this.typingFrame] ?? "···";
|
|
99
|
-
return theme.fg("muted", `${dots}`);
|
|
100
|
-
}
|
|
101
|
-
updateContent(message, options) {
|
|
102
|
-
this.stopTypingIndicator();
|
|
103
|
-
this.headerText.setText(this.buildHeader(message.cleaned));
|
|
104
|
-
const streaming = Boolean(options?.streaming);
|
|
105
|
-
const hasPrimaryContent = message.textBlocks.length > 0 || message.thinkingBlocks.length > 0;
|
|
106
|
-
// Manage top spacer
|
|
107
|
-
if (hasPrimaryContent && !this.topSpacer) {
|
|
108
|
-
this.topSpacer = new Spacer(1);
|
|
109
|
-
this.contentContainer.addChild(this.topSpacer);
|
|
110
|
-
}
|
|
111
|
-
else if (!hasPrimaryContent && this.topSpacer) {
|
|
112
|
-
this.contentContainer.removeChild(this.topSpacer);
|
|
113
|
-
this.topSpacer = null;
|
|
114
|
-
}
|
|
115
|
-
// Update thinking blocks - reuse existing components where possible
|
|
116
|
-
this.updateThinkingBlocks(message.thinkingBlocks, streaming);
|
|
117
|
-
// Update text blocks - reuse existing Markdown components where possible
|
|
118
|
-
this.updateTextBlocks(message.textBlocks, streaming);
|
|
119
|
-
// Handle status text (aborted/error messages)
|
|
120
|
-
this.updateStatusText(message);
|
|
121
|
-
}
|
|
122
|
-
updateThinkingBlocks(thinkingBlocks, streaming) {
|
|
123
|
-
// Update existing thinking blocks
|
|
124
|
-
for (let i = 0; i < thinkingBlocks.length; i++) {
|
|
125
|
-
const blockText = thinkingBlocks[i];
|
|
126
|
-
if (i < this.thinkingMarkdowns.length) {
|
|
127
|
-
// Reuse existing markdown component
|
|
128
|
-
this.thinkingMarkdowns[i].setStreaming(streaming);
|
|
129
|
-
this.thinkingMarkdowns[i].setText(blockText);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
// Create new thinking block
|
|
133
|
-
const container = this.createThinkingBlock(blockText, streaming);
|
|
134
|
-
this.thinkingContainers.push(container);
|
|
135
|
-
// Extract the Markdown component from the container (it's the second child)
|
|
136
|
-
const markdown = container.children[1];
|
|
137
|
-
this.thinkingMarkdowns.push(markdown);
|
|
138
|
-
// Insert before text blocks
|
|
139
|
-
const insertIndex = this.topSpacer ? 1 + i * 2 : i * 2;
|
|
140
|
-
this.contentContainer.children.splice(insertIndex, 0, container);
|
|
141
|
-
this.contentContainer.children.splice(insertIndex + 1, 0, new Spacer(1));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
// Remove excess thinking blocks
|
|
145
|
-
while (this.thinkingContainers.length > thinkingBlocks.length) {
|
|
146
|
-
const container = this.thinkingContainers.pop();
|
|
147
|
-
this.thinkingMarkdowns.pop();
|
|
148
|
-
if (container) {
|
|
149
|
-
// Remove the container and its following spacer
|
|
150
|
-
const idx = this.contentContainer.children.indexOf(container);
|
|
151
|
-
if (idx !== -1) {
|
|
152
|
-
this.contentContainer.children.splice(idx, 2); // Remove container and spacer
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
updateTextBlocks(textBlocks, streaming) {
|
|
158
|
-
// Update existing text markdown components
|
|
159
|
-
for (let i = 0; i < textBlocks.length; i++) {
|
|
160
|
-
const blockText = textBlocks[i];
|
|
161
|
-
if (i < this.textMarkdowns.length) {
|
|
162
|
-
// Reuse existing markdown component
|
|
163
|
-
this.textMarkdowns[i].setStreaming(streaming);
|
|
164
|
-
this.textMarkdowns[i].setText(blockText);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
// Create new markdown component
|
|
168
|
-
const markdown = new Markdown(blockText, undefined, undefined, undefined, 1, 0, getMarkdownTheme());
|
|
169
|
-
markdown.setStreaming(streaming);
|
|
170
|
-
this.textMarkdowns.push(markdown);
|
|
171
|
-
// Insert before status text if it exists, otherwise at end
|
|
172
|
-
if (this.statusText) {
|
|
173
|
-
const statusIdx = this.contentContainer.children.indexOf(this.statusText);
|
|
174
|
-
this.contentContainer.children.splice(statusIdx, 0, markdown);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
this.contentContainer.addChild(markdown);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
// Remove excess text markdown components
|
|
182
|
-
while (this.textMarkdowns.length > textBlocks.length) {
|
|
183
|
-
const markdown = this.textMarkdowns.pop();
|
|
184
|
-
if (markdown) {
|
|
185
|
-
this.contentContainer.removeChild(markdown);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
updateStatusText(message) {
|
|
190
|
-
const hasToolCalls = message.toolCalls.length > 0;
|
|
191
|
-
let newStatusText = null;
|
|
192
|
-
if (!hasToolCalls) {
|
|
193
|
-
if (message.stopReason === "aborted") {
|
|
194
|
-
newStatusText = theme.fg("error", "Aborted");
|
|
195
|
-
}
|
|
196
|
-
else if (message.stopReason === "error") {
|
|
197
|
-
const errorMsg = message.errorMessage || "Unknown error";
|
|
198
|
-
newStatusText = theme.fg("error", `Error: ${errorMsg}`);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
if (newStatusText) {
|
|
202
|
-
if (this.statusText) {
|
|
203
|
-
this.statusText.setText(newStatusText);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
this.statusText = new Text(newStatusText, 1, 0);
|
|
207
|
-
this.contentContainer.addChild(this.statusText);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
else if (this.statusText) {
|
|
211
|
-
this.contentContainer.removeChild(this.statusText);
|
|
212
|
-
this.statusText = null;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
createThinkingBlock(text, streaming) {
|
|
216
|
-
const container = new Container();
|
|
217
|
-
// Dashed header line
|
|
218
|
-
const headerLine = theme.fg("dim", `-- thinking ${"-".repeat(40)}`);
|
|
219
|
-
container.addChild(new Text(headerLine, 1, 0));
|
|
220
|
-
// Thinking content (dimmed, indented)
|
|
221
|
-
const markdown = new Markdown(text, undefined, undefined, undefined, 2, // Indent
|
|
222
|
-
0, getMarkdownTheme());
|
|
223
|
-
markdown.setStreaming(streaming);
|
|
224
|
-
container.addChild(markdown);
|
|
225
|
-
// Dashed footer line
|
|
226
|
-
const footerLine = theme.fg("dim", "-".repeat(53));
|
|
227
|
-
container.addChild(new Text(footerLine, 1, 0));
|
|
228
|
-
return container;
|
|
229
|
-
}
|
|
230
|
-
buildHeader(cleaned) {
|
|
231
|
-
const brand = theme.fg("accent", "* MAESTRO");
|
|
232
|
-
const base = `${brand} ${theme.fg("muted", "· response")}`;
|
|
233
|
-
return cleaned ? `${base} ${theme.fg("muted", "· cleaned")}` : base;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
//# sourceMappingURL=assistant-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-message.js","sourceRoot":"","sources":["../../src/cli-tui/assistant-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS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AC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAE/C,OAAO,SAAS,CAAC;IAClB,CAAC;IAEO,WAAW,CAAC,OAAgB;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,GAAG,KAAK,IAAI,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC;QAC3D,OAAO,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACrE,CAAC;CACD","sourcesContent":["import { Container, Markdown, Spacer, Text } from \"@evalops/tui\";\nimport type { RenderableAssistantMessage } from \"../conversation/render-model.js\";\nimport { getMarkdownTheme, theme } from \"../theme/theme.js\";\n\n/** Typing indicator dot animation frames */\nconst TYPING_FRAMES = [\"· \", \"·· \", \"···\", \" ··\", \" ·\", \" \"];\nconst TYPING_INTERVAL_MS = 150;\n\n/**\n * Component that renders a complete assistant message.\n *\n * During streaming, we reuse existing Markdown components and update their text\n * via setText() rather than clearing and recreating the entire component tree.\n * This prevents visual flickering/cascading where each delta would cause a full\n * re-render of the content.\n */\nexport class AssistantMessageComponent extends Container {\n\tprivate headerText: Text;\n\tprivate contentContainer: Container;\n\tprivate typingIndicator: Text | null = null;\n\tprivate typingSpacer: Spacer | null = null;\n\tprivate typingFrame = 0;\n\tprivate typingTimer: NodeJS.Timeout | null = null;\n\tprivate isStreaming = false;\n\tprivate readonly animate: boolean;\n\n\t// Track existing components for incremental updates during streaming\n\tprivate textMarkdowns: Markdown[] = [];\n\tprivate thinkingContainers: Container[] = [];\n\tprivate thinkingMarkdowns: Markdown[] = [];\n\tprivate statusText: Text | null = null;\n\tprivate topSpacer: Spacer | null = null;\n\n\tconstructor(\n\t\tmessage?: RenderableAssistantMessage,\n\t\toptions: { disableAnimations?: boolean } = {},\n\t) {\n\t\tsuper();\n\t\tthis.animate = !options.disableAnimations;\n\t\tthis.contentContainer = new Container();\n\n\t\t// Header with minimal style; updated per message to reflect cleaning state\n\t\tthis.headerText = new Text(\"\", 1, 0);\n\t\tthis.addChild(this.headerText);\n\n\t\tthis.addChild(this.contentContainer);\n\n\t\t// Add a small spacer at the bottom for separation\n\t\tthis.addChild(new Spacer(1));\n\n\t\tif (message) {\n\t\t\tthis.updateContent(message);\n\t\t} else {\n\t\t\t// No message yet - show typing indicator\n\t\t\tthis.startTypingIndicator();\n\t\t}\n\t}\n\n\tstartTypingIndicator(): void {\n\t\tif (this.isStreaming) return;\n\t\tthis.isStreaming = true;\n\t\tthis.headerText.setText(this.buildHeader(false));\n\t\tthis.contentContainer.clear();\n\t\t// Reset tracked components since we cleared the container\n\t\tthis.textMarkdowns = [];\n\t\tthis.thinkingContainers = [];\n\t\tthis.thinkingMarkdowns = [];\n\t\tthis.statusText = null;\n\t\tthis.topSpacer = null;\n\n\t\tthis.typingSpacer = new Spacer(1);\n\t\tthis.contentContainer.addChild(this.typingSpacer);\n\n\t\tthis.typingIndicator = new Text(this.buildTypingLine(), 1, 0);\n\t\tthis.contentContainer.addChild(this.typingIndicator);\n\n\t\t// Reduced motion / accessibility: render a static indicator and skip timers.\n\t\tif (!this.animate) {\n\t\t\tthis.typingFrame = 2; // \"···\"\n\t\t\tthis.typingIndicator.setText(this.buildTypingLine());\n\t\t\treturn;\n\t\t}\n\n\t\tthis.typingTimer = setInterval(() => {\n\t\t\tthis.typingFrame = (this.typingFrame + 1) % TYPING_FRAMES.length;\n\t\t\tif (this.typingIndicator) {\n\t\t\t\tthis.typingIndicator.setText(this.buildTypingLine());\n\t\t\t}\n\t\t}, TYPING_INTERVAL_MS);\n\t}\n\n\tstopTypingIndicator(): void {\n\t\tif (this.typingTimer) {\n\t\t\tclearInterval(this.typingTimer);\n\t\t\tthis.typingTimer = null;\n\t\t}\n\t\tthis.removeTypingIndicator();\n\t\tthis.isStreaming = false;\n\t}\n\n\tprivate removeTypingIndicator(): void {\n\t\tif (!this.typingIndicator) return;\n\n\t\tconst indicatorIndex = this.contentContainer.children.indexOf(\n\t\t\tthis.typingIndicator,\n\t\t);\n\t\tif (indicatorIndex !== -1) {\n\t\t\tthis.contentContainer.children.splice(indicatorIndex, 1);\n\t\t}\n\n\t\tif (this.typingSpacer) {\n\t\t\tconst spacerIndex = this.contentContainer.children.indexOf(\n\t\t\t\tthis.typingSpacer,\n\t\t\t);\n\t\t\tif (spacerIndex !== -1) {\n\t\t\t\tthis.contentContainer.children.splice(spacerIndex, 1);\n\t\t\t}\n\t\t}\n\n\t\tthis.typingIndicator = null;\n\t\tthis.typingSpacer = null;\n\t}\n\n\tprivate buildTypingLine(): string {\n\t\tconst dots = TYPING_FRAMES[this.typingFrame] ?? \"···\";\n\t\treturn theme.fg(\"muted\", `${dots}`);\n\t}\n\n\tupdateContent(\n\t\tmessage: RenderableAssistantMessage,\n\t\toptions?: { streaming?: boolean },\n\t): void {\n\t\tthis.stopTypingIndicator();\n\t\tthis.headerText.setText(this.buildHeader(message.cleaned));\n\t\tconst streaming = Boolean(options?.streaming);\n\n\t\tconst hasPrimaryContent =\n\t\t\tmessage.textBlocks.length > 0 || message.thinkingBlocks.length > 0;\n\n\t\t// Manage top spacer\n\t\tif (hasPrimaryContent && !this.topSpacer) {\n\t\t\tthis.topSpacer = new Spacer(1);\n\t\t\tthis.contentContainer.addChild(this.topSpacer);\n\t\t} else if (!hasPrimaryContent && this.topSpacer) {\n\t\t\tthis.contentContainer.removeChild(this.topSpacer);\n\t\t\tthis.topSpacer = null;\n\t\t}\n\n\t\t// Update thinking blocks - reuse existing components where possible\n\t\tthis.updateThinkingBlocks(message.thinkingBlocks, streaming);\n\n\t\t// Update text blocks - reuse existing Markdown components where possible\n\t\tthis.updateTextBlocks(message.textBlocks, streaming);\n\n\t\t// Handle status text (aborted/error messages)\n\t\tthis.updateStatusText(message);\n\t}\n\n\tprivate updateThinkingBlocks(\n\t\tthinkingBlocks: string[],\n\t\tstreaming: boolean,\n\t): void {\n\t\t// Update existing thinking blocks\n\t\tfor (let i = 0; i < thinkingBlocks.length; i++) {\n\t\t\tconst blockText = thinkingBlocks[i]!;\n\t\t\tif (i < this.thinkingMarkdowns.length) {\n\t\t\t\t// Reuse existing markdown component\n\t\t\t\tthis.thinkingMarkdowns[i]!.setStreaming(streaming);\n\t\t\t\tthis.thinkingMarkdowns[i]!.setText(blockText);\n\t\t\t} else {\n\t\t\t\t// Create new thinking block\n\t\t\t\tconst container = this.createThinkingBlock(blockText, streaming);\n\t\t\t\tthis.thinkingContainers.push(container);\n\t\t\t\t// Extract the Markdown component from the container (it's the second child)\n\t\t\t\tconst markdown = container.children[1] as Markdown;\n\t\t\t\tthis.thinkingMarkdowns.push(markdown);\n\t\t\t\t// Insert before text blocks\n\t\t\t\tconst insertIndex = this.topSpacer ? 1 + i * 2 : i * 2;\n\t\t\t\tthis.contentContainer.children.splice(insertIndex, 0, container);\n\t\t\t\tthis.contentContainer.children.splice(\n\t\t\t\t\tinsertIndex + 1,\n\t\t\t\t\t0,\n\t\t\t\t\tnew Spacer(1),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// Remove excess thinking blocks\n\t\twhile (this.thinkingContainers.length > thinkingBlocks.length) {\n\t\t\tconst container = this.thinkingContainers.pop();\n\t\t\tthis.thinkingMarkdowns.pop();\n\t\t\tif (container) {\n\t\t\t\t// Remove the container and its following spacer\n\t\t\t\tconst idx = this.contentContainer.children.indexOf(container);\n\t\t\t\tif (idx !== -1) {\n\t\t\t\t\tthis.contentContainer.children.splice(idx, 2); // Remove container and spacer\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate updateTextBlocks(textBlocks: string[], streaming: boolean): void {\n\t\t// Update existing text markdown components\n\t\tfor (let i = 0; i < textBlocks.length; i++) {\n\t\t\tconst blockText = textBlocks[i]!;\n\t\t\tif (i < this.textMarkdowns.length) {\n\t\t\t\t// Reuse existing markdown component\n\t\t\t\tthis.textMarkdowns[i]!.setStreaming(streaming);\n\t\t\t\tthis.textMarkdowns[i]!.setText(blockText);\n\t\t\t} else {\n\t\t\t\t// Create new markdown component\n\t\t\t\tconst markdown = new Markdown(\n\t\t\t\t\tblockText,\n\t\t\t\t\tundefined,\n\t\t\t\t\tundefined,\n\t\t\t\t\tundefined,\n\t\t\t\t\t1,\n\t\t\t\t\t0,\n\t\t\t\t\tgetMarkdownTheme(),\n\t\t\t\t);\n\t\t\t\tmarkdown.setStreaming(streaming);\n\t\t\t\tthis.textMarkdowns.push(markdown);\n\t\t\t\t// Insert before status text if it exists, otherwise at end\n\t\t\t\tif (this.statusText) {\n\t\t\t\t\tconst statusIdx = this.contentContainer.children.indexOf(\n\t\t\t\t\t\tthis.statusText,\n\t\t\t\t\t);\n\t\t\t\t\tthis.contentContainer.children.splice(statusIdx, 0, markdown);\n\t\t\t\t} else {\n\t\t\t\t\tthis.contentContainer.addChild(markdown);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Remove excess text markdown components\n\t\twhile (this.textMarkdowns.length > textBlocks.length) {\n\t\t\tconst markdown = this.textMarkdowns.pop();\n\t\t\tif (markdown) {\n\t\t\t\tthis.contentContainer.removeChild(markdown);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate updateStatusText(message: RenderableAssistantMessage): void {\n\t\tconst hasToolCalls = message.toolCalls.length > 0;\n\t\tlet newStatusText: string | null = null;\n\n\t\tif (!hasToolCalls) {\n\t\t\tif (message.stopReason === \"aborted\") {\n\t\t\t\tnewStatusText = theme.fg(\"error\", \"Aborted\");\n\t\t\t} else if (message.stopReason === \"error\") {\n\t\t\t\tconst errorMsg = message.errorMessage || \"Unknown error\";\n\t\t\t\tnewStatusText = theme.fg(\"error\", `Error: ${errorMsg}`);\n\t\t\t}\n\t\t}\n\n\t\tif (newStatusText) {\n\t\t\tif (this.statusText) {\n\t\t\t\tthis.statusText.setText(newStatusText);\n\t\t\t} else {\n\t\t\t\tthis.statusText = new Text(newStatusText, 1, 0);\n\t\t\t\tthis.contentContainer.addChild(this.statusText);\n\t\t\t}\n\t\t} else if (this.statusText) {\n\t\t\tthis.contentContainer.removeChild(this.statusText);\n\t\t\tthis.statusText = null;\n\t\t}\n\t}\n\n\tprivate createThinkingBlock(text: string, streaming: boolean): Container {\n\t\tconst container = new Container();\n\n\t\t// Dashed header line\n\t\tconst headerLine = theme.fg(\"dim\", `-- thinking ${\"-\".repeat(40)}`);\n\t\tcontainer.addChild(new Text(headerLine, 1, 0));\n\n\t\t// Thinking content (dimmed, indented)\n\t\tconst markdown = new Markdown(\n\t\t\ttext,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\t2, // Indent\n\t\t\t0,\n\t\t\tgetMarkdownTheme(),\n\t\t);\n\t\tmarkdown.setStreaming(streaming);\n\t\tcontainer.addChild(markdown);\n\n\t\t// Dashed footer line\n\t\tconst footerLine = theme.fg(\"dim\", \"-\".repeat(53));\n\t\tcontainer.addChild(new Text(footerLine, 1, 0));\n\n\t\treturn container;\n\t}\n\n\tprivate buildHeader(cleaned: boolean): string {\n\t\tconst brand = theme.fg(\"accent\", \"* MAESTRO\");\n\t\tconst base = `${brand} ${theme.fg(\"muted\", \"· response\")}`;\n\t\treturn cleaned ? `${base} ${theme.fg(\"muted\", \"· cleaned\")}` : base;\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../../src/cli-tui/auth-state.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,eAAe,CACpC,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,YAAY,CAAC,CAmDvB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { hasOpenAICodexAppServerAccount } from "../codex/auth.js";
|
|
2
|
-
import { listOAuthProviders, loadOAuthCredentials } from "../oauth/storage.js";
|
|
3
|
-
export async function getTuiAuthState(currentProvider) {
|
|
4
|
-
const providers = listOAuthProviders();
|
|
5
|
-
let hasCodexAppServerAccount;
|
|
6
|
-
const maybeHasCodexAppServerAccount = async () => {
|
|
7
|
-
hasCodexAppServerAccount ??= await hasOpenAICodexAppServerAccount();
|
|
8
|
-
return hasCodexAppServerAccount;
|
|
9
|
-
};
|
|
10
|
-
if (providers.length === 0) {
|
|
11
|
-
if (await maybeHasCodexAppServerAccount()) {
|
|
12
|
-
return {
|
|
13
|
-
authenticated: true,
|
|
14
|
-
provider: "openai-codex",
|
|
15
|
-
mode: "app-server",
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
return { authenticated: false };
|
|
19
|
-
}
|
|
20
|
-
let activeProvider = providers[0];
|
|
21
|
-
if (currentProvider === "openai-codex") {
|
|
22
|
-
if (providers.includes("openai-codex") ||
|
|
23
|
-
(await maybeHasCodexAppServerAccount())) {
|
|
24
|
-
activeProvider = "openai-codex";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else if (currentProvider && providers.includes(currentProvider)) {
|
|
28
|
-
activeProvider = currentProvider;
|
|
29
|
-
}
|
|
30
|
-
if (!activeProvider) {
|
|
31
|
-
return { authenticated: false, provider: undefined, mode: undefined };
|
|
32
|
-
}
|
|
33
|
-
const credentials = loadOAuthCredentials(activeProvider);
|
|
34
|
-
const storedMode = credentials?.metadata?.mode;
|
|
35
|
-
const mode = storedMode ??
|
|
36
|
-
(activeProvider === "openai-codex" &&
|
|
37
|
-
(await maybeHasCodexAppServerAccount())
|
|
38
|
-
? "app-server"
|
|
39
|
-
: undefined);
|
|
40
|
-
return {
|
|
41
|
-
authenticated: true,
|
|
42
|
-
provider: activeProvider,
|
|
43
|
-
mode,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=auth-state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-state.js","sourceRoot":"","sources":["../../src/cli-tui/auth-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAQ/E,MAAM,CAAC,KAAK,UAAU,eAAe,CACpC,eAAwB;IAExB,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAC;IACvC,IAAI,wBAA6C,CAAC;IAClD,MAAM,6BAA6B,GAAG,KAAK,IAAsB,EAAE;QAClE,wBAAwB,KAAK,MAAM,8BAA8B,EAAE,CAAC;QACpE,OAAO,wBAAwB,CAAC;IACjC,CAAC,CAAC;IAEF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5B,IAAI,MAAM,6BAA6B,EAAE,EAAE,CAAC;YAC3C,OAAO;gBACN,aAAa,EAAE,IAAI;gBACnB,QAAQ,EAAE,cAAc;gBACxB,IAAI,EAAE,YAAY;aAClB,CAAC;QACH,CAAC;QAED,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;IACjC,CAAC;IAED,IAAI,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAElC,IAAI,eAAe,KAAK,cAAc,EAAE,CAAC;QACxC,IACC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC;YAClC,CAAC,MAAM,6BAA6B,EAAE,CAAC,EACtC,CAAC;YACF,cAAc,GAAG,cAAc,CAAC;QACjC,CAAC;IACF,CAAC;SAAM,IAAI,eAAe,IAAI,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QACnE,cAAc,GAAG,eAAe,CAAC;IAClC,CAAC;IAED,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACvE,CAAC;IAED,MAAM,WAAW,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,WAAW,EAAE,QAAQ,EAAE,IAA0B,CAAC;IACrE,MAAM,IAAI,GACT,UAAU;QACV,CAAC,cAAc,KAAK,cAAc;YAClC,CAAC,MAAM,6BAA6B,EAAE,CAAC;YACtC,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,SAAS,CAAC,CAAC;IAEf,OAAO;QACN,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,cAAc;QACxB,IAAI;KACJ,CAAC;AACH,CAAC","sourcesContent":["import { hasOpenAICodexAppServerAccount } from \"../codex/auth.js\";\nimport { listOAuthProviders, loadOAuthCredentials } from \"../oauth/storage.js\";\n\nexport interface TuiAuthState {\n\tauthenticated: boolean;\n\tprovider?: string;\n\tmode?: string;\n}\n\nexport async function getTuiAuthState(\n\tcurrentProvider?: string,\n): Promise<TuiAuthState> {\n\tconst providers = listOAuthProviders();\n\tlet hasCodexAppServerAccount: boolean | undefined;\n\tconst maybeHasCodexAppServerAccount = async (): Promise<boolean> => {\n\t\thasCodexAppServerAccount ??= await hasOpenAICodexAppServerAccount();\n\t\treturn hasCodexAppServerAccount;\n\t};\n\n\tif (providers.length === 0) {\n\t\tif (await maybeHasCodexAppServerAccount()) {\n\t\t\treturn {\n\t\t\t\tauthenticated: true,\n\t\t\t\tprovider: \"openai-codex\",\n\t\t\t\tmode: \"app-server\",\n\t\t\t};\n\t\t}\n\n\t\treturn { authenticated: false };\n\t}\n\n\tlet activeProvider = providers[0];\n\n\tif (currentProvider === \"openai-codex\") {\n\t\tif (\n\t\t\tproviders.includes(\"openai-codex\") ||\n\t\t\t(await maybeHasCodexAppServerAccount())\n\t\t) {\n\t\t\tactiveProvider = \"openai-codex\";\n\t\t}\n\t} else if (currentProvider && providers.includes(currentProvider)) {\n\t\tactiveProvider = currentProvider;\n\t}\n\n\tif (!activeProvider) {\n\t\treturn { authenticated: false, provider: undefined, mode: undefined };\n\t}\n\n\tconst credentials = loadOAuthCredentials(activeProvider);\n\tconst storedMode = credentials?.metadata?.mode as string | undefined;\n\tconst mode =\n\t\tstoredMode ??\n\t\t(activeProvider === \"openai-codex\" &&\n\t\t(await maybeHasCodexAppServerAccount())\n\t\t\t? \"app-server\"\n\t\t\t: undefined);\n\n\treturn {\n\t\tauthenticated: true,\n\t\tprovider: activeProvider,\n\t\tmode,\n\t};\n}\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type Container, type TUI } from "@evalops/tui";
|
|
2
|
-
import type { CommandExecutionContext } from "../commands/types.js";
|
|
3
|
-
import type { NotificationView } from "../notification-view.js";
|
|
4
|
-
export interface BackgroundTasksControllerOptions {
|
|
5
|
-
chatContainer: Container;
|
|
6
|
-
ui: TUI;
|
|
7
|
-
notificationView: NotificationView;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Controller for background-tasks UI concerns:
|
|
11
|
-
* - Persisted background task settings subscription
|
|
12
|
-
* - Toast notifications for task restart/failure/limit events
|
|
13
|
-
* - /background slash command delegation
|
|
14
|
-
* - Summary counts for footer hints
|
|
15
|
-
*/
|
|
16
|
-
export declare class BackgroundTasksController {
|
|
17
|
-
private readonly options;
|
|
18
|
-
private settings;
|
|
19
|
-
private unsubscribeSettings?;
|
|
20
|
-
private notificationCleanup?;
|
|
21
|
-
constructor(options: BackgroundTasksControllerOptions);
|
|
22
|
-
startNotifications(): void;
|
|
23
|
-
stop(): void;
|
|
24
|
-
handleBackgroundCommand(context: CommandExecutionContext): void;
|
|
25
|
-
getCounts(): {
|
|
26
|
-
running: number;
|
|
27
|
-
failed: number;
|
|
28
|
-
};
|
|
29
|
-
private createRenderContext;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=background-tasks-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"background-tasks-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/background/background-tasks-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAU,KAAK,GAAG,EAAQ,MAAM,cAAc,CAAC;AAetE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,gCAAgC;IAChD,aAAa,EAAE,SAAS,CAAC;IACzB,EAAE,EAAE,GAAG,CAAC;IACR,gBAAgB,EAAE,gBAAgB,CAAC;CACnC;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IAKzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,QAAQ,CAAuD;IACvE,OAAO,CAAC,mBAAmB,CAAC,CAAa;IACzC,OAAO,CAAC,mBAAmB,CAAC,CAAa;gBAEZ,OAAO,EAAE,gCAAgC;IAMtE,kBAAkB,IAAI,IAAI;IAwB1B,IAAI,IAAI,IAAI;IAOZ,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAI/D,SAAS,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAehD,OAAO,CAAC,mBAAmB;CAuB3B"}
|