@organizaone/o1-code 0.11.3 → 0.13.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/design/SKILL.md +3 -1
- package/bundled/qc-helper/docs/features/commands.md +1 -0
- package/bundled/write-plan/SKILL.md +7 -0
- package/chunks/{MaxSizedBox-4YD6N3PU.js → MaxSizedBox-XCZ2MGOJ.js} +68 -67
- package/chunks/{StandaloneSessionPicker-I5FMAIU2.js → StandaloneSessionPicker-CYMNKKAN.js} +91 -90
- package/chunks/{acp-subagent-executor-PRFEPDLD.js → acp-subagent-executor-RPJ7DSMI.js} +72 -71
- package/chunks/{acpAgent-2SVJNE5B.js → acpAgent-CEVBI47D.js} +232 -229
- package/chunks/{agent-QONNC6CU.js → agent-PV7EUY5X.js} +44 -43
- package/chunks/{agent-headless-5HHGBH6Z.js → agent-headless-KVY3WI56.js} +44 -43
- package/chunks/all-providers-ZGNZ7JW6.js +73 -0
- package/chunks/{anthropicContentGenerator-2VK5J36U.js → anthropicContentGenerator-4K7EQGUO.js} +120 -73
- package/chunks/{askUserQuestion-LD66OM5J.js → askUserQuestion-SVDY6XLX.js} +1 -1
- package/chunks/{bridge-376JROPC.js → bridge-MOZHALOO.js} +73 -72
- 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-OAGT2TNR.js → chunk-2H65MHOR.js} +9 -9
- package/chunks/{chunk-VYRPAY75.js → chunk-3D2STYD6.js} +11072 -228
- package/chunks/{chunk-EFN3RELD.js → chunk-3O65A7ID.js} +3 -3
- package/chunks/{chunk-AIQC2WHG.js → chunk-4AH63DZR.js} +4 -4
- 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-U7C4TQUX.js → chunk-4YN5RZ7J.js} +1 -1
- package/chunks/{chunk-HCE5HUQG.js → chunk-55BVGW3L.js} +4 -4
- package/chunks/{chunk-ADBRWAV5.js → chunk-5NNMFA5J.js} +1 -1
- package/chunks/{chunk-VBJH6XAM.js → chunk-5NRAUOM6.js} +1 -1
- package/chunks/{chunk-UWV7KBPN.js → chunk-5OGI74MG.js} +2 -2
- package/chunks/{chunk-VKBMJSAR.js → chunk-5V4DLJBR.js} +322 -110
- package/chunks/{chunk-REDO4D2W.js → chunk-62RTFDNE.js} +11 -11
- package/chunks/{chunk-3KUQCZUE.js → chunk-65JWVPGE.js} +1 -1
- package/chunks/{chunk-Z5UCVPGO.js → chunk-6EMYIJOA.js} +13 -13
- package/chunks/{chunk-FYQO4Y3N.js → chunk-6NUJPR63.js} +19 -19
- package/chunks/{chunk-YPWPIBDR.js → chunk-6VCEIIBB.js} +5 -5
- package/chunks/chunk-6Z3USRSR.js +484 -0
- package/chunks/{chunk-H2U6QRJX.js → chunk-72EBG4FJ.js} +3 -471
- package/chunks/{chunk-4OI2JVHJ.js → chunk-776VI66O.js} +2 -2
- package/chunks/{chunk-COABCWBY.js → chunk-7S2AYA27.js} +15 -0
- package/chunks/chunk-7TK6OY2J.js +53 -0
- package/chunks/{chunk-DMVMQMWZ.js → chunk-AAMTFFQ5.js} +88 -87
- package/chunks/{chunk-WQ6CX6N3.js → chunk-AS3K355D.js} +16 -15
- package/chunks/{chunk-OJP3SONV.js → chunk-BSS7VVI4.js} +5 -5
- package/chunks/{chunk-ZUQTYSNU.js → chunk-BZBEG24K.js} +4 -4
- package/chunks/{chunk-QE2GKG2B.js → chunk-C7UP7BSO.js} +5 -5
- package/chunks/{chunk-HVOUAFTO.js → chunk-CE7ZTS4E.js} +20 -7
- package/chunks/{chunk-QHENJTME.js → chunk-CVHHFIYU.js} +36 -36
- package/chunks/{chunk-OD2XVV6S.js → chunk-D2MWMDUV.js} +6 -6
- package/chunks/{chunk-QIRU74SA.js → chunk-DISVDIQ3.js} +1 -1
- package/chunks/{chunk-WS7DJM5N.js → chunk-DSO5I2IQ.js} +19 -19
- package/chunks/{chunk-VJFA7HHP.js → chunk-DXCM7CG5.js} +1 -1
- package/chunks/{chunk-J4QU4MC5.js → chunk-E3C27ZFX.js} +9 -9
- package/chunks/{chunk-6IAGZKHT.js → chunk-EJYRRHA3.js} +3 -3
- package/chunks/{chunk-OKDNVNDE.js → chunk-EPZB6WRV.js} +5 -5
- package/chunks/{chunk-RS2LNQEC.js → chunk-EVC2HZ5T.js} +3 -39
- package/chunks/{chunk-NWG5SKCQ.js → chunk-F2JWIRJY.js} +3 -3
- package/chunks/{chunk-V75J4GJ2.js → chunk-FJAZPBX2.js} +1 -1
- package/chunks/{chunk-W6TGDESU.js → chunk-FMNDCS3S.js} +2 -2
- package/chunks/{chunk-GCAERMSL.js → chunk-FMPKGYLN.js} +6 -6
- package/chunks/{chunk-MLHBCLEP.js → chunk-FRPZNRSG.js} +17 -12
- package/chunks/{chunk-JQPMOOCH.js → chunk-FXR7OHQM.js} +1 -1
- package/chunks/{chunk-4RA6DVZM.js → chunk-G6RHO6DM.js} +4 -4
- package/chunks/{chunk-EXG47R4V.js → chunk-GFASVZ6K.js} +2 -2
- package/chunks/{chunk-W4SBUUTI.js → chunk-GMUKOUIL.js} +3 -3
- package/chunks/{chunk-DVRWYOU6.js → chunk-GQ2KSD3A.js} +1 -1
- package/chunks/{chunk-SAGRWAPN.js → chunk-H4D66Y2Y.js} +12 -10
- package/chunks/{chunk-PQZRAMZG.js → chunk-H7ZOC3LZ.js} +19 -19
- package/chunks/{chunk-6LLJK4YT.js → chunk-IRIOCF6B.js} +2 -2
- package/chunks/{chunk-GXHNABHV.js → chunk-ISEOJGEK.js} +8 -8
- package/chunks/{chunk-EIJNDD2V.js → chunk-JM5VEUJJ.js} +1 -1
- package/chunks/{chunk-7M4NSLWM.js → chunk-JOBZWTVK.js} +1 -1
- package/chunks/{chunk-IYLIZY56.js → chunk-JTKTS6DH.js} +4 -4
- package/chunks/{chunk-653CF7X7.js → chunk-KEAGCJ5Y.js} +3 -3
- package/chunks/{chunk-ZG7HDQQN.js → chunk-KG3KYBZQ.js} +13 -13
- package/chunks/{chunk-O5F6BGMF.js → chunk-KRA5KYTC.js} +7 -7
- package/chunks/{chunk-UDWKKKF3.js → chunk-LBLYCZ66.js} +16 -12
- package/chunks/{chunk-WDCHA7NA.js → chunk-LCGH4FFO.js} +5 -5
- package/chunks/{chunk-BIP774WW.js → chunk-LO6MBHLQ.js} +1 -1
- package/chunks/{chunk-TK7HNIQM.js → chunk-LOGUVITI.js} +1 -1
- package/chunks/{chunk-A4JNI44O.js → chunk-M3AA7FQ3.js} +65 -38
- package/chunks/{chunk-YR3UI5PL.js → chunk-M4IY4XQZ.js} +10 -10
- package/chunks/{chunk-FVO4TXS5.js → chunk-MIYMCZND.js} +6 -6
- package/chunks/{chunk-OKR7R26W.js → chunk-MK4WS35J.js} +4 -4
- package/chunks/{chunk-LEBY6RZT.js → chunk-MN5POTR7.js} +5 -5
- package/chunks/{chunk-3YG4OBGV.js → chunk-N44JMQZ2.js} +1 -1
- 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-W4COM34L.js → chunk-NQG6WHD4.js} +3 -3
- package/chunks/{chunk-XHYWPHWN.js → chunk-NQTVSCZM.js} +1 -1
- package/chunks/{chunk-HK7AV2JH.js → chunk-NRL7UTKJ.js} +1 -1
- package/chunks/{chunk-5MX4BYWK.js → chunk-O2HEL6MQ.js} +3 -3
- package/chunks/{chunk-AQFTTYP6.js → chunk-O3J2T6B5.js} +4 -4
- package/chunks/{chunk-BLFBP3N2.js → chunk-O5L5JB3Y.js} +1 -1
- package/chunks/{chunk-7I52LFBI.js → chunk-O5RL477F.js} +8 -6
- package/chunks/{chunk-7LFCBMVX.js → chunk-P4F73WS7.js} +1 -1
- package/chunks/{chunk-QKTYOXBW.js → chunk-P56ZVOTQ.js} +1 -1
- package/chunks/{chunk-DG6LRVVN.js → chunk-PD4HVHCC.js} +1 -1
- package/chunks/{chunk-4AJNXOC5.js → chunk-PUHBOSQG.js} +2 -2
- package/chunks/{chunk-MIWMCUU5.js → chunk-Q3275KQT.js} +18 -9
- package/chunks/{chunk-JZ4ZEW3K.js → chunk-Q5CQXESD.js} +1 -1
- package/chunks/{chunk-3DUYZD3L.js → chunk-Q5GMC3AS.js} +3 -3
- package/chunks/{chunk-L6MGGTHA.js → chunk-QCYLPRBN.js} +1 -1
- package/chunks/{chunk-SIZ4LTNU.js → chunk-QN427UTL.js} +28 -28
- package/chunks/{chunk-7LLX5ROK.js → chunk-R2PA2MUE.js} +3 -3
- package/chunks/{chunk-KRZBFGAT.js → chunk-R2U5MANG.js} +2492 -4295
- package/chunks/{chunk-5V3EOW36.js → chunk-SGPBAZXG.js} +28 -28
- package/chunks/{chunk-ER3EHNTV.js → chunk-SPTU3FVH.js} +4 -4
- package/chunks/chunk-SYFWO6RZ.js +372 -0
- package/chunks/{chunk-ZBV6TO3P.js → chunk-T44PDHSJ.js} +1 -1
- package/chunks/chunk-TC2TJAOF.js +1365 -0
- package/chunks/{chunk-HUMRTP2R.js → chunk-TFFOK3SJ.js} +1 -1
- package/chunks/{chunk-QMCDBQRJ.js → chunk-TP3M5WJ2.js} +1 -1
- package/chunks/{chunk-JHZM32LS.js → chunk-TZSB5TBL.js} +388 -620
- package/chunks/{chunk-L7JLMUG3.js → chunk-UCTNQFXT.js} +2 -2
- package/chunks/{chunk-N7NBYHMJ.js → chunk-UNY7AZRV.js} +1 -1
- package/chunks/{chunk-PLGVOOCJ.js → chunk-USIBFFLB.js} +1 -1
- package/chunks/{chunk-IKXBBMRT.js → chunk-V4TVYM45.js} +1 -1
- package/chunks/{chunk-XOVXSDNN.js → chunk-VPFTCMMK.js} +1 -1
- package/chunks/{chunk-FQO3QDB5.js → chunk-VT3TJFQR.js} +1 -1
- package/chunks/chunk-WBPIFM2X.js +2008 -0
- package/chunks/{chunk-6D6Z2RPR.js → chunk-WEWX4WWV.js} +2 -2
- package/chunks/{chunk-LBM7FFM5.js → chunk-WFKKFDJQ.js} +1 -1
- package/chunks/{chunk-M2EBVYXC.js → chunk-WK44MSGW.js} +1 -1
- package/chunks/{chunk-FJHDFJVI.js → chunk-WSHOWMUB.js} +1 -1
- package/chunks/{chunk-VPGICF4V.js → chunk-WW4B6W4M.js} +3 -3
- package/chunks/{chunk-RZGFYBL5.js → chunk-X65OQCDM.js} +4 -4
- package/chunks/{chunk-ALRR6EQ5.js → chunk-XFFYARLO.js} +2 -2
- package/chunks/{chunk-4FUKWWA7.js → chunk-XXJRYCQP.js} +2 -2
- package/chunks/{chunk-C4WTDBKV.js → chunk-XYJDRU7X.js} +8 -8
- package/chunks/{chunk-AAXKDAOY.js → chunk-Y2S3KNR5.js} +1 -1
- package/chunks/{chunk-R3QYIDIU.js → chunk-Y7FYHWEZ.js} +2 -2
- package/chunks/{chunk-7H7YR3TX.js → chunk-YM522RO3.js} +1 -1
- package/chunks/chunk-Z5PCLAUL.js +327 -0
- package/chunks/{chunk-BSLKB37V.js → chunk-ZGPPP7FC.js} +30 -30
- package/chunks/{chunk-W7NTX5RO.js → chunk-ZKCUQO6N.js} +7 -7
- package/chunks/{chunk-LK74HWZ4.js → chunk-ZNYTOOK6.js} +1431 -1120
- package/chunks/{chunk-ZQBNP2ZQ.js → chunk-ZRO2FPEP.js} +4 -4
- package/chunks/{codex-subagent-executor-BDV2OYSK.js → codex-subagent-executor-PV26MDIV.js} +72 -71
- package/chunks/{contextCommand-4XBRYOBZ.js → contextCommand-63B2HLAC.js} +71 -70
- package/chunks/{core-runtime-IYMVEYKI.js → core-runtime-47EMQJUH.js} +80 -79
- package/chunks/{create-sub-session-EAHSPBXY.js → create-sub-session-LEVD5YL4.js} +74 -73
- package/chunks/{daemon-git-worktree-guard-JPOH2ZV5.js → daemon-git-worktree-guard-ZOUTES2L.js} +70 -69
- package/chunks/{daemon-status-provider-GOJGNJ2Y.js → daemon-status-provider-HECREQKB.js} +78 -77
- package/chunks/{daemon-trust-policy-X5QLCVP2.js → daemon-trust-policy-TLDOAPNK.js} +76 -75
- package/chunks/{daemon-trust-policy-monitor-GOMIMXAS.js → daemon-trust-policy-monitor-EVORKLSC.js} +76 -75
- package/chunks/{deferred-core-runtime-MFMRVOPT.js → deferred-core-runtime-XHOZAMOD.js} +68 -67
- package/chunks/{display-image-U6HZKF3G.js → display-image-ETU7QIAC.js} +2 -2
- package/chunks/{edit-N5WDGSAZ.js → edit-YJQGE2UV.js} +46 -45
- package/chunks/{en-C4TIYTOH.js → en-XS2TOI7O.js} +70 -3
- package/chunks/{enter-worktree-A2WD27HQ.js → enter-worktree-OZOIH6KH.js} +4 -4
- package/chunks/{enterPlanMode-52GAH43E.js → enterPlanMode-RRAE4IQN.js} +44 -43
- package/chunks/{environment-RXHNLDLZ.js → environment-7WY7Y6VS.js} +71 -70
- package/chunks/{errors-D65OPVWO.js → errors-LK4KDMIG.js} +71 -70
- package/chunks/{execution-sandbox-config-YE2XOT56.js → execution-sandbox-config-EYZYM2IC.js} +7 -7
- package/chunks/{execution-tool-RK3OB5IY.js → execution-tool-5Z2YSFEP.js} +47 -46
- package/chunks/{execution-worker-R7E5B7CA.js → execution-worker-WHOZLJRT.js} +52 -51
- package/chunks/{exit-worktree-S7KUQ4HO.js → exit-worktree-W5TC4B4C.js} +4 -4
- package/chunks/{exitPlanMode-SRLMLRK5.js → exitPlanMode-7RG7ECTO.js} +44 -43
- package/chunks/{fast-path-KOMJMO2I.js → fast-path-GVJ4DBR2.js} +2 -2
- package/chunks/{glob-MD6DOICU.js → glob-PB6WN76C.js} +44 -43
- package/chunks/{goal-tools-FLJYRSX6.js → goal-tools-PXS3S5XC.js} +44 -43
- package/chunks/{handleAutoUpdate-LX4OGPKI.js → handleAutoUpdate-VHMFGYHU.js} +72 -71
- package/chunks/{i18n-CSJNAMVB.js → i18n-WCJ655MY.js} +70 -69
- package/chunks/{image-gen-GRJ73O3N.js → image-gen-Q4E7L7EV.js} +3 -6
- package/chunks/{initializer-UN73MGL2.js → initializer-BIPJZUNR.js} +76 -75
- package/chunks/{installationInfo-DOO2EVLV.js → installationInfo-N7GQ6GNX.js} +68 -67
- package/chunks/{keychain-token-storage-NDVFNJI5.js → keychain-token-storage-SJOKJDWV.js} +2 -1
- package/chunks/{list-UMP3UXDE.js → list-LO3EXRTY.js} +79 -78
- package/chunks/{llm-4AHGUE2C.js → llm-TQ7QWLQE.js} +145 -144
- package/chunks/{llm-content-generator-I62R6Q4I.js → llm-content-generator-7L62PNT2.js} +9 -8
- package/chunks/{loadedSettingsAdapter-KHAGVCPO.js → loadedSettingsAdapter-UU42Y22U.js} +76 -75
- package/chunks/{local-execution-environment-DOKSKTNZ.js → local-execution-environment-A4Y3D3ZV.js} +52 -51
- package/chunks/{loggingContentGenerator-53CAIYCN.js → loggingContentGenerator-ZY3AEK2S.js} +71 -72
- package/chunks/{managed-npm-update-KTATRLFZ.js → managed-npm-update-LNKFVE5Q.js} +68 -67
- package/chunks/{mcp-7GPEHQCC.js → mcp-OR7MZGDY.js} +76 -75
- package/chunks/{memory-side-query-EHR7FGIB.js → memory-side-query-BSVTSKCB.js} +7 -7
- package/chunks/{model-call-collection-J33XHZPS.js → model-call-collection-M2HSPDMR.js} +7 -7
- package/chunks/{model-configuration-BK2FWMLQ.js → model-configuration-FZ7M5PJD.js} +77 -76
- package/chunks/{modelConfigUtils-RHOU5ENH.js → modelConfigUtils-H56P2GGJ.js} +70 -69
- package/chunks/{monitor-WXQOHZKP.js → monitor-QCSMCJV7.js} +44 -43
- package/chunks/{node-5A2VFKYD.js → node-BMQ3WD34.js} +1 -2
- package/chunks/{nonInteractiveCli-332KOMYW.js → nonInteractiveCli-VGW2YQGN.js} +115 -114
- package/chunks/{nonInteractiveToolExecutor-ULCR2RA7.js → nonInteractiveToolExecutor-JNLRO4ZA.js} +45 -44
- package/chunks/{notebook-edit-HOKY5D6F.js → notebook-edit-672257RC.js} +45 -44
- package/chunks/{ocr-image-ZJCSAMSQ.js → ocr-image-O6ECQNUE.js} +6 -6
- package/chunks/{omni-O37J5JI3.js → omni-QCYXILWJ.js} +40 -42
- package/chunks/{openaiContentGenerator-62C5JSNE.js → openaiContentGenerator-54R7P33Y.js} +63 -61
- package/chunks/{openaiResponsesContentGenerator-JSS3U575.js → openaiResponsesContentGenerator-5TBBBXGD.js} +39 -24
- package/chunks/{processUtils-Y66KDZSB.js → processUtils-RH3ZJW76.js} +2 -2
- package/chunks/{prompt-terminal-ledger-MXYMD7UN.js → prompt-terminal-ledger-FCCYD5XB.js} +69 -68
- package/chunks/{pt-TCLIZMUA.js → pt-4SWM347K.js} +70 -3
- package/chunks/{reactive-degrade-X2JSVX5V.js → reactive-degrade-TYUV36MI.js} +25 -23
- package/chunks/{read-file-UDFSKNBI.js → read-file-EX7W2NE2.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-B4SY2SEU.js} +74 -73
- package/chunks/{ripGrep-RMGB52RM.js → ripGrep-ECY5TTFL.js} +14 -13
- package/chunks/{run-o1-code-serve-KVOUMETW.js → run-o1-code-serve-NXMW2E5M.js} +59 -59
- package/chunks/{runtime-shell-policy-Y3TGAQLT.js → runtime-shell-policy-Z53GWNM7.js} +1 -1
- package/chunks/{sandboxConfig-6UNSTBMJ.js → sandboxConfig-TBSQ54IT.js} +68 -67
- package/chunks/{scheduled-tasks-SHFPXK6P.js → scheduled-tasks-UHJTWXCD.js} +77 -76
- package/chunks/{scheduler-N5K2SUQE.js → scheduler-3JYFHVVB.js} +70 -69
- 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-LYALSSC5.js} +76 -75
- package/chunks/{server-AA4LTEQ2.js → server-YW2DKRAT.js} +263 -262
- package/chunks/{session-4627GZ4S.js → session-GSTJQ27V.js} +125 -124
- package/chunks/session-YZBL75AL.js +34 -0
- package/chunks/{session-attachments-root-Y4BXBBHX.js → session-attachments-root-VZ7KZ6N4.js} +68 -67
- package/chunks/{session-pr-refresh-XXIT42IO.js → session-pr-refresh-42IL6M3O.js} +77 -76
- package/chunks/{settings-CHJS242C.js → settings-H5Q3CLHZ.js} +76 -75
- package/chunks/{shell-PDZIKVVS.js → shell-6MN3L324.js} +44 -43
- package/chunks/{skill-QOPISSJO.js → skill-7IYKGXUW.js} +14 -13
- package/chunks/{skill-settings-SSXT3JNN.js → skill-settings-33HY5DDP.js} +76 -75
- package/chunks/{spawnChannel-MPL2AUYX.js → spawnChannel-GYJJNWZ7.js} +71 -70
- package/chunks/{standalone-update-ACWQFW36.js → standalone-update-TSHH3DWA.js} +71 -70
- package/chunks/{startInteractiveUI-PKMNIOMH.js → startInteractiveUI-PPEGHGPU.js} +4777 -4399
- 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-CSOWNJLF.js} +44 -43
- package/chunks/{team-plan-approval-4CFTZI2I.js → team-plan-approval-LTUBZHSC.js} +44 -43
- package/chunks/{terminal-image-renderer-C65IVJHI.js → terminal-image-renderer-EUMAETSP.js} +68 -67
- package/chunks/{theme-manager-5FF3ROXZ.js → theme-manager-5TCLD3WW.js} +68 -67
- package/chunks/{tool-call-GVZHLCX6.js → tool-call-2R6GT3ZZ.js} +5 -5
- package/chunks/{tool-result-media-YFEIOZDR.js → tool-result-media-PPZAFNQ3.js} +21 -23
- package/chunks/{tool-search-WNOVTFBP.js → tool-search-OU6ZHDIV.js} +19 -18
- package/chunks/{total-session-admission-Q6NUZVLI.js → total-session-admission-7MG63XH6.js} +73 -72
- package/chunks/{transcribe-audio-J3OVKT5D.js → transcribe-audio-R6YC24KU.js} +3 -3
- package/chunks/{trustedFolders-SFZUU4GO.js → trustedFolders-OFYE5GKD.js} +70 -69
- package/chunks/{understand-video-segments-OMAJP6Q7.js → understand-video-segments-2WK4T6PO.js} +8 -8
- package/chunks/{update-relaunch-ICPN37DV.js → update-relaunch-AJ466EO3.js} +5 -5
- package/chunks/{updateCheck-PRCH4Y2X.js → updateCheck-SUPCJRZ5.js} +71 -70
- package/chunks/{upload-config-JG34DU4J.js → upload-config-FLQKSPO4.js} +10 -8
- package/chunks/{useAutoAcceptIndicator-FZVG3NNO.js → useAutoAcceptIndicator-5MF6HAIZ.js} +79 -78
- package/chunks/{validateNonInterActiveAuth-XRY2O6CQ.js → validateNonInterActiveAuth-N46PJGJS.js} +113 -112
- package/chunks/{version-IU45BCJE.js → version-ANBWTPRO.js} +1 -1
- package/chunks/{web-fetch-WO3GHRIO.js → web-fetch-Z2OA65BV.js} +14 -16
- package/chunks/{web-search-4GJLGZQM.js → web-search-SJQG2GX3.js} +12 -13
- package/chunks/web-shell-static-OOIIII74.js +1 -1
- package/chunks/{workflow-UG4V5VWR.js → workflow-FHCFTKRA.js} +47 -46
- package/chunks/{workspace-providers-status-IM5IUQXM.js → workspace-providers-status-5DXK5EPJ.js} +82 -81
- package/chunks/{workspace-registration-store-O36O7FTL.js → workspace-registration-store-53NGEDB2.js} +1 -1
- package/chunks/{workspace-registry-TOE2NYGH.js → workspace-registry-3G7IBILS.js} +73 -72
- package/chunks/{workspace-runtime-coordinator-LS7MYSDY.js → workspace-runtime-coordinator-PM3IIKWK.js} +74 -73
- package/chunks/{workspace-service-FL63YNEM.js → workspace-service-MHVN7SZD.js} +82 -81
- package/chunks/{workspace-skills-status-IXHCVUXS.js → workspace-skills-status-VMCBOJBR.js} +79 -78
- package/chunks/{workspace-trust-reconciler-WTJ52TKZ.js → workspace-trust-reconciler-2OXEFTNA.js} +82 -81
- package/chunks/{write-file-VTHULBGP.js → write-file-CKZFK2OO.js} +47 -46
- 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-S763FYBO.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 +95 -2
- package/locales/pt.js +95 -2
- package/locales/zh-TW.js +2 -0
- package/locales/zh.js +2 -0
- package/package.json +2 -2
- package/release-notes.json +20 -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-anMh0rnI.js → abnfDiagram-VCTEODGH-Dd5GshXZ.js} +1 -1
- package/web-shell/assets/{arc-sPYpPSws.js → arc-BzmxNcPV.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BKh0KCFR.js → architectureDiagram-5GKGNRK7-Cl-ccT8a.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-CUfywffW.js → blockDiagram-NRAW4CY4-B35pxtm3.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-CM2pLl5w.js → c4Diagram-UCG6FXSJ-B5qoJcBm.js} +1 -1
- package/web-shell/assets/channel-Cu64z9HZ.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-n9OTAsCE.js → chunk-2Q5K7J3B-CNMhmKb4.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-CC3dLmo9.js → chunk-5VM5RSS4-CzuX-MER.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-pIte4woe.js → chunk-F27PBJKO-DT37LCqQ.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-Bd4q9Va0.js → chunk-G27WJ6UU-Bq7N69gu.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-C1ornOGN.js → chunk-JWPE2WC7-B7XNzXZi.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-w09p9W09.js → chunk-LCL6LL3I-ev2gqrXp.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-CHY7aAx4.js → chunk-POPQ4Y6H-DZiIq2t9.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-DKqS6ObW.js → chunk-SVP7TREG-BDUL6ZGf.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DWqNHE5T.js → chunk-XXDRQBXY-sMlMtGuS.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-BGgegV4f.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-BGgegV4f.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CTuORHW-.js → cose-bilkent-JH36ORCC-o-qhY8ZO.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-D38bIRGV.js → cynefin-OW5HDTMX-D_0MbdlL.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-zojG5SHE.js → cynefinDiagram-5FMLGOSQ-CQKn510t.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-B_mgdgxG.js → dagre-3AP2YEHR-DfrDEKoD.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Boe4tqaP.js → diagram-S7CK7UJ4-C7c3Mlbe.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DEFdgAk5.js → diagram-UQ7AKVKN-DwNnlZ89.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-lg-aIy2H.js → diagram-VSXAHHWV-DOg1kmwI.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-B8GfIB8O.js → diagram-VX7I27RA-3hGgj-7o.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-B9d7kR6t.js → diagram-Z3DM3KII-ZfVqlAN6.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-BbKPC4Lq.js → ebnfDiagram-PWID7BFC-BWplgnNz.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CRAgoOe5.js → erDiagram-SSCWMZ5O-DwYYQH-_.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-Ur3ln_JM.js → flowDiagram-A5DVABFB-BWw-iXkD.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-C9BN2b5E.js → ganttDiagram-EL5Y4UJY-C71Eo8TM.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-CRfkh-0v.js → gitGraphDiagram-WWUBYQGX-BUlmyPh9.js} +1 -1
- package/web-shell/assets/{index-CeQlCdwD.js → index-Cov5zq9G.js} +3 -3
- package/web-shell/assets/{index-DiA0wMqK.js → index-YpUe3L92.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-DK1-ESA4.js → infoDiagram-RXCK75RN-BOvXDm7l.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-kxpIDlCX.js → ishikawaDiagram-5VMMS53U-zA04wTLO.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DQ9EbXpv.js → journeyDiagram-EYS64GPL-B9u2zTa4.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-UYveUTce.js → kanban-definition-3QL26DDD-CcZcxOR7.js} +1 -1
- package/web-shell/assets/{layout-BPonaHzT.js → layout-CXIk6jWz.js} +1 -1
- package/web-shell/assets/{linear-C-eJXPTS.js → linear-Dlkedwd1.js} +1 -1
- package/web-shell/assets/{mermaid.core-BX1Kz_A0.js → mermaid.core-BjB3MvuB.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-B6QyHOu0.js → mindmap-definition-FBJOCRG2-DCpRJqAA.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-Caflqhs8.js → pegDiagram-XKGWAZYB-DbX7p38q.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-6zzkWzNt.js → pieDiagram-E7YTZNPT-4iblIg8S.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-BVL3cBz2.js → quadrantDiagram-AXDQQJYC-qLrQysOt.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-DqBEO3-Z.js → railroadDiagram-O6MQD6OU-BhUMCp8M.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CBFGB-6Q.js → requirementDiagram-EFPCY7ZU-CI_uT2ta.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DOpW98KL.js → sankeyDiagram-P5KCCOFB-DnVXzAke.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CVtDqArI.js → sequenceDiagram-WJ2MYXX4-VXU581VP.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DQjMKuHP.js → sizeCapture-X5ZJPWSS-DgdBXSuW.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-D4n_VP2j.js → stateDiagram-HBIQ2CUA-CoE_MmRT.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CpuBms53.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Dvr4Gk5J.js → swimlanes-XN3QIQJK-CypA76o8.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DpUS1aIh.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DXsPhzEF.js → timeline-definition-24CTP7MA-D0l1ujUh.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-aA8X42UU.js → vennDiagram-4TSXK5OY-DnMCYIem.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CuOx8tlj.js → wardleyDiagram-VM6X3IG4-DZUWBuNt.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-DIc2TzVm.js → xychartDiagram-S5SC5T6Z-CG2OOMIf.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-RC67CA5Z.js +0 -10861
- package/chunks/chunk-VIAJ74X3.js +0 -410
- package/vendor/o1-connect/.lintstagedrc.mjs +0 -7
- 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
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
preloadRuntimeFetchModule
|
|
5
|
-
} from "./chunk-HDGYCLNB.js";
|
|
6
3
|
import {
|
|
7
4
|
init_esbuild_shims
|
|
8
5
|
} from "./chunk-S2467S6L.js";
|
|
@@ -10,204 +7,6 @@ import {
|
|
|
10
7
|
__name
|
|
11
8
|
} from "./chunk-J2S4EL5Y.js";
|
|
12
9
|
|
|
13
|
-
// packages/core/src/models/modelConfigErrors.ts
|
|
14
|
-
init_esbuild_shims();
|
|
15
|
-
function getDefaultApiKeyEnvVar(authType) {
|
|
16
|
-
switch (authType) {
|
|
17
|
-
case "openai":
|
|
18
|
-
case "openai-responses":
|
|
19
|
-
return "OPENAI_API_KEY";
|
|
20
|
-
case "anthropic":
|
|
21
|
-
return "ANTHROPIC_API_KEY";
|
|
22
|
-
case "gemini":
|
|
23
|
-
return "GEMINI_API_KEY";
|
|
24
|
-
case "vertex-ai":
|
|
25
|
-
return "GOOGLE_API_KEY";
|
|
26
|
-
default:
|
|
27
|
-
return "API_KEY";
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
__name(getDefaultApiKeyEnvVar, "getDefaultApiKeyEnvVar");
|
|
31
|
-
function getDefaultModelEnvVar(authType) {
|
|
32
|
-
switch (authType) {
|
|
33
|
-
case "openai":
|
|
34
|
-
case "openai-responses":
|
|
35
|
-
return "OPENAI_MODEL";
|
|
36
|
-
case "anthropic":
|
|
37
|
-
return "ANTHROPIC_MODEL";
|
|
38
|
-
case "gemini":
|
|
39
|
-
return "GEMINI_MODEL";
|
|
40
|
-
case "vertex-ai":
|
|
41
|
-
return "GOOGLE_MODEL";
|
|
42
|
-
default:
|
|
43
|
-
return "MODEL";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
__name(getDefaultModelEnvVar, "getDefaultModelEnvVar");
|
|
47
|
-
var VERTEX_ADC_HINT = " Alternatively, set GOOGLE_CLOUD_PROJECT to authenticate with Application Default Credentials instead of an API key.";
|
|
48
|
-
function adcHint(authType, explicitEnvKey) {
|
|
49
|
-
return authType === "vertex-ai" && !explicitEnvKey ? VERTEX_ADC_HINT : "";
|
|
50
|
-
}
|
|
51
|
-
__name(adcHint, "adcHint");
|
|
52
|
-
var ModelConfigError = class extends Error {
|
|
53
|
-
static {
|
|
54
|
-
__name(this, "ModelConfigError");
|
|
55
|
-
}
|
|
56
|
-
constructor(message) {
|
|
57
|
-
super(message);
|
|
58
|
-
this.name = new.target.name;
|
|
59
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var StrictMissingCredentialsError = class extends ModelConfigError {
|
|
63
|
-
static {
|
|
64
|
-
__name(this, "StrictMissingCredentialsError");
|
|
65
|
-
}
|
|
66
|
-
code = "STRICT_MISSING_CREDENTIALS";
|
|
67
|
-
constructor(authType, model, envKey) {
|
|
68
|
-
const providerKey = authType || "(unknown)";
|
|
69
|
-
const modelName = model || "(unknown)";
|
|
70
|
-
super(
|
|
71
|
-
`Missing credentials for modelProviders model '${modelName}'. ` + (envKey ? `Current configured envKey: '${envKey}'. Set that environment variable, or update modelProviders.${providerKey}[].envKey.` : `Configure modelProviders.${providerKey}[].envKey and set that environment variable.`) + adcHint(authType, envKey)
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var StrictMissingModelIdError = class extends ModelConfigError {
|
|
76
|
-
static {
|
|
77
|
-
__name(this, "StrictMissingModelIdError");
|
|
78
|
-
}
|
|
79
|
-
code = "STRICT_MISSING_MODEL_ID";
|
|
80
|
-
constructor(authType) {
|
|
81
|
-
super(
|
|
82
|
-
`Missing model id for strict modelProviders resolution (authType: ${authType}).`
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var MissingApiKeyError = class extends ModelConfigError {
|
|
87
|
-
static {
|
|
88
|
-
__name(this, "MissingApiKeyError");
|
|
89
|
-
}
|
|
90
|
-
code = "MISSING_API_KEY";
|
|
91
|
-
constructor(params) {
|
|
92
|
-
super(
|
|
93
|
-
`Missing API key for ${params.authType} auth. Current model: '${params.model || "(unknown)"}', baseUrl: '${params.baseUrl || "(default)"}'. Connect a provider with /auth, or set the environment variable '${params.envKey}'.` + adcHint(params.authType, params.explicitEnvKey)
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
var MissingModelError = class extends ModelConfigError {
|
|
98
|
-
static {
|
|
99
|
-
__name(this, "MissingModelError");
|
|
100
|
-
}
|
|
101
|
-
code = "MISSING_MODEL";
|
|
102
|
-
constructor(params) {
|
|
103
|
-
super(
|
|
104
|
-
`Missing model for ${params.authType} auth. Set the environment variable '${params.envKey}'.`
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
var MissingBaseUrlError = class extends ModelConfigError {
|
|
109
|
-
static {
|
|
110
|
-
__name(this, "MissingBaseUrlError");
|
|
111
|
-
}
|
|
112
|
-
code = "MISSING_BASE_URL";
|
|
113
|
-
constructor(params) {
|
|
114
|
-
super(
|
|
115
|
-
`Missing baseUrl for modelProviders model '${params.model || "(unknown)"}'. Configure modelProviders.${params.authType || "(unknown)"}[].baseUrl.`
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
var MissingAnthropicBaseUrlEnvError = class extends ModelConfigError {
|
|
120
|
-
static {
|
|
121
|
-
__name(this, "MissingAnthropicBaseUrlEnvError");
|
|
122
|
-
}
|
|
123
|
-
code = "MISSING_ANTHROPIC_BASE_URL_ENV";
|
|
124
|
-
constructor() {
|
|
125
|
-
super("ANTHROPIC_BASE_URL environment variable not found.");
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// packages/core/src/config/models.ts
|
|
130
|
-
init_esbuild_shims();
|
|
131
|
-
var DEFAULT_O1CODE_EMBEDDING_MODEL = "text-embedding-v4";
|
|
132
|
-
var MAINLINE_CODER_MODEL = "qwen3.7-max";
|
|
133
|
-
|
|
134
|
-
// packages/core/src/models/constants.ts
|
|
135
|
-
init_esbuild_shims();
|
|
136
|
-
var MODEL_GENERATION_CONFIG_FIELDS = [
|
|
137
|
-
"samplingParams",
|
|
138
|
-
"timeout",
|
|
139
|
-
"streamIdleTimeoutMs",
|
|
140
|
-
"maxRetries",
|
|
141
|
-
"retryInitialDelayMs",
|
|
142
|
-
"retryMaxDelayMs",
|
|
143
|
-
"retryErrorCodes",
|
|
144
|
-
"enableCacheControl",
|
|
145
|
-
"enableRequestMetadata",
|
|
146
|
-
"forceGlobalCacheScope",
|
|
147
|
-
"cacheRetention",
|
|
148
|
-
"cacheRetentionByBlock",
|
|
149
|
-
"schemaCompliance",
|
|
150
|
-
"reasoning",
|
|
151
|
-
"contextWindowSize",
|
|
152
|
-
"customHeaders",
|
|
153
|
-
"extra_body",
|
|
154
|
-
"thinkingMandatory",
|
|
155
|
-
"modalities",
|
|
156
|
-
"splitToolMedia",
|
|
157
|
-
"toolResultContentFormat"
|
|
158
|
-
];
|
|
159
|
-
var CREDENTIAL_FIELDS = [
|
|
160
|
-
"model",
|
|
161
|
-
"apiKey",
|
|
162
|
-
"apiKeyEnvKey",
|
|
163
|
-
"baseUrl"
|
|
164
|
-
];
|
|
165
|
-
var PROVIDER_SOURCED_FIELDS = [
|
|
166
|
-
...CREDENTIAL_FIELDS,
|
|
167
|
-
...MODEL_GENERATION_CONFIG_FIELDS
|
|
168
|
-
];
|
|
169
|
-
var AUTH_ENV_MAPPINGS = {
|
|
170
|
-
openai: {
|
|
171
|
-
apiKey: ["OPENAI_API_KEY"],
|
|
172
|
-
baseUrl: ["OPENAI_BASE_URL"],
|
|
173
|
-
model: ["OPENAI_MODEL", "O1CODE_MODEL"]
|
|
174
|
-
},
|
|
175
|
-
"openai-responses": {
|
|
176
|
-
apiKey: ["OPENAI_API_KEY"],
|
|
177
|
-
baseUrl: ["OPENAI_BASE_URL"],
|
|
178
|
-
model: ["OPENAI_MODEL"]
|
|
179
|
-
},
|
|
180
|
-
anthropic: {
|
|
181
|
-
apiKey: ["ANTHROPIC_API_KEY"],
|
|
182
|
-
baseUrl: ["ANTHROPIC_BASE_URL"],
|
|
183
|
-
model: ["ANTHROPIC_MODEL"]
|
|
184
|
-
},
|
|
185
|
-
gemini: {
|
|
186
|
-
apiKey: ["GEMINI_API_KEY"],
|
|
187
|
-
baseUrl: [],
|
|
188
|
-
model: ["GEMINI_MODEL"]
|
|
189
|
-
},
|
|
190
|
-
"vertex-ai": {
|
|
191
|
-
apiKey: ["GOOGLE_API_KEY"],
|
|
192
|
-
baseUrl: [],
|
|
193
|
-
model: ["GOOGLE_MODEL"]
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
var DEFAULT_MODELS = {
|
|
197
|
-
openai: MAINLINE_CODER_MODEL
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
// packages/core/src/utils/auth-type.ts
|
|
201
|
-
init_esbuild_shims();
|
|
202
|
-
var AuthType = /* @__PURE__ */ ((AuthType2) => {
|
|
203
|
-
AuthType2["USE_OPENAI"] = "openai";
|
|
204
|
-
AuthType2["USE_OPENAI_RESPONSES"] = "openai-responses";
|
|
205
|
-
AuthType2["USE_GEMINI"] = "gemini";
|
|
206
|
-
AuthType2["USE_VERTEX_AI"] = "vertex-ai";
|
|
207
|
-
AuthType2["USE_ANTHROPIC"] = "anthropic";
|
|
208
|
-
return AuthType2;
|
|
209
|
-
})(AuthType || {});
|
|
210
|
-
|
|
211
10
|
// packages/core/src/core/tokenLimits.ts
|
|
212
11
|
init_esbuild_shims();
|
|
213
12
|
var DEFAULT_TOKEN_LIMIT = 2e5;
|
|
@@ -652,248 +451,6 @@ function parseModelReasoningCapabilities(value) {
|
|
|
652
451
|
}
|
|
653
452
|
__name(parseModelReasoningCapabilities, "parseModelReasoningCapabilities");
|
|
654
453
|
|
|
655
|
-
// packages/core/src/core/contentGenerator.ts
|
|
656
|
-
init_esbuild_shims();
|
|
657
|
-
function setSource(sources, path, source) {
|
|
658
|
-
sources[path] = source;
|
|
659
|
-
}
|
|
660
|
-
__name(setSource, "setSource");
|
|
661
|
-
function getSeedSource(seed, path) {
|
|
662
|
-
return seed?.[path];
|
|
663
|
-
}
|
|
664
|
-
__name(getSeedSource, "getSeedSource");
|
|
665
|
-
function resolveContentGeneratorConfigWithSources(config, authType, generationConfig, seedSources, options) {
|
|
666
|
-
const sources = { ...seedSources || {} };
|
|
667
|
-
const strictModelProvider = options?.strictModelProvider === true;
|
|
668
|
-
const newContentGeneratorConfig = {
|
|
669
|
-
...generationConfig || {},
|
|
670
|
-
authType,
|
|
671
|
-
reasoningSnapshot: generationConfig?.reasoningSnapshot ?? config?.getReasoningSnapshot?.(),
|
|
672
|
-
reasoningRouteBaseUrl: generationConfig && "reasoningRouteBaseUrl" in generationConfig ? generationConfig.reasoningRouteBaseUrl : config?.getCurrentModelRegistryBaseUrl?.(),
|
|
673
|
-
proxy: config?.getProxy()
|
|
674
|
-
};
|
|
675
|
-
setSource(sources, "authType", {
|
|
676
|
-
kind: "computed",
|
|
677
|
-
detail: "provided by caller"
|
|
678
|
-
});
|
|
679
|
-
if (config?.getProxy()) {
|
|
680
|
-
setSource(sources, "proxy", {
|
|
681
|
-
kind: "computed",
|
|
682
|
-
detail: "Config.getProxy()"
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
const seedOrUnknown = /* @__PURE__ */ __name((path) => getSeedSource(seedSources, path) ?? { kind: "unknown" }, "seedOrUnknown");
|
|
686
|
-
for (const field of PROVIDER_SOURCED_FIELDS) {
|
|
687
|
-
if (generationConfig && field in generationConfig && !sources[field]) {
|
|
688
|
-
setSource(sources, field, seedOrUnknown(field));
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
const validation = validateModelConfig(
|
|
692
|
-
newContentGeneratorConfig,
|
|
693
|
-
strictModelProvider
|
|
694
|
-
);
|
|
695
|
-
if (!validation.valid) {
|
|
696
|
-
throw new Error(validation.errors.map((e) => e.message).join("\n"));
|
|
697
|
-
}
|
|
698
|
-
return {
|
|
699
|
-
config: newContentGeneratorConfig,
|
|
700
|
-
sources
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
__name(resolveContentGeneratorConfigWithSources, "resolveContentGeneratorConfigWithSources");
|
|
704
|
-
var VERTEX_PROJECT_ENV_VAR = "GOOGLE_CLOUD_PROJECT";
|
|
705
|
-
function hasVertexProjectConfigured(lookup = (key) => process.env[key]) {
|
|
706
|
-
return !!lookup(VERTEX_PROJECT_ENV_VAR)?.trim();
|
|
707
|
-
}
|
|
708
|
-
__name(hasVertexProjectConfigured, "hasVertexProjectConfigured");
|
|
709
|
-
function usesVertexApplicationDefaultCredentials(config) {
|
|
710
|
-
return config.authType === "vertex-ai" /* USE_VERTEX_AI */ && !config.apiKeyEnvKey && hasVertexProjectConfigured();
|
|
711
|
-
}
|
|
712
|
-
__name(usesVertexApplicationDefaultCredentials, "usesVertexApplicationDefaultCredentials");
|
|
713
|
-
function validateModelConfig(config, isStrictModelProvider = false) {
|
|
714
|
-
const errors = [];
|
|
715
|
-
if (!config.apiKey && !usesVertexApplicationDefaultCredentials(config)) {
|
|
716
|
-
if (isStrictModelProvider) {
|
|
717
|
-
errors.push(
|
|
718
|
-
new StrictMissingCredentialsError(
|
|
719
|
-
config.authType,
|
|
720
|
-
config.model,
|
|
721
|
-
config.apiKeyEnvKey
|
|
722
|
-
)
|
|
723
|
-
);
|
|
724
|
-
} else {
|
|
725
|
-
const envKey = config.apiKeyEnvKey || getDefaultApiKeyEnvVar(config.authType);
|
|
726
|
-
errors.push(
|
|
727
|
-
new MissingApiKeyError({
|
|
728
|
-
authType: config.authType,
|
|
729
|
-
model: config.model,
|
|
730
|
-
baseUrl: config.baseUrl,
|
|
731
|
-
envKey,
|
|
732
|
-
explicitEnvKey: config.apiKeyEnvKey
|
|
733
|
-
})
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
if (!config.model) {
|
|
738
|
-
if (isStrictModelProvider) {
|
|
739
|
-
errors.push(new StrictMissingModelIdError(config.authType));
|
|
740
|
-
} else {
|
|
741
|
-
const envKey = getDefaultModelEnvVar(config.authType);
|
|
742
|
-
errors.push(new MissingModelError({ authType: config.authType, envKey }));
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
if (config.authType === "anthropic" /* USE_ANTHROPIC */ && !config.baseUrl) {
|
|
746
|
-
if (isStrictModelProvider) {
|
|
747
|
-
errors.push(
|
|
748
|
-
new MissingBaseUrlError({
|
|
749
|
-
authType: config.authType,
|
|
750
|
-
model: config.model
|
|
751
|
-
})
|
|
752
|
-
);
|
|
753
|
-
} else if (config.authType === "anthropic" /* USE_ANTHROPIC */) {
|
|
754
|
-
errors.push(new MissingAnthropicBaseUrlEnvError());
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
return { valid: errors.length === 0, errors };
|
|
758
|
-
}
|
|
759
|
-
__name(validateModelConfig, "validateModelConfig");
|
|
760
|
-
function getModuleNotFoundError(error) {
|
|
761
|
-
let current = error;
|
|
762
|
-
while (current instanceof Error) {
|
|
763
|
-
if ("code" in current && current.code === "ERR_MODULE_NOT_FOUND") {
|
|
764
|
-
return current;
|
|
765
|
-
}
|
|
766
|
-
current = current.cause;
|
|
767
|
-
}
|
|
768
|
-
return void 0;
|
|
769
|
-
}
|
|
770
|
-
__name(getModuleNotFoundError, "getModuleNotFoundError");
|
|
771
|
-
function wrapProviderLoadError(error, authType) {
|
|
772
|
-
const moduleNotFoundError = getModuleNotFoundError(error);
|
|
773
|
-
if (!moduleNotFoundError) {
|
|
774
|
-
return error;
|
|
775
|
-
}
|
|
776
|
-
return new Error(
|
|
777
|
-
`O1-Code was updated in the background and needs to be restarted.
|
|
778
|
-
Please exit and restart O1-Code to use the '${authType}' provider.`,
|
|
779
|
-
{ cause: moduleNotFoundError }
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
__name(wrapProviderLoadError, "wrapProviderLoadError");
|
|
783
|
-
var LazyContentGenerator = class {
|
|
784
|
-
constructor(loader) {
|
|
785
|
-
this.loader = loader;
|
|
786
|
-
}
|
|
787
|
-
static {
|
|
788
|
-
__name(this, "LazyContentGenerator");
|
|
789
|
-
}
|
|
790
|
-
generatorPromise;
|
|
791
|
-
preloadedOnly = false;
|
|
792
|
-
getGenerator() {
|
|
793
|
-
this.generatorPromise ??= this.loader();
|
|
794
|
-
return this.generatorPromise;
|
|
795
|
-
}
|
|
796
|
-
getGeneratorForUse() {
|
|
797
|
-
this.preloadedOnly = false;
|
|
798
|
-
return this.getGenerator();
|
|
799
|
-
}
|
|
800
|
-
preload() {
|
|
801
|
-
if (!this.generatorPromise) {
|
|
802
|
-
this.preloadedOnly = true;
|
|
803
|
-
}
|
|
804
|
-
return this.getGenerator();
|
|
805
|
-
}
|
|
806
|
-
resetPreload() {
|
|
807
|
-
if (!this.preloadedOnly) return;
|
|
808
|
-
this.preloadedOnly = false;
|
|
809
|
-
this.generatorPromise = void 0;
|
|
810
|
-
}
|
|
811
|
-
async generateContent(request, userPromptId) {
|
|
812
|
-
return (await this.getGeneratorForUse()).generateContent(
|
|
813
|
-
request,
|
|
814
|
-
userPromptId
|
|
815
|
-
);
|
|
816
|
-
}
|
|
817
|
-
async generateContentStream(request, userPromptId) {
|
|
818
|
-
return (await this.getGeneratorForUse()).generateContentStream(
|
|
819
|
-
request,
|
|
820
|
-
userPromptId
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
async embedContent(request) {
|
|
824
|
-
return (await this.getGeneratorForUse()).embedContent(request);
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
async function preloadContentGenerator(generator) {
|
|
828
|
-
if (generator instanceof LazyContentGenerator) {
|
|
829
|
-
await generator.preload();
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
__name(preloadContentGenerator, "preloadContentGenerator");
|
|
833
|
-
function resetPreloadedContentGenerator(generator) {
|
|
834
|
-
if (generator instanceof LazyContentGenerator) {
|
|
835
|
-
generator.resetPreload();
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
__name(resetPreloadedContentGenerator, "resetPreloadedContentGenerator");
|
|
839
|
-
async function createContentGenerator(generatorConfig, config) {
|
|
840
|
-
const validation = validateModelConfig(generatorConfig, false);
|
|
841
|
-
if (!validation.valid) {
|
|
842
|
-
throw new Error(validation.errors.map((e) => e.message).join("\n"));
|
|
843
|
-
}
|
|
844
|
-
const authType = generatorConfig.authType;
|
|
845
|
-
if (!authType) {
|
|
846
|
-
throw new Error("ContentGeneratorConfig must have an authType");
|
|
847
|
-
}
|
|
848
|
-
await preloadRuntimeFetchModule();
|
|
849
|
-
let loadBaseGenerator;
|
|
850
|
-
try {
|
|
851
|
-
if (authType === "openai" /* USE_OPENAI */) {
|
|
852
|
-
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
853
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-62C5JSNE.js");
|
|
854
|
-
return createOpenAIContentGenerator(generatorConfig, config);
|
|
855
|
-
}, "loadBaseGenerator");
|
|
856
|
-
} else if (authType === "openai-responses" /* USE_OPENAI_RESPONSES */) {
|
|
857
|
-
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
858
|
-
const { createOpenAIResponsesContentGenerator } = await import("./openaiResponsesContentGenerator-JSS3U575.js");
|
|
859
|
-
return createOpenAIResponsesContentGenerator(generatorConfig, config);
|
|
860
|
-
}, "loadBaseGenerator");
|
|
861
|
-
} else if (authType === "anthropic" /* USE_ANTHROPIC */) {
|
|
862
|
-
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
863
|
-
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-2VK5J36U.js");
|
|
864
|
-
return createAnthropicContentGenerator(generatorConfig, config);
|
|
865
|
-
}, "loadBaseGenerator");
|
|
866
|
-
} else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
867
|
-
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
868
|
-
const { createLlmContentGenerator } = await import("./llm-content-generator-I62R6Q4I.js");
|
|
869
|
-
return createLlmContentGenerator(generatorConfig, config);
|
|
870
|
-
}, "loadBaseGenerator");
|
|
871
|
-
} else {
|
|
872
|
-
throw new Error(
|
|
873
|
-
`Error creating contentGenerator: Unsupported authType: ${authType}`
|
|
874
|
-
);
|
|
875
|
-
}
|
|
876
|
-
} catch (error) {
|
|
877
|
-
throw wrapProviderLoadError(error, authType);
|
|
878
|
-
}
|
|
879
|
-
return new LazyContentGenerator(async () => {
|
|
880
|
-
try {
|
|
881
|
-
const [baseGenerator, { LoggingContentGenerator }] = await Promise.all([
|
|
882
|
-
loadBaseGenerator(),
|
|
883
|
-
import("./loggingContentGenerator-53CAIYCN.js")
|
|
884
|
-
]);
|
|
885
|
-
return new LoggingContentGenerator(
|
|
886
|
-
baseGenerator,
|
|
887
|
-
config,
|
|
888
|
-
generatorConfig
|
|
889
|
-
);
|
|
890
|
-
} catch (error) {
|
|
891
|
-
throw wrapProviderLoadError(error, authType);
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
__name(createContentGenerator, "createContentGenerator");
|
|
896
|
-
|
|
897
454
|
// packages/core/src/core/modalityDefaults.ts
|
|
898
455
|
init_esbuild_shims();
|
|
899
456
|
var FULL_MULTIMODAL = {
|
|
@@ -1009,15 +566,6 @@ function isTieredEffortWireModel(model, configuredReasoning) {
|
|
|
1009
566
|
__name(isTieredEffortWireModel, "isTieredEffortWireModel");
|
|
1010
567
|
|
|
1011
568
|
export {
|
|
1012
|
-
getDefaultApiKeyEnvVar,
|
|
1013
|
-
VERTEX_ADC_HINT,
|
|
1014
|
-
DEFAULT_O1CODE_EMBEDDING_MODEL,
|
|
1015
|
-
MAINLINE_CODER_MODEL,
|
|
1016
|
-
MODEL_GENERATION_CONFIG_FIELDS,
|
|
1017
|
-
PROVIDER_SOURCED_FIELDS,
|
|
1018
|
-
AUTH_ENV_MAPPINGS,
|
|
1019
|
-
DEFAULT_MODELS,
|
|
1020
|
-
AuthType,
|
|
1021
569
|
DEFAULT_TOKEN_LIMIT,
|
|
1022
570
|
OUTPUT_TOKEN_CEILING,
|
|
1023
571
|
clampOutputTokensToWindow,
|
|
@@ -1040,31 +588,15 @@ export {
|
|
|
1040
588
|
parseModelReasoningCapabilities,
|
|
1041
589
|
defaultModalities,
|
|
1042
590
|
isDashScopeWireModel,
|
|
1043
|
-
isTieredEffortWireModel
|
|
1044
|
-
resolveContentGeneratorConfigWithSources,
|
|
1045
|
-
hasVertexProjectConfigured,
|
|
1046
|
-
preloadContentGenerator,
|
|
1047
|
-
resetPreloadedContentGenerator,
|
|
1048
|
-
createContentGenerator
|
|
591
|
+
isTieredEffortWireModel
|
|
1049
592
|
};
|
|
1050
593
|
/**
|
|
1051
594
|
* @license
|
|
1052
|
-
* Copyright 2025 Qwen
|
|
1053
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1054
|
-
*/
|
|
1055
|
-
/**
|
|
1056
|
-
* @license
|
|
1057
|
-
* Copyright 2025 Google LLC
|
|
1058
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1059
|
-
*/
|
|
1060
|
-
/**
|
|
1061
|
-
* @license
|
|
1062
|
-
* Copyright 2025 Google LLC
|
|
1063
|
-
* Copyright 2026 Qwen Team
|
|
595
|
+
* Copyright 2025 Qwen
|
|
1064
596
|
* SPDX-License-Identifier: Apache-2.0
|
|
1065
597
|
*/
|
|
1066
598
|
/**
|
|
1067
599
|
* @license
|
|
1068
|
-
* Copyright 2025 Qwen
|
|
600
|
+
* Copyright 2025 Qwen Team
|
|
1069
601
|
* SPDX-License-Identifier: Apache-2.0
|
|
1070
602
|
*/
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
getRateLimitErrorDetails
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TC2TJAOF.js";
|
|
6
6
|
import {
|
|
7
7
|
isInternalPromptId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZGPPP7FC.js";
|
|
9
9
|
import {
|
|
10
10
|
createDebugLogger
|
|
11
11
|
} from "./chunk-UK2KIU2V.js";
|
|
@@ -639,6 +639,20 @@ function buildSystemPromptSuffix(text) {
|
|
|
639
639
|
${trimmed}` : "";
|
|
640
640
|
}
|
|
641
641
|
__name(buildSystemPromptSuffix, "buildSystemPromptSuffix");
|
|
642
|
+
var SUMMARY_MODE_PROMPT = `# Display mode: Summary
|
|
643
|
+
|
|
644
|
+
The user chose the Summary display mode: they follow your work through short sentences and do not read code.
|
|
645
|
+
|
|
646
|
+
- Write in plain language. Say what you are doing and why, not how.
|
|
647
|
+
- Do not include code blocks, diffs, file contents or full commands unless the user asks for them. Name a file only when it helps the user.
|
|
648
|
+
- Always state the risks, caveats and failed checks, and anything the user must decide or do. Summary never means leaving those out.`;
|
|
649
|
+
function withDisplayModePrompt(prompt, displayMode, interactionMode) {
|
|
650
|
+
if (displayMode !== "summary" || interactionMode !== "interactive") {
|
|
651
|
+
return prompt;
|
|
652
|
+
}
|
|
653
|
+
return `${prompt}${buildSystemPromptSuffix(SUMMARY_MODE_PROMPT)}`;
|
|
654
|
+
}
|
|
655
|
+
__name(withDisplayModePrompt, "withDisplayModePrompt");
|
|
642
656
|
function assembleSystemPrompt(layers) {
|
|
643
657
|
return layers.base + buildSystemPromptSuffix(layers.mediaGuidance ?? void 0) + buildSystemPromptSuffix(layers.contextFiles) + buildSystemPromptSuffix(layers.appendPrompt) + (layers.gitStatus ? `
|
|
644
658
|
|
|
@@ -1910,6 +1924,7 @@ export {
|
|
|
1910
1924
|
getCustomSystemPrompt,
|
|
1911
1925
|
resolveMainSessionOutputStyle,
|
|
1912
1926
|
getCoreSystemPrompt,
|
|
1927
|
+
withDisplayModePrompt,
|
|
1913
1928
|
assembleSystemPrompt,
|
|
1914
1929
|
getCompressionPrompt,
|
|
1915
1930
|
getProjectSummaryPrompt,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
init_esbuild_shims
|
|
5
|
+
} from "./chunk-S2467S6L.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
9
|
+
|
|
10
|
+
// packages/core/src/mcp/token-storage/base-token-storage.ts
|
|
11
|
+
init_esbuild_shims();
|
|
12
|
+
var BaseTokenStorage = class {
|
|
13
|
+
static {
|
|
14
|
+
__name(this, "BaseTokenStorage");
|
|
15
|
+
}
|
|
16
|
+
serviceName;
|
|
17
|
+
constructor(serviceName) {
|
|
18
|
+
this.serviceName = serviceName;
|
|
19
|
+
}
|
|
20
|
+
validateCredentials(credentials) {
|
|
21
|
+
if (!credentials.serverName) {
|
|
22
|
+
throw new Error("Server name is required");
|
|
23
|
+
}
|
|
24
|
+
if (!credentials.token) {
|
|
25
|
+
throw new Error("Token is required");
|
|
26
|
+
}
|
|
27
|
+
if (!credentials.token.accessToken) {
|
|
28
|
+
throw new Error("Access token is required");
|
|
29
|
+
}
|
|
30
|
+
if (!credentials.token.tokenType) {
|
|
31
|
+
throw new Error("Token type is required");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
isTokenExpired(credentials) {
|
|
35
|
+
if (!credentials.token.expiresAt) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
const bufferMs = 5 * 60 * 1e3;
|
|
39
|
+
return Date.now() + bufferMs >= credentials.token.expiresAt;
|
|
40
|
+
}
|
|
41
|
+
sanitizeServerName(serverName) {
|
|
42
|
+
return serverName.replace(/[^a-zA-Z0-9-_.]/g, "_");
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
BaseTokenStorage
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2025 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
53
|
+
*/
|