@evalops/maestro 0.10.51 → 0.10.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +1 -1
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-handoff.d.ts.map +1 -1
- package/dist/agent/context-handoff.js +2 -1
- package/dist/agent/context-handoff.js.map +1 -1
- package/dist/agent/index.d.ts +8 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +8 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/modes.d.ts +1 -1
- package/dist/agent/modes.d.ts.map +1 -1
- package/dist/agent/modes.js +56 -0
- package/dist/agent/modes.js.map +1 -1
- package/dist/agent/oracle-consultation-policy.d.ts +22 -0
- package/dist/agent/oracle-consultation-policy.d.ts.map +1 -0
- package/dist/agent/oracle-consultation-policy.js +72 -0
- package/dist/agent/oracle-consultation-policy.js.map +1 -0
- package/dist/agent/oracle-policy-experiment.d.ts +27 -0
- package/dist/agent/oracle-policy-experiment.d.ts.map +1 -0
- package/dist/agent/oracle-policy-experiment.js +59 -0
- package/dist/agent/oracle-policy-experiment.js.map +1 -0
- package/dist/agent/oracle-policy-rollout.d.ts +42 -0
- package/dist/agent/oracle-policy-rollout.d.ts.map +1 -0
- package/dist/agent/oracle-policy-rollout.js +80 -0
- package/dist/agent/oracle-policy-rollout.js.map +1 -0
- package/dist/agent/plugin-agent-api.d.ts +13 -0
- package/dist/agent/plugin-agent-api.d.ts.map +1 -0
- package/dist/agent/plugin-agent-api.js +11 -0
- package/dist/agent/plugin-agent-api.js.map +1 -0
- package/dist/agent/plugin-agent-loader.d.ts +17 -0
- package/dist/agent/plugin-agent-loader.d.ts.map +1 -0
- package/dist/agent/plugin-agent-loader.js +81 -0
- package/dist/agent/plugin-agent-loader.js.map +1 -0
- package/dist/agent/plugin-agent-registry.d.ts +62 -0
- package/dist/agent/plugin-agent-registry.d.ts.map +1 -0
- package/dist/agent/plugin-agent-registry.js +109 -0
- package/dist/agent/plugin-agent-registry.js.map +1 -0
- package/dist/agent/profile-loader.d.ts +7 -0
- package/dist/agent/profile-loader.d.ts.map +1 -0
- package/dist/agent/profile-loader.js +115 -0
- package/dist/agent/profile-loader.js.map +1 -0
- package/dist/agent/profiles.d.ts +30 -0
- package/dist/agent/profiles.d.ts.map +1 -0
- package/dist/agent/profiles.js +146 -0
- package/dist/agent/profiles.js.map +1 -0
- package/dist/agent/prompt-cache.d.ts +0 -4
- package/dist/agent/prompt-cache.d.ts.map +1 -1
- package/dist/agent/prompt-cache.js +1 -7
- package/dist/agent/prompt-cache.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +1 -0
- package/dist/agent/providers/google.js +1 -0
- package/dist/agent/providers/vertex.js +1 -0
- package/dist/agent/routing-receipt.d.ts +34 -0
- package/dist/agent/routing-receipt.d.ts.map +1 -0
- package/dist/agent/routing-receipt.js +55 -0
- package/dist/agent/routing-receipt.js.map +1 -0
- package/dist/{skills/artifact-metadata.d.ts → agent/skill-artifact-metadata.d.ts} +2 -4
- package/dist/agent/skill-artifact-metadata.d.ts.map +1 -0
- package/dist/{skills/artifact-metadata.js → agent/skill-artifact-metadata.js} +1 -38
- package/dist/agent/skill-artifact-metadata.js.map +1 -0
- package/dist/agent/subagent-specs.d.ts +1 -1
- package/dist/agent/subagent-specs.js +2 -2
- package/dist/agent/subagent-specs.js.map +1 -1
- package/dist/agent/token-counter.d.ts +40 -0
- package/dist/agent/token-counter.d.ts.map +1 -0
- package/dist/agent/token-counter.js +74 -0
- package/dist/agent/token-counter.js.map +1 -0
- package/dist/agent/transport/events.d.ts +1 -1
- package/dist/agent/transport/events.d.ts.map +1 -1
- package/dist/agent/transport/events.js +1 -1
- package/dist/agent/transport/events.js.map +1 -1
- package/dist/agent/types.d.ts +4 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/app-server/plugin-bundle-api.d.ts.map +1 -1
- package/dist/app-server/plugin-bundle-api.js +1 -0
- package/dist/app-server/plugin-bundle-api.js.map +1 -1
- package/dist/app-server/session-api.d.ts.map +1 -1
- package/dist/app-server/session-api.js +15 -2
- package/dist/app-server/session-api.js.map +1 -1
- package/dist/audit/logger.d.ts +5 -5
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +18 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/direct-runtime-command.d.ts +1 -0
- package/dist/cli/direct-runtime-command.d.ts.map +1 -1
- package/dist/cli/direct-runtime-command.js +25 -3
- package/dist/cli/direct-runtime-command.js.map +1 -1
- package/dist/cli/headless.d.ts +3 -19
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +8 -619
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/native-tui-launcher.d.ts +126 -0
- package/dist/cli/native-tui-launcher.d.ts.map +1 -0
- package/dist/cli/native-tui-launcher.js +425 -0
- package/dist/cli/native-tui-launcher.js.map +1 -0
- package/dist/cli/rpc-mode.d.ts +3 -27
- package/dist/cli/rpc-mode.d.ts.map +1 -1
- package/dist/cli/rpc-mode.js +8 -177
- package/dist/cli/rpc-mode.js.map +1 -1
- package/dist/cli/session.d.ts +11 -19
- package/dist/cli/session.d.ts.map +1 -1
- package/dist/cli/session.js +6 -64
- package/dist/cli/session.js.map +1 -1
- package/dist/cli-command-runtime.d.ts.map +1 -1
- package/dist/cli-command-runtime.js +26 -24
- package/dist/cli-command-runtime.js.map +1 -1
- package/dist/cli-runtime.js +52529 -137615
- package/dist/config/env-vars.d.ts +12 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +12 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/{cli-tui → config}/ui-state.d.ts +6 -1
- package/dist/config/ui-state.d.ts.map +1 -0
- package/dist/{cli-tui → config}/ui-state.js +1 -1
- package/dist/config/ui-state.js.map +1 -0
- package/dist/context/repo-map.d.ts.map +1 -1
- package/dist/context/repo-map.js +1 -7
- package/dist/context/repo-map.js.map +1 -1
- package/dist/context/token-optimizer.d.ts.map +1 -1
- package/dist/context/token-optimizer.js +1 -8
- package/dist/context/token-optimizer.js.map +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/hooks/notification-hooks.d.ts +1 -1
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/hooks/tui-surface.d.ts +35 -0
- package/dist/hooks/tui-surface.d.ts.map +1 -0
- package/dist/hooks/tui-surface.js +11 -0
- package/dist/hooks/tui-surface.js.map +1 -0
- package/dist/hooks/types.d.ts +2 -1
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/types.js.map +1 -1
- package/dist/hooks/typescript-loader.d.ts.map +1 -1
- package/dist/hooks/typescript-loader.js.map +1 -1
- package/dist/hooks/ui-context.d.ts.map +1 -1
- package/dist/hooks/ui-context.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +154 -882
- package/dist/main.js.map +1 -1
- package/dist/models/config-loader.d.ts +5 -5
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts +45 -0
- package/dist/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/dist/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts +284 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js +41 -0
- package/dist/node_modules/@evalops/contracts/dist/maestro-app-server.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts +986 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/schemas.js +49 -0
- package/dist/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts +56 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.d.ts.map +1 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js +86 -0
- package/dist/node_modules/@evalops/contracts/dist/token-estimation.js.map +1 -0
- package/dist/node_modules/@evalops/contracts/package.json +1 -1
- package/dist/packages/discovery.d.ts.map +1 -1
- package/dist/packages/discovery.js +1 -0
- package/dist/packages/discovery.js.map +1 -1
- package/dist/packages/inspection.d.ts.map +1 -1
- package/dist/packages/inspection.js +7 -1
- package/dist/packages/inspection.js.map +1 -1
- package/dist/packages/loader.d.ts.map +1 -1
- package/dist/packages/loader.js +8 -1
- package/dist/packages/loader.js.map +1 -1
- package/dist/packages/runtime.d.ts +1 -0
- package/dist/packages/runtime.d.ts.map +1 -1
- package/dist/packages/runtime.js +9 -1
- package/dist/packages/runtime.js.map +1 -1
- package/dist/packages/types.d.ts +6 -0
- package/dist/packages/types.d.ts.map +1 -1
- package/dist/packages/types.js.map +1 -1
- package/dist/runtime/agent-runtime.d.ts +22 -6
- package/dist/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/runtime/agent-runtime.js +1 -1
- package/dist/runtime/agent-runtime.js.map +1 -1
- package/dist/runtime/env.d.ts +1 -0
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +1 -0
- package/dist/runtime/env.js.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.d.ts.map +1 -1
- package/dist/{cli-tui → runtime}/prompt-queue.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts +2 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +150 -5
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +78 -5
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/package.d.ts.map +1 -1
- package/dist/server/handlers/package.js +1 -0
- package/dist/server/handlers/package.js.map +1 -1
- package/dist/server/handlers/queue.js +1 -1
- package/dist/server/handlers/queue.js.map +1 -1
- package/dist/server/handlers/ui.js +1 -1
- package/dist/server/handlers/ui.js.map +1 -1
- package/dist/server/handlers/zen.js +1 -1
- package/dist/server/handlers/zen.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +3 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -1
- package/dist/server/hosted-session-manager.js +26 -0
- package/dist/server/hosted-session-manager.js.map +1 -1
- package/dist/server/model-selection.d.ts +1 -0
- package/dist/server/model-selection.d.ts.map +1 -1
- package/dist/server/model-selection.js +4 -0
- package/dist/server/model-selection.js.map +1 -1
- package/dist/server/session-serialization.d.ts.map +1 -1
- package/dist/server/session-serialization.js +3 -0
- package/dist/server/session-serialization.js.map +1 -1
- package/dist/server/session-timeline.d.ts.map +1 -1
- package/dist/server/session-timeline.js +1 -1
- package/dist/server/session-timeline.js.map +1 -1
- package/dist/server/sse-session.d.ts +2 -0
- package/dist/server/sse-session.d.ts.map +1 -1
- package/dist/server/sse-session.js +3 -0
- package/dist/server/sse-session.js.map +1 -1
- package/dist/server/stores/ui-store.d.ts +1 -1
- package/dist/server/stores/ui-store.d.ts.map +1 -1
- package/dist/server/stores/ui-store.js.map +1 -1
- package/dist/server/utils/token-estimator.d.ts +2 -2
- package/dist/server/utils/token-estimator.d.ts.map +1 -1
- package/dist/server/utils/token-estimator.js +2 -12
- package/dist/server/utils/token-estimator.js.map +1 -1
- package/dist/server/validation.d.ts +54 -0
- package/dist/server/validation.d.ts.map +1 -1
- package/dist/services/image-providers/cost.d.ts +70 -0
- package/dist/services/image-providers/cost.d.ts.map +1 -0
- package/dist/services/image-providers/cost.js +164 -0
- package/dist/services/image-providers/cost.js.map +1 -0
- package/dist/services/image-providers/flux.d.ts +40 -0
- package/dist/services/image-providers/flux.d.ts.map +1 -0
- package/dist/services/image-providers/flux.js +99 -0
- package/dist/services/image-providers/flux.js.map +1 -0
- package/dist/services/image-providers/index.d.ts +24 -0
- package/dist/services/image-providers/index.d.ts.map +1 -0
- package/dist/services/image-providers/index.js +27 -0
- package/dist/services/image-providers/index.js.map +1 -0
- package/dist/services/image-providers/masks.d.ts +51 -0
- package/dist/services/image-providers/masks.d.ts.map +1 -0
- package/dist/services/image-providers/masks.js +132 -0
- package/dist/services/image-providers/masks.js.map +1 -0
- package/dist/services/image-providers/openai.d.ts +35 -0
- package/dist/services/image-providers/openai.d.ts.map +1 -0
- package/dist/services/image-providers/openai.js +93 -0
- package/dist/services/image-providers/openai.js.map +1 -0
- package/dist/services/image-providers/types.d.ts +61 -0
- package/dist/services/image-providers/types.d.ts.map +1 -0
- package/dist/services/image-providers/types.js +17 -0
- package/dist/services/image-providers/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +1 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -1
- package/dist/services/intelligent-router/index.js +1 -0
- package/dist/services/intelligent-router/index.js.map +1 -1
- package/dist/services/intelligent-router/normalize.d.ts +1 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -1
- package/dist/services/intelligent-router/normalize.js +17 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -1
- package/dist/services/intelligent-router/outcome.d.ts +19 -0
- package/dist/services/intelligent-router/outcome.d.ts.map +1 -0
- package/dist/services/intelligent-router/outcome.js +51 -0
- package/dist/services/intelligent-router/outcome.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +2 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -1
- package/dist/services/intelligent-router/recorder.js +72 -1
- package/dist/services/intelligent-router/recorder.js.map +1 -1
- package/dist/services/intelligent-router/service.d.ts +1 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -1
- package/dist/services/intelligent-router/service.js +60 -11
- package/dist/services/intelligent-router/service.js.map +1 -1
- package/dist/services/intelligent-router/types.d.ts +18 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -1
- package/dist/services/intelligent-router/types.js.map +1 -1
- package/dist/services/workspace-config/middleware.d.ts +2 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -1
- package/dist/services/workspace-config/middleware.js +25 -28
- package/dist/services/workspace-config/middleware.js.map +1 -1
- package/dist/session/agent-lineage-projection.d.ts +30 -0
- package/dist/session/agent-lineage-projection.d.ts.map +1 -0
- package/dist/session/agent-lineage-projection.js +109 -0
- package/dist/session/agent-lineage-projection.js.map +1 -0
- package/dist/session/manager.d.ts +3 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +24 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/session-graph-projection.d.ts +11 -0
- package/dist/session/session-graph-projection.d.ts.map +1 -1
- package/dist/session/session-graph-projection.js +28 -0
- package/dist/session/session-graph-projection.js.map +1 -1
- package/dist/session/types.d.ts +2 -0
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -1
- package/dist/telemetry/maestro-event-bus.js.map +1 -1
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -1
- package/dist/telemetry/oracle-policy.d.ts +6 -0
- package/dist/telemetry/oracle-policy.d.ts.map +1 -0
- package/dist/telemetry/oracle-policy.js +17 -0
- package/dist/telemetry/oracle-policy.js.map +1 -0
- package/dist/telemetry/wide-events.d.ts +1 -1
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/theme/theme.d.ts +2 -8
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +7 -0
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/tui-theme-helpers.d.ts +2 -1
- package/dist/theme/tui-theme-helpers.d.ts.map +1 -1
- package/dist/theme/tui-theme-helpers.js.map +1 -1
- package/dist/theme/tui-theme-types.d.ts +39 -0
- package/dist/theme/tui-theme-types.d.ts.map +1 -0
- package/dist/theme/tui-theme-types.js +10 -0
- package/dist/theme/tui-theme-types.js.map +1 -0
- package/dist/tools/index.d.ts +199 -160
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lazy-registry.d.ts.map +1 -1
- package/dist/tools/lazy-registry.js +1 -0
- package/dist/tools/lazy-registry.js.map +1 -1
- package/dist/tools/oracle.d.ts +9 -0
- package/dist/tools/oracle.d.ts.map +1 -1
- package/dist/tools/oracle.js +26 -24
- package/dist/tools/oracle.js.map +1 -1
- package/dist/tools/painter.d.ts +73 -0
- package/dist/tools/painter.d.ts.map +1 -0
- package/dist/tools/painter.js +283 -0
- package/dist/tools/painter.js.map +1 -0
- package/dist/tools/typebox-tool.d.ts.map +1 -1
- package/dist/tools/typebox-tool.js +1 -1
- package/dist/tools/typebox-tool.js.map +1 -1
- package/dist/utils/terminal-image.d.ts +52 -0
- package/dist/utils/terminal-image.d.ts.map +1 -0
- package/dist/utils/terminal-image.js +95 -0
- package/dist/utils/terminal-image.js.map +1 -0
- package/dist/utils/terminal-text.d.ts +11 -0
- package/dist/utils/terminal-text.d.ts.map +1 -0
- package/dist/utils/terminal-text.js +21 -0
- package/dist/utils/terminal-text.js.map +1 -0
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +24 -2
- package/dist/web-server.js.map +1 -1
- package/package.json +13 -11
- package/skills/incident-triage/SKILL.md +4 -3
- package/dist/cli/commands/agents.d.ts +0 -24
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/agents.js +0 -429
- package/dist/cli/commands/agents.js.map +0 -1
- package/dist/cli/commands/anthropic.d.ts +0 -2
- package/dist/cli/commands/anthropic.d.ts.map +0 -1
- package/dist/cli/commands/anthropic.js +0 -6
- package/dist/cli/commands/anthropic.js.map +0 -1
- package/dist/cli/commands/cost.d.ts +0 -13
- package/dist/cli/commands/cost.d.ts.map +0 -1
- package/dist/cli/commands/cost.js +0 -143
- package/dist/cli/commands/cost.js.map +0 -1
- package/dist/cli/commands/exec-constants.d.ts +0 -3
- package/dist/cli/commands/exec-constants.d.ts.map +0 -1
- package/dist/cli/commands/exec-constants.js +0 -3
- package/dist/cli/commands/exec-constants.js.map +0 -1
- package/dist/cli/commands/exec.d.ts +0 -19
- package/dist/cli/commands/exec.d.ts.map +0 -1
- package/dist/cli/commands/exec.js +0 -207
- package/dist/cli/commands/exec.js.map +0 -1
- package/dist/cli/commands/hooks.d.ts +0 -2
- package/dist/cli/commands/hooks.d.ts.map +0 -1
- package/dist/cli/commands/hooks.js +0 -25
- package/dist/cli/commands/hooks.js.map +0 -1
- package/dist/cli/commands/hosted-runner.d.ts +0 -25
- package/dist/cli/commands/hosted-runner.d.ts.map +0 -1
- package/dist/cli/commands/hosted-runner.js +0 -278
- package/dist/cli/commands/hosted-runner.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -2
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -208
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/cli/commands/models.d.ts +0 -3
- package/dist/cli/commands/models.d.ts.map +0 -1
- package/dist/cli/commands/models.js +0 -154
- package/dist/cli/commands/models.js.map +0 -1
- package/dist/cli/commands/modes.d.ts +0 -8
- package/dist/cli/commands/modes.d.ts.map +0 -1
- package/dist/cli/commands/modes.js +0 -151
- package/dist/cli/commands/modes.js.map +0 -1
- package/dist/cli/commands/openai.d.ts +0 -2
- package/dist/cli/commands/openai.d.ts.map +0 -1
- package/dist/cli/commands/openai.js +0 -116
- package/dist/cli/commands/openai.js.map +0 -1
- package/dist/cli/commands/session-transfer.d.ts +0 -5
- package/dist/cli/commands/session-transfer.d.ts.map +0 -1
- package/dist/cli/commands/session-transfer.js +0 -43
- package/dist/cli/commands/session-transfer.js.map +0 -1
- package/dist/cli/commands/sessions.d.ts +0 -8
- package/dist/cli/commands/sessions.d.ts.map +0 -1
- package/dist/cli/commands/sessions.js +0 -152
- package/dist/cli/commands/sessions.js.map +0 -1
- package/dist/cli/commands/skill.d.ts +0 -10
- package/dist/cli/commands/skill.d.ts.map +0 -1
- package/dist/cli/commands/skill.js +0 -303
- package/dist/cli/commands/skill.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -7
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -167
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -2
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -12
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -148
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli-tui/about-view.d.ts +0 -48
- package/dist/cli-tui/about-view.d.ts.map +0 -1
- package/dist/cli-tui/about-view.js +0 -206
- package/dist/cli-tui/about-view.js.map +0 -1
- package/dist/cli-tui/agent-event-router.d.ts +0 -28
- package/dist/cli-tui/agent-event-router.d.ts.map +0 -1
- package/dist/cli-tui/agent-event-router.js +0 -126
- package/dist/cli-tui/agent-event-router.js.map +0 -1
- package/dist/cli-tui/approval/approval-controller.d.ts +0 -28
- package/dist/cli-tui/approval/approval-controller.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-controller.js +0 -99
- package/dist/cli-tui/approval/approval-controller.js.map +0 -1
- package/dist/cli-tui/approval/approval-modal.d.ts +0 -26
- package/dist/cli-tui/approval/approval-modal.d.ts.map +0 -1
- package/dist/cli-tui/approval/approval-modal.js +0 -143
- package/dist/cli-tui/approval/approval-modal.js.map +0 -1
- package/dist/cli-tui/assistant-message.d.ts +0 -41
- package/dist/cli-tui/assistant-message.d.ts.map +0 -1
- package/dist/cli-tui/assistant-message.js +0 -236
- package/dist/cli-tui/assistant-message.js.map +0 -1
- package/dist/cli-tui/auth-state.d.ts +0 -7
- package/dist/cli-tui/auth-state.d.ts.map +0 -1
- package/dist/cli-tui/auth-state.js +0 -46
- package/dist/cli-tui/auth-state.js.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.d.ts +0 -31
- package/dist/cli-tui/background/background-tasks-controller.d.ts.map +0 -1
- package/dist/cli-tui/background/background-tasks-controller.js +0 -84
- package/dist/cli-tui/background/background-tasks-controller.js.map +0 -1
- package/dist/cli-tui/base-view.d.ts +0 -111
- package/dist/cli-tui/base-view.d.ts.map +0 -1
- package/dist/cli-tui/base-view.js +0 -145
- package/dist/cli-tui/base-view.js.map +0 -1
- package/dist/cli-tui/bash/background-launcher.d.ts +0 -14
- package/dist/cli-tui/bash/background-launcher.d.ts.map +0 -1
- package/dist/cli-tui/bash/background-launcher.js +0 -50
- package/dist/cli-tui/bash/background-launcher.js.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.d.ts +0 -40
- package/dist/cli-tui/bash/bash-autocomplete.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-autocomplete.js +0 -347
- package/dist/cli-tui/bash/bash-autocomplete.js.map +0 -1
- package/dist/cli-tui/bash/bash-history.d.ts +0 -21
- package/dist/cli-tui/bash/bash-history.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-history.js +0 -72
- package/dist/cli-tui/bash/bash-history.js.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.d.ts +0 -5
- package/dist/cli-tui/bash/bash-syntax.d.ts.map +0 -1
- package/dist/cli-tui/bash/bash-syntax.js +0 -176
- package/dist/cli-tui/bash/bash-syntax.js.map +0 -1
- package/dist/cli-tui/bash/index.d.ts +0 -4
- package/dist/cli-tui/bash/index.d.ts.map +0 -1
- package/dist/cli-tui/bash/index.js +0 -4
- package/dist/cli-tui/bash/index.js.map +0 -1
- package/dist/cli-tui/bash-mode-view.d.ts +0 -86
- package/dist/cli-tui/bash-mode-view.d.ts.map +0 -1
- package/dist/cli-tui/bash-mode-view.js +0 -560
- package/dist/cli-tui/bash-mode-view.js.map +0 -1
- package/dist/cli-tui/bash-shell-block.d.ts +0 -50
- package/dist/cli-tui/bash-shell-block.d.ts.map +0 -1
- package/dist/cli-tui/bash-shell-block.js +0 -119
- package/dist/cli-tui/bash-shell-block.js.map +0 -1
- package/dist/cli-tui/changelog-view.d.ts +0 -13
- package/dist/cli-tui/changelog-view.d.ts.map +0 -1
- package/dist/cli-tui/changelog-view.js +0 -34
- package/dist/cli-tui/changelog-view.js.map +0 -1
- package/dist/cli-tui/clean-mode.d.ts +0 -13
- package/dist/cli-tui/clean-mode.d.ts.map +0 -1
- package/dist/cli-tui/clean-mode.js +0 -32
- package/dist/cli-tui/clean-mode.js.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts +0 -41
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +0 -860
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts +0 -33
- package/dist/cli-tui/client-tools/local-client-tool-service.d.ts.map +0 -1
- package/dist/cli-tui/client-tools/local-client-tool-service.js +0 -94
- package/dist/cli-tui/client-tools/local-client-tool-service.js.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.d.ts +0 -7
- package/dist/cli-tui/commands/a2a-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/a2a-handlers.js +0 -215
- package/dist/cli-tui/commands/a2a-handlers.js.map +0 -1
- package/dist/cli-tui/commands/access-command.d.ts +0 -3
- package/dist/cli-tui/commands/access-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/access-command.js +0 -89
- package/dist/cli-tui/commands/access-command.js.map +0 -1
- package/dist/cli-tui/commands/argument-parser.d.ts +0 -12
- package/dist/cli-tui/commands/argument-parser.d.ts.map +0 -1
- package/dist/cli-tui/commands/argument-parser.js +0 -135
- package/dist/cli-tui/commands/argument-parser.js.map +0 -1
- package/dist/cli-tui/commands/audit-command.d.ts +0 -5
- package/dist/cli-tui/commands/audit-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/audit-command.js +0 -35
- package/dist/cli-tui/commands/audit-command.js.map +0 -1
- package/dist/cli-tui/commands/background-handlers.d.ts +0 -14
- package/dist/cli-tui/commands/background-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/background-handlers.js +0 -115
- package/dist/cli-tui/commands/background-handlers.js.map +0 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +0 -29
- package/dist/cli-tui/commands/command-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-catalog.js +0 -666
- package/dist/cli-tui/commands/command-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +0 -12
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-registry-adapter.js +0 -129
- package/dist/cli-tui/commands/command-registry-adapter.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +0 -14
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-catalog.js +0 -147
- package/dist/cli-tui/commands/command-suite-catalog.js.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.d.ts +0 -111
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/command-suite-handlers.js +0 -110
- package/dist/cli-tui/commands/command-suite-handlers.js.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.d.ts +0 -8
- package/dist/cli-tui/commands/composer-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/composer-handlers.js +0 -90
- package/dist/cli-tui/commands/composer-handlers.js.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.d.ts +0 -18
- package/dist/cli-tui/commands/framework-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/framework-handlers.js +0 -57
- package/dist/cli-tui/commands/framework-handlers.js.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.d.ts +0 -20
- package/dist/cli-tui/commands/guardian-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/guardian-handlers.js +0 -48
- package/dist/cli-tui/commands/guardian-handlers.js.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts +0 -32
- package/dist/cli-tui/commands/handlers/mode-handler.d.ts.map +0 -1
- package/dist/cli-tui/commands/handlers/mode-handler.js +0 -153
- package/dist/cli-tui/commands/handlers/mode-handler.js.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts +0 -8
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/hotkeys-command.js +0 -61
- package/dist/cli-tui/commands/hotkeys-command.js.map +0 -1
- package/dist/cli-tui/commands/limits-command.d.ts +0 -3
- package/dist/cli-tui/commands/limits-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/limits-command.js +0 -88
- package/dist/cli-tui/commands/limits-command.js.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.d.ts +0 -12
- package/dist/cli-tui/commands/mcp-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/mcp-handlers.js +0 -1306
- package/dist/cli-tui/commands/mcp-handlers.js.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.d.ts +0 -28
- package/dist/cli-tui/commands/memory-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/memory-handlers.js +0 -414
- package/dist/cli-tui/commands/memory-handlers.js.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.d.ts +0 -11
- package/dist/cli-tui/commands/otel-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/otel-handlers.js +0 -20
- package/dist/cli-tui/commands/otel-handlers.js.map +0 -1
- package/dist/cli-tui/commands/package-handlers.d.ts +0 -30
- package/dist/cli-tui/commands/package-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/package-handlers.js +0 -499
- package/dist/cli-tui/commands/package-handlers.js.map +0 -1
- package/dist/cli-tui/commands/pii-command.d.ts +0 -3
- package/dist/cli-tui/commands/pii-command.d.ts.map +0 -1
- package/dist/cli-tui/commands/pii-command.js +0 -54
- package/dist/cli-tui/commands/pii-command.js.map +0 -1
- package/dist/cli-tui/commands/registry.d.ts +0 -3
- package/dist/cli-tui/commands/registry.d.ts.map +0 -1
- package/dist/cli-tui/commands/registry.js +0 -36
- package/dist/cli-tui/commands/registry.js.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.d.ts +0 -36
- package/dist/cli-tui/commands/safety-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/safety-handlers.js +0 -62
- package/dist/cli-tui/commands/safety-handlers.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.js +0 -79
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts +0 -23
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.js +0 -61
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts +0 -46
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/diag-commands.js +0 -163
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/git-commands.js +0 -50
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.d.ts +0 -18
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/index.js +0 -18
- package/dist/cli-tui/commands/subcommands/index.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts +0 -26
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.js +0 -149
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts +0 -36
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/session-commands.js +0 -112
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts +0 -27
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.js +0 -80
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts +0 -30
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts +0 -25
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/undo-commands.js +0 -74
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts +0 -19
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/usage-commands.js +0 -63
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.d.ts +0 -127
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/subcommands/utils.js +0 -395
- package/dist/cli-tui/commands/subcommands/utils.js.map +0 -1
- package/dist/cli-tui/commands/types.d.ts +0 -105
- package/dist/cli-tui/commands/types.d.ts.map +0 -1
- package/dist/cli-tui/commands/types.js +0 -2
- package/dist/cli-tui/commands/types.js.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.d.ts +0 -29
- package/dist/cli-tui/commands/undo-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/undo-handlers.js +0 -305
- package/dist/cli-tui/commands/undo-handlers.js.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.d.ts +0 -55
- package/dist/cli-tui/commands/utility-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/utility-handlers.js +0 -137
- package/dist/cli-tui/commands/utility-handlers.js.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.d.ts +0 -22
- package/dist/cli-tui/commands/workflow-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/workflow-handlers.js +0 -227
- package/dist/cli-tui/commands/workflow-handlers.js.map +0 -1
- package/dist/cli-tui/compact-boundary-message.d.ts +0 -9
- package/dist/cli-tui/compact-boundary-message.d.ts.map +0 -1
- package/dist/cli-tui/compact-boundary-message.js +0 -18
- package/dist/cli-tui/compact-boundary-message.js.map +0 -1
- package/dist/cli-tui/compaction-recovery.d.ts +0 -6
- package/dist/cli-tui/compaction-recovery.d.ts.map +0 -1
- package/dist/cli-tui/compaction-recovery.js +0 -13
- package/dist/cli-tui/compaction-recovery.js.map +0 -1
- package/dist/cli-tui/config-view.d.ts +0 -30
- package/dist/cli-tui/config-view.d.ts.map +0 -1
- package/dist/cli-tui/config-view.js +0 -255
- package/dist/cli-tui/config-view.js.map +0 -1
- package/dist/cli-tui/context-view.d.ts +0 -20
- package/dist/cli-tui/context-view.d.ts.map +0 -1
- package/dist/cli-tui/context-view.js +0 -191
- package/dist/cli-tui/context-view.js.map +0 -1
- package/dist/cli-tui/custom-editor.d.ts +0 -25
- package/dist/cli-tui/custom-editor.d.ts.map +0 -1
- package/dist/cli-tui/custom-editor.js +0 -241
- package/dist/cli-tui/custom-editor.js.map +0 -1
- package/dist/cli-tui/editor-view.d.ts +0 -34
- package/dist/cli-tui/editor-view.d.ts.map +0 -1
- package/dist/cli-tui/editor-view.js +0 -102
- package/dist/cli-tui/editor-view.js.map +0 -1
- package/dist/cli-tui/feedback-view.d.ts +0 -35
- package/dist/cli-tui/feedback-view.d.ts.map +0 -1
- package/dist/cli-tui/feedback-view.js +0 -271
- package/dist/cli-tui/feedback-view.js.map +0 -1
- package/dist/cli-tui/footer.d.ts +0 -56
- package/dist/cli-tui/footer.d.ts.map +0 -1
- package/dist/cli-tui/footer.js +0 -228
- package/dist/cli-tui/footer.js.map +0 -1
- package/dist/cli-tui/git/commit-modal.d.ts +0 -14
- package/dist/cli-tui/git/commit-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/commit-modal.js +0 -56
- package/dist/cli-tui/git/commit-modal.js.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.d.ts +0 -40
- package/dist/cli-tui/git/git-preview-modal.d.ts.map +0 -1
- package/dist/cli-tui/git/git-preview-modal.js +0 -123
- package/dist/cli-tui/git/git-preview-modal.js.map +0 -1
- package/dist/cli-tui/git/git-view.d.ts +0 -65
- package/dist/cli-tui/git/git-view.d.ts.map +0 -1
- package/dist/cli-tui/git/git-view.js +0 -529
- package/dist/cli-tui/git/git-view.js.map +0 -1
- package/dist/cli-tui/history/history-config.d.ts +0 -7
- package/dist/cli-tui/history/history-config.d.ts.map +0 -1
- package/dist/cli-tui/history/history-config.js +0 -49
- package/dist/cli-tui/history/history-config.js.map +0 -1
- package/dist/cli-tui/history/prompt-history.d.ts +0 -33
- package/dist/cli-tui/history/prompt-history.d.ts.map +0 -1
- package/dist/cli-tui/history/prompt-history.js +0 -185
- package/dist/cli-tui/history/prompt-history.js.map +0 -1
- package/dist/cli-tui/history/tool-history.d.ts +0 -50
- package/dist/cli-tui/history/tool-history.d.ts.map +0 -1
- package/dist/cli-tui/history/tool-history.js +0 -253
- package/dist/cli-tui/history/tool-history.js.map +0 -1
- package/dist/cli-tui/hook-message.d.ts +0 -13
- package/dist/cli-tui/hook-message.d.ts.map +0 -1
- package/dist/cli-tui/hook-message.js +0 -56
- package/dist/cli-tui/hook-message.js.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.d.ts +0 -22
- package/dist/cli-tui/hooks/hook-input-modal.d.ts.map +0 -1
- package/dist/cli-tui/hooks/hook-input-modal.js +0 -63
- package/dist/cli-tui/hooks/hook-input-modal.js.map +0 -1
- package/dist/cli-tui/hotkeys-view.d.ts +0 -13
- package/dist/cli-tui/hotkeys-view.d.ts.map +0 -1
- package/dist/cli-tui/hotkeys-view.js +0 -96
- package/dist/cli-tui/hotkeys-view.js.map +0 -1
- package/dist/cli-tui/import-view.d.ts +0 -28
- package/dist/cli-tui/import-view.d.ts.map +0 -1
- package/dist/cli-tui/import-view.js +0 -184
- package/dist/cli-tui/import-view.js.map +0 -1
- package/dist/cli-tui/info-view.d.ts +0 -18
- package/dist/cli-tui/info-view.d.ts.map +0 -1
- package/dist/cli-tui/info-view.js +0 -107
- package/dist/cli-tui/info-view.js.map +0 -1
- package/dist/cli-tui/instruction-panel.d.ts +0 -11
- package/dist/cli-tui/instruction-panel.d.ts.map +0 -1
- package/dist/cli-tui/instruction-panel.js +0 -86
- package/dist/cli-tui/instruction-panel.js.map +0 -1
- package/dist/cli-tui/interrupt-controller.d.ts +0 -78
- package/dist/cli-tui/interrupt-controller.d.ts.map +0 -1
- package/dist/cli-tui/interrupt-controller.js +0 -104
- package/dist/cli-tui/interrupt-controller.js.map +0 -1
- package/dist/cli-tui/keybindings-config.d.ts +0 -27
- package/dist/cli-tui/keybindings-config.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-config.js +0 -372
- package/dist/cli-tui/keybindings-config.js.map +0 -1
- package/dist/cli-tui/keybindings-watcher.d.ts +0 -8
- package/dist/cli-tui/keybindings-watcher.d.ts.map +0 -1
- package/dist/cli-tui/keybindings-watcher.js +0 -56
- package/dist/cli-tui/keybindings-watcher.js.map +0 -1
- package/dist/cli-tui/keybindings.d.ts +0 -13
- package/dist/cli-tui/keybindings.d.ts.map +0 -1
- package/dist/cli-tui/keybindings.js +0 -223
- package/dist/cli-tui/keybindings.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.d.ts +0 -43
- package/dist/cli-tui/loader/loader-stage-manager.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-manager.js +0 -241
- package/dist/cli-tui/loader/loader-stage-manager.js.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts +0 -14
- package/dist/cli-tui/loader/loader-stage-telemetry.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-stage-telemetry.js +0 -34
- package/dist/cli-tui/loader/loader-stage-telemetry.js.map +0 -1
- package/dist/cli-tui/loader/loader-view.d.ts +0 -41
- package/dist/cli-tui/loader/loader-view.d.ts.map +0 -1
- package/dist/cli-tui/loader/loader-view.js +0 -162
- package/dist/cli-tui/loader/loader-view.js.map +0 -1
- package/dist/cli-tui/lsp-view.d.ts +0 -21
- package/dist/cli-tui/lsp-view.d.ts.map +0 -1
- package/dist/cli-tui/lsp-view.js +0 -183
- package/dist/cli-tui/lsp-view.js.map +0 -1
- package/dist/cli-tui/mermaid-renderer.d.ts +0 -2
- package/dist/cli-tui/mermaid-renderer.d.ts.map +0 -1
- package/dist/cli-tui/mermaid-renderer.js +0 -391
- package/dist/cli-tui/mermaid-renderer.js.map +0 -1
- package/dist/cli-tui/message-view.d.ts +0 -27
- package/dist/cli-tui/message-view.d.ts.map +0 -1
- package/dist/cli-tui/message-view.js +0 -169
- package/dist/cli-tui/message-view.js.map +0 -1
- package/dist/cli-tui/modal-manager.d.ts +0 -77
- package/dist/cli-tui/modal-manager.d.ts.map +0 -1
- package/dist/cli-tui/modal-manager.js +0 -131
- package/dist/cli-tui/modal-manager.js.map +0 -1
- package/dist/cli-tui/notification-view.d.ts +0 -16
- package/dist/cli-tui/notification-view.d.ts.map +0 -1
- package/dist/cli-tui/notification-view.js +0 -53
- package/dist/cli-tui/notification-view.js.map +0 -1
- package/dist/cli-tui/oauth/index.d.ts +0 -2
- package/dist/cli-tui/oauth/index.d.ts.map +0 -1
- package/dist/cli-tui/oauth/index.js +0 -2
- package/dist/cli-tui/oauth/index.js.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +0 -65
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +0 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +0 -400
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +0 -1
- package/dist/cli-tui/ollama-view.d.ts +0 -38
- package/dist/cli-tui/ollama-view.d.ts.map +0 -1
- package/dist/cli-tui/ollama-view.js +0 -395
- package/dist/cli-tui/ollama-view.js.map +0 -1
- package/dist/cli-tui/paste/index.d.ts +0 -2
- package/dist/cli-tui/paste/index.d.ts.map +0 -1
- package/dist/cli-tui/paste/index.js +0 -2
- package/dist/cli-tui/paste/index.js.map +0 -1
- package/dist/cli-tui/paste/paste-handler.d.ts +0 -54
- package/dist/cli-tui/paste/paste-handler.d.ts.map +0 -1
- package/dist/cli-tui/paste/paste-handler.js +0 -128
- package/dist/cli-tui/paste/paste-handler.js.map +0 -1
- package/dist/cli-tui/plan/plan-controller.d.ts +0 -28
- package/dist/cli-tui/plan/plan-controller.d.ts.map +0 -1
- package/dist/cli-tui/plan/plan-controller.js +0 -66
- package/dist/cli-tui/plan/plan-controller.js.map +0 -1
- package/dist/cli-tui/plan-panel-modal.d.ts +0 -28
- package/dist/cli-tui/plan-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/plan-panel-modal.js +0 -193
- package/dist/cli-tui/plan-panel-modal.js.map +0 -1
- package/dist/cli-tui/plan-view.d.ts +0 -57
- package/dist/cli-tui/plan-view.d.ts.map +0 -1
- package/dist/cli-tui/plan-view.js +0 -404
- package/dist/cli-tui/plan-view.js.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts +0 -6
- package/dist/cli-tui/queue/follow-up-shortcut.d.ts.map +0 -1
- package/dist/cli-tui/queue/follow-up-shortcut.js +0 -12
- package/dist/cli-tui/queue/follow-up-shortcut.js.map +0 -1
- package/dist/cli-tui/queue/index.d.ts +0 -3
- package/dist/cli-tui/queue/index.d.ts.map +0 -1
- package/dist/cli-tui/queue/index.js +0 -3
- package/dist/cli-tui/queue/index.js.map +0 -1
- package/dist/cli-tui/queue/queue-controller.d.ts +0 -109
- package/dist/cli-tui/queue/queue-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-controller.js +0 -327
- package/dist/cli-tui/queue/queue-controller.js.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.d.ts +0 -34
- package/dist/cli-tui/queue/queue-panel-controller.d.ts.map +0 -1
- package/dist/cli-tui/queue/queue-panel-controller.js +0 -163
- package/dist/cli-tui/queue/queue-panel-controller.js.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts +0 -7
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.d.ts.map +0 -1
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js +0 -14
- package/dist/cli-tui/queue/queued-follow-up-edit-binding.js.map +0 -1
- package/dist/cli-tui/queue-panel-modal.d.ts +0 -26
- package/dist/cli-tui/queue-panel-modal.d.ts.map +0 -1
- package/dist/cli-tui/queue-panel-modal.js +0 -159
- package/dist/cli-tui/queue-panel-modal.js.map +0 -1
- package/dist/cli-tui/run/run-command-view.d.ts +0 -17
- package/dist/cli-tui/run/run-command-view.d.ts.map +0 -1
- package/dist/cli-tui/run/run-command-view.js +0 -62
- package/dist/cli-tui/run/run-command-view.js.map +0 -1
- package/dist/cli-tui/run/run-controller.d.ts +0 -24
- package/dist/cli-tui/run/run-controller.d.ts.map +0 -1
- package/dist/cli-tui/run/run-controller.js +0 -38
- package/dist/cli-tui/run/run-controller.js.map +0 -1
- package/dist/cli-tui/run/run-shell-command.d.ts +0 -13
- package/dist/cli-tui/run/run-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/run-shell-command.js +0 -51
- package/dist/cli-tui/run/run-shell-command.js.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts +0 -19
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +0 -1
- package/dist/cli-tui/run/streaming-shell-command.js +0 -107
- package/dist/cli-tui/run/streaming-shell-command.js.map +0 -1
- package/dist/cli-tui/search/file-search-view.d.ts +0 -22
- package/dist/cli-tui/search/file-search-view.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search-view.js +0 -68
- package/dist/cli-tui/search/file-search-view.js.map +0 -1
- package/dist/cli-tui/search/file-search.d.ts +0 -13
- package/dist/cli-tui/search/file-search.d.ts.map +0 -1
- package/dist/cli-tui/search/file-search.js +0 -52
- package/dist/cli-tui/search/file-search.js.map +0 -1
- package/dist/cli-tui/security-status.d.ts +0 -83
- package/dist/cli-tui/security-status.d.ts.map +0 -1
- package/dist/cli-tui/security-status.js +0 -214
- package/dist/cli-tui/security-status.js.map +0 -1
- package/dist/cli-tui/selectors/base-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/base-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/base-selector.js +0 -47
- package/dist/cli-tui/selectors/base-selector.js.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts +0 -18
- package/dist/cli-tui/selectors/branch-summary-modal.d.ts.map +0 -1
- package/dist/cli-tui/selectors/branch-summary-modal.js +0 -24
- package/dist/cli-tui/selectors/branch-summary-modal.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.d.ts +0 -22
- package/dist/cli-tui/selectors/model-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector-view.js +0 -31
- package/dist/cli-tui/selectors/model-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/model-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/model-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/model-selector.js +0 -218
- package/dist/cli-tui/selectors/model-selector.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/oauth-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector-view.js +0 -28
- package/dist/cli-tui/selectors/oauth-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.d.ts +0 -19
- package/dist/cli-tui/selectors/oauth-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/oauth-selector.js +0 -120
- package/dist/cli-tui/selectors/oauth-selector.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/queue-mode-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector-view.js +0 -29
- package/dist/cli-tui/selectors/queue-mode-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts +0 -5
- package/dist/cli-tui/selectors/queue-mode-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/queue-mode-selector.js +0 -34
- package/dist/cli-tui/selectors/queue-mode-selector.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.d.ts +0 -17
- package/dist/cli-tui/selectors/report-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector-view.js +0 -29
- package/dist/cli-tui/selectors/report-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/report-selector.d.ts +0 -7
- package/dist/cli-tui/selectors/report-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/report-selector.js +0 -31
- package/dist/cli-tui/selectors/report-selector.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.d.ts +0 -19
- package/dist/cli-tui/selectors/theme-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector-view.js +0 -41
- package/dist/cli-tui/selectors/theme-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.d.ts +0 -14
- package/dist/cli-tui/selectors/theme-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/theme-selector.js +0 -46
- package/dist/cli-tui/selectors/theme-selector.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts +0 -20
- package/dist/cli-tui/selectors/thinking-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector-view.js +0 -31
- package/dist/cli-tui/selectors/thinking-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.d.ts +0 -9
- package/dist/cli-tui/selectors/thinking-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/thinking-selector.js +0 -47
- package/dist/cli-tui/selectors/thinking-selector.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.d.ts +0 -32
- package/dist/cli-tui/selectors/tree-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector-view.js +0 -407
- package/dist/cli-tui/selectors/tree-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.d.ts +0 -27
- package/dist/cli-tui/selectors/tree-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/tree-selector.js +0 -194
- package/dist/cli-tui/selectors/tree-selector.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts +0 -25
- package/dist/cli-tui/selectors/user-message-selector-view.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector-view.js +0 -101
- package/dist/cli-tui/selectors/user-message-selector-view.js.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.d.ts +0 -30
- package/dist/cli-tui/selectors/user-message-selector.d.ts.map +0 -1
- package/dist/cli-tui/selectors/user-message-selector.js +0 -114
- package/dist/cli-tui/selectors/user-message-selector.js.map +0 -1
- package/dist/cli-tui/session/branch-controller.d.ts +0 -65
- package/dist/cli-tui/session/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/branch-controller.js +0 -125
- package/dist/cli-tui/session/branch-controller.js.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.d.ts +0 -64
- package/dist/cli-tui/session/conversation-compactor.d.ts.map +0 -1
- package/dist/cli-tui/session/conversation-compactor.js +0 -77
- package/dist/cli-tui/session/conversation-compactor.js.map +0 -1
- package/dist/cli-tui/session/session-context.d.ts +0 -59
- package/dist/cli-tui/session/session-context.d.ts.map +0 -1
- package/dist/cli-tui/session/session-context.js +0 -79
- package/dist/cli-tui/session/session-context.js.map +0 -1
- package/dist/cli-tui/session/session-data-provider.d.ts +0 -23
- package/dist/cli-tui/session/session-data-provider.d.ts.map +0 -1
- package/dist/cli-tui/session/session-data-provider.js +0 -22
- package/dist/cli-tui/session/session-data-provider.js.map +0 -1
- package/dist/cli-tui/session/session-list.d.ts +0 -18
- package/dist/cli-tui/session/session-list.d.ts.map +0 -1
- package/dist/cli-tui/session/session-list.js +0 -103
- package/dist/cli-tui/session/session-list.js.map +0 -1
- package/dist/cli-tui/session/session-selector.d.ts +0 -12
- package/dist/cli-tui/session/session-selector.d.ts.map +0 -1
- package/dist/cli-tui/session/session-selector.js +0 -37
- package/dist/cli-tui/session/session-selector.js.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.d.ts +0 -24
- package/dist/cli-tui/session/session-summary-controller.d.ts.map +0 -1
- package/dist/cli-tui/session/session-summary-controller.js +0 -96
- package/dist/cli-tui/session/session-summary-controller.js.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.d.ts +0 -20
- package/dist/cli-tui/session/session-switcher-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher-view.js +0 -43
- package/dist/cli-tui/session/session-switcher-view.js.map +0 -1
- package/dist/cli-tui/session/session-switcher.d.ts +0 -38
- package/dist/cli-tui/session/session-switcher.d.ts.map +0 -1
- package/dist/cli-tui/session/session-switcher.js +0 -204
- package/dist/cli-tui/session/session-switcher.js.map +0 -1
- package/dist/cli-tui/session/session-view.d.ts +0 -46
- package/dist/cli-tui/session/session-view.d.ts.map +0 -1
- package/dist/cli-tui/session/session-view.js +0 -311
- package/dist/cli-tui/session/session-view.js.map +0 -1
- package/dist/cli-tui/slash/index.d.ts +0 -2
- package/dist/cli-tui/slash/index.d.ts.map +0 -1
- package/dist/cli-tui/slash/index.js +0 -2
- package/dist/cli-tui/slash/index.js.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.d.ts +0 -55
- package/dist/cli-tui/slash/slash-command-matcher.d.ts.map +0 -1
- package/dist/cli-tui/slash/slash-command-matcher.js +0 -113
- package/dist/cli-tui/slash/slash-command-matcher.js.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.d.ts +0 -5
- package/dist/cli-tui/smart-autocomplete-provider.d.ts.map +0 -1
- package/dist/cli-tui/smart-autocomplete-provider.js +0 -44
- package/dist/cli-tui/smart-autocomplete-provider.js.map +0 -1
- package/dist/cli-tui/startup-announcements.d.ts +0 -15
- package/dist/cli-tui/startup-announcements.d.ts.map +0 -1
- package/dist/cli-tui/startup-announcements.js +0 -75
- package/dist/cli-tui/startup-announcements.js.map +0 -1
- package/dist/cli-tui/status/cost-view.d.ts +0 -27
- package/dist/cli-tui/status/cost-view.d.ts.map +0 -1
- package/dist/cli-tui/status/cost-view.js +0 -212
- package/dist/cli-tui/status/cost-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.d.ts +0 -34
- package/dist/cli-tui/status/diagnostics-templates.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-templates.js +0 -167
- package/dist/cli-tui/status/diagnostics-templates.js.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.d.ts +0 -48
- package/dist/cli-tui/status/diagnostics-view.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics-view.js +0 -249
- package/dist/cli-tui/status/diagnostics-view.js.map +0 -1
- package/dist/cli-tui/status/diagnostics.d.ts +0 -39
- package/dist/cli-tui/status/diagnostics.d.ts.map +0 -1
- package/dist/cli-tui/status/diagnostics.js +0 -286
- package/dist/cli-tui/status/diagnostics.js.map +0 -1
- package/dist/cli-tui/status/health-snapshot.d.ts +0 -17
- package/dist/cli-tui/status/health-snapshot.d.ts.map +0 -1
- package/dist/cli-tui/status/health-snapshot.js +0 -28
- package/dist/cli-tui/status/health-snapshot.js.map +0 -1
- package/dist/cli-tui/status/quota-view.d.ts +0 -37
- package/dist/cli-tui/status/quota-view.d.ts.map +0 -1
- package/dist/cli-tui/status/quota-view.js +0 -309
- package/dist/cli-tui/status/quota-view.js.map +0 -1
- package/dist/cli-tui/status/telemetry-view.d.ts +0 -23
- package/dist/cli-tui/status/telemetry-view.d.ts.map +0 -1
- package/dist/cli-tui/status/telemetry-view.js +0 -77
- package/dist/cli-tui/status/telemetry-view.js.map +0 -1
- package/dist/cli-tui/status/training-view.d.ts +0 -23
- package/dist/cli-tui/status/training-view.d.ts.map +0 -1
- package/dist/cli-tui/status/training-view.js +0 -71
- package/dist/cli-tui/status/training-view.js.map +0 -1
- package/dist/cli-tui/streaming-view.d.ts +0 -43
- package/dist/cli-tui/streaming-view.d.ts.map +0 -1
- package/dist/cli-tui/streaming-view.js +0 -176
- package/dist/cli-tui/streaming-view.js.map +0 -1
- package/dist/cli-tui/terminal/index.d.ts +0 -2
- package/dist/cli-tui/terminal/index.d.ts.map +0 -1
- package/dist/cli-tui/terminal/index.js +0 -2
- package/dist/cli-tui/terminal/index.js.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.d.ts +0 -44
- package/dist/cli-tui/terminal/terminal-utils.d.ts.map +0 -1
- package/dist/cli-tui/terminal/terminal-utils.js +0 -145
- package/dist/cli-tui/terminal/terminal-utils.js.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.d.ts +0 -19
- package/dist/cli-tui/tips/tip-scheduler.d.ts.map +0 -1
- package/dist/cli-tui/tips/tip-scheduler.js +0 -135
- package/dist/cli-tui/tips/tip-scheduler.js.map +0 -1
- package/dist/cli-tui/tool-execution.d.ts +0 -76
- package/dist/cli-tui/tool-execution.d.ts.map +0 -1
- package/dist/cli-tui/tool-execution.js +0 -217
- package/dist/cli-tui/tool-execution.js.map +0 -1
- package/dist/cli-tui/tool-output-view.d.ts +0 -22
- package/dist/cli-tui/tool-output-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-output-view.js +0 -71
- package/dist/cli-tui/tool-output-view.js.map +0 -1
- package/dist/cli-tui/tool-renderers/index.d.ts +0 -4
- package/dist/cli-tui/tool-renderers/index.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/index.js +0 -19
- package/dist/cli-tui/tool-renderers/index.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-bash.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-bash.js +0 -90
- package/dist/cli-tui/tool-renderers/render-bash.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.d.ts +0 -12
- package/dist/cli-tui/tool-renderers/render-batch.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-batch.js +0 -133
- package/dist/cli-tui/tool-renderers/render-batch.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-edit.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-edit.js +0 -125
- package/dist/cli-tui/tool-renderers/render-edit.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.d.ts +0 -6
- package/dist/cli-tui/tool-renderers/render-generic.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-generic.js +0 -66
- package/dist/cli-tui/tool-renderers/render-generic.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.d.ts +0 -9
- package/dist/cli-tui/tool-renderers/render-read.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-read.js +0 -108
- package/dist/cli-tui/tool-renderers/render-read.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.d.ts +0 -21
- package/dist/cli-tui/tool-renderers/render-style.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-style.js +0 -51
- package/dist/cli-tui/tool-renderers/render-style.js.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.d.ts +0 -5
- package/dist/cli-tui/tool-renderers/render-write.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/render-write.js +0 -60
- package/dist/cli-tui/tool-renderers/render-write.js.map +0 -1
- package/dist/cli-tui/tool-renderers/types.d.ts +0 -20
- package/dist/cli-tui/tool-renderers/types.d.ts.map +0 -1
- package/dist/cli-tui/tool-renderers/types.js +0 -2
- package/dist/cli-tui/tool-renderers/types.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts +0 -29
- package/dist/cli-tui/tool-retry/tool-retry-controller.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-controller.js +0 -110
- package/dist/cli-tui/tool-retry/tool-retry-controller.js.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts +0 -27
- package/dist/cli-tui/tool-retry/tool-retry-modal.d.ts.map +0 -1
- package/dist/cli-tui/tool-retry/tool-retry-modal.js +0 -118
- package/dist/cli-tui/tool-retry/tool-retry-modal.js.map +0 -1
- package/dist/cli-tui/tool-status-view.d.ts +0 -32
- package/dist/cli-tui/tool-status-view.d.ts.map +0 -1
- package/dist/cli-tui/tool-status-view.js +0 -86
- package/dist/cli-tui/tool-status-view.js.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +0 -129
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/approval-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/approval-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/approval-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts +0 -54
- package/dist/cli-tui/tui-renderer/attachment-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/attachment-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/attachment-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts +0 -9
- package/dist/cli-tui/tui-renderer/background-tasks-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js +0 -7
- package/dist/cli-tui/tui-renderer/background-tasks-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts +0 -41
- package/dist/cli-tui/tui-renderer/branch-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/branch-controller.js +0 -102
- package/dist/cli-tui/tui-renderer/branch-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/clear-controller.js +0 -75
- package/dist/cli-tui/tui-renderer/clear-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/client-tools-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/client-tools-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/client-tools-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +0 -111
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +0 -163
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.d.ts +0 -16
- package/dist/cli-tui/tui-renderer/command-registry.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-registry.js +0 -23
- package/dist/cli-tui/tui-renderer/command-registry.js.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +0 -29
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +0 -108
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts +0 -100
- package/dist/cli-tui/tui-renderer/compaction-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/compaction-controller.js +0 -160
- package/dist/cli-tui/tui-renderer/compaction-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts +0 -42
- package/dist/cli-tui/tui-renderer/custom-commands-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js +0 -106
- package/dist/cli-tui/tui-renderer/custom-commands-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts +0 -37
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js +0 -139
- package/dist/cli-tui/tui-renderer/delegating-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/editor-bindings.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/editor-bindings.js +0 -76
- package/dist/cli-tui/tui-renderer/editor-bindings.js.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/footer-hints-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js +0 -152
- package/dist/cli-tui/tui-renderer/footer-hints-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.d.ts +0 -35
- package/dist/cli-tui/tui-renderer/history-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/history-controller.js +0 -153
- package/dist/cli-tui/tui-renderer/history-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts +0 -83
- package/dist/cli-tui/tui-renderer/hook-ui-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js +0 -309
- package/dist/cli-tui/tui-renderer/hook-ui-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/initial-preferences.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/initial-preferences.js +0 -54
- package/dist/cli-tui/tui-renderer/initial-preferences.js.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +0 -56
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +0 -104
- package/dist/cli-tui/tui-renderer/input-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/interrupt-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/interrupt-setup.js +0 -18
- package/dist/cli-tui/tui-renderer/interrupt-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/loader-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/loader-setup.js +0 -13
- package/dist/cli-tui/tui-renderer/loader-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts +0 -55
- package/dist/cli-tui/tui-renderer/mcp-events-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js +0 -143
- package/dist/cli-tui/tui-renderer/mcp-events-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts +0 -59
- package/dist/cli-tui/tui-renderer/misc-handlers.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/misc-handlers.js +0 -143
- package/dist/cli-tui/tui-renderer/misc-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts +0 -14
- package/dist/cli-tui/tui-renderer/oauth-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/oauth-setup.js +0 -26
- package/dist/cli-tui/tui-renderer/oauth-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts +0 -19
- package/dist/cli-tui/tui-renderer/plan-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/plan-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/plan-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts +0 -21
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js +0 -64
- package/dist/cli-tui/tui-renderer/prompt-template-slash-commands.js.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts +0 -18
- package/dist/cli-tui/tui-renderer/queue-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/queue-setup.js +0 -42
- package/dist/cli-tui/tui-renderer/queue-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts +0 -53
- package/dist/cli-tui/tui-renderer/quick-settings-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js +0 -100
- package/dist/cli-tui/tui-renderer/quick-settings-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.d.ts +0 -31
- package/dist/cli-tui/tui-renderer/session-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-setup.js +0 -45
- package/dist/cli-tui/tui-renderer/session-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts +0 -66
- package/dist/cli-tui/tui-renderer/session-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/session-state-controller.js +0 -139
- package/dist/cli-tui/tui-renderer/session-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts +0 -73
- package/dist/cli-tui/tui-renderer/skills-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/skills-controller.js +0 -455
- package/dist/cli-tui/tui-renderer/skills-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts +0 -90
- package/dist/cli-tui/tui-renderer/slash-hint-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js +0 -131
- package/dist/cli-tui/tui-renderer/slash-hint-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/tool-retry-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js +0 -5
- package/dist/cli-tui/tui-renderer/tool-retry-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts +0 -38
- package/dist/cli-tui/tui-renderer/tooling-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js +0 -48
- package/dist/cli-tui/tui-renderer/tooling-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +0 -70
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +0 -184
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts +0 -13
- package/dist/cli-tui/tui-renderer/ui-state-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/ui-state-setup.js +0 -11
- package/dist/cli-tui/tui-renderer/ui-state-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts +0 -26
- package/dist/cli-tui/tui-renderer/utility-views-setup.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/utility-views-setup.js +0 -23
- package/dist/cli-tui/tui-renderer/utility-views-setup.js.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts +0 -33
- package/dist/cli-tui/tui-renderer/viewport-controller.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/viewport-controller.js +0 -98
- package/dist/cli-tui/tui-renderer/viewport-controller.js.map +0 -1
- package/dist/cli-tui/tui-renderer.d.ts +0 -268
- package/dist/cli-tui/tui-renderer.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer.js +0 -2131
- package/dist/cli-tui/tui-renderer.js.map +0 -1
- package/dist/cli-tui/ui-state.d.ts.map +0 -1
- package/dist/cli-tui/ui-state.js.map +0 -1
- package/dist/cli-tui/update-view.d.ts +0 -16
- package/dist/cli-tui/update-view.d.ts.map +0 -1
- package/dist/cli-tui/update-view.js +0 -45
- package/dist/cli-tui/update-view.js.map +0 -1
- package/dist/cli-tui/user-message.d.ts +0 -17
- package/dist/cli-tui/user-message.d.ts.map +0 -1
- package/dist/cli-tui/user-message.js +0 -83
- package/dist/cli-tui/user-message.js.map +0 -1
- package/dist/cli-tui/utils/borders.d.ts +0 -131
- package/dist/cli-tui/utils/borders.d.ts.map +0 -1
- package/dist/cli-tui/utils/borders.js +0 -254
- package/dist/cli-tui/utils/borders.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts +0 -22
- package/dist/cli-tui/utils/commands/command-palette-view.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette-view.js +0 -31
- package/dist/cli-tui/utils/commands/command-palette-view.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.d.ts +0 -29
- package/dist/cli-tui/utils/commands/command-palette.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-palette.js +0 -213
- package/dist/cli-tui/utils/commands/command-palette.js.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts +0 -8
- package/dist/cli-tui/utils/commands/command-registry-builder.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/command-registry-builder.js +0 -9
- package/dist/cli-tui/utils/commands/command-registry-builder.js.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.d.ts +0 -10
- package/dist/cli-tui/utils/commands/review-prompt.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/review-prompt.js +0 -90
- package/dist/cli-tui/utils/commands/review-prompt.js.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts +0 -15
- package/dist/cli-tui/utils/commands/slash-hint-bar.d.ts.map +0 -1
- package/dist/cli-tui/utils/commands/slash-hint-bar.js +0 -106
- package/dist/cli-tui/utils/commands/slash-hint-bar.js.map +0 -1
- package/dist/cli-tui/utils/env-detect.d.ts +0 -11
- package/dist/cli-tui/utils/env-detect.d.ts.map +0 -1
- package/dist/cli-tui/utils/env-detect.js +0 -107
- package/dist/cli-tui/utils/env-detect.js.map +0 -1
- package/dist/cli-tui/utils/external-editor.d.ts +0 -7
- package/dist/cli-tui/utils/external-editor.d.ts.map +0 -1
- package/dist/cli-tui/utils/external-editor.js +0 -53
- package/dist/cli-tui/utils/external-editor.js.map +0 -1
- package/dist/cli-tui/utils/footer-utils.d.ts +0 -169
- package/dist/cli-tui/utils/footer-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-utils.js +0 -716
- package/dist/cli-tui/utils/footer-utils.js.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts +0 -38
- package/dist/cli-tui/utils/footer-visual-widgets.d.ts.map +0 -1
- package/dist/cli-tui/utils/footer-visual-widgets.js +0 -141
- package/dist/cli-tui/utils/footer-visual-widgets.js.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.d.ts +0 -38
- package/dist/cli-tui/utils/git-branch-tracker.d.ts.map +0 -1
- package/dist/cli-tui/utils/git-branch-tracker.js +0 -90
- package/dist/cli-tui/utils/git-branch-tracker.js.map +0 -1
- package/dist/cli-tui/utils/glyphs.d.ts +0 -207
- package/dist/cli-tui/utils/glyphs.d.ts.map +0 -1
- package/dist/cli-tui/utils/glyphs.js +0 -249
- package/dist/cli-tui/utils/glyphs.js.map +0 -1
- package/dist/cli-tui/utils/layout.d.ts +0 -77
- package/dist/cli-tui/utils/layout.d.ts.map +0 -1
- package/dist/cli-tui/utils/layout.js +0 -83
- package/dist/cli-tui/utils/layout.js.map +0 -1
- package/dist/cli-tui/utils/links.d.ts +0 -2
- package/dist/cli-tui/utils/links.d.ts.map +0 -1
- package/dist/cli-tui/utils/links.js +0 -14
- package/dist/cli-tui/utils/links.js.map +0 -1
- package/dist/cli-tui/utils/motion.d.ts +0 -4
- package/dist/cli-tui/utils/motion.d.ts.map +0 -1
- package/dist/cli-tui/utils/motion.js +0 -28
- package/dist/cli-tui/utils/motion.js.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +0 -26
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +0 -1
- package/dist/cli-tui/utils/runtime-badges.js +0 -178
- package/dist/cli-tui/utils/runtime-badges.js.map +0 -1
- package/dist/cli-tui/utils/shimmer.d.ts +0 -12
- package/dist/cli-tui/utils/shimmer.d.ts.map +0 -1
- package/dist/cli-tui/utils/shimmer.js +0 -57
- package/dist/cli-tui/utils/shimmer.js.map +0 -1
- package/dist/cli-tui/utils/stage-labels.d.ts +0 -9
- package/dist/cli-tui/utils/stage-labels.d.ts.map +0 -1
- package/dist/cli-tui/utils/stage-labels.js +0 -65
- package/dist/cli-tui/utils/stage-labels.js.map +0 -1
- package/dist/cli-tui/utils/text-formatting.d.ts +0 -13
- package/dist/cli-tui/utils/text-formatting.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-formatting.js +0 -109
- package/dist/cli-tui/utils/text-formatting.js.map +0 -1
- package/dist/cli-tui/utils/text-preview.d.ts +0 -10
- package/dist/cli-tui/utils/text-preview.d.ts.map +0 -1
- package/dist/cli-tui/utils/text-preview.js +0 -26
- package/dist/cli-tui/utils/text-preview.js.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.d.ts +0 -42
- package/dist/cli-tui/utils/tool-text-utils.d.ts.map +0 -1
- package/dist/cli-tui/utils/tool-text-utils.js +0 -361
- package/dist/cli-tui/utils/tool-text-utils.js.map +0 -1
- package/dist/cli-tui/welcome-animation.d.ts +0 -24
- package/dist/cli-tui/welcome-animation.d.ts.map +0 -1
- package/dist/cli-tui/welcome-animation.js +0 -99
- package/dist/cli-tui/welcome-animation.js.map +0 -1
- package/dist/cli-tui/welcome-colors.d.ts +0 -3
- package/dist/cli-tui/welcome-colors.d.ts.map +0 -1
- package/dist/cli-tui/welcome-colors.js +0 -39
- package/dist/cli-tui/welcome-colors.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts +0 -304
- package/dist/node_modules/@evalops/tui/dist/autocomplete.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js +0 -712
- package/dist/node_modules/@evalops/tui/dist/autocomplete.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts +0 -185
- package/dist/node_modules/@evalops/tui/dist/components/editor.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/editor.js +0 -1460
- package/dist/node_modules/@evalops/tui/dist/components/editor.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts +0 -117
- package/dist/node_modules/@evalops/tui/dist/components/input.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/input.js +0 -391
- package/dist/node_modules/@evalops/tui/dist/components/input.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts +0 -256
- package/dist/node_modules/@evalops/tui/dist/components/layout.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/layout.js +0 -478
- package/dist/node_modules/@evalops/tui/dist/components/layout.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts +0 -199
- package/dist/node_modules/@evalops/tui/dist/components/loader.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/loader.js +0 -374
- package/dist/node_modules/@evalops/tui/dist/components/loader.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts +0 -65
- package/dist/node_modules/@evalops/tui/dist/components/markdown.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js +0 -562
- package/dist/node_modules/@evalops/tui/dist/components/markdown.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts +0 -262
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js +0 -575
- package/dist/node_modules/@evalops/tui/dist/components/scroll-container.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts +0 -131
- package/dist/node_modules/@evalops/tui/dist/components/select-list.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js +0 -257
- package/dist/node_modules/@evalops/tui/dist/components/select-list.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts +0 -11
- package/dist/node_modules/@evalops/tui/dist/components/spacer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js +0 -19
- package/dist/node_modules/@evalops/tui/dist/components/spacer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts +0 -22
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/components/status-bar.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts +0 -26
- package/dist/node_modules/@evalops/tui/dist/components/text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/text.js +0 -181
- package/dist/node_modules/@evalops/tui/dist/components/text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts +0 -15
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js +0 -84
- package/dist/node_modules/@evalops/tui/dist/components/truncated-text.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.d.ts +0 -87
- package/dist/node_modules/@evalops/tui/dist/index.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/index.js +0 -85
- package/dist/node_modules/@evalops/tui/dist/index.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts +0 -189
- package/dist/node_modules/@evalops/tui/dist/keymap.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/keymap.js +0 -363
- package/dist/node_modules/@evalops/tui/dist/keymap.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts +0 -25
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js +0 -828
- package/dist/node_modules/@evalops/tui/dist/mermaid-renderer.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts +0 -40
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js +0 -474
- package/dist/node_modules/@evalops/tui/dist/style/code-highlighter.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts +0 -201
- package/dist/node_modules/@evalops/tui/dist/terminal.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/terminal.js +0 -241
- package/dist/node_modules/@evalops/tui/dist/terminal.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts +0 -263
- package/dist/node_modules/@evalops/tui/dist/tui.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/tui.js +0 -694
- package/dist/node_modules/@evalops/tui/dist/tui.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts +0 -14
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js +0 -44
- package/dist/node_modules/@evalops/tui/dist/utils/terminal-features.js.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts +0 -32
- package/dist/node_modules/@evalops/tui/dist/utils.d.ts.map +0 -1
- package/dist/node_modules/@evalops/tui/dist/utils.js +0 -556
- package/dist/node_modules/@evalops/tui/dist/utils.js.map +0 -1
- package/dist/node_modules/@evalops/tui/package.json +0 -58
- package/dist/skills/artifact-metadata.d.ts.map +0 -1
- package/dist/skills/artifact-metadata.js.map +0 -1
- package/dist/skills/composer-diagnostics.d.ts +0 -69
- package/dist/skills/composer-diagnostics.d.ts.map +0 -1
- package/dist/skills/composer-diagnostics.js +0 -78
- package/dist/skills/composer-diagnostics.js.map +0 -1
- package/dist/skills/composer.d.ts +0 -19
- package/dist/skills/composer.d.ts.map +0 -1
- package/dist/skills/composer.js +0 -64
- package/dist/skills/composer.js.map +0 -1
- package/dist/skills/eval-harness.d.ts +0 -38
- package/dist/skills/eval-harness.d.ts.map +0 -1
- package/dist/skills/eval-harness.js +0 -112
- package/dist/skills/eval-harness.js.map +0 -1
- package/dist/skills/index.d.ts +0 -41
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -41
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/learned-guidelines.d.ts +0 -33
- package/dist/skills/learned-guidelines.d.ts.map +0 -1
- package/dist/skills/learned-guidelines.js +0 -291
- package/dist/skills/learned-guidelines.js.map +0 -1
- package/dist/skills/linter.d.ts +0 -36
- package/dist/skills/linter.d.ts.map +0 -1
- package/dist/skills/linter.js +0 -397
- package/dist/skills/linter.js.map +0 -1
- package/dist/skills/loader.d.ts +0 -252
- package/dist/skills/loader.d.ts.map +0 -1
- package/dist/skills/loader.js +0 -957
- package/dist/skills/loader.js.map +0 -1
- package/dist/skills/package-contract.d.ts +0 -45
- package/dist/skills/package-contract.d.ts.map +0 -1
- package/dist/skills/package-contract.js +0 -153
- package/dist/skills/package-contract.js.map +0 -1
- package/dist/skills/runtime-activation.d.ts +0 -69
- package/dist/skills/runtime-activation.d.ts.map +0 -1
- package/dist/skills/runtime-activation.js +0 -227
- package/dist/skills/runtime-activation.js.map +0 -1
- package/dist/skills/scaffold-from-template.d.ts +0 -58
- package/dist/skills/scaffold-from-template.d.ts.map +0 -1
- package/dist/skills/scaffold-from-template.js +0 -72
- package/dist/skills/scaffold-from-template.js.map +0 -1
- package/dist/skills/scaffolder.d.ts +0 -65
- package/dist/skills/scaffolder.d.ts.map +0 -1
- package/dist/skills/scaffolder.js +0 -167
- package/dist/skills/scaffolder.js.map +0 -1
- package/dist/skills/service-client.d.ts +0 -56
- package/dist/skills/service-client.d.ts.map +0 -1
- package/dist/skills/service-client.js +0 -266
- package/dist/skills/service-client.js.map +0 -1
- package/dist/skills/skill-templates.d.ts +0 -70
- package/dist/skills/skill-templates.d.ts.map +0 -1
- package/dist/skills/skill-templates.js +0 -154
- package/dist/skills/skill-templates.js.map +0 -1
- package/dist/skills/tool.d.ts +0 -21
- package/dist/skills/tool.d.ts.map +0 -1
- package/dist/skills/tool.js +0 -339
- package/dist/skills/tool.js.map +0 -1
- package/dist/skills/trust-cache.d.ts +0 -65
- package/dist/skills/trust-cache.d.ts.map +0 -1
- package/dist/skills/trust-cache.js +0 -146
- package/dist/skills/trust-cache.js.map +0 -1
- package/dist/skills/types.d.ts +0 -91
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -8
- package/dist/skills/types.js.map +0 -1
- /package/dist/{cli-tui → runtime}/prompt-queue.d.ts +0 -0
- /package/dist/{cli-tui → runtime}/prompt-queue.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-retry-controller.js","sourceRoot":"","sources":["../../../src/cli-tui/tool-retry/tool-retry-controller.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAUvD,MAAM,OAAO,mBAAmB;IAM/B,YAA6B,OAAmC;QAAnC,YAAO,GAAP,OAAO,CAA4B;QALxD,UAAK,GAAuB,EAAE,CAAC;QAC/B,WAAM,GAA4B,IAAI,CAAC;QACvC,UAAK,GAA0B,IAAI,CAAC;QACpC,mBAAc,GAAG,KAAK,CAAC;I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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\tToolRetryDecision,\n\tToolRetryRequest,\n\tToolRetryService,\n} from \"../../agent/tool-retry.js\";\nimport type { CustomEditor } from \"../custom-editor.js\";\nimport type { NotificationView } from \"../notification-view.js\";\nimport { ToolRetryModal } from \"./tool-retry-modal.js\";\n\ninterface ToolRetryControllerOptions {\n\ttoolRetryService: ToolRetryService;\n\tui: TUI;\n\teditor: CustomEditor;\n\teditorContainer: Container;\n\tnotificationView: NotificationView;\n}\n\nexport class ToolRetryController {\n\tprivate queue: ToolRetryRequest[] = [];\n\tprivate active: ToolRetryRequest | null = null;\n\tprivate modal: ToolRetryModal | null = null;\n\tprivate processingNext = false;\n\n\tconstructor(private readonly options: ToolRetryControllerOptions) {}\n\n\tenqueue(request: ToolRetryRequest): 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(request: ToolRetryRequest, decision: ToolRetryDecision): 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\" =\n\t\t\tdecision.action === \"retry\" ? \"success\" : \"warn\";\n\t\tconst message =\n\t\t\tdecision.action === \"retry\"\n\t\t\t\t? \"Retrying tool\"\n\t\t\t\t: decision.action === \"abort\"\n\t\t\t\t\t? \"Aborted run\"\n\t\t\t\t\t: \"Skipped tool retry\";\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 ToolRetryModal({\n\t\t\trequest: next,\n\t\t\tqueueSize: this.queue.length,\n\t\t\tonRetry: () => this.handleRetry(),\n\t\t\tonSkip: () => this.handleSkip(),\n\t\t\tonAbort: () => this.handleAbort(),\n\t\t\tonCancel: () => this.handleSkip(),\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 handleRetry(): void {\n\t\tif (!this.active) return;\n\t\tconst updated = this.options.toolRetryService.retry(\n\t\t\tthis.active.id,\n\t\t\t\"Retrying in TUI\",\n\t\t);\n\t\tif (!updated) {\n\t\t\tthis.options.notificationView.showError(\n\t\t\t\t\"Unable to retry – request already resolved.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate handleSkip(): void {\n\t\tif (!this.active) return;\n\t\tconst updated = this.options.toolRetryService.skip(\n\t\t\tthis.active.id,\n\t\t\t\"Skipped in TUI\",\n\t\t);\n\t\tif (!updated) {\n\t\t\tthis.options.notificationView.showError(\n\t\t\t\t\"Unable to skip – request already resolved.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate handleAbort(): void {\n\t\tif (!this.active) return;\n\t\tconst updated = this.options.toolRetryService.abort(\n\t\t\tthis.active.id,\n\t\t\t\"Aborted in TUI\",\n\t\t);\n\t\tif (!updated) {\n\t\t\tthis.options.notificationView.showError(\n\t\t\t\t\"Unable to abort – 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,27 +0,0 @@
|
|
|
1
|
-
import type { Component } from "@evalops/tui";
|
|
2
|
-
import type { ToolRetryRequest } from "../../agent/tool-retry.js";
|
|
3
|
-
interface ToolRetryModalOptions {
|
|
4
|
-
request: ToolRetryRequest;
|
|
5
|
-
queueSize: number;
|
|
6
|
-
onRetry: () => void;
|
|
7
|
-
onSkip: () => void;
|
|
8
|
-
onAbort: () => void;
|
|
9
|
-
onCancel: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare class ToolRetryModal implements Component {
|
|
12
|
-
private readonly options;
|
|
13
|
-
private queueSize;
|
|
14
|
-
constructor(options: ToolRetryModalOptions);
|
|
15
|
-
setQueueSize(size: number): void;
|
|
16
|
-
private static readonly BORDER_COLOR;
|
|
17
|
-
private static readonly BORDER_STYLE;
|
|
18
|
-
render(width: number): string[];
|
|
19
|
-
handleInput(data: string): void;
|
|
20
|
-
private describeError;
|
|
21
|
-
private describeTool;
|
|
22
|
-
private extractCommand;
|
|
23
|
-
private formatCommand;
|
|
24
|
-
private describeQueue;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=tool-retry-modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-retry-modal.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tool-retry/tool-retry-modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAUlE,UAAU,qBAAqB;IAC9B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qBAAa,cAAe,YAAW,SAAS;IAGnC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,SAAS,CAAS;gBAEG,OAAO,EAAE,qBAAqB;IAI3D,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;IAqD/B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAkB/B,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,aAAa;CAOrB"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import { getBorderChars } from "../utils/borders.js";
|
|
3
|
-
import { centerText, padLine, sanitizeAnsi, truncateText, wrapTextBlock, } from "../utils/text-formatting.js";
|
|
4
|
-
export class ToolRetryModal {
|
|
5
|
-
constructor(options) {
|
|
6
|
-
this.options = options;
|
|
7
|
-
this.queueSize = options.queueSize;
|
|
8
|
-
}
|
|
9
|
-
setQueueSize(size) {
|
|
10
|
-
this.queueSize = size;
|
|
11
|
-
}
|
|
12
|
-
static { this.BORDER_COLOR = "#f87171"; }
|
|
13
|
-
static { this.BORDER_STYLE = "double"; }
|
|
14
|
-
render(width) {
|
|
15
|
-
const borderColor = ToolRetryModal.BORDER_COLOR;
|
|
16
|
-
const chars = getBorderChars(ToolRetryModal.BORDER_STYLE);
|
|
17
|
-
const innerWidth = Math.max(1, width - 4);
|
|
18
|
-
const lines = [];
|
|
19
|
-
const borderV = chalk.hex(borderColor)(chars.vertical);
|
|
20
|
-
const pushRow = (content) => {
|
|
21
|
-
const safeContent = truncateText(content, innerWidth);
|
|
22
|
-
const padded = padLine(safeContent, innerWidth);
|
|
23
|
-
lines.push(`${borderV} ${padded} ${borderV}`);
|
|
24
|
-
};
|
|
25
|
-
const pushSpacer = () => {
|
|
26
|
-
pushRow(" ".repeat(innerWidth));
|
|
27
|
-
};
|
|
28
|
-
const pushSection = (title, content) => {
|
|
29
|
-
pushRow(chalk.hex("#fecaca").bold(title));
|
|
30
|
-
for (const line of content) {
|
|
31
|
-
pushRow(line);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const topLine = `${chars.topLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.topRight}`;
|
|
35
|
-
lines.push(chalk.hex(borderColor)(topLine));
|
|
36
|
-
const title = centerText("TOOL RETRY", innerWidth);
|
|
37
|
-
pushRow(chalk.hex("#fee2e2").bold(title));
|
|
38
|
-
const sepLine = `${chars.leftT}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.rightT}`;
|
|
39
|
-
lines.push(chalk.hex(borderColor)(sepLine));
|
|
40
|
-
pushSection("Error", this.describeError(innerWidth));
|
|
41
|
-
pushSpacer();
|
|
42
|
-
pushSection("Tool", this.describeTool(innerWidth));
|
|
43
|
-
pushSpacer();
|
|
44
|
-
pushSection("Command", this.formatCommand(innerWidth));
|
|
45
|
-
pushSpacer();
|
|
46
|
-
pushSection("Queue Status", [this.describeQueue()]);
|
|
47
|
-
lines.push(chalk.hex(borderColor)(sepLine));
|
|
48
|
-
const footer = centerText("[r] retry [s] skip [a] abort [esc] cancel", innerWidth);
|
|
49
|
-
pushRow(chalk.dim(footer));
|
|
50
|
-
const bottomLine = `${chars.bottomLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.bottomRight}`;
|
|
51
|
-
lines.push(chalk.hex(borderColor)(bottomLine));
|
|
52
|
-
return lines;
|
|
53
|
-
}
|
|
54
|
-
handleInput(data) {
|
|
55
|
-
if (data === "r" || data === "R") {
|
|
56
|
-
this.options.onRetry();
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (data === "s" || data === "S") {
|
|
60
|
-
this.options.onSkip();
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (data === "a" || data === "A") {
|
|
64
|
-
this.options.onAbort();
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (data === "\x1b") {
|
|
68
|
-
this.options.onCancel();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
describeError(width) {
|
|
72
|
-
const errorMessage = this.options.request.errorMessage.trim().length > 0
|
|
73
|
-
? this.options.request.errorMessage
|
|
74
|
-
: "(no error message)";
|
|
75
|
-
return wrapTextBlock(errorMessage, width);
|
|
76
|
-
}
|
|
77
|
-
describeTool(width) {
|
|
78
|
-
const entries = [];
|
|
79
|
-
entries.push(`${chalk.hex("#fecdd3")("Name:")} ${chalk.hex("#fca5a5").bold(this.options.request.toolName)}`);
|
|
80
|
-
const attemptLabel = this.options.request.maxAttempts
|
|
81
|
-
? `${this.options.request.attempt} / ${this.options.request.maxAttempts}`
|
|
82
|
-
: `${this.options.request.attempt}`;
|
|
83
|
-
entries.push(`${chalk.hex("#fecdd3")("Attempt:")} ${chalk.hex("#fee2e2")(attemptLabel)}`);
|
|
84
|
-
return wrapTextBlock(entries.join("\n"), width);
|
|
85
|
-
}
|
|
86
|
-
extractCommand() {
|
|
87
|
-
const args = this.options.request.args;
|
|
88
|
-
const cmd = args &&
|
|
89
|
-
typeof args === "object" &&
|
|
90
|
-
"command" in args &&
|
|
91
|
-
typeof args.command === "string"
|
|
92
|
-
? args.command
|
|
93
|
-
: null;
|
|
94
|
-
if (typeof cmd !== "string" || cmd.trim().length === 0) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
const scrubbed = cmd.replace(/[^\x20-\x7e\r\n]/g, "");
|
|
98
|
-
return scrubbed.trim().split(/\r?\n/).slice(0, 6);
|
|
99
|
-
}
|
|
100
|
-
formatCommand(width) {
|
|
101
|
-
const command = this.extractCommand();
|
|
102
|
-
if (!command) {
|
|
103
|
-
return [chalk.dim("(no literal command provided)")];
|
|
104
|
-
}
|
|
105
|
-
const sanitized = command
|
|
106
|
-
.map((line) => ` ${sanitizeAnsi(line)}`)
|
|
107
|
-
.join("\n");
|
|
108
|
-
return wrapTextBlock(sanitized, width);
|
|
109
|
-
}
|
|
110
|
-
describeQueue() {
|
|
111
|
-
if (this.queueSize > 0) {
|
|
112
|
-
const noun = this.queueSize === 1 ? "request" : "requests";
|
|
113
|
-
return chalk.dim(`${this.queueSize} more ${noun} awaiting retry`);
|
|
114
|
-
}
|
|
115
|
-
return chalk.dim("No other pending retry requests");
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=tool-retry-modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-retry-modal.js","sourceRoot":"","sources":["../../../src/cli-tui/tool-retry/tool-retry-modal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAoB,cAAc,EA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C;IACrD,CAAC","sourcesContent":["import type { Component } from \"@evalops/tui\";\nimport chalk from \"chalk\";\nimport type { ToolRetryRequest } from \"../../agent/tool-retry.js\";\nimport { type BorderStyle, getBorderChars } from \"../utils/borders.js\";\nimport {\n\tcenterText,\n\tpadLine,\n\tsanitizeAnsi,\n\ttruncateText,\n\twrapTextBlock,\n} from \"../utils/text-formatting.js\";\n\ninterface ToolRetryModalOptions {\n\trequest: ToolRetryRequest;\n\tqueueSize: number;\n\tonRetry: () => void;\n\tonSkip: () => void;\n\tonAbort: () => void;\n\tonCancel: () => void;\n}\n\nexport class ToolRetryModal implements Component {\n\tprivate queueSize: number;\n\n\tconstructor(private readonly options: ToolRetryModalOptions) {\n\t\tthis.queueSize = options.queueSize;\n\t}\n\n\tsetQueueSize(size: number): void {\n\t\tthis.queueSize = size;\n\t}\n\n\tprivate static readonly BORDER_COLOR = \"#f87171\";\n\tprivate static readonly BORDER_STYLE: BorderStyle = \"double\";\n\n\trender(width: number): string[] {\n\t\tconst borderColor = ToolRetryModal.BORDER_COLOR;\n\t\tconst chars = getBorderChars(ToolRetryModal.BORDER_STYLE);\n\t\tconst innerWidth = Math.max(1, width - 4);\n\t\tconst lines: string[] = [];\n\t\tconst borderV = chalk.hex(borderColor)(chars.vertical);\n\n\t\tconst pushRow = (content: string): void => {\n\t\t\tconst safeContent = truncateText(content, innerWidth);\n\t\t\tconst padded = padLine(safeContent, innerWidth);\n\t\t\tlines.push(`${borderV} ${padded} ${borderV}`);\n\t\t};\n\t\tconst pushSpacer = (): void => {\n\t\t\tpushRow(\" \".repeat(innerWidth));\n\t\t};\n\t\tconst pushSection = (title: string, content: string[]): void => {\n\t\t\tpushRow(chalk.hex(\"#fecaca\").bold(title));\n\t\t\tfor (const line of content) {\n\t\t\t\tpushRow(line);\n\t\t\t}\n\t\t};\n\n\t\tconst topLine = `${chars.topLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.topRight}`;\n\t\tlines.push(chalk.hex(borderColor)(topLine));\n\n\t\tconst title = centerText(\"TOOL RETRY\", innerWidth);\n\t\tpushRow(chalk.hex(\"#fee2e2\").bold(title));\n\n\t\tconst sepLine = `${chars.leftT}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.rightT}`;\n\t\tlines.push(chalk.hex(borderColor)(sepLine));\n\n\t\tpushSection(\"Error\", this.describeError(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Tool\", this.describeTool(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Command\", this.formatCommand(innerWidth));\n\t\tpushSpacer();\n\t\tpushSection(\"Queue Status\", [this.describeQueue()]);\n\n\t\tlines.push(chalk.hex(borderColor)(sepLine));\n\n\t\tconst footer = centerText(\n\t\t\t\"[r] retry [s] skip [a] abort [esc] cancel\",\n\t\t\tinnerWidth,\n\t\t);\n\t\tpushRow(chalk.dim(footer));\n\n\t\tconst bottomLine = `${chars.bottomLeft}${chars.horizontal.repeat(Math.max(0, width - 2))}${chars.bottomRight}`;\n\t\tlines.push(chalk.hex(borderColor)(bottomLine));\n\n\t\treturn lines;\n\t}\n\n\thandleInput(data: string): void {\n\t\tif (data === \"r\" || data === \"R\") {\n\t\t\tthis.options.onRetry();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"s\" || data === \"S\") {\n\t\t\tthis.options.onSkip();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"a\" || data === \"A\") {\n\t\t\tthis.options.onAbort();\n\t\t\treturn;\n\t\t}\n\t\tif (data === \"\\x1b\") {\n\t\t\tthis.options.onCancel();\n\t\t}\n\t}\n\n\tprivate describeError(width: number): string[] {\n\t\tconst errorMessage =\n\t\t\tthis.options.request.errorMessage.trim().length > 0\n\t\t\t\t? this.options.request.errorMessage\n\t\t\t\t: \"(no error message)\";\n\t\treturn wrapTextBlock(errorMessage, width);\n\t}\n\n\tprivate describeTool(width: number): string[] {\n\t\tconst entries: string[] = [];\n\t\tentries.push(\n\t\t\t`${chalk.hex(\"#fecdd3\")(\"Name:\")} ${chalk.hex(\"#fca5a5\").bold(this.options.request.toolName)}`,\n\t\t);\n\t\tconst attemptLabel = this.options.request.maxAttempts\n\t\t\t? `${this.options.request.attempt} / ${this.options.request.maxAttempts}`\n\t\t\t: `${this.options.request.attempt}`;\n\t\tentries.push(\n\t\t\t`${chalk.hex(\"#fecdd3\")(\"Attempt:\")} ${chalk.hex(\"#fee2e2\")(attemptLabel)}`,\n\t\t);\n\t\treturn wrapTextBlock(entries.join(\"\\n\"), width);\n\t}\n\n\tprivate extractCommand(): string[] | null {\n\t\tconst args = this.options.request.args;\n\t\tconst cmd =\n\t\t\targs &&\n\t\t\ttypeof args === \"object\" &&\n\t\t\t\"command\" in args &&\n\t\t\ttypeof (args as { command?: unknown }).command === \"string\"\n\t\t\t\t? (args as { command: string }).command\n\t\t\t\t: null;\n\t\tif (typeof cmd !== \"string\" || cmd.trim().length === 0) {\n\t\t\treturn null;\n\t\t}\n\t\tconst scrubbed = cmd.replace(/[^\\x20-\\x7e\\r\\n]/g, \"\");\n\t\treturn scrubbed.trim().split(/\\r?\\n/).slice(0, 6);\n\t}\n\n\tprivate formatCommand(width: number): string[] {\n\t\tconst command = this.extractCommand();\n\t\tif (!command) {\n\t\t\treturn [chalk.dim(\"(no literal command provided)\")];\n\t\t}\n\t\tconst sanitized = command\n\t\t\t.map((line) => ` ${sanitizeAnsi(line)}`)\n\t\t\t.join(\"\\n\");\n\t\treturn wrapTextBlock(sanitized, width);\n\t}\n\n\tprivate describeQueue(): string {\n\t\tif (this.queueSize > 0) {\n\t\t\tconst noun = this.queueSize === 1 ? \"request\" : \"requests\";\n\t\t\treturn chalk.dim(`${this.queueSize} more ${noun} awaiting retry`);\n\t\t}\n\t\treturn chalk.dim(\"No other pending retry requests\");\n\t}\n}\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type Container, type TUI } from "@evalops/tui";
|
|
2
|
-
import type { AgentState } from "../agent/types.js";
|
|
3
|
-
export declare const TOOL_FAILURE_LOG_PATH: string;
|
|
4
|
-
interface ToolStatusViewOptions {
|
|
5
|
-
chatContainer: Container;
|
|
6
|
-
ui: TUI;
|
|
7
|
-
getTools: () => AgentState["tools"] | undefined;
|
|
8
|
-
showInfoMessage: (message: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function readToolFailureData(limit?: number): {
|
|
11
|
-
recent: Array<{
|
|
12
|
-
tool: string;
|
|
13
|
-
error: string;
|
|
14
|
-
timestamp: string;
|
|
15
|
-
}>;
|
|
16
|
-
counts: Map<string, number>;
|
|
17
|
-
};
|
|
18
|
-
export declare class ToolStatusView {
|
|
19
|
-
private readonly options;
|
|
20
|
-
constructor(options: ToolStatusViewOptions);
|
|
21
|
-
handleToolsCommand(commandText?: string): void;
|
|
22
|
-
getToolFailureData(limit?: number): {
|
|
23
|
-
recent: Array<{
|
|
24
|
-
tool: string;
|
|
25
|
-
error: string;
|
|
26
|
-
timestamp: string;
|
|
27
|
-
}>;
|
|
28
|
-
counts: Map<string, number>;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=tool-status-view.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-status-view.d.ts","sourceRoot":"","sources":["../../src/cli-tui/tool-status-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,KAAK,GAAG,EAAQ,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAWpD,eAAO,MAAM,qBAAqB,QAAyB,CAAC;AAE5D,UAAU,qBAAqB;IAC9B,aAAa,EAAE,SAAS,CAAC;IACzB,EAAE,EAAE,GAAG,CAAC;IACR,QAAQ,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAChD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAI,GAAG;IAC/C,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAmCA;AAED,qBAAa,cAAc;IACd,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,qBAAqB;IAE3D,kBAAkB,CAAC,WAAW,SAAW,GAAG,IAAI;IAkDhD,kBAAkB,CAAC,KAAK,SAAI,GAAG;QAC9B,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAClE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC5B;CAGD"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
-
import { Spacer, Text } from "@evalops/tui";
|
|
3
|
-
import { PATHS } from "../config/constants.js";
|
|
4
|
-
import { badge, heading, muted, separator as themedSeparator, } from "../style/theme.js";
|
|
5
|
-
import { writeTextFileAtomic } from "../utils/fs.js";
|
|
6
|
-
export const TOOL_FAILURE_LOG_PATH = PATHS.TOOL_FAILURE_LOG;
|
|
7
|
-
export function readToolFailureData(limit = 5) {
|
|
8
|
-
const result = {
|
|
9
|
-
recent: [],
|
|
10
|
-
counts: new Map(),
|
|
11
|
-
};
|
|
12
|
-
try {
|
|
13
|
-
if (!existsSync(TOOL_FAILURE_LOG_PATH)) {
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
const raw = readFileSync(TOOL_FAILURE_LOG_PATH, "utf-8");
|
|
17
|
-
const lines = raw.split("\n").filter(Boolean).reverse();
|
|
18
|
-
for (const line of lines.slice(0, limit)) {
|
|
19
|
-
const parsed = JSON.parse(line);
|
|
20
|
-
if (parsed.tool) {
|
|
21
|
-
result.counts.set(parsed.tool, (result.counts.get(parsed.tool) ?? 0) + 1);
|
|
22
|
-
}
|
|
23
|
-
result.recent.push({
|
|
24
|
-
tool: parsed.tool ?? "unknown",
|
|
25
|
-
error: parsed.error ?? "unknown error",
|
|
26
|
-
timestamp: parsed.timestamp
|
|
27
|
-
? new Date(parsed.timestamp).toLocaleString()
|
|
28
|
-
: "unknown time",
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
catch {
|
|
33
|
-
// ignore log parse issues
|
|
34
|
-
}
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
export class ToolStatusView {
|
|
38
|
-
constructor(options) {
|
|
39
|
-
this.options = options;
|
|
40
|
-
}
|
|
41
|
-
handleToolsCommand(commandText = "/tools") {
|
|
42
|
-
const parts = commandText.trim().split(/\s+/);
|
|
43
|
-
if (parts.length > 1 && parts[1] === "clear") {
|
|
44
|
-
if (!existsSync(TOOL_FAILURE_LOG_PATH)) {
|
|
45
|
-
this.options.showInfoMessage("No tool failure log found to clear.");
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
try {
|
|
49
|
-
writeTextFileAtomic(TOOL_FAILURE_LOG_PATH, "");
|
|
50
|
-
this.options.showInfoMessage("Cleared tool failure log.");
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
const message = error instanceof Error ? error.message : String(error ?? "unknown");
|
|
54
|
-
this.options.showInfoMessage(`Failed to clear log: ${message}`);
|
|
55
|
-
}
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const tools = this.options.getTools() ?? [];
|
|
59
|
-
const { recent, counts } = this.getToolFailureData();
|
|
60
|
-
const toolLines = tools.length
|
|
61
|
-
? tools.map((tool) => {
|
|
62
|
-
const label = badge(tool.label ?? tool.name, undefined, "info");
|
|
63
|
-
const description = tool.description || "No description provided";
|
|
64
|
-
const failureCount = counts.get(tool.name) ?? 0;
|
|
65
|
-
const failureBadge = failureCount > 0
|
|
66
|
-
? ` ${badge("failures", failureCount.toString(), "danger")}`
|
|
67
|
-
: "";
|
|
68
|
-
return `${label} ${muted(`(${tool.name})`)}${failureBadge}\n ${muted(description)}`;
|
|
69
|
-
})
|
|
70
|
-
: [muted("No tools are currently registered.")];
|
|
71
|
-
const failureSection = recent.length
|
|
72
|
-
? `${heading("Recent tool failures")}\n${recent
|
|
73
|
-
.map((entry) => `${muted(entry.timestamp)} ${themedSeparator()} ${badge("tool", entry.tool, "warn")} ${entry.error}`)
|
|
74
|
-
.join("\n")}`
|
|
75
|
-
: muted("No recent tool failures logged.");
|
|
76
|
-
const text = `${heading("Available tools")}
|
|
77
|
-
${toolLines.join("\n\n")}\n\n${failureSection}\n\n${muted("Use /tools clear to reset the failure log.")}`;
|
|
78
|
-
this.options.chatContainer.addChild(new Spacer(1));
|
|
79
|
-
this.options.chatContainer.addChild(new Text(text, 1, 0));
|
|
80
|
-
this.options.ui.requestRender();
|
|
81
|
-
}
|
|
82
|
-
getToolFailureData(limit = 5) {
|
|
83
|
-
return readToolFailureData(limit);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=tool-status-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-status-view.js","sourceRoot":"","sources":["../../src/cli-tui/tool-status-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAkB,MAAM,EAAY,IAAI,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EACN,KAAK,EACL,OAAO,EAEP,KAAK,EACL,SAAS,IAAI,eAAe,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gB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OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC;IAED,kBAAkB,CAAC,KAAK,GAAG,CAAC;QAI3B,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACD","sourcesContent":["import { existsSync, readFileSync } from \"node:fs\";\nimport { type Container, Spacer, type TUI, Text } from \"@evalops/tui\";\nimport type { AgentState } from \"../agent/types.js\";\nimport { PATHS } from \"../config/constants.js\";\nimport {\n\tbadge,\n\theading,\n\tlabeledValue,\n\tmuted,\n\tseparator as themedSeparator,\n} from \"../style/theme.js\";\nimport { writeTextFileAtomic } from \"../utils/fs.js\";\n\nexport const TOOL_FAILURE_LOG_PATH = PATHS.TOOL_FAILURE_LOG;\n\ninterface ToolStatusViewOptions {\n\tchatContainer: Container;\n\tui: TUI;\n\tgetTools: () => AgentState[\"tools\"] | undefined;\n\tshowInfoMessage: (message: string) => void;\n}\n\nexport function readToolFailureData(limit = 5): {\n\trecent: Array<{ tool: string; error: string; timestamp: string }>;\n\tcounts: Map<string, number>;\n} {\n\tconst result = {\n\t\trecent: [] as Array<{ tool: string; error: string; timestamp: string }>,\n\t\tcounts: new Map<string, number>(),\n\t};\n\ttry {\n\t\tif (!existsSync(TOOL_FAILURE_LOG_PATH)) {\n\t\t\treturn result;\n\t\t}\n\t\tconst raw = readFileSync(TOOL_FAILURE_LOG_PATH, \"utf-8\");\n\t\tconst lines = raw.split(\"\\n\").filter(Boolean).reverse();\n\t\tfor (const line of lines.slice(0, limit)) {\n\t\t\tconst parsed = JSON.parse(line) as {\n\t\t\t\ttool?: string;\n\t\t\t\terror?: string;\n\t\t\t\ttimestamp?: number;\n\t\t\t};\n\t\t\tif (parsed.tool) {\n\t\t\t\tresult.counts.set(\n\t\t\t\t\tparsed.tool,\n\t\t\t\t\t(result.counts.get(parsed.tool) ?? 0) + 1,\n\t\t\t\t);\n\t\t\t}\n\t\t\tresult.recent.push({\n\t\t\t\ttool: parsed.tool ?? \"unknown\",\n\t\t\t\terror: parsed.error ?? \"unknown error\",\n\t\t\t\ttimestamp: parsed.timestamp\n\t\t\t\t\t? new Date(parsed.timestamp).toLocaleString()\n\t\t\t\t\t: \"unknown time\",\n\t\t\t});\n\t\t}\n\t} catch {\n\t\t// ignore log parse issues\n\t}\n\treturn result;\n}\n\nexport class ToolStatusView {\n\tconstructor(private readonly options: ToolStatusViewOptions) {}\n\n\thandleToolsCommand(commandText = \"/tools\"): void {\n\t\tconst parts = commandText.trim().split(/\\s+/);\n\t\tif (parts.length > 1 && parts[1] === \"clear\") {\n\t\t\tif (!existsSync(TOOL_FAILURE_LOG_PATH)) {\n\t\t\t\tthis.options.showInfoMessage(\"No tool failure log found to clear.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\twriteTextFileAtomic(TOOL_FAILURE_LOG_PATH, \"\");\n\t\t\t\tthis.options.showInfoMessage(\"Cleared tool failure log.\");\n\t\t\t} catch (error) {\n\t\t\t\tconst message =\n\t\t\t\t\terror instanceof Error ? error.message : String(error ?? \"unknown\");\n\t\t\t\tthis.options.showInfoMessage(`Failed to clear log: ${message}`);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst tools = this.options.getTools() ?? [];\n\t\tconst { recent, counts } = this.getToolFailureData();\n\t\tconst toolLines = tools.length\n\t\t\t? tools.map((tool) => {\n\t\t\t\t\tconst label = badge(tool.label ?? tool.name, undefined, \"info\");\n\t\t\t\t\tconst description = tool.description || \"No description provided\";\n\t\t\t\t\tconst failureCount = counts.get(tool.name) ?? 0;\n\t\t\t\t\tconst failureBadge =\n\t\t\t\t\t\tfailureCount > 0\n\t\t\t\t\t\t\t? ` ${badge(\"failures\", failureCount.toString(), \"danger\")}`\n\t\t\t\t\t\t\t: \"\";\n\t\t\t\t\treturn `${label} ${muted(`(${tool.name})`)}${failureBadge}\\n ${muted(description)}`;\n\t\t\t\t})\n\t\t\t: [muted(\"No tools are currently registered.\")];\n\n\t\tconst failureSection = recent.length\n\t\t\t? `${heading(\"Recent tool failures\")}\\n${recent\n\t\t\t\t\t.map(\n\t\t\t\t\t\t(entry) =>\n\t\t\t\t\t\t\t`${muted(entry.timestamp)} ${themedSeparator()} ${badge(\"tool\", entry.tool, \"warn\")} ${entry.error}`,\n\t\t\t\t\t)\n\t\t\t\t\t.join(\"\\n\")}`\n\t\t\t: muted(\"No recent tool failures logged.\");\n\n\t\tconst text = `${heading(\"Available tools\")}\n${toolLines.join(\"\\n\\n\")}\\n\\n${failureSection}\\n\\n${muted(\"Use /tools clear to reset the failure log.\")}`;\n\n\t\tthis.options.chatContainer.addChild(new Spacer(1));\n\t\tthis.options.chatContainer.addChild(new Text(text, 1, 0));\n\t\tthis.options.ui.requestRender();\n\t}\n\n\tgetToolFailureData(limit = 5): {\n\t\trecent: Array<{ tool: string; error: string; timestamp: string }>;\n\t\tcounts: Map<string, number>;\n\t} {\n\t\treturn readToolFailureData(limit);\n\t}\n}\n"]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgentEventBridge - Routes agent events through the TUI orchestration layer.
|
|
3
|
-
*
|
|
4
|
-
* Keeps agent lifecycle handling out of TuiRenderer while preserving behavior.
|
|
5
|
-
*/
|
|
6
|
-
import type { ActionApprovalDecision, ActionApprovalRequest } from "../../agent/action-approval.js";
|
|
7
|
-
import type { Agent } from "../../agent/agent.js";
|
|
8
|
-
import type { AutoRetryController } from "../../agent/auto-retry.js";
|
|
9
|
-
import type { SessionRecoveryManager } from "../../agent/session-recovery.js";
|
|
10
|
-
import type { ToolRetryDecision, ToolRetryRequest } from "../../agent/tool-retry.js";
|
|
11
|
-
import type { AgentEvent, AgentState } from "../../agent/types.js";
|
|
12
|
-
import { type SessionManager, type SessionModelMetadata } from "../../session/manager.js";
|
|
13
|
-
import type { MaestroCloseReason } from "../../telemetry/maestro-event-bus.js";
|
|
14
|
-
import type { AgentEventRouter } from "../agent-event-router.js";
|
|
15
|
-
import type { FooterComponent } from "../footer.js";
|
|
16
|
-
import type { InterruptController } from "../interrupt-controller.js";
|
|
17
|
-
import { type FooterStats } from "../utils/footer-utils.js";
|
|
18
|
-
export interface AgentEventBridgeDeps {
|
|
19
|
-
agent: Agent;
|
|
20
|
-
sessionManager: SessionManager;
|
|
21
|
-
sessionRecoveryManager: SessionRecoveryManager;
|
|
22
|
-
autoRetryController: AutoRetryController;
|
|
23
|
-
interruptController: InterruptController;
|
|
24
|
-
footer: FooterComponent;
|
|
25
|
-
agentEventRouter: AgentEventRouter;
|
|
26
|
-
}
|
|
27
|
-
export interface AgentEventBridgeCallbacks {
|
|
28
|
-
ensureInitialized: () => Promise<void>;
|
|
29
|
-
handleApprovalRequired: (request: ActionApprovalRequest) => void;
|
|
30
|
-
handleApprovalResolved: (request: ActionApprovalRequest, decision: ActionApprovalDecision) => void;
|
|
31
|
-
handleToolRetryRequired: (request: ToolRetryRequest) => void;
|
|
32
|
-
handleToolRetryResolved: (request: ToolRetryRequest, decision: ToolRetryDecision) => void;
|
|
33
|
-
setAgentRunning: (running: boolean) => void;
|
|
34
|
-
maybeShowContextWarning: (stats: FooterStats) => void;
|
|
35
|
-
setCurrentModelMetadata: (metadata?: SessionModelMetadata) => void;
|
|
36
|
-
}
|
|
37
|
-
export interface AgentEventBridgeOptions {
|
|
38
|
-
deps: AgentEventBridgeDeps;
|
|
39
|
-
callbacks: AgentEventBridgeCallbacks;
|
|
40
|
-
}
|
|
41
|
-
export declare class AgentEventBridge {
|
|
42
|
-
private readonly deps;
|
|
43
|
-
private readonly callbacks;
|
|
44
|
-
private sessionStartTime;
|
|
45
|
-
private sessionTelemetrySessionId;
|
|
46
|
-
private sessionTelemetryRecorded;
|
|
47
|
-
private sessionCloseTelemetryRecorded;
|
|
48
|
-
private sessionTelemetryMetadata;
|
|
49
|
-
constructor(options: AgentEventBridgeOptions);
|
|
50
|
-
handleEvent(event: AgentEvent, state: AgentState): Promise<void>;
|
|
51
|
-
recordSessionClosed(options?: {
|
|
52
|
-
closeReason?: MaestroCloseReason;
|
|
53
|
-
closeMessage?: string;
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
private recordTokenUsageFromMessages;
|
|
56
|
-
private getPromptTelemetryMetadata;
|
|
57
|
-
}
|
|
58
|
-
export declare function createAgentEventBridge(options: AgentEventBridgeOptions): AgentEventBridge;
|
|
59
|
-
//# sourceMappingURL=agent-event-bridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-event-bridge.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/agent-event-bridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACX,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE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B,CAAuB;IAC/C,OAAO,CAAC,yBAAyB,CAAuB;IACxD,OAAO,CAAC,wBAAwB,CAAS;IACzC,OAAO,CAAC,6BAA6B,CAAS;IAC9C,OAAO,CAAC,wBAAwB,CAAsC;gBAE1D,OAAO,EAAE,uBAAuB;IAKtC,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAsEtE,mBAAmB,CAClB,OAAO,GAAE;QACR,WAAW,CAAC,EAAE,kBAAkB,CAAC;QACjC,YAAY,CAAC,EAAE,MAAM,CAAC;KACjB,GACJ,OAAO,CAAC,IAAI,CAAC;IAqBhB,OAAO,CAAC,4BAA4B;IA0BpC,OAAO,CAAC,0BAA0B;CAQlC;AAED,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,uBAAuB,GAC9B,gBAAgB,CAElB"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgentEventBridge - Routes agent events through the TUI orchestration layer.
|
|
3
|
-
*
|
|
4
|
-
* Keeps agent lifecycle handling out of TuiRenderer while preserving behavior.
|
|
5
|
-
*/
|
|
6
|
-
import { isAssistantMessage } from "../../agent/type-guards.js";
|
|
7
|
-
import { toSessionModelMetadata, } from "../../session/manager.js";
|
|
8
|
-
import { recordSessionDuration, recordSessionStart, recordTokenUsage, } from "../../telemetry.js";
|
|
9
|
-
import { calculateFooterStats, } from "../utils/footer-utils.js";
|
|
10
|
-
export class AgentEventBridge {
|
|
11
|
-
constructor(options) {
|
|
12
|
-
this.sessionStartTime = null;
|
|
13
|
-
this.sessionTelemetrySessionId = null;
|
|
14
|
-
this.sessionTelemetryRecorded = false;
|
|
15
|
-
this.sessionCloseTelemetryRecorded = false;
|
|
16
|
-
this.deps = options.deps;
|
|
17
|
-
this.callbacks = options.callbacks;
|
|
18
|
-
}
|
|
19
|
-
async handleEvent(event, state) {
|
|
20
|
-
await this.callbacks.ensureInitialized();
|
|
21
|
-
if (event.type === "action_approval_required") {
|
|
22
|
-
this.callbacks.handleApprovalRequired(event.request);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (event.type === "action_approval_resolved") {
|
|
26
|
-
this.callbacks.handleApprovalResolved(event.request, event.decision);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (event.type === "tool_retry_required") {
|
|
30
|
-
this.callbacks.handleToolRetryRequired(event.request);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (event.type === "tool_retry_resolved") {
|
|
34
|
-
this.callbacks.handleToolRetryResolved(event.request, event.decision);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (event.type === "agent_start") {
|
|
38
|
-
this.callbacks.setAgentRunning(true);
|
|
39
|
-
if (!this.deps.sessionRecoveryManager.getCurrentBackup()) {
|
|
40
|
-
this.deps.sessionRecoveryManager.startSession({
|
|
41
|
-
sessionId: this.deps.sessionManager.getSessionId(),
|
|
42
|
-
systemPrompt: state.systemPrompt,
|
|
43
|
-
modelId: state.model
|
|
44
|
-
? `${state.model.provider}/${state.model.id}`
|
|
45
|
-
: undefined,
|
|
46
|
-
cwd: process.cwd(),
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
if (!this.sessionTelemetryRecorded) {
|
|
50
|
-
const sessionId = this.deps.sessionManager.getSessionId();
|
|
51
|
-
this.sessionStartTime = Date.now();
|
|
52
|
-
this.sessionTelemetrySessionId = sessionId;
|
|
53
|
-
this.sessionTelemetryRecorded = true;
|
|
54
|
-
this.sessionTelemetryMetadata = {
|
|
55
|
-
model: state.model
|
|
56
|
-
? `${state.model.provider}/${state.model.id}`
|
|
57
|
-
: undefined,
|
|
58
|
-
provider: state.model?.provider,
|
|
59
|
-
...this.getPromptTelemetryMetadata(state),
|
|
60
|
-
};
|
|
61
|
-
recordSessionStart(sessionId, {
|
|
62
|
-
...this.sessionTelemetryMetadata,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else if (event.type === "agent_end") {
|
|
67
|
-
this.callbacks.setAgentRunning(false);
|
|
68
|
-
this.deps.interruptController.clear();
|
|
69
|
-
this.deps.sessionRecoveryManager.updateMessages([...state.messages]);
|
|
70
|
-
this.recordTokenUsageFromMessages(state);
|
|
71
|
-
const contextWindow = state.model?.contextWindow;
|
|
72
|
-
this.deps.autoRetryController.checkAndRetry(this.deps.agent, contextWindow);
|
|
73
|
-
}
|
|
74
|
-
this.deps.footer.updateState(state);
|
|
75
|
-
const stats = calculateFooterStats(state);
|
|
76
|
-
this.callbacks.maybeShowContextWarning(stats);
|
|
77
|
-
const metadata = state.model
|
|
78
|
-
? toSessionModelMetadata(state.model)
|
|
79
|
-
: undefined;
|
|
80
|
-
this.callbacks.setCurrentModelMetadata(metadata);
|
|
81
|
-
this.deps.agentEventRouter.handle(event);
|
|
82
|
-
}
|
|
83
|
-
recordSessionClosed(options = {}) {
|
|
84
|
-
if (!this.sessionTelemetryRecorded ||
|
|
85
|
-
this.sessionCloseTelemetryRecorded ||
|
|
86
|
-
this.sessionStartTime === null ||
|
|
87
|
-
this.sessionTelemetrySessionId === null) {
|
|
88
|
-
return Promise.resolve();
|
|
89
|
-
}
|
|
90
|
-
this.sessionCloseTelemetryRecorded = true;
|
|
91
|
-
return recordSessionDuration(this.sessionTelemetrySessionId, Math.max(0, Date.now() - this.sessionStartTime), {
|
|
92
|
-
...this.sessionTelemetryMetadata,
|
|
93
|
-
closeReason: options.closeReason ?? "MAESTRO_CLOSE_REASON_USER_STOPPED",
|
|
94
|
-
closeMessage: options.closeMessage ?? "TUI stopped",
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
recordTokenUsageFromMessages(state) {
|
|
98
|
-
for (let i = state.messages.length - 1; i >= 0; i--) {
|
|
99
|
-
const message = state.messages[i];
|
|
100
|
-
if (!message)
|
|
101
|
-
continue;
|
|
102
|
-
if (isAssistantMessage(message)) {
|
|
103
|
-
recordTokenUsage(this.deps.sessionManager.getSessionId(), {
|
|
104
|
-
input: message.usage.input,
|
|
105
|
-
output: message.usage.output,
|
|
106
|
-
cacheRead: message.usage.cacheRead,
|
|
107
|
-
cacheWrite: message.usage.cacheWrite,
|
|
108
|
-
}, {
|
|
109
|
-
model: state.model
|
|
110
|
-
? `${state.model.provider}/${state.model.id}`
|
|
111
|
-
: undefined,
|
|
112
|
-
provider: state.model?.provider,
|
|
113
|
-
...this.getPromptTelemetryMetadata(state),
|
|
114
|
-
});
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
getPromptTelemetryMetadata(state) {
|
|
120
|
-
return {
|
|
121
|
-
prompt_version: state.promptMetadata?.version,
|
|
122
|
-
prompt_hash: state.promptMetadata?.hash,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
export function createAgentEventBridge(options) {
|
|
127
|
-
return new AgentEventBridge(options);
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=agent-event-bridge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-event-bridge.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/agent-event-bridge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAGN,sBAAsB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,GAChB,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAEN,oBAAoB,GACpB,MAAM,0BAA0B,CAAC;AAkClC,MAAM,OAAO,gBAAgB;IAS5B,YAAY,OAAgC;QANpC,qBAAgB,GAAkB,IAAI,CAAC;QACvC,8BAAyB,GAAkB,IAAI,CAAC;QAChD,6BAAwB,GAAG,KAAK,CAAC;QACjC,kCAA6B,GAAG,KAAK,CAAC;QAI7C,IAAI,CAAC,IAAI,GAAG,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CAAC,CAAC;AACtC,CAAC","sourcesContent":["/**\n * AgentEventBridge - Routes agent events through the TUI orchestration layer.\n *\n * Keeps agent lifecycle handling out of TuiRenderer while preserving behavior.\n */\n\nimport type {\n\tActionApprovalDecision,\n\tActionApprovalRequest,\n} from \"../../agent/action-approval.js\";\nimport type { Agent } from \"../../agent/agent.js\";\nimport type { AutoRetryController } from \"../../agent/auto-retry.js\";\nimport type { SessionRecoveryManager } from \"../../agent/session-recovery.js\";\nimport type {\n\tToolRetryDecision,\n\tToolRetryRequest,\n} from \"../../agent/tool-retry.js\";\nimport { isAssistantMessage } from \"../../agent/type-guards.js\";\nimport type { AgentEvent, AgentState } from \"../../agent/types.js\";\nimport type { RegisteredModel } from \"../../models/registry.js\";\nimport {\n\ttype SessionManager,\n\ttype SessionModelMetadata,\n\ttoSessionModelMetadata,\n} from \"../../session/manager.js\";\nimport {\n\trecordSessionDuration,\n\trecordSessionStart,\n\trecordTokenUsage,\n} from \"../../telemetry.js\";\nimport type { MaestroCloseReason } from \"../../telemetry/maestro-event-bus.js\";\nimport type { AgentEventRouter } from \"../agent-event-router.js\";\nimport type { FooterComponent } from \"../footer.js\";\nimport type { InterruptController } from \"../interrupt-controller.js\";\nimport {\n\ttype FooterStats,\n\tcalculateFooterStats,\n} from \"../utils/footer-utils.js\";\n\nexport interface AgentEventBridgeDeps {\n\tagent: Agent;\n\tsessionManager: SessionManager;\n\tsessionRecoveryManager: SessionRecoveryManager;\n\tautoRetryController: AutoRetryController;\n\tinterruptController: InterruptController;\n\tfooter: FooterComponent;\n\tagentEventRouter: AgentEventRouter;\n}\n\nexport interface AgentEventBridgeCallbacks {\n\tensureInitialized: () => Promise<void>;\n\thandleApprovalRequired: (request: ActionApprovalRequest) => void;\n\thandleApprovalResolved: (\n\t\trequest: ActionApprovalRequest,\n\t\tdecision: ActionApprovalDecision,\n\t) => void;\n\thandleToolRetryRequired: (request: ToolRetryRequest) => void;\n\thandleToolRetryResolved: (\n\t\trequest: ToolRetryRequest,\n\t\tdecision: ToolRetryDecision,\n\t) => void;\n\tsetAgentRunning: (running: boolean) => void;\n\tmaybeShowContextWarning: (stats: FooterStats) => void;\n\tsetCurrentModelMetadata: (metadata?: SessionModelMetadata) => void;\n}\n\nexport interface AgentEventBridgeOptions {\n\tdeps: AgentEventBridgeDeps;\n\tcallbacks: AgentEventBridgeCallbacks;\n}\n\nexport class AgentEventBridge {\n\tprivate readonly deps: AgentEventBridgeDeps;\n\tprivate readonly callbacks: AgentEventBridgeCallbacks;\n\tprivate sessionStartTime: number | null = null;\n\tprivate sessionTelemetrySessionId: string | null = null;\n\tprivate sessionTelemetryRecorded = false;\n\tprivate sessionCloseTelemetryRecorded = false;\n\tprivate sessionTelemetryMetadata: Record<string, unknown> | undefined;\n\n\tconstructor(options: AgentEventBridgeOptions) {\n\t\tthis.deps = options.deps;\n\t\tthis.callbacks = options.callbacks;\n\t}\n\n\tasync handleEvent(event: AgentEvent, state: AgentState): Promise<void> {\n\t\tawait this.callbacks.ensureInitialized();\n\n\t\tif (event.type === \"action_approval_required\") {\n\t\t\tthis.callbacks.handleApprovalRequired(event.request);\n\t\t\treturn;\n\t\t}\n\t\tif (event.type === \"action_approval_resolved\") {\n\t\t\tthis.callbacks.handleApprovalResolved(event.request, event.decision);\n\t\t\treturn;\n\t\t}\n\t\tif (event.type === \"tool_retry_required\") {\n\t\t\tthis.callbacks.handleToolRetryRequired(event.request);\n\t\t\treturn;\n\t\t}\n\t\tif (event.type === \"tool_retry_resolved\") {\n\t\t\tthis.callbacks.handleToolRetryResolved(event.request, event.decision);\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.type === \"agent_start\") {\n\t\t\tthis.callbacks.setAgentRunning(true);\n\t\t\tif (!this.deps.sessionRecoveryManager.getCurrentBackup()) {\n\t\t\t\tthis.deps.sessionRecoveryManager.startSession({\n\t\t\t\t\tsessionId: this.deps.sessionManager.getSessionId(),\n\t\t\t\t\tsystemPrompt: state.systemPrompt,\n\t\t\t\t\tmodelId: state.model\n\t\t\t\t\t\t? `${state.model.provider}/${state.model.id}`\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\tcwd: process.cwd(),\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (!this.sessionTelemetryRecorded) {\n\t\t\t\tconst sessionId = this.deps.sessionManager.getSessionId();\n\t\t\t\tthis.sessionStartTime = Date.now();\n\t\t\t\tthis.sessionTelemetrySessionId = sessionId;\n\t\t\t\tthis.sessionTelemetryRecorded = true;\n\t\t\t\tthis.sessionTelemetryMetadata = {\n\t\t\t\t\tmodel: state.model\n\t\t\t\t\t\t? `${state.model.provider}/${state.model.id}`\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\tprovider: state.model?.provider,\n\t\t\t\t\t...this.getPromptTelemetryMetadata(state),\n\t\t\t\t};\n\t\t\t\trecordSessionStart(sessionId, {\n\t\t\t\t\t...this.sessionTelemetryMetadata,\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (event.type === \"agent_end\") {\n\t\t\tthis.callbacks.setAgentRunning(false);\n\t\t\tthis.deps.interruptController.clear();\n\t\t\tthis.deps.sessionRecoveryManager.updateMessages([...state.messages]);\n\t\t\tthis.recordTokenUsageFromMessages(state);\n\t\t\tconst contextWindow = state.model?.contextWindow;\n\t\t\tthis.deps.autoRetryController.checkAndRetry(\n\t\t\t\tthis.deps.agent,\n\t\t\t\tcontextWindow,\n\t\t\t);\n\t\t}\n\n\t\tthis.deps.footer.updateState(state);\n\t\tconst stats = calculateFooterStats(state);\n\t\tthis.callbacks.maybeShowContextWarning(stats);\n\t\tconst metadata = state.model\n\t\t\t? toSessionModelMetadata(state.model as RegisteredModel)\n\t\t\t: undefined;\n\t\tthis.callbacks.setCurrentModelMetadata(metadata);\n\t\tthis.deps.agentEventRouter.handle(event);\n\t}\n\n\trecordSessionClosed(\n\t\toptions: {\n\t\t\tcloseReason?: MaestroCloseReason;\n\t\t\tcloseMessage?: string;\n\t\t} = {},\n\t): Promise<void> {\n\t\tif (\n\t\t\t!this.sessionTelemetryRecorded ||\n\t\t\tthis.sessionCloseTelemetryRecorded ||\n\t\t\tthis.sessionStartTime === null ||\n\t\t\tthis.sessionTelemetrySessionId === null\n\t\t) {\n\t\t\treturn Promise.resolve();\n\t\t}\n\t\tthis.sessionCloseTelemetryRecorded = true;\n\t\treturn recordSessionDuration(\n\t\t\tthis.sessionTelemetrySessionId,\n\t\t\tMath.max(0, Date.now() - this.sessionStartTime),\n\t\t\t{\n\t\t\t\t...this.sessionTelemetryMetadata,\n\t\t\t\tcloseReason: options.closeReason ?? \"MAESTRO_CLOSE_REASON_USER_STOPPED\",\n\t\t\t\tcloseMessage: options.closeMessage ?? \"TUI stopped\",\n\t\t\t},\n\t\t);\n\t}\n\n\tprivate recordTokenUsageFromMessages(state: AgentState): void {\n\t\tfor (let i = state.messages.length - 1; i >= 0; i--) {\n\t\t\tconst message = state.messages[i];\n\t\t\tif (!message) continue;\n\t\t\tif (isAssistantMessage(message)) {\n\t\t\t\trecordTokenUsage(\n\t\t\t\t\tthis.deps.sessionManager.getSessionId(),\n\t\t\t\t\t{\n\t\t\t\t\t\tinput: message.usage.input,\n\t\t\t\t\t\toutput: message.usage.output,\n\t\t\t\t\t\tcacheRead: message.usage.cacheRead,\n\t\t\t\t\t\tcacheWrite: message.usage.cacheWrite,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmodel: state.model\n\t\t\t\t\t\t\t? `${state.model.provider}/${state.model.id}`\n\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\tprovider: state.model?.provider,\n\t\t\t\t\t\t...this.getPromptTelemetryMetadata(state),\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getPromptTelemetryMetadata(\n\t\tstate: AgentState,\n\t): Record<string, unknown> {\n\t\treturn {\n\t\t\tprompt_version: state.promptMetadata?.version,\n\t\t\tprompt_hash: state.promptMetadata?.hash,\n\t\t};\n\t}\n}\n\nexport function createAgentEventBridge(\n\toptions: AgentEventBridgeOptions,\n): AgentEventBridge {\n\treturn new AgentEventBridge(options);\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Container, TUI } from "@evalops/tui";
|
|
2
|
-
import type { ActionApprovalService } from "../../agent/action-approval.js";
|
|
3
|
-
import { ApprovalController } from "../approval/approval-controller.js";
|
|
4
|
-
import type { CustomEditor } from "../custom-editor.js";
|
|
5
|
-
import type { NotificationView } from "../notification-view.js";
|
|
6
|
-
export declare function createApprovalController(params: {
|
|
7
|
-
approvalService: ActionApprovalService;
|
|
8
|
-
ui: TUI;
|
|
9
|
-
editor: CustomEditor;
|
|
10
|
-
editorContainer: Container;
|
|
11
|
-
notificationView: NotificationView;
|
|
12
|
-
}): ApprovalController;
|
|
13
|
-
//# sourceMappingURL=approval-setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-setup.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/approval-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE;IAChD,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,GAAG,kBAAkB,CAErB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-setup.js","sourceRoot":"","sources":["../../../src/cli-tui/tui-renderer/approval-setup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE,MAAM,UAAU,wBAAwB,CAAC,MAMxC;IACA,OAAO,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC","sourcesContent":["import type { Container, TUI } from \"@evalops/tui\";\nimport type { ActionApprovalService } from \"../../agent/action-approval.js\";\nimport { ApprovalController } from \"../approval/approval-controller.js\";\nimport type { CustomEditor } from \"../custom-editor.js\";\nimport type { NotificationView } from \"../notification-view.js\";\n\nexport function createApprovalController(params: {\n\tapprovalService: ActionApprovalService;\n\tui: TUI;\n\teditor: CustomEditor;\n\teditorContainer: Container;\n\tnotificationView: NotificationView;\n}): ApprovalController {\n\treturn new ApprovalController(params);\n}\n"]}
|