@organizaone/o1-code 0.23.1 → 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 +49 -20
- package/bundled/qc-helper/docs/support/troubleshooting.md +8 -0
- package/chunks/{MaxSizedBox-HMZHVBB4.js → MaxSizedBox-PNOKV5XB.js} +29 -28
- package/chunks/{StandaloneSessionPicker-P4GOMYHR.js → StandaloneSessionPicker-DI2PPRCG.js} +47 -46
- package/chunks/{acp-subagent-executor-3IS4UQXS.js → acp-subagent-executor-J5IOC3T2.js} +32 -31
- package/chunks/{acpAgent-RUS62IJ2.js → acpAgent-Q3ES6XUH.js} +78 -76
- package/chunks/{agent-WO7H3FRF.js → agent-VXBORFU5.js} +18 -17
- package/chunks/{agent-headless-DQHOJM3J.js → agent-headless-F7X4H6AT.js} +18 -17
- package/chunks/{all-providers-AGB7PSE7.js → all-providers-UJJNWFBU.js} +2 -2
- package/chunks/{anthropicContentGenerator-SVXJ2WC5.js → anthropicContentGenerator-PXN4JHYG.js} +9 -8
- package/chunks/{bridge-6DNUXTIG.js → bridge-OHMXMD6B.js} +32 -31
- package/chunks/{chunk-JTL36LF7.js → chunk-2JVMVD6L.js} +14 -14
- package/chunks/chunk-2SJEYSJ5.js +478 -0
- package/chunks/{chunk-QS7XJXMY.js → chunk-2VH7GPPV.js} +2 -2
- package/chunks/{chunk-RH6ENXV4.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-XWJPREGE.js → chunk-45LWV5IN.js} +7 -7
- package/chunks/{chunk-BH64NQFS.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-2HSMDGHO.js → chunk-4Q5LZTPI.js} +3 -3
- package/chunks/{chunk-P2AKFALJ.js → chunk-5UX4INNV.js} +59 -16
- package/chunks/{chunk-NRCAQMQE.js → chunk-5UZNF6UX.js} +1 -1
- package/chunks/{chunk-XR3PDQ7P.js → chunk-63BWCBL5.js} +6 -6
- package/chunks/{chunk-KXDR4O5J.js → chunk-6LJBRLNS.js} +8 -8
- package/chunks/{chunk-7TGDEUSS.js → chunk-6RIH5HJL.js} +3 -3
- package/chunks/{chunk-B3VFKGW7.js → chunk-756Q43CP.js} +3 -3
- package/chunks/{chunk-3MWH2YYG.js → chunk-7BEB4OCA.js} +4 -4
- package/chunks/{chunk-4WZ25EWZ.js → chunk-7DHQ5FE7.js} +1 -1
- package/chunks/{chunk-T7XP4FJG.js → chunk-7GCSNYB5.js} +3 -3
- package/chunks/{chunk-RWUZRVUT.js → chunk-AE4IQ5HU.js} +2 -2
- package/chunks/{chunk-OXIUXVOT.js → chunk-AEQNNEHI.js} +1 -1
- package/chunks/{chunk-YPTR7ZFB.js → chunk-AFLYEJ7J.js} +20 -314
- package/chunks/{chunk-MEBXT3L3.js → chunk-AK6UP3LA.js} +2 -2
- package/chunks/{chunk-O6V4DKZY.js → chunk-BBQWOOBL.js} +8 -8
- package/chunks/{chunk-WA47FG3A.js → chunk-BEGSPMH3.js} +5 -5
- package/chunks/{chunk-2OEBEF5L.js → chunk-BZYI5TLI.js} +1 -1
- package/chunks/{chunk-DCGCG4T6.js → chunk-CQL2XFY3.js} +3 -3
- package/chunks/{chunk-5T7YYYZN.js → chunk-DHXBIFA3.js} +1 -1
- package/chunks/{chunk-W5XYWVXE.js → chunk-EB4VOVOS.js} +4 -4
- package/chunks/{chunk-XST2W6J5.js → chunk-ER7RIWYZ.js} +1 -1
- package/chunks/{chunk-AXM2QH6N.js → chunk-ETYF6LYZ.js} +1 -1
- package/chunks/{chunk-GLSFB2Z7.js → chunk-F5XJP6CK.js} +1 -1
- package/chunks/{chunk-CMDJL3HC.js → chunk-FE2ZH6WW.js} +83 -92
- package/chunks/{chunk-VPWZ7N32.js → chunk-FIPT36QW.js} +4 -4
- package/chunks/{chunk-SLYGIHMA.js → chunk-FMWQ43OS.js} +4 -4
- package/chunks/{chunk-CADCX42P.js → chunk-FQZNP6Z5.js} +2 -2
- package/chunks/{chunk-CNXTYK25.js → chunk-G7TCNWW4.js} +2 -2
- package/chunks/{chunk-6IAICUFQ.js → chunk-GHFDVXXW.js} +2 -2
- package/chunks/{chunk-ZTYFX6BP.js → chunk-GJKIVVOK.js} +3 -3
- package/chunks/{chunk-R75USKXV.js → chunk-GQSJRXHV.js} +2 -2
- package/chunks/{chunk-OFZASMA6.js → chunk-GRSBNB75.js} +4 -4
- package/chunks/{chunk-DS3A6UN5.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-PHTNY4JK.js → chunk-HFH6267M.js} +6 -2
- package/chunks/{chunk-CMPS6GD5.js → chunk-HFYFYN7B.js} +3 -3
- package/chunks/{chunk-KZCG5HAI.js → chunk-HV7DTSIC.js} +1 -1
- package/chunks/{chunk-SLNJDU4D.js → chunk-IJLB54SO.js} +4 -4
- package/chunks/{chunk-SJG3PCMJ.js → chunk-IOWEOCTW.js} +3 -3
- package/chunks/{chunk-HKOWTL7X.js → chunk-IQS3YNFT.js} +3 -3
- package/chunks/{chunk-WXIQKOFD.js → chunk-JCWIHPJ2.js} +32 -2
- package/chunks/{chunk-ZXSPXXBY.js → chunk-K3QLKXBZ.js} +1 -1
- package/chunks/{chunk-SEBFGV7T.js → chunk-K7OVGWJS.js} +5 -5
- package/chunks/{chunk-MRAQKHJP.js → chunk-KH547BMV.js} +1 -1
- package/chunks/{chunk-I4WCGUHX.js → chunk-L37WQYHD.js} +3 -3
- package/chunks/{chunk-C6HK75MO.js → chunk-LOWKYYPU.js} +3 -3
- package/chunks/{chunk-DCMEEISM.js → chunk-LRLHFEMZ.js} +1 -1
- package/chunks/{chunk-IR2EWI3F.js → chunk-MDRVMHR5.js} +1 -1
- package/chunks/{chunk-IULGJTBN.js → chunk-MDZE3I5B.js} +3 -3
- package/chunks/{chunk-4UC6NODS.js → chunk-MEHOIUQO.js} +1 -1
- package/chunks/{chunk-3SIUBEAC.js → chunk-MLMRVKRY.js} +1 -1
- package/chunks/{chunk-HGY3PIN4.js → chunk-MNPMZBSO.js} +8 -8
- package/chunks/{chunk-FFDLG4P3.js → chunk-MYLH5UBR.js} +3 -3
- package/chunks/{chunk-KM6V7YUD.js → chunk-MZ4ZQ5JN.js} +3 -3
- package/chunks/{chunk-ZKQ2SFH7.js → chunk-NO5DFAGI.js} +1 -1
- package/chunks/{chunk-F7SCCXXH.js → chunk-NWRMBNPA.js} +1 -1
- package/chunks/{chunk-ODPTXM6X.js → chunk-ODSKG77G.js} +2 -2
- package/chunks/{chunk-UQSP4Y3H.js → chunk-P3K3UIUL.js} +1 -1
- package/chunks/{chunk-JYT4QT7G.js → chunk-PMFVBLGB.js} +5 -5
- package/chunks/{chunk-5TGVTMA4.js → chunk-PZ5JMLBW.js} +2 -2
- package/chunks/{chunk-UZIP5RZG.js → chunk-Q2LPAA7C.js} +1 -1
- package/chunks/{chunk-VY24CEQH.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-27WKLITY.js → chunk-QSSYZQUP.js} +2 -2
- package/chunks/{chunk-6HNVIHAF.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-UVW5RWDM.js → chunk-RHOOOMUK.js} +2 -2
- package/chunks/{chunk-B4K3VBFF.js → chunk-RI6JVRWR.js} +1 -1
- package/chunks/{chunk-7UCLXR66.js → chunk-RRRI34RZ.js} +11 -11
- package/chunks/{chunk-VJNBNL44.js → chunk-RXSGUX7U.js} +1 -1
- package/chunks/{chunk-4HQ4I3PR.js → chunk-SE4AX4Z4.js} +2 -2
- package/chunks/{chunk-CPYRGB5A.js → chunk-SQRKCXPM.js} +6 -6
- package/chunks/{chunk-6XQREQ7X.js → chunk-SY5UOOLE.js} +8 -8
- package/chunks/{chunk-QLR4QOL7.js → chunk-T636IYGV.js} +1 -1
- package/chunks/{chunk-4KLFLD6W.js → chunk-TASQRFKT.js} +1 -1
- package/chunks/{chunk-CCC24CXE.js → chunk-TQXNST6Y.js} +2 -2
- package/chunks/{chunk-W4LHOCZD.js → chunk-UBWDDULS.js} +1 -1
- package/chunks/{chunk-UM5Y2RAD.js → chunk-V7K34NU3.js} +1 -1
- package/chunks/{chunk-AW4B6RTB.js → chunk-VCUEXE3H.js} +3 -3
- package/chunks/{chunk-3KNM7K53.js → chunk-W42YGWDC.js} +74 -35
- package/chunks/{chunk-GBAPQSEP.js → chunk-WOUHB7ZU.js} +4 -4
- package/chunks/{chunk-2OUOX7LX.js → chunk-X3KJPJFI.js} +2 -2
- package/chunks/{chunk-LMFAYXBU.js → chunk-XBZ4D64Q.js} +1 -1
- package/chunks/{chunk-Z4AMHZHW.js → chunk-XOT6SBGY.js} +102 -43
- package/chunks/{chunk-INXZWNOV.js → chunk-Y77F2ZSE.js} +2 -2
- package/chunks/{chunk-7Q3WUUDP.js → chunk-YQN4NZ4S.js} +5 -5
- package/chunks/{chunk-CNXCYQSU.js → chunk-Z35PMMFQ.js} +3 -3
- package/chunks/{chunk-LNRMJR3C.js → chunk-ZIWDO6UP.js} +5 -5
- package/chunks/{chunk-OCGMQ7V4.js → chunk-ZIWHK3AH.js} +1 -1
- package/chunks/{chunk-HAFQUJ2R.js → chunk-ZSCKJRVS.js} +9 -9
- package/chunks/{codex-subagent-executor-LRMIHGUJ.js → codex-subagent-executor-NKIAVWGC.js} +32 -31
- package/chunks/{contextCommand-LCS4K6AS.js → contextCommand-5JWT6VQL.js} +31 -30
- package/chunks/{core-runtime-KA3DTXOS.js → core-runtime-7DRPFC35.js} +29 -28
- package/chunks/{create-sub-session-AOLRCPHX.js → create-sub-session-3YQEERSH.js} +30 -29
- package/chunks/{daemon-git-worktree-guard-XNJQMGBA.js → daemon-git-worktree-guard-VFOGBZHD.js} +29 -28
- package/chunks/{daemon-status-provider-S7JFBO7R.js → daemon-status-provider-IIFM5IM6.js} +37 -36
- package/chunks/{daemon-trust-policy-3TZF3A23.js → daemon-trust-policy-AVBAHIIT.js} +35 -34
- package/chunks/{daemon-trust-policy-monitor-KCTEA4NB.js → daemon-trust-policy-monitor-KKXFYM52.js} +35 -34
- package/chunks/{deferred-core-runtime-APR46DSV.js → deferred-core-runtime-3MIPB4S7.js} +29 -28
- package/chunks/{edit-3XYI6QI5.js → edit-PPJLVA5I.js} +20 -19
- package/chunks/{en-MQICGJBA.js → en-V375KBHU.js} +4 -0
- package/chunks/{enterPlanMode-T6ZQCSIY.js → enterPlanMode-YJTR3OC2.js} +18 -17
- package/chunks/{environment-ZSKN47KY.js → environment-PQMV73WH.js} +31 -30
- package/chunks/{errors-JVU3YU37.js → errors-YXLBIGK2.js} +31 -30
- package/chunks/{execution-tool-4AHWPEBH.js → execution-tool-PRN55ECE.js} +20 -19
- package/chunks/{execution-worker-V22CIVJD.js → execution-worker-5VUJKVPI.js} +23 -22
- package/chunks/{exitPlanMode-HSLDDGIZ.js → exitPlanMode-3SOHTPAM.js} +18 -17
- package/chunks/{fast-path-55D3R6HR.js → fast-path-KKKMA4OP.js} +2 -2
- package/chunks/{foreground-runner-3JU62IZN.js → foreground-runner-G3TYGJAE.js} +31 -30
- package/chunks/{gateway-content-generator-76KRZXAA.js → gateway-content-generator-URNHKQ6P.js} +128 -123
- package/chunks/{gateway-models-N5DT7Q4M.js → gateway-models-UR5GHR6N.js} +7 -6
- package/chunks/gateway-transfer-OASSZYSK.js +46 -0
- package/chunks/{glob-FVF7TFRO.js → glob-5AEFGOMN.js} +18 -17
- package/chunks/{goal-tools-UHHDYOKQ.js → goal-tools-O5TA2PQY.js} +18 -17
- package/chunks/{handleAutoUpdate-EOHNI5GZ.js → handleAutoUpdate-JAQEKGA7.js} +33 -32
- package/chunks/{i18n-QYM6PMQT.js → i18n-SKUHM5IJ.js} +30 -29
- package/chunks/{image-gen-WGMRL47H.js → image-gen-D4WPSZB4.js} +3 -2
- package/chunks/{initializer-MYP7CFZW.js → initializer-XZ6MXFUA.js} +35 -34
- package/chunks/{installationInfo-FJ67GP5M.js → installationInfo-YXI3S52N.js} +30 -29
- package/chunks/{list-XF6G4GUF.js → list-K3KSNZSU.js} +37 -36
- package/chunks/{llm-W4KJ3VXB.js → llm-DMR52SHW.js} +64 -63
- package/chunks/{llm-content-generator-UZLRLOG3.js → llm-content-generator-UWKSCTYE.js} +4 -4
- package/chunks/{loadedSettingsAdapter-7Q5U3DXV.js → loadedSettingsAdapter-TW2IMB6V.js} +35 -34
- package/chunks/{local-execution-environment-MYZ2Y54Q.js → local-execution-environment-KH5EESSY.js} +23 -22
- package/chunks/{loggingContentGenerator-4OPNBZMP.js → loggingContentGenerator-T2W2WRJJ.js} +19 -18
- package/chunks/{managed-npm-update-KLB5RZZX.js → managed-npm-update-6RQYY3YZ.js} +30 -29
- package/chunks/{mcp-NC27EHB4.js → mcp-64G5H2OG.js} +35 -34
- package/chunks/{model-call-collection-YKPPKTJC.js → model-call-collection-Z4NJZHIV.js} +1 -1
- package/chunks/{model-configuration-2G3ULIR4.js → model-configuration-Q36E3EFG.js} +36 -35
- package/chunks/{modelConfigUtils-664FHNH3.js → modelConfigUtils-7LRIWH6S.js} +31 -30
- package/chunks/{monitor-UBN77ORZ.js → monitor-VT7Z5NIW.js} +18 -17
- package/chunks/{nonInteractiveCli-L3L4WX5E.js → nonInteractiveCli-YTRGNVIT.js} +66 -64
- package/chunks/{nonInteractiveToolExecutor-C3T5J2NW.js → nonInteractiveToolExecutor-KCT5X3VP.js} +19 -18
- package/chunks/{notebook-edit-63MI44CU.js → notebook-edit-BTEP4ZZF.js} +19 -18
- package/chunks/{omni-SLZABQRH.js → omni-J52AX5TE.js} +13 -12
- package/chunks/{openaiContentGenerator-7V6CYXFU.js → openaiContentGenerator-I2O3ZSYA.js} +15 -13
- package/chunks/{openaiResponsesContentGenerator-6YVQAUJ3.js → openaiResponsesContentGenerator-FUJIJGE2.js} +8 -7
- package/chunks/{processUtils-7ZT2P4R2.js → processUtils-BPHUSEPE.js} +2 -2
- package/chunks/{prompt-terminal-ledger-QPVHC4HA.js → prompt-terminal-ledger-JAMNBNXB.js} +30 -29
- package/chunks/{pt-EZL4H2AB.js → pt-554PEF6Z.js} +4 -0
- package/chunks/{reactive-degrade-SLNICU7U.js → reactive-degrade-XI6MKZZ5.js} +12 -11
- package/chunks/{read-file-WBHCQFBS.js → read-file-TXVD2R3P.js} +4 -4
- package/chunks/{resumeHistoryUtils-RMVHH2EV.js → resumeHistoryUtils-2SRSXIHZ.js} +34 -33
- package/chunks/{ripGrep-RXD7MQDC.js → ripGrep-IZ3IBKVF.js} +5 -5
- package/chunks/{run-o1-code-serve-QTI4KAOJ.js → run-o1-code-serve-XO4BHKDA.js} +32 -32
- package/chunks/{sandboxConfig-DAOIURBO.js → sandboxConfig-YTUMPCXL.js} +29 -28
- package/chunks/{scheduled-tasks-SXKRP3GY.js → scheduled-tasks-KJYPVS4M.js} +35 -34
- package/chunks/{scheduler-YECMJLGP.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-N4CEYSQI.js → serve-3LSIZROT.js} +35 -34
- package/chunks/{server-VSMVJXNJ.js → server-2YOZRQDZ.js} +67 -66
- package/chunks/{session-DQY6YADB.js → session-G6BRGHF4.js} +177 -68
- package/chunks/{session-WXHJRBXC.js → session-JVXNBIG2.js} +1 -1
- package/chunks/{session-attachments-root-NKR2OHXN.js → session-attachments-root-57AW3DJA.js} +29 -28
- package/chunks/{session-pr-refresh-FESHW7O7.js → session-pr-refresh-KVCFM7XO.js} +34 -33
- package/chunks/{settings-MJDXAJOQ.js → settings-LEYMP47D.js} +34 -33
- package/chunks/{shell-XUMG65ZC.js → shell-IZZXIZEA.js} +18 -17
- package/chunks/{skill-RS7AGKYN.js → skill-VKY4NL3S.js} +6 -6
- package/chunks/{skill-settings-MEXN6DN6.js → skill-settings-II2S2X4N.js} +35 -34
- package/chunks/{spawnChannel-GOF25LIG.js → spawnChannel-5ZGURNUI.js} +31 -30
- package/chunks/{standalone-update-AYQDZNVC.js → standalone-update-3WGDHWYQ.js} +31 -30
- package/chunks/{startInteractiveUI-7HHCEPIG.js → startInteractiveUI-ILJJTRGB.js} +125 -153
- package/chunks/{supervisor-runner-VSXLLNB3.js → supervisor-runner-JTBZ6TKM.js} +2 -2
- package/chunks/{team-create-4LGDPW5M.js → team-create-OB7H2J22.js} +18 -17
- package/chunks/{team-plan-approval-KYQWPQXN.js → team-plan-approval-IWAVB7GG.js} +18 -17
- package/chunks/{terminal-image-renderer-PVLPYQHK.js → terminal-image-renderer-TKSJWK74.js} +29 -28
- package/chunks/{theme-manager-I4JCVFQ3.js → theme-manager-PMVUV6N4.js} +29 -28
- package/chunks/{tool-result-media-AFIZLPZ7.js → tool-result-media-YXNXZVPE.js} +13 -12
- package/chunks/{tool-search-B5WIMGV2.js → tool-search-MCUYQHXS.js} +4 -4
- package/chunks/{total-session-admission-WAQB3AMR.js → total-session-admission-47PQOJF4.js} +32 -31
- package/chunks/{trustedFolders-MMMGBQOP.js → trustedFolders-YQXN7ZK7.js} +30 -29
- package/chunks/{update-relaunch-WE7M3JFY.js → update-relaunch-IJ2CZAKA.js} +5 -5
- package/chunks/{updateCheck-O4WELAS7.js → updateCheck-ZLTZQV3Q.js} +32 -31
- package/chunks/{upload-config-5IV7GPH3.js → upload-config-P5BLCB72.js} +10 -9
- package/chunks/{useAutoAcceptIndicator-L5APVQBL.js → useAutoAcceptIndicator-KS6UQLAF.js} +39 -38
- package/chunks/{validateNonInterActiveAuth-HMLF22RB.js → validateNonInterActiveAuth-JFHD2CGM.js} +63 -61
- package/chunks/{version-HF62HOZR.js → version-JYHYRKC2.js} +1 -1
- package/chunks/{web-fetch-ACG4GZWS.js → web-fetch-QS7AL72Y.js} +6 -5
- package/chunks/{web-search-FOBOKL5H.js → web-search-M5YLCDCJ.js} +10 -9
- package/chunks/{workflow-ILU5GODQ.js → workflow-QIHDEVAH.js} +21 -20
- package/chunks/{workspace-providers-status-OQ6BF2I4.js → workspace-providers-status-BBQTHMSA.js} +41 -40
- package/chunks/{workspace-registration-store-C7HXASW3.js → workspace-registration-store-X3UYZFNJ.js} +1 -1
- package/chunks/{workspace-registry-BLZXWWBO.js → workspace-registry-FFHZ2EVX.js} +32 -31
- package/chunks/{workspace-runtime-coordinator-L77AZGKG.js → workspace-runtime-coordinator-BAGT7DSO.js} +33 -32
- package/chunks/{workspace-service-R7A6VM73.js → workspace-service-J24VVFZM.js} +39 -38
- package/chunks/{workspace-skills-status-U2NYMQU3.js → workspace-skills-status-UZ54UGI2.js} +38 -37
- package/chunks/{workspace-trust-reconciler-UGEU2622.js → workspace-trust-reconciler-GTJFOGCS.js} +38 -37
- package/chunks/{write-file-4N2F3VNU.js → write-file-4WGBKBGB.js} +20 -19
- package/chunks/{zoom-image-E772GQFP.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 +16 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-D4wWvLfQ.js → abnfDiagram-VCTEODGH-D-bBdnGb.js} +1 -1
- package/web-shell/assets/{arc-CbFSLdCO.js → arc-B2SS2QTX.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BjZoTViq.js → architectureDiagram-5GKGNRK7-DFVuGyYx.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-CGSVjghq.js → blockDiagram-NRAW4CY4-CS2hSeXi.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-DZszjKKm.js → c4Diagram-UCG6FXSJ-DQShkkBR.js} +1 -1
- package/web-shell/assets/channel-DV-9kalP.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-snkNi44P.js → chunk-2Q5K7J3B-BwTtOt8R.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-CsnyTIr_.js → chunk-5VM5RSS4-Bj6h0Dwa.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-BDleVSaw.js → chunk-F27PBJKO-kC66vkrG.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-CbjFrBwN.js → chunk-G27WJ6UU-Cgvg9nvk.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-rkiI-MmN.js → chunk-JWPE2WC7-EzC494sa.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CEESZISZ.js → chunk-LCL6LL3I-utra0L7l.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-C0vPHNMP.js → chunk-POPQ4Y6H-xUBwWPMI.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-_LLDkzrp.js → chunk-SVP7TREG-CSs6ULGi.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-PCJcNBA-.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-Z1LPHXFQ.js → cose-bilkent-JH36ORCC-Dp7POI99.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-Ch8GJJZn.js → cynefin-OW5HDTMX-CnqWFq9t.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BaZYUcGn.js → cynefinDiagram-5FMLGOSQ-BtgoKTG2.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CMiuGPg4.js → dagre-3AP2YEHR-BkDKcnoQ.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Ch4SWYiO.js → diagram-S7CK7UJ4-CoCStDfp.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DrQs-UnS.js → diagram-UQ7AKVKN-D6a6j3_H.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CK683mKd.js → diagram-VSXAHHWV-Da_ctgX_.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-CdtSFCwE.js → diagram-VX7I27RA-CoToXRBH.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-mmDlyQCV.js → diagram-Z3DM3KII-DlRPF3da.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-ig7MW8j3.js → ebnfDiagram-PWID7BFC-B0owtdgg.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-Br1al6yd.js → erDiagram-SSCWMZ5O-DZv1xcIp.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-VU5pvkzQ.js → flowDiagram-A5DVABFB-DqXIgApm.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-D5-CC_k4.js → ganttDiagram-EL5Y4UJY-hp-3Nfao.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-aIOAY7jv.js → gitGraphDiagram-WWUBYQGX-pHy6E6Jm.js} +1 -1
- package/web-shell/assets/{index-BvC4CLzJ.js → index-BM9Xm2Dz.js} +1 -1
- package/web-shell/assets/{index-CHjJJO_-.js → index-zRWCDwX8.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-BLavxALh.js → infoDiagram-RXCK75RN-DQlz-0GH.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-WrFAKU7P.js → ishikawaDiagram-5VMMS53U-BA43ebt4.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-CNB-o7UU.js → journeyDiagram-EYS64GPL-DDlU7qPX.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-BsOlyiXs.js → kanban-definition-3QL26DDD-DaT1T9VO.js} +1 -1
- package/web-shell/assets/{layout-CLP7XDl-.js → layout-CGoDE0Jk.js} +1 -1
- package/web-shell/assets/{linear-B_ZqoW0R.js → linear-Dlcix00h.js} +1 -1
- package/web-shell/assets/{mermaid.core-DM7r4q8D.js → mermaid.core-CTrkfnVV.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-Bqb6RJsq.js → mindmap-definition-FBJOCRG2-CKlmCDs2.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-CvUwl3Q5.js → pegDiagram-XKGWAZYB-C-81xWvj.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BQNKFhor.js → pieDiagram-E7YTZNPT-DkWgCGEs.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-7VbOBW8d.js → quadrantDiagram-AXDQQJYC-B8ItQsl-.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CgkPn4Te.js → railroadDiagram-O6MQD6OU-BZMa6PzJ.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C7XViHWf.js → requirementDiagram-EFPCY7ZU-BGNIJd20.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-vsv0eiDF.js → sankeyDiagram-P5KCCOFB-BfD9Ralh.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BLdDIcOL.js → sequenceDiagram-WJ2MYXX4-BHv0Frcl.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BVqQaCER.js → sizeCapture-X5ZJPWSS-Dz7SvtQb.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-Bq3g73mj.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-7w4P-g0w.js → swimlanes-XN3QIQJK-Bv1d8x7Q.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DClL59AS.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DlkUGqRK.js → timeline-definition-24CTP7MA-B_3E6jPw.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-D920UplN.js → vennDiagram-4TSXK5OY-OX4OfnpL.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-EsWGTViP.js → wardleyDiagram-VM6X3IG4-agygocEg.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Bhnogtoq.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-BxByz4gj.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Vxr2jk7x.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Vxr2jk7x.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cb0cd1Bn.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BKzBsHUu.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
|