@organizaone/o1-code 0.2.2 → 0.4.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.
Files changed (275) hide show
  1. package/bundled/commit/SKILL.md +1 -1
  2. package/bundled/debugging/SKILL.md +58 -0
  3. package/bundled/debugging/references/root-cause-tracing.md +37 -0
  4. package/bundled/design/SKILL.md +65 -0
  5. package/bundled/execute-plan/SKILL.md +51 -0
  6. package/bundled/extension-creator/SKILL.md +1 -1
  7. package/bundled/finish/SKILL.md +1 -1
  8. package/bundled/goal-draft/SKILL.md +1 -1
  9. package/bundled/new-app/SKILL.md +2 -0
  10. package/bundled/qc-helper/docs/configuration/auth.md +3 -1
  11. package/bundled/qc-helper/docs/configuration/model-providers.md +9 -0
  12. package/bundled/review/SKILL.md +1 -1
  13. package/bundled/tdd/SKILL.md +56 -0
  14. package/bundled/tdd/references/good-tests.md +37 -0
  15. package/bundled/write-plan/SKILL.md +66 -0
  16. package/chunks/{MaxSizedBox-5SCM5KM2.js → MaxSizedBox-XCALBLMI.js} +26 -25
  17. package/chunks/{StandaloneSessionPicker-AJJBYDA3.js → StandaloneSessionPicker-4LKUBXYB.js} +39 -38
  18. package/chunks/{acp-subagent-executor-K3G5OOSP.js → acp-subagent-executor-DZXFG4X5.js} +29 -28
  19. package/chunks/{acpAgent-DKLAK5PM.js → acpAgent-Q7ZCQ435.js} +66 -65
  20. package/chunks/{agent-6OWW6WY2.js → agent-RMFRDIO3.js} +16 -15
  21. package/chunks/{agent-headless-YPSZDZPG.js → agent-headless-S5VQMQW5.js} +16 -15
  22. package/chunks/{anthropicContentGenerator-3IK5TV3K.js → anthropicContentGenerator-FJGXD34B.js} +44 -15
  23. package/chunks/{askUserQuestion-3IDRGYW3.js → askUserQuestion-LD66OM5J.js} +1 -1
  24. package/chunks/{bridge-ZX33T7DG.js → bridge-MPG5WH6G.js} +29 -28
  25. package/chunks/{chunk-QHQFX3P5.js → chunk-4372PUEO.js} +30 -30
  26. package/chunks/{chunk-5VYJVTAM.js → chunk-4NNLMYE3.js} +1 -1
  27. package/chunks/{chunk-RZCK3LM2.js → chunk-532CXTUJ.js} +30 -30
  28. package/chunks/{chunk-S64M5W2S.js → chunk-5KDZJN3L.js} +10 -10
  29. package/chunks/{chunk-7F23OSW4.js → chunk-5L6KVN6H.js} +1 -1
  30. package/chunks/{chunk-62HSC5KO.js → chunk-5PZDTHS6.js} +2 -2
  31. package/chunks/{chunk-QMW7RSXD.js → chunk-5TJZ5DBW.js} +1 -1
  32. package/chunks/{chunk-EPCKGEAE.js → chunk-672SUHHG.js} +1 -1
  33. package/chunks/{chunk-4WPPTUCX.js → chunk-6ET4INUP.js} +2 -2
  34. package/chunks/{chunk-D3VJGSXW.js → chunk-7K3C4CS2.js} +6 -6
  35. package/chunks/{chunk-UVUHDO2Y.js → chunk-7NLIWXMU.js} +1 -1
  36. package/chunks/{chunk-3WHURT5H.js → chunk-7YG72VGA.js} +1 -1
  37. package/chunks/{chunk-IBKJ7UBC.js → chunk-A53V5RUQ.js} +3 -3
  38. package/chunks/{chunk-FW5URUJS.js → chunk-AGF6RZYW.js} +3 -3
  39. package/chunks/{chunk-POMHQTHO.js → chunk-AOXGYW3S.js} +6 -6
  40. package/chunks/{chunk-V2R5TAQQ.js → chunk-CIMPNO36.js} +1 -1
  41. package/chunks/{chunk-T6BNDNKW.js → chunk-COABCWBY.js} +5 -3
  42. package/chunks/{chunk-JHFU5Z3V.js → chunk-CVGR5FZZ.js} +1 -1
  43. package/chunks/{chunk-L65YOA4P.js → chunk-DM3OSSGT.js} +2 -2
  44. package/chunks/{chunk-X62LTOGE.js → chunk-DP5BYVKX.js} +56 -56
  45. package/chunks/{chunk-5PY64ILO.js → chunk-DRV3SDND.js} +4 -4
  46. package/chunks/{chunk-54A4EPMP.js → chunk-EPSMNIG6.js} +5 -5
  47. package/chunks/{chunk-EUHJ4MJD.js → chunk-ESAUSKWS.js} +3 -3
  48. package/chunks/{chunk-3BYFQ2H6.js → chunk-ESDBDHDS.js} +1 -1
  49. package/chunks/{chunk-V5YZXZMM.js → chunk-FD5MGAM2.js} +10 -3
  50. package/chunks/{chunk-GY77YVM3.js → chunk-FJHPFQU6.js} +4 -4
  51. package/chunks/{chunk-VIYT2NE4.js → chunk-FOVK2DPM.js} +3 -3
  52. package/chunks/{chunk-N2WMG5XF.js → chunk-FXEUBHXO.js} +2 -2
  53. package/chunks/{chunk-WRQYAWUW.js → chunk-GJQHQ3DC.js} +3 -3
  54. package/chunks/{chunk-L7A4D4IY.js → chunk-GWKSWZ3B.js} +1 -1
  55. package/chunks/{chunk-J6YVMK2F.js → chunk-H2V7AUF4.js} +10 -5
  56. package/chunks/{chunk-PC4V3VPG.js → chunk-HRWSTIHZ.js} +1 -1
  57. package/chunks/{chunk-53EO7S4Y.js → chunk-HYC64HT7.js} +3 -3
  58. package/chunks/{chunk-PJLUCMQZ.js → chunk-IF63JJ4W.js} +4 -4
  59. package/chunks/{chunk-VGR4BKLQ.js → chunk-IFURAKKH.js} +1 -1
  60. package/chunks/{chunk-TTV7MBGI.js → chunk-IUFQFQ7R.js} +3 -3
  61. package/chunks/{chunk-XMBUOPZG.js → chunk-IYHIP3OB.js} +7 -7
  62. package/chunks/{chunk-Z4H2RDAF.js → chunk-JHKNFNWE.js} +1 -1
  63. package/chunks/{chunk-5WYIBYDU.js → chunk-JPGOF34S.js} +4 -4
  64. package/chunks/{chunk-J4WTP4LX.js → chunk-KCOLW7TS.js} +3 -3
  65. package/chunks/{chunk-XKPECZJM.js → chunk-KD2JFDCT.js} +12 -3
  66. package/chunks/{chunk-Q5D3WECC.js → chunk-KFYFHLDM.js} +1 -1
  67. package/chunks/{chunk-HWG2ZXRT.js → chunk-KN233J25.js} +5 -5
  68. package/chunks/{chunk-YS57I3OQ.js → chunk-L2YHATCP.js} +3 -3
  69. package/chunks/{chunk-REAEIHLD.js → chunk-L4RFUGED.js} +1 -1
  70. package/chunks/{chunk-35HKXSBC.js → chunk-LQR2LD5J.js} +4 -4
  71. package/chunks/{chunk-DGBGYBO4.js → chunk-LWQQFURM.js} +19 -5
  72. package/chunks/{chunk-WSWWZ7IT.js → chunk-M4RMR6BN.js} +2 -2
  73. package/chunks/{chunk-6IF6KATN.js → chunk-MKUV6LDU.js} +2 -2
  74. package/chunks/{chunk-TLHPWOSA.js → chunk-MW6HQT5X.js} +2 -2
  75. package/chunks/{chunk-YCZXGP63.js → chunk-NVNIFGY3.js} +72 -1
  76. package/chunks/{chunk-3XCL57IX.js → chunk-ONLJONFH.js} +1 -1
  77. package/chunks/{chunk-NIYI5272.js → chunk-PAHN3PPP.js} +1 -1
  78. package/chunks/{chunk-677NF5JH.js → chunk-PIVKM7A6.js} +4 -4
  79. package/chunks/{chunk-XJXDZPSD.js → chunk-PU3SYVQ7.js} +3 -3
  80. package/chunks/{chunk-PS7DDP2Q.js → chunk-PUHCGRAC.js} +1 -1
  81. package/chunks/{chunk-KU4ER5BM.js → chunk-PYH6MQ2Q.js} +1 -1
  82. package/chunks/{chunk-OMKGBEIH.js → chunk-Q2AHXMRI.js} +5 -4
  83. package/chunks/{chunk-TQO7BXBQ.js → chunk-Q56YIKDZ.js} +5 -5
  84. package/chunks/{chunk-NVKVO57S.js → chunk-QGDWW62J.js} +1 -1
  85. package/chunks/{chunk-7GTL3WHO.js → chunk-QJVAY275.js} +9 -9
  86. package/chunks/{chunk-X2HM423P.js → chunk-QLDNOCCI.js} +7 -6
  87. package/chunks/{chunk-H76MQGWH.js → chunk-ROJAAA2B.js} +1 -1
  88. package/chunks/{chunk-2KFLZ6RD.js → chunk-RTY3POZ7.js} +2 -2
  89. package/chunks/{chunk-7RYHVZAS.js → chunk-RWN5ULQM.js} +2 -2
  90. package/chunks/{chunk-XAA77MEC.js → chunk-S74WJTCG.js} +3 -3
  91. package/chunks/chunk-SAMGM2NV.js +27 -0
  92. package/chunks/{chunk-HWTDN2JB.js → chunk-SQQVJC75.js} +1 -1
  93. package/chunks/{chunk-UIBQ77SC.js → chunk-T233J2WC.js} +3 -3
  94. package/chunks/{chunk-T3SMR7ET.js → chunk-T2OY4BYB.js} +1 -1
  95. package/chunks/{chunk-K7L7Z5JJ.js → chunk-TXOO3SJ4.js} +9 -9
  96. package/chunks/{chunk-4QRR663K.js → chunk-TY4PWRCX.js} +1 -1
  97. package/chunks/{chunk-O3KQN6OE.js → chunk-U6PVPH4S.js} +1 -1
  98. package/chunks/{chunk-7JU2ULBO.js → chunk-UDQ3FEOE.js} +37 -16
  99. package/chunks/{chunk-4OKN67QV.js → chunk-UIZPA6NX.js} +1 -1
  100. package/chunks/{chunk-FJAC7QWS.js → chunk-UUTO4CEV.js} +1 -1
  101. package/chunks/{chunk-KUSGHH6D.js → chunk-V5LAES7R.js} +1 -1
  102. package/chunks/{chunk-M4M3XQJU.js → chunk-VRSR6QUT.js} +3 -3
  103. package/chunks/{chunk-WYUR66BU.js → chunk-W7IBLOA5.js} +7 -7
  104. package/chunks/{chunk-JASYFKBU.js → chunk-WB4XHWF5.js} +3 -3
  105. package/chunks/{chunk-YEOU65NW.js → chunk-WBXFLYVH.js} +1 -1
  106. package/chunks/{chunk-O7LSTDIS.js → chunk-WEL3TXQG.js} +2 -2
  107. package/chunks/{chunk-QIZ34JTV.js → chunk-WHFNK466.js} +4 -4
  108. package/chunks/{chunk-IBPA7P2S.js → chunk-WQ6N4SRY.js} +12 -12
  109. package/chunks/{chunk-4OCNSFYL.js → chunk-WUKHAI4J.js} +13 -0
  110. package/chunks/{chunk-5D3SQUVZ.js → chunk-X3RSD63L.js} +1 -1
  111. package/chunks/{chunk-S7CMT75P.js → chunk-X6HNUJYB.js} +25 -14
  112. package/chunks/{chunk-46QWU5NF.js → chunk-XID74DEW.js} +1 -1
  113. package/chunks/{chunk-RQOEQ73K.js → chunk-XQILGSD3.js} +201 -160
  114. package/chunks/{chunk-6VAMW6I2.js → chunk-Y4BQMESG.js} +1 -1
  115. package/chunks/{chunk-2HHPWUTH.js → chunk-YNDEPL5B.js} +4 -4
  116. package/chunks/{chunk-ATR7W3VI.js → chunk-YP7V6HRD.js} +1 -1
  117. package/chunks/{codex-subagent-executor-URK6CSXE.js → codex-subagent-executor-E7JQVLPC.js} +29 -28
  118. package/chunks/{contextCommand-NFZZE3E4.js → contextCommand-7L5H2XXP.js} +27 -26
  119. package/chunks/{core-runtime-QX52LNEY.js → core-runtime-X3V7BURU.js} +26 -25
  120. package/chunks/{create-sub-session-2JFP4FMQ.js → create-sub-session-VXPEZMFK.js} +27 -26
  121. package/chunks/{daemon-git-worktree-guard-7JVFR6J3.js → daemon-git-worktree-guard-OYFVIIWI.js} +26 -25
  122. package/chunks/{daemon-status-provider-GGAO5SSF.js → daemon-status-provider-5QIZJJNE.js} +34 -33
  123. package/chunks/{daemon-trust-policy-D6AWUEZK.js → daemon-trust-policy-LVRILVI3.js} +31 -30
  124. package/chunks/{daemon-trust-policy-monitor-77JEJNAK.js → daemon-trust-policy-monitor-GI6PLXY4.js} +31 -30
  125. package/chunks/{deferred-core-runtime-XBSMNSGZ.js → deferred-core-runtime-6CBEDR5U.js} +26 -25
  126. package/chunks/{edit-4AFGA6RJ.js → edit-C6FPBRWV.js} +18 -17
  127. package/chunks/{enterPlanMode-GWCLJSPB.js → enterPlanMode-MNSV64QE.js} +21 -19
  128. package/chunks/{environment-GB72GJFP.js → environment-UHBXJNPE.js} +28 -27
  129. package/chunks/{errors-UB6Y6QB7.js → errors-N36MS36S.js} +28 -27
  130. package/chunks/{execution-tool-SM65QD3E.js → execution-tool-CB46DCPG.js} +18 -17
  131. package/chunks/{execution-worker-277RP2BS.js → execution-worker-KGQ3AKWY.js} +21 -20
  132. package/chunks/{exitPlanMode-YL44MDSN.js → exitPlanMode-XQICYHTC.js} +16 -15
  133. package/chunks/{fast-path-BHS3UUDU.js → fast-path-YHYEVNSH.js} +2 -2
  134. package/chunks/{glob-RMPRZBBM.js → glob-QZN6HURE.js} +16 -15
  135. package/chunks/{goal-tools-IARELLX6.js → goal-tools-DA6LG2SP.js} +16 -15
  136. package/chunks/{handleAutoUpdate-B6H2CUWG.js → handleAutoUpdate-IGXZ2DMP.js} +28 -27
  137. package/chunks/{i18n-PEUDBKCF.js → i18n-IALGY42H.js} +26 -25
  138. package/chunks/{image-gen-5BYQKJXP.js → image-gen-BEM2OTJM.js} +4 -4
  139. package/chunks/{initializer-5CTPR23V.js → initializer-ZIHB4XYC.js} +31 -30
  140. package/chunks/{installationInfo-RKF4FYYG.js → installationInfo-WG2GZFZT.js} +26 -25
  141. package/chunks/{list-JFHTQZXB.js → list-RZD6J74J.js} +33 -32
  142. package/chunks/{llm-ZBVAGEV2.js → llm-46DCEZ2L.js} +57 -56
  143. package/chunks/{llm-content-generator-5ELI577U.js → llm-content-generator-OT4NV35N.js} +3 -3
  144. package/chunks/{loadedSettingsAdapter-A63DFE7G.js → loadedSettingsAdapter-J2GSJPSR.js} +31 -30
  145. package/chunks/{local-execution-environment-JYU5ETM4.js → local-execution-environment-FX5IZ7Z2.js} +21 -20
  146. package/chunks/{loggingContentGenerator-SCVT5IMD.js → loggingContentGenerator-RTFUIXIY.js} +17 -16
  147. package/chunks/{managed-npm-update-CW3A5IYM.js → managed-npm-update-4FBPYKRR.js} +26 -25
  148. package/chunks/{mcp-XCJSXNQS.js → mcp-CGZQMURL.js} +31 -30
  149. package/chunks/{model-call-collection-QHVB4RVP.js → model-call-collection-XSB3IOIM.js} +1 -1
  150. package/chunks/{model-configuration-FMD3UX64.js → model-configuration-7XGFDFQQ.js} +32 -31
  151. package/chunks/{modelConfigUtils-BLJJCU4P.js → modelConfigUtils-55SLUTRW.js} +28 -27
  152. package/chunks/{monitor-ZCZL365W.js → monitor-6FXANYQK.js} +16 -15
  153. package/chunks/{nonInteractiveCli-ND5K3Z6K.js → nonInteractiveCli-7JRQVPTS.js} +56 -55
  154. package/chunks/{nonInteractiveToolExecutor-JDDFIDEA.js → nonInteractiveToolExecutor-EBI7JPSA.js} +17 -16
  155. package/chunks/{notebook-edit-AW454CFZ.js → notebook-edit-4NRLVXGD.js} +17 -16
  156. package/chunks/{omni-5ALTY2B4.js → omni-SCKLBJ7D.js} +12 -11
  157. package/chunks/{openaiContentGenerator-SKPNHTOM.js → openaiContentGenerator-5XUSGWXX.js} +12 -10
  158. package/chunks/{openaiResponsesContentGenerator-G2PVJMGK.js → openaiResponsesContentGenerator-XKJFDUNK.js} +3 -3
  159. package/chunks/{processUtils-HED6IV7T.js → processUtils-RZJXB2SU.js} +2 -2
  160. package/chunks/{prompt-terminal-ledger-IAHXPZ2K.js → prompt-terminal-ledger-WDNYXW7Q.js} +27 -26
  161. package/chunks/{reactive-degrade-UDGAMHBZ.js → reactive-degrade-NS277SXZ.js} +8 -7
  162. package/chunks/{read-file-VM6TL6KB.js → read-file-7A4PDVYW.js} +2 -2
  163. package/chunks/{resumeHistoryUtils-PRCLL7VH.js → resumeHistoryUtils-TQIL6EZ7.js} +27 -26
  164. package/chunks/{ripGrep-RIKFZ5VR.js → ripGrep-APKWY2LV.js} +3 -3
  165. package/chunks/{run-o1-code-serve-D4MM64ZN.js → run-o1-code-serve-ZPJZEWP7.js} +32 -32
  166. package/chunks/{sandboxConfig-RMU6PWYZ.js → sandboxConfig-FJ6SORCO.js} +26 -25
  167. package/chunks/{scheduled-tasks-4GGMZT2G.js → scheduled-tasks-K5FEKEQZ.js} +32 -31
  168. package/chunks/{scheduler-VROKOD3O.js → scheduler-LNBDPLM3.js} +28 -27
  169. package/chunks/{serve-GK3X7AVS.js → serve-YLTHY7B3.js} +31 -30
  170. package/chunks/{server-YQ4IHB2Z.js → server-246IXJV4.js} +59 -58
  171. package/chunks/{session-2IHZ5JXU.js → session-U5PCPVSR.js} +57 -56
  172. package/chunks/{session-attachments-root-AR5PGJNN.js → session-attachments-root-FZBDWCCJ.js} +26 -25
  173. package/chunks/{session-pr-refresh-PIZTNB2B.js → session-pr-refresh-G4DYR2GA.js} +31 -30
  174. package/chunks/{settings-ODFKFJAO.js → settings-5CSMP2XC.js} +30 -29
  175. package/chunks/{shell-C3DRI7IE.js → shell-MHNR7ELX.js} +16 -15
  176. package/chunks/{skill-2EZBO4KR.js → skill-BQH2WIPE.js} +3 -3
  177. package/chunks/{skill-settings-VUTNOTIK.js → skill-settings-NBLEU6N3.js} +31 -30
  178. package/chunks/{spawnChannel-IQQIBRY4.js → spawnChannel-OWXPYFWT.js} +28 -27
  179. package/chunks/{standalone-update-DK57ZQVB.js → standalone-update-U6UUKRKU.js} +27 -26
  180. package/chunks/{startInteractiveUI-JXO3ANAJ.js → startInteractiveUI-EJULGCL7.js} +169 -100
  181. package/chunks/{team-create-SPQB4ZIQ.js → team-create-PJK2OS5B.js} +16 -15
  182. package/chunks/{team-plan-approval-DSGKM6D4.js → team-plan-approval-KSJV7ZQ6.js} +16 -15
  183. package/chunks/{terminal-image-renderer-F46UJJR7.js → terminal-image-renderer-3K262PTL.js} +26 -25
  184. package/chunks/{theme-manager-XHLUGDMV.js → theme-manager-JR5EN3JA.js} +26 -25
  185. package/chunks/{tool-result-media-UVGNZWQ7.js → tool-result-media-5G5L5FUD.js} +12 -11
  186. package/chunks/{tool-search-TTHUGA3R.js → tool-search-RMXHOHI6.js} +2 -2
  187. package/chunks/{total-session-admission-IAZTBDST.js → total-session-admission-DNSWPKQR.js} +29 -28
  188. package/chunks/{trustedFolders-FIKJDDCU.js → trustedFolders-MXRKCC7V.js} +27 -26
  189. package/chunks/{update-relaunch-QM4HHYSH.js → update-relaunch-YZ752NJD.js} +5 -5
  190. package/chunks/{updateCheck-SHHRTDIC.js → updateCheck-5B4SBAZT.js} +26 -25
  191. package/chunks/{upload-config-EB7CHHBR.js → upload-config-CMV4ABF2.js} +6 -5
  192. package/chunks/{useAutoAcceptIndicator-IXO3W3HW.js → useAutoAcceptIndicator-UVPPBAVQ.js} +33 -32
  193. package/chunks/{validateNonInterActiveAuth-76YN2FKV.js → validateNonInterActiveAuth-Y55S3BD5.js} +54 -53
  194. package/chunks/{version-SGBHVOAU.js → version-G4JNJAHP.js} +1 -1
  195. package/chunks/{web-fetch-RKLVSDYG.js → web-fetch-GMZV2QHR.js} +5 -5
  196. package/chunks/{web-search-7OFCLM4E.js → web-search-C74YSUHS.js} +9 -8
  197. package/chunks/{workflow-FLGREXLS.js → workflow-QNJRLQVY.js} +17 -16
  198. package/chunks/{workspace-providers-status-Z5XTDXZO.js → workspace-providers-status-NQJJBMZF.js} +37 -36
  199. package/chunks/{workspace-registration-store-I257THQX.js → workspace-registration-store-SFC3KHYO.js} +1 -1
  200. package/chunks/{workspace-registry-DTSUSPQJ.js → workspace-registry-N5DD5XIM.js} +29 -28
  201. package/chunks/{workspace-runtime-coordinator-7OPXPAWA.js → workspace-runtime-coordinator-BXYGAFZC.js} +30 -29
  202. package/chunks/{workspace-service-DNZFALOP.js → workspace-service-ZVV75GHH.js} +34 -33
  203. package/chunks/{workspace-skills-status-VH3GD2S3.js → workspace-skills-status-ZTULNHRY.js} +34 -33
  204. package/chunks/{workspace-trust-reconciler-LCBJTVGU.js → workspace-trust-reconciler-FFQBYGN6.js} +34 -33
  205. package/chunks/{write-file-NZJANURY.js → write-file-VLVTXBBH.js} +18 -17
  206. package/chunks/{zoom-image-3UVOSRAZ.js → zoom-image-RCU2ZECA.js} +2 -2
  207. package/cli.js +12 -12
  208. package/execution-worker.js +1 -1
  209. package/export-transcript-document.js +1 -1
  210. package/package.json +2 -2
  211. package/release-notes.json +19 -0
  212. package/web-shell/assets/{abnfDiagram-VCTEODGH-DkmBSa44.js → abnfDiagram-VCTEODGH-C79vZf7q.js} +1 -1
  213. package/web-shell/assets/{arc-B6QJJ8tD.js → arc-By9TNVXj.js} +1 -1
  214. package/web-shell/assets/{architectureDiagram-5GKGNRK7-Dfqoi9lk.js → architectureDiagram-5GKGNRK7-dOGgroC-.js} +1 -1
  215. package/web-shell/assets/{blockDiagram-NRAW4CY4-DclmlLhY.js → blockDiagram-NRAW4CY4-B9dT448v.js} +1 -1
  216. package/web-shell/assets/{c4Diagram-UCG6FXSJ-0gbQb3pK.js → c4Diagram-UCG6FXSJ-BZq7QGRh.js} +1 -1
  217. package/web-shell/assets/channel-To-6cDF_.js +1 -0
  218. package/web-shell/assets/{chunk-2Q5K7J3B-BAfaryX9.js → chunk-2Q5K7J3B-Ddaq9Ppd.js} +1 -1
  219. package/web-shell/assets/{chunk-5VM5RSS4-xSewF8tm.js → chunk-5VM5RSS4-BBjSH5RT.js} +1 -1
  220. package/web-shell/assets/{chunk-F27PBJKO-ChEgStih.js → chunk-F27PBJKO-t4UEfBw5.js} +1 -1
  221. package/web-shell/assets/{chunk-G27WJ6UU-BAVY2RkO.js → chunk-G27WJ6UU-D_VuJGqI.js} +1 -1
  222. package/web-shell/assets/{chunk-JWPE2WC7-BXOwTSzw.js → chunk-JWPE2WC7-BqUwq2mP.js} +1 -1
  223. package/web-shell/assets/{chunk-LCL6LL3I-nw5Rmnmd.js → chunk-LCL6LL3I-TJVqP4zd.js} +1 -1
  224. package/web-shell/assets/{chunk-POPQ4Y6H-DIDQ5Zzu.js → chunk-POPQ4Y6H-m8_NZQnQ.js} +1 -1
  225. package/web-shell/assets/{chunk-SVP7TREG-CjdgAA3l.js → chunk-SVP7TREG-CfC75Ei3.js} +1 -1
  226. package/web-shell/assets/{chunk-XXDRQBXY-CKoYFCQo.js → chunk-XXDRQBXY-B-Q7EfLc.js} +1 -1
  227. package/web-shell/assets/classDiagram-DTDB5LWJ-DMRUneay.js +1 -0
  228. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DMRUneay.js +1 -0
  229. package/web-shell/assets/{cose-bilkent-JH36ORCC-OKMrJSR7.js → cose-bilkent-JH36ORCC-D1UWVn_j.js} +1 -1
  230. package/web-shell/assets/{cynefin-OW5HDTMX-BDE2ih0w.js → cynefin-OW5HDTMX-BYyvfU2W.js} +1 -1
  231. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DHgwp6ZM.js → cynefinDiagram-5FMLGOSQ-h31WLcWO.js} +1 -1
  232. package/web-shell/assets/{dagre-3AP2YEHR-mHCyf6A6.js → dagre-3AP2YEHR-CBfIQyq3.js} +1 -1
  233. package/web-shell/assets/{diagram-S7CK7UJ4-CHeZ9YMQ.js → diagram-S7CK7UJ4-DvhgeRNT.js} +1 -1
  234. package/web-shell/assets/{diagram-UQ7AKVKN-D3jwKiUo.js → diagram-UQ7AKVKN-B45bX9cw.js} +1 -1
  235. package/web-shell/assets/{diagram-VSXAHHWV-z9gvH87B.js → diagram-VSXAHHWV-w5_5TRwb.js} +1 -1
  236. package/web-shell/assets/{diagram-VX7I27RA-DBdwXye9.js → diagram-VX7I27RA-DAiR8vdO.js} +1 -1
  237. package/web-shell/assets/{diagram-Z3DM3KII-BZrQD3_5.js → diagram-Z3DM3KII-Da7jZeIH.js} +1 -1
  238. package/web-shell/assets/{ebnfDiagram-PWID7BFC-CsdYNOhn.js → ebnfDiagram-PWID7BFC-B7WF9Qum.js} +1 -1
  239. package/web-shell/assets/{erDiagram-SSCWMZ5O-kLiDhj_x.js → erDiagram-SSCWMZ5O-Dygfopi-.js} +1 -1
  240. package/web-shell/assets/{flowDiagram-A5DVABFB-7E_nqNi9.js → flowDiagram-A5DVABFB-BX7okAuU.js} +1 -1
  241. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-frx7zvbA.js → ganttDiagram-EL5Y4UJY-DmUOanpH.js} +1 -1
  242. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DkyMPkwJ.js → gitGraphDiagram-WWUBYQGX-DQEg-Tk1.js} +1 -1
  243. package/web-shell/assets/{index-oMwDI29g.js → index-CvYCzWNp.js} +1 -1
  244. package/web-shell/assets/{index-EoFfssG4.js → index-v3wlXQpe.js} +3 -3
  245. package/web-shell/assets/{infoDiagram-RXCK75RN-XljVTrU8.js → infoDiagram-RXCK75RN-C1jbM00T.js} +1 -1
  246. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-C9WCq-5V.js → ishikawaDiagram-5VMMS53U-cBjbNTV4.js} +1 -1
  247. package/web-shell/assets/{journeyDiagram-EYS64GPL-DXu9g9Sy.js → journeyDiagram-EYS64GPL-BazjwXUM.js} +1 -1
  248. package/web-shell/assets/{kanban-definition-3QL26DDD-Doy--c8N.js → kanban-definition-3QL26DDD-CUfveZjf.js} +1 -1
  249. package/web-shell/assets/{layout-CS7r1tO4.js → layout-CtpxXAF_.js} +1 -1
  250. package/web-shell/assets/{linear-CzSHv-4-.js → linear-VD2q0Clb.js} +1 -1
  251. package/web-shell/assets/{mermaid.core-7BsQ3zED.js → mermaid.core-B6znjYEM.js} +6 -6
  252. package/web-shell/assets/{mindmap-definition-FBJOCRG2-yHWxnbXN.js → mindmap-definition-FBJOCRG2-bOsOTlkR.js} +1 -1
  253. package/web-shell/assets/{pegDiagram-XKGWAZYB-DHUzJJRt.js → pegDiagram-XKGWAZYB-iWFBUxYu.js} +1 -1
  254. package/web-shell/assets/{pieDiagram-E7YTZNPT-CRjSY45J.js → pieDiagram-E7YTZNPT-BXQlXRf2.js} +1 -1
  255. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CUKQicAO.js → quadrantDiagram-AXDQQJYC-CL0aHMKX.js} +1 -1
  256. package/web-shell/assets/{railroadDiagram-O6MQD6OU-CeIaRI86.js → railroadDiagram-O6MQD6OU-D3kquTPx.js} +1 -1
  257. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-CkdesAuv.js → requirementDiagram-EFPCY7ZU-C0xj6gpA.js} +1 -1
  258. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DRv4I5Uy.js → sankeyDiagram-P5KCCOFB-Dllh3B5D.js} +1 -1
  259. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BUIm21Ol.js → sequenceDiagram-WJ2MYXX4-CMK9o17d.js} +1 -1
  260. package/web-shell/assets/{sizeCapture-X5ZJPWSS-W69Ocb71.js → sizeCapture-X5ZJPWSS-CJ-FZ3Po.js} +1 -1
  261. package/web-shell/assets/{stateDiagram-HBIQ2CUA-DD0RyKZg.js → stateDiagram-HBIQ2CUA-Dk_gRN1Y.js} +1 -1
  262. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B4fWCuA5.js +1 -0
  263. package/web-shell/assets/{swimlanes-XN3QIQJK-vsonhOlr.js → swimlanes-XN3QIQJK-DCCq_M5v.js} +1 -1
  264. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CTS3qlaP.js +8 -0
  265. package/web-shell/assets/{timeline-definition-24CTP7MA-DjdRx1i_.js → timeline-definition-24CTP7MA-D-XQqKZ2.js} +1 -1
  266. package/web-shell/assets/{vennDiagram-4TSXK5OY-CPVhp0Hy.js → vennDiagram-4TSXK5OY-CGtjiahk.js} +1 -1
  267. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-M6mqQteg.js → wardleyDiagram-VM6X3IG4-QC0OvkzN.js} +1 -1
  268. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Cli-2870.js → xychartDiagram-S5SC5T6Z-C-xkrwRW.js} +1 -1
  269. package/web-shell/index.html +1 -1
  270. package/web-shell/sw.js +1 -1
  271. package/web-shell/assets/channel-COSuEQ94.js +0 -1
  272. package/web-shell/assets/classDiagram-DTDB5LWJ-DUKWtFFX.js +0 -1
  273. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DUKWtFFX.js +0 -1
  274. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-C5kAp2c6.js +0 -1
  275. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DP2NE03a.js +0 -8
@@ -11,7 +11,7 @@ import {
11
11
  normalize,
12
12
  parseModelReasoningCapabilities,
13
13
  tokenLimit
14
- } from "./chunk-J6YVMK2F.js";
14
+ } from "./chunk-H2V7AUF4.js";
15
15
  import {
16
16
  DEFAULT_O1CODE_MODEL
17
17
  } from "./chunk-LEXKU5FI.js";
@@ -78,6 +78,163 @@ function stripRuntimeSnapshotPrefix(modelId) {
78
78
  }
79
79
  __name(stripRuntimeSnapshotPrefix, "stripRuntimeSnapshotPrefix");
80
80
 
81
+ // packages/core/src/providers/credential-store.ts
82
+ init_esbuild_shims();
83
+ import * as fs from "node:fs";
84
+ import * as path from "node:path";
85
+ import { randomBytes } from "node:crypto";
86
+ var debugLogger = createDebugLogger("CREDENTIAL_STORE");
87
+ var CREDENTIAL_ID = /^[a-z0-9][a-z0-9-]*$/;
88
+ var DIR_MODE = 448;
89
+ var FILE_MODE = 384;
90
+ function isValidCredentialId(id) {
91
+ return CREDENTIAL_ID.test(id);
92
+ }
93
+ __name(isValidCredentialId, "isValidCredentialId");
94
+ function assertCredentialId(id) {
95
+ if (!isValidCredentialId(id)) {
96
+ throw new Error(
97
+ `Invalid credential id "${id}": use lowercase letters, digits and dashes.`
98
+ );
99
+ }
100
+ }
101
+ __name(assertCredentialId, "assertCredentialId");
102
+ function credentialPath(id) {
103
+ assertCredentialId(id);
104
+ return path.join(Storage.getCredentialsDir(), `${id}.json`);
105
+ }
106
+ __name(credentialPath, "credentialPath");
107
+ function credentialIdForProvider(providerId) {
108
+ return providerId.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9-]/g, "-");
109
+ }
110
+ __name(credentialIdForProvider, "credentialIdForProvider");
111
+ function chmodQuietly(target, mode) {
112
+ try {
113
+ fs.chmodSync(target, mode);
114
+ } catch (error) {
115
+ if (error.code !== "EPERM") throw error;
116
+ }
117
+ }
118
+ __name(chmodQuietly, "chmodQuietly");
119
+ function readCredential(id) {
120
+ const file = credentialPath(id);
121
+ let raw;
122
+ try {
123
+ raw = fs.readFileSync(file, "utf8");
124
+ } catch {
125
+ return void 0;
126
+ }
127
+ try {
128
+ const parsed = JSON.parse(raw);
129
+ const apiKey = parsed && typeof parsed === "object" ? parsed.apiKey : void 0;
130
+ if (typeof apiKey !== "string" || !apiKey.trim()) {
131
+ throw new Error("no apiKey");
132
+ }
133
+ const savedAt = parsed.savedAt;
134
+ return { apiKey, savedAt: typeof savedAt === "string" ? savedAt : "" };
135
+ } catch {
136
+ debugLogger.debug(`Ignoring unreadable credential file for "${id}".`);
137
+ return void 0;
138
+ }
139
+ }
140
+ __name(readCredential, "readCredential");
141
+ function writeCredential(id, { apiKey }) {
142
+ const file = credentialPath(id);
143
+ if (!apiKey.trim()) {
144
+ throw new Error(`Refusing to save an empty API key for "${id}".`);
145
+ }
146
+ const dir = path.dirname(file);
147
+ fs.mkdirSync(dir, { recursive: true, mode: DIR_MODE });
148
+ chmodQuietly(dir, DIR_MODE);
149
+ const credential = {
150
+ apiKey,
151
+ savedAt: (/* @__PURE__ */ new Date()).toISOString()
152
+ };
153
+ const temp = path.join(
154
+ dir,
155
+ `.${id}.${process.pid}.${randomBytes(4).toString("hex")}.tmp`
156
+ );
157
+ try {
158
+ fs.writeFileSync(temp, `${JSON.stringify(credential, null, 2)}
159
+ `, {
160
+ mode: FILE_MODE
161
+ });
162
+ chmodQuietly(temp, FILE_MODE);
163
+ fs.renameSync(temp, file);
164
+ } catch (error) {
165
+ fs.rmSync(temp, { force: true });
166
+ throw error;
167
+ }
168
+ return credential;
169
+ }
170
+ __name(writeCredential, "writeCredential");
171
+ function removeCredential(id) {
172
+ const file = credentialPath(id);
173
+ try {
174
+ fs.unlinkSync(file);
175
+ return true;
176
+ } catch (error) {
177
+ if (error.code === "ENOENT") return false;
178
+ throw error;
179
+ }
180
+ }
181
+ __name(removeCredential, "removeCredential");
182
+ function readSavedApiKey(id) {
183
+ if (!id || !isValidCredentialId(id)) return void 0;
184
+ return readCredential(id)?.apiKey;
185
+ }
186
+ __name(readSavedApiKey, "readSavedApiKey");
187
+ var DENY_ENV_KEYS = /* @__PURE__ */ new Set([
188
+ "NODE_OPTIONS",
189
+ "NODE_PATH",
190
+ "LD_PRELOAD",
191
+ "LD_LIBRARY_PATH",
192
+ "DYLD_INSERT_LIBRARIES",
193
+ "DYLD_LIBRARY_PATH",
194
+ "PATH",
195
+ "HOME",
196
+ "USERPROFILE",
197
+ "TMPDIR",
198
+ "TMP",
199
+ "TEMP"
200
+ ]);
201
+ var ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
202
+ var exported = /* @__PURE__ */ new Map();
203
+ function exportCredentialToEnv(envKey, apiKey) {
204
+ if (!ENV_NAME.test(envKey) || DENY_ENV_KEYS.has(envKey.toUpperCase())) {
205
+ return false;
206
+ }
207
+ const current = process.env[envKey];
208
+ const ours = exported.has(envKey) && exported.get(envKey) === current;
209
+ if (current !== void 0 && current !== "" && !ours) return false;
210
+ process.env[envKey] = apiKey;
211
+ exported.set(envKey, apiKey);
212
+ return true;
213
+ }
214
+ __name(exportCredentialToEnv, "exportCredentialToEnv");
215
+ function isExportedCredentialEnv(envKey) {
216
+ return exported.has(envKey) && exported.get(envKey) === process.env[envKey];
217
+ }
218
+ __name(isExportedCredentialEnv, "isExportedCredentialEnv");
219
+ function withdrawExportedCredential(envKey) {
220
+ if (isExportedCredentialEnv(envKey)) delete process.env[envKey];
221
+ exported.delete(envKey);
222
+ }
223
+ __name(withdrawExportedCredential, "withdrawExportedCredential");
224
+ function exportedCredentialEnvKeys() {
225
+ return [...exported.keys()].filter(isExportedCredentialEnv);
226
+ }
227
+ __name(exportedCredentialEnvKeys, "exportedCredentialEnvKeys");
228
+ function adoptExportedCredentialEnvKeys(keys) {
229
+ for (const key of keys) {
230
+ const value = process.env[key];
231
+ if (!ENV_NAME.test(key) || DENY_ENV_KEYS.has(key.toUpperCase())) continue;
232
+ if (value === void 0 || value === "") continue;
233
+ exported.set(key, value);
234
+ }
235
+ }
236
+ __name(adoptExportedCredentialEnvKeys, "adoptExportedCredentialEnvKeys");
237
+
81
238
  // packages/core/src/providers/model-api-key.ts
82
239
  init_esbuild_shims();
83
240
 
@@ -95,7 +252,7 @@ init_esbuild_shims();
95
252
  init_esbuild_shims();
96
253
 
97
254
  // packages/core/src/models/modelRegistry.ts
98
- var debugLogger = createDebugLogger("MODEL_REGISTRY");
255
+ var debugLogger2 = createDebugLogger("MODEL_REGISTRY");
99
256
  function validateAuthTypeKey(key) {
100
257
  if (Object.values(AuthType).includes(key)) {
101
258
  return key;
@@ -225,7 +382,7 @@ var ModelRegistry = class _ModelRegistry {
225
382
  const knownProtocols = Object.values(AuthType).filter((value) => value !== "openai-responses" /* USE_OPENAI_RESPONSES */).join(", ");
226
383
  const mapped = Object.hasOwn(this.providerProtocolConfig, providerId) ? this.providerProtocolConfig[providerId] : void 0;
227
384
  const message = mapped !== void 0 ? `Provider "${providerId}" maps to "${mapped}" via providerProtocol, which is not a known protocol (${knownProtocols}); skipping.` : `Provider "${providerId}" in modelProviders is not a built-in protocol (${knownProtocols}) and has no providerProtocol mapping; skipping. Add providerProtocol["${providerId}"] to route it to an SDK protocol.`;
228
- debugLogger.warn(message);
385
+ debugLogger2.warn(message);
229
386
  continue;
230
387
  }
231
388
  this.registerAuthTypeModels(protocol, models, providerId);
@@ -239,7 +396,7 @@ var ModelRegistry = class _ModelRegistry {
239
396
  */
240
397
  registerAuthTypeModels(authType, models, providerId) {
241
398
  if (!Array.isArray(models)) {
242
- debugLogger.warn(
399
+ debugLogger2.warn(
243
400
  `modelProviders for provider "${providerId ?? authType}" is not an array; skipping. Expected ModelConfig[]; legacy { protocol, models } entries are normally rewritten by the v5->v4 settings migration.`
244
401
  );
245
402
  return;
@@ -254,7 +411,7 @@ var ModelRegistry = class _ModelRegistry {
254
411
  const modelMap = this.modelsByAuthType.get(modelAuthType) ?? /* @__PURE__ */ new Map();
255
412
  const key = modelRegistryKey(config.id, config.baseUrl);
256
413
  if (modelMap.has(key)) {
257
- debugLogger.warn(
414
+ debugLogger2.warn(
258
415
  `Duplicate model id "${config.id}"${config.baseUrl ? ` with baseUrl "${config.baseUrl}"` : ""} for protocol "${modelAuthType}"${providerLabel}. Using the first registered config.`
259
416
  );
260
417
  continue;
@@ -372,7 +529,7 @@ var ModelRegistry = class _ModelRegistry {
372
529
  config.realtimeOnly
373
530
  ].filter(Boolean).length;
374
531
  if (selectorOnlyCount > 1) {
375
- debugLogger.warn(
532
+ debugLogger2.warn(
376
533
  `Model "${config.id}" in authType "${authType}" has multiple selector-only flags. It will be unreachable in at least one model selector.`
377
534
  );
378
535
  }
@@ -412,7 +569,7 @@ import { isDeepStrictEqual } from "node:util";
412
569
  // packages/core/src/models/modelsConfig.ts
413
570
  init_esbuild_shims();
414
571
  import process2 from "node:process";
415
- var debugLogger2 = createDebugLogger("ModelsConfig");
572
+ var debugLogger3 = createDebugLogger("ModelsConfig");
416
573
  var ModelsConfig = class _ModelsConfig {
417
574
  static {
418
575
  __name(this, "ModelsConfig");
@@ -986,7 +1143,7 @@ var ModelsConfig = class _ModelsConfig {
986
1143
  detail: "credential"
987
1144
  };
988
1145
  } else {
989
- debugLogger2.debug(
1146
+ debugLogger3.debug(
990
1147
  `No API key found for model "${model.id}": process.env["${model.envKey}"] is ${apiKey === "" ? "empty string" : "not set"} and no saved credential answers. Run /auth or set ${model.envKey} in your environment.`
991
1148
  );
992
1149
  }
@@ -1339,156 +1496,16 @@ var ModelsConfig = class _ModelsConfig {
1339
1496
  }
1340
1497
  };
1341
1498
 
1342
- // packages/core/src/providers/credential-store.ts
1343
- init_esbuild_shims();
1344
- import * as fs from "node:fs";
1345
- import * as path from "node:path";
1346
- import { randomBytes } from "node:crypto";
1347
- var debugLogger3 = createDebugLogger("CREDENTIAL_STORE");
1348
- var CREDENTIAL_ID = /^[a-z0-9][a-z0-9-]*$/;
1349
- var DIR_MODE = 448;
1350
- var FILE_MODE = 384;
1351
- function isValidCredentialId(id) {
1352
- return CREDENTIAL_ID.test(id);
1353
- }
1354
- __name(isValidCredentialId, "isValidCredentialId");
1355
- function assertCredentialId(id) {
1356
- if (!isValidCredentialId(id)) {
1357
- throw new Error(
1358
- `Invalid credential id "${id}": use lowercase letters, digits and dashes.`
1359
- );
1360
- }
1361
- }
1362
- __name(assertCredentialId, "assertCredentialId");
1363
- function credentialPath(id) {
1364
- assertCredentialId(id);
1365
- return path.join(Storage.getCredentialsDir(), `${id}.json`);
1366
- }
1367
- __name(credentialPath, "credentialPath");
1368
- function credentialIdForProvider(providerId) {
1369
- return providerId.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().replace(/[^a-z0-9-]/g, "-");
1370
- }
1371
- __name(credentialIdForProvider, "credentialIdForProvider");
1372
- function chmodQuietly(target, mode) {
1373
- try {
1374
- fs.chmodSync(target, mode);
1375
- } catch (error) {
1376
- if (error.code !== "EPERM") throw error;
1377
- }
1378
- }
1379
- __name(chmodQuietly, "chmodQuietly");
1380
- function readCredential(id) {
1381
- const file = credentialPath(id);
1382
- let raw;
1383
- try {
1384
- raw = fs.readFileSync(file, "utf8");
1385
- } catch {
1386
- return void 0;
1387
- }
1388
- try {
1389
- const parsed = JSON.parse(raw);
1390
- const apiKey = parsed && typeof parsed === "object" ? parsed.apiKey : void 0;
1391
- if (typeof apiKey !== "string" || !apiKey.trim()) {
1392
- throw new Error("no apiKey");
1393
- }
1394
- const savedAt = parsed.savedAt;
1395
- return { apiKey, savedAt: typeof savedAt === "string" ? savedAt : "" };
1396
- } catch {
1397
- debugLogger3.debug(`Ignoring unreadable credential file for "${id}".`);
1398
- return void 0;
1399
- }
1400
- }
1401
- __name(readCredential, "readCredential");
1402
- function writeCredential(id, { apiKey }) {
1403
- const file = credentialPath(id);
1404
- if (!apiKey.trim()) {
1405
- throw new Error(`Refusing to save an empty API key for "${id}".`);
1406
- }
1407
- const dir = path.dirname(file);
1408
- fs.mkdirSync(dir, { recursive: true, mode: DIR_MODE });
1409
- chmodQuietly(dir, DIR_MODE);
1410
- const credential = {
1411
- apiKey,
1412
- savedAt: (/* @__PURE__ */ new Date()).toISOString()
1413
- };
1414
- const temp = path.join(
1415
- dir,
1416
- `.${id}.${process.pid}.${randomBytes(4).toString("hex")}.tmp`
1417
- );
1418
- try {
1419
- fs.writeFileSync(temp, `${JSON.stringify(credential, null, 2)}
1420
- `, {
1421
- mode: FILE_MODE
1422
- });
1423
- chmodQuietly(temp, FILE_MODE);
1424
- fs.renameSync(temp, file);
1425
- } catch (error) {
1426
- fs.rmSync(temp, { force: true });
1427
- throw error;
1428
- }
1429
- return credential;
1430
- }
1431
- __name(writeCredential, "writeCredential");
1432
- function removeCredential(id) {
1433
- const file = credentialPath(id);
1434
- try {
1435
- fs.unlinkSync(file);
1436
- return true;
1437
- } catch (error) {
1438
- if (error.code === "ENOENT") return false;
1439
- throw error;
1440
- }
1441
- }
1442
- __name(removeCredential, "removeCredential");
1443
- function readSavedApiKey(id) {
1444
- if (!id || !isValidCredentialId(id)) return void 0;
1445
- return readCredential(id)?.apiKey;
1446
- }
1447
- __name(readSavedApiKey, "readSavedApiKey");
1448
- var DENY_ENV_KEYS = /* @__PURE__ */ new Set([
1449
- "NODE_OPTIONS",
1450
- "NODE_PATH",
1451
- "LD_PRELOAD",
1452
- "LD_LIBRARY_PATH",
1453
- "DYLD_INSERT_LIBRARIES",
1454
- "DYLD_LIBRARY_PATH",
1455
- "PATH",
1456
- "HOME",
1457
- "USERPROFILE",
1458
- "TMPDIR",
1459
- "TMP",
1460
- "TEMP"
1461
- ]);
1462
- var ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
1463
- var exported = /* @__PURE__ */ new Map();
1464
- function exportCredentialToEnv(envKey, apiKey) {
1465
- if (!ENV_NAME.test(envKey) || DENY_ENV_KEYS.has(envKey.toUpperCase())) {
1466
- return false;
1467
- }
1468
- const current = process.env[envKey];
1469
- const ours = exported.has(envKey) && exported.get(envKey) === current;
1470
- if (current !== void 0 && current !== "" && !ours) return false;
1471
- process.env[envKey] = apiKey;
1472
- exported.set(envKey, apiKey);
1473
- return true;
1474
- }
1475
- __name(exportCredentialToEnv, "exportCredentialToEnv");
1476
- function isExportedCredentialEnv(envKey) {
1477
- return exported.has(envKey) && exported.get(envKey) === process.env[envKey];
1478
- }
1479
- __name(isExportedCredentialEnv, "isExportedCredentialEnv");
1480
- function withdrawExportedCredential(envKey) {
1481
- if (isExportedCredentialEnv(envKey)) delete process.env[envKey];
1482
- exported.delete(envKey);
1483
- }
1484
- __name(withdrawExportedCredential, "withdrawExportedCredential");
1485
-
1486
1499
  // packages/core/src/providers/install.ts
1487
1500
  var fileCredentialStore = {
1488
1501
  read: readCredential,
1489
1502
  write: writeCredential,
1490
1503
  remove: removeCredential
1491
1504
  };
1505
+ function isConversationModel(model) {
1506
+ return !model.imageOnly && !model.voiceOnly && !model.realtimeOnly;
1507
+ }
1508
+ __name(isConversationModel, "isConversationModel");
1492
1509
  function isSameModelIdentity(a, b) {
1493
1510
  return a.id === b.id && (a.baseUrl ?? "") === (b.baseUrl ?? "");
1494
1511
  }
@@ -1724,6 +1741,27 @@ async function applyProviderInstallPlan(plan, options) {
1724
1741
  settings.setValue(`modelProviders.${providerId}`, remaining);
1725
1742
  }
1726
1743
  }
1744
+ const installedModels = (plan.modelProviders ?? []).flatMap(
1745
+ (patch) => patch.models
1746
+ );
1747
+ if (!preserveSelection && installedModels.some(isConversationModel)) {
1748
+ const keeps = /* @__PURE__ */ __name((model) => !isConversationModel(model) || installedModels.some(
1749
+ (installed) => isSameModelIdentity(model, installed)
1750
+ ), "keeps");
1751
+ const ownProviders = settings.getModelProvidersForWrite?.().modelProviders ?? settings.getModelProviders();
1752
+ for (const [providerId, models] of Object.entries(ownProviders)) {
1753
+ if (!Array.isArray(models) || providerId.includes(".")) continue;
1754
+ const remaining = models.filter(keeps);
1755
+ if (remaining.length !== models.length)
1756
+ settings.setValue(`modelProviders.${providerId}`, remaining);
1757
+ }
1758
+ for (const [providerId, models] of Object.entries(
1759
+ updatedModelProviders
1760
+ )) {
1761
+ if (Array.isArray(models))
1762
+ updatedModelProviders[providerId] = models.filter(keeps);
1763
+ }
1764
+ }
1727
1765
  const effectiveProviders = settings.getModelProviders();
1728
1766
  for (const patch of plan.modelProviders ?? []) {
1729
1767
  const effectiveModels = getModelsForProviderProtocol(
@@ -1736,7 +1774,7 @@ async function applyProviderInstallPlan(plan, options) {
1736
1774
  patch.authType
1737
1775
  );
1738
1776
  const ownProviders = settings.getModelProvidersForWrite?.().modelProviders;
1739
- const installedModels = ownProviders ? getModelsForProviderProtocol(
1777
+ const installedModels2 = ownProviders ? getModelsForProviderProtocol(
1740
1778
  { [patch.authType]: ownProviders[patch.authType] ?? [] },
1741
1779
  patch.authType,
1742
1780
  mapping
@@ -1745,7 +1783,7 @@ async function applyProviderInstallPlan(plan, options) {
1745
1783
  const winner = effectiveModels.find(
1746
1784
  (effective) => isSameModelIdentity(model, effective) && resolveModelProtocol(patch.authType, model) === resolveModelProtocol(patch.authType, effective)
1747
1785
  );
1748
- const installed = installedModels.find(
1786
+ const installed = installedModels2.find(
1749
1787
  (entry) => isSameModelIdentity(model, entry) && resolveModelProtocol(patch.authType, model) === resolveModelProtocol(patch.authType, entry)
1750
1788
  );
1751
1789
  const comparable = /* @__PURE__ */ __name((model2) => JSON.parse(
@@ -3465,7 +3503,8 @@ var BRAND = {
3465
3503
  displayName: "O1-Code",
3466
3504
  organization: "OrganizaOne",
3467
3505
  repoUrl: "https://github.com/silvioricardo87/o1-code",
3468
- coAuthorEmail: "o1-code@organizaone.com"
3506
+ coAuthorEmail: "o1-code@organizaone.com",
3507
+ userAgent: "O1Code"
3469
3508
  };
3470
3509
 
3471
3510
  // packages/core/src/providers/presets/organizaone.ts
@@ -4095,6 +4134,8 @@ export {
4095
4134
  credentialIdForProvider,
4096
4135
  removeCredential,
4097
4136
  readSavedApiKey,
4137
+ exportedCredentialEnvKeys,
4138
+ adoptExportedCredentialEnvKeys,
4098
4139
  resolveSavedModelApiKey,
4099
4140
  resolveModelApiKey,
4100
4141
  exportSavedCredentials,
@@ -4155,11 +4196,6 @@ export {
4155
4196
  * Copyright 2025 Qwen
4156
4197
  * SPDX-License-Identifier: Apache-2.0
4157
4198
  */
4158
- /**
4159
- * @license
4160
- * Copyright 2025 Qwen Team
4161
- * SPDX-License-Identifier: Apache-2.0
4162
- */
4163
4199
  /**
4164
4200
  * @license
4165
4201
  * Copyright 2026 o1-code contributors
@@ -4172,6 +4208,11 @@ export {
4172
4208
  * The functions are synchronous: the key is read where a content generator
4173
4209
  * config is built, which is synchronous code.
4174
4210
  */
4211
+ /**
4212
+ * @license
4213
+ * Copyright 2025 Qwen Team
4214
+ * SPDX-License-Identifier: Apache-2.0
4215
+ */
4175
4216
  /**
4176
4217
  * @license
4177
4218
  * Copyright 2026 o1-code contributors
@@ -14,7 +14,7 @@ import {
14
14
  init_esbuild_shims();
15
15
  async function getCliVersion() {
16
16
  const pkgJson = await getPackageJson();
17
- return "0.2.2";
17
+ return "0.4.0";
18
18
  }
19
19
  __name(getCliVersion, "getCliVersion");
20
20
  function formatVersionLabel(version) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  customDeepMerge,
9
9
  getSettingsSchema
10
- } from "./chunk-XAA77MEC.js";
10
+ } from "./chunk-S74WJTCG.js";
11
11
  import {
12
12
  CONSOLIDATED_DISABLE_KEYS,
13
13
  V1_INDICATOR_KEYS,
@@ -26,7 +26,7 @@ import {
26
26
  getHomeEnvFallbackVars,
27
27
  loadEnvironment,
28
28
  preResolveHomeEnvOverrides
29
- } from "./chunk-XKPECZJM.js";
29
+ } from "./chunk-KD2JFDCT.js";
30
30
  import {
31
31
  ENV_CORRUPTED_PATH,
32
32
  ENV_WAS_RECOVERED
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  isWorkspaceTrusted,
47
47
  updateSettingsFilePreservingFormat
48
- } from "./chunk-HWTDN2JB.js";
48
+ } from "./chunk-SQQVJC75.js";
49
49
  import {
50
50
  require_strip_json_comments
51
51
  } from "./chunk-YCZIOHKD.js";
@@ -55,7 +55,7 @@ import {
55
55
  import {
56
56
  exportSavedCredentials,
57
57
  stripRuntimeSnapshotPrefix
58
- } from "./chunk-RQOEQ73K.js";
58
+ } from "./chunk-XQILGSD3.js";
59
59
  import {
60
60
  createDebugLogger
61
61
  } from "./chunk-UK2KIU2V.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  skillRestrictionNames
5
- } from "./chunk-Q5D3WECC.js";
5
+ } from "./chunk-KFYFHLDM.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-S2467S6L.js";
@@ -4,49 +4,49 @@ import {
4
4
  assertExternalAgentSpawnPlatformSupported,
5
5
  isExpectedExternalAgentCleanupExit,
6
6
  isUnprovenExternalAgentTreeExit
7
- } from "./chunk-N2WMG5XF.js";
7
+ } from "./chunk-FXEUBHXO.js";
8
8
  import {
9
9
  ProcessRegistry
10
10
  } from "./chunk-225CZG76.js";
11
- import "./chunk-62HSC5KO.js";
11
+ import "./chunk-5PZDTHS6.js";
12
12
  import "./chunk-O7MSLRFZ.js";
13
13
  import "./chunk-W3YES77O.js";
14
14
  import "./chunk-HLQLPLTQ.js";
15
- import "./chunk-VGR4BKLQ.js";
15
+ import "./chunk-IFURAKKH.js";
16
16
  import "./chunk-BI5UOCPD.js";
17
- import "./chunk-7JU2ULBO.js";
17
+ import "./chunk-UDQ3FEOE.js";
18
18
  import "./chunk-MYMATZAY.js";
19
19
  import "./chunk-6IFQXZTP.js";
20
20
  import "./chunk-YO3SEHXM.js";
21
- import "./chunk-FJAC7QWS.js";
21
+ import "./chunk-UUTO4CEV.js";
22
22
  import "./chunk-P7UNPKJM.js";
23
23
  import "./chunk-KXN7Q6SB.js";
24
- import "./chunk-JASYFKBU.js";
24
+ import "./chunk-WB4XHWF5.js";
25
25
  import "./chunk-YIEC5SIW.js";
26
26
  import "./chunk-4JDEAIW5.js";
27
27
  import "./chunk-TIYFDYIF.js";
28
- import "./chunk-POMHQTHO.js";
29
- import "./chunk-UVUHDO2Y.js";
28
+ import "./chunk-AOXGYW3S.js";
29
+ import "./chunk-7NLIWXMU.js";
30
30
  import "./chunk-NWCDFCWK.js";
31
31
  import "./chunk-ZMZRVR62.js";
32
- import "./chunk-GY77YVM3.js";
32
+ import "./chunk-FJHPFQU6.js";
33
33
  import "./chunk-AQVYFR7E.js";
34
- import "./chunk-V2R5TAQQ.js";
35
- import "./chunk-5PY64ILO.js";
34
+ import "./chunk-CIMPNO36.js";
35
+ import "./chunk-DRV3SDND.js";
36
36
  import "./chunk-F3FKDGHN.js";
37
- import "./chunk-4OKN67QV.js";
37
+ import "./chunk-UIZPA6NX.js";
38
38
  import "./chunk-UBWL27PO.js";
39
39
  import "./chunk-BWRP5ZMP.js";
40
40
  import "./chunk-DM6W2QYB.js";
41
41
  import "./chunk-UAACCQBD.js";
42
42
  import "./chunk-GVWQRVLV.js";
43
43
  import "./chunk-2QYMJSSC.js";
44
- import "./chunk-O7LSTDIS.js";
44
+ import "./chunk-WEL3TXQG.js";
45
45
  import "./chunk-AVCUVYSA.js";
46
46
  import {
47
47
  AgentEventEmitter,
48
48
  renderSubagentSystemPrompt
49
- } from "./chunk-X62LTOGE.js";
49
+ } from "./chunk-DP5BYVKX.js";
50
50
  import "./chunk-FNALBCC7.js";
51
51
  import "./chunk-BZOAEOYF.js";
52
52
  import "./chunk-BIDB75DA.js";
@@ -60,17 +60,17 @@ import "./chunk-MZI6FDZT.js";
60
60
  import "./chunk-4MSX3ERA.js";
61
61
  import "./chunk-YGG52IIN.js";
62
62
  import "./chunk-EP7GGUVV.js";
63
- import "./chunk-Q5D3WECC.js";
63
+ import "./chunk-KFYFHLDM.js";
64
64
  import "./chunk-EXWAECKM.js";
65
65
  import "./chunk-S2LBLNBW.js";
66
66
  import "./chunk-ZZVIBILR.js";
67
67
  import "./chunk-OI7IVUEO.js";
68
68
  import "./chunk-DS3COGEF.js";
69
- import "./chunk-NVKVO57S.js";
69
+ import "./chunk-QGDWW62J.js";
70
70
  import "./chunk-OBPGYMIV.js";
71
71
  import "./chunk-RS2LNQEC.js";
72
72
  import "./chunk-SYMKXR42.js";
73
- import "./chunk-REAEIHLD.js";
73
+ import "./chunk-L4RFUGED.js";
74
74
  import "./chunk-CDYMT4OZ.js";
75
75
  import "./chunk-TC7UXK4M.js";
76
76
  import "./chunk-TKHMBUSK.js";
@@ -84,35 +84,36 @@ import {
84
84
  } from "./chunk-5QSLFAMR.js";
85
85
  import "./chunk-GUMLL5KC.js";
86
86
  import "./chunk-HPQNI3OQ.js";
87
- import "./chunk-3XCL57IX.js";
88
- import "./chunk-YCZXGP63.js";
89
- import "./chunk-NIYI5272.js";
87
+ import "./chunk-ONLJONFH.js";
88
+ import "./chunk-NVNIFGY3.js";
89
+ import "./chunk-PAHN3PPP.js";
90
90
  import "./chunk-CI2ZHR5C.js";
91
- import "./chunk-46QWU5NF.js";
91
+ import "./chunk-XID74DEW.js";
92
92
  import "./chunk-ZFZB6WC5.js";
93
93
  import "./chunk-4J6KRUQB.js";
94
94
  import "./chunk-QFQQICSQ.js";
95
95
  import "./chunk-I7XXUDXZ.js";
96
96
  import "./chunk-KQAVEXYD.js";
97
97
  import "./chunk-HLWXBJCH.js";
98
- import "./chunk-T6BNDNKW.js";
98
+ import "./chunk-COABCWBY.js";
99
99
  import "./chunk-IO32UWHY.js";
100
100
  import "./chunk-OSMXNPJP.js";
101
101
  import "./chunk-HX6AICAX.js";
102
- import "./chunk-X2HM423P.js";
102
+ import "./chunk-QLDNOCCI.js";
103
103
  import "./chunk-PPR5SHEF.js";
104
104
  import "./chunk-FOZEB37P.js";
105
105
  import "./chunk-BQAZCJF7.js";
106
106
  import "./chunk-65B6QBMP.js";
107
- import "./chunk-4OCNSFYL.js";
107
+ import "./chunk-WUKHAI4J.js";
108
108
  import "./chunk-O4IWNFDK.js";
109
+ import "./chunk-SAMGM2NV.js";
109
110
  import "./chunk-NGE3GHMN.js";
110
- import "./chunk-L7A4D4IY.js";
111
+ import "./chunk-GWKSWZ3B.js";
111
112
  import "./chunk-WMJL2XAM.js";
112
113
  import "./chunk-CP63SY5N.js";
113
- import "./chunk-RQOEQ73K.js";
114
+ import "./chunk-XQILGSD3.js";
114
115
  import "./chunk-POHJY7RJ.js";
115
- import "./chunk-3WHURT5H.js";
116
+ import "./chunk-7YG72VGA.js";
116
117
  import "./chunk-242JUBPM.js";
117
118
  import "./chunk-E4BNWSC7.js";
118
119
  import "./chunk-5P5ZJMW2.js";
@@ -126,7 +127,7 @@ import "./chunk-R7FX7HIR.js";
126
127
  import "./chunk-FFUKRRCR.js";
127
128
  import "./chunk-23AFREUQ.js";
128
129
  import "./chunk-HOPKSSYR.js";
129
- import "./chunk-J6YVMK2F.js";
130
+ import "./chunk-H2V7AUF4.js";
130
131
  import "./chunk-PLWOHBC7.js";
131
132
  import "./chunk-LEXKU5FI.js";
132
133
  import "./chunk-IQEM74QW.js";