@humain/humain-code 0.6.2 → 0.7.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 +119 -0
- package/README.md +23 -6
- package/dist/agent-monitor/entry.lazy.d.ts +3 -0
- package/dist/agent-monitor/entry.lazy.d.ts.map +1 -0
- package/dist/agent-monitor/entry.lazy.js +3 -0
- package/dist/agent-monitor/entry.lazy.js.map +1 -0
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/adaptive-peer-worker-X2ZNZE3S.js +8 -0
- package/dist/bundle/chunks/adaptive-session-host-7KDSQV5I.js +162 -0
- package/dist/bundle/chunks/anthropic-messages-TQK3FUV3.js +68 -0
- package/dist/bundle/chunks/anthropic.js +13 -10
- package/dist/bundle/chunks/{azure-openai-responses-IV74M5OR.js → azure-openai-responses-JY7OSLH2.js} +6 -6
- package/dist/bundle/chunks/bedrock-converse-stream.js +79 -74
- package/dist/bundle/chunks/chunk-2FYYW6FY.js +2 -0
- package/dist/bundle/chunks/{chunk-A2VPLMF2.js → chunk-2G7YVAVF.js} +1 -1
- package/dist/bundle/chunks/chunk-32QLLD2P.js +1114 -0
- package/dist/bundle/chunks/{chunk-3LP543EX.js → chunk-3EDMWQ35.js} +17 -16
- package/dist/bundle/chunks/chunk-3HVHETMU.js +18 -0
- package/dist/bundle/chunks/{chunk-XMZGB3H4.js → chunk-4HTVBBJD.js} +11 -6
- package/dist/bundle/chunks/chunk-4JRER4XK.js +175 -0
- package/dist/bundle/chunks/{chunk-FHLLDO7U.js → chunk-4PRNKB6V.js} +5 -5
- package/dist/bundle/chunks/chunk-4QAXV5T6.js +49 -0
- package/dist/bundle/chunks/{chunk-JCTQQ3DX.js → chunk-4V5VL2BO.js} +1 -1
- package/dist/bundle/chunks/chunk-5B25YXF7.js +24 -0
- package/dist/bundle/chunks/chunk-5L4PBYC7.js +11 -0
- package/dist/bundle/chunks/chunk-66FZJO75.js +5146 -0
- package/dist/bundle/chunks/chunk-6P6GJPYB.js +4 -0
- package/dist/bundle/chunks/chunk-6PNQYO6A.js +10 -0
- package/dist/bundle/chunks/chunk-7NKUVTBL.js +76 -0
- package/dist/bundle/chunks/chunk-AEWYICBL.js +89 -0
- package/dist/bundle/chunks/chunk-AQ4EXORZ.js +14 -0
- package/dist/bundle/chunks/chunk-AZXVJN6E.js +19 -0
- package/dist/bundle/chunks/chunk-CRN54O4D.js +24 -0
- package/dist/bundle/chunks/chunk-CTU2ECLD.js +7 -0
- package/dist/bundle/chunks/{chunk-BQ3TMEWD.js → chunk-EIC7CQX3.js} +4 -3
- package/dist/bundle/chunks/chunk-F6ZAYLU2.js +59 -0
- package/dist/bundle/chunks/chunk-G4QPSFBF.js +493 -0
- package/dist/bundle/chunks/chunk-GME4AWDG.js +23 -0
- package/dist/bundle/chunks/{chunk-SFMDIVZ4.js → chunk-GRJUKEE3.js} +43 -30
- package/dist/bundle/chunks/chunk-GTILMMUF.js +12 -0
- package/dist/bundle/chunks/chunk-GUHNFZ2Q.js +51 -0
- package/dist/bundle/chunks/chunk-GY663MNP.js +11 -0
- package/dist/bundle/chunks/chunk-HTA325LJ.js +56 -0
- package/dist/bundle/chunks/{chunk-5L4JG6PO.js → chunk-I3NDOUHE.js} +8 -7
- package/dist/bundle/chunks/chunk-I5E7RQ5V.js +21 -0
- package/dist/bundle/chunks/chunk-IWZQ25I3.js +5 -0
- package/dist/bundle/chunks/chunk-IYGHKVUG.js +2 -0
- package/dist/bundle/chunks/chunk-J57HOSWD.js +21 -0
- package/dist/bundle/chunks/chunk-JF7FYXAI.js +288 -0
- package/dist/bundle/chunks/chunk-JSZBTGI6.js +10 -0
- package/dist/bundle/chunks/chunk-JYWUOKOI.js +1061 -0
- package/dist/bundle/chunks/{chunk-DLCBSLHW.js → chunk-KRCX3ZBA.js} +1 -1
- package/dist/bundle/chunks/chunk-KTSJYIYC.js +30 -0
- package/dist/bundle/chunks/{chunk-K7SDY3VJ.js → chunk-LB4CIS4F.js} +40 -165
- package/dist/bundle/chunks/{chunk-NN53K2QQ.js → chunk-LYZ37DJP.js} +2 -14
- package/dist/bundle/chunks/chunk-MD7K7RPN.js +20 -0
- package/dist/bundle/chunks/chunk-MX4Q4W6H.js +214 -0
- package/dist/bundle/chunks/{chunk-6PD3T2EF.js → chunk-N2SNMUD3.js} +1 -1
- package/dist/bundle/chunks/chunk-NXA6NEHE.js +54 -0
- package/dist/bundle/chunks/chunk-OB332KMV.js +300 -0
- package/dist/bundle/chunks/chunk-P6AXBESH.js +1883 -0
- package/dist/bundle/chunks/chunk-PPBDDQHP.js +11 -0
- package/dist/bundle/chunks/chunk-PWUDFU5V.js +51 -0
- package/dist/bundle/chunks/chunk-Q5RKNQ2T.js +73 -0
- package/dist/bundle/chunks/chunk-QT6ZHDMP.js +12 -0
- package/dist/bundle/chunks/chunk-R5OOX7RW.js +16 -0
- package/dist/bundle/chunks/chunk-R6YQR7TZ.js +25 -0
- package/dist/bundle/chunks/{chunk-4ZBGTJJM.js → chunk-RNBZBCH2.js} +1 -1
- package/dist/bundle/chunks/chunk-RQU722SY.js +1 -0
- package/dist/bundle/chunks/{chunk-RGUZULEE.js → chunk-RS6PZK35.js} +71 -72
- package/dist/bundle/chunks/{jiti-loader-6P33XTLC.js → chunk-RW7GT7L3.js} +1 -1
- package/dist/bundle/chunks/{chunk-PCTLFSQG.js → chunk-SCINMV4X.js} +1 -1
- package/dist/bundle/chunks/{chunk-NCC2FAJN.js → chunk-SSRCVJZK.js} +28 -28
- package/dist/bundle/chunks/chunk-T5A6T24H.js +93 -0
- package/dist/bundle/chunks/chunk-T7BXP46S.js +3367 -0
- package/dist/bundle/chunks/chunk-TGDPZCSW.js +9 -0
- package/dist/bundle/chunks/{chunk-4J6BGNX2.js → chunk-TWAHPPXN.js} +434 -429
- package/dist/bundle/chunks/chunk-UEW6TUSP.js +36 -0
- package/dist/bundle/chunks/chunk-UZNIPOGS.js +323 -0
- package/dist/bundle/chunks/{chunk-KM4GQ2BU.js → chunk-VFLVWPLZ.js} +5 -6
- package/dist/bundle/chunks/chunk-WAPZN4KP.js +74 -0
- package/dist/bundle/chunks/chunk-WCFHG6NO.js +16 -0
- package/dist/bundle/chunks/chunk-WQ7EJQIT.js +839 -0
- package/dist/bundle/chunks/chunk-WQOOJP7U.js +4 -0
- package/dist/bundle/chunks/chunk-XHDVDJM7.js +17 -0
- package/dist/bundle/chunks/chunk-YPZPCHNV.js +3 -0
- package/dist/bundle/chunks/chunk-Z5YLKK3S.js +41 -0
- package/dist/bundle/chunks/chunk-ZJUU6WOV.js +2052 -0
- package/dist/bundle/chunks/{cli-N7KOVPLB.js → cli-H4LJNE2V.js} +2 -2
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-KRMHG2L3.js → cloudflare-workers-ai-system-one-T5R2RVFQ.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +2 -0
- package/dist/bundle/chunks/compat-ZK2DIW3P.js +15 -0
- package/dist/bundle/chunks/dist-EY7YKQHB.js +11 -0
- package/dist/bundle/chunks/dist-FMWWM4H7.js +268 -0
- package/dist/bundle/chunks/dist-NHQTBDHT.js +1107 -0
- package/dist/bundle/chunks/{easter-egg-3d-O2GG2XIG.js → easter-egg-3d-BUEOC3NO.js} +1 -1
- package/dist/bundle/chunks/entry-A2CSLKHC.js +323 -0
- package/dist/bundle/chunks/entry-AL54ZGYO.js +2 -0
- package/dist/bundle/chunks/{execute-LMBACTKA.js → execute-MY5JSEPV.js} +18 -15
- package/dist/bundle/chunks/{extract-CXXLVFC5.js → extract-PTGACPGP.js} +3 -3
- package/dist/bundle/chunks/flow-implementer-APJFY4YI.js +21 -0
- package/dist/bundle/chunks/github-copilot.js +66 -62
- package/dist/bundle/chunks/{google-generative-ai-SBL77OXO.js → google-generative-ai-UL7YEQ6J.js} +2 -3
- package/dist/bundle/chunks/{google-vertex-NZBNNXMK.js → google-vertex-OTMSPUYH.js} +3 -3
- package/dist/bundle/chunks/host-75YAHLDR.js +3 -0
- package/dist/bundle/chunks/index.bundle-THL4EUSU.js +390 -0
- package/dist/bundle/chunks/inprocess-5NP5VJHZ.js +32 -0
- package/dist/bundle/chunks/interactive-mode-IW4PIVAQ.js +5 -0
- package/dist/bundle/chunks/jiti-bun-loader-VSLLRCSD.js +3459 -0
- package/dist/bundle/chunks/jiti-loader-TMJL6S2D.js +2 -0
- package/dist/bundle/chunks/{llama-cpp-classify-PP63BYDF.js → llama-cpp-classify-GJAXULWL.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-DX4YKJSO.js → mistral-conversations-E72Y6OC3.js} +2 -2
- package/dist/bundle/chunks/{node-UGQUSQE6.js → node-ZFIIS5IM.js} +32 -32
- package/dist/bundle/chunks/openai-codex-responses-S7CMCAOY.js +101 -0
- package/dist/bundle/chunks/openai-completions-2Z57N7PC.js +87 -0
- package/dist/bundle/chunks/{openai-decisions-ALJROWBE.js → openai-decisions-JIOJDB4C.js} +1 -1
- package/dist/bundle/chunks/openai-responses-5VBZSTHL.js +27 -0
- package/dist/bundle/chunks/{openrouter-images-FCJT7C7I.js → openrouter-images-S6O7DBEJ.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-NHTQQOPW.js → pi-messages-SMLN5J2W.js} +10 -7
- package/dist/bundle/chunks/runtime-OYTWXIUM.js +2 -0
- package/dist/bundle/chunks/session-picker-DM6S37IF.js +4 -0
- package/dist/bundle/chunks/startup-ui-4GGLWNSU.js +3 -0
- package/dist/bundle/chunks/trace-command-YLDYCL55.js +254 -0
- package/dist/bundle/chunks/typesafe-system-one-7BEL3H5N.js +3 -0
- package/dist/bundle/chunks/virtual-modules-TI3W24YL.js +28 -0
- package/dist/bundle/cli-runtime.js +5 -3
- package/dist/bundle/flow/agents/orch-implementation-fast.md +4 -4
- package/dist/bundle/flow/agents/orch-implementation-strong.md +5 -5
- package/dist/bundle/flow/package.json +35 -3
- package/dist/bundle/index.js +20 -17
- package/dist/bundle/orchestrate/README.md +37 -0
- package/dist/bundle/{flow → orchestrate}/agents/orch-qa-agent.md +1 -1
- package/dist/bundle/{flow → orchestrate}/agents/orch-worker.md +1 -1
- package/dist/bundle/{flow → orchestrate}/agents/orchestrator-lead.md +1 -1
- package/dist/bundle/orchestrate/package.json +29 -0
- package/dist/bundle/rpc-entry.js +5 -3
- package/dist/cli/args.d.ts +6 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +69 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/auth-check.d.ts +3 -2
- package/dist/cli/auth-check.d.ts.map +1 -1
- package/dist/cli/auth-check.js +4 -3
- package/dist/cli/auth-check.js.map +1 -1
- package/dist/cli/config-selector.d.ts.map +1 -1
- package/dist/cli/config-selector.js +3 -1
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/file-processor.d.ts +2 -0
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js +6 -6
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/cli/metadata-disclosure.d.ts +4 -0
- package/dist/cli/metadata-disclosure.d.ts.map +1 -0
- package/dist/cli/metadata-disclosure.js +23 -0
- package/dist/cli/metadata-disclosure.js.map +1 -0
- package/dist/cli/project-trust.d.ts.map +1 -1
- package/dist/cli/project-trust.js +4 -1
- package/dist/cli/project-trust.js.map +1 -1
- package/dist/cli/session-picker.lazy.d.ts +3 -0
- package/dist/cli/session-picker.lazy.d.ts.map +1 -0
- package/dist/cli/session-picker.lazy.js +3 -0
- package/dist/cli/session-picker.lazy.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +4 -4
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +38 -14
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/cli/startup-ui.lazy.d.ts +3 -0
- package/dist/cli/startup-ui.lazy.d.ts.map +1 -0
- package/dist/cli/startup-ui.lazy.js +3 -0
- package/dist/cli/startup-ui.lazy.js.map +1 -0
- package/dist/cli/trace-command.lazy.d.ts +3 -0
- package/dist/cli/trace-command.lazy.d.ts.map +1 -0
- package/dist/cli/trace-command.lazy.js +3 -0
- package/dist/cli/trace-command.lazy.js.map +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/coordination/broker/entry.lazy.d.ts +3 -0
- package/dist/coordination/broker/entry.lazy.d.ts.map +1 -0
- package/dist/coordination/broker/entry.lazy.js +3 -0
- package/dist/coordination/broker/entry.lazy.js.map +1 -0
- package/dist/core/acceptance-command.d.ts +15 -0
- package/dist/core/acceptance-command.d.ts.map +1 -0
- package/dist/core/acceptance-command.js +150 -0
- package/dist/core/acceptance-command.js.map +1 -0
- package/dist/core/acceptance-ledger.d.ts +52 -0
- package/dist/core/acceptance-ledger.d.ts.map +1 -0
- package/dist/core/acceptance-ledger.js +341 -0
- package/dist/core/acceptance-ledger.js.map +1 -0
- package/dist/core/admission-types.d.ts +69 -0
- package/dist/core/admission-types.js +2 -0
- package/dist/core/admission-types.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +7 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +43 -9
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +8 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +13 -1
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +127 -10
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +1390 -145
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/anthropic-subscription-usage.d.ts +1 -1
- package/dist/core/anthropic-subscription-usage.d.ts.map +1 -1
- package/dist/core/anthropic-subscription-usage.js +31 -3
- package/dist/core/anthropic-subscription-usage.js.map +1 -1
- package/dist/core/auth-storage.d.ts +2 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +13 -10
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/auto-session-namer.d.ts.map +1 -1
- package/dist/core/auto-session-namer.js +3 -1
- package/dist/core/auto-session-namer.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +3 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/bug-report-redaction.d.ts +4 -0
- package/dist/core/bug-report-redaction.d.ts.map +1 -0
- package/dist/core/bug-report-redaction.js +209 -0
- package/dist/core/bug-report-redaction.js.map +1 -0
- package/dist/core/bug-report.d.ts +26 -6
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/bug-report.js +82 -9
- package/dist/core/bug-report.js.map +1 -1
- package/dist/core/cache-warmer.d.ts.map +1 -1
- package/dist/core/cache-warmer.js +5 -0
- package/dist/core/cache-warmer.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +6 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +103 -71
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +2 -1
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/extensions/jiti-bun-babel.d.ts +4 -0
- package/dist/core/extensions/jiti-bun-babel.d.ts.map +1 -0
- package/dist/core/extensions/jiti-bun-babel.js +4 -0
- package/dist/core/extensions/jiti-bun-babel.js.map +1 -0
- package/dist/core/extensions/jiti-bun-loader.d.ts +4 -0
- package/dist/core/extensions/jiti-bun-loader.d.ts.map +1 -0
- package/dist/core/extensions/jiti-bun-loader.js +13 -0
- package/dist/core/extensions/jiti-bun-loader.js.map +1 -0
- package/dist/core/extensions/jiti-bun-loader.lazy.d.ts +3 -0
- package/dist/core/extensions/jiti-bun-loader.lazy.d.ts.map +1 -0
- package/dist/core/extensions/jiti-bun-loader.lazy.js +3 -0
- package/dist/core/extensions/jiti-bun-loader.lazy.js.map +1 -0
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +9 -3
- 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 +4 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +3 -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 +25 -0
- package/dist/core/flow-implementer.d.ts.map +1 -0
- package/dist/core/flow-implementer.js +301 -0
- package/dist/core/flow-implementer.js.map +1 -0
- package/dist/core/internal-process.d.ts +23 -0
- package/dist/core/internal-process.d.ts.map +1 -0
- package/dist/core/internal-process.js +88 -0
- package/dist/core/internal-process.js.map +1 -0
- package/dist/core/keybindings.d.ts +2 -2
- package/dist/core/keybindings.js +1 -1
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config.d.ts +52 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +4 -4
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +4 -0
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +8 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-request-admission.d.ts +51 -0
- package/dist/core/model-request-admission.d.ts.map +1 -0
- package/dist/core/model-request-admission.js +103 -0
- package/dist/core/model-request-admission.js.map +1 -0
- package/dist/core/model-resolver.d.ts +4 -0
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +109 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +56 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +482 -40
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/model-selection-intent.d.ts +14 -0
- package/dist/core/model-selection-intent.d.ts.map +1 -0
- package/dist/core/model-selection-intent.js +15 -0
- package/dist/core/model-selection-intent.js.map +1 -0
- package/dist/core/oauth-account-pool.d.ts +4 -1
- package/dist/core/oauth-account-pool.d.ts.map +1 -1
- package/dist/core/oauth-account-pool.js +251 -228
- package/dist/core/oauth-account-pool.js.map +1 -1
- package/dist/core/os-secret-store.d.ts +25 -0
- package/dist/core/os-secret-store.d.ts.map +1 -0
- package/dist/core/os-secret-store.js +290 -0
- package/dist/core/os-secret-store.js.map +1 -0
- package/dist/core/output-guard.d.ts.map +1 -1
- package/dist/core/output-guard.js +62 -2
- package/dist/core/output-guard.js.map +1 -1
- package/dist/core/pi-ai-schemas.d.ts +4 -0
- package/dist/core/pi-ai-schemas.d.ts.map +1 -1
- package/dist/core/private-windows-path.d.ts +4 -0
- package/dist/core/private-windows-path.d.ts.map +1 -0
- package/dist/core/private-windows-path.js +44 -0
- package/dist/core/private-windows-path.js.map +1 -0
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +18 -2
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +1 -1
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +6 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/run-outcome.d.ts +40 -0
- package/dist/core/run-outcome.d.ts.map +1 -0
- package/dist/core/run-outcome.js +91 -0
- package/dist/core/run-outcome.js.map +1 -0
- package/dist/core/run-preflight.d.ts +5 -0
- package/dist/core/run-preflight.d.ts.map +1 -0
- package/dist/core/run-preflight.js +96 -0
- package/dist/core/run-preflight.js.map +1 -0
- package/dist/core/runtime-credentials.d.ts +18 -2
- package/dist/core/runtime-credentials.d.ts.map +1 -1
- package/dist/core/runtime-credentials.js +65 -9
- package/dist/core/runtime-credentials.js.map +1 -1
- package/dist/core/sdk.d.ts +19 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +115 -20
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +2 -1
- package/dist/core/settings-defaults.d.ts.map +1 -1
- package/dist/core/settings-defaults.js +2 -1
- package/dist/core/settings-defaults.js.map +1 -1
- package/dist/core/settings-manager.d.ts +15 -4
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +114 -22
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +7 -2
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +12 -5
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +11 -0
- package/dist/core/skills.js.map +1 -1
- package/dist/core/system-prompt.d.ts +3 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +10 -2
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash-jobs.d.ts +109 -0
- package/dist/core/tools/bash-jobs.d.ts.map +1 -0
- package/dist/core/tools/bash-jobs.js +563 -0
- package/dist/core/tools/bash-jobs.js.map +1 -0
- package/dist/core/tools/bash.d.ts +68 -6
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +350 -37
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +11 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +89 -20
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +15 -7
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/file-mutation-custody.d.ts +29 -0
- package/dist/core/tools/file-mutation-custody.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-custody.js +173 -0
- package/dist/core/tools/file-mutation-custody.js.map +1 -0
- package/dist/core/tools/find.d.ts +6 -0
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +84 -38
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts +8 -2
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +121 -77
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/index.d.ts +3 -1
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +12 -0
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/jobs.d.ts +24 -0
- package/dist/core/tools/jobs.d.ts.map +1 -0
- package/dist/core/tools/jobs.js +86 -0
- package/dist/core/tools/jobs.js.map +1 -0
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +2 -1
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts +12 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +88 -8
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/output-cleanup.d.ts +40 -0
- package/dist/core/tools/output-cleanup.d.ts.map +1 -0
- package/dist/core/tools/output-cleanup.js +273 -0
- package/dist/core/tools/output-cleanup.js.map +1 -0
- package/dist/core/tools/powershell.d.ts.map +1 -1
- package/dist/core/tools/powershell.js +15 -2
- package/dist/core/tools/powershell.js.map +1 -1
- package/dist/core/tools/read.d.ts +21 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +162 -29
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +3 -1
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/renderers/index.d.ts.map +1 -1
- package/dist/core/tools/renderers/index.js +1 -0
- package/dist/core/tools/renderers/index.js.map +1 -1
- package/dist/core/tools/subagent.d.ts +5 -1
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +76 -19
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +4 -0
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +24 -1
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +6 -1
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trace/config.js +3 -3
- package/dist/core/trace/config.js.map +1 -1
- package/dist/core/trace/redaction.d.ts.map +1 -1
- package/dist/core/trace/redaction.js +12 -9
- package/dist/core/trace/redaction.js.map +1 -1
- package/dist/core/trace-client/credential-store.d.ts +1 -1
- package/dist/core/trace-client/credential-store.d.ts.map +1 -1
- package/dist/core/trace-client/credential-store.js +20 -3
- package/dist/core/trace-client/credential-store.js.map +1 -1
- package/dist/core/usage-ledger.d.ts +35 -0
- package/dist/core/usage-ledger.d.ts.map +1 -0
- package/dist/core/usage-ledger.js +140 -0
- package/dist/core/usage-ledger.js.map +1 -0
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +24 -15
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/index.d.ts +4 -2
- package/dist/extensions/codemode/index.d.ts.map +1 -1
- package/dist/extensions/codemode/index.js +8 -4
- package/dist/extensions/codemode/index.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +4 -2
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +34 -12
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/client.d.ts +2 -0
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +23 -2
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/ui.d.ts.map +1 -1
- package/dist/extensions/llama/ui.js +15 -3
- package/dist/extensions/llama/ui.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +3 -2
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +18 -6
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/extensions/usage/hcode-overview.d.ts +23 -0
- package/dist/extensions/usage/hcode-overview.d.ts.map +1 -0
- package/dist/extensions/usage/hcode-overview.js +109 -0
- package/dist/extensions/usage/hcode-overview.js.map +1 -0
- package/dist/extensions/usage/index.d.ts +5 -0
- package/dist/extensions/usage/index.d.ts.map +1 -1
- package/dist/extensions/usage/index.js +194 -12
- package/dist/extensions/usage/index.js.map +1 -1
- package/dist/extensions/usage/overview.d.ts +5 -0
- package/dist/extensions/usage/overview.d.ts.map +1 -1
- package/dist/extensions/usage/overview.js +21 -1
- package/dist/extensions/usage/overview.js.map +1 -1
- package/dist/extensions/usage/popup.d.ts +14 -3
- package/dist/extensions/usage/popup.d.ts.map +1 -1
- package/dist/extensions/usage/popup.js +199 -25
- package/dist/extensions/usage/popup.js.map +1 -1
- package/dist/humain/adaptive-execution.d.ts +51 -0
- package/dist/humain/adaptive-execution.d.ts.map +1 -0
- package/dist/humain/adaptive-execution.js +100 -0
- package/dist/humain/adaptive-execution.js.map +1 -0
- package/dist/humain/adaptive-peer-process.d.ts +44 -0
- package/dist/humain/adaptive-peer-process.d.ts.map +1 -0
- package/dist/humain/adaptive-peer-process.js +159 -0
- package/dist/humain/adaptive-peer-process.js.map +1 -0
- package/dist/humain/adaptive-peer-worker.d.ts +3 -0
- package/dist/humain/adaptive-peer-worker.d.ts.map +1 -0
- package/dist/humain/adaptive-peer-worker.js +122 -0
- package/dist/humain/adaptive-peer-worker.js.map +1 -0
- package/dist/humain/adaptive-runtime-types.d.ts +621 -0
- package/dist/humain/adaptive-runtime-types.d.ts.map +1 -0
- package/dist/humain/adaptive-runtime-types.js +3 -0
- package/dist/humain/adaptive-runtime-types.js.map +1 -0
- package/dist/humain/adaptive-session-host.d.ts +113 -0
- package/dist/humain/adaptive-session-host.d.ts.map +1 -0
- package/dist/humain/adaptive-session-host.js +1838 -0
- package/dist/humain/adaptive-session-host.js.map +1 -0
- package/dist/humain/adhd/index.d.ts +2 -2
- package/dist/humain/adhd/index.d.ts.map +1 -1
- package/dist/humain/adhd/index.js +22 -13
- package/dist/humain/adhd/index.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +162 -49
- package/dist/humain/caveman/index.d.ts +1 -1
- package/dist/humain/caveman/index.d.ts.map +1 -1
- package/dist/humain/caveman/index.js +21 -12
- package/dist/humain/caveman/index.js.map +1 -1
- package/dist/humain/classify-tool.d.ts +4 -0
- package/dist/humain/classify-tool.d.ts.map +1 -0
- package/dist/humain/classify-tool.js +50 -0
- package/dist/humain/classify-tool.js.map +1 -0
- package/dist/humain/flow-command.d.ts +1 -1
- package/dist/humain/flow-command.d.ts.map +1 -1
- package/dist/humain/flow-command.js +21 -3
- package/dist/humain/flow-command.js.map +1 -1
- package/dist/humain/flow-loader.d.ts +15 -10
- package/dist/humain/flow-loader.d.ts.map +1 -1
- package/dist/humain/flow-loader.js +72 -18
- package/dist/humain/flow-loader.js.map +1 -1
- package/dist/humain/fuse-provider.d.ts +5 -0
- package/dist/humain/fuse-provider.d.ts.map +1 -0
- package/dist/humain/fuse-provider.js +302 -0
- package/dist/humain/fuse-provider.js.map +1 -0
- package/dist/humain/gateway/provider.d.ts.map +1 -1
- package/dist/humain/gateway/provider.js +2 -0
- package/dist/humain/gateway/provider.js.map +1 -1
- package/dist/humain/gateway/secret-store.d.ts +3 -7
- package/dist/humain/gateway/secret-store.d.ts.map +1 -1
- package/dist/humain/gateway/secret-store.js +21 -249
- package/dist/humain/gateway/secret-store.js.map +1 -1
- package/dist/humain/hcode/account-store.d.ts +92 -0
- package/dist/humain/hcode/account-store.d.ts.map +1 -0
- package/dist/humain/hcode/account-store.js +720 -0
- package/dist/humain/hcode/account-store.js.map +1 -0
- package/dist/humain/hcode/account.d.ts +42 -0
- package/dist/humain/hcode/account.d.ts.map +1 -0
- package/dist/humain/hcode/account.js +552 -0
- package/dist/humain/hcode/account.js.map +1 -0
- package/dist/humain/hcode/catalog.d.ts +6 -0
- package/dist/humain/hcode/catalog.d.ts.map +1 -0
- package/dist/humain/hcode/catalog.js +47 -0
- package/dist/humain/hcode/catalog.js.map +1 -0
- package/dist/humain/hcode/contracts.d.ts +389 -0
- package/dist/humain/hcode/contracts.d.ts.map +1 -0
- package/dist/humain/hcode/contracts.js +1243 -0
- package/dist/humain/hcode/contracts.js.map +1 -0
- package/dist/humain/hcode/environment.d.ts +9 -0
- package/dist/humain/hcode/environment.d.ts.map +1 -0
- package/dist/humain/hcode/environment.js +24 -0
- package/dist/humain/hcode/environment.js.map +1 -0
- package/dist/humain/hcode/facade.d.ts +54 -0
- package/dist/humain/hcode/facade.d.ts.map +1 -0
- package/dist/humain/hcode/facade.js +326 -0
- package/dist/humain/hcode/facade.js.map +1 -0
- package/dist/humain/hcode/http.d.ts +10 -0
- package/dist/humain/hcode/http.d.ts.map +1 -0
- package/dist/humain/hcode/http.js +119 -0
- package/dist/humain/hcode/http.js.map +1 -0
- package/dist/humain/hcode/notices.d.ts +15 -0
- package/dist/humain/hcode/notices.d.ts.map +1 -0
- package/dist/humain/hcode/notices.js +69 -0
- package/dist/humain/hcode/notices.js.map +1 -0
- package/dist/humain/hcode/ports.d.ts +34 -0
- package/dist/humain/hcode/ports.d.ts.map +1 -0
- package/dist/humain/hcode/ports.js +2 -0
- package/dist/humain/hcode/ports.js.map +1 -0
- package/dist/humain/hcode/provider.d.ts +15 -0
- package/dist/humain/hcode/provider.d.ts.map +1 -0
- package/dist/humain/hcode/provider.js +200 -0
- package/dist/humain/hcode/provider.js.map +1 -0
- package/dist/humain/hcode/selection.d.ts +16 -0
- package/dist/humain/hcode/selection.d.ts.map +1 -0
- package/dist/humain/hcode/selection.js +37 -0
- package/dist/humain/hcode/selection.js.map +1 -0
- package/dist/humain/hcode/transport.d.ts +22 -0
- package/dist/humain/hcode/transport.d.ts.map +1 -0
- package/dist/humain/hcode/transport.js +368 -0
- package/dist/humain/hcode/transport.js.map +1 -0
- package/dist/humain/hcode/usage.d.ts +5 -0
- package/dist/humain/hcode/usage.d.ts.map +1 -0
- package/dist/humain/hcode/usage.js +66 -0
- package/dist/humain/hcode/usage.js.map +1 -0
- package/dist/humain/hcode/wire.d.ts +16 -0
- package/dist/humain/hcode/wire.d.ts.map +1 -0
- package/dist/humain/hcode/wire.js +104 -0
- package/dist/humain/hcode/wire.js.map +1 -0
- package/dist/humain/index.d.ts +1 -3
- package/dist/humain/index.d.ts.map +1 -1
- package/dist/humain/index.js +8 -60
- package/dist/humain/index.js.map +1 -1
- package/dist/humain/login-menu.d.ts.map +1 -1
- package/dist/humain/login-menu.js +8 -1
- package/dist/humain/login-menu.js.map +1 -1
- package/dist/humain/metadata/contracts.d.ts +82 -0
- package/dist/humain/metadata/contracts.d.ts.map +1 -0
- package/dist/humain/metadata/contracts.js +214 -0
- package/dist/humain/metadata/contracts.js.map +1 -0
- package/dist/humain/metadata/identity.d.ts +10 -0
- package/dist/humain/metadata/identity.d.ts.map +1 -0
- package/dist/humain/metadata/identity.js +209 -0
- package/dist/humain/metadata/identity.js.map +1 -0
- package/dist/humain/metadata/index.d.ts +41 -0
- package/dist/humain/metadata/index.d.ts.map +1 -0
- package/dist/humain/metadata/index.js +100 -0
- package/dist/humain/metadata/index.js.map +1 -0
- package/dist/humain/metadata/sender.d.ts +20 -0
- package/dist/humain/metadata/sender.d.ts.map +1 -0
- package/dist/humain/metadata/sender.js +302 -0
- package/dist/humain/metadata/sender.js.map +1 -0
- package/dist/humain/metadata/version.d.ts +8 -0
- package/dist/humain/metadata/version.d.ts.map +1 -0
- package/dist/humain/metadata/version.js +38 -0
- package/dist/humain/metadata/version.js.map +1 -0
- package/dist/humain/node-http.d.ts +2 -0
- package/dist/humain/node-http.d.ts.map +1 -1
- package/dist/humain/node-http.js +9 -4
- package/dist/humain/node-http.js.map +1 -1
- package/dist/humain/node-provider.d.ts +2 -0
- package/dist/humain/node-provider.d.ts.map +1 -1
- package/dist/humain/node-provider.js +39 -8
- package/dist/humain/node-provider.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.d.ts +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js +4 -4
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js +7 -0
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.js +12 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.js.map +1 -1
- package/dist/humain/systemone.d.ts +23 -0
- package/dist/humain/systemone.d.ts.map +1 -0
- package/dist/humain/systemone.js +101 -0
- package/dist/humain/systemone.js.map +1 -0
- package/dist/humain/trace-capture/flow-producer.d.ts.map +1 -1
- package/dist/humain/trace-capture/flow-producer.js +3 -3
- package/dist/humain/trace-capture/flow-producer.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +292 -183
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/bug-report.d.ts.map +1 -1
- package/dist/modes/interactive/bug-report.js +82 -36
- package/dist/modes/interactive/bug-report.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +8 -5
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/diff.d.ts.map +1 -1
- package/dist/modes/interactive/components/diff.js +11 -5
- package/dist/modes/interactive/components/diff.js.map +1 -1
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-selector.js +9 -1
- package/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/dist/modes/interactive/components/first-time-setup.d.ts +10 -5
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -1
- package/dist/modes/interactive/components/first-time-setup.js +55 -29
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts +16 -2
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +164 -19
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +3 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +19 -2
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +17 -0
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +78 -1
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +19 -10
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +353 -65
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.lazy.d.ts +3 -0
- package/dist/modes/interactive/interactive-mode.lazy.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.lazy.js +3 -0
- package/dist/modes/interactive/interactive-mode.lazy.js.map +1 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts +2 -0
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -1
- package/dist/modes/interactive/model-catalog-refresh.js +12 -0
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -1
- package/dist/modes/interactive/theme/theme-controller.d.ts +2 -3
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme-controller.js +4 -5
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.js +4 -4
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +2 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +8 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/json-event.d.ts +2 -1
- package/dist/modes/json-event.d.ts.map +1 -1
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/print-mode.d.ts +4 -0
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +57 -11
- 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 +68 -16
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/changelog.d.ts +1 -1
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +7 -5
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +3 -1
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/lazy-validator.d.ts +5 -0
- package/dist/utils/lazy-validator.d.ts.map +1 -0
- package/dist/utils/lazy-validator.js +7 -0
- package/dist/utils/lazy-validator.js.map +1 -0
- package/dist/utils/shell.d.ts +3 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +9 -4
- package/dist/utils/shell.js.map +1 -1
- package/docs/cli.md +23 -5
- package/docs/codemode.md +21 -1
- package/docs/development.md +18 -0
- package/docs/docs.json +4 -0
- package/docs/extensions.md +4 -0
- package/docs/flow.md +115 -16
- package/docs/headless-modes.md +61 -0
- package/docs/humain-code-forge-architecture.md +65 -13
- package/docs/humain-code-forge-component-scorecard.md +10 -1
- package/docs/humain-code-forge-flow-walkthrough.md +54 -55
- package/docs/humain-code.md +22 -19
- package/docs/index.md +1 -0
- package/docs/keybindings.md +1 -1
- package/docs/models-configuration.md +6 -1
- package/docs/models.md +1 -1
- package/docs/prompt-templates.md +1 -1
- package/docs/providers.md +67 -15
- package/docs/run-preflight.md +47 -0
- package/docs/sdk.md +39 -1
- package/docs/security.md +1 -1
- package/docs/settings.md +12 -5
- package/docs/skills.md +2 -0
- package/docs/slash-commands.md +5 -3
- package/docs/usage.md +29 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +4 -4
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/tsconfig.json +13 -0
- package/npm-shrinkwrap.json +67 -67
- package/package.json +25 -19
- package/schemas/models.schema.json +30 -0
- package/schemas/settings.schema.json +28 -9
- package/src/humain/caveman/UPSTREAM.md +19 -3
- package/src/humain/caveman/upstream.json +2 -2
- package/src/humain/ponytail/UPSTREAM.md +16 -1
- package/src/humain/web-access/UPSTREAM.md +10 -0
- package/src/humain/web-access/upstream.json +1 -0
- package/dist/bundle/chunks/anthropic-messages-MNISFDZA.js +0 -66
- package/dist/bundle/chunks/chunk-2HZ2V3HS.js +0 -1985
- package/dist/bundle/chunks/chunk-2PZ46FSM.js +0 -6
- package/dist/bundle/chunks/chunk-4SQUP6IR.js +0 -88
- package/dist/bundle/chunks/chunk-5JSLXC2A.js +0 -3
- package/dist/bundle/chunks/chunk-75CQYZ63.js +0 -1336
- package/dist/bundle/chunks/chunk-DCPACGLH.js +0 -12267
- package/dist/bundle/chunks/chunk-FLVBQ6GS.js +0 -24
- package/dist/bundle/chunks/chunk-H7Y4QY7K.js +0 -11
- package/dist/bundle/chunks/chunk-JEAM6N22.js +0 -139
- package/dist/bundle/chunks/chunk-PS2FJ7M4.js +0 -23
- package/dist/bundle/chunks/chunk-TEOMXMW6.js +0 -23
- package/dist/bundle/chunks/chunk-WEFEQEIQ.js +0 -28
- package/dist/bundle/chunks/chunk-WW4SILXG.js +0 -249
- package/dist/bundle/chunks/compat-MXAZPYDN.js +0 -13
- package/dist/bundle/chunks/dist-3V7ZSLER.js +0 -3166
- package/dist/bundle/chunks/dist-66CW64M2.js +0 -8
- package/dist/bundle/chunks/host-SCZ4IKWR.js +0 -2
- package/dist/bundle/chunks/openai-codex-responses-LZWBQYVP.js +0 -101
- package/dist/bundle/chunks/openai-completions-7NWH423P.js +0 -82
- package/dist/bundle/chunks/openai-responses-5YOLHMCF.js +0 -27
- package/dist/bundle/chunks/runtime-UVPDE4CX.js +0 -2
- package/dist/bundle/chunks/typesafe-system-one-BHJYAZ6E.js +0 -3
- package/dist/bundle/chunks/virtual-modules-YQPK57CW.js +0 -23
- package/dist/humain/legacy-workflow-tiers.d.ts +0 -3
- package/dist/humain/legacy-workflow-tiers.d.ts.map +0 -1
- package/dist/humain/legacy-workflow-tiers.js +0 -46
- package/dist/humain/legacy-workflow-tiers.js.map +0 -1
- /package/dist/bundle/{flow → orchestrate}/agents/orch-architect.md +0 -0
- /package/dist/bundle/{flow → orchestrate}/agents/orch-scout.md +0 -0
- /package/dist/bundle/{flow → orchestrate}/agents/orch-security-review.md +0 -0
- /package/dist/bundle/{flow → orchestrate}/agents/orch-technical-lead.md +0 -0
- /package/dist/bundle/{flow → orchestrate}/agents/orch-technical-review.md +0 -0
|
@@ -44,7 +44,7 @@ CLI/env/settings
|
|
|
44
44
|
| --- | --- |
|
|
45
45
|
| `packages/coding-agent/src/main.ts` | CLI startup, cwd resolution, app mode selection, runtime factory construction, HUMAIN extension injection. |
|
|
46
46
|
| `packages/coding-agent/src/core` | Settings, auth storage, model registry, resource loading, extension runtime, sessions, tools, request auth assembly. |
|
|
47
|
-
| `packages/coding-agent/src/humain` | HUMAIN
|
|
47
|
+
| `packages/coding-agent/src/humain` | HUMAIN themes, native account lifecycle, independent providers and DeployNow descriptors. |
|
|
48
48
|
| `packages/agent` | Model-neutral turn loop, message state, tool orchestration, harness contracts. |
|
|
49
49
|
| `packages/ai` | Provider metadata, auth helpers, request transports, Bedrock endpoint/region/credential behavior, OpenAI/Anthropic APIs. |
|
|
50
50
|
| `packages/tui` | Interactive rendering, input, status, selectors, layout, and theme application. |
|
|
@@ -135,44 +135,34 @@ Key source handles:
|
|
|
135
135
|
|
|
136
136
|
## Flow 3: HUMAIN Extension And Provider Registration
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
The bundled extension registers independent providers; ModelRuntime separately installs one reserved native owner:
|
|
139
139
|
|
|
140
140
|
```text
|
|
141
|
+
ModelRuntime.create()
|
|
142
|
+
-> dormant humain-code-account facade/provider, no native startup discovery
|
|
143
|
+
|
|
141
144
|
getHumainBundledExtensionFactories(env)
|
|
142
145
|
-> createHumainProviderExtensionFactory(env)
|
|
143
|
-
-> register
|
|
144
|
-
-> register
|
|
145
|
-
-> register DeployNow binding providers
|
|
146
|
-
->
|
|
147
|
-
-> on session_start set the HUMAIN theme at startup
|
|
148
|
-
-> remove only exact untouched legacy generated tier files
|
|
146
|
+
-> register Local if configured
|
|
147
|
+
-> register HUMAIN Node, HUMAIN Gateway, HUMAIN Fuse
|
|
148
|
+
-> register DeployNow binding providers when descriptors are complete
|
|
149
|
+
-> set the HUMAIN theme at startup
|
|
149
150
|
```
|
|
150
151
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
- DeployNow descriptor sentinels such as `deploynow-proxy` and legacy `deploynow-broker`
|
|
155
|
-
- `FORGE_RUNTIME_MODEL_PROVIDER` and `FORGE_RUNTIME_MODEL_ID`
|
|
156
|
-
- the always-visible `HUMAIN SSO` login entry, whose credential operations reject with
|
|
157
|
-
`HUMAIN SSO is not supported yet.`
|
|
158
|
-
- conservative cleanup of the exact historical generated mapping at
|
|
159
|
-
`~/.pi/workflows/model-tiers.json` and `~/.humain-terminal/workflows/model-tiers.json`
|
|
152
|
+
Unsupported `humain-sso`, legacy env/API-key `humain-code`, fabricated defaults and startup tier cleanup are removed.
|
|
153
|
+
Old endpoint/OIDC inputs do not enable native login. No old-ID translation, credential migration or unsupported
|
|
154
|
+
revocation occurs. Historical, custom and malformed user tier files and inert credentials remain untouched.
|
|
160
155
|
|
|
161
|
-
The extension
|
|
162
|
-
|
|
163
|
-
Legacy OIDC configuration does not enable login, token exchange, credentials, models, or a model API endpoint.
|
|
164
|
-
The extension does not detect Forge from directory names or repository shape. Explicit Forge startup cwd support
|
|
165
|
-
is owned by the `main.ts` precedence described in Flow 1.
|
|
156
|
+
The extension does not register `/hc` or `/humaincode`, generate tiers/profiles, inject Forge prompt text, or set
|
|
157
|
+
product footer status. The executable `hc` alias and explicit Forge cwd precedence remain.
|
|
166
158
|
|
|
167
159
|
Key source handles:
|
|
168
160
|
|
|
169
|
-
- [`src/humain/index.ts`](../src/humain/index.ts) -
|
|
170
|
-
|
|
171
|
-
- [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) - retained providers
|
|
172
|
-
|
|
173
|
-
- [`test/
|
|
174
|
-
customized-file preservation.
|
|
175
|
-
- [`test/humain-sso.test.ts`](../test/humain-sso.test.ts) - always-visible unsupported SSO behavior.
|
|
161
|
+
- [`src/humain/index.ts`](../src/humain/index.ts) - independent providers, DeployNow and theme startup.
|
|
162
|
+
- [`src/core/model-runtime.ts`](../src/core/model-runtime.ts) - reserved native facade ownership.
|
|
163
|
+
- [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) - retained providers and removal.
|
|
164
|
+
- [`test/legacy-workflow-tiers.test.ts`](../test/legacy-workflow-tiers.test.ts) - byte-for-byte tier-file preservation.
|
|
165
|
+
- [`test/humain-sso.test.ts`](../test/humain-sso.test.ts) - no unsupported SSO registration.
|
|
176
166
|
|
|
177
167
|
## Flow 4: DeployNow Runtime Model Binding
|
|
178
168
|
|
|
@@ -220,35 +210,44 @@ Key source handles:
|
|
|
220
210
|
Bedrock/OpenAI/Anthropic binding coverage.
|
|
221
211
|
- [`test/model-registry.test.ts`](../test/model-registry.test.ts#L1252) - provider-scoped request env coverage.
|
|
222
212
|
|
|
223
|
-
## Flow 5:
|
|
213
|
+
## Flow 5: Native HUMAIN Code Account
|
|
224
214
|
|
|
225
|
-
|
|
226
|
-
|
|
215
|
+
`--env dev|staging|production` resolves before owner construction; dev remains default. Origins are fixed to
|
|
216
|
+
`https://code.dev.humain.com`, `https://code.stg.humain.com`, and `https://code.humain.com`.
|
|
217
|
+
Independent providers are not redirected.
|
|
227
218
|
|
|
228
219
|
```text
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
220
|
+
/login menu or direct /login humain-code-account
|
|
221
|
+
-> fresh selected-origin GET /api/cli/config
|
|
222
|
+
-> validate complete qualified native profile
|
|
223
|
+
-> show HUMAIN Code [account], before Node / Gateway / Fuse
|
|
224
|
+
-> revalidate on login, then keychain preflight
|
|
225
|
+
-> persistent encrypted account or explicit session-only consent
|
|
226
|
+
-> browser/device flow with validated URI/code and issuer MFA
|
|
227
|
+
-> token-free generic reference or memory-only overlay
|
|
228
|
+
-> provider-only catalog refresh; empty/failure offers Retry/Cancel, never inference
|
|
232
229
|
```
|
|
233
230
|
|
|
234
|
-
|
|
231
|
+
Readiness is presentation only. Failure, malformed config, timeout or offline hides Code; other providers remain
|
|
232
|
+
usable. Live menu updates preserve search/focus/selection; close/reopen/session replacement cancels stale work.
|
|
233
|
+
Startup, restore and unrelated providers do not await native readiness, keychain, account, balance or metadata I/O.
|
|
235
234
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
HUMAIN_TERMINAL_HUMAIN_CODE_MODELS
|
|
240
|
-
```
|
|
235
|
+
Persistent grants use private encrypted `hcode/accounts/<environment>` files and an OS-keychain purpose key.
|
|
236
|
+
Session-only consent precedes grant acquisition; no grant/reference/account identity is serialized to account,
|
|
237
|
+
auth/pool/settings/session JSONL, journal or tombstone storage. Inaccessible saved state is preserved.
|
|
241
238
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
239
|
+
Normal interactive, print, JSON and RPC exits await one device-family revocation within 3,000 ms before clearing
|
|
240
|
+
memory. Unconfirmed revocation goes only to stderr, without a spool/retry. Persistent accounts survive normal exit;
|
|
241
|
+
borrowed runtimes remain host-owned. Crashes rely on qualified short expiry, not guaranteed remote revocation.
|
|
245
242
|
|
|
246
243
|
Key source handles:
|
|
247
244
|
|
|
248
|
-
- [`src/humain/
|
|
249
|
-
|
|
250
|
-
- [`test/
|
|
251
|
-
|
|
245
|
+
- [`src/humain/hcode/facade.ts`](../src/humain/hcode/facade.ts) - readiness, owner wiring and bounded shutdown.
|
|
246
|
+
- [`src/humain/hcode/account.ts`](../src/humain/hcode/account.ts) - one account engine, two storage lifetimes.
|
|
247
|
+
- [`test/hcode-login-menu.test.ts`](../test/hcode-login-menu.test.ts) - actual menu and direct-login races/copy.
|
|
248
|
+
- [`test/hcode-main-finalizers.test.ts`](../test/hcode-main-finalizers.test.ts) and
|
|
249
|
+
[`test/hcode-shutdown.test.ts`](../test/hcode-shutdown.test.ts) - awaited main/mode finalizers.
|
|
250
|
+
- [Native account operator guide](providers.md#humain-code) - exact prompts and activation limits.
|
|
252
251
|
|
|
253
252
|
## Flow 6: Normal Model And Workflow Selection
|
|
254
253
|
|
|
@@ -256,7 +255,7 @@ HUMAIN Code CLI uses the normal coding-agent model flow:
|
|
|
256
255
|
|
|
257
256
|
```text
|
|
258
257
|
user runs /login for a supported provider
|
|
259
|
-
-> AuthStorage persists
|
|
258
|
+
-> AuthStorage persists ordinary credentials; native account grants use their separate lifetime/store
|
|
260
259
|
user runs /model
|
|
261
260
|
-> ModelRegistry lists available registered models
|
|
262
261
|
-> AgentSession.setModel() applies the auth gate
|
|
@@ -351,7 +350,7 @@ These are current pressure points, not all immediate bugs:
|
|
|
351
350
|
|
|
352
351
|
| Pressure point | Why it matters | Current mitigation |
|
|
353
352
|
| --- | --- | --- |
|
|
354
|
-
| The HUMAIN extension owns
|
|
353
|
+
| The HUMAIN extension owns independent providers, DeployNow descriptors and theme startup. | The extension remains a product integration point, so unrelated changes can still churn one file. | Keep generic pieces out of it; split only when a sub-concern grows enough to need its own module. |
|
|
355
354
|
| Startup imports HUMAIN extension factories directly. | This is a product boundary exception inside CLI bootstrap. | Treat it as distribution wiring only; do not use `main.ts` for Forge policy. |
|
|
356
355
|
| Forge cwd selection is explicit. | Incorrect `--cwd` or environment configuration can still select the wrong directory. | Keep the documented precedence and path validation covered by startup tests. |
|
|
357
356
|
| DeployNow descriptors are env-shaped but not real secrets. | It is easy to mistake placeholder credentials for provider credentials. | Docs and tests call them descriptors, and real secrets remain behind supervisor/auth-broker systems. |
|
|
@@ -373,8 +372,8 @@ Current alignment:
|
|
|
373
372
|
- Dynamic workflows retain their own model-selection behavior without HUMAIN-generated routing.
|
|
374
373
|
- The HUMAIN extension does not register routing commands, profiles, prompt injection, generated tiers, or product
|
|
375
374
|
footer status.
|
|
376
|
-
-
|
|
377
|
-
|
|
375
|
+
- Native Code has one reserved facade and explicit readiness/account actions. Retired providers stay absent;
|
|
376
|
+
startup never cleans up user tier files or inert credentials.
|
|
378
377
|
|
|
379
378
|
Current deltas to watch:
|
|
380
379
|
|
|
@@ -391,9 +390,9 @@ Current deltas to watch:
|
|
|
391
390
|
| --- | --- |
|
|
392
391
|
| Startup cwd fallback and `--cwd` handling | [`test/main-startup-cwd.test.ts`](../test/main-startup-cwd.test.ts) |
|
|
393
392
|
| Removed routing commands, generated tiers, and product status | [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) |
|
|
394
|
-
|
|
|
395
|
-
|
|
|
396
|
-
|
|
|
393
|
+
| No startup tier deletion; all user-file bytes preserved | [`test/legacy-workflow-tiers.test.ts`](../test/legacy-workflow-tiers.test.ts) |
|
|
394
|
+
| Unsupported SSO registration absent | [`test/humain-sso.test.ts`](../test/humain-sso.test.ts) |
|
|
395
|
+
| Native Code readiness/account lifetime and no legacy env provider | [`test/hcode-readiness.test.ts`](../test/hcode-readiness.test.ts), [`test/hcode-session-login.test.ts`](../test/hcode-session-login.test.ts), [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) |
|
|
397
396
|
| DeployNow Bedrock/OpenAI/Anthropic binding descriptors | [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) |
|
|
398
397
|
| Explicit provider fail-closed behavior | [`test/humain-forge-extension.test.ts`](../test/humain-forge-extension.test.ts) |
|
|
399
398
|
| Provider-scoped request env | [`test/model-registry.test.ts`](../test/model-registry.test.ts#L1252) |
|
package/docs/humain-code.md
CHANGED
|
@@ -81,6 +81,24 @@ Sending `normal mode` as the whole message disables all three for the session. A
|
|
|
81
81
|
|
|
82
82
|
`/btw <question>` asks a side question about the current session while the agent is busy or idle. A separate call to the session model sees the last 20 transcript messages read-only, has no tools, and streams its answer into a widget above the editor. Nothing is added to the session or the agent's context, and the agent is not interrupted. Steering (Enter while busy) and follow-up (Alt+Enter) still go to the agent. The widget clears on the next message or on `/btw` without a question.
|
|
83
83
|
|
|
84
|
+
## Native HUMAIN Code
|
|
85
|
+
|
|
86
|
+
Provider `humain-code-account` is presented as **HUMAIN Code [account]**. Start with `--env dev|staging|production` (default: dev), then use `/login` → **Sign in with HUMAIN**. The menu orders Code, Node, Gateway, Fuse and hides Code until fresh selected-environment public readiness proves a qualified native device profile. Direct `/login humain-code-account` checks readiness too. Startup and unrelated providers do not wait for native readiness or private account discovery.
|
|
87
|
+
|
|
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
|
+
|
|
90
|
+
## Usage and support
|
|
91
|
+
|
|
92
|
+
`/usage` keeps combined Web+CLI monthly amounts separate from local session estimates and other providers. Used is actual usage (a known subtotal when incomplete); Pending is reserved, not a final charge or free usage. Remaining is the server's reported amount. Reset dates are UTC. Select Pending by mouse, or focus details, move the selection to Pending with the configured navigation actions, and confirm to read its explanation. Source filters affect details only. Fuse does not share a Forge allowance. Busy and allowance refusals do not trigger automatic inference retries; ambiguous outcomes may charge, so check `/usage` before retrying manually.
|
|
93
|
+
|
|
94
|
+
`/bug` creates a local reviewed ZIP. Narrow environment/account/generation/install IDs are included only when already available; exporting never bootstraps identity or sign-in. Each invocation asks whether to attach the secret-redacted conversation, with its UTF-8 byte size. Declining excludes conversation-derived diagnostics. Optional model summaries require separate explicit consent and may use allowance or provider tokens. Secrets are excluded before collection, summary inference and final ZIP inspection; unassured content is omitted or export fails closed. Review code and business content before manually emailing the archive to [akarim@humain.com](mailto:akarim@humain.com). Nothing is automatically emailed or uploaded. GitLab remains the internal tracker.
|
|
95
|
+
|
|
96
|
+
Interactive startup discloses metadata policy for the selected built-in environment. The first eligible print/JSON/RPC/agent-exec CLI run prints the notice only on stderr and atomically records global acknowledgment. SDK and metadata-only commands remain silent. Acknowledgment is not consent or a delivery gate; `HUMAIN_TERMINAL_OFFLINE=1`, `PI_OFFLINE=1` and no-network controls suppress delivery. Analytics retention is 400 days; diagnostics retention is 30 days. See [metadata disclosure](../README.md#metadata-disclosure) for identity, exclusions, readers and erasure policy. Contact: [akarim@humain.com](mailto:akarim@humain.com).
|
|
97
|
+
|
|
98
|
+
## HUMAIN Fuse
|
|
99
|
+
|
|
100
|
+
Fuse is independent of the native account: `/login humain-fuse`, `HUMAIN_FUSE_API_KEY`, fixed endpoint `https://api.fuse.humainaic.com/v1`. Four qualified text-and-tool profiles ship: Qwen3.8-Flash-Next, DeepSeek V4.1 Flash, Kimi K3, and gpt-oss-120b. Discovery excludes missing or drifted profiles until owner requalification. Fuse uses the ordinary all-provider `/model` picker, not the native account's Retry/Cancel picker; failed refreshes retain sign-in and any same-key cached models. See [HUMAIN Fuse](providers.md#humain-fuse).
|
|
101
|
+
|
|
84
102
|
## HUMAIN Node
|
|
85
103
|
|
|
86
104
|
Use `/login humain-node` (or **Sign in with HUMAIN** → **HUMAIN Node** in `/login`) to enter a masked API key and optional base URL (default `https://api.node.humain.com/v1`). Alternatively, set `HUMAIN_NODE_API_KEY` and optionally `HUMAIN_NODE_BASE_URL` in your environment.
|
|
@@ -132,26 +150,11 @@ When that shape is present, HUMAIN Code CLI registers the selected `amazon-bedro
|
|
|
132
150
|
|
|
133
151
|
OpenAI and Anthropic binding descriptors are recognized the same way when DeployNow provides `OPENAI_BASE_URL`/`OPENAI_API_KEY=deploynow-proxy` or `ANTHROPIC_BASE_URL`/`ANTHROPIC_API_KEY=deploynow-proxy`. When `FORGE_RUNTIME_MODEL_PROVIDER` and `FORGE_RUNTIME_MODEL_ID` identify one of those providers, HUMAIN Code CLI registers that runtime model through the loopback binding. OpenAI bindings use the chat-completions-compatible API path.
|
|
134
152
|
|
|
135
|
-
|
|
153
|
+
## Removed providers
|
|
136
154
|
|
|
137
|
-
|
|
138
|
-
HUMAIN_TERMINAL_FORGE_CWD=/Users/akarim/Documents/Work/forge \
|
|
139
|
-
HUMAIN_TERMINAL_HC_BASE_URL=https://inference.example/v1 \
|
|
140
|
-
HUMAIN_TERMINAL_HC_API_KEY=... \
|
|
141
|
-
humain-code
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
The long environment variable aliases `HUMAIN_TERMINAL_HUMAIN_CODE_BASE_URL`, `HUMAIN_TERMINAL_HUMAIN_CODE_API_KEY`, and `HUMAIN_TERMINAL_HUMAIN_CODE_MODELS` are also supported.
|
|
145
|
-
|
|
146
|
-
## HUMAIN SSO
|
|
147
|
-
|
|
148
|
-
`HUMAIN SSO` is always visible in `/login`, but it is not a functional authentication or model provider. Selecting it fails with:
|
|
149
|
-
|
|
150
|
-
```text
|
|
151
|
-
HUMAIN SSO is not supported yet.
|
|
152
|
-
```
|
|
155
|
+
Unsupported `humain-sso` and legacy env/API-key `humain-code` registrations are removed. Neither the short `HUMAIN_TERMINAL_HC_*` inputs nor the long `HUMAIN_TERMINAL_HUMAIN_CODE_*` inputs enable a provider. Legacy OIDC configuration does not enable native login. No old-ID translation, secret migration or unsupported-provider revocation is performed.
|
|
153
156
|
|
|
154
|
-
|
|
157
|
+
User tier files and inert credentials are preserved. Retired selections stop with `This provider has been removed. Use /login, then /model to select a supported provider. No fallback was selected.` Use the native account or an independent supported provider; unrelated opaque model IDs and executable branding remain unchanged.
|
|
155
158
|
|
|
156
159
|
## Model Selection And Workflows
|
|
157
160
|
|
|
@@ -163,4 +166,4 @@ Set `HUMAIN_TERMINAL_FORGE_CWD` to make Forge the startup working directory when
|
|
|
163
166
|
|
|
164
167
|
HUMAIN Code CLI does not generate dynamic-workflows `small`, `medium`, or `big` tier files. Workflow model choice remains owned by any installed workflow package, such as dynamic-workflows; HUMAIN Code CLI does not add a second model-routing layer.
|
|
165
168
|
|
|
166
|
-
|
|
169
|
+
Startup does not inspect, rewrite or delete historical tier files, including `~/.pi/workflows/model-tiers.json` and `~/.humain-terminal/workflows/model-tiers.json`. Workflow packages own their own configuration.
|
package/docs/index.md
CHANGED
|
@@ -26,6 +26,7 @@ Use the [Quickstart customization chooser](quickstart.md#choose-how-to-customize
|
|
|
26
26
|
- Use [print mode](cli.md#invocation-and-output) for one-off and scripted tasks.
|
|
27
27
|
- Use [JSON event stream mode](json.md) to consume structured events from one run.
|
|
28
28
|
- Use [RPC mode](rpc.md) to control a separate HUMAIN Code CLI process.
|
|
29
|
+
- Check [headless admission and terminal outcomes](run-preflight.md) before relying on exit codes or automated completion.
|
|
29
30
|
- Use the [TypeScript SDK](sdk.md) to run HUMAIN Code CLI inside an application.
|
|
30
31
|
|
|
31
32
|
## Find reference and setup information
|
package/docs/keybindings.md
CHANGED
|
@@ -126,7 +126,7 @@ In fullscreen mode, these actions control the transcript and take precedence ove
|
|
|
126
126
|
| `app.exit` | `ctrl+d` | Exit (when editor empty) |
|
|
127
127
|
| `app.suspend` | `ctrl+z` (None on Windows) | Suspend to background |
|
|
128
128
|
| `app.editor.external` | `ctrl+g` | Open in external editor (`externalEditor`, `$VISUAL`, `$EDITOR`, Notepad on Windows, or `nano` elsewhere) |
|
|
129
|
-
| `app.clipboard.pasteImage` | `ctrl+v` (`alt+v` on Windows and WSL) | Paste files on macOS, images, or text from clipboard |
|
|
129
|
+
| `app.clipboard.pasteImage` | `ctrl+v` (`alt+v`, `ctrl+v` on Windows and WSL) | Paste files on macOS, images, or text from clipboard |
|
|
130
130
|
|
|
131
131
|
On native Windows, `app.suspend` has no default because Windows terminals do not support Unix job control. If you assign it manually, HUMAIN Code CLI shows a status message instead of suspending. WSL uses the normal `ctrl+z` and `fg` behavior.
|
|
132
132
|
|
|
@@ -118,6 +118,8 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
|
|
|
118
118
|
| `maxTokensField` | `"max_completion_tokens" \| "max_tokens"` | | Which field to use for max tokens. Default: auto-detected from URL. |
|
|
119
119
|
| `requiresToolResultName` | boolean | | Whether tool results require the name field. Default: auto-detected from URL. |
|
|
120
120
|
| `requiresAssistantAfterToolResult` | boolean | | Whether a user message after tool results requires an assistant message in between. Default: auto-detected from URL. |
|
|
121
|
+
| `requiresNonNullAssistantContent` | boolean | | Whether replayed assistant messages with no text (e.g. tool-call-only messages) must send "" instead of null content. Default: false. |
|
|
122
|
+
| `requiresToolsWithToolHistory` | boolean | | Whether requests without tools must send "tools": [] when the conversation contains tool calls or tool results. Needed by some proxies in front of Anthropic, such as older LiteLLM versions. Default: true; set false to omit the field. |
|
|
121
123
|
| `requiresThinkingAsText` | boolean | | Whether thinking blocks must be converted to text blocks with <thinking> delimiters. Default: auto-detected from URL. |
|
|
122
124
|
| `requiresReasoningContentOnAssistantMessages` | boolean | | Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. Default: auto-detected from URL. |
|
|
123
125
|
| `inlineThinkTags` | boolean | | Whether a leading <think>...</think> section in streamed content is reasoning and is parsed into thinking blocks. Default: false. |
|
|
@@ -136,6 +138,7 @@ See [Describe model input and caching](models.md#describe-model-input-and-cachin
|
|
|
136
138
|
| `cacheControlFormat` | `"anthropic"` | | Cache control convention for prompt caching. Anthropic applies cache_control markers to the system prompt, last tool definition, and last user, assistant, or tool-result text content. |
|
|
137
139
|
| `sendSessionAffinityHeaders` | boolean | | Whether to send session-affinity data from options.sessionId. Default: true for OpenRouter endpoints, false otherwise. |
|
|
138
140
|
| `sessionAffinityFormat` | `"openai" \| "openai-nosession" \| "openrouter"` | | Session-affinity header format. openai sends session_id, x-client-request-id, and x-session-affinity; openai-nosession sends x-client-request-id and x-session-affinity; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected. |
|
|
141
|
+
| `promptCacheKeyMode` | `"auto" \| "enabled" \| "disabled"` | | Controls the prompt_cache_key request field. auto sends it to api.openai.com, or with long cache retention when supportsLongCacheRetention is true; enabled sends it whenever caching is active, for compatible proxies; disabled never sends it. Default: auto. |
|
|
139
142
|
| `supportsLongCacheRetention` | boolean | | Whether the provider supports long prompt cache retention (prompt_cache_retention: "24h" or Anthropic-style cache_control.ttl: "1h", depending on format). Default: auto-detected from provider and URL. |
|
|
140
143
|
| `vllmPriority` | number | | vLLM scheduler priority sent as the top-level priority request field. Lower values are handled earlier and the server default is 0. Only meaningful with --scheduling-policy priority. Off by default and not set on the generated catalog. |
|
|
141
144
|
|
|
@@ -147,7 +150,8 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
147
150
|
|---|---|---|---|
|
|
148
151
|
| `supportsDeveloperRole` | boolean | `true` | Whether the provider supports the developer role instead of system. |
|
|
149
152
|
| `supportsMidConvoSystemMessages` | boolean | `false` | Whether the exact model accepts developer or system messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models. |
|
|
150
|
-
| `sessionAffinityFormat` | `"openai" \| "openai-nosession" \| "openrouter"` | | Session-affinity header format. openai sends
|
|
153
|
+
| `sessionAffinityFormat` | `"openai" \| "openai-nosession" \| "openrouter"` | | Session-affinity header format. openai sends session-id and x-client-request-id; openai-nosession sends x-client-request-id; openrouter sends x-session-id. Does not affect prompt_cache_key. Default: auto-detected. |
|
|
154
|
+
| `promptCacheKeyMode` | `"auto" \| "enabled" \| "disabled"` | | Controls the prompt_cache_key request field. auto and enabled send it whenever caching is active; disabled never sends it, for compatible proxies that reject it. Default: auto. |
|
|
151
155
|
| `supportsLongCacheRetention` | boolean | `true` | Whether the provider supports long prompt cache retention. This uses prompt_cache_options.ttl: "30m" on GPT-5.6+ and prompt_cache_retention: "24h" on earlier models. |
|
|
152
156
|
| `supportsStrictMode` | boolean | | Whether the provider supports strict JSON-schema function tools. Defaults are API-specific; generated OpenAI models enable it explicitly. |
|
|
153
157
|
| `supportsOpenAIGrammarTools` | boolean | `false` | Whether to emit OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models. |
|
|
@@ -156,6 +160,7 @@ Also applies to `azure-openai-responses` and `openai-codex-responses`.
|
|
|
156
160
|
| `supportsExplicitPromptCacheMode` | boolean | `false` | Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter. |
|
|
157
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. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider. |
|
|
158
162
|
| `supportsMaxOutputTokens` | boolean | `true` | Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it. |
|
|
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. |
|
|
159
164
|
|
|
160
165
|
### `anthropic-messages`
|
|
161
166
|
|
package/docs/models.md
CHANGED
|
@@ -158,7 +158,7 @@ Chat models on a [llama.cpp router](llama-cpp.md#classification) are also listed
|
|
|
158
158
|
|
|
159
159
|
OpenAI's Decisions API needs an API key. Sign in with ChatGPT credentials do not work with it, so `gpt-6-luna` is not listed as available while `openai` is logged in through `/login`, even when `OPENAI_API_KEY` is set; log out of `openai` to use the key. The API rejects inputs above 922K tokens, but requests that run longer than about five seconds, currently above roughly 600K input tokens, fail with a gateway timeout.
|
|
160
160
|
|
|
161
|
-
Classifier models do not appear in `/model`. The model reaches them through the [`codemode`](cli.md#enable-codemode) tool, which is
|
|
161
|
+
Classifier models do not appear in `/model`. The model reaches them through the [`codemode`](cli.md#enable-codemode) tool, which is active by default for grammar-capable GPT-5 and newer OpenAI models (see [Default activation](codemode.md#default-activation)). For other models, enable it with `"defaultTools": ["+codemode"]` in [settings](settings.md#tools). Scripts then list classifier models with `models.getAvailableOfType("classifier")` and call `models.classify(model, { state, questions })`:
|
|
162
162
|
|
|
163
163
|
```js
|
|
164
164
|
const jev = await models.getModelOfType("classifier", "typesafe", "jev-latest");
|
package/docs/prompt-templates.md
CHANGED
|
@@ -48,7 +48,7 @@ Templates support these substitutions:
|
|
|
48
48
|
| `${@:N}` | Arguments starting at position `N` |
|
|
49
49
|
| `${@:N:L}` | `L` arguments starting at position `N` |
|
|
50
50
|
|
|
51
|
-
Arguments follow shell-like quoting, so `/review "API compatibility"` supplies one argument containing a space.
|
|
51
|
+
Arguments follow shell-like quoting, so `/review "API compatibility"` supplies one argument containing a space. A quote only starts quoting at the beginning of an argument, so apostrophes inside words such as `doesn't` stay as text, and a quote with no closing match is kept as text. Inside a quoted argument, a backslash before the same quote character keeps it as text, so `/review "the \"fast\" path"` supplies `the "fast" path`; other backslashes are kept as typed.
|
|
52
52
|
|
|
53
53
|
<a id="choose-where-it-loads"></a>
|
|
54
54
|
|
package/docs/providers.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Providers
|
|
2
2
|
|
|
3
|
+
For HUMAIN Code CLI bugs, questions, feedback, or private security reports, contact [akarim@humain.com](mailto:akarim@humain.com). See [support and bug reports](../README.md#support-and-bug-reports) and [metadata disclosure](../README.md#metadata-disclosure). Provider credentials and inference requests are separate from automatic CLI metadata.
|
|
4
|
+
|
|
3
5
|
Most hosted providers support one or both of these authentication methods:
|
|
4
6
|
|
|
5
7
|
- Sign in through a browser or device flow backed by OAuth.
|
|
@@ -9,7 +11,7 @@ Use `/login [provider]` to see the methods supported by a provider. Amazon Bedro
|
|
|
9
11
|
|
|
10
12
|
## Authenticate interactively
|
|
11
13
|
|
|
12
|
-
Run `/login` and select a provider.
|
|
14
|
+
Run `/login` and select a provider. Most providers save their OAuth or API-key credential in [`auth.json`](configuration.md#agent-directory). Native [HUMAIN Code](#humain-code) uses a separate encrypted account store or explicit session-only sign-in; its grants never enter the generic credential pool.
|
|
13
15
|
|
|
14
16
|
On a remote or headless machine, an OAuth callback may not reach the local process. When prompted, paste the final redirect URL or authorization code back into HUMAIN Code CLI.
|
|
15
17
|
|
|
@@ -43,6 +45,7 @@ This table covers providers with a single primary API-key variable. Providers th
|
|
|
43
45
|
| Provider | Environment variable |
|
|
44
46
|
|---|---|
|
|
45
47
|
| HUMAIN Node | `HUMAIN_NODE_API_KEY` |
|
|
48
|
+
| HUMAIN Fuse | `HUMAIN_FUSE_API_KEY` |
|
|
46
49
|
| Anthropic | `ANTHROPIC_API_KEY` |
|
|
47
50
|
| Ant Ling | `ANT_LING_API_KEY` |
|
|
48
51
|
| OpenAI | `OPENAI_API_KEY` |
|
|
@@ -116,13 +119,7 @@ A stored API-key credential can include an `env` object. Its values take priorit
|
|
|
116
119
|
|
|
117
120
|
### Radius
|
|
118
121
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
To get started, run `/login radius` in Pi. This adds Radius as a provider, and its models appear in `/model` like any other provider's. HUMAIN Code CLI does not list Radius in the top-level `/login` menu; `/login radius` and the **Sign in with an account** list still reach it.
|
|
122
|
-
|
|
123
|
-
Radius also has an MCP server, so Pi can manage Radius for you.
|
|
124
|
-
|
|
125
|
-
Radius is currently in early alpha and evolving quickly. See [radius.earendil.com](https://radius.earendil.com) for more.
|
|
122
|
+
Authenticate with `/login radius`. Its models appear in `/model` like any other provider's. HUMAIN Code CLI does not list Radius in the top-level `/login` menu; `/login radius` and the **Sign in with an account** list still reach it. Radius also provides an MCP server that you can configure through [MCP](mcp.md).
|
|
126
123
|
|
|
127
124
|
Radius authentication uses its gateway catalog and caches refreshed model metadata for later offline startup. A custom Radius gateway configured in `models.json` uses its own catalog rather than inheriting the public `radius.pi.dev` catalog.
|
|
128
125
|
|
|
@@ -130,9 +127,9 @@ Radius authentication uses its gateway catalog and caches refreshed model metada
|
|
|
130
127
|
|
|
131
128
|
Authenticate with `/login openrouter` or `OPENROUTER_API_KEY`.
|
|
132
129
|
|
|
133
|
-
With a key,
|
|
130
|
+
With a key, HUMAIN Code CLI lists only the OpenRouter chat models that key may use, with the key's context size, max output, and prices. These come from OpenRouter's `/models/user` endpoint and reflect guardrails and provider restrictions set in OpenRouter. Image and classifier models are not filtered.
|
|
134
131
|
|
|
135
|
-
|
|
132
|
+
HUMAIN Code CLI refreshes the list in the background at startup in interactive mode, when `/model` opens, after `/login`, and on `humain-code update --models`. The last list is saved and used offline and in `humain-code -p` and RPC mode. After switching keys outside `/login`, the previous key's list stays until the next refresh.
|
|
136
133
|
|
|
137
134
|
Regional endpoints filter models to their region. To use one, set the base URL in [`models.json`](models.md#configure-a-compatible-endpoint):
|
|
138
135
|
|
|
@@ -144,7 +141,7 @@ Regional endpoints filter models to their region. To use one, set the base URL i
|
|
|
144
141
|
}
|
|
145
142
|
```
|
|
146
143
|
|
|
147
|
-
If the base URL rejects the key at `/models/user` or does not have that endpoint, for example a proxy configured as the OpenRouter base URL,
|
|
144
|
+
If the base URL rejects the key at `/models/user` or does not have that endpoint, for example a proxy configured as the OpenRouter base URL, HUMAIN Code CLI lists every OpenRouter model.
|
|
148
145
|
|
|
149
146
|
### Azure OpenAI
|
|
150
147
|
|
|
@@ -163,7 +160,7 @@ export AZURE_OPENAI_RESOURCE_NAME=your-resource
|
|
|
163
160
|
|
|
164
161
|
Resource root URLs under `ai.azure.com`, `cognitiveservices.azure.com`, and `openai.azure.com` are normalized to the OpenAI API path.
|
|
165
162
|
|
|
166
|
-
|
|
163
|
+
HUMAIN Code CLI sends the model ID as the deployment name. If a deployment has a different name, map it with `AZURE_OPENAI_DEPLOYMENT_NAME_MAP`:
|
|
167
164
|
|
|
168
165
|
```bash
|
|
169
166
|
export AZURE_OPENAI_DEPLOYMENT_NAME_MAP=gpt-5.4=my-gpt-deployment,deepseek-v4-pro=my-deepseek
|
|
@@ -171,7 +168,7 @@ export AZURE_OPENAI_DEPLOYMENT_NAME_MAP=gpt-5.4=my-gpt-deployment,deepseek-v4-pr
|
|
|
171
168
|
|
|
172
169
|
`AZURE_OPENAI_API_VERSION` overrides the API version for OpenAI models (default `v1`).
|
|
173
170
|
|
|
174
|
-
To use a Foundry model that
|
|
171
|
+
To use a Foundry model that HUMAIN Code CLI does not include, add it under `azure` in [`models.json`](models.md#configure-a-compatible-endpoint) with `api: "openai-completions"`. Custom models require a `baseUrl`; `AZURE_OPENAI_BASE_URL` and `AZURE_OPENAI_RESOURCE_NAME` take priority over it when set:
|
|
175
172
|
|
|
176
173
|
```json
|
|
177
174
|
{
|
|
@@ -261,6 +258,49 @@ gcloud auth application-default login
|
|
|
261
258
|
|
|
262
259
|
To use a service-account key file instead, set `GOOGLE_APPLICATION_CREDENTIALS` along with the project and location.
|
|
263
260
|
|
|
261
|
+
## HUMAIN Code
|
|
262
|
+
|
|
263
|
+
Native provider `humain-code-account` is shown as **HUMAIN Code login (DEV)**. Under **Sign in with HUMAIN**, order is Code, Node, Gateway, Fuse. Code remains hidden until the selected environment's `/api/cli/config` proves the complete qualified native device/issuer/audience/scopes/expiry/revocation profile. The menu rechecks on open and updates without losing search or selection. Failure, malformed config, timeout or offline keeps Code hidden without blocking independent providers.
|
|
264
|
+
|
|
265
|
+
Start with `humain-code --env dev`, `--env staging`, or `--env production`. Origins are `https://code.dev.humain.com`, `https://code.stg.humain.com`, and `https://code.humain.com`; dev is the default. There is no arbitrary endpoint override or cross-environment fallback. This flag does not redirect Node, Gateway, Fuse, Local or DeployNow.
|
|
266
|
+
|
|
267
|
+
Use `/login humain-code-account`. Unavailable readiness says: `HUMAIN Code login (DEV) is unavailable for this environment. Try /login again later.` 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 and device polling remain issuer-controlled.
|
|
268
|
+
|
|
269
|
+
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.
|
|
270
|
+
|
|
271
|
+
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
|
+
|
|
273
|
+
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
|
+
|
|
275
|
+
After sign-in, use `/model` to choose an approved native model; login does not change your current model. An empty catalog says `Your admin hasn't enabled CLI models yet.`; load failure says `Couldn't load models.` Both offer Retry/Cancel and retain sign-in without sending inference.
|
|
276
|
+
|
|
277
|
+
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
|
+
|
|
279
|
+
### Removed providers
|
|
280
|
+
|
|
281
|
+
Unsupported `humain-sso` and legacy env/API-key `humain-code` registrations are removed. The six inputs `HUMAIN_TERMINAL_HC_BASE_URL`, `HUMAIN_TERMINAL_HC_API_KEY`, `HUMAIN_TERMINAL_HC_MODELS`, `HUMAIN_TERMINAL_HUMAIN_CODE_BASE_URL`, `HUMAIN_TERMINAL_HUMAIN_CODE_API_KEY`, and `HUMAIN_TERMINAL_HUMAIN_CODE_MODELS` are no longer consumed. No old-ID translation, credential migration or unsupported-provider revocation occurs. User tier files and inert credentials are preserved.
|
|
282
|
+
|
|
283
|
+
A retired saved/default/session/explicit provider stops with: `This provider has been removed. Use /login, then /model to select a supported provider. No fallback was selected.` Executable aliases, themes, unrelated opaque model IDs, Local, Node, Gateway and DeployNow remain supported.
|
|
284
|
+
|
|
285
|
+
## HUMAIN Fuse
|
|
286
|
+
|
|
287
|
+
Independent provider `humain-fuse` uses `HUMAIN_FUSE_API_KEY` and the fixed endpoint `https://api.fuse.humainaic.com/v1`. Use `/login humain-fuse` to enter its API key. It does not use a Forge allowance or native account. Catalog discovery uses GET `/v1/models` and publishes only matching owner-qualified profiles with qualified USD prices, never guessed or substitute zero-price models.
|
|
288
|
+
|
|
289
|
+
Four text-and-tool profiles were qualified on 2026-11-12:
|
|
290
|
+
|
|
291
|
+
| Model ID | Context tokens | Max output tokens | Reasoning efforts |
|
|
292
|
+
| --- | ---: | ---: | --- |
|
|
293
|
+
| `Qwen/Qwen3.8-Flash-Next` | 262,144 | 84,992 | off, high |
|
|
294
|
+
| `deepseek-ai/DeepSeek-V4.1-Flash` | 1,048,576 | 98,304 | off, low, high, xhigh, max |
|
|
295
|
+
| `moonshotai/Kimi-K3` | 1,048,576 | 93,184 | off, low, high, max |
|
|
296
|
+
| `openai/gpt-oss-120b` | 131,072 | 88,064 | low, medium, high |
|
|
297
|
+
|
|
298
|
+
`off` sends Fuse's `none` effort. Output ceilings are enforced client-side, including explicit budgets and payload-hook replacements. These profiles support text, tool calls, and reasoning replay, not image input. GLM-5.3-Flash, `fuse/auto`, SystemOne-only models, and unknown deployments remain excluded.
|
|
299
|
+
|
|
300
|
+
Discovery requires `owned_by: "vllm"` and an exact match for the qualified context window, maximum output, and supported reasoning-effort set. A missing profile or metadata drift excludes that model until owner requalification updates the shipped profile; deployment claims do not automatically expand capabilities or change prices. Catalogs stay in memory and are cleared when the active key changes.
|
|
301
|
+
|
|
302
|
+
Fuse uses the ordinary all-provider `/model` picker, not the native account's Retry/Cancel picker. A failed refresh shows an error and any cached models for the same key; a valid empty catalog offers no Fuse models. Sign-in is retained. Reopen `/model` to refresh discovery without sending inference.
|
|
303
|
+
|
|
264
304
|
## HUMAIN Gateway
|
|
265
305
|
|
|
266
306
|
[HUMAIN Gateway](https://gateway.humain.services) gives HUMAIN accounts the models, budget, and limits assigned to them. HUMAIN Code CLI signs in with your Microsoft account; there is no API key to create, paste, or store, and you do not need the separate `humain` Gateway CLI.
|
|
@@ -341,7 +381,7 @@ Only models advertising a supported text API, streaming, and tool calling are of
|
|
|
341
381
|
|
|
342
382
|
Node's `max_output_tokens: 0` means the output limit is unknown. The model remains available with internal `maxTokens: 0`, and `--list-models` shows `unknown`. For these models, Chat Completions and Responses requests omit the output cap unless the caller supplies a positive `maxTokens`; zero does not mean unlimited output.
|
|
343
383
|
|
|
344
|
-
Token and cache usage reported by Node flows into the normal session statistics.
|
|
384
|
+
Token and cache usage reported by Node flows into the normal session statistics. Node's `/models` catalog can advertise per-million-token input, output and cached-input prices, but this provider currently leaves internal model cost fields at zero; those zeros mean unknown cost, not free usage. Flow and its evaluation harness reprice zero costs using a shipped, provider-scoped pricing snapshot, not a live billing lookup. The supplied API does not expose account spend or remaining quota. Use HUMAIN Node for billing and account usage reports.
|
|
345
385
|
|
|
346
386
|
Flow setup discovers models with the selected key's `/models` call. Setup waits for a fresh, non-empty catalog for that key. An empty catalog, a rejected key, an unreachable service, or a failed refresh is shown as unavailable with the reason category, and setup offers `Retry` or `Continue without HUMAIN Node`; Flow never invents Node models or reuses another key's catalog. Keys for one Node user share that user's controls.
|
|
347
387
|
|
|
@@ -349,6 +389,18 @@ Flow setup discovers models with the selected key's `/models` call. Setup waits
|
|
|
349
389
|
|
|
350
390
|
Failed requests include the supplied `X-Request-ID`. Temporary failures use bounded retries that respect `Retry-After`; quota and weekly-spend limits require action in Node. If a model becomes unavailable, open `/model` to refresh the catalog and select an available model. Run `/logout` and select **HUMAIN Node** to remove saved credentials; unset `HUMAIN_NODE_API_KEY` as well to disconnect an environment-based key.
|
|
351
391
|
|
|
392
|
+
### SystemOne classification
|
|
393
|
+
|
|
394
|
+
With Node credentials configured, `humain_classify` is available on demand through `tool_search` or codemode. No classification request or catalog lookup runs at startup. After signing in during a session, the tool becomes available before the next prompt.
|
|
395
|
+
|
|
396
|
+
Choose `jev-1.13`, `laya`, or `rune-26b-a4b`; provide a string `state` and named `questions`. Each question must be a JSON object with string `type` and `instructions`. Types include `noul`, `choice`, and `score`; additional question fields pass through unchanged.
|
|
397
|
+
|
|
398
|
+
Example: `{"model":"jev-1.13","state":"A short report.","questions":{"report":{"type":"noul","instructions":"Is this a report?"}}}`
|
|
399
|
+
|
|
400
|
+
Requests use the active Node key and endpoint with non-streaming `POST /systemone`, a 30-second deadline, and a 1 MiB response limit. Failed requests are not automatically retried. Answers remain unchanged; token usage and estimated USD cost appear in the result and standard tool usage metadata. Input costs per million tokens are $0.042 for Jev/Rune and $0.02 for Laya; output costs zero. These classifiers never appear in the chat model picker.
|
|
401
|
+
|
|
402
|
+
An opt-in smoke test runs each model once: from `packages/coding-agent`, set `NODE_KEY` in the child environment and run `node ../../node_modules/vitest/dist/cli.js --run test/humain-systemone-live.test.ts --maxWorkers=1`. Without `NODE_KEY`, it is skipped.
|
|
403
|
+
|
|
352
404
|
### Node key fallback
|
|
353
405
|
|
|
354
406
|
Use another HUMAIN Node key when this key fails or reaches a limit. It is off by default and does not make Node a subscription provider; ordinary API keys of other providers never rotate. When enabled, an ordered list of stored Node API-key accounts is tried after the serving key fails with a 401 `invalid_api_key` or `missing_api_key` (key absent, revoked, inactive or incorrect), or a 429 `rate_limit_exceeded`, `weekly_cap_exceeded`, `quota_exceeded` or `partner_credit_limit_exceeded`. On `/messages` the code is read from the Anthropic envelope's `error.type`; a generic `authentication_error` or `rate_limit_error` without a Node code never switches keys. The same request is retried on the next usable listed key, same provider and model, once per key per prompt, only before any output or tool execution. Invalid requests (400), `model_not_found` (404), outages (5xx) and unparsable or unclassified errors never switch keys.
|
|
@@ -384,7 +436,7 @@ It needs AWS credentials saved through Connect (profile, SSO, role, IAM keys, or
|
|
|
384
436
|
|
|
385
437
|
## Account pooling
|
|
386
438
|
|
|
387
|
-
|
|
439
|
+
Except for the native HUMAIN Code account, providers' OAuth credentials and literal API keys can be pooled. Run `/login <provider>` again to add another account. Repeating the exact same API key updates its existing entry without displaying or persisting a fingerprint. Environment references, commands and ambient cloud configuration are external sources, not copied into the key pool.
|
|
388
440
|
|
|
389
441
|
`/accounts` groups accounts by provider and shows credential type, subscription metadata, active selection and effective source. Its account menu supports switching, renaming, adding, reauthentication and removal. Reauthentication preserves the selected local key and user label. Without provider identity, separate OAuth logins cannot detect duplicates; use Reauthenticate to retain the same entry. Codex still shows weekly usage when available. Subscription labels come from provider metadata, including Z.AI's global Coding Plan (`zai` in this catalog), `zai-coding-cn` and Kimi Coding. Reference costs are estimates, not confirmed subscription charges or evidence of plan/model access. OAuth plans may bill extra usage at the provider.
|
|
390
442
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Noninteractive preflight and terminal outcomes
|
|
2
|
+
|
|
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
|
+
|
|
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.
|
|
6
|
+
|
|
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
|
+
|
|
9
|
+
Successful probes are cached for 60 seconds in the current model runtime. Every cache hit still resolves authentication. Changing the model, endpoint, API, effective token, configured headers, or credential environment invalidates the cache. The cache stores only a SHA-256 digest and expiry, not credentials or prompts. Ambient credential chains and Bedrock transports are not cached because their effective account or region can change outside auth resolution. Separate CLI processes do not share this cache.
|
|
10
|
+
|
|
11
|
+
## Terminal event
|
|
12
|
+
|
|
13
|
+
JSON and RPC emit a final event for a settled run or rejected task preflight:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{"type":"run_end","failureClass":"auth","exitCode":20}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The shared vocabulary, class/code validation, and exit codes live in the narrow `@humain/humain-code-contracts/run-outcome` export. `failureClass: null` and exit code `0` mean verified completion. Missing verification is not success.
|
|
20
|
+
|
|
21
|
+
| Failure class | Exit code | Meaning |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `auth` | 20 | Missing, expired, rejected, or unrefreshable authentication |
|
|
24
|
+
| `provider` | 21 | Provider or transport failure |
|
|
25
|
+
| `setup` | 22 | Runtime setup or model selection failure |
|
|
26
|
+
| `timeout` | 23 | Deadline exceeded or run interrupted |
|
|
27
|
+
| `checker` | 24 | Explicit checker infrastructure failure, distinct from unmet acceptance criteria |
|
|
28
|
+
| `completed_wrong` | 25 | Completed work has an explicitly unmet acceptance criterion |
|
|
29
|
+
| `completed_unverified` | 26 | Work completed without complete verification, or output was truncated |
|
|
30
|
+
|
|
31
|
+
Headless sessions produce `acceptance_started`, `acceptance_verification_start`, and `acceptance_settled` events with `completion: verified | partial | unverified` and criterion-specific evidence. The PHC-VERIFY acceptance ledger preserves unsupported requirements as uncheckable; assistant claims alone never prove them. `@file` attachments sent with other prompt text (a message or piped input) are data: they add no criteria and authorize no checks, though text in them that restricts running or reading still withholds automatic checks; a prompt that is only attachments is the task, but a command in an attachment is listed and never run automatically, even then. The exception is an attached document (`.md`, `.markdown`, `.txt`, `.rst`, `.adoc`) that the whole instruction hands the work to, as one sentence in the fixed form `DELEGATION` in `src/core/acceptance-ledger.ts` defines: lead-ins such as "please" or "your task is to"; implement, follow, fulfil or fulfill, satisfy, or carry out; optionally "(all of) the/these/this <spec, requirements, steps, …> in", "from", "of", "described in" or "listed in"; then document names, optionally after "the attached" and separated by spaces, commas or "and", or "the/this attached <file, spec, …>" or "the/this attachment"; then at most a trailing word such as "please" or "exactly". Examples are "Follow requirements.md." and "Implement the spec in the attached file.". "Attached …" and "attachment" without a name count only when the one attached file is a document, and a name that matches two attached documents counts for neither. The instruction must be that sentence alone, ending with "." or "!" or nothing, not "?". Any other wording, or any other text in the instruction, leaves attachments as data, since it could narrow or withdraw the handover. A delegated document's lines are added as criteria, but only its explicit file lines are checked: commands in it never run, files it mentions are not read, and its exact-output lines are not compared with the reply. If the prompt is rewritten so that the attached text can no longer be found, no automatic check runs. Exact requested output is compared locally. Explicit file and test requirements may use one local verification round (at most eight checks, sharing a 30-second deadline), through the normal tool permission and raw-observation pipeline, without another model request. Task restrictions and disabled tools are respected; later mutations invalidate stale evidence. Settlement is persisted and printed in text mode.
|
|
32
|
+
|
|
33
|
+
For multiple command criteria, the final round can preserve earlier command evidence only when the exact local executor proves read-only execution. On Linux x64/arm64 this uses an already-installed `/usr/bin/bwrap` with private namespaces, read-only host mounts, fresh devices, dropped capabilities, disabled nested user namespaces, and a seccomp filter denying external socket access and io_uring. No command-name or test-file whitelist establishes immutability. Commands that need writes or external services cannot receive this proof. A nonzero isolated execution is retried once through the same authorized local executor without isolation, within the shared deadline. Its output identifies the retry and preserves the normal execution's exit result; final-state acceptance still requires resolved effect custody. The retry cannot restore any earlier command evidence, even if it succeeds. Isolation is an evidence optimization, not a task execution restriction. Custom/remote executors, transformed command prefixes, unsupported platforms, and unavailable kernel/backend isolation retain conservative invalidation; no sandbox is installed automatically. Session-owned foreground and background launches retain effect custody after their starting tool call returns. An unrestricted executable can detach a descendant into a new process group, so absence or termination of the original group does not prove quiescence. Such launches retain explicit uncertainty for that session, including across task boundaries and after group cleanup; command/file evidence cannot establish final-state completion. The executor can avoid this uncertainty for OS-confined acceptance commands and a narrow launch-free grammar of literal `/bin/bash` builtins (`printf`, `echo`, `true`, `false`, `:`), with optional output redirection and no expansions, operators, startup scripts, imported functions or loader overrides. The `printf` subset accepts a literal non-option format with only `%s` and `%%` conversions, followed by literal arguments; assignment options, `%n`, and other conversions retain uncertainty. `echo`, `true`, `false`, and `:` do not evaluate their literal arguments. Launch-free does not mean read-only: redirects still invalidate earlier evidence. Other commands still execute normally, but without a lifetime receipt. Verification never kills a daemon or signals an escaped process merely to obtain proof. This does not protect against independent host processes or trusted extensions modifying state outside observed tool calls.
|
|
34
|
+
|
|
35
|
+
An unmet criterion takes precedence over a verified claim. Partial results without unmet criteria remain unverified. Missing, interrupted, or unavailable verification conservatively returns 26. Interactive sessions and SDK sessions without the headless gate do not enable automatic acceptance checks.
|
|
36
|
+
|
|
37
|
+
An OAuth refresh transport timeout, including a typed timeout wrapped by the credential resolver, returns timeout (23), not invalid authentication (20). Actual invalid_grant and 401/403 rejections remain auth (20); diagnostics do not expose the refresh error or credentials.
|
|
38
|
+
|
|
39
|
+
Internal OAuth exhaustion and account-pool failures stop further submissions but remain provider failures (21), not deadline/user cancellation (23). The session event marks this internal cause separately from its abort mechanism.
|
|
40
|
+
|
|
41
|
+
RPC remains resident after a failed preflight and accepts another request. Its orderly exit reflects the last settled/rejected task. Existing signal exit conventions remain unchanged. Agent-exec retains its single-response stdout protocol; admission failures emit `run_end` to stderr. Main runtime setup failures use stdout for JSON/RPC and stderr otherwise.
|
|
42
|
+
|
|
43
|
+
Subagents preserve and merge completed-wrong/unverified edits while retaining their nonzero result and useful output. They do not retry those outcomes as provider failures. Chains do not proceed past a failed verification result. Flow consumes authoritative terminal frames from both child and experimental in-process transports and never turns their known failure exits into successful teardown recovery. Unresolved in-process effect custody remains a nonzero failure even after verified acceptance.
|
|
44
|
+
|
|
45
|
+
## OAuth refresh coordination
|
|
46
|
+
|
|
47
|
+
The existing credential-store transaction already holds an interprocess file lock while rereading credentials, checking expiry, refreshing, and persisting rotated tokens. A waiter rereads the token produced by the first refresher instead of consuming the old single-use token. Cancellation before lock acquisition stops the waiter; cancellation after refresh begins does not prevent the rotated token from reaching disk. Cross-process offline regressions cover both cases. Forced termination during a provider's token-rotation response is not covered by this guarantee.
|