threadwell 0.0.0 → 0.0.2
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/CHANGELOG.md +4170 -0
- package/README.md +393 -4
- package/dist/bun/cli.d.ts +3 -0
- package/dist/bun/cli.d.ts.map +1 -0
- package/dist/bun/cli.js +9 -0
- package/dist/bun/cli.js.map +1 -0
- package/dist/bun/register-bedrock.d.ts +2 -0
- package/dist/bun/register-bedrock.d.ts.map +1 -0
- package/dist/bun/register-bedrock.js +4 -0
- package/dist/bun/register-bedrock.js.map +1 -0
- package/dist/bun/restore-sandbox-env.d.ts +13 -0
- package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
- package/dist/bun/restore-sandbox-env.js +32 -0
- package/dist/bun/restore-sandbox-env.js.map +1 -0
- package/dist/cli/args.d.ts +53 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +341 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/config-selector.d.ts +14 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +83 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +98 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/session-picker.d.ts +9 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +35 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +19 -3
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +93 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +404 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +117 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +300 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +86 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +117 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +659 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +3210 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +21 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +141 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +441 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +32 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +111 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +88 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +243 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +121 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +615 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +38 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +153 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/continuity/continuity-files.d.ts +79 -0
- package/dist/core/continuity/continuity-files.d.ts.map +1 -0
- package/dist/core/continuity/continuity-files.js +326 -0
- package/dist/core/continuity/continuity-files.js.map +1 -0
- package/dist/core/continuity/continuity-intent-router.d.ts +9 -0
- package/dist/core/continuity/continuity-intent-router.d.ts.map +1 -0
- package/dist/core/continuity/continuity-intent-router.js +96 -0
- package/dist/core/continuity/continuity-intent-router.js.map +1 -0
- package/dist/core/continuity/continuity-manager.d.ts +28 -0
- package/dist/core/continuity/continuity-manager.d.ts.map +1 -0
- package/dist/core/continuity/continuity-manager.js +288 -0
- package/dist/core/continuity/continuity-manager.js.map +1 -0
- package/dist/core/continuity/continuity-service.d.ts +22 -0
- package/dist/core/continuity/continuity-service.d.ts.map +1 -0
- package/dist/core/continuity/continuity-service.js +34 -0
- package/dist/core/continuity/continuity-service.js.map +1 -0
- package/dist/core/continuity/index.d.ts +5 -0
- package/dist/core/continuity/index.d.ts.map +1 -0
- package/dist/core/continuity/index.js +5 -0
- package/dist/core/continuity/index.js.map +1 -0
- package/dist/core/defaults.d.ts +3 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +224 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1834 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +108 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +6 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +24 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +485 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +159 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +824 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1173 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +45 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +22 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +72 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +374 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/identity.d.ts +8 -0
- package/dist/core/identity.d.ts.map +1 -0
- package/dist/core/identity.js +8 -0
- package/dist/core/identity.js.map +1 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +353 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +295 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/memory/adr/adr-candidates.d.ts +15 -0
- package/dist/core/memory/adr/adr-candidates.d.ts.map +1 -0
- package/dist/core/memory/adr/adr-candidates.js +63 -0
- package/dist/core/memory/adr/adr-candidates.js.map +1 -0
- package/dist/core/memory/adr/adr-format.d.ts +31 -0
- package/dist/core/memory/adr/adr-format.d.ts.map +1 -0
- package/dist/core/memory/adr/adr-format.js +138 -0
- package/dist/core/memory/adr/adr-format.js.map +1 -0
- package/dist/core/memory/adr/adr-service.d.ts +19 -0
- package/dist/core/memory/adr/adr-service.d.ts.map +1 -0
- package/dist/core/memory/adr/adr-service.js +63 -0
- package/dist/core/memory/adr/adr-service.js.map +1 -0
- package/dist/core/memory/adr/index.d.ts +4 -0
- package/dist/core/memory/adr/index.d.ts.map +1 -0
- package/dist/core/memory/adr/index.js +4 -0
- package/dist/core/memory/adr/index.js.map +1 -0
- package/dist/core/memory/content-ref.d.ts +22 -0
- package/dist/core/memory/content-ref.d.ts.map +1 -0
- package/dist/core/memory/content-ref.js +34 -0
- package/dist/core/memory/content-ref.js.map +1 -0
- package/dist/core/memory/context/context-candidates.d.ts +9 -0
- package/dist/core/memory/context/context-candidates.d.ts.map +1 -0
- package/dist/core/memory/context/context-candidates.js +64 -0
- package/dist/core/memory/context/context-candidates.js.map +1 -0
- package/dist/core/memory/context/context-diagnostics.d.ts +12 -0
- package/dist/core/memory/context/context-diagnostics.d.ts.map +1 -0
- package/dist/core/memory/context/context-diagnostics.js +50 -0
- package/dist/core/memory/context/context-diagnostics.js.map +1 -0
- package/dist/core/memory/context/context-format.d.ts +41 -0
- package/dist/core/memory/context/context-format.d.ts.map +1 -0
- package/dist/core/memory/context/context-format.js +199 -0
- package/dist/core/memory/context/context-format.js.map +1 -0
- package/dist/core/memory/context/index.d.ts +4 -0
- package/dist/core/memory/context/index.d.ts.map +1 -0
- package/dist/core/memory/context/index.js +4 -0
- package/dist/core/memory/context/index.js.map +1 -0
- package/dist/core/memory/context-pressure.d.ts +15 -0
- package/dist/core/memory/context-pressure.d.ts.map +1 -0
- package/dist/core/memory/context-pressure.js +36 -0
- package/dist/core/memory/context-pressure.js.map +1 -0
- package/dist/core/memory/continuity-import.d.ts +6 -0
- package/dist/core/memory/continuity-import.d.ts.map +1 -0
- package/dist/core/memory/continuity-import.js +63 -0
- package/dist/core/memory/continuity-import.js.map +1 -0
- package/dist/core/memory/dedupe.d.ts +10 -0
- package/dist/core/memory/dedupe.d.ts.map +1 -0
- package/dist/core/memory/dedupe.js +36 -0
- package/dist/core/memory/dedupe.js.map +1 -0
- package/dist/core/memory/embedding-adapter.d.ts +20 -0
- package/dist/core/memory/embedding-adapter.d.ts.map +1 -0
- package/dist/core/memory/embedding-adapter.js +11 -0
- package/dist/core/memory/embedding-adapter.js.map +1 -0
- package/dist/core/memory/event-summary.d.ts +7 -0
- package/dist/core/memory/event-summary.d.ts.map +1 -0
- package/dist/core/memory/event-summary.js +23 -0
- package/dist/core/memory/event-summary.js.map +1 -0
- package/dist/core/memory/feature/feature-format.d.ts +30 -0
- package/dist/core/memory/feature/feature-format.d.ts.map +1 -0
- package/dist/core/memory/feature/feature-format.js +121 -0
- package/dist/core/memory/feature/feature-format.js.map +1 -0
- package/dist/core/memory/feature/index.d.ts +2 -0
- package/dist/core/memory/feature/index.d.ts.map +1 -0
- package/dist/core/memory/feature/index.js +2 -0
- package/dist/core/memory/feature/index.js.map +1 -0
- package/dist/core/memory/ignore.d.ts +5 -0
- package/dist/core/memory/ignore.d.ts.map +1 -0
- package/dist/core/memory/ignore.js +26 -0
- package/dist/core/memory/ignore.js.map +1 -0
- package/dist/core/memory/index.d.ts +21 -0
- package/dist/core/memory/index.d.ts.map +1 -0
- package/dist/core/memory/index.js +20 -0
- package/dist/core/memory/index.js.map +1 -0
- package/dist/core/memory/memory-anchors.d.ts +11 -0
- package/dist/core/memory/memory-anchors.d.ts.map +1 -0
- package/dist/core/memory/memory-anchors.js +35 -0
- package/dist/core/memory/memory-anchors.js.map +1 -0
- package/dist/core/memory/memory-identity.d.ts +11 -0
- package/dist/core/memory/memory-identity.d.ts.map +1 -0
- package/dist/core/memory/memory-identity.js +19 -0
- package/dist/core/memory/memory-identity.js.map +1 -0
- package/dist/core/memory/memory-retrieval.d.ts +55 -0
- package/dist/core/memory/memory-retrieval.d.ts.map +1 -0
- package/dist/core/memory/memory-retrieval.js +128 -0
- package/dist/core/memory/memory-retrieval.js.map +1 -0
- package/dist/core/memory/memory-schema.d.ts +11 -0
- package/dist/core/memory/memory-schema.d.ts.map +1 -0
- package/dist/core/memory/memory-schema.js +111 -0
- package/dist/core/memory/memory-schema.js.map +1 -0
- package/dist/core/memory/memory-service.d.ts +35 -0
- package/dist/core/memory/memory-service.d.ts.map +1 -0
- package/dist/core/memory/memory-service.js +125 -0
- package/dist/core/memory/memory-service.js.map +1 -0
- package/dist/core/memory/memory-store.d.ts +37 -0
- package/dist/core/memory/memory-store.d.ts.map +1 -0
- package/dist/core/memory/memory-store.js +109 -0
- package/dist/core/memory/memory-store.js.map +1 -0
- package/dist/core/memory/memory-types.d.ts +55 -0
- package/dist/core/memory/memory-types.d.ts.map +1 -0
- package/dist/core/memory/memory-types.js +2 -0
- package/dist/core/memory/memory-types.js.map +1 -0
- package/dist/core/memory/redaction.d.ts +4 -0
- package/dist/core/memory/redaction.d.ts.map +1 -0
- package/dist/core/memory/redaction.js +49 -0
- package/dist/core/memory/redaction.js.map +1 -0
- package/dist/core/memory/sqlite-memory-store.d.ts +30 -0
- package/dist/core/memory/sqlite-memory-store.d.ts.map +1 -0
- package/dist/core/memory/sqlite-memory-store.js +300 -0
- package/dist/core/memory/sqlite-memory-store.js.map +1 -0
- package/dist/core/memory/startup-order.d.ts +9 -0
- package/dist/core/memory/startup-order.d.ts.map +1 -0
- package/dist/core/memory/startup-order.js +39 -0
- package/dist/core/memory/startup-order.js.map +1 -0
- package/dist/core/messages.d.ts +77 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +123 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-registry.d.ts +150 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +727 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +110 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +494 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/output-guard.d.ts +6 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +59 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +198 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +1961 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +52 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +250 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-display-names.d.ts +2 -0
- package/dist/core/provider-display-names.d.ts.map +1 -0
- package/dist/core/provider-display-names.js +32 -0
- package/dist/core/provider-display-names.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +23 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +126 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +194 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +731 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/sdk.d.ts +107 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +282 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-manager.d.ts +333 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1109 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +295 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +842 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +60 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +404 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +14 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +32 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/system-prompt.d.ts +28 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +120 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/telemetry.d.ts +3 -0
- package/dist/core/telemetry.d.ts.map +1 -0
- package/dist/core/telemetry.js +9 -0
- package/dist/core/telemetry.js.map +1 -0
- package/dist/core/timings.d.ts +8 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +31 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +68 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +335 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +85 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +338 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +49 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +324 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +37 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +35 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +298 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +37 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +304 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +40 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +112 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +37 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +169 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +50 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +178 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +8 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +81 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/read.d.ts +35 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +288 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +21 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +49 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +34 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +205 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/write.d.ts +26 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +213 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +583 -0
- package/dist/main.js.map +1 -0
- package/dist/migrations.d.ts +31 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +279 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +9 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +20 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +122 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +36 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +182 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +54 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +481 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +70 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +79 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +26 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +58 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
- package/dist/modes/interactive/components/earendil-announcement.js +40 -0
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +111 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +24 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +78 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/flexible-viewport-spacer.d.ts +10 -0
- package/dist/modes/interactive/components/flexible-viewport-spacer.d.ts.map +1 -0
- package/dist/modes/interactive/components/flexible-viewport-spacer.js +20 -0
- package/dist/modes/interactive/components/flexible-viewport-spacer.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +27 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +272 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +32 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +33 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +8 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +22 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +46 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +160 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +271 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +165 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +290 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +96 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +861 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +73 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +531 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/split-info-card.d.ts +18 -0
- package/dist/modes/interactive/components/split-info-card.d.ts.map +1 -0
- package/dist/modes/interactive/components/split-info-card.js +82 -0
- package/dist/modes/interactive/components/split-info-card.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +51 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +66 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +313 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +89 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1092 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +10 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +29 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +369 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +4899 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.d.ts +81 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +971 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +131 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +49 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +224 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +410 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +601 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +419 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/package-manager-cli.d.ts +4 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +460 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/utils/changelog.d.ts +21 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +87 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +12 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +86 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +245 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard-native.d.ts +8 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -0
- package/dist/utils/clipboard-native.js +14 -0
- package/dist/utils/clipboard-native.js.map +1 -0
- package/dist/utils/clipboard-text.d.ts +4 -0
- package/dist/utils/clipboard-text.d.ts.map +1 -0
- package/dist/utils/clipboard-text.js +37 -0
- package/dist/utils/clipboard-text.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +117 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -0
- package/dist/utils/exif-orientation.js +158 -0
- package/dist/utils/exif-orientation.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +163 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/image-convert.d.ts +9 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +39 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-resize.d.ts +36 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +137 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/mime.d.ts +2 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +26 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/paths.d.ts +14 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +34 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/shell.d.ts +30 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +190 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/threadwell-user-agent.d.ts +2 -0
- package/dist/utils/threadwell-user-agent.d.ts.map +1 -0
- package/dist/utils/threadwell-user-agent.js +5 -0
- package/dist/utils/threadwell-user-agent.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +256 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +14 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +77 -0
- package/dist/utils/version-check.js.map +1 -0
- package/docs/compaction.md +394 -0
- package/docs/custom-provider.md +646 -0
- package/docs/development.md +71 -0
- package/docs/docs.json +148 -0
- package/docs/extensions.md +2596 -0
- 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 +64 -0
- package/docs/json.md +82 -0
- package/docs/keybindings.md +197 -0
- package/docs/memory.md +484 -0
- package/docs/models.md +474 -0
- package/docs/packages.md +223 -0
- package/docs/prompt-templates.md +88 -0
- package/docs/providers.md +241 -0
- package/docs/quickstart.md +142 -0
- package/docs/rpc.md +1407 -0
- package/docs/sdk.md +1149 -0
- package/docs/session-format.md +412 -0
- package/docs/sessions.md +137 -0
- package/docs/settings.md +378 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +232 -0
- package/docs/terminal-setup.md +106 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +295 -0
- package/docs/tmux.md +61 -0
- package/docs/tui.md +918 -0
- package/docs/usage.md +277 -0
- package/docs/windows.md +17 -0
- package/examples/README.md +25 -0
- package/examples/extensions/README.md +208 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +147 -0
- package/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +127 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/handoff.ts +191 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +55 -0
- package/examples/extensions/overlay-qa-tests.ts +1348 -0
- package/examples/extensions/overlay-test.ts +150 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +65 -0
- package/examples/extensions/plan-mode/index.ts +340 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/prompt-customizer.ts +97 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +122 -0
- package/examples/extensions/question.ts +264 -0
- package/examples/extensions/questionnaire.ts +427 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +321 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +172 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +126 -0
- package/examples/extensions/subagent/index.ts +987 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +206 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +141 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/rpc-extension-ui.ts +632 -0
- package/examples/sdk/01-minimal.ts +22 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +62 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +44 -0
- package/examples/sdk/06-extensions.ts +90 -0
- package/examples/sdk/07-context-files.ts +42 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +48 -0
- package/examples/sdk/12-full-control.ts +73 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +147 -0
- package/package.json +101 -33
- package/LICENSE +0 -21
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
> Threadwell can create prompt templates. Ask it to build one for your workflow.
|
|
2
|
+
|
|
3
|
+
# Prompt Templates
|
|
4
|
+
|
|
5
|
+
Prompt templates are Markdown snippets that expand into full prompts. Type `/name` in the editor to invoke a template, where `name` is the filename without `.md`.
|
|
6
|
+
|
|
7
|
+
## Locations
|
|
8
|
+
|
|
9
|
+
Threadwell loads prompt templates from:
|
|
10
|
+
|
|
11
|
+
- Global: `~/.threadwell/agent/prompts/*.md`
|
|
12
|
+
- Project: `.threadwell/prompts/*.md`
|
|
13
|
+
- Packages: `prompts/` directories or `threadwell.prompts` entries in `package.json`
|
|
14
|
+
- Settings: `prompts` array with files or directories
|
|
15
|
+
- CLI: `--prompt-template <path>` (repeatable)
|
|
16
|
+
|
|
17
|
+
Disable discovery with `--no-prompt-templates`.
|
|
18
|
+
|
|
19
|
+
## Format
|
|
20
|
+
|
|
21
|
+
```markdown
|
|
22
|
+
---
|
|
23
|
+
description: Review staged git changes
|
|
24
|
+
---
|
|
25
|
+
Review the staged changes (`git diff --cached`). Focus on:
|
|
26
|
+
- Bugs and logic errors
|
|
27
|
+
- Security issues
|
|
28
|
+
- Error handling gaps
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- The filename becomes the command name. `review.md` becomes `/review`.
|
|
32
|
+
- `description` is optional. If missing, the first non-empty line is used.
|
|
33
|
+
- `argument-hint` is optional. When set, the hint is displayed before the description in the autocomplete dropdown.
|
|
34
|
+
|
|
35
|
+
### Argument Hints
|
|
36
|
+
|
|
37
|
+
Use `argument-hint` in frontmatter to show expected arguments in autocomplete. Use `<angle brackets>` for required arguments and `[square brackets]` for optional ones:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
---
|
|
41
|
+
description: Review PRs from URLs with structured issue and code analysis
|
|
42
|
+
argument-hint: "<PR-URL>"
|
|
43
|
+
---
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This renders in the autocomplete dropdown as:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
→ pr <PR-URL> — Review PRs from URLs with structured issue and code analysis
|
|
50
|
+
is <issue> — Analyze GitHub issues (bugs or feature requests)
|
|
51
|
+
wr [instructions] — Finish the current task end-to-end
|
|
52
|
+
cl — Audit changelog entries before release
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Usage
|
|
56
|
+
|
|
57
|
+
Type `/` followed by the template name in the editor. Autocomplete shows available templates with descriptions.
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
/review # Expands review.md
|
|
61
|
+
/component Button # Expands with argument
|
|
62
|
+
/component Button "click handler" # Multiple arguments
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Arguments
|
|
66
|
+
|
|
67
|
+
Templates support positional arguments and simple slicing:
|
|
68
|
+
|
|
69
|
+
- `$1`, `$2`, ... positional args
|
|
70
|
+
- `$@` or `$ARGUMENTS` for all args joined
|
|
71
|
+
- `${@:N}` for args from the Nth position (1-indexed)
|
|
72
|
+
- `${@:N:L}` for `L` args starting at N
|
|
73
|
+
|
|
74
|
+
Example:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
---
|
|
78
|
+
description: Create a component
|
|
79
|
+
---
|
|
80
|
+
Create a React component named $1 with features: $@
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Usage: `/component Button "onClick handler" "disabled support"`
|
|
84
|
+
|
|
85
|
+
## Loading Rules
|
|
86
|
+
|
|
87
|
+
- Template discovery in `prompts/` is non-recursive.
|
|
88
|
+
- If you want templates in subdirectories, add them explicitly via `prompts` settings or a package manifest.
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# Providers
|
|
2
|
+
|
|
3
|
+
Threadwell supports subscription-based providers via OAuth and API key providers via environment variables or auth file. For each provider, Threadwell knows all available models. The list is updated with every Threadwell release.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Subscriptions](#subscriptions)
|
|
8
|
+
- [API Keys](#api-keys)
|
|
9
|
+
- [Auth File](#auth-file)
|
|
10
|
+
- [Cloud Providers](#cloud-providers)
|
|
11
|
+
- [Custom Providers](#custom-providers)
|
|
12
|
+
- [Resolution Order](#resolution-order)
|
|
13
|
+
|
|
14
|
+
## Subscriptions
|
|
15
|
+
|
|
16
|
+
Use `/login` in interactive mode, then select a provider:
|
|
17
|
+
|
|
18
|
+
- ChatGPT Plus/Pro (Codex)
|
|
19
|
+
- Claude Pro/Max
|
|
20
|
+
- GitHub Copilot
|
|
21
|
+
|
|
22
|
+
Use `/logout` to clear credentials. Tokens are stored in `~/.threadwell/agent/auth.json` and auto-refresh when expired.
|
|
23
|
+
|
|
24
|
+
### OpenAI Codex
|
|
25
|
+
|
|
26
|
+
- Requires ChatGPT Plus or Pro subscription
|
|
27
|
+
- Officially endorsed by OpenAI: [Codex for OSS](https://developers.openai.com/community/codex-for-oss)
|
|
28
|
+
|
|
29
|
+
### Claude Pro/Max
|
|
30
|
+
|
|
31
|
+
Anthropic subscription auth is active for Claude Pro/Max accounts. Third-party harness usage draws from [extra usage](https://claude.ai/settings/usage) and is billed per token, not against Claude plan limits.
|
|
32
|
+
|
|
33
|
+
### GitHub Copilot
|
|
34
|
+
|
|
35
|
+
- Press Enter for github.com, or enter your GitHub Enterprise Server domain
|
|
36
|
+
- If you get "model not supported", enable it in VS Code: Copilot Chat → model selector → select model → "Enable"
|
|
37
|
+
|
|
38
|
+
## API Keys
|
|
39
|
+
|
|
40
|
+
### Environment Variables or Auth File
|
|
41
|
+
|
|
42
|
+
Use `/login` in interactive mode and select a provider to store an API key in `auth.json`, or set credentials via environment variable:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
46
|
+
thread
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
| Provider | Environment Variable | `auth.json` key |
|
|
50
|
+
|----------|----------------------|------------------|
|
|
51
|
+
| Anthropic | `ANTHROPIC_API_KEY` | `anthropic` |
|
|
52
|
+
| Azure OpenAI Responses | `AZURE_OPENAI_API_KEY` | `azure-openai-responses` |
|
|
53
|
+
| OpenAI | `OPENAI_API_KEY` | `openai` |
|
|
54
|
+
| DeepSeek | `DEEPSEEK_API_KEY` | `deepseek` |
|
|
55
|
+
| Google Gemini | `GEMINI_API_KEY` | `google` |
|
|
56
|
+
| Mistral | `MISTRAL_API_KEY` | `mistral` |
|
|
57
|
+
| Groq | `GROQ_API_KEY` | `groq` |
|
|
58
|
+
| Cerebras | `CEREBRAS_API_KEY` | `cerebras` |
|
|
59
|
+
| Cloudflare AI Gateway | `CLOUDFLARE_API_KEY` (+ `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_GATEWAY_ID`) | `cloudflare-ai-gateway` |
|
|
60
|
+
| Cloudflare Workers AI | `CLOUDFLARE_API_KEY` (+ `CLOUDFLARE_ACCOUNT_ID`) | `cloudflare-workers-ai` |
|
|
61
|
+
| xAI | `XAI_API_KEY` | `xai` |
|
|
62
|
+
| OpenRouter | `OPENROUTER_API_KEY` | `openrouter` |
|
|
63
|
+
| Vercel AI Gateway | `AI_GATEWAY_API_KEY` | `vercel-ai-gateway` |
|
|
64
|
+
| ZAI | `ZAI_API_KEY` | `zai` |
|
|
65
|
+
| OpenCode Zen | `OPENCODE_API_KEY` | `opencode` |
|
|
66
|
+
| OpenCode Go | `OPENCODE_API_KEY` | `opencode-go` |
|
|
67
|
+
| Hugging Face | `HF_TOKEN` | `huggingface` |
|
|
68
|
+
| Fireworks | `FIREWORKS_API_KEY` | `fireworks` |
|
|
69
|
+
| Kimi For Coding | `KIMI_API_KEY` | `kimi-coding` |
|
|
70
|
+
| MiniMax | `MINIMAX_API_KEY` | `minimax` |
|
|
71
|
+
| MiniMax (China) | `MINIMAX_CN_API_KEY` | `minimax-cn` |
|
|
72
|
+
| Xiaomi MiMo | `XIAOMI_API_KEY` | `xiaomi` |
|
|
73
|
+
| Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` | `xiaomi-token-plan-cn` |
|
|
74
|
+
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` | `xiaomi-token-plan-ams` |
|
|
75
|
+
| Xiaomi MiMo Token Plan (Singapore) | `XIAOMI_TOKEN_PLAN_SGP_API_KEY` | `xiaomi-token-plan-sgp` |
|
|
76
|
+
|
|
77
|
+
Reference for environment variables and `auth.json` keys: [`const envMap`](local Threadwell source/blob/main/packages/ai/src/env-api-keys.ts) in [`packages/ai/src/env-api-keys.ts`](local Threadwell source/blob/main/packages/ai/src/env-api-keys.ts).
|
|
78
|
+
|
|
79
|
+
#### Auth File
|
|
80
|
+
|
|
81
|
+
Store credentials in `~/.threadwell/agent/auth.json`:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"anthropic": { "type": "api_key", "key": "sk-ant-..." },
|
|
86
|
+
"openai": { "type": "api_key", "key": "sk-..." },
|
|
87
|
+
"deepseek": { "type": "api_key", "key": "sk-..." },
|
|
88
|
+
"google": { "type": "api_key", "key": "..." },
|
|
89
|
+
"opencode": { "type": "api_key", "key": "..." },
|
|
90
|
+
"opencode-go": { "type": "api_key", "key": "..." },
|
|
91
|
+
"xiaomi": { "type": "api_key", "key": "..." },
|
|
92
|
+
"xiaomi-token-plan-cn": { "type": "api_key", "key": "..." },
|
|
93
|
+
"xiaomi-token-plan-ams": { "type": "api_key", "key": "..." },
|
|
94
|
+
"xiaomi-token-plan-sgp": { "type": "api_key", "key": "..." }
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The file is created with `0600` permissions (user read/write only). Auth file credentials take priority over environment variables.
|
|
99
|
+
|
|
100
|
+
### Key Resolution
|
|
101
|
+
|
|
102
|
+
The `key` field supports three formats:
|
|
103
|
+
|
|
104
|
+
- **Shell command:** `"!command"` executes and uses stdout (cached for process lifetime)
|
|
105
|
+
```json
|
|
106
|
+
{ "type": "api_key", "key": "!security find-generic-password -ws 'anthropic'" }
|
|
107
|
+
{ "type": "api_key", "key": "!op read 'op://vault/item/credential'" }
|
|
108
|
+
```
|
|
109
|
+
- **Environment variable:** Uses the value of the named variable
|
|
110
|
+
```json
|
|
111
|
+
{ "type": "api_key", "key": "MY_ANTHROPIC_KEY" }
|
|
112
|
+
```
|
|
113
|
+
- **Literal value:** Used directly
|
|
114
|
+
```json
|
|
115
|
+
{ "type": "api_key", "key": "sk-ant-..." }
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
OAuth credentials are also stored here after `/login` and managed automatically.
|
|
119
|
+
|
|
120
|
+
## Cloud Providers
|
|
121
|
+
|
|
122
|
+
### Azure OpenAI
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
export AZURE_OPENAI_API_KEY=...
|
|
126
|
+
export AZURE_OPENAI_BASE_URL=https://your-resource.openai.azure.com
|
|
127
|
+
# also supported: https://your-resource.cognitiveservices.azure.com
|
|
128
|
+
# root endpoints are auto-normalized to /openai/v1
|
|
129
|
+
# or use resource name instead of base URL
|
|
130
|
+
export AZURE_OPENAI_RESOURCE_NAME=your-resource
|
|
131
|
+
|
|
132
|
+
# Optional
|
|
133
|
+
export AZURE_OPENAI_API_VERSION=2024-02-01
|
|
134
|
+
export AZURE_OPENAI_DEPLOYMENT_NAME_MAP=gpt-4=my-gpt4,gpt-4o=my-gpt4o
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Amazon Bedrock
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Option 1: AWS Profile
|
|
141
|
+
export AWS_PROFILE=your-profile
|
|
142
|
+
|
|
143
|
+
# Option 2: IAM Keys
|
|
144
|
+
export AWS_ACCESS_KEY_ID=AKIA...
|
|
145
|
+
export AWS_SECRET_ACCESS_KEY=...
|
|
146
|
+
|
|
147
|
+
# Option 3: Bearer Token
|
|
148
|
+
export AWS_BEARER_TOKEN_BEDROCK=...
|
|
149
|
+
|
|
150
|
+
# Optional region (defaults to us-east-1)
|
|
151
|
+
export AWS_REGION=us-west-2
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Also supports ECS task roles (`AWS_CONTAINER_CREDENTIALS_*`) and IRSA (`AWS_WEB_IDENTITY_TOKEN_FILE`).
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
thread --provider amazon-bedrock --model us.anthropic.claude-sonnet-4-20250514-v1:0
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Prompt caching is enabled automatically for Claude models whose ID contains a recognizable model name (base models and system-defined inference profiles). For application inference profiles (whose ARNs don't contain the model name), set `AWS_BEDROCK_FORCE_CACHE=1` to enable cache points:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
export AWS_BEDROCK_FORCE_CACHE=1
|
|
164
|
+
thread --provider amazon-bedrock --model arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/abc123
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
If you are connecting to a Bedrock API proxy, the following environment variables can be used:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# Set the URL for the Bedrock proxy (standard AWS SDK env var)
|
|
171
|
+
export AWS_ENDPOINT_URL_BEDROCK_RUNTIME=https://my.corp.proxy/bedrock
|
|
172
|
+
|
|
173
|
+
# Set if your proxy does not require authentication
|
|
174
|
+
export AWS_BEDROCK_SKIP_AUTH=1
|
|
175
|
+
|
|
176
|
+
# Set if your proxy only supports HTTP/1.1
|
|
177
|
+
export AWS_BEDROCK_FORCE_HTTP1=1
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Cloudflare AI Gateway
|
|
181
|
+
|
|
182
|
+
`CLOUDFLARE_API_KEY` can be set via `/login`. The account ID and gateway slug must be set as environment variables.
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
export CLOUDFLARE_API_KEY=... # or use /login
|
|
186
|
+
export CLOUDFLARE_ACCOUNT_ID=...
|
|
187
|
+
export CLOUDFLARE_GATEWAY_ID=... # create at dash.cloudflare.com → AI → AI Gateway
|
|
188
|
+
thread --provider cloudflare-ai-gateway --model "claude-sonnet-4-5"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Routes to OpenAI, Anthropic, and Workers AI through Cloudflare AI Gateway. Workers AI uses the Unified API (`/compat`) and prefixed model IDs (`workers-ai/@cf/...`). OpenAI uses the OpenAI passthrough route (`/openai`) with native OpenAI model IDs such as `gpt-5.1`. Anthropic uses the Anthropic passthrough route (`/anthropic`) with native Anthropic model IDs such as `claude-sonnet-4-5`.
|
|
192
|
+
|
|
193
|
+
AI Gateway authentication uses `CLOUDFLARE_API_KEY` as `cf-aig-authorization`. Upstream authentication can be one of:
|
|
194
|
+
|
|
195
|
+
| Mode | Request auth | Upstream auth |
|
|
196
|
+
|------|--------------|---------------|
|
|
197
|
+
| Workers AI | Cloudflare token only | Cloudflare-native |
|
|
198
|
+
| Unified billing | Cloudflare token only | Cloudflare handles upstream auth and deducts credits |
|
|
199
|
+
| Stored BYOK | Cloudflare token only | Cloudflare injects provider keys stored in the AI Gateway dashboard |
|
|
200
|
+
| Inline BYOK | Cloudflare token plus upstream `Authorization` header | The request supplies the upstream provider key |
|
|
201
|
+
|
|
202
|
+
For normal Threadwell usage, prefer unified billing or stored BYOK. Inline BYOK requires configuring an additional upstream `Authorization` header for the Cloudflare AI Gateway provider, for example via a `models.json` provider/model override.
|
|
203
|
+
|
|
204
|
+
### Cloudflare Workers AI
|
|
205
|
+
|
|
206
|
+
`CLOUDFLARE_API_KEY` can be set via `/login`. `CLOUDFLARE_ACCOUNT_ID` must be set as an environment variable.
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
export CLOUDFLARE_API_KEY=... # or use /login
|
|
210
|
+
export CLOUDFLARE_ACCOUNT_ID=...
|
|
211
|
+
thread --provider cloudflare-workers-ai --model "@cf/moonshotai/kimi-k2.6"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Threadwell automatically sets `x-session-affinity` for [prefix caching](https://developers.cloudflare.com/workers-ai/features/prompt-caching/) discounts.
|
|
215
|
+
|
|
216
|
+
### Google Vertex AI
|
|
217
|
+
|
|
218
|
+
Uses Application Default Credentials:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
gcloud auth application-default login
|
|
222
|
+
export GOOGLE_CLOUD_PROJECT=your-project
|
|
223
|
+
export GOOGLE_CLOUD_LOCATION=us-central1
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Or set `GOOGLE_APPLICATION_CREDENTIALS` to a service account key file.
|
|
227
|
+
|
|
228
|
+
## Custom Providers
|
|
229
|
+
|
|
230
|
+
**Via models.json:** Add Ollama, LM Studio, vLLM, or any provider that speaks a supported API (OpenAI Completions, OpenAI Responses, Anthropic Messages, Google Generative AI). See [models.md](models.md).
|
|
231
|
+
|
|
232
|
+
**Via extensions:** For providers that need custom API implementations or OAuth flows, create an extension. See [custom-provider.md](custom-provider.md) and [examples/extensions/custom-provider-gitlab-duo](../examples/extensions/custom-provider-gitlab-duo/).
|
|
233
|
+
|
|
234
|
+
## Resolution Order
|
|
235
|
+
|
|
236
|
+
When resolving credentials for a provider:
|
|
237
|
+
|
|
238
|
+
1. CLI `--api-key` flag
|
|
239
|
+
2. `auth.json` entry (API key or OAuth token)
|
|
240
|
+
3. Environment variable
|
|
241
|
+
4. Custom provider keys from `models.json`
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Quickstart
|
|
2
|
+
|
|
3
|
+
This page gets you from install to a useful first Threadwell session.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Threadwell is distributed as an npm package:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g threadwell
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Then start Threadwell in the project directory you want it to work on:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
cd /path/to/project
|
|
17
|
+
thread
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Authenticate
|
|
21
|
+
|
|
22
|
+
Threadwell can use subscription providers through `/login`, or API-key providers through environment variables or the auth file.
|
|
23
|
+
|
|
24
|
+
### Option 1: subscription login
|
|
25
|
+
|
|
26
|
+
Start Threadwell and run:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
/login
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then select a provider. Built-in subscription logins include Claude Pro/Max, ChatGPT Plus/Pro (Codex), and GitHub Copilot.
|
|
33
|
+
|
|
34
|
+
### Option 2: API key
|
|
35
|
+
|
|
36
|
+
Set an API key before launching Threadwell:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
40
|
+
thread
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
You can also run `/login` and select an API-key provider to store the key in `~/.threadwell/agent/auth.json`.
|
|
44
|
+
|
|
45
|
+
See [Providers](providers.md) for all supported providers, environment variables, and cloud-provider setup.
|
|
46
|
+
|
|
47
|
+
## First session
|
|
48
|
+
|
|
49
|
+
Once Threadwell starts, type a request and press Enter:
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
Summarize this repository and tell me how to run its checks.
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
By default, Threadwell gives the model four tools:
|
|
56
|
+
|
|
57
|
+
- `read` - read files
|
|
58
|
+
- `write` - create or overwrite files
|
|
59
|
+
- `edit` - patch files
|
|
60
|
+
- `bash` - run shell commands
|
|
61
|
+
|
|
62
|
+
Additional built-in read-only tools (`grep`, `find`, `ls`) are available through tool options. Threadwell runs in your current working directory and can modify files there. Use git or another checkpointing workflow if you want easy rollback.
|
|
63
|
+
|
|
64
|
+
## Give Threadwell project instructions
|
|
65
|
+
|
|
66
|
+
Threadwell loads context files at startup. Add an `AGENTS.md` file to tell it how to work in a project:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
# Project Instructions
|
|
70
|
+
|
|
71
|
+
- Run `npm run check` after code changes.
|
|
72
|
+
- Do not run production migrations locally.
|
|
73
|
+
- Keep responses concise.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Threadwell loads:
|
|
77
|
+
|
|
78
|
+
- `~/.threadwell/agent/AGENTS.md` for global instructions
|
|
79
|
+
- `AGENTS.md` or `CLAUDE.md` from parent directories and the current directory
|
|
80
|
+
|
|
81
|
+
Restart Threadwell, or run `/reload`, after changing context files.
|
|
82
|
+
|
|
83
|
+
## Common things to try
|
|
84
|
+
|
|
85
|
+
### Reference files
|
|
86
|
+
|
|
87
|
+
Type `@` in the editor to fuzzy-search files, or pass files on the command line:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
thread @README.md "Summarize this"
|
|
91
|
+
thread @src/app.ts @src/app.test.ts "Review these together"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Images can be pasted with Ctrl+V (Alt+V on Windows) or dragged into supported terminals.
|
|
95
|
+
|
|
96
|
+
### Run shell commands
|
|
97
|
+
|
|
98
|
+
In interactive mode:
|
|
99
|
+
|
|
100
|
+
```text
|
|
101
|
+
!npm run lint
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The command output is sent to the model. Use `!!command` to run a command without adding its output to the model context.
|
|
105
|
+
|
|
106
|
+
### Switch models
|
|
107
|
+
|
|
108
|
+
Use `/model` or Ctrl+L to choose a model. Use Shift+Tab to cycle thinking level. Use Ctrl+P / Shift+Ctrl+P to cycle through scoped models.
|
|
109
|
+
|
|
110
|
+
### Continue later
|
|
111
|
+
|
|
112
|
+
Sessions are saved automatically:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
thread -c # Continue most recent session
|
|
116
|
+
thread -r # Browse previous sessions
|
|
117
|
+
thread --session <path|id> # Open a specific session
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Inside Threadwell, use `/resume`, `/new`, `/tree`, `/fork`, and `/clone` to manage sessions.
|
|
121
|
+
|
|
122
|
+
### Non-interactive mode
|
|
123
|
+
|
|
124
|
+
For one-shot prompts:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
thread -p "Summarize this codebase"
|
|
128
|
+
cat README.md | Threadwell -p "Summarize this text"
|
|
129
|
+
thread -p @screenshot.png "What's in this image?"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Use `--mode json` for JSON event output or `--mode rpc` for process integration.
|
|
133
|
+
|
|
134
|
+
## Next steps
|
|
135
|
+
|
|
136
|
+
- [Using Threadwell](usage.md) - interactive mode, slash commands, sessions, context files, and CLI reference.
|
|
137
|
+
- [Providers](providers.md) - authentication and model setup.
|
|
138
|
+
- [Settings](settings.md) - global and project configuration.
|
|
139
|
+
- [Keybindings](keybindings.md) - shortcuts and customization.
|
|
140
|
+
- [Threadwell Packages](packages.md) - install shared extensions, skills, prompts, and themes.
|
|
141
|
+
|
|
142
|
+
Platform notes: [Windows](windows.md), [Termux](termux.md), [tmux](tmux.md), [Terminal setup](terminal-setup.md), [Shell aliases](shell-aliases.md).
|