@diffra-ai/cli 0.1.1 → 0.1.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/CHANGELOG.md +38 -0
- package/dist/bundle/chunks/{anthropic-messages-M3HXJPTI.js → anthropic-messages-5EMOURYI.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-GIFO2563.js → azure-openai-responses-N67KWG2X.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-CVEPACZO.js → chunk-3UNTEQ65.js} +1 -1
- package/dist/bundle/chunks/{chunk-VJQ6ZYW4.js → chunk-4NMBWIZG.js} +5 -5
- package/dist/bundle/chunks/{chunk-INTHKDF2.js → chunk-65DC2T66.js} +1 -1
- package/dist/bundle/chunks/chunk-6ZD23B2R.js +2 -0
- package/dist/bundle/chunks/{chunk-WEJVQTLI.js → chunk-BF423NQ7.js} +1 -1
- package/dist/bundle/chunks/{chunk-262RLABF.js → chunk-CES65UJH.js} +1 -1
- package/dist/bundle/chunks/{chunk-RJRIMI6M.js → chunk-GRYHVZSI.js} +1 -1
- package/dist/bundle/chunks/{chunk-WAH3PGZX.js → chunk-HFTZ6OJJ.js} +2 -2
- package/dist/bundle/chunks/{chunk-N6Q2WLPG.js → chunk-NEFH2K3C.js} +1 -1
- package/dist/bundle/chunks/{chunk-OQFRYL4U.js → chunk-PISJX26Y.js} +1 -1
- package/dist/bundle/chunks/{chunk-VSFRR6IC.js → chunk-QQ6NVGNW.js} +1 -1
- package/dist/bundle/chunks/{chunk-N6QWAQ6I.js → chunk-QYYUGS66.js} +1 -1
- package/dist/bundle/chunks/{chunk-GT3WTHFU.js → chunk-RLMZZV4Q.js} +1 -1
- package/dist/bundle/chunks/chunk-RTPG7C5I.js +2003 -0
- package/dist/bundle/chunks/{chunk-6S2AQWGR.js → chunk-SI7T4LPD.js} +4 -4
- package/dist/bundle/chunks/{chunk-CCH74R6M.js → chunk-VOKUVFV4.js} +1 -1
- package/dist/bundle/chunks/{chunk-OOE7BGUD.js → chunk-VWWMBH3G.js} +1 -1
- package/dist/bundle/chunks/{chunk-B3FUE2LF.js → chunk-XAA355T2.js} +1 -1
- package/dist/bundle/chunks/{cli-EC3ZETTA.js → cli-55VO5MAJ.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-YW7YYPAC.js → cloudflare-workers-ai-system-one-HB5U67WC.js} +1 -1
- package/dist/bundle/chunks/{easter-egg-3d-QN5RJMZR.js → easter-egg-3d-VAZ2JWDP.js} +1 -1
- package/dist/bundle/chunks/{execute-3J63CQJG.js → execute-OEFRHFHI.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-F6DN2LQU.js → google-generative-ai-XRHE7R52.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-MDWFDVAW.js → google-vertex-75CQOPKC.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-XO72TVVH.js → llama-cpp-classify-LKIRB7ZR.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-KYVGR5VN.js → mistral-conversations-KLGIHK73.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-SIQN5LUE.js → openai-codex-responses-7L5VV67U.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-B22DYT4F.js → openai-completions-RBF6UXDW.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-4GVNTR54.js → openai-decisions-W3PJQIOF.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-5DVNSQCE.js → openai-responses-W5ZMLOTR.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-SQMQNKJU.js → openrouter-images-4FW6VFV4.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-GZ4HZRKJ.js → pi-messages-RT7FVQ4G.js} +1 -1
- package/dist/bundle/chunks/{runtime-KEVIZBAR.js → runtime-SI4R3AXJ.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-GMPGMPLA.js → typesafe-system-one-DSJ7OYVL.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-M75O3ECA.js +2 -0
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +13 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/sandbox-command.d.ts +8 -0
- package/dist/cli/sandbox-command.d.ts.map +1 -0
- package/dist/cli/sandbox-command.js +52 -0
- package/dist/cli/sandbox-command.js.map +1 -0
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +20 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +72 -2
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/approval-mode.d.ts +28 -0
- package/dist/core/approval-mode.d.ts.map +1 -0
- package/dist/core/approval-mode.js +34 -0
- package/dist/core/approval-mode.js.map +1 -0
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +15 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +3 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +30 -3
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/fast-model.d.ts +10 -0
- package/dist/core/fast-model.d.ts.map +1 -0
- package/dist/core/fast-model.js +13 -0
- package/dist/core/fast-model.js.map +1 -0
- package/dist/core/keybindings.d.ts +8 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +4 -0
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/sandbox/escalation.d.ts +32 -0
- package/dist/core/sandbox/escalation.d.ts.map +1 -0
- package/dist/core/sandbox/escalation.js +70 -0
- package/dist/core/sandbox/escalation.js.map +1 -0
- package/dist/core/sandbox/launch.d.ts +14 -0
- package/dist/core/sandbox/launch.d.ts.map +1 -0
- package/dist/core/sandbox/launch.js +18 -0
- package/dist/core/sandbox/launch.js.map +1 -0
- package/dist/core/sandbox/policy.d.ts +50 -0
- package/dist/core/sandbox/policy.d.ts.map +1 -0
- package/dist/core/sandbox/policy.js +96 -0
- package/dist/core/sandbox/policy.js.map +1 -0
- package/dist/core/sandbox/seatbelt.d.ts +17 -0
- package/dist/core/sandbox/seatbelt.d.ts.map +1 -0
- package/dist/core/sandbox/seatbelt.js +169 -0
- package/dist/core/sandbox/seatbelt.js.map +1 -0
- package/dist/core/sandbox/windows.d.ts +30 -0
- package/dist/core/sandbox/windows.d.ts.map +1 -0
- package/dist/core/sandbox/windows.js +104 -0
- package/dist/core/sandbox/windows.js.map +1 -0
- package/dist/core/settings-defaults.d.ts +28 -0
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +28 -0
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +9 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +58 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +124 -0
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +177 -0
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/tools/bash.d.ts +12 -2
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +27 -7
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit.d.ts +3 -0
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +2 -0
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/powershell.d.ts +3 -2
- package/dist/core/tools/powershell.d.ts.map +1 -1
- package/dist/core/tools/powershell.js +4 -6
- package/dist/core/tools/powershell.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +2 -2
- package/dist/core/tools/render-utils.js +5 -5
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +16 -19
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/write.d.ts +3 -0
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +2 -0
- package/dist/core/tools/write.js.map +1 -1
- package/dist/extensions/agents/agent-tool.d.ts +61 -0
- package/dist/extensions/agents/agent-tool.d.ts.map +1 -0
- package/dist/extensions/agents/agent-tool.js +277 -0
- package/dist/extensions/agents/agent-tool.js.map +1 -0
- package/dist/extensions/agents/background.d.ts +56 -0
- package/dist/extensions/agents/background.d.ts.map +1 -0
- package/dist/extensions/agents/background.js +142 -0
- package/dist/extensions/agents/background.js.map +1 -0
- package/dist/extensions/agents/builtin-agents.d.ts +8 -0
- package/dist/extensions/agents/builtin-agents.d.ts.map +1 -0
- package/dist/extensions/agents/builtin-agents.js +38 -0
- package/dist/extensions/agents/builtin-agents.js.map +1 -0
- package/dist/extensions/agents/call-scopes.d.ts +34 -0
- package/dist/extensions/agents/call-scopes.d.ts.map +1 -0
- package/dist/extensions/agents/call-scopes.js +36 -0
- package/dist/extensions/agents/call-scopes.js.map +1 -0
- package/dist/extensions/agents/definitions.d.ts +64 -0
- package/dist/extensions/agents/definitions.d.ts.map +1 -0
- package/dist/extensions/agents/definitions.js +216 -0
- package/dist/extensions/agents/definitions.js.map +1 -0
- package/dist/extensions/agents/index.d.ts +15 -0
- package/dist/extensions/agents/index.d.ts.map +1 -0
- package/dist/extensions/agents/index.js +327 -0
- package/dist/extensions/agents/index.js.map +1 -0
- package/dist/extensions/agents/runner.d.ts +63 -0
- package/dist/extensions/agents/runner.d.ts.map +1 -0
- package/dist/extensions/agents/runner.js +156 -0
- package/dist/extensions/agents/runner.js.map +1 -0
- package/dist/extensions/approval/auto-classifier.d.ts +32 -0
- package/dist/extensions/approval/auto-classifier.d.ts.map +1 -0
- package/dist/extensions/approval/auto-classifier.js +116 -0
- package/dist/extensions/approval/auto-classifier.js.map +1 -0
- package/dist/extensions/approval/exit-plan-mode.d.ts +24 -0
- package/dist/extensions/approval/exit-plan-mode.d.ts.map +1 -0
- package/dist/extensions/approval/exit-plan-mode.js +99 -0
- package/dist/extensions/approval/exit-plan-mode.js.map +1 -0
- package/dist/extensions/approval/index.d.ts +15 -0
- package/dist/extensions/approval/index.d.ts.map +1 -0
- package/dist/extensions/approval/index.js +329 -0
- package/dist/extensions/approval/index.js.map +1 -0
- package/dist/extensions/approval/plan-reminders.d.ts +9 -0
- package/dist/extensions/approval/plan-reminders.d.ts.map +1 -0
- package/dist/extensions/approval/plan-reminders.js +42 -0
- package/dist/extensions/approval/plan-reminders.js.map +1 -0
- package/dist/extensions/approval/policy.d.ts +52 -0
- package/dist/extensions/approval/policy.d.ts.map +1 -0
- package/dist/extensions/approval/policy.js +124 -0
- package/dist/extensions/approval/policy.js.map +1 -0
- package/dist/extensions/approval/shell-safety.d.ts +11 -0
- package/dist/extensions/approval/shell-safety.d.ts.map +1 -0
- package/dist/extensions/approval/shell-safety.js +264 -0
- package/dist/extensions/approval/shell-safety.js.map +1 -0
- package/dist/extensions/cron/cron-expression.d.ts +30 -0
- package/dist/extensions/cron/cron-expression.d.ts.map +1 -0
- package/dist/extensions/cron/cron-expression.js +119 -0
- package/dist/extensions/cron/cron-expression.js.map +1 -0
- package/dist/extensions/cron/index.d.ts +19 -0
- package/dist/extensions/cron/index.d.ts.map +1 -0
- package/dist/extensions/cron/index.js +215 -0
- package/dist/extensions/cron/index.js.map +1 -0
- package/dist/extensions/cron/loop-args.d.ts +35 -0
- package/dist/extensions/cron/loop-args.d.ts.map +1 -0
- package/dist/extensions/cron/loop-args.js +95 -0
- package/dist/extensions/cron/loop-args.js.map +1 -0
- package/dist/extensions/cron/loop-texts.d.ts +29 -0
- package/dist/extensions/cron/loop-texts.d.ts.map +1 -0
- package/dist/extensions/cron/loop-texts.js +83 -0
- package/dist/extensions/cron/loop-texts.js.map +1 -0
- package/dist/extensions/cron/scheduler.d.ts +79 -0
- package/dist/extensions/cron/scheduler.d.ts.map +1 -0
- package/dist/extensions/cron/scheduler.js +146 -0
- package/dist/extensions/cron/scheduler.js.map +1 -0
- package/dist/extensions/cron/tools.d.ts +47 -0
- package/dist/extensions/cron/tools.d.ts.map +1 -0
- package/dist/extensions/cron/tools.js +141 -0
- package/dist/extensions/cron/tools.js.map +1 -0
- package/dist/extensions/goals/evidence.d.ts +20 -0
- package/dist/extensions/goals/evidence.d.ts.map +1 -0
- package/dist/extensions/goals/evidence.js +77 -0
- package/dist/extensions/goals/evidence.js.map +1 -0
- package/dist/extensions/goals/index.d.ts +45 -0
- package/dist/extensions/goals/index.d.ts.map +1 -0
- package/dist/extensions/goals/index.js +438 -0
- package/dist/extensions/goals/index.js.map +1 -0
- package/dist/extensions/goals/prompts.d.ts +15 -0
- package/dist/extensions/goals/prompts.d.ts.map +1 -0
- package/dist/extensions/goals/prompts.js +51 -0
- package/dist/extensions/goals/prompts.js.map +1 -0
- package/dist/extensions/goals/state.d.ts +88 -0
- package/dist/extensions/goals/state.d.ts.map +1 -0
- package/dist/extensions/goals/state.js +204 -0
- package/dist/extensions/goals/state.js.map +1 -0
- package/dist/extensions/goals/tools.d.ts +40 -0
- package/dist/extensions/goals/tools.d.ts.map +1 -0
- package/dist/extensions/goals/tools.js +118 -0
- package/dist/extensions/goals/tools.js.map +1 -0
- package/dist/extensions/goals/verifier.d.ts +30 -0
- package/dist/extensions/goals/verifier.d.ts.map +1 -0
- package/dist/extensions/goals/verifier.js +89 -0
- package/dist/extensions/goals/verifier.js.map +1 -0
- package/dist/extensions/hooks/aggregate.d.ts +30 -0
- package/dist/extensions/hooks/aggregate.d.ts.map +1 -0
- package/dist/extensions/hooks/aggregate.js +103 -0
- package/dist/extensions/hooks/aggregate.js.map +1 -0
- package/dist/extensions/hooks/config.d.ts +47 -0
- package/dist/extensions/hooks/config.d.ts.map +1 -0
- package/dist/extensions/hooks/config.js +169 -0
- package/dist/extensions/hooks/config.js.map +1 -0
- package/dist/extensions/hooks/file-watcher.d.ts +31 -0
- package/dist/extensions/hooks/file-watcher.d.ts.map +1 -0
- package/dist/extensions/hooks/file-watcher.js +106 -0
- package/dist/extensions/hooks/file-watcher.js.map +1 -0
- package/dist/extensions/hooks/index.d.ts +17 -0
- package/dist/extensions/hooks/index.d.ts.map +1 -0
- package/dist/extensions/hooks/index.js +349 -0
- package/dist/extensions/hooks/index.js.map +1 -0
- package/dist/extensions/hooks/matcher.d.ts +10 -0
- package/dist/extensions/hooks/matcher.d.ts.map +1 -0
- package/dist/extensions/hooks/matcher.js +85 -0
- package/dist/extensions/hooks/matcher.js.map +1 -0
- package/dist/extensions/hooks/runner.d.ts +54 -0
- package/dist/extensions/hooks/runner.d.ts.map +1 -0
- package/dist/extensions/hooks/runner.js +197 -0
- package/dist/extensions/hooks/runner.js.map +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +29 -2
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/lsp/config.d.ts +40 -0
- package/dist/extensions/lsp/config.d.ts.map +1 -0
- package/dist/extensions/lsp/config.js +92 -0
- package/dist/extensions/lsp/config.js.map +1 -0
- package/dist/extensions/lsp/connection.d.ts +32 -0
- package/dist/extensions/lsp/connection.d.ts.map +1 -0
- package/dist/extensions/lsp/connection.js +124 -0
- package/dist/extensions/lsp/connection.js.map +1 -0
- package/dist/extensions/lsp/index.d.ts +15 -0
- package/dist/extensions/lsp/index.d.ts.map +1 -0
- package/dist/extensions/lsp/index.js +103 -0
- package/dist/extensions/lsp/index.js.map +1 -0
- package/dist/extensions/lsp/server.d.ts +68 -0
- package/dist/extensions/lsp/server.d.ts.map +1 -0
- package/dist/extensions/lsp/server.js +373 -0
- package/dist/extensions/lsp/server.js.map +1 -0
- package/dist/extensions/lsp/tool.d.ts +43 -0
- package/dist/extensions/lsp/tool.d.ts.map +1 -0
- package/dist/extensions/lsp/tool.js +534 -0
- package/dist/extensions/lsp/tool.js.map +1 -0
- package/dist/extensions/memory/index.d.ts +15 -0
- package/dist/extensions/memory/index.d.ts.map +1 -0
- package/dist/extensions/memory/index.js +336 -0
- package/dist/extensions/memory/index.js.map +1 -0
- package/dist/extensions/memory/memory-agent.d.ts +29 -0
- package/dist/extensions/memory/memory-agent.d.ts.map +1 -0
- package/dist/extensions/memory/memory-agent.js +102 -0
- package/dist/extensions/memory/memory-agent.js.map +1 -0
- package/dist/extensions/memory/prompts.d.ts +18 -0
- package/dist/extensions/memory/prompts.d.ts.map +1 -0
- package/dist/extensions/memory/prompts.js +124 -0
- package/dist/extensions/memory/prompts.js.map +1 -0
- package/dist/extensions/memory/recall.d.ts +14 -0
- package/dist/extensions/memory/recall.d.ts.map +1 -0
- package/dist/extensions/memory/recall.js +80 -0
- package/dist/extensions/memory/recall.js.map +1 -0
- package/dist/extensions/memory/store.d.ts +48 -0
- package/dist/extensions/memory/store.d.ts.map +1 -0
- package/dist/extensions/memory/store.js +132 -0
- package/dist/extensions/memory/store.js.map +1 -0
- package/dist/extensions/skills/bundled/batch/SKILL.md +74 -0
- package/dist/extensions/skills/bundled/review/SKILL.md +93 -0
- package/dist/extensions/skills/index.d.ts +15 -0
- package/dist/extensions/skills/index.d.ts.map +1 -0
- package/dist/extensions/skills/index.js +68 -0
- package/dist/extensions/skills/index.js.map +1 -0
- package/dist/extensions/skills/learn.d.ts +9 -0
- package/dist/extensions/skills/learn.d.ts.map +1 -0
- package/dist/extensions/skills/learn.js +46 -0
- package/dist/extensions/skills/learn.js.map +1 -0
- package/dist/extensions/todo/index.d.ts +14 -0
- package/dist/extensions/todo/index.d.ts.map +1 -0
- package/dist/extensions/todo/index.js +55 -0
- package/dist/extensions/todo/index.js.map +1 -0
- package/dist/extensions/todo/todos.d.ts +64 -0
- package/dist/extensions/todo/todos.d.ts.map +1 -0
- package/dist/extensions/todo/todos.js +145 -0
- package/dist/extensions/todo/todos.js.map +1 -0
- package/dist/extensions/todo/tool.d.ts +23 -0
- package/dist/extensions/todo/tool.d.ts.map +1 -0
- package/dist/extensions/todo/tool.js +104 -0
- package/dist/extensions/todo/tool.js.map +1 -0
- package/dist/extensions/web-fetch/fetch-tool.d.ts +27 -0
- package/dist/extensions/web-fetch/fetch-tool.d.ts.map +1 -0
- package/dist/extensions/web-fetch/fetch-tool.js +319 -0
- package/dist/extensions/web-fetch/fetch-tool.js.map +1 -0
- package/dist/extensions/web-fetch/html-to-markdown.d.ts +7 -0
- package/dist/extensions/web-fetch/html-to-markdown.d.ts.map +1 -0
- package/dist/extensions/web-fetch/html-to-markdown.js +21 -0
- package/dist/extensions/web-fetch/html-to-markdown.js.map +1 -0
- package/dist/extensions/web-fetch/index.d.ts +10 -0
- package/dist/extensions/web-fetch/index.d.ts.map +1 -0
- package/dist/extensions/web-fetch/index.js +13 -0
- package/dist/extensions/web-fetch/index.js.map +1 -0
- package/dist/extensions/web-fetch/page-fetch.d.ts +45 -0
- package/dist/extensions/web-fetch/page-fetch.d.ts.map +1 -0
- package/dist/extensions/web-fetch/page-fetch.js +117 -0
- package/dist/extensions/web-fetch/page-fetch.js.map +1 -0
- package/dist/extensions/web-fetch/pdf-text.d.ts +29 -0
- package/dist/extensions/web-fetch/pdf-text.d.ts.map +1 -0
- package/dist/extensions/web-fetch/pdf-text.js +71 -0
- package/dist/extensions/web-fetch/pdf-text.js.map +1 -0
- package/dist/extensions/web-fetch/preapproved-hosts.d.ts +7 -0
- package/dist/extensions/web-fetch/preapproved-hosts.d.ts.map +1 -0
- package/dist/extensions/web-fetch/preapproved-hosts.js +110 -0
- package/dist/extensions/web-fetch/preapproved-hosts.js.map +1 -0
- package/dist/extensions/web-search/dashscope-search.d.ts +29 -0
- package/dist/extensions/web-search/dashscope-search.d.ts.map +1 -0
- package/dist/extensions/web-search/dashscope-search.js +279 -0
- package/dist/extensions/web-search/dashscope-search.js.map +1 -0
- package/dist/extensions/web-search/index.d.ts +15 -0
- package/dist/extensions/web-search/index.d.ts.map +1 -0
- package/dist/extensions/web-search/index.js +51 -0
- package/dist/extensions/web-search/index.js.map +1 -0
- package/dist/extensions/web-search/search-config.d.ts +53 -0
- package/dist/extensions/web-search/search-config.d.ts.map +1 -0
- package/dist/extensions/web-search/search-config.js +174 -0
- package/dist/extensions/web-search/search-config.js.map +1 -0
- package/dist/extensions/web-search/search-tool.d.ts +29 -0
- package/dist/extensions/web-search/search-tool.d.ts.map +1 -0
- package/dist/extensions/web-search/search-tool.js +149 -0
- package/dist/extensions/web-search/search-tool.js.map +1 -0
- package/dist/extensions/worktree/git-worktree.d.ts +69 -0
- package/dist/extensions/worktree/git-worktree.d.ts.map +1 -0
- package/dist/extensions/worktree/git-worktree.js +199 -0
- package/dist/extensions/worktree/git-worktree.js.map +1 -0
- package/dist/extensions/worktree/index.d.ts +27 -0
- package/dist/extensions/worktree/index.d.ts.map +1 -0
- package/dist/extensions/worktree/index.js +188 -0
- package/dist/extensions/worktree/index.js.map +1 -0
- package/dist/extensions/worktree/startup.d.ts +17 -0
- package/dist/extensions/worktree/startup.d.ts.map +1 -0
- package/dist/extensions/worktree/startup.js +56 -0
- package/dist/extensions/worktree/startup.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +28 -4
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +18 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +87 -20
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/diffra-logo.d.ts +6 -0
- package/dist/modes/interactive/components/diffra-logo.d.ts.map +1 -1
- package/dist/modes/interactive/components/diffra-logo.js +30 -4
- package/dist/modes/interactive/components/diffra-logo.js.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts +1 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.js +3 -3
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +16 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +84 -46
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +5 -2
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +152 -62
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tool-status.d.ts +5 -0
- package/dist/modes/interactive/components/tool-status.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-status.js +15 -0
- package/dist/modes/interactive/components/tool-status.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +4 -8
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +38 -36
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +24 -8
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/dark.json +3 -2
- package/dist/modes/interactive/theme/light.json +3 -2
- package/dist/modes/interactive/theme/system-theme.d.ts +1 -0
- package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/system-theme.js +41 -14
- package/dist/modes/interactive/theme/system-theme.js.map +1 -1
- package/dist/utils/shell.d.ts +1 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +12 -2
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/tools-manager.d.ts +5 -0
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +48 -0
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/approval-modes.md +99 -0
- package/docs/builtin-skills.md +53 -0
- package/docs/cli.md +25 -1
- package/docs/docs.json +44 -0
- package/docs/environment-variables.md +7 -0
- package/docs/extensions.md +27 -2
- package/docs/goals.md +84 -0
- package/docs/hooks.md +112 -0
- package/docs/keybindings.md +1 -0
- package/docs/lsp.md +71 -0
- package/docs/memory.md +71 -0
- package/docs/sandbox.md +108 -0
- package/docs/scheduled-tasks.md +84 -0
- package/docs/security.md +3 -2
- package/docs/settings.md +28 -3
- package/docs/shell-aliases.md +1 -1
- package/docs/skills.md +4 -0
- package/docs/slash-commands.md +15 -0
- package/docs/subagents.md +102 -0
- package/docs/web-tools.md +83 -0
- package/docs/windows.md +2 -1
- package/docs/worktrees.md +52 -0
- package/examples/extensions/README.md +1 -1
- package/examples/extensions/plan-mode/README.md +2 -2
- package/examples/extensions/plan-mode/index.ts +7 -4
- package/examples/extensions/subagent/README.md +2 -0
- package/examples/extensions/subagent/index.ts +3 -0
- package/examples/extensions/todo.ts +4 -0
- package/package.json +9 -8
- package/schemas/keybindings.schema.json +4 -0
- package/schemas/settings.schema.json +421 -0
- package/dist/bundle/chunks/chunk-GCKVPVMH.js +0 -2
- package/dist/bundle/chunks/chunk-UNQMECQ4.js +0 -1240
- package/dist/bundle/chunks/virtual-modules-TRFD5ZOL.js +0 -2
package/docs/settings.md
CHANGED
|
@@ -42,8 +42,22 @@ See [Choose a Model](models.md) for model selection and thinking controls.
|
|
|
42
42
|
| `defaultTools` | `string[]` | `read`, `bash`, `edit`, `write` | Tools enabled at startup. Plain names replace the defaults; `+name` adds a tool and `-name` removes one. An empty array disables all built-in tools but not extension or SDK tools. |
|
|
43
43
|
| `codemode.mode` | `"on"` \| `"only"` | `"on"` | How the `codemode` tool presents tools while it is active. `on`: declared tools get a note on calling them from scripts appended to their description, and `codemode` lists only tools that are not declared. `only`: `codemode` lists every tool scripts can call, and active built-in and extension tools are hidden from the model, so it reaches them through `codemode`. |
|
|
44
44
|
| `codemode.inlineBudget` | number | `3000` | Estimated tokens (characters / 4) the `codemode` tool's description may spend on tool declarations. Tools that do not fit are left out and found with `searchTools()`. `0` lists only namespaces. |
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
| `fastModel` | string | unset | Model for side requests, as `provider/model-id`, such as `web_fetch` extracting from a page. Unset or unknown uses the session model. |
|
|
46
|
+
| `approvalMode` | `"plan"` \| `"default"` \| `"auto-edit"` \| `"auto"` \| `"yolo"` | `"yolo"` | Approval mode new sessions start in. See [Approve Tool Calls](approval-modes.md). |
|
|
47
|
+
| `permissions.autoMode` | object | unset | Hints, environment facts, `classifyAllShell`, and the timeout of the auto-mode classifier. See [Approve Tool Calls](approval-modes.md#auto-mode). |
|
|
48
|
+
| `agents` | object | see [Subagents](subagents.md#settings) | `defaultBackground` (`true`), `maxSubagentDepth` (`5`), and `maxParallelAgents` (`10`) for the `agent` tool. |
|
|
49
|
+
| `hooks` | object | unset | Command, http, or prompt hooks by lifecycle event; user and project hooks all run. See [Run Hooks on Events](hooks.md). |
|
|
50
|
+
| `disableAllHooks` | boolean | `false` | Run no hooks. |
|
|
51
|
+
| `memory` | object | see [Auto Memory](memory.md#settings) | `enableManagedAutoMemory` and `enableManagedAutoDream` (both `true`), `agentMaxTurns`, and `agentTimeoutMinutes` for auto memory. |
|
|
52
|
+
| `goals` | object | see [Goals](goals.md#budgets) | `tokenBudget` (`30000000`), `maxTurns`, and `maxActiveMinutes` budgets of a Goal; `-1` for none. |
|
|
53
|
+
| `experimental.cron` | boolean | `true` | Scheduled tasks: `/loop` and the `cron_create`, `cron_list`, `cron_delete`, and `loop_wakeup` tools. See [Schedule Prompts and Loops](scheduled-tasks.md). |
|
|
54
|
+
| `experimental.cronRecurringMaxAgeDays` | number | `7` | Days until a recurring scheduled job expires; `0` for never. |
|
|
55
|
+
| `tools.lspEnabled` | boolean | `false` | Turn on [LSP code intelligence](lsp.md) (experimental). Read from user settings only. |
|
|
56
|
+
| `worktree.symlinkDirectories` | `string[]` | unset | Directories relative to the repository root to link into new [worktrees](worktrees.md), such as `node_modules`. |
|
|
57
|
+
| `ui.hideBuiltinWorktreeIndicator` | boolean | `false` | Hide the active worktree in the footer. |
|
|
58
|
+
| `webSearch` | object | unset | Search backend of `web_search`: `enabled`, `model`, `webExtractor`, `timeoutMs`, `maxPerSession`, and `allowedHosts`. See [Fetch and Search the Web](web-tools.md#settings). |
|
|
59
|
+
|
|
60
|
+
Available built-in tools are `read`, `bash`, `powershell`, `edit`, `write`, `grep`, `find`, and `ls`. Built-in extensions add `web_fetch` and the scheduling tools `cron_create`, `cron_list`, `cron_delete`, and `loop_wakeup`, and `enter_worktree` and `exit_worktree`, active by default, and `web_search`, active while a search backend is available (see [Fetch and Search the Web](web-tools.md)). `defaultTools` can also name `codemode`, `tool_search`, and `todo_write`, which built-in extensions register inactive, and other extension tools registered inactive.
|
|
47
61
|
|
|
48
62
|
A list of only `+name` and `-name` entries changes the inherited selection instead of replacing it. For example, this enables `codemode` next to the default tools:
|
|
49
63
|
|
|
@@ -146,6 +160,17 @@ Keep `retry.provider.maxRetries` at `0` unless provider-level retries are requir
|
|
|
146
160
|
|
|
147
161
|
See [Shell aliases](shell-aliases.md) for shell setup and [Diffra Packages](packages.md) for package-manager behavior.
|
|
148
162
|
|
|
163
|
+
## Sandbox
|
|
164
|
+
|
|
165
|
+
| Setting | Type | Default | Description |
|
|
166
|
+
|---|---|---|---|
|
|
167
|
+
| `sandbox.mode` | `"off"` \| `"read-only"` \| `"workspace-write"` | `"off"` | What commands of the `bash` and `powershell` tools and the `write` and `edit` tools may change. **Read from user settings only.** |
|
|
168
|
+
| `sandbox.network` | boolean | `false` | Lets sandboxed commands use the network. |
|
|
169
|
+
| `sandbox.writableRoots` | `string[]` | `[]` | More absolute folders that `workspace-write` allows writing. |
|
|
170
|
+
| `sandbox.windows` | `"unelevated"` \| `"elevated"` | `"unelevated"` | The Windows backend. `elevated` needs `diffra sandbox setup` once. |
|
|
171
|
+
|
|
172
|
+
See [Sandbox Commands and Edits](sandbox.md).
|
|
173
|
+
|
|
149
174
|
## Resources
|
|
150
175
|
|
|
151
176
|
Resource paths in user settings resolve from the agent directory. Paths in project settings resolve from the project `.diffra` directory. Absolute paths and `~` are supported.
|
|
@@ -161,7 +186,7 @@ Resource paths in user settings resolve from the agent directory. Paths in proje
|
|
|
161
186
|
|
|
162
187
|
Resource arrays support glob exclusions with `!pattern`, exact inclusion with `+path`, and exact exclusion with `-path`. Diffra loads resources listed in both user-level and project settings.
|
|
163
188
|
|
|
164
|
-
The built-in extensions are named `builtin:mcp`, `builtin:llama.cpp`, `builtin:codemode`,
|
|
189
|
+
The built-in extensions are named `builtin:mcp`, `builtin:llama.cpp`, `builtin:codemode`, `builtin:tool-search`, `builtin:todo`, `builtin:web-fetch`, `builtin:web-search`, `builtin:hooks`, `builtin:approval`, `builtin:agents`, `builtin:memory`, `builtin:goals`, `builtin:cron`, `builtin:worktree`, `builtin:lsp`, and `builtin:skills` in `extensions`. They load by default; `-builtin:mcp` disables one. A `+builtin:<name>` or `-builtin:<name>` entry in project settings overrides the user setting. `diffra config` lists them under Built-in. `--no-extensions` disables them too, and `-e builtin:<name>` loads one explicitly.
|
|
165
190
|
|
|
166
191
|
## Updates, telemetry, and warnings
|
|
167
192
|
|
package/docs/shell-aliases.md
CHANGED
|
@@ -13,7 +13,7 @@ Use `shellPath` to choose the Bash executable and `shellCommandPrefix` to run se
|
|
|
13
13
|
| Model calls the optional `powershell` tool | PowerShell 7 (`pwsh.exe`) or Windows PowerShell |
|
|
14
14
|
| An extension provides or replaces a shell tool | The operations implemented by that extension |
|
|
15
15
|
|
|
16
|
-
Diffra normally invokes Bash with `bash -c`. On Unix systems, it uses `/bin/bash`, then `bash` on `PATH`, and finally `sh` when Bash is unavailable. Native Windows first checks the configured path, then Git Bash
|
|
16
|
+
Diffra normally invokes Bash with `bash -c`. On Unix systems, it uses `/bin/bash`, then `bash` on `PATH`, and finally `sh` when Bash is unavailable. Native Windows first checks the configured path, then Git Bash under `%ProgramFiles%` or next to `git.exe` on `PATH`, then `bash.exe` on `PATH`.
|
|
17
17
|
|
|
18
18
|
## Choose a Bash executable
|
|
19
19
|
|
package/docs/skills.md
CHANGED
|
@@ -54,6 +54,10 @@ Set `disable-model-invocation: true` in frontmatter when a skill should be avail
|
|
|
54
54
|
|
|
55
55
|
<a id="choose-where-it-loads"></a>
|
|
56
56
|
|
|
57
|
+
## Built-in skills
|
|
58
|
+
|
|
59
|
+
Diffra ships the `review` and `batch` skills, with `/review` and `/batch` as shortcuts. A skill of yours with the same name replaces the built-in one. See [Review, Batch, and Learn](builtin-skills.md), which also covers `/learn` for turning a document into a skill.
|
|
60
|
+
|
|
57
61
|
## Add it to Diffra
|
|
58
62
|
|
|
59
63
|
Place the skill in your user or project skills directory. Directories containing `SKILL.md` are discovered recursively.
|
package/docs/slash-commands.md
CHANGED
|
@@ -47,6 +47,21 @@ Review a session before exporting or sharing it. Sessions can contain prompts, t
|
|
|
47
47
|
|---|---|
|
|
48
48
|
| `/trust` | Save a project trust decision for future Diffra processes |
|
|
49
49
|
| `/mcp` | Manage MCP servers: sign in, reconnect, enable or disable, and change exposure |
|
|
50
|
+
| `/approval-mode [mode] [--user\|--project]` | Show or change the [approval mode](approval-modes.md); `--user` or `--project` also saves it as the default |
|
|
51
|
+
| `/agents [create\|manage]` | Create, view, edit, or delete [subagents](subagents.md) |
|
|
52
|
+
| `/tasks` | List background agents and their status |
|
|
53
|
+
| `/hooks` | List the configured [hooks](hooks.md) |
|
|
54
|
+
| `/memory` | Show [auto memory](memory.md) and turn it or dreaming on or off for the session |
|
|
55
|
+
| `/remember <text>` | Ask the agent to save something to auto memory |
|
|
56
|
+
| `/forget <text>` | Delete auto-memory entries that match a description |
|
|
57
|
+
| `/dream` | Consolidate auto memory now |
|
|
58
|
+
| `/goal [<objective> \| set \| edit \| pause \| resume \| clear]` | Show, set, or control a [Goal](goals.md) the agent works toward across turns |
|
|
59
|
+
| `/review [target] [--effort ...] [--comment] [--fix]` | Review local changes, a pull request, or a file with the built-in [review skill](builtin-skills.md#review) |
|
|
60
|
+
| `/batch <operation> <file-pattern>` | Apply one change to many files with parallel subagents ([batch skill](builtin-skills.md#batch)) |
|
|
61
|
+
| `/learn <path\|URL\|text> [focus]` | Turn a source into a project skill under `.diffra/skills/` ([details](builtin-skills.md#learn)) |
|
|
62
|
+
| `/lsp` | List the [language servers](lsp.md) of the project and their status (when LSP is on) |
|
|
63
|
+
| `/loop [interval] [prompt] \| list \| clear` | Run a prompt now and again on an interval or at the model's pace; see [Schedule Prompts and Loops](scheduled-tasks.md) |
|
|
64
|
+
| `/plan [request]` | Enter plan mode, optionally sending a request; `/plan exit` returns to the previous mode |
|
|
50
65
|
| `/reload` | Reload keybindings, extensions, skills, templates, themes, and context files |
|
|
51
66
|
| `/hotkeys` | Show active keyboard shortcuts |
|
|
52
67
|
| `/changelog` | Show changelog entries |
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Delegate to Subagents
|
|
2
|
+
|
|
3
|
+
The `agent` tool lets the model hand a task to a subagent: a separate agent with its own system prompt, its own tool set, and its own context. A subagent does not see the conversation; it gets the task prompt and returns a final answer. Subagents come from the built-in extension `builtin:agents`.
|
|
4
|
+
|
|
5
|
+
## Agents
|
|
6
|
+
|
|
7
|
+
Diffra ships two agents:
|
|
8
|
+
|
|
9
|
+
| Agent | Tools | Use |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `general-purpose` (default) | Every tool the main agent can call | Research, searches, and multi-step tasks |
|
|
12
|
+
| `Explore` | `read`, `grep`, `find`, `ls`, `bash`, `web_fetch` | Fast read-only exploration; say "quick", "medium", or "very thorough" |
|
|
13
|
+
|
|
14
|
+
Define your own as Markdown files with YAML frontmatter, one agent per file:
|
|
15
|
+
|
|
16
|
+
- `.diffra/agents/<name>.md` in the project (loaded only in a trusted project)
|
|
17
|
+
- `agents/<name>.md` in your agent directory (`~/.diffra/agent/agents/` by default)
|
|
18
|
+
|
|
19
|
+
A project agent hides a user agent of the same name, and both hide a built-in one; names compare case-insensitively.
|
|
20
|
+
|
|
21
|
+
```markdown
|
|
22
|
+
---
|
|
23
|
+
name: reviewer
|
|
24
|
+
description: Use this agent to review a change for bugs before it is committed.
|
|
25
|
+
tools: read, grep, find, bash
|
|
26
|
+
model: fast
|
|
27
|
+
color: purple
|
|
28
|
+
maxTurns: 20
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
You review code changes. Read the diff, look for correctness bugs and missing tests,
|
|
32
|
+
and report each finding with its file, line, and why it is wrong.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The body is the agent's system prompt. `${task_prompt}` in it is replaced by the task the model sends. Diffra appends rules for non-interactive work (do not ask the user questions; end with the final result) and the working directory, platform, and date.
|
|
36
|
+
|
|
37
|
+
| Field | Required | Meaning |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `name` | yes | 2-50 letters, digits, `-`, and `_`; not starting or ending with `-` or `_`; not `self`, `system`, `user`, `model`, `tool`, `config`, `default`, or `main` |
|
|
40
|
+
| `description` | yes | When to use the agent; the model sees it in the `agent` tool's description |
|
|
41
|
+
| `tools` | no | Tools the agent may use, as a list or a comma-separated string. Omitted or empty: every tool the main agent can call |
|
|
42
|
+
| `disallowedTools` | no | Tools to remove; `mcp__<server>` removes a whole MCP server |
|
|
43
|
+
| `model` | no | `inherit` (default), `fast` (the [`fastModel`](settings.md) setting), or `provider/model-id` |
|
|
44
|
+
| `approvalMode` | no | `plan`, `default`, `auto-edit`, `auto`, or `yolo` for the agent's calls (see below) |
|
|
45
|
+
| `maxTurns` | no | Turn limit; `runConfig.max_turns` is the older spelling |
|
|
46
|
+
| `runConfig.max_time_minutes` | no | Time limit in minutes |
|
|
47
|
+
| `background` | no | Run in the background unless the call says otherwise |
|
|
48
|
+
| `color` | no | `red`, `blue`, `green`, `yellow`, `purple`, `orange`, `pink`, or `cyan` |
|
|
49
|
+
|
|
50
|
+
The system prompt must be at least 10 characters long. Files that fail to load are skipped with a warning, for example `Validation failed: Name must be at least 2 characters long`.
|
|
51
|
+
|
|
52
|
+
## The agent tool
|
|
53
|
+
|
|
54
|
+
| Parameter | Required | Meaning |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| `description` | yes | A short (3-5 word) description of the task |
|
|
57
|
+
| `prompt` | yes | The task for the agent |
|
|
58
|
+
| `subagent_type` | no | The agent to use; `general-purpose` when omitted |
|
|
59
|
+
| `run_in_background` | no | `false` waits for the answer; `true` returns at once |
|
|
60
|
+
|
|
61
|
+
A subagent never gets `todo_write`, `exit_plan_mode`, or `task_stop`. It gets `agent` only while it may nest: subagents can start subagents up to `agents.maxSubagentDepth` levels (default 5); `1` stops nesting. Nested agents always run in the foreground.
|
|
62
|
+
|
|
63
|
+
Without a limit in its definition, a subagent runs until it answers. Its answer becomes the tool result. When it stops early, the result says why and includes what it produced, for example `Subagent did not complete (terminate mode: MAX_TURNS). It ran out of turns, ...`. Its model usage counts toward the session's usage.
|
|
64
|
+
|
|
65
|
+
While a foreground subagent runs, its row shows its recent tool calls, tool uses, and tokens; `ctrl+o` expands the row to every recent call and the final answer.
|
|
66
|
+
|
|
67
|
+
## Background agents
|
|
68
|
+
|
|
69
|
+
Agents run in the background unless the call sets `run_in_background: false`, the definition sets `background: false`, or the `agents.defaultBackground` setting is `false`. The call returns a `task_id` at once. A panel above the editor lists running background agents with their latest tool call. When an agent finishes, Diffra adds a `<task-notification>` message with its status, result, and usage; it starts a new turn when the main agent is idle and waits for the current run otherwise.
|
|
70
|
+
|
|
71
|
+
At most `agents.maxParallelAgents` (default 10) background agents run at once; others wait in order. The model cancels one with `task_stop` (`task_id`), and `/tasks` lists them. Starting, resuming, or forking a session, and quitting, cancels running background agents.
|
|
72
|
+
|
|
73
|
+
## Approval
|
|
74
|
+
|
|
75
|
+
Each tool call of a subagent goes through the same checks as the main agent's calls, with the subagent's [approval mode](approval-modes.md):
|
|
76
|
+
|
|
77
|
+
- A `yolo`, `auto-edit`, or `auto` session passes its mode on.
|
|
78
|
+
- Otherwise the definition's `approvalMode` applies; `yolo`, `auto-edit`, and `auto` from a definition apply only in a trusted project.
|
|
79
|
+
- Otherwise a session in plan mode keeps its subagents in plan mode, and in a trusted project subagents of an asking session run in `auto-edit`.
|
|
80
|
+
|
|
81
|
+
A background agent cannot show a dialog: a call that would need your approval is denied, and the agent is told to ask for a foreground run.
|
|
82
|
+
|
|
83
|
+
## Manage agents
|
|
84
|
+
|
|
85
|
+
- `/agents create` creates an agent step by step: where to save it, then either a description that the model turns into a name, description, and prompt, or the name, prompt, and description you enter; then a tool preset (all tools, read-only, read and edit, or read, edit, and execution) and a color.
|
|
86
|
+
- `/agents manage` (or `/agents`) lists the agents and lets you view one, edit a project or user agent's prompt, or delete it.
|
|
87
|
+
|
|
88
|
+
## Settings
|
|
89
|
+
|
|
90
|
+
| Setting | Default | Meaning |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| `agents.defaultBackground` | `true` | Run agents in the background when neither the call nor the definition says otherwise |
|
|
93
|
+
| `agents.maxSubagentDepth` | `5` | Nesting levels, from 1 to 100 |
|
|
94
|
+
| `agents.maxParallelAgents` | `10` | Background agents that run at once |
|
|
95
|
+
|
|
96
|
+
## Differences from Qwen Code
|
|
97
|
+
|
|
98
|
+
- Built-in agents are `general-purpose` and `Explore`; Qwen Code's `statusline-setup`, `review-agent`, and the external `claude-code` and `codex` executors are not included.
|
|
99
|
+
- The `agent` tool has no `isolation`, `working_dir`, `fork_*`, `model` grade, or team parameters, and there is no `fork` agent type. `task` is not registered as an alias.
|
|
100
|
+
- There are no `list_agents` and `send_message` tools; a background agent cannot be messaged or resumed after it finishes.
|
|
101
|
+
- Definitions do not support `mcpServers`, `hooks`, `executor`, or `executionBackend`, and the system prompt does not include project context files.
|
|
102
|
+
- The nesting limit is `agents.maxSubagentDepth` instead of `model.maxSubagentDepth`.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Fetch and Search the Web
|
|
2
|
+
|
|
3
|
+
Diffra has two built-in web tools: `web_fetch` reads one URL, and `web_search` searches the web through a DashScope search agent. They come from the built-in extensions `builtin:web-fetch` and `builtin:web-search`; `-builtin:web-fetch` or `-builtin:web-search` in the [`extensions` setting](settings.md#resources) turns one off. Calls are not confirmed, like other tools (see [Run Diffra Safely](security.md)).
|
|
4
|
+
|
|
5
|
+
## web_fetch
|
|
6
|
+
|
|
7
|
+
`web_fetch` is active by default. It takes:
|
|
8
|
+
|
|
9
|
+
| Parameter | Required | Meaning |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `url` | yes | An `http://` or `https://` URL without credentials |
|
|
12
|
+
| `prompt` | yes | What to extract from the page |
|
|
13
|
+
| `format` | no | Only the `Accept` header: `auto` (default) prefers Markdown, then HTML, then plain text; `markdown`, `html`, and `text` prefer that type |
|
|
14
|
+
|
|
15
|
+
Diffra fetches the URL, converts HTML to Markdown with [turndown](https://github.com/mixmark-io/turndown) (leaving out scripts, styles, and images), and asks a model to answer `prompt` from the page. The answer comes back after a header with the URL, status, content type, and size:
|
|
16
|
+
|
|
17
|
+
- `http://` URLs to public hosts without an explicit port are fetched over HTTPS. When the HTTPS connection fails, the URL is fetched as given. Localhost, single-label hosts, `.local`/`.internal`/`.lan` names, and private IP addresses are fetched as given.
|
|
18
|
+
- GitHub `blob` URLs are fetched from `raw.githubusercontent.com`.
|
|
19
|
+
- Redirects within the same host (with or without `www.`), scheme, and port are followed, up to 10. A redirect to another host is not followed; the result names the target so the model can fetch it in a new call.
|
|
20
|
+
- Responses are limited to 10 MB and 60 seconds. Text longer than 100,000 characters is cut, and the full text is saved to a temporary file whose path the result names.
|
|
21
|
+
- Binary content, such as images, PDFs, and archives, is saved to a temporary file. Use `read` on saved images. When the `pdftotext` program is installed (from poppler-utils, or the xpdf build that ships with Git for Windows), the text of a PDF is extracted, up to 100,000 characters, and used like a page's text; otherwise the result says how to install it.
|
|
22
|
+
- Markdown pages from well-known documentation sites (for example `developer.mozilla.org` and `docs.python.org`) are returned as fetched, without the model step.
|
|
23
|
+
- The same URL with the same `format` is served from a cache for 15 minutes within a session.
|
|
24
|
+
|
|
25
|
+
The model step uses the [`fastModel` setting](settings.md) when it names a model, otherwise the session model. When that request fails, the result carries the raw page text instead. `DIFFRA_WEB_FETCH_PROCESSING_TIMEOUT_MS` changes its 300-second limit.
|
|
26
|
+
|
|
27
|
+
HTTP errors, unreachable hosts, and invalid URLs are tool errors, for example `Error during fetch for https://example.com/missing: Request failed with status code 404 Not Found`.
|
|
28
|
+
|
|
29
|
+
## web_search
|
|
30
|
+
|
|
31
|
+
`web_search` takes a `query` of at least 2 characters. One call sends the query to a DashScope model with DashScope's server-side `web_search` tool and, unless turned off, `web_extractor`, which opens result pages. The result lists the narrated findings, the pages the search agent opened, other result URLs, and the queries it ran, followed by a citation policy that asks the model to end its answer with a `Sources:` list.
|
|
32
|
+
|
|
33
|
+
### When it is available
|
|
34
|
+
|
|
35
|
+
The tool is declared to the model only while a search backend is available:
|
|
36
|
+
|
|
37
|
+
1. **Automatic.** With nothing configured, it turns on when the session model is an OpenAI-compatible model on a DashScope-compatible endpoint with an API key, for example the Qwen Token Plan providers or a [`models.json`](models.md#configure-a-compatible-endpoint) provider on `dashscope.aliyuncs.com`. Searches then run on `qwen3.8-flash` through that endpoint and key. Coding Plan endpoints (`coding.*`) are not used.
|
|
38
|
+
2. **A configured search model.** `webSearch.model` names a model as `provider/model-id`. Its provider must use a DashScope-compatible `https` endpoint and have an API key.
|
|
39
|
+
3. **Environment only.** `WEB_SEARCH_BASE_URL` sets the endpoint, `WEB_SEARCH_MODEL` the plain model id, and `WEB_SEARCH_API_KEY` (or `DASHSCOPE_API_KEY`) the key.
|
|
40
|
+
|
|
41
|
+
DashScope-compatible endpoints are `dashscope.aliyuncs.com`, `dashscope-intl.aliyuncs.com`, `dashscope-us.aliyuncs.com`, `*.maas.aliyuncs.com`, `*.maas.qwencloudapi.com`, `*.maas.qianwenaiapi.com`, and Alibaba internal hosts. `webSearch.allowedHosts` adds hosts for the configured paths 2 and 3, never for the automatic one.
|
|
42
|
+
|
|
43
|
+
Diffra chooses the backend when a session starts and when the model changes. When nothing configures search and the model cannot back it, the tool stays off without a message. When search is turned on with `webSearch.enabled: true`, a model, or the environment, but cannot work, Diffra shows a warning that says what is missing, for example:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
WebSearch is enabled but no search model is configured.
|
|
47
|
+
Set a search model on a DashScope-compatible provider in settings.json (recommended: qwen3.8-flash):
|
|
48
|
+
{ "webSearch": { "enabled": true, "model": "<provider>/qwen3.8-flash" } }
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
A search that runs out of time returns what arrived when at least one search ran, marked as partial; otherwise it is a tool error. A backend that answers without searching is retried once. Searches beyond `maxPerSession` in one session are skipped, and the model is told to continue with what it has. The count restarts when you start, resume, or fork a session.
|
|
52
|
+
|
|
53
|
+
### Settings
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"webSearch": {
|
|
58
|
+
"model": "dash/qwen3.8-flash",
|
|
59
|
+
"webExtractor": true,
|
|
60
|
+
"timeoutMs": 120000,
|
|
61
|
+
"maxPerSession": 200
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
| Setting | Environment override | Default | Meaning |
|
|
67
|
+
|---|---|---|---|
|
|
68
|
+
| `webSearch.enabled` | `ENABLE_WEB_SEARCH` | unset | `false` turns the tool off. `true` without a model only warns when no backend can be derived |
|
|
69
|
+
| `webSearch.model` | `WEB_SEARCH_MODEL` | unset | Search model as `provider/model-id`; with `WEB_SEARCH_BASE_URL`, the plain model id |
|
|
70
|
+
| `webSearch.webExtractor` | `WEB_SEARCH_EXTRACTOR` | `true` | Let the search agent open result pages (billed separately by DashScope) |
|
|
71
|
+
| `webSearch.timeoutMs` | `WEB_SEARCH_TIMEOUT_MS` | `120000` | Time budget of one search, at most `600000` |
|
|
72
|
+
| `webSearch.maxPerSession` | `WEB_SEARCH_MAX_PER_SESSION` | `200` | `web_search` calls per session, at most `10000` |
|
|
73
|
+
| `webSearch.allowedHosts` | `WEB_SEARCH_ALLOWED_HOSTS` | `[]` | Extra trusted endpoint host suffixes for configured backends; comma-separated in the variable |
|
|
74
|
+
| | `WEB_SEARCH_BASE_URL` | unset | Endpoint for an environment-only backend |
|
|
75
|
+
| | `WEB_SEARCH_API_KEY` | unset | Key for `WEB_SEARCH_BASE_URL`; `DASHSCOPE_API_KEY` is used when it is unset |
|
|
76
|
+
|
|
77
|
+
Empty environment variables count as unset. Other search services, such as Tavily, can be added as [MCP servers](mcp.md).
|
|
78
|
+
|
|
79
|
+
## Differences from Qwen Code
|
|
80
|
+
|
|
81
|
+
- `pdftotext` counts as installed when it starts at all; Qwen Code also requires `pdftotext -v` to exit with 0, which the xpdf build does not.
|
|
82
|
+
- `web_search` uses only the DashScope search agent; the Qwen subscription search backend is not included.
|
|
83
|
+
- Neither tool asks for permission in the default `yolo` [approval mode](approval-modes.md).
|
package/docs/windows.md
CHANGED
|
@@ -21,7 +21,8 @@ Diffra resolves Bash in this order:
|
|
|
21
21
|
1. `shellPath` from `~/.diffra/agent/settings.json`
|
|
22
22
|
2. Git Bash at `%ProgramFiles%\Git\bin\bash.exe`
|
|
23
23
|
3. Git Bash at `%ProgramFiles(x86)%\Git\bin\bash.exe`
|
|
24
|
-
4. `
|
|
24
|
+
4. Git Bash next to `git.exe` on `PATH`, for Git installed on another drive or in a custom folder (`<Git folder>\cmd\git.exe` gives `<Git folder>\bin\bash.exe`)
|
|
25
|
+
5. `bash.exe` on `PATH`, including Cygwin, MSYS2, or legacy WSL Bash
|
|
25
26
|
|
|
26
27
|
Start Diffra and enter this command to verify the shell:
|
|
27
28
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Work in a Git Worktree
|
|
2
|
+
|
|
3
|
+
A git worktree is a second checkout of the same repository on its own branch. Working in one keeps the agent's changes away from your main checkout until you merge them. Diffra keeps its worktrees at `<repository root>/.diffra/worktrees/<name>`, each on a new branch `worktree-<name>` created from the branch that was checked out. Worktrees come from the built-in extension `builtin:worktree`.
|
|
4
|
+
|
|
5
|
+
## Start a session in a worktree
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
diffra --worktree # a new worktree with a generated name, such as swift-otter-1a2b3c
|
|
9
|
+
diffra --worktree feature-x # a new worktree named feature-x, or the existing one with that name
|
|
10
|
+
diffra --worktree '#123' # pull request 123: fetches origin pull/123/head into worktree pr-123
|
|
11
|
+
diffra --worktree https://github.com/owner/repo/pull/123
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Diffra creates the worktree before the first turn and runs the whole session in it: tools, project settings, and the session's directory are the worktree's. Paths in `-e`, `--skill`, `--prompt-template`, `--theme`, `--session-dir`, and `@file` arguments still resolve against the directory you started in.
|
|
15
|
+
|
|
16
|
+
A value after `--worktree` is always read as the name: `diffra --worktree "fix the bug"` fails because the name is invalid. Put the prompt after another flag, or use `--worktree=<name>`.
|
|
17
|
+
|
|
18
|
+
## Let the agent enter one
|
|
19
|
+
|
|
20
|
+
When you ask for a worktree mid-session, the agent calls `enter_worktree` with an optional `name`. The session's directory does not change: the agent is told to use the worktree's absolute path for every file operation and command until it calls `exit_worktree`.
|
|
21
|
+
|
|
22
|
+
`exit_worktree` takes the `name` and an `action`:
|
|
23
|
+
|
|
24
|
+
- `keep` leaves the worktree and its branch on disk.
|
|
25
|
+
- `remove` deletes the worktree and its branch. It refuses when the worktree has uncommitted changes or untracked files (unless `discard_changes` is `true`), when its branch has commits that no other branch or remote branch has, when another session created it, or when it is the worktree the session runs in.
|
|
26
|
+
|
|
27
|
+
In the `default` and `auto-edit` approval modes both tools ask first.
|
|
28
|
+
|
|
29
|
+
## What else happens
|
|
30
|
+
|
|
31
|
+
- `/.diffra/worktrees/` and the `.diffra-session` marker (which records the session that created a worktree) are added to the repository's `.git/info/exclude`, so they do not show up in `git status`.
|
|
32
|
+
- The footer shows `⎇ <branch> (<name>)` while a worktree is active. `"ui": { "hideBuiltinWorktreeIndicator": true }` hides it.
|
|
33
|
+
- The active worktree is recorded in the session. When you resume the session, the agent is reminded to keep using its path; a worktree that no longer exists is forgotten.
|
|
34
|
+
|
|
35
|
+
## Settings
|
|
36
|
+
|
|
37
|
+
| Setting | Default | Meaning |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `worktree.symlinkDirectories` | unset | Directories relative to the repository root, such as `["node_modules"]`, linked into new worktrees instead of being reinstalled. Absolute paths, entries with `..`, missing sources, and existing targets are skipped |
|
|
40
|
+
| `ui.hideBuiltinWorktreeIndicator` | `false` | Hide the worktree in the footer |
|
|
41
|
+
|
|
42
|
+
## Differences from Qwen Code
|
|
43
|
+
|
|
44
|
+
- The `agent` tool has no `isolation: "worktree"` option: subagents run their tools through the main session, which has one working directory. There is no cleanup of old agent worktrees either.
|
|
45
|
+
- Leaving Diffra does not offer to keep or remove the worktree; use `exit_worktree` or `git worktree remove`.
|
|
46
|
+
- Ownership is checked against the session id only: a worktree created by another session cannot be removed with `exit_worktree`, even after that session ended.
|
|
47
|
+
- After `exit_worktree` with `keep`, the worktree is no longer the session's active worktree.
|
|
48
|
+
- A detached HEAD still gets a `worktree-<name>` branch at that commit, so its commits are never left without a branch.
|
|
49
|
+
|
|
50
|
+
## Sandbox
|
|
51
|
+
|
|
52
|
+
Diffra has no built-in sandbox. Qwen Code's sandboxes need Docker or Podman with a published Qwen Code image, macOS `sandbox-exec`, or Linux bubblewrap or Landlock; none of them run on Windows natively. To isolate Diffra, run it in a container or virtual machine: see [Run Diffra in an isolated environment](containerization.md).
|
|
@@ -49,7 +49,7 @@ For isolation setup and limitations, see [Run Diffra in an isolated environment]
|
|
|
49
49
|
| Extension | Description |
|
|
50
50
|
|-----------|-------------|
|
|
51
51
|
| `preset.ts` | Named presets for model, thinking level, tools, and instructions via `--preset` flag and `/preset` command |
|
|
52
|
-
| `plan-mode/` | Claude Code-style plan mode for read-only exploration with `/plan` command and step tracking |
|
|
52
|
+
| `plan-mode/` | Claude Code-style plan mode for read-only exploration with a `/plan-mode` command and step tracking (Diffra also has built-in plan mode, `/plan`) |
|
|
53
53
|
| `tools.ts` | Interactive `/tools` command to enable/disable tools with session persistence |
|
|
54
54
|
| `handoff.ts` | Transfer context to a new focused session via `/handoff <goal>` |
|
|
55
55
|
| `qna.ts` | Extracts questions from last response into editor via `ctx.ui.setEditorText()` |
|
|
@@ -13,13 +13,13 @@ Read-only exploration mode for safe code analysis.
|
|
|
13
13
|
|
|
14
14
|
## Commands
|
|
15
15
|
|
|
16
|
-
- `/plan` - Toggle plan mode
|
|
16
|
+
- `/plan-mode` - Toggle plan mode (Diffra's built-in plan mode uses `/plan`; this example is separate)
|
|
17
17
|
- `/todos` - Show current plan progress
|
|
18
18
|
- `Ctrl+Alt+P` - Toggle plan mode (shortcut)
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
|
-
1. Enable plan mode with `/plan` or `--plan` flag
|
|
22
|
+
1. Enable plan mode with `/plan-mode` or `--plan` flag
|
|
23
23
|
2. Ask the agent to analyze code and create a plan
|
|
24
24
|
3. The agent should output a numbered plan under a `Plan:` header:
|
|
25
25
|
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* When enabled, built-in write tools are disabled.
|
|
6
6
|
*
|
|
7
7
|
* Features:
|
|
8
|
-
* - /plan command or Ctrl+Alt+P to toggle
|
|
8
|
+
* - /plan-mode command or Ctrl+Alt+P to toggle
|
|
9
|
+
*
|
|
10
|
+
* Diffra has built-in plan mode (`/plan`, `/approval-mode plan`, `exit_plan_mode`). This example
|
|
11
|
+
* shows how an extension can build its own; its command is `/plan-mode` so both can be loaded.
|
|
9
12
|
* - Bash restricted to allowlisted read-only commands
|
|
10
13
|
* - Extracts numbered plan steps from "Plan:" sections
|
|
11
14
|
* - [DONE:n] markers to complete steps during execution
|
|
@@ -142,7 +145,7 @@ export default function planModeExtension(diffra: ExtensionAPI): void {
|
|
|
142
145
|
persistState();
|
|
143
146
|
}
|
|
144
147
|
|
|
145
|
-
diffra.registerCommand("plan", {
|
|
148
|
+
diffra.registerCommand("plan-mode", {
|
|
146
149
|
description: "Toggle plan mode (read-only exploration)",
|
|
147
150
|
handler: async (_args, ctx) => togglePlanMode(ctx),
|
|
148
151
|
});
|
|
@@ -151,7 +154,7 @@ export default function planModeExtension(diffra: ExtensionAPI): void {
|
|
|
151
154
|
description: "Show current plan todo list",
|
|
152
155
|
handler: async (_args, ctx) => {
|
|
153
156
|
if (todoItems.length === 0) {
|
|
154
|
-
ctx.ui.notify("No todos. Create a plan first with /plan", "info");
|
|
157
|
+
ctx.ui.notify("No todos. Create a plan first with /plan-mode", "info");
|
|
155
158
|
return;
|
|
156
159
|
}
|
|
157
160
|
const list = todoItems.map((item, i) => `${i + 1}. ${item.completed ? "✓" : "○"} ${item.text}`).join("\n");
|
|
@@ -172,7 +175,7 @@ export default function planModeExtension(diffra: ExtensionAPI): void {
|
|
|
172
175
|
if (!isSafeCommand(command)) {
|
|
173
176
|
return {
|
|
174
177
|
block: true,
|
|
175
|
-
reason: `Plan mode: command blocked (not allowlisted). Use /plan to disable plan mode first.\nCommand: ${command}`,
|
|
178
|
+
reason: `Plan mode: command blocked (not allowlisted). Use /plan-mode to disable plan mode first.\nCommand: ${command}`,
|
|
176
179
|
};
|
|
177
180
|
}
|
|
178
181
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Subagent Example
|
|
2
2
|
|
|
3
|
+
Diffra also has a built-in `agent` tool for subagents (see [Delegate to Subagents](../../../docs/subagents.md)). This example is separate: it runs each subagent as its own `diffra` process through a `subagent` tool, and both can be loaded together.
|
|
4
|
+
|
|
3
5
|
Delegate tasks to specialized subagents with isolated context windows.
|
|
4
6
|
|
|
5
7
|
## Features
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Diffra has a built-in `agent` tool for subagents (`builtin:agents`, see docs/subagents.md). This
|
|
3
|
+
* example is separate: it runs each subagent as its own diffra process through the `subagent` tool.
|
|
4
|
+
*
|
|
2
5
|
* Subagent Tool - Delegate tasks to specialized agents
|
|
3
6
|
*
|
|
4
7
|
* Spawns a separate `diffra` process for each subagent invocation,
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
* State is stored in tool result details (not external files), which allows
|
|
9
9
|
* proper branching - when you branch, the todo state is automatically
|
|
10
10
|
* correct for that point in history.
|
|
11
|
+
*
|
|
12
|
+
* Diffra also ships a built-in `todo_write` tool (`builtin:todo`, enable it with
|
|
13
|
+
* `"defaultTools": ["+todo_write"]`). This example is a smaller, separate tool
|
|
14
|
+
* named `todo` that shows the session-entry state pattern.
|
|
11
15
|
*/
|
|
12
16
|
|
|
13
17
|
import { StringEnum } from "@diffra-ai/ai";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diffra-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"diffraConfig": {
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"build": "npm run build:unbundled && node ../../scripts/build-coding-agent-bundle.mjs",
|
|
34
34
|
"build:unbundled": "tsc -p tsconfig.build.json && node ../../scripts/package-files.mjs executable dist/cli.js dist/rpc-entry.js && npm run copy-assets",
|
|
35
35
|
"build:binary": "npm --prefix ../tui run build && npm --prefix ../telemetry run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm run build && bun build --compile --no-compile-autoload-bunfig --no-compile-autoload-dotenv --compile-autoload-package-json ./dist/bun/cli.js ./src/utils/image-resize-worker.ts ./src/extensions/codemode/worker.ts --outfile dist/diffra && npm run copy-binary-assets",
|
|
36
|
-
"copy-assets": "node ../../scripts/package-files.mjs copy \"src/modes/interactive/theme/*.json\" dist/modes/interactive/theme && node ../../scripts/package-files.mjs copy \"src/modes/interactive/assets/*.png\" dist/modes/interactive/assets && node ../../scripts/package-files.mjs copy src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/core/export-html/vendor",
|
|
37
|
-
"copy-binary-assets": "node ../../scripts/package-files.mjs copy package.json README.md CHANGELOG.md docs examples ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist && node ../../scripts/package-files.mjs copy \"src/modes/interactive/theme/*.json\" dist/theme && node ../../scripts/package-files.mjs copy \"src/modes/interactive/assets/*.png\" dist/assets && node ../../scripts/package-files.mjs copy src/core/export-html/template.html dist/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/export-html/vendor",
|
|
36
|
+
"copy-assets": "node ../../scripts/package-files.mjs copy \"src/modes/interactive/theme/*.json\" dist/modes/interactive/theme && node ../../scripts/package-files.mjs copy \"src/modes/interactive/assets/*.png\" dist/modes/interactive/assets && node ../../scripts/package-files.mjs copy src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/core/export-html/vendor && node ../../scripts/package-files.mjs copy \"src/extensions/skills/bundled/*\" dist/extensions/skills/bundled",
|
|
37
|
+
"copy-binary-assets": "node ../../scripts/package-files.mjs copy package.json README.md CHANGELOG.md docs examples ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist && node ../../scripts/package-files.mjs copy \"src/modes/interactive/theme/*.json\" dist/theme && node ../../scripts/package-files.mjs copy \"src/modes/interactive/assets/*.png\" dist/assets && node ../../scripts/package-files.mjs copy src/core/export-html/template.html dist/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/export-html/vendor && node ../../scripts/package-files.mjs copy \"src/extensions/skills/bundled/*\" dist/skills",
|
|
38
38
|
"test": "vitest --run",
|
|
39
39
|
"generate:schemas": "node --import ./src/experimental/source-resolver.ts scripts/generate-schemas.ts",
|
|
40
40
|
"generate:references": "node --import ./src/experimental/source-resolver.ts scripts/generate-references.ts",
|
|
41
41
|
"prepublishOnly": "npm run clean && npm run build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@diffra-ai/agent-core": "0.1.
|
|
45
|
-
"@diffra-ai/ai": "0.1.
|
|
46
|
-
"@diffra-ai/codemode": "0.1.
|
|
47
|
-
"@diffra-ai/mcp": "0.1.
|
|
48
|
-
"@diffra-ai/tui": "0.1.
|
|
44
|
+
"@diffra-ai/agent-core": "0.1.3",
|
|
45
|
+
"@diffra-ai/ai": "0.1.3",
|
|
46
|
+
"@diffra-ai/codemode": "0.1.3",
|
|
47
|
+
"@diffra-ai/mcp": "0.1.3",
|
|
48
|
+
"@diffra-ai/tui": "0.1.3",
|
|
49
49
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
50
50
|
"brace-expansion": "5.0.12",
|
|
51
51
|
"chalk": "6.0.0",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"proper-lockfile": "4.1.2",
|
|
61
61
|
"quickjs-wasi": "3.6.2",
|
|
62
62
|
"semver": "7.8.5",
|
|
63
|
+
"turndown": "7.2.4",
|
|
63
64
|
"typebox": "1.3.27",
|
|
64
65
|
"undici": "8.12.4",
|
|
65
66
|
"yaml": "2.9.0"
|
|
@@ -215,6 +215,10 @@
|
|
|
215
215
|
"$ref": "#/$defs/KeybindingValue",
|
|
216
216
|
"description": "Cycle thinking level"
|
|
217
217
|
},
|
|
218
|
+
"app.approvalMode.cycle": {
|
|
219
|
+
"$ref": "#/$defs/KeybindingValue",
|
|
220
|
+
"description": "Cycle approval mode"
|
|
221
|
+
},
|
|
218
222
|
"app.thinking.save": {
|
|
219
223
|
"$ref": "#/$defs/KeybindingValue",
|
|
220
224
|
"description": "Save thinking level"
|