@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
package/dist/skills/loader.js
DELETED
|
@@ -1,957 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skills Loader - Dynamic skill discovery and loading system.
|
|
3
|
-
*
|
|
4
|
-
* Implements the Agent Skills specification (https://agentskills.io/specification).
|
|
5
|
-
*
|
|
6
|
-
* Skills are domain-specific instruction sets that provide:
|
|
7
|
-
* - Detailed workflows and procedures
|
|
8
|
-
* - Access to bundled resources (scripts, templates, references)
|
|
9
|
-
* - Domain expertise for specialized tasks
|
|
10
|
-
*
|
|
11
|
-
* Skills are discovered from:
|
|
12
|
-
* - ~/.maestro/skills/ (user skills)
|
|
13
|
-
* - .maestro/skills/ (project skills)
|
|
14
|
-
*
|
|
15
|
-
* Each skill is a directory containing:
|
|
16
|
-
* - SKILL.md or skill.md - Main skill file with YAML frontmatter
|
|
17
|
-
* - Optional: scripts/, references/, assets/ directories
|
|
18
|
-
*/
|
|
19
|
-
import { createHash } from "node:crypto";
|
|
20
|
-
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
21
|
-
import { basename, dirname, join } from "node:path";
|
|
22
|
-
import { fileURLToPath } from "node:url";
|
|
23
|
-
import { load as loadYaml } from "js-yaml";
|
|
24
|
-
import { PATHS } from "../config/constants.js";
|
|
25
|
-
import { loadConfiguredPackageResources } from "../packages/runtime.js";
|
|
26
|
-
import { createLogger } from "../utils/logger.js";
|
|
27
|
-
import { promptSafeText } from "../utils/prompt-safe-text.js";
|
|
28
|
-
const logger = createLogger("skills:loader");
|
|
29
|
-
const LEGACY_FLAT_RESOURCE_EXCLUDES = new Set([
|
|
30
|
-
"scripts",
|
|
31
|
-
"reference",
|
|
32
|
-
"references",
|
|
33
|
-
"assets",
|
|
34
|
-
"toolbox",
|
|
35
|
-
"mcp.json",
|
|
36
|
-
"mcp.json.example",
|
|
37
|
-
]);
|
|
38
|
-
/** Maximum lengths per Agent Skills spec */
|
|
39
|
-
const MAX_NAME_LENGTH = 64;
|
|
40
|
-
const MAX_DESCRIPTION_LENGTH = 1024;
|
|
41
|
-
const MAX_COMPATIBILITY_LENGTH = 500;
|
|
42
|
-
/** Allowed frontmatter fields per Agent Skills spec */
|
|
43
|
-
export const SKILL_FRONTMATTER_FIELDS = [
|
|
44
|
-
"name",
|
|
45
|
-
"description",
|
|
46
|
-
"license",
|
|
47
|
-
"compatibility",
|
|
48
|
-
"allowed-tools",
|
|
49
|
-
"argument-hint",
|
|
50
|
-
"builtin-tools",
|
|
51
|
-
"model",
|
|
52
|
-
"mode",
|
|
53
|
-
"isolatedContext",
|
|
54
|
-
"metadata",
|
|
55
|
-
// Legacy fields (deprecated but supported for backwards compatibility)
|
|
56
|
-
"tags",
|
|
57
|
-
"author",
|
|
58
|
-
"version",
|
|
59
|
-
"triggers",
|
|
60
|
-
];
|
|
61
|
-
/** Allowed frontmatter fields per Agent Skills spec plus Maestro package hints. */
|
|
62
|
-
const ALLOWED_FIELDS = new Set(SKILL_FRONTMATTER_FIELDS);
|
|
63
|
-
/**
|
|
64
|
-
* Hash a single bundled resource file. Errors (missing file,
|
|
65
|
-
* unreadable) yield a sentinel marker so the parent hash changes —
|
|
66
|
-
* an unhashable resource invalidates the approval rather than
|
|
67
|
-
* silently dropping out of the hash.
|
|
68
|
-
*/
|
|
69
|
-
function hashSkillResourceFile(filePath) {
|
|
70
|
-
try {
|
|
71
|
-
return createHash("sha256").update(readFileSync(filePath)).digest("hex");
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
return "UNHASHABLE";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Walk a directory tree and feed every regular file's (relative path,
|
|
79
|
-
* content) pair into `hash` in a deterministic, alpha-sorted order.
|
|
80
|
-
* Used by `computeSkillTrustSha` to bind every spec-layout resource
|
|
81
|
-
* directory (`scripts/`, `toolbox/`, `assets/`, …) into the trust
|
|
82
|
-
* digest, so swapping a bundled script while keeping the same skill
|
|
83
|
-
* name and `SKILL.md` body invalidates the prior approval.
|
|
84
|
-
*
|
|
85
|
-
* Symlinks are followed: the runtime executes them, so the digest
|
|
86
|
-
* should reflect what would actually run. The skills loader enforces
|
|
87
|
-
* path confinement (#2746) separately, so any escape attempt is
|
|
88
|
-
* rejected before we get here.
|
|
89
|
-
*/
|
|
90
|
-
function hashSkillDirectoryInto(hash, rootDir, currentDir) {
|
|
91
|
-
let entries;
|
|
92
|
-
try {
|
|
93
|
-
entries = readdirSync(currentDir).sort();
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
for (const entry of entries) {
|
|
99
|
-
const fullPath = join(currentDir, entry);
|
|
100
|
-
let stat;
|
|
101
|
-
try {
|
|
102
|
-
stat = statSync(fullPath);
|
|
103
|
-
}
|
|
104
|
-
catch {
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
const relPath = fullPath.slice(rootDir.length);
|
|
108
|
-
if (stat.isDirectory()) {
|
|
109
|
-
hash.update(`\0dir:${relPath}\0`);
|
|
110
|
-
hashSkillDirectoryInto(hash, rootDir, fullPath);
|
|
111
|
-
}
|
|
112
|
-
else if (stat.isFile()) {
|
|
113
|
-
hash.update(`\0file:${relPath}\0`);
|
|
114
|
-
hash.update(hashSkillResourceFile(fullPath));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Bind the trust hash to (name + content + bundled resources + spec-
|
|
120
|
-
* layout resource directories), not just content. The adversarial
|
|
121
|
-
* review (#2629) showed that hashing content alone enables a
|
|
122
|
-
* name-substitution attack: an attacker ships a malicious skill whose
|
|
123
|
-
* BODY is byte-identical to a popular approved skill but registers a
|
|
124
|
-
* different name and ships malicious scripts in `scripts/` (which the
|
|
125
|
-
* agent invokes via the runtime activation manifest).
|
|
126
|
-
*
|
|
127
|
-
* A follow-up review (#2749) pointed out that the previous fix only
|
|
128
|
-
* covered the legacy flat resources list — files under `scripts/`,
|
|
129
|
-
* `toolbox/`, `assets/`, the reference dirs, and `mcp.json` were all
|
|
130
|
-
* still excluded from the trust digest, so swapping any of those
|
|
131
|
-
* while keeping the SKILL.md body identical left `contentSha`
|
|
132
|
-
* unchanged and the prior user approval still applied. We now hash
|
|
133
|
-
* every resource-bearing path so a swap of any bundled file
|
|
134
|
-
* invalidates the approval.
|
|
135
|
-
*
|
|
136
|
-
* Resources and directories are sorted so the hash is deterministic.
|
|
137
|
-
*/
|
|
138
|
-
export function computeSkillTrustSha(name, body, resources, resourceDirs) {
|
|
139
|
-
const sortedResources = [...resources].sort((a, b) => a.path.localeCompare(b.path));
|
|
140
|
-
const hash = createHash("sha256");
|
|
141
|
-
hash.update("name:");
|
|
142
|
-
hash.update(name, "utf8");
|
|
143
|
-
hash.update("\0body:");
|
|
144
|
-
hash.update(body, "utf8");
|
|
145
|
-
hash.update("\0resources:");
|
|
146
|
-
for (const resource of sortedResources) {
|
|
147
|
-
hash.update(`\0${resource.name}\0${resource.type}\0`);
|
|
148
|
-
hash.update(hashSkillResourceFile(resource.path));
|
|
149
|
-
}
|
|
150
|
-
hash.update("\0resourceDirs:");
|
|
151
|
-
const dirEntries = [
|
|
152
|
-
["assetsDir", resourceDirs.assetsDir, "dir"],
|
|
153
|
-
["mcpJsonPath", resourceDirs.mcpJsonPath, "file"],
|
|
154
|
-
["referenceDir", resourceDirs.referenceDir, "dir"],
|
|
155
|
-
["referencesDir", resourceDirs.referencesDir, "dir"],
|
|
156
|
-
["scriptsDir", resourceDirs.scriptsDir, "dir"],
|
|
157
|
-
["toolboxDir", resourceDirs.toolboxDir, "dir"],
|
|
158
|
-
];
|
|
159
|
-
for (const [label, path, kind] of dirEntries) {
|
|
160
|
-
if (!path) {
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
hash.update(`\0${label}\0`);
|
|
164
|
-
if (kind === "file") {
|
|
165
|
-
hash.update(hashSkillResourceFile(path));
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
hashSkillDirectoryInto(hash, path, path);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return hash.digest("hex");
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Skill loading error.
|
|
175
|
-
*/
|
|
176
|
-
export class SkillLoadError extends Error {
|
|
177
|
-
constructor(message, path, code) {
|
|
178
|
-
super(message);
|
|
179
|
-
this.path = path;
|
|
180
|
-
this.code = code;
|
|
181
|
-
this.name = "SkillLoadError";
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function stringValue(value) {
|
|
185
|
-
return typeof value === "string" ? value : undefined;
|
|
186
|
-
}
|
|
187
|
-
export function stringArrayValue(value) {
|
|
188
|
-
if (Array.isArray(value)) {
|
|
189
|
-
if (value.length === 0 ||
|
|
190
|
-
value.some((entry) => typeof entry !== "string" || entry.trim() === "")) {
|
|
191
|
-
return undefined;
|
|
192
|
-
}
|
|
193
|
-
const values = value
|
|
194
|
-
.map((entry) => entry.trim())
|
|
195
|
-
.filter((entry) => entry.length > 0);
|
|
196
|
-
return values.length > 0 ? values : undefined;
|
|
197
|
-
}
|
|
198
|
-
if (typeof value === "string") {
|
|
199
|
-
const values = value
|
|
200
|
-
.split(/[,\s]+/)
|
|
201
|
-
.map((entry) => entry.trim())
|
|
202
|
-
.filter((entry) => entry.length > 0);
|
|
203
|
-
return values.length > 0 ? values : undefined;
|
|
204
|
-
}
|
|
205
|
-
return undefined;
|
|
206
|
-
}
|
|
207
|
-
function validateStringArrayField(value, field) {
|
|
208
|
-
if (value === undefined) {
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
if (typeof value === "string") {
|
|
212
|
-
return stringArrayValue(value)
|
|
213
|
-
? null
|
|
214
|
-
: `${field} must be a non-empty string or list of non-empty strings`;
|
|
215
|
-
}
|
|
216
|
-
if (Array.isArray(value)) {
|
|
217
|
-
return stringArrayValue(value)
|
|
218
|
-
? null
|
|
219
|
-
: `${field} entries must all be non-empty strings`;
|
|
220
|
-
}
|
|
221
|
-
return `${field} must be a non-empty string or list of non-empty strings`;
|
|
222
|
-
}
|
|
223
|
-
function booleanValue(value) {
|
|
224
|
-
if (typeof value === "boolean")
|
|
225
|
-
return value;
|
|
226
|
-
if (typeof value === "string") {
|
|
227
|
-
const normalized = value.toLowerCase();
|
|
228
|
-
if (normalized === "true")
|
|
229
|
-
return true;
|
|
230
|
-
if (normalized === "false")
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
return undefined;
|
|
234
|
-
}
|
|
235
|
-
function metadataRecordValue(value) {
|
|
236
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
237
|
-
return undefined;
|
|
238
|
-
}
|
|
239
|
-
const metadata = {};
|
|
240
|
-
for (const [key, entry] of Object.entries(value)) {
|
|
241
|
-
if (typeof entry !== "string" &&
|
|
242
|
-
typeof entry !== "number" &&
|
|
243
|
-
typeof entry !== "boolean") {
|
|
244
|
-
continue;
|
|
245
|
-
}
|
|
246
|
-
const normalized = String(entry).trim();
|
|
247
|
-
if (normalized.length > 0) {
|
|
248
|
-
metadata[key] = normalized;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return Object.keys(metadata).length > 0 ? metadata : undefined;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Validate skill name per Agent Skills spec.
|
|
255
|
-
*/
|
|
256
|
-
function validateName(name, dirName) {
|
|
257
|
-
if (!name || typeof name !== "string") {
|
|
258
|
-
return "Name must be a non-empty string";
|
|
259
|
-
}
|
|
260
|
-
if (name.length > MAX_NAME_LENGTH) {
|
|
261
|
-
return `Name exceeds ${MAX_NAME_LENGTH} characters (got ${name.length})`;
|
|
262
|
-
}
|
|
263
|
-
if (name !== name.toLowerCase()) {
|
|
264
|
-
return "Name must be lowercase";
|
|
265
|
-
}
|
|
266
|
-
if (name.startsWith("-") || name.endsWith("-")) {
|
|
267
|
-
return "Name cannot start or end with a hyphen";
|
|
268
|
-
}
|
|
269
|
-
if (name.includes("--")) {
|
|
270
|
-
return "Name cannot contain consecutive hyphens";
|
|
271
|
-
}
|
|
272
|
-
if (!/^[a-z0-9-]+$/.test(name)) {
|
|
273
|
-
return "Name can only contain lowercase letters, numbers, and hyphens";
|
|
274
|
-
}
|
|
275
|
-
// Directory name must match skill name (skip for 'skills' root dir)
|
|
276
|
-
if (dirName !== "skills" && dirName !== name) {
|
|
277
|
-
return `Directory name '${dirName}' must match skill name '${name}'`;
|
|
278
|
-
}
|
|
279
|
-
return null;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Validate description per Agent Skills spec.
|
|
283
|
-
*/
|
|
284
|
-
function validateDescription(description) {
|
|
285
|
-
if (!description || typeof description !== "string") {
|
|
286
|
-
return "Description must be a non-empty string";
|
|
287
|
-
}
|
|
288
|
-
if (description.length > MAX_DESCRIPTION_LENGTH) {
|
|
289
|
-
return `Description exceeds ${MAX_DESCRIPTION_LENGTH} characters (got ${description.length})`;
|
|
290
|
-
}
|
|
291
|
-
return null;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Validate compatibility per Agent Skills spec.
|
|
295
|
-
*/
|
|
296
|
-
function validateCompatibility(compatibility) {
|
|
297
|
-
if (typeof compatibility !== "string") {
|
|
298
|
-
return "Compatibility must be a string";
|
|
299
|
-
}
|
|
300
|
-
if (compatibility.length > MAX_COMPATIBILITY_LENGTH) {
|
|
301
|
-
return `Compatibility exceeds ${MAX_COMPATIBILITY_LENGTH} characters (got ${compatibility.length})`;
|
|
302
|
-
}
|
|
303
|
-
return null;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Check for unexpected fields in frontmatter.
|
|
307
|
-
*/
|
|
308
|
-
function validateFields(frontmatter) {
|
|
309
|
-
const unexpected = [];
|
|
310
|
-
for (const key of Object.keys(frontmatter)) {
|
|
311
|
-
if (!ALLOWED_FIELDS.has(key)) {
|
|
312
|
-
unexpected.push(key);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return unexpected;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Find SKILL.md file (case-insensitive per spec).
|
|
319
|
-
*/
|
|
320
|
-
export function findSkillMd(dir) {
|
|
321
|
-
// Prefer uppercase
|
|
322
|
-
const uppercase = join(dir, "SKILL.md");
|
|
323
|
-
if (existsSync(uppercase)) {
|
|
324
|
-
return uppercase;
|
|
325
|
-
}
|
|
326
|
-
// Fall back to lowercase
|
|
327
|
-
const lowercase = join(dir, "skill.md");
|
|
328
|
-
if (existsSync(lowercase)) {
|
|
329
|
-
return lowercase;
|
|
330
|
-
}
|
|
331
|
-
return null;
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Parse YAML frontmatter from markdown content.
|
|
335
|
-
*/
|
|
336
|
-
export function parseFrontmatter(content) {
|
|
337
|
-
if (!content.trimStart().startsWith("---")) {
|
|
338
|
-
throw new Error("Missing frontmatter delimiters");
|
|
339
|
-
}
|
|
340
|
-
const frontmatterRegex = /^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/;
|
|
341
|
-
const match = content.match(frontmatterRegex);
|
|
342
|
-
if (!match) {
|
|
343
|
-
throw new Error("Frontmatter not properly closed");
|
|
344
|
-
}
|
|
345
|
-
const [, yamlContent, body] = match;
|
|
346
|
-
const parsed = loadYaml(yamlContent ?? "") ?? {};
|
|
347
|
-
if (typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
348
|
-
throw new Error("Frontmatter must be a YAML object");
|
|
349
|
-
}
|
|
350
|
-
const frontmatter = parsed;
|
|
351
|
-
return { frontmatter, body: body };
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Determine resource type from file extension.
|
|
355
|
-
*/
|
|
356
|
-
function getResourceType(filename) {
|
|
357
|
-
const ext = filename.split(".").pop()?.toLowerCase() ?? "";
|
|
358
|
-
const scriptExtensions = ["sh", "bash", "py", "js", "ts", "rb", "pl"];
|
|
359
|
-
const templateExtensions = ["hbs", "ejs", "mustache", "j2", "jinja", "tmpl"];
|
|
360
|
-
const referenceExtensions = ["md", "txt", "json", "yaml", "yml", "toml"];
|
|
361
|
-
if (scriptExtensions.includes(ext))
|
|
362
|
-
return "script";
|
|
363
|
-
if (templateExtensions.includes(ext))
|
|
364
|
-
return "template";
|
|
365
|
-
if (referenceExtensions.includes(ext))
|
|
366
|
-
return "reference";
|
|
367
|
-
return "other";
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Load a single skill from a directory.
|
|
371
|
-
*/
|
|
372
|
-
function loadSkillFromDirectory(skillDir, sourceType) {
|
|
373
|
-
const skillFile = findSkillMd(skillDir);
|
|
374
|
-
const dirName = basename(skillDir);
|
|
375
|
-
if (!skillFile) {
|
|
376
|
-
return new SkillLoadError(`No SKILL.md found in ${skillDir}`, skillDir, "READ_ERROR");
|
|
377
|
-
}
|
|
378
|
-
try {
|
|
379
|
-
const rawContent = readFileSync(skillFile, "utf-8");
|
|
380
|
-
let frontmatter;
|
|
381
|
-
let body;
|
|
382
|
-
try {
|
|
383
|
-
({ frontmatter, body } = parseFrontmatter(rawContent));
|
|
384
|
-
}
|
|
385
|
-
catch (err) {
|
|
386
|
-
return new SkillLoadError(`Invalid frontmatter: ${err instanceof Error ? err.message : String(err)}`, skillFile, "INVALID_YAML");
|
|
387
|
-
}
|
|
388
|
-
// Check for unexpected fields (per Agent Skills spec)
|
|
389
|
-
const unexpectedFields = validateFields(frontmatter);
|
|
390
|
-
if (unexpectedFields.length > 0) {
|
|
391
|
-
return new SkillLoadError(`Unexpected fields: ${unexpectedFields.join(", ")}. Only ${Array.from(ALLOWED_FIELDS).join(", ")} are allowed.`, skillFile, "UNEXPECTED_FIELDS");
|
|
392
|
-
}
|
|
393
|
-
// Validate name
|
|
394
|
-
const name = frontmatter.name;
|
|
395
|
-
const nameError = validateName(name, dirName);
|
|
396
|
-
if (nameError) {
|
|
397
|
-
return new SkillLoadError(nameError, skillFile, "INVALID_NAME");
|
|
398
|
-
}
|
|
399
|
-
// Validate description
|
|
400
|
-
const description = frontmatter.description;
|
|
401
|
-
const descError = validateDescription(description);
|
|
402
|
-
if (descError) {
|
|
403
|
-
return new SkillLoadError(descError, skillFile, "INVALID_DESCRIPTION");
|
|
404
|
-
}
|
|
405
|
-
// Validate compatibility if present
|
|
406
|
-
if (frontmatter.compatibility !== undefined) {
|
|
407
|
-
const compatError = validateCompatibility(frontmatter.compatibility);
|
|
408
|
-
if (compatError) {
|
|
409
|
-
return new SkillLoadError(compatError, skillFile, "INVALID_COMPATIBILITY");
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
for (const field of ["allowed-tools", "builtin-tools"]) {
|
|
413
|
-
const toolListError = validateStringArrayField(frontmatter[field], field);
|
|
414
|
-
if (toolListError) {
|
|
415
|
-
return new SkillLoadError(toolListError, skillFile, "INVALID_TOOL_LIST");
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
// Discover resource directories
|
|
419
|
-
const resourceDirs = {};
|
|
420
|
-
const scriptsDir = join(skillDir, "scripts");
|
|
421
|
-
const referenceDir = join(skillDir, "reference");
|
|
422
|
-
const referencesDir = join(skillDir, "references");
|
|
423
|
-
const assetsDir = join(skillDir, "assets");
|
|
424
|
-
const toolboxDir = join(skillDir, "toolbox");
|
|
425
|
-
const mcpJsonPath = join(skillDir, "mcp.json");
|
|
426
|
-
if (existsSync(scriptsDir) && statSync(scriptsDir).isDirectory()) {
|
|
427
|
-
resourceDirs.scriptsDir = scriptsDir;
|
|
428
|
-
}
|
|
429
|
-
if (existsSync(referenceDir) && statSync(referenceDir).isDirectory()) {
|
|
430
|
-
resourceDirs.referenceDir = referenceDir;
|
|
431
|
-
}
|
|
432
|
-
if (existsSync(referencesDir) && statSync(referencesDir).isDirectory()) {
|
|
433
|
-
resourceDirs.referencesDir = referencesDir;
|
|
434
|
-
}
|
|
435
|
-
if (existsSync(assetsDir) && statSync(assetsDir).isDirectory()) {
|
|
436
|
-
resourceDirs.assetsDir = assetsDir;
|
|
437
|
-
}
|
|
438
|
-
if (existsSync(toolboxDir) && statSync(toolboxDir).isDirectory()) {
|
|
439
|
-
resourceDirs.toolboxDir = toolboxDir;
|
|
440
|
-
}
|
|
441
|
-
if (existsSync(mcpJsonPath) && statSync(mcpJsonPath).isFile()) {
|
|
442
|
-
resourceDirs.mcpJsonPath = mcpJsonPath;
|
|
443
|
-
}
|
|
444
|
-
// Discover bundled resources (legacy flat structure)
|
|
445
|
-
const resources = [];
|
|
446
|
-
try {
|
|
447
|
-
const files = readdirSync(skillDir);
|
|
448
|
-
for (const file of files) {
|
|
449
|
-
if (file.toLowerCase() === "skill.md")
|
|
450
|
-
continue;
|
|
451
|
-
if (LEGACY_FLAT_RESOURCE_EXCLUDES.has(file.toLowerCase())) {
|
|
452
|
-
continue;
|
|
453
|
-
}
|
|
454
|
-
const filePath = join(skillDir, file);
|
|
455
|
-
const stat = statSync(filePath);
|
|
456
|
-
if (stat.isFile()) {
|
|
457
|
-
resources.push({
|
|
458
|
-
name: file,
|
|
459
|
-
path: filePath,
|
|
460
|
-
type: getResourceType(file),
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
catch (err) {
|
|
466
|
-
logger.debug("Error scanning skill resources", {
|
|
467
|
-
skillDir,
|
|
468
|
-
error: err instanceof Error ? err.message : String(err),
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
const skill = {
|
|
472
|
-
name,
|
|
473
|
-
description,
|
|
474
|
-
license: stringValue(frontmatter.license),
|
|
475
|
-
compatibility: stringValue(frontmatter.compatibility),
|
|
476
|
-
allowedTools: stringArrayValue(frontmatter["allowed-tools"]),
|
|
477
|
-
builtinTools: stringArrayValue(frontmatter["builtin-tools"]),
|
|
478
|
-
argumentHint: stringValue(frontmatter["argument-hint"]),
|
|
479
|
-
model: stringValue(frontmatter.model),
|
|
480
|
-
mode: stringValue(frontmatter.mode),
|
|
481
|
-
isolatedContext: booleanValue(frontmatter.isolatedContext),
|
|
482
|
-
metadata: metadataRecordValue(frontmatter.metadata),
|
|
483
|
-
// Legacy fields for backwards compatibility
|
|
484
|
-
tags: Array.isArray(frontmatter.tags)
|
|
485
|
-
? frontmatter.tags
|
|
486
|
-
: undefined,
|
|
487
|
-
author: typeof frontmatter.author === "string" ? frontmatter.author : undefined,
|
|
488
|
-
version: typeof frontmatter.version === "string"
|
|
489
|
-
? frontmatter.version
|
|
490
|
-
: undefined,
|
|
491
|
-
triggers: Array.isArray(frontmatter.triggers)
|
|
492
|
-
? frontmatter.triggers
|
|
493
|
-
: undefined,
|
|
494
|
-
sourcePath: skillDir,
|
|
495
|
-
sourceType,
|
|
496
|
-
content: body.trim(),
|
|
497
|
-
contentSha: computeSkillTrustSha(name, body.trim(), resources, resourceDirs),
|
|
498
|
-
resources,
|
|
499
|
-
resourceDirs,
|
|
500
|
-
};
|
|
501
|
-
logger.debug("Loaded skill", {
|
|
502
|
-
name: skill.name,
|
|
503
|
-
sourceType,
|
|
504
|
-
resourceCount: resources.length,
|
|
505
|
-
});
|
|
506
|
-
return skill;
|
|
507
|
-
}
|
|
508
|
-
catch (err) {
|
|
509
|
-
return new SkillLoadError(`Error loading skill: ${err instanceof Error ? err.message : String(err)}`, skillDir, "READ_ERROR");
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Scan a directory for skill subdirectories.
|
|
514
|
-
*/
|
|
515
|
-
function scanSkillsDirectory(dir, sourceType) {
|
|
516
|
-
if (!existsSync(dir)) {
|
|
517
|
-
return { skills: [], errors: [] };
|
|
518
|
-
}
|
|
519
|
-
const skills = [];
|
|
520
|
-
const errors = [];
|
|
521
|
-
try {
|
|
522
|
-
// Check for SKILL.md in root (single skill in skills dir)
|
|
523
|
-
const rootSkillFile = findSkillMd(dir);
|
|
524
|
-
if (rootSkillFile) {
|
|
525
|
-
const result = loadSkillFromDirectory(dir, sourceType);
|
|
526
|
-
if (result instanceof SkillLoadError) {
|
|
527
|
-
errors.push(result);
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
skills.push(result);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
// Check subdirectories
|
|
534
|
-
const entries = readdirSync(dir);
|
|
535
|
-
for (const entry of entries) {
|
|
536
|
-
const entryPath = join(dir, entry);
|
|
537
|
-
const stat = statSync(entryPath);
|
|
538
|
-
if (stat.isDirectory()) {
|
|
539
|
-
const result = loadSkillFromDirectory(entryPath, sourceType);
|
|
540
|
-
if (result instanceof SkillLoadError) {
|
|
541
|
-
errors.push(result);
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
skills.push(result);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
catch (err) {
|
|
550
|
-
logger.warn("Error scanning skills directory", {
|
|
551
|
-
dir,
|
|
552
|
-
error: err instanceof Error ? err.message : String(err),
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
return { skills, errors };
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* Get the system skills directory bundled with the package.
|
|
559
|
-
*
|
|
560
|
-
* Resolves the `skills/` directory relative to the package root,
|
|
561
|
-
* which works whether running from source (repo) or installed via npm.
|
|
562
|
-
*/
|
|
563
|
-
function getSystemSkillsDir() {
|
|
564
|
-
// Allow explicit override for non-standard packaging layouts
|
|
565
|
-
const override = process.env.MAESTRO_SYSTEM_SKILLS_DIR;
|
|
566
|
-
if (override && existsSync(override)) {
|
|
567
|
-
return override;
|
|
568
|
-
}
|
|
569
|
-
// import.meta.url points to this file — either src/skills/loader.ts (dev)
|
|
570
|
-
// or dist/cli.js (bundled). Walk up to find the package root by looking
|
|
571
|
-
// for a directory that contains both package.json and skills/.
|
|
572
|
-
const thisFile = fileURLToPath(import.meta.url);
|
|
573
|
-
let dir = dirname(thisFile);
|
|
574
|
-
for (let i = 0; i < 5; i++) {
|
|
575
|
-
const skillsDir = join(dir, "skills");
|
|
576
|
-
if (existsSync(join(dir, "package.json")) && existsSync(skillsDir)) {
|
|
577
|
-
return skillsDir;
|
|
578
|
-
}
|
|
579
|
-
const parent = dirname(dir);
|
|
580
|
-
if (parent === dir)
|
|
581
|
-
break;
|
|
582
|
-
dir = parent;
|
|
583
|
-
}
|
|
584
|
-
// Fallback: assume 3 levels up (src/skills/loader.ts layout)
|
|
585
|
-
const packageRoot = dirname(dirname(dirname(thisFile)));
|
|
586
|
-
return join(packageRoot, "skills");
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* Load all available skills from system, user, and project directories.
|
|
590
|
-
*
|
|
591
|
-
* Priority (highest wins): project > user > system.
|
|
592
|
-
* System skills are bundled with the package and provide default capabilities.
|
|
593
|
-
*
|
|
594
|
-
* @param workspaceDir - The current workspace/project directory
|
|
595
|
-
* @returns Object with loaded skills and any errors
|
|
596
|
-
*/
|
|
597
|
-
export function loadSkills(workspaceDir, options) {
|
|
598
|
-
const includeSystem = options?.includeSystem ?? true;
|
|
599
|
-
const systemSkillsDir = includeSystem ? getSystemSkillsDir() : null;
|
|
600
|
-
const userSkillsDir = join(PATHS.MAESTRO_HOME, "skills");
|
|
601
|
-
const projectSkillsDir = join(workspaceDir, ".maestro", "skills");
|
|
602
|
-
const packageResources = loadConfiguredPackageResources(workspaceDir, {
|
|
603
|
-
profileName: options?.profileName,
|
|
604
|
-
cliOverrides: options?.cliOverrides,
|
|
605
|
-
});
|
|
606
|
-
const userPackageSkillDirs = packageResources.skills.user;
|
|
607
|
-
const projectPackageSkillDirs = packageResources.skills.project;
|
|
608
|
-
logger.debug("Scanning for skills", {
|
|
609
|
-
systemSkillsDir: systemSkillsDir ?? "(disabled)",
|
|
610
|
-
userSkillsDir,
|
|
611
|
-
projectSkillsDir,
|
|
612
|
-
userPackageSkillDirs,
|
|
613
|
-
projectPackageSkillDirs,
|
|
614
|
-
});
|
|
615
|
-
const systemResult = systemSkillsDir
|
|
616
|
-
? scanSkillsDirectory(systemSkillsDir, "system")
|
|
617
|
-
: { skills: [], errors: [] };
|
|
618
|
-
const userResult = [...userPackageSkillDirs, userSkillsDir].reduce((result, dir) => {
|
|
619
|
-
const next = scanSkillsDirectory(dir, "user");
|
|
620
|
-
result.skills.push(...next.skills);
|
|
621
|
-
result.errors.push(...next.errors);
|
|
622
|
-
return result;
|
|
623
|
-
}, { skills: [], errors: [] });
|
|
624
|
-
const projectResult = [...projectPackageSkillDirs, projectSkillsDir].reduce((result, dir) => {
|
|
625
|
-
const next = scanSkillsDirectory(dir, "project");
|
|
626
|
-
result.skills.push(...next.skills);
|
|
627
|
-
result.errors.push(...next.errors);
|
|
628
|
-
return result;
|
|
629
|
-
}, { skills: [], errors: [] });
|
|
630
|
-
// Priority: project > user > system (last writer wins)
|
|
631
|
-
const skillMap = new Map();
|
|
632
|
-
for (const skill of systemResult.skills) {
|
|
633
|
-
skillMap.set(skill.name.toLowerCase(), skill);
|
|
634
|
-
}
|
|
635
|
-
for (const skill of userResult.skills) {
|
|
636
|
-
const existing = skillMap.get(skill.name.toLowerCase());
|
|
637
|
-
if (existing) {
|
|
638
|
-
logger.debug("User skill overrides system skill", {
|
|
639
|
-
name: skill.name,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
skillMap.set(skill.name.toLowerCase(), skill);
|
|
643
|
-
}
|
|
644
|
-
for (const skill of projectResult.skills) {
|
|
645
|
-
const existing = skillMap.get(skill.name.toLowerCase());
|
|
646
|
-
if (existing) {
|
|
647
|
-
logger.debug("Project skill overrides existing skill", {
|
|
648
|
-
name: skill.name,
|
|
649
|
-
overridden: existing.sourceType,
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
skillMap.set(skill.name.toLowerCase(), skill);
|
|
653
|
-
}
|
|
654
|
-
const allSkills = Array.from(skillMap.values());
|
|
655
|
-
const allErrors = [
|
|
656
|
-
...systemResult.errors,
|
|
657
|
-
...userResult.errors,
|
|
658
|
-
...projectResult.errors,
|
|
659
|
-
];
|
|
660
|
-
logger.info("Finished loading skills", {
|
|
661
|
-
total: allSkills.length,
|
|
662
|
-
errors: allErrors.length,
|
|
663
|
-
system: systemResult.skills.length,
|
|
664
|
-
user: userResult.skills.length,
|
|
665
|
-
project: projectResult.skills.length,
|
|
666
|
-
userPackages: userPackageSkillDirs.length,
|
|
667
|
-
projectPackages: projectPackageSkillDirs.length,
|
|
668
|
-
});
|
|
669
|
-
return { skills: allSkills, errors: allErrors };
|
|
670
|
-
}
|
|
671
|
-
/**
|
|
672
|
-
* Find a skill by name (case-insensitive).
|
|
673
|
-
*/
|
|
674
|
-
export function findSkill(skills, name) {
|
|
675
|
-
const normalizedName = name.toLowerCase();
|
|
676
|
-
return skills.find((s) => s.name.toLowerCase() === normalizedName);
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Find skills that match a given query (checks name, description, tags, triggers).
|
|
680
|
-
*/
|
|
681
|
-
export function searchSkills(skills, query) {
|
|
682
|
-
const normalizedQuery = query.toLowerCase();
|
|
683
|
-
return skills.filter((skill) => {
|
|
684
|
-
// Check name
|
|
685
|
-
if (skill.name.toLowerCase().includes(normalizedQuery))
|
|
686
|
-
return true;
|
|
687
|
-
// Check description
|
|
688
|
-
if (skill.description.toLowerCase().includes(normalizedQuery))
|
|
689
|
-
return true;
|
|
690
|
-
// Check tags
|
|
691
|
-
if (skill.tags?.some((t) => t.toLowerCase().includes(normalizedQuery))) {
|
|
692
|
-
return true;
|
|
693
|
-
}
|
|
694
|
-
// Check triggers
|
|
695
|
-
if (skill.triggers?.some((t) => t.toLowerCase().includes(normalizedQuery))) {
|
|
696
|
-
return true;
|
|
697
|
-
}
|
|
698
|
-
return false;
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Convert skill to dictionary (per Agent Skills SDK).
|
|
703
|
-
* Excludes undefined values.
|
|
704
|
-
*/
|
|
705
|
-
export function skillToDict(skill) {
|
|
706
|
-
const result = {
|
|
707
|
-
name: skill.name,
|
|
708
|
-
description: skill.description,
|
|
709
|
-
};
|
|
710
|
-
if (skill.license) {
|
|
711
|
-
result.license = skill.license;
|
|
712
|
-
}
|
|
713
|
-
if (skill.compatibility) {
|
|
714
|
-
result.compatibility = skill.compatibility;
|
|
715
|
-
}
|
|
716
|
-
if (skill.allowedTools) {
|
|
717
|
-
result["allowed-tools"] = skill.allowedTools;
|
|
718
|
-
}
|
|
719
|
-
if (skill.builtinTools) {
|
|
720
|
-
result["builtin-tools"] = skill.builtinTools;
|
|
721
|
-
}
|
|
722
|
-
if (skill.argumentHint) {
|
|
723
|
-
result["argument-hint"] = skill.argumentHint;
|
|
724
|
-
}
|
|
725
|
-
if (skill.model) {
|
|
726
|
-
result.model = skill.model;
|
|
727
|
-
}
|
|
728
|
-
if (skill.mode) {
|
|
729
|
-
result.mode = skill.mode;
|
|
730
|
-
}
|
|
731
|
-
if (skill.isolatedContext !== undefined) {
|
|
732
|
-
result.isolatedContext = skill.isolatedContext;
|
|
733
|
-
}
|
|
734
|
-
if (skill.metadata && Object.keys(skill.metadata).length > 0) {
|
|
735
|
-
result.metadata = skill.metadata;
|
|
736
|
-
}
|
|
737
|
-
return result;
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* Convert skill to JSON string.
|
|
741
|
-
*/
|
|
742
|
-
export function skillToJson(skill) {
|
|
743
|
-
return JSON.stringify(skillToDict(skill), null, 2);
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Escape XML special characters.
|
|
747
|
-
*/
|
|
748
|
-
function escapeXml(str) {
|
|
749
|
-
return str
|
|
750
|
-
.replace(/&/g, "&")
|
|
751
|
-
.replace(/</g, "<")
|
|
752
|
-
.replace(/>/g, ">")
|
|
753
|
-
.replace(/"/g, """)
|
|
754
|
-
.replace(/'/g, "'");
|
|
755
|
-
}
|
|
756
|
-
/**
|
|
757
|
-
* Generate XML prompt block for available skills (per Agent Skills SDK).
|
|
758
|
-
*
|
|
759
|
-
* This generates the <available_skills> XML block that should be included
|
|
760
|
-
* in system prompts to make skills discoverable by the agent.
|
|
761
|
-
*/
|
|
762
|
-
export function skillsToPrompt(skills) {
|
|
763
|
-
if (skills.length === 0) {
|
|
764
|
-
return "<available_skills>\n</available_skills>";
|
|
765
|
-
}
|
|
766
|
-
const lines = ["<available_skills>"];
|
|
767
|
-
for (const skill of skills) {
|
|
768
|
-
const description = promptSafeText(skill.description, MAX_DESCRIPTION_LENGTH);
|
|
769
|
-
lines.push("<skill>");
|
|
770
|
-
lines.push(` <name>${escapeXml(skill.name)}</name>`);
|
|
771
|
-
lines.push(` <description>${escapeXml(description ?? "")}</description>`);
|
|
772
|
-
lines.push(` <location>${escapeXml(join(skill.sourcePath, "SKILL.md"))}</location>`);
|
|
773
|
-
lines.push("</skill>");
|
|
774
|
-
}
|
|
775
|
-
lines.push("</available_skills>");
|
|
776
|
-
return lines.join("\n");
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Format skill for display in a list.
|
|
780
|
-
*/
|
|
781
|
-
export function formatSkillListItem(skill) {
|
|
782
|
-
const sourceLabels = {
|
|
783
|
-
service: "(service)",
|
|
784
|
-
system: "(system)",
|
|
785
|
-
user: "(user)",
|
|
786
|
-
project: "(project)",
|
|
787
|
-
};
|
|
788
|
-
const source = sourceLabels[skill.sourceType];
|
|
789
|
-
const tags = skill.tags?.length ? ` [${skill.tags.join(", ")}]` : "";
|
|
790
|
-
return `${skill.name} ${source}${tags} - ${skill.description}`;
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Format skill content for injection into conversation.
|
|
794
|
-
*/
|
|
795
|
-
export function formatSkillForInjection(skill) {
|
|
796
|
-
const lines = [];
|
|
797
|
-
lines.push(`# Skill: ${skill.name}`);
|
|
798
|
-
lines.push("");
|
|
799
|
-
lines.push(`> ${skill.description}`);
|
|
800
|
-
lines.push("");
|
|
801
|
-
// Provenance line: lets the model and any human reading the transcript
|
|
802
|
-
// correlate this skill activation to a specific prompt body. `source`
|
|
803
|
-
// distinguishes built-in / project / user / service. `contentSha` is
|
|
804
|
-
// stable per body (see #2629 — trust UX keys on this).
|
|
805
|
-
lines.push(`<!-- source=${skill.sourceType} sha=${skill.contentSha} -->`);
|
|
806
|
-
lines.push("");
|
|
807
|
-
if (skill.tags?.length) {
|
|
808
|
-
lines.push(`**Tags:** ${skill.tags.join(", ")}`);
|
|
809
|
-
lines.push("");
|
|
810
|
-
}
|
|
811
|
-
if (skill.resources.length > 0) {
|
|
812
|
-
lines.push("## Bundled Resources");
|
|
813
|
-
lines.push("");
|
|
814
|
-
lines.push("You can access these bundled resources using the Read tool:");
|
|
815
|
-
lines.push("");
|
|
816
|
-
for (const resource of skill.resources) {
|
|
817
|
-
lines.push(`- \`${resource.path}\` (${resource.type})`);
|
|
818
|
-
}
|
|
819
|
-
lines.push("");
|
|
820
|
-
}
|
|
821
|
-
if (skill.resourceDirs.referenceDir || skill.resourceDirs.referencesDir) {
|
|
822
|
-
lines.push("## Reference Resources");
|
|
823
|
-
lines.push("");
|
|
824
|
-
lines.push("Load detailed references only when needed:");
|
|
825
|
-
if (skill.resourceDirs.referenceDir) {
|
|
826
|
-
lines.push(`- \`${skill.resourceDirs.referenceDir}\``);
|
|
827
|
-
}
|
|
828
|
-
if (skill.resourceDirs.referencesDir) {
|
|
829
|
-
lines.push(`- \`${skill.resourceDirs.referencesDir}\``);
|
|
830
|
-
}
|
|
831
|
-
lines.push("");
|
|
832
|
-
}
|
|
833
|
-
if (skill.resourceDirs.toolboxDir || skill.resourceDirs.mcpJsonPath) {
|
|
834
|
-
lines.push("## Tool Package");
|
|
835
|
-
lines.push("");
|
|
836
|
-
if (skill.resourceDirs.toolboxDir) {
|
|
837
|
-
lines.push(`- Toolbox executables are bundled under \`${skill.resourceDirs.toolboxDir}\`.`);
|
|
838
|
-
}
|
|
839
|
-
if (skill.resourceDirs.mcpJsonPath) {
|
|
840
|
-
lines.push(`- Bundled MCP config: \`${skill.resourceDirs.mcpJsonPath}\`.`);
|
|
841
|
-
}
|
|
842
|
-
lines.push("");
|
|
843
|
-
}
|
|
844
|
-
lines.push("## Instructions");
|
|
845
|
-
lines.push("");
|
|
846
|
-
lines.push(skill.content);
|
|
847
|
-
return lines.join("\n");
|
|
848
|
-
}
|
|
849
|
-
/**
|
|
850
|
-
* Get skill summary for system prompt (lists available skills).
|
|
851
|
-
* @deprecated Use skillsToPrompt for XML format per Agent Skills SDK
|
|
852
|
-
*/
|
|
853
|
-
export function getSkillsSummary(skills) {
|
|
854
|
-
if (skills.length === 0) {
|
|
855
|
-
return "";
|
|
856
|
-
}
|
|
857
|
-
const lines = [];
|
|
858
|
-
lines.push("## Available Skills");
|
|
859
|
-
lines.push("");
|
|
860
|
-
lines.push("When you recognize that a task matches one of the available skills listed below, " +
|
|
861
|
-
"use the Skill tool to load the full skill instructions.");
|
|
862
|
-
lines.push("");
|
|
863
|
-
for (const skill of skills) {
|
|
864
|
-
const tags = skill.tags?.length ? ` [${skill.tags.join(", ")}]` : "";
|
|
865
|
-
const description = promptSafeText(skill.description, MAX_DESCRIPTION_LENGTH) ?? "";
|
|
866
|
-
lines.push(`- **${skill.name}**${tags}: ${description}`);
|
|
867
|
-
if (skill.triggers?.length) {
|
|
868
|
-
lines.push(` - Triggers: ${skill.triggers.join(", ")}`);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
lines.push("");
|
|
872
|
-
return lines.join("\n");
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* Progressive Skill Disclosure (#857)
|
|
876
|
-
*
|
|
877
|
-
* Format skill metadata only (name + description) for system prompt injection.
|
|
878
|
-
* The agent can then use the `read` tool to load full SKILL.md content on-demand.
|
|
879
|
-
*
|
|
880
|
-
* Benefits:
|
|
881
|
-
* - Context efficiency: ~10 tokens per skill vs ~500+ for full content
|
|
882
|
-
* - Scalability: 20 skills use ~200 tokens instead of ~10,000
|
|
883
|
-
* - Self-directed: Agent loads what it needs when it needs it
|
|
884
|
-
*/
|
|
885
|
-
/**
|
|
886
|
-
* Format a single skill's metadata for system prompt (XML format).
|
|
887
|
-
*
|
|
888
|
-
* Returns only name and description in a self-closing XML tag.
|
|
889
|
-
* Follows the Agent Skills specification's progressive disclosure pattern.
|
|
890
|
-
*
|
|
891
|
-
* @param skill - The loaded skill
|
|
892
|
-
* @returns XML-formatted skill metadata
|
|
893
|
-
*
|
|
894
|
-
* @example
|
|
895
|
-
* ```xml
|
|
896
|
-
* <skill name="test-runner" description="Run and debug test suites" />
|
|
897
|
-
* <!-- source: ~/.maestro/skills/test-runner -->
|
|
898
|
-
* ```
|
|
899
|
-
*/
|
|
900
|
-
export function formatSkillMetadataOnly(skill) {
|
|
901
|
-
// Escape XML special characters
|
|
902
|
-
const escapeName = skill.name
|
|
903
|
-
.replace(/&/g, "&")
|
|
904
|
-
.replace(/</g, "<")
|
|
905
|
-
.replace(/>/g, ">")
|
|
906
|
-
.replace(/"/g, """);
|
|
907
|
-
const description = promptSafeText(skill.description, MAX_DESCRIPTION_LENGTH);
|
|
908
|
-
const escapeDesc = (description ?? "")
|
|
909
|
-
.replace(/&/g, "&")
|
|
910
|
-
.replace(/</g, "<")
|
|
911
|
-
.replace(/>/g, ">")
|
|
912
|
-
.replace(/"/g, """);
|
|
913
|
-
// Include source path as XML comment for debugging
|
|
914
|
-
return `<skill name="${escapeName}" description="${escapeDesc}" />\n<!-- source: ${skill.sourcePath} -->`;
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* Format multiple skills for system prompt with on-demand loading instructions.
|
|
918
|
-
*
|
|
919
|
-
* Returns XML list of skill metadata plus instructions for the agent to load
|
|
920
|
-
* full skill content using the `read` tool when needed.
|
|
921
|
-
*
|
|
922
|
-
* This is the primary function for progressive skill disclosure.
|
|
923
|
-
*
|
|
924
|
-
* @param skills - Array of loaded skills
|
|
925
|
-
* @returns XML-formatted skills list with loading instructions, or empty string if no skills
|
|
926
|
-
*
|
|
927
|
-
* @example
|
|
928
|
-
* ```xml
|
|
929
|
-
* <available_skills>
|
|
930
|
-
* <skill name="test-runner" description="..." />
|
|
931
|
-
* <skill name="git-workflow" description="..." />
|
|
932
|
-
* </available_skills>
|
|
933
|
-
*
|
|
934
|
-
* When a skill is relevant to the user's request, use the `read` tool to load
|
|
935
|
-
* the full skill instructions from the source path shown in the comment.
|
|
936
|
-
* ```
|
|
937
|
-
*/
|
|
938
|
-
export function formatSkillsForSystemPrompt(skills) {
|
|
939
|
-
if (skills.length === 0) {
|
|
940
|
-
return "";
|
|
941
|
-
}
|
|
942
|
-
const lines = [];
|
|
943
|
-
lines.push("<available_skills>");
|
|
944
|
-
for (const skill of skills) {
|
|
945
|
-
lines.push(` ${formatSkillMetadataOnly(skill)}`);
|
|
946
|
-
}
|
|
947
|
-
lines.push("</available_skills>");
|
|
948
|
-
lines.push("");
|
|
949
|
-
lines.push("When a skill is relevant to the user's request, use the `read` tool to load " +
|
|
950
|
-
"the full SKILL.md from the skill's source directory (shown in comments above). " +
|
|
951
|
-
"For example: `read ~/.maestro/skills/test-runner/SKILL.md` or " +
|
|
952
|
-
"`read .maestro/skills/custom-skill/SKILL.md`. " +
|
|
953
|
-
"This progressive loading keeps the system prompt lean while making all skill " +
|
|
954
|
-
"capabilities available on-demand.");
|
|
955
|
-
return lines.join("\n");
|
|
956
|
-
}
|
|
957
|
-
//# sourceMappingURL=loader.js.map
|