@punch-bot/cli 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -1
- package/README.md +6 -8
- package/dist/bundle/chunks/anthropic-messages-WIBS5YKY.js +6 -0
- package/dist/bundle/chunks/azure-openai-responses-GP5GDEGO.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +7 -4
- package/dist/bundle/chunks/chunk-35EHANXE.js +2 -0
- package/dist/bundle/chunks/chunk-3IMHRFLG.js +6 -0
- package/dist/bundle/chunks/chunk-77CRE5SV.js +9 -0
- package/dist/bundle/chunks/chunk-CE33JMCE.js +861 -0
- package/dist/bundle/chunks/{chunk-MYNHUMKE.js → chunk-CXY7BILM.js} +2 -44
- package/dist/bundle/chunks/chunk-EISXNXOQ.js +41 -0
- package/dist/bundle/chunks/chunk-ENMVUQHE.js +26 -0
- package/dist/bundle/chunks/chunk-FFMDRXC4.js +10 -0
- package/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/dist/bundle/chunks/chunk-HQH636GU.js +361 -0
- package/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/dist/bundle/chunks/chunk-JAJLG57O.js +4 -0
- package/dist/bundle/chunks/{chunk-RROECCMX.js → chunk-LOHGXPCL.js} +2 -2
- package/dist/bundle/chunks/{chunk-CRILLKNU.js → chunk-OV2VGRRS.js} +1 -1
- package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
- package/dist/bundle/chunks/chunk-PDENR63J.js +16 -0
- package/dist/bundle/chunks/chunk-RHOWRSGK.js +2 -0
- package/dist/bundle/chunks/{chunk-HMPP4ECW.js → chunk-UZ3LUZDC.js} +1 -1
- package/dist/bundle/chunks/chunk-WN2D4UD4.js +2 -0
- package/dist/bundle/chunks/chunk-X4T5TGM4.js +82 -0
- package/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/dist/bundle/chunks/cli-OQNR6ESL.js +53 -0
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-JWAAZATQ.js → cloudflare-workers-ai-system-one-36EDUVVN.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +2 -0
- package/dist/bundle/chunks/{execute-HXULRBCI.js → execute-EHT55MW7.js} +5 -3
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{google-generative-ai-EHUU7JII.js → google-generative-ai-KA6FZCHM.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-AFMVUS5C.js → google-vertex-DXKQ4IYR.js} +1 -1
- package/dist/bundle/chunks/image-resize-worker.js +1 -1
- package/dist/bundle/chunks/kimi-coding.js +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-YVA2UOJG.js → llama-cpp-classify-676UCBOD.js} +1 -1
- package/dist/bundle/chunks/meta.js +1 -1
- package/dist/bundle/chunks/mistral-conversations-PJ56UMXO.js +5 -0
- package/dist/bundle/chunks/openai-codex-responses-DWVG7MAQ.js +10 -0
- package/dist/bundle/chunks/openai-completions-OKI6KBNP.js +7 -0
- package/dist/bundle/chunks/{openai-decisions-GNOLFL74.js → openai-decisions-SO57QA6O.js} +1 -1
- package/dist/bundle/chunks/openai-responses-3HV234HB.js +4 -0
- package/dist/bundle/chunks/{openrouter-images-ZTNVFSL2.js → openrouter-images-5X6D7HFS.js} +1 -1
- package/dist/bundle/chunks/pi-messages-BS5Z34RE.js +8 -0
- package/dist/bundle/chunks/radius.js +1 -1
- package/dist/bundle/chunks/{runtime-R5GXO4CV.js → runtime-74PFKASL.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-I5AHLF6T.js → typesafe-system-one-IPNULX2M.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-2Y422I6U.js +2 -0
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/args.d.ts +0 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +8 -12
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/auth-command.d.ts.map +1 -1
- package/dist/cli/auth-command.js +26 -2
- package/dist/cli/auth-command.js.map +1 -1
- 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 +63 -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/project-trust.js +1 -1
- package/dist/cli/project-trust.js.map +1 -1
- package/dist/config.d.ts +10 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -11
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +5 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +20 -5
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts +31 -15
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +158 -71
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +3 -2
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +3 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/cache-warmer.d.ts +4 -37
- package/dist/core/cache-warmer.d.ts.map +1 -1
- package/dist/core/cache-warmer.js +11 -89
- package/dist/core/cache-warmer.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +4 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +16 -4
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +2 -1
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/exec.d.ts +9 -1
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +104 -60
- package/dist/core/exec.js.map +1 -1
- package/dist/core/export-html/template.css +9 -0
- package/dist/core/export-html/template.js +165 -45
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +10 -13
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/pi-ai-extension-view.d.ts +19 -0
- package/dist/core/extensions/pi-ai-extension-view.d.ts.map +1 -0
- package/dist/core/extensions/pi-ai-extension-view.js +22 -0
- package/dist/core/extensions/pi-ai-extension-view.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +1 -4
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +0 -14
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +5 -18
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +8 -7
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +23 -41
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +51 -120
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/model-config.d.ts +1730 -2029
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +2 -3
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +36 -29
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +5 -0
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +11 -4
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts +24 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +210 -51
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +167 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -0
- package/dist/core/pi-ai-schemas.js +21 -0
- package/dist/core/pi-ai-schemas.js.map +1 -0
- package/dist/core/pi-manifest.d.ts +1 -0
- package/dist/core/pi-manifest.d.ts.map +1 -1
- package/dist/core/pi-manifest.js +4 -0
- package/dist/core/pi-manifest.js.map +1 -1
- 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 +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +1 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +18 -2
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +3 -1
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/provider-matching.d.ts +11 -0
- package/dist/core/provider-matching.d.ts.map +1 -0
- package/dist/core/provider-matching.js +14 -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 +0 -3
- package/dist/core/radius.d.ts.map +1 -1
- package/dist/core/radius.js +0 -5
- package/dist/core/radius.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +2 -0
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts +4 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +40 -25
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/runtime-credentials.d.ts +8 -0
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +15 -1
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +3 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-cwd.d.ts +0 -1
- package/dist/core/session-cwd.d.ts.map +1 -1
- package/dist/core/session-cwd.js +0 -3
- package/dist/core/session-cwd.js.map +1 -1
- package/dist/core/session-manager.d.ts +7 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +32 -13
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +1 -31
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +1 -31
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +4 -56
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +11 -247
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +4 -54
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +7 -101
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +6 -14
- package/dist/core/skills.js.map +1 -1
- package/dist/core/slash-commands.d.ts +0 -6
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -27
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/source-info.d.ts +9 -0
- package/dist/core/source-info.d.ts.map +1 -1
- package/dist/core/source-info.js +13 -0
- package/dist/core/source-info.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +5 -6
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/telemetry.js +1 -1
- package/dist/core/telemetry.js.map +1 -1
- package/dist/core/theme/theme.d.ts.map +1 -1
- package/dist/core/theme/theme.js +5 -1
- package/dist/core/theme/theme.js.map +1 -1
- package/dist/core/tools/bash.d.ts +2 -2
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +35 -5
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +23 -14
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +182 -41
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts +3 -3
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +10 -11
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/find.d.ts +2 -2
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +82 -36
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts +7 -5
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +87 -75
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/ls.d.ts +2 -2
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +2 -1
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/powershell.d.ts.map +1 -1
- package/dist/core/tools/powershell.js +15 -2
- package/dist/core/tools/powershell.js.map +1 -1
- package/dist/core/tools/read.d.ts +10 -2
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +141 -25
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts +11 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +4 -14
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +23 -29
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts +2 -2
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +14 -8
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +2 -0
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/execute.js +4 -4
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +2 -1
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +59 -12
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/client.d.ts +2 -0
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +23 -2
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/index.d.ts.map +1 -1
- package/dist/extensions/llama/index.js +1 -1
- package/dist/extensions/llama/index.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts +2 -0
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +83 -22
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +4 -7
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +5 -4
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/oauth.d.ts +11 -49
- package/dist/extensions/mcp/oauth.d.ts.map +1 -1
- package/dist/extensions/mcp/oauth.js +56 -296
- package/dist/extensions/mcp/oauth.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +1 -1
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -3
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +4 -3
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +7 -5
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +2 -23
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +6 -58
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/extensions/punch/index.d.ts.map +1 -1
- package/dist/extensions/punch/index.js +1 -1
- package/dist/extensions/punch/index.js.map +1 -1
- package/dist/extensions/punch/todos.js +1 -1
- package/dist/extensions/punch/todos.js.map +1 -1
- package/dist/extensions/subagent/index.d.ts.map +1 -1
- package/dist/extensions/subagent/index.js +278 -129
- package/dist/extensions/subagent/index.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +21 -6
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +122 -42
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +106 -14
- package/dist/main.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +19 -10
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +53 -23
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +94 -12
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/ansi.d.ts.map +1 -1
- package/dist/utils/ansi.js +5 -2
- package/dist/utils/ansi.js.map +1 -1
- package/dist/utils/changelog.d.ts +2 -2
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +12 -9
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/clipboard-command.d.ts.map +1 -1
- package/dist/utils/clipboard-command.js +4 -0
- package/dist/utils/clipboard-command.js.map +1 -1
- package/dist/utils/fuzzy.d.ts.map +1 -1
- package/dist/utils/fuzzy.js +59 -44
- package/dist/utils/fuzzy.js.map +1 -1
- package/dist/utils/git.d.ts +11 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +44 -0
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +5 -3
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +3 -1
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/open-browser.d.ts.map +1 -1
- package/dist/utils/open-browser.js +4 -1
- package/dist/utils/open-browser.js.map +1 -1
- package/dist/utils/paths.d.ts +17 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +42 -1
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +14 -0
- package/dist/utils/shell.js.map +1 -1
- 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 +2 -0
- package/dist/utils/text.d.ts.map +1 -1
- package/dist/utils/text.js +5 -0
- package/dist/utils/text.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +30 -35
- package/dist/utils/tools-manager.js.map +1 -1
- 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/docs/cli-integration.md +3 -5
- package/docs/cli.md +45 -26
- package/docs/compaction.md +9 -9
- package/docs/configuration.md +1 -2
- package/docs/containerization.md +16 -14
- package/docs/custom-provider.md +5 -3
- package/docs/docs.json +9 -9
- package/docs/environment-variables.md +5 -12
- package/docs/extensions.md +683 -757
- package/docs/how-pi-works.md +5 -5
- package/docs/index.md +5 -5
- package/docs/llama-cpp.md +41 -39
- package/docs/mcp.md +12 -10
- package/docs/message-types.md +1 -1
- package/docs/models-configuration.md +6 -1
- package/docs/models.md +18 -19
- package/docs/nvidia-rtx-llama-cpp.md +1 -1
- package/docs/packages.md +21 -1
- package/docs/prompt-templates.md +11 -9
- package/docs/providers.md +8 -8
- package/docs/quickstart.md +28 -52
- package/docs/rpc-commands.md +2 -2
- package/docs/rpc-extension-ui.md +5 -7
- package/docs/rpc.md +4 -2
- package/docs/sdk.md +1 -1
- package/docs/security.md +9 -5
- package/docs/session-format.md +7 -9
- package/docs/sessions.md +26 -26
- package/docs/settings.md +36 -67
- package/docs/shell-aliases.md +7 -7
- package/docs/skills.md +4 -4
- package/docs/slash-commands.md +50 -58
- package/docs/termux.md +8 -9
- package/docs/themes.md +21 -41
- package/docs/usage.md +59 -177
- package/docs/virtual-models.md +4 -4
- package/docs/windows.md +8 -10
- package/examples/extensions/README.md +3 -2
- package/examples/extensions/custom-provider-anthropic/index.ts +27 -31
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +16 -26
- package/examples/extensions/gondolin/package.json +2 -2
- package/examples/extensions/reload-runtime.ts +17 -5
- package/examples/extensions/rpc-demo.ts +2 -2
- package/examples/extensions/subagent/README.md +14 -11
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/tsconfig.json +208 -0
- package/npm-shrinkwrap.json +32 -34
- package/package.json +12 -14
- package/schemas/models.schema.json +65 -36
- package/schemas/settings.schema.json +17 -243
- package/dist/bundle/chunks/anthropic-messages-WAYXCPZL.js +0 -6
- package/dist/bundle/chunks/azure-openai-responses-LUIPKPFC.js +0 -2
- package/dist/bundle/chunks/chunk-275CIYA5.js +0 -16
- package/dist/bundle/chunks/chunk-2W2ATKZM.js +0 -2
- package/dist/bundle/chunks/chunk-3V45WARH.js +0 -7
- package/dist/bundle/chunks/chunk-4LBJE4YM.js +0 -14
- package/dist/bundle/chunks/chunk-4NE64BTO.js +0 -82
- package/dist/bundle/chunks/chunk-7SFLP7ZK.js +0 -1197
- package/dist/bundle/chunks/chunk-BQU3RKDL.js +0 -2
- package/dist/bundle/chunks/chunk-NJK3U3WK.js +0 -8
- package/dist/bundle/chunks/chunk-NQWQE4BR.js +0 -11
- package/dist/bundle/chunks/chunk-TEPMHNKQ.js +0 -2
- package/dist/bundle/chunks/chunk-TRN3ET6M.js +0 -2
- package/dist/bundle/chunks/chunk-UE7JCDFW.js +0 -2
- package/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/dist/bundle/chunks/cli-W5KJM7YB.js +0 -51
- package/dist/bundle/chunks/mistral-conversations-FEBYNTL2.js +0 -5
- package/dist/bundle/chunks/openai-codex-responses-MI7TTP3C.js +0 -10
- package/dist/bundle/chunks/openai-completions-BVORSTAM.js +0 -7
- package/dist/bundle/chunks/openai-responses-TLIV5OQA.js +0 -4
- package/dist/bundle/chunks/pi-messages-4MVQCGGY.js +0 -8
- package/dist/bundle/chunks/virtual-modules-QK7S56IZ.js +0 -2
- package/dist/core/bug-report-upload.d.ts +0 -12
- package/dist/core/bug-report-upload.d.ts.map +0 -1
- package/dist/core/bug-report-upload.js +0 -22
- package/dist/core/bug-report-upload.js.map +0 -1
- package/dist/core/bug-report.d.ts +0 -184
- package/dist/core/bug-report.d.ts.map +0 -1
- package/dist/core/bug-report.js +0 -292
- package/dist/core/bug-report.js.map +0 -1
- package/dist/core/crash-log.d.ts +0 -27
- package/dist/core/crash-log.d.ts.map +0 -1
- package/dist/core/crash-log.js +0 -140
- package/dist/core/crash-log.js.map +0 -1
- package/dist/core/footer-data-provider.d.ts +0 -64
- package/dist/core/footer-data-provider.d.ts.map +0 -1
- package/dist/core/footer-data-provider.js +0 -338
- package/dist/core/footer-data-provider.js.map +0 -1
- package/dist/utils/zip.d.ts +0 -7
- package/dist/utils/zip.d.ts.map +0 -1
- package/dist/utils/zip.js +0 -60
- package/dist/utils/zip.js.map +0 -1
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/keybindings.md +0 -194
- package/docs/terminal-setup.md +0 -17
- package/docs/tmux.md +0 -55
- package/docs/tui.md +0 -125
- package/examples/extensions/sandbox/index.ts +0 -321
- package/examples/extensions/sandbox/package-lock.json +0 -66
- package/examples/extensions/sandbox/package.json +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-gondolin",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "echo 'nothing to clean'",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@earendil-works/gondolin": "0.
|
|
17
|
+
"@earendil-works/gondolin": "0.14.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reload Runtime Extension
|
|
3
3
|
*
|
|
4
4
|
* Demonstrates ctx.reload() from ExtensionCommandContext and an LLM-callable
|
|
5
|
-
* tool that
|
|
5
|
+
* tool that requests a reload once the agent has settled.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { ExtensionAPI } from "@punch-bot/cli";
|
|
@@ -19,19 +19,31 @@ export default function (pi: ExtensionAPI) {
|
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
// LLM-callable tool. Tools
|
|
23
|
-
//
|
|
22
|
+
// LLM-callable tool. Tools do not receive ExtensionCommandContext, so they cannot call
|
|
23
|
+
// ctx.reload(), and Pi cannot reload while the agent is running. The tool records the
|
|
24
|
+
// request and ends the run; the agent_settled handler then runs the command above.
|
|
25
|
+
let reloadRequested = false;
|
|
26
|
+
|
|
24
27
|
pi.registerTool({
|
|
25
28
|
name: "reload_runtime",
|
|
26
29
|
label: "Reload Runtime",
|
|
27
30
|
description: "Reload extensions, skills, prompts, themes, and context files",
|
|
28
31
|
parameters: Type.Object({}),
|
|
29
32
|
async execute() {
|
|
30
|
-
|
|
33
|
+
reloadRequested = true;
|
|
31
34
|
return {
|
|
32
|
-
content: [{ type: "text", text: "
|
|
35
|
+
content: [{ type: "text", text: "Reload requested. Pi reloads after this response." }],
|
|
33
36
|
details: {},
|
|
37
|
+
terminate: true,
|
|
34
38
|
};
|
|
35
39
|
},
|
|
36
40
|
});
|
|
41
|
+
|
|
42
|
+
pi.on("agent_settled", () => {
|
|
43
|
+
if (!reloadRequested) return;
|
|
44
|
+
reloadRequested = false;
|
|
45
|
+
// Sent from agent_settled, the command runs after every settled handler finishes, while
|
|
46
|
+
// the agent is idle. expandPromptTemplates dispatches it as a command, not as model input.
|
|
47
|
+
pi.sendUserMessage("/reload-runtime", { expandPromptTemplates: true });
|
|
48
|
+
});
|
|
37
49
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* RPC Extension UI Demo
|
|
3
3
|
*
|
|
4
4
|
* Purpose-built extension that exercises all RPC-supported extension UI methods.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Load it in a Pi RPC process (`pi --mode rpc -e ./rpc-demo.ts`) to see the
|
|
6
|
+
* full extension UI protocol from a client.
|
|
7
7
|
*
|
|
8
8
|
* UI methods exercised:
|
|
9
9
|
* - select() - on tool_call for dangerous bash commands
|
|
@@ -10,7 +10,7 @@ The `subagent` tool is built into Punch. The files in this directory provide the
|
|
|
10
10
|
- **Streaming output**: See tool calls and progress as they happen
|
|
11
11
|
- **Parallel streaming**: All parallel tasks stream updates simultaneously
|
|
12
12
|
- **Markdown rendering**: Final output rendered with proper formatting (expanded view)
|
|
13
|
-
- **Usage
|
|
13
|
+
- **Usage display**: Shows turns, tokens, cost, and context usage inside each subagent result
|
|
14
14
|
- **Abort support**: Ctrl+C propagates to kill subagent processes
|
|
15
15
|
|
|
16
16
|
## Structure
|
|
@@ -48,7 +48,7 @@ This tool executes a separate `pi` subprocess with a delegated system prompt and
|
|
|
48
48
|
|
|
49
49
|
To enable project-local agents, pass `agentScope: "both"` (or `"project"`). Only do this for repositories you trust.
|
|
50
50
|
|
|
51
|
-
When running interactively, the tool prompts for confirmation before running project-local agents
|
|
51
|
+
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 `.pi/agents` directory. Agents loaded from another task `cwd` still require confirmation. Set `confirmProjectAgents: false` to disable confirmation.
|
|
52
52
|
|
|
53
53
|
## Usage
|
|
54
54
|
|
|
@@ -98,8 +98,8 @@ Use a chain: first have scout find the read tool, then have planner suggest impr
|
|
|
98
98
|
**Parallel mode streaming**:
|
|
99
99
|
- Shows all tasks with live status (⏳ running, ✓ done, ✗ failed)
|
|
100
100
|
- Updates as each task makes progress
|
|
101
|
-
-
|
|
102
|
-
- Returns each completed task
|
|
101
|
+
- Distinguishes pending, running, completed, failed, and aborted tasks
|
|
102
|
+
- Returns each completed task summary to the parent model with its own 50 KB limit
|
|
103
103
|
- Returns failure diagnostics from stderr/error messages when a child exits before producing output
|
|
104
104
|
|
|
105
105
|
**Tool call formatting** (mimics built-in tools):
|
|
@@ -130,7 +130,7 @@ When `model` is omitted, the subagent inherits the dispatching session's active
|
|
|
130
130
|
|
|
131
131
|
**Locations:**
|
|
132
132
|
- Bundled `scout`, `planner`, `reviewer`, and `worker` definitions
|
|
133
|
-
- `~/.pi/agent/agents/*.md` - User-level (
|
|
133
|
+
- `~/.pi/agent/agents/*.md` - User-level (with `agentScope: "user"` or `"both"`)
|
|
134
134
|
- `.pi/agents/*.md` - Project-level (only with `agentScope: "project"` or `"both"`)
|
|
135
135
|
|
|
136
136
|
User agents override bundled agents. Project agents override both with the same name when their scope is enabled.
|
|
@@ -154,14 +154,17 @@ User agents override bundled agents. Project agents override both with the same
|
|
|
154
154
|
|
|
155
155
|
## Error Handling
|
|
156
156
|
|
|
157
|
-
- **Exit code != 0**: Tool returns error with stderr/output
|
|
158
|
-
- **
|
|
159
|
-
- **stopReason "
|
|
160
|
-
- **
|
|
157
|
+
- **Exit code != 0 or signal termination**: Tool returns an error with preserved stderr/output
|
|
158
|
+
- **Spawn errors**: Tool returns the spawn diagnostic
|
|
159
|
+
- **stopReason "error"**: LLM error is propagated with its error message
|
|
160
|
+
- **Abort**: Ctrl+C sends SIGTERM, escalates to SIGKILL after five seconds if needed, and preserves partial details/usage
|
|
161
|
+
- **Chain mode**: Stops at the first failing step and reports which step failed
|
|
161
162
|
|
|
162
163
|
## Limitations
|
|
163
164
|
|
|
164
165
|
- Output truncated to last 10 items in collapsed view (expand to see all)
|
|
165
|
-
-
|
|
166
|
-
-
|
|
166
|
+
- Single and chain output is capped at 50 KB/2,000 lines; full results remain in tool details
|
|
167
|
+
- Parallel output keeps a separate 50 KB budget per task, allowing up to roughly 400 KB across eight tasks
|
|
168
|
+
- Child usage is displayed in tool details but is not added to the calling session's usage totals
|
|
169
|
+
- Agents are snapshotted from each task's effective cwd when the tool invocation starts; relative task cwd values resolve from the session cwd
|
|
167
170
|
- Parallel mode limited to 8 tasks, 4 concurrent
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.3",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// Type-checks the example extensions against the modules extensions see at run time (core/extensions/virtual-modules.ts):
|
|
2
|
+
// "@punch-bot/ai" is the extension view, which adds TypeBox's Type, Static and TSchema to the compat entry (the
|
|
3
|
+
// view imports "@punch-bot/ai/compat", so that path stays the package's own).
|
|
4
|
+
// The other paths repeat the root tsconfig.json; keep them in sync.
|
|
5
|
+
{
|
|
6
|
+
"extends": "../../../tsconfig.json",
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"paths": {
|
|
9
|
+
"@punch-bot/chord": [
|
|
10
|
+
"../../../packages/chord/src/index.ts"
|
|
11
|
+
],
|
|
12
|
+
"@punch-bot/chord/context": [
|
|
13
|
+
"../../../packages/chord/src/context/index.ts"
|
|
14
|
+
],
|
|
15
|
+
"@punch-bot/chord/delta": [
|
|
16
|
+
"../../../packages/chord/src/delta/index.ts"
|
|
17
|
+
],
|
|
18
|
+
"@punch-bot/chord/json": [
|
|
19
|
+
"../../../packages/chord/src/json.ts"
|
|
20
|
+
],
|
|
21
|
+
"@punch-bot/chord/watch": [
|
|
22
|
+
"../../../packages/chord/src/watch.ts"
|
|
23
|
+
],
|
|
24
|
+
"@punch-bot/chord/output": [
|
|
25
|
+
"../../../packages/chord/src/output.ts"
|
|
26
|
+
],
|
|
27
|
+
"@punch-bot/chord/sqlite": [
|
|
28
|
+
"../../../packages/chord/src/sqlite/index.ts"
|
|
29
|
+
],
|
|
30
|
+
"@punch-bot/chord/sqlite/node": [
|
|
31
|
+
"../../../packages/chord/src/sqlite/node.ts"
|
|
32
|
+
],
|
|
33
|
+
"@punch-bot/chord/sqlite/cloudflare": [
|
|
34
|
+
"../../../packages/chord/src/sqlite/cloudflare.ts"
|
|
35
|
+
],
|
|
36
|
+
"@punch-bot/chord/telemetry-sqlite": [
|
|
37
|
+
"../../../packages/chord/src/telemetry-sqlite/index.ts"
|
|
38
|
+
],
|
|
39
|
+
"@punch-bot/chord/http": [
|
|
40
|
+
"../../../packages/chord/src/node/http/index.ts"
|
|
41
|
+
],
|
|
42
|
+
"@punch-bot/chord/workers": [
|
|
43
|
+
"../../../packages/chord/src/node/workers/index.ts"
|
|
44
|
+
],
|
|
45
|
+
"@punch-bot/chord/workers/child": [
|
|
46
|
+
"../../../packages/chord/src/node/workers/child.ts"
|
|
47
|
+
],
|
|
48
|
+
"@punch-bot/chord/plugins": [
|
|
49
|
+
"../../../packages/chord/src/node/plugins/index.ts"
|
|
50
|
+
],
|
|
51
|
+
"@punch-bot/chord/plugins/runtime": [
|
|
52
|
+
"../../../packages/chord/src/node/plugins/runtime.ts"
|
|
53
|
+
],
|
|
54
|
+
"@punch-bot/chord/app": [
|
|
55
|
+
"../../../packages/chord/src/node/app/index.ts"
|
|
56
|
+
],
|
|
57
|
+
"@punch-bot/chord/app/files": [
|
|
58
|
+
"../../../packages/chord/src/node/app/files-entry.ts"
|
|
59
|
+
],
|
|
60
|
+
"@punch-bot/chord/web": [
|
|
61
|
+
"../../../packages/chord/src/web/index.ts"
|
|
62
|
+
],
|
|
63
|
+
"@punch-bot/chord/surfaces": [
|
|
64
|
+
"../../../packages/chord/src/node/surfaces/index.ts"
|
|
65
|
+
],
|
|
66
|
+
"@punch-bot/chord/react": [
|
|
67
|
+
"../../../packages/chord/src/react/index.ts"
|
|
68
|
+
],
|
|
69
|
+
"@punch-bot/chord/tui": [
|
|
70
|
+
"../../../packages/chord/src/tui/index.ts"
|
|
71
|
+
],
|
|
72
|
+
"@punch-bot/chord/tui/launcher": [
|
|
73
|
+
"../../../packages/chord/src/node/tui/index.ts"
|
|
74
|
+
],
|
|
75
|
+
"@punch-bot/chord/sync": [
|
|
76
|
+
"../../../packages/chord/src/sync/index.ts"
|
|
77
|
+
],
|
|
78
|
+
"@test/contracts/*": [
|
|
79
|
+
"../../chord/test/node/fixtures/plugins/contracts/*.ts"
|
|
80
|
+
],
|
|
81
|
+
"@example/contracts/*": [
|
|
82
|
+
"../../chord/test/examples/35-plugins/plugins/contracts/*.ts"
|
|
83
|
+
],
|
|
84
|
+
"@example/weather/*": [
|
|
85
|
+
"../../chord/test/examples/36-plugin-failures/plugins/weather/*.ts"
|
|
86
|
+
],
|
|
87
|
+
"@example/prices/*": [
|
|
88
|
+
"../../chord/test/examples/36-plugin-failures/plugins/prices/*.ts"
|
|
89
|
+
],
|
|
90
|
+
"@example/shapes/*": [
|
|
91
|
+
"../../chord/test/examples/37-plugin-imports/plugins/shapes/*.ts"
|
|
92
|
+
],
|
|
93
|
+
"@example/shared/*": [
|
|
94
|
+
"../../chord/test/examples/38-watch-and-rollout/plugins/contracts/*.ts"
|
|
95
|
+
],
|
|
96
|
+
"@punch-bot/chord/compression": [
|
|
97
|
+
"../../../packages/chord/src/node/compression.ts"
|
|
98
|
+
],
|
|
99
|
+
"@punch-bot/telemetry": [
|
|
100
|
+
"../../../packages/telemetry/src/index.ts"
|
|
101
|
+
],
|
|
102
|
+
"@punch-bot/telemetry/testing": [
|
|
103
|
+
"../../../packages/telemetry/src/testing/index.ts"
|
|
104
|
+
],
|
|
105
|
+
"@punch-bot/telemetry/render": [
|
|
106
|
+
"../../../packages/telemetry/src/render.ts"
|
|
107
|
+
],
|
|
108
|
+
"@punch-bot/codemode": [
|
|
109
|
+
"../../../packages/codemode/src/index.ts"
|
|
110
|
+
],
|
|
111
|
+
"@punch-bot/codemode/cloudflare": [
|
|
112
|
+
"../../../packages/codemode/src/cloudflare.ts"
|
|
113
|
+
],
|
|
114
|
+
"@punch-bot/codemode/declarations": [
|
|
115
|
+
"../../../packages/codemode/src/declarations.ts"
|
|
116
|
+
],
|
|
117
|
+
"@punch-bot/codemode/portable": [
|
|
118
|
+
"../../../packages/codemode/src/portable.ts"
|
|
119
|
+
],
|
|
120
|
+
"@punch-bot/codemode/source": [
|
|
121
|
+
"../../../packages/codemode/src/source.ts"
|
|
122
|
+
],
|
|
123
|
+
"@punch-bot/codemode/worker": [
|
|
124
|
+
"../../../packages/codemode/src/runtime/worker.ts"
|
|
125
|
+
],
|
|
126
|
+
"@punch-bot/schema": [
|
|
127
|
+
"../../../packages/schema/src/index.ts"
|
|
128
|
+
],
|
|
129
|
+
"@punch-bot/schema/formats": [
|
|
130
|
+
"../../../packages/schema/src/formats/index.ts"
|
|
131
|
+
],
|
|
132
|
+
"@punch-bot/mcp": [
|
|
133
|
+
"../../../packages/mcp/src/index.ts"
|
|
134
|
+
],
|
|
135
|
+
"@punch-bot/mcp/oauth": [
|
|
136
|
+
"../../../packages/mcp/src/oauth/index.ts"
|
|
137
|
+
],
|
|
138
|
+
"@punch-bot/mcp/testing": [
|
|
139
|
+
"../../../packages/mcp/src/testing/index.ts"
|
|
140
|
+
],
|
|
141
|
+
"@punch-bot/ai": [
|
|
142
|
+
"../../../packages/coding-agent/src/core/extensions/pi-ai-extension-view.ts"
|
|
143
|
+
],
|
|
144
|
+
"@punch-bot/ai/oauth": [
|
|
145
|
+
"../../../packages/ai/src/oauth.ts"
|
|
146
|
+
],
|
|
147
|
+
"@punch-bot/ai/*": [
|
|
148
|
+
"../../../packages/ai/src/*.ts",
|
|
149
|
+
"../../../packages/ai/src/providers/*.ts"
|
|
150
|
+
],
|
|
151
|
+
"@punch-bot/ai/dist/*": [
|
|
152
|
+
"../../../packages/ai/src/*"
|
|
153
|
+
],
|
|
154
|
+
"@punch-bot/durable": [
|
|
155
|
+
"../../../packages/durable/src/index.ts"
|
|
156
|
+
],
|
|
157
|
+
"@punch-bot/durable/testing": [
|
|
158
|
+
"../../../packages/durable/src/testing/index.ts"
|
|
159
|
+
],
|
|
160
|
+
"@punch-bot/durable/*": [
|
|
161
|
+
"../../../packages/durable/src/*.ts",
|
|
162
|
+
"../../../packages/durable/src/*/index.ts",
|
|
163
|
+
"../../../packages/durable/src/*"
|
|
164
|
+
],
|
|
165
|
+
"@punch-bot/env": [
|
|
166
|
+
"../../../packages/env/src/index.ts"
|
|
167
|
+
],
|
|
168
|
+
"@punch-bot/agent": [
|
|
169
|
+
"../../../packages/agent/src/index.ts"
|
|
170
|
+
],
|
|
171
|
+
"@punch-bot/cli": [
|
|
172
|
+
"../../../packages/coding-agent/src/index.ts"
|
|
173
|
+
],
|
|
174
|
+
"@punch-bot/cli/hooks": [
|
|
175
|
+
"../../../packages/coding-agent/src/core/hooks/index.ts"
|
|
176
|
+
],
|
|
177
|
+
"@punch-bot/cli/*": [
|
|
178
|
+
"../../../packages/coding-agent/src/*"
|
|
179
|
+
],
|
|
180
|
+
"@punch-bot/a2a": [
|
|
181
|
+
"../../../packages/a2a/src/index.ts"
|
|
182
|
+
],
|
|
183
|
+
"@punch-bot/a2a/*": [
|
|
184
|
+
"../../../packages/a2a/src/*"
|
|
185
|
+
],
|
|
186
|
+
"typebox": [
|
|
187
|
+
"../../../node_modules/typebox"
|
|
188
|
+
],
|
|
189
|
+
"@earendil-works/pi-agent-old": [
|
|
190
|
+
"../../../packages/agent-old/src/index.ts"
|
|
191
|
+
],
|
|
192
|
+
"@earendil-works/pi-agent-old/*": [
|
|
193
|
+
"../../../packages/agent-old/src/*"
|
|
194
|
+
],
|
|
195
|
+
"@mariozechner/pi-ai": [
|
|
196
|
+
"../../../packages/coding-agent/src/core/extensions/pi-ai-extension-view.ts"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"include": [
|
|
201
|
+
"./extensions/**/*",
|
|
202
|
+
"../../*/src/**/*.d.ts"
|
|
203
|
+
],
|
|
204
|
+
"exclude": [
|
|
205
|
+
"**/node_modules/**",
|
|
206
|
+
"./extensions/gondolin/**"
|
|
207
|
+
]
|
|
208
|
+
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punch-bot/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@punch-bot/cli",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.3",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@punch-bot/a2a": "1.5.
|
|
13
|
-
"@punch-bot/agent": "1.5.
|
|
14
|
-
"@punch-bot/ai": "1.5.
|
|
12
|
+
"@punch-bot/a2a": "1.5.3",
|
|
13
|
+
"@punch-bot/agent": "1.5.3",
|
|
14
|
+
"@punch-bot/ai": "1.5.3",
|
|
15
15
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
16
16
|
"brace-expansion": "5.0.12",
|
|
17
17
|
"chalk": "6.0.0",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"cron-parser": "5.10.0",
|
|
20
20
|
"cross-spawn": "7.0.6",
|
|
21
21
|
"diff": "8.0.4",
|
|
22
|
-
"grok-mermaid": "0.2.3",
|
|
23
22
|
"highlight.js": "10.7.3",
|
|
24
23
|
"hosted-git-info": "9.0.3",
|
|
25
24
|
"ignore": "7.0.8",
|
|
@@ -31,8 +30,8 @@
|
|
|
31
30
|
"typebox": "1.3.27",
|
|
32
31
|
"undici": "8.12.3",
|
|
33
32
|
"yaml": "2.9.0",
|
|
34
|
-
"@punch-bot/codemode": "1.5.
|
|
35
|
-
"@punch-bot/mcp": "1.5.
|
|
33
|
+
"@punch-bot/codemode": "1.5.3",
|
|
34
|
+
"@punch-bot/mcp": "1.5.3",
|
|
36
35
|
"quickjs-wasi": "3.6.2"
|
|
37
36
|
},
|
|
38
37
|
"bin": {
|
|
@@ -165,8 +164,8 @@
|
|
|
165
164
|
"license": "BSD-3-Clause"
|
|
166
165
|
},
|
|
167
166
|
"node_modules/@punch-bot/a2a": {
|
|
168
|
-
"version": "1.5.
|
|
169
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/a2a/-/a2a-1.5.
|
|
167
|
+
"version": "1.5.3",
|
|
168
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/a2a/-/a2a-1.5.3.tgz",
|
|
170
169
|
"license": "MIT",
|
|
171
170
|
"dependencies": {
|
|
172
171
|
"@a2a-js/sdk": "1.0.1",
|
|
@@ -177,32 +176,32 @@
|
|
|
177
176
|
}
|
|
178
177
|
},
|
|
179
178
|
"node_modules/@punch-bot/agent": {
|
|
180
|
-
"version": "1.5.
|
|
181
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/agent/-/agent-1.5.
|
|
179
|
+
"version": "1.5.3",
|
|
180
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/agent/-/agent-1.5.3.tgz",
|
|
182
181
|
"license": "MIT",
|
|
183
182
|
"dependencies": {
|
|
184
|
-
"@punch-bot/ai": "1.5.
|
|
185
|
-
"
|
|
183
|
+
"@punch-bot/ai": "1.5.3",
|
|
184
|
+
"@punch-bot/schema": "1.5.3"
|
|
186
185
|
},
|
|
187
186
|
"engines": {
|
|
188
187
|
"node": ">=22.19.0"
|
|
189
188
|
}
|
|
190
189
|
},
|
|
191
190
|
"node_modules/@punch-bot/ai": {
|
|
192
|
-
"version": "1.5.
|
|
193
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/ai/-/ai-1.5.
|
|
191
|
+
"version": "1.5.3",
|
|
192
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/ai/-/ai-1.5.3.tgz",
|
|
194
193
|
"license": "MIT",
|
|
195
194
|
"dependencies": {
|
|
196
195
|
"@anthropic-ai/sdk": "0.129.0",
|
|
197
196
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
198
|
-
"@punch-bot/
|
|
197
|
+
"@punch-bot/schema": "1.5.3",
|
|
198
|
+
"@punch-bot/telemetry": "1.5.3",
|
|
199
199
|
"@google/genai": "2.21.0",
|
|
200
200
|
"@smithy/node-http-handler": "4.12.1",
|
|
201
201
|
"http-proxy-agent": "9.1.0",
|
|
202
202
|
"https-proxy-agent": "9.1.0",
|
|
203
203
|
"openai": "7.19.0",
|
|
204
|
-
"partial-json": "0.1.7"
|
|
205
|
-
"typebox": "1.3.27"
|
|
204
|
+
"partial-json": "0.1.7"
|
|
206
205
|
},
|
|
207
206
|
"bin": {
|
|
208
207
|
"pi-ai": "dist/cli.js"
|
|
@@ -695,8 +694,8 @@
|
|
|
695
694
|
}
|
|
696
695
|
},
|
|
697
696
|
"node_modules/@punch-bot/codemode": {
|
|
698
|
-
"version": "1.5.
|
|
699
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/codemode/-/codemode-1.5.
|
|
697
|
+
"version": "1.5.3",
|
|
698
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/codemode/-/codemode-1.5.3.tgz",
|
|
700
699
|
"license": "MIT",
|
|
701
700
|
"dependencies": {
|
|
702
701
|
"quickjs-wasi": "3.6.2"
|
|
@@ -706,8 +705,8 @@
|
|
|
706
705
|
}
|
|
707
706
|
},
|
|
708
707
|
"node_modules/@punch-bot/mcp": {
|
|
709
|
-
"version": "1.5.
|
|
710
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/mcp/-/mcp-1.5.
|
|
708
|
+
"version": "1.5.3",
|
|
709
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/mcp/-/mcp-1.5.3.tgz",
|
|
711
710
|
"license": "MIT",
|
|
712
711
|
"dependencies": {
|
|
713
712
|
"cross-spawn": "7.0.6"
|
|
@@ -716,9 +715,17 @@
|
|
|
716
715
|
"node": ">=22.19.0"
|
|
717
716
|
}
|
|
718
717
|
},
|
|
718
|
+
"node_modules/@punch-bot/schema": {
|
|
719
|
+
"version": "1.5.3",
|
|
720
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/schema/-/schema-1.5.3.tgz",
|
|
721
|
+
"license": "MIT",
|
|
722
|
+
"engines": {
|
|
723
|
+
"node": ">=22.19.0"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
719
726
|
"node_modules/@punch-bot/telemetry": {
|
|
720
|
-
"version": "1.5.
|
|
721
|
-
"resolved": "https://registry.npmjs.org/@punch-bot/telemetry/-/telemetry-1.5.
|
|
727
|
+
"version": "1.5.3",
|
|
728
|
+
"resolved": "https://registry.npmjs.org/@punch-bot/telemetry/-/telemetry-1.5.3.tgz",
|
|
722
729
|
"license": "MIT",
|
|
723
730
|
"engines": {
|
|
724
731
|
"node": ">=22.19.0"
|
|
@@ -1364,15 +1371,6 @@
|
|
|
1364
1371
|
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
|
1365
1372
|
"license": "ISC"
|
|
1366
1373
|
},
|
|
1367
|
-
"node_modules/grok-mermaid": {
|
|
1368
|
-
"version": "0.2.3",
|
|
1369
|
-
"resolved": "https://registry.npmjs.org/grok-mermaid/-/grok-mermaid-0.2.3.tgz",
|
|
1370
|
-
"integrity": "sha512-/4KopAbsjvuRP9MdPtlDjOHUmUVEohOX73JNcsWpzAtFxh+bq5+Dhb6gzvRieLDwIPQIR3/vy8V1NNTuz4Zsmg==",
|
|
1371
|
-
"license": "Apache-2.0",
|
|
1372
|
-
"engines": {
|
|
1373
|
-
"node": ">=18"
|
|
1374
|
-
}
|
|
1375
|
-
},
|
|
1376
1374
|
"node_modules/has-symbols": {
|
|
1377
1375
|
"version": "1.1.0",
|
|
1378
1376
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punch-bot/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Headless coding agent SDK, RPC, and print modes with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"npm-shrinkwrap.json"
|
|
41
41
|
],
|
|
42
42
|
"scripts": {
|
|
43
|
-
"clean": "
|
|
43
|
+
"clean": "node ../../scripts/package-files.mjs clean dist",
|
|
44
44
|
"build": "npm run build:unbundled && node ../../scripts/build-coding-agent-bundle.mjs",
|
|
45
|
-
"build:unbundled": "tsc -p tsconfig.build.json &&
|
|
46
|
-
"build:binary": "npm --prefix ../telemetry run build && npm --prefix ../mcp run build && npm --prefix ../codemode run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm --prefix ../a2a run build && npm run build && bun build --compile --no-compile-autoload-bunfig --no-compile-autoload-dotenv ./src/bun/cli.ts ./src/utils/image-resize-worker.ts ./src/extensions/codemode/worker.ts --outfile dist/pi && npm run copy-binary-assets",
|
|
47
|
-
"copy-assets": "
|
|
48
|
-
"copy-binary-assets": "
|
|
45
|
+
"build:unbundled": "tsc -p tsconfig.build.json && node ../../scripts/package-files.mjs executable dist/cli.js dist/rpc-entry.js && npm run copy-assets",
|
|
46
|
+
"build:binary": "npm --prefix ../schema run build && npm --prefix ../telemetry run build && npm --prefix ../mcp run build && npm --prefix ../codemode run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm --prefix ../a2a run build && npm run build && bun build --compile --no-compile-autoload-bunfig --no-compile-autoload-dotenv ./src/bun/cli.ts ./src/utils/image-resize-worker.ts ./src/extensions/codemode/worker.ts --outfile dist/pi && npm run copy-binary-assets",
|
|
47
|
+
"copy-assets": "node ../../scripts/package-files.mjs copy \"src/core/theme/*.json\" dist/core/theme && node ../../scripts/package-files.mjs copy src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/core/export-html/vendor",
|
|
48
|
+
"copy-binary-assets": "node ../../scripts/package-files.mjs copy package.json README.md CHANGELOG.md docs examples ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist && node ../../scripts/package-files.mjs copy \"src/core/theme/*.json\" dist/theme && node ../../scripts/package-files.mjs copy src/core/export-html/template.html dist/export-html && node ../../scripts/package-files.mjs copy \"src/core/export-html/vendor/*.js\" dist/export-html/vendor",
|
|
49
49
|
"test": "vitest --run",
|
|
50
50
|
"generate:schemas": "node --import ./src/experimental/source-resolver.ts scripts/generate-schemas.ts",
|
|
51
51
|
"generate:references": "node --import ./src/experimental/source-resolver.ts scripts/generate-references.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@punch-bot/a2a": "1.5.
|
|
57
|
-
"@punch-bot/agent": "1.5.
|
|
58
|
-
"@punch-bot/ai": "1.5.
|
|
56
|
+
"@punch-bot/a2a": "1.5.3",
|
|
57
|
+
"@punch-bot/agent": "1.5.3",
|
|
58
|
+
"@punch-bot/ai": "1.5.3",
|
|
59
59
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
60
60
|
"brace-expansion": "5.0.12",
|
|
61
61
|
"chalk": "6.0.0",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"cron-parser": "5.10.0",
|
|
64
64
|
"cross-spawn": "7.0.6",
|
|
65
65
|
"diff": "8.0.4",
|
|
66
|
-
"grok-mermaid": "0.2.3",
|
|
67
66
|
"highlight.js": "10.7.3",
|
|
68
67
|
"hosted-git-info": "9.0.3",
|
|
69
68
|
"ignore": "7.0.8",
|
|
@@ -75,8 +74,8 @@
|
|
|
75
74
|
"typebox": "1.3.27",
|
|
76
75
|
"undici": "8.12.3",
|
|
77
76
|
"yaml": "2.9.0",
|
|
78
|
-
"@punch-bot/codemode": "1.5.
|
|
79
|
-
"@punch-bot/mcp": "1.5.
|
|
77
|
+
"@punch-bot/codemode": "1.5.3",
|
|
78
|
+
"@punch-bot/mcp": "1.5.3",
|
|
80
79
|
"quickjs-wasi": "3.6.2"
|
|
81
80
|
},
|
|
82
81
|
"overrides": {
|
|
@@ -89,9 +88,8 @@
|
|
|
89
88
|
"@types/proper-lockfile": "4.1.4",
|
|
90
89
|
"@types/semver": "7.7.1",
|
|
91
90
|
"marked": "18.0.11",
|
|
92
|
-
"shx": "0.4.0",
|
|
93
91
|
"vitest": "5.0.5",
|
|
94
|
-
"@punch-bot/durable": "1.5.
|
|
92
|
+
"@punch-bot/durable": "1.5.3"
|
|
95
93
|
},
|
|
96
94
|
"keywords": [
|
|
97
95
|
"coding-agent",
|