strands-darwin 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -0
- package/README.zh-CN.md +140 -0
- package/dist/patches/@strands-agents+sdk+1.16.0.patch +1443 -0
- package/dist/src/agent/background-delegation.d.ts +67 -0
- package/dist/src/agent/background-delegation.js +159 -0
- package/dist/src/agent/background-delegation.js.map +1 -0
- package/dist/src/agent/call-stats.d.ts +118 -0
- package/dist/src/agent/call-stats.js +128 -0
- package/dist/src/agent/call-stats.js.map +1 -0
- package/dist/src/agent/compact.d.ts +108 -0
- package/dist/src/agent/compact.js +192 -0
- package/dist/src/agent/compact.js.map +1 -0
- package/dist/src/agent/context-anchor.d.ts +64 -0
- package/dist/src/agent/context-anchor.js +43 -0
- package/dist/src/agent/context-anchor.js.map +1 -0
- package/dist/src/agent/cost.d.ts +56 -0
- package/dist/src/agent/cost.js +44 -0
- package/dist/src/agent/cost.js.map +1 -0
- package/dist/src/agent/diagnostics.d.ts +212 -0
- package/dist/src/agent/diagnostics.js +374 -0
- package/dist/src/agent/diagnostics.js.map +1 -0
- package/dist/src/agent/instructions.d.ts +54 -0
- package/dist/src/agent/instructions.js +118 -0
- package/dist/src/agent/instructions.js.map +1 -0
- package/dist/src/agent/max-tokens-recovery.d.ts +17 -0
- package/dist/src/agent/max-tokens-recovery.js +65 -0
- package/dist/src/agent/max-tokens-recovery.js.map +1 -0
- package/dist/src/agent/model-call-budget.d.ts +8 -0
- package/dist/src/agent/model-call-budget.js +24 -0
- package/dist/src/agent/model-call-budget.js.map +1 -0
- package/dist/src/agent/model-retry.d.ts +134 -0
- package/dist/src/agent/model-retry.js +256 -0
- package/dist/src/agent/model-retry.js.map +1 -0
- package/dist/src/agent/permission-rules.d.ts +47 -0
- package/dist/src/agent/permission-rules.js +260 -0
- package/dist/src/agent/permission-rules.js.map +1 -0
- package/dist/src/agent/permission.d.ts +361 -0
- package/dist/src/agent/permission.js +797 -0
- package/dist/src/agent/permission.js.map +1 -0
- package/dist/src/agent/prompt-cache.d.ts +66 -0
- package/dist/src/agent/prompt-cache.js +194 -0
- package/dist/src/agent/prompt-cache.js.map +1 -0
- package/dist/src/agent/refusal.d.ts +20 -0
- package/dist/src/agent/refusal.js +23 -0
- package/dist/src/agent/refusal.js.map +1 -0
- package/dist/src/agent/retry-guard.d.ts +26 -0
- package/dist/src/agent/retry-guard.js +193 -0
- package/dist/src/agent/retry-guard.js.map +1 -0
- package/dist/src/agent/rewind.d.ts +29 -0
- package/dist/src/agent/rewind.js +118 -0
- package/dist/src/agent/rewind.js.map +1 -0
- package/dist/src/agent/runtime.d.ts +814 -0
- package/dist/src/agent/runtime.js +1596 -0
- package/dist/src/agent/runtime.js.map +1 -0
- package/dist/src/agent/safety-classifier.d.ts +11 -0
- package/dist/src/agent/safety-classifier.js +0 -0
- package/dist/src/agent/safety-classifier.js.map +1 -0
- package/dist/src/agent/sdk-logging.d.ts +49 -0
- package/dist/src/agent/sdk-logging.js +110 -0
- package/dist/src/agent/sdk-logging.js.map +1 -0
- package/dist/src/agent/session.d.ts +102 -0
- package/dist/src/agent/session.js +244 -0
- package/dist/src/agent/session.js.map +1 -0
- package/dist/src/agent/stream-resumption.d.ts +16 -0
- package/dist/src/agent/stream-resumption.js +33 -0
- package/dist/src/agent/stream-resumption.js.map +1 -0
- package/dist/src/agent/system-prompt.d.ts +50 -0
- package/dist/src/agent/system-prompt.js +161 -0
- package/dist/src/agent/system-prompt.js.map +1 -0
- package/dist/src/agent/thinking.d.ts +99 -0
- package/dist/src/agent/thinking.js +145 -0
- package/dist/src/agent/thinking.js.map +1 -0
- package/dist/src/agent/usage.d.ts +132 -0
- package/dist/src/agent/usage.js +233 -0
- package/dist/src/agent/usage.js.map +1 -0
- package/dist/src/agent/working-context.d.ts +51 -0
- package/dist/src/agent/working-context.js +160 -0
- package/dist/src/agent/working-context.js.map +1 -0
- package/dist/src/agents/child-recipe.d.ts +33 -0
- package/dist/src/agents/child-recipe.js +98 -0
- package/dist/src/agents/child-recipe.js.map +1 -0
- package/dist/src/agents/concurrency-limit.d.ts +25 -0
- package/dist/src/agents/concurrency-limit.js +43 -0
- package/dist/src/agents/concurrency-limit.js.map +1 -0
- package/dist/src/agents/dispatch-registry.d.ts +180 -0
- package/dist/src/agents/dispatch-registry.js +289 -0
- package/dist/src/agents/dispatch-registry.js.map +1 -0
- package/dist/src/agents/failed-child-text.d.ts +44 -0
- package/dist/src/agents/failed-child-text.js +69 -0
- package/dist/src/agents/failed-child-text.js.map +1 -0
- package/dist/src/agents/loader.d.ts +26 -0
- package/dist/src/agents/loader.js +134 -0
- package/dist/src/agents/loader.js.map +1 -0
- package/dist/src/agents/report-projection.d.ts +31 -0
- package/dist/src/agents/report-projection.js +125 -0
- package/dist/src/agents/report-projection.js.map +1 -0
- package/dist/src/agents/subagent-tool.d.ts +61 -0
- package/dist/src/agents/subagent-tool.js +180 -0
- package/dist/src/agents/subagent-tool.js.map +1 -0
- package/dist/src/agents/workflow-tool.d.ts +85 -0
- package/dist/src/agents/workflow-tool.js +530 -0
- package/dist/src/agents/workflow-tool.js.map +1 -0
- package/dist/src/cli-args.d.ts +39 -0
- package/dist/src/cli-args.js +198 -0
- package/dist/src/cli-args.js.map +1 -0
- package/dist/src/cli-doctor.d.ts +26 -0
- package/dist/src/cli-doctor.js +398 -0
- package/dist/src/cli-doctor.js.map +1 -0
- package/dist/src/cli-main.d.ts +1 -0
- package/dist/src/cli-main.js +279 -0
- package/dist/src/cli-main.js.map +1 -0
- package/dist/src/cli-sessions.d.ts +17 -0
- package/dist/src/cli-sessions.js +136 -0
- package/dist/src/cli-sessions.js.map +1 -0
- package/dist/src/cli-trajectory.d.ts +37 -0
- package/dist/src/cli-trajectory.js +303 -0
- package/dist/src/cli-trajectory.js.map +1 -0
- package/dist/src/cli-usage.d.ts +18 -0
- package/dist/src/cli-usage.js +53 -0
- package/dist/src/cli-usage.js.map +1 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +29 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/commands/custom-commands.d.ts +43 -0
- package/dist/src/commands/custom-commands.js +155 -0
- package/dist/src/commands/custom-commands.js.map +1 -0
- package/dist/src/commands/workflow-command.d.ts +26 -0
- package/dist/src/commands/workflow-command.js +56 -0
- package/dist/src/commands/workflow-command.js.map +1 -0
- package/dist/src/config.d.ts +463 -0
- package/dist/src/config.js +1457 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/context-overflow-error.d.ts +7 -0
- package/dist/src/context-overflow-error.js +26 -0
- package/dist/src/context-overflow-error.js.map +1 -0
- package/dist/src/dev-repl.d.ts +1 -0
- package/dist/src/dev-repl.js +365 -0
- package/dist/src/dev-repl.js.map +1 -0
- package/dist/src/headless-protocol.d.ts +147 -0
- package/dist/src/headless-protocol.js +359 -0
- package/dist/src/headless-protocol.js.map +1 -0
- package/dist/src/headless-runner.d.ts +30 -0
- package/dist/src/headless-runner.js +405 -0
- package/dist/src/headless-runner.js.map +1 -0
- package/dist/src/headless-stdin.d.ts +28 -0
- package/dist/src/headless-stdin.js +78 -0
- package/dist/src/headless-stdin.js.map +1 -0
- package/dist/src/headless.d.ts +106 -0
- package/dist/src/headless.js +229 -0
- package/dist/src/headless.js.map +1 -0
- package/dist/src/hooks/codex-hook-runner.d.ts +92 -0
- package/dist/src/hooks/codex-hook-runner.js +446 -0
- package/dist/src/hooks/codex-hook-runner.js.map +1 -0
- package/dist/src/hooks/codex-hooks.d.ts +23 -0
- package/dist/src/hooks/codex-hooks.js +152 -0
- package/dist/src/hooks/codex-hooks.js.map +1 -0
- package/dist/src/hooks/hook-process.d.ts +23 -0
- package/dist/src/hooks/hook-process.js +241 -0
- package/dist/src/hooks/hook-process.js.map +1 -0
- package/dist/src/hooks/lifecycle-hooks.d.ts +37 -0
- package/dist/src/hooks/lifecycle-hooks.js +153 -0
- package/dist/src/hooks/lifecycle-hooks.js.map +1 -0
- package/dist/src/hooks/tool-hooks.d.ts +63 -0
- package/dist/src/hooks/tool-hooks.js +350 -0
- package/dist/src/hooks/tool-hooks.js.map +1 -0
- package/dist/src/mcp/codegraph-preflight.d.ts +29 -0
- package/dist/src/mcp/codegraph-preflight.js +232 -0
- package/dist/src/mcp/codegraph-preflight.js.map +1 -0
- package/dist/src/mcp/registry.d.ts +133 -0
- package/dist/src/mcp/registry.js +209 -0
- package/dist/src/mcp/registry.js.map +1 -0
- package/dist/src/mcp/web-search-empty-results.d.ts +14 -0
- package/dist/src/mcp/web-search-empty-results.js +94 -0
- package/dist/src/mcp/web-search-empty-results.js.map +1 -0
- package/dist/src/memory/command.d.ts +11 -0
- package/dist/src/memory/command.js +253 -0
- package/dist/src/memory/command.js.map +1 -0
- package/dist/src/memory/controller.d.ts +51 -0
- package/dist/src/memory/controller.js +316 -0
- package/dist/src/memory/controller.js.map +1 -0
- package/dist/src/memory/prompt.d.ts +4 -0
- package/dist/src/memory/prompt.js +22 -0
- package/dist/src/memory/prompt.js.map +1 -0
- package/dist/src/memory/scheduler.d.ts +33 -0
- package/dist/src/memory/scheduler.js +134 -0
- package/dist/src/memory/scheduler.js.map +1 -0
- package/dist/src/memory/state.d.ts +112 -0
- package/dist/src/memory/state.js +355 -0
- package/dist/src/memory/state.js.map +1 -0
- package/dist/src/memory/store.d.ts +19 -0
- package/dist/src/memory/store.js +130 -0
- package/dist/src/memory/store.js.map +1 -0
- package/dist/src/memory/tools.d.ts +29 -0
- package/dist/src/memory/tools.js +22 -0
- package/dist/src/memory/tools.js.map +1 -0
- package/dist/src/memory/validation.d.ts +33 -0
- package/dist/src/memory/validation.js +159 -0
- package/dist/src/memory/validation.js.map +1 -0
- package/dist/src/npm-package/generate-patch.d.ts +23 -0
- package/dist/src/npm-package/generate-patch.js +88 -0
- package/dist/src/npm-package/generate-patch.js.map +1 -0
- package/dist/src/npm-package/patch-package-format.d.ts +43 -0
- package/dist/src/npm-package/patch-package-format.js +66 -0
- package/dist/src/npm-package/patch-package-format.js.map +1 -0
- package/dist/src/paths.d.ts +39 -0
- package/dist/src/paths.js +105 -0
- package/dist/src/paths.js.map +1 -0
- package/dist/src/pricing/cost.d.ts +182 -0
- package/dist/src/pricing/cost.js +215 -0
- package/dist/src/pricing/cost.js.map +1 -0
- package/dist/src/pricing/model-prices.d.ts +112 -0
- package/dist/src/pricing/model-prices.js +320 -0
- package/dist/src/pricing/model-prices.js.map +1 -0
- package/dist/src/sdk-patch-preflight.d.ts +23 -0
- package/dist/src/sdk-patch-preflight.js +71 -0
- package/dist/src/sdk-patch-preflight.js.map +1 -0
- package/dist/src/skills/builtin/commit-message/SKILL.md +45 -0
- package/dist/src/skills/builtin/commit-message/references/types.md +8 -0
- package/dist/src/skills/builtin/developer/SKILL.md +107 -0
- package/dist/src/skills/builtin/self-evolution-research/SKILL.md +150 -0
- package/dist/src/skills/builtin/self-evolution-research/scripts/roll-research-path.mjs +208 -0
- package/dist/src/skills/builtin/self-reflection/SKILL.md +172 -0
- package/dist/src/skills/builtin/self-reflection/references/reflection-template.md +90 -0
- package/dist/src/skills/builtin/self-reflection/scripts/locate-trajectory.mjs +175 -0
- package/dist/src/skills/loader.d.ts +26 -0
- package/dist/src/skills/loader.js +186 -0
- package/dist/src/skills/loader.js.map +1 -0
- package/dist/src/skills/plugin.d.ts +34 -0
- package/dist/src/skills/plugin.js +137 -0
- package/dist/src/skills/plugin.js.map +1 -0
- package/dist/src/skills/prompt.d.ts +8 -0
- package/dist/src/skills/prompt.js +214 -0
- package/dist/src/skills/prompt.js.map +1 -0
- package/dist/src/skills/resource-safety.d.ts +15 -0
- package/dist/src/skills/resource-safety.js +149 -0
- package/dist/src/skills/resource-safety.js.map +1 -0
- package/dist/src/tools/background-bash.d.ts +95 -0
- package/dist/src/tools/background-bash.js +639 -0
- package/dist/src/tools/background-bash.js.map +1 -0
- package/dist/src/tools/background-tail.d.ts +28 -0
- package/dist/src/tools/background-tail.js +75 -0
- package/dist/src/tools/background-tail.js.map +1 -0
- package/dist/src/tools/background-wait-contract.d.ts +4 -0
- package/dist/src/tools/background-wait-contract.js +7 -0
- package/dist/src/tools/background-wait-contract.js.map +1 -0
- package/dist/src/tools/file-editor-serial.d.ts +24 -0
- package/dist/src/tools/file-editor-serial.js +99 -0
- package/dist/src/tools/file-editor-serial.js.map +1 -0
- package/dist/src/tools/image-viewer.d.ts +43 -0
- package/dist/src/tools/image-viewer.js +256 -0
- package/dist/src/tools/image-viewer.js.map +1 -0
- package/dist/src/tools/update-plan.d.ts +30 -0
- package/dist/src/tools/update-plan.js +65 -0
- package/dist/src/tools/update-plan.js.map +1 -0
- package/dist/src/tools/web-fetch.d.ts +70 -0
- package/dist/src/tools/web-fetch.js +667 -0
- package/dist/src/tools/web-fetch.js.map +1 -0
- package/dist/src/trajectory/export.d.ts +31 -0
- package/dist/src/trajectory/export.js +116 -0
- package/dist/src/trajectory/export.js.map +1 -0
- package/dist/src/trajectory/fork.d.ts +19 -0
- package/dist/src/trajectory/fork.js +110 -0
- package/dist/src/trajectory/fork.js.map +1 -0
- package/dist/src/trajectory/memory-tool.d.ts +20 -0
- package/dist/src/trajectory/memory-tool.js +98 -0
- package/dist/src/trajectory/memory-tool.js.map +1 -0
- package/dist/src/trajectory/prompt-history.d.ts +62 -0
- package/dist/src/trajectory/prompt-history.js +256 -0
- package/dist/src/trajectory/prompt-history.js.map +1 -0
- package/dist/src/trajectory/reader.d.ts +21 -0
- package/dist/src/trajectory/reader.js +62 -0
- package/dist/src/trajectory/reader.js.map +1 -0
- package/dist/src/trajectory/record.d.ts +417 -0
- package/dist/src/trajectory/record.js +394 -0
- package/dist/src/trajectory/record.js.map +1 -0
- package/dist/src/trajectory/replay.d.ts +74 -0
- package/dist/src/trajectory/replay.js +285 -0
- package/dist/src/trajectory/replay.js.map +1 -0
- package/dist/src/trajectory/resume-recap.d.ts +43 -0
- package/dist/src/trajectory/resume-recap.js +68 -0
- package/dist/src/trajectory/resume-recap.js.map +1 -0
- package/dist/src/trajectory/search.d.ts +40 -0
- package/dist/src/trajectory/search.js +127 -0
- package/dist/src/trajectory/search.js.map +1 -0
- package/dist/src/trajectory/spend.d.ts +157 -0
- package/dist/src/trajectory/spend.js +264 -0
- package/dist/src/trajectory/spend.js.map +1 -0
- package/dist/src/trajectory/stream.d.ts +30 -0
- package/dist/src/trajectory/stream.js +30 -0
- package/dist/src/trajectory/stream.js.map +1 -0
- package/dist/src/trajectory/writer.d.ts +310 -0
- package/dist/src/trajectory/writer.js +636 -0
- package/dist/src/trajectory/writer.js.map +1 -0
- package/dist/src/tui/App.d.ts +109 -0
- package/dist/src/tui/App.js +2660 -0
- package/dist/src/tui/App.js.map +1 -0
- package/dist/src/tui/InputBox.d.ts +90 -0
- package/dist/src/tui/InputBox.js +129 -0
- package/dist/src/tui/InputBox.js.map +1 -0
- package/dist/src/tui/MarkdownText.d.ts +16 -0
- package/dist/src/tui/MarkdownText.js +117 -0
- package/dist/src/tui/MarkdownText.js.map +1 -0
- package/dist/src/tui/MessageList.d.ts +27 -0
- package/dist/src/tui/MessageList.js +61 -0
- package/dist/src/tui/MessageList.js.map +1 -0
- package/dist/src/tui/PermissionPrompt.d.ts +18 -0
- package/dist/src/tui/PermissionPrompt.js +114 -0
- package/dist/src/tui/PermissionPrompt.js.map +1 -0
- package/dist/src/tui/PlanChecklist.d.ts +7 -0
- package/dist/src/tui/PlanChecklist.js +12 -0
- package/dist/src/tui/PlanChecklist.js.map +1 -0
- package/dist/src/tui/QueuedMessages.d.ts +8 -0
- package/dist/src/tui/QueuedMessages.js +24 -0
- package/dist/src/tui/QueuedMessages.js.map +1 -0
- package/dist/src/tui/StartupScreen.d.ts +25 -0
- package/dist/src/tui/StartupScreen.js +51 -0
- package/dist/src/tui/StartupScreen.js.map +1 -0
- package/dist/src/tui/ToolCallPanel.d.ts +33 -0
- package/dist/src/tui/ToolCallPanel.js +112 -0
- package/dist/src/tui/ToolCallPanel.js.map +1 -0
- package/dist/src/tui/WelcomeHeader.d.ts +30 -0
- package/dist/src/tui/WelcomeHeader.js +69 -0
- package/dist/src/tui/WelcomeHeader.js.map +1 -0
- package/dist/src/tui/background-tool-presentation.d.ts +22 -0
- package/dist/src/tui/background-tool-presentation.js +209 -0
- package/dist/src/tui/background-tool-presentation.js.map +1 -0
- package/dist/src/tui/busy-suffix.d.ts +37 -0
- package/dist/src/tui/busy-suffix.js +39 -0
- package/dist/src/tui/busy-suffix.js.map +1 -0
- package/dist/src/tui/clipboard-image.d.ts +18 -0
- package/dist/src/tui/clipboard-image.js +109 -0
- package/dist/src/tui/clipboard-image.js.map +1 -0
- package/dist/src/tui/context-format.d.ts +43 -0
- package/dist/src/tui/context-format.js +71 -0
- package/dist/src/tui/context-format.js.map +1 -0
- package/dist/src/tui/copy-command.d.ts +68 -0
- package/dist/src/tui/copy-command.js +182 -0
- package/dist/src/tui/copy-command.js.map +1 -0
- package/dist/src/tui/edit-diff.d.ts +135 -0
- package/dist/src/tui/edit-diff.js +356 -0
- package/dist/src/tui/edit-diff.js.map +1 -0
- package/dist/src/tui/frame-budget.d.ts +351 -0
- package/dist/src/tui/frame-budget.js +446 -0
- package/dist/src/tui/frame-budget.js.map +1 -0
- package/dist/src/tui/help-format.d.ts +17 -0
- package/dist/src/tui/help-format.js +38 -0
- package/dist/src/tui/help-format.js.map +1 -0
- package/dist/src/tui/live-text.d.ts +51 -0
- package/dist/src/tui/live-text.js +154 -0
- package/dist/src/tui/live-text.js.map +1 -0
- package/dist/src/tui/markdown.d.ts +62 -0
- package/dist/src/tui/markdown.js +244 -0
- package/dist/src/tui/markdown.js.map +1 -0
- package/dist/src/tui/mcp-format.d.ts +28 -0
- package/dist/src/tui/mcp-format.js +67 -0
- package/dist/src/tui/mcp-format.js.map +1 -0
- package/dist/src/tui/path-completion.d.ts +119 -0
- package/dist/src/tui/path-completion.js +305 -0
- package/dist/src/tui/path-completion.js.map +1 -0
- package/dist/src/tui/permission-queue.d.ts +61 -0
- package/dist/src/tui/permission-queue.js +129 -0
- package/dist/src/tui/permission-queue.js.map +1 -0
- package/dist/src/tui/plan-format.d.ts +9 -0
- package/dist/src/tui/plan-format.js +30 -0
- package/dist/src/tui/plan-format.js.map +1 -0
- package/dist/src/tui/prompt-completion.d.ts +22 -0
- package/dist/src/tui/prompt-completion.js +46 -0
- package/dist/src/tui/prompt-completion.js.map +1 -0
- package/dist/src/tui/prompt-editor.d.ts +102 -0
- package/dist/src/tui/prompt-editor.js +379 -0
- package/dist/src/tui/prompt-editor.js.map +1 -0
- package/dist/src/tui/prompt-history-search.d.ts +53 -0
- package/dist/src/tui/prompt-history-search.js +123 -0
- package/dist/src/tui/prompt-history-search.js.map +1 -0
- package/dist/src/tui/prompt-queue.d.ts +58 -0
- package/dist/src/tui/prompt-queue.js +74 -0
- package/dist/src/tui/prompt-queue.js.map +1 -0
- package/dist/src/tui/prompt-recall.d.ts +74 -0
- package/dist/src/tui/prompt-recall.js +90 -0
- package/dist/src/tui/prompt-recall.js.map +1 -0
- package/dist/src/tui/react-environment.d.ts +11 -0
- package/dist/src/tui/react-environment.js +24 -0
- package/dist/src/tui/react-environment.js.map +1 -0
- package/dist/src/tui/rewind-search.d.ts +34 -0
- package/dist/src/tui/rewind-search.js +68 -0
- package/dist/src/tui/rewind-search.js.map +1 -0
- package/dist/src/tui/shell-command.d.ts +114 -0
- package/dist/src/tui/shell-command.js +310 -0
- package/dist/src/tui/shell-command.js.map +1 -0
- package/dist/src/tui/spend-advisory.d.ts +52 -0
- package/dist/src/tui/spend-advisory.js +64 -0
- package/dist/src/tui/spend-advisory.js.map +1 -0
- package/dist/src/tui/status-format.d.ts +120 -0
- package/dist/src/tui/status-format.js +192 -0
- package/dist/src/tui/status-format.js.map +1 -0
- package/dist/src/tui/subagent-format.d.ts +49 -0
- package/dist/src/tui/subagent-format.js +146 -0
- package/dist/src/tui/subagent-format.js.map +1 -0
- package/dist/src/tui/task-format.d.ts +29 -0
- package/dist/src/tui/task-format.js +87 -0
- package/dist/src/tui/task-format.js.map +1 -0
- package/dist/src/tui/terminal-bell.d.ts +20 -0
- package/dist/src/tui/terminal-bell.js +33 -0
- package/dist/src/tui/terminal-bell.js.map +1 -0
- package/dist/src/tui/tool-detail-presentation.d.ts +60 -0
- package/dist/src/tui/tool-detail-presentation.js +206 -0
- package/dist/src/tui/tool-detail-presentation.js.map +1 -0
- package/dist/src/tui/turn-state.d.ts +195 -0
- package/dist/src/tui/turn-state.js +548 -0
- package/dist/src/tui/turn-state.js.map +1 -0
- package/dist/src/tui/visual-language.d.ts +45 -0
- package/dist/src/tui/visual-language.js +57 -0
- package/dist/src/tui/visual-language.js.map +1 -0
- package/dist/src/version.d.ts +7 -0
- package/dist/src/version.js +38 -0
- package/dist/src/version.js.map +1 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>darwin</h1>
|
|
3
|
+
<p>A terminal coding agent that improves by using each accepted revision to build the next one.</p>
|
|
4
|
+
<p><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a></p>
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://nodejs.org/"><img alt="Node.js >=20.11.0" src="https://img.shields.io/badge/Node.js-%3E%3D20.11.0-339933?logo=nodedotjs&logoColor=white"></a>
|
|
7
|
+
<a href="https://www.typescriptlang.org/"><img alt="TypeScript 7.0.2" src="https://img.shields.io/badge/TypeScript-7.0.2-3178C6?logo=typescript&logoColor=white"></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@strands-agents/sdk"><img alt="Strands Agents SDK 1.16.0" src="https://img.shields.io/badge/Strands_Agents_SDK-1.16.0-5E4AE3"></a>
|
|
9
|
+
<a href="https://spdx.org/licenses/ISC.html"><img alt="ISC License" src="https://img.shields.io/badge/License-ISC-blue.svg"></a>
|
|
10
|
+
</p>
|
|
11
|
+
<img src="docs/images/welcome.png" alt="darwin terminal welcome screen" width="100%">
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
## Evolution by iteration
|
|
15
|
+
|
|
16
|
+
darwin is an experiment in self-hosted AI development. The [v0.0.1 baseline](https://github.com/xiehust/strands-darwin/releases/tag/v0.0.1) was built entirely with [Claude Code](https://claude.com/claude-code). Every later feature, fix, and release is made by running the current darwin inside this repository. Once a revision passes independent acceptance, that revision becomes the tool used to build the next one.
|
|
17
|
+
|
|
18
|
+
A human remains the developer of record: people set product and safety boundaries, authorize work, resolve decisions the repository cannot answer, and accept the result. The implementation is produced by darwin under those boundaries. The baseline is a fixed comparison point; the git history and the [iteration log](docs/iteration-log.md) make subsequent work auditable.
|
|
19
|
+
|
|
20
|
+
### Built-in self-evolution research
|
|
21
|
+
|
|
22
|
+
`/self-evolution-research` supplies the selection loop in front of implementation. It advances unfinished work in a persistent [research backlog](docs/research/backlog_index.md); when none remains, it makes one binding, auditable weighted draw across comparable-product research, TUI review, open-ended improvement, unused Strands SDK capability, and observability.
|
|
23
|
+
|
|
24
|
+
The run gathers cited evidence from this repository or primary product sources, rejects duplicates, scores directions for value, fit, evidence, difficulty, and risk, and queues only work that meets the score gate. Each qualifying direction goes separately to the built-in `developer` supervisor. A fresh headless darwin implements it, then the Host independently inspects the diff and reruns acceptance checks. Only an accepted revision feeds the next direction.
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
unfinished backlog, or one weighted research-path draw
|
|
28
|
+
→ evidence-backed research and scored directions
|
|
29
|
+
→ developer-supervised implementation
|
|
30
|
+
→ independent acceptance and commit
|
|
31
|
+
→ README / user-guide / architecture docs brought in step
|
|
32
|
+
→ the accepted Darwin researches and builds the next revision
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This is a bounded workflow, not autonomous product authority. A dirty or unverifiable starting point, repeated acceptance failure, a falsified premise, or a product/safety decision only a person can make stops the batch and records the reason. See the [dated research reports](docs/research/) and [self-reflections](docs/reflections/) for the evidence trail.
|
|
36
|
+
|
|
37
|
+
## What it gives you
|
|
38
|
+
|
|
39
|
+
- **A readable Ink TUI:** streaming Markdown answers, proposed file-edit diffs, elapsed time and token spend, slash/path completion, prompt recall and queueing, local `!` commands, and bounded reports.
|
|
40
|
+
- **Safe approval modes:** `default`, classifier-assisted `auto`, read-only `plan`, and explicit `yolo`, with narrow project-scoped allow rules that can be revoked in-session.
|
|
41
|
+
- **Durable work:** resumable project-scoped sessions, append-only trajectories, replay/search/fork/export, cost records, optional diagnostics, background jobs, and parent-managed on-demand project memory with exact evidence and durable-turn commit.
|
|
42
|
+
- **Extension layers:** built-in and project/global skills, custom commands, child agents with workflow-DAG delegation, tool hooks, and stdio/HTTP MCP servers, with portable `.agents/` discovery.
|
|
43
|
+
- **Automation:** one-shot text output or versioned JSON/JSONL, strict session selection, bounded model-call and context-offload controls, and nonzero cancellation/failure exits.
|
|
44
|
+
- **Model choice:** Amazon Bedrock, direct Anthropic, direct OpenAI, and OpenAI-compatible models through Bedrock Mantle; live model and thinking-effort switching.
|
|
45
|
+
|
|
46
|
+
The agent loop remains the Strands SDK loop. darwin assembles SDK models, interventions, plugins, conversation management, and tools rather than forking the loop. Maintainer rationale lives in [architecture decisions](docs/architecture/load-bearing-decisions.md).
|
|
47
|
+
|
|
48
|
+
## Install and start
|
|
49
|
+
|
|
50
|
+
Requirements: Node.js 20.11+, npm, and credentials for your configured provider (AWS by default).
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm install -g strands-darwin
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The registry package is `strands-darwin`; the command it installs is `darwin`. Its `postinstall` script applies darwin's pinned Strands SDK patch with `patch-package`, so do not pass `--ignore-scripts` — an install that skipped it is refused at startup with a message naming this fix. `pnpm add -g` is unsupported: pnpm blocks dependency build scripts by default and, with them allowed, its isolated layout keeps the SDK where `patch-package` cannot find it.
|
|
57
|
+
|
|
58
|
+
You can now run darwin directly from any repository; its current working directory becomes the project root:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
cd /path/to/your-project
|
|
62
|
+
darwin
|
|
63
|
+
darwin --resume
|
|
64
|
+
darwin --resume <id> # ids: darwin sessions
|
|
65
|
+
darwin --session <id>
|
|
66
|
+
darwin doctor # offline read-only diagnostics: config, MCP, skills, hooks; exit 1 on problems
|
|
67
|
+
darwin --help # usage grammar; darwin --version prints the version
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Developing darwin itself
|
|
71
|
+
|
|
72
|
+
Clone the repository and use pnpm (the lockfile is pnpm's; `pnpm install` applies the SDK patch itself):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/xiehust/strands-darwin.git
|
|
76
|
+
cd strands-darwin
|
|
77
|
+
pnpm install
|
|
78
|
+
pnpm start # runs the TypeScript source, no build needed
|
|
79
|
+
pnpm build # emits dist/ (the CLI, the built-in skills and the generated patch-package file)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`pnpm build` followed by `pnpm add --global .` links a global `darwin` to the clone; keep the directory afterwards and re-run `pnpm build` after source changes. `node-pty`, used by the TUI tests, is a native dev dependency already allow-listed in `pnpm-workspace.yaml`. Add any new native dependencies to that allow-list.
|
|
83
|
+
|
|
84
|
+
## Configure a model
|
|
85
|
+
|
|
86
|
+
The only active model/provider configuration is `~/.darwin/config.json`. With no file, darwin uses its built-in Bedrock catalogue. A minimal Bedrock configuration is:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"provider": "bedrock",
|
|
91
|
+
"model": "global.anthropic.claude-opus-5",
|
|
92
|
+
"region": "us-west-2",
|
|
93
|
+
"permissionMode": "default"
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Bedrock uses the standard AWS credential chain and requires an inference-profile model ID such as `us.`, `eu.`, `apac.`, or `global.`, not a bare `anthropic.*` ID. Direct providers use `ANTHROPIC_API_KEY` or `OPENAI_API_KEY`; direct Anthropic also honours `baseUrl` (or `ANTHROPIC_BASE_URL`) for any Messages API-compatible endpoint.
|
|
98
|
+
|
|
99
|
+
For multiple switchable models, provider-specific fields, Bedrock Mantle, caching, thinking effort, context limits, and all session settings, read [Getting started and providers](docs/user-guide/getting-started.md) and [Configuration and context](docs/user-guide/configuration.md).
|
|
100
|
+
|
|
101
|
+
## Use it
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
/ list commands, skills, and custom commands
|
|
105
|
+
@src/ complete a workspace path (path text only)
|
|
106
|
+
!pnpm test run a user-authorized local shell command
|
|
107
|
+
/developer <requirement>
|
|
108
|
+
/self-evolution-research
|
|
109
|
+
/help local command, prompt, and key reference
|
|
110
|
+
/copy copy the last completed answer to the clipboard (OSC 52, works over SSH)
|
|
111
|
+
/rewind branch conversation from a completed prompt (workspace unchanged)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Use `Ctrl+R` to search this project's prompt history (type to filter, `Ctrl+R`/`Up`/`Down` to navigate, `Enter`/`Tab` to accept, `Escape` to cancel), `Ctrl+C` to cancel busy work, `Ctrl+B` to expand or compact tool details, and `/exit` or `Ctrl+D` to quit. In the composer, `Alt/Ctrl+Left/Right` or `Alt+B`/`Alt+F` moves by word, `Alt+Backspace`/`Alt+D` deletes the word before/after the cursor, and `Ctrl+_` (or `Ctrl+-`) undoes the last `Ctrl+K`/`Ctrl+U`, `Ctrl+W` or `Alt` word deletion. On an empty idle composer, `Esc` `Esc` (the second within 500 ms) opens the `/rewind` chooser — the same thing typing `/rewind` does; a single `Esc` there does nothing. Model tool calls still pass through the active permission mode; `!` commands are commands you authorize by typing them yourself.
|
|
115
|
+
|
|
116
|
+
For non-interactive use:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
darwin -p "inspect this project" # reply on stdout; progress on stderr
|
|
120
|
+
darwin -p "inspect this project" --output-format json
|
|
121
|
+
darwin -p "inspect this project" --output-format stream-json
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Read [Using darwin](docs/user-guide/using-darwin.md) for TUI, headless, structured-output, queue, shell, and background-job contracts.
|
|
125
|
+
|
|
126
|
+
## Documentation
|
|
127
|
+
|
|
128
|
+
- **[User guide](docs/user-guide/README.md):** installation, providers, daily use, configuration, state, safety, extensions, command reference, limitations, and development.
|
|
129
|
+
- **[Architecture](docs/architecture/load-bearing-decisions.md):** the contracts implementation changes must preserve.
|
|
130
|
+
- **[Research backlog](docs/research/backlog_index.md) and [reports](docs/research/):** evidence and ranked self-evolution directions.
|
|
131
|
+
- **[Iteration log](docs/iteration-log.md):** supervised implementation batches and independent acceptance.
|
|
132
|
+
- **[Reflections](docs/reflections/):** trajectory-based reviews that can feed the research backlog.
|
|
133
|
+
|
|
134
|
+
## Status
|
|
135
|
+
|
|
136
|
+
darwin is experimental and runs commands directly on your machine; it is not a sandbox. The permission gate is the safety boundary for model-issued tool calls. Read [Limitations and development](docs/user-guide/development.md) before relying on it for sensitive or unattended work.
|
|
137
|
+
|
|
138
|
+
## License
|
|
139
|
+
|
|
140
|
+
[ISC](https://spdx.org/licenses/ISC.html)
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>darwin</h1>
|
|
3
|
+
<p>一款在终端中运行的编程代理:每次通过验收的版本,都会成为开发下一版的工具。</p>
|
|
4
|
+
<p><a href="README.md">English</a> · <strong>简体中文</strong></p>
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://nodejs.org/"><img alt="Node.js >=20.11.0" src="https://img.shields.io/badge/Node.js-%3E%3D20.11.0-339933?logo=nodedotjs&logoColor=white"></a>
|
|
7
|
+
<a href="https://www.typescriptlang.org/"><img alt="TypeScript 7.0.2" src="https://img.shields.io/badge/TypeScript-7.0.2-3178C6?logo=typescript&logoColor=white"></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@strands-agents/sdk"><img alt="Strands Agents SDK 1.16.0" src="https://img.shields.io/badge/Strands_Agents_SDK-1.16.0-5E4AE3"></a>
|
|
9
|
+
<a href="https://spdx.org/licenses/ISC.html"><img alt="ISC License" src="https://img.shields.io/badge/License-ISC-blue.svg"></a>
|
|
10
|
+
</p>
|
|
11
|
+
<img src="docs/images/welcome.png" alt="darwin 终端欢迎界面" width="100%">
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
## 以迭代推动演进
|
|
15
|
+
|
|
16
|
+
darwin 是一项自托管 AI 开发实验。[v0.0.1 基线版本](https://github.com/xiehust/strands-darwin/releases/tag/v0.0.1)完全由 [Claude Code](https://claude.com/claude-code) 编写。此后的功能、修复和版本发布,都由当前版本的 darwin 在本仓库内完成。新版本通过独立验收后,就会接手下一轮开发。
|
|
17
|
+
|
|
18
|
+
开发责任始终由人承担:产品取舍、安全边界和工作授权由人决定;仓库证据无法回答的问题也由人处理;最终结果仍需人来验收。darwin 在这些边界内负责编写实现。基线版本提供固定参照,后续工作则由 git 历史和[迭代日志](docs/iteration-log.md)留痕。
|
|
19
|
+
|
|
20
|
+
### 内置自演进研究
|
|
21
|
+
|
|
22
|
+
`/self-evolution-research` 负责在实现之前选择方向。它会先推进持久化[研究待办](docs/research/backlog_index.md)中的未完成事项;没有积压任务时,才会进行一次有记录、不可随意重抽的加权抽签。候选路径包括同类产品研究、TUI 自检、开放式改进、尚未使用的 Strands SDK 能力,以及可观测性。
|
|
23
|
+
|
|
24
|
+
研究过程会引用仓库证据或产品一手资料,剔除重复项,再按价值、架构契合度、证据强度、难度和风险评分。只有达到门槛的方向才会进入实现队列。每个方向都会单独交给内置 `developer` 监督器:新的无头 darwin 子会话完成开发,Host 随后独立检查 diff,并重新执行验收命令。只有通过验收的版本,才会进入下一个方向。
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
未完成待办,或一次加权研究路径抽签
|
|
28
|
+
→ 有证据支撑的研究与评分
|
|
29
|
+
→ developer 监督下的实现
|
|
30
|
+
→ 独立验收与提交
|
|
31
|
+
→ 同步 README / 用户指南 / 架构文档
|
|
32
|
+
→ 通过验收的新版本继续研究并开发下一版
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
这套流程有明确边界,不代表 darwin 拥有产品决策权。工作树不干净、起点无法验证、验收反复失败、前提被证伪,或遇到只能由人决定的产品/安全问题时,整批工作会停止,并把原因写入记录。证据可查阅[按日期归档的研究报告](docs/research/)和[自省报告](docs/reflections/)。
|
|
36
|
+
|
|
37
|
+
## 主要能力
|
|
38
|
+
|
|
39
|
+
- **清晰的 Ink TUI:**流式 Markdown 回复、文件修改 diff、耗时与 token 消耗、斜杠命令与路径补全、提示词回看和排队、本地 `!` 命令,以及有长度上限的状态报告。
|
|
40
|
+
- **安全审批模式:**`default`、带分类器的 `auto`、只读 `plan` 和显式开启的 `yolo`;项目级放行规则尽量收窄,并可在会话内撤销。
|
|
41
|
+
- **可持续的工作状态:**按项目保存的可恢复会话、只追加轨迹、回放/搜索/分叉/导出、费用记录、可选诊断日志、后台任务,以及由父 agent 按需管理、带精确证据并在回合持久化后提交的项目记忆。
|
|
42
|
+
- **扩展机制:**内置及项目/全局 skills、自定义命令、子代理与 workflow DAG 委派、工具 hooks、stdio/HTTP MCP 服务器,并兼容 `.agents/` 目录。
|
|
43
|
+
- **自动化接口:**单次文本输出或带版本的 JSON/JSONL;严格选择会话;可限制模型调用次数和上下文卸载;取消或失败时返回非零状态码。
|
|
44
|
+
- **多模型支持:**Amazon Bedrock、Anthropic 直连、OpenAI 直连,以及通过 Bedrock Mantle 使用 OpenAI 兼容模型;会话中可切换模型和思考强度。
|
|
45
|
+
|
|
46
|
+
darwin 不会另写一套代理循环。它沿用 Strands SDK 的循环,只负责组装 SDK 模型、interventions、plugins、conversation manager 和工具。维护者可在[架构决策](docs/architecture/load-bearing-decisions.md)中查看设计依据。
|
|
47
|
+
|
|
48
|
+
## 安装与启动
|
|
49
|
+
|
|
50
|
+
需要 Node.js 20.11+、npm,以及所选模型供应商的凭证(默认使用 AWS)。
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm install -g strands-darwin
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
npm 包名是 `strands-darwin`,安装后的命令是 `darwin`。包的 `postinstall` 脚本会用 `patch-package` 应用 darwin 固定的 Strands SDK 补丁,因此不要加 `--ignore-scripts`——跳过了这一步的安装会在启动时被拒绝,并给出指向这条修复路径的提示。不支持 `pnpm add -g`:pnpm 默认拦截依赖的构建脚本,即便放行,它的隔离目录布局也会把 SDK 放在 `patch-package` 找不到的位置。
|
|
57
|
+
|
|
58
|
+
此后可以在任意目标仓库中直接运行 darwin;当前工作目录会被视为项目根目录:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
cd /path/to/your-project
|
|
62
|
+
darwin
|
|
63
|
+
darwin --resume
|
|
64
|
+
darwin --resume <id> # 查看 id:darwin sessions
|
|
65
|
+
darwin --session <id>
|
|
66
|
+
darwin doctor # 离线只读诊断:配置、MCP、技能、hook;发现问题时退出码 1
|
|
67
|
+
darwin --help # 用法语法;darwin --version 打印版本
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 开发 darwin 本身
|
|
71
|
+
|
|
72
|
+
克隆仓库并使用 pnpm(lockfile 是 pnpm 的;`pnpm install` 会自行应用 SDK 补丁):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/xiehust/strands-darwin.git
|
|
76
|
+
cd strands-darwin
|
|
77
|
+
pnpm install
|
|
78
|
+
pnpm start # 直接运行 TypeScript 源码,无需构建
|
|
79
|
+
pnpm build # 输出 dist/(CLI、内置 skill 和生成的 patch-package 补丁文件)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`pnpm build` 之后运行 `pnpm add --global .` 可以把全局 `darwin` 链接到当前克隆目录;之后请保留该目录,修改源码后重新运行 `pnpm build`。TUI 测试使用的 `node-pty` 是原生开发依赖,已列入 `pnpm-workspace.yaml` 的构建白名单。若添加新的原生依赖,也要更新这份白名单。
|
|
83
|
+
|
|
84
|
+
## 配置模型
|
|
85
|
+
|
|
86
|
+
模型和供应商只读取 `~/.darwin/config.json`。文件不存在时,darwin 使用内置 Bedrock 模型目录。最小 Bedrock 配置如下:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"provider": "bedrock",
|
|
91
|
+
"model": "global.anthropic.claude-opus-5",
|
|
92
|
+
"region": "us-west-2",
|
|
93
|
+
"permissionMode": "default"
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Bedrock 使用标准 AWS 凭证链。模型 ID 必须是 `us.`、`eu.`、`apac.` 或 `global.` 等推理配置文件 ID,不能直接填写 `anthropic.*`。直连供应商默认读取 `ANTHROPIC_API_KEY` 或 `OPENAI_API_KEY`;直连 Anthropic 还支持通过 `baseUrl`(或 `ANTHROPIC_BASE_URL`)接入任何兼容 Messages API 的端点。
|
|
98
|
+
|
|
99
|
+
多模型切换、各供应商字段、Bedrock Mantle、缓存、思考强度、上下文限制和全部会话设置,见[入门与模型供应商](docs/user-guide/getting-started.zh-CN.md)和[配置与上下文](docs/user-guide/configuration.zh-CN.md)。
|
|
100
|
+
|
|
101
|
+
## 日常使用
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
/ 列出命令、skills 和自定义命令
|
|
105
|
+
@src/ 补全工作区路径(只插入路径文本)
|
|
106
|
+
!pnpm test 运行由用户主动输入并授权的本地命令
|
|
107
|
+
/developer <requirement>
|
|
108
|
+
/self-evolution-research
|
|
109
|
+
/help 查看本地命令、输入语法和按键说明
|
|
110
|
+
/copy 把最近一条已完成回答复制到剪贴板(OSC 52,SSH 下可用)
|
|
111
|
+
/rewind 从已完成提示词分支对话(工作区不变)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
按 `Ctrl+R` 可搜索当前项目的提示历史(输入文字筛选,按 `Ctrl+R`/`Up`/`Down` 切换结果,按 `Enter`/`Tab` 接受,按 `Escape` 取消);忙碌时按 `Ctrl+C` 取消,按 `Ctrl+B` 展开或收起工具详情,使用 `/exit` 或 `Ctrl+D` 退出。编辑输入时,`Alt/Ctrl+Left/Right` 或 `Alt+B`/`Alt+F` 按词移动光标,`Alt+Backspace`/`Alt+D` 删除光标前/后的一个词,`Ctrl+_`(或 `Ctrl+-`)可撤销最近一次 `Ctrl+K`/`Ctrl+U`、`Ctrl+W` 或 `Alt` 系列的删词操作。输入框为空且空闲时,连按两次 `Esc`(第二次在 500 ms 内)会打开 `/rewind` 选择器,效果与输入 `/rewind` 完全相同;此时单按一次 `Esc` 不做任何事。模型发起的工具调用仍会经过当前审批模式;`!` 命令由你亲自输入,因此不走模型工具审批。
|
|
115
|
+
|
|
116
|
+
无交互运行方式如下:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
darwin -p "inspect this project" # 回复写 stdout,进度写 stderr
|
|
120
|
+
darwin -p "inspect this project" --output-format json
|
|
121
|
+
darwin -p "inspect this project" --output-format stream-json
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
TUI、无头模式、结构化输出、消息队列、shell 命令和后台任务的完整约定,见[使用 darwin](docs/user-guide/using-darwin.zh-CN.md)。
|
|
125
|
+
|
|
126
|
+
## 文档
|
|
127
|
+
|
|
128
|
+
- **[用户指南](docs/user-guide/README.zh-CN.md):**安装、供应商、日常操作、配置、状态、安全、扩展、命令参考、限制和开发说明。
|
|
129
|
+
- **[架构](docs/architecture/load-bearing-decisions.md):**实现变更必须遵守的关键约定。
|
|
130
|
+
- **[研究待办](docs/research/backlog_index.md)与[研究报告](docs/research/):**自演进方向的证据与排序。
|
|
131
|
+
- **[迭代日志](docs/iteration-log.md):**受监督的实现批次与独立验收结果。
|
|
132
|
+
- **[自省报告](docs/reflections/):**基于轨迹复盘会话,并可将改进方向写入研究待办。
|
|
133
|
+
|
|
134
|
+
## 项目状态
|
|
135
|
+
|
|
136
|
+
darwin 仍处于实验阶段,命令会直接在本机执行,并不提供沙箱。模型工具调用的安全边界是权限门。用于敏感或无人值守的任务前,请先阅读[限制与开发](docs/user-guide/development.zh-CN.md)。
|
|
137
|
+
|
|
138
|
+
## 许可证
|
|
139
|
+
|
|
140
|
+
[ISC](https://spdx.org/licenses/ISC.html)
|