@organizaone/o1-code 0.23.2 → 0.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/model-providers.md +39 -17
- package/bundled/qc-helper/docs/features/mcp.md +1 -1
- package/chunks/{MaxSizedBox-Z7DJBX2Q.js → MaxSizedBox-FHQ2P2SP.js} +30 -29
- package/chunks/{StandaloneSessionPicker-EYM35PIJ.js → StandaloneSessionPicker-JWI3NLN2.js} +46 -45
- package/chunks/{acp-subagent-executor-SMYOAOWC.js → acp-subagent-executor-MJJ6EAZC.js} +33 -32
- package/chunks/{acpAgent-HSOIXV24.js → acpAgent-6Z3FGPTA.js} +75 -73
- package/chunks/{agent-JC6EFT2I.js → agent-42DFRA2J.js} +19 -18
- package/chunks/{agent-headless-CHIUZU65.js → agent-headless-ET4HNKGM.js} +19 -18
- package/chunks/{all-providers-ZA3SYI4L.js → all-providers-P7KEC3WQ.js} +2 -2
- package/chunks/{anthropicContentGenerator-ZVN4PNRN.js → anthropicContentGenerator-CUW5FCXR.js} +9 -8
- package/chunks/{bridge-COLH5KR3.js → bridge-52NJEAM6.js} +33 -32
- package/chunks/{chunk-HLTVFS3P.js → chunk-22TAD3S6.js} +1 -1
- package/chunks/{chunk-J6IO5FRE.js → chunk-2DEMKCA3.js} +2 -2
- package/chunks/{chunk-WXRDFUBX.js → chunk-2HLPOUCW.js} +3 -3
- package/chunks/chunk-2SJEYSJ5.js +478 -0
- package/chunks/{chunk-IKCTAL27.js → chunk-32GJTTKG.js} +5 -5
- package/chunks/{chunk-G376S7VI.js → chunk-3FDAQK6P.js} +1 -1
- package/chunks/chunk-3JWJHYFV.js +328 -0
- package/chunks/{chunk-F5GPRGLO.js → chunk-3OPD6SKW.js} +1 -1
- package/chunks/{chunk-YXUFWO4Q.js → chunk-3RTPI5JO.js} +1 -1
- package/chunks/{chunk-YHONRCP6.js → chunk-3YQSW6GV.js} +3 -3
- package/chunks/{chunk-IPZ6Q5DH.js → chunk-43W64XRD.js} +1 -1
- package/chunks/{chunk-CJ4DSU6T.js → chunk-4HQKNVMC.js} +1 -1
- package/chunks/{chunk-5WCEM6DZ.js → chunk-4MFP7T32.js} +1 -1
- package/chunks/{chunk-SRDS6JPI.js → chunk-4VKMHWS6.js} +3 -3
- package/chunks/{chunk-INBZJC5Z.js → chunk-54UVZNY4.js} +1 -1
- package/chunks/{chunk-FVYOBBIY.js → chunk-5FA7YQJ5.js} +9 -9
- package/chunks/{chunk-AURWTXBY.js → chunk-5QNPNK3Y.js} +3 -3
- package/chunks/{chunk-GCOX5DHU.js → chunk-5XYYE7SJ.js} +37 -37
- package/chunks/{chunk-Q4LEAAGJ.js → chunk-6243HSOC.js} +1 -1
- package/chunks/{chunk-XLSS6CXY.js → chunk-6UVO2CGF.js} +3 -3
- package/chunks/{chunk-QD5MC6EV.js → chunk-6W65R7F3.js} +6 -6
- package/chunks/{chunk-LKM24VDU.js → chunk-6Z7HP4ID.js} +6 -6
- package/chunks/{chunk-EK2MS2YU.js → chunk-75W5XG5B.js} +101 -42
- package/chunks/{chunk-RI5VIBOZ.js → chunk-A64MZXCQ.js} +2 -2
- package/chunks/{chunk-RWUZRVUT.js → chunk-AE4IQ5HU.js} +2 -2
- package/chunks/{chunk-YPTR7ZFB.js → chunk-AFLYEJ7J.js} +20 -314
- package/chunks/{chunk-6SNXZ4AT.js → chunk-AMZCWMHX.js} +2 -2
- package/chunks/{chunk-Y6HZBYDT.js → chunk-AQCZYMTK.js} +7 -7
- package/chunks/{chunk-DYQ33P42.js → chunk-AT3KYR34.js} +1 -1
- package/chunks/{chunk-2OEBEF5L.js → chunk-BZYI5TLI.js} +1 -1
- package/chunks/{chunk-52OZIQ5T.js → chunk-CAD5UWKT.js} +3 -3
- package/chunks/{chunk-7RKJLHZZ.js → chunk-CCOOEN4T.js} +6 -6
- package/chunks/{chunk-NYFKH3IB.js → chunk-CD3FMTIW.js} +9 -9
- package/chunks/{chunk-BOD2QXN3.js → chunk-CRERIA6M.js} +3 -3
- package/chunks/{chunk-I25PS4O7.js → chunk-CTGTHRVE.js} +3 -3
- package/chunks/{chunk-KPPSQ5EU.js → chunk-D54VYWTE.js} +1 -1
- package/chunks/{chunk-TOHVMXEP.js → chunk-DDP4CQDP.js} +5 -5
- package/chunks/{chunk-AHIIFAZD.js → chunk-DLEJTCS5.js} +3 -3
- package/chunks/{chunk-W5XYWVXE.js → chunk-EB4VOVOS.js} +4 -4
- package/chunks/{chunk-AXM2QH6N.js → chunk-ETYF6LYZ.js} +1 -1
- package/chunks/{chunk-ULF6LMSZ.js → chunk-FGJZG3PB.js} +1 -1
- package/chunks/{chunk-LRSEIM7L.js → chunk-FH46YEKJ.js} +2 -2
- package/chunks/{chunk-CNXTYK25.js → chunk-G7TCNWW4.js} +2 -2
- package/chunks/{chunk-5C2PDGQ5.js → chunk-GAFJTGDP.js} +1 -1
- package/chunks/{chunk-EHNBRYKR.js → chunk-GLLNZ7E3.js} +1 -1
- package/chunks/{chunk-ZMXWTUY3.js → chunk-HFYL2VZG.js} +1 -1
- package/chunks/{chunk-K3ONONVP.js → chunk-I7XOJ2QI.js} +4 -4
- package/chunks/{chunk-6WR3DWHA.js → chunk-J5HQL7OD.js} +1 -1
- package/chunks/{chunk-WXIQKOFD.js → chunk-JCWIHPJ2.js} +32 -2
- package/chunks/{chunk-M2PU5FFH.js → chunk-JZSQAL7B.js} +2 -2
- package/chunks/{chunk-HRVFW2AK.js → chunk-KKWFVFWM.js} +4 -4
- package/chunks/{chunk-73D2FESX.js → chunk-KQHDGWXY.js} +1 -1
- package/chunks/{chunk-GE3WWLUS.js → chunk-L2HUG77D.js} +11 -11
- package/chunks/{chunk-CHKNZNCJ.js → chunk-LS3I3JJO.js} +8 -8
- package/chunks/{chunk-NRVJJRQU.js → chunk-LS6DOUZJ.js} +1 -1
- package/chunks/{chunk-Q3L72VR6.js → chunk-MEBFT635.js} +4 -4
- package/chunks/{chunk-EKCBRE2L.js → chunk-MLFML2VT.js} +4 -4
- package/chunks/{chunk-ITLANVG6.js → chunk-NRY3W5MD.js} +3 -3
- package/chunks/{chunk-AHHIUSSB.js → chunk-NTPJNUUS.js} +14 -14
- package/chunks/{chunk-YQIVW7PV.js → chunk-OKHE75DU.js} +1 -1
- package/chunks/{chunk-HPRAZUO3.js → chunk-OLZHEMQP.js} +8 -8
- package/chunks/{chunk-XV74KNLU.js → chunk-OMKHM4UW.js} +2 -2
- package/chunks/{chunk-WCV4SHJT.js → chunk-OV4IKI6E.js} +2 -2
- package/chunks/{chunk-KGYU4YCT.js → chunk-OWVDDIPY.js} +2 -2
- package/chunks/{chunk-MRDYGSEU.js → chunk-OX6A5GJG.js} +298 -83
- package/chunks/{chunk-5TGVTMA4.js → chunk-PZ5JMLBW.js} +2 -2
- package/chunks/{chunk-Y4BAYYQH.js → chunk-Q7LRFO2Z.js} +2 -2
- package/chunks/{chunk-2NTOADNA.js → chunk-QPGYYXO7.js} +1 -1
- package/chunks/{chunk-NRPYVAT2.js → chunk-QQDN6TTH.js} +4 -4
- package/chunks/{chunk-EE35GR3R.js → chunk-QQXXDTSU.js} +1 -1
- package/chunks/{chunk-VDFCAVG2.js → chunk-R45UQD5V.js} +6 -6
- package/chunks/{chunk-B4CCJMG6.js → chunk-R66LP4MO.js} +2 -2
- package/chunks/{chunk-O6EHTIDU.js → chunk-REKFASVP.js} +8 -8
- package/chunks/{chunk-6L4U7EHQ.js → chunk-RENNBDET.js} +3 -3
- package/chunks/{chunk-B4K3VBFF.js → chunk-RI6JVRWR.js} +1 -1
- package/chunks/{chunk-QNI2MYF2.js → chunk-RUMWX2SS.js} +4 -4
- package/chunks/{chunk-N3U72PWG.js → chunk-RY6DFOXD.js} +1 -1
- package/chunks/{chunk-YLNBTV7R.js → chunk-SIANDFHS.js} +4 -4
- package/chunks/{chunk-W7YSJWYY.js → chunk-SPGNKIRH.js} +1 -1
- package/chunks/{chunk-ULI3W2FQ.js → chunk-T7FEPG6S.js} +2 -2
- package/chunks/{chunk-4KLFLD6W.js → chunk-TASQRFKT.js} +1 -1
- package/chunks/{chunk-LIWLMHB2.js → chunk-TBNNLW6W.js} +5 -5
- package/chunks/{chunk-Z2FEOKPL.js → chunk-TTQS6ARK.js} +8 -8
- package/chunks/{chunk-GYEUB6AF.js → chunk-TWZ6ULYH.js} +2 -2
- package/chunks/{chunk-XCFYHA4L.js → chunk-UBMNZJ2I.js} +3 -3
- package/chunks/{chunk-VTK33X3H.js → chunk-ULZSYUR5.js} +1 -1
- package/chunks/{chunk-3SIUBEAC.js → chunk-UMXXMSBY.js} +1 -1
- package/chunks/{chunk-FOST7L5P.js → chunk-UP6XFNZK.js} +5 -5
- package/chunks/{chunk-G524L6DX.js → chunk-VHSVQ4YD.js} +59 -16
- package/chunks/{chunk-HIJ2PJCR.js → chunk-VL7IPPLV.js} +3 -3
- package/chunks/{chunk-EPNQMLQI.js → chunk-WB7BTNTR.js} +1 -1
- package/chunks/{chunk-7DRS2N6U.js → chunk-WCNZRV77.js} +2 -2
- package/chunks/{chunk-7PYCEQRH.js → chunk-WNJA3CH5.js} +1 -1
- package/chunks/{chunk-LMFAYXBU.js → chunk-XBZ4D64Q.js} +1 -1
- package/chunks/{chunk-3365B2SG.js → chunk-XHAO7L6K.js} +2 -2
- package/chunks/{chunk-AKXCASOU.js → chunk-XO73AHWJ.js} +1 -1
- package/chunks/{chunk-X6K47FOG.js → chunk-XWGAOAIY.js} +1 -1
- package/chunks/{chunk-S2Q3IIJI.js → chunk-XWKCE5VX.js} +2 -2
- package/chunks/{chunk-VDZHZKLL.js → chunk-YBJ5CGLV.js} +84 -93
- package/chunks/{chunk-55J4YCGE.js → chunk-YLGMWYXR.js} +4 -4
- package/chunks/{chunk-TJQMUJ4P.js → chunk-YPVXKPDR.js} +3 -3
- package/chunks/{chunk-OCGMQ7V4.js → chunk-ZIWHK3AH.js} +1 -1
- package/chunks/{chunk-PJT67V3P.js → chunk-ZPF5QU35.js} +3 -3
- package/chunks/{codex-subagent-executor-T7M5FTHN.js → codex-subagent-executor-HDDF3623.js} +33 -32
- package/chunks/{contextCommand-227JLKFM.js → contextCommand-PCDR5XST.js} +32 -31
- package/chunks/{core-runtime-VLL5ONTJ.js → core-runtime-YO2BU645.js} +30 -29
- package/chunks/{create-sub-session-BXIEQSUR.js → create-sub-session-IRYT42QC.js} +31 -30
- package/chunks/{daemon-git-worktree-guard-SCYT7G5Z.js → daemon-git-worktree-guard-CQIXKMCN.js} +30 -29
- package/chunks/{daemon-status-provider-BXRYGSEC.js → daemon-status-provider-UUCNZSAQ.js} +38 -37
- package/chunks/{daemon-trust-policy-KUU3SJJR.js → daemon-trust-policy-TMPZYJO5.js} +36 -35
- package/chunks/{daemon-trust-policy-monitor-3HW5C536.js → daemon-trust-policy-monitor-X22KZQNG.js} +36 -35
- package/chunks/{deferred-core-runtime-ZVY4R7JN.js → deferred-core-runtime-CW3RYKVF.js} +30 -29
- package/chunks/{edit-7VTZEUFB.js → edit-GY6M2OZO.js} +21 -20
- package/chunks/{en-MQICGJBA.js → en-QZTJJ53G.js} +5 -1
- package/chunks/{enterPlanMode-4ACRIABY.js → enterPlanMode-OL5SMGZ2.js} +19 -18
- package/chunks/{environment-P7O3DRVU.js → environment-2LII6MAZ.js} +32 -31
- package/chunks/{errors-FPOD56OM.js → errors-YLTJNGIJ.js} +32 -31
- package/chunks/{execution-tool-CUZLLHDM.js → execution-tool-LSWT3ED3.js} +21 -20
- package/chunks/{execution-worker-K7OIFEQC.js → execution-worker-SN7DU5M6.js} +24 -23
- package/chunks/{exitPlanMode-SVK6JBWM.js → exitPlanMode-6RIRCY65.js} +19 -18
- package/chunks/{fast-path-63ZAOC2O.js → fast-path-QK4MJZ2O.js} +2 -2
- package/chunks/{foreground-runner-5BDXDCJ3.js → foreground-runner-3344CG4R.js} +32 -31
- package/chunks/{gateway-content-generator-YATQA6IH.js → gateway-content-generator-URNHKQ6P.js} +32 -101
- package/chunks/{gateway-models-CI5ONUHN.js → gateway-models-IBOWVC4O.js} +7 -6
- package/chunks/gateway-transfer-OASSZYSK.js +46 -0
- package/chunks/{glob-AHU4JEAH.js → glob-PY6YF7U4.js} +19 -18
- package/chunks/{goal-tools-HZ3SEEDJ.js → goal-tools-HMAA3TMO.js} +19 -18
- package/chunks/{handleAutoUpdate-NWIBYK3W.js → handleAutoUpdate-ANFC3Z6G.js} +33 -32
- package/chunks/{i18n-HXRZVPI5.js → i18n-6U5NHFUK.js} +31 -30
- package/chunks/{image-gen-WGMRL47H.js → image-gen-D4WPSZB4.js} +3 -2
- package/chunks/{initializer-DZE6W5ZZ.js → initializer-4MDFZJVC.js} +36 -35
- package/chunks/{installationInfo-DJS6YOYL.js → installationInfo-CD2A6E6I.js} +30 -29
- package/chunks/{list-QOTYRCXE.js → list-DTPZJHOJ.js} +38 -37
- package/chunks/{llm-VTSGUOEX.js → llm-3V2DU6KO.js} +64 -63
- package/chunks/{llm-content-generator-GNBKROI6.js → llm-content-generator-K6Q3E6AH.js} +4 -4
- package/chunks/{loadedSettingsAdapter-5XTSYAN2.js → loadedSettingsAdapter-XCFCTBCK.js} +36 -35
- package/chunks/{local-execution-environment-FAMBOK2R.js → local-execution-environment-JFU74GRI.js} +24 -23
- package/chunks/{loggingContentGenerator-QHARM6I7.js → loggingContentGenerator-ITWAHQQA.js} +20 -19
- package/chunks/{managed-npm-update-NHG4CNTY.js → managed-npm-update-QVW4WS42.js} +30 -29
- package/chunks/{mcp-GFWKHITS.js → mcp-YOZXHPME.js} +36 -35
- package/chunks/{model-call-collection-PSCHHAL2.js → model-call-collection-IXU3COZH.js} +1 -1
- package/chunks/{model-configuration-4OLQAYPC.js → model-configuration-TQPP6C56.js} +37 -36
- package/chunks/{modelConfigUtils-6BOQF3QL.js → modelConfigUtils-OL2I6LTF.js} +32 -31
- package/chunks/{monitor-AMCODWD4.js → monitor-IYFEU4WZ.js} +19 -18
- package/chunks/{nonInteractiveCli-WNWO63XM.js → nonInteractiveCli-MAXL5D4Y.js} +66 -64
- package/chunks/{nonInteractiveToolExecutor-WM3YSMJV.js → nonInteractiveToolExecutor-WGY3CAAJ.js} +20 -19
- package/chunks/{notebook-edit-2ZEGVMQ5.js → notebook-edit-2N4BWOIJ.js} +20 -19
- package/chunks/{omni-F3MGKMI5.js → omni-MOV3MXTX.js} +13 -12
- package/chunks/{openaiContentGenerator-JSWESHEH.js → openaiContentGenerator-MGCUMNTJ.js} +15 -13
- package/chunks/{openaiResponsesContentGenerator-GOFHZBHE.js → openaiResponsesContentGenerator-VIMLFFS6.js} +8 -7
- package/chunks/{processUtils-BLTEAR2P.js → processUtils-XM5BY2Q7.js} +2 -2
- package/chunks/{prompt-terminal-ledger-SZV4IH7W.js → prompt-terminal-ledger-WLJXQ2QJ.js} +31 -30
- package/chunks/{pt-EZL4H2AB.js → pt-KE77XTFU.js} +5 -1
- package/chunks/{reactive-degrade-RMOJR3UO.js → reactive-degrade-6P4KI4Z3.js} +12 -11
- package/chunks/{read-file-QH2DDCDD.js → read-file-M66I6SWK.js} +4 -4
- package/chunks/{resumeHistoryUtils-SK7UGMOC.js → resumeHistoryUtils-6KNHMAID.js} +34 -33
- package/chunks/{ripGrep-K4J4MLBL.js → ripGrep-EHJ3FDNE.js} +5 -5
- package/chunks/{run-o1-code-serve-PGCIJYC2.js → run-o1-code-serve-WJ4BRL2T.js} +32 -32
- package/chunks/{sandboxConfig-MUJTXJWI.js → sandboxConfig-4CEQGERI.js} +30 -29
- package/chunks/{scheduled-tasks-DFC6Q3IG.js → scheduled-tasks-7RVOCXQJ.js} +36 -35
- package/chunks/{scheduler-63WJQPZ2.js → scheduler-ESB6OTOV.js} +32 -31
- package/chunks/{sdk-exporters-http-66WPQ7UY.js → sdk-exporters-http-YROX3PLL.js} +2 -2
- package/chunks/{sdk-impl-B4WTXTDQ.js → sdk-impl-LMCYCCTE.js} +4 -4
- package/chunks/{serve-DKXTI5V2.js → serve-LKRV22OH.js} +36 -35
- package/chunks/{server-3INVZRET.js → server-QXLYJOGN.js} +68 -67
- package/chunks/{session-LN37VDDP.js → session-CR4OVISR.js} +177 -68
- package/chunks/{session-HENSFFJO.js → session-TZYPGQBA.js} +2 -2
- package/chunks/{session-attachments-root-MQU3746J.js → session-attachments-root-DTMA76CV.js} +30 -29
- package/chunks/{session-pr-refresh-OGTS6EVI.js → session-pr-refresh-DK4MCWHR.js} +35 -34
- package/chunks/{settings-BXDNY2AP.js → settings-MPQBHLKQ.js} +35 -34
- package/chunks/{shell-H7R2TF7F.js → shell-PMXP5W4B.js} +19 -18
- package/chunks/{skill-3DPAHPZB.js → skill-ZDOOYYEJ.js} +6 -6
- package/chunks/{skill-settings-RWVB7OQH.js → skill-settings-WZ5D2YDV.js} +36 -35
- package/chunks/{spawnChannel-FTLDFA2H.js → spawnChannel-U3JRKEEQ.js} +32 -31
- package/chunks/{standalone-update-2NTMLG6U.js → standalone-update-ELOY4TKH.js} +32 -31
- package/chunks/{startInteractiveUI-ZQYISDFK.js → startInteractiveUI-MIPP76GG.js} +119 -147
- package/chunks/{supervisor-runner-4UQ3S7ZK.js → supervisor-runner-CGUFZJOX.js} +2 -2
- package/chunks/{team-create-AKAP7B2I.js → team-create-TKE64LZO.js} +19 -18
- package/chunks/{team-plan-approval-CD5PJ2HF.js → team-plan-approval-RI2Q4OAZ.js} +19 -18
- package/chunks/{terminal-image-renderer-2H7GWOGJ.js → terminal-image-renderer-Q2E35SMZ.js} +30 -29
- package/chunks/{theme-manager-PO2AOYF4.js → theme-manager-OEOS4P4R.js} +30 -29
- package/chunks/{tool-result-media-TRUCQ7RW.js → tool-result-media-RR2EOQKL.js} +13 -12
- package/chunks/{tool-search-EDTROJCV.js → tool-search-YFEMM2RO.js} +4 -4
- package/chunks/{total-session-admission-P6DIV3Q5.js → total-session-admission-KGIKHYHU.js} +33 -32
- package/chunks/{trustedFolders-SEN5Y6NQ.js → trustedFolders-VCHPBP7F.js} +31 -30
- package/chunks/{update-relaunch-SYHPPEM3.js → update-relaunch-BFRAJ666.js} +5 -5
- package/chunks/{updateCheck-7OOIBXXV.js → updateCheck-KCVBGBBR.js} +32 -31
- package/chunks/{upload-config-UMYJSCZQ.js → upload-config-Z6BMQ33S.js} +10 -9
- package/chunks/{useAutoAcceptIndicator-I5R77IN7.js → useAutoAcceptIndicator-CNOBUVGA.js} +38 -37
- package/chunks/{validateNonInterActiveAuth-AEZTP3MC.js → validateNonInterActiveAuth-J23HKWQZ.js} +63 -61
- package/chunks/{version-S7QK2XJ3.js → version-NKG54EQU.js} +1 -1
- package/chunks/{web-fetch-4CLYKVOX.js → web-fetch-OA6FFOEX.js} +6 -5
- package/chunks/{web-search-LXGIHMSR.js → web-search-OOKSTACM.js} +10 -9
- package/chunks/{workflow-BJXDZAIK.js → workflow-KB5RHTHA.js} +22 -21
- package/chunks/{workspace-providers-status-WOJTQARI.js → workspace-providers-status-BA5MMCHL.js} +42 -41
- package/chunks/{workspace-registration-store-HA5CPWRM.js → workspace-registration-store-JLXOXBBM.js} +1 -1
- package/chunks/{workspace-registry-JTKEDLKB.js → workspace-registry-RQNMS4NT.js} +33 -32
- package/chunks/{workspace-runtime-coordinator-HCSJM4WW.js → workspace-runtime-coordinator-2NRPYIR7.js} +34 -33
- package/chunks/{workspace-service-Z6AXYMZK.js → workspace-service-AITMTQ5F.js} +40 -39
- package/chunks/{workspace-skills-status-5CRGREPM.js → workspace-skills-status-FAWXZW2K.js} +39 -38
- package/chunks/{workspace-trust-reconciler-2HYPUBV5.js → workspace-trust-reconciler-XIYIWMD5.js} +39 -38
- package/chunks/{write-file-DB5MAWEC.js → write-file-ZXWVEQBO.js} +21 -20
- package/chunks/{zoom-image-INVYZYGT.js → zoom-image-NXYFTJCE.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 +9 -2
- package/locales/pt.js +9 -2
- package/package.json +2 -2
- package/release-notes.json +15 -0
- package/vendor/o1-connect/.lintstagedrc.mjs +7 -0
- package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
- package/vendor/tree-sitter/tree-sitter.wasm +0 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BaNqfZpC.js → abnfDiagram-VCTEODGH-CqjOJwIl.js} +1 -1
- package/web-shell/assets/{arc-gDDqDKPT.js → arc-C5SJ23WU.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-Bksq6k3e.js → architectureDiagram-5GKGNRK7-An4fJIBe.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-7hsG6uyG.js → blockDiagram-NRAW4CY4-G2eztYPX.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-D1YM1daI.js → c4Diagram-UCG6FXSJ-C6ezHlpJ.js} +1 -1
- package/web-shell/assets/channel-D5esVGM7.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BB8Fw1Hw.js → chunk-2Q5K7J3B-BvJY7MyE.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DQVttniG.js → chunk-5VM5RSS4-BtyPdSpj.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-CmdpVDej.js → chunk-F27PBJKO-BTyZPl5y.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-C2pQ1X6e.js → chunk-G27WJ6UU-JFsGVpGk.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-DLd59_s7.js → chunk-JWPE2WC7-A4mmQSWN.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CF_rpE3C.js → chunk-LCL6LL3I-BxALl8Fh.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Bix-ymX6.js → chunk-POPQ4Y6H-Cw8I0h3T.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-TgCBK2Wr.js → chunk-SVP7TREG-DSL1NUen.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-bAG8mDsG.js → chunk-XXDRQBXY-DaOf-wsF.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-GkP_GnoS.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-GkP_GnoS.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-Ki_lMvfR.js → cose-bilkent-JH36ORCC-BoJUwl6N.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-ClCmMaaz.js → cynefin-OW5HDTMX-OjMGs01U.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Bd_01Yme.js → cynefinDiagram-5FMLGOSQ-CIlbclJF.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CFzBzlQw.js → dagre-3AP2YEHR-mF2nY8kI.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-D1sCOBvM.js → diagram-S7CK7UJ4-B2gmDJpJ.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-9BhhA92f.js → diagram-UQ7AKVKN-CbeiFG4H.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CcRwCzkz.js → diagram-VSXAHHWV-1b6dLlvx.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-CxuPvHoZ.js → diagram-VX7I27RA-Bhotp5VI.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-CoIJxvYZ.js → diagram-Z3DM3KII-BaR9ET3O.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-Dg5aM3n8.js → ebnfDiagram-PWID7BFC-DU7SRTDr.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DMa-93Pc.js → erDiagram-SSCWMZ5O-Doc9fBrw.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-YyRjDg58.js → flowDiagram-A5DVABFB-Dg4piWMk.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DL6u7rJj.js → ganttDiagram-EL5Y4UJY-g0Szi6ST.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-VzBe_y82.js → gitGraphDiagram-WWUBYQGX-Cf7xdXvO.js} +1 -1
- package/web-shell/assets/{index-sM76wg9o.js → index-BJgwudRv.js} +1 -1
- package/web-shell/assets/{index-GigiICvn.js → index-zu97iwyx.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-ZdRuVjv4.js → infoDiagram-RXCK75RN-B2wvgM-Z.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DCGfNGm8.js → ishikawaDiagram-5VMMS53U-DuXJBRoZ.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-vAmOL7Eg.js → journeyDiagram-EYS64GPL-D1buQOuH.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-DE-XVGLj.js → kanban-definition-3QL26DDD-C4ocotU4.js} +1 -1
- package/web-shell/assets/{layout-8oKHDfxQ.js → layout-C4TsdXH6.js} +1 -1
- package/web-shell/assets/{linear-BTNkFLpm.js → linear-B579tz05.js} +1 -1
- package/web-shell/assets/{mermaid.core-1L-v7Osp.js → mermaid.core-C4GAuwX5.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-B_TZjQ0C.js → mindmap-definition-FBJOCRG2-BjVDZjap.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-YXEadiQt.js → pegDiagram-XKGWAZYB-CXumURc6.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BhkRy1C-.js → pieDiagram-E7YTZNPT-B4pmVjw8.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CSuVeiFP.js → quadrantDiagram-AXDQQJYC-8STI_3oc.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-C-keEU-2.js → railroadDiagram-O6MQD6OU-BOkM9ljd.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BRsygqPt.js → requirementDiagram-EFPCY7ZU-C_o-DuKn.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-D-_EHQLT.js → sankeyDiagram-P5KCCOFB-DyFETog_.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CNIb-Onj.js → sequenceDiagram-WJ2MYXX4-DEDdqLcH.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BbofuaSb.js → sizeCapture-X5ZJPWSS-Cv9dGT1I.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DWmCEpdE.js → stateDiagram-HBIQ2CUA-D9Gad5Fv.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CdGtFEba.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-DZduoU7z.js → swimlanes-XN3QIQJK-Dya2rRKz.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DFVEwDmq.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DfIVB7QH.js → timeline-definition-24CTP7MA-B0UZHOzv.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-OvwgQkxx.js → vennDiagram-4TSXK5OY-C_u8Z-Bk.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CH_cuYLP.js → wardleyDiagram-VM6X3IG4-Bq4DlxeN.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Dc3Tv7qx.js → xychartDiagram-S5SC5T6Z-CMeeBCXA.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/chunks/chunk-V24FMEXL.js +0 -203
- package/chunks/gateway-transfer-47WP3EUB.js +0 -27
- package/web-shell/assets/channel-CGxTee96.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CVk9ORuZ.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CVk9ORuZ.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CsO4gStv.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BEwObTq5.js +0 -8
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
getErrorStatus
|
|
5
|
+
} from "./chunk-JAQAGKIV.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-S2467S6L.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/core/src/utils/quotaErrorDetection.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
function isApiError(error) {
|
|
16
|
+
return typeof error === "object" && error !== null && "error" in error && typeof error.error === "object" && error.error !== null && "message" in error.error;
|
|
17
|
+
}
|
|
18
|
+
__name(isApiError, "isApiError");
|
|
19
|
+
function isStructuredError(error) {
|
|
20
|
+
return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
|
|
21
|
+
}
|
|
22
|
+
__name(isStructuredError, "isStructuredError");
|
|
23
|
+
var QUOTA_EXHAUSTED_PREFIX = "Quota exhausted: ";
|
|
24
|
+
function getQuotaMessage(error) {
|
|
25
|
+
let message = null;
|
|
26
|
+
if (typeof error === "string") message = error;
|
|
27
|
+
else if (isStructuredError(error)) message = error.message;
|
|
28
|
+
else if (isApiError(error)) message = error.error.message;
|
|
29
|
+
if (message === null) return null;
|
|
30
|
+
const start = message.indexOf("{");
|
|
31
|
+
if (start !== -1) {
|
|
32
|
+
try {
|
|
33
|
+
const parsed = JSON.parse(message.substring(start));
|
|
34
|
+
if (isApiError(parsed)) return parsed.error.message;
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return message;
|
|
39
|
+
}
|
|
40
|
+
__name(getQuotaMessage, "getQuotaMessage");
|
|
41
|
+
function isQuotaExhaustedError(error) {
|
|
42
|
+
const message = getQuotaMessage(error);
|
|
43
|
+
if (!message) return false;
|
|
44
|
+
const lower = message.toLowerCase();
|
|
45
|
+
return lower.includes("quota") && (lower.includes("exhausted") || lower.includes("exceeded")) && (lower.includes("will reset") || lower.includes("reset at"));
|
|
46
|
+
}
|
|
47
|
+
__name(isQuotaExhaustedError, "isQuotaExhaustedError");
|
|
48
|
+
function formatQuotaExhaustedMessage(error) {
|
|
49
|
+
const raw = getQuotaMessage(error) ?? "";
|
|
50
|
+
if (raw.startsWith(QUOTA_EXHAUSTED_PREFIX)) return raw;
|
|
51
|
+
const stripped = raw.replace(/^\d{3}\s+/, "").trim() || "quota has been exhausted";
|
|
52
|
+
return `${QUOTA_EXHAUSTED_PREFIX}${stripped}
|
|
53
|
+
|
|
54
|
+
Please retry after the reset time, or switch to another API key / auth method.`;
|
|
55
|
+
}
|
|
56
|
+
__name(formatQuotaExhaustedMessage, "formatQuotaExhaustedMessage");
|
|
57
|
+
|
|
58
|
+
// packages/core/src/utils/retryPolicy.ts
|
|
59
|
+
init_esbuild_shims();
|
|
60
|
+
var MAX_TIMEOUT_MS = 2147483647;
|
|
61
|
+
function getRetryDelayMs(options) {
|
|
62
|
+
const normalizedAttempt = Math.max(1, options.attempt);
|
|
63
|
+
const delayCeilingMs = Math.min(options.maxDelayMs, MAX_TIMEOUT_MS);
|
|
64
|
+
const exponent = Math.min(normalizedAttempt - 1, 31);
|
|
65
|
+
const cappedExponentialDelayMs = Math.min(
|
|
66
|
+
options.initialDelayMs * Math.pow(2, exponent),
|
|
67
|
+
delayCeilingMs
|
|
68
|
+
);
|
|
69
|
+
const retryAfterMode = options.retryAfterMode ?? "ignore";
|
|
70
|
+
const retryAfterMs = retryAfterMode === "ignore" ? null : getRetryAfterDelayMs(options.error);
|
|
71
|
+
if (retryAfterMs !== null && retryAfterMs > 0) {
|
|
72
|
+
const retryAfterCapMs = Math.min(
|
|
73
|
+
options.retryAfterMaxDelayMs ?? options.maxDelayMs,
|
|
74
|
+
MAX_TIMEOUT_MS
|
|
75
|
+
);
|
|
76
|
+
const cappedRetryAfterMs = Math.min(retryAfterMs, retryAfterCapMs);
|
|
77
|
+
return Math.max(cappedExponentialDelayMs, cappedRetryAfterMs);
|
|
78
|
+
}
|
|
79
|
+
const jitterRatio = options.jitterRatio ?? 0;
|
|
80
|
+
if (jitterRatio <= 0) return cappedExponentialDelayMs;
|
|
81
|
+
const random = options.random ?? Math.random;
|
|
82
|
+
const jitter = cappedExponentialDelayMs * jitterRatio * (random() * 2 - 1);
|
|
83
|
+
return Math.min(
|
|
84
|
+
Math.max(0, cappedExponentialDelayMs + jitter),
|
|
85
|
+
delayCeilingMs
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
__name(getRetryDelayMs, "getRetryDelayMs");
|
|
89
|
+
function getRetryAfterDelayMs(error) {
|
|
90
|
+
const millis = getHeaderValue(error, "retry-after-ms") ?? getResponseHeaderValue(error, "retry-after-ms");
|
|
91
|
+
if (millis !== null && /^\d+(\.\d+)?$/.test(millis.trim())) {
|
|
92
|
+
const value2 = Number(millis);
|
|
93
|
+
if (Number.isFinite(value2)) return Math.min(value2, MAX_TIMEOUT_MS);
|
|
94
|
+
}
|
|
95
|
+
const value = getHeaderValue(error, "retry-after") ?? getResponseHeaderValue(error, "retry-after");
|
|
96
|
+
if (value === null) return null;
|
|
97
|
+
const trimmed = value.trim();
|
|
98
|
+
if (/^\d+(\.\d+)?$/.test(trimmed)) {
|
|
99
|
+
const seconds = Number(trimmed);
|
|
100
|
+
if (Number.isFinite(seconds) && seconds >= 0) {
|
|
101
|
+
return Math.min(seconds * 1e3, MAX_TIMEOUT_MS);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const retryAtMs = Date.parse(trimmed);
|
|
105
|
+
if (!Number.isFinite(retryAtMs)) return null;
|
|
106
|
+
const delayMs = retryAtMs - Date.now();
|
|
107
|
+
return delayMs > 0 ? Math.min(delayMs, MAX_TIMEOUT_MS) : 0;
|
|
108
|
+
}
|
|
109
|
+
__name(getRetryAfterDelayMs, "getRetryAfterDelayMs");
|
|
110
|
+
function getErrorHeader(error, headerName) {
|
|
111
|
+
return getHeaderValue(error, headerName) ?? getResponseHeaderValue(error, headerName);
|
|
112
|
+
}
|
|
113
|
+
__name(getErrorHeader, "getErrorHeader");
|
|
114
|
+
function getHeaderValue(error, headerName) {
|
|
115
|
+
if (!hasHeaders(error)) return null;
|
|
116
|
+
const { headers } = error;
|
|
117
|
+
if (typeof headers.get === "function") {
|
|
118
|
+
const value = headers.get(headerName);
|
|
119
|
+
return typeof value === "string" ? value : null;
|
|
120
|
+
}
|
|
121
|
+
if (typeof headers !== "object" || headers === null) return null;
|
|
122
|
+
const lowerHeaderName = headerName.toLowerCase();
|
|
123
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
124
|
+
if (key.toLowerCase() !== lowerHeaderName) continue;
|
|
125
|
+
return typeof value === "string" ? value : null;
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
__name(getHeaderValue, "getHeaderValue");
|
|
130
|
+
function getResponseHeaderValue(error, headerName) {
|
|
131
|
+
if (!hasResponseHeaders(error)) return null;
|
|
132
|
+
return getHeaderValue(error.response, headerName);
|
|
133
|
+
}
|
|
134
|
+
__name(getResponseHeaderValue, "getResponseHeaderValue");
|
|
135
|
+
function hasHeaders(error) {
|
|
136
|
+
return typeof error === "object" && error !== null && "headers" in error && error.headers != null;
|
|
137
|
+
}
|
|
138
|
+
__name(hasHeaders, "hasHeaders");
|
|
139
|
+
function hasResponseHeaders(error) {
|
|
140
|
+
return typeof error === "object" && error !== null && "response" in error && typeof error.response === "object" && error.response !== null && "headers" in error.response && error.response.headers != null;
|
|
141
|
+
}
|
|
142
|
+
__name(hasResponseHeaders, "hasResponseHeaders");
|
|
143
|
+
|
|
144
|
+
// packages/core/src/utils/rateLimit.ts
|
|
145
|
+
init_esbuild_shims();
|
|
146
|
+
var RATE_LIMIT_ERROR_CODES = /* @__PURE__ */ new Set([429, 503, 1302, 1305]);
|
|
147
|
+
function isRateLimitError(error, extraCodes) {
|
|
148
|
+
const code = getErrorCode(error);
|
|
149
|
+
if (code === null) return isStatuslessThrottle(error);
|
|
150
|
+
if (RATE_LIMIT_ERROR_CODES.has(code)) return true;
|
|
151
|
+
if (extraCodes && extraCodes.includes(code)) return true;
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
__name(isRateLimitError, "isRateLimitError");
|
|
155
|
+
function isStatuslessThrottle(error) {
|
|
156
|
+
for (const payload of [error, ...getJsonPayloads(error)]) {
|
|
157
|
+
const selected = providerErrorSource(payload);
|
|
158
|
+
if (!selected) continue;
|
|
159
|
+
const { source } = selected;
|
|
160
|
+
const { type, message } = source;
|
|
161
|
+
if (type === "rate_limit_error" || type === "overloaded_error") return true;
|
|
162
|
+
if (type !== "invalid_request_error" || typeof message !== "string")
|
|
163
|
+
continue;
|
|
164
|
+
const detail = decodeProviderMessage(message)?.["message"] ?? message;
|
|
165
|
+
if (typeof detail === "string" && /^too many requests\b/i.test(detail.trim()) && /\b(?:wait|try(?:ing)? again)\b/i.test(detail)) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
__name(isStatuslessThrottle, "isStatuslessThrottle");
|
|
172
|
+
function providerErrorSource(payload) {
|
|
173
|
+
if (typeof payload !== "object" || payload === null) return null;
|
|
174
|
+
const direct = payload;
|
|
175
|
+
const nested = direct["error"];
|
|
176
|
+
const source = typeof nested === "object" && nested !== null ? nested : direct;
|
|
177
|
+
return { source, direct };
|
|
178
|
+
}
|
|
179
|
+
__name(providerErrorSource, "providerErrorSource");
|
|
180
|
+
function decodeProviderMessage(message) {
|
|
181
|
+
try {
|
|
182
|
+
const selected = providerErrorSource(JSON.parse(message));
|
|
183
|
+
if (!selected || typeof selected.source["message"] !== "string") {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return { ...selected.direct, ...selected.source };
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
__name(decodeProviderMessage, "decodeProviderMessage");
|
|
192
|
+
function getRateLimitErrorDetails(error) {
|
|
193
|
+
const statusCode = getErrorStatus(error);
|
|
194
|
+
const payload = getProviderErrorPayload(error);
|
|
195
|
+
const message = getRawErrorMessage(error);
|
|
196
|
+
const transport = message?.includes("event:error") || message?.includes("HTTP_STATUS/") ? "sse" : statusCode !== void 0 ? "http" : "unknown";
|
|
197
|
+
return {
|
|
198
|
+
...statusCode !== void 0 ? { statusCode } : {},
|
|
199
|
+
...payload?.code !== void 0 || payload?.type !== void 0 ? { providerCode: String(payload.code ?? payload.type) } : {},
|
|
200
|
+
...payload?.type !== void 0 ? { providerType: payload.type } : {},
|
|
201
|
+
...payload?.message !== void 0 ? { providerMessage: payload.message } : {},
|
|
202
|
+
...payload?.requestId !== void 0 ? { requestId: payload.requestId } : {},
|
|
203
|
+
transport
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
__name(getRateLimitErrorDetails, "getRateLimitErrorDetails");
|
|
207
|
+
function getRateLimitRetryDelayMs(attempt, options) {
|
|
208
|
+
return getRetryDelayMs({
|
|
209
|
+
attempt,
|
|
210
|
+
initialDelayMs: options.initialDelayMs,
|
|
211
|
+
maxDelayMs: options.maxDelayMs,
|
|
212
|
+
retryAfterMode: "minimum",
|
|
213
|
+
retryAfterMaxDelayMs: options.maxDelayMs,
|
|
214
|
+
error: options.error
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
__name(getRateLimitRetryDelayMs, "getRateLimitRetryDelayMs");
|
|
218
|
+
function getErrorCode(error) {
|
|
219
|
+
if (isApiError(error)) {
|
|
220
|
+
const n = Number(error.error.code);
|
|
221
|
+
if (Number.isFinite(n) && n > 0) return n;
|
|
222
|
+
}
|
|
223
|
+
const msg = error instanceof Error ? error.message : typeof error === "string" ? error : null;
|
|
224
|
+
if (msg) {
|
|
225
|
+
const i = msg.indexOf("{");
|
|
226
|
+
if (i !== -1) {
|
|
227
|
+
try {
|
|
228
|
+
const p = JSON.parse(msg.substring(i));
|
|
229
|
+
if (isApiError(p)) {
|
|
230
|
+
const n = Number(p.error.code);
|
|
231
|
+
if (Number.isFinite(n) && n > 0) return n;
|
|
232
|
+
}
|
|
233
|
+
} catch {
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (isStructuredError(error) && typeof error.status === "number") {
|
|
238
|
+
return error.status;
|
|
239
|
+
}
|
|
240
|
+
if (error instanceof Error && "status" in error) {
|
|
241
|
+
const s = error.status;
|
|
242
|
+
if (typeof s === "number") return s;
|
|
243
|
+
}
|
|
244
|
+
return getErrorStatus(error) ?? null;
|
|
245
|
+
}
|
|
246
|
+
__name(getErrorCode, "getErrorCode");
|
|
247
|
+
function getProviderErrorPayload(error) {
|
|
248
|
+
for (const payload of getJsonPayloads(error)) {
|
|
249
|
+
const selected = providerErrorSource(payload);
|
|
250
|
+
if (!selected) continue;
|
|
251
|
+
const { source, direct } = selected;
|
|
252
|
+
const decoded = typeof source["message"] === "string" ? decodeProviderMessage(source["message"]) : null;
|
|
253
|
+
const code = typeof source["code"] === "string" || typeof source["code"] === "number" ? source["code"] : typeof decoded?.["code"] === "string" || typeof decoded?.["code"] === "number" ? decoded["code"] : void 0;
|
|
254
|
+
const type = typeof source["type"] === "string" ? source["type"] : typeof decoded?.["type"] === "string" ? decoded["type"] : void 0;
|
|
255
|
+
const message = typeof decoded?.["message"] === "string" ? decoded["message"] : typeof source["message"] === "string" ? source["message"] : void 0;
|
|
256
|
+
const requestId = typeof source["request_id"] === "string" ? source["request_id"] : typeof source["requestId"] === "string" ? source["requestId"] : typeof direct["request_id"] === "string" ? direct["request_id"] : typeof direct["requestId"] === "string" ? direct["requestId"] : typeof decoded?.["request_id"] === "string" ? decoded["request_id"] : typeof decoded?.["requestId"] === "string" ? decoded["requestId"] : void 0;
|
|
257
|
+
if (code !== void 0 || type !== void 0 || message !== void 0 || requestId !== void 0) {
|
|
258
|
+
return { code, type, message, requestId };
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (isApiError(error)) {
|
|
262
|
+
const decoded = decodeProviderMessage(error.error.message);
|
|
263
|
+
return {
|
|
264
|
+
code: error.error.code,
|
|
265
|
+
...typeof decoded?.["type"] === "string" ? { type: decoded["type"] } : {},
|
|
266
|
+
message: typeof decoded?.["message"] === "string" ? decoded["message"] : error.error.message
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
__name(getProviderErrorPayload, "getProviderErrorPayload");
|
|
272
|
+
function getJsonPayloads(error) {
|
|
273
|
+
const message = getRawErrorMessage(error);
|
|
274
|
+
if (!message) return [];
|
|
275
|
+
const payloads = [];
|
|
276
|
+
for (const line of message.split(/\r?\n/)) {
|
|
277
|
+
if (!line.startsWith("data:")) continue;
|
|
278
|
+
const data = line.slice("data:".length).trim();
|
|
279
|
+
if (!data || data === "[DONE]") continue;
|
|
280
|
+
try {
|
|
281
|
+
payloads.push(JSON.parse(data));
|
|
282
|
+
} catch {
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
if (payloads.length > 0) return payloads;
|
|
286
|
+
const jsonStart = message.indexOf("{");
|
|
287
|
+
const jsonEnd = message.lastIndexOf("}");
|
|
288
|
+
if (jsonStart !== -1 && jsonEnd > jsonStart) {
|
|
289
|
+
try {
|
|
290
|
+
payloads.push(
|
|
291
|
+
JSON.parse(message.slice(jsonStart, jsonEnd + 1))
|
|
292
|
+
);
|
|
293
|
+
} catch {
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return payloads;
|
|
297
|
+
}
|
|
298
|
+
__name(getJsonPayloads, "getJsonPayloads");
|
|
299
|
+
function getRawErrorMessage(error) {
|
|
300
|
+
if (error instanceof Error) return error.message;
|
|
301
|
+
if (typeof error === "string") return error;
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
__name(getRawErrorMessage, "getRawErrorMessage");
|
|
305
|
+
|
|
306
|
+
export {
|
|
307
|
+
isApiError,
|
|
308
|
+
isStructuredError,
|
|
309
|
+
QUOTA_EXHAUSTED_PREFIX,
|
|
310
|
+
isQuotaExhaustedError,
|
|
311
|
+
formatQuotaExhaustedMessage,
|
|
312
|
+
getRetryDelayMs,
|
|
313
|
+
getRetryAfterDelayMs,
|
|
314
|
+
getErrorHeader,
|
|
315
|
+
isRateLimitError,
|
|
316
|
+
getRateLimitErrorDetails,
|
|
317
|
+
getRateLimitRetryDelayMs
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* @license
|
|
321
|
+
* Copyright 2025 Google LLC
|
|
322
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
323
|
+
*/
|
|
324
|
+
/**
|
|
325
|
+
* @license
|
|
326
|
+
* Copyright 2026 Google LLC
|
|
327
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
328
|
+
*/
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
MODEL_GENERATION_CONFIG_FIELDS,
|
|
9
9
|
PROVIDER_SOURCED_FIELDS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TTQS6ARK.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_O1CODE_MODEL
|
|
13
13
|
} from "./chunk-LEXKU5FI.js";
|
|
@@ -1563,7 +1563,7 @@ function modelsOf(providers) {
|
|
|
1563
1563
|
__name(modelsOf, "modelsOf");
|
|
1564
1564
|
async function retireReplacedLogins(before, after, keptCredentialId, credentials, forgetO1Connect) {
|
|
1565
1565
|
try {
|
|
1566
|
-
const { findProviderByCredentials: findProviderByCredentials2 } = await import("./all-providers-
|
|
1566
|
+
const { findProviderByCredentials: findProviderByCredentials2 } = await import("./all-providers-P7KEC3WQ.js");
|
|
1567
1567
|
const credentialIds = /* @__PURE__ */ __name((model) => {
|
|
1568
1568
|
const preset = findProviderByCredentials2(model.baseUrl, model.envKey);
|
|
1569
1569
|
return [
|
|
@@ -1598,7 +1598,7 @@ async function retireReplacedLogins(before, after, keptCredentialId, credentials
|
|
|
1598
1598
|
}
|
|
1599
1599
|
__name(retireReplacedLogins, "retireReplacedLogins");
|
|
1600
1600
|
async function forgetSavedO1Connect() {
|
|
1601
|
-
const { forgetO1Connect } = await import("./session-
|
|
1601
|
+
const { forgetO1Connect } = await import("./session-TZYPGQBA.js");
|
|
1602
1602
|
await forgetO1Connect();
|
|
1603
1603
|
}
|
|
1604
1604
|
__name(forgetSavedO1Connect, "forgetSavedO1Connect");
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
buildOutboundFetch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G7TCNWW4.js";
|
|
6
6
|
import {
|
|
7
7
|
getEffectiveReasoning,
|
|
8
8
|
isOpenRouterHostname,
|
|
9
9
|
resolveReasoningForModel
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XWGAOAIY.js";
|
|
11
11
|
import {
|
|
12
12
|
o1CodeUserAgent
|
|
13
13
|
} from "./chunk-EYKEQPKF.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
20
20
|
DEFAULT_MAX_RETRIES,
|
|
21
21
|
resolveRequestTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3YQSW6GV.js";
|
|
23
23
|
import {
|
|
24
24
|
REASONING_EFFORT_TIERS,
|
|
25
25
|
clampReasoningEffort,
|
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
buildModelReasoningRoutePreview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XWKCE5VX.js";
|
|
6
6
|
import {
|
|
7
7
|
getModelConfigurationKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZPF5QU35.js";
|
|
9
9
|
import {
|
|
10
10
|
snapshotProcessEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3FDAQK6P.js";
|
|
12
12
|
import {
|
|
13
13
|
STATUS_SCHEMA_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETYF6LYZ.js";
|
|
15
15
|
import {
|
|
16
16
|
getAuthTypeFromEnv,
|
|
17
17
|
resolveCliGenerationConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QQDN6TTH.js";
|
|
19
19
|
import {
|
|
20
20
|
ACP_ROUTE_ID_PREFIX,
|
|
21
21
|
buildAcpModelOptions,
|
|
22
22
|
getCurrentAcpModelId,
|
|
23
23
|
parseAcpBaseModelId,
|
|
24
24
|
sanitizeProviderBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-43W64XRD.js";
|
|
26
26
|
import {
|
|
27
27
|
loadSettings
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-32GJTTKG.js";
|
|
29
29
|
import {
|
|
30
30
|
APPROVAL_MODES
|
|
31
31
|
} from "./chunk-KQAVEXYD.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveReasoningCapabilities
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XWGAOAIY.js";
|
|
35
35
|
import {
|
|
36
36
|
ModelsConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3YQSW6GV.js";
|
|
38
38
|
import {
|
|
39
39
|
tokenLimit
|
|
40
40
|
} from "./chunk-72EBG4FJ.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getUserSettingsPath,
|
|
5
5
|
v1ToV2Migration
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-32GJTTKG.js";
|
|
7
7
|
import {
|
|
8
8
|
getSystemDefaultsPath,
|
|
9
9
|
getSystemSettingsPath
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
TrustLevel,
|
|
14
14
|
getExplicitTrustLevel,
|
|
15
15
|
getTrustedFoldersPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6243HSOC.js";
|
|
17
17
|
import {
|
|
18
18
|
arePathsEquivalent
|
|
19
19
|
} from "./chunk-MXCWSDSC.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YCZIOHKD.js";
|
|
23
23
|
import {
|
|
24
24
|
ideContextStore
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YBJ5CGLV.js";
|
|
26
26
|
import {
|
|
27
27
|
init_esbuild_shims
|
|
28
28
|
} from "./chunk-S2467S6L.js";
|