@organizaone/o1-code 0.23.2 → 0.23.3
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/configuration/model-providers.md +39 -17
- package/chunks/{MaxSizedBox-Z7DJBX2Q.js → MaxSizedBox-PNOKV5XB.js} +29 -28
- package/chunks/{StandaloneSessionPicker-EYM35PIJ.js → StandaloneSessionPicker-DI2PPRCG.js} +45 -44
- package/chunks/{acp-subagent-executor-SMYOAOWC.js → acp-subagent-executor-J5IOC3T2.js} +32 -31
- package/chunks/{acpAgent-HSOIXV24.js → acpAgent-Q3ES6XUH.js} +74 -72
- package/chunks/{agent-JC6EFT2I.js → agent-VXBORFU5.js} +18 -17
- package/chunks/{agent-headless-CHIUZU65.js → agent-headless-F7X4H6AT.js} +18 -17
- package/chunks/{all-providers-ZA3SYI4L.js → all-providers-UJJNWFBU.js} +2 -2
- package/chunks/{anthropicContentGenerator-ZVN4PNRN.js → anthropicContentGenerator-PXN4JHYG.js} +9 -8
- package/chunks/{bridge-COLH5KR3.js → bridge-OHMXMD6B.js} +32 -31
- package/chunks/{chunk-AHHIUSSB.js → chunk-2JVMVD6L.js} +14 -14
- package/chunks/chunk-2SJEYSJ5.js +478 -0
- package/chunks/{chunk-RI5VIBOZ.js → chunk-2VH7GPPV.js} +2 -2
- package/chunks/{chunk-7RKJLHZZ.js → chunk-35WHEBW3.js} +6 -6
- package/chunks/{chunk-G376S7VI.js → chunk-3FDAQK6P.js} +1 -1
- package/chunks/chunk-3JWJHYFV.js +328 -0
- package/chunks/{chunk-Y6HZBYDT.js → chunk-45LWV5IN.js} +7 -7
- package/chunks/{chunk-Q3L72VR6.js → chunk-4FKNGLMA.js} +4 -4
- package/chunks/{chunk-5WCEM6DZ.js → chunk-4MFP7T32.js} +1 -1
- package/chunks/{chunk-J6IO5FRE.js → chunk-4OV5UWWQ.js} +2 -2
- package/chunks/{chunk-XLSS6CXY.js → chunk-4Q5LZTPI.js} +3 -3
- package/chunks/{chunk-G524L6DX.js → chunk-5UX4INNV.js} +59 -16
- package/chunks/{chunk-DYQ33P42.js → chunk-5UZNF6UX.js} +1 -1
- package/chunks/{chunk-LKM24VDU.js → chunk-63BWCBL5.js} +6 -6
- package/chunks/{chunk-HPRAZUO3.js → chunk-6LJBRLNS.js} +8 -8
- package/chunks/{chunk-TJQMUJ4P.js → chunk-6RIH5HJL.js} +3 -3
- package/chunks/{chunk-SRDS6JPI.js → chunk-756Q43CP.js} +3 -3
- package/chunks/{chunk-QNI2MYF2.js → chunk-7BEB4OCA.js} +4 -4
- package/chunks/{chunk-HLTVFS3P.js → chunk-7DHQ5FE7.js} +1 -1
- package/chunks/{chunk-AURWTXBY.js → chunk-7GCSNYB5.js} +3 -3
- package/chunks/{chunk-RWUZRVUT.js → chunk-AE4IQ5HU.js} +2 -2
- package/chunks/{chunk-73D2FESX.js → chunk-AEQNNEHI.js} +1 -1
- package/chunks/{chunk-YPTR7ZFB.js → chunk-AFLYEJ7J.js} +20 -314
- package/chunks/{chunk-XV74KNLU.js → chunk-AK6UP3LA.js} +2 -2
- package/chunks/{chunk-Z2FEOKPL.js → chunk-BBQWOOBL.js} +8 -8
- package/chunks/{chunk-LIWLMHB2.js → chunk-BEGSPMH3.js} +5 -5
- package/chunks/{chunk-2OEBEF5L.js → chunk-BZYI5TLI.js} +1 -1
- package/chunks/{chunk-AHIIFAZD.js → chunk-CQL2XFY3.js} +3 -3
- package/chunks/{chunk-N3U72PWG.js → chunk-DHXBIFA3.js} +1 -1
- package/chunks/{chunk-W5XYWVXE.js → chunk-EB4VOVOS.js} +4 -4
- package/chunks/{chunk-EPNQMLQI.js → chunk-ER7RIWYZ.js} +1 -1
- package/chunks/{chunk-AXM2QH6N.js → chunk-ETYF6LYZ.js} +1 -1
- package/chunks/{chunk-YQIVW7PV.js → chunk-F5XJP6CK.js} +1 -1
- package/chunks/{chunk-VDZHZKLL.js → chunk-FE2ZH6WW.js} +83 -92
- package/chunks/{chunk-K3ONONVP.js → chunk-FIPT36QW.js} +4 -4
- package/chunks/{chunk-HRVFW2AK.js → chunk-FMWQ43OS.js} +4 -4
- package/chunks/{chunk-7DRS2N6U.js → chunk-FQZNP6Z5.js} +2 -2
- package/chunks/{chunk-CNXTYK25.js → chunk-G7TCNWW4.js} +2 -2
- package/chunks/{chunk-3365B2SG.js → chunk-GHFDVXXW.js} +2 -2
- package/chunks/{chunk-6L4U7EHQ.js → chunk-GJKIVVOK.js} +3 -3
- package/chunks/{chunk-ZMXWTUY3.js → chunk-GQSJRXHV.js} +1 -1
- package/chunks/{chunk-NRPYVAT2.js → chunk-GRSBNB75.js} +4 -4
- package/chunks/{chunk-55J4YCGE.js → chunk-GXQSKSIX.js} +4 -4
- package/chunks/{chunk-F5GPRGLO.js → chunk-HA5FHKHP.js} +1 -1
- package/chunks/{chunk-KPPSQ5EU.js → chunk-HBVBJLFL.js} +1 -1
- package/chunks/{chunk-I25PS4O7.js → chunk-HFYFYN7B.js} +3 -3
- package/chunks/{chunk-7PYCEQRH.js → chunk-HV7DTSIC.js} +1 -1
- package/chunks/{chunk-EKCBRE2L.js → chunk-IJLB54SO.js} +4 -4
- package/chunks/{chunk-52OZIQ5T.js → chunk-IOWEOCTW.js} +3 -3
- package/chunks/{chunk-WXRDFUBX.js → chunk-IQS3YNFT.js} +3 -3
- package/chunks/{chunk-WXIQKOFD.js → chunk-JCWIHPJ2.js} +32 -2
- package/chunks/{chunk-IPZ6Q5DH.js → chunk-K3QLKXBZ.js} +1 -1
- package/chunks/{chunk-Y4BAYYQH.js → chunk-K7OVGWJS.js} +2 -2
- package/chunks/{chunk-EHNBRYKR.js → chunk-KH547BMV.js} +1 -1
- package/chunks/{chunk-YHONRCP6.js → chunk-L37WQYHD.js} +3 -3
- package/chunks/{chunk-HIJ2PJCR.js → chunk-LOWKYYPU.js} +3 -3
- package/chunks/{chunk-W7YSJWYY.js → chunk-LRLHFEMZ.js} +1 -1
- package/chunks/{chunk-CJ4DSU6T.js → chunk-MDRVMHR5.js} +1 -1
- package/chunks/{chunk-PJT67V3P.js → chunk-MDZE3I5B.js} +3 -3
- package/chunks/{chunk-5C2PDGQ5.js → chunk-MEHOIUQO.js} +1 -1
- package/chunks/{chunk-3SIUBEAC.js → chunk-MLMRVKRY.js} +1 -1
- package/chunks/{chunk-CHKNZNCJ.js → chunk-MNPMZBSO.js} +8 -8
- package/chunks/{chunk-ITLANVG6.js → chunk-MYLH5UBR.js} +3 -3
- package/chunks/{chunk-LRSEIM7L.js → chunk-MZ4ZQ5JN.js} +2 -2
- package/chunks/{chunk-INBZJC5Z.js → chunk-NO5DFAGI.js} +1 -1
- package/chunks/{chunk-X6K47FOG.js → chunk-NWRMBNPA.js} +1 -1
- package/chunks/{chunk-M2PU5FFH.js → chunk-ODSKG77G.js} +2 -2
- package/chunks/{chunk-AKXCASOU.js → chunk-P3K3UIUL.js} +1 -1
- package/chunks/{chunk-FOST7L5P.js → chunk-PMFVBLGB.js} +5 -5
- package/chunks/{chunk-5TGVTMA4.js → chunk-PZ5JMLBW.js} +2 -2
- package/chunks/{chunk-NRVJJRQU.js → chunk-Q2LPAA7C.js} +1 -1
- package/chunks/{chunk-QD5MC6EV.js → chunk-QEYB4PDO.js} +6 -6
- package/chunks/{chunk-2NTOADNA.js → chunk-QPGYYXO7.js} +1 -1
- package/chunks/{chunk-EE35GR3R.js → chunk-QQXXDTSU.js} +1 -1
- package/chunks/{chunk-KGYU4YCT.js → chunk-QSSYZQUP.js} +2 -2
- package/chunks/{chunk-FVYOBBIY.js → chunk-QUTCQFWY.js} +9 -9
- package/chunks/{chunk-6WR3DWHA.js → chunk-R5IR75RD.js} +1 -1
- package/chunks/{chunk-B4CCJMG6.js → chunk-R66LP4MO.js} +2 -2
- package/chunks/{chunk-WCV4SHJT.js → chunk-RHOOOMUK.js} +2 -2
- package/chunks/{chunk-B4K3VBFF.js → chunk-RI6JVRWR.js} +1 -1
- package/chunks/{chunk-GE3WWLUS.js → chunk-RRRI34RZ.js} +11 -11
- package/chunks/{chunk-YXUFWO4Q.js → chunk-RXSGUX7U.js} +1 -1
- package/chunks/{chunk-GYEUB6AF.js → chunk-SE4AX4Z4.js} +2 -2
- package/chunks/{chunk-VDFCAVG2.js → chunk-SQRKCXPM.js} +6 -6
- package/chunks/{chunk-O6EHTIDU.js → chunk-SY5UOOLE.js} +8 -8
- package/chunks/{chunk-Q4LEAAGJ.js → chunk-T636IYGV.js} +1 -1
- package/chunks/{chunk-4KLFLD6W.js → chunk-TASQRFKT.js} +1 -1
- package/chunks/{chunk-S2Q3IIJI.js → chunk-TQXNST6Y.js} +2 -2
- package/chunks/{chunk-VTK33X3H.js → chunk-UBWDDULS.js} +1 -1
- package/chunks/{chunk-ULF6LMSZ.js → chunk-V7K34NU3.js} +1 -1
- package/chunks/{chunk-BOD2QXN3.js → chunk-VCUEXE3H.js} +3 -3
- package/chunks/{chunk-GCOX5DHU.js → chunk-W42YGWDC.js} +36 -36
- package/chunks/{chunk-YLNBTV7R.js → chunk-WOUHB7ZU.js} +4 -4
- package/chunks/{chunk-ULI3W2FQ.js → chunk-X3KJPJFI.js} +2 -2
- package/chunks/{chunk-LMFAYXBU.js → chunk-XBZ4D64Q.js} +1 -1
- package/chunks/{chunk-EK2MS2YU.js → chunk-XOT6SBGY.js} +101 -42
- package/chunks/{chunk-6SNXZ4AT.js → chunk-Y77F2ZSE.js} +2 -2
- package/chunks/{chunk-TOHVMXEP.js → chunk-YQN4NZ4S.js} +5 -5
- package/chunks/{chunk-XCFYHA4L.js → chunk-Z35PMMFQ.js} +3 -3
- package/chunks/{chunk-IKCTAL27.js → chunk-ZIWDO6UP.js} +5 -5
- package/chunks/{chunk-OCGMQ7V4.js → chunk-ZIWHK3AH.js} +1 -1
- package/chunks/{chunk-NYFKH3IB.js → chunk-ZSCKJRVS.js} +9 -9
- package/chunks/{codex-subagent-executor-T7M5FTHN.js → codex-subagent-executor-NKIAVWGC.js} +32 -31
- package/chunks/{contextCommand-227JLKFM.js → contextCommand-5JWT6VQL.js} +31 -30
- package/chunks/{core-runtime-VLL5ONTJ.js → core-runtime-7DRPFC35.js} +29 -28
- package/chunks/{create-sub-session-BXIEQSUR.js → create-sub-session-3YQEERSH.js} +30 -29
- package/chunks/{daemon-git-worktree-guard-SCYT7G5Z.js → daemon-git-worktree-guard-VFOGBZHD.js} +29 -28
- package/chunks/{daemon-status-provider-BXRYGSEC.js → daemon-status-provider-IIFM5IM6.js} +37 -36
- package/chunks/{daemon-trust-policy-KUU3SJJR.js → daemon-trust-policy-AVBAHIIT.js} +35 -34
- package/chunks/{daemon-trust-policy-monitor-3HW5C536.js → daemon-trust-policy-monitor-KKXFYM52.js} +35 -34
- package/chunks/{deferred-core-runtime-ZVY4R7JN.js → deferred-core-runtime-3MIPB4S7.js} +29 -28
- package/chunks/{edit-7VTZEUFB.js → edit-PPJLVA5I.js} +20 -19
- package/chunks/{en-MQICGJBA.js → en-V375KBHU.js} +4 -0
- package/chunks/{enterPlanMode-4ACRIABY.js → enterPlanMode-YJTR3OC2.js} +18 -17
- package/chunks/{environment-P7O3DRVU.js → environment-PQMV73WH.js} +31 -30
- package/chunks/{errors-FPOD56OM.js → errors-YXLBIGK2.js} +31 -30
- package/chunks/{execution-tool-CUZLLHDM.js → execution-tool-PRN55ECE.js} +20 -19
- package/chunks/{execution-worker-K7OIFEQC.js → execution-worker-5VUJKVPI.js} +23 -22
- package/chunks/{exitPlanMode-SVK6JBWM.js → exitPlanMode-3SOHTPAM.js} +18 -17
- package/chunks/{fast-path-63ZAOC2O.js → fast-path-KKKMA4OP.js} +2 -2
- package/chunks/{foreground-runner-5BDXDCJ3.js → foreground-runner-G3TYGJAE.js} +31 -30
- package/chunks/{gateway-content-generator-YATQA6IH.js → gateway-content-generator-URNHKQ6P.js} +32 -101
- package/chunks/{gateway-models-CI5ONUHN.js → gateway-models-UR5GHR6N.js} +7 -6
- package/chunks/gateway-transfer-OASSZYSK.js +46 -0
- package/chunks/{glob-AHU4JEAH.js → glob-5AEFGOMN.js} +18 -17
- package/chunks/{goal-tools-HZ3SEEDJ.js → goal-tools-O5TA2PQY.js} +18 -17
- package/chunks/{handleAutoUpdate-NWIBYK3W.js → handleAutoUpdate-JAQEKGA7.js} +32 -31
- package/chunks/{i18n-HXRZVPI5.js → i18n-SKUHM5IJ.js} +30 -29
- package/chunks/{image-gen-WGMRL47H.js → image-gen-D4WPSZB4.js} +3 -2
- package/chunks/{initializer-DZE6W5ZZ.js → initializer-XZ6MXFUA.js} +35 -34
- package/chunks/{installationInfo-DJS6YOYL.js → installationInfo-YXI3S52N.js} +29 -28
- package/chunks/{list-QOTYRCXE.js → list-K3KSNZSU.js} +37 -36
- package/chunks/{llm-VTSGUOEX.js → llm-DMR52SHW.js} +63 -62
- package/chunks/{llm-content-generator-GNBKROI6.js → llm-content-generator-UWKSCTYE.js} +4 -4
- package/chunks/{loadedSettingsAdapter-5XTSYAN2.js → loadedSettingsAdapter-TW2IMB6V.js} +35 -34
- package/chunks/{local-execution-environment-FAMBOK2R.js → local-execution-environment-KH5EESSY.js} +23 -22
- package/chunks/{loggingContentGenerator-QHARM6I7.js → loggingContentGenerator-T2W2WRJJ.js} +19 -18
- package/chunks/{managed-npm-update-NHG4CNTY.js → managed-npm-update-6RQYY3YZ.js} +29 -28
- package/chunks/{mcp-GFWKHITS.js → mcp-64G5H2OG.js} +35 -34
- package/chunks/{model-call-collection-PSCHHAL2.js → model-call-collection-Z4NJZHIV.js} +1 -1
- package/chunks/{model-configuration-4OLQAYPC.js → model-configuration-Q36E3EFG.js} +36 -35
- package/chunks/{modelConfigUtils-6BOQF3QL.js → modelConfigUtils-7LRIWH6S.js} +31 -30
- package/chunks/{monitor-AMCODWD4.js → monitor-VT7Z5NIW.js} +18 -17
- package/chunks/{nonInteractiveCli-WNWO63XM.js → nonInteractiveCli-YTRGNVIT.js} +65 -63
- package/chunks/{nonInteractiveToolExecutor-WM3YSMJV.js → nonInteractiveToolExecutor-KCT5X3VP.js} +19 -18
- package/chunks/{notebook-edit-2ZEGVMQ5.js → notebook-edit-BTEP4ZZF.js} +19 -18
- package/chunks/{omni-F3MGKMI5.js → omni-J52AX5TE.js} +13 -12
- package/chunks/{openaiContentGenerator-JSWESHEH.js → openaiContentGenerator-I2O3ZSYA.js} +15 -13
- package/chunks/{openaiResponsesContentGenerator-GOFHZBHE.js → openaiResponsesContentGenerator-FUJIJGE2.js} +8 -7
- package/chunks/{processUtils-BLTEAR2P.js → processUtils-BPHUSEPE.js} +2 -2
- package/chunks/{prompt-terminal-ledger-SZV4IH7W.js → prompt-terminal-ledger-JAMNBNXB.js} +30 -29
- package/chunks/{pt-EZL4H2AB.js → pt-554PEF6Z.js} +4 -0
- package/chunks/{reactive-degrade-RMOJR3UO.js → reactive-degrade-XI6MKZZ5.js} +12 -11
- package/chunks/{read-file-QH2DDCDD.js → read-file-TXVD2R3P.js} +4 -4
- package/chunks/{resumeHistoryUtils-SK7UGMOC.js → resumeHistoryUtils-2SRSXIHZ.js} +33 -32
- package/chunks/{ripGrep-K4J4MLBL.js → ripGrep-IZ3IBKVF.js} +5 -5
- package/chunks/{run-o1-code-serve-PGCIJYC2.js → run-o1-code-serve-XO4BHKDA.js} +32 -32
- package/chunks/{sandboxConfig-MUJTXJWI.js → sandboxConfig-YTUMPCXL.js} +29 -28
- package/chunks/{scheduled-tasks-DFC6Q3IG.js → scheduled-tasks-KJYPVS4M.js} +35 -34
- package/chunks/{scheduler-63WJQPZ2.js → scheduler-IAQQQQYN.js} +31 -30
- package/chunks/{sdk-exporters-http-66WPQ7UY.js → sdk-exporters-http-YROX3PLL.js} +2 -2
- package/chunks/{sdk-impl-B4WTXTDQ.js → sdk-impl-LMCYCCTE.js} +4 -4
- package/chunks/{serve-DKXTI5V2.js → serve-3LSIZROT.js} +35 -34
- package/chunks/{server-3INVZRET.js → server-2YOZRQDZ.js} +67 -66
- package/chunks/{session-LN37VDDP.js → session-G6BRGHF4.js} +176 -67
- package/chunks/{session-HENSFFJO.js → session-JVXNBIG2.js} +1 -1
- package/chunks/{session-attachments-root-MQU3746J.js → session-attachments-root-57AW3DJA.js} +29 -28
- package/chunks/{session-pr-refresh-OGTS6EVI.js → session-pr-refresh-KVCFM7XO.js} +34 -33
- package/chunks/{settings-BXDNY2AP.js → settings-LEYMP47D.js} +34 -33
- package/chunks/{shell-H7R2TF7F.js → shell-IZZXIZEA.js} +18 -17
- package/chunks/{skill-3DPAHPZB.js → skill-VKY4NL3S.js} +6 -6
- package/chunks/{skill-settings-RWVB7OQH.js → skill-settings-II2S2X4N.js} +35 -34
- package/chunks/{spawnChannel-FTLDFA2H.js → spawnChannel-5ZGURNUI.js} +31 -30
- package/chunks/{standalone-update-2NTMLG6U.js → standalone-update-3WGDHWYQ.js} +31 -30
- package/chunks/{startInteractiveUI-ZQYISDFK.js → startInteractiveUI-ILJJTRGB.js} +117 -145
- package/chunks/{supervisor-runner-4UQ3S7ZK.js → supervisor-runner-JTBZ6TKM.js} +2 -2
- package/chunks/{team-create-AKAP7B2I.js → team-create-OB7H2J22.js} +18 -17
- package/chunks/{team-plan-approval-CD5PJ2HF.js → team-plan-approval-IWAVB7GG.js} +18 -17
- package/chunks/{terminal-image-renderer-2H7GWOGJ.js → terminal-image-renderer-TKSJWK74.js} +29 -28
- package/chunks/{theme-manager-PO2AOYF4.js → theme-manager-PMVUV6N4.js} +29 -28
- package/chunks/{tool-result-media-TRUCQ7RW.js → tool-result-media-YXNXZVPE.js} +13 -12
- package/chunks/{tool-search-EDTROJCV.js → tool-search-MCUYQHXS.js} +4 -4
- package/chunks/{total-session-admission-P6DIV3Q5.js → total-session-admission-47PQOJF4.js} +32 -31
- package/chunks/{trustedFolders-SEN5Y6NQ.js → trustedFolders-YQXN7ZK7.js} +30 -29
- package/chunks/{update-relaunch-SYHPPEM3.js → update-relaunch-IJ2CZAKA.js} +5 -5
- package/chunks/{updateCheck-7OOIBXXV.js → updateCheck-ZLTZQV3Q.js} +31 -30
- package/chunks/{upload-config-UMYJSCZQ.js → upload-config-P5BLCB72.js} +10 -9
- package/chunks/{useAutoAcceptIndicator-I5R77IN7.js → useAutoAcceptIndicator-KS6UQLAF.js} +37 -36
- package/chunks/{validateNonInterActiveAuth-AEZTP3MC.js → validateNonInterActiveAuth-JFHD2CGM.js} +62 -60
- package/chunks/{version-S7QK2XJ3.js → version-JYHYRKC2.js} +1 -1
- package/chunks/{web-fetch-4CLYKVOX.js → web-fetch-QS7AL72Y.js} +6 -5
- package/chunks/{web-search-LXGIHMSR.js → web-search-M5YLCDCJ.js} +10 -9
- package/chunks/{workflow-BJXDZAIK.js → workflow-QIHDEVAH.js} +21 -20
- package/chunks/{workspace-providers-status-WOJTQARI.js → workspace-providers-status-BBQTHMSA.js} +41 -40
- package/chunks/{workspace-registration-store-HA5CPWRM.js → workspace-registration-store-X3UYZFNJ.js} +1 -1
- package/chunks/{workspace-registry-JTKEDLKB.js → workspace-registry-FFHZ2EVX.js} +32 -31
- package/chunks/{workspace-runtime-coordinator-HCSJM4WW.js → workspace-runtime-coordinator-BAGT7DSO.js} +33 -32
- package/chunks/{workspace-service-Z6AXYMZK.js → workspace-service-J24VVFZM.js} +39 -38
- package/chunks/{workspace-skills-status-5CRGREPM.js → workspace-skills-status-UZ54UGI2.js} +38 -37
- package/chunks/{workspace-trust-reconciler-2HYPUBV5.js → workspace-trust-reconciler-GTJFOGCS.js} +38 -37
- package/chunks/{write-file-DB5MAWEC.js → write-file-4WGBKBGB.js} +20 -19
- package/chunks/{zoom-image-INVYZYGT.js → zoom-image-OYRRFO65.js} +4 -4
- package/cli.js +15 -15
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +7 -0
- package/locales/pt.js +7 -0
- package/package.json +2 -2
- package/release-notes.json +9 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BaNqfZpC.js → abnfDiagram-VCTEODGH-D-bBdnGb.js} +1 -1
- package/web-shell/assets/{arc-gDDqDKPT.js → arc-B2SS2QTX.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-Bksq6k3e.js → architectureDiagram-5GKGNRK7-DFVuGyYx.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-7hsG6uyG.js → blockDiagram-NRAW4CY4-CS2hSeXi.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-D1YM1daI.js → c4Diagram-UCG6FXSJ-DQShkkBR.js} +1 -1
- package/web-shell/assets/channel-DV-9kalP.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BB8Fw1Hw.js → chunk-2Q5K7J3B-BwTtOt8R.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DQVttniG.js → chunk-5VM5RSS4-Bj6h0Dwa.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-CmdpVDej.js → chunk-F27PBJKO-kC66vkrG.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-C2pQ1X6e.js → chunk-G27WJ6UU-Cgvg9nvk.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-DLd59_s7.js → chunk-JWPE2WC7-EzC494sa.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CF_rpE3C.js → chunk-LCL6LL3I-utra0L7l.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Bix-ymX6.js → chunk-POPQ4Y6H-xUBwWPMI.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-TgCBK2Wr.js → chunk-SVP7TREG-CSs6ULGi.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-bAG8mDsG.js → chunk-XXDRQBXY-CWPn3dOd.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DN5tETa4.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DN5tETa4.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-Ki_lMvfR.js → cose-bilkent-JH36ORCC-Dp7POI99.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-ClCmMaaz.js → cynefin-OW5HDTMX-CnqWFq9t.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Bd_01Yme.js → cynefinDiagram-5FMLGOSQ-BtgoKTG2.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CFzBzlQw.js → dagre-3AP2YEHR-BkDKcnoQ.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-D1sCOBvM.js → diagram-S7CK7UJ4-CoCStDfp.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-9BhhA92f.js → diagram-UQ7AKVKN-D6a6j3_H.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CcRwCzkz.js → diagram-VSXAHHWV-Da_ctgX_.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-CxuPvHoZ.js → diagram-VX7I27RA-CoToXRBH.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-CoIJxvYZ.js → diagram-Z3DM3KII-DlRPF3da.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-Dg5aM3n8.js → ebnfDiagram-PWID7BFC-B0owtdgg.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DMa-93Pc.js → erDiagram-SSCWMZ5O-DZv1xcIp.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-YyRjDg58.js → flowDiagram-A5DVABFB-DqXIgApm.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DL6u7rJj.js → ganttDiagram-EL5Y4UJY-hp-3Nfao.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-VzBe_y82.js → gitGraphDiagram-WWUBYQGX-pHy6E6Jm.js} +1 -1
- package/web-shell/assets/{index-sM76wg9o.js → index-BM9Xm2Dz.js} +1 -1
- package/web-shell/assets/{index-GigiICvn.js → index-zRWCDwX8.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-ZdRuVjv4.js → infoDiagram-RXCK75RN-DQlz-0GH.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DCGfNGm8.js → ishikawaDiagram-5VMMS53U-BA43ebt4.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-vAmOL7Eg.js → journeyDiagram-EYS64GPL-DDlU7qPX.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-DE-XVGLj.js → kanban-definition-3QL26DDD-DaT1T9VO.js} +1 -1
- package/web-shell/assets/{layout-8oKHDfxQ.js → layout-CGoDE0Jk.js} +1 -1
- package/web-shell/assets/{linear-BTNkFLpm.js → linear-Dlcix00h.js} +1 -1
- package/web-shell/assets/{mermaid.core-1L-v7Osp.js → mermaid.core-CTrkfnVV.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-B_TZjQ0C.js → mindmap-definition-FBJOCRG2-CKlmCDs2.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-YXEadiQt.js → pegDiagram-XKGWAZYB-C-81xWvj.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BhkRy1C-.js → pieDiagram-E7YTZNPT-DkWgCGEs.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CSuVeiFP.js → quadrantDiagram-AXDQQJYC-B8ItQsl-.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-C-keEU-2.js → railroadDiagram-O6MQD6OU-BZMa6PzJ.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BRsygqPt.js → requirementDiagram-EFPCY7ZU-BGNIJd20.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-D-_EHQLT.js → sankeyDiagram-P5KCCOFB-BfD9Ralh.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CNIb-Onj.js → sequenceDiagram-WJ2MYXX4-BHv0Frcl.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BbofuaSb.js → sizeCapture-X5ZJPWSS-Dz7SvtQb.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DWmCEpdE.js → stateDiagram-HBIQ2CUA-CgkD_KYa.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-uPaEMeEa.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-DZduoU7z.js → swimlanes-XN3QIQJK-Bv1d8x7Q.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DClL59AS.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DfIVB7QH.js → timeline-definition-24CTP7MA-B_3E6jPw.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-OvwgQkxx.js → vennDiagram-4TSXK5OY-OX4OfnpL.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CH_cuYLP.js → wardleyDiagram-VM6X3IG4-agygocEg.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Dc3Tv7qx.js → xychartDiagram-S5SC5T6Z-Dlre674O.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/chunks/chunk-V24FMEXL.js +0 -203
- package/chunks/gateway-transfer-47WP3EUB.js +0 -27
- package/web-shell/assets/channel-CGxTee96.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CVk9ORuZ.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CVk9ORuZ.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CsO4gStv.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BEwObTq5.js +0 -8
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
getErrorStatus
|
|
5
|
+
} from "./chunk-JAQAGKIV.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-S2467S6L.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/core/src/utils/quotaErrorDetection.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
function isApiError(error) {
|
|
16
|
+
return typeof error === "object" && error !== null && "error" in error && typeof error.error === "object" && error.error !== null && "message" in error.error;
|
|
17
|
+
}
|
|
18
|
+
__name(isApiError, "isApiError");
|
|
19
|
+
function isStructuredError(error) {
|
|
20
|
+
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
21
|
+
}
|
|
22
|
+
__name(isStructuredError, "isStructuredError");
|
|
23
|
+
var QUOTA_EXHAUSTED_PREFIX = "Quota exhausted: ";
|
|
24
|
+
function getQuotaMessage(error) {
|
|
25
|
+
let message = null;
|
|
26
|
+
if (typeof error === "string") message = error;
|
|
27
|
+
else if (isStructuredError(error)) message = error.message;
|
|
28
|
+
else if (isApiError(error)) message = error.error.message;
|
|
29
|
+
if (message === null) return null;
|
|
30
|
+
const start = message.indexOf("{");
|
|
31
|
+
if (start !== -1) {
|
|
32
|
+
try {
|
|
33
|
+
const parsed = JSON.parse(message.substring(start));
|
|
34
|
+
if (isApiError(parsed)) return parsed.error.message;
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
}
|
|
40
|
+
__name(getQuotaMessage, "getQuotaMessage");
|
|
41
|
+
function isQuotaExhaustedError(error) {
|
|
42
|
+
const message = getQuotaMessage(error);
|
|
43
|
+
if (!message) return false;
|
|
44
|
+
const lower = message.toLowerCase();
|
|
45
|
+
return lower.includes("quota") && (lower.includes("exhausted") || lower.includes("exceeded")) && (lower.includes("will reset") || lower.includes("reset at"));
|
|
46
|
+
}
|
|
47
|
+
__name(isQuotaExhaustedError, "isQuotaExhaustedError");
|
|
48
|
+
function formatQuotaExhaustedMessage(error) {
|
|
49
|
+
const raw = getQuotaMessage(error) ?? "";
|
|
50
|
+
if (raw.startsWith(QUOTA_EXHAUSTED_PREFIX)) return raw;
|
|
51
|
+
const stripped = raw.replace(/^\d{3}\s+/, "").trim() || "quota has been exhausted";
|
|
52
|
+
return `${QUOTA_EXHAUSTED_PREFIX}${stripped}
|
|
53
|
+
|
|
54
|
+
Please retry after the reset time, or switch to another API key / auth method.`;
|
|
55
|
+
}
|
|
56
|
+
__name(formatQuotaExhaustedMessage, "formatQuotaExhaustedMessage");
|
|
57
|
+
|
|
58
|
+
// packages/core/src/utils/retryPolicy.ts
|
|
59
|
+
init_esbuild_shims();
|
|
60
|
+
var MAX_TIMEOUT_MS = 2147483647;
|
|
61
|
+
function getRetryDelayMs(options) {
|
|
62
|
+
const normalizedAttempt = Math.max(1, options.attempt);
|
|
63
|
+
const delayCeilingMs = Math.min(options.maxDelayMs, MAX_TIMEOUT_MS);
|
|
64
|
+
const exponent = Math.min(normalizedAttempt - 1, 31);
|
|
65
|
+
const cappedExponentialDelayMs = Math.min(
|
|
66
|
+
options.initialDelayMs * Math.pow(2, exponent),
|
|
67
|
+
delayCeilingMs
|
|
68
|
+
);
|
|
69
|
+
const retryAfterMode = options.retryAfterMode ?? "ignore";
|
|
70
|
+
const retryAfterMs = retryAfterMode === "ignore" ? null : getRetryAfterDelayMs(options.error);
|
|
71
|
+
if (retryAfterMs !== null && retryAfterMs > 0) {
|
|
72
|
+
const retryAfterCapMs = Math.min(
|
|
73
|
+
options.retryAfterMaxDelayMs ?? options.maxDelayMs,
|
|
74
|
+
MAX_TIMEOUT_MS
|
|
75
|
+
);
|
|
76
|
+
const cappedRetryAfterMs = Math.min(retryAfterMs, retryAfterCapMs);
|
|
77
|
+
return Math.max(cappedExponentialDelayMs, cappedRetryAfterMs);
|
|
78
|
+
}
|
|
79
|
+
const jitterRatio = options.jitterRatio ?? 0;
|
|
80
|
+
if (jitterRatio <= 0) return cappedExponentialDelayMs;
|
|
81
|
+
const random = options.random ?? Math.random;
|
|
82
|
+
const jitter = cappedExponentialDelayMs * jitterRatio * (random() * 2 - 1);
|
|
83
|
+
return Math.min(
|
|
84
|
+
Math.max(0, cappedExponentialDelayMs + jitter),
|
|
85
|
+
delayCeilingMs
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
__name(getRetryDelayMs, "getRetryDelayMs");
|
|
89
|
+
function getRetryAfterDelayMs(error) {
|
|
90
|
+
const millis = getHeaderValue(error, "retry-after-ms") ?? getResponseHeaderValue(error, "retry-after-ms");
|
|
91
|
+
if (millis !== null && /^\d+(\.\d+)?$/.test(millis.trim())) {
|
|
92
|
+
const value2 = Number(millis);
|
|
93
|
+
if (Number.isFinite(value2)) return Math.min(value2, MAX_TIMEOUT_MS);
|
|
94
|
+
}
|
|
95
|
+
const value = getHeaderValue(error, "retry-after") ?? getResponseHeaderValue(error, "retry-after");
|
|
96
|
+
if (value === null) return null;
|
|
97
|
+
const trimmed = value.trim();
|
|
98
|
+
if (/^\d+(\.\d+)?$/.test(trimmed)) {
|
|
99
|
+
const seconds = Number(trimmed);
|
|
100
|
+
if (Number.isFinite(seconds) && seconds >= 0) {
|
|
101
|
+
return Math.min(seconds * 1e3, MAX_TIMEOUT_MS);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const retryAtMs = Date.parse(trimmed);
|
|
105
|
+
if (!Number.isFinite(retryAtMs)) return null;
|
|
106
|
+
const delayMs = retryAtMs - Date.now();
|
|
107
|
+
return delayMs > 0 ? Math.min(delayMs, MAX_TIMEOUT_MS) : 0;
|
|
108
|
+
}
|
|
109
|
+
__name(getRetryAfterDelayMs, "getRetryAfterDelayMs");
|
|
110
|
+
function getErrorHeader(error, headerName) {
|
|
111
|
+
return getHeaderValue(error, headerName) ?? getResponseHeaderValue(error, headerName);
|
|
112
|
+
}
|
|
113
|
+
__name(getErrorHeader, "getErrorHeader");
|
|
114
|
+
function getHeaderValue(error, headerName) {
|
|
115
|
+
if (!hasHeaders(error)) return null;
|
|
116
|
+
const { headers } = error;
|
|
117
|
+
if (typeof headers.get === "function") {
|
|
118
|
+
const value = headers.get(headerName);
|
|
119
|
+
return typeof value === "string" ? value : null;
|
|
120
|
+
}
|
|
121
|
+
if (typeof headers !== "object" || headers === null) return null;
|
|
122
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
123
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
124
|
+
if (key.toLowerCase() !== lowerHeaderName) continue;
|
|
125
|
+
return typeof value === "string" ? value : null;
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
__name(getHeaderValue, "getHeaderValue");
|
|
130
|
+
function getResponseHeaderValue(error, headerName) {
|
|
131
|
+
if (!hasResponseHeaders(error)) return null;
|
|
132
|
+
return getHeaderValue(error.response, headerName);
|
|
133
|
+
}
|
|
134
|
+
__name(getResponseHeaderValue, "getResponseHeaderValue");
|
|
135
|
+
function hasHeaders(error) {
|
|
136
|
+
return typeof error === "object" && error !== null && "headers" in error && error.headers != null;
|
|
137
|
+
}
|
|
138
|
+
__name(hasHeaders, "hasHeaders");
|
|
139
|
+
function hasResponseHeaders(error) {
|
|
140
|
+
return typeof error === "object" && error !== null && "response" in error && typeof error.response === "object" && error.response !== null && "headers" in error.response && error.response.headers != null;
|
|
141
|
+
}
|
|
142
|
+
__name(hasResponseHeaders, "hasResponseHeaders");
|
|
143
|
+
|
|
144
|
+
// packages/core/src/utils/rateLimit.ts
|
|
145
|
+
init_esbuild_shims();
|
|
146
|
+
var RATE_LIMIT_ERROR_CODES = /* @__PURE__ */ new Set([429, 503, 1302, 1305]);
|
|
147
|
+
function isRateLimitError(error, extraCodes) {
|
|
148
|
+
const code = getErrorCode(error);
|
|
149
|
+
if (code === null) return isStatuslessThrottle(error);
|
|
150
|
+
if (RATE_LIMIT_ERROR_CODES.has(code)) return true;
|
|
151
|
+
if (extraCodes && extraCodes.includes(code)) return true;
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
__name(isRateLimitError, "isRateLimitError");
|
|
155
|
+
function isStatuslessThrottle(error) {
|
|
156
|
+
for (const payload of [error, ...getJsonPayloads(error)]) {
|
|
157
|
+
const selected = providerErrorSource(payload);
|
|
158
|
+
if (!selected) continue;
|
|
159
|
+
const { source } = selected;
|
|
160
|
+
const { type, message } = source;
|
|
161
|
+
if (type === "rate_limit_error" || type === "overloaded_error") return true;
|
|
162
|
+
if (type !== "invalid_request_error" || typeof message !== "string")
|
|
163
|
+
continue;
|
|
164
|
+
const detail = decodeProviderMessage(message)?.["message"] ?? message;
|
|
165
|
+
if (typeof detail === "string" && /^too many requests\b/i.test(detail.trim()) && /\b(?:wait|try(?:ing)? again)\b/i.test(detail)) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
__name(isStatuslessThrottle, "isStatuslessThrottle");
|
|
172
|
+
function providerErrorSource(payload) {
|
|
173
|
+
if (typeof payload !== "object" || payload === null) return null;
|
|
174
|
+
const direct = payload;
|
|
175
|
+
const nested = direct["error"];
|
|
176
|
+
const source = typeof nested === "object" && nested !== null ? nested : direct;
|
|
177
|
+
return { source, direct };
|
|
178
|
+
}
|
|
179
|
+
__name(providerErrorSource, "providerErrorSource");
|
|
180
|
+
function decodeProviderMessage(message) {
|
|
181
|
+
try {
|
|
182
|
+
const selected = providerErrorSource(JSON.parse(message));
|
|
183
|
+
if (!selected || typeof selected.source["message"] !== "string") {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return { ...selected.direct, ...selected.source };
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
__name(decodeProviderMessage, "decodeProviderMessage");
|
|
192
|
+
function getRateLimitErrorDetails(error) {
|
|
193
|
+
const statusCode = getErrorStatus(error);
|
|
194
|
+
const payload = getProviderErrorPayload(error);
|
|
195
|
+
const message = getRawErrorMessage(error);
|
|
196
|
+
const transport = message?.includes("event:error") || message?.includes("HTTP_STATUS/") ? "sse" : statusCode !== void 0 ? "http" : "unknown";
|
|
197
|
+
return {
|
|
198
|
+
...statusCode !== void 0 ? { statusCode } : {},
|
|
199
|
+
...payload?.code !== void 0 || payload?.type !== void 0 ? { providerCode: String(payload.code ?? payload.type) } : {},
|
|
200
|
+
...payload?.type !== void 0 ? { providerType: payload.type } : {},
|
|
201
|
+
...payload?.message !== void 0 ? { providerMessage: payload.message } : {},
|
|
202
|
+
...payload?.requestId !== void 0 ? { requestId: payload.requestId } : {},
|
|
203
|
+
transport
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
__name(getRateLimitErrorDetails, "getRateLimitErrorDetails");
|
|
207
|
+
function getRateLimitRetryDelayMs(attempt, options) {
|
|
208
|
+
return getRetryDelayMs({
|
|
209
|
+
attempt,
|
|
210
|
+
initialDelayMs: options.initialDelayMs,
|
|
211
|
+
maxDelayMs: options.maxDelayMs,
|
|
212
|
+
retryAfterMode: "minimum",
|
|
213
|
+
retryAfterMaxDelayMs: options.maxDelayMs,
|
|
214
|
+
error: options.error
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
__name(getRateLimitRetryDelayMs, "getRateLimitRetryDelayMs");
|
|
218
|
+
function getErrorCode(error) {
|
|
219
|
+
if (isApiError(error)) {
|
|
220
|
+
const n = Number(error.error.code);
|
|
221
|
+
if (Number.isFinite(n) && n > 0) return n;
|
|
222
|
+
}
|
|
223
|
+
const msg = error instanceof Error ? error.message : typeof error === "string" ? error : null;
|
|
224
|
+
if (msg) {
|
|
225
|
+
const i = msg.indexOf("{");
|
|
226
|
+
if (i !== -1) {
|
|
227
|
+
try {
|
|
228
|
+
const p = JSON.parse(msg.substring(i));
|
|
229
|
+
if (isApiError(p)) {
|
|
230
|
+
const n = Number(p.error.code);
|
|
231
|
+
if (Number.isFinite(n) && n > 0) return n;
|
|
232
|
+
}
|
|
233
|
+
} catch {
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (isStructuredError(error) && typeof error.status === "number") {
|
|
238
|
+
return error.status;
|
|
239
|
+
}
|
|
240
|
+
if (error instanceof Error && "status" in error) {
|
|
241
|
+
const s = error.status;
|
|
242
|
+
if (typeof s === "number") return s;
|
|
243
|
+
}
|
|
244
|
+
return getErrorStatus(error) ?? null;
|
|
245
|
+
}
|
|
246
|
+
__name(getErrorCode, "getErrorCode");
|
|
247
|
+
function getProviderErrorPayload(error) {
|
|
248
|
+
for (const payload of getJsonPayloads(error)) {
|
|
249
|
+
const selected = providerErrorSource(payload);
|
|
250
|
+
if (!selected) continue;
|
|
251
|
+
const { source, direct } = selected;
|
|
252
|
+
const decoded = typeof source["message"] === "string" ? decodeProviderMessage(source["message"]) : null;
|
|
253
|
+
const code = typeof source["code"] === "string" || typeof source["code"] === "number" ? source["code"] : typeof decoded?.["code"] === "string" || typeof decoded?.["code"] === "number" ? decoded["code"] : void 0;
|
|
254
|
+
const type = typeof source["type"] === "string" ? source["type"] : typeof decoded?.["type"] === "string" ? decoded["type"] : void 0;
|
|
255
|
+
const message = typeof decoded?.["message"] === "string" ? decoded["message"] : typeof source["message"] === "string" ? source["message"] : void 0;
|
|
256
|
+
const requestId = typeof source["request_id"] === "string" ? source["request_id"] : typeof source["requestId"] === "string" ? source["requestId"] : typeof direct["request_id"] === "string" ? direct["request_id"] : typeof direct["requestId"] === "string" ? direct["requestId"] : typeof decoded?.["request_id"] === "string" ? decoded["request_id"] : typeof decoded?.["requestId"] === "string" ? decoded["requestId"] : void 0;
|
|
257
|
+
if (code !== void 0 || type !== void 0 || message !== void 0 || requestId !== void 0) {
|
|
258
|
+
return { code, type, message, requestId };
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (isApiError(error)) {
|
|
262
|
+
const decoded = decodeProviderMessage(error.error.message);
|
|
263
|
+
return {
|
|
264
|
+
code: error.error.code,
|
|
265
|
+
...typeof decoded?.["type"] === "string" ? { type: decoded["type"] } : {},
|
|
266
|
+
message: typeof decoded?.["message"] === "string" ? decoded["message"] : error.error.message
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
__name(getProviderErrorPayload, "getProviderErrorPayload");
|
|
272
|
+
function getJsonPayloads(error) {
|
|
273
|
+
const message = getRawErrorMessage(error);
|
|
274
|
+
if (!message) return [];
|
|
275
|
+
const payloads = [];
|
|
276
|
+
for (const line of message.split(/\r?\n/)) {
|
|
277
|
+
if (!line.startsWith("data:")) continue;
|
|
278
|
+
const data = line.slice("data:".length).trim();
|
|
279
|
+
if (!data || data === "[DONE]") continue;
|
|
280
|
+
try {
|
|
281
|
+
payloads.push(JSON.parse(data));
|
|
282
|
+
} catch {
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
if (payloads.length > 0) return payloads;
|
|
286
|
+
const jsonStart = message.indexOf("{");
|
|
287
|
+
const jsonEnd = message.lastIndexOf("}");
|
|
288
|
+
if (jsonStart !== -1 && jsonEnd > jsonStart) {
|
|
289
|
+
try {
|
|
290
|
+
payloads.push(
|
|
291
|
+
JSON.parse(message.slice(jsonStart, jsonEnd + 1))
|
|
292
|
+
);
|
|
293
|
+
} catch {
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return payloads;
|
|
297
|
+
}
|
|
298
|
+
__name(getJsonPayloads, "getJsonPayloads");
|
|
299
|
+
function getRawErrorMessage(error) {
|
|
300
|
+
if (error instanceof Error) return error.message;
|
|
301
|
+
if (typeof error === "string") return error;
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
__name(getRawErrorMessage, "getRawErrorMessage");
|
|
305
|
+
|
|
306
|
+
export {
|
|
307
|
+
isApiError,
|
|
308
|
+
isStructuredError,
|
|
309
|
+
QUOTA_EXHAUSTED_PREFIX,
|
|
310
|
+
isQuotaExhaustedError,
|
|
311
|
+
formatQuotaExhaustedMessage,
|
|
312
|
+
getRetryDelayMs,
|
|
313
|
+
getRetryAfterDelayMs,
|
|
314
|
+
getErrorHeader,
|
|
315
|
+
isRateLimitError,
|
|
316
|
+
getRateLimitErrorDetails,
|
|
317
|
+
getRateLimitRetryDelayMs
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* @license
|
|
321
|
+
* Copyright 2025 Google LLC
|
|
322
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
323
|
+
*/
|
|
324
|
+
/**
|
|
325
|
+
* @license
|
|
326
|
+
* Copyright 2026 Google LLC
|
|
327
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
328
|
+
*/
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
mapSkillConfigToStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QPGYYXO7.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveSkillSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TASQRFKT.js";
|
|
9
9
|
import {
|
|
10
10
|
STATUS_SCHEMA_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ETYF6LYZ.js";
|
|
12
12
|
import {
|
|
13
13
|
loadSettings
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZIWDO6UP.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveLanguage,
|
|
17
17
|
resolveLanguageSetting
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4OV5UWWQ.js";
|
|
19
19
|
import {
|
|
20
20
|
ExtensionManager,
|
|
21
21
|
ExtensionStore,
|
|
22
22
|
SkillManager,
|
|
23
23
|
getExtensionDisplayName,
|
|
24
24
|
isSafeModeEnv
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FE2ZH6WW.js";
|
|
26
26
|
import {
|
|
27
27
|
authoredSkillName,
|
|
28
28
|
qualifySkillName
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AE4IQ5HU.js";
|
|
30
30
|
import {
|
|
31
31
|
writeStderrLine
|
|
32
32
|
} from "./chunk-RANA4SOY.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
buildScheduledTaskRunPrompt,
|
|
5
5
|
scheduledTaskRunSessionName,
|
|
6
6
|
scheduledTaskRunSourceId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3KJPJFI.js";
|
|
8
8
|
import {
|
|
9
9
|
createSessionOrganizationService
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DHXBIFA3.js";
|
|
11
11
|
import {
|
|
12
12
|
parseCallerSuppliedSessionId
|
|
13
13
|
} from "./chunk-KQCQCJBL.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-H4HNRIFK.js";
|
|
17
17
|
import {
|
|
18
18
|
SCHEDULED_TASK_RUN_SOURCE_TYPE
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FMWQ43OS.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionNotFoundError
|
|
22
22
|
} from "./chunk-HLQLPLTQ.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
SessionService,
|
|
31
31
|
stripTerminalControlSequences
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FE2ZH6WW.js";
|
|
33
33
|
import {
|
|
34
34
|
MAX_JOBS,
|
|
35
35
|
nextDurableFireMs
|
|
@@ -169,10 +169,10 @@ var MUST_TRANSLATE_KEYS = [
|
|
|
169
169
|
var globImport_locales_js = __glob({
|
|
170
170
|
"./locales/ca.js": () => import("./ca-RHSADBKV.js"),
|
|
171
171
|
"./locales/de.js": () => import("./de-SJHLEQC4.js"),
|
|
172
|
-
"./locales/en.js": () => import("./en-
|
|
172
|
+
"./locales/en.js": () => import("./en-V375KBHU.js"),
|
|
173
173
|
"./locales/fr.js": () => import("./fr-AKEMVHLD.js"),
|
|
174
174
|
"./locales/ja.js": () => import("./ja-P2B6FRH4.js"),
|
|
175
|
-
"./locales/pt.js": () => import("./pt-
|
|
175
|
+
"./locales/pt.js": () => import("./pt-554PEF6Z.js"),
|
|
176
176
|
"./locales/ru.js": () => import("./ru-MA3PS5E7.js"),
|
|
177
177
|
"./locales/zh-TW.js": () => import("./zh-TW-OJB2TVMP.js"),
|
|
178
178
|
"./locales/zh.js": () => import("./zh-IAQUI2JQ.js")
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
GIT_COMMIT_INFO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y77F2ZSE.js";
|
|
6
6
|
import {
|
|
7
7
|
getCliVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P3K3UIUL.js";
|
|
9
9
|
import {
|
|
10
10
|
IdeClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FE2ZH6WW.js";
|
|
12
12
|
import {
|
|
13
13
|
formatMemoryUsage
|
|
14
14
|
} from "./chunk-M7AWQAB7.js";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
JsonOutputAdapter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODSKG77G.js";
|
|
6
6
|
import {
|
|
7
7
|
settleChatRecording,
|
|
8
8
|
subscribeToHeadlessChatRecordingFailures
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R5IR75RD.js";
|
|
10
10
|
import {
|
|
11
11
|
StreamJsonOutputAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7BEB4OCA.js";
|
|
13
13
|
import {
|
|
14
14
|
handleAtCommand,
|
|
15
15
|
normalizePartList
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MNPMZBSO.js";
|
|
17
17
|
import {
|
|
18
18
|
buildInitialSystemReminders,
|
|
19
19
|
buildSystemMessage,
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
handleSlashCommand,
|
|
25
25
|
insertAfterFunctionResponses,
|
|
26
26
|
isSlashCommand
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XOT6SBGY.js";
|
|
28
28
|
import {
|
|
29
29
|
RunBudgetEnforcer,
|
|
30
30
|
cleanupReviewWorktreeLeases
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-W42YGWDC.js";
|
|
32
32
|
import {
|
|
33
33
|
formatDuration
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HBVBJLFL.js";
|
|
35
35
|
import {
|
|
36
36
|
AlreadyReportedError,
|
|
37
37
|
handleBudgetExceededError,
|
|
@@ -39,25 +39,25 @@ import {
|
|
|
39
39
|
handleError,
|
|
40
40
|
handleMaxTurnsExceededError,
|
|
41
41
|
handleToolError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IOWEOCTW.js";
|
|
43
43
|
import {
|
|
44
44
|
sanitizeTerminalText
|
|
45
45
|
} from "./chunk-PJF3WRYZ.js";
|
|
46
46
|
import {
|
|
47
47
|
isInlineModelOverrideAllowed
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-K3QLKXBZ.js";
|
|
49
49
|
import {
|
|
50
50
|
buildGoalContinuationParts,
|
|
51
51
|
buildSessionRecoveryPlanFromApiHistory,
|
|
52
52
|
detectAutonomousSentinel,
|
|
53
53
|
detectLoopSentinel
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-SY5UOOLE.js";
|
|
55
55
|
import {
|
|
56
56
|
restoreWorktreeContext
|
|
57
57
|
} from "./chunk-B5GTZ6E6.js";
|
|
58
58
|
import {
|
|
59
59
|
executeToolCall
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-RXSGUX7U.js";
|
|
61
61
|
import {
|
|
62
62
|
GoalPersistenceUnavailableError,
|
|
63
63
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
parseAndFormatApiError,
|
|
74
74
|
partitionByConcurrencySafety,
|
|
75
75
|
recordHandledToolCall
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-FE2ZH6WW.js";
|
|
77
77
|
import {
|
|
78
78
|
shellResultText
|
|
79
79
|
} from "./chunk-GYGA6V6B.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
addAgentOutputMessageAttributes,
|
|
84
84
|
goalPauseReasonForHeadlessFailure,
|
|
85
85
|
goalPauseReasonForRunBudget
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-AE4IQ5HU.js";
|
|
87
87
|
import {
|
|
88
88
|
parsePositiveIntegerEnv
|
|
89
89
|
} from "./chunk-DS3COGEF.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
shouldRunVisionBridge,
|
|
100
100
|
splitImageParts,
|
|
101
101
|
uiTelemetryService
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-BZYI5TLI.js";
|
|
103
103
|
import {
|
|
104
104
|
clampInlineMediaPart
|
|
105
105
|
} from "./chunk-SZ26YNBZ.js";
|
|
@@ -115,10 +115,10 @@ import {
|
|
|
115
115
|
getActiveInteractionSpan,
|
|
116
116
|
isTelemetrySdkInitialized,
|
|
117
117
|
shutdownTelemetry
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-EB4VOVOS.js";
|
|
119
119
|
import {
|
|
120
120
|
registerCleanup
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-LRLHFEMZ.js";
|
|
122
122
|
import {
|
|
123
123
|
createDebugLogger
|
|
124
124
|
} from "./chunk-UK2KIU2V.js";
|
|
@@ -391,6 +391,7 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
391
391
|
let turnCount = 0;
|
|
392
392
|
let limitedTurnCount = 0;
|
|
393
393
|
let totalApiDurationMs = 0;
|
|
394
|
+
const pendingFinalizedToolResults = [];
|
|
394
395
|
const startTime = Date.now();
|
|
395
396
|
let activeInteractionPromptId = prompt_id;
|
|
396
397
|
let activeInteractionOwner;
|
|
@@ -1255,6 +1256,7 @@ ${text}
|
|
|
1255
1256
|
);
|
|
1256
1257
|
const duplicateProviderToolCallResponseIds = /* @__PURE__ */ new Set();
|
|
1257
1258
|
const processToolCallBatch = /* @__PURE__ */ __name(async (batchRequests, setModelOverride, runtimeView) => {
|
|
1259
|
+
pendingFinalizedToolResults.length = 0;
|
|
1258
1260
|
let terminateTurn = false;
|
|
1259
1261
|
const responseByRequest = /* @__PURE__ */ new Map();
|
|
1260
1262
|
const statusByResponse = /* @__PURE__ */ new Map();
|
|
@@ -1621,6 +1623,8 @@ ${text}
|
|
|
1621
1623
|
},
|
|
1622
1624
|
...goalProvenance ? [goalProvenance] : []
|
|
1623
1625
|
);
|
|
1626
|
+
if (finalizedParts.some((part) => part.functionResponse?.id))
|
|
1627
|
+
pendingFinalizedToolResults.push(finalizedParts);
|
|
1624
1628
|
}
|
|
1625
1629
|
return {
|
|
1626
1630
|
responseParts: toolResponseParts,
|
|
@@ -2148,6 +2152,42 @@ ${text}
|
|
|
2148
2152
|
} catch (error) {
|
|
2149
2153
|
const budgetExceeded = budgetEnforcer.getExceeded();
|
|
2150
2154
|
const failureMessage = error instanceof Error ? error.message : String(error);
|
|
2155
|
+
if (abortController.signal.aborted && pendingFinalizedToolResults.length) {
|
|
2156
|
+
try {
|
|
2157
|
+
const recordedIds = llmClient.getHistoryFunctionResponseIds();
|
|
2158
|
+
const liveCallIds = new Set(
|
|
2159
|
+
llmClient.getHistoryShallow().flatMap(
|
|
2160
|
+
(content) => content.role === "model" ? (content.parts ?? []).flatMap(
|
|
2161
|
+
(part) => part.functionCall?.id ? [part.functionCall.id] : []
|
|
2162
|
+
) : []
|
|
2163
|
+
)
|
|
2164
|
+
);
|
|
2165
|
+
const missingParts = pendingFinalizedToolResults.flatMap((parts) => {
|
|
2166
|
+
const missingIds = new Set(
|
|
2167
|
+
parts.flatMap((part) => {
|
|
2168
|
+
const id = part.functionResponse?.id;
|
|
2169
|
+
return id && liveCallIds.has(id) && !recordedIds.has(id) ? [id] : [];
|
|
2170
|
+
})
|
|
2171
|
+
);
|
|
2172
|
+
if (!missingIds.size) return [];
|
|
2173
|
+
return parts.filter((part) => {
|
|
2174
|
+
if (!part.functionResponse) return true;
|
|
2175
|
+
const id = part.functionResponse.id;
|
|
2176
|
+
if (!id || !missingIds.has(id) || recordedIds.has(id))
|
|
2177
|
+
return false;
|
|
2178
|
+
recordedIds.add(id);
|
|
2179
|
+
return true;
|
|
2180
|
+
});
|
|
2181
|
+
});
|
|
2182
|
+
if (missingParts.length)
|
|
2183
|
+
await llmClient.addHistory({ role: "user", parts: missingParts });
|
|
2184
|
+
} catch (preservationError) {
|
|
2185
|
+
debugLogger.error(
|
|
2186
|
+
"Failed to preserve finalized tool results after interruption:",
|
|
2187
|
+
preservationError
|
|
2188
|
+
);
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2151
2191
|
endActiveInteraction(
|
|
2152
2192
|
budgetExceeded || !abortController.signal.aborted ? "error" : "cancelled",
|
|
2153
2193
|
{
|
|
@@ -2201,6 +2241,9 @@ ${text}
|
|
|
2201
2241
|
if (recoverableCancellation) {
|
|
2202
2242
|
return 130;
|
|
2203
2243
|
}
|
|
2244
|
+
if (options.preserveSessionOnError === true && outputFormat === "stream-json" /* STREAM_JSON */) {
|
|
2245
|
+
throw error;
|
|
2246
|
+
}
|
|
2204
2247
|
await handleError(error, config);
|
|
2205
2248
|
} finally {
|
|
2206
2249
|
await failClosedActiveGoalTurn(
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
loadSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZIWDO6UP.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4OV5UWWQ.js";
|
|
9
9
|
import {
|
|
10
10
|
isWorkspaceTrusted
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T636IYGV.js";
|
|
12
12
|
import {
|
|
13
13
|
require_strip_json_comments
|
|
14
14
|
} from "./chunk-YCZIOHKD.js";
|
|
15
15
|
import {
|
|
16
16
|
hashMcpServerConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SY5UOOLE.js";
|
|
18
18
|
import {
|
|
19
19
|
Config,
|
|
20
20
|
ExtensionManager,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
isGatedMcpScope,
|
|
26
26
|
normalizeClaudeMcpServer,
|
|
27
27
|
runWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FE2ZH6WW.js";
|
|
29
29
|
import {
|
|
30
30
|
getMCPServerLastError,
|
|
31
31
|
getMCPServerStatus
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BZYI5TLI.js";
|
|
33
33
|
import {
|
|
34
34
|
writeStderrLine,
|
|
35
35
|
writeStdoutLine
|