@leanandmean/coding-agent 0.74.1-scramjet.6
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 +4226 -0
- package/README.md +625 -0
- 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 +59 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +358 -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 +28 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +90 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +403 -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 +87 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +118 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +614 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +2559 -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/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 +225 -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 +499 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +172 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +927 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1213 -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 +52 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +310 -0
- package/dist/core/footer-data-provider.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/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 +151 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +729 -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 +495 -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 +199 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +1997 -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 +252 -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 +33 -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 +196 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +739 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/scramjet-command-parser.d.ts +8 -0
- package/dist/core/scramjet-command-parser.d.ts.map +1 -0
- package/dist/core/scramjet-command-parser.js +18 -0
- package/dist/core/scramjet-command-parser.js.map +1 -0
- package/dist/core/sdk.d.ts +114 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +316 -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 +1139 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +261 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +782 -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 +401 -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 +25 -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 +38 -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 +10 -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 +289 -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 +13 -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 +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +282 -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 +121 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +175 -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 +503 -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 +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -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 +26 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +83 -0
- package/dist/modes/interactive/components/extension-selector.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 +201 -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 +13 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +36 -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 +278 -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/scramjet-command-message.d.ts +12 -0
- package/dist/modes/interactive/components/scramjet-command-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/scramjet-command-message.js +49 -0
- package/dist/modes/interactive/components/scramjet-command-message.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 +67 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +375 -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/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 +63 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +295 -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 +1093 -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 +367 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +4527 -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 +973 -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/ansi.d.ts +2 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +52 -0
- package/dist/utils/ansi.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.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/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.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 +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +69 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/paths.d.ts +16 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +50 -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/syntax-highlight.d.ts +12 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +118 -0
- package/dist/utils/syntax-highlight.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 +329 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +9 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +45 -0
- package/dist/utils/version-check.js.map +1 -0
- package/docs/compaction.md +394 -0
- package/docs/custom-provider.md +705 -0
- package/docs/development.md +71 -0
- package/docs/docs.json +148 -0
- package/docs/extensions.md +2636 -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/models.md +474 -0
- package/docs/packages.md +223 -0
- package/docs/prompt-templates.md +88 -0
- package/docs/providers.md +243 -0
- package/docs/quickstart.md +142 -0
- package/docs/rpc.md +1407 -0
- package/docs/sdk.md +1163 -0
- package/docs/session-format.md +412 -0
- package/docs/sessions.md +137 -0
- package/docs/settings.md +279 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +231 -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 +279 -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 +150 -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 +606 -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 +174 -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 +986 -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 +26 -0
- package/examples/sdk/02-custom-model.ts +53 -0
- package/examples/sdk/03-custom-prompt.ts +70 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +94 -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 +52 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +77 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +147 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<h1 align="center">Scramjet</h1>
|
|
3
|
+
<p align="center">A minimal terminal coding harness</p>
|
|
4
|
+
</p>
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/LeanAndMean/scramjet"><img alt="GitHub" src="https://img.shields.io/badge/github-LeanAndMean%2Fscramjet-181717?style=flat-square&logo=github" /></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@leanandmean/scramjet"><img alt="npm" src="https://img.shields.io/npm/v/@leanandmean/scramjet?style=flat-square" /></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
> This is the `@leanandmean/coding-agent` runtime package. Most users should install [`@leanandmean/scramjet`](https://www.npmjs.com/package/@leanandmean/scramjet) instead.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
Scramjet is a minimal terminal coding harness. Adapt scramjet to your workflows, not the other way around, without having to fork and modify internals. Extend it with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Scramjet Packages](#scramjet-packages) and share them with others via npm or git.
|
|
15
|
+
|
|
16
|
+
Scramjet ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask scramjet to build what you want or install a third party package that matches your workflow.
|
|
17
|
+
|
|
18
|
+
Scramjet runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps.
|
|
19
|
+
|
|
20
|
+
## Table of Contents
|
|
21
|
+
|
|
22
|
+
- [Quick Start](#quick-start)
|
|
23
|
+
- [Providers & Models](#providers--models)
|
|
24
|
+
- [Interactive Mode](#interactive-mode)
|
|
25
|
+
- [Editor](#editor)
|
|
26
|
+
- [Commands](#commands)
|
|
27
|
+
- [Keyboard Shortcuts](#keyboard-shortcuts)
|
|
28
|
+
- [Message Queue](#message-queue)
|
|
29
|
+
- [Sessions](#sessions)
|
|
30
|
+
- [Branching](#branching)
|
|
31
|
+
- [Compaction](#compaction)
|
|
32
|
+
- [Settings](#settings)
|
|
33
|
+
- [Context Files](#context-files)
|
|
34
|
+
- [Customization](#customization)
|
|
35
|
+
- [Prompt Templates](#prompt-templates)
|
|
36
|
+
- [Skills](#skills)
|
|
37
|
+
- [Extensions](#extensions)
|
|
38
|
+
- [Themes](#themes)
|
|
39
|
+
- [Scramjet Packages](#scramjet-packages)
|
|
40
|
+
- [Programmatic Usage](#programmatic-usage)
|
|
41
|
+
- [Philosophy](#philosophy)
|
|
42
|
+
- [CLI Reference](#cli-reference)
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Quick Start
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm install -g @leanandmean/scramjet
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Authenticate with an API key:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
56
|
+
scramjet
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or use your existing subscription:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
scramjet
|
|
63
|
+
/login # Then select provider
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Then just talk to scramjet. By default, scramjet gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [scramjet packages](#scramjet-packages).
|
|
67
|
+
|
|
68
|
+
**Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Providers & Models
|
|
73
|
+
|
|
74
|
+
For each built-in provider, scramjet maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).
|
|
75
|
+
|
|
76
|
+
**Subscriptions:**
|
|
77
|
+
- Anthropic Claude Pro/Max
|
|
78
|
+
- OpenAI ChatGPT Plus/Pro (Codex)
|
|
79
|
+
- GitHub Copilot
|
|
80
|
+
|
|
81
|
+
**API keys:**
|
|
82
|
+
- Anthropic
|
|
83
|
+
- OpenAI
|
|
84
|
+
- Azure OpenAI
|
|
85
|
+
- DeepSeek
|
|
86
|
+
- Google Gemini
|
|
87
|
+
- Google Vertex
|
|
88
|
+
- Amazon Bedrock
|
|
89
|
+
- Mistral
|
|
90
|
+
- Groq
|
|
91
|
+
- Cerebras
|
|
92
|
+
- Cloudflare AI Gateway
|
|
93
|
+
- Cloudflare Workers AI
|
|
94
|
+
- xAI
|
|
95
|
+
- OpenRouter
|
|
96
|
+
- Vercel AI Gateway
|
|
97
|
+
- ZAI
|
|
98
|
+
- OpenCode Zen
|
|
99
|
+
- OpenCode Go
|
|
100
|
+
- Hugging Face
|
|
101
|
+
- Fireworks
|
|
102
|
+
- Together AI
|
|
103
|
+
- Kimi For Coding
|
|
104
|
+
- MiniMax
|
|
105
|
+
- Xiaomi MiMo
|
|
106
|
+
- Xiaomi MiMo Token Plan (China)
|
|
107
|
+
- Xiaomi MiMo Token Plan (Amsterdam)
|
|
108
|
+
- Xiaomi MiMo Token Plan (Singapore)
|
|
109
|
+
|
|
110
|
+
See [docs/providers.md](docs/providers.md) for detailed setup instructions.
|
|
111
|
+
|
|
112
|
+
**Custom providers & models:** Add providers via `~/.scramjet/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Interactive Mode
|
|
117
|
+
|
|
118
|
+
<p align="center"><img src="docs/images/interactive-mode.png" alt="Interactive Mode" width="600"></p>
|
|
119
|
+
|
|
120
|
+
The interface from top to bottom:
|
|
121
|
+
|
|
122
|
+
- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions
|
|
123
|
+
- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
|
|
124
|
+
- **Editor** - Where you type; border color indicates thinking level
|
|
125
|
+
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model
|
|
126
|
+
|
|
127
|
+
The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
|
|
128
|
+
|
|
129
|
+
### Editor
|
|
130
|
+
|
|
131
|
+
| Feature | How |
|
|
132
|
+
|---------|-----|
|
|
133
|
+
| File reference | Type `@` to fuzzy-search project files |
|
|
134
|
+
| Path completion | Tab to complete paths |
|
|
135
|
+
| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |
|
|
136
|
+
| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |
|
|
137
|
+
| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |
|
|
138
|
+
|
|
139
|
+
Standard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).
|
|
140
|
+
|
|
141
|
+
### Commands
|
|
142
|
+
|
|
143
|
+
Type `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.
|
|
144
|
+
|
|
145
|
+
| Command | Description |
|
|
146
|
+
|---------|-------------|
|
|
147
|
+
| `/login`, `/logout` | OAuth authentication |
|
|
148
|
+
| `/model` | Switch models |
|
|
149
|
+
| `/scoped-models` | Enable/disable models for Ctrl+P cycling |
|
|
150
|
+
| `/settings` | Thinking level, theme, message delivery, transport |
|
|
151
|
+
| `/resume` | Pick from previous sessions |
|
|
152
|
+
| `/new` | Start a new session |
|
|
153
|
+
| `/name <name>` | Set session display name |
|
|
154
|
+
| `/session` | Show session info (file, ID, messages, tokens, cost) |
|
|
155
|
+
| `/tree` | Jump to any point in the session and continue from there |
|
|
156
|
+
| `/fork` | Create a new session from a previous user message |
|
|
157
|
+
| `/clone` | Duplicate the current active branch into a new session |
|
|
158
|
+
| `/compact [prompt]` | Manually compact context, optional custom instructions |
|
|
159
|
+
| `/copy` | Copy last assistant message to clipboard |
|
|
160
|
+
| `/export [file]` | Export session to HTML file |
|
|
161
|
+
| `/share` | Upload as private GitHub gist with shareable HTML link |
|
|
162
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |
|
|
163
|
+
| `/hotkeys` | Show all keyboard shortcuts |
|
|
164
|
+
| `/changelog` | Display version history |
|
|
165
|
+
| `/quit` | Quit scramjet |
|
|
166
|
+
|
|
167
|
+
### Keyboard Shortcuts
|
|
168
|
+
|
|
169
|
+
See `/hotkeys` for the full list. Customize via `~/.scramjet/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).
|
|
170
|
+
|
|
171
|
+
**Commonly used:**
|
|
172
|
+
|
|
173
|
+
| Key | Action |
|
|
174
|
+
|-----|--------|
|
|
175
|
+
| Ctrl+C | Clear editor |
|
|
176
|
+
| Ctrl+C twice | Quit |
|
|
177
|
+
| Escape | Cancel/abort |
|
|
178
|
+
| Escape twice | Open `/tree` |
|
|
179
|
+
| Ctrl+L | Open model selector |
|
|
180
|
+
| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |
|
|
181
|
+
| Shift+Tab | Cycle thinking level |
|
|
182
|
+
| Ctrl+O | Collapse/expand tool output |
|
|
183
|
+
| Ctrl+T | Collapse/expand thinking blocks |
|
|
184
|
+
|
|
185
|
+
### Message Queue
|
|
186
|
+
|
|
187
|
+
Submit messages while the agent is working:
|
|
188
|
+
|
|
189
|
+
- **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls
|
|
190
|
+
- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work
|
|
191
|
+
- **Escape** aborts and restores queued messages to editor
|
|
192
|
+
- **Alt+Up** retrieves queued messages back to editor
|
|
193
|
+
|
|
194
|
+
On Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so scramjet can receive the follow-up shortcut.
|
|
195
|
+
|
|
196
|
+
Configure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `"one-at-a-time"` (default, waits for response) or `"all"` (delivers all queued at once). `transport` selects provider transport preference (`"sse"`, `"websocket"`, or `"auto"`) for providers that support multiple transports.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Sessions
|
|
201
|
+
|
|
202
|
+
Sessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session-format.md](docs/session-format.md) for file format.
|
|
203
|
+
|
|
204
|
+
### Management
|
|
205
|
+
|
|
206
|
+
Sessions auto-save to `~/.scramjet/agent/sessions/` organized by working directory.
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
scramjet -c # Continue most recent session
|
|
210
|
+
scramjet -r # Browse and select from past sessions
|
|
211
|
+
scramjet --no-session # Ephemeral mode (don't save)
|
|
212
|
+
scramjet --session <path|id> # Use specific session file or ID
|
|
213
|
+
scramjet --fork <path|id> # Fork specific session file or ID into a new session
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Use `/session` in interactive mode to see the current session ID before reusing it with `--session <id>` or `--fork <id>`.
|
|
217
|
+
|
|
218
|
+
### Branching
|
|
219
|
+
|
|
220
|
+
**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.
|
|
221
|
+
|
|
222
|
+
<p align="center"><img src="docs/images/tree-view.png" alt="Tree View" width="600"></p>
|
|
223
|
+
|
|
224
|
+
- Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→
|
|
225
|
+
- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
|
|
226
|
+
- Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps
|
|
227
|
+
|
|
228
|
+
**`/fork`** - Create a new session file from a previous user message on the active branch. Opens a selector, copies the active path up to that point, and places the selected prompt in the editor for modification.
|
|
229
|
+
|
|
230
|
+
**`/clone`** - Duplicate the current active branch into a new session file at the current position. The new session keeps the full active-path history and opens with an empty editor.
|
|
231
|
+
|
|
232
|
+
**`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.
|
|
233
|
+
|
|
234
|
+
### Compaction
|
|
235
|
+
|
|
236
|
+
Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.
|
|
237
|
+
|
|
238
|
+
**Manual:** `/compact` or `/compact <custom instructions>`
|
|
239
|
+
|
|
240
|
+
**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.
|
|
241
|
+
|
|
242
|
+
Compaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Settings
|
|
247
|
+
|
|
248
|
+
Use `/settings` to modify common options, or edit JSON files directly:
|
|
249
|
+
|
|
250
|
+
| Location | Scope |
|
|
251
|
+
|----------|-------|
|
|
252
|
+
| `~/.scramjet/agent/settings.json` | Global (all projects) |
|
|
253
|
+
| `.scramjet/settings.json` | Project (overrides global) |
|
|
254
|
+
|
|
255
|
+
See [docs/settings.md](docs/settings.md) for all options.
|
|
256
|
+
|
|
257
|
+
### Telemetry and update checks
|
|
258
|
+
|
|
259
|
+
The runtime inherits two startup features from the upstream Pi codebase:
|
|
260
|
+
|
|
261
|
+
- **Update check:** disabled by the Scramjet binary (`PI_SKIP_VERSION_CHECK=1` is set automatically). The upstream check against `pi.dev` never runs.
|
|
262
|
+
- **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping to `https://pi.dev/api/report-install`. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `PI_TELEMETRY=0`.
|
|
263
|
+
|
|
264
|
+
Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations, including package update checks and install/update telemetry.
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Context Files
|
|
269
|
+
|
|
270
|
+
Scramjet loads `AGENTS.md` (or `CLAUDE.md`) at startup from:
|
|
271
|
+
- `~/.scramjet/agent/AGENTS.md` (global)
|
|
272
|
+
- Parent directories (walking up from cwd)
|
|
273
|
+
- Current directory
|
|
274
|
+
|
|
275
|
+
Use for project instructions, conventions, common commands. All matching files are concatenated.
|
|
276
|
+
|
|
277
|
+
Disable context file loading with `--no-context-files` (or `-nc`).
|
|
278
|
+
|
|
279
|
+
### System Prompt
|
|
280
|
+
|
|
281
|
+
Replace the default system prompt with `.scramjet/SYSTEM.md` (project) or `~/.scramjet/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Customization
|
|
286
|
+
|
|
287
|
+
### Prompt Templates
|
|
288
|
+
|
|
289
|
+
Reusable prompts as Markdown files. Type `/name` to expand.
|
|
290
|
+
|
|
291
|
+
```markdown
|
|
292
|
+
<!-- ~/.scramjet/agent/prompts/review.md -->
|
|
293
|
+
Review this code for bugs, security issues, and performance problems.
|
|
294
|
+
Focus on: {{focus}}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Place in `~/.scramjet/agent/prompts/`, `.scramjet/prompts/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).
|
|
298
|
+
|
|
299
|
+
### Skills
|
|
300
|
+
|
|
301
|
+
On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.
|
|
302
|
+
|
|
303
|
+
```markdown
|
|
304
|
+
<!-- ~/.scramjet/agent/skills/my-skill/SKILL.md -->
|
|
305
|
+
# My Skill
|
|
306
|
+
Use this skill when the user asks about X.
|
|
307
|
+
|
|
308
|
+
## Steps
|
|
309
|
+
1. Do this
|
|
310
|
+
2. Then that
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Place in `~/.scramjet/agent/skills/`, `~/.agents/skills/`, `.scramjet/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [scramjet package](#scramjet-packages) to share with others. See [docs/skills.md](docs/skills.md).
|
|
314
|
+
|
|
315
|
+
### Extensions
|
|
316
|
+
|
|
317
|
+
<p align="center"><img src="docs/images/doom-extension.png" alt="Doom Extension" width="600"></p>
|
|
318
|
+
|
|
319
|
+
TypeScript modules that extend scramjet with custom tools, commands, keyboard shortcuts, event handlers, and UI components.
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
export default function (pi: ExtensionAPI) {
|
|
323
|
+
pi.registerTool({ name: "deploy", ... });
|
|
324
|
+
pi.registerCommand("stats", { ... });
|
|
325
|
+
pi.on("tool_call", async (event, ctx) => { ... });
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
The default export can also be `async`. Scramjet waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling `pi.registerProvider()`.
|
|
330
|
+
|
|
331
|
+
**What's possible:**
|
|
332
|
+
- Custom tools (or replace built-in tools entirely)
|
|
333
|
+
- Sub-agents and plan mode
|
|
334
|
+
- Custom compaction and summarization
|
|
335
|
+
- Permission gates and path protection
|
|
336
|
+
- Custom editors and UI components
|
|
337
|
+
- Status lines, headers, footers
|
|
338
|
+
- Git checkpointing and auto-commit
|
|
339
|
+
- SSH and sandbox execution
|
|
340
|
+
- MCP server integration
|
|
341
|
+
- Games while waiting (yes, Doom runs)
|
|
342
|
+
- ...anything you can dream up
|
|
343
|
+
|
|
344
|
+
Place in `~/.scramjet/agent/extensions/`, `.scramjet/extensions/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
|
|
345
|
+
|
|
346
|
+
### Themes
|
|
347
|
+
|
|
348
|
+
Built-in: `dark`, `light`. Themes hot-reload: modify the active theme file and scramjet immediately applies changes.
|
|
349
|
+
|
|
350
|
+
Place in `~/.scramjet/agent/themes/`, `.scramjet/themes/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/themes.md](docs/themes.md).
|
|
351
|
+
|
|
352
|
+
### Scramjet Packages
|
|
353
|
+
|
|
354
|
+
Bundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Api-package).
|
|
355
|
+
|
|
356
|
+
> **Security:** Scramjet packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
scramjet install npm:@foo/pi-tools
|
|
360
|
+
scramjet install npm:@foo/pi-tools@1.2.3 # pinned version
|
|
361
|
+
scramjet install git:github.com/user/repo
|
|
362
|
+
scramjet install git:github.com/user/repo@v1 # tag or commit
|
|
363
|
+
scramjet install git:git@github.com:user/repo
|
|
364
|
+
scramjet install git:git@github.com:user/repo@v1 # tag or commit
|
|
365
|
+
scramjet install https://github.com/user/repo
|
|
366
|
+
scramjet install https://github.com/user/repo@v1 # tag or commit
|
|
367
|
+
scramjet install ssh://git@github.com/user/repo
|
|
368
|
+
scramjet install ssh://git@github.com/user/repo@v1 # tag or commit
|
|
369
|
+
scramjet remove npm:@foo/pi-tools
|
|
370
|
+
scramjet uninstall npm:@foo/pi-tools # alias for remove
|
|
371
|
+
scramjet list
|
|
372
|
+
scramjet update # update the CLI and packages (skips pinned packages)
|
|
373
|
+
scramjet update --extensions # update packages only
|
|
374
|
+
scramjet update --self # update the CLI only
|
|
375
|
+
scramjet update --self --force # reinstall the CLI even if current
|
|
376
|
+
scramjet update npm:@foo/pi-tools # update one package
|
|
377
|
+
scramjet config # enable/disable extensions, skills, prompts, themes
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
Packages install to `~/.scramjet/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.scramjet/git/`, `.scramjet/npm/`). Git packages install dependencies with `npm install --omit=dev` by default, so runtime deps must be listed under `dependencies`; when `npmCommand` is configured, git packages use plain `install` for compatibility with wrappers. If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `["mise", "exec", "node@20", "--", "npm"]`.
|
|
381
|
+
|
|
382
|
+
Create a package by adding a `pi` key to `package.json`:
|
|
383
|
+
|
|
384
|
+
```json
|
|
385
|
+
{
|
|
386
|
+
"name": "my-scramjet-package",
|
|
387
|
+
"keywords": ["pi-package"],
|
|
388
|
+
"pi": {
|
|
389
|
+
"extensions": ["./extensions"],
|
|
390
|
+
"skills": ["./skills"],
|
|
391
|
+
"prompts": ["./prompts"],
|
|
392
|
+
"themes": ["./themes"]
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
Without a `pi` manifest, scramjet auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).
|
|
398
|
+
|
|
399
|
+
See [docs/packages.md](docs/packages.md).
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## Programmatic Usage
|
|
404
|
+
|
|
405
|
+
### SDK
|
|
406
|
+
|
|
407
|
+
```typescript
|
|
408
|
+
import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "@leanandmean/coding-agent";
|
|
409
|
+
|
|
410
|
+
const authStorage = AuthStorage.create();
|
|
411
|
+
const modelRegistry = ModelRegistry.create(authStorage);
|
|
412
|
+
const { session } = await createAgentSession({
|
|
413
|
+
sessionManager: SessionManager.inMemory(),
|
|
414
|
+
authStorage,
|
|
415
|
+
modelRegistry,
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
await session.prompt("What files are in the current directory?");
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
For advanced multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`.
|
|
422
|
+
|
|
423
|
+
See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
|
|
424
|
+
|
|
425
|
+
### RPC Mode
|
|
426
|
+
|
|
427
|
+
For non-Node.js integrations, use RPC mode over stdin/stdout:
|
|
428
|
+
|
|
429
|
+
```bash
|
|
430
|
+
scramjet --mode rpc
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
RPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.
|
|
434
|
+
|
|
435
|
+
See [docs/rpc.md](docs/rpc.md) for the protocol.
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Philosophy
|
|
440
|
+
|
|
441
|
+
Scramjet is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [scramjet packages](#scramjet-packages). This keeps the core minimal while letting you shape scramjet to fit how you work.
|
|
442
|
+
|
|
443
|
+
**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)
|
|
444
|
+
|
|
445
|
+
**No sub-agents.** There's many ways to do this. Spawn scramjet instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.
|
|
446
|
+
|
|
447
|
+
**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.
|
|
448
|
+
|
|
449
|
+
**No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.
|
|
450
|
+
|
|
451
|
+
**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).
|
|
452
|
+
|
|
453
|
+
**No background bash.** Use tmux. Full observability, direct interaction.
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
## CLI Reference
|
|
458
|
+
|
|
459
|
+
```bash
|
|
460
|
+
scramjet [options] [@files...] [messages...]
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
### Package Commands
|
|
464
|
+
|
|
465
|
+
```bash
|
|
466
|
+
scramjet install <source> [-l] # Install package, -l for project-local
|
|
467
|
+
scramjet remove <source> [-l] # Remove package
|
|
468
|
+
scramjet uninstall <source> [-l] # Alias for remove
|
|
469
|
+
scramjet update [source|self] # Update the CLI and packages (skips pinned packages)
|
|
470
|
+
scramjet update --extensions # Update packages only
|
|
471
|
+
scramjet update --self # Update the CLI only
|
|
472
|
+
scramjet update --self --force # Reinstall the CLI even if current
|
|
473
|
+
scramjet update --extension <src> # Update one package
|
|
474
|
+
scramjet list # List installed packages
|
|
475
|
+
scramjet config # Enable/disable package resources
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
### Modes
|
|
479
|
+
|
|
480
|
+
| Flag | Description |
|
|
481
|
+
|------|-------------|
|
|
482
|
+
| (default) | Interactive mode |
|
|
483
|
+
| `-p`, `--print` | Print response and exit |
|
|
484
|
+
| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |
|
|
485
|
+
| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
|
|
486
|
+
| `--export <in> [out]` | Export session to HTML |
|
|
487
|
+
|
|
488
|
+
In print mode, scramjet also reads piped stdin and merges it into the initial prompt:
|
|
489
|
+
|
|
490
|
+
```bash
|
|
491
|
+
cat README.md | scramjet -p "Summarize this text"
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### Model Options
|
|
495
|
+
|
|
496
|
+
| Option | Description |
|
|
497
|
+
|--------|-------------|
|
|
498
|
+
| `--provider <name>` | Provider (anthropic, openai, google, etc.) |
|
|
499
|
+
| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
|
|
500
|
+
| `--api-key <key>` | API key (overrides env vars) |
|
|
501
|
+
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
502
|
+
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
|
|
503
|
+
| `--list-models [search]` | List available models |
|
|
504
|
+
|
|
505
|
+
### Session Options
|
|
506
|
+
|
|
507
|
+
| Option | Description |
|
|
508
|
+
|--------|-------------|
|
|
509
|
+
| `-c`, `--continue` | Continue most recent session |
|
|
510
|
+
| `-r`, `--resume` | Browse and select session |
|
|
511
|
+
| `--session <path\|id>` | Use specific session file or partial UUID |
|
|
512
|
+
| `--fork <path\|id>` | Fork specific session file or partial UUID into a new session |
|
|
513
|
+
| `--session-dir <dir>` | Custom session storage directory |
|
|
514
|
+
| `--no-session` | Ephemeral mode (don't save) |
|
|
515
|
+
|
|
516
|
+
### Tool Options
|
|
517
|
+
|
|
518
|
+
| Option | Description |
|
|
519
|
+
|--------|-------------|
|
|
520
|
+
| `--tools <list>`, `-t <list>` | Allowlist specific tool names across built-in, extension, and custom tools |
|
|
521
|
+
| `--no-builtin-tools`, `-nbt` | Disable built-in tools by default but keep extension/custom tools enabled |
|
|
522
|
+
| `--no-tools`, `-nt` | Disable all tools by default |
|
|
523
|
+
|
|
524
|
+
Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`
|
|
525
|
+
|
|
526
|
+
### Resource Options
|
|
527
|
+
|
|
528
|
+
| Option | Description |
|
|
529
|
+
|--------|-------------|
|
|
530
|
+
| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
|
|
531
|
+
| `--no-extensions` | Disable extension discovery |
|
|
532
|
+
| `--skill <path>` | Load skill (repeatable) |
|
|
533
|
+
| `--no-skills` | Disable skill discovery |
|
|
534
|
+
| `--prompt-template <path>` | Load prompt template (repeatable) |
|
|
535
|
+
| `--no-prompt-templates` | Disable prompt template discovery |
|
|
536
|
+
| `--theme <path>` | Load theme (repeatable) |
|
|
537
|
+
| `--no-themes` | Disable theme discovery |
|
|
538
|
+
| `--no-context-files`, `-nc` | Disable AGENTS.md and CLAUDE.md context file discovery |
|
|
539
|
+
|
|
540
|
+
Combine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).
|
|
541
|
+
|
|
542
|
+
### Other Options
|
|
543
|
+
|
|
544
|
+
| Option | Description |
|
|
545
|
+
|--------|-------------|
|
|
546
|
+
| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |
|
|
547
|
+
| `--append-system-prompt <text>` | Append to system prompt |
|
|
548
|
+
| `--verbose` | Force verbose startup |
|
|
549
|
+
| `-h`, `--help` | Show help |
|
|
550
|
+
| `-v`, `--version` | Show version |
|
|
551
|
+
|
|
552
|
+
### File Arguments
|
|
553
|
+
|
|
554
|
+
Prefix files with `@` to include in the message:
|
|
555
|
+
|
|
556
|
+
```bash
|
|
557
|
+
scramjet @prompt.md "Answer this"
|
|
558
|
+
scramjet -p @screenshot.png "What's in this image?"
|
|
559
|
+
scramjet @code.ts @test.ts "Review these files"
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
### Examples
|
|
563
|
+
|
|
564
|
+
```bash
|
|
565
|
+
# Interactive with initial prompt
|
|
566
|
+
scramjet "List all .ts files in src/"
|
|
567
|
+
|
|
568
|
+
# Non-interactive
|
|
569
|
+
scramjet -p "Summarize this codebase"
|
|
570
|
+
|
|
571
|
+
# Non-interactive with piped stdin
|
|
572
|
+
cat README.md | scramjet -p "Summarize this text"
|
|
573
|
+
|
|
574
|
+
# Different model
|
|
575
|
+
scramjet --provider openai --model gpt-4o "Help me refactor"
|
|
576
|
+
|
|
577
|
+
# Model with provider prefix (no --provider needed)
|
|
578
|
+
scramjet --model openai/gpt-4o "Help me refactor"
|
|
579
|
+
|
|
580
|
+
# Model with thinking level shorthand
|
|
581
|
+
scramjet --model sonnet:high "Solve this complex problem"
|
|
582
|
+
|
|
583
|
+
# Limit model cycling
|
|
584
|
+
scramjet --models "claude-*,gpt-4o"
|
|
585
|
+
|
|
586
|
+
# Read-only mode
|
|
587
|
+
scramjet --tools read,grep,find,ls -p "Review the code"
|
|
588
|
+
|
|
589
|
+
# High thinking level
|
|
590
|
+
scramjet --thinking high "Solve this complex problem"
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
### Environment Variables
|
|
594
|
+
|
|
595
|
+
| Variable | Description |
|
|
596
|
+
|----------|-------------|
|
|
597
|
+
| `SCRAMJET_CODING_AGENT_DIR` | Override config directory (default: `~/.scramjet/agent`). Legacy `PI_CODING_AGENT_DIR` is also accepted |
|
|
598
|
+
| `SCRAMJET_CODING_AGENT_SESSION_DIR` | Override session storage directory (overridden by `--session-dir`). Legacy `PI_CODING_AGENT_SESSION_DIR` is also accepted |
|
|
599
|
+
| `PI_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |
|
|
600
|
+
| `PI_OFFLINE` | Disable startup network operations, including package update checks and install/update telemetry |
|
|
601
|
+
| `PI_TELEMETRY` | Override install/update telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable |
|
|
602
|
+
| `PI_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |
|
|
603
|
+
| `VISUAL`, `EDITOR` | External editor for Ctrl+G |
|
|
604
|
+
|
|
605
|
+
The `PI_*` variable names are inherited from the upstream runtime. `SCRAMJET_CODING_AGENT_DIR` and `SCRAMJET_CODING_AGENT_SESSION_DIR` are the canonical names; the Scramjet binary bridges legacy `PI_CODING_AGENT_DIR` / `PI_CODING_AGENT_SESSION_DIR` for backward compatibility.
|
|
606
|
+
|
|
607
|
+
The upstream `PI_SKIP_VERSION_CHECK` is set automatically by the Scramjet binary — the pi.dev version check never runs.
|
|
608
|
+
|
|
609
|
+
---
|
|
610
|
+
|
|
611
|
+
## Contributing & Development
|
|
612
|
+
|
|
613
|
+
See [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.
|
|
614
|
+
|
|
615
|
+
---
|
|
616
|
+
|
|
617
|
+
## License
|
|
618
|
+
|
|
619
|
+
MIT
|
|
620
|
+
|
|
621
|
+
## See Also
|
|
622
|
+
|
|
623
|
+
- [@leanandmean/ai](https://www.npmjs.com/package/@leanandmean/ai): Core LLM toolkit
|
|
624
|
+
- [@leanandmean/agent](https://www.npmjs.com/package/@leanandmean/agent): Agent framework
|
|
625
|
+
- [@leanandmean/tui](https://www.npmjs.com/package/@leanandmean/tui): Terminal UI components
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bun/cli.ts"],"names":[],"mappings":"","sourcesContent":["#!/usr/bin/env node\nimport { APP_NAME } from \"../config.js\";\n\nprocess.title = APP_NAME;\nprocess.emitWarning = (() => {}) as typeof process.emitWarning;\n\nimport { restoreSandboxEnv } from \"./restore-sandbox-env.js\";\n\nrestoreSandboxEnv();\n\nawait import(\"./register-bedrock.js\");\nawait import(\"../cli.js\");\n"]}
|
package/dist/bun/cli.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { APP_NAME } from "../config.js";
|
|
3
|
+
process.title = APP_NAME;
|
|
4
|
+
process.emitWarning = (() => { });
|
|
5
|
+
import { restoreSandboxEnv } from "./restore-sandbox-env.js";
|
|
6
|
+
restoreSandboxEnv();
|
|
7
|
+
await import("./register-bedrock.js");
|
|
8
|
+
await import("../cli.js");
|
|
9
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bun/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC;AACzB,OAAO,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAA+B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,EAAE,CAAC;AAEpB,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;AACtC,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { APP_NAME } from \"../config.js\";\n\nprocess.title = APP_NAME;\nprocess.emitWarning = (() => {}) as typeof process.emitWarning;\n\nimport { restoreSandboxEnv } from \"./restore-sandbox-env.js\";\n\nrestoreSandboxEnv();\n\nawait import(\"./register-bedrock.js\");\nawait import(\"../cli.js\");\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-bedrock.d.ts","sourceRoot":"","sources":["../../src/bun/register-bedrock.ts"],"names":[],"mappings":"","sourcesContent":["import { setBedrockProviderModule } from \"@leanandmean/ai\";\nimport { bedrockProviderModule } from \"@leanandmean/ai/bedrock-provider\";\n\nsetBedrockProviderModule(bedrockProviderModule);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-bedrock.js","sourceRoot":"","sources":["../../src/bun/register-bedrock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,wBAAwB,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["import { setBedrockProviderModule } from \"@leanandmean/ai\";\nimport { bedrockProviderModule } from \"@leanandmean/ai/bedrock-provider\";\n\nsetBedrockProviderModule(bedrockProviderModule);\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workaround for https://github.com/oven-sh/bun/issues/27802
|
|
3
|
+
*
|
|
4
|
+
* Bun compiled binaries have an empty `process.env` when running inside
|
|
5
|
+
* sandbox environments (e.g. nono on Linux/macOS). On Linux we can recover
|
|
6
|
+
* the environment from `/proc/self/environ`.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Restore environment variables from `/proc/self/environ` when running
|
|
10
|
+
* inside a sandbox where Bun's `process.env` is empty.
|
|
11
|
+
*/
|
|
12
|
+
export declare function restoreSandboxEnv(): void;
|
|
13
|
+
//# sourceMappingURL=restore-sandbox-env.d.ts.map
|