@humain/humain-code 0.4.17 → 0.5.0
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 +260 -1
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-ZP5KUK52.js +67 -0
- package/dist/bundle/chunks/anthropic.js +2 -2
- package/dist/bundle/chunks/azure-openai-responses-QJFYQ3DF.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +152 -200
- package/dist/bundle/chunks/{chunk-4XU7TDAL.js → chunk-2GCMACT4.js} +48 -46
- package/dist/bundle/chunks/{chunk-DUSJT2W4.js → chunk-476XBL3W.js} +3 -3
- package/dist/bundle/chunks/{chunk-4NFYTS4C.js → chunk-5C4VL2AR.js} +4 -4
- package/dist/bundle/chunks/{chunk-QEF72EIZ.js → chunk-A6B2QMA7.js} +40 -96
- package/dist/bundle/chunks/{chunk-AOL6QG6L.js → chunk-A6YBWW4T.js} +1405 -1311
- package/dist/bundle/chunks/{chunk-ZRGFX6T6.js → chunk-CN3Q5UNB.js} +387 -309
- package/dist/bundle/chunks/{chunk-TJG52LZB.js → chunk-DR37WKFZ.js} +9 -8
- package/dist/bundle/chunks/chunk-DU6POZ7E.js +10 -0
- package/dist/bundle/chunks/{chunk-X6OTEVGA.js → chunk-FO2NYB6O.js} +626 -619
- package/dist/bundle/chunks/{chunk-RXOCQRBG.js → chunk-GEISZXXH.js} +1 -1
- package/dist/bundle/chunks/{chunk-OKALNPTJ.js → chunk-HIZWUSPN.js} +24 -24
- package/dist/bundle/chunks/{chunk-MVYV6MJY.js → chunk-HT5YN3LX.js} +1 -1
- package/dist/bundle/chunks/chunk-IDU5BNNI.js +15 -0
- package/dist/bundle/chunks/{chunk-TIFFHHW6.js → chunk-JCXXRCP6.js} +5 -5
- package/dist/bundle/chunks/{chunk-QYCOHSI7.js → chunk-KKCMWB63.js} +8 -7
- package/dist/bundle/chunks/{chunk-SCBU5WOP.js → chunk-M74U5X4S.js} +30 -23
- package/dist/bundle/chunks/{chunk-AWCJWXGD.js → chunk-MIJHJNNQ.js} +3 -2
- package/dist/bundle/chunks/{chunk-Y26OS23T.js → chunk-N7CQ3UV3.js} +4 -4
- package/dist/bundle/chunks/{chunk-XQZG5HPT.js → chunk-O4DO5RWS.js} +11 -6
- package/dist/bundle/chunks/chunk-OR25QDSS.js +365 -0
- package/dist/bundle/chunks/{chunk-7PRU6YW3.js → chunk-OZNC2W4B.js} +306 -286
- package/dist/bundle/chunks/{chunk-Z33NNMNB.js → chunk-PH7UP57J.js} +1 -1
- package/dist/bundle/chunks/{chunk-FHVNUUBF.js → chunk-PS7DGA7B.js} +1 -1
- package/dist/bundle/chunks/chunk-Q3SFYT2X.js +1965 -0
- package/dist/bundle/chunks/chunk-QW6PTCAB.js +10 -0
- package/dist/bundle/chunks/{chunk-5CDES42D.js → chunk-QWXPGBAG.js} +1 -1
- package/dist/bundle/chunks/{chunk-NCQ6WAQK.js → chunk-ROZV2IYD.js} +1 -1
- package/dist/bundle/chunks/{chunk-PTP2ZHFQ.js → chunk-RTXDU3AA.js} +148 -122
- package/dist/bundle/chunks/{chunk-36Q5UVQL.js → chunk-T3HXWZG4.js} +2 -2
- package/dist/bundle/chunks/{chunk-FZUJXM6D.js → chunk-UDB6NI4G.js} +309 -240
- package/dist/bundle/chunks/chunk-UTNHGOFS.js +88 -0
- package/dist/bundle/chunks/{chunk-H2FY3PEV.js → chunk-V62QBESW.js} +4 -3
- package/dist/bundle/chunks/{chunk-LG2PJ6JN.js → chunk-XA7CJAYH.js} +4 -3
- package/dist/bundle/chunks/chunk-XQX7S3GM.js +7 -0
- package/dist/bundle/chunks/chunk-YFOLLX5D.js +23 -0
- package/dist/bundle/chunks/{chunk-YRCLNWFV.js → chunk-ZI7TK7HM.js} +1 -1
- package/dist/bundle/chunks/{chunk-V76YPIMT.js → chunk-ZR4GF4WU.js} +21 -15
- package/dist/bundle/chunks/{cli-SRI4UOSL.js → cli-VXU7OWFU.js} +1 -1
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-T7TPP7SQ.js +4 -0
- package/dist/bundle/chunks/codemode-worker.js +27 -27
- package/dist/bundle/chunks/compat-S2IBVV6V.js +13 -0
- package/dist/bundle/chunks/{dist-D7M52E3X.js → dist-645GFIWH.js} +452 -448
- package/dist/bundle/chunks/{dist-XVXV2CL4.js → dist-IBUWEKEE.js} +3 -3
- package/dist/bundle/chunks/dist-YFMJEHPH.js +8 -0
- package/dist/bundle/chunks/{dist-cjs-AXBW3N4F.js → dist-cjs-HTASUQXQ.js} +82 -80
- package/dist/bundle/chunks/{easter-egg-3d-4SUPLBUF.js → easter-egg-3d-YOPLCOVW.js} +2 -2
- package/dist/bundle/chunks/{esm-NCUV2DF7.js → esm-R6HJ4QEG.js} +5 -5
- package/dist/bundle/chunks/{event-streams-NXFTZDSF.js → event-streams-BR2IL6C5.js} +1 -1
- package/dist/bundle/chunks/{execute-NTO3U76E.js → execute-2JXEKQ2X.js} +17 -8
- package/dist/bundle/chunks/{extract-BKBHK4AK.js → extract-OTCGZGTL.js} +50 -47
- package/dist/bundle/chunks/github-copilot.js +42 -40
- package/dist/bundle/chunks/google-generative-ai-HVPCGIZ6.js +21 -0
- package/dist/bundle/chunks/google-vertex-UM5MAALA.js +25 -0
- package/dist/bundle/chunks/host-ZHEL5XQW.js +2 -0
- package/dist/bundle/chunks/{https-proxy-agent-7CAXVAFH.js → https-proxy-agent-JQICCRPH.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-AGCW7HYN.js → llama-cpp-classify-B3G57LVR.js} +5 -5
- package/dist/bundle/chunks/{mistral-conversations-G3GN6CMT.js → mistral-conversations-AH72RLXK.js} +11 -11
- package/dist/bundle/chunks/{node-ELWNZC34.js → node-SJPZTR4K.js} +6 -6
- package/dist/bundle/chunks/{node-DZCAT4Q6.js → node-VSA4ZN7D.js} +1 -1
- package/dist/bundle/chunks/openai-chatgpt.js +2 -2
- package/dist/bundle/chunks/{openai-codex-responses-FJFDAWHI.js → openai-codex-responses-L366637C.js} +48 -47
- package/dist/bundle/chunks/openai-codex.js +2 -2
- package/dist/bundle/chunks/openai-completions-ZP62QXJX.js +83 -0
- package/dist/bundle/chunks/{openai-decisions-HESOHYZB.js → openai-decisions-WOWUC65P.js} +1 -1
- package/dist/bundle/chunks/openai-responses-DXUGSUTN.js +26 -0
- package/dist/bundle/chunks/openrouter-images-5K47HDAT.js +8 -0
- package/dist/bundle/chunks/openrouter.js +2 -2
- package/dist/bundle/chunks/{pi-messages-SAOV3JNW.js → pi-messages-MOQQDZBK.js} +5 -4
- package/dist/bundle/chunks/radius.js +2 -2
- package/dist/bundle/chunks/{runtime-VGSK3QCM.js → runtime-5VFZTMWL.js} +1 -1
- package/dist/bundle/chunks/typesafe-system-one-43OCHGKP.js +3 -0
- package/dist/bundle/chunks/{undici-N4LWJ3S3.js → undici-EK3EUI2E.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-GU6AW5ZK.js +5 -0
- package/dist/bundle/cli-runtime.js +3 -3
- package/dist/bundle/flow/package.json +4 -4
- package/dist/bundle/index.js +6 -6
- package/dist/bundle/rpc-entry.js +3 -3
- package/dist/cli/args.d.ts +6 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +11 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/coordination/adapter/tool.d.ts.map +1 -1
- package/dist/coordination/adapter/tool.js +3 -1
- package/dist/coordination/adapter/tool.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +6 -2
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +20 -8
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +4 -2
- package/dist/coordination/client/client.js.map +1 -1
- package/dist/coordination/transport/discovery.d.ts +10 -3
- package/dist/coordination/transport/discovery.d.ts.map +1 -1
- package/dist/coordination/transport/discovery.js +18 -5
- package/dist/coordination/transport/discovery.js.map +1 -1
- package/dist/core/agent-session.d.ts +35 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +163 -40
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/anthropic-subscription-usage.d.ts +47 -0
- package/dist/core/anthropic-subscription-usage.d.ts.map +1 -0
- package/dist/core/anthropic-subscription-usage.js +170 -0
- package/dist/core/anthropic-subscription-usage.js.map +1 -0
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +7 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/client-identity.d.ts +13 -0
- package/dist/core/client-identity.d.ts.map +1 -0
- package/dist/core/client-identity.js +25 -0
- package/dist/core/client-identity.js.map +1 -0
- package/dist/core/codex-usage.d.ts +37 -1
- package/dist/core/codex-usage.d.ts.map +1 -1
- package/dist/core/codex-usage.js +104 -11
- package/dist/core/codex-usage.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -2
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +2 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +20 -15
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +2 -0
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.html +1 -0
- package/dist/core/export-html/template.js +2 -1
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +30 -29
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +3 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +14 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +86 -2
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +3 -0
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/model-config.d.ts +920 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +48 -24
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +18 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +20 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +14 -6
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +9 -0
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +99 -12
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/output-guard.d.ts +13 -1
- package/dist/core/output-guard.d.ts.map +1 -1
- package/dist/core/output-guard.js +101 -11
- package/dist/core/output-guard.js.map +1 -1
- package/dist/core/provider-composer.d.ts +2 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +7 -3
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +7 -2
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +8 -9
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts +4 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +242 -26
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/system-prompt.d.ts +6 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +93 -1
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +3 -1
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +37 -12
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +102 -24
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +3 -1
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +3 -2
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/usage/index.d.ts +15 -0
- package/dist/extensions/usage/index.d.ts.map +1 -0
- package/dist/extensions/usage/index.js +110 -0
- package/dist/extensions/usage/index.js.map +1 -0
- package/dist/extensions/usage/overview.d.ts +90 -0
- package/dist/extensions/usage/overview.d.ts.map +1 -0
- package/dist/extensions/usage/overview.js +215 -0
- package/dist/extensions/usage/overview.js.map +1 -0
- package/dist/extensions/usage/popup.d.ts +21 -0
- package/dist/extensions/usage/popup.d.ts.map +1 -0
- package/dist/extensions/usage/popup.js +98 -0
- package/dist/extensions/usage/popup.js.map +1 -0
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +21 -2
- package/dist/humain/bundled-extension-names.d.ts +6 -0
- package/dist/humain/bundled-extension-names.d.ts.map +1 -0
- package/dist/humain/bundled-extension-names.js +9 -0
- package/dist/humain/bundled-extension-names.js.map +1 -0
- package/dist/humain/index.d.ts +2 -2
- package/dist/humain/index.d.ts.map +1 -1
- package/dist/humain/index.js +3 -2
- package/dist/humain/index.js.map +1 -1
- package/dist/humain/web-access/vendor/anysearch.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/anysearch.js +3 -3
- package/dist/humain/web-access/vendor/anysearch.js.map +1 -1
- package/dist/humain/web-access/vendor/bocha.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/bocha.js +3 -3
- package/dist/humain/web-access/vendor/bocha.js.map +1 -1
- package/dist/humain/web-access/vendor/brightdata-unlocker.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/brightdata-unlocker.js +2 -2
- package/dist/humain/web-access/vendor/brightdata-unlocker.js.map +1 -1
- package/dist/humain/web-access/vendor/brightdata.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/brightdata.js +3 -3
- package/dist/humain/web-access/vendor/brightdata.js.map +1 -1
- package/dist/humain/web-access/vendor/ceramic.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ceramic.js +2 -2
- package/dist/humain/web-access/vendor/ceramic.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +3 -1
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +2 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/deepseek.d.ts +11 -1
- package/dist/humain/web-access/vendor/deepseek.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/deepseek.js +170 -5
- package/dist/humain/web-access/vendor/deepseek.js.map +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +63 -6
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +5 -3
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +33 -7
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts +1 -0
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +18 -3
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/jina-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/jina-search.js +6 -4
- package/dist/humain/web-access/vendor/jina-search.js.map +1 -1
- package/dist/humain/web-access/vendor/kagi.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/kagi.js +4 -4
- package/dist/humain/web-access/vendor/kagi.js.map +1 -1
- package/dist/humain/web-access/vendor/keenable.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/keenable.js +2 -2
- package/dist/humain/web-access/vendor/keenable.js.map +1 -1
- package/dist/humain/web-access/vendor/linkup.d.ts +6 -0
- package/dist/humain/web-access/vendor/linkup.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/linkup.js +167 -0
- package/dist/humain/web-access/vendor/linkup.js.map +1 -0
- package/dist/humain/web-access/vendor/mistral-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/mistral-search.js +3 -3
- package/dist/humain/web-access/vendor/mistral-search.js.map +1 -1
- package/dist/humain/web-access/vendor/ollama.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ollama.js +4 -4
- package/dist/humain/web-access/vendor/ollama.js.map +1 -1
- package/dist/humain/web-access/vendor/parallel.js +6 -7
- package/dist/humain/web-access/vendor/parallel.js.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.js +4 -3
- package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
- package/dist/humain/web-access/vendor/querit.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/querit.js +3 -3
- package/dist/humain/web-access/vendor/querit.js.map +1 -1
- package/dist/humain/web-access/vendor/search1api.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/search1api.js +3 -3
- package/dist/humain/web-access/vendor/search1api.js.map +1 -1
- package/dist/humain/web-access/vendor/searchinfinity.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/searchinfinity.js +3 -3
- package/dist/humain/web-access/vendor/searchinfinity.js.map +1 -1
- package/dist/humain/web-access/vendor/serpapi.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/serpapi.js +6 -5
- package/dist/humain/web-access/vendor/serpapi.js.map +1 -1
- package/dist/humain/web-access/vendor/serpbase.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/serpbase.js +4 -4
- package/dist/humain/web-access/vendor/serpbase.js.map +1 -1
- package/dist/humain/web-access/vendor/serpdive.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/serpdive.js +3 -3
- package/dist/humain/web-access/vendor/serpdive.js.map +1 -1
- package/dist/humain/web-access/vendor/serper.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/serper.js +5 -4
- package/dist/humain/web-access/vendor/serper.js.map +1 -1
- package/dist/humain/web-access/vendor/serply.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/serply.js +2 -2
- package/dist/humain/web-access/vendor/serply.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts +3 -1
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +27 -2
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/valyu.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/valyu.js +3 -3
- package/dist/humain/web-access/vendor/valyu.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts +2 -0
- package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.js +3 -0
- package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
- package/dist/humain/web-access/vendor/xai-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/xai-search.js +51 -8
- package/dist/humain/web-access/vendor/xai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/xcrawl.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/xcrawl.js +3 -3
- package/dist/humain/web-access/vendor/xcrawl.js.map +1 -1
- package/dist/humain/web-access/vendor/you.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/you.js +2 -2
- package/dist/humain/web-access/vendor/you.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +15 -2
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +14 -2
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +62 -7
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +1 -1
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts +2 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +6 -1
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/easter-egg-3d.js +1 -1
- package/dist/modes/interactive/components/easter-egg-3d.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +10 -2
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +141 -66
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +16 -3
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +1 -1
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/themed-text.js +3 -2
- package/dist/modes/interactive/components/themed-text.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +17 -6
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +3 -2
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +4 -2
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +13 -17
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +90 -122
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +2 -5
- 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 +2 -3
- 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 +2 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/child-process.d.ts.map +1 -1
- package/dist/utils/child-process.js +3 -2
- package/dist/utils/child-process.js.map +1 -1
- package/dist/utils/clipboard-command.d.ts.map +1 -1
- package/dist/utils/clipboard-command.js +3 -0
- package/dist/utils/clipboard-command.js.map +1 -1
- package/dist/utils/pi-user-agent.d.ts +1 -0
- package/dist/utils/pi-user-agent.d.ts.map +1 -1
- package/dist/utils/pi-user-agent.js +3 -2
- package/dist/utils/pi-user-agent.js.map +1 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +45 -13
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +4 -3
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/codemode.md +2 -2
- package/docs/compaction.md +3 -3
- package/docs/coordination.md +1 -1
- package/docs/custom-provider.md +53 -1
- package/docs/docs.json +4 -0
- package/docs/environment-variables.md +2 -0
- package/docs/extensions.md +133 -10
- package/docs/models-configuration.md +197 -0
- package/docs/models.md +21 -5
- package/docs/settings.md +1 -1
- package/docs/slash-commands.md +10 -0
- package/docs/tui.md +70 -0
- package/docs/windows.md +16 -2
- package/examples/extensions/custom-provider-anthropic/package.json +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/plugins/pi-example-plugin/package.json +2 -2
- package/npm-shrinkwrap.json +243 -219
- package/package.json +21 -20
- package/schemas/models.schema.json +84 -30
- package/src/coordination/UPSTREAM.md +36 -3
- package/src/coordination/upstream.json +3 -3
- package/src/humain/web-access/UPSTREAM.md +72 -1
- package/src/humain/web-access/upstream.json +5 -4
- package/dist/bundle/chunks/anthropic-messages-TSNY5MWH.js +0 -67
- package/dist/bundle/chunks/azure-openai-responses-Z4DCXO2G.js +0 -15
- package/dist/bundle/chunks/chunk-5K5RFXXO.js +0 -74
- package/dist/bundle/chunks/chunk-65U7MPF4.js +0 -1790
- package/dist/bundle/chunks/chunk-PY7SOXCA.js +0 -10
- package/dist/bundle/chunks/chunk-UGJAAWNC.js +0 -7
- package/dist/bundle/chunks/chunk-UGXYG7HN.js +0 -22
- package/dist/bundle/chunks/chunk-VEYTRNQC.js +0 -5
- package/dist/bundle/chunks/chunk-W2QRCQBX.js +0 -165
- package/dist/bundle/chunks/chunk-X3O5MCKJ.js +0 -7
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-MUJQ6LT2.js +0 -4
- package/dist/bundle/chunks/compat-ARQPWKBQ.js +0 -13
- package/dist/bundle/chunks/dist-LKDZAEUQ.js +0 -7
- package/dist/bundle/chunks/google-generative-ai-SJ4JO2MY.js +0 -21
- package/dist/bundle/chunks/google-vertex-KNLNNDET.js +0 -25
- package/dist/bundle/chunks/host-63SNKK5Y.js +0 -2
- package/dist/bundle/chunks/openai-completions-IC7WRLTI.js +0 -82
- package/dist/bundle/chunks/openai-responses-XXCYDFSM.js +0 -24
- package/dist/bundle/chunks/openrouter-images-DT2HMZNO.js +0 -8
- package/dist/bundle/chunks/typesafe-system-one-HCMGHK6A.js +0 -2
- package/dist/bundle/chunks/virtual-modules-LP2ULVLW.js +0 -5
- package/dist/core/provider-attribution.d.ts +0 -4
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js +0 -85
- package/dist/core/provider-attribution.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humain/humain-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"humainTerminalConfig": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"configDir": ".humain-terminal",
|
|
10
10
|
"envPrefix": "HUMAIN_TERMINAL",
|
|
11
11
|
"firstTimeSetup": true,
|
|
12
|
-
"upstreamPiVersion": "1.
|
|
12
|
+
"upstreamPiVersion": "1.4.0"
|
|
13
13
|
},
|
|
14
14
|
"piConfig": {
|
|
15
15
|
"name": "humain-terminal",
|
|
@@ -84,18 +84,19 @@
|
|
|
84
84
|
"copy-binary-assets": "node ../../scripts/copy-build-assets.mjs coding-agent-binary",
|
|
85
85
|
"test": "vitest --run",
|
|
86
86
|
"generate:schemas": "node --import ./src/experimental/source-resolver.ts scripts/generate-schemas.ts",
|
|
87
|
+
"generate:references": "node --import ./src/experimental/source-resolver.ts scripts/generate-references.ts",
|
|
87
88
|
"shrinkwrap": "node ../../scripts/generate-coding-agent-shrinkwrap.mjs",
|
|
88
89
|
"prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
|
|
89
90
|
},
|
|
90
91
|
"dependencies": {
|
|
91
|
-
"@humain/humain-code-contracts": "0.4.
|
|
92
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
93
|
-
"@aws-sdk/client-cloudwatch": "3.
|
|
94
|
-
"@earendil-works/pi-agent-core": "1.
|
|
95
|
-
"@earendil-works/pi-ai": "1.
|
|
96
|
-
"@earendil-works/pi-codemode": "1.
|
|
97
|
-
"@earendil-works/pi-mcp": "1.
|
|
98
|
-
"@earendil-works/pi-tui": "1.
|
|
92
|
+
"@humain/humain-code-contracts": "0.4.19",
|
|
93
|
+
"@aws-sdk/client-bedrock-runtime": "3.1156.0",
|
|
94
|
+
"@aws-sdk/client-cloudwatch": "3.1156.0",
|
|
95
|
+
"@earendil-works/pi-agent-core": "1.4.0",
|
|
96
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
97
|
+
"@earendil-works/pi-codemode": "1.4.0",
|
|
98
|
+
"@earendil-works/pi-mcp": "1.4.0",
|
|
99
|
+
"@earendil-works/pi-tui": "1.4.0",
|
|
99
100
|
"@mozilla/readability": "0.6.0",
|
|
100
101
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
101
102
|
"@smithy/node-http-handler": "4.12.1",
|
|
@@ -108,24 +109,24 @@
|
|
|
108
109
|
"grok-mermaid": "0.2.3",
|
|
109
110
|
"highlight.js": "11.12.0",
|
|
110
111
|
"hosted-git-info": "10.1.1",
|
|
111
|
-
"ignore": "7.0.
|
|
112
|
+
"ignore": "7.0.13",
|
|
112
113
|
"http-proxy-agent": "9.1.0",
|
|
113
114
|
"https-proxy-agent": "9.1.0",
|
|
114
115
|
"jiti": "2.7.0",
|
|
115
|
-
"linkedom": "0.18.
|
|
116
|
+
"linkedom": "0.18.14",
|
|
116
117
|
"minimatch": "10.2.6",
|
|
117
118
|
"p-limit": "7.3.3",
|
|
118
119
|
"partial-json": "0.1.7",
|
|
119
120
|
"promise.try": "2.0.2",
|
|
120
121
|
"proper-lockfile": "4.1.2",
|
|
121
|
-
"quickjs-wasi": "3.6.
|
|
122
|
+
"quickjs-wasi": "3.6.3",
|
|
122
123
|
"semver": "7.8.5",
|
|
123
124
|
"turndown": "7.2.4",
|
|
124
|
-
"typebox": "1.4.
|
|
125
|
-
"undici": "8.12.
|
|
126
|
-
"unpdf": "1.9.
|
|
125
|
+
"typebox": "1.4.3",
|
|
126
|
+
"undici": "8.12.3",
|
|
127
|
+
"unpdf": "1.9.1",
|
|
127
128
|
"yaml": "2.9.1",
|
|
128
|
-
"@earendil-works/chord": "1.
|
|
129
|
+
"@earendil-works/chord": "1.4.0"
|
|
129
130
|
},
|
|
130
131
|
"overrides": {
|
|
131
132
|
"protobufjs": "7.6.6",
|
|
@@ -149,9 +150,9 @@
|
|
|
149
150
|
"@types/turndown": "5.0.6",
|
|
150
151
|
"typescript": "7.0.2",
|
|
151
152
|
"vitest": "5.0.5",
|
|
152
|
-
"@earendil-works/pi-client": "1.
|
|
153
|
-
"@earendil-works/pi-server": "1.
|
|
154
|
-
"@earendil-works/pi-protocol": "1.
|
|
153
|
+
"@earendil-works/pi-client": "1.4.0",
|
|
154
|
+
"@earendil-works/pi-server": "1.4.0",
|
|
155
|
+
"@earendil-works/pi-protocol": "1.4.0",
|
|
155
156
|
"marked": "18.1.1"
|
|
156
157
|
},
|
|
157
158
|
"keywords": [
|
|
@@ -18,23 +18,28 @@
|
|
|
18
18
|
"properties": {
|
|
19
19
|
"name": {
|
|
20
20
|
"type": "string",
|
|
21
|
-
"minLength": 1
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"description": "Display name."
|
|
22
23
|
},
|
|
23
24
|
"baseUrl": {
|
|
24
25
|
"type": "string",
|
|
25
|
-
"minLength": 1
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"description": "API base URL. Also applies to the provider's built-in models."
|
|
26
28
|
},
|
|
27
29
|
"apiKey": {
|
|
28
30
|
"type": "string",
|
|
29
|
-
"minLength": 1
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "Literal key, \"$NAME\" environment interpolation, or \"!command\" output."
|
|
30
33
|
},
|
|
31
34
|
"api": {
|
|
32
35
|
"type": "string",
|
|
33
|
-
"minLength": 1
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"description": "API for the provider's models, such as \"openai-completions\", \"openai-responses\", \"anthropic-messages\", or \"google-generative-ai\"."
|
|
34
38
|
},
|
|
35
39
|
"oauth": {
|
|
36
40
|
"type": "string",
|
|
37
|
-
"const": "radius"
|
|
41
|
+
"const": "radius",
|
|
42
|
+
"description": "OAuth login flow. Requires baseUrl."
|
|
38
43
|
},
|
|
39
44
|
"headers": {
|
|
40
45
|
"type": "object",
|
|
@@ -42,14 +47,17 @@
|
|
|
42
47
|
"^.*$": {
|
|
43
48
|
"type": "string"
|
|
44
49
|
}
|
|
45
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"description": "Request headers. Values resolve like apiKey."
|
|
46
52
|
},
|
|
47
53
|
"compat": {
|
|
48
54
|
"$ref": "#/$defs/ProviderCompat",
|
|
49
55
|
"description": "Provider and model compatibility overrides."
|
|
50
56
|
},
|
|
51
57
|
"authHeader": {
|
|
52
|
-
"type": "boolean"
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false,
|
|
60
|
+
"description": "Whether to send the resolved API key as Authorization: Bearer."
|
|
53
61
|
},
|
|
54
62
|
"models": {
|
|
55
63
|
"type": "array",
|
|
@@ -61,25 +69,32 @@
|
|
|
61
69
|
"properties": {
|
|
62
70
|
"id": {
|
|
63
71
|
"type": "string",
|
|
64
|
-
"minLength": 1
|
|
72
|
+
"minLength": 1,
|
|
73
|
+
"description": "Model ID sent to the API."
|
|
65
74
|
},
|
|
66
75
|
"name": {
|
|
67
76
|
"type": "string",
|
|
68
|
-
"minLength": 1
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"description": "Display name, also matched by --model patterns."
|
|
69
79
|
},
|
|
70
80
|
"api": {
|
|
71
81
|
"type": "string",
|
|
72
|
-
"minLength": 1
|
|
82
|
+
"minLength": 1,
|
|
83
|
+
"description": "Overrides the provider api."
|
|
73
84
|
},
|
|
74
85
|
"baseUrl": {
|
|
75
86
|
"type": "string",
|
|
76
|
-
"minLength": 1
|
|
87
|
+
"minLength": 1,
|
|
88
|
+
"description": "Overrides the provider baseUrl."
|
|
77
89
|
},
|
|
78
90
|
"reasoning": {
|
|
79
|
-
"type": "boolean"
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": false,
|
|
93
|
+
"description": "Whether the model supports thinking."
|
|
80
94
|
},
|
|
81
95
|
"thinkingLevelMap": {
|
|
82
|
-
"$ref": "#/$defs/ThinkingLevelMap"
|
|
96
|
+
"$ref": "#/$defs/ThinkingLevelMap",
|
|
97
|
+
"description": "Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported."
|
|
83
98
|
},
|
|
84
99
|
"input": {
|
|
85
100
|
"type": "array",
|
|
@@ -88,7 +103,10 @@
|
|
|
88
103
|
"text",
|
|
89
104
|
"image"
|
|
90
105
|
]
|
|
91
|
-
}
|
|
106
|
+
},
|
|
107
|
+
"default": [
|
|
108
|
+
"text"
|
|
109
|
+
]
|
|
92
110
|
},
|
|
93
111
|
"inputLimits": {
|
|
94
112
|
"$ref": "#/$defs/ModelInputLimits"
|
|
@@ -98,21 +116,26 @@
|
|
|
98
116
|
},
|
|
99
117
|
"promptCache": {
|
|
100
118
|
"$ref": "#/$defs/ModelPromptCache",
|
|
101
|
-
"description": "Best-effort prompt cache lifetime in seconds for
|
|
119
|
+
"description": "Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Pi warms only tiers with a known lifetime."
|
|
102
120
|
},
|
|
103
121
|
"contextWindow": {
|
|
104
122
|
"type": "number",
|
|
105
|
-
"exclusiveMinimum": 0
|
|
123
|
+
"exclusiveMinimum": 0,
|
|
124
|
+
"default": 128000,
|
|
125
|
+
"description": "Context window in tokens."
|
|
106
126
|
},
|
|
107
127
|
"maxTokens": {
|
|
108
128
|
"type": "number",
|
|
109
|
-
"exclusiveMinimum": 0
|
|
129
|
+
"exclusiveMinimum": 0,
|
|
130
|
+
"default": 16384,
|
|
131
|
+
"description": "Maximum output tokens."
|
|
110
132
|
},
|
|
111
133
|
"samplingParams": {
|
|
112
134
|
"type": "object",
|
|
113
135
|
"patternProperties": {
|
|
114
136
|
"^.*$": {}
|
|
115
|
-
}
|
|
137
|
+
},
|
|
138
|
+
"description": "Fields merged into every request body. Applies only to OpenAI-compatible APIs."
|
|
116
139
|
},
|
|
117
140
|
"samplingParamsByThinkingLevel": {
|
|
118
141
|
"type": "object",
|
|
@@ -159,7 +182,8 @@
|
|
|
159
182
|
"^.*$": {}
|
|
160
183
|
}
|
|
161
184
|
}
|
|
162
|
-
}
|
|
185
|
+
},
|
|
186
|
+
"description": "samplingParams per thinking level, merged over samplingParams."
|
|
163
187
|
},
|
|
164
188
|
"headers": {
|
|
165
189
|
"type": "object",
|
|
@@ -167,7 +191,8 @@
|
|
|
167
191
|
"^.*$": {
|
|
168
192
|
"type": "string"
|
|
169
193
|
}
|
|
170
|
-
}
|
|
194
|
+
},
|
|
195
|
+
"description": "Request headers. Values resolve like apiKey."
|
|
171
196
|
},
|
|
172
197
|
"compat": {
|
|
173
198
|
"$ref": "#/$defs/ProviderCompat",
|
|
@@ -184,13 +209,16 @@
|
|
|
184
209
|
"properties": {
|
|
185
210
|
"name": {
|
|
186
211
|
"type": "string",
|
|
187
|
-
"minLength": 1
|
|
212
|
+
"minLength": 1,
|
|
213
|
+
"description": "Display name, also matched by --model patterns."
|
|
188
214
|
},
|
|
189
215
|
"reasoning": {
|
|
190
|
-
"type": "boolean"
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"description": "Whether the model supports thinking."
|
|
191
218
|
},
|
|
192
219
|
"thinkingLevelMap": {
|
|
193
|
-
"$ref": "#/$defs/ThinkingLevelMap"
|
|
220
|
+
"$ref": "#/$defs/ThinkingLevelMap",
|
|
221
|
+
"description": "Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported."
|
|
194
222
|
},
|
|
195
223
|
"input": {
|
|
196
224
|
"type": "array",
|
|
@@ -263,21 +291,24 @@
|
|
|
263
291
|
},
|
|
264
292
|
"promptCache": {
|
|
265
293
|
"$ref": "#/$defs/ModelPromptCache",
|
|
266
|
-
"description": "Best-effort prompt cache lifetime in seconds for
|
|
294
|
+
"description": "Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Pi warms only tiers with a known lifetime."
|
|
267
295
|
},
|
|
268
296
|
"contextWindow": {
|
|
269
297
|
"type": "number",
|
|
270
|
-
"exclusiveMinimum": 0
|
|
298
|
+
"exclusiveMinimum": 0,
|
|
299
|
+
"description": "Context window in tokens."
|
|
271
300
|
},
|
|
272
301
|
"maxTokens": {
|
|
273
302
|
"type": "number",
|
|
274
|
-
"exclusiveMinimum": 0
|
|
303
|
+
"exclusiveMinimum": 0,
|
|
304
|
+
"description": "Maximum output tokens."
|
|
275
305
|
},
|
|
276
306
|
"samplingParams": {
|
|
277
307
|
"type": "object",
|
|
278
308
|
"patternProperties": {
|
|
279
309
|
"^.*$": {}
|
|
280
|
-
}
|
|
310
|
+
},
|
|
311
|
+
"description": "Fields merged into every request body. Applies only to OpenAI-compatible APIs."
|
|
281
312
|
},
|
|
282
313
|
"samplingParamsByThinkingLevel": {
|
|
283
314
|
"type": "object",
|
|
@@ -324,7 +355,8 @@
|
|
|
324
355
|
"^.*$": {}
|
|
325
356
|
}
|
|
326
357
|
}
|
|
327
|
-
}
|
|
358
|
+
},
|
|
359
|
+
"description": "samplingParams per thinking level, merged over samplingParams."
|
|
328
360
|
},
|
|
329
361
|
"headers": {
|
|
330
362
|
"type": "object",
|
|
@@ -332,7 +364,8 @@
|
|
|
332
364
|
"^.*$": {
|
|
333
365
|
"type": "string"
|
|
334
366
|
}
|
|
335
|
-
}
|
|
367
|
+
},
|
|
368
|
+
"description": "Request headers. Values resolve like apiKey."
|
|
336
369
|
},
|
|
337
370
|
"compat": {
|
|
338
371
|
"$ref": "#/$defs/ProviderCompat",
|
|
@@ -1029,7 +1062,7 @@
|
|
|
1029
1062
|
},
|
|
1030
1063
|
"supportsTemperature": {
|
|
1031
1064
|
"type": "boolean",
|
|
1032
|
-
"description": "
|
|
1065
|
+
"description": "Ignored. The Anthropic Messages API version in use (2026-10-21) has no temperature field, so temperature is never sent.",
|
|
1033
1066
|
"default": true
|
|
1034
1067
|
},
|
|
1035
1068
|
"forceAdaptiveThinking": {
|
|
@@ -1078,6 +1111,27 @@
|
|
|
1078
1111
|
},
|
|
1079
1112
|
"maxItems": 3,
|
|
1080
1113
|
"description": "Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets."
|
|
1114
|
+
},
|
|
1115
|
+
"imageInput": {
|
|
1116
|
+
"anyOf": [
|
|
1117
|
+
{
|
|
1118
|
+
"type": "string",
|
|
1119
|
+
"const": "assets"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"type": "string",
|
|
1123
|
+
"const": "images"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"const": "state-image-urls"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
"description": "How the service takes classifier images. \"assets\" sends TypeSafe's assets map (PNG and JPEG) and references the images from the state, as TypeSafe and Jev on Workers AI expect. \"images\" sends Clef's images list of data URLs (PNG, JPEG, and WebP, at most four), as Clef on Workers AI expects. \"state-image-urls\" places image_url parts before the state, as OpenRouter expects; OpenRouter drops assets without an error. Auto-detected from the provider, baseUrl, and model ID. Classifier models read it from the provider-level compat; models and modelOverrides entries apply to chat models only."
|
|
1131
|
+
},
|
|
1132
|
+
"sendImageOptInHeader": {
|
|
1133
|
+
"type": "boolean",
|
|
1134
|
+
"description": "Whether requests with images send the TypeSafe-Danger-Zone-Images: true header, which TypeSafe's own API requires for its experimental image input. Defaults to true for the typesafe-system-one API unless the model is detected as OpenRouter."
|
|
1081
1135
|
}
|
|
1082
1136
|
},
|
|
1083
1137
|
"additionalProperties": true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The transport, broker and client under this directory are derived from
|
|
4
4
|
[`nicobailon/pi-intercom`](https://github.com/nicobailon/pi-intercom) at commit
|
|
5
|
-
`
|
|
5
|
+
`02913edcd7b1bdb21b480852ff82f674d309c651` (tag `v0.18.1`, version 0.18.1), used under the MIT license in
|
|
6
6
|
`vendor/LICENSE`. Every derived file carries a header naming its origin.
|
|
7
7
|
|
|
8
8
|
Reviewed 2026-10-13: ported the 0.16.1 to 0.17.0 receipt-confirmed delivery, broker-side heartbeat eviction,
|
|
@@ -18,8 +18,8 @@ Focused regression coverage lives in `test/coordination/upstream-refresh.test.ts
|
|
|
18
18
|
policy, extension state, pending asks) stay under `<agentDir>/coordination/<key>/`, open lazily per scope and are
|
|
19
19
|
served only to connections bound to that scope; idle scopes unload, and open scopes are capped. Protocol renamed
|
|
20
20
|
`humain-coordination`, version 2.
|
|
21
|
-
- Cross-repository routing: device-wide `peers` with `repo`/`query`/`path` filters, `send` by id,
|
|
22
|
-
`<repo>/<name>` or bare name (local first), `replyTo` across repositories, `broadcast` scope `repo` (default) or
|
|
21
|
+
- Cross-repository routing: device-wide `peers` with `repo`/`query`/`path` filters, `send` by id,
|
|
22
|
+
`<repo>/<name>` or bare name (local first), then id or connected name prefix, `replyTo` across repositories, `broadcast` scope `repo` (default) or
|
|
23
23
|
`device`. Presence adds a repository label, focus (`presence_set`), touched paths and subpath.
|
|
24
24
|
- Message ids are owned device-wide; recipient deduplication and receipts are keyed by sender, and an id held by
|
|
25
25
|
another sender is deferred and redelivered once that id is answered.
|
|
@@ -118,6 +118,39 @@ backpressure, mailbox replay, receipt and atomic-file suites remain the
|
|
|
118
118
|
coverage for already-equivalent fixes. No dependency or manifest change is
|
|
119
119
|
required.
|
|
120
120
|
|
|
121
|
+
## 0.18.1 incremental adaptations
|
|
122
|
+
|
|
123
|
+
Reviewed 2026-10-23: the complete v0.17.1..v0.18.1 diff (v0.18.0 and v0.18.1). Annotated tag object
|
|
124
|
+
`a652fa667a2b554c05f7b40866ce60653181961a` peels to `02913edcd7b1bdb21b480852ff82f674d309c651`, matching the
|
|
125
|
+
remote tag. The MIT license bytes are unchanged and match the existing SHA-256 pin. No upstream tests, code, hooks
|
|
126
|
+
or installers were executed. Of the vendored source, only `broker/broker.ts` changed upstream; the other changes
|
|
127
|
+
are in the Pi extension (`index.ts`), UI, handover and tests.
|
|
128
|
+
|
|
129
|
+
- Exact targets first (upstream #174/#175): `resolveExactTargets` (id, `<repo>/<name>`, bare name) is tried
|
|
130
|
+
against live sessions, then offline sessions, before any prefix guess. Only then does `resolvePrefixTargets`
|
|
131
|
+
try a live id prefix, then a case-insensitive name prefix of a connected session (local repository first,
|
|
132
|
+
never the sender), then an offline id prefix. Several prefix matches return `E_AMBIGUOUS_TARGET` with the
|
|
133
|
+
candidates. HUMAIN resolves in the broker, which knows offline sessions, so one atomic lookup replaces
|
|
134
|
+
upstream's raw-send-then-retry. The client pins an exact endpoint only for exact addresses; prefixes go
|
|
135
|
+
to the broker raw. This also closes the older hijack where a live id prefix beat an offline session's
|
|
136
|
+
exact name. Not ported: the edit-distance "nearest name" hint and naming the resolved session in the
|
|
137
|
+
success text. `peers` already lists names, and the `delivered` frame carries no target.
|
|
138
|
+
- Mailbox wording (upstream #172): already equivalent. A `queued` send reports
|
|
139
|
+
`queued for <peer> (stored until it reconnects)`, never plain delivery.
|
|
140
|
+
- Expired receipts for stale-context drops (upstream #172): not ported. A HUMAIN session that has ended
|
|
141
|
+
answers `deferred`; the broker keeps the durable entry and redelivers it when the session starts again.
|
|
142
|
+
Mail that ages out is expired by the broker's 24-hour mailbox retention.
|
|
143
|
+
- Idle shutdown with queued mail (upstream #173): not ported. Upstream keeps the broker up for up to 24 hours
|
|
144
|
+
because its mailbox lives in memory. HUMAIN persists every entry before acceptance and restores it on the
|
|
145
|
+
next start, so mail survives idle shutdown, crashes and reboots without a session-less background process.
|
|
146
|
+
The configured idle timeout, abandoned-broker guard and socket ownership are unchanged.
|
|
147
|
+
- Idle-wake line (#182), click-to-expand UI (#178), handover `streamSimple` (#177) and the npm 12 pack test
|
|
148
|
+
are outside the ported surface.
|
|
149
|
+
|
|
150
|
+
No derived-file header changes: the upstream broker change is not imported, and the resolution change is a HUMAIN
|
|
151
|
+
implementation in `transport/discovery.ts`, `broker/broker.ts` and `client/client.ts`. Regressions live in
|
|
152
|
+
`test/coordination/upstream-0181.test.ts`. No dependency or manifest change is required.
|
|
153
|
+
|
|
121
154
|
## Not vendored
|
|
122
155
|
|
|
123
156
|
`index.ts` (Pi extension), `config.ts`, `herdr-location.ts`, `project-agent.ts`, `handover.ts`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-intercom",
|
|
3
3
|
"repository": "https://github.com/nicobailon/pi-intercom",
|
|
4
|
-
"commit": "
|
|
5
|
-
"tag": "v0.
|
|
6
|
-
"upstreamVersion": "0.
|
|
4
|
+
"commit": "02913edcd7b1bdb21b480852ff82f674d309c651",
|
|
5
|
+
"tag": "v0.18.1",
|
|
6
|
+
"upstreamVersion": "0.18.1",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"vendoredSha256": {
|
|
9
9
|
"LICENSE": "2d20dfacd9742706e564470dc77438608a1e54b0ed46959f080709389209093c"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# pi-web-access upstream tracking
|
|
2
2
|
|
|
3
3
|
The vendored implementation in `vendor/` is based on
|
|
4
|
-
[`pi-web-access`](https://github.com/nicobailon/pi-web-access) version `0.
|
|
4
|
+
[`pi-web-access`](https://github.com/nicobailon/pi-web-access) version `0.44.0`
|
|
5
5
|
and remains licensed under the upstream MIT license in `vendor/LICENSE`.
|
|
6
6
|
|
|
7
7
|
`upstream.json` records the npm tarball URL, SHA-1 shasum, SHA-512 integrity,
|
|
@@ -229,3 +229,74 @@ provider SDK remain omitted. No manifest, lockfile or shrinkwrap change is neede
|
|
|
229
229
|
Offline regression coverage is in `test/humain-web-access-042.test.ts`, alongside
|
|
230
230
|
the existing boundary and refresh suites. Release smoke tests remain the release
|
|
231
231
|
owner's responsibility.
|
|
232
|
+
|
|
233
|
+
## 0.44.0 refresh
|
|
234
|
+
|
|
235
|
+
Both the 0.42.0 and 0.44.0 npm tarballs were packed with lifecycle scripts
|
|
236
|
+
disabled. Locally computed digests match the registry record: 0.44.0 SHA-1
|
|
237
|
+
`6cdb7aa75f8b41bbce55f1114f017403e0ed827e`, SHA-512 integrity as recorded in
|
|
238
|
+
`upstream.json`, `gitHead` `d0e323ac935e8753d11e1853b81c057e39dee4dc`. The
|
|
239
|
+
refresh covers upstream 0.43.0 and 0.44.0. Dependencies, lifecycle scripts and
|
|
240
|
+
the MIT license are unchanged. No upstream code, hooks, installers or tests
|
|
241
|
+
were executed.
|
|
242
|
+
|
|
243
|
+
The three-way merge used 0.42.0 as base, 0.44.0 as theirs and the HUMAIN
|
|
244
|
+
vendor tree as ours. Only `index.ts` conflicted (the `toolActivation` default
|
|
245
|
+
and validation); `extract.ts`, `gemini-search.ts`, `utils.ts`,
|
|
246
|
+
`web-tool-core.ts` and `xai-search.ts` merged cleanly, and the remaining 26
|
|
247
|
+
changed files carry no HUMAIN patch and were taken as published. The new
|
|
248
|
+
`linkup.ts` is runtime code and is vendored unmodified.
|
|
249
|
+
|
|
250
|
+
Imported changes:
|
|
251
|
+
|
|
252
|
+
- Linkup search (`linkupApiKey` / `LINKUP_API_KEY`, `linkupDepth`). It is
|
|
253
|
+
explicit-only: absent from `ALL_SEARCH_PROVIDERS` and the auto chain.
|
|
254
|
+
- DeepSeek search `includeContent` returns DeepSeek's inline page text.
|
|
255
|
+
DeepSeek Fetch is a `fetch_content` provider outside the default order; it
|
|
256
|
+
runs only when listed in `fetchRouting.providers` and
|
|
257
|
+
`fetchRouting.allowRemoteHostedProviders` is `true`. Target URLs pass the
|
|
258
|
+
SSRF guard and fetch-domain policy before the API is called.
|
|
259
|
+
- `xaiResponsesUrl` and `xaiSearchTimeoutMs` (capped at 10 minutes). A custom
|
|
260
|
+
endpoint never receives the host xAI sign-in; only `xaiApiKey` or
|
|
261
|
+
`XAI_API_KEY` is sent.
|
|
262
|
+
- A configured default `provider` array falls back to untried `searchRouting`
|
|
263
|
+
providers when every array failure matches `fallbackOn`. Per-call arrays and
|
|
264
|
+
curator picks stay strict.
|
|
265
|
+
- Gateway base URLs (`<provider>BaseUrl` or `<PROVIDER>_BASE_URL`, environment
|
|
266
|
+
wins) for most keyed providers. Path prefixes are kept, and the existing
|
|
267
|
+
HTTPS-or-loopback, no-credential, no-query rules apply. Cross-origin API
|
|
268
|
+
redirects drop credential headers and `api_key` query parameters, the
|
|
269
|
+
too-many-redirects error omits the query credential, and API calls follow at
|
|
270
|
+
most 5 redirects. Jina search rejects `.` and `..` queries.
|
|
271
|
+
- `toolActivation: "none"` (requires `toolExposure: "deferred"`) registers no
|
|
272
|
+
`web_enable` loader.
|
|
273
|
+
- Short static pages are no longer reported as incomplete; JSON-LD and other
|
|
274
|
+
data-block scripts no longer count as client rendering.
|
|
275
|
+
|
|
276
|
+
HUMAIN patches added in this refresh:
|
|
277
|
+
|
|
278
|
+
- `utils.ts`: the Ollama and DeepSeek gateway environment names read
|
|
279
|
+
`HUMAIN_TERMINAL_OLLAMA_BASE_URL` / `HUMAIN_TERMINAL_DEEPSEEK_BASE_URL`
|
|
280
|
+
first, then upstream's `PI_OLLAMA_BASE_URL` / `PI_DEEPSEEK_BASE_URL`. The
|
|
281
|
+
bare `OLLAMA_BASE_URL` and `DEEPSEEK_BASE_URL` remain ignored, as upstream
|
|
282
|
+
intends. The first defined name wins; an empty value is an error.
|
|
283
|
+
- `xai-search.ts`: `xaiResponsesUrl` must be HTTPS (plain HTTP only for
|
|
284
|
+
loopback hosts) and must not embed credentials, matching the rule for every
|
|
285
|
+
other gateway base URL. Upstream accepts any remote `http:` URL, which would
|
|
286
|
+
send the xAI key in cleartext.
|
|
287
|
+
- `index.ts`: the HUMAIN `"eager"` default is kept; `"none"` was added to the
|
|
288
|
+
accepted values. Defaults stay eager activation and direct exposure.
|
|
289
|
+
|
|
290
|
+
Both files were already listed in `humainPatches`, so the list is unchanged.
|
|
291
|
+
All existing patches remain: host-shim imports, canonical agent directory,
|
|
292
|
+
explicit null proxy scopes, scoped-only global fetch diversion, private
|
|
293
|
+
request-body files, curl stdin-config credential protection, ADC endpoint
|
|
294
|
+
pinning and redaction, RSC adaptation, the Baizhi/Z.ai unavailable stubs and
|
|
295
|
+
the retained `opencode-session-headers.ts`. The standalone MCP entrypoints,
|
|
296
|
+
`dist/` bundles, README/CHANGELOG/SECURITY and media assets remain omitted.
|
|
297
|
+
No manifest, lockfile or shrinkwrap change is needed.
|
|
298
|
+
|
|
299
|
+
Mistral search now goes through `fetchWithCredentialRedirects`, which passes a
|
|
300
|
+
`URL` object to `fetch`; `test/humain-web-access.test.ts` compares the string
|
|
301
|
+
form. Offline regression coverage is in `test/humain-web-access-044.test.ts`.
|
|
302
|
+
Release smoke tests remain the release owner's responsibility.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-web-access",
|
|
3
3
|
"repository": "https://github.com/nicobailon/pi-web-access",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"tarball": "https://registry.npmjs.org/pi-web-access/-/pi-web-access-0.
|
|
6
|
-
"shasum": "
|
|
7
|
-
"integrity": "sha512-
|
|
4
|
+
"version": "0.44.0",
|
|
5
|
+
"tarball": "https://registry.npmjs.org/pi-web-access/-/pi-web-access-0.44.0.tgz",
|
|
6
|
+
"shasum": "6cdb7aa75f8b41bbce55f1114f017403e0ed827e",
|
|
7
|
+
"integrity": "sha512-8YK2Nb0P7ezRL0FS7P1cPYu7gDUOuhXWA3FOBev0bKsuPtG2QrDVm2GriKBgZI1Sq7SC8QRsfVFYYP8huUEo8w==",
|
|
8
|
+
"gitHead": "d0e323ac935e8753d11e1853b81c057e39dee4dc",
|
|
8
9
|
"humainPatches": [
|
|
9
10
|
"extract.ts",
|
|
10
11
|
"gemini-adc.ts",
|