@humain/humain-code 0.7.0 → 0.8.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 +139 -0
- package/README.md +2 -2
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-UZB5HJE3.js +77 -0
- package/dist/bundle/chunks/anthropic.js +25 -24
- package/dist/bundle/chunks/azure-openai-responses-J3LCMWPQ.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +460 -431
- package/dist/bundle/chunks/bowser-DXKSTXFQ.js +89 -0
- package/dist/bundle/chunks/{chunk-HTA325LJ.js → chunk-2NVGOSBN.js} +1 -1
- package/dist/bundle/chunks/{chunk-5B25YXF7.js → chunk-3CGMVKHA.js} +13 -3
- package/dist/bundle/chunks/{chunk-SCINMV4X.js → chunk-46C6D7UC.js} +22 -21
- package/dist/bundle/chunks/{chunk-RS6PZK35.js → chunk-4EV7CK26.js} +249 -216
- package/dist/bundle/chunks/{chunk-T7BXP46S.js → chunk-4SFWYKL5.js} +1848 -1662
- package/dist/bundle/chunks/{chunk-TGDPZCSW.js → chunk-4TDNOR36.js} +1 -1
- package/dist/bundle/chunks/{chunk-C6VERWRZ.js → chunk-4XF5JX7X.js} +1 -1
- package/dist/bundle/chunks/chunk-6HTHDVJC.js +4 -0
- package/dist/bundle/chunks/{chunk-2G7YVAVF.js → chunk-7EONJCBE.js} +1 -1
- package/dist/bundle/chunks/chunk-7H2WNBX7.js +11 -0
- package/dist/bundle/chunks/{chunk-2FYYW6FY.js → chunk-7OZNMWAJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-R6YQR7TZ.js → chunk-7WE77IE3.js} +1 -1
- package/dist/bundle/chunks/{chunk-Z5YLKK3S.js → chunk-7WETECIB.js} +1 -1
- package/dist/bundle/chunks/{chunk-EIC7CQX3.js → chunk-AI7EHDAX.js} +1 -1
- package/dist/bundle/chunks/{chunk-KRCX3ZBA.js → chunk-APNPBT7Y.js} +1 -1
- package/dist/bundle/chunks/{chunk-4HTVBBJD.js → chunk-ATFZAFMS.js} +2 -2
- package/dist/bundle/chunks/{chunk-R5OOX7RW.js → chunk-B47PNNLL.js} +9 -2
- package/dist/bundle/chunks/{chunk-AZXVJN6E.js → chunk-C4DHVDYT.js} +1 -1
- package/dist/bundle/chunks/{chunk-4PRNKB6V.js → chunk-CET2MXXN.js} +7 -7
- package/dist/bundle/chunks/{chunk-66FZJO75.js → chunk-CU6KU7JK.js} +472 -3924
- package/dist/bundle/chunks/{chunk-MD7K7RPN.js → chunk-D3KYOSQY.js} +1 -1
- package/dist/bundle/chunks/{chunk-I3NDOUHE.js → chunk-DCXHRP6C.js} +1 -1
- package/dist/bundle/chunks/{chunk-OB332KMV.js → chunk-DD5UT56Y.js} +46 -32
- package/dist/bundle/chunks/{chunk-G4QPSFBF.js → chunk-EMBIUIQ2.js} +216 -223
- package/dist/bundle/chunks/{chunk-Q7VXYXY3.js → chunk-ENBDASDN.js} +2 -2
- package/dist/bundle/chunks/{chunk-2H3LUS62.js → chunk-FJIISX5W.js} +241 -229
- package/dist/bundle/chunks/{chunk-WQOOJP7U.js → chunk-GV5OVRKK.js} +1 -1
- package/dist/bundle/chunks/{chunk-KTSJYIYC.js → chunk-HHWVVNGG.js} +1 -1
- package/dist/bundle/chunks/{chunk-4JRER4XK.js → chunk-HQMUDHC3.js} +19 -19
- package/dist/bundle/chunks/{chunk-WQ7EJQIT.js → chunk-IOLLZXQN.js} +225 -239
- package/dist/bundle/chunks/chunk-IXQYPQRQ.js +2079 -0
- package/dist/bundle/chunks/{chunk-RU7ADKA7.js → chunk-J4GII2EE.js} +112 -96
- package/dist/bundle/chunks/chunk-J5TSAJGC.js +22 -0
- package/dist/bundle/chunks/{chunk-QT6ZHDMP.js → chunk-JBSWWCT5.js} +1 -1
- package/dist/bundle/chunks/{chunk-P6AXBESH.js → chunk-JV7VHOAY.js} +1119 -1098
- package/dist/bundle/chunks/{chunk-PWUDFU5V.js → chunk-JWOPWHVH.js} +4 -4
- package/dist/bundle/chunks/{chunk-4V5VL2BO.js → chunk-KLSRGGOH.js} +131 -154
- package/dist/bundle/chunks/{chunk-JF7FYXAI.js → chunk-KONLZKPL.js} +7 -6
- package/dist/bundle/chunks/{chunk-32QLLD2P.js → chunk-KQXXBQ57.js} +360 -332
- package/dist/bundle/chunks/{chunk-UZNIPOGS.js → chunk-L4J7SMJB.js} +1 -1
- package/dist/bundle/chunks/chunk-MPRAQ6ZI.js +41 -0
- package/dist/bundle/chunks/{chunk-GUHNFZ2Q.js → chunk-NNWNIBLG.js} +20 -19
- package/dist/bundle/chunks/{chunk-TWAHPPXN.js → chunk-OVDMYBIT.js} +1307 -1194
- package/dist/bundle/chunks/{chunk-WAPZN4KP.js → chunk-P2Y2H7SD.js} +2 -2
- package/dist/bundle/chunks/{chunk-PPBDDQHP.js → chunk-PGVDL4KB.js} +7 -6
- package/dist/bundle/chunks/{chunk-XHDVDJM7.js → chunk-PVNXN2TC.js} +7 -7
- package/dist/bundle/chunks/{chunk-RNBZBCH2.js → chunk-QJB5YI3I.js} +1 -1
- package/dist/bundle/chunks/{chunk-I5E7RQ5V.js → chunk-QRYDGY5I.js} +5 -5
- package/dist/bundle/chunks/{chunk-4QAXV5T6.js → chunk-R3VDXQW2.js} +9 -9
- package/dist/bundle/chunks/chunk-SKCJ25SX.js +24 -0
- package/dist/bundle/chunks/chunk-SQ7NTRLJ.js +77 -0
- package/dist/bundle/chunks/{chunk-SSRCVJZK.js → chunk-TYN46EVI.js} +5 -5
- package/dist/bundle/chunks/{chunk-6E6RHNOU.js → chunk-UXM4WFLH.js} +12 -11
- package/dist/bundle/chunks/{chunk-LB4CIS4F.js → chunk-VCMXBP5S.js} +17 -17
- package/dist/bundle/chunks/{chunk-N2SNMUD3.js → chunk-VKQNYZUA.js} +1 -1
- package/dist/bundle/chunks/{chunk-JYWUOKOI.js → chunk-WBSGWISD.js} +367 -353
- package/dist/bundle/chunks/{chunk-3EDMWQ35.js → chunk-WGXMYMPE.js} +17 -15
- package/dist/bundle/chunks/chunk-WRYGY5XG.js +24 -0
- package/dist/bundle/chunks/{chunk-GRJUKEE3.js → chunk-XVIQYONJ.js} +4 -4
- package/dist/bundle/chunks/chunk-YSWDFV2L.js +11 -0
- package/dist/bundle/chunks/{chunk-AEWYICBL.js → chunk-Z5UFSRO4.js} +2 -2
- package/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/dist/bundle/chunks/chunk-ZTG5OKI7.js +3 -0
- package/dist/bundle/chunks/{cli-H4LJNE2V.js → cli-6DJO467D.js} +2 -2
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-T5R2RVFQ.js → cloudflare-workers-ai-system-one-ETKC6B2S.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +68 -68
- package/dist/bundle/chunks/compat-HS4ARZK3.js +15 -0
- package/dist/bundle/chunks/curator-server-TC7RVVN2.js +3600 -0
- package/dist/bundle/chunks/dist-35STTNYA.js +37 -0
- package/dist/bundle/chunks/{dist-FMWWM4H7.js → dist-5AQPJ2TI.js} +2 -2
- package/dist/bundle/chunks/{dist-NHQTBDHT.js → dist-DYB3AR7C.js} +91 -257
- package/dist/bundle/chunks/dist-NMEXYUP3.js +11 -0
- package/dist/bundle/chunks/dist-cjs-EROMDUKS.js +193 -0
- package/dist/bundle/chunks/{easter-egg-3d-BUEOC3NO.js → easter-egg-3d-VVUF3C3X.js} +1 -1
- package/dist/bundle/chunks/entry-2GZ3PTWQ.js +2 -0
- package/dist/bundle/chunks/{entry-A2CSLKHC.js → entry-SRYLSS5P.js} +3 -3
- package/dist/bundle/chunks/{event-streams-7YGFEPBZ.js → event-streams-F67JLS6B.js} +1 -1
- package/dist/bundle/chunks/{execute-MY5JSEPV.js → execute-I3WGGPWL.js} +2 -2
- package/dist/bundle/chunks/{extract-PTGACPGP.js → extract-QHZTEVJP.js} +68 -65
- package/dist/bundle/chunks/{flow-implementer-APJFY4YI.js → flow-implementer-QMN3HKE2.js} +8 -9
- package/dist/bundle/chunks/github-copilot.js +55 -45
- package/dist/bundle/chunks/google-generative-ai-ZND73WDQ.js +22 -0
- package/dist/bundle/chunks/google-vertex-YAH62YRM.js +25 -0
- package/dist/bundle/chunks/host-Q565BCXB.js +3 -0
- package/dist/bundle/chunks/image-resize-worker.js +3 -3
- package/dist/bundle/chunks/{index.bundle-THL4EUSU.js → index.bundle-HONF3PUD.js} +177 -176
- package/dist/bundle/chunks/{inprocess-5NP5VJHZ.js → inprocess-453SLFL5.js} +6 -6
- package/dist/bundle/chunks/interactive-mode-MVZOJ5OU.js +5 -0
- package/dist/bundle/chunks/{llama-cpp-classify-GJAXULWL.js → llama-cpp-classify-Z4GZY4GC.js} +1 -1
- package/dist/bundle/chunks/mistral-conversations-7I5JURDP.js +43 -0
- package/dist/bundle/chunks/{node-ZFIIS5IM.js → node-IMSYVRPL.js} +53 -30
- package/dist/bundle/chunks/{node-UNHECG4X.js → node-MHHE76P4.js} +475 -440
- package/dist/bundle/chunks/{openai-codex-responses-S7CMCAOY.js → openai-codex-responses-LTHOMN37.js} +30 -29
- package/dist/bundle/chunks/openai-codex.js +9 -8
- package/dist/bundle/chunks/{openai-completions-2Z57N7PC.js → openai-completions-W2X635EE.js} +22 -22
- package/dist/bundle/chunks/{openai-decisions-JIOJDB4C.js → openai-decisions-TN2GNOYI.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-5VBZSTHL.js → openai-responses-DVY4QXOG.js} +4 -5
- package/dist/bundle/chunks/{openrouter-images-S6O7DBEJ.js → openrouter-images-SE2JMS44.js} +1 -1
- package/dist/bundle/chunks/openrouter.js +9 -8
- package/dist/bundle/chunks/pdfjs-FE3L72A6.js +3662 -0
- package/dist/bundle/chunks/{pdfjs-decoders-OFXX4HDZ.js → pdfjs-decoders-VCMCTQJ2.js} +1 -1
- package/dist/bundle/chunks/pdfjs-jbig2_nowasm_fallback-I4K6AIV4.js +295 -0
- package/dist/bundle/chunks/pdfjs-openjpeg-PYQCV6CM.js +590 -0
- package/dist/bundle/chunks/pdfjs-openjpeg_nowasm_fallback-G363SGDI.js +775 -0
- package/dist/bundle/chunks/{pi-messages-SMLN5J2W.js → pi-messages-WAS6Z5L5.js} +11 -11
- package/dist/bundle/chunks/radius.js +8 -7
- package/dist/bundle/chunks/{runtime-OYTWXIUM.js → runtime-H7LYNKCZ.js} +1 -1
- package/dist/bundle/chunks/session-picker-XNVLSJ22.js +4 -0
- package/dist/bundle/chunks/startup-ui-3TCT465D.js +3 -0
- package/dist/bundle/chunks/{trace-command-YLDYCL55.js → trace-command-7ORDQ3JS.js} +4 -4
- package/dist/bundle/chunks/{typesafe-system-one-7BEL3H5N.js → typesafe-system-one-AAZH6S3I.js} +1 -1
- package/dist/bundle/chunks/{undici-C6S56CGI.js → undici-WVNE45GY.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-CIVXCEAN.js +28 -0
- package/dist/bundle/cli-runtime.js +5 -5
- package/dist/bundle/flow/package.json +5 -5
- package/dist/bundle/index.js +13 -13
- package/dist/bundle/orchestrate/package.json +22 -6
- package/dist/bundle/rpc-entry.js +4 -5
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +4 -3
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/config-selector.d.ts.map +1 -1
- package/dist/cli/config-selector.js +9 -6
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js +9 -6
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +8 -4
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +11 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +19 -0
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +0 -2
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +0 -2
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +31 -39
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +231 -535
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/anthropic-subscription-usage.d.ts +4 -2
- package/dist/core/anthropic-subscription-usage.d.ts.map +1 -1
- package/dist/core/anthropic-subscription-usage.js +32 -16
- package/dist/core/anthropic-subscription-usage.js.map +1 -1
- package/dist/core/auto-session-namer.js +1 -1
- package/dist/core/auto-session-namer.js.map +1 -1
- package/dist/core/cache-warmer.d.ts.map +1 -1
- package/dist/core/cache-warmer.js +2 -0
- package/dist/core/cache-warmer.js.map +1 -1
- package/dist/core/exec.d.ts +1 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +4 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/export-html/ansi-to-html.d.ts +6 -1
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/dist/core/export-html/ansi-to-html.js +57 -20
- package/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/dist/core/export-html/template.js +1 -1
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js +2 -3
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +18 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +5 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +5 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/flow-implementer.d.ts.map +1 -1
- package/dist/core/flow-implementer.js +3 -9
- package/dist/core/flow-implementer.js.map +1 -1
- package/dist/core/keybindings.d.ts +40 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +5 -0
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config.d.ts +13 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-registry.d.ts +3 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +32 -8
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts +0 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +3 -10
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +18 -7
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +41 -8
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/oauth-account-pool.d.ts +5 -0
- package/dist/core/oauth-account-pool.d.ts.map +1 -1
- package/dist/core/oauth-account-pool.js +34 -3
- package/dist/core/oauth-account-pool.js.map +1 -1
- package/dist/core/package-manager.d.ts +16 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +46 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +1 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +7 -0
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts +5 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +2 -0
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/run-outcome.d.ts +6 -3
- package/dist/core/run-outcome.d.ts.map +1 -1
- package/dist/core/run-outcome.js +36 -9
- package/dist/core/run-outcome.js.map +1 -1
- package/dist/core/run-preflight.d.ts +1 -1
- package/dist/core/run-preflight.d.ts.map +1 -1
- package/dist/core/run-preflight.js +19 -11
- package/dist/core/run-preflight.js.map +1 -1
- package/dist/core/sdk.d.ts +0 -6
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +7 -16
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-manager.d.ts +0 -5
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +0 -9
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +0 -4
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +0 -1
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/tools/bash-jobs.d.ts.map +1 -1
- package/dist/core/tools/bash-jobs.js +2 -9
- package/dist/core/tools/bash-jobs.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +28 -16
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +4 -1
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/read.d.ts +8 -4
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +10 -15
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/renderers/read.d.ts.map +1 -1
- package/dist/core/tools/renderers/read.js +6 -2
- package/dist/core/tools/renderers/read.js.map +1 -1
- package/dist/core/tools/subagent-worktree.d.ts.map +1 -1
- package/dist/core/tools/subagent-worktree.js +2 -10
- package/dist/core/tools/subagent-worktree.js.map +1 -1
- package/dist/core/trace-client/credential-store.d.ts.map +1 -1
- package/dist/core/trace-client/credential-store.js +9 -5
- package/dist/core/trace-client/credential-store.js.map +1 -1
- package/dist/extensions/codemode/execute.js +2 -2
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +6 -4
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/extensions/usage/account-reconnect.d.ts +5 -0
- package/dist/extensions/usage/account-reconnect.d.ts.map +1 -0
- package/dist/extensions/usage/account-reconnect.js +12 -0
- package/dist/extensions/usage/account-reconnect.js.map +1 -0
- package/dist/extensions/usage/hcode-overview.d.ts +6 -19
- package/dist/extensions/usage/hcode-overview.d.ts.map +1 -1
- package/dist/extensions/usage/hcode-overview.js +86 -100
- package/dist/extensions/usage/hcode-overview.js.map +1 -1
- package/dist/extensions/usage/index.d.ts.map +1 -1
- package/dist/extensions/usage/index.js +74 -98
- package/dist/extensions/usage/index.js.map +1 -1
- package/dist/extensions/usage/overview.d.ts +22 -17
- package/dist/extensions/usage/overview.d.ts.map +1 -1
- package/dist/extensions/usage/overview.js +98 -13
- package/dist/extensions/usage/overview.js.map +1 -1
- package/dist/extensions/usage/popup.d.ts +9 -14
- package/dist/extensions/usage/popup.d.ts.map +1 -1
- package/dist/extensions/usage/popup.js +78 -165
- package/dist/extensions/usage/popup.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +4 -1
- package/dist/humain/flow-command.js +1 -1
- package/dist/humain/flow-command.js.map +1 -1
- package/dist/humain/flow-loader.d.ts +9 -4
- package/dist/humain/flow-loader.d.ts.map +1 -1
- package/dist/humain/flow-loader.js +30 -21
- package/dist/humain/flow-loader.js.map +1 -1
- package/dist/humain/gateway/client.d.ts +3 -1
- package/dist/humain/gateway/client.d.ts.map +1 -1
- package/dist/humain/gateway/client.js +10 -5
- package/dist/humain/gateway/client.js.map +1 -1
- package/dist/humain/gateway/login.d.ts.map +1 -1
- package/dist/humain/gateway/login.js +160 -53
- package/dist/humain/gateway/login.js.map +1 -1
- package/dist/humain/hcode/account-store.d.ts +29 -5
- package/dist/humain/hcode/account-store.d.ts.map +1 -1
- package/dist/humain/hcode/account-store.js +224 -124
- package/dist/humain/hcode/account-store.js.map +1 -1
- package/dist/humain/hcode/account.d.ts +6 -0
- package/dist/humain/hcode/account.d.ts.map +1 -1
- package/dist/humain/hcode/account.js +348 -129
- package/dist/humain/hcode/account.js.map +1 -1
- package/dist/humain/hcode/catalog-watch.d.ts +21 -0
- package/dist/humain/hcode/catalog-watch.d.ts.map +1 -0
- package/dist/humain/hcode/catalog-watch.js +46 -0
- package/dist/humain/hcode/catalog-watch.js.map +1 -0
- package/dist/humain/hcode/contracts.d.ts +16 -1
- package/dist/humain/hcode/contracts.d.ts.map +1 -1
- package/dist/humain/hcode/contracts.js +122 -128
- package/dist/humain/hcode/contracts.js.map +1 -1
- package/dist/humain/hcode/environment.d.ts +3 -1
- package/dist/humain/hcode/environment.d.ts.map +1 -1
- package/dist/humain/hcode/environment.js +12 -2
- package/dist/humain/hcode/environment.js.map +1 -1
- package/dist/humain/hcode/facade.d.ts +26 -6
- package/dist/humain/hcode/facade.d.ts.map +1 -1
- package/dist/humain/hcode/facade.js +148 -38
- package/dist/humain/hcode/facade.js.map +1 -1
- package/dist/humain/hcode/http.d.ts +3 -1
- package/dist/humain/hcode/http.d.ts.map +1 -1
- package/dist/humain/hcode/http.js +44 -23
- package/dist/humain/hcode/http.js.map +1 -1
- package/dist/humain/hcode/images.d.ts +67 -0
- package/dist/humain/hcode/images.d.ts.map +1 -0
- package/dist/humain/hcode/images.js +463 -0
- package/dist/humain/hcode/images.js.map +1 -0
- package/dist/humain/hcode/login-copy.d.ts +28 -0
- package/dist/humain/hcode/login-copy.d.ts.map +1 -0
- package/dist/humain/hcode/login-copy.js +74 -0
- package/dist/humain/hcode/login-copy.js.map +1 -0
- package/dist/humain/hcode/login-failure.d.ts +26 -0
- package/dist/humain/hcode/login-failure.d.ts.map +1 -0
- package/dist/humain/hcode/login-failure.js +50 -0
- package/dist/humain/hcode/login-failure.js.map +1 -0
- package/dist/humain/hcode/notices.d.ts +24 -1
- package/dist/humain/hcode/notices.d.ts.map +1 -1
- package/dist/humain/hcode/notices.js +93 -7
- package/dist/humain/hcode/notices.js.map +1 -1
- package/dist/humain/hcode/provider.d.ts +7 -3
- package/dist/humain/hcode/provider.d.ts.map +1 -1
- package/dist/humain/hcode/provider.js +123 -19
- package/dist/humain/hcode/provider.js.map +1 -1
- package/dist/humain/hcode/selection.d.ts +2 -0
- package/dist/humain/hcode/selection.d.ts.map +1 -1
- package/dist/humain/hcode/selection.js +8 -1
- package/dist/humain/hcode/selection.js.map +1 -1
- package/dist/humain/hcode/transport.d.ts +13 -10
- package/dist/humain/hcode/transport.d.ts.map +1 -1
- package/dist/humain/hcode/transport.js +103 -148
- package/dist/humain/hcode/transport.js.map +1 -1
- package/dist/humain/hcode/wire.d.ts +3 -0
- package/dist/humain/hcode/wire.d.ts.map +1 -1
- package/dist/humain/hcode/wire.js +11 -0
- package/dist/humain/hcode/wire.js.map +1 -1
- package/dist/humain/metadata/contracts.d.ts +1 -0
- package/dist/humain/metadata/contracts.d.ts.map +1 -1
- package/dist/humain/metadata/contracts.js +2 -1
- package/dist/humain/metadata/contracts.js.map +1 -1
- package/dist/humain/web-access/vendor/anysearch.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/anysearch.js +7 -3
- package/dist/humain/web-access/vendor/anysearch.js.map +1 -1
- package/dist/humain/web-access/vendor/autom.d.ts +4 -0
- package/dist/humain/web-access/vendor/autom.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/autom.js +191 -0
- package/dist/humain/web-access/vendor/autom.js.map +1 -0
- package/dist/humain/web-access/vendor/cloro.d.ts +4 -0
- package/dist/humain/web-access/vendor/cloro.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/cloro.js +236 -0
- package/dist/humain/web-access/vendor/cloro.js.map +1 -0
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +7 -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 +6 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/domain-filter-normalization.d.ts +8 -0
- package/dist/humain/web-access/vendor/domain-filter-normalization.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/domain-filter-normalization.js +37 -0
- package/dist/humain/web-access/vendor/domain-filter-normalization.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts +28 -8
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js +135 -34
- package/dist/humain/web-access/vendor/duckduckgo-rate-limit.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.d.ts +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js +10 -3
- package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +61 -5
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +3 -3
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +35 -5
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +8 -1
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/page-query.d.ts +5 -0
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +12 -2
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/specstream.d.ts +6 -0
- package/dist/humain/web-access/vendor/specstream.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/specstream.js +253 -0
- package/dist/humain/web-access/vendor/specstream.js.map +1 -0
- package/dist/humain/web-access/vendor/tool-activation.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/tool-activation.js +21 -5
- package/dist/humain/web-access/vendor/tool-activation.js.map +1 -1
- package/dist/humain/web-access/vendor/upgrade-notice.d.ts +1 -1
- package/dist/humain/web-access/vendor/upgrade-notice.js +1 -1
- package/dist/humain/web-access/vendor/upgrade-notice.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts +1 -0
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +3 -0
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/video-extract.js +2 -2
- package/dist/humain/web-access/vendor/video-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts +13 -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 +16 -5
- package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
- package/dist/humain/web-access/vendor/youtube-extract.js +2 -2
- package/dist/humain/web-access/vendor/youtube-extract.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +96 -28
- package/dist/main.js.map +1 -1
- package/dist/modes/diagnostics-stderr.d.ts +4 -0
- package/dist/modes/diagnostics-stderr.d.ts.map +1 -0
- package/dist/modes/diagnostics-stderr.js +11 -0
- package/dist/modes/diagnostics-stderr.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +5 -2
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-selector.js +14 -5
- package/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts +1 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -1
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts +2 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js +6 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +10 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +101 -23
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +5 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +17 -6
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.js +2 -1
- package/dist/modes/interactive/components/radius-login-selector.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +13 -6
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +8 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +41 -9
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.js +5 -1
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +0 -17
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +1 -78
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/themed-text.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +5 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +3 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/trust-selector.js +14 -5
- package/dist/modes/interactive/components/trust-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +2 -2
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +20 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +605 -223
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/model-catalog-refresh.d.ts +4 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -1
- package/dist/modes/interactive/model-catalog-refresh.js +40 -1
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -1
- package/dist/modes/interactive/oauth-account-format.d.ts +6 -2
- package/dist/modes/interactive/oauth-account-format.d.ts.map +1 -1
- package/dist/modes/interactive/oauth-account-format.js +12 -3
- package/dist/modes/interactive/oauth-account-format.js.map +1 -1
- package/dist/modes/interactive/session-share.js +2 -0
- package/dist/modes/interactive/session-share.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +1 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +30 -32
- 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 +26 -39
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +1 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +14 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/abort.d.ts +5 -0
- package/dist/utils/abort.d.ts.map +1 -1
- package/dist/utils/abort.js +9 -0
- package/dist/utils/abort.js.map +1 -1
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +3 -2
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/flush-stdout.d.ts +8 -0
- package/dist/utils/flush-stdout.d.ts.map +1 -0
- package/dist/utils/flush-stdout.js +23 -0
- package/dist/utils/flush-stdout.js.map +1 -0
- package/dist/utils/image-process.d.ts +2 -0
- package/dist/utils/image-process.d.ts.map +1 -1
- package/dist/utils/image-process.js +3 -3
- package/dist/utils/image-process.js.map +1 -1
- package/dist/utils/image-resize-core.js +2 -2
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/shell.d.ts +2 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +19 -0
- package/dist/utils/shell.js.map +1 -1
- package/docs/cli.md +1 -1
- package/docs/development.md +0 -13
- package/docs/extensions.md +6 -4
- package/docs/flow.md +4 -62
- package/docs/humain-code-forge-architecture.md +1 -47
- package/docs/humain-code-forge-flow-walkthrough.md +1 -1
- package/docs/humain-code.md +1 -1
- package/docs/keybindings.md +2 -0
- package/docs/llama-cpp.md +5 -5
- package/docs/models-configuration.md +4 -2
- package/docs/nvidia-rtx-llama-cpp.md +5 -5
- package/docs/providers.md +14 -9
- package/docs/rpc-commands.md +1 -1
- package/docs/run-preflight.md +1 -1
- package/docs/slash-commands.md +1 -1
- package/docs/tui.md +2 -0
- package/examples/README.md +0 -3
- package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/gondolin/index.ts +4 -7
- package/examples/tsconfig.json +96 -76
- package/npm-shrinkwrap.json +285 -764
- package/package.json +24 -37
- package/schemas/keybindings.schema.json +20 -0
- package/schemas/models.schema.json +5 -1
- package/schemas/settings.schema.json +0 -13
- package/src/humain/web-access/UPSTREAM.md +52 -1
- package/src/humain/web-access/upstream.json +5 -5
- package/src/humain/web-access/vendor/CHANGELOG.md +29 -0
- package/dist/bundle/chunks/adaptive-peer-worker-X2ZNZE3S.js +0 -8
- package/dist/bundle/chunks/adaptive-session-host-7KDSQV5I.js +0 -162
- package/dist/bundle/chunks/anthropic-messages-TQK3FUV3.js +0 -68
- package/dist/bundle/chunks/azure-openai-responses-JY7OSLH2.js +0 -15
- package/dist/bundle/chunks/chunk-5L4PBYC7.js +0 -11
- package/dist/bundle/chunks/chunk-6PNQYO6A.js +0 -10
- package/dist/bundle/chunks/chunk-CRN54O4D.js +0 -24
- package/dist/bundle/chunks/chunk-CTU2ECLD.js +0 -7
- package/dist/bundle/chunks/chunk-DBL35X7L.js +0 -3
- package/dist/bundle/chunks/chunk-GME4AWDG.js +0 -23
- package/dist/bundle/chunks/chunk-GTILMMUF.js +0 -12
- package/dist/bundle/chunks/chunk-J57HOSWD.js +0 -21
- package/dist/bundle/chunks/chunk-KQM7ZGL6.js +0 -11
- package/dist/bundle/chunks/chunk-MX4Q4W6H.js +0 -214
- package/dist/bundle/chunks/chunk-NXA6NEHE.js +0 -54
- package/dist/bundle/chunks/chunk-PJACZCIR.js +0 -2
- package/dist/bundle/chunks/chunk-T5A6T24H.js +0 -93
- package/dist/bundle/chunks/chunk-WCFHG6NO.js +0 -16
- package/dist/bundle/chunks/chunk-ZJUU6WOV.js +0 -2052
- package/dist/bundle/chunks/compat-ZK2DIW3P.js +0 -15
- package/dist/bundle/chunks/dist-EY7YKQHB.js +0 -11
- package/dist/bundle/chunks/dist-J5IUPLMH.js +0 -37
- package/dist/bundle/chunks/dist-cjs-2SKN226B.js +0 -184
- package/dist/bundle/chunks/entry-AL54ZGYO.js +0 -2
- package/dist/bundle/chunks/es5-GYTRHFKS.js +0 -77
- package/dist/bundle/chunks/google-generative-ai-UL7YEQ6J.js +0 -21
- package/dist/bundle/chunks/google-vertex-OTMSPUYH.js +0 -26
- package/dist/bundle/chunks/host-75YAHLDR.js +0 -3
- package/dist/bundle/chunks/interactive-mode-IW4PIVAQ.js +0 -5
- package/dist/bundle/chunks/mistral-conversations-E72Y6OC3.js +0 -43
- package/dist/bundle/chunks/pdfjs-AKD6EBKN.js +0 -3614
- package/dist/bundle/chunks/pdfjs-jbig2_nowasm_fallback-FH3KJM4H.js +0 -326
- package/dist/bundle/chunks/pdfjs-openjpeg-SKR7C34X.js +0 -671
- package/dist/bundle/chunks/pdfjs-openjpeg_nowasm_fallback-VUBL7UEE.js +0 -974
- package/dist/bundle/chunks/session-picker-DM6S37IF.js +0 -4
- package/dist/bundle/chunks/startup-ui-4GGLWNSU.js +0 -3
- package/dist/bundle/chunks/virtual-modules-TI3W24YL.js +0 -28
- package/dist/core/internal-process.d.ts +0 -23
- package/dist/core/internal-process.d.ts.map +0 -1
- package/dist/core/internal-process.js +0 -88
- package/dist/core/internal-process.js.map +0 -1
- package/dist/humain/adaptive-execution.d.ts +0 -51
- package/dist/humain/adaptive-execution.d.ts.map +0 -1
- package/dist/humain/adaptive-execution.js +0 -100
- package/dist/humain/adaptive-execution.js.map +0 -1
- package/dist/humain/adaptive-peer-process.d.ts +0 -44
- package/dist/humain/adaptive-peer-process.d.ts.map +0 -1
- package/dist/humain/adaptive-peer-process.js +0 -159
- package/dist/humain/adaptive-peer-process.js.map +0 -1
- package/dist/humain/adaptive-peer-worker.d.ts +0 -3
- package/dist/humain/adaptive-peer-worker.d.ts.map +0 -1
- package/dist/humain/adaptive-peer-worker.js +0 -122
- package/dist/humain/adaptive-peer-worker.js.map +0 -1
- package/dist/humain/adaptive-runtime-types.d.ts +0 -621
- package/dist/humain/adaptive-runtime-types.d.ts.map +0 -1
- package/dist/humain/adaptive-runtime-types.js +0 -3
- package/dist/humain/adaptive-runtime-types.js.map +0 -1
- package/dist/humain/adaptive-session-host.d.ts +0 -113
- package/dist/humain/adaptive-session-host.d.ts.map +0 -1
- package/dist/humain/adaptive-session-host.js +0 -1838
- package/dist/humain/adaptive-session-host.js.map +0 -1
- package/dist/utils/deprecation.d.ts +0 -4
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/deprecation.js +0 -13
- package/dist/utils/deprecation.js.map +0 -1
- package/examples/plugins/pi-example-plugin/README.md +0 -38
- package/examples/plugins/pi-example-plugin/package.json +0 -10
- package/examples/plugins/pi-example-plugin/src/contract.ts +0 -13
- package/examples/plugins/pi-example-plugin/src/session.ts +0 -24
- package/examples/plugins/pi-example-plugin/src/tui.ts +0 -31
package/docs/flow.md
CHANGED
|
@@ -26,68 +26,10 @@ Flow uses `/flow` with subcommands. The private bundled `@humain/orchestrate` pa
|
|
|
26
26
|
|
|
27
27
|
Help and argument completion are static: they work before either package loads and while Flow is disabled. Neither executor package loads at startup. HUMAIN Code registers the lightweight `/flow` and `/orchestrate` commands plus the `--profile` and `--flow-admission` startup flags. The first Flow-requiring invocation loads the bundled `@humain/flow` package through a memoized dynamic import. Hierarchy commands additionally load `@humain/orchestrate` through a separate memoized import and reuse the initialized Flow instance. Ordinary SMALL/MEDIUM `/flow run` does not load Orchestrate. If Flow needs hierarchy execution and none is registered, it can request this same host loader, independently of command spelling. Orchestrate registers its hierarchy implementation through Flow’s executor hook. Hierarchy personas and nested role-cost interpretation belong to Orchestrate; implementer personas, child bootstrap, sessions, recovery storage, telemetry and the usage ledger remain Flow-owned. Nested children resolve both packages’ trusted personas through a private child-lifetime directory, with unchanged user override and repository trust rules. A failed load is reported as `Failed to load Flow: <message>` and retried on the next invocation. A recognized subcommand that a build does not implement answers `/flow <command> is not available in this build. Use /flow help to see supported commands.`
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
A plain prompt goes to the normal session and never touches Flow. The previous per-command slash names are not registered and have no aliases; see [Migration](../../flow/docs/migration.md) for the old-to-new mapping. Internal tools, `flow_*` RPC operations, and run settlement contracts are unchanged.
|
|
30
30
|
|
|
31
31
|
Flow payloads are passed through verbatim: the goal, message, or title text after the subcommand is never split or rejoined.
|
|
32
32
|
|
|
33
|
-
## Opt-in adaptive prompts (partial worktree implementation)
|
|
34
|
-
|
|
35
|
-
Trusted settings or SDK `CreateAgentSessionOptions.executionEngine` select `"legacy"` (default) or
|
|
36
|
-
`"adaptive-v2"`; unknown values reject. The selected engine is frozen for the run. This is not a new `/flow`
|
|
37
|
-
flag, task-name router, default change or shipped-release claim. Legacy saved sessions remain legacy even when
|
|
38
|
-
settings later select adaptive execution; a frozen `--flow-admission` cannot be reinterpreted by adaptive prompts.
|
|
39
|
-
|
|
40
|
-
For adaptive prompts, Flow's private owner drives Understand → Act → Check → Decide over the existing primary
|
|
41
|
-
session. Understand drafts atomic requirements and runs one fresh missing-items pass before mutation. Interactive
|
|
42
|
-
mode offers a 2–5-line checklist summary/correction; headless does not wait. L0 uses the primary alone; L1 adds a
|
|
43
|
-
fresh read-only reviewer receiving checklist, candidate diff and captured results. L2 admits the primary plus up
|
|
44
|
-
to two independent subprocess peers and one reviewer, within the same run budget. The parent retains provider
|
|
45
|
-
requests, credentials, tool authorization and usage reconciliation; child allocations are pre-reserved, not fresh
|
|
46
|
-
budgets. The primary integrates and repairs; unsplittable work stays on one worker. No recursion or automatic
|
|
47
|
-
in-process promotion is introduced. Security/unknown code impact requires L1; denied required depth blocks completion.
|
|
48
|
-
|
|
49
|
-
The worktree also implements shared time/token admission and verification reserve, sanitized request attestation,
|
|
50
|
-
criterion-bound completion, and owned-job stdin/EOF, deadlines and terminal notification. Completion reports
|
|
51
|
-
`verified`, `partial` or `unverified` separately from workflow outcome; assistant text and `agent_end` are not
|
|
52
|
-
settlement. Local `adaptive_status`/`adaptive_completion` session events and SDK `adaptiveCompletion` do not add
|
|
53
|
-
Flow v1 wire keys. Default Flow settlement verification emission remains unchanged and off. Status counts checked
|
|
54
|
-
criteria, not passing tests: `checking 5/6` retains the ledger revision. In the TUI, the single live status surface
|
|
55
|
-
shows its expansion shortcut: `app.tools.expand` (Ctrl+O by default, configurable in `keybindings.json`) toggles
|
|
56
|
-
running/open/checked/unmet/uncheckable criteria, current evidence references and admitted L2 paths/benefits.
|
|
57
|
-
The dock stays compact; expanded details use a height-bounded overlay. Scroll with the configured selection
|
|
58
|
-
up/down and page-up/page-down keys (arrows and PageUp/PageDown by default); the expansion shortcut or selection
|
|
59
|
-
cancel key closes details and restores editor focus. Wrapped details resize with the terminal and update live
|
|
60
|
-
without resetting the scroll position.
|
|
61
|
-
Expansion stays live through primary completion and Check/review until run settlement; no mode choice or separate
|
|
62
|
-
agent board is added. Admitted L2 scope names appear before peer dispatch. Host-observed relevant reads/completed scoped artifacts and passing
|
|
63
|
-
checks count as semantic progress once per candidate/configuration/criterion/observation identity; repeated
|
|
64
|
-
captures, model claims and arbitrary file touches do not. Progress alone is not verification. A completed primary
|
|
65
|
-
response may propose earlier escalation with a bounded `<adaptive_escalation>{id,reason,benefit}</adaptive_escalation>`
|
|
66
|
-
JSON record; the owner still enforces next-level admission, signal floors and remaining allocation.
|
|
67
|
-
|
|
68
|
-
The host's `adaptiveExecution.checks` must be trusted direct Node JavaScript verifiers captured before work,
|
|
69
|
-
with exact criterion acceptance links. Changed/new executable dependencies, unsupported formats/native addons,
|
|
70
|
-
and shell/package wrappers refuse qualification. Verifiers must consume mutable candidate source as data, not
|
|
71
|
-
evaluate it or dispatch model producers; arbitrary shell, nested/model-capable and unqualified extension tools
|
|
72
|
-
refuse. Scoped native write/edit currently qualify only on macOS/Linux Node.js; Windows, other OSes and Bun
|
|
73
|
-
(including compiled binaries) are unsupported. Virtual-model peer fan-out refuses without a frozen physical
|
|
74
|
-
pricing bound; supported physical-model L2 is not blanket-disabled. This is not a sandbox or general-purpose
|
|
75
|
-
repository test runner. A factual answer without independently qualified source/counterexample observations
|
|
76
|
-
remains unverified, even after model self-check.
|
|
77
|
-
|
|
78
|
-
Saved adaptive sessions use frozen original admission and versioned safe checkpoints for Understand, pre-Act,
|
|
79
|
-
Check and Decide, preserving budgets, downtime, checklist revisions, floors, attempts and job identities. Ambiguous
|
|
80
|
-
in-flight work, unknown producer/child/job custody, missing provenance or changed model/profile/authority block
|
|
81
|
-
unsafe continuation, never replay work or adopt saved PIDs. Sealed terminal results re-observe current integrity
|
|
82
|
-
and artifacts without model/check/job or settlement replay; an originally unverified result cannot be upgraded.
|
|
83
|
-
This is the session resume path, not `/flow continue`; the experimental in-process transport remains non-resumable.
|
|
84
|
-
|
|
85
|
-
Phase 1 is not complete. At this documentation refresh the exact-tree full `./test.sh` is running, with no passing
|
|
86
|
-
result available; focused historical results do not close final qualification. Phase-2 navigation/editing, mini-eval, measured improvement/adoption, Forge migration
|
|
87
|
-
and command removal are not established here. Existing commands and legacy Flow v1 contracts remain intact.
|
|
88
|
-
See [executors](../../flow/docs/executors.md#adaptive-session-boundary-worktree-only) and
|
|
89
|
-
[known limits](../../flow/docs/known-limits.md#adaptive-v2-partial-worktree-implementation).
|
|
90
|
-
|
|
91
33
|
## `/flow run <goal>`
|
|
92
34
|
|
|
93
35
|
```
|
|
@@ -96,14 +38,14 @@ See [executors](../../flow/docs/executors.md#adaptive-session-boundary-worktree-
|
|
|
96
38
|
[--workflow direct|checked|led|full] [--effort LEVEL]
|
|
97
39
|
[--cheap ALIAS] [--mid ALIAS] [--premium ALIAS] [--frontier ALIAS]
|
|
98
40
|
[--model <capability>=ALIAS]
|
|
99
|
-
[--quality-floor F] [--cost-aggressiveness C] [--max-retries R]
|
|
41
|
+
[--quality-floor F] [--cost-aggressiveness C] [--max-retries R]
|
|
100
42
|
[--context FILE ...] [--with-last-reply] [--force]
|
|
101
43
|
[--route-only] [--candidate PATH] [--verify-after]
|
|
102
44
|
[--live-qa | --no-live-qa] [--live-qa-adapter ID] [--live-qa-scope SCOPE]
|
|
103
45
|
[--live-qa-acceptance FILE]
|
|
104
46
|
```
|
|
105
47
|
|
|
106
|
-
Flags are honored only before or after the goal text (the leading and trailing flag blocks). A `--flag` between goal words is part of the goal. An unrecognized `--flag` that ends up inside the goal text (for example a trailing `--size small`, where the value word makes the flag part of the goal) stays in the goal and is reported once as a warning: `Unknown flag(s) kept in the /flow goal text: ...`; the run still starts. Unrecognized flags in the leading or trailing flag block refuse the run. There is no `--size` flag. On `/flow run`, `--check` and `--live` are accepted by the parser but have no effect (`src/core/args.ts:
|
|
48
|
+
Flags are honored only before or after the goal text (the leading and trailing flag blocks). A `--flag` between goal words is part of the goal. An unrecognized `--flag` that ends up inside the goal text (for example a trailing `--size small`, where the value word makes the flag part of the goal) stays in the goal and is reported once as a warning: `Unknown flag(s) kept in the /flow goal text: ...`; the run still starts. Unrecognized flags in the leading or trailing flag block refuse the run. There is no `--size` flag. On `/flow run`, `--check` and `--live` are accepted by the parser but have no effect (`src/core/args.ts:476-478`). `--fan-out` is also accepted and has no effect on any run. Values are not all validated by the parser: `--complexity` is rounded and clamped to 1-10, and a non-numeric value falls back to 5. `--risk` and `--task-class` are stored as given.
|
|
107
49
|
|
|
108
50
|
`/flow help run` lists these flags. Preparing a run (parsing flags, resolving the profile, freezing the admission) is not dispatch. Admission refusals end with `Nothing was dispatched.`
|
|
109
51
|
|
|
@@ -278,7 +220,7 @@ Flow can be disabled without affecting direct prompts. Either of these makes `/f
|
|
|
278
220
|
- Environment variable `HUMAIN_TERMINAL_FLOW_DISABLED` set to `1` or `true` (case-insensitive, trimmed).
|
|
279
221
|
- Setting `flow.enabled` set to `false` in `settings.json`.
|
|
280
222
|
|
|
281
|
-
`/flow help` and completion keep working. `cancel`, `status`, `pause`, `hide`, and `show` stay available for an already loaded run. `resume` is refused.
|
|
223
|
+
`/flow help` and completion keep working. `cancel`, `status`, `pause`, `hide`, and `show` stay available for an already loaded run. `resume` is refused. Plain prompts do not go through Flow, so they keep working.
|
|
282
224
|
|
|
283
225
|
## Failure handling
|
|
284
226
|
|
|
@@ -74,56 +74,10 @@ That means:
|
|
|
74
74
|
| `packages/coding-agent/src/main.ts` | CLI bootstrap, startup cwd resolution, app mode dispatch, runtime factory construction, distribution wiring for bundled HUMAIN extension factories. | Forge policy, provider selection policy, DeployNow descriptor parsing beyond passing env into the runtime. |
|
|
75
75
|
| `packages/coding-agent/src/core` | Sessions, settings, auth storage, model registry, resource loading, tools, extension runtime. | Product-specific Forge workflow copy or DeployNow env names. |
|
|
76
76
|
| `packages/coding-agent/src/modes` | Interactive, print, and RPC mode I/O behavior. | Provider detection, model binding interpretation, package-specific architecture rules. |
|
|
77
|
-
| `packages/coding-agent/src/humain` | HUMAIN branding/themes, native account qualification and lifecycle, independent provider registration, DeployNow descriptors
|
|
78
|
-
| `packages/flow/src/adaptive` | Private adaptive lifecycle, budgets, depth policy, requirements and evidence-bound completion over injected session/check services. | Provider transport, Forge billing/admission policy, new Flow v1 wire fields, or a second agent scheduler. |
|
|
77
|
+
| `packages/coding-agent/src/humain` | HUMAIN branding/themes, native account qualification and lifecycle, independent provider registration, and DeployNow descriptors. | Startup cwd resolution, generic auth resolution, generic provider transport behavior, workflow model policy, low-level TUI mechanics, real provider secret custody. |
|
|
79
78
|
| `packages/coding-agent/docs` | Durable user and engineering contract for HUMAIN Code CLI behavior. | Stale implementation plans or speculative roadmap as current architecture truth. |
|
|
80
79
|
| `docs/superpowers/specs` | Historical product specs and implementation plans. | Canonical current architecture rules after implementation has landed. |
|
|
81
80
|
|
|
82
|
-
## Opt-in adaptive execution: worktree implementation, partial qualification
|
|
83
|
-
|
|
84
|
-
Trusted settings and SDK `CreateAgentSessionOptions.executionEngine` accept `legacy` or `adaptive-v2`;
|
|
85
|
-
`legacy` is the default. Selection is frozen at run admission, not inferred from task names. Legacy plain
|
|
86
|
-
prompts retain their direct path. Explicit adaptive prompts lazily load Flow through `humain/flow-loader.ts`.
|
|
87
|
-
The private Flow engine owns Understand → Act → Check → Decide; the host reuses the primary `AgentSession`
|
|
88
|
-
continuation/settlement seam, candidate/check services and session-owned jobs. L0 has only the primary;
|
|
89
|
-
L1 adds a fresh read-only reviewer context, not a mutating worker or hierarchy bootstrap. L2 permits up to two
|
|
90
|
-
independent subprocess peers alongside the primary, plus one reviewer. The parent owns requests, credentials,
|
|
91
|
-
SDK request policy, tool authorization and usage reconciliation. Peers share pre-reserved child allocations and
|
|
92
|
-
the absolute run deadline, cannot recurse, and return integration/repair to the primary. Unsplittable work keeps
|
|
93
|
-
one worker; no experimental in-process transport is promoted.
|
|
94
|
-
|
|
95
|
-
The current worktree implements the L0/L1/L2 loop, draft plus fresh missing-items checklist, versioned
|
|
96
|
-
criterion/candidate/configuration evidence, sanitized effective-request attestation, throwing physical-submission
|
|
97
|
-
admission, and owned-job stdin/deadline/cleanup extensions. Semantic progress deduplicates host-observed relevant
|
|
98
|
-
observations, scoped artifacts and passing checks, not model claims or arbitrary writes. Validated primary
|
|
99
|
-
escalation proposals remain subject to ordered depth, floors and budget admission. Local status exposes criterion
|
|
100
|
-
revision/states/evidence and publishes admitted independent L2 scopes before dispatch.
|
|
101
|
-
|
|
102
|
-
Integrated session recovery preserves frozen original admission, elapsed budget including downtime, checklist,
|
|
103
|
-
floors, attempts and job identity at safe Understand/pre-Act/Check/Decide checkpoints. Ambiguous in-flight work,
|
|
104
|
-
unknown producer/child/job custody and changed authority cannot authorize replay or PID adoption. A matching
|
|
105
|
-
private terminal seal permits integrity/artifact re-observation without model/check/job or settlement replay,
|
|
106
|
-
never upgrading an originally unverified result. Experimental in-process runs remain non-resumable. Saved legacy
|
|
107
|
-
sessions stay legacy; adaptive selection cannot reinterpret a frozen Flow admission. This is not a shipped-release
|
|
108
|
-
or phase-1-complete claim: the exact-tree full `./test.sh` is running at this refresh, with no passing result yet.
|
|
109
|
-
|
|
110
|
-
Host checks currently require trusted, admission-captured Node JavaScript verifiers with unchanged executable
|
|
111
|
-
modules/configuration; mutable candidate source may be read as data, not executed as an unadmitted producer.
|
|
112
|
-
Scoped native mutation custody qualifies only macOS/Linux Node.js write/edit, refusing Windows, other OSes and
|
|
113
|
-
Bun (including compiled binaries). Virtual-model peer fan-out refuses without a frozen physical pricing bound;
|
|
114
|
-
physical-model L2 remains available within admission. This is qualification, not OS isolation or general
|
|
115
|
-
repository-test support. Factual answers can remain unverified
|
|
116
|
-
without independently qualified source and contradictory-case observations. See [executor boundaries](../../flow/docs/executors.md#adaptive-session-boundary-worktree-only)
|
|
117
|
-
and [known limits](../../flow/docs/known-limits.md#adaptive-v2-partial-worktree-implementation).
|
|
118
|
-
|
|
119
|
-
Flow v1 admissions, profile digests, request IDs, omission semantics, usage reconciliation and settlement ordering
|
|
120
|
-
remain authoritative. Adaptive status/evidence stays on local session surfaces, not new Flow v1 keys or enums.
|
|
121
|
-
`implementation_ready` stays provisional; `run_settled.totals` reconciles streamed usage, not another charge.
|
|
122
|
-
Optional settlement verification remains omitted unless `HUMAIN_TERMINAL_FLOW_SETTLEMENT_VERIFICATION=1`.
|
|
123
|
-
Limited installed-reader checks do not authorize enabling that gate. No Forge migration, command deletion,
|
|
124
|
-
phase-2 navigation/editing, mini-eval, measured improvement or default/adoption promotion is established by this
|
|
125
|
-
worktree implementation. Independent PREVIEWER/integrator and merge authority remain external.
|
|
126
|
-
|
|
127
81
|
## HUMAIN Code And Forge Boundaries
|
|
128
82
|
|
|
129
83
|
HUMAIN Code and Forge integration should stay in the bundled HUMAIN extension unless the change is plainly
|
|
@@ -212,7 +212,7 @@ Key source handles:
|
|
|
212
212
|
|
|
213
213
|
## Flow 5: Native HUMAIN Code Account
|
|
214
214
|
|
|
215
|
-
`--env dev|staging|production` resolves before owner construction;
|
|
215
|
+
`--env dev|staging|stg|production` resolves before owner construction; production is the default and `stg` aliases `staging`. Origins are fixed to
|
|
216
216
|
`https://code.dev.humain.com`, `https://code.stg.humain.com`, and `https://code.humain.com`.
|
|
217
217
|
Independent providers are not redirected.
|
|
218
218
|
|
package/docs/humain-code.md
CHANGED
|
@@ -83,7 +83,7 @@ Sending `normal mode` as the whole message disables all three for the session. A
|
|
|
83
83
|
|
|
84
84
|
## Native HUMAIN Code
|
|
85
85
|
|
|
86
|
-
Provider `humain-code-account` is presented as **HUMAIN Code
|
|
86
|
+
Use `/login` → **Sign in with HUMAIN**. Provider `humain-code-account` is presented as **HUMAIN Code** in production (the default), **HUMAIN Code (DEV)** with `--env dev`, or **HUMAIN Code (STG)** with `--env staging` (alias `stg`). The menu orders Code, Node, Gateway, Fuse. Code shows `checking connection…` until the selected environment's sign-in configuration is verified; if unavailable, the entry gives a reason and offers Retry. Incompatible sign-in settings offer Details instead. If production sign-in is unavailable, the CLI does not switch to DEV. Direct `/login humain-code-account` checks readiness too. Startup and unrelated providers do not wait for native readiness or private account discovery.
|
|
87
87
|
|
|
88
88
|
Native login uses browser/device authorization and MFA, not an API key. Persistent grants use encrypted private account files and an OS-keychain purpose key. If the secure keychain is unavailable, explicit session-only consent is offered before acquiring a grant. Nothing from that sign-in is saved; normal interactive, print, JSON and RPC exits attempt one bounded device-family revocation within 3,000 ms. Unconfirmed revocation is reported on stderr; a crash leaves validity until expiry. Persistent accounts survive ordinary exit. See [HUMAIN Code setup](providers.md#humain-code) for environments, storage boundaries, Retry/Cancel and activation limits.
|
|
89
89
|
|
package/docs/keybindings.md
CHANGED
|
@@ -194,6 +194,8 @@ Used inside `/usage`'s full-terminal overlay, independent of extension widgets a
|
|
|
194
194
|
| `app.usage.previousTab` | `shift+tab`, `left` | Select the previous account, wrapping at the start |
|
|
195
195
|
| `app.usage.reset` | `r` | Check Codex reset availability, then confirm using one saved reset; open Claude usage settings |
|
|
196
196
|
| `app.usage.billing` | `b` | Open the selected provider's official billing/usage settings |
|
|
197
|
+
| `app.usage.refresh` | `f` | Refresh usage for the selected Claude account |
|
|
198
|
+
| `app.usage.reconnect` | `c` | Reconnect the selected Claude account when offered |
|
|
197
199
|
|
|
198
200
|
`tui.select.up` / `tui.select.down` select an account in the list. `tui.select.confirm` (Enter) focuses its details; `tui.select.cancel` (Esc) returns to the list, or closes from the list or Session. In focused details or Session, the selection movement and page actions scroll content; the mouse wheel also scrolls. Click an account to select it.
|
|
199
201
|
|
package/docs/llama-cpp.md
CHANGED
|
@@ -26,7 +26,7 @@ Start `llama serve` without `--model`, `-m`, or `-hf`. Passing a model starts si
|
|
|
26
26
|
llama serve \
|
|
27
27
|
--no-models-autoload \
|
|
28
28
|
--host 127.0.0.1 \
|
|
29
|
-
--port
|
|
29
|
+
--port 9931 \
|
|
30
30
|
-ngl all \
|
|
31
31
|
-c 32768
|
|
32
32
|
```
|
|
@@ -62,14 +62,14 @@ Start HUMAIN Code CLI and configure the provider:
|
|
|
62
62
|
/login llama.cpp
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
Enter the router URL and optional API key. The default URL is `http://127.0.0.1:
|
|
65
|
+
Enter the router URL and optional API key. The default URL is `http://127.0.0.1:9931`.
|
|
66
66
|
|
|
67
67
|
If you start the router with `--no-models-autoload`, `/login llama.cpp` only stores the connection. Run `/llama` to load a model, then `/model` to select the loaded model for the current session.
|
|
68
68
|
|
|
69
69
|
Environment variables can configure the same values without `/login`:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
export LLAMA_BASE_URL=http://127.0.0.1:
|
|
72
|
+
export LLAMA_BASE_URL=http://127.0.0.1:9931
|
|
73
73
|
export LLAMA_API_KEY=optional-secret
|
|
74
74
|
humain-code
|
|
75
75
|
```
|
|
@@ -120,8 +120,8 @@ The model does not generate an answer. Each question becomes one chat prompt: th
|
|
|
120
120
|
Check that the router is reachable:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
curl http://127.0.0.1:
|
|
124
|
-
curl http://127.0.0.1:
|
|
123
|
+
curl http://127.0.0.1:9931/health
|
|
124
|
+
curl http://127.0.0.1:9931/models
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
- **No models in `/llama`:** Check `--models-dir`, the directory layout, and restart the router.
|
|
@@ -111,7 +111,7 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
|
|
|
111
111
|
| Field | Type | Default | Description |
|
|
112
112
|
|---|---|---|---|
|
|
113
113
|
| `supportsStore` | boolean | | Whether the provider supports the store field. Default: auto-detected from URL. |
|
|
114
|
-
| `supportsDeveloperRole` | boolean | | Whether the
|
|
114
|
+
| `supportsDeveloperRole` | boolean | | Whether to send system messages of reasoning models (the system prompt and mid-conversation system messages) with the developer role instead of system. Default: true only for api.openai.com. |
|
|
115
115
|
| `supportsReasoningEffort` | boolean | | Whether the provider supports reasoning_effort. Default: auto-detected from URL. |
|
|
116
116
|
| `supportsUsageInStreaming` | boolean | `true` | Whether the provider supports stream_options.include_usage for token usage in streaming responses. |
|
|
117
117
|
| `supportsFinishReason` | boolean | `true` | Whether streamed responses include finish_reason. When false, pi infers stop or toolUse when the stream ends. |
|
|
@@ -158,7 +158,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
158
158
|
| `supportsAdditionalTools` | boolean | `false` | Whether the model supports message-anchored additional_tools input items. |
|
|
159
159
|
| `supportsToolSearch` | boolean | `false` | Whether the model supports client-executed tool search for transcript-anchored additions. |
|
|
160
160
|
| `supportsExplicitPromptCacheMode` | boolean | `false` | Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter. |
|
|
161
|
-
| `supportsMidConvoEffort` | boolean | `false` | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache.
|
|
161
|
+
| `supportsMidConvoEffort` | boolean | `false` | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Used by the openai-responses and openai-codex-responses APIs, and ignored with Sign in with ChatGPT on the openai provider. |
|
|
162
162
|
| `supportsMaxOutputTokens` | boolean | `true` | Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it. |
|
|
163
163
|
| `requiresAdjacentToolResults` | boolean | `false` | Whether each tool result must directly follow its tool call. When true, the results of parallel tool calls are sent call, result, call, result instead of all calls followed by all results. Needed by backends that pair tool results with calls by position. Only used by the openai-responses API. |
|
|
164
164
|
|
|
@@ -178,6 +178,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
178
178
|
| `supportsMidConvoEffort` | boolean | `false` | Whether the exact model transport supports effort-only system messages and thinking binding controls. |
|
|
179
179
|
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt. |
|
|
180
180
|
| `supportsMidConvoToolChanges` | boolean | `false` | Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages. |
|
|
181
|
+
| `supportsMessageThreads` | boolean | | Whether the endpoint supports Anthropic message threads, which let a request with a session id send only the new messages and continue from the previous reply. Default: true for a baseUrl on api.anthropic.com, false otherwise. Set true for gateways that forward the thread request field. |
|
|
181
182
|
| `allowedFallbackModels` | `object[]` | | 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. |
|
|
182
183
|
|
|
183
184
|
### `bedrock-converse-stream`
|
|
@@ -191,6 +192,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
191
192
|
| Field | Type | Default | Description |
|
|
192
193
|
|---|---|---|---|
|
|
193
194
|
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
|
|
195
|
+
| `supportsStrictMode` | boolean | `false` | Whether the model supports strict (schema-constrained) function tools. |
|
|
194
196
|
|
|
195
197
|
### `typesafe-system-one`
|
|
196
198
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Run HUMAIN Code CLI with NVIDIA RTX and llama.cpp
|
|
2
2
|
|
|
3
|
-
[NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. HUMAIN Code CLI works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset
|
|
3
|
+
[NVIDIA Local AI Inference Recipes](https://nvidia.github.io/local-ai-inference-recipes/index.html) provides llama.cpp settings tuned for specific NVIDIA hardware and models. Each recipe gives a single-model `llama-server` command. HUMAIN Code CLI works with the llama.cpp router, which can serve and manage several models, so this guide converts the recipe command into a router preset and starts it with `llama serve`. `llama serve` accepts the same options as `llama-server`.
|
|
4
4
|
|
|
5
5
|
The examples below use Windows PowerShell. See [Local Models with llama.cpp](llama-cpp.md) for HUMAIN Code CLI's complete router and model-management reference.
|
|
6
6
|
|
|
@@ -8,12 +8,12 @@ The examples below use Windows PowerShell. See [Local Models with llama.cpp](lla
|
|
|
8
8
|
|
|
9
9
|
1. Open the [recipe catalog](https://nvidia.github.io/local-ai-inference-recipes/index.html), select your hardware, operating system, and model, then choose **llama.cpp**. Check the prerequisites and memory requirements. Keep the recipe's launch command for the conversion below.
|
|
10
10
|
2. Install llama.cpp with the recipe's setup instructions. The recipe's settings depend on its build, for example CUDA support or speculative decoding options.
|
|
11
|
-
3. Run `llama
|
|
11
|
+
3. Run `llama serve --help` and check that it lists `--models-preset`. If the build has no `llama` program or the option is missing, it cannot load the recipe as a router preset. Use a newer build that still meets the recipe's requirements.
|
|
12
12
|
4. Install HUMAIN Code CLI with the [Quickstart](quickstart.md). On native Windows, also see [Run HUMAIN Code CLI on Windows](windows.md).
|
|
13
13
|
|
|
14
14
|
## Convert the recipe to a preset
|
|
15
15
|
|
|
16
|
-
A preset lists the settings for one or more models. Each section name becomes the model ID shown in HUMAIN Code CLI. Save the preset
|
|
16
|
+
A preset lists the settings for one or more models. Each section name becomes the model ID shown in HUMAIN Code CLI. Save the preset in the llama.cpp folder, or pass its full path when starting the router.
|
|
17
17
|
|
|
18
18
|
Convert each option from the recipe command into one preset line:
|
|
19
19
|
|
|
@@ -82,7 +82,7 @@ spec-draft-backend-sampling = true
|
|
|
82
82
|
Open PowerShell in the llama.cpp folder and run:
|
|
83
83
|
|
|
84
84
|
```powershell
|
|
85
|
-
.\llama
|
|
85
|
+
.\llama.exe serve --models-preset qwen3.8-27b.ini --host 127.0.0.1
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
If the recipe requires a Hugging Face token, set `$env:HF_TOKEN` in the same PowerShell window before starting the router. On its first start, the router downloads the model files.
|
|
@@ -91,6 +91,6 @@ Use the [router health checks](llama-cpp.md#troubleshooting) to confirm that the
|
|
|
91
91
|
|
|
92
92
|
## Use the model in HUMAIN Code CLI
|
|
93
93
|
|
|
94
|
-
Follow [Configure HUMAIN Code CLI](llama-cpp.md#configure-pi) and connect to `http://127.0.0.1:
|
|
94
|
+
Follow [Configure HUMAIN Code CLI](llama-cpp.md#configure-pi) and connect to `http://127.0.0.1:9931`. The preset section name is the model ID, so select `qwen3.8-27b` in `/model` for this example.
|
|
95
95
|
|
|
96
96
|
NVIDIA recipe memory settings assume that only the selected model uses the GPU. If `/llama` shows other loaded models, unload them before using the recipe model.
|
package/docs/providers.md
CHANGED
|
@@ -73,8 +73,9 @@ This table covers providers with a single primary API-key variable. Providers th
|
|
|
73
73
|
| MiniMax | `MINIMAX_API_KEY` |
|
|
74
74
|
| MiniMax (China) | `MINIMAX_CN_API_KEY` |
|
|
75
75
|
| Moonshot AI (Global and China) | `MOONSHOT_API_KEY` |
|
|
76
|
-
| Qwen Token Plan
|
|
77
|
-
| Qwen Token Plan (China) | `
|
|
76
|
+
| Qwen Token Plan Team | `QWEN_TOKEN_PLAN_TEAM_API_KEY` |
|
|
77
|
+
| Qwen Token Plan Team (China) | `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY` |
|
|
78
|
+
| Qwen Token Plan Individual | `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY` |
|
|
78
79
|
| Xiaomi MiMo | `XIAOMI_API_KEY` |
|
|
79
80
|
| Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` |
|
|
80
81
|
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` |
|
|
@@ -260,19 +261,23 @@ To use a service-account key file instead, set `GOOGLE_APPLICATION_CREDENTIALS`
|
|
|
260
261
|
|
|
261
262
|
## HUMAIN Code
|
|
262
263
|
|
|
263
|
-
Native provider `humain-code-account` is shown as **HUMAIN Code
|
|
264
|
+
Native provider `humain-code-account` is shown as **HUMAIN Code** in production, **HUMAIN Code (DEV)** in dev, and **HUMAIN Code (STG)** in staging. Under **Sign in with HUMAIN**, order is Code, Node, Gateway, Fuse. All entries render at once. Code shows `checking connection…` (greyed) until the selected environment's `/api/cli/config` proves the complete qualified native device/issuer/audience/scopes/expiry/revocation profile and the issuer's discovery document matches it; it then shows `✓ connected`. HUMAIN Code CLI starts this check at startup and reuses a ready result for 5 minutes, so the menu is usually already connected; otherwise opening the menu checks again and updates it without losing search or selection. Selecting Code while the check runs waits inline with a spinner and continues to sign-in when it succeeds. Failures never block independent providers and name the cause:
|
|
264
265
|
|
|
265
|
-
|
|
266
|
+
- `✗ Can't reach <host>: check VPN/Zscaler [Retry]`: DNS, connection, TLS, timeout or a server error. Enter retries and continues when ready.
|
|
267
|
+
- `✗ Server sign-in settings don't match this CLI version [Details]`: the server answered with settings this CLI does not accept. Enter explains: update the CLI, or ask the HUMAIN Code platform team to check the server's CLI sign-in configuration.
|
|
268
|
+
- `✗ Sign-in is unavailable right now [Retry]`: offline mode or another failure.
|
|
266
269
|
|
|
267
|
-
|
|
270
|
+
Start with `humain-code --env dev`, `--env staging` (alias `stg`), or `--env production`. Origins are `https://code.dev.humain.com`, `https://code.stg.humain.com`, and `https://code.humain.com`; production is the default. There is no arbitrary endpoint override or cross-environment fallback. This flag does not redirect Node, Gateway, Fuse, Local or DeployNow.
|
|
268
271
|
|
|
269
|
-
|
|
272
|
+
Use `/login humain-code-account`. An unreachable server says `Can't reach <host>: check VPN/Zscaler, then try /login again.`; other unavailable readiness says `HUMAIN Code is unavailable for this environment. Try /login again later.` (with the selected environment suffix when applicable). Readiness proves presentation only, not account eligibility or model availability. Browser/device sign-in always displays the validated verification URI and user code for remote use; MFA remains issuer-controlled. Device-code polling retries DNS, connection and 5xx errors with backoff (1 s doubling to 30 s) until the code expires; an invalid token response still fails at once.
|
|
273
|
+
|
|
274
|
+
Persistent login encrypts private account files under the agent directory's `hcode/accounts/<environment>` with a purpose key in the OS keychain. Generic auth holds only an environment/account/generation reference, never access or refresh tokens. One native account is active per environment; native grants are not pooled or automatically switched. The saved sign-in is shared by every `humain-code` process that uses the same agent directory and environment: a terminal opened later starts signed in, and `/login` and `/model` re-read a sign-in or sign-out made in another terminal. A terminal started without `--env` targets production; when only another environment has a saved sign-in, startup and `/login status` name it and the `--env` flag that selects it.
|
|
270
275
|
|
|
271
276
|
Only genuine keychain unavailability permits the prompt **Secure keychain unavailable. Sign in for this session only?** Choose **Sign in for this session only** or **Cancel** before obtaining a grant. Corruption, unsafe permissions and cancellation are not permission to fall back. A session-only grant/reference/account ID stays in memory: no account/auth/pool/settings/session-JSONL/journal/tombstone writes and no overwrite of inaccessible saved state.
|
|
272
277
|
|
|
273
278
|
Normal interactive, print, JSON and RPC completion attempts one device-family revocation within 3,000 ms before erasing memory. Persistent login is not revoked on ordinary exit. Unconfirmed revocation writes only to stderr: `HUMAIN Code session revocation could not be confirmed. The session will expire automatically.` There is no disk revoke spool or background retry. Crashes and network loss do not guarantee revocation; qualified short expiry and isolated-family revocation require separate live activation evidence.
|
|
274
279
|
|
|
275
|
-
After sign-in, use `/model` to choose an approved native model; login does not change your current model.
|
|
280
|
+
After sign-in, use `/model` to choose an approved native model; login does not change your current model. If the account has no models yet, sign-in still succeeds and you return to the prompt with a notice; the current model is kept and other providers stay usable. The notice says why and who can fix it when Forge sends a reason: no model is approved for CLI (ask an admin to set a model to Web + CLI or CLI only in Settings > Model Access), the provider key isn't enabled for CLI (ask an admin to enable CLI on the key in Settings > Provider Keys), or this server hasn't finished CLI setup for the approved models (ask an admin to report it to the HUMAIN Code platform team). Without a reason it says your admin hasn't enabled CLI models yet; a load failure says the model list couldn't be loaded and to check your network, VPN or Zscaler. The status line shows `HUMAIN Code: signed in · 0 models`. HUMAIN Code CLI checks again every 60 seconds for 10 minutes, then only when `/model` opens, and announces `N HUMAIN Code models are now available` when they appear. `/model` lists the account as `HUMAIN Code (DEV) · 0 available: <reason> [Retry]`; Enter on that row reloads it. `/login status` shows the account, model count, reason and sign-in server check. If the list becomes empty in the account picker opened after a fresh sign-in, it shows the same reasons with Retry/Cancel.
|
|
276
281
|
|
|
277
282
|
Native inference uses the managed `pi-messages` transport at the selected origin's `/api/inference/messages`. The account owner adds authorization only at final dispatch. Each invocation submits once, with no automatic inference retry, account/model fallback, or response replay. Stream queue overflow cancels the request; an ambiguous outcome may still charge, so check `/usage` before retrying manually.
|
|
278
283
|
|
|
@@ -321,7 +326,7 @@ Both Gateway hosts are reachable only from the HUMAIN corporate network.
|
|
|
321
326
|
2. Choose **Sign in with HUMAIN**, then **HUMAIN Gateway**. (It is also listed under **Sign in with an API key**, because its session is a per-user key, even though you never handle it.)
|
|
322
327
|
3. Your browser opens the Gateway's Microsoft sign-in. Sign in; the page shows **Authentication successful** and the terminal continues on its own.
|
|
323
328
|
|
|
324
|
-
Over SSH or
|
|
329
|
+
Over SSH, or if the browser or local callback is unavailable, open the **HUMAIN Gateway sign-in (paste code)** link printed in the terminal. Sign in and paste the one-time `hc_...` code into the masked prompt. The code expires after 2 minutes, and any exchange attempt uses it up.
|
|
325
330
|
|
|
326
331
|
The Gateway issues a personal session key, which HUMAIN Code CLI stores in the OS keychain: macOS Keychain, Linux Secret Service, or Windows Credential Manager. WSL uses Windows Credential Manager through Windows PowerShell, not a Linux desktop keyring. `auth.json` keeps only the environment, a session ID, and your email. Before opening the browser, sign-in writes, reads back, and deletes a temporary non-session value to verify the store. It never falls back to a plaintext file or another credential backend.
|
|
327
332
|
|
|
@@ -362,7 +367,7 @@ CI and unattended runs are not supported: every session needs an interactive Mic
|
|
|
362
367
|
| --- | --- |
|
|
363
368
|
| `Could not reach HUMAIN Gateway to finish sign-in.` / browser shows `ERR_CONNECTION_CLOSED` | Connect to the HUMAIN corporate network. Staging may require separate access from the Gateway team. |
|
|
364
369
|
| `HUMAIN Gateway sign-in code is invalid or expired.` | Run `/login` again; codes last 2 minutes and work once. |
|
|
365
|
-
| `HUMAIN Gateway
|
|
370
|
+
| `HUMAIN Gateway sign-in is temporarily unavailable.` | Complete the fresh sign-in if prompted. If the error persists, wait and run `/login` again. Do not reuse an earlier code. |
|
|
366
371
|
| Keychain or Secret Service error | Unlock the keychain. On Linux, check `secret-tool`, the current D-Bus session, and the running Secret Service keyring. |
|
|
367
372
|
| WSL Windows Credential Manager error | Check that Windows `powershell.exe` runs from WSL and Windows interoperability is enabled. Sign in as the Windows user whose credential store holds the session. |
|
|
368
373
|
| `HUMAIN Gateway CLI session unavailable. Sign in again.` | Your access was revoked or rotated; run `/login` again. |
|
package/docs/rpc-commands.md
CHANGED
|
@@ -758,7 +758,7 @@ Response:
|
|
|
758
758
|
|
|
759
759
|
### get_last_assistant_text
|
|
760
760
|
|
|
761
|
-
Get the text content of the last assistant message.
|
|
761
|
+
Get the text content of the last assistant message. Messages without text from an aborted or failed turn, or that only call tools, are skipped.
|
|
762
762
|
|
|
763
763
|
```json
|
|
764
764
|
{"type": "get_last_assistant_text"}
|
package/docs/run-preflight.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Print (`-p`), JSON, RPC, and the experimental Flow in-process host validate the effective model after `before_agent_start` handlers select it, before automatic compaction or task execution. Agent-exec validates the admitted model before creating its execution host. Interactive sessions do not enable this gate.
|
|
4
4
|
|
|
5
|
-
Preflight resolves current authentication, including OAuth expiry and refresh, then sends a fixed `Reply OK.` request with no tools, no requested reasoning, a 16-token output budget, no retries, and a shared 10-second deadline. Cancellation aborts the probe. A provider may impose its own minimum output budget.
|
|
5
|
+
Preflight resolves current authentication, including OAuth expiry and refresh, then sends a fixed `Reply OK.` request with no tools, no requested reasoning, a 16-token output budget, no retries, and a shared 10-second deadline. Cancellation aborts the probe. A provider may impose its own minimum output budget. For managed HUMAIN Code models in print/JSON and RPC, preflight checks authentication without sending a separate metered probe; the task request is the first inference submission. Agent-exec and in-process Flow still require the readiness probe.
|
|
6
6
|
|
|
7
7
|
Before probing, the session prepares its configured account under the existing live activation policy. A structured terminal quota rejection may rotate to an identified, untried pooled account and probe again, bounded by the existing recovery limit. OAuth-to-API-key fallback still requires explicit consent; subscription-key rotation still requires provider support. Raw errors and credentials are not retained as recovery evidence. Managed HUMAIN Code requests are never automatically resent.
|
|
8
8
|
|
package/docs/slash-commands.md
CHANGED
|
@@ -55,7 +55,7 @@ Each limit window shows its percentage used and reset time when reported. Weekly
|
|
|
55
55
|
- **OpenAI Codex (ChatGPT subscription):** reads every window from `https://chatgpt.com/backend-api/wham/usage`, the same route `/accounts` reads. The 5h and weekly windows appear first, then provider-named additional limits and the code review limit. Reached limits use the error color. Paid balances accept validated string or numeric amounts in Codex's native **credits**, not dollars. Missing or malformed balances remain unavailable; explicit provider flags can report unlimited or no credits.
|
|
56
56
|
- **Claude subscription:** shows the known 5h, weekly, weekly Opus, weekly Sonnet and weekly OAuth apps limits first, followed by up to eight additional percentage limits in response order, plus extra-usage percentage when enabled. Additional keys must use only lowercase letters, digits and underscores and be at most 64 characters. Labels turn `seven_day_<name>` into `Weekly <Name>`, `five_hour_<name>` into `5h <Name>`, and other keys into title-cased words (for example, `seven_day_fable_5` becomes `Weekly Fable 5`); the actual Fable key is unconfirmed. Reset-grant and credit metadata are not percentage windows. The same rules apply to Claude Code's cached copy. Anthropic's undocumented `https://api.anthropic.com/api/oauth/usage?cedar_ember=1` endpoint is read-only, uses the selected account's token without redirects, truthfully identifies HUMAIN, caches results per account for 60 seconds and honors `Retry-After`. Its extra-usage response proves enabled/disabled status and reported percentage only, not a purchased balance or currency units. Paid balance, monthly spending amounts and auto-reload status remain unavailable unless verified; enablement does not mean paid credits exist.
|
|
57
57
|
|
|
58
|
-
If live Claude limits are unavailable, Claude Code's
|
|
58
|
+
If live Claude limits are unavailable, `/usage` and `/accounts` check Claude Code's cache in `~/.claude.json` only when the provider-issued account UUID matches and the organization UUIDs match or are both absent. Editable labels and emails never establish ownership. Cache entries past a quota reset or older than one hour show only their age, with refresh and reconnect actions. Live data shows the next future reset and omits expired windows. Cached data never supplies reset eligibility.
|
|
59
59
|
|
|
60
60
|
Purchases and auto-reload configuration stay on the providers' official pages: [Codex usage settings](https://chatgpt.com/codex/settings/usage) and [Claude usage settings](https://claude.ai/settings/usage). Before opening either page, a bounded, responsive confirmation shows `Sign in as: <selected account label>`, the account-mismatch warning and the exact destination URL. It defaults to **Cancel** and requires review of all body text (scrolling when needed) before accepting **Open usage settings**. No browser launches until you explicitly accept. Browser sign-in can differ from the CLI account; no credentials are passed to the browser.
|
|
61
61
|
|
package/docs/tui.md
CHANGED
|
@@ -21,6 +21,8 @@ These APIs receive HUMAIN Code CLI’s active theme and keybindings where needed
|
|
|
21
21
|
|
|
22
22
|
A component renders an array of terminal lines for an available width. It can optionally handle keyboard and mouse input, and it must invalidate cached output when its state or theme-dependent content changes.
|
|
23
23
|
|
|
24
|
+
Treat lines returned by `render()` as read-only, including `super.render()` in a subclass. Built-in components such as `Container`, `Box`, `Text`, and `Markdown` return the same cached array while nothing changed, so modifying it in place corrupts later frames. Copy first, for example `const lines = [...super.render(width)]`, and cache the result if it is expensive. Return a new array when your output changes: parents reuse an unchanged array without reading it again.
|
|
25
|
+
|
|
24
26
|
Every rendered line must fit within the supplied width. Measure visible terminal columns rather than string length because ANSI escapes, wide characters, emoji, and combining characters change display width.
|
|
25
27
|
|
|
26
28
|
Use `visibleWidth()`, `truncateToWidth()`, `sliceByColumn()`, and `wrapTextWithAnsi()` instead of implementing terminal-width handling yourself. HUMAIN Code CLI resets styling and hyperlinks after every line, so reapply styles on each rendered line.
|
package/examples/README.md
CHANGED
|
@@ -30,9 +30,6 @@ Example extensions demonstrating:
|
|
|
30
30
|
- External integrations (SSH, file watchers, system theme sync)
|
|
31
31
|
- Custom providers (Anthropic with custom streaming, GitLab Duo)
|
|
32
32
|
|
|
33
|
-
### [plugins/pi-example-plugin/](plugins/pi-example-plugin/)
|
|
34
|
-
An experimental plugin package that HUMAIN Code CLI automatically builds into separate Session-worker and TUI Chord facets.
|
|
35
|
-
|
|
36
33
|
## Documentation
|
|
37
34
|
|
|
38
35
|
- [SDK Examples](sdk/README.md)
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"name": "pi-extension-custom-provider-anthropic",
|
|
9
9
|
"version": "1.5.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@anthropic-ai/sdk": "1.
|
|
11
|
+
"@anthropic-ai/sdk": "1.12.0"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"node_modules/@anthropic-ai/sdk": {
|
|
15
|
-
"version": "1.
|
|
16
|
-
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.
|
|
17
|
-
"integrity": "sha512-
|
|
15
|
+
"version": "1.12.0",
|
|
16
|
+
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.12.0.tgz",
|
|
17
|
+
"integrity": "sha512-0j9zwiQdkvr90LoiiBDUh7kae1lsNW2EqeE0vGceYne4BrmMDdDVoQ4KGOieUee0zWZbVJKsf/06JY8U5i63Xg==",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@opentelemetry/api": "^1.4.1",
|
|
@@ -169,14 +169,11 @@ async function walkGuestFiles(
|
|
|
169
169
|
return walkDirectory(root, "");
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
// Like the built-in find and grep: a pattern with '/' is relative to the search root, one without
|
|
173
|
+
// '/' matches file names at any depth.
|
|
172
174
|
function matchesToolGlob(relativePath: string, pattern: string): boolean {
|
|
173
|
-
const normalizedPattern = toPosix(pattern);
|
|
174
|
-
if (normalizedPattern.includes("/"))
|
|
175
|
-
return (
|
|
176
|
-
path.posix.matchesGlob(relativePath, normalizedPattern) ||
|
|
177
|
-
path.posix.matchesGlob(relativePath, `**/${normalizedPattern}`)
|
|
178
|
-
);
|
|
179
|
-
}
|
|
175
|
+
const normalizedPattern = toPosix(pattern).replace(/^(?:\.\/)+/, "");
|
|
176
|
+
if (normalizedPattern.includes("/")) return path.posix.matchesGlob(relativePath, normalizedPattern);
|
|
180
177
|
return path.posix.matchesGlob(path.posix.basename(relativePath), normalizedPattern);
|
|
181
178
|
}
|
|
182
179
|
|