open-multi-agent-kit 0.79.1 → 0.79.3
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/AGENTS.md +679 -0
- package/CHANGELOG.md +414 -4237
- package/CLAUDE.md +110 -0
- package/DESIGN.md +358 -0
- package/GEMINI.md +8 -0
- package/LICENSE +21 -0
- package/MATURITY.md +76 -0
- package/README.md +71 -626
- package/ROADMAP.md +124 -0
- package/SECURITY.md +83 -0
- package/WORKER_MANIFEST.md +35 -0
- package/dist/adapters/commandcode/commandcode-cli-adapter.d.ts +10 -0
- package/dist/adapters/commandcode/commandcode-cli-adapter.js +57 -0
- package/dist/adapters/kimi/ascii-art.d.ts +1 -0
- package/dist/adapters/kimi/ascii-art.js +23 -0
- package/dist/adapters/kimi/banner.d.ts +53 -0
- package/dist/adapters/kimi/banner.js +284 -0
- package/dist/adapters/kimi/bug-filter.d.ts +15 -0
- package/dist/adapters/kimi/bug-filter.js +150 -0
- package/dist/adapters/kimi/capability.d.ts +25 -0
- package/dist/adapters/kimi/capability.js +68 -0
- package/dist/adapters/kimi/continue-prompt-guard.d.ts +20 -0
- package/dist/adapters/kimi/continue-prompt-guard.js +70 -0
- package/dist/adapters/kimi/isolated-home.d.ts +21 -0
- package/dist/adapters/kimi/isolated-home.js +270 -0
- package/dist/adapters/kimi/runner.d.ts +71 -0
- package/dist/adapters/kimi/runner.js +1084 -0
- package/dist/adapters/kimi/simple-art.d.ts +1 -0
- package/dist/adapters/kimi/simple-art.js +1 -0
- package/dist/adapters/kimi/statusline.d.ts +26 -0
- package/dist/adapters/kimi/statusline.js +142 -0
- package/dist/adapters/kimi/usage.d.ts +52 -0
- package/dist/adapters/kimi/usage.js +481 -0
- package/dist/adapters/kimi/wire-client.d.ts +142 -0
- package/dist/adapters/kimi/wire-client.js +725 -0
- package/dist/adapters/kimi/wire-protocol-types.d.ts +549 -0
- package/dist/adapters/kimi/wire-protocol-types.js +59 -0
- package/dist/adapters/opencode/opencode-cli-adapter.d.ts +9 -0
- package/dist/adapters/opencode/opencode-cli-adapter.js +43 -0
- package/dist/awareness/classifiers/browser-console-classifier.d.ts +3 -0
- package/dist/awareness/classifiers/browser-console-classifier.js +47 -0
- package/dist/awareness/classifiers/evidence-gap-classifier.d.ts +3 -0
- package/dist/awareness/classifiers/evidence-gap-classifier.js +31 -0
- package/dist/awareness/classifiers/stalled-run-classifier.d.ts +2 -0
- package/dist/awareness/classifiers/stalled-run-classifier.js +24 -0
- package/dist/awareness/notice-store.d.ts +6 -0
- package/dist/awareness/notice-store.js +91 -0
- package/dist/awareness/notice.d.ts +17 -0
- package/dist/awareness/notice.js +1 -0
- package/dist/awareness/noticer-engine.d.ts +42 -0
- package/dist/awareness/noticer-engine.js +63 -0
- package/dist/awareness/router.d.ts +6 -0
- package/dist/awareness/router.js +46 -0
- package/dist/benchmark/contracts.d.ts +116 -0
- package/dist/benchmark/contracts.js +6 -0
- package/dist/benchmark/fixtures.d.ts +11 -0
- package/dist/benchmark/fixtures.js +124 -0
- package/dist/benchmark/harness.d.ts +13 -0
- package/dist/benchmark/harness.js +191 -0
- package/dist/benchmark/shadow-mode.d.ts +17 -0
- package/dist/benchmark/shadow-mode.js +95 -0
- package/dist/brand/matrix-rain.d.ts +15 -0
- package/dist/brand/matrix-rain.js +132 -0
- package/dist/brand/night-city.theme.json +80 -0
- package/dist/brand/omk-matrix-art.d.ts +1 -0
- package/dist/brand/omk-matrix-art.js +10 -0
- package/dist/brand/omk-simple-art.d.ts +7 -0
- package/dist/brand/omk-simple-art.js +13 -0
- package/dist/brand/palette.d.ts +90 -0
- package/dist/brand/palette.js +129 -0
- package/dist/brand/rust-forge.theme.json +216 -0
- package/dist/brand/theme-compiled.d.ts +61 -0
- package/dist/brand/theme-compiled.js +241 -0
- package/dist/brand/theme.d.ts +41 -0
- package/dist/brand/theme.js +275 -0
- package/dist/browser/browser-feedback.d.ts +10 -0
- package/dist/browser/browser-feedback.js +84 -0
- package/dist/browser/browser-observer.d.ts +21 -0
- package/dist/browser/browser-observer.js +159 -0
- package/dist/browser/browser-session.d.ts +26 -0
- package/dist/browser/browser-session.js +63 -0
- package/dist/cli/command-registry.d.ts +2 -0
- package/dist/cli/command-registry.js +20 -0
- package/dist/cli/input/argv-parser.d.ts +16 -0
- package/dist/cli/input/argv-parser.js +50 -0
- package/dist/cli/input/command-envelope.d.ts +16 -0
- package/dist/cli/input/command-envelope.js +64 -0
- package/dist/cli/input/config-loader.d.ts +16 -0
- package/dist/cli/input/config-loader.js +48 -0
- package/dist/cli/input/index.d.ts +8 -0
- package/dist/cli/input/index.js +8 -0
- package/dist/cli/input/input-resolver.d.ts +13 -0
- package/dist/cli/input/input-resolver.js +50 -0
- package/dist/cli/input/validator.d.ts +10 -0
- package/dist/cli/input/validator.js +37 -0
- package/dist/cli/main.d.ts +4 -0
- package/dist/cli/main.js +34 -0
- package/dist/cli/output/error-renderer.d.ts +10 -0
- package/dist/cli/output/error-renderer.js +68 -0
- package/dist/cli/output/hash.d.ts +1 -0
- package/dist/cli/output/hash.js +10 -0
- package/dist/cli/output/index.d.ts +9 -0
- package/dist/cli/output/index.js +9 -0
- package/dist/cli/output/json-renderer.d.ts +7 -0
- package/dist/cli/output/json-renderer.js +35 -0
- package/dist/cli/output/markdown-renderer.d.ts +5 -0
- package/dist/cli/output/markdown-renderer.js +86 -0
- package/dist/cli/output/nlp-renderer.d.ts +7 -0
- package/dist/cli/output/nlp-renderer.js +96 -0
- package/dist/cli/output/output-router.d.ts +5 -0
- package/dist/cli/output/output-router.js +33 -0
- package/dist/cli/register-awareness-commands.d.ts +2 -0
- package/dist/cli/register-awareness-commands.js +133 -0
- package/dist/cli/register-basic-commands.d.ts +2 -0
- package/dist/cli/register-basic-commands.js +489 -0
- package/dist/cli/register-integration-commands.d.ts +2 -0
- package/dist/cli/register-integration-commands.js +59 -0
- package/dist/cli/register-mcp-dag-cron-screenshot-commands.d.ts +2 -0
- package/dist/cli/register-mcp-dag-cron-screenshot-commands.js +275 -0
- package/dist/cli/register-openai-codex-commands.d.ts +2 -0
- package/dist/cli/register-openai-codex-commands.js +55 -0
- package/dist/cli/register-provider-commands.d.ts +2 -0
- package/dist/cli/register-provider-commands.js +244 -0
- package/dist/cli/register-spec-agent-goal-commands.d.ts +2 -0
- package/dist/cli/register-spec-agent-goal-commands.js +486 -0
- package/dist/cli/register-tool-commands.d.ts +2 -0
- package/dist/cli/register-tool-commands.js +202 -0
- package/dist/cli/register-workflow-commands.d.ts +2 -0
- package/dist/cli/register-workflow-commands.js +158 -0
- package/dist/cli/registry/core.d.ts +2 -0
- package/dist/cli/registry/core.js +27 -0
- package/dist/cli/registry/session.d.ts +2 -0
- package/dist/cli/registry/session.js +137 -0
- package/dist/cli/registry/system.d.ts +2 -0
- package/dist/cli/registry/system.js +95 -0
- package/dist/cli/registry/tooling.d.ts +2 -0
- package/dist/cli/registry/tooling.js +112 -0
- package/dist/cli/registry/visual.d.ts +2 -0
- package/dist/cli/registry/visual.js +91 -0
- package/dist/cli/release-promotion-gate.d.ts +21 -0
- package/dist/cli/release-promotion-gate.js +93 -0
- package/dist/cli/root.d.ts +12 -0
- package/dist/cli/root.js +121 -0
- package/dist/cli/runtime/capability-selector.d.ts +18 -0
- package/dist/cli/runtime/capability-selector.js +208 -0
- package/dist/cli/runtime/cli-runtime.d.ts +10 -0
- package/dist/cli/runtime/cli-runtime.js +35 -0
- package/dist/cli/runtime/cli-writer.d.ts +18 -0
- package/dist/cli/runtime/cli-writer.js +87 -0
- package/dist/cli/runtime/command-bus.d.ts +45 -0
- package/dist/cli/runtime/command-bus.js +145 -0
- package/dist/cli/runtime/event-bus.d.ts +12 -0
- package/dist/cli/runtime/event-bus.js +31 -0
- package/dist/cli/runtime/generic-provider-adapter.d.ts +24 -0
- package/dist/cli/runtime/generic-provider-adapter.js +38 -0
- package/dist/cli/runtime/index.d.ts +17 -0
- package/dist/cli/runtime/index.js +18 -0
- package/dist/cli/runtime/intent-classifier.d.ts +16 -0
- package/dist/cli/runtime/intent-classifier.js +113 -0
- package/dist/cli/runtime/plan-controller.d.ts +7 -0
- package/dist/cli/runtime/plan-controller.js +29 -0
- package/dist/cli/runtime/provider-adapter-registry.d.ts +32 -0
- package/dist/cli/runtime/provider-adapter-registry.js +60 -0
- package/dist/cli/runtime/provider-event-normalizer.d.ts +19 -0
- package/dist/cli/runtime/provider-event-normalizer.js +150 -0
- package/dist/cli/runtime/run-controller.d.ts +7 -0
- package/dist/cli/runtime/run-controller.js +30 -0
- package/dist/cli/runtime/runtime-sidecar.d.ts +17 -0
- package/dist/cli/runtime/runtime-sidecar.js +138 -0
- package/dist/cli/runtime/task-controller.d.ts +7 -0
- package/dist/cli/runtime/task-controller.js +29 -0
- package/dist/cli/runtime/types.d.ts +312 -0
- package/dist/cli/runtime/types.js +6 -0
- package/dist/cli/theme/index.d.ts +18 -0
- package/dist/cli/theme/index.js +11 -0
- package/dist/cli/theme/oklab-quantize.d.ts +29 -0
- package/dist/cli/theme/oklab-quantize.js +105 -0
- package/dist/cli/theme/render-table.d.ts +59 -0
- package/dist/cli/theme/render-table.js +112 -0
- package/dist/cli/theme/status-frame.d.ts +10 -0
- package/dist/cli/theme/status-frame.js +22 -0
- package/dist/cli/theme/terminal-capability.d.ts +23 -0
- package/dist/cli/theme/terminal-capability.js +104 -0
- package/dist/cli/theme/theme-doc.d.ts +22 -0
- package/dist/cli/theme/theme-doc.js +97 -0
- package/dist/cli/theme/theme-registry.d.ts +25 -0
- package/dist/cli/theme/theme-registry.js +445 -0
- package/dist/cli/theme/theme-resolver.d.ts +12 -0
- package/dist/cli/theme/theme-resolver.js +38 -0
- package/dist/cli/theme/tier-explain.d.ts +21 -0
- package/dist/cli/theme/tier-explain.js +60 -0
- package/dist/cli/ui/event.d.ts +66 -0
- package/dist/cli/ui/event.js +1 -0
- package/dist/cli/ui/green-rain-renderer.d.ts +17 -0
- package/dist/cli/ui/green-rain-renderer.js +97 -0
- package/dist/cli/ui/neon-grid-renderer.d.ts +25 -0
- package/dist/cli/ui/neon-grid-renderer.js +170 -0
- package/dist/cli/ui/plain-renderer.d.ts +37 -0
- package/dist/cli/ui/plain-renderer.js +162 -0
- package/dist/cli/ui/renderer.d.ts +7 -0
- package/dist/cli/ui/renderer.js +1 -0
- package/dist/cli/ui/rich-renderer.d.ts +32 -0
- package/dist/cli/ui/rich-renderer.js +234 -0
- package/dist/cli/ui/route-blocked-panel.d.ts +5 -0
- package/dist/cli/ui/route-blocked-panel.js +67 -0
- package/dist/cli/ui/rust-forge-renderer.d.ts +19 -0
- package/dist/cli/ui/rust-forge-renderer.js +143 -0
- package/dist/cli/ui/system24-renderer.d.ts +96 -0
- package/dist/cli/ui/system24-renderer.js +533 -0
- package/dist/cli/v2/chat-repl.d.ts +38 -0
- package/dist/cli/v2/chat-repl.js +338 -0
- package/dist/cli/v2/cli-v2-skeleton.d.ts +105 -0
- package/dist/cli/v2/cli-v2-skeleton.js +465 -0
- package/dist/cli/v2/interactive-prompt.d.ts +52 -0
- package/dist/cli/v2/interactive-prompt.js +192 -0
- package/dist/cli/v2/persistent-memory.d.ts +70 -0
- package/dist/cli/v2/persistent-memory.js +229 -0
- package/dist/cli/v2/provider-commands.d.ts +120 -0
- package/dist/cli/v2/provider-commands.js +244 -0
- package/dist/cli/v2/release-commands.d.ts +29 -0
- package/dist/cli/v2/release-commands.js +95 -0
- package/dist/cli/v2/workflow-commands.d.ts +72 -0
- package/dist/cli/v2/workflow-commands.js +198 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +16 -17
- package/dist/cockpit/git-numstat.d.ts +10 -0
- package/dist/cockpit/git-numstat.js +97 -0
- package/dist/cockpit/lsp-status.d.ts +5 -0
- package/dist/cockpit/lsp-status.js +51 -0
- package/dist/cockpit/types.d.ts +66 -0
- package/dist/cockpit/types.js +4 -0
- package/dist/cockpit/views/rail-view.d.ts +9 -0
- package/dist/cockpit/views/rail-view.js +160 -0
- package/dist/commands/agent.d.ts +6 -0
- package/dist/commands/agent.js +263 -0
- package/dist/commands/appshot.d.ts +15 -0
- package/dist/commands/appshot.js +122 -0
- package/dist/commands/auth.d.ts +43 -0
- package/dist/commands/auth.js +169 -0
- package/dist/commands/browser.d.ts +18 -0
- package/dist/commands/browser.js +110 -0
- package/dist/commands/chat/chat-turn-dag.d.ts +21 -0
- package/dist/commands/chat/chat-turn-dag.js +72 -0
- package/dist/commands/chat/core.d.ts +27 -0
- package/dist/commands/chat/core.js +423 -0
- package/dist/commands/chat/index.d.ts +5 -0
- package/dist/commands/chat/index.js +5 -0
- package/dist/commands/chat/native-root-loop.d.ts +58 -0
- package/dist/commands/chat/native-root-loop.js +1263 -0
- package/dist/commands/chat/runtime.d.ts +46 -0
- package/dist/commands/chat/runtime.js +406 -0
- package/dist/commands/chat/slash/commands/control.d.ts +2 -0
- package/dist/commands/chat/slash/commands/control.js +196 -0
- package/dist/commands/chat/slash/commands/diagnostics.d.ts +2 -0
- package/dist/commands/chat/slash/commands/diagnostics.js +64 -0
- package/dist/commands/chat/slash/commands/harness.d.ts +2 -0
- package/dist/commands/chat/slash/commands/harness.js +21 -0
- package/dist/commands/chat/slash/commands/index.d.ts +2 -0
- package/dist/commands/chat/slash/commands/index.js +18 -0
- package/dist/commands/chat/slash/commands/routing.d.ts +2 -0
- package/dist/commands/chat/slash/commands/routing.js +385 -0
- package/dist/commands/chat/slash/commands/session.d.ts +2 -0
- package/dist/commands/chat/slash/commands/session.js +104 -0
- package/dist/commands/chat/slash/commands/tool-plane.d.ts +2 -0
- package/dist/commands/chat/slash/commands/tool-plane.js +64 -0
- package/dist/commands/chat/slash/commands/ui.d.ts +2 -0
- package/dist/commands/chat/slash/commands/ui.js +108 -0
- package/dist/commands/chat/slash/context.d.ts +3 -0
- package/dist/commands/chat/slash/context.js +9 -0
- package/dist/commands/chat/slash/format.d.ts +3 -0
- package/dist/commands/chat/slash/format.js +19 -0
- package/dist/commands/chat/slash/parser.d.ts +15 -0
- package/dist/commands/chat/slash/parser.js +97 -0
- package/dist/commands/chat/slash/registry.d.ts +13 -0
- package/dist/commands/chat/slash/registry.js +38 -0
- package/dist/commands/chat/slash/result.d.ts +7 -0
- package/dist/commands/chat/slash/result.js +35 -0
- package/dist/commands/chat/slash/types.d.ts +32 -0
- package/dist/commands/chat/slash/types.js +1 -0
- package/dist/commands/chat/startup.d.ts +68 -0
- package/dist/commands/chat/startup.js +150 -0
- package/dist/commands/chat/state.d.ts +3 -0
- package/dist/commands/chat/state.js +100 -0
- package/dist/commands/chat/utils.d.ts +25 -0
- package/dist/commands/chat/utils.js +218 -0
- package/dist/commands/chat.d.ts +2 -0
- package/dist/commands/chat.js +2 -0
- package/dist/commands/cockpit/core.d.ts +5 -0
- package/dist/commands/cockpit/core.js +91 -0
- package/dist/commands/cockpit/render.d.ts +5 -0
- package/dist/commands/cockpit/render.js +970 -0
- package/dist/commands/cockpit/scroll.d.ts +39 -0
- package/dist/commands/cockpit/scroll.js +87 -0
- package/dist/commands/cockpit/telemetry.d.ts +30 -0
- package/dist/commands/cockpit/telemetry.js +361 -0
- package/dist/commands/cockpit/update-loop.d.ts +54 -0
- package/dist/commands/cockpit/update-loop.js +285 -0
- package/dist/commands/cockpit/utils.d.ts +233 -0
- package/dist/commands/cockpit/utils.js +388 -0
- package/dist/commands/cockpit.d.ts +8 -0
- package/dist/commands/cockpit.js +7 -0
- package/dist/commands/codex.d.ts +70 -0
- package/dist/commands/codex.js +597 -0
- package/dist/commands/consent.d.ts +24 -0
- package/dist/commands/consent.js +255 -0
- package/dist/commands/cron.d.ts +16 -0
- package/dist/commands/cron.js +187 -0
- package/dist/commands/dag-from-spec.d.ts +31 -0
- package/dist/commands/dag-from-spec.js +344 -0
- package/dist/commands/dag.d.ts +10 -0
- package/dist/commands/dag.js +467 -0
- package/dist/commands/design.d.ts +73 -0
- package/dist/commands/design.js +1253 -0
- package/dist/commands/diff-runs.d.ts +3 -0
- package/dist/commands/diff-runs.js +36 -0
- package/dist/commands/do.d.ts +29 -0
- package/dist/commands/do.js +196 -0
- package/dist/commands/doctor/checks.d.ts +19 -0
- package/dist/commands/doctor/checks.js +861 -0
- package/dist/commands/doctor/core.d.ts +2 -0
- package/dist/commands/doctor/core.js +53 -0
- package/dist/commands/doctor/fix-plan.d.ts +69 -0
- package/dist/commands/doctor/fix-plan.js +78 -0
- package/dist/commands/doctor/fix.d.ts +5 -0
- package/dist/commands/doctor/fix.js +1002 -0
- package/dist/commands/doctor/report.d.ts +7 -0
- package/dist/commands/doctor/report.js +140 -0
- package/dist/commands/doctor/utils.d.ts +52 -0
- package/dist/commands/doctor/utils.js +124 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +1 -0
- package/dist/commands/goal-interview.d.ts +18 -0
- package/dist/commands/goal-interview.js +396 -0
- package/dist/commands/goal.d.ts +46 -0
- package/dist/commands/goal.js +492 -0
- package/dist/commands/google.d.ts +1 -0
- package/dist/commands/google.js +27 -0
- package/dist/commands/graph.d.ts +71 -0
- package/dist/commands/graph.js +208 -0
- package/dist/commands/hud.d.ts +57 -0
- package/dist/commands/hud.js +1031 -0
- package/dist/commands/image.d.ts +16 -0
- package/dist/commands/image.js +102 -0
- package/dist/commands/init/config.d.ts +8 -0
- package/dist/commands/init/config.js +97 -0
- package/dist/commands/init/constants.d.ts +7 -0
- package/dist/commands/init/constants.js +49 -0
- package/dist/commands/init/content.d.ts +12 -0
- package/dist/commands/init/content.js +1775 -0
- package/dist/commands/init/core.d.ts +2 -0
- package/dist/commands/init/core.js +298 -0
- package/dist/commands/init/interactive.d.ts +9 -0
- package/dist/commands/init/interactive.js +170 -0
- package/dist/commands/init/scaffold.d.ts +17 -0
- package/dist/commands/init/scaffold.js +146 -0
- package/dist/commands/init/types.d.ts +35 -0
- package/dist/commands/init/types.js +1 -0
- package/dist/commands/init/utils.d.ts +13 -0
- package/dist/commands/init/utils.js +107 -0
- package/dist/commands/init.d.ts +32 -0
- package/dist/commands/init.js +2581 -0
- package/dist/commands/inspect.d.ts +9 -0
- package/dist/commands/inspect.js +12 -0
- package/dist/commands/lsp.d.ts +8 -0
- package/dist/commands/lsp.js +60 -0
- package/dist/commands/mcp/config.d.ts +32 -0
- package/dist/commands/mcp/config.js +286 -0
- package/dist/commands/mcp/doctor-fix.d.ts +12 -0
- package/dist/commands/mcp/doctor-fix.js +261 -0
- package/dist/commands/mcp/doctor.d.ts +55 -0
- package/dist/commands/mcp/doctor.js +400 -0
- package/dist/commands/mcp/list.d.ts +1 -0
- package/dist/commands/mcp/list.js +57 -0
- package/dist/commands/mcp/shared.d.ts +50 -0
- package/dist/commands/mcp/shared.js +210 -0
- package/dist/commands/mcp/test.d.ts +5 -0
- package/dist/commands/mcp/test.js +458 -0
- package/dist/commands/mcp.d.ts +8 -0
- package/dist/commands/mcp.js +5 -0
- package/dist/commands/menu.d.ts +4 -0
- package/dist/commands/menu.js +213 -0
- package/dist/commands/merge.d.ts +9 -0
- package/dist/commands/merge.js +363 -0
- package/dist/commands/mode.d.ts +3 -0
- package/dist/commands/mode.js +60 -0
- package/dist/commands/model.d.ts +15 -0
- package/dist/commands/model.js +219 -0
- package/dist/commands/notice.d.ts +7 -0
- package/dist/commands/notice.js +76 -0
- package/dist/commands/open-design-agent.d.ts +46 -0
- package/dist/commands/open-design-agent.js +569 -0
- package/dist/commands/orchestrate.d.ts +18 -0
- package/dist/commands/orchestrate.js +284 -0
- package/dist/commands/parallel/core.d.ts +34 -0
- package/dist/commands/parallel/core.js +296 -0
- package/dist/commands/parallel/index.d.ts +5 -0
- package/dist/commands/parallel/index.js +5 -0
- package/dist/commands/parallel/interactive.d.ts +27 -0
- package/dist/commands/parallel/interactive.js +172 -0
- package/dist/commands/parallel/orchestrator.d.ts +40 -0
- package/dist/commands/parallel/orchestrator.js +564 -0
- package/dist/commands/parallel/utils.d.ts +12 -0
- package/dist/commands/parallel/utils.js +114 -0
- package/dist/commands/parallel/worker.d.ts +43 -0
- package/dist/commands/parallel/worker.js +276 -0
- package/dist/commands/parallel.d.ts +4 -0
- package/dist/commands/parallel.js +3 -0
- package/dist/commands/plan.d.ts +6 -0
- package/dist/commands/plan.js +113 -0
- package/dist/commands/project-index.d.ts +18 -0
- package/dist/commands/project-index.js +312 -0
- package/dist/commands/provider.d.ts +65 -0
- package/dist/commands/provider.js +625 -0
- package/dist/commands/rail.d.ts +6 -0
- package/dist/commands/rail.js +7 -0
- package/dist/commands/replay.d.ts +7 -0
- package/dist/commands/replay.js +10 -0
- package/dist/commands/research.d.ts +5 -0
- package/dist/commands/research.js +48 -0
- package/dist/commands/run.d.ts +15 -0
- package/dist/commands/run.js +312 -0
- package/dist/commands/runs.d.ts +36 -0
- package/dist/commands/runs.js +504 -0
- package/dist/commands/screenshot.d.ts +10 -0
- package/dist/commands/screenshot.js +72 -0
- package/dist/commands/skill.d.ts +28 -0
- package/dist/commands/skill.js +382 -0
- package/dist/commands/snip.d.ts +8 -0
- package/dist/commands/snip.js +77 -0
- package/dist/commands/spec.d.ts +17 -0
- package/dist/commands/spec.js +262 -0
- package/dist/commands/specify.d.ts +18 -0
- package/dist/commands/specify.js +111 -0
- package/dist/commands/star.d.ts +3 -0
- package/dist/commands/star.js +35 -0
- package/dist/commands/summary.d.ts +5 -0
- package/dist/commands/summary.js +445 -0
- package/dist/commands/sync.d.ts +6 -0
- package/dist/commands/sync.js +129 -0
- package/dist/commands/team.d.ts +8 -0
- package/dist/commands/team.js +302 -0
- package/dist/commands/verify.d.ts +4 -0
- package/dist/commands/verify.js +320 -0
- package/dist/commands/version.d.ts +7 -0
- package/dist/commands/version.js +101 -0
- package/dist/commands/web-bridge.d.ts +12 -0
- package/dist/commands/web-bridge.js +75 -0
- package/dist/commands/why.d.ts +14 -0
- package/dist/commands/why.js +46 -0
- package/dist/commands/workflow.d.ts +13 -0
- package/dist/commands/workflow.js +385 -0
- package/dist/contracts/command.d.ts +25 -0
- package/dist/contracts/command.js +1 -0
- package/dist/contracts/dag.d.ts +134 -0
- package/dist/contracts/dag.js +4 -0
- package/dist/contracts/decision.d.ts +23 -0
- package/dist/contracts/decision.js +1 -0
- package/dist/contracts/envelope.d.ts +29 -0
- package/dist/contracts/envelope.js +1 -0
- package/dist/contracts/errors.d.ts +13 -0
- package/dist/contracts/errors.js +15 -0
- package/dist/contracts/evidence-bundle.d.ts +52 -0
- package/dist/contracts/evidence-bundle.js +1 -0
- package/dist/contracts/evidence.d.ts +23 -0
- package/dist/contracts/evidence.js +1 -0
- package/dist/contracts/goal.d.ts +169 -0
- package/dist/contracts/goal.js +4 -0
- package/dist/contracts/hud.d.ts +17 -0
- package/dist/contracts/hud.js +4 -0
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/interview.d.ts +106 -0
- package/dist/contracts/interview.js +9 -0
- package/dist/contracts/orchestration.d.ts +215 -0
- package/dist/contracts/orchestration.js +4 -0
- package/dist/contracts/proof.d.ts +32 -0
- package/dist/contracts/proof.js +1 -0
- package/dist/contracts/provider-health.d.ts +79 -0
- package/dist/contracts/provider-health.js +57 -0
- package/dist/contracts/provider.d.ts +35 -0
- package/dist/contracts/provider.js +1 -0
- package/dist/contracts/replay.d.ts +95 -0
- package/dist/contracts/replay.js +7 -0
- package/dist/contracts/run.d.ts +34 -0
- package/dist/contracts/run.js +1 -0
- package/dist/contracts/safety.d.ts +10 -0
- package/dist/contracts/safety.js +4 -0
- package/dist/contracts/version.d.ts +21 -0
- package/dist/contracts/version.js +1 -0
- package/dist/contracts/web-bridge.d.ts +95 -0
- package/dist/contracts/web-bridge.js +168 -0
- package/dist/contracts/worker-context.d.ts +70 -0
- package/dist/contracts/worker-context.js +1 -0
- package/dist/evidence/attempt-record.d.ts +78 -0
- package/dist/evidence/attempt-record.js +16 -0
- package/dist/evidence/bundle-validator.d.ts +7 -0
- package/dist/evidence/bundle-validator.js +103 -0
- package/dist/evidence/context-snapshot.d.ts +20 -0
- package/dist/evidence/context-snapshot.js +81 -0
- package/dist/evidence/decision-trace.d.ts +14 -0
- package/dist/evidence/decision-trace.js +54 -0
- package/dist/evidence/diagnosis.d.ts +15 -0
- package/dist/evidence/diagnosis.js +279 -0
- package/dist/evidence/evidence-recorder.d.ts +19 -0
- package/dist/evidence/evidence-recorder.js +55 -0
- package/dist/evidence/evidence-trust-score.d.ts +101 -0
- package/dist/evidence/evidence-trust-score.js +408 -0
- package/dist/evidence/index.d.ts +26 -0
- package/dist/evidence/index.js +12 -0
- package/dist/evidence/proof-trust-cli.d.ts +8 -0
- package/dist/evidence/proof-trust-cli.js +27 -0
- package/dist/evidence/proof-trust.d.ts +14 -0
- package/dist/evidence/proof-trust.js +373 -0
- package/dist/evidence/regression-proof-matrix.d.ts +42 -0
- package/dist/evidence/regression-proof-matrix.js +72 -0
- package/dist/evidence/run-trace.d.ts +103 -0
- package/dist/evidence/run-trace.js +191 -0
- package/dist/evidence/trust-calibration.d.ts +25 -0
- package/dist/evidence/trust-calibration.js +151 -0
- package/dist/goal/compiler.d.ts +5 -0
- package/dist/goal/compiler.js +350 -0
- package/dist/goal/control-loop.d.ts +124 -0
- package/dist/goal/control-loop.js +1123 -0
- package/dist/goal/ensemble-memory.d.ts +26 -0
- package/dist/goal/ensemble-memory.js +55 -0
- package/dist/goal/eval-criteria.d.ts +3 -0
- package/dist/goal/eval-criteria.js +72 -0
- package/dist/goal/evidence.d.ts +20 -0
- package/dist/goal/evidence.js +321 -0
- package/dist/goal/goal-daemon.d.ts +40 -0
- package/dist/goal/goal-daemon.js +318 -0
- package/dist/goal/intake.d.ts +48 -0
- package/dist/goal/intake.js +561 -0
- package/dist/goal/intent-analyzer.d.ts +9 -0
- package/dist/goal/intent-analyzer.js +322 -0
- package/dist/goal/intent-frame.d.ts +65 -0
- package/dist/goal/intent-frame.js +596 -0
- package/dist/goal/interview-assimilation.d.ts +13 -0
- package/dist/goal/interview-assimilation.js +383 -0
- package/dist/goal/interview-question-bank.d.ts +11 -0
- package/dist/goal/interview-question-bank.js +225 -0
- package/dist/goal/interview-scoring.d.ts +31 -0
- package/dist/goal/interview-scoring.js +187 -0
- package/dist/goal/interview-session.d.ts +25 -0
- package/dist/goal/interview-session.js +116 -0
- package/dist/goal/persistence.d.ts +11 -0
- package/dist/goal/persistence.js +134 -0
- package/dist/goal/prompt-digest.d.ts +13 -0
- package/dist/goal/prompt-digest.js +111 -0
- package/dist/goal/scoring.d.ts +2 -0
- package/dist/goal/scoring.js +69 -0
- package/dist/goal/wake-policy.d.ts +26 -0
- package/dist/goal/wake-policy.js +58 -0
- package/dist/harness/create-harness-task-runner.d.ts +43 -0
- package/dist/harness/create-harness-task-runner.js +56 -0
- package/dist/harness/execute-harness-run.d.ts +34 -0
- package/dist/harness/execute-harness-run.js +109 -0
- package/dist/hooks/events.d.ts +71 -0
- package/dist/hooks/events.js +1 -0
- package/dist/hooks/hook-bus.d.ts +13 -0
- package/dist/hooks/hook-bus.js +59 -0
- package/dist/hooks/hook-registry.d.ts +6 -0
- package/dist/hooks/hook-registry.js +64 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hud/index.d.ts +9 -0
- package/dist/hud/index.js +11 -0
- package/dist/hud/live-renderer.d.ts +17 -0
- package/dist/hud/live-renderer.js +52 -0
- package/dist/hud/render.d.ts +64 -0
- package/dist/hud/render.js +960 -0
- package/dist/hud/types.d.ts +58 -0
- package/dist/hud/types.js +7 -0
- package/dist/input/input-artifacts.d.ts +10 -0
- package/dist/input/input-artifacts.js +19 -0
- package/dist/input/input-envelope.d.ts +86 -0
- package/dist/input/input-envelope.js +87 -0
- package/dist/integrations/servarr/adapter.d.ts +29 -0
- package/dist/integrations/servarr/adapter.js +156 -0
- package/dist/integrations/servarr/commands.d.ts +15 -0
- package/dist/integrations/servarr/commands.js +119 -0
- package/dist/integrations/servarr/schema.d.ts +34 -0
- package/dist/integrations/servarr/schema.js +149 -0
- package/dist/kimi/ascii-art.d.ts +1 -0
- package/dist/kimi/ascii-art.js +23 -0
- package/dist/kimi/banner.d.ts +53 -0
- package/dist/kimi/banner.js +284 -0
- package/dist/kimi/bug-filter.d.ts +15 -0
- package/dist/kimi/bug-filter.js +150 -0
- package/dist/kimi/capability.d.ts +25 -0
- package/dist/kimi/capability.js +68 -0
- package/dist/kimi/isolated-home.d.ts +21 -0
- package/dist/kimi/isolated-home.js +270 -0
- package/dist/kimi/runner.d.ts +74 -0
- package/dist/kimi/runner.js +1052 -0
- package/dist/kimi/simple-art.d.ts +1 -0
- package/dist/kimi/simple-art.js +1 -0
- package/dist/kimi/statusline.d.ts +26 -0
- package/dist/kimi/statusline.js +142 -0
- package/dist/kimi/usage.d.ts +52 -0
- package/dist/kimi/usage.js +481 -0
- package/dist/kimi/wire-client.d.ts +95 -0
- package/dist/kimi/wire-client.js +338 -0
- package/dist/lsp/default-config.d.ts +16 -0
- package/dist/lsp/default-config.js +26 -0
- package/dist/mcp/acp-server.d.ts +2 -0
- package/dist/mcp/acp-server.js +357 -0
- package/dist/mcp/autoconnect.d.ts +60 -0
- package/dist/mcp/autoconnect.js +192 -0
- package/dist/mcp/client.d.ts +112 -0
- package/dist/mcp/client.js +276 -0
- package/dist/mcp/config-permissions.d.ts +23 -0
- package/dist/mcp/config-permissions.js +66 -0
- package/dist/mcp/consent-flow.d.ts +152 -0
- package/dist/mcp/consent-flow.js +329 -0
- package/dist/mcp/filesystem-readonly-server.d.ts +2 -0
- package/dist/mcp/filesystem-readonly-server.js +320 -0
- package/dist/mcp/governance.d.ts +292 -0
- package/dist/mcp/governance.js +602 -0
- package/dist/mcp/host.d.ts +154 -0
- package/dist/mcp/host.js +792 -0
- package/dist/mcp/omk-project-server.d.ts +2 -0
- package/dist/mcp/omk-project-server.js +1632 -0
- package/dist/mcp/omk-web-bridge-server.d.ts +14 -0
- package/dist/mcp/omk-web-bridge-server.js +154 -0
- package/dist/mcp/permission-resolver.d.ts +67 -0
- package/dist/mcp/permission-resolver.js +124 -0
- package/dist/mcp/quality-gate.d.ts +36 -0
- package/dist/mcp/quality-gate.js +247 -0
- package/dist/mcp/quarantine.d.ts +11 -0
- package/dist/mcp/quarantine.js +79 -0
- package/dist/mcp/secret-scanner.d.ts +195 -0
- package/dist/mcp/secret-scanner.js +742 -0
- package/dist/mcp/server-catalog.d.ts +36 -0
- package/dist/mcp/server-catalog.js +168 -0
- package/dist/mcp/shared-secret-registry.d.ts +61 -0
- package/dist/mcp/shared-secret-registry.js +171 -0
- package/dist/mcp/transports/stdio.d.ts +22 -0
- package/dist/mcp/transports/stdio.js +165 -0
- package/dist/mcp/transports/streamable-http.d.ts +31 -0
- package/dist/mcp/transports/streamable-http.js +289 -0
- package/dist/mcp/transports/transport.d.ts +20 -0
- package/dist/mcp/transports/transport.js +3 -0
- package/dist/memory/embedding.d.ts +11 -0
- package/dist/memory/embedding.js +24 -0
- package/dist/memory/graph-delta-log.d.ts +137 -0
- package/dist/memory/graph-delta-log.js +650 -0
- package/dist/memory/graph-viewer.d.ts +72 -0
- package/dist/memory/graph-viewer.js +383 -0
- package/dist/memory/kuzu-memory-store.d.ts +37 -0
- package/dist/memory/kuzu-memory-store.js +453 -0
- package/dist/memory/local-graph-memory-store.d.ts +189 -0
- package/dist/memory/local-graph-memory-store.js +1305 -0
- package/dist/memory/memory-config.d.ts +51 -0
- package/dist/memory/memory-config.js +187 -0
- package/dist/memory/memory-store.d.ts +66 -0
- package/dist/memory/memory-store.js +228 -0
- package/dist/memory/ontology-model.d.ts +175 -0
- package/dist/memory/ontology-model.js +131 -0
- package/dist/metrics/provenance-ratio.d.ts +16 -0
- package/dist/metrics/provenance-ratio.js +33 -0
- package/dist/openai/image-client.d.ts +103 -0
- package/dist/openai/image-client.js +380 -0
- package/dist/orchestration/adaptorch-topology.d.ts +59 -0
- package/dist/orchestration/adaptorch-topology.js +194 -0
- package/dist/orchestration/agent-worker.d.ts +72 -0
- package/dist/orchestration/agent-worker.js +278 -0
- package/dist/orchestration/capability-agents.d.ts +14 -0
- package/dist/orchestration/capability-agents.js +180 -0
- package/dist/orchestration/capability-routing.d.ts +65 -0
- package/dist/orchestration/capability-routing.js +121 -0
- package/dist/orchestration/compiled-dag-executor.d.ts +56 -0
- package/dist/orchestration/compiled-dag-executor.js +88 -0
- package/dist/orchestration/completion-artifacts.d.ts +37 -0
- package/dist/orchestration/completion-artifacts.js +84 -0
- package/dist/orchestration/completion-sentinel.d.ts +37 -0
- package/dist/orchestration/completion-sentinel.js +66 -0
- package/dist/orchestration/contracts/index.d.ts +45 -0
- package/dist/orchestration/contracts/index.js +6 -0
- package/dist/orchestration/dag-artifacts.d.ts +11 -0
- package/dist/orchestration/dag-artifacts.js +42 -0
- package/dist/orchestration/dag-compiler-presets.d.ts +20 -0
- package/dist/orchestration/dag-compiler-presets.js +476 -0
- package/dist/orchestration/dag-compiler-types.d.ts +43 -0
- package/dist/orchestration/dag-compiler-types.js +1 -0
- package/dist/orchestration/dag-compiler.d.ts +3 -0
- package/dist/orchestration/dag-compiler.js +135 -0
- package/dist/orchestration/dag.d.ts +175 -0
- package/dist/orchestration/dag.js +310 -0
- package/dist/orchestration/diagnostics.d.ts +27 -0
- package/dist/orchestration/diagnostics.js +262 -0
- package/dist/orchestration/enhanced-modes.d.ts +116 -0
- package/dist/orchestration/enhanced-modes.js +231 -0
- package/dist/orchestration/enhanced-parallel-orchestrator.d.ts +127 -0
- package/dist/orchestration/enhanced-parallel-orchestrator.js +734 -0
- package/dist/orchestration/ensemble-decision.d.ts +42 -0
- package/dist/orchestration/ensemble-decision.js +301 -0
- package/dist/orchestration/ensemble.d.ts +22 -0
- package/dist/orchestration/ensemble.js +558 -0
- package/dist/orchestration/eta.d.ts +10 -0
- package/dist/orchestration/eta.js +75 -0
- package/dist/orchestration/evidence-check.d.ts +36 -0
- package/dist/orchestration/evidence-check.js +257 -0
- package/dist/orchestration/evidence-gate.d.ts +34 -0
- package/dist/orchestration/evidence-gate.js +501 -0
- package/dist/orchestration/execution-planner.d.ts +40 -0
- package/dist/orchestration/execution-planner.js +252 -0
- package/dist/orchestration/executor.d.ts +11 -0
- package/dist/orchestration/executor.js +979 -0
- package/dist/orchestration/hedge-persona-weights.d.ts +25 -0
- package/dist/orchestration/hedge-persona-weights.js +43 -0
- package/dist/orchestration/interactive-orchestrator.d.ts +134 -0
- package/dist/orchestration/interactive-orchestrator.js +450 -0
- package/dist/orchestration/log-streamer.d.ts +104 -0
- package/dist/orchestration/log-streamer.js +293 -0
- package/dist/orchestration/loop-artifacts.d.ts +14 -0
- package/dist/orchestration/loop-artifacts.js +20 -0
- package/dist/orchestration/loop-controller.d.ts +14 -0
- package/dist/orchestration/loop-controller.js +311 -0
- package/dist/orchestration/loop-guard.d.ts +28 -0
- package/dist/orchestration/loop-guard.js +104 -0
- package/dist/orchestration/loop-state.d.ts +86 -0
- package/dist/orchestration/loop-state.js +1 -0
- package/dist/orchestration/merge-arbiter.d.ts +91 -0
- package/dist/orchestration/merge-arbiter.js +376 -0
- package/dist/orchestration/node-monitor.d.ts +18 -0
- package/dist/orchestration/node-monitor.js +98 -0
- package/dist/orchestration/orchestrate-prompt.d.ts +43 -0
- package/dist/orchestration/orchestrate-prompt.js +533 -0
- package/dist/orchestration/orchestration-state.d.ts +3 -0
- package/dist/orchestration/orchestration-state.js +2 -0
- package/dist/orchestration/parallel-orchestrator.d.ts +165 -0
- package/dist/orchestration/parallel-orchestrator.js +607 -0
- package/dist/orchestration/parallel-ui.d.ts +52 -0
- package/dist/orchestration/parallel-ui.js +479 -0
- package/dist/orchestration/repair-policy.d.ts +20 -0
- package/dist/orchestration/repair-policy.js +221 -0
- package/dist/orchestration/route-calibration.d.ts +27 -0
- package/dist/orchestration/route-calibration.js +123 -0
- package/dist/orchestration/routing/inventory.d.ts +9 -0
- package/dist/orchestration/routing/inventory.js +273 -0
- package/dist/orchestration/routing/mcp-config.d.ts +17 -0
- package/dist/orchestration/routing/mcp-config.js +158 -0
- package/dist/orchestration/routing/types.d.ts +59 -0
- package/dist/orchestration/routing/types.js +4 -0
- package/dist/orchestration/routing.d.ts +45 -0
- package/dist/orchestration/routing.js +1072 -0
- package/dist/orchestration/run-state.d.ts +36 -0
- package/dist/orchestration/run-state.js +176 -0
- package/dist/orchestration/scheduler.d.ts +9 -0
- package/dist/orchestration/scheduler.js +85 -0
- package/dist/orchestration/skill-assigner.d.ts +22 -0
- package/dist/orchestration/skill-assigner.js +345 -0
- package/dist/orchestration/state-machine/index.d.ts +3 -0
- package/dist/orchestration/state-machine/index.js +3 -0
- package/dist/orchestration/state-machine/node-state-machine.d.ts +24 -0
- package/dist/orchestration/state-machine/node-state-machine.js +35 -0
- package/dist/orchestration/state-machine/run-state-machine.d.ts +38 -0
- package/dist/orchestration/state-machine/run-state-machine.js +161 -0
- package/dist/orchestration/state-machine/run-state-manager.d.ts +108 -0
- package/dist/orchestration/state-machine/run-state-manager.js +314 -0
- package/dist/orchestration/state-persister.d.ts +7 -0
- package/dist/orchestration/state-persister.js +84 -0
- package/dist/orchestration/task-graph.d.ts +29 -0
- package/dist/orchestration/task-graph.js +261 -0
- package/dist/orchestration/verification-only.d.ts +28 -0
- package/dist/orchestration/verification-only.js +94 -0
- package/dist/providers/anthropic-messages-runner.d.ts +17 -0
- package/dist/providers/anthropic-messages-runner.js +197 -0
- package/dist/providers/attempt-recorder.d.ts +10 -0
- package/dist/providers/attempt-recorder.js +38 -0
- package/dist/providers/codex-cli-runner.d.ts +11 -0
- package/dist/providers/codex-cli-runner.js +129 -0
- package/dist/providers/context-preflight.d.ts +47 -0
- package/dist/providers/context-preflight.js +134 -0
- package/dist/providers/deepseek/deepseek-balance.d.ts +29 -0
- package/dist/providers/deepseek/deepseek-balance.js +80 -0
- package/dist/providers/deepseek/deepseek-client.d.ts +53 -0
- package/dist/providers/deepseek/deepseek-client.js +164 -0
- package/dist/providers/deepseek/deepseek-config.d.ts +89 -0
- package/dist/providers/deepseek/deepseek-config.js +272 -0
- package/dist/providers/deepseek/deepseek-errors.d.ts +5 -0
- package/dist/providers/deepseek/deepseek-errors.js +48 -0
- package/dist/providers/deepseek/deepseek-provider.d.ts +10 -0
- package/dist/providers/deepseek/deepseek-provider.js +162 -0
- package/dist/providers/deepseek/deepseek-super-config.d.ts +31 -0
- package/dist/providers/deepseek/deepseek-super-config.js +136 -0
- package/dist/providers/deepseek-provider.d.ts +8 -0
- package/dist/providers/deepseek-provider.js +78 -0
- package/dist/providers/health.d.ts +16 -0
- package/dist/providers/health.js +101 -0
- package/dist/providers/index.d.ts +23 -0
- package/dist/providers/index.js +23 -0
- package/dist/providers/kimi-provider-failure.d.ts +8 -0
- package/dist/providers/kimi-provider-failure.js +56 -0
- package/dist/providers/kimi-provider.d.ts +7 -0
- package/dist/providers/kimi-provider.js +27 -0
- package/dist/providers/model-registry.d.ts +104 -0
- package/dist/providers/model-registry.js +677 -0
- package/dist/providers/model-table.d.ts +24 -0
- package/dist/providers/model-table.js +140 -0
- package/dist/providers/model-tabs.d.ts +33 -0
- package/dist/providers/model-tabs.js +98 -0
- package/dist/providers/openai-compatible-runner.d.ts +17 -0
- package/dist/providers/openai-compatible-runner.js +180 -0
- package/dist/providers/provider-health.d.ts +46 -0
- package/dist/providers/provider-health.js +200 -0
- package/dist/providers/provider-router.d.ts +8 -0
- package/dist/providers/provider-router.js +174 -0
- package/dist/providers/provider-runtime.d.ts +17 -0
- package/dist/providers/provider-runtime.js +270 -0
- package/dist/providers/provider-stats.d.ts +56 -0
- package/dist/providers/provider-stats.js +303 -0
- package/dist/providers/provider-task-runner.d.ts +23 -0
- package/dist/providers/provider-task-runner.js +1202 -0
- package/dist/providers/provider.d.ts +76 -0
- package/dist/providers/provider.js +9 -0
- package/dist/providers/router.d.ts +14 -0
- package/dist/providers/router.js +563 -0
- package/dist/providers/runner/deepseek-helpers.d.ts +38 -0
- package/dist/providers/runner/deepseek-helpers.js +150 -0
- package/dist/providers/runner/env.d.ts +12 -0
- package/dist/providers/runner/env.js +98 -0
- package/dist/providers/runner/execution.d.ts +26 -0
- package/dist/providers/runner/execution.js +42 -0
- package/dist/providers/runner/helpers.d.ts +9 -0
- package/dist/providers/runner/helpers.js +38 -0
- package/dist/providers/runner/results.d.ts +26 -0
- package/dist/providers/runner/results.js +104 -0
- package/dist/providers/thinking-levels.d.ts +7 -0
- package/dist/providers/thinking-levels.js +72 -0
- package/dist/providers/types.d.ts +143 -0
- package/dist/providers/types.js +60 -0
- package/dist/replay/differ.d.ts +5 -0
- package/dist/replay/differ.js +314 -0
- package/dist/replay/index.d.ts +6 -0
- package/dist/replay/index.js +4 -0
- package/dist/replay/inspector.d.ts +14 -0
- package/dist/replay/inspector.js +264 -0
- package/dist/replay/manifest-builder.d.ts +11 -0
- package/dist/replay/manifest-builder.js +184 -0
- package/dist/replay/replay-engine.d.ts +18 -0
- package/dist/replay/replay-engine.js +265 -0
- package/dist/runtime/adapter.d.ts +77 -0
- package/dist/runtime/adapter.js +28 -0
- package/dist/runtime/advanced-control-loop.d.ts +60 -0
- package/dist/runtime/advanced-control-loop.js +136 -0
- package/dist/runtime/agent-runtime.d.ts +133 -0
- package/dist/runtime/agent-runtime.js +18 -0
- package/dist/runtime/blast-radius.d.ts +10 -0
- package/dist/runtime/blast-radius.js +14 -0
- package/dist/runtime/cache-stable-session.d.ts +55 -0
- package/dist/runtime/cache-stable-session.js +108 -0
- package/dist/runtime/capability-injection.d.ts +39 -0
- package/dist/runtime/capability-injection.js +93 -0
- package/dist/runtime/chat-advisory-runtime.d.ts +2 -0
- package/dist/runtime/chat-advisory-runtime.js +71 -0
- package/dist/runtime/child-env.d.ts +31 -0
- package/dist/runtime/child-env.js +131 -0
- package/dist/runtime/codex-cli-runtime.d.ts +10 -0
- package/dist/runtime/codex-cli-runtime.js +78 -0
- package/dist/runtime/codex-runtime.d.ts +35 -0
- package/dist/runtime/codex-runtime.js +264 -0
- package/dist/runtime/command-bus.d.ts +13 -0
- package/dist/runtime/command-bus.js +57 -0
- package/dist/runtime/context-broker-converter.d.ts +9 -0
- package/dist/runtime/context-broker-converter.js +96 -0
- package/dist/runtime/context-broker.d.ts +34 -0
- package/dist/runtime/context-broker.js +321 -0
- package/dist/runtime/context-budget-optimizer.d.ts +73 -0
- package/dist/runtime/context-budget-optimizer.js +300 -0
- package/dist/runtime/context-capsule.d.ts +81 -0
- package/dist/runtime/context-capsule.js +46 -0
- package/dist/runtime/contracts/command-envelope.d.ts +99 -0
- package/dist/runtime/contracts/command-envelope.js +5 -0
- package/dist/runtime/contracts/evidence.d.ts +87 -0
- package/dist/runtime/contracts/evidence.js +7 -0
- package/dist/runtime/contracts/reasoning-trace.d.ts +120 -0
- package/dist/runtime/contracts/reasoning-trace.js +10 -0
- package/dist/runtime/contracts/router-v2.d.ts +44 -0
- package/dist/runtime/contracts/router-v2.js +4 -0
- package/dist/runtime/contracts/shared.d.ts +34 -0
- package/dist/runtime/contracts/shared.js +12 -0
- package/dist/runtime/contracts/weakness-remediation.d.ts +83 -0
- package/dist/runtime/contracts/weakness-remediation.js +44 -0
- package/dist/runtime/core-verified-preset.d.ts +37 -0
- package/dist/runtime/core-verified-preset.js +205 -0
- package/dist/runtime/debloat-nlp.d.ts +140 -0
- package/dist/runtime/debloat-nlp.js +398 -0
- package/dist/runtime/deepseek-runtime.d.ts +28 -0
- package/dist/runtime/deepseek-runtime.js +270 -0
- package/dist/runtime/external-cli-adapter.d.ts +29 -0
- package/dist/runtime/external-cli-adapter.js +283 -0
- package/dist/runtime/glm-api-runtime.d.ts +4 -0
- package/dist/runtime/glm-api-runtime.js +15 -0
- package/dist/runtime/headroom-policy.d.ts +37 -0
- package/dist/runtime/headroom-policy.js +122 -0
- package/dist/runtime/index.d.ts +9 -0
- package/dist/runtime/index.js +9 -0
- package/dist/runtime/kimi-api-runtime.d.ts +57 -0
- package/dist/runtime/kimi-api-runtime.js +431 -0
- package/dist/runtime/kimi-print-runtime.d.ts +10 -0
- package/dist/runtime/kimi-print-runtime.js +87 -0
- package/dist/runtime/kimi-wire-protocol-runtime.d.ts +44 -0
- package/dist/runtime/kimi-wire-protocol-runtime.js +436 -0
- package/dist/runtime/kimi-wire-runtime.d.ts +17 -0
- package/dist/runtime/kimi-wire-runtime.js +112 -0
- package/dist/runtime/legacy-bridge.d.ts +14 -0
- package/dist/runtime/legacy-bridge.js +27 -0
- package/dist/runtime/local-llm-runtime.d.ts +29 -0
- package/dist/runtime/local-llm-runtime.js +231 -0
- package/dist/runtime/mimo-api-runtime.d.ts +13 -0
- package/dist/runtime/mimo-api-runtime.js +24 -0
- package/dist/runtime/nlg-renderer.d.ts +38 -0
- package/dist/runtime/nlg-renderer.js +132 -0
- package/dist/runtime/ouroboros-policy.d.ts +57 -0
- package/dist/runtime/ouroboros-policy.js +134 -0
- package/dist/runtime/output-router.d.ts +20 -0
- package/dist/runtime/output-router.js +171 -0
- package/dist/runtime/process-session.d.ts +27 -0
- package/dist/runtime/process-session.js +35 -0
- package/dist/runtime/prompt-envelope.d.ts +28 -0
- package/dist/runtime/prompt-envelope.js +78 -0
- package/dist/runtime/proof-bundle-trust.d.ts +74 -0
- package/dist/runtime/proof-bundle-trust.js +100 -0
- package/dist/runtime/provider-event-normalizer.d.ts +117 -0
- package/dist/runtime/provider-event-normalizer.js +454 -0
- package/dist/runtime/provider-maturity-gate.d.ts +43 -0
- package/dist/runtime/provider-maturity-gate.js +127 -0
- package/dist/runtime/provider-tool-contracts.d.ts +24 -0
- package/dist/runtime/provider-tool-contracts.js +56 -0
- package/dist/runtime/public-surface.d.ts +93 -0
- package/dist/runtime/public-surface.js +146 -0
- package/dist/runtime/reasoning-trace.d.ts +46 -0
- package/dist/runtime/reasoning-trace.js +289 -0
- package/dist/runtime/recovery-artifact-store.d.ts +39 -0
- package/dist/runtime/recovery-artifact-store.js +111 -0
- package/dist/runtime/renderers.d.ts +33 -0
- package/dist/runtime/renderers.js +221 -0
- package/dist/runtime/router-v2-scoring.d.ts +16 -0
- package/dist/runtime/router-v2-scoring.js +156 -0
- package/dist/runtime/runtime-backed-task-runner.d.ts +20 -0
- package/dist/runtime/runtime-backed-task-runner.js +184 -0
- package/dist/runtime/runtime-bootstrap.d.ts +21 -0
- package/dist/runtime/runtime-bootstrap.js +224 -0
- package/dist/runtime/runtime-registry.d.ts +23 -0
- package/dist/runtime/runtime-registry.js +95 -0
- package/dist/runtime/runtime-router.d.ts +56 -0
- package/dist/runtime/runtime-router.js +652 -0
- package/dist/runtime/sandbox-profile.d.ts +54 -0
- package/dist/runtime/sandbox-profile.js +136 -0
- package/dist/runtime/slash-commands.d.ts +46 -0
- package/dist/runtime/slash-commands.js +652 -0
- package/dist/runtime/stable-json.d.ts +9 -0
- package/dist/runtime/stable-json.js +45 -0
- package/dist/runtime/tool-call-repair.d.ts +35 -0
- package/dist/runtime/tool-call-repair.js +181 -0
- package/dist/runtime/tool-dispatch-contracts.d.ts +100 -0
- package/dist/runtime/tool-dispatch-contracts.js +160 -0
- package/dist/runtime/tool-plane.d.ts +31 -0
- package/dist/runtime/tool-plane.js +112 -0
- package/dist/runtime/tool-proxy.d.ts +20 -0
- package/dist/runtime/tool-proxy.js +109 -0
- package/dist/runtime/tool-registry-contract.d.ts +40 -0
- package/dist/runtime/tool-registry-contract.js +52 -0
- package/dist/runtime/ui-components.d.ts +64 -0
- package/dist/runtime/ui-components.js +232 -0
- package/dist/runtime/weakness-remediation-index.d.ts +27 -0
- package/dist/runtime/weakness-remediation-index.js +37 -0
- package/dist/runtime/weights-config.d.ts +90 -0
- package/dist/runtime/weights-config.js +249 -0
- package/dist/runtime/worker-manifest.d.ts +34 -0
- package/dist/runtime/worker-manifest.js +204 -0
- package/dist/safety/approval-policy.d.ts +4 -0
- package/dist/safety/approval-policy.js +33 -0
- package/dist/safety/enforcement-engine.d.ts +89 -0
- package/dist/safety/enforcement-engine.js +279 -0
- package/dist/safety/guard-hooks.d.ts +3 -0
- package/dist/safety/guard-hooks.js +64 -0
- package/dist/safety/tool-authority-gate.d.ts +102 -0
- package/dist/safety/tool-authority-gate.js +200 -0
- package/dist/schema/command.schema.d.ts +121 -0
- package/dist/schema/command.schema.js +25 -0
- package/dist/schema/decision.schema.d.ts +57 -0
- package/dist/schema/decision.schema.js +32 -0
- package/dist/schema/envelope.schema.d.ts +216 -0
- package/dist/schema/envelope.schema.js +38 -0
- package/dist/schema/error.schema.d.ts +51 -0
- package/dist/schema/error.schema.js +12 -0
- package/dist/schema/evidence-bundle.schema.d.ts +196 -0
- package/dist/schema/evidence-bundle.schema.js +38 -0
- package/dist/schema/evidence.schema.d.ts +58 -0
- package/dist/schema/evidence.schema.js +31 -0
- package/dist/schema/index.d.ts +10 -0
- package/dist/schema/index.js +10 -0
- package/dist/schema/proof-bundle.schema.d.ts +150 -0
- package/dist/schema/proof-bundle.schema.js +41 -0
- package/dist/schema/provider.schema.d.ts +138 -0
- package/dist/schema/provider.schema.js +35 -0
- package/dist/schema/run-manifest.schema.d.ts +168 -0
- package/dist/schema/run-manifest.schema.js +35 -0
- package/dist/schema/version.schema.d.ts +64 -0
- package/dist/schema/version.schema.js +21 -0
- package/dist/theme/ansi.d.ts +15 -0
- package/dist/theme/ansi.js +48 -0
- package/dist/theme/colors.d.ts +87 -0
- package/dist/theme/colors.js +105 -0
- package/dist/theme/extended-palette.d.ts +85 -0
- package/dist/theme/extended-palette.js +108 -0
- package/dist/theme/external-theme-adapters.d.ts +27 -0
- package/dist/theme/external-theme-adapters.js +52 -0
- package/dist/theme/hud-theme.d.ts +6 -0
- package/dist/theme/hud-theme.js +41 -0
- package/dist/theme/index.d.ts +12 -0
- package/dist/theme/index.js +20 -0
- package/dist/theme/layout.d.ts +24 -0
- package/dist/theme/layout.js +160 -0
- package/dist/theme/library-effects.d.ts +12 -0
- package/dist/theme/library-effects.js +47 -0
- package/dist/theme/metrics.d.ts +23 -0
- package/dist/theme/metrics.js +93 -0
- package/dist/theme/parallel.d.ts +68 -0
- package/dist/theme/parallel.js +356 -0
- package/dist/theme/working-indicator.d.ts +38 -0
- package/dist/theme/working-indicator.js +149 -0
- package/dist/tui/model.d.ts +28 -0
- package/dist/tui/model.js +1 -0
- package/dist/tui/terminal-frame-renderer.d.ts +27 -0
- package/dist/tui/terminal-frame-renderer.js +130 -0
- package/dist/tui/views/capabilities-view.d.ts +3 -0
- package/dist/tui/views/capabilities-view.js +13 -0
- package/dist/tui/views/common.d.ts +11 -0
- package/dist/tui/views/common.js +35 -0
- package/dist/tui/views/dag-view.d.ts +3 -0
- package/dist/tui/views/dag-view.js +12 -0
- package/dist/tui/views/evidence-view.d.ts +3 -0
- package/dist/tui/views/evidence-view.js +18 -0
- package/dist/tui/views/index.d.ts +4 -0
- package/dist/tui/views/index.js +3 -0
- package/dist/ui/omk-sigil.d.ts +13 -0
- package/dist/ui/omk-sigil.js +268 -0
- package/dist/ui/omk-working-sweep.d.ts +61 -0
- package/dist/ui/omk-working-sweep.js +406 -0
- package/dist/util/agent-schema.d.ts +24 -0
- package/dist/util/agent-schema.js +293 -0
- package/dist/util/appshot-store.d.ts +68 -0
- package/dist/util/appshot-store.js +506 -0
- package/dist/util/chat-agent-mode.d.ts +184 -0
- package/dist/util/chat-agent-mode.js +938 -0
- package/dist/util/chat-cockpit.d.ts +56 -0
- package/dist/util/chat-cockpit.js +389 -0
- package/dist/util/chat-startup.d.ts +35 -0
- package/dist/util/chat-startup.js +330 -0
- package/dist/util/chat-state.d.ts +27 -0
- package/dist/util/chat-state.js +105 -0
- package/dist/util/checkpoint.d.ts +21 -0
- package/dist/util/checkpoint.js +238 -0
- package/dist/util/cli-contract.d.ts +46 -0
- package/dist/util/cli-contract.js +72 -0
- package/dist/util/clipboard-image.d.ts +49 -0
- package/dist/util/clipboard-image.js +263 -0
- package/dist/util/command-envelope.d.ts +19 -0
- package/dist/util/command-envelope.js +31 -0
- package/dist/util/cron-engine.d.ts +24 -0
- package/dist/util/cron-engine.js +227 -0
- package/dist/util/events-logger.d.ts +30 -0
- package/dist/util/events-logger.js +142 -0
- package/dist/util/execution-selection.d.ts +13 -0
- package/dist/util/execution-selection.js +82 -0
- package/dist/util/first-run-star.d.ts +58 -0
- package/dist/util/first-run-star.js +264 -0
- package/dist/util/fs/core.d.ts +5 -0
- package/dist/util/fs/core.js +35 -0
- package/dist/util/fs/internal.d.ts +14 -0
- package/dist/util/fs/internal.js +169 -0
- package/dist/util/fs/kimi-sync.d.ts +41 -0
- package/dist/util/fs/kimi-sync.js +495 -0
- package/dist/util/fs/logo.d.ts +2 -0
- package/dist/util/fs/logo.js +78 -0
- package/dist/util/fs/manifest.d.ts +6 -0
- package/dist/util/fs/manifest.js +40 -0
- package/dist/util/fs/mcp-diagnose.d.ts +15 -0
- package/dist/util/fs/mcp-diagnose.js +205 -0
- package/dist/util/fs/mcp-runtime-config.d.ts +23 -0
- package/dist/util/fs/mcp-runtime-config.js +424 -0
- package/dist/util/fs/paths.d.ts +13 -0
- package/dist/util/fs/paths.js +82 -0
- package/dist/util/fs/preflight.d.ts +27 -0
- package/dist/util/fs/preflight.js +271 -0
- package/dist/util/fs.d.ts +8 -0
- package/dist/util/fs.js +8 -0
- package/dist/util/git.d.ts +11 -0
- package/dist/util/git.js +39 -0
- package/dist/util/help-text.d.ts +1 -0
- package/dist/util/help-text.js +60 -0
- package/dist/util/i18n.d.ts +10 -0
- package/dist/util/i18n.js +848 -0
- package/dist/util/json-envelope.d.ts +15 -0
- package/dist/util/json-envelope.js +28 -0
- package/dist/util/mcp-preflight.d.ts +26 -0
- package/dist/util/mcp-preflight.js +29 -0
- package/dist/util/mode-preset.d.ts +29 -0
- package/dist/util/mode-preset.js +222 -0
- package/dist/util/mode-selector.d.ts +6 -0
- package/dist/util/mode-selector.js +74 -0
- package/dist/util/output-buffer.d.ts +12 -0
- package/dist/util/output-buffer.js +59 -0
- package/dist/util/process-tree.d.ts +18 -0
- package/dist/util/process-tree.js +102 -0
- package/dist/util/project-root.d.ts +27 -0
- package/dist/util/project-root.js +382 -0
- package/dist/util/provider-usage.d.ts +2 -0
- package/dist/util/provider-usage.js +1 -0
- package/dist/util/reasoning-nlp.d.ts +84 -0
- package/dist/util/reasoning-nlp.js +325 -0
- package/dist/util/resource-profile.d.ts +32 -0
- package/dist/util/resource-profile.js +219 -0
- package/dist/util/run-store.d.ts +38 -0
- package/dist/util/run-store.js +151 -0
- package/dist/util/run-view-model.d.ts +111 -0
- package/dist/util/run-view-model.js +333 -0
- package/dist/util/runtime-profile.d.ts +34 -0
- package/dist/util/runtime-profile.js +149 -0
- package/dist/util/runtime-scope.d.ts +2 -0
- package/dist/util/runtime-scope.js +19 -0
- package/dist/util/scoped-agent-file.d.ts +47 -0
- package/dist/util/scoped-agent-file.js +121 -0
- package/dist/util/screenshot-store.d.ts +42 -0
- package/dist/util/screenshot-store.js +340 -0
- package/dist/util/secret-mask.d.ts +5 -0
- package/dist/util/secret-mask.js +41 -0
- package/dist/util/session.d.ts +19 -0
- package/dist/util/session.js +80 -0
- package/dist/util/shell.d.ts +30 -0
- package/dist/util/shell.js +350 -0
- package/dist/util/snippet.d.ts +17 -0
- package/dist/util/snippet.js +110 -0
- package/dist/util/sync-manifest.d.ts +13 -0
- package/dist/util/sync-manifest.js +22 -0
- package/dist/util/terminal-input.d.ts +45 -0
- package/dist/util/terminal-input.js +67 -0
- package/dist/util/terminal-kit-bridge.d.ts +24 -0
- package/dist/util/terminal-kit-bridge.js +60 -0
- package/dist/util/terminal-layout.d.ts +18 -0
- package/dist/util/terminal-layout.js +112 -0
- package/dist/util/terminal-owner.d.ts +20 -0
- package/dist/util/terminal-owner.js +95 -0
- package/dist/util/theme.d.ts +9 -0
- package/dist/util/theme.js +9 -0
- package/dist/util/timeout-config.d.ts +18 -0
- package/dist/util/timeout-config.js +101 -0
- package/dist/util/todo-sync.d.ts +58 -0
- package/dist/util/todo-sync.js +473 -0
- package/dist/util/update-check.d.ts +94 -0
- package/dist/util/update-check.js +355 -0
- package/dist/util/usage-view-model.d.ts +22 -0
- package/dist/util/usage-view-model.js +57 -0
- package/dist/util/user-visible-output.d.ts +19 -0
- package/dist/util/user-visible-output.js +48 -0
- package/dist/util/version.d.ts +4 -0
- package/dist/util/version.js +52 -0
- package/dist/util/worktree.d.ts +10 -0
- package/dist/util/worktree.js +165 -0
- package/dist/ux/explain-loop-decision.d.ts +4 -0
- package/dist/ux/explain-loop-decision.js +55 -0
- package/dist/ux/intent-router.d.ts +15 -0
- package/dist/ux/intent-router.js +64 -0
- package/dist/ux/natural-entrypoint.d.ts +21 -0
- package/dist/ux/natural-entrypoint.js +122 -0
- package/dist/version.d.ts +13 -0
- package/dist/version.js +22 -0
- package/dist/web-bridge/host.d.ts +8 -0
- package/dist/web-bridge/host.js +109 -0
- package/dist/web-bridge/native-host.d.ts +6 -0
- package/dist/web-bridge/native-host.js +40 -0
- package/dist/web-bridge/status.d.ts +84 -0
- package/dist/web-bridge/status.js +201 -0
- package/docs/2026-05-01-16gb-lite-mode.md +37 -0
- package/docs/2026-05-01-critical-issues-and-improvements.md +361 -0
- package/docs/2026-05-01-dag-ensemble-runtime.md +74 -0
- package/docs/2026-05-02-p1-p2-hardening-handoff.md +139 -0
- package/docs/2026-05-05-adjustable-timeouts-and-cron-jobs.md +252 -0
- package/docs/2026-05-08-omk-hardening-plan.md +62 -0
- package/docs/2026-05-14/critical-issues.md +20 -0
- package/docs/2026-05-14/improvements.md +14 -0
- package/docs/2026-05-14/init-checklist.md +25 -0
- package/docs/2026-05-14/plan.md +20 -0
- package/docs/2026-05-15/critical-issues.md +20 -0
- package/docs/2026-05-15/improvements.md +14 -0
- package/docs/2026-05-15/init-checklist.md +25 -0
- package/docs/2026-05-15/plan.md +20 -0
- package/docs/2026-05-16/critical-issues.md +20 -0
- package/docs/2026-05-16/improvements.md +14 -0
- package/docs/2026-05-16/init-checklist.md +25 -0
- package/docs/2026-05-16/plan.md +20 -0
- package/docs/2026-05-17/critical-issues.md +20 -0
- package/docs/2026-05-17/improvements.md +14 -0
- package/docs/2026-05-17/init-checklist.md +25 -0
- package/docs/2026-05-17/plan.md +20 -0
- package/docs/2026-05-18/improvements.md +14 -0
- package/docs/2026-05-18/init-checklist.md +25 -0
- package/docs/2026-05-18/plan.md +20 -0
- package/docs/2026-05-18-critical-issues-and-improvements.md +441 -0
- package/docs/2026-05-18-project-direction.md +223 -0
- package/docs/2026-05-19/critical-issues.md +20 -0
- package/docs/2026-05-19/improvements.md +14 -0
- package/docs/2026-05-19/init-checklist.md +25 -0
- package/docs/2026-05-19/plan.md +20 -0
- package/docs/2026-05-20/critical-issues.md +20 -0
- package/docs/2026-05-20/improvements.md +14 -0
- package/docs/2026-05-20/init-checklist.md +25 -0
- package/docs/2026-05-20/plan.md +20 -0
- package/docs/2026-05-21/critical-issues.md +20 -0
- package/docs/2026-05-21/improvements.md +14 -0
- package/docs/2026-05-21/init-checklist.md +25 -0
- package/docs/2026-05-21/plan.md +20 -0
- package/docs/2026-05-22/critical-issues.md +20 -0
- package/docs/2026-05-22/improvements.md +14 -0
- package/docs/2026-05-22/init-checklist.md +25 -0
- package/docs/2026-05-22/plan.md +20 -0
- package/docs/2026-05-23/critical-issues.md +20 -0
- package/docs/2026-05-23/improvements.md +14 -0
- package/docs/2026-05-23/init-checklist.md +25 -0
- package/docs/2026-05-23/plan.md +20 -0
- package/docs/2026-05-24/critical-issues.md +30 -0
- package/docs/2026-05-24/improvements.md +23 -0
- package/docs/2026-05-24/init-checklist.md +25 -0
- package/docs/2026-05-24/plan.md +22 -0
- package/docs/2026-05-25/critical-issues.md +20 -0
- package/docs/2026-05-25/improvements.md +14 -0
- package/docs/2026-05-25/init-checklist.md +25 -0
- package/docs/2026-05-25/plan.md +20 -0
- package/docs/2026-05-26/critical-issues.md +20 -0
- package/docs/2026-05-26/improvements.md +14 -0
- package/docs/2026-05-26/init-checklist.md +25 -0
- package/docs/2026-05-26/plan.md +20 -0
- package/docs/2026-05-27/critical-issues.md +20 -0
- package/docs/2026-05-27/improvements.md +14 -0
- package/docs/2026-05-27/init-checklist.md +25 -0
- package/docs/2026-05-27/plan.md +20 -0
- package/docs/2026-05-28/critical-issues.md +20 -0
- package/docs/2026-05-28/improvements.md +14 -0
- package/docs/2026-05-28/init-checklist.md +25 -0
- package/docs/2026-05-28/plan.md +20 -0
- package/docs/2026-05-29/critical-issues.md +20 -0
- package/docs/2026-05-29/improvements.md +14 -0
- package/docs/2026-05-29/init-checklist.md +25 -0
- package/docs/2026-05-29/plan.md +20 -0
- package/docs/2026-05-30/critical-issues.md +20 -0
- package/docs/2026-05-30/improvements.md +14 -0
- package/docs/2026-05-30/init-checklist.md +25 -0
- package/docs/2026-05-30/plan.md +20 -0
- package/docs/2026-05-31/critical-issues.md +20 -0
- package/docs/2026-05-31/improvements.md +14 -0
- package/docs/2026-05-31/init-checklist.md +25 -0
- package/docs/2026-05-31/plan.md +20 -0
- package/docs/2026-06-01/critical-issues.md +20 -0
- package/docs/2026-06-01/improvements.md +14 -0
- package/docs/2026-06-01/init-checklist.md +25 -0
- package/docs/2026-06-01/plan.md +20 -0
- package/docs/2026-06-02/critical-issues.md +20 -0
- package/docs/2026-06-02/improvements.md +14 -0
- package/docs/2026-06-02/init-checklist.md +25 -0
- package/docs/2026-06-02/plan.md +20 -0
- package/docs/2026-06-03/critical-issues.md +20 -0
- package/docs/2026-06-03/improvements.md +14 -0
- package/docs/2026-06-03/init-checklist.md +25 -0
- package/docs/2026-06-03/plan.md +20 -0
- package/docs/2026-06-04/critical-issues.md +20 -0
- package/docs/2026-06-04/improvements.md +14 -0
- package/docs/2026-06-04/init-checklist.md +25 -0
- package/docs/2026-06-04/plan.md +20 -0
- package/docs/2026-06-05/critical-issues.md +20 -0
- package/docs/2026-06-05/improvements.md +14 -0
- package/docs/2026-06-05/init-checklist.md +25 -0
- package/docs/2026-06-05/plan.md +20 -0
- package/docs/2026-06-06/critical-issues.md +20 -0
- package/docs/2026-06-06/improvements.md +14 -0
- package/docs/2026-06-06/init-checklist.md +25 -0
- package/docs/2026-06-06/plan.md +20 -0
- package/docs/2026-06-07/critical-issues.md +20 -0
- package/docs/2026-06-07/improvements.md +14 -0
- package/docs/2026-06-07/init-checklist.md +25 -0
- package/docs/2026-06-07/plan.md +20 -0
- package/docs/2026-06-08/critical-issues.md +20 -0
- package/docs/2026-06-08/improvements.md +14 -0
- package/docs/2026-06-08/init-checklist.md +25 -0
- package/docs/2026-06-08/plan.md +20 -0
- package/docs/2026-06-09/critical-issues.md +20 -0
- package/docs/2026-06-09/improvements.md +14 -0
- package/docs/2026-06-09/init-checklist.md +25 -0
- package/docs/2026-06-09/plan.md +20 -0
- package/docs/2026-06-10/critical-issues.md +20 -0
- package/docs/2026-06-10/improvements.md +14 -0
- package/docs/2026-06-10/init-checklist.md +25 -0
- package/docs/2026-06-10/plan.md +20 -0
- package/docs/2026-06-11/critical-issues.md +20 -0
- package/docs/2026-06-11/improvements.md +14 -0
- package/docs/2026-06-11/init-checklist.md +25 -0
- package/docs/2026-06-11/plan.md +20 -0
- package/docs/2026-06-14/critical-issues.md +19 -0
- package/docs/2026-06-14/improvements.md +15 -0
- package/docs/2026-06-14/init-checklist.md +25 -0
- package/docs/2026-06-14/plan.md +20 -0
- package/docs/2026-06-15/critical-issues.md +19 -0
- package/docs/2026-06-15/improvements.md +15 -0
- package/docs/2026-06-15/init-checklist.md +25 -0
- package/docs/2026-06-15/plan.md +20 -0
- package/docs/ARCHITECTURE_ANALYSIS_CODEGRAPH.md +223 -0
- package/docs/GSTACK_MIGRATION.md +169 -0
- package/docs/OMK_CLI_V2_RUNTIME_ARCHITECTURE.md +2058 -0
- package/docs/adr/0001-no-native-rust-lane.md +52 -0
- package/docs/benchmark-design.md +122 -0
- package/docs/claims.md +85 -0
- package/docs/cli-v2-migration.md +87 -0
- package/docs/codex-oauth-setup.md +62 -0
- package/docs/comparisons/omk-vs-claude-code.md +31 -0
- package/docs/comparisons/omk-vs-codex.md +33 -0
- package/docs/comparisons/omk-vs-mcp-agent.md +33 -0
- package/docs/comparisons/omk-vs-opencode.md +32 -0
- package/docs/decision-layer-calibration.md +20 -0
- package/docs/decisions/2026-06-10-git-history-bloat.md +61 -0
- package/docs/decisions/ADR-theme-dark-only-assets.md +43 -0
- package/docs/demo/verified-run/README.md +32 -0
- package/docs/demo/verified-run/artifacts/README.md +18 -0
- package/docs/demo/verified-run/capture-plan.md +51 -0
- package/docs/demo/verified-run/generated-diff.md +27 -0
- package/docs/demo/verified-run/raw-prompt.md +21 -0
- package/docs/demo/verified-run/video-shot-list.md +14 -0
- package/docs/design-md.md +35 -0
- package/docs/geo-eval-prompts.md +53 -0
- package/docs/getting-started.md +37 -0
- package/docs/github-organic-promotion.md +127 -0
- package/docs/headroom-omk-final-summary.md +188 -0
- package/docs/headroom-omk-integration.md +394 -0
- package/docs/headroom-omk-setup-guide.md +422 -0
- package/docs/headroom-omk-usage-examples.md +371 -0
- package/docs/hud-and-parallel-ux.md +155 -0
- package/docs/integrations/adaptorch.md +46 -0
- package/docs/integrations/ouroboros.md +96 -0
- package/docs/kimi-oauth-usage-status.md +33 -0
- package/docs/kimi-okabe-dmail.md +44 -0
- package/docs/local-graph-memory.md +102 -0
- package/docs/lsp.md +48 -0
- package/docs/mcp-ontology-proposal.md +12 -0
- package/docs/native-root-runtime-algorithms.md +402 -0
- package/docs/native-root-runtime-hardening.md +131 -0
- package/docs/neo4j-memory.md +5 -0
- package/docs/openai-platform-image-keys.md +23 -0
- package/docs/phase1-final-report.md +154 -0
- package/docs/provider-maturity.md +44 -0
- package/docs/runtime-architecture.md +89 -0
- package/docs/use-cases/evidence-gated-coding-agents.md +52 -0
- package/docs/use-cases/no-kimi-mode.md +38 -0
- package/docs/use-cases/provider-routing-for-ai-coding.md +36 -0
- package/docs/use-cases/replayable-agent-runs.md +40 -0
- package/docs/use-cases/scoped-mcp-for-coding-agents.md +34 -0
- package/docs/versioning.md +55 -0
- package/docs/what-is-omk.md +64 -0
- package/llms.txt +48 -0
- package/package.json +196 -97
- package/readmeasset/.npmignore +25 -0
- package/readmeasset/ASSET_INDEX.md +42 -0
- package/readmeasset/ASSET_PROVENANCE.md +116 -0
- package/readmeasset/omk-adaptorch-ouroboros-supermemory.svg +95 -0
- package/readmeasset/omk-control-surfaces.svg +55 -0
- package/readmeasset/omk-core-loop.svg +26 -0
- package/readmeasset/omk-evidence-gate-card.png +0 -0
- package/readmeasset/omk-github-banner.webp +0 -0
- package/readmeasset/omk-github-header.webp +0 -0
- package/readmeasset/omk-init-control-loop.svg +118 -0
- package/readmeasset/omk-install-card.png +0 -0
- package/readmeasset/omk-logo-512.png +0 -0
- package/readmeasset/omk-logo-mark.svg +8 -0
- package/readmeasset/omk-parallel-subagents.svg +97 -0
- package/readmeasset/omk-provider-router-card.png +0 -0
- package/readmeasset/omk-release-assertions.svg +51 -0
- package/readmeasset/omk-runtime-flow-0.78.0.webp +0 -0
- package/readmeasset/omk-social-preview.png +0 -0
- package/readmeasset/omk-tui-0.78.0.webp +0 -0
- package/readmeasset/omk_tui.png +0 -0
- package/templates/.kimi/AGENTS.md +93 -0
- package/templates/.omk/agents/okabe.yaml +30 -0
- package/templates/.omk/agents/roles/aggregator.yaml +13 -0
- package/templates/.omk/agents/roles/architect.yaml +13 -0
- package/templates/.omk/agents/roles/coder.yaml +9 -0
- package/templates/.omk/agents/roles/explorer.yaml +13 -0
- package/templates/.omk/agents/roles/integrator.yaml +13 -0
- package/templates/.omk/agents/roles/interviewer.yaml +13 -0
- package/templates/.omk/agents/roles/ontology.yaml +18 -0
- package/templates/.omk/agents/roles/planner.yaml +13 -0
- package/templates/.omk/agents/roles/qa.yaml +12 -0
- package/templates/.omk/agents/roles/researcher.yaml +13 -0
- package/templates/.omk/agents/roles/reviewer.yaml +13 -0
- package/templates/.omk/agents/roles/router.yaml +13 -0
- package/templates/.omk/agents/roles/security.yaml +12 -0
- package/templates/.omk/agents/roles/tester.yaml +12 -0
- package/templates/.omk/agents/roles/vision-debugger.yaml +12 -0
- package/templates/.omk/agents/root.yaml +62 -0
- package/templates/.omk/lsp.json +27 -0
- package/templates/.omk/prompts/root.md +74 -0
- package/templates/AGENTS.md +510 -0
- package/templates/skills/agents/agentmemory/SKILL.md +40 -0
- package/templates/skills/agents/andrej-karpathy-skills/SKILL.md +41 -0
- package/templates/skills/agents/claude-for-legal/SKILL.md +63 -0
- package/templates/skills/agents/claude-for-legal/references/workflow-catalog.md +38 -0
- package/templates/skills/agents/matt-pocock-skills/SKILL.md +40 -0
- package/templates/skills/agents/multica/SKILL.md +40 -0
- package/templates/skills/agents/omk-agent-reach-websearch/SKILL.md +55 -0
- package/templates/skills/agents/omk-backend-api-review/SKILL.md +30 -0
- package/templates/skills/agents/omk-code-review/SKILL.md +40 -0
- package/templates/skills/agents/omk-context-broker/SKILL.md +57 -0
- package/templates/skills/agents/omk-control-loop-debugger/SKILL.md +49 -0
- package/templates/skills/agents/omk-design-system/SKILL.md +22 -0
- package/templates/skills/agents/omk-docs-release/SKILL.md +42 -0
- package/templates/skills/agents/omk-evidence-contract/SKILL.md +52 -0
- package/templates/skills/agents/omk-frontend-implementation/SKILL.md +13 -0
- package/templates/skills/agents/omk-frontend-ui-review/SKILL.md +29 -0
- package/templates/skills/agents/omk-git-commit-pr/SKILL.md +45 -0
- package/templates/skills/agents/omk-industrial-control-loop/SKILL.md +33 -0
- package/templates/skills/agents/omk-plan-first/SKILL.md +39 -0
- package/templates/skills/agents/omk-project-rules/SKILL.md +46 -0
- package/templates/skills/agents/omk-python-typing/SKILL.md +33 -0
- package/templates/skills/agents/omk-quality-gate/SKILL.md +54 -0
- package/templates/skills/agents/omk-repo-explorer/SKILL.md +33 -0
- package/templates/skills/agents/omk-research-verify/SKILL.md +30 -0
- package/templates/skills/agents/omk-secret-guard/SKILL.md +23 -0
- package/templates/skills/agents/omk-security-review/SKILL.md +49 -0
- package/templates/skills/agents/omk-test-debug-loop/SKILL.md +43 -0
- package/templates/skills/agents/omk-troubleshooting/SKILL.md +14 -0
- package/templates/skills/agents/omk-typescript-strict/SKILL.md +38 -0
- package/templates/skills/agents/omk-worktree-team/SKILL.md +44 -0
- package/templates/skills/agents/react-doctor/SKILL.md +46 -0
- package/templates/skills/kimi/agentmemory/SKILL.md +40 -0
- package/templates/skills/kimi/andrej-karpathy-skills/SKILL.md +41 -0
- package/templates/skills/kimi/awesome-design-md/SKILL.md +54 -0
- package/templates/skills/kimi/claude-for-legal/SKILL.md +63 -0
- package/templates/skills/kimi/claude-for-legal/references/workflow-catalog.md +38 -0
- package/templates/skills/kimi/deepseek-api/SKILL.md +27 -0
- package/templates/skills/kimi/deepseek-disable/SKILL.md +20 -0
- package/templates/skills/kimi/deepseek-enable/SKILL.md +20 -0
- package/templates/skills/kimi/deepseekset/SKILL.md +27 -0
- package/templates/skills/kimi/graph-view/SKILL.md +29 -0
- package/templates/skills/kimi/matt-pocock-skills/SKILL.md +40 -0
- package/templates/skills/kimi/multica/SKILL.md +40 -0
- package/templates/skills/kimi/omk-agent-reach-websearch/SKILL.md +55 -0
- package/templates/skills/kimi/omk-backend-api-review/SKILL.md +30 -0
- package/templates/skills/kimi/omk-code-review/SKILL.md +34 -0
- package/templates/skills/kimi/omk-context-broker/SKILL.md +57 -0
- package/templates/skills/kimi/omk-control-loop-debugger/SKILL.md +49 -0
- package/templates/skills/kimi/omk-design-md/SKILL.md +55 -0
- package/templates/skills/kimi/omk-design-system/SKILL.md +22 -0
- package/templates/skills/kimi/omk-docs-release/SKILL.md +42 -0
- package/templates/skills/kimi/omk-evidence-contract/SKILL.md +52 -0
- package/templates/skills/kimi/omk-flow-bugfix/SKILL.md +20 -0
- package/templates/skills/kimi/omk-flow-design-to-code/SKILL.md +23 -0
- package/templates/skills/kimi/omk-flow-feature-dev/SKILL.md +24 -0
- package/templates/skills/kimi/omk-flow-pr-review/SKILL.md +17 -0
- package/templates/skills/kimi/omk-flow-refactor/SKILL.md +21 -0
- package/templates/skills/kimi/omk-flow-release/SKILL.md +20 -0
- package/templates/skills/kimi/omk-flow-team-run/SKILL.md +24 -0
- package/templates/skills/kimi/omk-frontend-implementation/SKILL.md +13 -0
- package/templates/skills/kimi/omk-frontend-ui-review/SKILL.md +29 -0
- package/templates/skills/kimi/omk-git-commit-pr/SKILL.md +45 -0
- package/templates/skills/kimi/omk-global-rules/SKILL.md +31 -0
- package/templates/skills/kimi/omk-industrial-control-loop/SKILL.md +33 -0
- package/templates/skills/kimi/omk-kimi-runtime/SKILL.md +46 -0
- package/templates/skills/kimi/omk-multimodal-ui-review/SKILL.md +26 -0
- package/templates/skills/kimi/omk-plan-first/SKILL.md +39 -0
- package/templates/skills/kimi/omk-project-rules/SKILL.md +21 -0
- package/templates/skills/kimi/omk-python-typing/SKILL.md +33 -0
- package/templates/skills/kimi/omk-quality-gate/SKILL.md +36 -0
- package/templates/skills/kimi/omk-repo-explorer/SKILL.md +33 -0
- package/templates/skills/kimi/omk-research-verify/SKILL.md +30 -0
- package/templates/skills/kimi/omk-secret-guard/SKILL.md +23 -0
- package/templates/skills/kimi/omk-security-review/SKILL.md +49 -0
- package/templates/skills/kimi/omk-task-router/SKILL.md +27 -0
- package/templates/skills/kimi/omk-test-debug-loop/SKILL.md +43 -0
- package/templates/skills/kimi/omk-typescript-strict/SKILL.md +38 -0
- package/templates/skills/kimi/omk-worktree-team/SKILL.md +44 -0
- package/templates/skills/kimi/open-design/SKILL.md +56 -0
- package/templates/skills/kimi/provider/SKILL.md +47 -0
- package/templates/skills/kimi/react-doctor/SKILL.md +46 -0
- package/templates/skills/kimi/speckit-analyze/SKILL.md +255 -0
- package/templates/skills/kimi/speckit-checklist/SKILL.md +367 -0
- package/templates/skills/kimi/speckit-clarify/SKILL.md +249 -0
- package/templates/skills/kimi/speckit-constitution/SKILL.md +152 -0
- package/templates/skills/kimi/speckit-implement/SKILL.md +204 -0
- package/templates/skills/kimi/speckit-plan/SKILL.md +147 -0
- package/templates/skills/kimi/speckit-specify/SKILL.md +325 -0
- package/templates/skills/kimi/speckit-tasks/SKILL.md +197 -0
- package/templates/skills/kimi/speckit-taskstoissues/SKILL.md +101 -0
- package/templates/skills/kimi/think/SKILL.md +41 -0
- package/templates/spec-kit-omk-preset/commands/plan.md +21 -0
- package/templates/spec-kit-omk-preset/commands/tasks.md +21 -0
- package/templates/spec-kit-omk-preset/preset.yml +12 -0
- package/templates/spec-kit-omk-preset/templates/plan-template.md +75 -0
- package/templates/spec-kit-omk-preset/templates/spec-template.md +80 -0
- package/templates/spec-kit-omk-preset/templates/tasks-template.md +160 -0
- package/templates/web-bridge/chrome-extension/README.md +18 -0
- package/templates/web-bridge/chrome-extension/background.js +57 -0
- package/templates/web-bridge/chrome-extension/content-script.js +46 -0
- package/templates/web-bridge/chrome-extension/manifest.json +16 -0
- package/templates/web-bridge/chrome-extension/popup.html +21 -0
- package/templates/web-bridge/chrome-extension/popup.js +9 -0
- package/dist/bun/cli.d.ts +0 -3
- package/dist/bun/cli.d.ts.map +0 -1
- package/dist/bun/cli.js +0 -10
- package/dist/bun/cli.js.map +0 -1
- package/dist/bun/register-bedrock.d.ts +0 -2
- package/dist/bun/register-bedrock.d.ts.map +0 -1
- package/dist/bun/register-bedrock.js +0 -4
- package/dist/bun/register-bedrock.js.map +0 -1
- package/dist/bun/restore-sandbox-env.d.ts +0 -13
- package/dist/bun/restore-sandbox-env.d.ts.map +0 -1
- package/dist/bun/restore-sandbox-env.js +0 -32
- package/dist/bun/restore-sandbox-env.js.map +0 -1
- package/dist/cli/args.d.ts +0 -56
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js +0 -392
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/config-selector.d.ts +0 -14
- package/dist/cli/config-selector.d.ts.map +0 -1
- package/dist/cli/config-selector.js +0 -31
- package/dist/cli/config-selector.js.map +0 -1
- package/dist/cli/file-processor.d.ts +0 -15
- package/dist/cli/file-processor.d.ts.map +0 -1
- package/dist/cli/file-processor.js +0 -82
- package/dist/cli/file-processor.js.map +0 -1
- package/dist/cli/initial-message.d.ts +0 -18
- package/dist/cli/initial-message.d.ts.map +0 -1
- package/dist/cli/initial-message.js +0 -22
- package/dist/cli/initial-message.js.map +0 -1
- package/dist/cli/list-models.d.ts +0 -9
- package/dist/cli/list-models.d.ts.map +0 -1
- package/dist/cli/list-models.js +0 -98
- package/dist/cli/list-models.js.map +0 -1
- package/dist/cli/session-picker.d.ts +0 -9
- package/dist/cli/session-picker.d.ts.map +0 -1
- package/dist/cli/session-picker.js +0 -35
- package/dist/cli/session-picker.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.d.ts +0 -132
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -529
- package/dist/config.js.map +0 -1
- package/dist/core/adaptive-runtime.d.ts +0 -150
- package/dist/core/adaptive-runtime.d.ts.map +0 -1
- package/dist/core/adaptive-runtime.js +0 -378
- package/dist/core/adaptive-runtime.js.map +0 -1
- package/dist/core/agent-session-runtime.d.ts +0 -117
- package/dist/core/agent-session-runtime.d.ts.map +0 -1
- package/dist/core/agent-session-runtime.js +0 -300
- package/dist/core/agent-session-runtime.js.map +0 -1
- package/dist/core/agent-session-services.d.ts +0 -87
- package/dist/core/agent-session-services.d.ts.map +0 -1
- package/dist/core/agent-session-services.js +0 -119
- package/dist/core/agent-session-services.js.map +0 -1
- package/dist/core/agent-session.d.ts +0 -604
- package/dist/core/agent-session.d.ts.map +0 -1
- package/dist/core/agent-session.js +0 -2535
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/auth-guidance.d.ts +0 -5
- package/dist/core/auth-guidance.d.ts.map +0 -1
- package/dist/core/auth-guidance.js +0 -21
- package/dist/core/auth-guidance.js.map +0 -1
- package/dist/core/auth-storage.d.ts +0 -141
- package/dist/core/auth-storage.d.ts.map +0 -1
- package/dist/core/auth-storage.js +0 -445
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/bash-executor.d.ts +0 -32
- package/dist/core/bash-executor.d.ts.map +0 -1
- package/dist/core/bash-executor.js +0 -111
- package/dist/core/bash-executor.js.map +0 -1
- package/dist/core/compaction/branch-summarization.d.ts +0 -90
- package/dist/core/compaction/branch-summarization.d.ts.map +0 -1
- package/dist/core/compaction/branch-summarization.js +0 -249
- package/dist/core/compaction/branch-summarization.js.map +0 -1
- package/dist/core/compaction/compaction.d.ts +0 -132
- package/dist/core/compaction/compaction.d.ts.map +0 -1
- package/dist/core/compaction/compaction.js +0 -635
- package/dist/core/compaction/compaction.js.map +0 -1
- package/dist/core/compaction/index.d.ts +0 -7
- package/dist/core/compaction/index.d.ts.map +0 -1
- package/dist/core/compaction/index.js +0 -7
- package/dist/core/compaction/index.js.map +0 -1
- package/dist/core/compaction/utils.d.ts +0 -38
- package/dist/core/compaction/utils.d.ts.map +0 -1
- package/dist/core/compaction/utils.js +0 -153
- package/dist/core/compaction/utils.js.map +0 -1
- package/dist/core/defaults.d.ts +0 -3
- package/dist/core/defaults.d.ts.map +0 -1
- package/dist/core/defaults.js +0 -2
- package/dist/core/defaults.js.map +0 -1
- package/dist/core/diagnostics.d.ts +0 -15
- package/dist/core/diagnostics.d.ts.map +0 -1
- package/dist/core/diagnostics.js +0 -2
- package/dist/core/diagnostics.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -9
- package/dist/core/event-bus.d.ts.map +0 -1
- package/dist/core/event-bus.js +0 -25
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/exec.d.ts +0 -29
- package/dist/core/exec.d.ts.map +0 -1
- package/dist/core/exec.js +0 -75
- package/dist/core/exec.js.map +0 -1
- package/dist/core/export-html/ansi-to-html.d.ts +0 -22
- package/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
- package/dist/core/export-html/ansi-to-html.js +0 -249
- package/dist/core/export-html/ansi-to-html.js.map +0 -1
- package/dist/core/export-html/index.d.ts +0 -37
- package/dist/core/export-html/index.d.ts.map +0 -1
- package/dist/core/export-html/index.js +0 -226
- package/dist/core/export-html/index.js.map +0 -1
- package/dist/core/export-html/template.css +0 -1066
- package/dist/core/export-html/template.html +0 -55
- package/dist/core/export-html/template.js +0 -1864
- package/dist/core/export-html/tool-renderer.d.ts +0 -34
- package/dist/core/export-html/tool-renderer.d.ts.map +0 -1
- package/dist/core/export-html/tool-renderer.js +0 -108
- package/dist/core/export-html/tool-renderer.js.map +0 -1
- package/dist/core/export-html/vendor/highlight.min.js +0 -1213
- package/dist/core/export-html/vendor/marked.min.js +0 -6
- package/dist/core/extensions/index.d.ts +0 -12
- package/dist/core/extensions/index.d.ts.map +0 -1
- package/dist/core/extensions/index.js +0 -9
- package/dist/core/extensions/index.js.map +0 -1
- package/dist/core/extensions/loader.d.ts +0 -24
- package/dist/core/extensions/loader.d.ts.map +0 -1
- package/dist/core/extensions/loader.js +0 -494
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/runner.d.ts +0 -161
- package/dist/core/extensions/runner.d.ts.map +0 -1
- package/dist/core/extensions/runner.js +0 -842
- package/dist/core/extensions/runner.js.map +0 -1
- package/dist/core/extensions/types.d.ts +0 -1181
- package/dist/core/extensions/types.d.ts.map +0 -1
- package/dist/core/extensions/types.js +0 -45
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/extensions/wrapper.d.ts +0 -20
- package/dist/core/extensions/wrapper.d.ts.map +0 -1
- package/dist/core/extensions/wrapper.js +0 -22
- package/dist/core/extensions/wrapper.js.map +0 -1
- package/dist/core/footer-data-provider.d.ts +0 -54
- package/dist/core/footer-data-provider.d.ts.map +0 -1
- package/dist/core/footer-data-provider.js +0 -338
- package/dist/core/footer-data-provider.js.map +0 -1
- package/dist/core/http-dispatcher.d.ts +0 -21
- package/dist/core/http-dispatcher.d.ts.map +0 -1
- package/dist/core/http-dispatcher.js +0 -48
- package/dist/core/http-dispatcher.js.map +0 -1
- package/dist/core/index.d.ts +0 -12
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -12
- package/dist/core/index.js.map +0 -1
- package/dist/core/keybindings.d.ts +0 -353
- package/dist/core/keybindings.d.ts.map +0 -1
- package/dist/core/keybindings.js +0 -295
- package/dist/core/keybindings.js.map +0 -1
- package/dist/core/messages.d.ts +0 -77
- package/dist/core/messages.d.ts.map +0 -1
- package/dist/core/messages.js +0 -123
- package/dist/core/messages.js.map +0 -1
- package/dist/core/model-registry.d.ts +0 -150
- package/dist/core/model-registry.d.ts.map +0 -1
- package/dist/core/model-registry.js +0 -789
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-resolver.d.ts +0 -110
- package/dist/core/model-resolver.d.ts.map +0 -1
- package/dist/core/model-resolver.js +0 -495
- package/dist/core/model-resolver.js.map +0 -1
- package/dist/core/omk-control.d.ts +0 -62
- package/dist/core/omk-control.d.ts.map +0 -1
- package/dist/core/omk-control.js +0 -190
- package/dist/core/omk-control.js.map +0 -1
- package/dist/core/omk-subagent.d.ts +0 -17
- package/dist/core/omk-subagent.d.ts.map +0 -1
- package/dist/core/omk-subagent.js +0 -704
- package/dist/core/omk-subagent.js.map +0 -1
- package/dist/core/output-guard.d.ts +0 -7
- package/dist/core/output-guard.d.ts.map +0 -1
- package/dist/core/output-guard.js +0 -89
- package/dist/core/output-guard.js.map +0 -1
- package/dist/core/package-manager.d.ts +0 -206
- package/dist/core/package-manager.d.ts.map +0 -1
- package/dist/core/package-manager.js +0 -2056
- package/dist/core/package-manager.js.map +0 -1
- package/dist/core/prompt-templates.d.ts +0 -52
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js +0 -238
- package/dist/core/prompt-templates.js.map +0 -1
- package/dist/core/provider-attribution.d.ts +0 -4
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js +0 -78
- package/dist/core/provider-attribution.js.map +0 -1
- package/dist/core/provider-display-names.d.ts +0 -2
- package/dist/core/provider-display-names.d.ts.map +0 -1
- package/dist/core/provider-display-names.js +0 -35
- package/dist/core/provider-display-names.js.map +0 -1
- package/dist/core/resolve-config-value.d.ts +0 -31
- package/dist/core/resolve-config-value.d.ts.map +0 -1
- package/dist/core/resolve-config-value.js +0 -249
- package/dist/core/resolve-config-value.js.map +0 -1
- package/dist/core/resource-loader.d.ts +0 -194
- package/dist/core/resource-loader.d.ts.map +0 -1
- package/dist/core/resource-loader.js +0 -740
- package/dist/core/resource-loader.js.map +0 -1
- package/dist/core/runtime-defaults.d.ts +0 -14
- package/dist/core/runtime-defaults.d.ts.map +0 -1
- package/dist/core/runtime-defaults.js +0 -15
- package/dist/core/runtime-defaults.js.map +0 -1
- package/dist/core/sdk.d.ts +0 -109
- package/dist/core/sdk.d.ts.map +0 -1
- package/dist/core/sdk.js +0 -270
- package/dist/core/sdk.js.map +0 -1
- package/dist/core/session-cwd.d.ts +0 -19
- package/dist/core/session-cwd.d.ts.map +0 -1
- package/dist/core/session-cwd.js +0 -38
- package/dist/core/session-cwd.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -332
- package/dist/core/session-manager.d.ts.map +0 -1
- package/dist/core/session-manager.js +0 -1218
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/settings-manager.d.ts +0 -273
- package/dist/core/settings-manager.d.ts.map +0 -1
- package/dist/core/settings-manager.js +0 -839
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/skills.d.ts +0 -60
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/core/skills.js +0 -387
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts +0 -26
- package/dist/core/slash-commands.d.ts.map +0 -1
- package/dist/core/slash-commands.js +0 -98
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/source-info.d.ts +0 -18
- package/dist/core/source-info.d.ts.map +0 -1
- package/dist/core/source-info.js +0 -19
- package/dist/core/source-info.js.map +0 -1
- package/dist/core/system-prompt.d.ts +0 -28
- package/dist/core/system-prompt.d.ts.map +0 -1
- package/dist/core/system-prompt.js +0 -120
- package/dist/core/system-prompt.js.map +0 -1
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js +0 -10
- package/dist/core/telemetry.js.map +0 -1
- package/dist/core/timings.d.ts +0 -4
- package/dist/core/timings.d.ts.map +0 -1
- package/dist/core/timings.js +0 -32
- package/dist/core/timings.js.map +0 -1
- package/dist/core/tools/bash.d.ts +0 -68
- package/dist/core/tools/bash.d.ts.map +0 -1
- package/dist/core/tools/bash.js +0 -337
- package/dist/core/tools/bash.js.map +0 -1
- package/dist/core/tools/edit-diff.d.ts +0 -87
- package/dist/core/tools/edit-diff.d.ts.map +0 -1
- package/dist/core/tools/edit-diff.js +0 -345
- package/dist/core/tools/edit-diff.js.map +0 -1
- package/dist/core/tools/edit.d.ts +0 -51
- package/dist/core/tools/edit.d.ts.map +0 -1
- package/dist/core/tools/edit.js +0 -284
- package/dist/core/tools/edit.js.map +0 -1
- package/dist/core/tools/file-mutation-queue.d.ts +0 -6
- package/dist/core/tools/file-mutation-queue.d.ts.map +0 -1
- package/dist/core/tools/file-mutation-queue.js +0 -52
- package/dist/core/tools/file-mutation-queue.js.map +0 -1
- package/dist/core/tools/find.d.ts +0 -35
- package/dist/core/tools/find.d.ts.map +0 -1
- package/dist/core/tools/find.js +0 -297
- package/dist/core/tools/find.js.map +0 -1
- package/dist/core/tools/grep.d.ts +0 -37
- package/dist/core/tools/grep.d.ts.map +0 -1
- package/dist/core/tools/grep.js +0 -304
- package/dist/core/tools/grep.js.map +0 -1
- package/dist/core/tools/index.d.ts +0 -40
- package/dist/core/tools/index.d.ts.map +0 -1
- package/dist/core/tools/index.js +0 -112
- package/dist/core/tools/index.js.map +0 -1
- package/dist/core/tools/ls.d.ts +0 -37
- package/dist/core/tools/ls.d.ts.map +0 -1
- package/dist/core/tools/ls.js +0 -167
- package/dist/core/tools/ls.js.map +0 -1
- package/dist/core/tools/output-accumulator.d.ts +0 -52
- package/dist/core/tools/output-accumulator.d.ts.map +0 -1
- package/dist/core/tools/output-accumulator.js +0 -184
- package/dist/core/tools/output-accumulator.js.map +0 -1
- package/dist/core/tools/path-utils.d.ts +0 -10
- package/dist/core/tools/path-utils.d.ts.map +0 -1
- package/dist/core/tools/path-utils.js +0 -99
- package/dist/core/tools/path-utils.js.map +0 -1
- package/dist/core/tools/read.d.ts +0 -35
- package/dist/core/tools/read.d.ts.map +0 -1
- package/dist/core/tools/read.js +0 -289
- package/dist/core/tools/read.js.map +0 -1
- package/dist/core/tools/render-utils.d.ts +0 -24
- package/dist/core/tools/render-utils.d.ts.map +0 -1
- package/dist/core/tools/render-utils.js +0 -65
- package/dist/core/tools/render-utils.js.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +0 -14
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +0 -1
- package/dist/core/tools/tool-definition-wrapper.js +0 -34
- package/dist/core/tools/tool-definition-wrapper.js.map +0 -1
- package/dist/core/tools/truncate.d.ts +0 -70
- package/dist/core/tools/truncate.d.ts.map +0 -1
- package/dist/core/tools/truncate.js +0 -215
- package/dist/core/tools/truncate.js.map +0 -1
- package/dist/core/tools/write.d.ts +0 -26
- package/dist/core/tools/write.d.ts.map +0 -1
- package/dist/core/tools/write.js +0 -197
- package/dist/core/tools/write.js.map +0 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -45
- package/dist/index.js.map +0 -1
- package/dist/main.d.ts +0 -12
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -673
- package/dist/main.js.map +0 -1
- package/dist/migrations.d.ts +0 -35
- package/dist/migrations.d.ts.map +0 -1
- package/dist/migrations.js +0 -401
- package/dist/migrations.js.map +0 -1
- package/dist/modes/index.d.ts +0 -9
- package/dist/modes/index.d.ts.map +0 -1
- package/dist/modes/index.js +0 -8
- package/dist/modes/index.js.map +0 -1
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/cockpit-scroll.d.ts +0 -54
- package/dist/modes/interactive/cockpit-scroll.d.ts.map +0 -1
- package/dist/modes/interactive/cockpit-scroll.js +0 -133
- package/dist/modes/interactive/cockpit-scroll.js.map +0 -1
- package/dist/modes/interactive/components/armin.d.ts +0 -34
- package/dist/modes/interactive/components/armin.d.ts.map +0 -1
- package/dist/modes/interactive/components/armin.js +0 -333
- package/dist/modes/interactive/components/armin.js.map +0 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +0 -20
- package/dist/modes/interactive/components/assistant-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/assistant-message.js +0 -121
- package/dist/modes/interactive/components/assistant-message.js.map +0 -1
- package/dist/modes/interactive/components/bash-execution.d.ts +0 -34
- package/dist/modes/interactive/components/bash-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/bash-execution.js +0 -175
- package/dist/modes/interactive/components/bash-execution.js.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts +0 -16
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +0 -1
- package/dist/modes/interactive/components/bordered-loader.js +0 -54
- package/dist/modes/interactive/components/bordered-loader.js.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +0 -16
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/branch-summary-message.js +0 -44
- package/dist/modes/interactive/components/branch-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +0 -16
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +0 -45
- package/dist/modes/interactive/components/compaction-summary-message.js.map +0 -1
- package/dist/modes/interactive/components/config-selector.d.ts +0 -71
- package/dist/modes/interactive/components/config-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/config-selector.js +0 -506
- package/dist/modes/interactive/components/config-selector.js.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts +0 -14
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +0 -1
- package/dist/modes/interactive/components/countdown-timer.js +0 -33
- package/dist/modes/interactive/components/countdown-timer.js.map +0 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +0 -21
- package/dist/modes/interactive/components/custom-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-editor.js +0 -70
- package/dist/modes/interactive/components/custom-editor.js.map +0 -1
- package/dist/modes/interactive/components/custom-message.d.ts +0 -20
- package/dist/modes/interactive/components/custom-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/custom-message.js +0 -79
- package/dist/modes/interactive/components/custom-message.js.map +0 -1
- package/dist/modes/interactive/components/diff.d.ts +0 -12
- package/dist/modes/interactive/components/diff.d.ts.map +0 -1
- package/dist/modes/interactive/components/diff.js +0 -133
- package/dist/modes/interactive/components/diff.js.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts +0 -15
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +0 -1
- package/dist/modes/interactive/components/dynamic-border.js +0 -21
- package/dist/modes/interactive/components/dynamic-border.js.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts +0 -5
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +0 -1
- package/dist/modes/interactive/components/earendil-announcement.js +0 -42
- package/dist/modes/interactive/components/earendil-announcement.js.map +0 -1
- package/dist/modes/interactive/components/extension-editor.d.ts +0 -20
- package/dist/modes/interactive/components/extension-editor.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-editor.js +0 -119
- package/dist/modes/interactive/components/extension-editor.js.map +0 -1
- package/dist/modes/interactive/components/extension-input.d.ts +0 -23
- package/dist/modes/interactive/components/extension-input.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-input.js +0 -61
- package/dist/modes/interactive/components/extension-input.js.map +0 -1
- package/dist/modes/interactive/components/extension-selector.d.ts +0 -26
- package/dist/modes/interactive/components/extension-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/extension-selector.js +0 -83
- package/dist/modes/interactive/components/extension-selector.js.map +0 -1
- package/dist/modes/interactive/components/footer.d.ts +0 -35
- package/dist/modes/interactive/components/footer.d.ts.map +0 -1
- package/dist/modes/interactive/components/footer.js +0 -223
- package/dist/modes/interactive/components/footer.js.map +0 -1
- package/dist/modes/interactive/components/index.d.ts +0 -36
- package/dist/modes/interactive/components/index.d.ts.map +0 -1
- package/dist/modes/interactive/components/index.js +0 -37
- package/dist/modes/interactive/components/index.js.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +0 -13
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +0 -1
- package/dist/modes/interactive/components/keybinding-hints.js +0 -36
- package/dist/modes/interactive/components/keybinding-hints.js.map +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +0 -51
- package/dist/modes/interactive/components/login-dialog.d.ts.map +0 -1
- package/dist/modes/interactive/components/login-dialog.js +0 -174
- package/dist/modes/interactive/components/login-dialog.js.map +0 -1
- package/dist/modes/interactive/components/model-selector.d.ts +0 -69
- package/dist/modes/interactive/components/model-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/model-selector.js +0 -411
- package/dist/modes/interactive/components/model-selector.js.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +0 -31
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/oauth-selector.js +0 -165
- package/dist/modes/interactive/components/oauth-selector.js.map +0 -1
- package/dist/modes/interactive/components/omk-brand-surface.d.ts +0 -58
- package/dist/modes/interactive/components/omk-brand-surface.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-brand-surface.js +0 -330
- package/dist/modes/interactive/components/omk-brand-surface.js.map +0 -1
- package/dist/modes/interactive/components/omk-brand.d.ts +0 -10
- package/dist/modes/interactive/components/omk-brand.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-brand.js +0 -12
- package/dist/modes/interactive/components/omk-brand.js.map +0 -1
- package/dist/modes/interactive/components/omk-control-dashboard.d.ts +0 -36
- package/dist/modes/interactive/components/omk-control-dashboard.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-control-dashboard.js +0 -348
- package/dist/modes/interactive/components/omk-control-dashboard.js.map +0 -1
- package/dist/modes/interactive/components/omk-control-layout.d.ts +0 -34
- package/dist/modes/interactive/components/omk-control-layout.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-control-layout.js +0 -85
- package/dist/modes/interactive/components/omk-control-layout.js.map +0 -1
- package/dist/modes/interactive/components/omk-history-panel.d.ts +0 -27
- package/dist/modes/interactive/components/omk-history-panel.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-history-panel.js +0 -162
- package/dist/modes/interactive/components/omk-history-panel.js.map +0 -1
- package/dist/modes/interactive/components/omk-neon-hud.d.ts +0 -19
- package/dist/modes/interactive/components/omk-neon-hud.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-neon-hud.js +0 -75
- package/dist/modes/interactive/components/omk-neon-hud.js.map +0 -1
- package/dist/modes/interactive/components/omk-tabbed-panel.d.ts +0 -30
- package/dist/modes/interactive/components/omk-tabbed-panel.d.ts.map +0 -1
- package/dist/modes/interactive/components/omk-tabbed-panel.js +0 -99
- package/dist/modes/interactive/components/omk-tabbed-panel.js.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +0 -42
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +0 -290
- package/dist/modes/interactive/components/scoped-models-selector.js.map +0 -1
- package/dist/modes/interactive/components/scrollable-transcript.d.ts +0 -20
- package/dist/modes/interactive/components/scrollable-transcript.d.ts.map +0 -1
- package/dist/modes/interactive/components/scrollable-transcript.js +0 -25
- package/dist/modes/interactive/components/scrollable-transcript.js.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts +0 -23
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector-search.js +0 -155
- package/dist/modes/interactive/components/session-selector-search.js.map +0 -1
- package/dist/modes/interactive/components/session-selector.d.ts +0 -96
- package/dist/modes/interactive/components/session-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/session-selector.js +0 -861
- package/dist/modes/interactive/components/session-selector.js.map +0 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +0 -69
- package/dist/modes/interactive/components/settings-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/settings-selector.js +0 -391
- package/dist/modes/interactive/components/settings-selector.js.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts +0 -10
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/show-images-selector.js +0 -39
- package/dist/modes/interactive/components/show-images-selector.js.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +0 -17
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +0 -47
- package/dist/modes/interactive/components/skill-invocation-message.js.map +0 -1
- package/dist/modes/interactive/components/theme-selector.d.ts +0 -11
- package/dist/modes/interactive/components/theme-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/theme-selector.js +0 -50
- package/dist/modes/interactive/components/theme-selector.js.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +0 -11
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/thinking-selector.js +0 -52
- package/dist/modes/interactive/components/thinking-selector.js.map +0 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +0 -63
- package/dist/modes/interactive/components/tool-execution.d.ts.map +0 -1
- package/dist/modes/interactive/components/tool-execution.js +0 -317
- package/dist/modes/interactive/components/tool-execution.js.map +0 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +0 -89
- package/dist/modes/interactive/components/tree-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/tree-selector.js +0 -1093
- package/dist/modes/interactive/components/tree-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.d.ts +0 -30
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message-selector.js +0 -114
- package/dist/modes/interactive/components/user-message-selector.js.map +0 -1
- package/dist/modes/interactive/components/user-message.d.ts +0 -10
- package/dist/modes/interactive/components/user-message.d.ts.map +0 -1
- package/dist/modes/interactive/components/user-message.js +0 -29
- package/dist/modes/interactive/components/user-message.js.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +0 -24
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +0 -1
- package/dist/modes/interactive/components/visual-truncate.js +0 -33
- package/dist/modes/interactive/components/visual-truncate.js.map +0 -1
- package/dist/modes/interactive/interactive-mode.d.ts +0 -422
- package/dist/modes/interactive/interactive-mode.d.ts.map +0 -1
- package/dist/modes/interactive/interactive-mode.js +0 -5388
- package/dist/modes/interactive/interactive-mode.js.map +0 -1
- package/dist/modes/interactive/theme/dark.json +0 -87
- package/dist/modes/interactive/theme/light.json +0 -86
- package/dist/modes/interactive/theme/omk-control.json +0 -92
- package/dist/modes/interactive/theme/omk-rust.json +0 -94
- package/dist/modes/interactive/theme/theme-schema.json +0 -340
- package/dist/modes/interactive/theme/theme.d.ts +0 -102
- package/dist/modes/interactive/theme/theme.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme.js +0 -1093
- package/dist/modes/interactive/theme/theme.js.map +0 -1
- package/dist/modes/print-mode.d.ts +0 -28
- package/dist/modes/print-mode.d.ts.map +0 -1
- package/dist/modes/print-mode.js +0 -132
- package/dist/modes/print-mode.js.map +0 -1
- package/dist/modes/rpc/jsonl.d.ts +0 -17
- package/dist/modes/rpc/jsonl.d.ts.map +0 -1
- package/dist/modes/rpc/jsonl.js +0 -49
- package/dist/modes/rpc/jsonl.js.map +0 -1
- package/dist/modes/rpc/rpc-client.d.ts +0 -227
- package/dist/modes/rpc/rpc-client.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-client.js +0 -467
- package/dist/modes/rpc/rpc-client.js.map +0 -1
- package/dist/modes/rpc/rpc-mode.d.ts +0 -20
- package/dist/modes/rpc/rpc-mode.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-mode.js +0 -616
- package/dist/modes/rpc/rpc-mode.js.map +0 -1
- package/dist/modes/rpc/rpc-types.d.ts +0 -420
- package/dist/modes/rpc/rpc-types.d.ts.map +0 -1
- package/dist/modes/rpc/rpc-types.js +0 -8
- package/dist/modes/rpc/rpc-types.js.map +0 -1
- package/dist/omk-env.d.ts +0 -2
- package/dist/omk-env.d.ts.map +0 -1
- package/dist/omk-env.js +0 -3
- package/dist/omk-env.js.map +0 -1
- package/dist/omk.d.ts +0 -4
- package/dist/omk.d.ts.map +0 -1
- package/dist/omk.js +0 -4
- package/dist/omk.js.map +0 -1
- package/dist/package-manager-cli.d.ts +0 -4
- package/dist/package-manager-cli.d.ts.map +0 -1
- package/dist/package-manager-cli.js +0 -528
- package/dist/package-manager-cli.js.map +0 -1
- package/dist/package.json +0 -97
- package/dist/utils/ansi.d.ts +0 -2
- package/dist/utils/ansi.d.ts.map +0 -1
- package/dist/utils/ansi.js +0 -52
- package/dist/utils/ansi.js.map +0 -1
- package/dist/utils/changelog.d.ts +0 -21
- package/dist/utils/changelog.d.ts.map +0 -1
- package/dist/utils/changelog.js +0 -87
- package/dist/utils/changelog.js.map +0 -1
- package/dist/utils/child-process.d.ts +0 -15
- package/dist/utils/child-process.d.ts.map +0 -1
- package/dist/utils/child-process.js +0 -88
- package/dist/utils/child-process.js.map +0 -1
- package/dist/utils/clipboard-image.d.ts +0 -11
- package/dist/utils/clipboard-image.d.ts.map +0 -1
- package/dist/utils/clipboard-image.js +0 -249
- package/dist/utils/clipboard-image.js.map +0 -1
- package/dist/utils/clipboard-native.d.ts +0 -10
- package/dist/utils/clipboard-native.d.ts.map +0 -1
- package/dist/utils/clipboard-native.js +0 -20
- package/dist/utils/clipboard-native.js.map +0 -1
- package/dist/utils/clipboard.d.ts +0 -2
- package/dist/utils/clipboard.d.ts.map +0 -1
- package/dist/utils/clipboard.js +0 -117
- package/dist/utils/clipboard.js.map +0 -1
- package/dist/utils/deprecation.d.ts +0 -4
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/deprecation.js +0 -13
- package/dist/utils/deprecation.js.map +0 -1
- package/dist/utils/exif-orientation.d.ts +0 -5
- package/dist/utils/exif-orientation.d.ts.map +0 -1
- package/dist/utils/exif-orientation.js +0 -158
- package/dist/utils/exif-orientation.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -8
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js +0 -26
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/fs-watch.d.ts +0 -5
- package/dist/utils/fs-watch.d.ts.map +0 -1
- package/dist/utils/fs-watch.js +0 -25
- package/dist/utils/fs-watch.js.map +0 -1
- package/dist/utils/git.d.ts +0 -26
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js +0 -195
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/html.d.ts +0 -7
- package/dist/utils/html.d.ts.map +0 -1
- package/dist/utils/html.js +0 -40
- package/dist/utils/html.js.map +0 -1
- package/dist/utils/image-convert.d.ts +0 -9
- package/dist/utils/image-convert.d.ts.map +0 -1
- package/dist/utils/image-convert.js +0 -39
- package/dist/utils/image-convert.js.map +0 -1
- package/dist/utils/image-resize-core.d.ts +0 -30
- package/dist/utils/image-resize-core.d.ts.map +0 -1
- package/dist/utils/image-resize-core.js +0 -124
- package/dist/utils/image-resize-core.js.map +0 -1
- package/dist/utils/image-resize-worker.d.ts +0 -2
- package/dist/utils/image-resize-worker.d.ts.map +0 -1
- package/dist/utils/image-resize-worker.js +0 -31
- package/dist/utils/image-resize-worker.js.map +0 -1
- package/dist/utils/image-resize.d.ts +0 -16
- package/dist/utils/image-resize.d.ts.map +0 -1
- package/dist/utils/image-resize.js +0 -97
- package/dist/utils/image-resize.js.map +0 -1
- package/dist/utils/json.d.ts +0 -3
- package/dist/utils/json.d.ts.map +0 -1
- package/dist/utils/json.js +0 -7
- package/dist/utils/json.js.map +0 -1
- package/dist/utils/mime.d.ts +0 -3
- package/dist/utils/mime.d.ts.map +0 -1
- package/dist/utils/mime.js +0 -69
- package/dist/utils/mime.js.map +0 -1
- package/dist/utils/open-browser.d.ts +0 -9
- package/dist/utils/open-browser.d.ts.map +0 -1
- package/dist/utils/open-browser.js +0 -22
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -31
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -92
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/photon.d.ts +0 -21
- package/dist/utils/photon.d.ts.map +0 -1
- package/dist/utils/photon.js +0 -121
- package/dist/utils/photon.js.map +0 -1
- package/dist/utils/pi-user-agent.d.ts +0 -2
- package/dist/utils/pi-user-agent.d.ts.map +0 -1
- package/dist/utils/pi-user-agent.js +0 -6
- package/dist/utils/pi-user-agent.js.map +0 -1
- package/dist/utils/shell.d.ts +0 -30
- package/dist/utils/shell.d.ts.map +0 -1
- package/dist/utils/shell.js +0 -195
- package/dist/utils/shell.js.map +0 -1
- package/dist/utils/sleep.d.ts +0 -5
- package/dist/utils/sleep.d.ts.map +0 -1
- package/dist/utils/sleep.js +0 -17
- package/dist/utils/sleep.js.map +0 -1
- package/dist/utils/syntax-highlight.d.ts +0 -12
- package/dist/utils/syntax-highlight.d.ts.map +0 -1
- package/dist/utils/syntax-highlight.js +0 -118
- package/dist/utils/syntax-highlight.js.map +0 -1
- package/dist/utils/tools-manager.d.ts +0 -3
- package/dist/utils/tools-manager.d.ts.map +0 -1
- package/dist/utils/tools-manager.js +0 -325
- package/dist/utils/tools-manager.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -15
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js +0 -85
- package/dist/utils/version-check.js.map +0 -1
- package/dist/utils/windows-self-update.d.ts +0 -3
- package/dist/utils/windows-self-update.d.ts.map +0 -1
- package/dist/utils/windows-self-update.js +0 -77
- package/dist/utils/windows-self-update.js.map +0 -1
- package/docs/compaction.md +0 -394
- package/docs/containerization.md +0 -111
- package/docs/custom-provider.md +0 -736
- package/docs/development.md +0 -71
- package/docs/docs.json +0 -152
- package/docs/extensions.md +0 -2627
- package/docs/images/doom-extension.png +0 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +0 -81
- package/docs/json.md +0 -82
- package/docs/keybindings.md +0 -197
- package/docs/models.md +0 -493
- package/docs/packages.md +0 -226
- package/docs/prompt-templates.md +0 -88
- package/docs/providers.md +0 -256
- package/docs/quickstart.md +0 -165
- package/docs/rpc.md +0 -1408
- package/docs/sdk.md +0 -1137
- package/docs/session-format.md +0 -412
- package/docs/sessions.md +0 -145
- package/docs/settings.md +0 -281
- package/docs/shell-aliases.md +0 -13
- package/docs/skills.md +0 -231
- package/docs/terminal-setup.md +0 -114
- package/docs/termux.md +0 -127
- package/docs/themes.md +0 -297
- package/docs/tmux.md +0 -61
- package/docs/tui.md +0 -927
- package/docs/usage.md +0 -288
- package/docs/windows.md +0 -17
- package/examples/README.md +0 -25
- package/examples/extensions/README.md +0 -210
- package/examples/extensions/auto-commit-on-exit.ts +0 -49
- package/examples/extensions/bash-spawn-hook.ts +0 -30
- package/examples/extensions/bookmark.ts +0 -50
- package/examples/extensions/border-status-editor.ts +0 -150
- package/examples/extensions/built-in-tool-renderer.ts +0 -249
- package/examples/extensions/claude-rules.ts +0 -86
- package/examples/extensions/commands.ts +0 -72
- package/examples/extensions/confirm-destructive.ts +0 -59
- package/examples/extensions/custom-compaction.ts +0 -127
- package/examples/extensions/custom-footer.ts +0 -64
- package/examples/extensions/custom-header.ts +0 -73
- package/examples/extensions/custom-provider-anthropic/index.ts +0 -604
- package/examples/extensions/custom-provider-anthropic/package-lock.json +0 -24
- package/examples/extensions/custom-provider-anthropic/package.json +0 -19
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +0 -400
- package/examples/extensions/custom-provider-gitlab-duo/package.json +0 -16
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +0 -82
- package/examples/extensions/dirty-repo-guard.ts +0 -56
- package/examples/extensions/doom-overlay/README.md +0 -46
- package/examples/extensions/doom-overlay/doom/build/doom.js +0 -21
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +0 -152
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +0 -72
- package/examples/extensions/doom-overlay/doom-component.ts +0 -132
- package/examples/extensions/doom-overlay/doom-engine.ts +0 -173
- package/examples/extensions/doom-overlay/doom-keys.ts +0 -104
- package/examples/extensions/doom-overlay/index.ts +0 -74
- package/examples/extensions/doom-overlay/wad-finder.ts +0 -51
- package/examples/extensions/dynamic-resources/SKILL.md +0 -8
- package/examples/extensions/dynamic-resources/dynamic.json +0 -79
- package/examples/extensions/dynamic-resources/dynamic.md +0 -5
- package/examples/extensions/dynamic-resources/index.ts +0 -15
- package/examples/extensions/dynamic-tools.ts +0 -74
- package/examples/extensions/event-bus.ts +0 -43
- package/examples/extensions/file-trigger.ts +0 -41
- package/examples/extensions/git-checkpoint.ts +0 -53
- package/examples/extensions/git-merge-and-resolve.ts +0 -115
- package/examples/extensions/github-issue-autocomplete.ts +0 -185
- package/examples/extensions/gondolin/index.ts +0 -531
- package/examples/extensions/gondolin/package-lock.json +0 -185
- package/examples/extensions/gondolin/package.json +0 -19
- package/examples/extensions/handoff.ts +0 -191
- package/examples/extensions/hello.ts +0 -26
- package/examples/extensions/hidden-thinking-label.ts +0 -53
- package/examples/extensions/inline-bash.ts +0 -94
- package/examples/extensions/input-transform-streaming.ts +0 -39
- package/examples/extensions/input-transform.ts +0 -43
- package/examples/extensions/interactive-shell.ts +0 -196
- package/examples/extensions/mac-system-theme.ts +0 -47
- package/examples/extensions/message-renderer.ts +0 -59
- package/examples/extensions/minimal-mode.ts +0 -426
- package/examples/extensions/modal-editor.ts +0 -85
- package/examples/extensions/model-status.ts +0 -31
- package/examples/extensions/notify.ts +0 -55
- package/examples/extensions/overlay-qa-tests.ts +0 -1450
- package/examples/extensions/overlay-test.ts +0 -153
- package/examples/extensions/permission-gate.ts +0 -34
- package/examples/extensions/pirate.ts +0 -47
- package/examples/extensions/plan-mode/README.md +0 -65
- package/examples/extensions/plan-mode/index.ts +0 -340
- package/examples/extensions/plan-mode/utils.ts +0 -168
- package/examples/extensions/preset.ts +0 -430
- package/examples/extensions/prompt-customizer.ts +0 -97
- package/examples/extensions/protected-paths.ts +0 -30
- package/examples/extensions/provider-payload.ts +0 -18
- package/examples/extensions/qna.ts +0 -122
- package/examples/extensions/question.ts +0 -264
- package/examples/extensions/questionnaire.ts +0 -427
- package/examples/extensions/rainbow-editor.ts +0 -88
- package/examples/extensions/reload-runtime.ts +0 -37
- package/examples/extensions/rpc-demo.ts +0 -118
- package/examples/extensions/sandbox/index.ts +0 -321
- package/examples/extensions/sandbox/package-lock.json +0 -92
- package/examples/extensions/sandbox/package.json +0 -19
- package/examples/extensions/send-user-message.ts +0 -97
- package/examples/extensions/session-name.ts +0 -27
- package/examples/extensions/shutdown-command.ts +0 -63
- package/examples/extensions/snake.ts +0 -343
- package/examples/extensions/space-invaders.ts +0 -560
- package/examples/extensions/ssh.ts +0 -220
- package/examples/extensions/status-line.ts +0 -32
- package/examples/extensions/structured-output.ts +0 -65
- package/examples/extensions/subagent/README.md +0 -175
- package/examples/extensions/subagent/agents/planner.md +0 -37
- package/examples/extensions/subagent/agents/reviewer.md +0 -35
- package/examples/extensions/subagent/agents/scout.md +0 -50
- package/examples/extensions/subagent/agents/worker.md +0 -24
- package/examples/extensions/subagent/agents.ts +0 -126
- package/examples/extensions/subagent/index.ts +0 -1009
- package/examples/extensions/subagent/prompts/implement-and-review.md +0 -10
- package/examples/extensions/subagent/prompts/implement.md +0 -10
- package/examples/extensions/subagent/prompts/scout-and-plan.md +0 -9
- package/examples/extensions/summarize.ts +0 -206
- package/examples/extensions/system-prompt-header.ts +0 -17
- package/examples/extensions/tic-tac-toe.ts +0 -1008
- package/examples/extensions/timed-confirm.ts +0 -70
- package/examples/extensions/titlebar-spinner.ts +0 -58
- package/examples/extensions/todo.ts +0 -297
- package/examples/extensions/tool-override.ts +0 -144
- package/examples/extensions/tools.ts +0 -146
- package/examples/extensions/trigger-compact.ts +0 -50
- package/examples/extensions/truncated-tool.ts +0 -195
- package/examples/extensions/widget-placement.ts +0 -9
- package/examples/extensions/with-deps/index.ts +0 -32
- package/examples/extensions/with-deps/package-lock.json +0 -31
- package/examples/extensions/with-deps/package.json +0 -22
- package/examples/extensions/working-indicator.ts +0 -123
- package/examples/extensions/working-message-test.ts +0 -25
- package/examples/rpc-extension-ui.ts +0 -632
- package/examples/sdk/01-minimal.ts +0 -26
- package/examples/sdk/02-custom-model.ts +0 -53
- package/examples/sdk/03-custom-prompt.ts +0 -75
- package/examples/sdk/04-skills.ts +0 -55
- package/examples/sdk/05-tools.ts +0 -48
- package/examples/sdk/06-extensions.ts +0 -99
- package/examples/sdk/07-context-files.ts +0 -47
- package/examples/sdk/08-prompt-templates.ts +0 -51
- package/examples/sdk/09-api-keys-and-oauth.ts +0 -52
- package/examples/sdk/10-settings.ts +0 -53
- package/examples/sdk/11-sessions.ts +0 -52
- package/examples/sdk/12-full-control.ts +0 -77
- package/examples/sdk/13-session-runtime.ts +0 -67
- package/examples/sdk/README.md +0 -144
- package/npm-shrinkwrap.json +0 -512
- /package/{dist/modes/interactive/assets → readmeasset}/omk-control.webp +0 -0
package/docs/tui.md
DELETED
|
@@ -1,927 +0,0 @@
|
|
|
1
|
-
> pi can create TUI components. Ask it to build one for your use case.
|
|
2
|
-
|
|
3
|
-
# TUI Components
|
|
4
|
-
|
|
5
|
-
Extensions and custom tools can render custom TUI components for interactive user interfaces. This page covers the component system and available building blocks.
|
|
6
|
-
|
|
7
|
-
**Source:** [`@earendil-works/pi-tui`](https://github.com/earendil-works/pi-mono/tree/main/packages/tui)
|
|
8
|
-
|
|
9
|
-
## Component Interface
|
|
10
|
-
|
|
11
|
-
All components implement:
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
interface Component {
|
|
15
|
-
render(width: number): string[];
|
|
16
|
-
handleInput?(data: string): void;
|
|
17
|
-
wantsKeyRelease?: boolean;
|
|
18
|
-
invalidate(): void;
|
|
19
|
-
}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
| Method | Description |
|
|
23
|
-
|--------|-------------|
|
|
24
|
-
| `render(width)` | Return array of strings (one per line). Each line **must not exceed `width`**. |
|
|
25
|
-
| `handleInput?(data)` | Receive keyboard input when component has focus. |
|
|
26
|
-
| `wantsKeyRelease?` | If true, component receives key release events (Kitty protocol). Default: false. |
|
|
27
|
-
| `invalidate()` | Clear cached render state. Called on theme changes. |
|
|
28
|
-
|
|
29
|
-
The TUI appends a full SGR reset and OSC 8 reset at the end of each rendered line. Styles do not carry across lines. If you emit multi-line text with styling, reapply styles per line or use `wrapTextWithAnsi()` so styles are preserved for each wrapped line.
|
|
30
|
-
|
|
31
|
-
## Focusable Interface (IME Support)
|
|
32
|
-
|
|
33
|
-
Components that display a text cursor and need IME (Input Method Editor) support should implement the `Focusable` interface:
|
|
34
|
-
|
|
35
|
-
```typescript
|
|
36
|
-
import { CURSOR_MARKER, type Component, type Focusable } from "@earendil-works/pi-tui";
|
|
37
|
-
|
|
38
|
-
class MyInput implements Component, Focusable {
|
|
39
|
-
focused: boolean = false; // Set by TUI when focus changes
|
|
40
|
-
|
|
41
|
-
render(width: number): string[] {
|
|
42
|
-
const marker = this.focused ? CURSOR_MARKER : "";
|
|
43
|
-
// Emit marker right before the fake cursor
|
|
44
|
-
return [`> ${beforeCursor}${marker}\x1b[7m${atCursor}\x1b[27m${afterCursor}`];
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
When a `Focusable` component has focus, TUI:
|
|
50
|
-
1. Sets `focused = true` on the component
|
|
51
|
-
2. Scans rendered output for `CURSOR_MARKER` (a zero-width APC escape sequence)
|
|
52
|
-
3. Positions the hardware terminal cursor at that location
|
|
53
|
-
4. Shows the hardware cursor only when `showHardwareCursor` is enabled
|
|
54
|
-
|
|
55
|
-
The cursor remains hidden by default. This keeps the fake cursor rendering, while still positioning the hardware cursor for terminals that track IME candidate windows with hidden cursors. Some terminals require a visible hardware cursor for IME positioning; enable it with `showHardwareCursor`, `setShowHardwareCursor(true)`, or `PI_HARDWARE_CURSOR=1`. The `Editor` and `Input` built-in components already implement this interface.
|
|
56
|
-
|
|
57
|
-
### Container Components with Embedded Inputs
|
|
58
|
-
|
|
59
|
-
When a container component (dialog, selector, etc.) contains an `Input` or `Editor` child, the container must implement `Focusable` and propagate the focus state to the child. Otherwise, the hardware cursor won't be positioned correctly for IME input.
|
|
60
|
-
|
|
61
|
-
```typescript
|
|
62
|
-
import { Container, type Focusable, Input } from "@earendil-works/pi-tui";
|
|
63
|
-
|
|
64
|
-
class SearchDialog extends Container implements Focusable {
|
|
65
|
-
private searchInput: Input;
|
|
66
|
-
|
|
67
|
-
// Focusable implementation - propagate to child input for IME cursor positioning
|
|
68
|
-
private _focused = false;
|
|
69
|
-
get focused(): boolean {
|
|
70
|
-
return this._focused;
|
|
71
|
-
}
|
|
72
|
-
set focused(value: boolean) {
|
|
73
|
-
this._focused = value;
|
|
74
|
-
this.searchInput.focused = value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
constructor() {
|
|
78
|
-
super();
|
|
79
|
-
this.searchInput = new Input();
|
|
80
|
-
this.addChild(this.searchInput);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Without this propagation, typing with an IME (Chinese, Japanese, Korean, etc.) will show the candidate window in the wrong position on screen.
|
|
86
|
-
|
|
87
|
-
## Using Components
|
|
88
|
-
|
|
89
|
-
**In extensions** via `ctx.ui.custom()`:
|
|
90
|
-
|
|
91
|
-
```typescript
|
|
92
|
-
pi.on("session_start", async (_event, ctx) => {
|
|
93
|
-
const handle = ctx.ui.custom(myComponent);
|
|
94
|
-
// handle.requestRender() - trigger re-render
|
|
95
|
-
// handle.close() - restore normal UI
|
|
96
|
-
});
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**In custom tools** via `pi.ui.custom()`:
|
|
100
|
-
|
|
101
|
-
```typescript
|
|
102
|
-
async execute(toolCallId, params, onUpdate, ctx, signal) {
|
|
103
|
-
const handle = pi.ui.custom(myComponent);
|
|
104
|
-
// ...
|
|
105
|
-
handle.close();
|
|
106
|
-
}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Overlays
|
|
110
|
-
|
|
111
|
-
Overlays render components on top of existing content without clearing the screen. Pass `{ overlay: true }` to `ctx.ui.custom()`:
|
|
112
|
-
|
|
113
|
-
```typescript
|
|
114
|
-
const result = await ctx.ui.custom<string | null>(
|
|
115
|
-
(tui, theme, keybindings, done) => new MyDialog({ onClose: done }),
|
|
116
|
-
{ overlay: true }
|
|
117
|
-
);
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
For positioning and sizing, use `overlayOptions`:
|
|
121
|
-
|
|
122
|
-
```typescript
|
|
123
|
-
const result = await ctx.ui.custom<string | null>(
|
|
124
|
-
(tui, theme, keybindings, done) => new SidePanel({ onClose: done }),
|
|
125
|
-
{
|
|
126
|
-
overlay: true,
|
|
127
|
-
overlayOptions: {
|
|
128
|
-
// Size: number or percentage string
|
|
129
|
-
width: "50%", // 50% of terminal width
|
|
130
|
-
minWidth: 40, // minimum 40 columns
|
|
131
|
-
maxHeight: "80%", // max 80% of terminal height
|
|
132
|
-
|
|
133
|
-
// Position: anchor-based (default: "center")
|
|
134
|
-
anchor: "right-center", // 9 positions: center, top-left, top-center, etc.
|
|
135
|
-
offsetX: -2, // offset from anchor
|
|
136
|
-
offsetY: 0,
|
|
137
|
-
|
|
138
|
-
// Or percentage/absolute positioning
|
|
139
|
-
row: "25%", // 25% from top
|
|
140
|
-
col: 10, // column 10
|
|
141
|
-
|
|
142
|
-
// Margins
|
|
143
|
-
margin: 2, // all sides, or { top, right, bottom, left }
|
|
144
|
-
|
|
145
|
-
// Responsive: hide on narrow terminals
|
|
146
|
-
visible: (termWidth, termHeight) => termWidth >= 80,
|
|
147
|
-
},
|
|
148
|
-
// Get handle for programmatic focus and visibility control
|
|
149
|
-
onHandle: (handle) => {
|
|
150
|
-
// handle.focus() - focus this overlay and bring it to the visual front
|
|
151
|
-
// handle.unfocus() - release input to normal fallback
|
|
152
|
-
// handle.unfocus({ target }) - release input to a specific component or null
|
|
153
|
-
// handle.setHidden(true/false) - toggle visibility
|
|
154
|
-
// handle.hide() - permanently remove
|
|
155
|
-
},
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Overlay Focus
|
|
161
|
-
|
|
162
|
-
A focused visible overlay keeps input ownership across temporary non-overlay UI. If an overlay opens another `ctx.ui.custom()` component without `{ overlay: true }`, that replacement UI receives input while it is active; when it closes, the focused overlay can reclaim input.
|
|
163
|
-
|
|
164
|
-
Use `handle.unfocus()` when a visible overlay should stop owning input and let TUI fall back to another visible capturing overlay or the previous focus target. Use `handle.unfocus({ target })` when a specific component should receive input while the overlay stays visible. Passing `{ target: null }` intentionally leaves no focused component until focus is set again.
|
|
165
|
-
|
|
166
|
-
### Overlay Lifecycle
|
|
167
|
-
|
|
168
|
-
Overlay components are disposed when closed. Don't reuse references - create fresh instances:
|
|
169
|
-
|
|
170
|
-
```typescript
|
|
171
|
-
// Wrong - stale reference
|
|
172
|
-
let menu: MenuComponent;
|
|
173
|
-
await ctx.ui.custom((_, __, ___, done) => {
|
|
174
|
-
menu = new MenuComponent(done);
|
|
175
|
-
return menu;
|
|
176
|
-
}, { overlay: true });
|
|
177
|
-
setActiveComponent(menu); // Disposed
|
|
178
|
-
|
|
179
|
-
// Correct - re-call to re-show
|
|
180
|
-
const showMenu = () => ctx.ui.custom((_, __, ___, done) =>
|
|
181
|
-
new MenuComponent(done), { overlay: true });
|
|
182
|
-
|
|
183
|
-
await showMenu(); // First show
|
|
184
|
-
await showMenu(); // "Back" = just call again
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
See [overlay-qa-tests.ts](../examples/extensions/overlay-qa-tests.ts) for comprehensive examples covering anchors, margins, stacking, responsive visibility, and animation.
|
|
188
|
-
|
|
189
|
-
## Built-in Components
|
|
190
|
-
|
|
191
|
-
Import from `@earendil-works/pi-tui`:
|
|
192
|
-
|
|
193
|
-
```typescript
|
|
194
|
-
import { Text, Box, Container, Spacer, Markdown } from "@earendil-works/pi-tui";
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Text
|
|
198
|
-
|
|
199
|
-
Multi-line text with word wrapping.
|
|
200
|
-
|
|
201
|
-
```typescript
|
|
202
|
-
const text = new Text(
|
|
203
|
-
"Hello World", // content
|
|
204
|
-
1, // paddingX (default: 1)
|
|
205
|
-
1, // paddingY (default: 1)
|
|
206
|
-
(s) => bgGray(s) // optional background function
|
|
207
|
-
);
|
|
208
|
-
text.setText("Updated");
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
### Box
|
|
212
|
-
|
|
213
|
-
Container with padding and background color.
|
|
214
|
-
|
|
215
|
-
```typescript
|
|
216
|
-
const box = new Box(
|
|
217
|
-
1, // paddingX
|
|
218
|
-
1, // paddingY
|
|
219
|
-
(s) => bgGray(s) // background function
|
|
220
|
-
);
|
|
221
|
-
box.addChild(new Text("Content", 0, 0));
|
|
222
|
-
box.setBgFn((s) => bgBlue(s));
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### Container
|
|
226
|
-
|
|
227
|
-
Groups child components vertically.
|
|
228
|
-
|
|
229
|
-
```typescript
|
|
230
|
-
const container = new Container();
|
|
231
|
-
container.addChild(component1);
|
|
232
|
-
container.addChild(component2);
|
|
233
|
-
container.removeChild(component1);
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
### Spacer
|
|
237
|
-
|
|
238
|
-
Empty vertical space.
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
const spacer = new Spacer(2); // 2 empty lines
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Markdown
|
|
245
|
-
|
|
246
|
-
Renders markdown with syntax highlighting.
|
|
247
|
-
|
|
248
|
-
```typescript
|
|
249
|
-
const md = new Markdown(
|
|
250
|
-
"# Title\n\nSome **bold** text",
|
|
251
|
-
1, // paddingX
|
|
252
|
-
1, // paddingY
|
|
253
|
-
theme // MarkdownTheme (see below)
|
|
254
|
-
);
|
|
255
|
-
md.setText("Updated markdown");
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Image
|
|
259
|
-
|
|
260
|
-
Renders images in supported terminals (Kitty, iTerm2, Ghostty, WezTerm).
|
|
261
|
-
|
|
262
|
-
```typescript
|
|
263
|
-
const image = new Image(
|
|
264
|
-
base64Data, // base64-encoded image
|
|
265
|
-
"image/png", // MIME type
|
|
266
|
-
theme, // ImageTheme
|
|
267
|
-
{ maxWidthCells: 80, maxHeightCells: 24 }
|
|
268
|
-
);
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
## Keyboard Input
|
|
272
|
-
|
|
273
|
-
Use `matchesKey()` for key detection:
|
|
274
|
-
|
|
275
|
-
```typescript
|
|
276
|
-
import { matchesKey, Key } from "@earendil-works/pi-tui";
|
|
277
|
-
|
|
278
|
-
handleInput(data: string) {
|
|
279
|
-
if (matchesKey(data, Key.up)) {
|
|
280
|
-
this.selectedIndex--;
|
|
281
|
-
} else if (matchesKey(data, Key.enter)) {
|
|
282
|
-
this.onSelect?.(this.selectedIndex);
|
|
283
|
-
} else if (matchesKey(data, Key.escape)) {
|
|
284
|
-
this.onCancel?.();
|
|
285
|
-
} else if (matchesKey(data, Key.ctrl("c"))) {
|
|
286
|
-
// Ctrl+C
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
**Key identifiers** (use `Key.*` for autocomplete, or string literals):
|
|
292
|
-
- Basic keys: `Key.enter`, `Key.escape`, `Key.tab`, `Key.space`, `Key.backspace`, `Key.delete`, `Key.home`, `Key.end`
|
|
293
|
-
- Arrow keys: `Key.up`, `Key.down`, `Key.left`, `Key.right`
|
|
294
|
-
- With modifiers: `Key.ctrl("c")`, `Key.shift("tab")`, `Key.alt("left")`, `Key.ctrlShift("p")`
|
|
295
|
-
- String format also works: `"enter"`, `"ctrl+c"`, `"shift+tab"`, `"ctrl+shift+p"`
|
|
296
|
-
|
|
297
|
-
## Line Width
|
|
298
|
-
|
|
299
|
-
**Critical:** Each line from `render()` must not exceed the `width` parameter.
|
|
300
|
-
|
|
301
|
-
```typescript
|
|
302
|
-
import { visibleWidth, truncateToWidth } from "@earendil-works/pi-tui";
|
|
303
|
-
|
|
304
|
-
render(width: number): string[] {
|
|
305
|
-
// Truncate long lines
|
|
306
|
-
return [truncateToWidth(this.text, width)];
|
|
307
|
-
}
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
Utilities:
|
|
311
|
-
- `visibleWidth(str)` - Get display width (ignores ANSI codes)
|
|
312
|
-
- `truncateToWidth(str, width, ellipsis?)` - Truncate with optional ellipsis
|
|
313
|
-
- `wrapTextWithAnsi(str, width)` - Word wrap preserving ANSI codes
|
|
314
|
-
|
|
315
|
-
## Creating Custom Components
|
|
316
|
-
|
|
317
|
-
Example: Interactive selector
|
|
318
|
-
|
|
319
|
-
```typescript
|
|
320
|
-
import {
|
|
321
|
-
matchesKey, Key,
|
|
322
|
-
truncateToWidth, visibleWidth
|
|
323
|
-
} from "@earendil-works/pi-tui";
|
|
324
|
-
|
|
325
|
-
class MySelector {
|
|
326
|
-
private items: string[];
|
|
327
|
-
private selected = 0;
|
|
328
|
-
private cachedWidth?: number;
|
|
329
|
-
private cachedLines?: string[];
|
|
330
|
-
|
|
331
|
-
public onSelect?: (item: string) => void;
|
|
332
|
-
public onCancel?: () => void;
|
|
333
|
-
|
|
334
|
-
constructor(items: string[]) {
|
|
335
|
-
this.items = items;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
handleInput(data: string): void {
|
|
339
|
-
if (matchesKey(data, Key.up) && this.selected > 0) {
|
|
340
|
-
this.selected--;
|
|
341
|
-
this.invalidate();
|
|
342
|
-
} else if (matchesKey(data, Key.down) && this.selected < this.items.length - 1) {
|
|
343
|
-
this.selected++;
|
|
344
|
-
this.invalidate();
|
|
345
|
-
} else if (matchesKey(data, Key.enter)) {
|
|
346
|
-
this.onSelect?.(this.items[this.selected]);
|
|
347
|
-
} else if (matchesKey(data, Key.escape)) {
|
|
348
|
-
this.onCancel?.();
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
render(width: number): string[] {
|
|
353
|
-
if (this.cachedLines && this.cachedWidth === width) {
|
|
354
|
-
return this.cachedLines;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
this.cachedLines = this.items.map((item, i) => {
|
|
358
|
-
const prefix = i === this.selected ? "> " : " ";
|
|
359
|
-
return truncateToWidth(prefix + item, width);
|
|
360
|
-
});
|
|
361
|
-
this.cachedWidth = width;
|
|
362
|
-
return this.cachedLines;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
invalidate(): void {
|
|
366
|
-
this.cachedWidth = undefined;
|
|
367
|
-
this.cachedLines = undefined;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
Usage in an extension:
|
|
373
|
-
|
|
374
|
-
```typescript
|
|
375
|
-
pi.registerCommand("pick", {
|
|
376
|
-
description: "Pick an item",
|
|
377
|
-
handler: async (args, ctx) => {
|
|
378
|
-
const items = ["Option A", "Option B", "Option C"];
|
|
379
|
-
const selector = new MySelector(items);
|
|
380
|
-
|
|
381
|
-
let handle: { close: () => void; requestRender: () => void };
|
|
382
|
-
|
|
383
|
-
await new Promise<void>((resolve) => {
|
|
384
|
-
selector.onSelect = (item) => {
|
|
385
|
-
ctx.ui.notify(`Selected: ${item}`, "info");
|
|
386
|
-
handle.close();
|
|
387
|
-
resolve();
|
|
388
|
-
};
|
|
389
|
-
selector.onCancel = () => {
|
|
390
|
-
handle.close();
|
|
391
|
-
resolve();
|
|
392
|
-
};
|
|
393
|
-
handle = ctx.ui.custom(selector);
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
## Theming
|
|
400
|
-
|
|
401
|
-
Components accept theme objects for styling.
|
|
402
|
-
|
|
403
|
-
**In `renderCall`/`renderResult`**, use the `theme` parameter:
|
|
404
|
-
|
|
405
|
-
```typescript
|
|
406
|
-
renderResult(result, options, theme, context) {
|
|
407
|
-
// Use theme.fg() for foreground colors
|
|
408
|
-
return new Text(theme.fg("success", "Done!"), 0, 0);
|
|
409
|
-
|
|
410
|
-
// Use theme.bg() for background colors
|
|
411
|
-
const styled = theme.bg("toolPendingBg", theme.fg("accent", "text"));
|
|
412
|
-
}
|
|
413
|
-
```
|
|
414
|
-
|
|
415
|
-
**Foreground colors** (`theme.fg(color, text)`):
|
|
416
|
-
|
|
417
|
-
| Category | Colors |
|
|
418
|
-
|----------|--------|
|
|
419
|
-
| General | `text`, `accent`, `muted`, `dim` |
|
|
420
|
-
| Status | `success`, `error`, `warning` |
|
|
421
|
-
| Borders | `border`, `borderAccent`, `borderMuted` |
|
|
422
|
-
| Messages | `userMessageText`, `customMessageText`, `customMessageLabel` |
|
|
423
|
-
| Tools | `toolTitle`, `toolOutput` |
|
|
424
|
-
| Diffs | `toolDiffAdded`, `toolDiffRemoved`, `toolDiffContext` |
|
|
425
|
-
| Markdown | `mdHeading`, `mdLink`, `mdLinkUrl`, `mdCode`, `mdCodeBlock`, `mdCodeBlockBorder`, `mdQuote`, `mdQuoteBorder`, `mdHr`, `mdListBullet` |
|
|
426
|
-
| Syntax | `syntaxComment`, `syntaxKeyword`, `syntaxFunction`, `syntaxVariable`, `syntaxString`, `syntaxNumber`, `syntaxType`, `syntaxOperator`, `syntaxPunctuation` |
|
|
427
|
-
| Thinking | `thinkingOff`, `thinkingMinimal`, `thinkingLow`, `thinkingMedium`, `thinkingHigh`, `thinkingXhigh` |
|
|
428
|
-
| Modes | `bashMode` |
|
|
429
|
-
|
|
430
|
-
**Background colors** (`theme.bg(color, text)`):
|
|
431
|
-
|
|
432
|
-
`selectedBg`, `userMessageBg`, `customMessageBg`, `toolPendingBg`, `toolSuccessBg`, `toolErrorBg`
|
|
433
|
-
|
|
434
|
-
**For Markdown**, use `getMarkdownTheme()`:
|
|
435
|
-
|
|
436
|
-
```typescript
|
|
437
|
-
import { getMarkdownTheme } from "@earendil-works/pi-coding-agent";
|
|
438
|
-
import { Markdown } from "@earendil-works/pi-tui";
|
|
439
|
-
|
|
440
|
-
renderResult(result, options, theme, context) {
|
|
441
|
-
const mdTheme = getMarkdownTheme();
|
|
442
|
-
return new Markdown(result.details.markdown, 0, 0, mdTheme);
|
|
443
|
-
}
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
**For custom components**, define your own theme interface:
|
|
447
|
-
|
|
448
|
-
```typescript
|
|
449
|
-
interface MyTheme {
|
|
450
|
-
selected: (s: string) => string;
|
|
451
|
-
normal: (s: string) => string;
|
|
452
|
-
}
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
## Debug logging
|
|
456
|
-
|
|
457
|
-
Set `PI_TUI_WRITE_LOG` to capture the raw ANSI stream written to stdout.
|
|
458
|
-
|
|
459
|
-
```bash
|
|
460
|
-
PI_TUI_WRITE_LOG=/tmp/tui-ansi.log npx tsx packages/tui/test/chat-simple.ts
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
## Performance
|
|
464
|
-
|
|
465
|
-
Cache rendered output when possible:
|
|
466
|
-
|
|
467
|
-
```typescript
|
|
468
|
-
class CachedComponent {
|
|
469
|
-
private cachedWidth?: number;
|
|
470
|
-
private cachedLines?: string[];
|
|
471
|
-
|
|
472
|
-
render(width: number): string[] {
|
|
473
|
-
if (this.cachedLines && this.cachedWidth === width) {
|
|
474
|
-
return this.cachedLines;
|
|
475
|
-
}
|
|
476
|
-
// ... compute lines ...
|
|
477
|
-
this.cachedWidth = width;
|
|
478
|
-
this.cachedLines = lines;
|
|
479
|
-
return lines;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
invalidate(): void {
|
|
483
|
-
this.cachedWidth = undefined;
|
|
484
|
-
this.cachedLines = undefined;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
Call `invalidate()` when state changes, then `handle.requestRender()` to trigger re-render.
|
|
490
|
-
|
|
491
|
-
## Invalidation and Theme Changes
|
|
492
|
-
|
|
493
|
-
When the theme changes, the TUI calls `invalidate()` on all components to clear their caches. Components must properly implement `invalidate()` to ensure theme changes take effect.
|
|
494
|
-
|
|
495
|
-
### The Problem
|
|
496
|
-
|
|
497
|
-
If a component pre-bakes theme colors into strings (via `theme.fg()`, `theme.bg()`, etc.) and caches them, the cached strings contain ANSI escape codes from the old theme. Simply clearing the render cache isn't enough if the component stores the themed content separately.
|
|
498
|
-
|
|
499
|
-
**Wrong approach** (theme colors won't update):
|
|
500
|
-
|
|
501
|
-
```typescript
|
|
502
|
-
class BadComponent extends Container {
|
|
503
|
-
private content: Text;
|
|
504
|
-
|
|
505
|
-
constructor(message: string, theme: Theme) {
|
|
506
|
-
super();
|
|
507
|
-
// Pre-baked theme colors stored in Text component
|
|
508
|
-
this.content = new Text(theme.fg("accent", message), 1, 0);
|
|
509
|
-
this.addChild(this.content);
|
|
510
|
-
}
|
|
511
|
-
// No invalidate override - parent's invalidate only clears
|
|
512
|
-
// child render caches, not the pre-baked content
|
|
513
|
-
}
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
### The Solution
|
|
517
|
-
|
|
518
|
-
Components that build content with theme colors must rebuild that content when `invalidate()` is called:
|
|
519
|
-
|
|
520
|
-
```typescript
|
|
521
|
-
class GoodComponent extends Container {
|
|
522
|
-
private message: string;
|
|
523
|
-
private content: Text;
|
|
524
|
-
|
|
525
|
-
constructor(message: string) {
|
|
526
|
-
super();
|
|
527
|
-
this.message = message;
|
|
528
|
-
this.content = new Text("", 1, 0);
|
|
529
|
-
this.addChild(this.content);
|
|
530
|
-
this.updateDisplay();
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
private updateDisplay(): void {
|
|
534
|
-
// Rebuild content with current theme
|
|
535
|
-
this.content.setText(theme.fg("accent", this.message));
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
override invalidate(): void {
|
|
539
|
-
super.invalidate(); // Clear child caches
|
|
540
|
-
this.updateDisplay(); // Rebuild with new theme
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
```
|
|
544
|
-
|
|
545
|
-
### Pattern: Rebuild on Invalidate
|
|
546
|
-
|
|
547
|
-
For components with complex content:
|
|
548
|
-
|
|
549
|
-
```typescript
|
|
550
|
-
class ComplexComponent extends Container {
|
|
551
|
-
private data: SomeData;
|
|
552
|
-
|
|
553
|
-
constructor(data: SomeData) {
|
|
554
|
-
super();
|
|
555
|
-
this.data = data;
|
|
556
|
-
this.rebuild();
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
private rebuild(): void {
|
|
560
|
-
this.clear(); // Remove all children
|
|
561
|
-
|
|
562
|
-
// Build UI with current theme
|
|
563
|
-
this.addChild(new Text(theme.fg("accent", theme.bold("Title")), 1, 0));
|
|
564
|
-
this.addChild(new Spacer(1));
|
|
565
|
-
|
|
566
|
-
for (const item of this.data.items) {
|
|
567
|
-
const color = item.active ? "success" : "muted";
|
|
568
|
-
this.addChild(new Text(theme.fg(color, item.label), 1, 0));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
override invalidate(): void {
|
|
573
|
-
super.invalidate();
|
|
574
|
-
this.rebuild();
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
```
|
|
578
|
-
|
|
579
|
-
### When This Matters
|
|
580
|
-
|
|
581
|
-
This pattern is needed when:
|
|
582
|
-
|
|
583
|
-
1. **Pre-baking theme colors** - Using `theme.fg()` or `theme.bg()` to create styled strings stored in child components
|
|
584
|
-
2. **Syntax highlighting** - Using `highlightCode()` which applies theme-based syntax colors
|
|
585
|
-
3. **Complex layouts** - Building child component trees that embed theme colors
|
|
586
|
-
|
|
587
|
-
This pattern is NOT needed when:
|
|
588
|
-
|
|
589
|
-
1. **Using theme callbacks** - Passing functions like `(text) => theme.fg("accent", text)` that are called during render
|
|
590
|
-
2. **Simple containers** - Just grouping other components without adding themed content
|
|
591
|
-
3. **Stateless render** - Computing themed output fresh in every `render()` call (no caching)
|
|
592
|
-
|
|
593
|
-
## Common Patterns
|
|
594
|
-
|
|
595
|
-
These patterns cover the most common UI needs in extensions. **Copy these patterns instead of building from scratch.**
|
|
596
|
-
|
|
597
|
-
### Pattern 1: Selection Dialog (SelectList)
|
|
598
|
-
|
|
599
|
-
For letting users pick from a list of options. Use `SelectList` from `@earendil-works/pi-tui` with `DynamicBorder` for framing.
|
|
600
|
-
|
|
601
|
-
```typescript
|
|
602
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
603
|
-
import { DynamicBorder } from "@earendil-works/pi-coding-agent";
|
|
604
|
-
import { Container, type SelectItem, SelectList, Text } from "@earendil-works/pi-tui";
|
|
605
|
-
|
|
606
|
-
pi.registerCommand("pick", {
|
|
607
|
-
handler: async (_args, ctx) => {
|
|
608
|
-
const items: SelectItem[] = [
|
|
609
|
-
{ value: "opt1", label: "Option 1", description: "First option" },
|
|
610
|
-
{ value: "opt2", label: "Option 2", description: "Second option" },
|
|
611
|
-
{ value: "opt3", label: "Option 3" }, // description is optional
|
|
612
|
-
];
|
|
613
|
-
|
|
614
|
-
const result = await ctx.ui.custom<string | null>((tui, theme, _kb, done) => {
|
|
615
|
-
const container = new Container();
|
|
616
|
-
|
|
617
|
-
// Top border
|
|
618
|
-
container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
|
|
619
|
-
|
|
620
|
-
// Title
|
|
621
|
-
container.addChild(new Text(theme.fg("accent", theme.bold("Pick an Option")), 1, 0));
|
|
622
|
-
|
|
623
|
-
// SelectList with theme
|
|
624
|
-
const selectList = new SelectList(items, Math.min(items.length, 10), {
|
|
625
|
-
selectedPrefix: (t) => theme.fg("accent", t),
|
|
626
|
-
selectedText: (t) => theme.fg("accent", t),
|
|
627
|
-
description: (t) => theme.fg("muted", t),
|
|
628
|
-
scrollInfo: (t) => theme.fg("dim", t),
|
|
629
|
-
noMatch: (t) => theme.fg("warning", t),
|
|
630
|
-
});
|
|
631
|
-
selectList.onSelect = (item) => done(item.value);
|
|
632
|
-
selectList.onCancel = () => done(null);
|
|
633
|
-
container.addChild(selectList);
|
|
634
|
-
|
|
635
|
-
// Help text
|
|
636
|
-
container.addChild(new Text(theme.fg("dim", "↑↓ navigate • enter select • esc cancel"), 1, 0));
|
|
637
|
-
|
|
638
|
-
// Bottom border
|
|
639
|
-
container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
|
|
640
|
-
|
|
641
|
-
return {
|
|
642
|
-
render: (w) => container.render(w),
|
|
643
|
-
invalidate: () => container.invalidate(),
|
|
644
|
-
handleInput: (data) => { selectList.handleInput(data); tui.requestRender(); },
|
|
645
|
-
};
|
|
646
|
-
});
|
|
647
|
-
|
|
648
|
-
if (result) {
|
|
649
|
-
ctx.ui.notify(`Selected: ${result}`, "info");
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
});
|
|
653
|
-
```
|
|
654
|
-
|
|
655
|
-
**Examples:** [preset.ts](../examples/extensions/preset.ts), [tools.ts](../examples/extensions/tools.ts)
|
|
656
|
-
|
|
657
|
-
### Pattern 2: Async Operation with Cancel (BorderedLoader)
|
|
658
|
-
|
|
659
|
-
For operations that take time and should be cancellable. `BorderedLoader` shows a spinner and handles escape to cancel.
|
|
660
|
-
|
|
661
|
-
```typescript
|
|
662
|
-
import { BorderedLoader } from "@earendil-works/pi-coding-agent";
|
|
663
|
-
|
|
664
|
-
pi.registerCommand("fetch", {
|
|
665
|
-
handler: async (_args, ctx) => {
|
|
666
|
-
const result = await ctx.ui.custom<string | null>((tui, theme, _kb, done) => {
|
|
667
|
-
const loader = new BorderedLoader(tui, theme, "Fetching data...");
|
|
668
|
-
loader.onAbort = () => done(null);
|
|
669
|
-
|
|
670
|
-
// Do async work
|
|
671
|
-
fetchData(loader.signal)
|
|
672
|
-
.then((data) => done(data))
|
|
673
|
-
.catch(() => done(null));
|
|
674
|
-
|
|
675
|
-
return loader;
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
if (result === null) {
|
|
679
|
-
ctx.ui.notify("Cancelled", "info");
|
|
680
|
-
} else {
|
|
681
|
-
ctx.ui.setEditorText(result);
|
|
682
|
-
}
|
|
683
|
-
},
|
|
684
|
-
});
|
|
685
|
-
```
|
|
686
|
-
|
|
687
|
-
**Examples:** [qna.ts](../examples/extensions/qna.ts), [handoff.ts](../examples/extensions/handoff.ts)
|
|
688
|
-
|
|
689
|
-
### Pattern 3: Settings/Toggles (SettingsList)
|
|
690
|
-
|
|
691
|
-
For toggling multiple settings. Use `SettingsList` from `@earendil-works/pi-tui` with `getSettingsListTheme()`.
|
|
692
|
-
|
|
693
|
-
```typescript
|
|
694
|
-
import { getSettingsListTheme } from "@earendil-works/pi-coding-agent";
|
|
695
|
-
import { Container, type SettingItem, SettingsList, Text } from "@earendil-works/pi-tui";
|
|
696
|
-
|
|
697
|
-
pi.registerCommand("settings", {
|
|
698
|
-
handler: async (_args, ctx) => {
|
|
699
|
-
const items: SettingItem[] = [
|
|
700
|
-
{ id: "verbose", label: "Verbose mode", currentValue: "off", values: ["on", "off"] },
|
|
701
|
-
{ id: "color", label: "Color output", currentValue: "on", values: ["on", "off"] },
|
|
702
|
-
];
|
|
703
|
-
|
|
704
|
-
await ctx.ui.custom((_tui, theme, _kb, done) => {
|
|
705
|
-
const container = new Container();
|
|
706
|
-
container.addChild(new Text(theme.fg("accent", theme.bold("Settings")), 1, 1));
|
|
707
|
-
|
|
708
|
-
const settingsList = new SettingsList(
|
|
709
|
-
items,
|
|
710
|
-
Math.min(items.length + 2, 15),
|
|
711
|
-
getSettingsListTheme(),
|
|
712
|
-
(id, newValue) => {
|
|
713
|
-
// Handle value change
|
|
714
|
-
ctx.ui.notify(`${id} = ${newValue}`, "info");
|
|
715
|
-
},
|
|
716
|
-
() => done(undefined), // On close
|
|
717
|
-
{ enableSearch: true }, // Optional: enable fuzzy search by label
|
|
718
|
-
);
|
|
719
|
-
container.addChild(settingsList);
|
|
720
|
-
|
|
721
|
-
return {
|
|
722
|
-
render: (w) => container.render(w),
|
|
723
|
-
invalidate: () => container.invalidate(),
|
|
724
|
-
handleInput: (data) => settingsList.handleInput?.(data),
|
|
725
|
-
};
|
|
726
|
-
});
|
|
727
|
-
},
|
|
728
|
-
});
|
|
729
|
-
```
|
|
730
|
-
|
|
731
|
-
**Examples:** [tools.ts](../examples/extensions/tools.ts)
|
|
732
|
-
|
|
733
|
-
### Pattern 4: Persistent Status Indicator
|
|
734
|
-
|
|
735
|
-
Show status in the footer that persists across renders. Good for mode indicators.
|
|
736
|
-
|
|
737
|
-
```typescript
|
|
738
|
-
// Set status (shown in footer)
|
|
739
|
-
ctx.ui.setStatus("my-ext", ctx.ui.theme.fg("accent", "● active"));
|
|
740
|
-
|
|
741
|
-
// Clear status
|
|
742
|
-
ctx.ui.setStatus("my-ext", undefined);
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
**Examples:** [status-line.ts](../examples/extensions/status-line.ts), [plan-mode.ts](../examples/extensions/plan-mode.ts), [preset.ts](../examples/extensions/preset.ts)
|
|
746
|
-
|
|
747
|
-
### Pattern 4b: Working Indicator Customization
|
|
748
|
-
|
|
749
|
-
Customize the inline working indicator shown while pi is streaming a response.
|
|
750
|
-
|
|
751
|
-
```typescript
|
|
752
|
-
// Static indicator
|
|
753
|
-
ctx.ui.setWorkingIndicator({ frames: [ctx.ui.theme.fg("accent", "●")] });
|
|
754
|
-
|
|
755
|
-
// Custom animated indicator
|
|
756
|
-
ctx.ui.setWorkingIndicator({
|
|
757
|
-
frames: [
|
|
758
|
-
ctx.ui.theme.fg("dim", "·"),
|
|
759
|
-
ctx.ui.theme.fg("muted", "•"),
|
|
760
|
-
ctx.ui.theme.fg("accent", "●"),
|
|
761
|
-
ctx.ui.theme.fg("muted", "•"),
|
|
762
|
-
],
|
|
763
|
-
intervalMs: 120,
|
|
764
|
-
});
|
|
765
|
-
|
|
766
|
-
// Hide the indicator entirely
|
|
767
|
-
ctx.ui.setWorkingIndicator({ frames: [] });
|
|
768
|
-
|
|
769
|
-
// Restore pi's default spinner
|
|
770
|
-
ctx.ui.setWorkingIndicator();
|
|
771
|
-
```
|
|
772
|
-
|
|
773
|
-
This only affects the normal streaming working indicator. Compaction and retry loaders keep their built-in styling. Custom frames are rendered verbatim, so extensions must add their own colors when needed.
|
|
774
|
-
|
|
775
|
-
**Examples:** [working-indicator.ts](../examples/extensions/working-indicator.ts)
|
|
776
|
-
|
|
777
|
-
### Pattern 5: Widgets Above/Below Editor
|
|
778
|
-
|
|
779
|
-
Show persistent content above or below the input editor. Good for todo lists, progress.
|
|
780
|
-
|
|
781
|
-
```typescript
|
|
782
|
-
// Simple string array (above editor by default)
|
|
783
|
-
ctx.ui.setWidget("my-widget", ["Line 1", "Line 2"]);
|
|
784
|
-
|
|
785
|
-
// Render below the editor
|
|
786
|
-
ctx.ui.setWidget("my-widget", ["Line 1", "Line 2"], { placement: "belowEditor" });
|
|
787
|
-
|
|
788
|
-
// Or with theme
|
|
789
|
-
ctx.ui.setWidget("my-widget", (_tui, theme) => {
|
|
790
|
-
const lines = items.map((item, i) =>
|
|
791
|
-
item.done
|
|
792
|
-
? theme.fg("success", "✓ ") + theme.fg("muted", item.text)
|
|
793
|
-
: theme.fg("dim", "○ ") + item.text
|
|
794
|
-
);
|
|
795
|
-
return {
|
|
796
|
-
render: () => lines,
|
|
797
|
-
invalidate: () => {},
|
|
798
|
-
};
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
// Clear
|
|
802
|
-
ctx.ui.setWidget("my-widget", undefined);
|
|
803
|
-
```
|
|
804
|
-
|
|
805
|
-
**Examples:** [plan-mode.ts](../examples/extensions/plan-mode.ts)
|
|
806
|
-
|
|
807
|
-
### Pattern 6: Custom Footer
|
|
808
|
-
|
|
809
|
-
Replace the footer. `footerData` exposes data not otherwise accessible to extensions.
|
|
810
|
-
|
|
811
|
-
```typescript
|
|
812
|
-
ctx.ui.setFooter((tui, theme, footerData) => ({
|
|
813
|
-
invalidate() {},
|
|
814
|
-
render(width: number): string[] {
|
|
815
|
-
// footerData.getGitBranch(): string | null
|
|
816
|
-
// footerData.getExtensionStatuses(): ReadonlyMap<string, string>
|
|
817
|
-
return [`${ctx.model?.id} (${footerData.getGitBranch() || "no git"})`];
|
|
818
|
-
},
|
|
819
|
-
dispose: footerData.onBranchChange(() => tui.requestRender()), // reactive
|
|
820
|
-
}));
|
|
821
|
-
|
|
822
|
-
ctx.ui.setFooter(undefined); // restore default
|
|
823
|
-
```
|
|
824
|
-
|
|
825
|
-
Token stats available via `ctx.sessionManager.getBranch()` and `ctx.model`.
|
|
826
|
-
|
|
827
|
-
**Examples:** [custom-footer.ts](../examples/extensions/custom-footer.ts)
|
|
828
|
-
|
|
829
|
-
### Pattern 7: Custom Editor (vim mode, etc.)
|
|
830
|
-
|
|
831
|
-
Replace the main input editor with a custom implementation. Useful for modal editing (vim), different keybindings (emacs), or specialized input handling.
|
|
832
|
-
|
|
833
|
-
```typescript
|
|
834
|
-
import { CustomEditor, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
835
|
-
import { matchesKey, truncateToWidth } from "@earendil-works/pi-tui";
|
|
836
|
-
|
|
837
|
-
type Mode = "normal" | "insert";
|
|
838
|
-
|
|
839
|
-
class VimEditor extends CustomEditor {
|
|
840
|
-
private mode: Mode = "insert";
|
|
841
|
-
|
|
842
|
-
handleInput(data: string): void {
|
|
843
|
-
// Escape: switch to normal mode, or pass through for app handling
|
|
844
|
-
if (matchesKey(data, "escape")) {
|
|
845
|
-
if (this.mode === "insert") {
|
|
846
|
-
this.mode = "normal";
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
// In normal mode, escape aborts agent (handled by CustomEditor)
|
|
850
|
-
super.handleInput(data);
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
// Insert mode: pass everything to CustomEditor
|
|
855
|
-
if (this.mode === "insert") {
|
|
856
|
-
super.handleInput(data);
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
// Normal mode: vim-style navigation
|
|
861
|
-
switch (data) {
|
|
862
|
-
case "i": this.mode = "insert"; return;
|
|
863
|
-
case "h": super.handleInput("\x1b[D"); return; // Left
|
|
864
|
-
case "j": super.handleInput("\x1b[B"); return; // Down
|
|
865
|
-
case "k": super.handleInput("\x1b[A"); return; // Up
|
|
866
|
-
case "l": super.handleInput("\x1b[C"); return; // Right
|
|
867
|
-
}
|
|
868
|
-
// Pass unhandled keys to super (ctrl+c, etc.), but filter printable chars
|
|
869
|
-
if (data.length === 1 && data.charCodeAt(0) >= 32) return;
|
|
870
|
-
super.handleInput(data);
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
render(width: number): string[] {
|
|
874
|
-
const lines = super.render(width);
|
|
875
|
-
// Add mode indicator to bottom border (use truncateToWidth for ANSI-safe truncation)
|
|
876
|
-
if (lines.length > 0) {
|
|
877
|
-
const label = this.mode === "normal" ? " NORMAL " : " INSERT ";
|
|
878
|
-
const lastLine = lines[lines.length - 1]!;
|
|
879
|
-
// Pass "" as ellipsis to avoid adding "..." when truncating
|
|
880
|
-
lines[lines.length - 1] = truncateToWidth(lastLine, width - label.length, "") + label;
|
|
881
|
-
}
|
|
882
|
-
return lines;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
export default function (pi: ExtensionAPI) {
|
|
887
|
-
pi.on("session_start", (_event, ctx) => {
|
|
888
|
-
// Factory receives theme and keybindings from the app
|
|
889
|
-
ctx.ui.setEditorComponent((tui, theme, keybindings) =>
|
|
890
|
-
new VimEditor(theme, keybindings)
|
|
891
|
-
);
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
```
|
|
895
|
-
|
|
896
|
-
**Key points:**
|
|
897
|
-
|
|
898
|
-
- **Extend `CustomEditor`** (not base `Editor`) to get app keybindings (escape to abort, ctrl+d to exit, model switching, etc.)
|
|
899
|
-
- **Call `super.handleInput(data)`** for keys you don't handle
|
|
900
|
-
- **Factory pattern**: `setEditorComponent` receives a factory function that gets `tui`, `theme`, and `keybindings`
|
|
901
|
-
- **Pass `undefined`** to restore the default editor: `ctx.ui.setEditorComponent(undefined)`
|
|
902
|
-
|
|
903
|
-
**Examples:** [modal-editor.ts](../examples/extensions/modal-editor.ts)
|
|
904
|
-
|
|
905
|
-
## Key Rules
|
|
906
|
-
|
|
907
|
-
1. **Always use theme from callback** - Don't import theme directly. Use `theme` from the `ctx.ui.custom((tui, theme, keybindings, done) => ...)` callback.
|
|
908
|
-
|
|
909
|
-
2. **Always type DynamicBorder color param** - Write `(s: string) => theme.fg("accent", s)`, not `(s) => theme.fg("accent", s)`.
|
|
910
|
-
|
|
911
|
-
3. **Call tui.requestRender() after state changes** - In `handleInput`, call `tui.requestRender()` after updating state.
|
|
912
|
-
|
|
913
|
-
4. **Return the three-method object** - Custom components need `{ render, invalidate, handleInput }`.
|
|
914
|
-
|
|
915
|
-
5. **Use existing components** - `SelectList`, `SettingsList`, `BorderedLoader` cover 90% of cases. Don't rebuild them.
|
|
916
|
-
|
|
917
|
-
## Examples
|
|
918
|
-
|
|
919
|
-
- **Selection UI**: [examples/extensions/preset.ts](../examples/extensions/preset.ts) - SelectList with DynamicBorder framing
|
|
920
|
-
- **Async with cancel**: [examples/extensions/qna.ts](../examples/extensions/qna.ts) - BorderedLoader for LLM calls
|
|
921
|
-
- **Settings toggles**: [examples/extensions/tools.ts](../examples/extensions/tools.ts) - SettingsList for tool enable/disable
|
|
922
|
-
- **Status indicators**: [examples/extensions/plan-mode.ts](../examples/extensions/plan-mode.ts) - setStatus and setWidget
|
|
923
|
-
- **Working indicator**: [examples/extensions/working-indicator.ts](../examples/extensions/working-indicator.ts) - setWorkingIndicator
|
|
924
|
-
- **Custom footer**: [examples/extensions/custom-footer.ts](../examples/extensions/custom-footer.ts) - setFooter with stats
|
|
925
|
-
- **Custom editor**: [examples/extensions/modal-editor.ts](../examples/extensions/modal-editor.ts) - Vim-like modal editing
|
|
926
|
-
- **Snake game**: [examples/extensions/snake.ts](../examples/extensions/snake.ts) - Full game with keyboard input, game loop
|
|
927
|
-
- **Custom tool rendering**: [examples/extensions/todo.ts](../examples/extensions/todo.ts) - renderCall and renderResult
|