@organizaone/o1-code 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/features/commands.md +1 -0
- package/chunks/{MaxSizedBox-4YD6N3PU.js → MaxSizedBox-JTZPQAQ5.js} +66 -66
- package/chunks/{StandaloneSessionPicker-I5FMAIU2.js → StandaloneSessionPicker-VFQEG54H.js} +88 -88
- package/chunks/{acp-subagent-executor-PRFEPDLD.js → acp-subagent-executor-QEOKYURZ.js} +70 -70
- package/chunks/{acpAgent-2SVJNE5B.js → acpAgent-5MQXC2XU.js} +229 -227
- package/chunks/{agent-QONNC6CU.js → agent-FKFYDUVP.js} +42 -42
- package/chunks/{agent-headless-5HHGBH6Z.js → agent-headless-TVPFCEOP.js} +42 -42
- package/chunks/all-providers-CAKB5HCH.js +73 -0
- package/chunks/{anthropicContentGenerator-2VK5J36U.js → anthropicContentGenerator-K2ELMX7W.js} +121 -73
- package/chunks/{bridge-376JROPC.js → bridge-33WHGPXZ.js} +71 -71
- package/chunks/{bwrap-execution-UZAMPG6F.js → bwrap-execution-FIGUBZCN.js} +6 -6
- package/chunks/{caption-audio-HGDJVVJZ.js → caption-audio-EK6K45W3.js} +8 -8
- package/chunks/{caption-image-ATZSXV7W.js → caption-image-WDXLQK6T.js} +6 -6
- package/chunks/{chunk-KRZBFGAT.js → chunk-32XL2YY2.js} +2345 -4252
- package/chunks/{chunk-MLHBCLEP.js → chunk-3EPSY3X7.js} +9 -9
- package/chunks/{chunk-GCAERMSL.js → chunk-3T72AXG7.js} +6 -6
- package/chunks/{chunk-ZG7HDQQN.js → chunk-3YUQQOUL.js} +13 -13
- package/chunks/{chunk-3DUYZD3L.js → chunk-46JJPOUF.js} +3 -3
- package/chunks/{chunk-7LLX5ROK.js → chunk-4G6OUQPH.js} +3 -3
- package/chunks/{chunk-QCONHGJR.js → chunk-4OUIZHHJ.js} +4 -4
- package/chunks/{chunk-QYUMJTBP.js → chunk-4SJO2I35.js} +1 -1
- package/chunks/{chunk-EB5V6K5E.js → chunk-4X3MIKOZ.js} +5 -5
- package/chunks/{chunk-HCE5HUQG.js → chunk-55BVGW3L.js} +4 -4
- package/chunks/{chunk-OJP3SONV.js → chunk-5AIPNJAB.js} +5 -5
- package/chunks/{chunk-ADBRWAV5.js → chunk-5NNMFA5J.js} +1 -1
- package/chunks/{chunk-UWV7KBPN.js → chunk-5OGI74MG.js} +2 -2
- package/chunks/{chunk-RZGFYBL5.js → chunk-5ZO4TG64.js} +4 -4
- package/chunks/{chunk-R3QYIDIU.js → chunk-62SWENB6.js} +2 -2
- package/chunks/{chunk-3KUQCZUE.js → chunk-65JWVPGE.js} +1 -1
- package/chunks/{chunk-REDO4D2W.js → chunk-65NGV7DR.js} +11 -11
- package/chunks/{chunk-HK7AV2JH.js → chunk-6O3ZQGW7.js} +1 -1
- package/chunks/{chunk-PLGVOOCJ.js → chunk-6WTLQ4BD.js} +1 -1
- package/chunks/{chunk-H2U6QRJX.js → chunk-72EBG4FJ.js} +3 -471
- package/chunks/{chunk-4OI2JVHJ.js → chunk-776VI66O.js} +2 -2
- package/chunks/{chunk-NWG5SKCQ.js → chunk-7JEEDCZF.js} +3 -3
- package/chunks/{chunk-VJFA7HHP.js → chunk-7LQNUREG.js} +1 -1
- package/chunks/chunk-7TK6OY2J.js +53 -0
- package/chunks/{chunk-5MX4BYWK.js → chunk-ADPTJZ7L.js} +3 -3
- package/chunks/{chunk-A4JNI44O.js → chunk-AKIPIOIW.js} +62 -36
- package/chunks/{chunk-IYLIZY56.js → chunk-BF6VCZFG.js} +4 -4
- package/chunks/{chunk-ZBV6TO3P.js → chunk-C7LS4YW3.js} +1 -1
- package/chunks/{chunk-W4SBUUTI.js → chunk-D56JIPBA.js} +3 -3
- package/chunks/{chunk-OKDNVNDE.js → chunk-DBPKYUKM.js} +5 -5
- package/chunks/{chunk-LBM7FFM5.js → chunk-DNJPSAMC.js} +1 -1
- package/chunks/{chunk-W6TGDESU.js → chunk-DOG2T422.js} +2 -2
- package/chunks/{chunk-J4QU4MC5.js → chunk-DOWMMDKU.js} +9 -9
- package/chunks/{chunk-VKBMJSAR.js → chunk-EMXZMR7F.js} +321 -109
- package/chunks/{chunk-653CF7X7.js → chunk-EO3GEEN5.js} +3 -3
- package/chunks/{chunk-RS2LNQEC.js → chunk-EVC2HZ5T.js} +3 -39
- package/chunks/{chunk-MIWMCUU5.js → chunk-EVIJNKSX.js} +17 -8
- package/chunks/{chunk-YR3UI5PL.js → chunk-EWBEXGRC.js} +10 -10
- package/chunks/{chunk-ALRR6EQ5.js → chunk-EXTCLF42.js} +2 -2
- package/chunks/{chunk-QE2GKG2B.js → chunk-F36DMAAF.js} +5 -5
- package/chunks/{chunk-C4WTDBKV.js → chunk-FEQM3UVX.js} +8 -8
- package/chunks/{chunk-V75J4GJ2.js → chunk-FJAZPBX2.js} +1 -1
- package/chunks/{chunk-QKTYOXBW.js → chunk-FJB4BIQY.js} +1 -1
- package/chunks/{chunk-QHENJTME.js → chunk-FL43SLBB.js} +36 -36
- package/chunks/{chunk-VPGICF4V.js → chunk-FOGGBV5D.js} +3 -3
- package/chunks/{chunk-JQPMOOCH.js → chunk-FXR7OHQM.js} +1 -1
- package/chunks/{chunk-DVRWYOU6.js → chunk-GQ2KSD3A.js} +1 -1
- package/chunks/{chunk-BLFBP3N2.js → chunk-GSMPZG6N.js} +1 -1
- package/chunks/{chunk-LK74HWZ4.js → chunk-H4FGPXI3.js} +63 -63
- package/chunks/{chunk-WDCHA7NA.js → chunk-H4K55KOQ.js} +5 -5
- package/chunks/{chunk-JHZM32LS.js → chunk-IKYYF5PP.js} +388 -620
- package/chunks/{chunk-SIZ4LTNU.js → chunk-J2WSYRAJ.js} +28 -28
- package/chunks/{chunk-LEBY6RZT.js → chunk-J33WTLCX.js} +5 -5
- package/chunks/{chunk-7M4NSLWM.js → chunk-JOBZWTVK.js} +1 -1
- package/chunks/{chunk-W4COM34L.js → chunk-K3RGDBVU.js} +3 -3
- package/chunks/{chunk-PQZRAMZG.js → chunk-KCBAWQGT.js} +19 -19
- package/chunks/{chunk-SAGRWAPN.js → chunk-KD2QZWRE.js} +12 -10
- package/chunks/{chunk-ZUQTYSNU.js → chunk-KEBHJIGX.js} +4 -4
- package/chunks/{chunk-AAXKDAOY.js → chunk-KYFNPY5G.js} +1 -1
- package/chunks/{chunk-HVOUAFTO.js → chunk-M2HUTNAI.js} +7 -7
- package/chunks/{chunk-QIRU74SA.js → chunk-MKBG6C2K.js} +1 -1
- package/chunks/{chunk-YPWPIBDR.js → chunk-MMVLDNOK.js} +5 -5
- package/chunks/{chunk-AQFTTYP6.js → chunk-MRR2UVN6.js} +4 -4
- package/chunks/{chunk-4O37MUA4.js → chunk-NIOE4OJE.js} +1 -1
- package/chunks/{chunk-AJSSTPJK.js → chunk-NLDWAN5E.js} +1 -1
- package/chunks/{chunk-OJSW65PQ.js → chunk-NOL6NAWN.js} +1 -1
- package/chunks/{chunk-EXG47R4V.js → chunk-NPGATJZA.js} +2 -2
- package/chunks/{chunk-XHYWPHWN.js → chunk-NQTVSCZM.js} +1 -1
- package/chunks/chunk-NTDRNHKB.js +484 -0
- package/chunks/{chunk-L7JLMUG3.js → chunk-NTHY5RR5.js} +2 -2
- package/chunks/{chunk-EIJNDD2V.js → chunk-O43YWGHK.js} +1 -1
- package/chunks/{chunk-6IAGZKHT.js → chunk-OF7SHQ7M.js} +3 -3
- package/chunks/{chunk-GXHNABHV.js → chunk-OP553VGL.js} +8 -8
- package/chunks/{chunk-L6MGGTHA.js → chunk-OS6CVNKI.js} +1 -1
- package/chunks/{chunk-7LFCBMVX.js → chunk-P4F73WS7.js} +1 -1
- package/chunks/{chunk-DG6LRVVN.js → chunk-PD4HVHCC.js} +1 -1
- package/chunks/{chunk-JZ4ZEW3K.js → chunk-Q5CQXESD.js} +1 -1
- package/chunks/{chunk-TK7HNIQM.js → chunk-QFMADEHM.js} +1 -1
- package/chunks/{chunk-U7C4TQUX.js → chunk-QFUVHWOM.js} +1 -1
- package/chunks/{chunk-WS7DJM5N.js → chunk-QJQOFPJ5.js} +18 -18
- package/chunks/{chunk-EFN3RELD.js → chunk-QNHUPN6K.js} +3 -3
- package/chunks/{chunk-O5F6BGMF.js → chunk-RE37G7GK.js} +7 -7
- package/chunks/{chunk-OKR7R26W.js → chunk-RRYTDYCK.js} +4 -4
- package/chunks/{chunk-BIP774WW.js → chunk-RS2CMJTM.js} +1 -1
- package/chunks/{chunk-3YG4OBGV.js → chunk-S5H5TQN4.js} +1 -1
- package/chunks/{chunk-W7NTX5RO.js → chunk-S5QFGJXY.js} +7 -7
- package/chunks/{chunk-ER3EHNTV.js → chunk-SPTU3FVH.js} +4 -4
- package/chunks/chunk-TC2TJAOF.js +1365 -0
- package/chunks/{chunk-HUMRTP2R.js → chunk-TFFOK3SJ.js} +1 -1
- package/chunks/{chunk-OD2XVV6S.js → chunk-TJRZBOWB.js} +6 -6
- package/chunks/chunk-TL23ZRID.js +327 -0
- package/chunks/{chunk-QMCDBQRJ.js → chunk-TP3M5WJ2.js} +1 -1
- package/chunks/chunk-TPHHBX2V.js +372 -0
- package/chunks/{chunk-FVO4TXS5.js → chunk-TXTBBSFN.js} +6 -6
- package/chunks/{chunk-WQ6CX6N3.js → chunk-U5W3UVUJ.js} +15 -15
- package/chunks/{chunk-FYQO4Y3N.js → chunk-UEBG3R2E.js} +19 -19
- package/chunks/{chunk-N7NBYHMJ.js → chunk-UNY7AZRV.js} +1 -1
- package/chunks/{chunk-UDWKKKF3.js → chunk-VBCZ36HL.js} +16 -12
- package/chunks/{chunk-DMVMQMWZ.js → chunk-VCQ6UT2V.js} +86 -86
- package/chunks/{chunk-5V3EOW36.js → chunk-VGJTZHV4.js} +28 -28
- package/chunks/{chunk-XOVXSDNN.js → chunk-VPFTCMMK.js} +1 -1
- package/chunks/{chunk-7H7YR3TX.js → chunk-VSGHHI2A.js} +1 -1
- package/chunks/{chunk-FQO3QDB5.js → chunk-VT3TJFQR.js} +1 -1
- package/chunks/{chunk-6LLJK4YT.js → chunk-VWSBLBKL.js} +2 -2
- package/chunks/{chunk-4FUKWWA7.js → chunk-W52IXLWZ.js} +2 -2
- package/chunks/{chunk-7I52LFBI.js → chunk-W7TFIXSV.js} +8 -6
- package/chunks/chunk-WBPIFM2X.js +2008 -0
- package/chunks/{chunk-AIQC2WHG.js → chunk-WDHSE635.js} +4 -4
- package/chunks/{chunk-M2EBVYXC.js → chunk-WK44MSGW.js} +1 -1
- package/chunks/{chunk-IKXBBMRT.js → chunk-WSEWAUUB.js} +1 -1
- package/chunks/{chunk-FJHDFJVI.js → chunk-WSHOWMUB.js} +1 -1
- package/chunks/{chunk-VBJH6XAM.js → chunk-WVGCMQD5.js} +1 -1
- package/chunks/{chunk-OAGT2TNR.js → chunk-XD6GHBUY.js} +9 -9
- package/chunks/{chunk-6D6Z2RPR.js → chunk-XDTO4IJ3.js} +2 -2
- package/chunks/{chunk-4AJNXOC5.js → chunk-XRY5FMOE.js} +2 -2
- package/chunks/{chunk-Z5UCVPGO.js → chunk-YII34AZ7.js} +13 -13
- package/chunks/{chunk-BSLKB37V.js → chunk-ZGPPP7FC.js} +30 -30
- package/chunks/{chunk-ZQBNP2ZQ.js → chunk-ZRO2FPEP.js} +4 -4
- package/chunks/{chunk-4RA6DVZM.js → chunk-ZUP2FFM5.js} +4 -4
- package/chunks/{codex-subagent-executor-BDV2OYSK.js → codex-subagent-executor-6GZ7UBTB.js} +70 -70
- package/chunks/{contextCommand-4XBRYOBZ.js → contextCommand-RK4SGQXM.js} +69 -69
- package/chunks/{core-runtime-IYMVEYKI.js → core-runtime-Z3MAZ6W4.js} +78 -78
- package/chunks/{create-sub-session-EAHSPBXY.js → create-sub-session-KWT7I6XG.js} +72 -72
- package/chunks/{daemon-git-worktree-guard-JPOH2ZV5.js → daemon-git-worktree-guard-RVYAPX2W.js} +68 -68
- package/chunks/{daemon-status-provider-GOJGNJ2Y.js → daemon-status-provider-7Q4AQLU7.js} +76 -76
- package/chunks/{daemon-trust-policy-X5QLCVP2.js → daemon-trust-policy-K6KAYOII.js} +74 -74
- package/chunks/{daemon-trust-policy-monitor-GOMIMXAS.js → daemon-trust-policy-monitor-L2HR4KDO.js} +74 -74
- package/chunks/{deferred-core-runtime-MFMRVOPT.js → deferred-core-runtime-B3GYIW7X.js} +66 -66
- package/chunks/{display-image-U6HZKF3G.js → display-image-ETU7QIAC.js} +2 -2
- package/chunks/{edit-N5WDGSAZ.js → edit-DHFV3SJW.js} +44 -44
- package/chunks/{en-C4TIYTOH.js → en-PCBCZAUA.js} +29 -2
- package/chunks/{enter-worktree-A2WD27HQ.js → enter-worktree-OZOIH6KH.js} +4 -4
- package/chunks/{enterPlanMode-52GAH43E.js → enterPlanMode-FHBSHN7T.js} +42 -42
- package/chunks/{environment-RXHNLDLZ.js → environment-SJ2O6HRJ.js} +69 -69
- package/chunks/{errors-D65OPVWO.js → errors-SLII5WDL.js} +69 -69
- package/chunks/{execution-sandbox-config-YE2XOT56.js → execution-sandbox-config-EYZYM2IC.js} +7 -7
- package/chunks/{execution-tool-RK3OB5IY.js → execution-tool-VRA7QCXP.js} +45 -45
- package/chunks/{execution-worker-R7E5B7CA.js → execution-worker-LT2EFVHR.js} +50 -50
- package/chunks/{exit-worktree-S7KUQ4HO.js → exit-worktree-W5TC4B4C.js} +4 -4
- package/chunks/{exitPlanMode-SRLMLRK5.js → exitPlanMode-XQ75FETK.js} +42 -42
- package/chunks/{fast-path-KOMJMO2I.js → fast-path-NQQ53WED.js} +2 -2
- package/chunks/{glob-MD6DOICU.js → glob-7SQOB5CX.js} +42 -42
- package/chunks/{goal-tools-FLJYRSX6.js → goal-tools-4GR2BFFX.js} +42 -42
- package/chunks/{handleAutoUpdate-LX4OGPKI.js → handleAutoUpdate-OLVCIBDN.js} +70 -70
- package/chunks/{i18n-CSJNAMVB.js → i18n-NXRBYDXM.js} +68 -68
- package/chunks/{image-gen-GRJ73O3N.js → image-gen-Q4E7L7EV.js} +3 -6
- package/chunks/{initializer-UN73MGL2.js → initializer-NGPV43CI.js} +74 -74
- package/chunks/{installationInfo-DOO2EVLV.js → installationInfo-U5NUDGQV.js} +66 -66
- package/chunks/{keychain-token-storage-NDVFNJI5.js → keychain-token-storage-SJOKJDWV.js} +2 -1
- package/chunks/{list-UMP3UXDE.js → list-WUD2DUO4.js} +77 -77
- package/chunks/{llm-4AHGUE2C.js → llm-3GFPNXO6.js} +142 -142
- package/chunks/{llm-content-generator-I62R6Q4I.js → llm-content-generator-5CTS3JEL.js} +8 -6
- package/chunks/{loadedSettingsAdapter-KHAGVCPO.js → loadedSettingsAdapter-45PMLPYE.js} +74 -74
- package/chunks/{local-execution-environment-DOKSKTNZ.js → local-execution-environment-XJ5Y5J5E.js} +50 -50
- package/chunks/{loggingContentGenerator-53CAIYCN.js → loggingContentGenerator-BJHOK6Q7.js} +69 -69
- package/chunks/{managed-npm-update-KTATRLFZ.js → managed-npm-update-TCLLJP27.js} +66 -66
- package/chunks/{mcp-7GPEHQCC.js → mcp-LJGCW5XK.js} +74 -74
- package/chunks/{memory-side-query-EHR7FGIB.js → memory-side-query-BSVTSKCB.js} +7 -7
- package/chunks/{model-call-collection-J33XHZPS.js → model-call-collection-GCSBAMPN.js} +7 -7
- package/chunks/{model-configuration-BK2FWMLQ.js → model-configuration-N6EASNX6.js} +75 -75
- package/chunks/{modelConfigUtils-RHOU5ENH.js → modelConfigUtils-4O46TEAJ.js} +68 -68
- package/chunks/{monitor-WXQOHZKP.js → monitor-OOKJVU73.js} +42 -42
- package/chunks/{nonInteractiveCli-332KOMYW.js → nonInteractiveCli-6H3CIYOC.js} +113 -113
- package/chunks/{nonInteractiveToolExecutor-ULCR2RA7.js → nonInteractiveToolExecutor-MWOHBQ3G.js} +43 -43
- package/chunks/{notebook-edit-HOKY5D6F.js → notebook-edit-CG5ZTY7N.js} +43 -43
- package/chunks/{ocr-image-ZJCSAMSQ.js → ocr-image-O6ECQNUE.js} +6 -6
- package/chunks/{omni-O37J5JI3.js → omni-MWVCLGTK.js} +40 -42
- package/chunks/{openaiContentGenerator-62C5JSNE.js → openaiContentGenerator-XDEGXNI6.js} +62 -59
- package/chunks/{openaiResponsesContentGenerator-JSS3U575.js → openaiResponsesContentGenerator-KVV57AK6.js} +40 -24
- package/chunks/{processUtils-Y66KDZSB.js → processUtils-7C3HIK43.js} +2 -2
- package/chunks/{prompt-terminal-ledger-MXYMD7UN.js → prompt-terminal-ledger-R4EB443Y.js} +67 -67
- package/chunks/{pt-TCLIZMUA.js → pt-3QNK7RYA.js} +29 -2
- package/chunks/{reactive-degrade-X2JSVX5V.js → reactive-degrade-6JECKK6A.js} +25 -23
- package/chunks/{read-file-UDFSKNBI.js → read-file-2V6MBYCS.js} +12 -11
- package/chunks/{recall-media-memory-tool-GAR6JWON.js → recall-media-memory-tool-WIFEB2OG.js} +5 -5
- package/chunks/{record-artifact-PL2T5AJY.js → record-artifact-IVE6QT4D.js} +3 -3
- package/chunks/{record-source-ANENC5K7.js → record-source-U53PRXYX.js} +5 -5
- package/chunks/{report-findings-RFO53756.js → report-findings-W75NCFXY.js} +4 -4
- package/chunks/{request-shutdown-LRWCJOEG.js → request-shutdown-E5QAHOAD.js} +4 -4
- package/chunks/{resumeHistoryUtils-ABWHIQME.js → resumeHistoryUtils-OA7LAAZ7.js} +72 -72
- package/chunks/{ripGrep-RMGB52RM.js → ripGrep-KR5EE3HU.js} +14 -13
- package/chunks/{run-o1-code-serve-KVOUMETW.js → run-o1-code-serve-RJHXITCF.js} +59 -59
- package/chunks/{runtime-shell-policy-Y3TGAQLT.js → runtime-shell-policy-Z53GWNM7.js} +1 -1
- package/chunks/{sandboxConfig-6UNSTBMJ.js → sandboxConfig-Q5GADSBO.js} +66 -66
- package/chunks/{scheduled-tasks-SHFPXK6P.js → scheduled-tasks-6FXAE77O.js} +75 -75
- package/chunks/{scheduler-N5K2SUQE.js → scheduler-W5XJHCSY.js} +68 -68
- package/chunks/{sdk-exporters-grpc-J2ILXEUS.js → sdk-exporters-grpc-FZO3Y43M.js} +2 -2
- package/chunks/{sdk-exporters-http-HGBOA62S.js → sdk-exporters-http-WYXH2KE4.js} +14 -14
- package/chunks/{sdk-impl-G2NWB5MF.js → sdk-impl-5PWLMFPQ.js} +20 -20
- package/chunks/{send-message-QOWWQKZJ.js → send-message-OSS7K7GE.js} +4 -4
- package/chunks/{serve-RQIMY7MC.js → serve-PRXYYEOA.js} +74 -74
- package/chunks/{server-AA4LTEQ2.js → server-UBJ5BVPH.js} +260 -260
- package/chunks/{session-4627GZ4S.js → session-62TX2TX2.js} +122 -122
- package/chunks/session-WTJAKLQE.js +34 -0
- package/chunks/{session-attachments-root-Y4BXBBHX.js → session-attachments-root-FW2TX3FF.js} +66 -66
- package/chunks/{session-pr-refresh-XXIT42IO.js → session-pr-refresh-R2Y6QHL7.js} +75 -75
- package/chunks/{settings-CHJS242C.js → settings-HJODN63R.js} +74 -74
- package/chunks/{shell-PDZIKVVS.js → shell-P3L2UMOI.js} +42 -42
- package/chunks/{skill-QOPISSJO.js → skill-3PV7IPAH.js} +14 -13
- package/chunks/{skill-settings-SSXT3JNN.js → skill-settings-TSXFLSXL.js} +74 -74
- package/chunks/{spawnChannel-MPL2AUYX.js → spawnChannel-VV2PWHJ2.js} +69 -69
- package/chunks/{standalone-update-ACWQFW36.js → standalone-update-4BRRDDO4.js} +69 -69
- package/chunks/{startInteractiveUI-PKMNIOMH.js → startInteractiveUI-KUDCHKGV.js} +446 -354
- package/chunks/{task-create-2BHPJUF3.js → task-create-WLFSUWNH.js} +5 -5
- package/chunks/{task-update-NGKKBFU5.js → task-update-STSLD6C5.js} +5 -5
- package/chunks/{team-create-PDT7MW4F.js → team-create-DXTHTZKI.js} +42 -42
- package/chunks/{team-plan-approval-4CFTZI2I.js → team-plan-approval-22HFWRXC.js} +42 -42
- package/chunks/{terminal-image-renderer-C65IVJHI.js → terminal-image-renderer-YBRDENRT.js} +66 -66
- package/chunks/{theme-manager-5FF3ROXZ.js → theme-manager-3GMAH5RD.js} +66 -66
- package/chunks/{tool-call-GVZHLCX6.js → tool-call-2R6GT3ZZ.js} +5 -5
- package/chunks/{tool-result-media-YFEIOZDR.js → tool-result-media-TPGTYKAD.js} +21 -23
- package/chunks/{tool-search-WNOVTFBP.js → tool-search-JYV3OQ6L.js} +19 -18
- package/chunks/{total-session-admission-Q6NUZVLI.js → total-session-admission-A27OSZFH.js} +71 -71
- package/chunks/{transcribe-audio-J3OVKT5D.js → transcribe-audio-R6YC24KU.js} +3 -3
- package/chunks/{trustedFolders-SFZUU4GO.js → trustedFolders-OVHIYR7G.js} +68 -68
- package/chunks/{understand-video-segments-OMAJP6Q7.js → understand-video-segments-2WK4T6PO.js} +8 -8
- package/chunks/{update-relaunch-ICPN37DV.js → update-relaunch-NJNXJ7YF.js} +5 -5
- package/chunks/{updateCheck-PRCH4Y2X.js → updateCheck-XCRLLMAH.js} +69 -69
- package/chunks/{upload-config-JG34DU4J.js → upload-config-QSD3T2AU.js} +10 -8
- package/chunks/{useAutoAcceptIndicator-FZVG3NNO.js → useAutoAcceptIndicator-PJMRWE6O.js} +77 -77
- package/chunks/{validateNonInterActiveAuth-XRY2O6CQ.js → validateNonInterActiveAuth-SD677WKS.js} +110 -110
- package/chunks/{version-IU45BCJE.js → version-FD6BAJ7Z.js} +1 -1
- package/chunks/{web-fetch-WO3GHRIO.js → web-fetch-4RUI7Y7U.js} +14 -16
- package/chunks/{web-search-4GJLGZQM.js → web-search-ROO2Y3AU.js} +12 -13
- package/chunks/web-shell-static-OOIIII74.js +1 -1
- package/chunks/{workflow-UG4V5VWR.js → workflow-OTLXZKSM.js} +45 -45
- package/chunks/{workspace-providers-status-IM5IUQXM.js → workspace-providers-status-E7XZW55K.js} +80 -80
- package/chunks/{workspace-registration-store-O36O7FTL.js → workspace-registration-store-NTRX2N6W.js} +1 -1
- package/chunks/{workspace-registry-TOE2NYGH.js → workspace-registry-OKP2RI5C.js} +71 -71
- package/chunks/{workspace-runtime-coordinator-LS7MYSDY.js → workspace-runtime-coordinator-774UWQBB.js} +72 -72
- package/chunks/{workspace-service-FL63YNEM.js → workspace-service-C3BQFCAC.js} +80 -80
- package/chunks/{workspace-skills-status-IXHCVUXS.js → workspace-skills-status-GJFMBOCP.js} +77 -77
- package/chunks/{workspace-trust-reconciler-WTJ52TKZ.js → workspace-trust-reconciler-3V6TVY5S.js} +80 -80
- package/chunks/{write-file-VTHULBGP.js → write-file-CE74OWAB.js} +45 -45
- package/chunks/{zh-KRQU675V.js → zh-GBDJHFG4.js} +1 -0
- package/chunks/{zh-TW-K657U7LC.js → zh-TW-WWN26WO4.js} +1 -0
- package/chunks/{zoom-image-TJNJJATC.js → zoom-image-EK6GNK4H.js} +12 -11
- package/cli.js +14 -14
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +46 -2
- package/locales/pt.js +46 -2
- package/locales/zh-TW.js +2 -0
- package/locales/zh.js +2 -0
- package/package.json +2 -2
- package/release-notes.json +13 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-anMh0rnI.js → abnfDiagram-VCTEODGH-B1-jzC8p.js} +1 -1
- package/web-shell/assets/{arc-sPYpPSws.js → arc-CSOZi0KQ.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BKh0KCFR.js → architectureDiagram-5GKGNRK7-CPkIznhq.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-CUfywffW.js → blockDiagram-NRAW4CY4-B4CmWPlm.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-CM2pLl5w.js → c4Diagram-UCG6FXSJ-CfbSKaAp.js} +1 -1
- package/web-shell/assets/channel-DtvUnSzo.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-n9OTAsCE.js → chunk-2Q5K7J3B-DeXG-4SQ.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-CC3dLmo9.js → chunk-5VM5RSS4-C8diV_rJ.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-pIte4woe.js → chunk-F27PBJKO-Dfz0hM4f.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-Bd4q9Va0.js → chunk-G27WJ6UU-BE_M2PYM.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-C1ornOGN.js → chunk-JWPE2WC7-CLsWUvS5.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-w09p9W09.js → chunk-LCL6LL3I-DeyqYZUf.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-CHY7aAx4.js → chunk-POPQ4Y6H-C-6z-5n3.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-DKqS6ObW.js → chunk-SVP7TREG-DdwfG0ad.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DWqNHE5T.js → chunk-XXDRQBXY-X9aD75Ws.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-B4Ulnn_s.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-B4Ulnn_s.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CTuORHW-.js → cose-bilkent-JH36ORCC-DNp5iXJM.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-D38bIRGV.js → cynefin-OW5HDTMX-DhhzkPLD.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-zojG5SHE.js → cynefinDiagram-5FMLGOSQ-5eATS_mD.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-B_mgdgxG.js → dagre-3AP2YEHR-DXUm0J5e.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Boe4tqaP.js → diagram-S7CK7UJ4-DNrRshkn.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DEFdgAk5.js → diagram-UQ7AKVKN-DS2yugJl.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-lg-aIy2H.js → diagram-VSXAHHWV-Ds2io9aQ.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-B8GfIB8O.js → diagram-VX7I27RA-CGa-K6oj.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-B9d7kR6t.js → diagram-Z3DM3KII-BW68o26L.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-BbKPC4Lq.js → ebnfDiagram-PWID7BFC-BC4P1K1r.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CRAgoOe5.js → erDiagram-SSCWMZ5O-CLs5DpAu.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-Ur3ln_JM.js → flowDiagram-A5DVABFB-D76URsL1.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-C9BN2b5E.js → ganttDiagram-EL5Y4UJY-xVE4LPqO.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-CRfkh-0v.js → gitGraphDiagram-WWUBYQGX-CIRl0tk3.js} +1 -1
- package/web-shell/assets/{index-DiA0wMqK.js → index-Bv4OUm3o.js} +1 -1
- package/web-shell/assets/{index-CeQlCdwD.js → index-KZq_3onf.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-DK1-ESA4.js → infoDiagram-RXCK75RN-CBnubrlE.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-kxpIDlCX.js → ishikawaDiagram-5VMMS53U-qK-V6061.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DQ9EbXpv.js → journeyDiagram-EYS64GPL-UUJYez4X.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-UYveUTce.js → kanban-definition-3QL26DDD-BCcGvRtp.js} +1 -1
- package/web-shell/assets/{layout-BPonaHzT.js → layout-CSFWOY9q.js} +1 -1
- package/web-shell/assets/{linear-C-eJXPTS.js → linear-WUzB_hII.js} +1 -1
- package/web-shell/assets/{mermaid.core-BX1Kz_A0.js → mermaid.core-eLc_GDkM.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-B6QyHOu0.js → mindmap-definition-FBJOCRG2-BfzdSe6H.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-Caflqhs8.js → pegDiagram-XKGWAZYB-B1kr5DxT.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-6zzkWzNt.js → pieDiagram-E7YTZNPT-CPFq2ZOW.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-BVL3cBz2.js → quadrantDiagram-AXDQQJYC-DuZmXZaP.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-DqBEO3-Z.js → railroadDiagram-O6MQD6OU-DCjBx5S1.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CBFGB-6Q.js → requirementDiagram-EFPCY7ZU-DISKvzR7.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DOpW98KL.js → sankeyDiagram-P5KCCOFB-BugqzyC1.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CVtDqArI.js → sequenceDiagram-WJ2MYXX4-DLQyc2mn.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DQjMKuHP.js → sizeCapture-X5ZJPWSS-CDbelLiH.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-D4n_VP2j.js → stateDiagram-HBIQ2CUA-Bw4uH6Y6.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-UrUNUyaU.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Dvr4Gk5J.js → swimlanes-XN3QIQJK-BT-heLFQ.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-E8v9mXaE.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DXsPhzEF.js → timeline-definition-24CTP7MA-ORqZ_woY.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-aA8X42UU.js → vennDiagram-4TSXK5OY-AgffOwo5.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CuOx8tlj.js → wardleyDiagram-VM6X3IG4-CcqvB4mV.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-DIc2TzVm.js → xychartDiagram-S5SC5T6Z-BQBX00-a.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/chunks/chunk-7USF7X6U.js +0 -584
- package/chunks/chunk-ALIO4STD.js +0 -340
- package/chunks/chunk-KTOCX7IM.js +0 -27
- package/chunks/chunk-MWFHMYVA.js +0 -93
- package/chunks/chunk-PFRCGQAE.js +0 -48
- package/chunks/chunk-VIAJ74X3.js +0 -410
- package/web-shell/assets/channel-DRltBDks.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Bs6uTgrQ.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Bs6uTgrQ.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cy-H3uc5.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BmzgGPpR.js +0 -8
- package/chunks/{chunk-BWRP5ZMP.js → chunk-DQZYZDIL.js} +3 -3
- package/chunks/{chunk-KV5QCRFB.js → chunk-IC57EPC7.js} +3 -3
- package/chunks/{chunk-YJLJUKJ7.js → chunk-IZSIFV6S.js} +3 -3
- package/chunks/{chunk-H5L5E5NI.js → chunk-ROO6F2BT.js} +3 -3
- package/chunks/{chunk-MDU4BZLN.js → chunk-YSZCVSC3.js} +0 -0
- package/chunks/{clip-audio-G2SG55MB.js → clip-audio-BJ42NS5B.js} +4 -4
- package/chunks/{clip-image-I3IFRW4Z.js → clip-image-FDBAIKGB.js} +3 -3
- package/chunks/{clip-video-XISLKGWO.js → clip-video-6KVC2IFL.js} +4 -4
- package/chunks/{convert-image-TXAOAPLS.js → convert-image-AYXBZ3TH.js} +3 -3
- package/chunks/{downsample-audio-SBMOSASE.js → downsample-audio-HSPMS25U.js} +4 -4
- package/chunks/{downsample-image-S5ZKCZEM.js → downsample-image-BFBX343I.js} +3 -3
- package/chunks/{downscale-video-LFLD2MYN.js → downscale-video-GQ5ZMJRX.js} +4 -4
- package/chunks/{extract-audio-TY277NLN.js → extract-audio-3LB2Q736.js} +4 -4
- package/chunks/{extract-keyframes-CXPABWEU.js → extract-keyframes-6ZP65BJF.js} +4 -4
package/chunks/chunk-7USF7X6U.js
DELETED
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
ResponsesHttpError
|
|
5
|
-
} from "./chunk-MWFHMYVA.js";
|
|
6
|
-
import {
|
|
7
|
-
getErrorStatus,
|
|
8
|
-
isAbortError
|
|
9
|
-
} from "./chunk-JAQAGKIV.js";
|
|
10
|
-
import {
|
|
11
|
-
init_esbuild_shims
|
|
12
|
-
} from "./chunk-S2467S6L.js";
|
|
13
|
-
import {
|
|
14
|
-
__name
|
|
15
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
16
|
-
|
|
17
|
-
// packages/core/src/utils/quotaErrorDetection.ts
|
|
18
|
-
init_esbuild_shims();
|
|
19
|
-
function isApiError(error) {
|
|
20
|
-
return typeof error === "object" && error !== null && "error" in error && typeof error.error === "object" && error.error !== null && "message" in error.error;
|
|
21
|
-
}
|
|
22
|
-
__name(isApiError, "isApiError");
|
|
23
|
-
function isStructuredError(error) {
|
|
24
|
-
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
25
|
-
}
|
|
26
|
-
__name(isStructuredError, "isStructuredError");
|
|
27
|
-
var QUOTA_EXHAUSTED_PREFIX = "Quota exhausted: ";
|
|
28
|
-
function getQuotaMessage(error) {
|
|
29
|
-
let message = null;
|
|
30
|
-
if (typeof error === "string") message = error;
|
|
31
|
-
else if (isStructuredError(error)) message = error.message;
|
|
32
|
-
else if (isApiError(error)) message = error.error.message;
|
|
33
|
-
if (message === null) return null;
|
|
34
|
-
const start = message.indexOf("{");
|
|
35
|
-
if (start !== -1) {
|
|
36
|
-
try {
|
|
37
|
-
const parsed = JSON.parse(message.substring(start));
|
|
38
|
-
if (isApiError(parsed)) return parsed.error.message;
|
|
39
|
-
} catch {
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
}
|
|
44
|
-
__name(getQuotaMessage, "getQuotaMessage");
|
|
45
|
-
function isQuotaExhaustedError(error) {
|
|
46
|
-
const message = getQuotaMessage(error);
|
|
47
|
-
if (!message) return false;
|
|
48
|
-
const lower = message.toLowerCase();
|
|
49
|
-
return lower.includes("quota") && (lower.includes("exhausted") || lower.includes("exceeded")) && (lower.includes("will reset") || lower.includes("reset at"));
|
|
50
|
-
}
|
|
51
|
-
__name(isQuotaExhaustedError, "isQuotaExhaustedError");
|
|
52
|
-
function formatQuotaExhaustedMessage(error) {
|
|
53
|
-
const raw = getQuotaMessage(error) ?? "";
|
|
54
|
-
if (raw.startsWith(QUOTA_EXHAUSTED_PREFIX)) return raw;
|
|
55
|
-
const stripped = raw.replace(/^\d{3}\s+/, "").trim() || "quota has been exhausted";
|
|
56
|
-
return `${QUOTA_EXHAUSTED_PREFIX}${stripped}
|
|
57
|
-
|
|
58
|
-
Please retry after the reset time, or switch to another API key / auth method.`;
|
|
59
|
-
}
|
|
60
|
-
__name(formatQuotaExhaustedMessage, "formatQuotaExhaustedMessage");
|
|
61
|
-
|
|
62
|
-
// packages/core/src/utils/rateLimit.ts
|
|
63
|
-
init_esbuild_shims();
|
|
64
|
-
|
|
65
|
-
// packages/core/src/utils/retryPolicy.ts
|
|
66
|
-
init_esbuild_shims();
|
|
67
|
-
var MAX_TIMEOUT_MS = 2147483647;
|
|
68
|
-
function getRetryDelayMs(options) {
|
|
69
|
-
const normalizedAttempt = Math.max(1, options.attempt);
|
|
70
|
-
const delayCeilingMs = Math.min(options.maxDelayMs, MAX_TIMEOUT_MS);
|
|
71
|
-
const exponent = Math.min(normalizedAttempt - 1, 31);
|
|
72
|
-
const cappedExponentialDelayMs = Math.min(
|
|
73
|
-
options.initialDelayMs * Math.pow(2, exponent),
|
|
74
|
-
delayCeilingMs
|
|
75
|
-
);
|
|
76
|
-
const retryAfterMode = options.retryAfterMode ?? "ignore";
|
|
77
|
-
const retryAfterMs = retryAfterMode === "ignore" ? null : getRetryAfterDelayMs(options.error);
|
|
78
|
-
if (retryAfterMs !== null && retryAfterMs > 0) {
|
|
79
|
-
const retryAfterCapMs = Math.min(
|
|
80
|
-
options.retryAfterMaxDelayMs ?? options.maxDelayMs,
|
|
81
|
-
MAX_TIMEOUT_MS
|
|
82
|
-
);
|
|
83
|
-
const cappedRetryAfterMs = Math.min(retryAfterMs, retryAfterCapMs);
|
|
84
|
-
return Math.max(cappedExponentialDelayMs, cappedRetryAfterMs);
|
|
85
|
-
}
|
|
86
|
-
const jitterRatio = options.jitterRatio ?? 0;
|
|
87
|
-
if (jitterRatio <= 0) return cappedExponentialDelayMs;
|
|
88
|
-
const random = options.random ?? Math.random;
|
|
89
|
-
const jitter = cappedExponentialDelayMs * jitterRatio * (random() * 2 - 1);
|
|
90
|
-
return Math.min(
|
|
91
|
-
Math.max(0, cappedExponentialDelayMs + jitter),
|
|
92
|
-
delayCeilingMs
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
__name(getRetryDelayMs, "getRetryDelayMs");
|
|
96
|
-
function getRetryAfterDelayMs(error) {
|
|
97
|
-
const millis = getHeaderValue(error, "retry-after-ms") ?? getResponseHeaderValue(error, "retry-after-ms");
|
|
98
|
-
if (millis !== null && /^\d+(\.\d+)?$/.test(millis.trim())) {
|
|
99
|
-
const value2 = Number(millis);
|
|
100
|
-
if (Number.isFinite(value2)) return Math.min(value2, MAX_TIMEOUT_MS);
|
|
101
|
-
}
|
|
102
|
-
const value = getHeaderValue(error, "retry-after") ?? getResponseHeaderValue(error, "retry-after");
|
|
103
|
-
if (value === null) return null;
|
|
104
|
-
const trimmed = value.trim();
|
|
105
|
-
if (/^\d+(\.\d+)?$/.test(trimmed)) {
|
|
106
|
-
const seconds = Number(trimmed);
|
|
107
|
-
if (Number.isFinite(seconds) && seconds >= 0) {
|
|
108
|
-
return Math.min(seconds * 1e3, MAX_TIMEOUT_MS);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const retryAtMs = Date.parse(trimmed);
|
|
112
|
-
if (!Number.isFinite(retryAtMs)) return null;
|
|
113
|
-
const delayMs = retryAtMs - Date.now();
|
|
114
|
-
return delayMs > 0 ? Math.min(delayMs, MAX_TIMEOUT_MS) : 0;
|
|
115
|
-
}
|
|
116
|
-
__name(getRetryAfterDelayMs, "getRetryAfterDelayMs");
|
|
117
|
-
function getErrorHeader(error, headerName) {
|
|
118
|
-
return getHeaderValue(error, headerName) ?? getResponseHeaderValue(error, headerName);
|
|
119
|
-
}
|
|
120
|
-
__name(getErrorHeader, "getErrorHeader");
|
|
121
|
-
function getHeaderValue(error, headerName) {
|
|
122
|
-
if (!hasHeaders(error)) return null;
|
|
123
|
-
const { headers } = error;
|
|
124
|
-
if (typeof headers.get === "function") {
|
|
125
|
-
const value = headers.get(headerName);
|
|
126
|
-
return typeof value === "string" ? value : null;
|
|
127
|
-
}
|
|
128
|
-
if (typeof headers !== "object" || headers === null) return null;
|
|
129
|
-
const lowerHeaderName = headerName.toLowerCase();
|
|
130
|
-
for (const [key, value] of Object.entries(headers)) {
|
|
131
|
-
if (key.toLowerCase() !== lowerHeaderName) continue;
|
|
132
|
-
return typeof value === "string" ? value : null;
|
|
133
|
-
}
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
__name(getHeaderValue, "getHeaderValue");
|
|
137
|
-
function getResponseHeaderValue(error, headerName) {
|
|
138
|
-
if (!hasResponseHeaders(error)) return null;
|
|
139
|
-
return getHeaderValue(error.response, headerName);
|
|
140
|
-
}
|
|
141
|
-
__name(getResponseHeaderValue, "getResponseHeaderValue");
|
|
142
|
-
function hasHeaders(error) {
|
|
143
|
-
return typeof error === "object" && error !== null && "headers" in error && error.headers != null;
|
|
144
|
-
}
|
|
145
|
-
__name(hasHeaders, "hasHeaders");
|
|
146
|
-
function hasResponseHeaders(error) {
|
|
147
|
-
return typeof error === "object" && error !== null && "response" in error && typeof error.response === "object" && error.response !== null && "headers" in error.response && error.response.headers != null;
|
|
148
|
-
}
|
|
149
|
-
__name(hasResponseHeaders, "hasResponseHeaders");
|
|
150
|
-
|
|
151
|
-
// packages/core/src/utils/rateLimit.ts
|
|
152
|
-
var RATE_LIMIT_ERROR_CODES = /* @__PURE__ */ new Set([429, 503, 1302, 1305]);
|
|
153
|
-
function isRateLimitError(error, extraCodes) {
|
|
154
|
-
const code = getErrorCode(error);
|
|
155
|
-
if (code === null) return isStatuslessThrottle(error);
|
|
156
|
-
if (RATE_LIMIT_ERROR_CODES.has(code)) return true;
|
|
157
|
-
if (extraCodes && extraCodes.includes(code)) return true;
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
__name(isRateLimitError, "isRateLimitError");
|
|
161
|
-
function isStatuslessThrottle(error) {
|
|
162
|
-
for (const payload of [error, ...getJsonPayloads(error)]) {
|
|
163
|
-
const selected = providerErrorSource(payload);
|
|
164
|
-
if (!selected) continue;
|
|
165
|
-
const { source } = selected;
|
|
166
|
-
const { type, message } = source;
|
|
167
|
-
if (type === "rate_limit_error" || type === "overloaded_error") return true;
|
|
168
|
-
if (type !== "invalid_request_error" || typeof message !== "string")
|
|
169
|
-
continue;
|
|
170
|
-
const detail = decodeProviderMessage(message)?.["message"] ?? message;
|
|
171
|
-
if (typeof detail === "string" && /^too many requests\b/i.test(detail.trim()) && /\b(?:wait|try(?:ing)? again)\b/i.test(detail)) {
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
__name(isStatuslessThrottle, "isStatuslessThrottle");
|
|
178
|
-
function providerErrorSource(payload) {
|
|
179
|
-
if (typeof payload !== "object" || payload === null) return null;
|
|
180
|
-
const direct = payload;
|
|
181
|
-
const nested = direct["error"];
|
|
182
|
-
const source = typeof nested === "object" && nested !== null ? nested : direct;
|
|
183
|
-
return { source, direct };
|
|
184
|
-
}
|
|
185
|
-
__name(providerErrorSource, "providerErrorSource");
|
|
186
|
-
function decodeProviderMessage(message) {
|
|
187
|
-
try {
|
|
188
|
-
const selected = providerErrorSource(JSON.parse(message));
|
|
189
|
-
if (!selected || typeof selected.source["message"] !== "string") {
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
return { ...selected.direct, ...selected.source };
|
|
193
|
-
} catch {
|
|
194
|
-
return null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
__name(decodeProviderMessage, "decodeProviderMessage");
|
|
198
|
-
function getRateLimitErrorDetails(error) {
|
|
199
|
-
const statusCode = getErrorStatus(error);
|
|
200
|
-
const payload = getProviderErrorPayload(error);
|
|
201
|
-
const message = getRawErrorMessage(error);
|
|
202
|
-
const transport = message?.includes("event:error") || message?.includes("HTTP_STATUS/") ? "sse" : statusCode !== void 0 ? "http" : "unknown";
|
|
203
|
-
return {
|
|
204
|
-
...statusCode !== void 0 ? { statusCode } : {},
|
|
205
|
-
...payload?.code !== void 0 || payload?.type !== void 0 ? { providerCode: String(payload.code ?? payload.type) } : {},
|
|
206
|
-
...payload?.type !== void 0 ? { providerType: payload.type } : {},
|
|
207
|
-
...payload?.message !== void 0 ? { providerMessage: payload.message } : {},
|
|
208
|
-
...payload?.requestId !== void 0 ? { requestId: payload.requestId } : {},
|
|
209
|
-
transport
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
__name(getRateLimitErrorDetails, "getRateLimitErrorDetails");
|
|
213
|
-
function getRateLimitRetryDelayMs(attempt, options) {
|
|
214
|
-
return getRetryDelayMs({
|
|
215
|
-
attempt,
|
|
216
|
-
initialDelayMs: options.initialDelayMs,
|
|
217
|
-
maxDelayMs: options.maxDelayMs,
|
|
218
|
-
retryAfterMode: "minimum",
|
|
219
|
-
retryAfterMaxDelayMs: options.maxDelayMs,
|
|
220
|
-
error: options.error
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
__name(getRateLimitRetryDelayMs, "getRateLimitRetryDelayMs");
|
|
224
|
-
function getErrorCode(error) {
|
|
225
|
-
if (isApiError(error)) {
|
|
226
|
-
const n = Number(error.error.code);
|
|
227
|
-
if (Number.isFinite(n) && n > 0) return n;
|
|
228
|
-
}
|
|
229
|
-
const msg = error instanceof Error ? error.message : typeof error === "string" ? error : null;
|
|
230
|
-
if (msg) {
|
|
231
|
-
const i = msg.indexOf("{");
|
|
232
|
-
if (i !== -1) {
|
|
233
|
-
try {
|
|
234
|
-
const p = JSON.parse(msg.substring(i));
|
|
235
|
-
if (isApiError(p)) {
|
|
236
|
-
const n = Number(p.error.code);
|
|
237
|
-
if (Number.isFinite(n) && n > 0) return n;
|
|
238
|
-
}
|
|
239
|
-
} catch {
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (isStructuredError(error) && typeof error.status === "number") {
|
|
244
|
-
return error.status;
|
|
245
|
-
}
|
|
246
|
-
if (error instanceof Error && "status" in error) {
|
|
247
|
-
const s = error.status;
|
|
248
|
-
if (typeof s === "number") return s;
|
|
249
|
-
}
|
|
250
|
-
return getErrorStatus(error) ?? null;
|
|
251
|
-
}
|
|
252
|
-
__name(getErrorCode, "getErrorCode");
|
|
253
|
-
function getProviderErrorPayload(error) {
|
|
254
|
-
for (const payload of getJsonPayloads(error)) {
|
|
255
|
-
const selected = providerErrorSource(payload);
|
|
256
|
-
if (!selected) continue;
|
|
257
|
-
const { source, direct } = selected;
|
|
258
|
-
const decoded = typeof source["message"] === "string" ? decodeProviderMessage(source["message"]) : null;
|
|
259
|
-
const code = typeof source["code"] === "string" || typeof source["code"] === "number" ? source["code"] : typeof decoded?.["code"] === "string" || typeof decoded?.["code"] === "number" ? decoded["code"] : void 0;
|
|
260
|
-
const type = typeof source["type"] === "string" ? source["type"] : typeof decoded?.["type"] === "string" ? decoded["type"] : void 0;
|
|
261
|
-
const message = typeof decoded?.["message"] === "string" ? decoded["message"] : typeof source["message"] === "string" ? source["message"] : void 0;
|
|
262
|
-
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;
|
|
263
|
-
if (code !== void 0 || type !== void 0 || message !== void 0 || requestId !== void 0) {
|
|
264
|
-
return { code, type, message, requestId };
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
if (isApiError(error)) {
|
|
268
|
-
const decoded = decodeProviderMessage(error.error.message);
|
|
269
|
-
return {
|
|
270
|
-
code: error.error.code,
|
|
271
|
-
...typeof decoded?.["type"] === "string" ? { type: decoded["type"] } : {},
|
|
272
|
-
message: typeof decoded?.["message"] === "string" ? decoded["message"] : error.error.message
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
return null;
|
|
276
|
-
}
|
|
277
|
-
__name(getProviderErrorPayload, "getProviderErrorPayload");
|
|
278
|
-
function getJsonPayloads(error) {
|
|
279
|
-
const message = getRawErrorMessage(error);
|
|
280
|
-
if (!message) return [];
|
|
281
|
-
const payloads = [];
|
|
282
|
-
for (const line of message.split(/\r?\n/)) {
|
|
283
|
-
if (!line.startsWith("data:")) continue;
|
|
284
|
-
const data = line.slice("data:".length).trim();
|
|
285
|
-
if (!data || data === "[DONE]") continue;
|
|
286
|
-
try {
|
|
287
|
-
payloads.push(JSON.parse(data));
|
|
288
|
-
} catch {
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (payloads.length > 0) return payloads;
|
|
292
|
-
const jsonStart = message.indexOf("{");
|
|
293
|
-
const jsonEnd = message.lastIndexOf("}");
|
|
294
|
-
if (jsonStart !== -1 && jsonEnd > jsonStart) {
|
|
295
|
-
try {
|
|
296
|
-
payloads.push(
|
|
297
|
-
JSON.parse(message.slice(jsonStart, jsonEnd + 1))
|
|
298
|
-
);
|
|
299
|
-
} catch {
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
return payloads;
|
|
303
|
-
}
|
|
304
|
-
__name(getJsonPayloads, "getJsonPayloads");
|
|
305
|
-
function getRawErrorMessage(error) {
|
|
306
|
-
if (error instanceof Error) return error.message;
|
|
307
|
-
if (typeof error === "string") return error;
|
|
308
|
-
return null;
|
|
309
|
-
}
|
|
310
|
-
__name(getRawErrorMessage, "getRawErrorMessage");
|
|
311
|
-
|
|
312
|
-
// packages/core/src/utils/retryErrorClassification.ts
|
|
313
|
-
init_esbuild_shims();
|
|
314
|
-
function classifyRetryError(error, context = {}) {
|
|
315
|
-
if (isRetryAbortError(error)) {
|
|
316
|
-
return {
|
|
317
|
-
kind: "abort",
|
|
318
|
-
diagnosis: "fail-fast",
|
|
319
|
-
reason: "aborted"
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
const details = getRateLimitErrorDetails(error);
|
|
323
|
-
const statusCode = details.statusCode;
|
|
324
|
-
const providerFields = getProviderFields(error);
|
|
325
|
-
const providerCode = details.providerCode ?? providerFields.providerCode;
|
|
326
|
-
const providerMessage = details.providerMessage ?? providerFields.providerMessage;
|
|
327
|
-
const requestId = details.requestId || providerFields.requestId;
|
|
328
|
-
const common = {
|
|
329
|
-
...statusCode !== void 0 ? { statusCode } : {},
|
|
330
|
-
...providerCode !== void 0 ? { providerCode } : {},
|
|
331
|
-
...providerMessage !== void 0 ? { providerMessage } : {},
|
|
332
|
-
...requestId !== void 0 ? { requestId } : {}
|
|
333
|
-
};
|
|
334
|
-
if (isAllocatedQuotaExceeded(providerCode)) {
|
|
335
|
-
return {
|
|
336
|
-
kind: "provider-business",
|
|
337
|
-
diagnosis: "fail-fast",
|
|
338
|
-
reason: "allocated-quota-exceeded",
|
|
339
|
-
...common
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
if (error instanceof ResponsesHttpError && (error.headers.has("x-should-retry") || statusCode === 408 || statusCode === 409)) {
|
|
343
|
-
return {
|
|
344
|
-
kind: "http",
|
|
345
|
-
diagnosis: error.shouldRetry(context.extraRetryErrorCodes) ? "retryable" : "fail-fast",
|
|
346
|
-
reason: "responses-http-retry-policy",
|
|
347
|
-
...common
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
if (isRateLimitError(error, context.extraRetryErrorCodes)) {
|
|
351
|
-
const kind = details.transport === "sse" ? "sse-provider" : statusCode !== void 0 ? "http" : "provider";
|
|
352
|
-
return {
|
|
353
|
-
kind,
|
|
354
|
-
diagnosis: "retryable",
|
|
355
|
-
reason: "rate-limit",
|
|
356
|
-
...common
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
const transportCode = getTransportCode(error);
|
|
360
|
-
if (transportCode !== void 0 && (statusCode === void 0 || statusCode >= 500)) {
|
|
361
|
-
return {
|
|
362
|
-
kind: "transport",
|
|
363
|
-
diagnosis: "retryable",
|
|
364
|
-
reason: "transport-error",
|
|
365
|
-
transportCode,
|
|
366
|
-
...statusCode !== void 0 ? { statusCode } : {}
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
if (statusCode !== void 0) {
|
|
370
|
-
const kind = details.transport === "sse" ? "sse-provider" : "http";
|
|
371
|
-
if (statusCode === 529) {
|
|
372
|
-
return {
|
|
373
|
-
kind,
|
|
374
|
-
diagnosis: "retryable",
|
|
375
|
-
reason: "capacity-overload",
|
|
376
|
-
...common
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
if (statusCode === 401 || statusCode === 403) {
|
|
380
|
-
return {
|
|
381
|
-
kind,
|
|
382
|
-
diagnosis: "fail-fast",
|
|
383
|
-
reason: "auth-error",
|
|
384
|
-
...common
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
if (statusCode >= 400 && statusCode < 500) {
|
|
388
|
-
if (providerCode === void 0 && providerMessage === void 0 && hasNetworkFailureCause(error)) {
|
|
389
|
-
return {
|
|
390
|
-
kind: "transport",
|
|
391
|
-
diagnosis: "retryable",
|
|
392
|
-
reason: "network-error",
|
|
393
|
-
...common
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
return {
|
|
397
|
-
kind,
|
|
398
|
-
diagnosis: "fail-fast",
|
|
399
|
-
reason: "client-error",
|
|
400
|
-
...common
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
if (statusCode === 502 && providerCode === "upstream_redirected") {
|
|
404
|
-
return {
|
|
405
|
-
kind,
|
|
406
|
-
diagnosis: "fail-fast",
|
|
407
|
-
reason: "permanent-provider-code",
|
|
408
|
-
...common
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
if (statusCode >= 500 && statusCode < 600) {
|
|
412
|
-
return {
|
|
413
|
-
kind,
|
|
414
|
-
diagnosis: "retryable",
|
|
415
|
-
reason: "server-error",
|
|
416
|
-
...common
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
return {
|
|
420
|
-
kind,
|
|
421
|
-
diagnosis: "unknown",
|
|
422
|
-
reason: "http-status",
|
|
423
|
-
...common
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
const statuslessKind = details.transport === "sse" ? "sse-provider" : "provider";
|
|
427
|
-
if (isPermanentProviderCode(providerCode) || isPermanentProviderCode(providerFields.providerType) || isPermanentProviderCode(details.providerType)) {
|
|
428
|
-
return {
|
|
429
|
-
kind: statuslessKind,
|
|
430
|
-
diagnosis: "fail-fast",
|
|
431
|
-
reason: "permanent-provider-code",
|
|
432
|
-
...common
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
if (requestId !== void 0) {
|
|
436
|
-
return {
|
|
437
|
-
kind: statuslessKind,
|
|
438
|
-
diagnosis: "retryable",
|
|
439
|
-
reason: "upstream-error-without-status",
|
|
440
|
-
...common
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
return {
|
|
444
|
-
kind: "unknown",
|
|
445
|
-
diagnosis: "unknown",
|
|
446
|
-
reason: "unclassified",
|
|
447
|
-
...common
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
__name(classifyRetryError, "classifyRetryError");
|
|
451
|
-
function isRetryAbortError(error) {
|
|
452
|
-
if (isAbortError(error)) {
|
|
453
|
-
return true;
|
|
454
|
-
}
|
|
455
|
-
return error instanceof Error && error.name === "CanceledError";
|
|
456
|
-
}
|
|
457
|
-
__name(isRetryAbortError, "isRetryAbortError");
|
|
458
|
-
var MAX_TRANSPORT_CAUSE_DEPTH = 4;
|
|
459
|
-
function getTransportCode(error) {
|
|
460
|
-
let current = error;
|
|
461
|
-
for (let depth = 0; depth <= MAX_TRANSPORT_CAUSE_DEPTH; depth++) {
|
|
462
|
-
if (typeof current !== "object" || current === null) {
|
|
463
|
-
return void 0;
|
|
464
|
-
}
|
|
465
|
-
const code = current.code;
|
|
466
|
-
if (typeof code === "string" && isTransportCode(code)) {
|
|
467
|
-
return code;
|
|
468
|
-
}
|
|
469
|
-
current = current instanceof Error ? current.cause : void 0;
|
|
470
|
-
}
|
|
471
|
-
return void 0;
|
|
472
|
-
}
|
|
473
|
-
__name(getTransportCode, "getTransportCode");
|
|
474
|
-
function isTransportCode(code) {
|
|
475
|
-
return TRANSPORT_ERROR_CODES.has(code);
|
|
476
|
-
}
|
|
477
|
-
__name(isTransportCode, "isTransportCode");
|
|
478
|
-
var NETWORK_FAILURE_MESSAGE_RE = /network error for request /i;
|
|
479
|
-
function hasNetworkFailureCause(error) {
|
|
480
|
-
let current = error;
|
|
481
|
-
for (let depth = 0; depth <= MAX_TRANSPORT_CAUSE_DEPTH; depth++) {
|
|
482
|
-
if (typeof current !== "object" || current === null) return false;
|
|
483
|
-
const message = current.message;
|
|
484
|
-
if (typeof message === "string" && NETWORK_FAILURE_MESSAGE_RE.test(message)) {
|
|
485
|
-
return true;
|
|
486
|
-
}
|
|
487
|
-
current = current instanceof Error ? current.cause : void 0;
|
|
488
|
-
}
|
|
489
|
-
return false;
|
|
490
|
-
}
|
|
491
|
-
__name(hasNetworkFailureCause, "hasNetworkFailureCause");
|
|
492
|
-
var TRANSPORT_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
493
|
-
"EAI_AGAIN",
|
|
494
|
-
"ECONNABORTED",
|
|
495
|
-
"ECONNREFUSED",
|
|
496
|
-
"ECONNRESET",
|
|
497
|
-
"EHOSTUNREACH",
|
|
498
|
-
"ENETUNREACH",
|
|
499
|
-
"ENOTFOUND",
|
|
500
|
-
"EPIPE",
|
|
501
|
-
"ETIMEDOUT",
|
|
502
|
-
"UND_ERR_BODY_TIMEOUT",
|
|
503
|
-
"UND_ERR_CONNECT_TIMEOUT",
|
|
504
|
-
"UND_ERR_HEADERS_TIMEOUT",
|
|
505
|
-
"UND_ERR_SOCKET"
|
|
506
|
-
]);
|
|
507
|
-
function isAllocatedQuotaExceeded(providerCode) {
|
|
508
|
-
return providerCode === "Throttling.AllocationQuota";
|
|
509
|
-
}
|
|
510
|
-
__name(isAllocatedQuotaExceeded, "isAllocatedQuotaExceeded");
|
|
511
|
-
var PERMANENT_PROVIDER_CODE_PATTERN = /^(?:response[_-]?data[_-]?inspection[_-]?failed|data[_-]?inspection[_-]?failed|content[_-]?filter|invalid[_-]?api[_-]?key|arrearage|insufficient[_-]?quota|model[._-]?access[_-]?denied|invalid[_-]?request[_-]?error|authentication[_-]?error|permission[_-]?error|not[_-]?found[_-]?error|billing[_-]?error|invalid[_-]?parameter(?:[_-]?error)?|context[_-]?length[_-]?exceeded|request[_-]?too[_-]?large)$/i;
|
|
512
|
-
function isPermanentProviderCode(providerCode) {
|
|
513
|
-
return providerCode !== void 0 && PERMANENT_PROVIDER_CODE_PATTERN.test(providerCode);
|
|
514
|
-
}
|
|
515
|
-
__name(isPermanentProviderCode, "isPermanentProviderCode");
|
|
516
|
-
function getProviderFields(error) {
|
|
517
|
-
if (typeof error !== "object" || error === null) {
|
|
518
|
-
return {};
|
|
519
|
-
}
|
|
520
|
-
const source = error;
|
|
521
|
-
const rawCode = typeof source.code === "string" || typeof source.code === "number" ? String(source.code) : void 0;
|
|
522
|
-
const isHttpStatusEcho = typeof source.code === "number" && source.code >= 100 && source.code < 600;
|
|
523
|
-
const providerCode = error instanceof Error && rawCode?.startsWith("ERR_") || isHttpStatusEcho ? void 0 : rawCode;
|
|
524
|
-
const requestId = firstNonEmptyString(
|
|
525
|
-
source.request_id,
|
|
526
|
-
source.requestId,
|
|
527
|
-
source.requestID
|
|
528
|
-
);
|
|
529
|
-
const providerMessage = typeof source.message === "string" && (!(error instanceof Error) || providerCode !== void 0 || requestId !== void 0) ? source.message : void 0;
|
|
530
|
-
const providerType = firstNonEmptyString(source.type);
|
|
531
|
-
return {
|
|
532
|
-
...providerCode !== void 0 ? { providerCode } : {},
|
|
533
|
-
...providerType !== void 0 ? { providerType } : {},
|
|
534
|
-
...providerMessage !== void 0 ? { providerMessage } : {},
|
|
535
|
-
...requestId !== void 0 ? { requestId } : {}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
__name(getProviderFields, "getProviderFields");
|
|
539
|
-
var FALLBACK_ELIGIBLE_STATUS_CODES = /* @__PURE__ */ new Set([429, 503, 529]);
|
|
540
|
-
function isFallbackEligible(classification) {
|
|
541
|
-
return classification.kind !== "transport" && classification.statusCode !== void 0 && FALLBACK_ELIGIBLE_STATUS_CODES.has(classification.statusCode) && classification.diagnosis !== "fail-fast" && classification.diagnosis !== "unknown";
|
|
542
|
-
}
|
|
543
|
-
__name(isFallbackEligible, "isFallbackEligible");
|
|
544
|
-
function isRetryableUpstreamError(error, extraRetryErrorCodes) {
|
|
545
|
-
return isRateLimitError(error, extraRetryErrorCodes) || classifyRetryError(error, { extraRetryErrorCodes }).diagnosis === "retryable";
|
|
546
|
-
}
|
|
547
|
-
__name(isRetryableUpstreamError, "isRetryableUpstreamError");
|
|
548
|
-
function firstNonEmptyString(...values) {
|
|
549
|
-
for (const value of values) {
|
|
550
|
-
if (typeof value === "string" && value) {
|
|
551
|
-
return value;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
return void 0;
|
|
555
|
-
}
|
|
556
|
-
__name(firstNonEmptyString, "firstNonEmptyString");
|
|
557
|
-
|
|
558
|
-
export {
|
|
559
|
-
isApiError,
|
|
560
|
-
isStructuredError,
|
|
561
|
-
QUOTA_EXHAUSTED_PREFIX,
|
|
562
|
-
isQuotaExhaustedError,
|
|
563
|
-
formatQuotaExhaustedMessage,
|
|
564
|
-
getRetryDelayMs,
|
|
565
|
-
getRetryAfterDelayMs,
|
|
566
|
-
getErrorHeader,
|
|
567
|
-
isRateLimitError,
|
|
568
|
-
getRateLimitErrorDetails,
|
|
569
|
-
getRateLimitRetryDelayMs,
|
|
570
|
-
classifyRetryError,
|
|
571
|
-
getTransportCode,
|
|
572
|
-
isFallbackEligible,
|
|
573
|
-
isRetryableUpstreamError
|
|
574
|
-
};
|
|
575
|
-
/**
|
|
576
|
-
* @license
|
|
577
|
-
* Copyright 2025 Google LLC
|
|
578
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
579
|
-
*/
|
|
580
|
-
/**
|
|
581
|
-
* @license
|
|
582
|
-
* Copyright 2026 Google LLC
|
|
583
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
584
|
-
*/
|