@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveVoiceStreamConfig,
|
|
8
8
|
resolveVoiceTranscriptionConfig,
|
|
9
9
|
transcribeVoiceAudio
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WCNZRV77.js";
|
|
11
11
|
import {
|
|
12
12
|
getVoiceSettingsScope,
|
|
13
13
|
isSelectableVoiceModel,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readVoiceMode,
|
|
17
17
|
readVoiceModel,
|
|
18
18
|
resolveVoiceTransport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UMXXMSBY.js";
|
|
20
20
|
import {
|
|
21
21
|
WorkspacePermissionRulesSessionRequiredError,
|
|
22
22
|
WorkspaceSettingsPartialPersistError,
|
|
@@ -47,24 +47,24 @@ import {
|
|
|
47
47
|
createIdleWorkspaceProvidersStatus,
|
|
48
48
|
createIdleWorkspaceSkillsStatus,
|
|
49
49
|
mapDomainErrorToErrorKind
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-ETYF6LYZ.js";
|
|
51
51
|
import {
|
|
52
52
|
publicProviderBaseUrl
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-43W64XRD.js";
|
|
54
54
|
import {
|
|
55
55
|
getPersistScopeForModelSelection,
|
|
56
56
|
loadSettings
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-32GJTTKG.js";
|
|
58
58
|
import {
|
|
59
59
|
getWorkspaceTrustStatus
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6243HSOC.js";
|
|
61
61
|
import {
|
|
62
62
|
SkillManager,
|
|
63
63
|
require_yauzl
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YBJ5CGLV.js";
|
|
65
65
|
import {
|
|
66
66
|
ModelsConfig
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-3YQSW6GV.js";
|
|
68
68
|
import {
|
|
69
69
|
writeStderrLine,
|
|
70
70
|
writeStderrLineSafe
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-W3YES77O.js";
|
|
12
12
|
import {
|
|
13
13
|
MissingCliEntryError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ETYF6LYZ.js";
|
|
15
15
|
import {
|
|
16
16
|
external_exports
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YBJ5CGLV.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esbuild_shims
|
|
20
20
|
} from "./chunk-S2467S6L.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-KD7GIK2D.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2DEMKCA3.js";
|
|
12
12
|
import {
|
|
13
13
|
So,
|
|
14
14
|
extractZipArchive
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YBJ5CGLV.js";
|
|
16
16
|
import {
|
|
17
17
|
createDebugLogger
|
|
18
18
|
} from "./chunk-UK2KIU2V.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "./chunk-MLAF3GLB.js";
|
|
17
17
|
import {
|
|
18
18
|
isWorkspaceTrusted
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6243HSOC.js";
|
|
20
20
|
import {
|
|
21
21
|
require_main
|
|
22
22
|
} from "./chunk-EYWIFUPJ.js";
|
|
23
23
|
import {
|
|
24
24
|
adoptExportedCredentialEnvKeys,
|
|
25
25
|
exportedCredentialEnvKeys
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3YQSW6GV.js";
|
|
27
27
|
import {
|
|
28
28
|
writeStderrLineSafe
|
|
29
29
|
} from "./chunk-RANA4SOY.js";
|
|
@@ -2036,22 +2036,157 @@ __name(forget, "forget");
|
|
|
2036
2036
|
|
|
2037
2037
|
// packages/core/src/mcp/token-storage/file-token-storage.ts
|
|
2038
2038
|
init_esbuild_shims();
|
|
2039
|
+
import { promises as fs2 } from "node:fs";
|
|
2040
|
+
import * as path2 from "node:path";
|
|
2041
|
+
import * as crypto2 from "node:crypto";
|
|
2042
|
+
|
|
2043
|
+
// packages/core/src/mcp/token-storage/secret-key.ts
|
|
2044
|
+
init_esbuild_shims();
|
|
2039
2045
|
import { promises as fs } from "node:fs";
|
|
2040
2046
|
import * as path from "node:path";
|
|
2041
2047
|
import * as os from "node:os";
|
|
2042
2048
|
import * as crypto from "node:crypto";
|
|
2049
|
+
var SECRET_KEY_FILE_NAME = "secret-key-v1.json";
|
|
2050
|
+
var KEY_FILE_VERSION = 1;
|
|
2051
|
+
var KEY_BYTES = 32;
|
|
2052
|
+
var CHECK_LABEL = "o1-code-secret-key-check";
|
|
2053
|
+
var DamagedSecretKeyError = class extends Error {
|
|
2054
|
+
static {
|
|
2055
|
+
__name(this, "DamagedSecretKeyError");
|
|
2056
|
+
}
|
|
2057
|
+
filePath;
|
|
2058
|
+
constructor(filePath, options) {
|
|
2059
|
+
super(
|
|
2060
|
+
`${filePath} failed its integrity check: the secret key was modified or damaged`,
|
|
2061
|
+
options
|
|
2062
|
+
);
|
|
2063
|
+
this.name = "DamagedSecretKeyError";
|
|
2064
|
+
this.filePath = filePath;
|
|
2065
|
+
}
|
|
2066
|
+
};
|
|
2067
|
+
function checkValue(key) {
|
|
2068
|
+
return crypto.createHmac("sha256", key).update(CHECK_LABEL).digest("hex");
|
|
2069
|
+
}
|
|
2070
|
+
__name(checkValue, "checkValue");
|
|
2071
|
+
function keyId(check) {
|
|
2072
|
+
return check.slice(0, 16);
|
|
2073
|
+
}
|
|
2074
|
+
__name(keyId, "keyId");
|
|
2075
|
+
function serialize(key) {
|
|
2076
|
+
const file = {
|
|
2077
|
+
version: KEY_FILE_VERSION,
|
|
2078
|
+
key: key.toString("base64"),
|
|
2079
|
+
check: checkValue(key)
|
|
2080
|
+
};
|
|
2081
|
+
return `${JSON.stringify(file, null, 2)}
|
|
2082
|
+
`;
|
|
2083
|
+
}
|
|
2084
|
+
__name(serialize, "serialize");
|
|
2085
|
+
function parse(filePath, data) {
|
|
2086
|
+
let file;
|
|
2087
|
+
try {
|
|
2088
|
+
file = JSON.parse(data);
|
|
2089
|
+
} catch (error) {
|
|
2090
|
+
throw new DamagedSecretKeyError(filePath, { cause: error });
|
|
2091
|
+
}
|
|
2092
|
+
if (file === null || typeof file !== "object" || file.version !== KEY_FILE_VERSION || typeof file.key !== "string" || typeof file.check !== "string") {
|
|
2093
|
+
throw new DamagedSecretKeyError(filePath);
|
|
2094
|
+
}
|
|
2095
|
+
const key = Buffer.from(file.key, "base64");
|
|
2096
|
+
const check = checkValue(key);
|
|
2097
|
+
if (key.length !== KEY_BYTES || file.check.length !== check.length || !crypto.timingSafeEqual(Buffer.from(file.check), Buffer.from(check))) {
|
|
2098
|
+
throw new DamagedSecretKeyError(filePath);
|
|
2099
|
+
}
|
|
2100
|
+
return { key, id: keyId(check), filePath };
|
|
2101
|
+
}
|
|
2102
|
+
__name(parse, "parse");
|
|
2103
|
+
async function read(filePath) {
|
|
2104
|
+
let data;
|
|
2105
|
+
try {
|
|
2106
|
+
data = await fs.readFile(filePath, "utf-8");
|
|
2107
|
+
} catch (error) {
|
|
2108
|
+
if (error.code === "ENOENT") return null;
|
|
2109
|
+
throw error;
|
|
2110
|
+
}
|
|
2111
|
+
return parse(filePath, data);
|
|
2112
|
+
}
|
|
2113
|
+
__name(read, "read");
|
|
2114
|
+
async function create(filePath) {
|
|
2115
|
+
const dir = path.dirname(filePath);
|
|
2116
|
+
await fs.mkdir(dir, { recursive: true, mode: 448 });
|
|
2117
|
+
const content = serialize(crypto.randomBytes(KEY_BYTES));
|
|
2118
|
+
const tmpPath = path.join(
|
|
2119
|
+
dir,
|
|
2120
|
+
`.${SECRET_KEY_FILE_NAME}.${process.pid}.${crypto.randomBytes(6).toString("hex")}.tmp`
|
|
2121
|
+
);
|
|
2122
|
+
await fs.writeFile(tmpPath, content, { mode: 384, flag: "wx" });
|
|
2123
|
+
try {
|
|
2124
|
+
await fs.link(tmpPath, filePath);
|
|
2125
|
+
} catch (error) {
|
|
2126
|
+
const code = error.code;
|
|
2127
|
+
if (code !== "EEXIST") {
|
|
2128
|
+
await fs.writeFile(filePath, content, { mode: 384, flag: "wx" });
|
|
2129
|
+
}
|
|
2130
|
+
} finally {
|
|
2131
|
+
await fs.unlink(tmpPath).catch(() => void 0);
|
|
2132
|
+
}
|
|
2133
|
+
const key = await read(filePath);
|
|
2134
|
+
if (!key) throw new DamagedSecretKeyError(filePath);
|
|
2135
|
+
return key;
|
|
2136
|
+
}
|
|
2137
|
+
__name(create, "create");
|
|
2138
|
+
var cache = /* @__PURE__ */ new Map();
|
|
2139
|
+
async function loadSecretKey(configDir, options) {
|
|
2140
|
+
const filePath = path.join(configDir, SECRET_KEY_FILE_NAME);
|
|
2141
|
+
const cached = cache.get(filePath);
|
|
2142
|
+
if (cached) return cached;
|
|
2143
|
+
let key = await read(filePath);
|
|
2144
|
+
if (!key && options.create) {
|
|
2145
|
+
key = await create(filePath);
|
|
2146
|
+
}
|
|
2147
|
+
if (key) cache.set(filePath, key);
|
|
2148
|
+
return key;
|
|
2149
|
+
}
|
|
2150
|
+
__name(loadSecretKey, "loadSecretKey");
|
|
2151
|
+
function legacySecretKey() {
|
|
2152
|
+
const salt = `${os.hostname()}-${os.userInfo().username}-o1-code`;
|
|
2153
|
+
return crypto.scryptSync("o1-code-oauth", salt, 32);
|
|
2154
|
+
}
|
|
2155
|
+
__name(legacySecretKey, "legacySecretKey");
|
|
2156
|
+
|
|
2157
|
+
// packages/core/src/mcp/token-storage/file-token-storage.ts
|
|
2158
|
+
var SEALED_PREFIX = "o1s2";
|
|
2159
|
+
var AUTH_TAG_BYTES = 16;
|
|
2160
|
+
function describeReason(filePath, reason) {
|
|
2161
|
+
switch (reason) {
|
|
2162
|
+
case "other-machine":
|
|
2163
|
+
return `${filePath} cannot be decrypted here: an earlier version saved it under another host name or user, or it is damaged`;
|
|
2164
|
+
case "other-key":
|
|
2165
|
+
return `${filePath} was sealed with another secret key: the key file of this o1-code home was replaced or recreated`;
|
|
2166
|
+
case "modified":
|
|
2167
|
+
return `${filePath} failed its integrity check: it was modified or damaged`;
|
|
2168
|
+
case "key-damaged":
|
|
2169
|
+
return `${filePath} failed its integrity check: the secret key was modified or damaged`;
|
|
2170
|
+
default:
|
|
2171
|
+
return `${filePath} cannot be read`;
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
__name(describeReason, "describeReason");
|
|
2043
2175
|
var UnreadableSecretFileError = class extends Error {
|
|
2044
2176
|
static {
|
|
2045
2177
|
__name(this, "UnreadableSecretFileError");
|
|
2046
2178
|
}
|
|
2047
2179
|
filePath;
|
|
2180
|
+
reason;
|
|
2048
2181
|
constructor(filePath, options) {
|
|
2182
|
+
const reason = options?.reason ?? "other-machine";
|
|
2049
2183
|
super(
|
|
2050
|
-
|
|
2051
|
-
options
|
|
2184
|
+
describeReason(filePath, reason),
|
|
2185
|
+
options?.cause === void 0 ? void 0 : { cause: options.cause }
|
|
2052
2186
|
);
|
|
2053
2187
|
this.name = "UnreadableSecretFileError";
|
|
2054
2188
|
this.filePath = filePath;
|
|
2189
|
+
this.reason = reason;
|
|
2055
2190
|
}
|
|
2056
2191
|
};
|
|
2057
2192
|
function isUnreadableSecretFileError(error) {
|
|
@@ -2065,91 +2200,177 @@ function backupStamp(date) {
|
|
|
2065
2200
|
__name(backupStamp, "backupStamp");
|
|
2066
2201
|
async function setAsideUnreadableSecretFile(filePath, now = /* @__PURE__ */ new Date()) {
|
|
2067
2202
|
const backupPath = `${filePath}.unreadable-${backupStamp(now)}.bak`;
|
|
2068
|
-
await
|
|
2203
|
+
await fs2.rename(filePath, backupPath);
|
|
2069
2204
|
return backupPath;
|
|
2070
2205
|
}
|
|
2071
2206
|
__name(setAsideUnreadableSecretFile, "setAsideUnreadableSecretFile");
|
|
2072
|
-
var FileTokenStorage = class extends BaseTokenStorage {
|
|
2207
|
+
var FileTokenStorage = class _FileTokenStorage extends BaseTokenStorage {
|
|
2073
2208
|
static {
|
|
2074
2209
|
__name(this, "FileTokenStorage");
|
|
2075
2210
|
}
|
|
2211
|
+
configDir;
|
|
2076
2212
|
tokenFilePath;
|
|
2077
2213
|
secretFilePath;
|
|
2078
|
-
encryptionKey;
|
|
2079
2214
|
constructor(serviceName) {
|
|
2080
2215
|
super(serviceName);
|
|
2081
|
-
|
|
2082
|
-
this.tokenFilePath =
|
|
2083
|
-
this.secretFilePath =
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2216
|
+
this.configDir = Storage.getGlobalO1CodeDir();
|
|
2217
|
+
this.tokenFilePath = path2.join(this.configDir, "mcp-oauth-tokens-v2.json");
|
|
2218
|
+
this.secretFilePath = path2.join(
|
|
2219
|
+
this.configDir,
|
|
2220
|
+
"extension-secrets-v1.json"
|
|
2221
|
+
);
|
|
2222
|
+
}
|
|
2223
|
+
async secretKey(create2) {
|
|
2224
|
+
try {
|
|
2225
|
+
return await loadSecretKey(this.configDir, { create: create2 });
|
|
2226
|
+
} catch (error) {
|
|
2227
|
+
if (error instanceof DamagedSecretKeyError) {
|
|
2228
|
+
throw new UnreadableSecretFileError(error.filePath, {
|
|
2229
|
+
reason: "key-damaged",
|
|
2230
|
+
cause: error
|
|
2231
|
+
});
|
|
2232
|
+
}
|
|
2233
|
+
throw error;
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
// Binds the ciphertext to the file it was written to, so a sealed file
|
|
2237
|
+
// moved under another sealed file's name fails its integrity check.
|
|
2238
|
+
static associatedData(filePath) {
|
|
2239
|
+
return Buffer.from(`o1-code:${path2.basename(filePath)}`, "utf8");
|
|
2240
|
+
}
|
|
2241
|
+
async encrypt(text, filePath) {
|
|
2242
|
+
const secretKey = await this.secretKey(true);
|
|
2243
|
+
if (!secretKey) {
|
|
2244
|
+
throw new Error("The secret key could not be created");
|
|
2245
|
+
}
|
|
2246
|
+
const iv = crypto2.randomBytes(16);
|
|
2247
|
+
const cipher = crypto2.createCipheriv("aes-256-gcm", secretKey.key, iv, {
|
|
2248
|
+
authTagLength: AUTH_TAG_BYTES
|
|
2249
|
+
});
|
|
2250
|
+
cipher.setAAD(_FileTokenStorage.associatedData(filePath));
|
|
2251
|
+
const encrypted = cipher.update(text, "utf8", "hex") + cipher.final("hex");
|
|
2252
|
+
return [
|
|
2253
|
+
SEALED_PREFIX,
|
|
2254
|
+
secretKey.id,
|
|
2255
|
+
iv.toString("hex"),
|
|
2256
|
+
cipher.getAuthTag().toString("hex"),
|
|
2257
|
+
encrypted
|
|
2258
|
+
].join(":");
|
|
2259
|
+
}
|
|
2260
|
+
/**
|
|
2261
|
+
* Opens a sealed file. `legacy` is set when it was sealed under the host-bound
|
|
2262
|
+
* key of an earlier version, so the caller seals it again under the new key.
|
|
2263
|
+
*/
|
|
2264
|
+
async decrypt(sealed, filePath) {
|
|
2265
|
+
const parts = sealed.trim().split(":");
|
|
2266
|
+
if (parts.length === 3) {
|
|
2267
|
+
try {
|
|
2268
|
+
return {
|
|
2269
|
+
text: _FileTokenStorage.open(legacySecretKey(), parts, null),
|
|
2270
|
+
legacy: true
|
|
2271
|
+
};
|
|
2272
|
+
} catch (error) {
|
|
2273
|
+
throw new UnreadableSecretFileError(filePath, {
|
|
2274
|
+
reason: "other-machine",
|
|
2275
|
+
cause: error
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
if (parts.length !== 5 || parts[0] !== SEALED_PREFIX) {
|
|
2280
|
+
throw new UnreadableSecretFileError(filePath, { reason: "modified" });
|
|
2102
2281
|
}
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2282
|
+
const secretKey = await this.secretKey(false);
|
|
2283
|
+
if (!secretKey || secretKey.id !== parts[1]) {
|
|
2284
|
+
throw new UnreadableSecretFileError(filePath, { reason: "other-key" });
|
|
2285
|
+
}
|
|
2286
|
+
try {
|
|
2287
|
+
return {
|
|
2288
|
+
text: _FileTokenStorage.open(
|
|
2289
|
+
secretKey.key,
|
|
2290
|
+
parts.slice(2),
|
|
2291
|
+
_FileTokenStorage.associatedData(filePath)
|
|
2292
|
+
),
|
|
2293
|
+
legacy: false
|
|
2294
|
+
};
|
|
2295
|
+
} catch (error) {
|
|
2296
|
+
throw new UnreadableSecretFileError(filePath, {
|
|
2297
|
+
reason: "modified",
|
|
2298
|
+
cause: error
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
static open(key, [iv, authTag, encrypted], associatedData) {
|
|
2303
|
+
const decipher = crypto2.createDecipheriv(
|
|
2107
2304
|
"aes-256-gcm",
|
|
2108
|
-
|
|
2109
|
-
iv
|
|
2305
|
+
key,
|
|
2306
|
+
Buffer.from(iv, "hex"),
|
|
2307
|
+
{ authTagLength: AUTH_TAG_BYTES }
|
|
2110
2308
|
);
|
|
2111
|
-
decipher.setAuthTag(authTag);
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
return decrypted;
|
|
2115
|
-
}
|
|
2116
|
-
async ensureDirectoryExists() {
|
|
2117
|
-
const dir = path.dirname(this.tokenFilePath);
|
|
2118
|
-
await fs.mkdir(dir, { recursive: true, mode: 448 });
|
|
2309
|
+
decipher.setAuthTag(Buffer.from(authTag, "hex"));
|
|
2310
|
+
if (associatedData) decipher.setAAD(associatedData);
|
|
2311
|
+
return decipher.update(encrypted, "hex", "utf8") + decipher.final("utf8");
|
|
2119
2312
|
}
|
|
2120
|
-
|
|
2313
|
+
/** Reads and opens a sealed file; null when it does not exist. */
|
|
2314
|
+
async readSealed(filePath) {
|
|
2315
|
+
let data;
|
|
2121
2316
|
try {
|
|
2122
|
-
|
|
2123
|
-
const decrypted = this.decrypt(data);
|
|
2124
|
-
const tokens = JSON.parse(decrypted);
|
|
2125
|
-
return new Map(Object.entries(tokens));
|
|
2317
|
+
data = await fs2.readFile(filePath, "utf-8");
|
|
2126
2318
|
} catch (error) {
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
if (allowMissing) {
|
|
2130
|
-
return /* @__PURE__ */ new Map();
|
|
2131
|
-
}
|
|
2132
|
-
throw new Error("Token file does not exist");
|
|
2133
|
-
}
|
|
2134
|
-
if (err.message?.includes("Invalid encrypted data format") || err.message?.includes(
|
|
2135
|
-
"Unsupported state or unable to authenticate data"
|
|
2136
|
-
)) {
|
|
2137
|
-
throw new Error("Token file corrupted");
|
|
2319
|
+
if (error.code === "ENOENT") {
|
|
2320
|
+
return null;
|
|
2138
2321
|
}
|
|
2139
2322
|
throw error;
|
|
2140
2323
|
}
|
|
2324
|
+
return this.decrypt(data, filePath);
|
|
2141
2325
|
}
|
|
2142
|
-
async
|
|
2326
|
+
async writeSealed(filePath, text) {
|
|
2143
2327
|
await this.ensureDirectoryExists();
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2146
|
-
const encrypted = this.encrypt(json);
|
|
2147
|
-
await atomicWriteFile(this.tokenFilePath, encrypted, {
|
|
2328
|
+
const encrypted = await this.encrypt(text, filePath);
|
|
2329
|
+
await atomicWriteFile(filePath, encrypted, {
|
|
2148
2330
|
mode: 384,
|
|
2149
2331
|
forceMode: true,
|
|
2150
2332
|
noFollow: true
|
|
2151
2333
|
});
|
|
2152
2334
|
}
|
|
2335
|
+
// Moving a file sealed by an earlier version onto the new key is best
|
|
2336
|
+
// effort: the content was read, and the next write seals it anyway.
|
|
2337
|
+
async migrate(filePath, text) {
|
|
2338
|
+
await this.writeSealed(filePath, text).catch(() => void 0);
|
|
2339
|
+
}
|
|
2340
|
+
async ensureDirectoryExists() {
|
|
2341
|
+
await fs2.mkdir(this.configDir, { recursive: true, mode: 448 });
|
|
2342
|
+
}
|
|
2343
|
+
async loadTokens(allowMissing = false) {
|
|
2344
|
+
let opened;
|
|
2345
|
+
try {
|
|
2346
|
+
opened = await this.readSealed(this.tokenFilePath);
|
|
2347
|
+
} catch (error) {
|
|
2348
|
+
if (isUnreadableSecretFileError(error)) {
|
|
2349
|
+
throw new Error("Token file corrupted", { cause: error });
|
|
2350
|
+
}
|
|
2351
|
+
throw error;
|
|
2352
|
+
}
|
|
2353
|
+
if (!opened) {
|
|
2354
|
+
if (allowMissing) {
|
|
2355
|
+
return /* @__PURE__ */ new Map();
|
|
2356
|
+
}
|
|
2357
|
+
throw new Error("Token file does not exist");
|
|
2358
|
+
}
|
|
2359
|
+
let tokens;
|
|
2360
|
+
try {
|
|
2361
|
+
tokens = JSON.parse(opened.text);
|
|
2362
|
+
} catch (error) {
|
|
2363
|
+
throw new Error("Token file corrupted", { cause: error });
|
|
2364
|
+
}
|
|
2365
|
+
if (opened.legacy) {
|
|
2366
|
+
await this.migrate(this.tokenFilePath, opened.text);
|
|
2367
|
+
}
|
|
2368
|
+
return new Map(Object.entries(tokens));
|
|
2369
|
+
}
|
|
2370
|
+
async saveTokens(tokens) {
|
|
2371
|
+
const data = Object.fromEntries(tokens);
|
|
2372
|
+
await this.writeSealed(this.tokenFilePath, JSON.stringify(data, null, 2));
|
|
2373
|
+
}
|
|
2153
2374
|
async getCredentials(serverName) {
|
|
2154
2375
|
const tokens = await this.loadTokens();
|
|
2155
2376
|
const credentials = tokens.get(serverName);
|
|
@@ -2179,7 +2400,7 @@ var FileTokenStorage = class extends BaseTokenStorage {
|
|
|
2179
2400
|
tokens.delete(serverName);
|
|
2180
2401
|
if (tokens.size === 0) {
|
|
2181
2402
|
try {
|
|
2182
|
-
await
|
|
2403
|
+
await fs2.unlink(this.tokenFilePath);
|
|
2183
2404
|
} catch (error) {
|
|
2184
2405
|
const err = error;
|
|
2185
2406
|
if (err.code !== "ENOENT") {
|
|
@@ -2206,7 +2427,7 @@ var FileTokenStorage = class extends BaseTokenStorage {
|
|
|
2206
2427
|
}
|
|
2207
2428
|
async clearAll() {
|
|
2208
2429
|
try {
|
|
2209
|
-
await
|
|
2430
|
+
await fs2.unlink(this.tokenFilePath);
|
|
2210
2431
|
} catch (error) {
|
|
2211
2432
|
const err = error;
|
|
2212
2433
|
if (err.code !== "ENOENT") {
|
|
@@ -2215,32 +2436,26 @@ var FileTokenStorage = class extends BaseTokenStorage {
|
|
|
2215
2436
|
}
|
|
2216
2437
|
}
|
|
2217
2438
|
async loadSecrets() {
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
} catch (error) {
|
|
2222
|
-
const err = error;
|
|
2223
|
-
if (err.code === "ENOENT") {
|
|
2224
|
-
return {};
|
|
2225
|
-
}
|
|
2226
|
-
throw error;
|
|
2439
|
+
const opened = await this.readSealed(this.secretFilePath);
|
|
2440
|
+
if (!opened) {
|
|
2441
|
+
return {};
|
|
2227
2442
|
}
|
|
2443
|
+
let secrets;
|
|
2228
2444
|
try {
|
|
2229
|
-
|
|
2445
|
+
secrets = JSON.parse(opened.text);
|
|
2230
2446
|
} catch (error) {
|
|
2231
2447
|
throw new UnreadableSecretFileError(this.secretFilePath, {
|
|
2448
|
+
reason: "modified",
|
|
2232
2449
|
cause: error
|
|
2233
2450
|
});
|
|
2234
2451
|
}
|
|
2452
|
+
if (opened.legacy) {
|
|
2453
|
+
await this.migrate(this.secretFilePath, opened.text);
|
|
2454
|
+
}
|
|
2455
|
+
return secrets;
|
|
2235
2456
|
}
|
|
2236
2457
|
async saveSecrets(secrets) {
|
|
2237
|
-
await this.
|
|
2238
|
-
const encrypted = this.encrypt(JSON.stringify(secrets));
|
|
2239
|
-
await atomicWriteFile(this.secretFilePath, encrypted, {
|
|
2240
|
-
mode: 384,
|
|
2241
|
-
forceMode: true,
|
|
2242
|
-
noFollow: true
|
|
2243
|
-
});
|
|
2458
|
+
await this.writeSealed(this.secretFilePath, JSON.stringify(secrets));
|
|
2244
2459
|
}
|
|
2245
2460
|
// The encrypted file is always usable, so the file backend is always available.
|
|
2246
2461
|
async isAvailable() {
|
|
@@ -2454,7 +2669,7 @@ __name(isO1ConnectError, "isO1ConnectError");
|
|
|
2454
2669
|
function describeO1ConnectError(error) {
|
|
2455
2670
|
if (isO1ConnectError(error) && error.code === "store_failed" && isUnreadableSecretFileError(error.cause)) {
|
|
2456
2671
|
return {
|
|
2457
|
-
message: `The secret store
|
|
2672
|
+
message: `The secret store cannot be read: ${error.cause.message}. Setting up the connection code again offers to keep it as a .bak and start a new one.`,
|
|
2458
2673
|
forgetAndSetUpAgain: false,
|
|
2459
2674
|
unreadableSecretFile: error.cause.filePath
|
|
2460
2675
|
};
|
|
@@ -2544,11 +2759,11 @@ export {
|
|
|
2544
2759
|
};
|
|
2545
2760
|
/**
|
|
2546
2761
|
* @license
|
|
2547
|
-
* Copyright
|
|
2762
|
+
* Copyright 2026 o1-code contributors
|
|
2548
2763
|
* SPDX-License-Identifier: Apache-2.0
|
|
2549
2764
|
*/
|
|
2550
2765
|
/**
|
|
2551
2766
|
* @license
|
|
2552
|
-
* Copyright
|
|
2767
|
+
* Copyright 2025 Google LLC
|
|
2553
2768
|
* SPDX-License-Identifier: Apache-2.0
|
|
2554
2769
|
*/
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
isInternalPromptId
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BZYI5TLI.js";
|
|
6
6
|
import {
|
|
7
7
|
getRateLimitErrorDetails
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3JWJHYFV.js";
|
|
9
9
|
import {
|
|
10
10
|
createDebugLogger
|
|
11
11
|
} from "./chunk-UK2KIU2V.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
MODIFIER_SHIFT_BIT,
|
|
17
17
|
MODIFIER_SUPER_BIT,
|
|
18
18
|
clipboardHasImage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4HQKNVMC.js";
|
|
20
20
|
import {
|
|
21
21
|
noteInteraction
|
|
22
22
|
} from "./chunk-UMIHM32I.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
KittySequenceOverflowEvent,
|
|
35
35
|
logKittySequenceOverflow
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BZYI5TLI.js";
|
|
37
37
|
import {
|
|
38
38
|
createDebugLogger
|
|
39
39
|
} from "./chunk-UK2KIU2V.js";
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
sanitizeProviderBaseUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-43W64XRD.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveModelConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YBJ5CGLV.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveModelSelectionAuthType,
|
|
11
11
|
resolveProviderProtocol,
|
|
12
12
|
stripRuntimeSnapshotPrefix,
|
|
13
13
|
tryResolveModelProtocol
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3YQSW6GV.js";
|
|
15
15
|
import {
|
|
16
16
|
REASONING_EFFORT_TIERS,
|
|
17
17
|
normalizeReasoningEffort
|
|
18
18
|
} from "./chunk-72EBG4FJ.js";
|
|
19
19
|
import {
|
|
20
20
|
MODEL_GENERATION_CONFIG_FIELDS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TTQS6ARK.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthType
|
|
24
24
|
} from "./chunk-VTIYMCRG.js";
|