@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,206 +0,0 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import * as os from "node:os";
|
|
3
|
-
import { dirname } from "node:path";
|
|
4
|
-
import { Spacer, Text } from "@evalops/tui";
|
|
5
|
-
import chalk from "chalk";
|
|
6
|
-
import clipboard from "clipboardy";
|
|
7
|
-
import { loadProjectContextFiles } from "../cli/system-prompt.js";
|
|
8
|
-
import { PATHS } from "../config/constants.js";
|
|
9
|
-
import { TOOL_FAILURE_LOG_PATH } from "./tool-status-view.js";
|
|
10
|
-
export class AboutView {
|
|
11
|
-
constructor(options) {
|
|
12
|
-
this.options = options;
|
|
13
|
-
}
|
|
14
|
-
handleAboutCommand() {
|
|
15
|
-
const text = this.buildAboutCard();
|
|
16
|
-
const copied = this.copyToClipboard(text);
|
|
17
|
-
const copyNote = copied
|
|
18
|
-
? chalk.dim("About snapshot copied to clipboard.")
|
|
19
|
-
: chalk.dim("(Copy failed — select and copy manually.)");
|
|
20
|
-
this.options.chatContainer.addChild(new Spacer(1));
|
|
21
|
-
this.options.chatContainer.addChild(new Text(`${text}\n\n${copyNote}`, 1, 0));
|
|
22
|
-
this.options.ui.requestRender();
|
|
23
|
-
}
|
|
24
|
-
buildAboutCard() {
|
|
25
|
-
const header = this.buildHeader();
|
|
26
|
-
const sections = [
|
|
27
|
-
this.buildMetaSection(),
|
|
28
|
-
this.buildEnvSection(),
|
|
29
|
-
this.buildGitSection(),
|
|
30
|
-
this.buildPathSection(),
|
|
31
|
-
this.buildSessionContextSection(),
|
|
32
|
-
this.buildContextSection(),
|
|
33
|
-
this.buildAttachmentSection(),
|
|
34
|
-
]
|
|
35
|
-
.filter(Boolean)
|
|
36
|
-
.join("\n\n");
|
|
37
|
-
return `${header}\n\n${sections}`;
|
|
38
|
-
}
|
|
39
|
-
buildHeader() {
|
|
40
|
-
const top = chalk.hex("#7c3aed")("╭─────────────────────────────✷────────────────────────────╮");
|
|
41
|
-
const title = chalk.hex("#f472b6")("│ ✦ maestro about ✦ │");
|
|
42
|
-
const bottom = chalk.hex("#7c3aed")("╰──────────────────────────────────────────────────────────╯");
|
|
43
|
-
return `${top}\n${title}\n${bottom}`;
|
|
44
|
-
}
|
|
45
|
-
buildMetaSection() {
|
|
46
|
-
const model = this.options.agent.state.model
|
|
47
|
-
? `${this.options.agent.state.model.provider}/${this.options.agent.state.model.id}`
|
|
48
|
-
: "unknown";
|
|
49
|
-
const sessionId = this.options.sessionManager.getSessionId();
|
|
50
|
-
const safeMode = process.env.MAESTRO_SAFE_MODE === "1" ? "on" : "off";
|
|
51
|
-
const pendingTools = this.options.agent.state.pendingToolCalls?.size ?? 0;
|
|
52
|
-
const approvalMode = this.options.getApprovalMode
|
|
53
|
-
? this.options.getApprovalMode()
|
|
54
|
-
: "unknown";
|
|
55
|
-
const otel = this.options.otelStatus
|
|
56
|
-
? this.options.otelStatus()
|
|
57
|
-
: {
|
|
58
|
-
enabled: false,
|
|
59
|
-
reason: "not configured",
|
|
60
|
-
serviceName: "composer",
|
|
61
|
-
sdkStarted: false,
|
|
62
|
-
autoInstrumentation: false,
|
|
63
|
-
};
|
|
64
|
-
const lines = [
|
|
65
|
-
`${this.badge("version")}${this.options.version}`,
|
|
66
|
-
`${this.badge("model")}${model}`,
|
|
67
|
-
`${this.badge("session")}${sessionId}`,
|
|
68
|
-
`${this.badge("telemetry")}${this.options.telemetryStatus()}`,
|
|
69
|
-
`${this.badge("otel")}${otel.enabled ? "on" : "off"} (${otel.reason})`,
|
|
70
|
-
`${this.badge("safe-mode")}${safeMode}`,
|
|
71
|
-
`${this.badge("approvals")}${approvalMode}`,
|
|
72
|
-
`${this.badge("pending")}${pendingTools} tools`,
|
|
73
|
-
];
|
|
74
|
-
return this.section("status", lines);
|
|
75
|
-
}
|
|
76
|
-
buildEnvSection() {
|
|
77
|
-
const platform = process.platform;
|
|
78
|
-
const osName = platform === "darwin"
|
|
79
|
-
? "macOS"
|
|
80
|
-
: platform === "win32"
|
|
81
|
-
? "Windows"
|
|
82
|
-
: "Linux";
|
|
83
|
-
const release = os.release();
|
|
84
|
-
const version = typeof os.version === "function" ? os.version() : "";
|
|
85
|
-
const lines = [
|
|
86
|
-
`${this.badge("os")}${osName} ${release}`,
|
|
87
|
-
version && !version.includes(release) ? ` ${chalk.dim(version)}` : null,
|
|
88
|
-
`${this.badge("node")}${process.version}`,
|
|
89
|
-
process.versions?.bun
|
|
90
|
-
? `${this.badge("bun")}${process.versions.bun}`
|
|
91
|
-
: null,
|
|
92
|
-
process.env.TERM ? `${this.badge("term")}${process.env.TERM}` : null,
|
|
93
|
-
].filter(Boolean);
|
|
94
|
-
return this.section("environment", lines);
|
|
95
|
-
}
|
|
96
|
-
buildGitSection() {
|
|
97
|
-
const gitState = this.options.gitView.getWorkingTreeState();
|
|
98
|
-
const branch = gitState?.branch ?? "unknown";
|
|
99
|
-
const dirty = gitState ? (gitState.dirty ? "yes" : "no") : "unknown";
|
|
100
|
-
const commit = this.options.gitView.getCurrentCommit() ?? "unknown";
|
|
101
|
-
const summary = `${branch} @ ${commit} (dirty: ${dirty})`;
|
|
102
|
-
const status = this.options.gitView.getStatusSummary() ?? "git status unavailable";
|
|
103
|
-
const lines = [summary, ...this.trimLines(status, 5)];
|
|
104
|
-
return this.section("git", lines);
|
|
105
|
-
}
|
|
106
|
-
buildPathSection() {
|
|
107
|
-
const cwd = process.cwd();
|
|
108
|
-
const sessionFile = this.options.sessionManager.getSessionFile();
|
|
109
|
-
const sessionDir = sessionFile ? dirname(sessionFile) : "(pending)";
|
|
110
|
-
const composerDir = PATHS.MAESTRO_HOME;
|
|
111
|
-
const lines = [
|
|
112
|
-
`${this.badge("cwd")}${cwd}`,
|
|
113
|
-
`${this.badge("session")}${sessionDir}`,
|
|
114
|
-
`${this.badge("maestro")}${composerDir}`,
|
|
115
|
-
];
|
|
116
|
-
return this.section("paths", lines);
|
|
117
|
-
}
|
|
118
|
-
buildAttachmentSection() {
|
|
119
|
-
const sessionFile = this.options.sessionManager.getSessionFile();
|
|
120
|
-
const sessionDir = sessionFile ? dirname(sessionFile) : null;
|
|
121
|
-
const attachments = [];
|
|
122
|
-
if (sessionDir) {
|
|
123
|
-
attachments.push({ label: "Session directory", path: sessionDir });
|
|
124
|
-
}
|
|
125
|
-
if (existsSync(TOOL_FAILURE_LOG_PATH)) {
|
|
126
|
-
attachments.push({
|
|
127
|
-
label: "Tool failures log",
|
|
128
|
-
path: TOOL_FAILURE_LOG_PATH,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
if (attachments.length === 0) {
|
|
132
|
-
return "";
|
|
133
|
-
}
|
|
134
|
-
const displayLines = attachments.map((entry) => `${entry.label}: ${entry.path}`);
|
|
135
|
-
const tarLines = this.buildTarCommand(attachments.map((a) => a.path)).split("\n");
|
|
136
|
-
return `${this.section("attachments", displayLines)}\n${this.section("tar", tarLines)}`;
|
|
137
|
-
}
|
|
138
|
-
buildContextSection() {
|
|
139
|
-
const systemPrompt = this.options.agent.state.systemPrompt || "";
|
|
140
|
-
const files = loadProjectContextFiles();
|
|
141
|
-
const promptLine = systemPrompt
|
|
142
|
-
? `${this.badge("prompt")}${systemPrompt.length.toLocaleString()} chars`
|
|
143
|
-
: `${this.badge("prompt")}${chalk.dim("none loaded")}`;
|
|
144
|
-
const fileLines = files.length > 0
|
|
145
|
-
? files.map((file) => `- ${file.path}`)
|
|
146
|
-
: [chalk.dim("(no AGENTS/CLAUDE files found)")];
|
|
147
|
-
return this.section("context", [promptLine, ...fileLines]);
|
|
148
|
-
}
|
|
149
|
-
buildSessionContextSection() {
|
|
150
|
-
const sessionId = this.options.sessionManager.getSessionId();
|
|
151
|
-
const sessionFile = this.options.sessionManager.getSessionFile();
|
|
152
|
-
const messageCount = this.options.agent.state.messages?.length ?? 0;
|
|
153
|
-
const lines = [
|
|
154
|
-
`${this.badge("id")}${sessionId ?? chalk.dim("(unset)")}`,
|
|
155
|
-
`${this.badge("file")}${sessionFile ?? chalk.dim("(pending)")}`,
|
|
156
|
-
`${this.badge("messages")}${messageCount}`,
|
|
157
|
-
];
|
|
158
|
-
return this.section("session", lines);
|
|
159
|
-
}
|
|
160
|
-
section(title, lines) {
|
|
161
|
-
const label = chalk.hex("#a5b4fc").bold(`[${title}]`);
|
|
162
|
-
const body = lines.map((line) => ` ${line}`).join("\n");
|
|
163
|
-
return `${label}\n${body}`;
|
|
164
|
-
}
|
|
165
|
-
badge(label) {
|
|
166
|
-
return `${chalk.hex("#f472b6")("▣")} ${chalk.hex("#fbcfe8")(label)} `;
|
|
167
|
-
}
|
|
168
|
-
trimLines(value, maxLines) {
|
|
169
|
-
const lines = value
|
|
170
|
-
.split(/\r?\n/)
|
|
171
|
-
.map((line) => line.trim())
|
|
172
|
-
.filter((line) => line.length > 0);
|
|
173
|
-
if (lines.length <= maxLines) {
|
|
174
|
-
return lines;
|
|
175
|
-
}
|
|
176
|
-
return [
|
|
177
|
-
...lines.slice(0, maxLines),
|
|
178
|
-
chalk.dim(`… +${lines.length - maxLines} more`),
|
|
179
|
-
];
|
|
180
|
-
}
|
|
181
|
-
buildTarCommand(paths) {
|
|
182
|
-
if (!paths.length) {
|
|
183
|
-
return chalk.dim("(no files to archive)");
|
|
184
|
-
}
|
|
185
|
-
const quoted = paths.map((value) => this.quotePath(value));
|
|
186
|
-
const firstLine = "tar czf maestro-about.tgz";
|
|
187
|
-
const subsequent = quoted.map((value) => ` ${value}`);
|
|
188
|
-
return [firstLine, ...subsequent].join(" \\\n");
|
|
189
|
-
}
|
|
190
|
-
quotePath(value) {
|
|
191
|
-
if (!value.includes(" ")) {
|
|
192
|
-
return value;
|
|
193
|
-
}
|
|
194
|
-
return `"${value}"`;
|
|
195
|
-
}
|
|
196
|
-
copyToClipboard(text) {
|
|
197
|
-
try {
|
|
198
|
-
clipboard.writeSync(text);
|
|
199
|
-
return true;
|
|
200
|
-
}
|
|
201
|
-
catch {
|
|
202
|
-
return false;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
//# sourceMappingURL=about-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"about-view.js","sourceRoot":"","sources":["../../src/cli-tui/about-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAQ,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAkB,MAAM,EAAY,IAAI,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY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C,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,2BAA2B,CAAC;QAC9C,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;QACvD,OAAO,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAEO,SAAS,CAAC,KAAa;QAC9B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACd,CAAC;QACD,OAAO,IAAI,KAAK,GAAG,CAAC;IACrB,CAAC;IAEO,eAAe,CAAC,IAAY;QACnC,IAAI,CAAC;YACJ,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAC1B,OAAO,IAAI,CAAC;QACb,CAAC;QAAC,MAAM,CAAC;YACR,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;CACD","sourcesContent":["import { existsSync } from \"node:fs\";\nimport * as os from \"node:os\";\nimport { dirname, join } from \"node:path\";\nimport { type Container, Spacer, type TUI, Text } from \"@evalops/tui\";\nimport chalk from \"chalk\";\nimport clipboard from \"clipboardy\";\nimport type { Agent } from \"../agent/agent.js\";\nimport { loadProjectContextFiles } from \"../cli/system-prompt.js\";\nimport { PATHS } from \"../config/constants.js\";\nimport type { SessionManager } from \"../session/manager.js\";\nimport type { GitView } from \"./git/git-view.js\";\nimport { TOOL_FAILURE_LOG_PATH } from \"./tool-status-view.js\";\n\ninterface AboutViewOptions {\n\tagent: Agent;\n\tsessionManager: SessionManager;\n\tgitView: GitView;\n\tchatContainer: Container;\n\tui: TUI;\n\tversion: string;\n\ttelemetryStatus: () => string;\n\totelStatus?: () => {\n\t\tenabled: boolean;\n\t\treason: string;\n\t\tserviceName: string;\n\t\tsdkStarted: boolean;\n\t\totlpEndpoint?: string;\n\t\ttracesExporter?: string;\n\t\tmetricsExporter?: string;\n\t\tlogsExporter?: string;\n\t\tautoInstrumentation: boolean;\n\t\tsampler?: string;\n\t};\n\tgetApprovalMode?: () => string;\n}\n\nexport class AboutView {\n\tconstructor(private readonly options: AboutViewOptions) {}\n\n\thandleAboutCommand(): void {\n\t\tconst text = this.buildAboutCard();\n\t\tconst copied = this.copyToClipboard(text);\n\t\tconst copyNote = copied\n\t\t\t? chalk.dim(\"About snapshot copied to clipboard.\")\n\t\t\t: chalk.dim(\"(Copy failed — select and copy manually.)\");\n\n\t\tthis.options.chatContainer.addChild(new Spacer(1));\n\t\tthis.options.chatContainer.addChild(\n\t\t\tnew Text(`${text}\\n\\n${copyNote}`, 1, 0),\n\t\t);\n\t\tthis.options.ui.requestRender();\n\t}\n\n\tbuildAboutCard(): string {\n\t\tconst header = this.buildHeader();\n\t\tconst sections = [\n\t\t\tthis.buildMetaSection(),\n\t\t\tthis.buildEnvSection(),\n\t\t\tthis.buildGitSection(),\n\t\t\tthis.buildPathSection(),\n\t\t\tthis.buildSessionContextSection(),\n\t\t\tthis.buildContextSection(),\n\t\t\tthis.buildAttachmentSection(),\n\t\t]\n\t\t\t.filter(Boolean)\n\t\t\t.join(\"\\n\\n\");\n\t\treturn `${header}\\n\\n${sections}`;\n\t}\n\n\tprivate buildHeader(): string {\n\t\tconst top = chalk.hex(\"#7c3aed\")(\n\t\t\t\"╭─────────────────────────────✷────────────────────────────╮\",\n\t\t);\n\t\tconst title = chalk.hex(\"#f472b6\")(\n\t\t\t\"│ ✦ maestro about ✦ │\",\n\t\t);\n\t\tconst bottom = chalk.hex(\"#7c3aed\")(\n\t\t\t\"╰──────────────────────────────────────────────────────────╯\",\n\t\t);\n\t\treturn `${top}\\n${title}\\n${bottom}`;\n\t}\n\n\tprivate buildMetaSection(): string {\n\t\tconst model = this.options.agent.state.model\n\t\t\t? `${this.options.agent.state.model.provider}/${this.options.agent.state.model.id}`\n\t\t\t: \"unknown\";\n\t\tconst sessionId = this.options.sessionManager.getSessionId();\n\t\tconst safeMode = process.env.MAESTRO_SAFE_MODE === \"1\" ? \"on\" : \"off\";\n\t\tconst pendingTools = this.options.agent.state.pendingToolCalls?.size ?? 0;\n\t\tconst approvalMode = this.options.getApprovalMode\n\t\t\t? this.options.getApprovalMode()\n\t\t\t: \"unknown\";\n\t\tconst otel = this.options.otelStatus\n\t\t\t? this.options.otelStatus()\n\t\t\t: {\n\t\t\t\t\tenabled: false,\n\t\t\t\t\treason: \"not configured\",\n\t\t\t\t\tserviceName: \"composer\",\n\t\t\t\t\tsdkStarted: false,\n\t\t\t\t\tautoInstrumentation: false,\n\t\t\t\t};\n\t\tconst lines = [\n\t\t\t`${this.badge(\"version\")}${this.options.version}`,\n\t\t\t`${this.badge(\"model\")}${model}`,\n\t\t\t`${this.badge(\"session\")}${sessionId}`,\n\t\t\t`${this.badge(\"telemetry\")}${this.options.telemetryStatus()}`,\n\t\t\t`${this.badge(\"otel\")}${otel.enabled ? \"on\" : \"off\"} (${otel.reason})`,\n\t\t\t`${this.badge(\"safe-mode\")}${safeMode}`,\n\t\t\t`${this.badge(\"approvals\")}${approvalMode}`,\n\t\t\t`${this.badge(\"pending\")}${pendingTools} tools`,\n\t\t];\n\t\treturn this.section(\"status\", lines);\n\t}\n\n\tprivate buildEnvSection(): string {\n\t\tconst platform = process.platform;\n\t\tconst osName =\n\t\t\tplatform === \"darwin\"\n\t\t\t\t? \"macOS\"\n\t\t\t\t: platform === \"win32\"\n\t\t\t\t\t? \"Windows\"\n\t\t\t\t\t: \"Linux\";\n\t\tconst release = os.release();\n\t\tconst version = typeof os.version === \"function\" ? os.version() : \"\";\n\t\tconst lines = [\n\t\t\t`${this.badge(\"os\")}${osName} ${release}`,\n\t\t\tversion && !version.includes(release) ? ` ${chalk.dim(version)}` : null,\n\t\t\t`${this.badge(\"node\")}${process.version}`,\n\t\t\tprocess.versions?.bun\n\t\t\t\t? `${this.badge(\"bun\")}${process.versions.bun}`\n\t\t\t\t: null,\n\t\t\tprocess.env.TERM ? `${this.badge(\"term\")}${process.env.TERM}` : null,\n\t\t].filter(Boolean) as string[];\n\t\treturn this.section(\"environment\", lines);\n\t}\n\n\tprivate buildGitSection(): string {\n\t\tconst gitState = this.options.gitView.getWorkingTreeState();\n\t\tconst branch = gitState?.branch ?? \"unknown\";\n\t\tconst dirty = gitState ? (gitState.dirty ? \"yes\" : \"no\") : \"unknown\";\n\t\tconst commit = this.options.gitView.getCurrentCommit() ?? \"unknown\";\n\t\tconst summary = `${branch} @ ${commit} (dirty: ${dirty})`;\n\t\tconst status =\n\t\t\tthis.options.gitView.getStatusSummary() ?? \"git status unavailable\";\n\t\tconst lines = [summary, ...this.trimLines(status, 5)];\n\t\treturn this.section(\"git\", lines);\n\t}\n\n\tprivate buildPathSection(): string {\n\t\tconst cwd = process.cwd();\n\t\tconst sessionFile = this.options.sessionManager.getSessionFile();\n\t\tconst sessionDir = sessionFile ? dirname(sessionFile) : \"(pending)\";\n\t\tconst composerDir = PATHS.MAESTRO_HOME;\n\t\tconst lines = [\n\t\t\t`${this.badge(\"cwd\")}${cwd}`,\n\t\t\t`${this.badge(\"session\")}${sessionDir}`,\n\t\t\t`${this.badge(\"maestro\")}${composerDir}`,\n\t\t];\n\t\treturn this.section(\"paths\", lines);\n\t}\n\n\tprivate buildAttachmentSection(): string {\n\t\tconst sessionFile = this.options.sessionManager.getSessionFile();\n\t\tconst sessionDir = sessionFile ? dirname(sessionFile) : null;\n\t\tconst attachments: Array<{ label: string; path: string }> = [];\n\t\tif (sessionDir) {\n\t\t\tattachments.push({ label: \"Session directory\", path: sessionDir });\n\t\t}\n\t\tif (existsSync(TOOL_FAILURE_LOG_PATH)) {\n\t\t\tattachments.push({\n\t\t\t\tlabel: \"Tool failures log\",\n\t\t\t\tpath: TOOL_FAILURE_LOG_PATH,\n\t\t\t});\n\t\t}\n\t\tif (attachments.length === 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tconst displayLines = attachments.map(\n\t\t\t(entry) => `${entry.label}: ${entry.path}`,\n\t\t);\n\t\tconst tarLines = this.buildTarCommand(attachments.map((a) => a.path)).split(\n\t\t\t\"\\n\",\n\t\t);\n\t\treturn `${this.section(\"attachments\", displayLines)}\\n${this.section(\"tar\", tarLines)}`;\n\t}\n\n\tprivate buildContextSection(): string {\n\t\tconst systemPrompt = this.options.agent.state.systemPrompt || \"\";\n\t\tconst files = loadProjectContextFiles();\n\t\tconst promptLine = systemPrompt\n\t\t\t? `${this.badge(\"prompt\")}${systemPrompt.length.toLocaleString()} chars`\n\t\t\t: `${this.badge(\"prompt\")}${chalk.dim(\"none loaded\")}`;\n\t\tconst fileLines =\n\t\t\tfiles.length > 0\n\t\t\t\t? files.map((file) => `- ${file.path}`)\n\t\t\t\t: [chalk.dim(\"(no AGENTS/CLAUDE files found)\")];\n\t\treturn this.section(\"context\", [promptLine, ...fileLines]);\n\t}\n\n\tprivate buildSessionContextSection(): string {\n\t\tconst sessionId = this.options.sessionManager.getSessionId();\n\t\tconst sessionFile = this.options.sessionManager.getSessionFile();\n\t\tconst messageCount = this.options.agent.state.messages?.length ?? 0;\n\t\tconst lines = [\n\t\t\t`${this.badge(\"id\")}${sessionId ?? chalk.dim(\"(unset)\")}`,\n\t\t\t`${this.badge(\"file\")}${sessionFile ?? chalk.dim(\"(pending)\")}`,\n\t\t\t`${this.badge(\"messages\")}${messageCount}`,\n\t\t];\n\t\treturn this.section(\"session\", lines);\n\t}\n\n\tprivate section(title: string, lines: string[]): string {\n\t\tconst label = chalk.hex(\"#a5b4fc\").bold(`[${title}]`);\n\t\tconst body = lines.map((line) => ` ${line}`).join(\"\\n\");\n\t\treturn `${label}\\n${body}`;\n\t}\n\n\tprivate badge(label: string): string {\n\t\treturn `${chalk.hex(\"#f472b6\")(\"▣\")} ${chalk.hex(\"#fbcfe8\")(label)} `;\n\t}\n\n\tprivate trimLines(value: string, maxLines: number): string[] {\n\t\tconst lines = value\n\t\t\t.split(/\\r?\\n/)\n\t\t\t.map((line) => line.trim())\n\t\t\t.filter((line) => line.length > 0);\n\t\tif (lines.length <= maxLines) {\n\t\t\treturn lines;\n\t\t}\n\t\treturn [\n\t\t\t...lines.slice(0, maxLines),\n\t\t\tchalk.dim(`… +${lines.length - maxLines} more`),\n\t\t];\n\t}\n\n\tprivate buildTarCommand(paths: string[]): string {\n\t\tif (!paths.length) {\n\t\t\treturn chalk.dim(\"(no files to archive)\");\n\t\t}\n\t\tconst quoted = paths.map((value) => this.quotePath(value));\n\t\tconst firstLine = \"tar czf maestro-about.tgz\";\n\t\tconst subsequent = quoted.map((value) => ` ${value}`);\n\t\treturn [firstLine, ...subsequent].join(\" \\\\\\n\");\n\t}\n\n\tprivate quotePath(value: string): string {\n\t\tif (!value.includes(\" \")) {\n\t\t\treturn value;\n\t\t}\n\t\treturn `\"${value}\"`;\n\t}\n\n\tprivate copyToClipboard(text: string): boolean {\n\t\ttry {\n\t\t\tclipboard.writeSync(text);\n\t\t\treturn true;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { AgentEvent, AppMessage, AssistantMessage } from "../agent/types.js";
|
|
2
|
-
import type { LoaderView } from "./loader/loader-view.js";
|
|
3
|
-
import type { MessageView } from "./message-view.js";
|
|
4
|
-
import type { RunController } from "./run/run-controller.js";
|
|
5
|
-
import type { SessionContext } from "./session/session-context.js";
|
|
6
|
-
import type { StreamingView } from "./streaming-view.js";
|
|
7
|
-
interface AgentEventRouterOptions {
|
|
8
|
-
messageView: MessageView;
|
|
9
|
-
streamingView: StreamingView;
|
|
10
|
-
loaderView: LoaderView;
|
|
11
|
-
runController: RunController;
|
|
12
|
-
sessionContext: SessionContext;
|
|
13
|
-
extractText: (message: AppMessage) => string;
|
|
14
|
-
clearEditor: () => void;
|
|
15
|
-
requestRender: () => void;
|
|
16
|
-
clearPendingTools: () => void;
|
|
17
|
-
refreshPlanHint: () => void;
|
|
18
|
-
onAssistantMessageEnd?: (message: AssistantMessage) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare class AgentEventRouter {
|
|
21
|
-
private readonly options;
|
|
22
|
-
constructor(options: AgentEventRouterOptions);
|
|
23
|
-
handle(event: AgentEvent): void;
|
|
24
|
-
private handleMessageStart;
|
|
25
|
-
private handleMessageEnd;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=agent-event-router.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-event-router.d.ts","sourceRoot":"","sources":["../../src/cli-tui/agent-event-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,UAAU,uBAAuB;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC;IAC7C,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC5D;AAED,qBAAa,gBAAgB;IAChB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,uBAAuB;IAE7D,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IA2H/B,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,gBAAgB;CA4BxB"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
export class AgentEventRouter {
|
|
2
|
-
constructor(options) {
|
|
3
|
-
this.options = options;
|
|
4
|
-
}
|
|
5
|
-
handle(event) {
|
|
6
|
-
switch (event.type) {
|
|
7
|
-
case "agent_start":
|
|
8
|
-
this.options.runController.handleAgentStart();
|
|
9
|
-
return;
|
|
10
|
-
case "turn_start":
|
|
11
|
-
this.options.sessionContext.beginTurn();
|
|
12
|
-
this.options.loaderView.beginTurn();
|
|
13
|
-
return;
|
|
14
|
-
case "message_start":
|
|
15
|
-
this.handleMessageStart(event);
|
|
16
|
-
return;
|
|
17
|
-
case "message_update":
|
|
18
|
-
if (event.message.role === "assistant") {
|
|
19
|
-
const changedVisibleContent = this.options.streamingView.updateAssistantMessage(event.message);
|
|
20
|
-
if (changedVisibleContent) {
|
|
21
|
-
this.options.requestRender();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return;
|
|
25
|
-
case "message_end":
|
|
26
|
-
this.handleMessageEnd(event);
|
|
27
|
-
return;
|
|
28
|
-
case "turn_end":
|
|
29
|
-
this.options.sessionContext.completeTurn(event.message.role === "assistant"
|
|
30
|
-
? this.options.extractText(event.message)
|
|
31
|
-
: undefined);
|
|
32
|
-
this.options.loaderView.completeTurn();
|
|
33
|
-
return;
|
|
34
|
-
case "tool_execution_start":
|
|
35
|
-
this.options.loaderView.registerToolStage(event.toolCallId, event.toolName, event.args, event.summaryLabel);
|
|
36
|
-
this.options.sessionContext.recordToolUsage(event.toolName);
|
|
37
|
-
this.options.sessionContext.recordToolStart(event.toolCallId, event.toolName, event.args);
|
|
38
|
-
this.options.streamingView.ensureToolComponent(event.toolCallId, event.toolName, event.args, {
|
|
39
|
-
displayName: event.displayName,
|
|
40
|
-
summaryLabel: event.summaryLabel,
|
|
41
|
-
});
|
|
42
|
-
this.options.requestRender();
|
|
43
|
-
return;
|
|
44
|
-
case "tool_execution_end":
|
|
45
|
-
this.options.streamingView.resolveToolResult(event.toolCallId, event.result);
|
|
46
|
-
this.options.sessionContext.recordToolEnd(event.toolCallId, event.toolName, event.result, event.isError);
|
|
47
|
-
this.options.requestRender();
|
|
48
|
-
this.options.loaderView.markToolComplete(event.toolCallId);
|
|
49
|
-
if (event.toolName === "todo") {
|
|
50
|
-
this.options.refreshPlanHint();
|
|
51
|
-
}
|
|
52
|
-
return;
|
|
53
|
-
case "tool_execution_update":
|
|
54
|
-
this.options.streamingView.updateToolPartialResult(event.toolCallId, event.partialResult);
|
|
55
|
-
this.options.requestRender();
|
|
56
|
-
return;
|
|
57
|
-
case "status":
|
|
58
|
-
if (event.details.kind === "tool_execution_summary") {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.options.loaderView.showRuntimeStatus(event.status, event.details);
|
|
62
|
-
this.options.requestRender();
|
|
63
|
-
return;
|
|
64
|
-
case "compaction":
|
|
65
|
-
this.options.loaderView.showCompactionNotice(Boolean(event.auto));
|
|
66
|
-
this.options.requestRender();
|
|
67
|
-
return;
|
|
68
|
-
case "error":
|
|
69
|
-
this.options.loaderView.showRuntimeError(event.message);
|
|
70
|
-
this.options.requestRender();
|
|
71
|
-
return;
|
|
72
|
-
case "tool_batch_summary":
|
|
73
|
-
this.options.loaderView.showToolBatchSummary(event.summary);
|
|
74
|
-
this.options.requestRender();
|
|
75
|
-
return;
|
|
76
|
-
case "agent_end":
|
|
77
|
-
this.options.runController.handleAgentEnd(() => {
|
|
78
|
-
this.options.streamingView.forceStopStreaming();
|
|
79
|
-
this.options.clearPendingTools();
|
|
80
|
-
});
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
handleMessageStart(event) {
|
|
85
|
-
if (event.message.role === "user") {
|
|
86
|
-
const text = this.options.extractText(event.message);
|
|
87
|
-
this.options.sessionContext.setLastUserMessage(text);
|
|
88
|
-
this.options.sessionContext.recordPrompt(text);
|
|
89
|
-
this.options.messageView.addMessage(event.message);
|
|
90
|
-
this.options.clearEditor();
|
|
91
|
-
this.options.requestRender();
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (event.message.role === "assistant") {
|
|
95
|
-
this.options.streamingView.beginAssistantMessage(event.message);
|
|
96
|
-
this.options.loaderView.setStreamingActive(true);
|
|
97
|
-
this.options.loaderView.maybeTransitionToResponding();
|
|
98
|
-
this.options.requestRender();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
handleMessageEnd(event) {
|
|
102
|
-
if (event.message.role === "user") {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (event.message.role !== "assistant") {
|
|
106
|
-
this.options.messageView.addMessage(event.message);
|
|
107
|
-
this.options.requestRender();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (event.message.role === "assistant") {
|
|
111
|
-
this.options.loaderView.setStreamingActive(false);
|
|
112
|
-
const assistantMsg = event.message;
|
|
113
|
-
this.options.sessionContext.setLastAssistantMessage(this.options.extractText(event.message));
|
|
114
|
-
this.options.streamingView.finishAssistantMessage(assistantMsg);
|
|
115
|
-
// Notify about assistant message for retry tracking
|
|
116
|
-
this.options.onAssistantMessageEnd?.(assistantMsg);
|
|
117
|
-
}
|
|
118
|
-
if (event.message.role === "assistant" &&
|
|
119
|
-
event.message.stopReason &&
|
|
120
|
-
event.message.stopReason !== "toolUse") {
|
|
121
|
-
this.options.loaderView.maybeTransitionToResponding();
|
|
122
|
-
}
|
|
123
|
-
this.options.requestRender();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=agent-event-router.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-event-router.js","sourceRoot":"","sources":["../../src/cli-tui/agent-event-router.ts"],"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,EAAE,CAAC;YAC7B,OAAO;QACR,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAClD,MAAM,YAAY,GAAG,KAAK,CAAC,OAA2B,CAAC;YACvD,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,uBAAuB,CAClD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,OAAqB,CAAC,CACrD,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;YAChE,oDAAoD;YACpD,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,YAAY,CAAC,CAAC;QACpD,CAAC;QACD,IACC,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;YAClC,KAAK,CAAC,OAAO,CAAC,UAAU;YACxB,KAAK,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,EACrC,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,2BAA2B,EAAE,CAAC;QACvD,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;CACD","sourcesContent":["import type {\n\tAgentEvent,\n\tAppMessage,\n\tAssistantMessage,\n} from \"../agent/types.js\";\nimport type { LoaderView } from \"./loader/loader-view.js\";\nimport type { MessageView } from \"./message-view.js\";\nimport type { RunController } from \"./run/run-controller.js\";\nimport type { SessionContext } from \"./session/session-context.js\";\nimport type { StreamingView } from \"./streaming-view.js\";\n\ninterface AgentEventRouterOptions {\n\tmessageView: MessageView;\n\tstreamingView: StreamingView;\n\tloaderView: LoaderView;\n\trunController: RunController;\n\tsessionContext: SessionContext;\n\textractText: (message: AppMessage) => string;\n\tclearEditor: () => void;\n\trequestRender: () => void;\n\tclearPendingTools: () => void;\n\trefreshPlanHint: () => void;\n\tonAssistantMessageEnd?: (message: AssistantMessage) => void;\n}\n\nexport class AgentEventRouter {\n\tconstructor(private readonly options: AgentEventRouterOptions) {}\n\n\thandle(event: AgentEvent): void {\n\t\tswitch (event.type) {\n\t\t\tcase \"agent_start\":\n\t\t\t\tthis.options.runController.handleAgentStart();\n\t\t\t\treturn;\n\n\t\t\tcase \"turn_start\":\n\t\t\t\tthis.options.sessionContext.beginTurn();\n\t\t\t\tthis.options.loaderView.beginTurn();\n\t\t\t\treturn;\n\n\t\t\tcase \"message_start\":\n\t\t\t\tthis.handleMessageStart(event);\n\t\t\t\treturn;\n\n\t\t\tcase \"message_update\":\n\t\t\t\tif (event.message.role === \"assistant\") {\n\t\t\t\t\tconst changedVisibleContent =\n\t\t\t\t\t\tthis.options.streamingView.updateAssistantMessage(\n\t\t\t\t\t\t\tevent.message as AssistantMessage,\n\t\t\t\t\t\t);\n\t\t\t\t\tif (changedVisibleContent) {\n\t\t\t\t\t\tthis.options.requestRender();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\n\t\t\tcase \"message_end\":\n\t\t\t\tthis.handleMessageEnd(event);\n\t\t\t\treturn;\n\n\t\t\tcase \"turn_end\":\n\t\t\t\tthis.options.sessionContext.completeTurn(\n\t\t\t\t\tevent.message.role === \"assistant\"\n\t\t\t\t\t\t? this.options.extractText(event.message as AppMessage)\n\t\t\t\t\t\t: undefined,\n\t\t\t\t);\n\t\t\t\tthis.options.loaderView.completeTurn();\n\t\t\t\treturn;\n\n\t\t\tcase \"tool_execution_start\":\n\t\t\t\tthis.options.loaderView.registerToolStage(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.toolName,\n\t\t\t\t\tevent.args,\n\t\t\t\t\tevent.summaryLabel,\n\t\t\t\t);\n\t\t\t\tthis.options.sessionContext.recordToolUsage(event.toolName);\n\t\t\t\tthis.options.sessionContext.recordToolStart(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.toolName,\n\t\t\t\t\tevent.args,\n\t\t\t\t);\n\t\t\t\tthis.options.streamingView.ensureToolComponent(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.toolName,\n\t\t\t\t\tevent.args,\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: event.displayName,\n\t\t\t\t\t\tsummaryLabel: event.summaryLabel,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"tool_execution_end\":\n\t\t\t\tthis.options.streamingView.resolveToolResult(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.result,\n\t\t\t\t);\n\t\t\t\tthis.options.sessionContext.recordToolEnd(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.toolName,\n\t\t\t\t\tevent.result,\n\t\t\t\t\tevent.isError,\n\t\t\t\t);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\tthis.options.loaderView.markToolComplete(event.toolCallId);\n\t\t\t\tif (event.toolName === \"todo\") {\n\t\t\t\t\tthis.options.refreshPlanHint();\n\t\t\t\t}\n\t\t\t\treturn;\n\n\t\t\tcase \"tool_execution_update\":\n\t\t\t\tthis.options.streamingView.updateToolPartialResult(\n\t\t\t\t\tevent.toolCallId,\n\t\t\t\t\tevent.partialResult,\n\t\t\t\t);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"status\":\n\t\t\t\tif (event.details.kind === \"tool_execution_summary\") {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.options.loaderView.showRuntimeStatus(event.status, event.details);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"compaction\":\n\t\t\t\tthis.options.loaderView.showCompactionNotice(Boolean(event.auto));\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"error\":\n\t\t\t\tthis.options.loaderView.showRuntimeError(event.message);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"tool_batch_summary\":\n\t\t\t\tthis.options.loaderView.showToolBatchSummary(event.summary);\n\t\t\t\tthis.options.requestRender();\n\t\t\t\treturn;\n\n\t\t\tcase \"agent_end\":\n\t\t\t\tthis.options.runController.handleAgentEnd(() => {\n\t\t\t\t\tthis.options.streamingView.forceStopStreaming();\n\t\t\t\t\tthis.options.clearPendingTools();\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t}\n\t}\n\n\tprivate handleMessageStart(\n\t\tevent: AgentEvent & { type: \"message_start\" },\n\t): void {\n\t\tif (event.message.role === \"user\") {\n\t\t\tconst text = this.options.extractText(event.message as AppMessage);\n\t\t\tthis.options.sessionContext.setLastUserMessage(text);\n\t\t\tthis.options.sessionContext.recordPrompt(text);\n\t\t\tthis.options.messageView.addMessage(event.message as AppMessage);\n\t\t\tthis.options.clearEditor();\n\t\t\tthis.options.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif (event.message.role === \"assistant\") {\n\t\t\tthis.options.streamingView.beginAssistantMessage(\n\t\t\t\tevent.message as AssistantMessage,\n\t\t\t);\n\t\t\tthis.options.loaderView.setStreamingActive(true);\n\t\t\tthis.options.loaderView.maybeTransitionToResponding();\n\t\t\tthis.options.requestRender();\n\t\t}\n\t}\n\n\tprivate handleMessageEnd(event: AgentEvent & { type: \"message_end\" }): void {\n\t\tif (event.message.role === \"user\") {\n\t\t\treturn;\n\t\t}\n\t\tif (event.message.role !== \"assistant\") {\n\t\t\tthis.options.messageView.addMessage(event.message as AppMessage);\n\t\t\tthis.options.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tif (event.message.role === \"assistant\") {\n\t\t\tthis.options.loaderView.setStreamingActive(false);\n\t\t\tconst assistantMsg = event.message as AssistantMessage;\n\t\t\tthis.options.sessionContext.setLastAssistantMessage(\n\t\t\t\tthis.options.extractText(event.message as AppMessage),\n\t\t\t);\n\t\t\tthis.options.streamingView.finishAssistantMessage(assistantMsg);\n\t\t\t// Notify about assistant message for retry tracking\n\t\t\tthis.options.onAssistantMessageEnd?.(assistantMsg);\n\t\t}\n\t\tif (\n\t\t\tevent.message.role === \"assistant\" &&\n\t\t\tevent.message.stopReason &&\n\t\t\tevent.message.stopReason !== \"toolUse\"\n\t\t) {\n\t\t\tthis.options.loaderView.maybeTransitionToResponding();\n\t\t}\n\t\tthis.options.requestRender();\n\t}\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Container, TUI } from "@evalops/tui";
|
|
2
|
-
import type { ActionApprovalDecision, ActionApprovalRequest, ActionApprovalService } from "../../agent/action-approval.js";
|
|
3
|
-
import type { CustomEditor } from "../custom-editor.js";
|
|
4
|
-
import type { NotificationView } from "../notification-view.js";
|
|
5
|
-
interface ApprovalControllerOptions {
|
|
6
|
-
approvalService: ActionApprovalService;
|
|
7
|
-
ui: TUI;
|
|
8
|
-
editor: CustomEditor;
|
|
9
|
-
editorContainer: Container;
|
|
10
|
-
notificationView: NotificationView;
|
|
11
|
-
}
|
|
12
|
-
export declare class ApprovalController {
|
|
13
|
-
private readonly options;
|
|
14
|
-
private queue;
|
|
15
|
-
private active;
|
|
16
|
-
private modal;
|
|
17
|
-
private processingNext;
|
|
18
|
-
constructor(options: ApprovalControllerOptions);
|
|
19
|
-
enqueue(request: ActionApprovalRequest): void;
|
|
20
|
-
resolve(request: ActionApprovalRequest, decision: ActionApprovalDecision): void;
|
|
21
|
-
private scheduleNext;
|
|
22
|
-
private showNext;
|
|
23
|
-
private handleApprove;
|
|
24
|
-
private handleDeny;
|
|
25
|
-
private restoreEditor;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=approval-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-controller.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/approval/approval-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EACX,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,UAAU,yBAAyB;IAClC,eAAe,EAAE,qBAAqB,CAAC;IACvC,EAAE,EAAE,GAAG,CAAC;IACR,MAAM,EAAE,YAAY,CAAC;IACrB,eAAe,EAAE,SAAS,CAAC;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC;CACnC;AAED,qBAAa,kBAAkB;IAMlB,OAAO,CAAC,QAAQ,CAAC,OAAO;IALpC,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,MAAM,CAAsC;IACpD,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,cAAc,CAAS;gBAEF,OAAO,EAAE,yBAAyB;IAE/D,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAgB7C,OAAO,CACN,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,sBAAsB,GAC9B,IAAI;IAcP,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,QAAQ;IAyBhB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;CAUrB"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ApprovalModal } from "./approval-modal.js";
|
|
2
|
-
export class ApprovalController {
|
|
3
|
-
constructor(options) {
|
|
4
|
-
this.options = options;
|
|
5
|
-
this.queue = [];
|
|
6
|
-
this.active = null;
|
|
7
|
-
this.modal = null;
|
|
8
|
-
this.processingNext = false;
|
|
9
|
-
}
|
|
10
|
-
enqueue(request) {
|
|
11
|
-
if (this.active?.id === request.id) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (this.queue.find((entry) => entry.id === request.id)) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
this.queue.push(request);
|
|
18
|
-
if (this.active) {
|
|
19
|
-
this.modal?.setQueueSize(this.queue.length);
|
|
20
|
-
this.options.ui.requestRender();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.scheduleNext();
|
|
24
|
-
}
|
|
25
|
-
resolve(request, decision) {
|
|
26
|
-
if (this.active?.id === request.id) {
|
|
27
|
-
this.active = null;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this.queue = this.queue.filter((entry) => entry.id !== request.id);
|
|
31
|
-
}
|
|
32
|
-
const tone = decision.approved ? "success" : "warn";
|
|
33
|
-
const message = decision.approved
|
|
34
|
-
? "Approved high-risk action"
|
|
35
|
-
: "Denied high-risk action";
|
|
36
|
-
this.options.notificationView.showToast(message, tone);
|
|
37
|
-
this.scheduleNext();
|
|
38
|
-
}
|
|
39
|
-
scheduleNext() {
|
|
40
|
-
if (this.processingNext)
|
|
41
|
-
return;
|
|
42
|
-
this.processingNext = true;
|
|
43
|
-
queueMicrotask(() => {
|
|
44
|
-
this.processingNext = false;
|
|
45
|
-
this.showNext();
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
showNext() {
|
|
49
|
-
if (this.queue.length === 0) {
|
|
50
|
-
this.active = null;
|
|
51
|
-
this.restoreEditor();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
const next = this.queue.shift();
|
|
55
|
-
if (!next) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.active = next;
|
|
59
|
-
const modal = new ApprovalModal({
|
|
60
|
-
request: next,
|
|
61
|
-
queueSize: this.queue.length,
|
|
62
|
-
onApprove: () => this.handleApprove(),
|
|
63
|
-
onDeny: () => this.handleDeny(),
|
|
64
|
-
onCancel: () => this.handleDeny(),
|
|
65
|
-
});
|
|
66
|
-
this.modal = modal;
|
|
67
|
-
this.options.editorContainer.clear();
|
|
68
|
-
this.options.editorContainer.addChild(modal);
|
|
69
|
-
this.options.ui.setFocus(modal);
|
|
70
|
-
this.options.ui.requestRender();
|
|
71
|
-
}
|
|
72
|
-
handleApprove() {
|
|
73
|
-
if (!this.active)
|
|
74
|
-
return;
|
|
75
|
-
const updated = this.options.approvalService.approve(this.active.id, "Approved in TUI");
|
|
76
|
-
if (!updated) {
|
|
77
|
-
this.options.notificationView.showError("Unable to approve – request already resolved.");
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
handleDeny() {
|
|
81
|
-
if (!this.active)
|
|
82
|
-
return;
|
|
83
|
-
const updated = this.options.approvalService.deny(this.active.id, "Denied in TUI");
|
|
84
|
-
if (!updated) {
|
|
85
|
-
this.options.notificationView.showError("Unable to deny – request already resolved.");
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
restoreEditor() {
|
|
89
|
-
if (!this.modal) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
this.options.editorContainer.clear();
|
|
93
|
-
this.options.editorContainer.addChild(this.options.editor);
|
|
94
|
-
this.options.ui.setFocus(this.options.editor);
|
|
95
|
-
this.modal = null;
|
|
96
|
-
this.options.ui.requestRender();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=approval-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/approval/approval-controller.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAUpD,MAAM,OAAO,kBAAkB;IAM9B,YAA6B,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QALvD,UAAK,GAA4B,EAAE,CAAC;QACpC,WAAM,GAAiC,IAAI,CAAC;QAC5C,UAAK,GAAyB,IAAI,CAAC;QACnC,mBAAc,GAAG,KAAK,CAAC;IAEmC,CAAC;IAEnE,OAAO,CAAC,OAA8B;QACrC,IAAI,IAAI,CAAC,MA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O,aAAa;QACpB,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CACnD,IAAI,CAAC,MAAM,CAAC,EAAE,EACd,iBAAiB,CACjB,CAAC;QACF,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CACtC,+CAA+C,CAC/C,CAAC;QACH,CAAC;IACF,CAAC;IAEO,UAAU;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAChD,IAAI,CAAC,MAAM,CAAC,EAAE,EACd,eAAe,CACf,CAAC;QACF,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CACtC,4CAA4C,CAC5C,CAAC;QACH,CAAC;IACF,CAAC;IAEO,aAAa;QACpB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACjB,OAAO;QACR,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC;CACD","sourcesContent":["import type { Container, TUI } from \"@evalops/tui\";\nimport type {\n\tActionApprovalDecision,\n\tActionApprovalRequest,\n\tActionApprovalService,\n} from \"../../agent/action-approval.js\";\nimport type { CustomEditor } from \"../custom-editor.js\";\nimport type { NotificationView } from \"../notification-view.js\";\nimport { ApprovalModal } from \"./approval-modal.js\";\n\ninterface ApprovalControllerOptions {\n\tapprovalService: ActionApprovalService;\n\tui: TUI;\n\teditor: CustomEditor;\n\teditorContainer: Container;\n\tnotificationView: NotificationView;\n}\n\nexport class ApprovalController {\n\tprivate queue: ActionApprovalRequest[] = [];\n\tprivate active: ActionApprovalRequest | null = null;\n\tprivate modal: ApprovalModal | null = null;\n\tprivate processingNext = false;\n\n\tconstructor(private readonly options: ApprovalControllerOptions) {}\n\n\tenqueue(request: ActionApprovalRequest): void {\n\t\tif (this.active?.id === request.id) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.queue.find((entry) => entry.id === request.id)) {\n\t\t\treturn;\n\t\t}\n\t\tthis.queue.push(request);\n\t\tif (this.active) {\n\t\t\tthis.modal?.setQueueSize(this.queue.length);\n\t\t\tthis.options.ui.requestRender();\n\t\t\treturn;\n\t\t}\n\t\tthis.scheduleNext();\n\t}\n\n\tresolve(\n\t\trequest: ActionApprovalRequest,\n\t\tdecision: ActionApprovalDecision,\n\t): void {\n\t\tif (this.active?.id === request.id) {\n\t\t\tthis.active = null;\n\t\t} else {\n\t\t\tthis.queue = this.queue.filter((entry) => entry.id !== request.id);\n\t\t}\n\t\tconst tone: \"success\" | \"warn\" = decision.approved ? \"success\" : \"warn\";\n\t\tconst message = decision.approved\n\t\t\t? \"Approved high-risk action\"\n\t\t\t: \"Denied high-risk action\";\n\t\tthis.options.notificationView.showToast(message, tone);\n\t\tthis.scheduleNext();\n\t}\n\n\tprivate scheduleNext(): void {\n\t\tif (this.processingNext) return;\n\t\tthis.processingNext = true;\n\t\tqueueMicrotask(() => {\n\t\t\tthis.processingNext = false;\n\t\t\tthis.showNext();\n\t\t});\n\t}\n\n\tprivate showNext(): void {\n\t\tif (this.queue.length === 0) {\n\t\t\tthis.active = null;\n\t\t\tthis.restoreEditor();\n\t\t\treturn;\n\t\t}\n\t\tconst next = this.queue.shift();\n\t\tif (!next) {\n\t\t\treturn;\n\t\t}\n\t\tthis.active = next;\n\t\tconst modal = new ApprovalModal({\n\t\t\trequest: next,\n\t\t\tqueueSize: this.queue.length,\n\t\t\tonApprove: () => this.handleApprove(),\n\t\t\tonDeny: () => this.handleDeny(),\n\t\t\tonCancel: () => this.handleDeny(),\n\t\t});\n\t\tthis.modal = modal;\n\t\tthis.options.editorContainer.clear();\n\t\tthis.options.editorContainer.addChild(modal);\n\t\tthis.options.ui.setFocus(modal);\n\t\tthis.options.ui.requestRender();\n\t}\n\n\tprivate handleApprove(): void {\n\t\tif (!this.active) return;\n\t\tconst updated = this.options.approvalService.approve(\n\t\t\tthis.active.id,\n\t\t\t\"Approved in TUI\",\n\t\t);\n\t\tif (!updated) {\n\t\t\tthis.options.notificationView.showError(\n\t\t\t\t\"Unable to approve – request already resolved.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate handleDeny(): void {\n\t\tif (!this.active) return;\n\t\tconst updated = this.options.approvalService.deny(\n\t\t\tthis.active.id,\n\t\t\t\"Denied in TUI\",\n\t\t);\n\t\tif (!updated) {\n\t\t\tthis.options.notificationView.showError(\n\t\t\t\t\"Unable to deny – request already resolved.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate restoreEditor(): void {\n\t\tif (!this.modal) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.editorContainer.clear();\n\t\tthis.options.editorContainer.addChild(this.options.editor);\n\t\tthis.options.ui.setFocus(this.options.editor);\n\t\tthis.modal = null;\n\t\tthis.options.ui.requestRender();\n\t}\n}\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Component } from "@evalops/tui";
|
|
2
|
-
import type { ActionApprovalRequest } from "../../agent/action-approval.js";
|
|
3
|
-
interface ApprovalModalOptions {
|
|
4
|
-
request: ActionApprovalRequest;
|
|
5
|
-
queueSize: number;
|
|
6
|
-
onApprove: () => void;
|
|
7
|
-
onDeny: () => void;
|
|
8
|
-
onCancel: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare class ApprovalModal implements Component {
|
|
11
|
-
private readonly options;
|
|
12
|
-
private queueSize;
|
|
13
|
-
constructor(options: ApprovalModalOptions);
|
|
14
|
-
setQueueSize(size: number): void;
|
|
15
|
-
private static readonly BORDER_COLOR;
|
|
16
|
-
private static readonly BORDER_STYLE;
|
|
17
|
-
render(width: number): string[];
|
|
18
|
-
handleInput(data: string): void;
|
|
19
|
-
private extractCommand;
|
|
20
|
-
private describeReason;
|
|
21
|
-
private describeTool;
|
|
22
|
-
private formatCommand;
|
|
23
|
-
private describeQueue;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=approval-modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-modal.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/approval/approval-modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAgB5E,UAAU,oBAAoB;IAC7B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qBAAa,aAAc,YAAW,SAAS;IAGlC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,SAAS,CAAS;gBAEG,OAAO,EAAE,oBAAoB;IAI1D,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIhC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAa;IACjD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAyB;IAE7D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAyD/B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAc/B,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,YAAY;IAiDpB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,aAAa;CAOrB"}
|