@qwen-code/qwen-code 0.21.14 → 0.21.15
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/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +20 -2
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/bundled/review/SKILL.md +66 -36
- package/chunks/{MaxSizedBox-67IDQILY.js → MaxSizedBox-E7CUU3UN.js} +43 -43
- package/chunks/{StandaloneSessionPicker-G4QJIRMH.js → StandaloneSessionPicker-XYUB75AQ.js} +63 -63
- package/chunks/{acp-startup-profiler-HUYGO57H.js → acp-startup-profiler-DDVSJKJK.js} +2 -2
- package/chunks/{acpAgent-BS3YYO33.js → acpAgent-5QZS4VMN.js} +507 -176
- package/chunks/{agent-EHHEXKWN.js → agent-242BTA6Q.js} +40 -40
- package/chunks/{agent-headless-UT2ZF76T.js → agent-headless-4BF7W4TJ.js} +40 -40
- package/chunks/{anthropicContentGenerator-M7XRJMSK.js → anthropicContentGenerator-CU3G53RX.js} +7 -7
- package/chunks/{artifact-tool-GEXTOPVO.js → artifact-tool-LIUSI4XK.js} +3 -3
- package/chunks/{askUserQuestion-B33XRSB7.js → askUserQuestion-454X3UIV.js} +3 -3
- package/chunks/{bridge-WQ4IL2RF.js → bridge-MG4F5NOH.js} +46 -45
- package/chunks/{channel-management-service-X6LCQUAD.js → channel-management-service-KHPAWCX7.js} +1 -1
- package/chunks/{channel-settings-store-ZDFXY7VY.js → channel-settings-store-GQUCL2YM.js} +47 -47
- package/chunks/{channel-worker-group-TJ35JDPE.js → channel-worker-group-IN2UPYHP.js} +6 -5
- package/chunks/{channel-worker-manager-G5LKWGOG.js → channel-worker-manager-4CQPHVD4.js} +6 -5
- package/chunks/{channel-worker-supervisor-OEVWBHGT.js → channel-worker-supervisor-CPPSL7ZH.js} +4 -3
- package/chunks/{chunk-3EZLLVDF.js → chunk-263JC66E.js} +3 -3
- package/chunks/{chunk-OO4FKHLO.js → chunk-2GM44E7D.js} +10 -298
- package/chunks/{chunk-LSO6EL4Y.js → chunk-2MDUS4XE.js} +2 -2
- package/chunks/{chunk-WGHHA7ZH.js → chunk-3C55EUJX.js} +1 -1
- package/chunks/{chunk-47L5MLB5.js → chunk-3EAGKRLN.js} +5 -5
- package/chunks/{chunk-WPVUOVYX.js → chunk-3EQHT3IC.js} +2 -2
- package/chunks/{chunk-OEZCXK7Y.js → chunk-3JZ2AZC6.js} +4 -4
- package/chunks/{chunk-PCETXVVV.js → chunk-3X6KVX37.js} +1 -1
- package/chunks/{chunk-J63PKMYA.js → chunk-435GZDTF.js} +2 -2
- package/chunks/{chunk-I3N2Z25H.js → chunk-47VTGCYK.js} +3 -3
- package/chunks/{chunk-3PWNVF6N.js → chunk-4APB4SP2.js} +1 -1
- package/chunks/{chunk-MA2HEDVP.js → chunk-4CKU5K2R.js} +1 -1
- package/chunks/{chunk-OJB5FYVK.js → chunk-4IOBHNV2.js} +1 -1
- package/chunks/{chunk-MIPFDQAF.js → chunk-4W4BROUS.js} +1 -1
- package/chunks/{chunk-ZIGC3MUS.js → chunk-55P2ESI6.js} +1 -1
- package/chunks/{chunk-CHHABXPE.js → chunk-5AAW6E3C.js} +1 -1
- package/chunks/{chunk-J6YS7Z25.js → chunk-5I2U4PDY.js} +12 -12
- package/chunks/{chunk-NWNEANAT.js → chunk-5M7YKTYX.js} +6 -6
- package/chunks/{chunk-RXHBTKMG.js → chunk-5MA4E4EG.js} +3 -3
- package/chunks/{chunk-CEXU72GE.js → chunk-5NAJDTVP.js} +3 -3
- package/chunks/{chunk-U657UZJN.js → chunk-5WEMSDPR.js} +5 -5
- package/chunks/{chunk-73JUK3ZW.js → chunk-63AIQ2IZ.js} +96 -15
- package/chunks/{chunk-E5WQMF3K.js → chunk-67L6PVD6.js} +2 -2
- package/chunks/{chunk-CZK622ZK.js → chunk-6IFWBM24.js} +3 -3
- package/chunks/{chunk-CPHEPGAO.js → chunk-722JBVVW.js} +1 -1
- package/chunks/chunk-7NLDU6J2.js +367 -0
- package/chunks/{chunk-AKBOLMUF.js → chunk-7S22SX2L.js} +2 -2
- package/chunks/{chunk-SCZU65AI.js → chunk-7VRNXKKK.js} +8 -8
- package/chunks/{chunk-XUJNK7Y6.js → chunk-7WVB4FMG.js} +1 -1
- package/chunks/{chunk-55VKMB7X.js → chunk-A7MIUCUQ.js} +6 -6
- package/chunks/{chunk-NVRMCWTP.js → chunk-A7NBZBGQ.js} +3 -3
- package/chunks/{chunk-N6RSOOWJ.js → chunk-AAG7I5CR.js} +7 -7
- package/chunks/{chunk-EOPBFLA5.js → chunk-AKN26LMT.js} +3 -3
- package/chunks/{chunk-UC67T4SF.js → chunk-AQFWV4YF.js} +2 -1
- package/chunks/{chunk-DVR7XKO5.js → chunk-B5LEKTE7.js} +2 -2
- package/chunks/{chunk-V6WEMZPD.js → chunk-B72KNVKO.js} +3 -3
- package/chunks/{chunk-544KT7X4.js → chunk-BBMVUTXO.js} +1 -1
- package/chunks/{chunk-DHUPMYMC.js → chunk-BORX4PBQ.js} +12 -12
- package/chunks/{chunk-5IJSFWQO.js → chunk-BUZESYJT.js} +4 -4
- package/chunks/{chunk-Y4RVDOXV.js → chunk-DF7KFKCL.js} +4 -4
- package/chunks/{chunk-K2Y45XXS.js → chunk-DFOKBPH5.js} +108 -26
- package/chunks/{chunk-3SL2P3WX.js → chunk-DIHJXVT4.js} +1 -1
- package/chunks/{chunk-WAO53ZQF.js → chunk-DITDNF3D.js} +22 -2
- package/chunks/{chunk-2A6VQJYK.js → chunk-DK4HL3IB.js} +7 -7
- package/chunks/{chunk-6BJSYAML.js → chunk-DPXZUGDQ.js} +46 -21
- package/chunks/{chunk-MVHJZ3FZ.js → chunk-DZNQHKZZ.js} +2 -2
- package/chunks/{chunk-SNQZZ765.js → chunk-EB27VF5Z.js} +2 -2
- package/chunks/{chunk-KC4WMLZO.js → chunk-EXY6APEA.js} +81 -50
- package/chunks/{chunk-7VNHO4MN.js → chunk-F3FRTY4Q.js} +16 -7
- package/chunks/{chunk-FS5NGKWC.js → chunk-F5JZDC4O.js} +3 -3
- package/chunks/{chunk-6QFDQMQX.js → chunk-F7ZK5VMA.js} +1 -1
- package/chunks/{chunk-2B2BF7P7.js → chunk-FAIJ5UIU.js} +3 -3
- package/chunks/{chunk-G6KI5UOJ.js → chunk-FQ6G527Y.js} +3 -3
- package/chunks/{chunk-WSSH2BNO.js → chunk-FQZBD3PY.js} +1 -1
- package/chunks/{chunk-OVY67CYC.js → chunk-G32ESUUC.js} +1 -1
- package/chunks/{chunk-OBJYN4MX.js → chunk-G64PEZZ5.js} +2 -2
- package/chunks/{chunk-QRVHGEVY.js → chunk-GCWILQKA.js} +3 -3
- package/chunks/{chunk-QUGAUQGJ.js → chunk-GX2THELY.js} +1 -0
- package/chunks/{chunk-L3T4V5GZ.js → chunk-GYVB4P5B.js} +721 -331
- package/chunks/{chunk-FAAUPSY2.js → chunk-HEMFCAHG.js} +1 -1
- package/chunks/{chunk-AZQ3DT76.js → chunk-HGGMEDDY.js} +2 -2
- package/chunks/{chunk-SG7ZP5PG.js → chunk-HHNSO2Y4.js} +4 -4
- package/chunks/{chunk-YHXQK4SR.js → chunk-HSCPOEBL.js} +3 -3
- package/chunks/{chunk-H3SHU2XU.js → chunk-I3AB5DOZ.js} +3 -3
- package/chunks/{chunk-SFJMFZT5.js → chunk-IBUXQJHH.js} +1 -1
- package/chunks/{chunk-FN6M5WUL.js → chunk-IFOR6I5C.js} +4 -4
- package/chunks/{chunk-PHN4R2ZV.js → chunk-IU2XWUSI.js} +1 -1
- package/chunks/{chunk-OJOP26ET.js → chunk-J2LZ5OCH.js} +3 -3
- package/chunks/{chunk-4ZMS3JCR.js → chunk-JBSW7JA6.js} +83 -4
- package/chunks/{chunk-QAVTWAHL.js → chunk-JIR6JDGE.js} +3 -3
- package/chunks/{chunk-UGK4K2N2.js → chunk-JS73NNWF.js} +8 -0
- package/chunks/{chunk-2M55OBEB.js → chunk-JV443R5X.js} +1 -1
- package/chunks/{chunk-QEHH23OM.js → chunk-K6GQS2WN.js} +1 -1
- package/chunks/{chunk-6LAPGPVA.js → chunk-KCUGOZPL.js} +2 -2
- package/chunks/{chunk-KV27IEHM.js → chunk-L5JHSPET.js} +1 -1
- package/chunks/{chunk-OFTPCOGR.js → chunk-L7RG5PVT.js} +2902 -1393
- package/chunks/{chunk-TSMPNGBC.js → chunk-LBQBFRFN.js} +2 -2
- package/chunks/chunk-LJZSMWOH.js +18 -0
- package/chunks/{chunk-IA2K2HJE.js → chunk-M53UJS6H.js} +2 -2
- package/chunks/{chunk-KBXKR5R2.js → chunk-M5AIO24H.js} +1 -1
- package/chunks/{chunk-ROIYNTHJ.js → chunk-MD7XDTW7.js} +3 -3
- package/chunks/{chunk-3PWCMXIR.js → chunk-MGEWDLRO.js} +1 -1
- package/chunks/{chunk-4ZS3BLER.js → chunk-NAGJPIPW.js} +22 -7
- package/chunks/{chunk-3YRVPHT3.js → chunk-NCTHX2Z3.js} +14 -14
- package/chunks/{chunk-YP5KH5Y7.js → chunk-ND7NOI4P.js} +1 -1
- package/chunks/{chunk-4W5U2TUT.js → chunk-NGY7B7VF.js} +1 -1
- package/chunks/{chunk-S7N3HUIB.js → chunk-NMSSH43P.js} +6 -6
- package/chunks/{chunk-UYDGFWIJ.js → chunk-NYN4RD3K.js} +66 -7
- package/chunks/{chunk-DGJ7O55J.js → chunk-O327G3QW.js} +3 -3
- package/chunks/{chunk-2C6HJMG3.js → chunk-O75QDGQF.js} +3 -3
- package/chunks/{chunk-SFTKAX4O.js → chunk-OFJ6OFIT.js} +1 -1
- package/chunks/{chunk-6HY6IF3Z.js → chunk-OUYRA764.js} +1 -1
- package/chunks/{chunk-OEYAK5O6.js → chunk-OVS33JJM.js} +5 -5
- package/chunks/{chunk-VFP5YOHJ.js → chunk-PRIX4D6T.js} +6 -6
- package/chunks/{chunk-H4A72DE5.js → chunk-PTMVPFCZ.js} +1 -1
- package/chunks/{chunk-W7EYJGN7.js → chunk-PWQPWISR.js} +8 -8
- package/chunks/{chunk-QFJ5JHQR.js → chunk-PXOIRYE5.js} +1 -1
- package/chunks/{chunk-4SR45OM4.js → chunk-Q5QDZXKL.js} +1 -1
- package/chunks/{chunk-YECDICIO.js → chunk-Q6ETBOWF.js} +1 -1
- package/chunks/{chunk-WP4WIUOJ.js → chunk-QQUVPMMZ.js} +2 -2
- package/chunks/{chunk-C3T6M24E.js → chunk-RLYXWNS3.js} +3 -3
- package/chunks/{chunk-XT4RKHVE.js → chunk-RZ4PE3ER.js} +512 -24
- package/chunks/{chunk-6RDZLBSJ.js → chunk-SGKUVDBX.js} +80 -44
- package/chunks/{chunk-YZHRN3CF.js → chunk-SWOKDPS5.js} +2 -2
- package/chunks/{chunk-SLILKYV2.js → chunk-T2LUUKRI.js} +3 -3
- package/chunks/{chunk-5CVO7YES.js → chunk-U4GL4WDY.js} +1 -1
- package/chunks/{chunk-QEJZUXSK.js → chunk-U53XZHAE.js} +1 -1
- package/chunks/{chunk-XYRBK56E.js → chunk-U7U3CX4K.js} +3353 -1306
- package/chunks/{chunk-HIBNSEJE.js → chunk-UDG5EZJI.js} +0 -2
- package/chunks/{chunk-BQWNIPTE.js → chunk-V4UBYT3Y.js} +1 -1
- package/chunks/{chunk-XITLNXLX.js → chunk-VWS7DWY6.js} +3 -3
- package/chunks/{chunk-PT4I7NBA.js → chunk-VX7TFATF.js} +1 -1
- package/chunks/{chunk-VTOLYFWM.js → chunk-W3M6P3UR.js} +2 -2
- package/chunks/{chunk-CH5OFRV7.js → chunk-W4MLKRZD.js} +3 -3
- package/chunks/chunk-W5YD3QRT.js +367 -0
- package/chunks/{chunk-5IYS4WWR.js → chunk-WAPL2PHU.js} +1 -1
- package/chunks/{chunk-NRPXRNN4.js → chunk-WXFFCRKG.js} +1 -1
- package/chunks/{chunk-E3DYKPYZ.js → chunk-X7EQHW5L.js} +3 -3
- package/chunks/{chunk-BUQDLC2G.js → chunk-XFRYCCVC.js} +3 -3
- package/chunks/{chunk-DRAONPUW.js → chunk-XZ3J6E5Z.js} +2 -2
- package/chunks/{chunk-P3AA6S7O.js → chunk-Y7JGWFTK.js} +1 -1
- package/chunks/{chunk-SXCOEJO4.js → chunk-YLFFVY3G.js} +1 -1
- package/chunks/{chunk-YZOSNW4R.js → chunk-YO7PNVBJ.js} +1 -1
- package/chunks/{chunk-MDIGJH5X.js → chunk-ZL3HKVEQ.js} +4 -4
- package/chunks/{chunk-Y7QY6DKW.js → chunk-ZTLSYXFY.js} +4 -4
- package/chunks/{chunk-RWDNJBWN.js → chunk-ZUISK67X.js} +2 -2
- package/chunks/{chunk-PJSD2FOR.js → chunk-ZVJ5R5LM.js} +33 -33
- package/chunks/{chunk-XLLKYULU.js → chunk-ZWWU6KNS.js} +2 -2
- package/chunks/{computer-use-YORZJQE5.js → computer-use-34X5XJMV.js} +40 -40
- package/chunks/{config-utils-NJQA5YLJ.js → config-utils-XJTGZVY3.js} +2 -2
- package/chunks/{contextCommand-PACHGIF4.js → contextCommand-Q54VMGPA.js} +42 -42
- package/chunks/{core-runtime-6HD5DSPX.js → core-runtime-TIWTFHOR.js} +45 -44
- package/chunks/{create-sub-session-IQFIPUQA.js → create-sub-session-DPEBT657.js} +40 -40
- package/chunks/{create-sub-session-KRQULJE6.js → create-sub-session-TCKWBXEM.js} +6 -4
- package/chunks/{cron-create-NFRZEOQX.js → cron-create-PUCRMWQ6.js} +5 -5
- package/chunks/{cron-delete-GFVSVO7C.js → cron-delete-EOQR5CXU.js} +5 -5
- package/chunks/{cron-list-NRW34CLU.js → cron-list-7O22SQBF.js} +5 -5
- package/chunks/{daemon-XH76IXOC.js → daemon-JE2UIWSY.js} +304 -160
- package/chunks/{daemon-git-worktree-guard-6P27GKSU.js → daemon-git-worktree-guard-XSZ3362V.js} +40 -40
- package/chunks/daemon-status-provider-JBEST4SF.js +104 -0
- package/chunks/{daemon-trust-policy-5QJHAS3N.js → daemon-trust-policy-S6LBG4WN.js} +46 -46
- package/chunks/{daemon-trust-policy-monitor-JA2WZRZ3.js → daemon-trust-policy-monitor-NFO3OIBN.js} +46 -46
- package/chunks/{deferred-core-runtime-R2VWOVG3.js → deferred-core-runtime-Z2TLD2L7.js} +40 -40
- package/chunks/{display-image-ON3EYFRD.js → display-image-6FCICTXS.js} +5 -5
- package/chunks/{dist-IYYN3RUT.js → dist-IELOWDOT.js} +81 -17
- package/chunks/{earlyInputCapture-PQEEOFKJ.js → earlyInputCapture-KCZDAQWY.js} +41 -41
- package/chunks/{edit-RASZHTU2.js → edit-3UADXGNC.js} +41 -41
- package/chunks/{enter-worktree-CH5OMHJE.js → enter-worktree-J66YDAJE.js} +40 -40
- package/chunks/{enterPlanMode-AQKR3CAH.js → enterPlanMode-YUZUKY5F.js} +40 -40
- package/chunks/{environment-7QRYIEBA.js → environment-6IEK2353.js} +42 -42
- package/chunks/{errors-P2LL5452.js → errors-RVLRX7XI.js} +42 -42
- package/chunks/{exit-worktree-WUDL26CY.js → exit-worktree-SNMPATZE.js} +40 -40
- package/chunks/{exitPlanMode-JM75SAUI.js → exitPlanMode-DP4TURUC.js} +40 -40
- package/chunks/{fast-path-KVNSOHVA.js → fast-path-5CC6RKES.js} +2 -2
- package/chunks/{gemini-ADMD2EOS.js → gemini-F64ZP4SG.js} +83 -82
- package/chunks/{geminiContentGenerator-CS3M7SOS.js → geminiContentGenerator-KAFSMFA6.js} +7 -7
- package/chunks/{getMachineId-bsd-FG7IUY6U.js → getMachineId-bsd-LSY4WMOF.js} +1 -1
- package/chunks/{getMachineId-darwin-GLCJI2RA.js → getMachineId-darwin-JOFR4UIT.js} +1 -1
- package/chunks/{getMachineId-linux-O6OPPAKO.js → getMachineId-linux-QEDBS6GI.js} +1 -1
- package/chunks/{getMachineId-unsupported-S6CKYVGC.js → getMachineId-unsupported-IPZ3YRKP.js} +1 -1
- package/chunks/{getMachineId-win-X5SRNEH7.js → getMachineId-win-TJ2OZ7AA.js} +1 -1
- package/chunks/{glob-WIJOGYVV.js → glob-OE27ZGK4.js} +40 -40
- package/chunks/{goal-tools-K5OHOJ6B.js → goal-tools-YIADM4RZ.js} +5 -5
- package/chunks/{grep-CIFRQBR7.js → grep-VBV6BWSP.js} +40 -40
- package/chunks/{handleAutoUpdate-KJ4SN7DM.js → handleAutoUpdate-YDMS57ZN.js} +46 -44
- package/chunks/{i18n-36SZUO4C.js → i18n-JIW77MSO.js} +41 -41
- package/chunks/{image-gen-R4B5VUYB.js → image-gen-L4A2ISEH.js} +11 -11
- package/chunks/{initializer-CW5YCAOL.js → initializer-F7I7QDHK.js} +47 -47
- package/chunks/{installationInfo-NMQIOUGY.js → installationInfo-KOUBU7MH.js} +43 -41
- package/chunks/{keychain-token-storage-3XFJ5ZB2.js → keychain-token-storage-7SL4ZWQQ.js} +3 -3
- package/chunks/{list-HHGT3S4P.js → list-AJ5BRB7C.js} +49 -49
- package/chunks/{list-agents-OSVDFI6S.js → list-agents-XO4EONWC.js} +6 -6
- package/chunks/{loadedSettingsAdapter-SJ2MJF35.js → loadedSettingsAdapter-X7FC5332.js} +46 -46
- package/chunks/{loggingContentGenerator-GR2QQ2C5.js → loggingContentGenerator-5G4ZR5D5.js} +22 -22
- package/chunks/{loop-wakeup-HWVUU5CF.js → loop-wakeup-HWSTFUTQ.js} +6 -6
- package/chunks/{ls-D3HUFHDP.js → ls-52HUW4B6.js} +5 -5
- package/chunks/{lsp-3QDDJTCS.js → lsp-VJESYEC6.js} +3 -3
- package/chunks/{managed-npm-update-ADQJHKTO.js → managed-npm-update-ZR2T2ST3.js} +41 -41
- package/chunks/{mcp-QW3OTL5W.js → mcp-TZNHG7CF.js} +46 -46
- package/chunks/{monitor-RJKPVERH.js → monitor-TN6Z4SXF.js} +40 -40
- package/chunks/{nonInteractiveCli-MROMHSTL.js → nonInteractiveCli-I7K6KH5U.js} +81 -80
- package/chunks/{notebook-edit-2ENWDBZO.js → notebook-edit-77V2IP3Y.js} +40 -40
- package/chunks/{openaiContentGenerator-Z3GPWJU4.js → openaiContentGenerator-2S2UT4RR.js} +25 -26
- package/chunks/{pidfile-5G42YSTP.js → pidfile-WDSDXBY3.js} +41 -41
- package/chunks/{processUtils-ZDMXYKQY.js → processUtils-JOJNZOW4.js} +2 -2
- package/chunks/prompt-terminal-ledger-RW62JIPP.js +93 -0
- package/chunks/{qwenContentGenerator-NLEMBZVU.js → qwenContentGenerator-G3H2TCXF.js} +45 -45
- package/chunks/{qwenOAuth2-EBV52DWJ.js → qwenOAuth2-UI2OC2RN.js} +10 -10
- package/chunks/{read-file-5BYIF53O.js → read-file-DI64TNOE.js} +13 -14
- package/chunks/{read-mcp-resource-XD54ZQMC.js → read-mcp-resource-6VFF47Z3.js} +3 -3
- package/chunks/{record-artifact-GLU3UWBV.js → record-artifact-TJTN2GBV.js} +5 -5
- package/chunks/{resumeHistoryUtils-AFTBRS3G.js → resumeHistoryUtils-3FIDQ6YQ.js} +46 -46
- package/chunks/{ripGrep-NN7AOLQY.js → ripGrep-EUTGRCN3.js} +40 -40
- package/chunks/{run-qwen-serve-UR3DYDAF.js → run-qwen-serve-SQBF7QZM.js} +505 -161
- package/chunks/{runtime-PR5RKGNH.js → runtime-7QGB6SY4.js} +49 -49
- package/chunks/{scheduler-GPMLVKJM.js → scheduler-V6AZCQVU.js} +42 -42
- package/chunks/{sdk-exporters-grpc-54L4LS5L.js → sdk-exporters-grpc-P3LA24AV.js} +3 -3
- package/chunks/{sdk-exporters-http-NC746HLT.js → sdk-exporters-http-K3LH2SD7.js} +9 -11
- package/chunks/{sdk-impl-YVL7BP6Y.js → sdk-impl-WCUNMLVX.js} +11 -6
- package/chunks/{send-message-TNBG5EVA.js → send-message-NUK5DTTI.js} +7 -7
- package/chunks/{serve-E7V2JVA2.js → serve-WVNAO2NA.js} +46 -46
- package/chunks/{server-YXB3DBN7.js → server-ZMZPHJEC.js} +992 -271
- package/chunks/{session-DZEAUT7S.js → session-JV74G6EZ.js} +82 -81
- package/chunks/{settings-ESZ3NWAP.js → settings-GBBVKBQ2.js} +45 -45
- package/chunks/{shell-JMSK5WIL.js → shell-JNNRUZPA.js} +40 -40
- package/chunks/{skill-5K5CSUJV.js → skill-JRGRCWD5.js} +18 -18
- package/chunks/{skill-settings-V64NIOTI.js → skill-settings-VEC7C44Z.js} +45 -45
- package/chunks/{spawnChannel-S63APBZZ.js → spawnChannel-TVKIFXXA.js} +42 -42
- package/chunks/{standalone-update-P42HDFXX.js → standalone-update-OSHF2CX3.js} +42 -42
- package/chunks/{startInteractiveUI-LFBLFHJ4.js → startInteractiveUI-2HTUHVQO.js} +310 -156
- package/chunks/{syntheticOutput-7GWFIDXT.js → syntheticOutput-GZV6O6UL.js} +4 -4
- package/chunks/{task-create-EILHJJB7.js → task-create-BXGKNND4.js} +11 -11
- package/chunks/{task-list-WGJR6YL5.js → task-list-4ZMIDYGD.js} +6 -6
- package/chunks/{task-stop-X37KYTKB.js → task-stop-WBO7LWTS.js} +3 -3
- package/chunks/{task-update-XZAHVXJ5.js → task-update-UFO3BI7O.js} +11 -11
- package/chunks/{team-create-EDNOUM2U.js → team-create-DTPGJ6RH.js} +40 -40
- package/chunks/{team-delete-UEP4QOOT.js → team-delete-OCFJS444.js} +6 -6
- package/chunks/{team-plan-approval-QRSNK2DX.js → team-plan-approval-4433RWHB.js} +40 -40
- package/chunks/{terminal-image-renderer-6J2NPL32.js → terminal-image-renderer-QZLIKIVA.js} +42 -42
- package/chunks/{theme-manager-WJMLRBXS.js → theme-manager-RM7C7Q3L.js} +41 -41
- package/chunks/{todoWrite-ATS62CAP.js → todoWrite-BGM5MCPY.js} +5 -5
- package/chunks/{tool-search-MZ6WU7DM.js → tool-search-4NQJASFC.js} +17 -18
- package/chunks/{total-session-admission-DQVW2LIP.js → total-session-admission-NZNCU5NU.js} +46 -45
- package/chunks/{trustedFolders-QMH25GOX.js → trustedFolders-FDJ2Q4ZK.js} +41 -41
- package/chunks/{update-relaunch-EG75LLW5.js → update-relaunch-HZMDPRTF.js} +5 -5
- package/chunks/{updateCheck-MTZIVGT5.js → updateCheck-ZB2CRVVG.js} +43 -43
- package/chunks/{useAutoAcceptIndicator-IGCW5EPO.js → useAutoAcceptIndicator-O3JI4KTR.js} +48 -48
- package/chunks/{validateNonInterActiveAuth-D5FPAB2C.js → validateNonInterActiveAuth-7Z4KG4N5.js} +78 -77
- package/chunks/{version-UOLDLLRB.js → version-RFVS6QDY.js} +1 -1
- package/chunks/{web-fetch-QKKW6CWH.js → web-fetch-RAN377BH.js} +17 -18
- package/chunks/{web-search-JYRBZMCW.js → web-search-XKS6ZPY7.js} +10 -10
- package/chunks/{workflow-SR7SEAU7.js → workflow-HF6G5XNX.js} +232 -73
- package/chunks/{workspace-providers-status-OXGV4EFF.js → workspace-providers-status-LNMP7NED.js} +49 -49
- package/chunks/{workspace-registration-store-V5EGKLBH.js → workspace-registration-store-QZ3P3ILN.js} +1 -1
- package/chunks/{workspace-registry-KJVIYTF5.js → workspace-registry-KWPGC2LG.js} +46 -45
- package/chunks/{workspace-service-6RLSGUB5.js → workspace-service-RWB4KMY3.js} +51 -51
- package/chunks/{workspace-skills-status-BHFEPDGH.js → workspace-skills-status-P3XXZY7C.js} +47 -47
- package/chunks/{workspace-trust-reconciler-DB5ERSUN.js → workspace-trust-reconciler-XU6WB2MF.js} +52 -51
- package/chunks/{write-file-IUP4GTZ4.js → write-file-V7Y6KUPR.js} +40 -40
- package/chunks/{zoom-image-SRBDTIVA.js → zoom-image-N4RSASH7.js} +13 -14
- package/cli.js +13 -13
- package/package.json +3 -3
- package/web-shell/assets/{arc-DItbX0DI.js → arc-CN-xeqBM.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-CmnIlH8y.js → architectureDiagram-3BPJPVTR-XQJ6hBnv.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-pObnB9kw.js → blockDiagram-GPEHLZMM-n35AKogw.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BNBmMS0Y.js → c4Diagram-AAUBKEIU-DXeDVokb.js} +1 -1
- package/web-shell/assets/channel-BdTBh3qf.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-Dz4JBOO6.js → chunk-2J33WTMH-BYcmYjz_.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-Cz2GnvAR.js → chunk-4BX2VUAB-w3UyeGtt.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CC6kOQYx.js → chunk-55IACEB6-Td3JbOH_.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Z4lY4gbh.js → chunk-727SXJPM-gC_NR7u6.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-Yz0hZr3D.js → chunk-AQP2D5EJ-aD7bI3c3.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-nKmTWTv9.js → chunk-FMBD7UC4-sHMhD16X.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-CjZz0f6Y.js → chunk-ND2GUHAM-DiV49BLl.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-Bab3FpuS.js → chunk-QZHKN3VN-Dnoagqin.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-qVxLMMuK.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-qVxLMMuK.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BuSAGFox.js → cose-bilkent-S5V4N54A-K6l_zsrZ.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-CRZXTg3g.js → dagre-BM42HDAG-Chh9hQ0a.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-BFx1Ayrz.js → diagram-2AECGRRQ-Clrbd8SB.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-B2hMZ3gS.js → diagram-5GNKFQAL-BkNExywD.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-DKxAQLmc.js → diagram-KO2AKTUF-kTX14ngI.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-Bo1xGqVY.js → diagram-LMA3HP47-Ba1QOCJy.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-B9NG78d-.js → diagram-OG6HWLK6-CtH5BVYm.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-DltQKiqQ.js → erDiagram-TEJ5UH35-DCxSIC83.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-5xXGmS4I.js → flowDiagram-I6XJVG4X-C4rNAypQ.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-bhGL5n0l.js → ganttDiagram-6RSMTGT7-s3P5tBwL.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-ZYnz9hgh.js → gitGraphDiagram-PVQCEYII-C7Eg-1ok.js} +1 -1
- package/web-shell/assets/index-BXoIYIJg.css +5 -0
- package/web-shell/assets/{index-CBBeUArD.js → index-CszoC8cN.js} +1 -1
- package/web-shell/assets/index-Dxj7Naa0.js +1788 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-Cg-jamQf.js → infoDiagram-5YYISTIA-BDKsgMt6.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CcmvKlyq.js → ishikawaDiagram-YF4QCWOH-CkcSHbvL.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BRsOQZp1.js → journeyDiagram-JHISSGLW-CDWt-t81.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-xW-dmEHK.js → kanban-definition-UN3LZRKU-FI2owcEa.js} +1 -1
- package/web-shell/assets/{linear-ClBfEZH2.js → linear-BQzLqkJi.js} +1 -1
- package/web-shell/assets/{mermaid.core-D65NDkzc.js → mermaid.core-CvV91DP1.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-CyvFslYa.js → mindmap-definition-RKZ34NQL-Dx2kLUpN.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BwSefMyG.js → pieDiagram-4H26LBE5-CMXOmBrj.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-GqBJspFS.js → quadrantDiagram-W4KKPZXB-Bziww7Co.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-B137PlTJ.js → requirementDiagram-4Y6WPE33-DMOXAxzp.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-maHkkt8i.js → sankeyDiagram-5OEKKPKP-B3y1cfVV.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DJ1mRaG3.js → sequenceDiagram-3UESZ5HK-ChrV1jiM.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-aRmP7Q4i.js → stateDiagram-AJRCARHV-CWuLzLFE.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DEDPMLgq.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-CIQ3BRPA.js → timeline-definition-PNZ67QCA-Cl6am_to.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DR9VPd5h.js → vennDiagram-CIIHVFJN-OuocxGAu.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-ZcfIbT4D.js → wardley-L42UT6IY-DLYdvSJW.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-D0jgPi4T.js → wardleyDiagram-YWT4CUSO-7a3DreXX.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BGWU4s5o.js → xychartDiagram-2RQKCTM6-CgfjUxW_.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-D34RDOLP.js +0 -529
- package/chunks/daemon-status-provider-SXS66ZIR.js +0 -103
- package/web-shell/assets/channel-hZnMfWA9.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BRnxm8DX.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BRnxm8DX.js +0 -1
- package/web-shell/assets/index-CbgU-jUo.css +0 -5
- package/web-shell/assets/index-_nhzXqab.js +0 -1750
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-Db39gvZ_.js +0 -1
|
@@ -14,58 +14,58 @@ import {
|
|
|
14
14
|
toModelVisibleSubagentResult,
|
|
15
15
|
writeWorkflowSnapshot,
|
|
16
16
|
writeWorktreeSessionMarker
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L7RG5PVT.js";
|
|
18
18
|
import "./chunk-GOFAQQZA.js";
|
|
19
19
|
import "./chunk-5M6IDOMF.js";
|
|
20
20
|
import "./chunk-TWPJO254.js";
|
|
21
21
|
import "./chunk-CQ35AJ4Z.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-F5JZDC4O.js";
|
|
23
|
+
import "./chunk-T2LUUKRI.js";
|
|
24
|
+
import "./chunk-A7NBZBGQ.js";
|
|
25
|
+
import "./chunk-7S22SX2L.js";
|
|
26
26
|
import {
|
|
27
27
|
parsePositiveIntegerEnv
|
|
28
28
|
} from "./chunk-6PVPNMXU.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-BBMVUTXO.js";
|
|
30
30
|
import "./chunk-IRH27ZC2.js";
|
|
31
31
|
import "./chunk-QHWCP53L.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-G64PEZZ5.js";
|
|
33
|
+
import "./chunk-O75QDGQF.js";
|
|
34
34
|
import "./chunk-O6GEWCJA.js";
|
|
35
35
|
import "./chunk-T26EAKDL.js";
|
|
36
36
|
import "./chunk-ZPJWUGCS.js";
|
|
37
37
|
import "./chunk-CPBF7KYF.js";
|
|
38
38
|
import {
|
|
39
39
|
SUBAGENT_PLAN_LIFECYCLE_TOOLS
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-ZUISK67X.js";
|
|
41
|
+
import "./chunk-3EQHT3IC.js";
|
|
42
|
+
import "./chunk-4W4BROUS.js";
|
|
43
43
|
import "./chunk-MLXTMF7H.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-L5JHSPET.js";
|
|
45
|
+
import "./chunk-X7EQHW5L.js";
|
|
46
|
+
import "./chunk-JBSW7JA6.js";
|
|
47
|
+
import "./chunk-O327G3QW.js";
|
|
48
|
+
import "./chunk-2GM44E7D.js";
|
|
49
49
|
import "./chunk-SAH4BD2J.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-ZWWU6KNS.js";
|
|
51
51
|
import {
|
|
52
52
|
runWithAgentContext
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-VX7TFATF.js";
|
|
54
54
|
import "./chunk-S6LOFUVP.js";
|
|
55
55
|
import "./chunk-2J3OJGTL.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-HHNSO2Y4.js";
|
|
57
57
|
import "./chunk-K623ENWT.js";
|
|
58
58
|
import "./chunk-AQ37AY7B.js";
|
|
59
59
|
import {
|
|
60
60
|
WorkspaceContext
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-M5AIO24H.js";
|
|
62
|
+
import "./chunk-47VTGCYK.js";
|
|
63
63
|
import "./chunk-NAVJD2PQ.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-MD7XDTW7.js";
|
|
65
|
+
import "./chunk-FAIJ5UIU.js";
|
|
66
66
|
import "./chunk-P3QQPMQA.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-SWOKDPS5.js";
|
|
68
|
+
import "./chunk-HEMFCAHG.js";
|
|
69
69
|
import "./chunk-KM73TBQ4.js";
|
|
70
70
|
import "./chunk-AXMWHKXA.js";
|
|
71
71
|
import "./chunk-GLCZKT5V.js";
|
|
@@ -73,49 +73,49 @@ import {
|
|
|
73
73
|
createAbortController,
|
|
74
74
|
createChildAbortController
|
|
75
75
|
} from "./chunk-DJ2GSRLV.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-PXOIRYE5.js";
|
|
77
|
+
import "./chunk-7NLDU6J2.js";
|
|
77
78
|
import {
|
|
78
79
|
WorkflowRunEvent,
|
|
79
80
|
logWorkflowRun,
|
|
80
81
|
read,
|
|
81
82
|
writeLine
|
|
82
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-EXY6APEA.js";
|
|
83
84
|
import "./chunk-YRLW2MSX.js";
|
|
84
85
|
import "./chunk-VGC4I5JJ.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-MGEWDLRO.js";
|
|
87
|
+
import "./chunk-5AAW6E3C.js";
|
|
88
|
+
import "./chunk-4CKU5K2R.js";
|
|
88
89
|
import {
|
|
89
90
|
SyntheticOutputTool
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7WVB4FMG.js";
|
|
91
92
|
import {
|
|
92
93
|
BaseDeclarativeTool,
|
|
93
94
|
BaseToolInvocation,
|
|
94
95
|
ToolDisplayNames,
|
|
95
96
|
ToolNames
|
|
96
|
-
} from "./chunk-
|
|
97
|
-
import "./chunk-
|
|
97
|
+
} from "./chunk-OUYRA764.js";
|
|
98
|
+
import "./chunk-DK4HL3IB.js";
|
|
98
99
|
import "./chunk-F6WFNA7U.js";
|
|
99
100
|
import "./chunk-WZAD4ZNJ.js";
|
|
100
101
|
import "./chunk-FPGTNKCP.js";
|
|
101
102
|
import "./chunk-YHC2EYYG.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-722JBVVW.js";
|
|
104
|
+
import "./chunk-B5LEKTE7.js";
|
|
105
|
+
import "./chunk-Q6ETBOWF.js";
|
|
106
|
+
import "./chunk-HHJLM3WQ.js";
|
|
105
107
|
import {
|
|
106
108
|
stripAnsiAndControl
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import "./chunk-HHJLM3WQ.js";
|
|
109
|
-
import "./chunk-D34RDOLP.js";
|
|
109
|
+
} from "./chunk-RZ4PE3ER.js";
|
|
110
110
|
import {
|
|
111
111
|
createDebugLogger
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-XFRYCCVC.js";
|
|
113
113
|
import "./chunk-VOQXFAY5.js";
|
|
114
114
|
import "./chunk-75DOP5OR.js";
|
|
115
115
|
import "./chunk-DMTGGOSA.js";
|
|
116
116
|
import "./chunk-YQ3U5MUC.js";
|
|
117
117
|
import "./chunk-AMDSOFFV.js";
|
|
118
|
-
import "./chunk-
|
|
118
|
+
import "./chunk-GX2THELY.js";
|
|
119
119
|
import {
|
|
120
120
|
init_esbuild_shims
|
|
121
121
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -129,6 +129,7 @@ init_esbuild_shims();
|
|
|
129
129
|
// packages/core/src/agents/runtime/workflow-orchestrator.ts
|
|
130
130
|
init_esbuild_shims();
|
|
131
131
|
import { randomBytes } from "node:crypto";
|
|
132
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
132
133
|
import * as os from "node:os";
|
|
133
134
|
|
|
134
135
|
// packages/core/src/agents/runtime/workflow-sandbox.ts
|
|
@@ -407,22 +408,27 @@ __name(validateArgs, "validateArgs");
|
|
|
407
408
|
function createWorkflowSandbox(opts) {
|
|
408
409
|
const phases = [];
|
|
409
410
|
const logs = [];
|
|
410
|
-
const
|
|
411
|
+
const emitLog = /* @__PURE__ */ __name((line) => {
|
|
412
|
+
try {
|
|
413
|
+
opts.emitter?.logAppended?.(line);
|
|
414
|
+
} catch (e) {
|
|
415
|
+
debugLogger.warn("emitter.logAppended threw:", e);
|
|
416
|
+
}
|
|
417
|
+
}, "emitLog");
|
|
418
|
+
const safeLog = /* @__PURE__ */ __name((msg, notify = true) => {
|
|
411
419
|
if (logs.length < MAX_LOG_LINES) {
|
|
412
420
|
const line = String(msg);
|
|
413
421
|
logs.push(line);
|
|
414
|
-
|
|
415
|
-
opts.emitter?.logAppended?.(line);
|
|
416
|
-
} catch (e) {
|
|
417
|
-
debugLogger.warn("emitter.logAppended threw:", e);
|
|
418
|
-
}
|
|
422
|
+
if (notify) emitLog(line);
|
|
419
423
|
} else if (logs.length === MAX_LOG_LINES) {
|
|
420
|
-
|
|
424
|
+
const line = `[workflow log truncated at ${MAX_LOG_LINES} lines]`;
|
|
425
|
+
logs.push(line);
|
|
426
|
+
if (notify) emitLog(line);
|
|
421
427
|
}
|
|
422
428
|
}, "safeLog");
|
|
423
429
|
const safePhase = /* @__PURE__ */ __name((title) => {
|
|
424
430
|
if (phases.length < MAX_PHASE_ENTRIES) {
|
|
425
|
-
const t = String(title);
|
|
431
|
+
const t = stripAnsiAndControl(String(title)).slice(0, 200) || "phase";
|
|
426
432
|
if (phases[phases.length - 1] === t) return;
|
|
427
433
|
phases.push(t);
|
|
428
434
|
try {
|
|
@@ -1327,7 +1333,7 @@ ${stripped}
|
|
|
1327
1333
|
},
|
|
1328
1334
|
getPhases: /* @__PURE__ */ __name(() => [...phases], "getPhases"),
|
|
1329
1335
|
getLogs: /* @__PURE__ */ __name(() => [...logs], "getLogs"),
|
|
1330
|
-
appendLog: /* @__PURE__ */ __name((line) => safeLog(line), "appendLog"),
|
|
1336
|
+
appendLog: /* @__PURE__ */ __name((line) => safeLog(line, false), "appendLog"),
|
|
1331
1337
|
getMeta: /* @__PURE__ */ __name(() => extractedMeta, "getMeta")
|
|
1332
1338
|
};
|
|
1333
1339
|
}
|
|
@@ -1634,6 +1640,7 @@ var WorkflowJournal = class {
|
|
|
1634
1640
|
static {
|
|
1635
1641
|
__name(this, "WorkflowJournal");
|
|
1636
1642
|
}
|
|
1643
|
+
pending = Promise.resolve();
|
|
1637
1644
|
/** Load + parse all entries into replay maps. Empty maps if no file. */
|
|
1638
1645
|
async load() {
|
|
1639
1646
|
try {
|
|
@@ -1646,7 +1653,13 @@ var WorkflowJournal = class {
|
|
|
1646
1653
|
}
|
|
1647
1654
|
/** Append one entry. Rejects only on I/O error (callers `.catch`). */
|
|
1648
1655
|
append(entry) {
|
|
1649
|
-
|
|
1656
|
+
const operation = this.pending.then(() => writeLine(this.path, entry));
|
|
1657
|
+
this.pending = operation.catch(() => void 0);
|
|
1658
|
+
return operation;
|
|
1659
|
+
}
|
|
1660
|
+
/** Wait until every append issued so far has settled. */
|
|
1661
|
+
drain() {
|
|
1662
|
+
return this.pending;
|
|
1650
1663
|
}
|
|
1651
1664
|
};
|
|
1652
1665
|
|
|
@@ -1896,7 +1909,7 @@ function sanitizeForErrorMessage(value) {
|
|
|
1896
1909
|
}
|
|
1897
1910
|
__name(sanitizeForErrorMessage, "sanitizeForErrorMessage");
|
|
1898
1911
|
function createProductionDispatch(config, signal, onTokens, bridgeApprovalEvents) {
|
|
1899
|
-
return async (prompt, opts) => {
|
|
1912
|
+
return async (prompt, opts, dispatchId) => {
|
|
1900
1913
|
if (typeof prompt !== "string" || prompt.length === 0) {
|
|
1901
1914
|
throw new Error("agent() requires a non-empty string prompt.");
|
|
1902
1915
|
}
|
|
@@ -1909,7 +1922,10 @@ function createProductionDispatch(config, signal, onTokens, bridgeApprovalEvents
|
|
|
1909
1922
|
return runStallResilient(
|
|
1910
1923
|
async (attemptSignal, emitter) => {
|
|
1911
1924
|
attempt += 1;
|
|
1912
|
-
const cleanupApprovalBridge = bridgeApprovalEvents?.(
|
|
1925
|
+
const cleanupApprovalBridge = bridgeApprovalEvents?.(
|
|
1926
|
+
emitter,
|
|
1927
|
+
dispatchId
|
|
1928
|
+
);
|
|
1913
1929
|
const cleanupTranscript = attachDispatchTranscript(
|
|
1914
1930
|
config,
|
|
1915
1931
|
workflowAgentId,
|
|
@@ -1984,7 +2000,7 @@ function attachDispatchTranscript(config, agentId, prompt, agentName, emitter, a
|
|
|
1984
2000
|
}
|
|
1985
2001
|
__name(attachDispatchTranscript, "attachDispatchTranscript");
|
|
1986
2002
|
async function runSingleDispatch(config, prompt, opts, attemptSignal, emitter, workflowAgentId, agentIdentity, onTokens) {
|
|
1987
|
-
const { AgentHeadless, ContextState } = await import("./agent-headless-
|
|
2003
|
+
const { AgentHeadless, ContextState } = await import("./agent-headless-4BF7W4TJ.js");
|
|
1988
2004
|
const ctx = new ContextState();
|
|
1989
2005
|
ctx.set("task_prompt", prompt);
|
|
1990
2006
|
debugLogger.debug(`[workflow] Dispatch ${workflowAgentId}`);
|
|
@@ -2457,8 +2473,29 @@ var WorkflowOrchestrator = class {
|
|
|
2457
2473
|
}
|
|
2458
2474
|
), "rejectThroughPauseGate");
|
|
2459
2475
|
let agentCount = 0;
|
|
2476
|
+
let dispatchTraceCount = 0;
|
|
2460
2477
|
const emitter = req.emitter;
|
|
2461
2478
|
const budget = req.budget;
|
|
2479
|
+
const dependencyContext = new AsyncLocalStorage();
|
|
2480
|
+
const issueDispatchTrace = /* @__PURE__ */ __name((prompt, opts, cached = false) => {
|
|
2481
|
+
const id = `dispatch-${dispatchTraceCount += 1}`;
|
|
2482
|
+
const store = dependencyContext.getStore();
|
|
2483
|
+
const dependsOn = Array.from(new Set(store?.tails ?? []));
|
|
2484
|
+
if (store) store.tails = [id];
|
|
2485
|
+
try {
|
|
2486
|
+
emitter?.dispatchQueued?.({
|
|
2487
|
+
id,
|
|
2488
|
+
...typeof opts.label === "string" ? { label: opts.label } : {},
|
|
2489
|
+
prompt,
|
|
2490
|
+
dependsOn,
|
|
2491
|
+
queuedAt: Date.now(),
|
|
2492
|
+
...cached ? { cached: true } : {}
|
|
2493
|
+
});
|
|
2494
|
+
} catch (e) {
|
|
2495
|
+
debugLogger.warn("emitter.dispatchQueued threw:", e);
|
|
2496
|
+
}
|
|
2497
|
+
return id;
|
|
2498
|
+
}, "issueDispatchTrace");
|
|
2462
2499
|
const journal = req.journal;
|
|
2463
2500
|
const replay = req.resumeReplay;
|
|
2464
2501
|
let prefixHash = deriveArgsSeed(req.args);
|
|
@@ -2485,6 +2522,7 @@ var WorkflowOrchestrator = class {
|
|
|
2485
2522
|
);
|
|
2486
2523
|
}
|
|
2487
2524
|
const label2 = typeof opts.label === "string" ? opts.label : void 0;
|
|
2525
|
+
const dispatchId2 = issueDispatchTrace(prompt, opts, true);
|
|
2488
2526
|
try {
|
|
2489
2527
|
emitter?.agentDispatched?.(label2);
|
|
2490
2528
|
} catch (e) {
|
|
@@ -2495,6 +2533,11 @@ var WorkflowOrchestrator = class {
|
|
|
2495
2533
|
} catch (e) {
|
|
2496
2534
|
debugLogger.warn("emitter.agentCompleted threw:", e);
|
|
2497
2535
|
}
|
|
2536
|
+
try {
|
|
2537
|
+
emitter?.dispatchSettled?.(dispatchId2, void 0, Date.now());
|
|
2538
|
+
} catch (e) {
|
|
2539
|
+
debugLogger.warn("emitter.dispatchSettled threw:", e);
|
|
2540
|
+
}
|
|
2498
2541
|
return scheduler.waitUntilRunning().then(
|
|
2499
2542
|
() => cached.result,
|
|
2500
2543
|
() => cached.result
|
|
@@ -2524,6 +2567,7 @@ var WorkflowOrchestrator = class {
|
|
|
2524
2567
|
);
|
|
2525
2568
|
}
|
|
2526
2569
|
const label = typeof opts.label === "string" ? opts.label : void 0;
|
|
2570
|
+
const dispatchId = issueDispatchTrace(prompt, opts);
|
|
2527
2571
|
try {
|
|
2528
2572
|
emitter?.agentDispatched?.(label);
|
|
2529
2573
|
} catch (e) {
|
|
@@ -2539,9 +2583,19 @@ var WorkflowOrchestrator = class {
|
|
|
2539
2583
|
} catch (e) {
|
|
2540
2584
|
debugLogger.warn("emitter.agentCompleted threw:", e);
|
|
2541
2585
|
}
|
|
2586
|
+
try {
|
|
2587
|
+
emitter?.dispatchSettled?.(dispatchId, message, Date.now());
|
|
2588
|
+
} catch (e) {
|
|
2589
|
+
debugLogger.warn("emitter.dispatchSettled threw:", e);
|
|
2590
|
+
}
|
|
2542
2591
|
}, "emitCompletion");
|
|
2543
2592
|
return scheduler.run(async () => {
|
|
2544
2593
|
try {
|
|
2594
|
+
try {
|
|
2595
|
+
emitter?.dispatchStarted?.(dispatchId, Date.now());
|
|
2596
|
+
} catch (e) {
|
|
2597
|
+
debugLogger.warn("emitter.dispatchStarted threw:", e);
|
|
2598
|
+
}
|
|
2545
2599
|
if (budget && budget.total !== null && budget.remaining() <= 0) {
|
|
2546
2600
|
debugLogger.warn(
|
|
2547
2601
|
`[Workflow] budget gate refused dispatch at slot-acquire: runId=${runId} spent=${budget.spent()} total=${budget.total}`
|
|
@@ -2552,7 +2606,7 @@ var WorkflowOrchestrator = class {
|
|
|
2552
2606
|
budget.spent()
|
|
2553
2607
|
);
|
|
2554
2608
|
}
|
|
2555
|
-
const result = await this.dispatch(prompt, opts);
|
|
2609
|
+
const result = await this.dispatch(prompt, opts, dispatchId);
|
|
2556
2610
|
emitCompletion();
|
|
2557
2611
|
if (journal && journalKey !== void 0) {
|
|
2558
2612
|
journal.append({
|
|
@@ -2606,8 +2660,8 @@ var WorkflowOrchestrator = class {
|
|
|
2606
2660
|
}
|
|
2607
2661
|
);
|
|
2608
2662
|
}, "countedDispatch");
|
|
2609
|
-
const parallelImpl = makeParallelImpl(signal);
|
|
2610
|
-
const pipelineImpl = makePipelineImpl(signal);
|
|
2663
|
+
const parallelImpl = makeParallelImpl(signal, dependencyContext);
|
|
2664
|
+
const pipelineImpl = makePipelineImpl(signal, dependencyContext);
|
|
2611
2665
|
const resolveSavedWorkflow = req.resolveSavedWorkflow;
|
|
2612
2666
|
const parentSandboxRef = {
|
|
2613
2667
|
current: void 0
|
|
@@ -2648,7 +2702,10 @@ var WorkflowOrchestrator = class {
|
|
|
2648
2702
|
});
|
|
2649
2703
|
parentSandboxRef.current = sandbox;
|
|
2650
2704
|
try {
|
|
2651
|
-
const result = await
|
|
2705
|
+
const result = await dependencyContext.run(
|
|
2706
|
+
{ tails: [] },
|
|
2707
|
+
() => sandbox.run(req.script)
|
|
2708
|
+
);
|
|
2652
2709
|
return {
|
|
2653
2710
|
runId,
|
|
2654
2711
|
result,
|
|
@@ -2693,7 +2750,7 @@ async function settleToNullArray(thunks, signal, kind = "parallel") {
|
|
|
2693
2750
|
return result;
|
|
2694
2751
|
}
|
|
2695
2752
|
__name(settleToNullArray, "settleToNullArray");
|
|
2696
|
-
function makeParallelImpl(signal) {
|
|
2753
|
+
function makeParallelImpl(signal, dependencyContext) {
|
|
2697
2754
|
return (thunks) => {
|
|
2698
2755
|
if (!Array.isArray(thunks)) {
|
|
2699
2756
|
return Promise.reject(
|
|
@@ -2711,11 +2768,32 @@ function makeParallelImpl(signal) {
|
|
|
2711
2768
|
);
|
|
2712
2769
|
}
|
|
2713
2770
|
}
|
|
2714
|
-
|
|
2771
|
+
const parent = dependencyContext.getStore();
|
|
2772
|
+
const inheritedTails = parent?.tails ?? [];
|
|
2773
|
+
const branches = thunks.map((thunk) => {
|
|
2774
|
+
const store = { tails: [...inheritedTails] };
|
|
2775
|
+
return {
|
|
2776
|
+
store,
|
|
2777
|
+
thunk: /* @__PURE__ */ __name(() => dependencyContext.run(store, thunk), "thunk")
|
|
2778
|
+
};
|
|
2779
|
+
});
|
|
2780
|
+
return settleToNullArray(
|
|
2781
|
+
branches.map(({ thunk }) => thunk),
|
|
2782
|
+
signal
|
|
2783
|
+
).then((result) => {
|
|
2784
|
+
if (parent && branches.length > 0) {
|
|
2785
|
+
parent.tails = mergeFanoutTails(
|
|
2786
|
+
parent.tails,
|
|
2787
|
+
inheritedTails,
|
|
2788
|
+
branches.flatMap(({ store }) => store.tails)
|
|
2789
|
+
);
|
|
2790
|
+
}
|
|
2791
|
+
return result;
|
|
2792
|
+
});
|
|
2715
2793
|
};
|
|
2716
2794
|
}
|
|
2717
2795
|
__name(makeParallelImpl, "makeParallelImpl");
|
|
2718
|
-
function makePipelineImpl(signal) {
|
|
2796
|
+
function makePipelineImpl(signal, dependencyContext) {
|
|
2719
2797
|
return (items, ...stages) => {
|
|
2720
2798
|
if (!Array.isArray(items)) {
|
|
2721
2799
|
return Promise.reject(
|
|
@@ -2733,13 +2811,45 @@ function makePipelineImpl(signal) {
|
|
|
2733
2811
|
);
|
|
2734
2812
|
}
|
|
2735
2813
|
}
|
|
2736
|
-
const
|
|
2737
|
-
|
|
2738
|
-
)
|
|
2739
|
-
|
|
2814
|
+
const parent = dependencyContext.getStore();
|
|
2815
|
+
const inheritedTails = parent?.tails ?? [];
|
|
2816
|
+
const branches = items.map((item, idx) => {
|
|
2817
|
+
const store = { tails: [...inheritedTails] };
|
|
2818
|
+
return {
|
|
2819
|
+
store,
|
|
2820
|
+
thunk: /* @__PURE__ */ __name(() => dependencyContext.run(
|
|
2821
|
+
store,
|
|
2822
|
+
() => runPipelineChain(item, idx, stages)
|
|
2823
|
+
), "thunk")
|
|
2824
|
+
};
|
|
2825
|
+
});
|
|
2826
|
+
return settleToNullArray(
|
|
2827
|
+
branches.map(({ thunk }) => thunk),
|
|
2828
|
+
signal,
|
|
2829
|
+
"pipeline"
|
|
2830
|
+
).then((result) => {
|
|
2831
|
+
if (parent && branches.length > 0) {
|
|
2832
|
+
parent.tails = mergeFanoutTails(
|
|
2833
|
+
parent.tails,
|
|
2834
|
+
inheritedTails,
|
|
2835
|
+
branches.flatMap(({ store }) => store.tails)
|
|
2836
|
+
);
|
|
2837
|
+
}
|
|
2838
|
+
return result;
|
|
2839
|
+
});
|
|
2740
2840
|
};
|
|
2741
2841
|
}
|
|
2742
2842
|
__name(makePipelineImpl, "makePipelineImpl");
|
|
2843
|
+
function mergeFanoutTails(currentParentTails, inheritedTails, branchTails) {
|
|
2844
|
+
const inherited = new Set(inheritedTails);
|
|
2845
|
+
const newBranchTails = branchTails.filter((tail) => !inherited.has(tail));
|
|
2846
|
+
const merged = newBranchTails.length > 0 ? [
|
|
2847
|
+
...newBranchTails,
|
|
2848
|
+
...currentParentTails.filter((tail) => !inherited.has(tail))
|
|
2849
|
+
] : currentParentTails;
|
|
2850
|
+
return Array.from(new Set(merged));
|
|
2851
|
+
}
|
|
2852
|
+
__name(mergeFanoutTails, "mergeFanoutTails");
|
|
2743
2853
|
async function runPipelineChain(item, idx, stages) {
|
|
2744
2854
|
let prev = item;
|
|
2745
2855
|
for (const stage of stages) {
|
|
@@ -2807,19 +2917,26 @@ var WorkflowRunner = class {
|
|
|
2807
2917
|
throw new Error("Background workflow start was cancelled.");
|
|
2808
2918
|
}
|
|
2809
2919
|
const callerWasAbortedBeforeStart = options.signal.aborted;
|
|
2810
|
-
const controller = runInBackground ? createAbortController() : createChildAbortController(options.signal);
|
|
2811
2920
|
const registry = config.getWorkflowRunRegistry?.();
|
|
2921
|
+
let entry;
|
|
2922
|
+
const isCurrentEntry = /* @__PURE__ */ __name(() => registry === void 0 || entry !== void 0 && registry.get(runId) === entry, "isCurrentEntry");
|
|
2923
|
+
const controller = runInBackground ? createAbortController() : createChildAbortController(options.signal);
|
|
2812
2924
|
const dispatch = options.dispatch ?? createProductionDispatch(
|
|
2813
2925
|
config,
|
|
2814
2926
|
controller.signal,
|
|
2815
2927
|
(outputTokens) => budget.recordSpent(outputTokens),
|
|
2816
|
-
registry ? (emitter2) => registry.bridgeApprovalEvents(
|
|
2928
|
+
registry ? (emitter2, dispatchId) => isCurrentEntry() ? registry.bridgeApprovalEvents(
|
|
2929
|
+
runId,
|
|
2930
|
+
emitter2,
|
|
2931
|
+
dispatchId,
|
|
2932
|
+
entry
|
|
2933
|
+
) : () => void 0 : void 0
|
|
2817
2934
|
);
|
|
2818
2935
|
const orchestrator = new WorkflowOrchestrator(dispatch);
|
|
2819
|
-
let entry;
|
|
2820
2936
|
try {
|
|
2821
2937
|
entry = registry?.register({
|
|
2822
2938
|
runId,
|
|
2939
|
+
toolUseId: options.toolUseId,
|
|
2823
2940
|
meta: null,
|
|
2824
2941
|
status: "running",
|
|
2825
2942
|
startTime: Date.now(),
|
|
@@ -2828,6 +2945,11 @@ var WorkflowRunner = class {
|
|
|
2828
2945
|
tokenBudgetTotal: budget.total,
|
|
2829
2946
|
script,
|
|
2830
2947
|
scriptPath,
|
|
2948
|
+
args: options.args,
|
|
2949
|
+
...options.resumeFromRunId ? {
|
|
2950
|
+
sourceRunId: options.resumeFromRunId,
|
|
2951
|
+
startMode: "retry"
|
|
2952
|
+
} : {},
|
|
2831
2953
|
isBackgrounded: runInBackground
|
|
2832
2954
|
});
|
|
2833
2955
|
} catch (error) {
|
|
@@ -2835,7 +2957,7 @@ var WorkflowRunner = class {
|
|
|
2835
2957
|
throw error;
|
|
2836
2958
|
}
|
|
2837
2959
|
const emitUpdate = /* @__PURE__ */ __name(() => {
|
|
2838
|
-
if (!entry || !options.onUpdate) return;
|
|
2960
|
+
if (!entry || !options.onUpdate || !isCurrentEntry()) return;
|
|
2839
2961
|
try {
|
|
2840
2962
|
options.onUpdate(entry);
|
|
2841
2963
|
} catch {
|
|
@@ -2843,21 +2965,48 @@ var WorkflowRunner = class {
|
|
|
2843
2965
|
}, "emitUpdate");
|
|
2844
2966
|
const emitter = {
|
|
2845
2967
|
phaseStarted: /* @__PURE__ */ __name((title) => {
|
|
2968
|
+
if (!isCurrentEntry()) return;
|
|
2846
2969
|
registry?.onPhaseStarted(runId, title);
|
|
2847
2970
|
emitUpdate();
|
|
2848
2971
|
}, "phaseStarted"),
|
|
2849
2972
|
agentDispatched: /* @__PURE__ */ __name(() => {
|
|
2973
|
+
if (!isCurrentEntry()) return;
|
|
2850
2974
|
registry?.onAgentDispatched(runId);
|
|
2851
2975
|
emitUpdate();
|
|
2852
2976
|
}, "agentDispatched"),
|
|
2853
2977
|
agentCompleted: /* @__PURE__ */ __name(() => {
|
|
2978
|
+
if (!isCurrentEntry()) return;
|
|
2854
2979
|
registry?.onAgentCompleted(runId);
|
|
2855
2980
|
}, "agentCompleted"),
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2981
|
+
dispatchQueued: /* @__PURE__ */ __name((event) => {
|
|
2982
|
+
if (!isCurrentEntry()) return;
|
|
2983
|
+
registry?.onDispatchQueued(runId, event);
|
|
2984
|
+
emitUpdate();
|
|
2985
|
+
}, "dispatchQueued"),
|
|
2986
|
+
dispatchStarted: /* @__PURE__ */ __name((dispatchId, startedAt) => {
|
|
2987
|
+
if (!isCurrentEntry()) return;
|
|
2988
|
+
registry?.onDispatchStarted(runId, dispatchId, startedAt);
|
|
2989
|
+
emitUpdate();
|
|
2990
|
+
}, "dispatchStarted"),
|
|
2991
|
+
dispatchSettled: /* @__PURE__ */ __name((dispatchId, error, endedAt) => {
|
|
2992
|
+
if (!isCurrentEntry()) return;
|
|
2993
|
+
registry?.onDispatchSettled(
|
|
2994
|
+
runId,
|
|
2995
|
+
dispatchId,
|
|
2996
|
+
error,
|
|
2997
|
+
endedAt,
|
|
2998
|
+
!runInBackground && options.signal.aborted
|
|
2999
|
+
);
|
|
3000
|
+
emitUpdate();
|
|
3001
|
+
}, "dispatchSettled"),
|
|
3002
|
+
// The registry records this without firing a status update, avoiding a
|
|
3003
|
+
// TUI redraw per line while retaining the real replay timestamp.
|
|
3004
|
+
logAppended: /* @__PURE__ */ __name((line) => {
|
|
3005
|
+
if (!isCurrentEntry()) return;
|
|
3006
|
+
registry?.onLogAppended(runId, line);
|
|
2859
3007
|
}, "logAppended"),
|
|
2860
3008
|
budgetUpdated: /* @__PURE__ */ __name((spent, total) => {
|
|
3009
|
+
if (!isCurrentEntry()) return;
|
|
2861
3010
|
registry?.onBudgetUpdated(runId, spent, total);
|
|
2862
3011
|
emitUpdate();
|
|
2863
3012
|
}, "budgetUpdated")
|
|
@@ -2865,7 +3014,10 @@ var WorkflowRunner = class {
|
|
|
2865
3014
|
const scheduler = new WorkflowDispatchScheduler(
|
|
2866
3015
|
resolveConcurrencyLimit(),
|
|
2867
3016
|
controller.signal,
|
|
2868
|
-
({ state }) =>
|
|
3017
|
+
({ state }) => {
|
|
3018
|
+
if (!isCurrentEntry()) return;
|
|
3019
|
+
registry?.onDispatchStateChange(runId, state);
|
|
3020
|
+
}
|
|
2869
3021
|
);
|
|
2870
3022
|
const handle = new WorkflowRunHandle(
|
|
2871
3023
|
runId,
|
|
@@ -2925,6 +3077,7 @@ var WorkflowRunner = class {
|
|
|
2925
3077
|
duration_ms: (entry.endTime ?? entry.startTime) - entry.startTime
|
|
2926
3078
|
});
|
|
2927
3079
|
await writeWorkflowSnapshot(config, entry);
|
|
3080
|
+
await journal?.drain();
|
|
2928
3081
|
try {
|
|
2929
3082
|
logWorkflowRun(config, telemetryEvent);
|
|
2930
3083
|
} catch {
|
|
@@ -2988,6 +3141,10 @@ var WorkflowToolInvocation = class extends BaseToolInvocation {
|
|
|
2988
3141
|
static {
|
|
2989
3142
|
__name(this, "WorkflowToolInvocation");
|
|
2990
3143
|
}
|
|
3144
|
+
callId;
|
|
3145
|
+
setCallId(callId) {
|
|
3146
|
+
this.callId = callId;
|
|
3147
|
+
}
|
|
2991
3148
|
getDescription() {
|
|
2992
3149
|
if (this.params.scriptPath && this.params.script === void 0) {
|
|
2993
3150
|
return `Run saved workflow (${path.basename(this.params.scriptPath)})`;
|
|
@@ -3010,6 +3167,7 @@ var WorkflowToolInvocation = class extends BaseToolInvocation {
|
|
|
3010
3167
|
handle = await WorkflowRunner.start({
|
|
3011
3168
|
config: this.config,
|
|
3012
3169
|
signal,
|
|
3170
|
+
toolUseId: this.callId,
|
|
3013
3171
|
script: this.params.script,
|
|
3014
3172
|
scriptPath: this.params.scriptPath,
|
|
3015
3173
|
args: this.params.args,
|
|
@@ -3032,6 +3190,7 @@ var WorkflowToolInvocation = class extends BaseToolInvocation {
|
|
|
3032
3190
|
handle.budget.total
|
|
3033
3191
|
);
|
|
3034
3192
|
return {
|
|
3193
|
+
workflowRunId: handle.runId,
|
|
3035
3194
|
llmContent: [
|
|
3036
3195
|
{
|
|
3037
3196
|
text: `Workflow started in background.
|