@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
+
import{dist_exports as dist_exports3}from"./chunk-4QAXV5T6.js";import"./chunk-32QLLD2P.js";import"./chunk-KRCX3ZBA.js";import"./chunk-GUHNFZ2Q.js";import"./chunk-AZXVJN6E.js";import"./chunk-I5E7RQ5V.js";import"./chunk-WQ7EJQIT.js";import"./chunk-66FZJO75.js";import"./chunk-NXA6NEHE.js";import{oauth_exports}from"./chunk-T7BXP46S.js";import{dist_exports as dist_exports2}from"./chunk-T5A6T24H.js";import"./chunk-Q5RKNQ2T.js";import"./chunk-7NKUVTBL.js";
|
|
3
|
+
import"./chunk-QT6ZHDMP.js";import"./chunk-JSZBTGI6.js";import"./chunk-PWUDFU5V.js";import"./chunk-4V5VL2BO.js";import"./chunk-MX4Q4W6H.js";import"./chunk-MD7K7RPN.js";import"./chunk-WAPZN4KP.js";import"./chunk-GTILMMUF.js";import"./chunk-5B25YXF7.js";import"./chunk-3HVHETMU.js";import"./chunk-RQU722SY.js";import"./chunk-SSRCVJZK.js";import{all_exports,anthropicMessagesApi,azureOpenAIResponsesApi,bedrockConverseStreamApi,complete,
|
|
4
|
+
completeSimple,generateImages,generateImagesOpenRouter,getApiProvider,getApiProviders,getImageModel,getImageModels,getImageProviders,getImagesApiProvider,getModel,getModels,getProviders,googleGenerativeAIApi,googleVertexApi,mistralConversationsApi,openAICodexResponsesApi,openAICompletionsApi,openAIResponsesApi,piMessagesApi,registerApiProvider,registerBuiltInApiProviders,registerBuiltInImagesApiProviders,registerFauxProvider,registerImagesApiProvider,resetApiProviders,setBedrockProviderLoader,setBedrockProviderModule,
|
|
5
|
+
stream,streamAnthropic,streamAzureOpenAIResponses,streamGoogle,streamGoogleVertex,streamMistral,streamOpenAICodexResponses,streamOpenAICompletions,streamOpenAIResponses,streamSimple,streamSimpleAnthropic,streamSimpleAzureOpenAIResponses,streamSimpleGoogle,streamSimpleGoogleVertex,streamSimpleMistral,streamSimpleOpenAICodexResponses,streamSimpleOpenAICompletions,streamSimpleOpenAIResponses,unregisterApiProviders}from"./chunk-ZJUU6WOV.js";import"./chunk-6P6GJPYB.js";import"./chunk-J57HOSWD.js";
|
|
6
|
+
import"./chunk-G4QPSFBF.js";import"./chunk-F6ZAYLU2.js";import"./chunk-WQOOJP7U.js";import"./chunk-JF7FYXAI.js";import"./chunk-XQRYOCHA.js";import{dist_exports}from"./chunk-JYWUOKOI.js";import"./chunk-DNGJMRJW.js";import"./chunk-OB332KMV.js";import"./chunk-IWZQ25I3.js";import"./chunk-WCFHG6NO.js";import"./chunk-UZNIPOGS.js";import"./chunk-YPZPCHNV.js";import"./chunk-KTSJYIYC.js";import"./chunk-UEW6TUSP.js";import"./chunk-CRN54O4D.js";
|
|
7
|
+
import{ANTHROPIC_API_KEY_ENV,ANTHROPIC_AUTH_TOKEN_ENV,ANTHROPIC_FEDERATION_RULE_ID_ENV,ANTHROPIC_IDENTITY_TOKEN_FILE_ENV,ANTHROPIC_OAUTH_TOKEN_ENV,ANTHROPIC_ORGANIZATION_ID_ENV,ANTHROPIC_SERVICE_ACCOUNT_ID_ENV,ANTHROPIC_WORKSPACE_ID_ENV,findEnvKeys,getEnvApiKey}from"./chunk-KQM7ZGL6.js";import"./chunk-CIA6V3BP.js";import"./chunk-2H3LUS62.js";import{AssistantMessageFrameEncoder,CACHE_WARMING_IDLE_CONTINUATION_PROBABILITY,CACHE_WARMING_MAX_AGE_MS,CACHE_WARMING_MAX_IDLE_AGE_MS,CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS,
|
|
8
|
+
attestProviderRequest,createFauxCore,envApiKeyAuth,evaluateCacheWarming,fauxAssistantMessage,fauxProvider,fauxText,fauxThinking,fauxToolCall,getCacheWarmingDelayMs,getCacheWarmingRequestOptions,getOverflowPatterns,getPromptCacheTtlMs,isCacheWarmingReplayable,isContextOverflow,isRecoverableLength,lazyOAuth,normalizeAdmissionUsage,reduceAssistantMessageFrames,validateToolArguments,validateToolCall}from"./chunk-GRJUKEE3.js";import{DEFAULT_MAX_AGENT_RETRY_DELAY_MS,getAssistantRetryDelayMs,isRetryableAssistantError,
|
|
9
|
+
retryAssistantCall,retryDelayMs}from"./chunk-5L4PBYC7.js";import{cleanupSessionResources,getOpenAICodexTokenIdentity,registerSessionResourceCleanup}from"./chunk-DBL35X7L.js";import{createDelegatedFetch}from"./chunk-IYGHKVUG.js";import{StreamingJsonParser,ToolCallArgumentsStream,parseJsonWithRepair,parseStreamingJson,parseStreamingJsonWhileStreaming,parseToolCallArguments,repairJson}from"./chunk-LYZ37DJP.js";import"./chunk-AQ4EXORZ.js";import"./chunk-FACBDLFU.js";
|
|
10
|
+
import{AI_TELEMETRY_SCHEMA,DEFAULT_NO_PROGRESS_TIMEOUT_MS,InMemoryCredentialStore,InMemoryModelsStore,ModelsError,NoProgressTimeoutError,calculateCost,clampThinkingLevel,collapseSystemMessages,commitLoginCredential,createInitialSystemMessage,createModels,createProvider,declarationsEqual,defaultProviderAuthContext,getCurrentSystemMessage,getCurrentSystemPrompt,getCurrentTools,getDeclaredTools,getInitialSystemMessage,getModelType,getSupportedThinkingLevels,getToolStateChanges,hasApi,hasNonAdditiveToolChanges,
|
|
11
|
+
hasToolRedefinitions,isModelType,lazyApi,lazyStream,modelsAreEqual,models_exports,normalizeContext,resolveTranscript,resolveTranscriptTools,streamWithProgressTimeout,toToolDeclaration,withoutInitialSystemMessage}from"./chunk-AEWYICBL.js";import{AssistantMessageEventStream,EventStream,ManagedAssistantMessageQueue,createAssistantMessageEventStream,drainStream}from"./chunk-GY663MNP.js";import{PI_AI_VERSION,PI_ATTRIBUTION,SubmissionAdmissionError,appendAssistantMessageDiagnostic,contentText,
|
|
12
|
+
createAssistantMessageDiagnostic,extractDiagnosticError,formatThrownValue,formatUserAgent,getAttributionHeaders,getClientProduct,getClientVersion,getIdentityHeaders,getOpenCodeSessionHeaders,getSystemMessageText,mergeClientIdentity,renderSystemMessageUpdate,uuidv7,withClientIdentity}from"./chunk-4HTVBBJD.js";import"./chunk-TGDPZCSW.js";import"./chunk-HTA325LJ.js";import"./chunk-XHDVDJM7.js";import"./chunk-2FYYW6FY.js";import{compile_exports,value_exports}from"./chunk-LB4CIS4F.js";
|
|
13
|
+
import{build_exports,typebox_exports}from"./chunk-VEGJT52D.js";import"./chunk-6PNQYO6A.js";import"./chunk-R5OOX7RW.js";import"./chunk-VFLVWPLZ.js";import{__export}from"./chunk-JXWJOIH4.js";var pi_ai_extension_view_exports={};__export(pi_ai_extension_view_exports,{AI_TELEMETRY_SCHEMA:()=>AI_TELEMETRY_SCHEMA,ANTHROPIC_API_KEY_ENV:()=>ANTHROPIC_API_KEY_ENV,ANTHROPIC_AUTH_TOKEN_ENV:()=>ANTHROPIC_AUTH_TOKEN_ENV,ANTHROPIC_FEDERATION_RULE_ID_ENV:()=>ANTHROPIC_FEDERATION_RULE_ID_ENV,ANTHROPIC_IDENTITY_TOKEN_FILE_ENV:()=>ANTHROPIC_IDENTITY_TOKEN_FILE_ENV,ANTHROPIC_OAUTH_TOKEN_ENV:()=>ANTHROPIC_OAUTH_TOKEN_ENV,ANTHROPIC_ORGANIZATION_ID_ENV:()=>ANTHROPIC_ORGANIZATION_ID_ENV,ANTHROPIC_SERVICE_ACCOUNT_ID_ENV:()=>ANTHROPIC_SERVICE_ACCOUNT_ID_ENV,
|
|
14
|
+
ANTHROPIC_WORKSPACE_ID_ENV:()=>ANTHROPIC_WORKSPACE_ID_ENV,AssistantMessageEventStream:()=>AssistantMessageEventStream,AssistantMessageFrameEncoder:()=>AssistantMessageFrameEncoder,CACHE_WARMING_IDLE_CONTINUATION_PROBABILITY:()=>CACHE_WARMING_IDLE_CONTINUATION_PROBABILITY,CACHE_WARMING_MAX_AGE_MS:()=>CACHE_WARMING_MAX_AGE_MS,CACHE_WARMING_MAX_IDLE_AGE_MS:()=>CACHE_WARMING_MAX_IDLE_AGE_MS,CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS:()=>CACHE_WARMING_MINIMUM_EXPECTED_SAVINGS,DEFAULT_MAX_AGENT_RETRY_DELAY_MS:()=>DEFAULT_MAX_AGENT_RETRY_DELAY_MS,
|
|
15
|
+
DEFAULT_NO_PROGRESS_TIMEOUT_MS:()=>DEFAULT_NO_PROGRESS_TIMEOUT_MS,EventStream:()=>EventStream,InMemoryCredentialStore:()=>InMemoryCredentialStore,InMemoryModelsStore:()=>InMemoryModelsStore,ManagedAssistantMessageQueue:()=>ManagedAssistantMessageQueue,ModelsError:()=>ModelsError,NoProgressTimeoutError:()=>NoProgressTimeoutError,PI_AI_VERSION:()=>PI_AI_VERSION,PI_ATTRIBUTION:()=>PI_ATTRIBUTION,StreamingJsonParser:()=>StreamingJsonParser,StringEnum:()=>StringEnum,SubmissionAdmissionError:()=>SubmissionAdmissionError,
|
|
16
|
+
ToolCallArgumentsStream:()=>ToolCallArgumentsStream,Type:()=>typebox_exports,anthropicMessagesApi:()=>anthropicMessagesApi,appendAssistantMessageDiagnostic:()=>appendAssistantMessageDiagnostic,attestProviderRequest:()=>attestProviderRequest,azureOpenAIResponsesApi:()=>azureOpenAIResponsesApi,bedrockConverseStreamApi:()=>bedrockConverseStreamApi,calculateCost:()=>calculateCost,clampThinkingLevel:()=>clampThinkingLevel,cleanupSessionResources:()=>cleanupSessionResources,collapseSystemMessages:()=>collapseSystemMessages,
|
|
17
|
+
commitLoginCredential:()=>commitLoginCredential,complete:()=>complete,completeSimple:()=>completeSimple,contentText:()=>contentText,createAssistantMessageDiagnostic:()=>createAssistantMessageDiagnostic,createAssistantMessageEventStream:()=>createAssistantMessageEventStream,createDelegatedFetch:()=>createDelegatedFetch,createFauxCore:()=>createFauxCore,createInitialSystemMessage:()=>createInitialSystemMessage,createModels:()=>createModels,createProvider:()=>createProvider,declarationsEqual:()=>declarationsEqual,
|
|
18
|
+
defaultProviderAuthContext:()=>defaultProviderAuthContext,drainStream:()=>drainStream,envApiKeyAuth:()=>envApiKeyAuth,evaluateCacheWarming:()=>evaluateCacheWarming,extractDiagnosticError:()=>extractDiagnosticError,fauxAssistantMessage:()=>fauxAssistantMessage,fauxProvider:()=>fauxProvider,fauxText:()=>fauxText,fauxThinking:()=>fauxThinking,fauxToolCall:()=>fauxToolCall,findEnvKeys:()=>findEnvKeys,formatThrownValue:()=>formatThrownValue,formatUserAgent:()=>formatUserAgent,generateImages:()=>generateImages,
|
|
19
|
+
generateImagesOpenRouter:()=>generateImagesOpenRouter,getApiProvider:()=>getApiProvider,getApiProviders:()=>getApiProviders,getAssistantRetryDelayMs:()=>getAssistantRetryDelayMs,getAttributionHeaders:()=>getAttributionHeaders,getCacheWarmingDelayMs:()=>getCacheWarmingDelayMs,getCacheWarmingRequestOptions:()=>getCacheWarmingRequestOptions,getClientProduct:()=>getClientProduct,getClientVersion:()=>getClientVersion,getCurrentSystemMessage:()=>getCurrentSystemMessage,getCurrentSystemPrompt:()=>getCurrentSystemPrompt,
|
|
20
|
+
getCurrentTools:()=>getCurrentTools,getDeclaredTools:()=>getDeclaredTools,getEnvApiKey:()=>getEnvApiKey,getIdentityHeaders:()=>getIdentityHeaders,getImageModel:()=>getImageModel,getImageModels:()=>getImageModels,getImageProviders:()=>getImageProviders,getImagesApiProvider:()=>getImagesApiProvider,getInitialSystemMessage:()=>getInitialSystemMessage,getModel:()=>getModel,getModelType:()=>getModelType,getModels:()=>getModels,getOpenAICodexTokenIdentity:()=>getOpenAICodexTokenIdentity,getOpenCodeSessionHeaders:()=>getOpenCodeSessionHeaders,
|
|
21
|
+
getOverflowPatterns:()=>getOverflowPatterns,getPromptCacheTtlMs:()=>getPromptCacheTtlMs,getProviders:()=>getProviders,getSupportedThinkingLevels:()=>getSupportedThinkingLevels,getSystemMessageText:()=>getSystemMessageText,getToolStateChanges:()=>getToolStateChanges,googleGenerativeAIApi:()=>googleGenerativeAIApi,googleVertexApi:()=>googleVertexApi,hasApi:()=>hasApi,hasNonAdditiveToolChanges:()=>hasNonAdditiveToolChanges,hasToolRedefinitions:()=>hasToolRedefinitions,isCacheWarmingReplayable:()=>isCacheWarmingReplayable,
|
|
22
|
+
isContextOverflow:()=>isContextOverflow,isModelType:()=>isModelType,isRecoverableLength:()=>isRecoverableLength,isRetryableAssistantError:()=>isRetryableAssistantError,lazyApi:()=>lazyApi,lazyOAuth:()=>lazyOAuth,lazyStream:()=>lazyStream,mergeClientIdentity:()=>mergeClientIdentity,mistralConversationsApi:()=>mistralConversationsApi,modelsAreEqual:()=>modelsAreEqual,normalizeAdmissionUsage:()=>normalizeAdmissionUsage,normalizeContext:()=>normalizeContext,openAICodexResponsesApi:()=>openAICodexResponsesApi,
|
|
23
|
+
openAICompletionsApi:()=>openAICompletionsApi,openAIResponsesApi:()=>openAIResponsesApi,parseJsonWithRepair:()=>parseJsonWithRepair,parseStreamingJson:()=>parseStreamingJson,parseStreamingJsonWhileStreaming:()=>parseStreamingJsonWhileStreaming,parseToolCallArguments:()=>parseToolCallArguments,piMessagesApi:()=>piMessagesApi,reduceAssistantMessageFrames:()=>reduceAssistantMessageFrames,registerApiProvider:()=>registerApiProvider,registerBuiltInApiProviders:()=>registerBuiltInApiProviders,registerBuiltInImagesApiProviders:()=>registerBuiltInImagesApiProviders,
|
|
24
|
+
registerFauxProvider:()=>registerFauxProvider,registerImagesApiProvider:()=>registerImagesApiProvider,registerSessionResourceCleanup:()=>registerSessionResourceCleanup,renderSystemMessageUpdate:()=>renderSystemMessageUpdate,repairJson:()=>repairJson,resetApiProviders:()=>resetApiProviders,resolveTranscript:()=>resolveTranscript,resolveTranscriptTools:()=>resolveTranscriptTools,retryAssistantCall:()=>retryAssistantCall,retryDelayMs:()=>retryDelayMs,setBedrockProviderLoader:()=>setBedrockProviderLoader,
|
|
25
|
+
setBedrockProviderModule:()=>setBedrockProviderModule,stream:()=>stream,streamAnthropic:()=>streamAnthropic,streamAzureOpenAIResponses:()=>streamAzureOpenAIResponses,streamGoogle:()=>streamGoogle,streamGoogleVertex:()=>streamGoogleVertex,streamMistral:()=>streamMistral,streamOpenAICodexResponses:()=>streamOpenAICodexResponses,streamOpenAICompletions:()=>streamOpenAICompletions,streamOpenAIResponses:()=>streamOpenAIResponses,streamSimple:()=>streamSimple,streamSimpleAnthropic:()=>streamSimpleAnthropic,
|
|
26
|
+
streamSimpleAzureOpenAIResponses:()=>streamSimpleAzureOpenAIResponses,streamSimpleGoogle:()=>streamSimpleGoogle,streamSimpleGoogleVertex:()=>streamSimpleGoogleVertex,streamSimpleMistral:()=>streamSimpleMistral,streamSimpleOpenAICodexResponses:()=>streamSimpleOpenAICodexResponses,streamSimpleOpenAICompletions:()=>streamSimpleOpenAICompletions,streamSimpleOpenAIResponses:()=>streamSimpleOpenAIResponses,streamWithProgressTimeout:()=>streamWithProgressTimeout,toToolDeclaration:()=>toToolDeclaration,
|
|
27
|
+
unregisterApiProviders:()=>unregisterApiProviders,uuidv7:()=>uuidv7,validateToolArguments:()=>validateToolArguments,validateToolCall:()=>validateToolCall,withClientIdentity:()=>withClientIdentity,withoutInitialSystemMessage:()=>withoutInitialSystemMessage});function StringEnum(values,options){return typebox_exports.Unsafe({type:"string",enum:values,...options?.description&&{description:options.description},...options?.default&&{default:options.default}})}var VIRTUAL_MODULES={typebox:build_exports,"typebox/compile":compile_exports,"typebox/value":value_exports,"@sinclair/typebox":build_exports,"@sinclair/typebox/compile":compile_exports,"@sinclair/typebox/value":value_exports,"@earendil-works/pi-agent-core":dist_exports2,"@earendil-works/pi-tui":dist_exports,"@earendil-works/pi-ai":pi_ai_extension_view_exports,"@earendil-works/pi-ai/compat":pi_ai_extension_view_exports,"@earendil-works/pi-ai/models":models_exports,"@earendil-works/pi-ai/oauth":oauth_exports,
|
|
28
|
+
"@earendil-works/pi-ai/providers/all":all_exports,"@earendil-works/pi-coding-agent":dist_exports3,"@mariozechner/pi-agent-core":dist_exports2,"@mariozechner/pi-tui":dist_exports,"@mariozechner/pi-ai":pi_ai_extension_view_exports,"@mariozechner/pi-ai/compat":pi_ai_extension_view_exports,"@mariozechner/pi-ai/models":models_exports,"@mariozechner/pi-ai/oauth":oauth_exports,"@mariozechner/pi-ai/providers/all":all_exports,"@mariozechner/pi-coding-agent":dist_exports3};export{VIRTUAL_MODULES};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
3
|
-
import{
|
|
4
|
-
import"./chunks/chunk-
|
|
5
|
-
import"./chunks/chunk-
|
|
3
|
+
import{consumeInternalProcessRole,getInternalProcessRole}from"./chunks/chunk-CTU2ECLD.js";import{main}from"./chunks/chunk-WQ7EJQIT.js";import"./chunks/chunk-66FZJO75.js";import"./chunks/chunk-NXA6NEHE.js";import{warnIfDeprecatedCommand}from"./chunks/chunk-T7BXP46S.js";import"./chunks/chunk-T5A6T24H.js";import"./chunks/chunk-Q5RKNQ2T.js";import"./chunks/chunk-7NKUVTBL.js";import"./chunks/chunk-QT6ZHDMP.js";import"./chunks/chunk-JSZBTGI6.js";import"./chunks/chunk-PWUDFU5V.js";import"./chunks/chunk-4V5VL2BO.js";
|
|
4
|
+
import"./chunks/chunk-MX4Q4W6H.js";import"./chunks/chunk-MD7K7RPN.js";import"./chunks/chunk-WAPZN4KP.js";import"./chunks/chunk-GTILMMUF.js";import"./chunks/chunk-5B25YXF7.js";import"./chunks/chunk-3HVHETMU.js";import"./chunks/chunk-RQU722SY.js";import"./chunks/chunk-SSRCVJZK.js";import"./chunks/chunk-ZJUU6WOV.js";import"./chunks/chunk-6P6GJPYB.js";import"./chunks/chunk-J57HOSWD.js";import{configureHttpDispatcher}from"./chunks/chunk-G4QPSFBF.js";import"./chunks/chunk-F6ZAYLU2.js";import"./chunks/chunk-WQOOJP7U.js";
|
|
5
|
+
import"./chunks/chunk-JF7FYXAI.js";import"./chunks/chunk-XQRYOCHA.js";import"./chunks/chunk-JYWUOKOI.js";import"./chunks/chunk-DNGJMRJW.js";import"./chunks/chunk-OB332KMV.js";import"./chunks/chunk-IWZQ25I3.js";import"./chunks/chunk-WCFHG6NO.js";import"./chunks/chunk-UZNIPOGS.js";import"./chunks/chunk-YPZPCHNV.js";import"./chunks/chunk-KTSJYIYC.js";import"./chunks/chunk-UEW6TUSP.js";import"./chunks/chunk-CRN54O4D.js";import"./chunks/chunk-KQM7ZGL6.js";import"./chunks/chunk-CIA6V3BP.js";import"./chunks/chunk-2H3LUS62.js";
|
|
6
|
+
import"./chunks/chunk-GRJUKEE3.js";import"./chunks/chunk-5L4PBYC7.js";import"./chunks/chunk-DBL35X7L.js";import"./chunks/chunk-IYGHKVUG.js";import"./chunks/chunk-LYZ37DJP.js";import"./chunks/chunk-AQ4EXORZ.js";import"./chunks/chunk-FACBDLFU.js";import"./chunks/chunk-AEWYICBL.js";import"./chunks/chunk-GY663MNP.js";import"./chunks/chunk-4HTVBBJD.js";import"./chunks/chunk-TGDPZCSW.js";import"./chunks/chunk-HTA325LJ.js";import"./chunks/chunk-XHDVDJM7.js";import"./chunks/chunk-2FYYW6FY.js";import"./chunks/chunk-LB4CIS4F.js";
|
|
7
|
+
import"./chunks/chunk-VEGJT52D.js";import"./chunks/chunk-6PNQYO6A.js";import"./chunks/chunk-R5OOX7RW.js";import{APP_COMMAND,ENV_PREFIX}from"./chunks/chunk-VFLVWPLZ.js";import"./chunks/chunk-JXWJOIH4.js";function setupCli(){process.title=APP_COMMAND,process.env.PI_CODING_AGENT="true",process.env[`${ENV_PREFIX}_CODING_AGENT`]="true",process.env.AI_AGENT="pi",process.emitWarning=(()=>{}),configureHttpDispatcher()}getInternalProcessRole()==="adaptive-peer"?(consumeInternalProcessRole(),import("./chunks/adaptive-peer-worker-X2ZNZE3S.js").then(({runAdaptivePeerWorker})=>runAdaptivePeerWorker()).catch(()=>process.exit(1))):(setupCli(),warnIfDeprecatedCommand(process.argv.slice(2)),main(process.argv.slice(2)));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orch-implementation-fast
|
|
3
3
|
description: Orchestrator fast implementer — handles simple, well-scoped changes cheaply. Cheapest sufficient model.
|
|
4
|
-
tools: read, write, edit, bash, grep, find, ls
|
|
4
|
+
tools: read, write, edit, bash, jobs, grep, find, ls
|
|
5
5
|
model: amazon-bedrock/global.openai.gpt-6-luna
|
|
6
6
|
---
|
|
7
|
-
You are a fast implementer
|
|
7
|
+
You are a fast implementer. You handle simple, well-scoped tasks where the change is localized and the acceptance criteria are explicit. Stay narrow. Run the project-specific checks. Report.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Make implementation decisions within the assigned scope. If scope grows or acceptance criteria remain unclear after inspecting the code, do not guess: preserve your work and report the conflict, following the task's scope-growth and status instructions.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Output fields: Completed / Files Changed / Verification / Notes / Escalation. Follow task-specific ordering and terminal markers.
|
|
12
12
|
|
|
13
13
|
Never kill processes by name or pattern (pkill -f, killall, kill $(pgrep …)); only kill PIDs you started and recorded. Other sessions on this machine run the same commands.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orch-implementation-strong
|
|
3
3
|
description: Orchestrator strong implementer — handles complex implementation tasks at standard or high effort.
|
|
4
|
-
tools: read, write, edit, bash, grep, find, ls
|
|
4
|
+
tools: read, write, edit, bash, jobs, grep, find, ls
|
|
5
5
|
model: amazon-bedrock/global.openai.gpt-6.1-sol
|
|
6
6
|
---
|
|
7
|
-
You are a strong implementer
|
|
7
|
+
You are a strong implementer. Implement the assigned goal within its scope and acceptance criteria. Run the project-specific checks (typecheck, lint, targeted tests). Report what you did.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Make implementation decisions within the assigned scope. Do not expand scope or guess past conflicting acceptance criteria. If the task exceeds that scope or the criteria contradict the code, preserve your work and report the conflict explicitly, following the task's scope-growth and status instructions.
|
|
10
10
|
|
|
11
|
-
Output format:
|
|
11
|
+
Output format (include these fields, following task-specific ordering and terminal markers):
|
|
12
12
|
|
|
13
13
|
## Completed
|
|
14
14
|
What was done, in 2-3 sentences.
|
|
@@ -20,7 +20,7 @@ What was done, in 2-3 sentences.
|
|
|
20
20
|
Test/typecheck/lint results.
|
|
21
21
|
|
|
22
22
|
## Notes
|
|
23
|
-
Anything the reviewer or
|
|
23
|
+
Anything the reviewer or parent should know.
|
|
24
24
|
|
|
25
25
|
Never kill processes by name or pattern (pkill -f, killall, kill $(pgrep …)); only kill PIDs you started and recorded. Other sessions on this machine run the same commands.
|
|
26
26
|
|
|
@@ -11,9 +11,41 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./test-support": {
|
|
15
|
+
"types": "./test/test-support.ts",
|
|
16
|
+
"import": "./test/test-support.ts"
|
|
17
|
+
},
|
|
14
18
|
"./extension": {
|
|
15
19
|
"types": "./dist/extension.d.ts",
|
|
16
20
|
"import": "./dist/extension.js"
|
|
21
|
+
},
|
|
22
|
+
"./dispatch": {
|
|
23
|
+
"types": "./dist/public/dispatch.d.ts",
|
|
24
|
+
"import": "./dist/public/dispatch.js"
|
|
25
|
+
},
|
|
26
|
+
"./core": {
|
|
27
|
+
"types": "./dist/public/core.d.ts",
|
|
28
|
+
"import": "./dist/public/core.js"
|
|
29
|
+
},
|
|
30
|
+
"./runtime": {
|
|
31
|
+
"types": "./dist/public/runtime.d.ts",
|
|
32
|
+
"import": "./dist/public/runtime.js"
|
|
33
|
+
},
|
|
34
|
+
"./telemetry": {
|
|
35
|
+
"types": "./dist/public/telemetry.d.ts",
|
|
36
|
+
"import": "./dist/public/telemetry.js"
|
|
37
|
+
},
|
|
38
|
+
"./pipeline": {
|
|
39
|
+
"types": "./dist/public/pipeline.d.ts",
|
|
40
|
+
"import": "./dist/public/pipeline.js"
|
|
41
|
+
},
|
|
42
|
+
"./executor": {
|
|
43
|
+
"types": "./dist/public/executor.d.ts",
|
|
44
|
+
"import": "./dist/public/executor.js"
|
|
45
|
+
},
|
|
46
|
+
"./recovery": {
|
|
47
|
+
"types": "./dist/public/recovery.d.ts",
|
|
48
|
+
"import": "./dist/public/recovery.js"
|
|
17
49
|
}
|
|
18
50
|
},
|
|
19
51
|
"files": [
|
|
@@ -28,9 +60,9 @@
|
|
|
28
60
|
},
|
|
29
61
|
"dependencies": {
|
|
30
62
|
"@babel/parser": "8.1.0",
|
|
31
|
-
"@earendil-works/pi-tui": "1.5.
|
|
32
|
-
"@humain/humain-code-contracts": "0.4.
|
|
33
|
-
"typebox": "1.4.
|
|
63
|
+
"@earendil-works/pi-tui": "1.5.2",
|
|
64
|
+
"@humain/humain-code-contracts": "0.4.21",
|
|
65
|
+
"typebox": "1.4.6"
|
|
34
66
|
},
|
|
35
67
|
"devDependencies": {
|
|
36
68
|
"vitest": "5.1.0"
|
package/dist/bundle/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
-
import{ShowImagesSelectorComponent,ThemeSelectorComponent}from"./chunks/chunk-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
findTurnStartIndex,flowBuildUnavailable,formatSkillsForPrompt,generateBranchSummary,generateDiffString,generateSummary,generateSummaryWithUsage,generateUnifiedPatch,getCompactionThreshold,
|
|
7
|
-
|
|
8
|
-
import{ProjectTrustStore,hasTrustRequiringProjectResources}from"./chunks/chunk-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import{RpcClient,ShowImagesSelectorComponent,ThemeSelectorComponent}from"./chunks/chunk-4QAXV5T6.js";import{AssistantMessageComponent,BashExecutionComponent,BorderedLoader,BranchSummaryMessageComponent,CompactionSummaryMessageComponent,CustomEditor,CustomMessageComponent,ExtensionEditorComponent,FLOW_ACCOUNT_PERSISTENCE_NOTICE,InteractiveMode,LoginDialogComponent,ModelSelectorComponent,OAuthSelectorComponent,SettingsSelectorComponent,SkillInvocationMessageComponent,ThinkingSelectorComponent,ToolExecutionComponent,
|
|
3
|
+
TreeSelectorComponent,UserMessageComponent,UserMessageSelectorComponent,getFlowAccountsHost}from"./chunks/chunk-32QLLD2P.js";import{ArminComponent}from"./chunks/chunk-KRCX3ZBA.js";import{SessionSelectorComponent}from"./chunks/chunk-GUHNFZ2Q.js";import"./chunks/chunk-AZXVJN6E.js";import{ExtensionInputComponent,ExtensionSelectorComponent}from"./chunks/chunk-I5E7RQ5V.js";import{AgentExecInputError,createMcpExtension,createPiAgentExecutionHost,createToolSearchExtension,executeHumainAgentRequest,main,runAgentExecMode,
|
|
4
|
+
runPrintMode,runRpcMode}from"./chunks/chunk-WQ7EJQIT.js";import{createCodemodeExtension}from"./chunks/chunk-66FZJO75.js";import{FooterComponent,copyToClipboard}from"./chunks/chunk-NXA6NEHE.js";import{ACCOUNT_RETURN_COOLDOWN_MS,ACCOUNT_RETURN_MAX_COOLDOWN_MS,AgentSession,AgentSessionRuntime,CredentialSynchronizationError,DEFAULT_COMPACTION_SETTINGS,DefaultResourceLoader,ExtensionRunner,FLOW_SETUP_TERMINAL_ONLY,FLOW_SUBCOMMANDS,ModelRegistry,ModelRuntime,OAuthAccountPool,assessNodeFallback,calculateContextTokens,
|
|
5
|
+
collectEntriesForBranchSummary,compact,completeFlowArguments,convertToPng,createAgentSession,createAgentSessionFromServices,createAgentSessionRuntime,createAgentSessionServices,createCodingTools,createEditTool,createEditToolDefinition,createEventBus,createExtensionRuntime,createFindTool,createFindToolDefinition,createGrepTool,createGrepToolDefinition,createJobsTool,createJobsToolDefinition,createLocalPowerShellOperations,createLsTool,createLsToolDefinition,createPowerShellTool,createPowerShellToolDefinition,
|
|
6
|
+
createReadOnlyTools,createReadTool,createReadToolDefinition,createSubagentTool,createWriteTool,createWriteToolDefinition,defineTool,detectSupportedImageMimeTypeFromFile,discoverAgents,discoverAndLoadExtensions,estimateTokens,findCutPoint,findTurnStartIndex,flowBuildUnavailable,formatSkillsForPrompt,generateBranchSummary,generateDiffString,generateSummary,generateSummaryWithUsage,generateUnifiedPatch,getCompactionThreshold,getFlowChildLaunchHost,getFlowControlHost,getFlowTraceProducer,getLastAssistantUsage,
|
|
7
|
+
isBashToolResult,isEditToolResult,isFindToolResult,isGrepToolResult,isLsToolResult,isPowerShellToolResult,isReadToolResult,isToolCallEventType,isWriteToolResult,loadProjectContextFiles,loadSkills,loadSkillsFromDir,parseArgs,parseFlowCommand,parseFrontmatter,parseSkillBlock,prepareBranchEntries,prepareChildLaunch,renderDiff,renderFlowHelp,renderTaskWithContext,resolveCliModel,resolveModelScopeWithDiagnostics,serializeConversation,shouldCompact,stripFrontmatter,withFileMutationQueue,wrapRegisteredTool,
|
|
8
|
+
wrapRegisteredTools}from"./chunks/chunk-T7BXP46S.js";import"./chunks/chunk-T5A6T24H.js";import"./chunks/chunk-Q5RKNQ2T.js";import"./chunks/chunk-7NKUVTBL.js";import"./chunks/chunk-QT6ZHDMP.js";import{ProjectTrustStore,hasTrustRequiringProjectResources}from"./chunks/chunk-JSZBTGI6.js";import{readStoredCredential}from"./chunks/chunk-PWUDFU5V.js";import"./chunks/chunk-4V5VL2BO.js";import{BashJobManager,VIRTUAL_MODEL_STATE_ENTRY,createBashTool,createBashToolDefinition,createLocalBashOperations}from"./chunks/chunk-MX4Q4W6H.js";
|
|
9
|
+
import"./chunks/chunk-MD7K7RPN.js";import"./chunks/chunk-WAPZN4KP.js";import"./chunks/chunk-GTILMMUF.js";import{formatReadLineRange,truncateToVisualLines}from"./chunks/chunk-5B25YXF7.js";import{DEFAULT_MAX_BYTES,DEFAULT_MAX_LINES,formatSize,truncateHead,truncateLine,truncateTail}from"./chunks/chunk-3HVHETMU.js";import"./chunks/chunk-RQU722SY.js";import{CURRENT_SESSION_VERSION,SessionManager,buildContextEntries,buildSessionContext,buildSessionProjection,convertToLlm,formatDimensionNote,getLatestCompactionEntry,
|
|
10
|
+
migrateSessionEntries,parseSessionEntries,resizeImage,sessionEntryToContextMessages}from"./chunks/chunk-SSRCVJZK.js";import"./chunks/chunk-ZJUU6WOV.js";import"./chunks/chunk-6P6GJPYB.js";import{DynamicBorder}from"./chunks/chunk-J57HOSWD.js";import{DefaultPackageManager,SettingsManager,createSyntheticSourceInfo}from"./chunks/chunk-G4QPSFBF.js";import"./chunks/chunk-F6ZAYLU2.js";import"./chunks/chunk-WQOOJP7U.js";import{Theme,getLanguageFromPath,getMarkdownTheme,getSelectListTheme,getSettingsListTheme,highlightCode,
|
|
11
|
+
initTheme,keyHint,keyText,rawKeyHint}from"./chunks/chunk-JF7FYXAI.js";import"./chunks/chunk-XQRYOCHA.js";import"./chunks/chunk-JYWUOKOI.js";import"./chunks/chunk-DNGJMRJW.js";import"./chunks/chunk-OB332KMV.js";import"./chunks/chunk-IWZQ25I3.js";import"./chunks/chunk-WCFHG6NO.js";import"./chunks/chunk-UZNIPOGS.js";import"./chunks/chunk-YPZPCHNV.js";import"./chunks/chunk-KTSJYIYC.js";import"./chunks/chunk-UEW6TUSP.js";import{getPowerShellConfig,getShellConfig}from"./chunks/chunk-CRN54O4D.js";import"./chunks/chunk-KQM7ZGL6.js";
|
|
12
|
+
import"./chunks/chunk-CIA6V3BP.js";import"./chunks/chunk-2H3LUS62.js";import"./chunks/chunk-GRJUKEE3.js";import"./chunks/chunk-5L4PBYC7.js";import"./chunks/chunk-DBL35X7L.js";import"./chunks/chunk-IYGHKVUG.js";import"./chunks/chunk-LYZ37DJP.js";import"./chunks/chunk-AQ4EXORZ.js";import"./chunks/chunk-FACBDLFU.js";import"./chunks/chunk-AEWYICBL.js";import"./chunks/chunk-GY663MNP.js";import"./chunks/chunk-4HTVBBJD.js";import"./chunks/chunk-TGDPZCSW.js";import{HUMAIN_AGENT_EXECUTION_FAILURE_CODES,HUMAIN_AGENT_EXECUTION_SCHEMA_VERSION,
|
|
13
|
+
HumainAgentArtifactSchema,HumainAgentExecutionClaimSchema,HumainAgentExecutionControlsSchema,HumainAgentExecutionOutcomeSchema,HumainAgentExecutionRequestSchema,HumainAgentExecutionResponseSchema,HumainAgentRouteRefSchema,HumainAgentUsageSchema,parseHumainAgentExecutionRequest,parseHumainAgentExecutionResponse}from"./chunks/chunk-HTA325LJ.js";import"./chunks/chunk-XHDVDJM7.js";import"./chunks/chunk-2FYYW6FY.js";import"./chunks/chunk-LB4CIS4F.js";import"./chunks/chunk-VEGJT52D.js";import"./chunks/chunk-6PNQYO6A.js";
|
|
14
|
+
import"./chunks/chunk-R5OOX7RW.js";import{CONFIG_DIR_NAME,UPSTREAM_PI_VERSION,VERSION,getAgentDir,getDocsPath,getExamplesPath,getPackageDir,getReadmePath}from"./chunks/chunk-VFLVWPLZ.js";import"./chunks/chunk-JXWJOIH4.js";export{ACCOUNT_RETURN_COOLDOWN_MS,ACCOUNT_RETURN_MAX_COOLDOWN_MS,AgentExecInputError,AgentSession,AgentSessionRuntime,ArminComponent,AssistantMessageComponent,BashExecutionComponent,BashJobManager,BorderedLoader,BranchSummaryMessageComponent,CONFIG_DIR_NAME,CURRENT_SESSION_VERSION,CompactionSummaryMessageComponent,CredentialSynchronizationError,CustomEditor,CustomMessageComponent,DEFAULT_COMPACTION_SETTINGS,DEFAULT_MAX_BYTES,DEFAULT_MAX_LINES,DefaultPackageManager,DefaultResourceLoader,DynamicBorder,
|
|
15
|
+
ExtensionEditorComponent,ExtensionInputComponent,ExtensionRunner,ExtensionSelectorComponent,FLOW_ACCOUNT_PERSISTENCE_NOTICE,FLOW_SETUP_TERMINAL_ONLY,FLOW_SUBCOMMANDS,FooterComponent,HUMAIN_AGENT_EXECUTION_FAILURE_CODES,HUMAIN_AGENT_EXECUTION_SCHEMA_VERSION,HumainAgentArtifactSchema,HumainAgentExecutionClaimSchema,HumainAgentExecutionControlsSchema,HumainAgentExecutionOutcomeSchema,HumainAgentExecutionRequestSchema,HumainAgentExecutionResponseSchema,HumainAgentRouteRefSchema,HumainAgentUsageSchema,
|
|
16
|
+
InteractiveMode,LoginDialogComponent,ModelRegistry,ModelRuntime,ModelSelectorComponent,OAuthAccountPool,OAuthSelectorComponent,ProjectTrustStore,RpcClient,SessionManager,SessionSelectorComponent,SettingsManager,SettingsSelectorComponent,ShowImagesSelectorComponent,SkillInvocationMessageComponent,Theme,ThemeSelectorComponent,ThinkingSelectorComponent,ToolExecutionComponent,TreeSelectorComponent,UPSTREAM_PI_VERSION,UserMessageComponent,UserMessageSelectorComponent,VERSION,VIRTUAL_MODEL_STATE_ENTRY,
|
|
17
|
+
assessNodeFallback,buildContextEntries,buildSessionContext,buildSessionProjection,calculateContextTokens,collectEntriesForBranchSummary,compact,completeFlowArguments,convertToLlm,convertToPng,copyToClipboard,createAgentSession,createAgentSessionFromServices,createAgentSessionRuntime,createAgentSessionServices,createBashTool,createBashToolDefinition,createCodemodeExtension,createCodingTools,createEditTool,createEditToolDefinition,createEventBus,createExtensionRuntime,createFindTool,createFindToolDefinition,
|
|
18
|
+
createGrepTool,createGrepToolDefinition,createJobsTool,createJobsToolDefinition,createLocalBashOperations,createLocalPowerShellOperations,createLsTool,createLsToolDefinition,createMcpExtension,createPiAgentExecutionHost,createPowerShellTool,createPowerShellToolDefinition,createReadOnlyTools,createReadTool,createReadToolDefinition,createSubagentTool,createSyntheticSourceInfo,createToolSearchExtension,createWriteTool,createWriteToolDefinition,defineTool,detectSupportedImageMimeTypeFromFile,discoverAgents,
|
|
19
|
+
discoverAndLoadExtensions,estimateTokens,executeHumainAgentRequest,findCutPoint,findTurnStartIndex,flowBuildUnavailable,formatDimensionNote,formatReadLineRange,formatSize,formatSkillsForPrompt,generateBranchSummary,generateDiffString,generateSummary,generateSummaryWithUsage,generateUnifiedPatch,getAgentDir,getCompactionThreshold,getDocsPath,getExamplesPath,getFlowAccountsHost,getFlowChildLaunchHost,getFlowControlHost,getFlowTraceProducer,getLanguageFromPath,getLastAssistantUsage,getLatestCompactionEntry,
|
|
20
|
+
getMarkdownTheme,getPackageDir,getPowerShellConfig,getReadmePath,getSelectListTheme,getSettingsListTheme,getShellConfig,hasTrustRequiringProjectResources,highlightCode,initTheme,isBashToolResult,isEditToolResult,isFindToolResult,isGrepToolResult,isLsToolResult,isPowerShellToolResult,isReadToolResult,isToolCallEventType,isWriteToolResult,keyHint,keyText,loadProjectContextFiles,loadSkills,loadSkillsFromDir,main,migrateSessionEntries,parseArgs,parseFlowCommand,parseFrontmatter,parseHumainAgentExecutionRequest,
|
|
21
|
+
parseHumainAgentExecutionResponse,parseSessionEntries,parseSkillBlock,prepareBranchEntries,prepareChildLaunch,rawKeyHint,readStoredCredential,renderDiff,renderFlowHelp,renderTaskWithContext,resizeImage,resolveCliModel,resolveModelScopeWithDiagnostics,runAgentExecMode,runPrintMode,runRpcMode,serializeConversation,sessionEntryToContextMessages,shouldCompact,stripFrontmatter,truncateHead,truncateLine,truncateTail,truncateToVisualLines,withFileMutationQueue,wrapRegisteredTool,wrapRegisteredTools};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @humain/orchestrate
|
|
2
|
+
|
|
3
|
+
Private workspace package for the multi-agent hierarchy behind `/orchestrate`, `/flow orchestrate`,
|
|
4
|
+
frozen large admissions, hierarchy recovery and lean hierarchy handovers. HUMAIN Code bundles it as a
|
|
5
|
+
separate lazy chunk. Help, completion, CLI, SDK and RPC startup load neither executor package.
|
|
6
|
+
Ordinary SMALL/MEDIUM `/flow run` does not load Orchestrate.
|
|
7
|
+
|
|
8
|
+
## Runtime ownership
|
|
9
|
+
|
|
10
|
+
`createOrchestrateExtension` registers the executor and its policies through the initialized Flow
|
|
11
|
+
instance's `FlowHierarchyCommands.hierarchyExecutor` hook. It does not initialize Flow again.
|
|
12
|
+
Flow retains admission, the active-run registry, run session, child bootstrap, deterministic checks,
|
|
13
|
+
candidate integrity, repair evidence/bounds, recovery storage/claims/effects, telemetry and usage ledger.
|
|
14
|
+
An unavailable hierarchy executor is refused with failure class `internal`, never executed through lean.
|
|
15
|
+
|
|
16
|
+
The implementation lives under `src/`: `pipeline/hierarchy-executor.ts` and `pipeline/hierarchy.ts`,
|
|
17
|
+
independent flat/risk review, lead assignment and recon planning, file ownership, capability escalation,
|
|
18
|
+
hierarchy prompts, nested role-cost interpretation and saved hierarchy-scope interpretation.
|
|
19
|
+
Shared scalar run metadata and generic child-usage accumulation remain in Flow; they are not copied.
|
|
20
|
+
|
|
21
|
+
Production imports use Flow's declared `executor`, `core`, `pipeline`, `dispatch`, `recovery`,
|
|
22
|
+
`telemetry` and `runtime` entry points. Shared tests use `@humain/flow/test-support`.
|
|
23
|
+
See [executor boundaries](../flow/docs/executors.md#s3-package-boundary).
|
|
24
|
+
|
|
25
|
+
## Trusted assets
|
|
26
|
+
|
|
27
|
+
This package ships hierarchy personas in `agents/`; Flow ships the two implementer personas.
|
|
28
|
+
`src/paths.ts` resolves this package from source or an installed layout and validates the manifest
|
|
29
|
+
name `@humain/orchestrate`. A bundled host supplies `HUMAIN_TERMINAL_ORCHESTRATE_PACKAGE_DIR`;
|
|
30
|
+
relative or wrong-manifest overrides fail closed.
|
|
31
|
+
|
|
32
|
+
Registration supplies both trusted roots to Flow. For nested children, Flow creates a private,
|
|
33
|
+
child-lifetime directory containing packaged definitions from both roots. User-level overrides keep
|
|
34
|
+
their existing precedence; repository-local files cannot override packaged names or replace missing
|
|
35
|
+
trusted definitions. Node bundles and binary distributions include both packages' own assets.
|
|
36
|
+
|
|
37
|
+
Profiles, admissions, events, settlement and recovery snapshot formats are unchanged.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orch-qa-agent
|
|
3
3
|
description: Orchestrator QA — runs the project-specific verification suite and reports results.
|
|
4
|
-
tools: read, bash, grep, find, ls
|
|
4
|
+
tools: read, bash, jobs, grep, find, ls
|
|
5
5
|
model: amazon-bedrock/global.anthropic.claude-sonnet-5-5
|
|
6
6
|
---
|
|
7
7
|
You are the QA agent in a hierarchical orchestration. Run the project-specific checks the architect declared in the verification strategy: typecheck, unit tests, integration tests, formatter, lint. Report PASS/FAIL per check. Do NOT modify source — only verify.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orch-worker
|
|
3
3
|
description: Orchestrator worker — cheapest sufficient tier for bounded mechanical work (renames, scaffolding, migrations).
|
|
4
|
-
tools: read, write, edit, bash, grep, find, ls
|
|
4
|
+
tools: read, write, edit, bash, jobs, grep, find, ls
|
|
5
5
|
model: amazon-bedrock/global.openai.gpt-6-luna
|
|
6
6
|
---
|
|
7
7
|
You are a worker in a hierarchical orchestration. You handle bounded, mechanical tasks: renaming, scaffolding, format conversions, bulk edits, simple migrations. The work is well-scoped and the acceptance criteria are explicit.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrator-lead
|
|
3
3
|
description: Hierarchical orchestrator lead — receives parent-owned recon evidence; plans and delegates implementation to orch-implementation-* subagents, dispatches reviewers, runs targeted verification, escalates failures; final QA is the orchestrator's. Never edits files itself.
|
|
4
|
-
tools: read, bash, grep, find, ls, subagent
|
|
4
|
+
tools: read, bash, jobs, grep, find, ls, subagent
|
|
5
5
|
---
|
|
6
6
|
You are the lead agent in a hierarchical orchestration. You receive a goal, a routing decision, a topology, and (for complexity ≥ the recon threshold) evidence packets that parent-owned scouts already gathered. Drive the work to completion by delegating, not implementing. Repair continuation is governed by comparable deterministic check evidence, not your report or QA prose.
|
|
7
7
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@humain/orchestrate",
|
|
3
|
+
"version": "0.4.0-orchestrate.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "HUMAIN multi-agent hierarchy commands",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" },
|
|
11
|
+
"./extension": { "types": "./dist/extension.d.ts", "import": "./dist/extension.js" }
|
|
12
|
+
},
|
|
13
|
+
"files": ["dist", "agents", "README.md"],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"clean": "node ../../scripts/clean-package.mjs dist",
|
|
16
|
+
"build": "tsc -p tsconfig.build.json",
|
|
17
|
+
"test": "vitest --run"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": { "@humain/flow": "0.4.0-flow.0" },
|
|
20
|
+
"devDependencies": { "vitest": "5.1.0" },
|
|
21
|
+
"author": "HUMAIN",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://gitlab.humain.com/humain/data-and-ai-modeling/standard/agentic/humain-terminal.git",
|
|
26
|
+
"directory": "packages/orchestrate"
|
|
27
|
+
},
|
|
28
|
+
"engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }
|
|
29
|
+
}
|
package/dist/bundle/rpc-entry.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
3
|
-
import{
|
|
4
|
-
import"./chunks/chunk-
|
|
5
|
-
import"./chunks/chunk-
|
|
3
|
+
import{main}from"./chunks/chunk-WQ7EJQIT.js";import"./chunks/chunk-66FZJO75.js";import"./chunks/chunk-NXA6NEHE.js";import"./chunks/chunk-T7BXP46S.js";import"./chunks/chunk-T5A6T24H.js";import"./chunks/chunk-Q5RKNQ2T.js";import"./chunks/chunk-7NKUVTBL.js";import"./chunks/chunk-QT6ZHDMP.js";import"./chunks/chunk-JSZBTGI6.js";import"./chunks/chunk-PWUDFU5V.js";import"./chunks/chunk-4V5VL2BO.js";import"./chunks/chunk-MX4Q4W6H.js";import"./chunks/chunk-MD7K7RPN.js";import"./chunks/chunk-WAPZN4KP.js";import"./chunks/chunk-GTILMMUF.js";
|
|
4
|
+
import"./chunks/chunk-5B25YXF7.js";import"./chunks/chunk-3HVHETMU.js";import"./chunks/chunk-RQU722SY.js";import"./chunks/chunk-SSRCVJZK.js";import"./chunks/chunk-ZJUU6WOV.js";import"./chunks/chunk-6P6GJPYB.js";import"./chunks/chunk-J57HOSWD.js";import{configureHttpDispatcher}from"./chunks/chunk-G4QPSFBF.js";import"./chunks/chunk-F6ZAYLU2.js";import"./chunks/chunk-WQOOJP7U.js";import"./chunks/chunk-JF7FYXAI.js";import"./chunks/chunk-XQRYOCHA.js";import"./chunks/chunk-JYWUOKOI.js";import"./chunks/chunk-DNGJMRJW.js";
|
|
5
|
+
import"./chunks/chunk-OB332KMV.js";import"./chunks/chunk-IWZQ25I3.js";import"./chunks/chunk-WCFHG6NO.js";import"./chunks/chunk-UZNIPOGS.js";import"./chunks/chunk-YPZPCHNV.js";import"./chunks/chunk-KTSJYIYC.js";import"./chunks/chunk-UEW6TUSP.js";import"./chunks/chunk-CRN54O4D.js";import"./chunks/chunk-KQM7ZGL6.js";import"./chunks/chunk-CIA6V3BP.js";import"./chunks/chunk-2H3LUS62.js";import"./chunks/chunk-GRJUKEE3.js";import"./chunks/chunk-5L4PBYC7.js";import"./chunks/chunk-DBL35X7L.js";import"./chunks/chunk-IYGHKVUG.js";
|
|
6
|
+
import"./chunks/chunk-LYZ37DJP.js";import"./chunks/chunk-AQ4EXORZ.js";import"./chunks/chunk-FACBDLFU.js";import"./chunks/chunk-AEWYICBL.js";import"./chunks/chunk-GY663MNP.js";import"./chunks/chunk-4HTVBBJD.js";import"./chunks/chunk-TGDPZCSW.js";import"./chunks/chunk-HTA325LJ.js";import"./chunks/chunk-XHDVDJM7.js";import"./chunks/chunk-2FYYW6FY.js";import"./chunks/chunk-LB4CIS4F.js";import"./chunks/chunk-VEGJT52D.js";import"./chunks/chunk-6PNQYO6A.js";import"./chunks/chunk-R5OOX7RW.js";import{APP_COMMAND}from"./chunks/chunk-VFLVWPLZ.js";
|
|
7
|
+
import"./chunks/chunk-JXWJOIH4.js";process.title=`${APP_COMMAND}-rpc`;process.env.PI_CODING_AGENT="true";process.env.AI_AGENT="pi";process.emitWarning=(()=>{});configureHttpDispatcher();main(["--mode","rpc",...process.argv.slice(2)]);
|
package/dist/cli/args.d.ts
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import type { ThinkingLevel } from "@earendil-works/pi-agent-core";
|
|
5
5
|
import type { ExtensionFlag } from "../core/extensions/types.ts";
|
|
6
6
|
import { type TuiMode } from "../core/settings-manager.ts";
|
|
7
|
+
import { type HcodeEnvironmentName } from "../humain/hcode/environment.ts";
|
|
7
8
|
export type Mode = "text" | "json" | "rpc" | "agent-exec";
|
|
8
9
|
export interface Args {
|
|
9
10
|
cwd?: string;
|
|
11
|
+
environment?: HcodeEnvironmentName;
|
|
10
12
|
provider?: string;
|
|
11
13
|
model?: string;
|
|
12
14
|
apiKey?: string;
|
|
@@ -35,6 +37,8 @@ export interface Args {
|
|
|
35
37
|
noExtensions?: boolean;
|
|
36
38
|
noMcp?: boolean;
|
|
37
39
|
print?: boolean;
|
|
40
|
+
literalPrompt?: boolean;
|
|
41
|
+
timeLimitSeconds?: number;
|
|
38
42
|
export?: string;
|
|
39
43
|
noSkills?: boolean;
|
|
40
44
|
skills?: string[];
|
|
@@ -68,5 +72,7 @@ export declare function normalizeSessionName(value: string): string | undefined;
|
|
|
68
72
|
*/
|
|
69
73
|
export declare function missingExtensionPaths(paths: string[] | undefined, cwd?: string): string[];
|
|
70
74
|
export declare function parseArgs(args: string[]): Args;
|
|
75
|
+
/** Removes only successfully parsed environment spans, leaving option values and literal prompts intact. */
|
|
76
|
+
export declare function stripStartupEnvArgs(args: string[]): string[];
|
|
71
77
|
export declare function printHelp(extensionFlags?: ExtensionFlag[]): void;
|
|
72
78
|
//# sourceMappingURL=args.d.ts.map
|
package/dist/cli/args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AACA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAenE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AACA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAenE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,oBAAoB,EAA2B,MAAM,gCAAgC,CAAC;AAGpG,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,IAAI;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8EAA8E;IAC9E,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;IAC5C,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnE;AAID,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE1E;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGtE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,GAAE,MAAsB,GAAG,MAAM,EAAE,CAExG;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAE9C;AAED,4GAA4G;AAC5G,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAS5D;AAmRD,wBAAgB,SAAS,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CA4NhE"}
|
package/dist/cli/args.js
CHANGED
|
@@ -6,6 +6,7 @@ import { existsSync } from "node:fs";
|
|
|
6
6
|
import chalk from "chalk";
|
|
7
7
|
import { APP_COMMAND, APP_TITLE, CONFIG_DIR_NAME, DEFAULT_SHARE_VIEWER_URL, ENV_AGENT_DIR, ENV_OFFLINE, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, ENV_SESSION_DIR, ENV_SHARE_VIEWER_URL, ENV_TELEMETRY, } from "../config.js";
|
|
8
8
|
import { getToolListError } from "../core/settings-manager.js";
|
|
9
|
+
import { resolveHcodeEnvironment } from "../humain/hcode/environment.js";
|
|
9
10
|
import { isLocalPath, resolvePath } from "../utils/paths.js";
|
|
10
11
|
const VALID_THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
11
12
|
export function isValidThinkingLevel(level) {
|
|
@@ -24,6 +25,19 @@ export function missingExtensionPaths(paths, cwd = process.cwd()) {
|
|
|
24
25
|
return (paths ?? []).filter((value) => isLocalPath(value) && !existsSync(resolvePath(value, cwd)));
|
|
25
26
|
}
|
|
26
27
|
export function parseArgs(args) {
|
|
28
|
+
return parseStartupArgs(args).parsed;
|
|
29
|
+
}
|
|
30
|
+
/** Removes only successfully parsed environment spans, leaving option values and literal prompts intact. */
|
|
31
|
+
export function stripStartupEnvArgs(args) {
|
|
32
|
+
const { parsed, environmentArgs } = parseStartupArgs(args);
|
|
33
|
+
if (parsed.diagnostics.some((diagnostic) => diagnostic.message === "Invalid --env. Choose dev, staging, or production."))
|
|
34
|
+
throw new Error("Invalid --env. Choose dev, staging, or production.");
|
|
35
|
+
return args.filter((_arg, index) => !environmentArgs.has(index));
|
|
36
|
+
}
|
|
37
|
+
function parseStartupArgs(args) {
|
|
38
|
+
const environmentArgs = new Set();
|
|
39
|
+
let environmentSeen = false;
|
|
40
|
+
let mcpCommand = false;
|
|
27
41
|
const result = {
|
|
28
42
|
messages: [],
|
|
29
43
|
fileArgs: [],
|
|
@@ -43,6 +57,23 @@ export function parseArgs(args) {
|
|
|
43
57
|
}
|
|
44
58
|
break;
|
|
45
59
|
}
|
|
60
|
+
else if (!mcpCommand && (arg === "--env" || arg.startsWith("--env="))) {
|
|
61
|
+
const start = i;
|
|
62
|
+
const value = arg === "--env" ? args[i + 1] : arg.slice(6);
|
|
63
|
+
if (arg === "--env" && value !== undefined && !value.startsWith("-"))
|
|
64
|
+
i++;
|
|
65
|
+
try {
|
|
66
|
+
if (environmentSeen || value === undefined)
|
|
67
|
+
throw new Error();
|
|
68
|
+
result.environment = resolveHcodeEnvironment(value).id;
|
|
69
|
+
for (let index = start; index <= i; index++)
|
|
70
|
+
environmentArgs.add(index);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
result.diagnostics.push({ type: "error", message: "Invalid --env. Choose dev, staging, or production." });
|
|
74
|
+
}
|
|
75
|
+
environmentSeen = true;
|
|
76
|
+
}
|
|
46
77
|
else if (arg === "--help" || arg === "-h") {
|
|
47
78
|
result.help = true;
|
|
48
79
|
}
|
|
@@ -78,6 +109,23 @@ export function parseArgs(args) {
|
|
|
78
109
|
}
|
|
79
110
|
result.mode = mode;
|
|
80
111
|
}
|
|
112
|
+
else if (arg === "--time-limit") {
|
|
113
|
+
const value = args[i + 1];
|
|
114
|
+
if (value !== undefined && (!value.startsWith("-") || /^-\d/.test(value)))
|
|
115
|
+
i++;
|
|
116
|
+
if (value === undefined ||
|
|
117
|
+
!/^\d+$/.test(value) ||
|
|
118
|
+
!Number.isSafeInteger(Number(value)) ||
|
|
119
|
+
Number(value) <= 0) {
|
|
120
|
+
result.diagnostics.push({
|
|
121
|
+
type: "error",
|
|
122
|
+
message: "--time-limit requires a positive integer number of seconds",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
result.timeLimitSeconds = Number(value);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
81
129
|
else if (arg === "--continue" || arg === "-c") {
|
|
82
130
|
result.continue = true;
|
|
83
131
|
}
|
|
@@ -194,6 +242,18 @@ export function parseArgs(args) {
|
|
|
194
242
|
i++;
|
|
195
243
|
}
|
|
196
244
|
}
|
|
245
|
+
else if (arg === "--literal-prompt") {
|
|
246
|
+
const text = args[i + 1];
|
|
247
|
+
if (text === undefined) {
|
|
248
|
+
result.diagnostics.push({ type: "error", message: "--literal-prompt requires text" });
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
result.literalPrompt = true;
|
|
252
|
+
result.print = true;
|
|
253
|
+
result.messages.push(text);
|
|
254
|
+
i++;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
197
257
|
else if (arg === "--export" && i + 1 < args.length) {
|
|
198
258
|
result.export = args[++i];
|
|
199
259
|
}
|
|
@@ -306,10 +366,13 @@ export function parseArgs(args) {
|
|
|
306
366
|
result.diagnostics.push({ type: "error", message: `Unknown option: ${arg}` });
|
|
307
367
|
}
|
|
308
368
|
else if (!arg.startsWith("-")) {
|
|
369
|
+
// MCP already owns repeatable --env KEY=VALUE inputs after its subcommand.
|
|
370
|
+
if (arg === "mcp" && result.messages.length === 0)
|
|
371
|
+
mcpCommand = true;
|
|
309
372
|
result.messages.push(arg);
|
|
310
373
|
}
|
|
311
374
|
}
|
|
312
|
-
return result;
|
|
375
|
+
return { parsed: result, environmentArgs };
|
|
313
376
|
}
|
|
314
377
|
export function printHelp(extensionFlags) {
|
|
315
378
|
const extensionFlagsText = extensionFlags && extensionFlags.length > 0
|
|
@@ -339,6 +402,7 @@ ${chalk.bold("Commands:")}
|
|
|
339
402
|
${APP_COMMAND} <command> --help Show help for install/remove/uninstall/update/list/config/auth/mcp/trace
|
|
340
403
|
|
|
341
404
|
${chalk.bold("Options:")}
|
|
405
|
+
--env dev|staging|production HUMAIN Code environment (default: dev)
|
|
342
406
|
--provider <name> Provider to search for --model (requires --model)
|
|
343
407
|
--model <pattern> Model pattern or ID (supports "provider/id" and optional ":<thinking>")
|
|
344
408
|
--api-key <key> API key (defaults to env vars)
|
|
@@ -347,6 +411,8 @@ ${chalk.bold("Options:")}
|
|
|
347
411
|
--mode <mode> Output mode: text (default), json, rpc, or agent-exec JSONL
|
|
348
412
|
--cwd <dir> Start in the given directory
|
|
349
413
|
--print, -p Non-interactive mode: process prompt and exit
|
|
414
|
+
--literal-prompt <text> Print/JSON literal text without commands, templates, options, or @attachments
|
|
415
|
+
--time-limit <seconds> Session time budget (positive integer; print, JSON and RPC only)
|
|
350
416
|
--continue, -c Continue the most recent session for the current directory
|
|
351
417
|
--resume, -r Pick a session to resume
|
|
352
418
|
--session <path|id> Open a session by file path or full/partial ID
|
|
@@ -518,7 +584,8 @@ ${chalk.bold("Environment Variables:")}
|
|
|
518
584
|
|
|
519
585
|
${chalk.bold("Built-in Tool Names:")}
|
|
520
586
|
read - Read file contents
|
|
521
|
-
bash - Execute bash commands
|
|
587
|
+
bash - Execute bash commands, optionally in the background
|
|
588
|
+
jobs - List, read, wait for, or kill background bash jobs
|
|
522
589
|
powershell - Execute PowerShell commands on Windows
|
|
523
590
|
edit - Edit files with find/replace
|
|
524
591
|
write - Write files (creates/overwrites)
|