@dev-crowagent/pigeon-coding-agent 0.0.0-stage → 1.7.1
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 +6854 -0
- package/README.md +64 -2
- package/dist/bun/cli.d.ts +5 -0
- package/dist/bun/cli.d.ts.map +1 -0
- package/dist/bun/cli.js +5 -0
- package/dist/bun/cli.js.map +1 -0
- package/dist/bun/restore-sandbox-env.d.ts +17 -0
- package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
- package/dist/bun/restore-sandbox-env.js +36 -0
- package/dist/bun/restore-sandbox-env.js.map +1 -0
- package/dist/bun/runtime-setup.d.ts +2 -0
- package/dist/bun/runtime-setup.d.ts.map +1 -0
- package/dist/bun/runtime-setup.js +12 -0
- package/dist/bun/runtime-setup.js.map +1 -0
- package/dist/bun/sandbox-env-setup.d.ts +2 -0
- package/dist/bun/sandbox-env-setup.d.ts.map +1 -0
- package/dist/bun/sandbox-env-setup.js +4 -0
- package/dist/bun/sandbox-env-setup.js.map +1 -0
- package/dist/bundle/chunks/anthropic-messages-QJJLDZHE.js +3 -0
- package/dist/bundle/chunks/anthropic.js +75 -0
- package/dist/bundle/chunks/azure-openai-responses-DYWZCA5X.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +89 -0
- package/dist/bundle/chunks/chunk-24NILFQL.js +2 -0
- package/dist/bundle/chunks/chunk-2BKJ4UF2.js +6 -0
- package/dist/bundle/chunks/chunk-3FMXCUWP.js +2 -0
- package/dist/bundle/chunks/chunk-3PBWJQ66.js +44 -0
- package/dist/bundle/chunks/chunk-3U6YJAQP.js +2 -0
- package/dist/bundle/chunks/chunk-43YVBVYM.js +2 -0
- package/dist/bundle/chunks/chunk-4DEVB6EZ.js +14 -0
- package/dist/bundle/chunks/chunk-4L3WN2XY.js +2 -0
- package/dist/bundle/chunks/chunk-5CCI6VJX.js +4 -0
- package/dist/bundle/chunks/chunk-5USCOSGN.js +16 -0
- package/dist/bundle/chunks/chunk-6CYCI3EJ.js +12 -0
- package/dist/bundle/chunks/chunk-6QGV3IWD.js +6 -0
- package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
- package/dist/bundle/chunks/chunk-BEK6TYMV.js +2 -0
- package/dist/bundle/chunks/chunk-BMDT5BON.js +17 -0
- package/dist/bundle/chunks/chunk-DRQDKNXA.js +2 -0
- package/dist/bundle/chunks/chunk-F5ZABL6Z.js +20 -0
- package/dist/bundle/chunks/chunk-GSHWAOXD.js +2 -0
- package/dist/bundle/chunks/chunk-HV2R453R.js +20 -0
- package/dist/bundle/chunks/chunk-IDIZ4UTE.js +84 -0
- package/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/dist/bundle/chunks/chunk-JHKMQXNB.js +82 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/bundle/chunks/chunk-L6EYYEJG.js +2 -0
- package/dist/bundle/chunks/chunk-LPXNMA2W.js +2 -0
- package/dist/bundle/chunks/chunk-MXFTMUZ6.js +2 -0
- package/dist/bundle/chunks/chunk-OVXT2WQH.js +2 -0
- package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
- package/dist/bundle/chunks/chunk-PDJOKI64.js +10 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/bundle/chunks/chunk-QISAGK35.js +15 -0
- package/dist/bundle/chunks/chunk-QRGBEJWY.js +2 -0
- package/dist/bundle/chunks/chunk-RDZVAGPR.js +2 -0
- package/dist/bundle/chunks/chunk-S3GGRYIO.js +6 -0
- package/dist/bundle/chunks/chunk-THQI7SZG.js +2 -0
- package/dist/bundle/chunks/chunk-UFWXNM6R.js +131 -0
- package/dist/bundle/chunks/chunk-UKXS2KMU.js +2 -0
- package/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
- package/dist/bundle/chunks/chunk-VPWKWGGZ.js +8 -0
- package/dist/bundle/chunks/chunk-VQAGYOJU.js +2 -0
- package/dist/bundle/chunks/chunk-VRQXNNU2.js +55 -0
- package/dist/bundle/chunks/chunk-WBYK5EUB.js +1248 -0
- package/dist/bundle/chunks/chunk-Z66WXIFH.js +9 -0
- package/dist/bundle/chunks/chunk-ZBURYEWF.js +2 -0
- package/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/dist/bundle/chunks/chunk-ZGRL3DUD.js +31 -0
- package/dist/bundle/chunks/cli-USNOWZD3.js +53 -0
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-3X2SUJJS.js +2 -0
- package/dist/bundle/chunks/codemode-worker.js +480 -0
- package/dist/bundle/chunks/easter-egg-3d-SCT2WGNT.js +2 -0
- package/dist/bundle/chunks/execute-GDKXFYVG.js +507 -0
- package/dist/bundle/chunks/github-copilot.js +2 -0
- package/dist/bundle/chunks/google-generative-ai-GI6YYRFV.js +2 -0
- package/dist/bundle/chunks/google-vertex-6SBDJ6E6.js +2 -0
- package/dist/bundle/chunks/https-proxy-agent-2VXB7436.js +13 -0
- package/dist/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/bundle/chunks/jiti-loader-C3NU2SDH.js +21 -0
- package/dist/bundle/chunks/jiti-static-loader-E6ANQD5T.js +2 -0
- package/dist/bundle/chunks/kimi-coding.js +2 -0
- package/dist/bundle/chunks/lib-TEDK3E5I.js +9 -0
- package/dist/bundle/chunks/llama-cpp-classify-A6IS64ZW.js +22 -0
- package/dist/bundle/chunks/meta.js +2 -0
- package/dist/bundle/chunks/mistral-conversations-7RT7TO7K.js +4 -0
- package/dist/bundle/chunks/multipart-parser-SQ6GDJL7.js +3 -0
- package/dist/bundle/chunks/node-N5BSDOA5.js +16 -0
- package/dist/bundle/chunks/node-TWVVAGPO.js +2 -0
- package/dist/bundle/chunks/openai-chatgpt.js +75 -0
- package/dist/bundle/chunks/openai-codex-responses-P5OBIMST.js +2 -0
- package/dist/bundle/chunks/openai-codex.js +75 -0
- package/dist/bundle/chunks/openai-completions-Z6RGAWT5.js +7 -0
- package/dist/bundle/chunks/openai-decisions-TMZR73QU.js +5 -0
- package/dist/bundle/chunks/openai-responses-MFC5X2SY.js +4 -0
- package/dist/bundle/chunks/openrouter-chat-images-FMPGOOZW.js +2 -0
- package/dist/bundle/chunks/openrouter-images-KM7MMBZV.js +4 -0
- package/dist/bundle/chunks/openrouter.js +75 -0
- package/dist/bundle/chunks/pigeon-decision-USGSVSUH.js +2 -0
- package/dist/bundle/chunks/pigeon-image-XCBEUVPA.js +2 -0
- package/dist/bundle/chunks/pigeon-messages-SJ3XBCLJ.js +2 -0
- package/dist/bundle/chunks/radius.js +75 -0
- package/dist/bundle/chunks/runtime-BOCII6AA.js +2 -0
- package/dist/bundle/chunks/serve-command-NLBMAD3H.js +41 -0
- package/dist/bundle/chunks/src-UK77SYZE.js +4 -0
- package/dist/bundle/chunks/typesafe-system-one-X243G3TP.js +2 -0
- package/dist/bundle/chunks/virtual-modules-MKFBVGCK.js +2 -0
- package/dist/bundle/chunks/xai.js +2 -0
- package/dist/bundle/cli-runtime.js +3 -0
- package/dist/bundle/cli.js +5 -0
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/rpc-entry.js +3 -0
- package/dist/cli/agent-dir-arg.d.ts +20 -0
- package/dist/cli/agent-dir-arg.d.ts.map +1 -0
- package/dist/cli/agent-dir-arg.js +38 -0
- package/dist/cli/agent-dir-arg.js.map +1 -0
- package/dist/cli/args.d.ts +75 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +571 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/auth-check.d.ts +19 -0
- package/dist/cli/auth-check.d.ts.map +1 -0
- package/dist/cli/auth-check.js +50 -0
- package/dist/cli/auth-check.js.map +1 -0
- package/dist/cli/auth-command.d.ts +24 -0
- package/dist/cli/auth-command.d.ts.map +1 -0
- package/dist/cli/auth-command.js +127 -0
- package/dist/cli/auth-command.js.map +1 -0
- package/dist/cli/auth-login.d.ts +15 -0
- package/dist/cli/auth-login.d.ts.map +1 -0
- package/dist/cli/auth-login.js +232 -0
- package/dist/cli/auth-login.js.map +1 -0
- package/dist/cli/auth-logout.d.ts +14 -0
- package/dist/cli/auth-logout.d.ts.map +1 -0
- package/dist/cli/auth-logout.js +57 -0
- package/dist/cli/auth-logout.js.map +1 -0
- package/dist/cli/auth-terminal.d.ts +17 -0
- package/dist/cli/auth-terminal.d.ts.map +1 -0
- package/dist/cli/auth-terminal.js +63 -0
- package/dist/cli/auth-terminal.js.map +1 -0
- package/dist/cli/config-selector.d.ts +16 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +37 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/credential-print.d.ts +13 -0
- package/dist/cli/credential-print.d.ts.map +1 -0
- package/dist/cli/credential-print.js +76 -0
- package/dist/cli/credential-print.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +71 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +93 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/project-trust.d.ts +10 -0
- package/dist/cli/project-trust.d.ts.map +1 -0
- package/dist/cli/project-trust.js +48 -0
- package/dist/cli/project-trust.js.map +1 -0
- package/dist/cli/serve-command.d.ts +3 -0
- package/dist/cli/serve-command.d.ts.map +1 -0
- package/dist/cli/serve-command.js +163 -0
- package/dist/cli/serve-command.js.map +1 -0
- package/dist/cli/serve-command.lazy.d.ts +2 -0
- package/dist/cli/serve-command.lazy.d.ts.map +1 -0
- package/dist/cli/serve-command.lazy.js +2 -0
- package/dist/cli/serve-command.lazy.js.map +1 -0
- package/dist/cli/session-picker.d.ts +10 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +39 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli/setup.d.ts +2 -0
- package/dist/cli/setup.d.ts.map +1 -0
- package/dist/cli/setup.js +12 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +21 -0
- package/dist/cli/startup-ui.d.ts.map +1 -0
- package/dist/cli/startup-ui.js +191 -0
- package/dist/cli/startup-ui.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +6 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +132 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +549 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +135 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +352 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +91 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +158 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +1041 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +4027 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +21 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +72 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +440 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +34 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +114 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/bug-report-upload.d.ts +12 -0
- package/dist/core/bug-report-upload.d.ts.map +1 -0
- package/dist/core/bug-report-upload.js +22 -0
- package/dist/core/bug-report-upload.js.map +1 -0
- package/dist/core/bug-report.d.ts +184 -0
- package/dist/core/bug-report.d.ts.map +1 -0
- package/dist/core/bug-report.js +292 -0
- package/dist/core/bug-report.js.map +1 -0
- package/dist/core/cache-stats.d.ts +49 -0
- package/dist/core/cache-stats.d.ts.map +1 -0
- package/dist/core/cache-stats.js +112 -0
- package/dist/core/cache-stats.js.map +1 -0
- package/dist/core/cache-warmer.d.ts +70 -0
- package/dist/core/cache-warmer.d.ts.map +1 -0
- package/dist/core/cache-warmer.js +278 -0
- package/dist/core/cache-warmer.js.map +1 -0
- package/dist/core/client-identity.d.ts +7 -0
- package/dist/core/client-identity.d.ts.map +1 -0
- package/dist/core/client-identity.js +14 -0
- package/dist/core/client-identity.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +100 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +263 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +145 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +752 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +45 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +149 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/crash-log.d.ts +28 -0
- package/dist/core/crash-log.d.ts.map +1 -0
- package/dist/core/crash-log.js +140 -0
- package/dist/core/crash-log.js.map +1 -0
- package/dist/core/defaults.d.ts +4 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +11 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +38 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +122 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/experimental.d.ts +2 -0
- package/dist/core/experimental.d.ts.map +1 -0
- package/dist/core/experimental.js +4 -0
- package/dist/core/experimental.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +27 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +286 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +230 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1085 -0
- package/dist/core/export-html/template.html +56 -0
- package/dist/core/export-html/template.js +2044 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +112 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +79 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/jiti-loader.d.ts +2 -0
- package/dist/core/extensions/jiti-loader.d.ts.map +1 -0
- package/dist/core/extensions/jiti-loader.js +4 -0
- package/dist/core/extensions/jiti-loader.js.map +1 -0
- package/dist/core/extensions/jiti-static-loader.d.ts +2 -0
- package/dist/core/extensions/jiti-static-loader.d.ts.map +1 -0
- package/dist/core/extensions/jiti-static-loader.js +4 -0
- package/dist/core/extensions/jiti-static-loader.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +23 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +727 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/pigeon-ai-extension-view.d.ts +19 -0
- package/dist/core/extensions/pigeon-ai-extension-view.d.ts.map +1 -0
- package/dist/core/extensions/pigeon-ai-extension-view.js +22 -0
- package/dist/core/extensions/pigeon-ai-extension-view.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +216 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +1252 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1815 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +48 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/virtual-modules.d.ts +3 -0
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -0
- package/dist/core/extensions/virtual-modules.js +42 -0
- package/dist/core/extensions/virtual-modules.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +22 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +64 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +336 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -0
- package/dist/core/http-dispatcher.js +98 -0
- package/dist/core/http-dispatcher.js.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +13 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/key-id-schema.d.ts +6 -0
- package/dist/core/key-id-schema.d.ts.map +1 -0
- package/dist/core/key-id-schema.js +16 -0
- package/dist/core/key-id-schema.js.map +1 -0
- package/dist/core/keybindings-schema.d.ts +4 -0
- package/dist/core/keybindings-schema.d.ts.map +1 -0
- package/dist/core/keybindings-schema.js +16 -0
- package/dist/core/keybindings-schema.js.map +1 -0
- package/dist/core/keybindings.d.ts +560 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +325 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/mcp-config-schema.d.ts +83 -0
- package/dist/core/mcp-config-schema.d.ts.map +1 -0
- package/dist/core/mcp-config-schema.js +150 -0
- package/dist/core/mcp-config-schema.js.map +1 -0
- package/dist/core/mcp-servers.d.ts +80 -0
- package/dist/core/mcp-servers.d.ts.map +1 -0
- package/dist/core/mcp-servers.js +165 -0
- package/dist/core/mcp-servers.js.map +1 -0
- package/dist/core/messages.d.ts +81 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +132 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-config.d.ts +2049 -0
- package/dist/core/model-config.d.ts.map +1 -0
- package/dist/core/model-config.js +167 -0
- package/dist/core/model-config.js.map +1 -0
- package/dist/core/model-registry.d.ts +63 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +144 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +129 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +428 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/model-runtime.d.ts +150 -0
- package/dist/core/model-runtime.d.ts.map +1 -0
- package/dist/core/model-runtime.js +778 -0
- package/dist/core/model-runtime.js.map +1 -0
- package/dist/core/models-store.d.ts +22 -0
- package/dist/core/models-store.d.ts.map +1 -0
- package/dist/core/models-store.js +115 -0
- package/dist/core/models-store.js.map +1 -0
- package/dist/core/nested-tool-calls.d.ts +103 -0
- package/dist/core/nested-tool-calls.d.ts.map +1 -0
- package/dist/core/nested-tool-calls.js +179 -0
- package/dist/core/nested-tool-calls.js.map +1 -0
- package/dist/core/output-guard.d.ts +7 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +89 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +256 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +2426 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/pigeon-ai-schemas.d.ts +171 -0
- package/dist/core/pigeon-ai-schemas.d.ts.map +1 -0
- package/dist/core/pigeon-ai-schemas.js +21 -0
- package/dist/core/pigeon-ai-schemas.js.map +1 -0
- package/dist/core/pigeon-manifest.d.ts +9 -0
- package/dist/core/pigeon-manifest.d.ts.map +1 -0
- package/dist/core/pigeon-manifest.js +30 -0
- package/dist/core/pigeon-manifest.js.map +1 -0
- package/dist/core/preferred-providers.d.ts +17 -0
- package/dist/core/preferred-providers.d.ts.map +1 -0
- package/dist/core/preferred-providers.js +24 -0
- package/dist/core/preferred-providers.js.map +1 -0
- package/dist/core/project-trust.d.ts +15 -0
- package/dist/core/project-trust.d.ts.map +1 -0
- package/dist/core/project-trust.js +60 -0
- package/dist/core/project-trust.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +59 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +283 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-composer.d.ts +82 -0
- package/dist/core/provider-composer.d.ts.map +1 -0
- package/dist/core/provider-composer.js +495 -0
- package/dist/core/provider-composer.js.map +1 -0
- package/dist/core/provider-matching.d.ts +6 -0
- package/dist/core/provider-matching.d.ts.map +1 -0
- package/dist/core/provider-matching.js +8 -0
- package/dist/core/provider-matching.js.map +1 -0
- package/dist/core/radius-mcp.d.ts +13 -0
- package/dist/core/radius-mcp.d.ts.map +1 -0
- package/dist/core/radius-mcp.js +29 -0
- package/dist/core/radius-mcp.js.map +1 -0
- package/dist/core/radius.d.ts +7 -0
- package/dist/core/radius.d.ts.map +1 -0
- package/dist/core/radius.js +10 -0
- package/dist/core/radius.js.map +1 -0
- package/dist/core/remote-catalog-provider.d.ts +23 -0
- package/dist/core/remote-catalog-provider.d.ts.map +1 -0
- package/dist/core/remote-catalog-provider.js +212 -0
- package/dist/core/remote-catalog-provider.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +32 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +253 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +237 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +1027 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/runtime-credentials.d.ts +23 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -0
- package/dist/core/runtime-credentials.js +53 -0
- package/dist/core/runtime-credentials.js.map +1 -0
- package/dist/core/sdk.d.ts +126 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +334 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +26 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +46 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-export.d.ts +8 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +33 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts +433 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1569 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-defaults.d.ts +70 -0
- package/dist/core/settings-defaults.d.ts.map +1 -0
- package/dist/core/settings-defaults.js +71 -0
- package/dist/core/settings-defaults.js.map +1 -0
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +253 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +1161 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/settings-schema.d.ts +415 -0
- package/dist/core/settings-schema.d.ts.map +1 -0
- package/dist/core/settings-schema.js +362 -0
- package/dist/core/settings-schema.js.map +1 -0
- package/dist/core/skills.d.ts +63 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +404 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +15 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +28 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +35 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +48 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/system-prompt.d.ts +77 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +151 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/timings.d.ts +10 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +41 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +103 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +380 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +110 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +562 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +44 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +146 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +52 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +42 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +308 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +43 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +266 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +43 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +129 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +41 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +127 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +75 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +223 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +99 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +52 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/tools/read.d.ts +68 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +297 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +50 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +153 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/renderers/bash.d.ts +12 -0
- package/dist/core/tools/renderers/bash.d.ts.map +1 -0
- package/dist/core/tools/renderers/bash.js +95 -0
- package/dist/core/tools/renderers/bash.js.map +1 -0
- package/dist/core/tools/renderers/edit.d.ts +23 -0
- package/dist/core/tools/renderers/edit.d.ts.map +1 -0
- package/dist/core/tools/renderers/edit.js +168 -0
- package/dist/core/tools/renderers/edit.js.map +1 -0
- package/dist/core/tools/renderers/find.d.ts +10 -0
- package/dist/core/tools/renderers/find.d.ts.map +1 -0
- package/dist/core/tools/renderers/find.js +64 -0
- package/dist/core/tools/renderers/find.js.map +1 -0
- package/dist/core/tools/renderers/grep.d.ts +10 -0
- package/dist/core/tools/renderers/grep.d.ts.map +1 -0
- package/dist/core/tools/renderers/grep.js +69 -0
- package/dist/core/tools/renderers/grep.js.map +1 -0
- package/dist/core/tools/renderers/index.d.ts +28 -0
- package/dist/core/tools/renderers/index.d.ts.map +1 -0
- package/dist/core/tools/renderers/index.js +47 -0
- package/dist/core/tools/renderers/index.js.map +1 -0
- package/dist/core/tools/renderers/ls.d.ts +10 -0
- package/dist/core/tools/renderers/ls.d.ts.map +1 -0
- package/dist/core/tools/renderers/ls.js +58 -0
- package/dist/core/tools/renderers/ls.js.map +1 -0
- package/dist/core/tools/renderers/read.d.ts +11 -0
- package/dist/core/tools/renderers/read.d.ts.map +1 -0
- package/dist/core/tools/renderers/read.js +130 -0
- package/dist/core/tools/renderers/read.js.map +1 -0
- package/dist/core/tools/renderers/write.d.ts +10 -0
- package/dist/core/tools/renderers/write.d.ts.map +1 -0
- package/dist/core/tools/renderers/write.js +153 -0
- package/dist/core/tools/renderers/write.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +26 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +38 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +74 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +244 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/write.d.ts +30 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +61 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/core/trust-manager.d.ts +36 -0
- package/dist/core/trust-manager.d.ts.map +1 -0
- package/dist/core/trust-manager.js +210 -0
- package/dist/core/trust-manager.js.map +1 -0
- package/dist/core/usage-totals.d.ts +21 -0
- package/dist/core/usage-totals.d.ts.map +1 -0
- package/dist/core/usage-totals.js +84 -0
- package/dist/core/usage-totals.js.map +1 -0
- package/dist/core/virtual-models.d.ts +117 -0
- package/dist/core/virtual-models.d.ts.map +1 -0
- package/dist/core/virtual-models.js +124 -0
- package/dist/core/virtual-models.js.map +1 -0
- package/dist/extensions/codemode/execute.d.ts +16 -0
- package/dist/extensions/codemode/execute.d.ts.map +1 -0
- package/dist/extensions/codemode/execute.js +775 -0
- package/dist/extensions/codemode/execute.js.map +1 -0
- package/dist/extensions/codemode/execute.lazy.d.ts +3 -0
- package/dist/extensions/codemode/execute.lazy.d.ts.map +1 -0
- package/dist/extensions/codemode/execute.lazy.js +3 -0
- package/dist/extensions/codemode/execute.lazy.js.map +1 -0
- package/dist/extensions/codemode/index.d.ts +21 -0
- package/dist/extensions/codemode/index.d.ts.map +1 -0
- package/dist/extensions/codemode/index.js +33 -0
- package/dist/extensions/codemode/index.js.map +1 -0
- package/dist/extensions/codemode/renderer.d.ts +12 -0
- package/dist/extensions/codemode/renderer.d.ts.map +1 -0
- package/dist/extensions/codemode/renderer.js +147 -0
- package/dist/extensions/codemode/renderer.js.map +1 -0
- package/dist/extensions/codemode/tool.d.ts +125 -0
- package/dist/extensions/codemode/tool.d.ts.map +1 -0
- package/dist/extensions/codemode/tool.js +335 -0
- package/dist/extensions/codemode/tool.js.map +1 -0
- package/dist/extensions/codemode/worker.d.ts +7 -0
- package/dist/extensions/codemode/worker.d.ts.map +1 -0
- package/dist/extensions/codemode/worker.js +7 -0
- package/dist/extensions/codemode/worker.js.map +1 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +13 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/llama/client.d.ts +74 -0
- package/dist/extensions/llama/client.d.ts.map +1 -0
- package/dist/extensions/llama/client.js +324 -0
- package/dist/extensions/llama/client.js.map +1 -0
- package/dist/extensions/llama/huggingface.d.ts +23 -0
- package/dist/extensions/llama/huggingface.d.ts.map +1 -0
- package/dist/extensions/llama/huggingface.js +141 -0
- package/dist/extensions/llama/huggingface.js.map +1 -0
- package/dist/extensions/llama/index.d.ts +3 -0
- package/dist/extensions/llama/index.d.ts.map +1 -0
- package/dist/extensions/llama/index.js +219 -0
- package/dist/extensions/llama/index.js.map +1 -0
- package/dist/extensions/llama/provider.d.ts +12 -0
- package/dist/extensions/llama/provider.d.ts.map +1 -0
- package/dist/extensions/llama/provider.js +238 -0
- package/dist/extensions/llama/provider.js.map +1 -0
- package/dist/extensions/llama/ui.d.ts +42 -0
- package/dist/extensions/llama/ui.d.ts.map +1 -0
- package/dist/extensions/llama/ui.js +441 -0
- package/dist/extensions/llama/ui.js.map +1 -0
- package/dist/extensions/mcp/cli.d.ts +23 -0
- package/dist/extensions/mcp/cli.d.ts.map +1 -0
- package/dist/extensions/mcp/cli.js +555 -0
- package/dist/extensions/mcp/cli.js.map +1 -0
- package/dist/extensions/mcp/cli.lazy.d.ts +3 -0
- package/dist/extensions/mcp/cli.lazy.d.ts.map +1 -0
- package/dist/extensions/mcp/cli.lazy.js +3 -0
- package/dist/extensions/mcp/cli.lazy.js.map +1 -0
- package/dist/extensions/mcp/config.d.ts +86 -0
- package/dist/extensions/mcp/config.d.ts.map +1 -0
- package/dist/extensions/mcp/config.js +193 -0
- package/dist/extensions/mcp/config.js.map +1 -0
- package/dist/extensions/mcp/index.d.ts +79 -0
- package/dist/extensions/mcp/index.d.ts.map +1 -0
- package/dist/extensions/mcp/index.js +1203 -0
- package/dist/extensions/mcp/index.js.map +1 -0
- package/dist/extensions/mcp/log.d.ts +16 -0
- package/dist/extensions/mcp/log.d.ts.map +1 -0
- package/dist/extensions/mcp/log.js +66 -0
- package/dist/extensions/mcp/log.js.map +1 -0
- package/dist/extensions/mcp/oauth.d.ts +64 -0
- package/dist/extensions/mcp/oauth.d.ts.map +1 -0
- package/dist/extensions/mcp/oauth.js +188 -0
- package/dist/extensions/mcp/oauth.js.map +1 -0
- package/dist/extensions/mcp/resources.d.ts +36 -0
- package/dist/extensions/mcp/resources.d.ts.map +1 -0
- package/dist/extensions/mcp/resources.js +262 -0
- package/dist/extensions/mcp/resources.js.map +1 -0
- package/dist/extensions/mcp/runtime.d.ts +105 -0
- package/dist/extensions/mcp/runtime.d.ts.map +1 -0
- package/dist/extensions/mcp/runtime.js +450 -0
- package/dist/extensions/mcp/runtime.js.map +1 -0
- package/dist/extensions/mcp/runtime.lazy.d.ts +3 -0
- package/dist/extensions/mcp/runtime.lazy.d.ts.map +1 -0
- package/dist/extensions/mcp/runtime.lazy.js +3 -0
- package/dist/extensions/mcp/runtime.lazy.js.map +1 -0
- package/dist/extensions/mcp/tools.d.ts +57 -0
- package/dist/extensions/mcp/tools.d.ts.map +1 -0
- package/dist/extensions/mcp/tools.js +141 -0
- package/dist/extensions/mcp/tools.js.map +1 -0
- package/dist/extensions/mcp/ui.d.ts +61 -0
- package/dist/extensions/mcp/ui.d.ts.map +1 -0
- package/dist/extensions/mcp/ui.js +195 -0
- package/dist/extensions/mcp/ui.js.map +1 -0
- package/dist/extensions/tool-search/index.d.ts +12 -0
- package/dist/extensions/tool-search/index.d.ts.map +1 -0
- package/dist/extensions/tool-search/index.js +15 -0
- package/dist/extensions/tool-search/index.js.map +1 -0
- package/dist/extensions/tool-search/tool.d.ts +86 -0
- package/dist/extensions/tool-search/tool.d.ts.map +1 -0
- package/dist/extensions/tool-search/tool.js +267 -0
- package/dist/extensions/tool-search/tool.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +16 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +960 -0
- package/dist/main.js.map +1 -0
- package/dist/migrations.d.ts +31 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +280 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/diagnostics-stderr.d.ts +4 -0
- package/dist/modes/diagnostics-stderr.d.ts.map +1 -0
- package/dist/modes/diagnostics-stderr.js +11 -0
- package/dist/modes/diagnostics-stderr.js.map +1 -0
- package/dist/modes/index.d.ts +10 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/bug-report.d.ts +16 -0
- package/dist/modes/interactive/bug-report.d.ts.map +1 -0
- package/dist/modes/interactive/bug-report.js +210 -0
- package/dist/modes/interactive/bug-report.js.map +1 -0
- package/dist/modes/interactive/chat-viewport.d.ts +20 -0
- package/dist/modes/interactive/chat-viewport.d.ts.map +1 -0
- package/dist/modes/interactive/chat-viewport.js +28 -0
- package/dist/modes/interactive/chat-viewport.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +37 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +335 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +30 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +188 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/auth-url.d.ts +14 -0
- package/dist/modes/interactive/components/auth-url.d.ts.map +1 -0
- package/dist/modes/interactive/components/auth-url.js +37 -0
- package/dist/modes/interactive/components/auth-url.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +39 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +181 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +54 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +21 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +62 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +21 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +63 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +102 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +761 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +30 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +134 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-entry.d.ts +21 -0
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-entry.js +59 -0
- package/dist/modes/interactive/components/custom-entry.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +25 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +96 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +139 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/easter-egg-3d.d.ts +104 -0
- package/dist/modes/interactive/components/easter-egg-3d.d.ts.map +1 -0
- package/dist/modes/interactive/components/easter-egg-3d.js +1141 -0
- package/dist/modes/interactive/components/easter-egg-3d.js.map +1 -0
- package/dist/modes/interactive/components/easter-egg-3d.lazy.d.ts +6 -0
- package/dist/modes/interactive/components/easter-egg-3d.lazy.d.ts.map +1 -0
- package/dist/modes/interactive/components/easter-egg-3d.lazy.js +23 -0
- package/dist/modes/interactive/components/easter-egg-3d.lazy.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +26 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +107 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +25 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +67 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +27 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +95 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +23 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.js +79 -0
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +39 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +265 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +33 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +34 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +36 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +59 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +272 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts +4 -0
- package/dist/modes/interactive/components/markdown-transform.d.ts.map +1 -0
- package/dist/modes/interactive/components/markdown-transform.js +20 -0
- package/dist/modes/interactive/components/markdown-transform.js.map +1 -0
- package/dist/modes/interactive/components/mermaid.d.ts +12 -0
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -0
- package/dist/modes/interactive/components/mermaid.js +89 -0
- package/dist/modes/interactive/components/mermaid.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +61 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +383 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +59 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +207 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/pigeon-logo.d.ts +19 -0
- package/dist/modes/interactive/components/pigeon-logo.d.ts.map +1 -0
- package/dist/modes/interactive/components/pigeon-logo.js +37 -0
- package/dist/modes/interactive/components/pigeon-logo.js.map +1 -0
- package/dist/modes/interactive/components/provider-brand.d.ts +14 -0
- package/dist/modes/interactive/components/provider-brand.d.ts.map +1 -0
- package/dist/modes/interactive/components/provider-brand.js +66 -0
- package/dist/modes/interactive/components/provider-brand.js.map +1 -0
- package/dist/modes/interactive/components/radius-login-selector.d.ts +14 -0
- package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/radius-login-selector.js +55 -0
- package/dist/modes/interactive/components/radius-login-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +47 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +345 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +27 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +219 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +103 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +917 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +96 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +764 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts +72 -0
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-submenu.js +171 -0
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +22 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +65 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/status-indicator.d.ts +30 -0
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -0
- package/dist/modes/interactive/components/status-indicator.js +67 -0
- package/dist/modes/interactive/components/status-indicator.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/themed-text.d.ts +17 -0
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -0
- package/dist/modes/interactive/components/themed-text.js +29 -0
- package/dist/modes/interactive/components/themed-text.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +23 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +113 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +79 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +338 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +96 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1262 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/trust-selector.js +91 -0
- package/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +31 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +122 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +19 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +60 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +48 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +66 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/external-editor.d.ts +13 -0
- package/dist/modes/interactive/external-editor.d.ts.map +1 -0
- package/dist/modes/interactive/external-editor.js +60 -0
- package/dist/modes/interactive/external-editor.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +536 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +6212 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts +7 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.js +34 -0
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -0
- package/dist/modes/interactive/model-search.d.ts +22 -0
- package/dist/modes/interactive/model-search.d.ts.map +1 -0
- package/dist/modes/interactive/model-search.js +36 -0
- package/dist/modes/interactive/model-search.js.map +1 -0
- package/dist/modes/interactive/program-resume-reporter.d.ts +32 -0
- package/dist/modes/interactive/program-resume-reporter.d.ts.map +1 -0
- package/dist/modes/interactive/program-resume-reporter.js +56 -0
- package/dist/modes/interactive/program-resume-reporter.js.map +1 -0
- package/dist/modes/interactive/program-status-reporter.d.ts +36 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -0
- package/dist/modes/interactive/program-status-reporter.js +114 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -0
- package/dist/modes/interactive/session-share.d.ts +18 -0
- package/dist/modes/interactive/session-share.d.ts.map +1 -0
- package/dist/modes/interactive/session-share.js +205 -0
- package/dist/modes/interactive/session-share.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +78 -0
- package/dist/modes/interactive/theme/light.json +78 -0
- package/dist/modes/interactive/theme/system-theme.d.ts +55 -0
- package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/system-theme.js +546 -0
- package/dist/modes/interactive/theme/system-theme.js.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +81 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.js +210 -0
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +165 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +918 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/interactive/tui-renderer.d.ts +22 -0
- package/dist/modes/interactive/tui-renderer.d.ts.map +1 -0
- package/dist/modes/interactive/tui-renderer.js +67 -0
- package/dist/modes/interactive/tui-renderer.js.map +1 -0
- package/dist/modes/json-event.d.ts +34 -0
- package/dist/modes/json-event.d.ts.map +1 -0
- package/dist/modes/json-event.js +29 -0
- package/dist/modes/json-event.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +155 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +49 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +254 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +499 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +677 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +478 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/package-manager-cli.d.ts +9 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +1094 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/rpc-entry.d.ts +3 -0
- package/dist/rpc-entry.d.ts.map +1 -0
- package/dist/rpc-entry.js +11 -0
- package/dist/rpc-entry.js.map +1 -0
- package/dist/utils/abort.d.ts +5 -0
- package/dist/utils/abort.d.ts.map +1 -0
- package/dist/utils/abort.js +48 -0
- package/dist/utils/abort.js.map +1 -0
- package/dist/utils/ansi.d.ts +10 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +74 -0
- package/dist/utils/ansi.js.map +1 -0
- package/dist/utils/changelog.d.ts +22 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +172 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +18 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +106 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-command.d.ts +7 -0
- package/dist/utils/clipboard-command.d.ts.map +1 -0
- package/dist/utils/clipboard-command.js +52 -0
- package/dist/utils/clipboard-command.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +214 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard.d.ts +6 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +162 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -0
- package/dist/utils/exif-orientation.js +157 -0
- package/dist/utils/exif-orientation.js.map +1 -0
- package/dist/utils/flush-stdout.d.ts +8 -0
- package/dist/utils/flush-stdout.d.ts.map +1 -0
- package/dist/utils/flush-stdout.js +23 -0
- package/dist/utils/flush-stdout.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +27 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +195 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/image-convert.d.ts +22 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +84 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-process.d.ts +18 -0
- package/dist/utils/image-process.d.ts.map +1 -0
- package/dist/utils/image-process.js +83 -0
- package/dist/utils/image-process.js.map +1 -0
- package/dist/utils/image-resize-core.d.ts +42 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -0
- package/dist/utils/image-resize-core.js +131 -0
- package/dist/utils/image-resize-core.js.map +1 -0
- package/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/utils/image-resize-worker.js +32 -0
- package/dist/utils/image-resize-worker.js.map +1 -0
- package/dist/utils/image-resize.d.ts +16 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +98 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +7 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/management-http.d.ts +25 -0
- package/dist/utils/management-http.d.ts.map +1 -0
- package/dist/utils/management-http.js +54 -0
- package/dist/utils/management-http.js.map +1 -0
- package/dist/utils/mime.d.ts +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +110 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +25 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/output-files.d.ts +31 -0
- package/dist/utils/output-files.d.ts.map +1 -0
- package/dist/utils/output-files.js +65 -0
- package/dist/utils/output-files.js.map +1 -0
- package/dist/utils/paths.d.ts +51 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +156 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/pigeon-user-agent.d.ts +3 -0
- package/dist/utils/pigeon-user-agent.d.ts.map +1 -0
- package/dist/utils/pigeon-user-agent.js +6 -0
- package/dist/utils/pigeon-user-agent.js.map +1 -0
- package/dist/utils/shell.d.ts +36 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +308 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts +18 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +191 -0
- package/dist/utils/syntax-highlight.js.map +1 -0
- package/dist/utils/terminal-question.d.ts +8 -0
- package/dist/utils/terminal-question.d.ts.map +1 -0
- package/dist/utils/terminal-question.js +24 -0
- package/dist/utils/terminal-question.js.map +1 -0
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/dist/utils/tool-result-images.d.ts +21 -0
- package/dist/utils/tool-result-images.d.ts.map +1 -0
- package/dist/utils/tool-result-images.js +48 -0
- package/dist/utils/tool-result-images.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +14 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +340 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +19 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +82 -0
- package/dist/utils/version-check.js.map +1 -0
- package/dist/utils/web-url.d.ts +12 -0
- package/dist/utils/web-url.d.ts.map +1 -0
- package/dist/utils/web-url.js +20 -0
- package/dist/utils/web-url.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -0
- package/dist/utils/windows-self-update.js +77 -0
- package/dist/utils/windows-self-update.js.map +1 -0
- package/dist/utils/wsl.d.ts +8 -0
- package/dist/utils/wsl.d.ts.map +1 -0
- package/dist/utils/wsl.js +23 -0
- package/dist/utils/wsl.js.map +1 -0
- package/dist/utils/zip.d.ts +7 -0
- package/dist/utils/zip.d.ts.map +1 -0
- package/dist/utils/zip.js +60 -0
- package/dist/utils/zip.js.map +1 -0
- package/docs/cli-integration.md +106 -0
- package/docs/cli.md +358 -0
- package/docs/codemode.md +241 -0
- package/docs/compaction.md +463 -0
- package/docs/configuration.md +47 -0
- package/docs/containerization.md +151 -0
- package/docs/custom-provider.md +227 -0
- package/docs/docs.json +224 -0
- package/docs/environment-variables.md +103 -0
- package/docs/extensions.md +3376 -0
- package/docs/how-pigeon-works.md +49 -0
- package/docs/index.md +39 -0
- package/docs/json.md +226 -0
- package/docs/keybindings.md +195 -0
- package/docs/llama-cpp.md +138 -0
- package/docs/mcp.md +301 -0
- package/docs/message-types.md +280 -0
- package/docs/models-configuration.md +213 -0
- package/docs/models.md +246 -0
- package/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/docs/packages.md +153 -0
- package/docs/prompt-templates.md +59 -0
- package/docs/providers.md +249 -0
- package/docs/quickstart.md +124 -0
- package/docs/rpc-commands.md +860 -0
- package/docs/rpc-extension-ui.md +200 -0
- package/docs/rpc.md +195 -0
- package/docs/sdk.md +147 -0
- package/docs/security.md +99 -0
- package/docs/session-format.md +293 -0
- package/docs/sessions.md +82 -0
- package/docs/settings.md +175 -0
- package/docs/shell-aliases.md +93 -0
- package/docs/skills.md +93 -0
- package/docs/slash-commands.md +61 -0
- package/docs/subscriptions.md +96 -0
- package/docs/terminal-setup.md +290 -0
- package/docs/termux.md +117 -0
- package/docs/themes.md +138 -0
- package/docs/tmux.md +61 -0
- package/docs/tui.md +198 -0
- package/docs/usage.md +94 -0
- package/docs/virtual-models.md +114 -0
- package/docs/windows.md +109 -0
- package/examples/README.md +36 -0
- package/examples/extensions/README.md +212 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +230 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/cron/README.md +43 -0
- package/examples/extensions/cron/index.ts +337 -0
- package/examples/extensions/custom-compaction.ts +117 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +613 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/debug-provider.ts +90 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +81 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/entry-renderer.ts +41 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/handoff.ts +190 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/jev-router.ts +113 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +353 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +57 -0
- package/examples/extensions/overlay-qa-tests.ts +1456 -0
- package/examples/extensions/overlay-test.ts +165 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +66 -0
- package/examples/extensions/plan-mode/index.ts +404 -0
- package/examples/extensions/plan-mode/utils.ts +194 -0
- package/examples/extensions/preset.ts +438 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +49 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +118 -0
- package/examples/extensions/question.ts +286 -0
- package/examples/extensions/questionnaire.ts +448 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +49 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/skill/README.md +37 -0
- package/examples/extensions/skill/index.ts +70 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +238 -0
- package/examples/extensions/subagent/agents/debugger.md +32 -0
- package/examples/extensions/subagent/agents/init.md +40 -0
- package/examples/extensions/subagent/agents/memory.md +32 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/recall.md +33 -0
- package/examples/extensions/subagent/agents/reflection.md +39 -0
- package/examples/extensions/subagent/agents/researcher.md +28 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/tester.md +31 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +157 -0
- package/examples/extensions/subagent/index.ts +1788 -0
- package/examples/extensions/subagent/prompts/debug.md +10 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/reflect.md +9 -0
- package/examples/extensions/subagent/prompts/research-and-plan.md +9 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +199 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +304 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +148 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/rpc-client.ts +35 -0
- package/examples/rpc-extension-ui.ts +662 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +75 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +99 -0
- package/examples/sdk/07-context-files.ts +47 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +74 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/14-codemode-mcp.ts +61 -0
- package/examples/sdk/README.md +141 -0
- package/examples/tsconfig.json +110 -0
- package/package.json +99 -5
- package/schemas/keybindings.schema.json +393 -0
- package/schemas/mcp.schema.json +306 -0
- package/schemas/models.schema.json +1253 -0
- package/schemas/settings.schema.json +1658 -0
- package/schemas/theme.schema.json +365 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSH Remote Execution Example
|
|
3
|
+
*
|
|
4
|
+
* Demonstrates delegating tool operations to a remote machine via SSH.
|
|
5
|
+
* When --ssh is provided, read/write/edit/bash run on the remote.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* pigeon -e ./ssh.ts --ssh user@host
|
|
9
|
+
* pigeon -e ./ssh.ts --ssh user@host:/remote/path
|
|
10
|
+
*
|
|
11
|
+
* Requirements:
|
|
12
|
+
* - SSH key-based auth (no password prompts)
|
|
13
|
+
* - bash on remote
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { spawn } from "node:child_process";
|
|
17
|
+
import type { ExtensionAPI } from "@dev-crowagent/pigeon-coding-agent";
|
|
18
|
+
import {
|
|
19
|
+
type BashOperations,
|
|
20
|
+
createBashTool,
|
|
21
|
+
createEditTool,
|
|
22
|
+
createReadTool,
|
|
23
|
+
createWriteTool,
|
|
24
|
+
type EditOperations,
|
|
25
|
+
type ReadOperations,
|
|
26
|
+
type WriteOperations,
|
|
27
|
+
} from "@dev-crowagent/pigeon-coding-agent";
|
|
28
|
+
|
|
29
|
+
function sshExec(remote: string, command: string): Promise<Buffer> {
|
|
30
|
+
return new Promise((resolve, reject) => {
|
|
31
|
+
const child = spawn("ssh", [remote, command], { stdio: ["ignore", "pipe", "pipe"] });
|
|
32
|
+
const chunks: Buffer[] = [];
|
|
33
|
+
const errChunks: Buffer[] = [];
|
|
34
|
+
child.stdout.on("data", (data) => chunks.push(data));
|
|
35
|
+
child.stderr.on("data", (data) => errChunks.push(data));
|
|
36
|
+
child.on("error", reject);
|
|
37
|
+
child.on("close", (code) => {
|
|
38
|
+
if (code !== 0) {
|
|
39
|
+
reject(new Error(`SSH failed (${code}): ${Buffer.concat(errChunks).toString()}`));
|
|
40
|
+
} else {
|
|
41
|
+
resolve(Buffer.concat(chunks));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function createRemoteReadOps(remote: string, remoteCwd: string, localCwd: string): ReadOperations {
|
|
48
|
+
const toRemote = (p: string) => p.replace(localCwd, remoteCwd);
|
|
49
|
+
return {
|
|
50
|
+
readFile: (p) => sshExec(remote, `cat ${JSON.stringify(toRemote(p))}`),
|
|
51
|
+
access: (p) => sshExec(remote, `test -r ${JSON.stringify(toRemote(p))}`).then(() => {}),
|
|
52
|
+
detectImageMimeType: async (p) => {
|
|
53
|
+
try {
|
|
54
|
+
const r = await sshExec(remote, `file --mime-type -b ${JSON.stringify(toRemote(p))}`);
|
|
55
|
+
const m = r.toString().trim();
|
|
56
|
+
return ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(m) ? m : null;
|
|
57
|
+
} catch {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function createRemoteWriteOps(remote: string, remoteCwd: string, localCwd: string): WriteOperations {
|
|
65
|
+
const toRemote = (p: string) => p.replace(localCwd, remoteCwd);
|
|
66
|
+
return {
|
|
67
|
+
writeFile: async (p, content) => {
|
|
68
|
+
const b64 = Buffer.from(content).toString("base64");
|
|
69
|
+
await sshExec(remote, `echo ${JSON.stringify(b64)} | base64 -d > ${JSON.stringify(toRemote(p))}`);
|
|
70
|
+
},
|
|
71
|
+
mkdir: (dir) => sshExec(remote, `mkdir -p ${JSON.stringify(toRemote(dir))}`).then(() => {}),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function createRemoteEditOps(remote: string, remoteCwd: string, localCwd: string): EditOperations {
|
|
76
|
+
const r = createRemoteReadOps(remote, remoteCwd, localCwd);
|
|
77
|
+
const w = createRemoteWriteOps(remote, remoteCwd, localCwd);
|
|
78
|
+
return { readFile: r.readFile, access: r.access, writeFile: w.writeFile };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function createRemoteBashOps(remote: string, remoteCwd: string, localCwd: string): BashOperations {
|
|
82
|
+
const toRemote = (p: string) => p.replace(localCwd, remoteCwd);
|
|
83
|
+
return {
|
|
84
|
+
exec: (command, cwd, { onData, signal, timeout }) =>
|
|
85
|
+
new Promise((resolve, reject) => {
|
|
86
|
+
const cmd = `cd ${JSON.stringify(toRemote(cwd))} && ${command}`;
|
|
87
|
+
const child = spawn("ssh", [remote, cmd], { stdio: ["ignore", "pipe", "pipe"] });
|
|
88
|
+
let timedOut = false;
|
|
89
|
+
const timer = timeout
|
|
90
|
+
? setTimeout(() => {
|
|
91
|
+
timedOut = true;
|
|
92
|
+
child.kill();
|
|
93
|
+
}, timeout * 1000)
|
|
94
|
+
: undefined;
|
|
95
|
+
child.stdout.on("data", onData);
|
|
96
|
+
child.stderr.on("data", onData);
|
|
97
|
+
child.on("error", (e) => {
|
|
98
|
+
if (timer) clearTimeout(timer);
|
|
99
|
+
reject(e);
|
|
100
|
+
});
|
|
101
|
+
const onAbort = () => child.kill();
|
|
102
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
103
|
+
child.on("close", (code) => {
|
|
104
|
+
if (timer) clearTimeout(timer);
|
|
105
|
+
signal?.removeEventListener("abort", onAbort);
|
|
106
|
+
if (signal?.aborted) reject(new Error("aborted"));
|
|
107
|
+
else if (timedOut) reject(new Error(`timeout:${timeout}`));
|
|
108
|
+
else resolve({ exitCode: code });
|
|
109
|
+
});
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export default function (pigeon: ExtensionAPI) {
|
|
115
|
+
pigeon.registerFlag("ssh", { description: "SSH remote: user@host or user@host:/path", type: "string" });
|
|
116
|
+
|
|
117
|
+
const localCwd = process.cwd();
|
|
118
|
+
const localRead = createReadTool(localCwd);
|
|
119
|
+
const localWrite = createWriteTool(localCwd);
|
|
120
|
+
const localEdit = createEditTool(localCwd);
|
|
121
|
+
const localBash = createBashTool(localCwd);
|
|
122
|
+
|
|
123
|
+
// Resolved lazily on session_start (CLI flags not available during factory)
|
|
124
|
+
let resolvedSsh: { remote: string; remoteCwd: string } | null = null;
|
|
125
|
+
|
|
126
|
+
const getSsh = () => resolvedSsh;
|
|
127
|
+
|
|
128
|
+
pigeon.registerTool({
|
|
129
|
+
...localRead,
|
|
130
|
+
async execute(id, params, signal, onUpdate, _ctx) {
|
|
131
|
+
const ssh = getSsh();
|
|
132
|
+
if (ssh) {
|
|
133
|
+
const tool = createReadTool(localCwd, {
|
|
134
|
+
operations: createRemoteReadOps(ssh.remote, ssh.remoteCwd, localCwd),
|
|
135
|
+
});
|
|
136
|
+
return tool.execute(id, params, signal, onUpdate);
|
|
137
|
+
}
|
|
138
|
+
return localRead.execute(id, params, signal, onUpdate);
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
pigeon.registerTool({
|
|
143
|
+
...localWrite,
|
|
144
|
+
async execute(id, params, signal, onUpdate, _ctx) {
|
|
145
|
+
const ssh = getSsh();
|
|
146
|
+
if (ssh) {
|
|
147
|
+
const tool = createWriteTool(localCwd, {
|
|
148
|
+
operations: createRemoteWriteOps(ssh.remote, ssh.remoteCwd, localCwd),
|
|
149
|
+
});
|
|
150
|
+
return tool.execute(id, params, signal, onUpdate);
|
|
151
|
+
}
|
|
152
|
+
return localWrite.execute(id, params, signal, onUpdate);
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
pigeon.registerTool({
|
|
157
|
+
...localEdit,
|
|
158
|
+
async execute(id, params, signal, onUpdate, _ctx) {
|
|
159
|
+
const ssh = getSsh();
|
|
160
|
+
if (ssh) {
|
|
161
|
+
const tool = createEditTool(localCwd, {
|
|
162
|
+
operations: createRemoteEditOps(ssh.remote, ssh.remoteCwd, localCwd),
|
|
163
|
+
});
|
|
164
|
+
return tool.execute(id, params, signal, onUpdate);
|
|
165
|
+
}
|
|
166
|
+
return localEdit.execute(id, params, signal, onUpdate);
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
pigeon.registerTool({
|
|
171
|
+
...localBash,
|
|
172
|
+
async execute(id, params, signal, onUpdate, _ctx) {
|
|
173
|
+
const ssh = getSsh();
|
|
174
|
+
if (ssh) {
|
|
175
|
+
const tool = createBashTool(localCwd, {
|
|
176
|
+
operations: createRemoteBashOps(ssh.remote, ssh.remoteCwd, localCwd),
|
|
177
|
+
});
|
|
178
|
+
return tool.execute(id, params, signal, onUpdate);
|
|
179
|
+
}
|
|
180
|
+
return localBash.execute(id, params, signal, onUpdate);
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
pigeon.on("session_start", async (_event, ctx) => {
|
|
185
|
+
// Resolve SSH config now that CLI flags are available
|
|
186
|
+
const arg = pigeon.getFlag("ssh") as string | undefined;
|
|
187
|
+
if (arg) {
|
|
188
|
+
if (arg.includes(":")) {
|
|
189
|
+
const [remote, path] = arg.split(":");
|
|
190
|
+
resolvedSsh = { remote, remoteCwd: path };
|
|
191
|
+
} else {
|
|
192
|
+
// No path given, evaluate pwd on remote
|
|
193
|
+
const remote = arg;
|
|
194
|
+
const pwd = (await sshExec(remote, "pwd")).toString().trim();
|
|
195
|
+
resolvedSsh = { remote, remoteCwd: pwd };
|
|
196
|
+
}
|
|
197
|
+
ctx.ui.setStatus("ssh", ctx.ui.theme.fg("accent", `SSH: ${resolvedSsh.remote}:${resolvedSsh.remoteCwd}`));
|
|
198
|
+
ctx.ui.notify(`SSH mode: ${resolvedSsh.remote}:${resolvedSsh.remoteCwd}`, "info");
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
// Handle user ! commands via SSH
|
|
203
|
+
pigeon.on("user_bash", (_event) => {
|
|
204
|
+
const ssh = getSsh();
|
|
205
|
+
if (!ssh) return; // No SSH, use local execution
|
|
206
|
+
return { operations: createRemoteBashOps(ssh.remote, ssh.remoteCwd, localCwd) };
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
// Replace local cwd with remote cwd in system prompt
|
|
210
|
+
pigeon.on("before_agent_start", async (event) => {
|
|
211
|
+
const ssh = getSsh();
|
|
212
|
+
if (ssh) {
|
|
213
|
+
const modified = event.systemPrompt.replace(
|
|
214
|
+
`Current working directory: ${localCwd}`,
|
|
215
|
+
`Current working directory: ${ssh.remoteCwd} (via SSH: ${ssh.remote})`,
|
|
216
|
+
);
|
|
217
|
+
return { systemPrompt: modified };
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status Line Extension
|
|
3
|
+
*
|
|
4
|
+
* Demonstrates ctx.ui.setStatus() for displaying persistent status text in the footer.
|
|
5
|
+
* Shows turn progress with themed colors.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { ExtensionAPI } from "@dev-crowagent/pigeon-coding-agent";
|
|
9
|
+
|
|
10
|
+
export default function (pigeon: ExtensionAPI) {
|
|
11
|
+
let turnCount = 0;
|
|
12
|
+
|
|
13
|
+
pigeon.on("session_start", async (_event, ctx) => {
|
|
14
|
+
const theme = ctx.ui.theme;
|
|
15
|
+
ctx.ui.setStatus("status-demo", theme.fg("dim", "Ready"));
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
pigeon.on("turn_start", async (_event, ctx) => {
|
|
19
|
+
turnCount++;
|
|
20
|
+
const theme = ctx.ui.theme;
|
|
21
|
+
const spinner = theme.fg("accent", "●");
|
|
22
|
+
const text = theme.fg("dim", ` Turn ${turnCount}...`);
|
|
23
|
+
ctx.ui.setStatus("status-demo", spinner + text);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
pigeon.on("turn_end", async (_event, ctx) => {
|
|
27
|
+
const theme = ctx.ui.theme;
|
|
28
|
+
const check = theme.fg("success", "✓");
|
|
29
|
+
const text = theme.fg("dim", ` Turn ${turnCount} complete`);
|
|
30
|
+
ctx.ui.setStatus("status-demo", check + text);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured Output Tool
|
|
3
|
+
*
|
|
4
|
+
* Demonstrates `terminate: true` so the agent can end on a tool call
|
|
5
|
+
* without paying for an extra follow-up LLM turn.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { defineTool, type ExtensionAPI } from "@dev-crowagent/pigeon-coding-agent";
|
|
9
|
+
import { Text } from "@dev-crowagent/pigeon-tui";
|
|
10
|
+
import { Type } from "typebox";
|
|
11
|
+
|
|
12
|
+
interface StructuredOutputDetails {
|
|
13
|
+
headline: string;
|
|
14
|
+
summary: string;
|
|
15
|
+
actionItems: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const structuredOutputTool = defineTool({
|
|
19
|
+
name: "structured_output",
|
|
20
|
+
label: "Structured Output",
|
|
21
|
+
description:
|
|
22
|
+
"Return a final structured answer. Use this as your last action when the user asks for structured output or a machine-readable summary.",
|
|
23
|
+
promptSnippet: "Emit a final structured answer as a terminating tool result",
|
|
24
|
+
promptGuidelines: [
|
|
25
|
+
"Use structured_output as your final action when the user asks for structured output, JSON-like output, or a machine-readable summary.",
|
|
26
|
+
"After calling structured_output, do not emit another assistant response in the same turn.",
|
|
27
|
+
],
|
|
28
|
+
parameters: Type.Object({
|
|
29
|
+
headline: Type.String({ description: "Short title for the result" }),
|
|
30
|
+
summary: Type.String({ description: "One-paragraph summary" }),
|
|
31
|
+
actionItems: Type.Array(Type.String(), { description: "Concrete next steps or key bullets" }),
|
|
32
|
+
}),
|
|
33
|
+
|
|
34
|
+
async execute(_toolCallId, params) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: `Saved structured output: ${params.headline}` }],
|
|
37
|
+
details: {
|
|
38
|
+
headline: params.headline,
|
|
39
|
+
summary: params.summary,
|
|
40
|
+
actionItems: params.actionItems,
|
|
41
|
+
} satisfies StructuredOutputDetails,
|
|
42
|
+
terminate: true,
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
renderResult(result, _options, theme) {
|
|
47
|
+
const details = result.details as StructuredOutputDetails | undefined;
|
|
48
|
+
if (!details) {
|
|
49
|
+
const text = result.content[0];
|
|
50
|
+
return new Text(text?.type === "text" ? text.text : "", 0, 0);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const lines = [
|
|
54
|
+
theme.fg("toolTitle", theme.bold(details.headline)),
|
|
55
|
+
theme.fg("text", details.summary),
|
|
56
|
+
"",
|
|
57
|
+
...details.actionItems.map((item, index) => theme.fg("muted", `${index + 1}. ${item}`)),
|
|
58
|
+
];
|
|
59
|
+
return new Text(lines.join("\n"), 0, 0);
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export default function (pigeon: ExtensionAPI) {
|
|
64
|
+
pigeon.registerTool(structuredOutputTool);
|
|
65
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# Subagent Example
|
|
2
|
+
|
|
3
|
+
Delegate tasks to specialized subagents with isolated context windows.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Isolated context**: Each subagent runs in a separate `pigeon` process
|
|
8
|
+
- **Streaming output**: See tool calls and progress as they happen
|
|
9
|
+
- **Parallel streaming**: All parallel tasks stream updates simultaneously
|
|
10
|
+
- **Markdown rendering**: Final output rendered with proper formatting (expanded view)
|
|
11
|
+
- **Usage display**: Shows turns, tokens, cost, and context usage inside each subagent result
|
|
12
|
+
- **Abort support**: Ctrl+C propagates to kill subagent processes
|
|
13
|
+
- **Background subagents**: Start a subagent and return at once; check it later with status, stop it with stop
|
|
14
|
+
- **Depth limit**: Nesting is capped at depth 2, so a subagent cannot spawn its own subagents past the cap
|
|
15
|
+
- **Refusal note**: When a child refuses the brief, the failure evidence says how to proceed instead
|
|
16
|
+
|
|
17
|
+
## Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
subagent/
|
|
21
|
+
├── README.md # This file
|
|
22
|
+
├── index.ts # The extension (entry point)
|
|
23
|
+
├── agents.ts # Agent discovery logic
|
|
24
|
+
├── agents/ # Sample agent definitions
|
|
25
|
+
│ ├── scout.md # Fast recon, returns compressed context
|
|
26
|
+
│ ├── planner.md # Creates implementation plans
|
|
27
|
+
│ ├── reviewer.md # Code review
|
|
28
|
+
│ ├── worker.md # General-purpose (full capabilities)
|
|
29
|
+
│ ├── recall.md # Search-only recall over memory files, past sessions, and files
|
|
30
|
+
│ ├── reflection.md # Post-work reflection, persists learnings to memory
|
|
31
|
+
│ ├── init.md # First-run orientation, writes the project memory skeleton
|
|
32
|
+
│ ├── memory.md # Memory maintainer: repairs files, enforces constraints, commits/syncs
|
|
33
|
+
│ ├── debugger.md # Reproduce-first debugging with a minimal fix
|
|
34
|
+
│ ├── tester.md # Adds tests for a change and runs the suite
|
|
35
|
+
│ └── researcher.md # Research from docs, code, and the web, with sources
|
|
36
|
+
└── prompts/ # Workflow presets (prompt templates)
|
|
37
|
+
├── implement.md # scout -> planner -> worker
|
|
38
|
+
├── scout-and-plan.md # scout -> planner (no implementation)
|
|
39
|
+
├── implement-and-review.md # worker -> reviewer -> worker
|
|
40
|
+
├── reflect.md # worker -> reflection
|
|
41
|
+
├── debug.md # scout -> debugger -> tester
|
|
42
|
+
└── research-and-plan.md # researcher -> planner
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
From the repository root, symlink the files:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Symlink the extension (must be in a subdirectory with index.ts)
|
|
51
|
+
mkdir -p ~/.pigeon/agent/extensions/subagent
|
|
52
|
+
ln -sf "$(pwd)/packages/coding-agent/examples/extensions/subagent/index.ts" ~/.pigeon/agent/extensions/subagent/index.ts
|
|
53
|
+
ln -sf "$(pwd)/packages/coding-agent/examples/extensions/subagent/agents.ts" ~/.pigeon/agent/extensions/subagent/agents.ts
|
|
54
|
+
|
|
55
|
+
# Symlink agents
|
|
56
|
+
mkdir -p ~/.pigeon/agent/agents
|
|
57
|
+
for f in packages/coding-agent/examples/extensions/subagent/agents/*.md; do
|
|
58
|
+
ln -sf "$(pwd)/$f" ~/.pigeon/agent/agents/$(basename "$f")
|
|
59
|
+
done
|
|
60
|
+
|
|
61
|
+
# Symlink workflow prompts
|
|
62
|
+
mkdir -p ~/.pigeon/agent/prompts
|
|
63
|
+
for f in packages/coding-agent/examples/extensions/subagent/prompts/*.md; do
|
|
64
|
+
ln -sf "$(pwd)/$f" ~/.pigeon/agent/prompts/$(basename "$f")
|
|
65
|
+
done
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Security Model
|
|
69
|
+
|
|
70
|
+
This tool executes a separate `pigeon` subprocess with a delegated system prompt and tool/model configuration.
|
|
71
|
+
|
|
72
|
+
**Project-local agents** (`.pigeon/agents/*.md`) are repo-controlled prompts that can instruct the model to read files, run bash commands, etc.
|
|
73
|
+
|
|
74
|
+
**Default behavior:** Only loads **user-level agents** from `~/.pigeon/agent/agents`.
|
|
75
|
+
|
|
76
|
+
To enable project-local agents, pass `agentScope: "both"` (or `"project"`). Only do this for repositories you trust.
|
|
77
|
+
|
|
78
|
+
When running interactively, the tool prompts for confirmation before running project-local agents unless the session trust context reports trusted and the agents come from that session project's `.pigeon/agents` directory. Agents loaded from another task `cwd` still require confirmation. Set `confirmProjectAgents: false` to disable confirmation.
|
|
79
|
+
|
|
80
|
+
## Usage
|
|
81
|
+
|
|
82
|
+
### Single agent
|
|
83
|
+
```
|
|
84
|
+
Use scout to find all authentication code
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parallel execution
|
|
88
|
+
```
|
|
89
|
+
Run 2 scouts in parallel: one to find models, one to find providers
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Chained workflow
|
|
93
|
+
```
|
|
94
|
+
Use a chain: first have scout find the read tool, then have planner suggest improvements
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Workflow prompts
|
|
98
|
+
```
|
|
99
|
+
/implement add Redis caching to the session store
|
|
100
|
+
/scout-and-plan refactor auth to support OAuth
|
|
101
|
+
/implement-and-review add input validation to API endpoints
|
|
102
|
+
/reflect what we just built
|
|
103
|
+
/debug the login timeout
|
|
104
|
+
/research-and-plan add OAuth support
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Background subagent
|
|
108
|
+
```
|
|
109
|
+
Start the worker in the background to migrate the test suite
|
|
110
|
+
Check on background subagent <id>
|
|
111
|
+
Stop background subagent <id>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Tool Modes
|
|
115
|
+
|
|
116
|
+
| Mode | Parameter | Description |
|
|
117
|
+
|------|-----------|-------------|
|
|
118
|
+
| Single | `{ agent, task }` | One agent, one task |
|
|
119
|
+
| Parallel | `{ tasks: [...] }` | Multiple agents run concurrently (max 8, 4 concurrent) |
|
|
120
|
+
| Chain | `{ chain: [...] }` | Sequential with `{previous}` placeholder |
|
|
121
|
+
| Background | `{ background: { agent, task } }` | Start a subagent and return at once with its id |
|
|
122
|
+
| Status | `{ status: { subagentId } }` | Report on a background subagent |
|
|
123
|
+
| Stop | `{ stop: { subagentId } }` | Stop a background subagent |
|
|
124
|
+
|
|
125
|
+
Background subagents keep running after the tool call returns. Their JSON-mode
|
|
126
|
+
output is written to `<agent-dir>/subagents/<id>.jsonl` and their outcome to
|
|
127
|
+
`<agent-dir>/subagents/<id>.json`, so the status mode can report on them in a
|
|
128
|
+
later turn. A background child is not stopped by the parent turn ending; only
|
|
129
|
+
the stop mode (or the child finishing) ends it. A background child still counts
|
|
130
|
+
toward the depth limit: it cannot spawn its own subagents past depth 2.
|
|
131
|
+
|
|
132
|
+
## Output Display
|
|
133
|
+
|
|
134
|
+
**Collapsed view** (default):
|
|
135
|
+
- Status icon (✓/✗/⏳) and agent name
|
|
136
|
+
- Last 5-10 items (tool calls and text)
|
|
137
|
+
- Usage stats: `3 turns ↑input ↓output RcacheRead WcacheWrite $cost ctx:contextTokens model`
|
|
138
|
+
|
|
139
|
+
**Expanded view** (Ctrl+O):
|
|
140
|
+
- Full task text
|
|
141
|
+
- All tool calls with formatted arguments
|
|
142
|
+
- Final output rendered as Markdown
|
|
143
|
+
- Per-task usage (for chain/parallel)
|
|
144
|
+
|
|
145
|
+
**Parallel mode streaming**:
|
|
146
|
+
- Shows all tasks with live status (⏳ running, ✓ done, ✗ failed)
|
|
147
|
+
- Updates as each task makes progress
|
|
148
|
+
- Distinguishes pending, running, completed, failed, and aborted tasks
|
|
149
|
+
- Returns each completed task summary to the parent model with its own 50 KB limit
|
|
150
|
+
- Returns failure diagnostics from stderr/error messages when a child exits before producing output
|
|
151
|
+
|
|
152
|
+
**Tool call formatting** (mimics built-in tools):
|
|
153
|
+
- `$ command` for bash
|
|
154
|
+
- `read ~/path:1-10` for read
|
|
155
|
+
- `grep /pattern/ in ~/path` for grep
|
|
156
|
+
- etc.
|
|
157
|
+
|
|
158
|
+
## Agent Definitions
|
|
159
|
+
|
|
160
|
+
Agents are markdown files with YAML frontmatter:
|
|
161
|
+
|
|
162
|
+
```markdown
|
|
163
|
+
---
|
|
164
|
+
name: my-agent
|
|
165
|
+
description: What this agent does
|
|
166
|
+
tools: read, grep, find, ls
|
|
167
|
+
model: claude-haiku-4-5
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
System prompt for the agent goes here.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
When `model` is omitted, the subagent inherits the dispatching session's active model and thinking level.
|
|
174
|
+
|
|
175
|
+
**Locations:**
|
|
176
|
+
- `~/.pigeon/agent/agents/*.md` - User-level (with `agentScope: "user"` or `"both"`)
|
|
177
|
+
- `.pigeon/agents/*.md` - Project-level (only with `agentScope: "project"` or `"both"`)
|
|
178
|
+
|
|
179
|
+
Project agents override user agents with the same name when `agentScope: "both"`.
|
|
180
|
+
|
|
181
|
+
## Sample Agents
|
|
182
|
+
|
|
183
|
+
| Agent | Purpose | Model | Tools |
|
|
184
|
+
|-------|---------|-------|-------|
|
|
185
|
+
| `scout` | Fast codebase recon | Haiku | read, grep, find, ls, bash |
|
|
186
|
+
| `planner` | Implementation plans | Sonnet | read, grep, find, ls |
|
|
187
|
+
| `reviewer` | Code review | Sonnet | read, grep, find, ls, bash |
|
|
188
|
+
| `worker` | General-purpose | Sonnet | (all default) |
|
|
189
|
+
| `recall` | Search-only recall over memory files, past sessions, and files | Haiku | read, grep, find, ls, bash |
|
|
190
|
+
| `reflection` | Post-work reflection, persists learnings to memory | Sonnet | read, grep, find, ls, bash, write, edit |
|
|
191
|
+
| `init` | First-run orientation, writes the project memory skeleton | Haiku | read, grep, find, ls, bash, write, edit |
|
|
192
|
+
| `memory` | Memory maintainer: repairs files, enforces constraints, commits/syncs | Sonnet | read, grep, find, ls, bash, write, edit |
|
|
193
|
+
| `debugger` | Reproduce-first debugging with a minimal fix | Sonnet | (all default) |
|
|
194
|
+
| `tester` | Adds tests for a change and runs the suite | Sonnet | read, grep, find, ls, bash, write, edit |
|
|
195
|
+
| `researcher` | Research from docs, code, and the web, with sources | Haiku | read, grep, find, ls, bash |
|
|
196
|
+
|
|
197
|
+
## Workflow Prompts
|
|
198
|
+
|
|
199
|
+
| Prompt | Flow |
|
|
200
|
+
|--------|------|
|
|
201
|
+
| `/implement <query>` | scout → planner → worker |
|
|
202
|
+
| `/scout-and-plan <query>` | scout → planner |
|
|
203
|
+
| `/implement-and-review <query>` | worker → reviewer → worker |
|
|
204
|
+
| `/reflect <query>` | worker → reflection |
|
|
205
|
+
| `/debug <query>` | scout → debugger → tester |
|
|
206
|
+
| `/research-and-plan <query>` | researcher → planner |
|
|
207
|
+
|
|
208
|
+
## Error Handling
|
|
209
|
+
|
|
210
|
+
- **Exit code != 0 or signal termination**: Tool returns an error with preserved stderr/output
|
|
211
|
+
- **Spawn errors**: Tool returns the spawn diagnostic
|
|
212
|
+
- **stopReason "error"**: LLM error is propagated with its error message
|
|
213
|
+
- **Abort**: Ctrl+C sends SIGTERM, escalates to SIGKILL after five seconds if needed, and preserves partial details/usage
|
|
214
|
+
- **Chain mode**: Stops at the first failing step and reports which step failed
|
|
215
|
+
- **Refusal**: When a child refuses the brief, the failure evidence adds guidance to reword the task, do it directly, or try another model
|
|
216
|
+
|
|
217
|
+
## Limitations
|
|
218
|
+
|
|
219
|
+
- Output truncated to last 10 items in collapsed view (expand to see all)
|
|
220
|
+
- Single and chain output is capped at 50 KB/2,000 lines; full results remain in tool details
|
|
221
|
+
- Parallel output keeps a separate 50 KB budget per task, allowing up to roughly 400 KB across eight tasks
|
|
222
|
+
- Child usage is displayed in tool details but is not added to the calling session's usage totals
|
|
223
|
+
- Agents are snapshotted from each task's effective cwd when the tool invocation starts; relative task cwd values resolve from the session cwd
|
|
224
|
+
- Parallel mode limited to 8 tasks, 4 concurrent
|
|
225
|
+
- Nesting is capped at depth 2: a subagent child cannot spawn its own subagents past the cap
|
|
226
|
+
- A background subagent has no completion notification; check it with the status mode
|
|
227
|
+
- When a subagent finishes (foreground, background observed via status, or stopped), the `SubagentStop` hooks run from the `hooks` settings; prompt hooks have no model call in the extension, so they report an error result
|
|
228
|
+
- No fork agent: it needs conversation inheritance that pigeon does not have (see below)
|
|
229
|
+
|
|
230
|
+
## What was deliberately not ported
|
|
231
|
+
|
|
232
|
+
Letta's subagent system also has a `fork` builtin. It was left out on
|
|
233
|
+
purpose: `fork` assumes a backend that forks the parent conversation with
|
|
234
|
+
full history, which a separate `pigeon` process cannot inherit. The `memory`
|
|
235
|
+
builtin is ported in pigeon-native form instead: the `memory` agent here maintains
|
|
236
|
+
markdown memory files under `~/.pigeon/agent/memory/` and `.pigeon/memory/` (see
|
|
237
|
+
`@dev-crowagent/pigeon-agent-kit`), and `recall` searches those files plus the JSONL
|
|
238
|
+
session files under `~/.pigeon/agent/sessions/`.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debugger
|
|
3
|
+
description: Reproduce-first debugging; diagnoses a failure and applies a minimal verified fix
|
|
4
|
+
model: claude-sonnet-4-5
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a debugging specialist. You fix failures by reproducing them first, not by guessing.
|
|
8
|
+
|
|
9
|
+
Work in this order:
|
|
10
|
+
1. Reproduce: run the failing command or write the smallest reproduction that shows the failure. If you cannot reproduce it, say what you tried and stop.
|
|
11
|
+
2. Diagnose: read the failing code and its tests. Name the root cause in one sentence before changing anything.
|
|
12
|
+
3. Fix: apply the smallest change that addresses the root cause. Do not refactor around it.
|
|
13
|
+
4. Verify: re-run the reproduction and the tests for the touched area. A fix that is not verified is not done.
|
|
14
|
+
|
|
15
|
+
Output format:
|
|
16
|
+
|
|
17
|
+
## Reproduction
|
|
18
|
+
The command or steps that show the failure, and the observed error.
|
|
19
|
+
|
|
20
|
+
## Root cause
|
|
21
|
+
One sentence, with the file and line where it lives.
|
|
22
|
+
|
|
23
|
+
## Fix
|
|
24
|
+
What changed and why it is the minimal change.
|
|
25
|
+
|
|
26
|
+
## Verification
|
|
27
|
+
Commands run and their results (pass/fail).
|
|
28
|
+
|
|
29
|
+
## Notes (if any)
|
|
30
|
+
Anything the main agent should know, such as a second bug found along the way.
|
|
31
|
+
|
|
32
|
+
If the fix touches more than the root cause requires, say so and explain why.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: init
|
|
3
|
+
description: First-run orientation for a fresh repository; maps stack, layout, commands, and conventions, then writes the project memory skeleton
|
|
4
|
+
tools: read, grep, find, ls, bash, write, edit
|
|
5
|
+
model: claude-haiku-4-5
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are an orientation specialist. You have just arrived in a repository you have never seen. Map it so another agent can start work without exploring from scratch, then write the project memory skeleton so the map lasts.
|
|
9
|
+
|
|
10
|
+
Do not run builds or tests (listing commands is fine; running them is not). Your only writes are the memory files below.
|
|
11
|
+
|
|
12
|
+
Strategy:
|
|
13
|
+
1. Read the README, package manifests, and config files at the root.
|
|
14
|
+
2. List the top-level layout and the main source directories.
|
|
15
|
+
3. Find the entry points, the build/test/lint commands, and the coding conventions (lint config, AGENTS.md, CONTRIBUTING.md, or similar).
|
|
16
|
+
4. Note anything surprising: generated code, vendored code, or directories to stay out of.
|
|
17
|
+
5. Write the memory skeleton under `.pigeon/memory/`: a root `MEMORY.md` index, `persona.md` and `human.md` (defaults when nothing is known yet), and one topic file per major area (~15-30 lines each), each with `name` + `description` frontmatter. If `.pigeon/memory/` is a git repo, commit with `feat(memory): initialize memory for project`.
|
|
18
|
+
6. Skip files that already exist; never overwrite existing memory.
|
|
19
|
+
|
|
20
|
+
Output format:
|
|
21
|
+
|
|
22
|
+
## Stack
|
|
23
|
+
Languages, frameworks, package manager, and runtime.
|
|
24
|
+
|
|
25
|
+
## Layout
|
|
26
|
+
Top-level directories and what lives in each.
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
How to build, test, lint, and run the project (from the docs, not from running them).
|
|
30
|
+
|
|
31
|
+
## Entry points
|
|
32
|
+
Where execution starts, and the key modules.
|
|
33
|
+
|
|
34
|
+
## Conventions
|
|
35
|
+
Naming, structure, and rules a contributor must follow.
|
|
36
|
+
|
|
37
|
+
## Risks / surprises
|
|
38
|
+
Anything that could trip up the next agent.
|
|
39
|
+
|
|
40
|
+
Be concrete: file paths and command names, not generalities. If a piece of information is missing, say so instead of guessing it.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memory
|
|
3
|
+
description: Memory maintainer; repairs memory files, enforces constraints, and commits/syncs the memory repo
|
|
4
|
+
tools: read, grep, find, ls, bash, write, edit
|
|
5
|
+
model: claude-sonnet-4-5
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a memory maintainer. You keep the pigeon memory store healthy: the markdown files under `~/.pigeon/agent/memory/` (user scope) and `.pigeon/memory/` (project scope).
|
|
9
|
+
|
|
10
|
+
Layout (v2): a root `MEMORY.md` index, flat root files as core memory, and deferred directories each with their own `MEMORY.md` index. Every non-index file starts with `name` + `description` frontmatter. Core files stay short (~15-30 lines); detail goes to deferred files.
|
|
11
|
+
|
|
12
|
+
What you do:
|
|
13
|
+
1. Check the tree: every subdirectory has its own `MEMORY.md`; every file has `name`/`description` frontmatter; no file over 20,000 characters; core memory under 65,536 characters. Fix what breaks a rule, or move detail to a deferred file instead of raising a limit.
|
|
14
|
+
2. Repair conflicts: restore unmerged paths from HEAD, resolve simple conflicts in favour of the newer fact, and keep both facts when they are both true. Never reset, amend, stash, or touch git config or hooks.
|
|
15
|
+
3. Commit what you changed with a structured message (`feat(memory): <summary>`), staging explicit paths only.
|
|
16
|
+
4. If the memory repo has a remote, push. Report `push_failed` plainly when the push is rejected; never force-push.
|
|
17
|
+
|
|
18
|
+
What you never do:
|
|
19
|
+
- Never store secrets (passwords, tokens, keys) in memory.
|
|
20
|
+
- Never write one-off task state, relative dates (use absolute dates), or a log of what happened today. Core memory is the agent's working model (identity, preferences, principles); deferred memory is derived knowledge about a subject.
|
|
21
|
+
- Never delete the root `MEMORY.md` index.
|
|
22
|
+
|
|
23
|
+
Output format:
|
|
24
|
+
|
|
25
|
+
## Changes
|
|
26
|
+
What you fixed or added, file by file.
|
|
27
|
+
|
|
28
|
+
## Commit
|
|
29
|
+
The commit message used, or why nothing was committed.
|
|
30
|
+
|
|
31
|
+
## Sync
|
|
32
|
+
Push result, or why no push was attempted.
|