@organizaone/o1-code 0.20.3 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/common-workflow.md +2 -2
- package/bundled/qc-helper/docs/extension/getting-started-extensions.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +15 -1
- package/chunks/{MaxSizedBox-EZERR2VP.js → MaxSizedBox-UVDDWU7T.js} +21 -20
- package/chunks/{StandaloneSessionPicker-JNWXQZWK.js → StandaloneSessionPicker-BMP4CROY.js} +42 -41
- package/chunks/{acp-subagent-executor-SWU2HEK2.js → acp-subagent-executor-FV3XBATE.js} +19 -19
- package/chunks/{acpAgent-KBGZCBFV.js → acpAgent-6QL2DRXT.js} +114 -112
- package/chunks/{agent-IXG5INIW.js → agent-7RIITHH6.js} +9 -9
- package/chunks/{agent-headless-SY563G4Y.js → agent-headless-V7G74ZRT.js} +9 -9
- package/chunks/{all-providers-GEEOO5NG.js → all-providers-NUAV373L.js} +2 -2
- package/chunks/{anthropicContentGenerator-QPZOYWP7.js → anthropicContentGenerator-IMMO2JES.js} +5 -5
- package/chunks/{bridge-RCKHVFJ3.js → bridge-NOBAHBIW.js} +19 -19
- package/chunks/{ca-6DKW436A.js → ca-EMDHXMDN.js} +6 -2
- package/chunks/{chunk-VWOLZXSN.js → chunk-2327FMUY.js} +4 -4
- package/chunks/{chunk-FRXXYR4K.js → chunk-24LWP4WE.js} +2 -2
- package/chunks/chunk-2EFFEOP5.js +5043 -0
- package/chunks/{chunk-HDVWETU2.js → chunk-3QWBMA3B.js} +12 -12
- package/chunks/{chunk-CH4NSUSE.js → chunk-3ZEBS4OE.js} +9 -9
- package/chunks/{chunk-UCXFJKY7.js → chunk-4NXPUJJK.js} +2 -2
- package/chunks/{chunk-PRHAZ5WA.js → chunk-4VB7VM7K.js} +1 -1
- package/chunks/{chunk-SKAH52QV.js → chunk-4XTPBUUX.js} +1 -1
- package/chunks/{chunk-5KLLG2CZ.js → chunk-5ZH7V5XA.js} +1 -1
- package/chunks/{chunk-KV5NXG3S.js → chunk-6LZG7Y6K.js} +2 -2
- package/chunks/{chunk-URHRCX4D.js → chunk-6YVU3VTW.js} +2 -2
- package/chunks/{chunk-RBNHPCLB.js → chunk-A3Z6ZU7I.js} +2 -2
- package/chunks/{chunk-MBJJLPMX.js → chunk-AFFISWZB.js} +32 -30
- package/chunks/{chunk-VQYBOX6T.js → chunk-B4XD2AVP.js} +2 -2
- package/chunks/{chunk-XVYLALS6.js → chunk-B5BMQDN6.js} +2 -2
- package/chunks/{chunk-6YH4HZFZ.js → chunk-BCCQP2PA.js} +3 -3
- package/chunks/{chunk-K6XWNSG7.js → chunk-BDXSHKWM.js} +1 -1
- package/chunks/{chunk-PFOXLZCP.js → chunk-BG5FFE5T.js} +9 -9
- package/chunks/{chunk-RATJ5RDQ.js → chunk-BJIFDJVV.js} +2 -2
- package/chunks/{chunk-L5MVOG3F.js → chunk-BYQ4WWVG.js} +1 -1
- package/chunks/{chunk-3DMPE7V6.js → chunk-BZXX2MRG.js} +1 -1
- package/chunks/{chunk-OMBM5PM7.js → chunk-COZEN7HG.js} +6 -6
- package/chunks/{chunk-ZKBTWORX.js → chunk-CUGVJRCO.js} +2 -2
- package/chunks/{chunk-7EXAMT2I.js → chunk-DAZ4E2KL.js} +2 -2
- package/chunks/{chunk-6F6GDT4W.js → chunk-DEEUE6NL.js} +9 -9
- package/chunks/{chunk-23MB6DC2.js → chunk-EDYCC6T6.js} +5 -5
- package/chunks/{chunk-KMIBUJJV.js → chunk-FJVTBMTU.js} +3 -3
- package/chunks/{chunk-4WQOE2IB.js → chunk-FSM6MGRH.js} +2 -2
- package/chunks/{chunk-R3QWLJJF.js → chunk-G2GNLDQS.js} +13 -13
- package/chunks/{chunk-QTKR2GD7.js → chunk-GB6XUAYL.js} +1 -1
- package/chunks/{chunk-CX4XYMNF.js → chunk-GWAPD4WA.js} +7 -7
- package/chunks/{chunk-E6FTSEFU.js → chunk-HG2CPZUM.js} +3 -3
- package/chunks/{chunk-4B3VOPKW.js → chunk-HJRDPASY.js} +5 -5
- package/chunks/{chunk-CN7MCAV5.js → chunk-HVCQOHA6.js} +4 -4
- package/chunks/{chunk-2DFFYJGZ.js → chunk-HXOUCS5U.js} +4 -4
- package/chunks/{chunk-LPP5I5D7.js → chunk-IAW6OPW2.js} +3 -3
- package/chunks/{chunk-SAA7VWPH.js → chunk-IOUCJCNS.js} +1 -1
- package/chunks/{chunk-EW76FWYR.js → chunk-ISDTLMDF.js} +1 -1
- package/chunks/{chunk-P6YI66SA.js → chunk-J3I2P6J4.js} +1 -1
- package/chunks/{chunk-2FDD7R4M.js → chunk-J4JE4YP3.js} +6 -6
- package/chunks/{chunk-VJWTK75T.js → chunk-J5RKE7HJ.js} +8 -8
- package/chunks/{chunk-2HLFWCUP.js → chunk-JEI2AYFD.js} +1 -1
- package/chunks/{chunk-Q6RYNLZS.js → chunk-JJNBSJTF.js} +2 -2
- package/chunks/{chunk-4ABEICOS.js → chunk-JYBDW4YQ.js} +1 -1
- package/chunks/{chunk-TR4DEKSP.js → chunk-KK2WC2WS.js} +2 -2
- package/chunks/{chunk-SLIL7BEZ.js → chunk-KRPFK75A.js} +2 -2
- package/chunks/{chunk-QKL4LXBU.js → chunk-KZ6OFUYM.js} +8 -8
- package/chunks/chunk-LRHUT6ZW.js +880 -0
- package/chunks/{chunk-Q6OW4P7O.js → chunk-LU3L67JW.js} +1 -1
- package/chunks/{chunk-EZ3OQPXV.js → chunk-MJFHIUKG.js} +2 -2
- package/chunks/{chunk-QAWZUGTG.js → chunk-NXQOTJAA.js} +2 -2
- package/chunks/{chunk-GDRFBPU5.js → chunk-NZYHDUMN.js} +1 -1
- package/chunks/{chunk-AY7TZ56V.js → chunk-O7V7JWOM.js} +86 -43
- package/chunks/{chunk-FG53SLIP.js → chunk-OK7GPGMS.js} +2 -2
- package/chunks/{chunk-RHZORPOC.js → chunk-ONTIVYTW.js} +3 -3
- package/chunks/{chunk-GFSDXCA6.js → chunk-P4OBMVRT.js} +3 -3
- package/chunks/{chunk-VFSP4ZUZ.js → chunk-P7RO4QSF.js} +28 -938
- package/chunks/{chunk-GVELMYCX.js → chunk-PK3MLBOH.js} +1 -1
- package/chunks/{chunk-ZJ3GFM2U.js → chunk-PP3G5KXH.js} +1 -1
- package/chunks/{chunk-CIQ2CLQ2.js → chunk-QAJ7AQSA.js} +1 -1
- package/chunks/{chunk-AP5DFANZ.js → chunk-QKZVYY6J.js} +5 -5
- package/chunks/{chunk-NTUVIB2G.js → chunk-R5HO4EJV.js} +1 -1
- package/chunks/{chunk-IUFEZVEZ.js → chunk-RMYDHM23.js} +3 -3
- package/chunks/{chunk-LNWFWFJ4.js → chunk-SL3PHYCR.js} +3 -3
- package/chunks/{chunk-2GPRQW4P.js → chunk-SYZ5WTE6.js} +2 -2
- package/chunks/{chunk-CEQQIJ45.js → chunk-T7MXEOXM.js} +2 -2
- package/chunks/{chunk-DSAFH5CY.js → chunk-TJQTTY4F.js} +1 -1
- package/chunks/{chunk-RI3VQTAX.js → chunk-TMYTIDVN.js} +3 -3
- package/chunks/{chunk-TBVRYAVY.js → chunk-TZRF4LY7.js} +3 -3
- package/chunks/{chunk-YPR43UHE.js → chunk-UKCKAG2F.js} +39 -39
- package/chunks/{chunk-FBHAG372.js → chunk-UUT7HQPM.js} +3 -3
- package/chunks/{chunk-7UME3BB3.js → chunk-UWSO6VOM.js} +1 -1
- package/chunks/{chunk-N2JEPFUF.js → chunk-UXJP6322.js} +3 -3
- package/chunks/{chunk-MDJ4DEEJ.js → chunk-V5QHABRY.js} +1 -1
- package/chunks/chunk-VDSY3ODQ.js +2405 -0
- package/chunks/{chunk-3TLBRQSX.js → chunk-VT5GZKMO.js} +1 -1
- package/chunks/{chunk-FDKCSPGD.js → chunk-W3XJPDIO.js} +13 -13
- package/chunks/{chunk-GNZQPESW.js → chunk-WKGMAUE7.js} +1 -1
- package/chunks/{chunk-LYYJBCAH.js → chunk-WOAI6G73.js} +3 -3
- package/chunks/{chunk-TQ65TNCT.js → chunk-WQYJ72JS.js} +1 -1
- package/chunks/{chunk-RTTJOKFS.js → chunk-WTC5HDJJ.js} +10 -10
- package/chunks/{chunk-VLAUXCTV.js → chunk-WU7DQB4Q.js} +4 -4
- package/chunks/{chunk-LFMK5B3W.js → chunk-X7Q5L62S.js} +1 -1
- package/chunks/{chunk-WILZABQC.js → chunk-XCWRCCIS.js} +1 -1
- package/chunks/{chunk-KSXF26WD.js → chunk-XHHPCZOZ.js} +2 -2
- package/chunks/{chunk-GLHPVNIZ.js → chunk-XIYHMMHO.js} +4 -4
- package/chunks/{chunk-ME6C5KAY.js → chunk-XMEAEIT7.js} +1 -1
- package/chunks/{chunk-LKRP2YCP.js → chunk-XXPXFR7S.js} +48 -48
- package/chunks/chunk-YQQ7QFC5.js +945 -0
- package/chunks/{chunk-A5JZKZ6Q.js → chunk-YXRFXEIU.js} +5 -5
- package/chunks/{chunk-F5OH2PNI.js → chunk-ZGHZRHUW.js} +1 -1
- package/chunks/{codex-subagent-executor-WNFU67G7.js → codex-subagent-executor-3MIEB3VJ.js} +19 -19
- package/chunks/{contextCommand-6LFH2YPP.js → contextCommand-H6YVYBS3.js} +19 -19
- package/chunks/{core-runtime-MFXIMNSH.js → core-runtime-2HHFL26H.js} +17 -17
- package/chunks/{create-sub-session-NUE3R5WZ.js → create-sub-session-ALKLKZWI.js} +18 -18
- package/chunks/{daemon-git-worktree-guard-PQ3SE2KI.js → daemon-git-worktree-guard-FKKXZKOZ.js} +17 -17
- package/chunks/{daemon-status-provider-Z5OUOPTR.js → daemon-status-provider-L3JVFUFB.js} +24 -24
- package/chunks/{daemon-trust-policy-TX4QULOJ.js → daemon-trust-policy-UKZ4URR5.js} +24 -24
- package/chunks/{daemon-trust-policy-monitor-CNBHLZT7.js → daemon-trust-policy-monitor-O3BAF5WQ.js} +24 -24
- package/chunks/{de-E75VCQRZ.js → de-OMV463ND.js} +6 -2
- package/chunks/{deferred-core-runtime-XDE6DRBZ.js → deferred-core-runtime-TX4M62JC.js} +17 -17
- package/chunks/{edit-QONTKKDS.js → edit-URCTP3DW.js} +11 -11
- package/chunks/{en-TS3SF6KR.js → en-EEVIOXSR.js} +6 -2
- package/chunks/{enterPlanMode-A3NZ5LMR.js → enterPlanMode-JGAWYT7U.js} +9 -9
- package/chunks/{environment-6FE7XGAC.js → environment-5NRP4NYH.js} +19 -19
- package/chunks/{errors-R5Y7H2GW.js → errors-7BX5N6WH.js} +19 -19
- package/chunks/{execution-tool-BTPXNHGK.js → execution-tool-4MAOTD33.js} +11 -11
- package/chunks/{execution-worker-Q2WOKDYJ.js → execution-worker-FE64M6YB.js} +14 -14
- package/chunks/{exitPlanMode-FWVAIF2G.js → exitPlanMode-MRIMIR7S.js} +9 -9
- package/chunks/{fast-path-ADV46XXY.js → fast-path-PI7IUZO5.js} +5 -5
- package/chunks/foreground-runner-ODCBQ62T.js +1496 -0
- package/chunks/{fr-KWQ6T7MX.js → fr-ZHVJMULM.js} +6 -2
- package/chunks/{glob-7C5LFIFY.js → glob-VVMTH2FZ.js} +9 -9
- package/chunks/{goal-tools-ZBOA3S6T.js → goal-tools-PIZJOC5V.js} +9 -9
- package/chunks/{handleAutoUpdate-OZFXXZGE.js → handleAutoUpdate-7CYUYIFT.js} +20 -20
- package/chunks/{i18n-ETDHGUAS.js → i18n-DZGPXZHL.js} +18 -18
- package/chunks/{initializer-3TGPNDS6.js → initializer-6MWLCO6O.js} +26 -25
- package/chunks/{installationInfo-53FUD2SP.js → installationInfo-2YFHIA4G.js} +17 -17
- package/chunks/{ja-NLAMHYSV.js → ja-MQ3LTDXD.js} +6 -2
- package/chunks/{list-D2SFACP2.js → list-2PCYJ5KG.js} +26 -26
- package/chunks/{llm-6JBUAXKT.js → llm-QVOVDL2Q.js} +70 -70
- package/chunks/{llm-content-generator-X2YXGOCB.js → llm-content-generator-P4MM2G4V.js} +4 -4
- package/chunks/{loadedSettingsAdapter-S2OW76SD.js → loadedSettingsAdapter-6DG3R23U.js} +24 -24
- package/chunks/{local-execution-environment-TCIIK3JA.js → local-execution-environment-RQZE5ZPQ.js} +14 -14
- package/chunks/{loggingContentGenerator-GDJB7R3H.js → loggingContentGenerator-T5HYYF2G.js} +9 -9
- package/chunks/{managed-npm-update-I3YZBNY7.js → managed-npm-update-FKD3RX22.js} +17 -17
- package/chunks/{mcp-6GZRGYAG.js → mcp-CONKBRY3.js} +24 -24
- package/chunks/{model-call-collection-YAUSBU5N.js → model-call-collection-L6GU4PEV.js} +1 -1
- package/chunks/{model-configuration-SMKT6PVP.js → model-configuration-TBFXQOP6.js} +25 -25
- package/chunks/{modelConfigUtils-FEON5T3Z.js → modelConfigUtils-ID2MFVCP.js} +19 -19
- package/chunks/{monitor-RNGWRP7C.js → monitor-ETBC2KHX.js} +9 -9
- package/chunks/{nonInteractiveCli-5N55OFDF.js → nonInteractiveCli-QPKDUFGH.js} +62 -60
- package/chunks/{nonInteractiveToolExecutor-EURXYN6L.js → nonInteractiveToolExecutor-7ZDYEIOV.js} +10 -10
- package/chunks/{notebook-edit-DMEOTACP.js → notebook-edit-PBP4CLHC.js} +10 -10
- package/chunks/{omni-A6J5PKS7.js → omni-EBPCPKLP.js} +9 -9
- package/chunks/{openaiContentGenerator-2ZU6S23B.js → openaiContentGenerator-FJJDGKFI.js} +6 -6
- package/chunks/{openaiResponsesContentGenerator-4RE34Y4W.js → openaiResponsesContentGenerator-Y27KA4YJ.js} +4 -4
- package/chunks/{processUtils-VBBXC2KT.js → processUtils-EUHGQHUQ.js} +2 -2
- package/chunks/{prompt-terminal-ledger-6DE5MRV3.js → prompt-terminal-ledger-XV4MIV4H.js} +18 -18
- package/chunks/{pt-F6OOJLH6.js → pt-AVWESYKZ.js} +6 -2
- package/chunks/pty-host-process-PKCVFICX.js +29 -0
- package/chunks/{reactive-degrade-S3SQRQ4D.js → reactive-degrade-LL5MSPMK.js} +8 -8
- package/chunks/{read-file-HDY4MSJE.js → read-file-HQVTDGX5.js} +1 -1
- package/chunks/{resumeHistoryUtils-BX3CLUM7.js → resumeHistoryUtils-DKTD3ZG2.js} +26 -25
- package/chunks/{ripGrep-4E63BMST.js → ripGrep-WA7AGEV7.js} +1 -1
- package/chunks/{ru-QXDK3EHQ.js → ru-CSBDIXDS.js} +6 -2
- package/chunks/{run-o1-code-serve-FR3YWC7D.js → run-o1-code-serve-27EWAN7V.js} +49 -49
- package/chunks/{sandboxConfig-7D6ZZBBU.js → sandboxConfig-B4Z7RRB6.js} +17 -17
- package/chunks/{scheduled-tasks-FEV7YG7C.js → scheduled-tasks-KBBSAL7T.js} +22 -22
- package/chunks/{scheduler-OOZEZWGT.js → scheduler-WUFLFLZX.js} +19 -19
- package/chunks/{serve-5CZRH2NI.js → serve-GHD5P7VM.js} +24 -24
- package/chunks/{server-AIIM3MRX.js → server-O7S2DL3A.js} +141 -141
- package/chunks/{session-5IHMC2GA.js → session-4COCQNXM.js} +63 -61
- package/chunks/{session-FZ3NBZYB.js → session-74Z72LNM.js} +1 -1
- package/chunks/{session-attachments-root-ANZOYK7U.js → session-attachments-root-QTVKHZO3.js} +17 -17
- package/chunks/{session-pr-refresh-CJLDHDTN.js → session-pr-refresh-4XWL7OWU.js} +22 -22
- package/chunks/{settings-35ADR3M3.js → settings-LKHHDZ22.js} +23 -23
- package/chunks/{shell-T7WI2AB4.js → shell-MBJWYI6H.js} +9 -9
- package/chunks/{skill-3J334MPG.js → skill-P47GW76V.js} +1 -1
- package/chunks/{skill-settings-VGNIJ4ZG.js → skill-settings-OOKHO2VX.js} +23 -23
- package/chunks/{spawnChannel-4GZBVZWY.js → spawnChannel-BCCGOYBS.js} +18 -18
- package/chunks/{standalone-update-3MMGTOKU.js → standalone-update-GFWLCIJA.js} +19 -19
- package/chunks/{startInteractiveUI-ACAXKMOW.js → startInteractiveUI-4U37J3U3.js} +227 -133
- package/chunks/supervisor-runner-JHRQ2FCR.js +24 -0
- package/chunks/{team-create-OL5P2TT3.js → team-create-V7TS7YKU.js} +9 -9
- package/chunks/{team-plan-approval-AVOMP63W.js → team-plan-approval-AZFDDNWX.js} +9 -9
- package/chunks/{terminal-image-renderer-YIP3F3SW.js → terminal-image-renderer-VKFNJYLX.js} +17 -17
- package/chunks/{theme-manager-WGBSECIC.js → theme-manager-NJUI6CSB.js} +19 -18
- package/chunks/{tool-result-media-43B2V5GK.js → tool-result-media-PNMKSY4I.js} +9 -9
- package/chunks/{tool-search-D4CTJZQZ.js → tool-search-G775WYWX.js} +1 -1
- package/chunks/{total-session-admission-5AVX4GWU.js → total-session-admission-EU3OANCQ.js} +19 -19
- package/chunks/{trustedFolders-A3EQT2KU.js → trustedFolders-SHDE6P4A.js} +18 -18
- package/chunks/{update-relaunch-ZFQ3KKWC.js → update-relaunch-WO4XSFPM.js} +5 -5
- package/chunks/{updateCheck-6WIKLTOC.js → updateCheck-VXMUIJQI.js} +19 -19
- package/chunks/{upload-config-CYAXYVA5.js → upload-config-W3I5KJ6Z.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-WQCDJ3GF.js → useAutoAcceptIndicator-RVZ7NA4T.js} +27 -27
- package/chunks/{validateNonInterActiveAuth-YAKY5TIW.js → validateNonInterActiveAuth-Z6VWDBAU.js} +59 -57
- package/chunks/{version-2JL37LTE.js → version-BAIHAZMG.js} +1 -1
- package/chunks/{web-fetch-3RS7AC6O.js → web-fetch-UVYCFIDA.js} +1 -1
- package/chunks/{web-search-32AOEQHL.js → web-search-2HZLV7U7.js} +7 -7
- package/chunks/{workflow-N6HB4M7K.js → workflow-MH5F52EN.js} +10 -10
- package/chunks/{workspace-providers-status-ZWERGC3Q.js → workspace-providers-status-QGZHLTTK.js} +28 -28
- package/chunks/{workspace-registration-store-CCUU3WMT.js → workspace-registration-store-ZOS5W3KI.js} +1 -1
- package/chunks/{workspace-registry-HWKUKITM.js → workspace-registry-S5UI2GMP.js} +19 -19
- package/chunks/{workspace-runtime-coordinator-7I7MNHER.js → workspace-runtime-coordinator-3VT4F7QU.js} +19 -19
- package/chunks/{workspace-service-YYLFPQLW.js → workspace-service-FPIDJZQX.js} +27 -27
- package/chunks/{workspace-skills-status-ZW3EQWQ6.js → workspace-skills-status-3NDFOQ7X.js} +24 -24
- package/chunks/{workspace-trust-reconciler-G777OJEA.js → workspace-trust-reconciler-MIYMY5WA.js} +28 -28
- package/chunks/{write-file-IL2RFUQS.js → write-file-RLFFQHIF.js} +11 -11
- package/chunks/{zh-5CH77RQJ.js → zh-6TC2VRKR.js} +6 -2
- package/chunks/{zh-TW-7ASXOAM2.js → zh-TW-O23FCREL.js} +6 -2
- package/chunks/{zoom-image-K4VOMJ5H.js → zoom-image-TGJMTGFW.js} +1 -1
- package/cli.js +67 -14
- package/examples/starter/README.md +2 -2
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/ca.js +9 -2
- package/locales/de.js +9 -2
- package/locales/en.js +8 -2
- package/locales/fr.js +9 -2
- package/locales/ja.js +9 -2
- package/locales/pt.js +9 -2
- package/locales/ru.js +8 -2
- package/locales/zh-TW.js +6 -2
- package/locales/zh.js +6 -2
- package/package.json +2 -2
- package/release-notes.json +6 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BvS-3VoN.js → abnfDiagram-VCTEODGH-DvRQo4_D.js} +1 -1
- package/web-shell/assets/{arc-oqBoN1VH.js → arc-BdiXk54-.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BM3vyqvf.js → architectureDiagram-5GKGNRK7-ghhLp2fv.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-S94Kz5ys.js → blockDiagram-NRAW4CY4-D1Mnhplm.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-wFyXR3PR.js → c4Diagram-UCG6FXSJ-DUXySExV.js} +1 -1
- package/web-shell/assets/channel-Dh8nmHXD.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BXpOLBvy.js → chunk-2Q5K7J3B-emXgDXOn.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BWnRV7wD.js → chunk-5VM5RSS4-BAe_FRUg.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-NJG1XfCH.js → chunk-F27PBJKO-BFNyq3ws.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-D1MDovk_.js → chunk-G27WJ6UU-CsbX0ea1.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-Biw0OjWW.js → chunk-JWPE2WC7-BJsqlFOz.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CWoypbS8.js → chunk-LCL6LL3I-BhkoNwBC.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-ZHBPGpI1.js → chunk-POPQ4Y6H-DDHhZe1n.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-BmhiTHIA.js → chunk-SVP7TREG-EMrfHdyh.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-Ctjd24gG.js → chunk-XXDRQBXY-B7vzOyPt.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CBwKEPG_.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CBwKEPG_.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CEq9XMDz.js → cose-bilkent-JH36ORCC-C12GhrmQ.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-3oDMxKvV.js → cynefin-OW5HDTMX-B1PlOkHW.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-yGJvzOyq.js → cynefinDiagram-5FMLGOSQ-DqlIu1-5.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-aeyZyzOG.js → dagre-3AP2YEHR-jwha3DyI.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-BAAcB3gC.js → diagram-S7CK7UJ4-WJo7RwdL.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-B1_QGLRY.js → diagram-UQ7AKVKN-HNgwz504.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-BiBpaCap.js → diagram-VSXAHHWV-CnSKwatX.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-BUzzHihe.js → diagram-VX7I27RA-Bl2_wm4a.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-6JxaEF1R.js → diagram-Z3DM3KII-C-h8dvnx.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-D1-6Yjiz.js → ebnfDiagram-PWID7BFC-xPu9lOPC.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DpcEbarm.js → erDiagram-SSCWMZ5O-lL-N4ln4.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-DlRnvlQ3.js → flowDiagram-A5DVABFB-DzBl_JGY.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DABNtKOf.js → ganttDiagram-EL5Y4UJY-CaDwMjwZ.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bpq0tIqs.js → gitGraphDiagram-WWUBYQGX-DieKNHv6.js} +1 -1
- package/web-shell/assets/{index-Bm3BviDi.js → index-B8kdqIl5.js} +1 -1
- package/web-shell/assets/{index-Bjv2-WpQ.js → index-Dh9PvEFA.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-D7e7VPRa.js → infoDiagram-RXCK75RN-DAavpH0B.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-BlOJr8s3.js → ishikawaDiagram-5VMMS53U-UPSFQgsr.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BJOqE-Ku.js → journeyDiagram-EYS64GPL-tatKO6kZ.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-9Jp1HpGG.js → kanban-definition-3QL26DDD-DQVeuSX5.js} +1 -1
- package/web-shell/assets/{layout-BXGcWPmh.js → layout-CRt7C8gi.js} +1 -1
- package/web-shell/assets/{linear-Bb-3dQRR.js → linear-CtupaiXZ.js} +1 -1
- package/web-shell/assets/{mermaid.core-BQ9PYOoO.js → mermaid.core-Pq6FiKYN.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BbRVue0a.js → mindmap-definition-FBJOCRG2-C3aBV9q4.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-CLALfcXo.js → pegDiagram-XKGWAZYB-DPC6gXxQ.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BPa_8owh.js → pieDiagram-E7YTZNPT-Bnulswji.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DTMPh3lk.js → quadrantDiagram-AXDQQJYC-CgN1vgtM.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CTqUx3sg.js → railroadDiagram-O6MQD6OU-XdwHEwkM.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BMfxMhwk.js → requirementDiagram-EFPCY7ZU-BrptICwx.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-ciGAnluT.js → sankeyDiagram-P5KCCOFB-UVmNE7OK.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-D6eZeHbE.js → sequenceDiagram-WJ2MYXX4-CbLJdOim.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DQPYzdVi.js → sizeCapture-X5ZJPWSS-DHeZCcKI.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DkqKm2SL.js → stateDiagram-HBIQ2CUA-oYkdhZ_G.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DbneQiPu.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-C6XGW_tM.js → swimlanes-XN3QIQJK-CFK29lSu.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DxcqGRuT.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-CExT5Nqx.js → timeline-definition-24CTP7MA-BfAZG1ah.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DYNNQGHI.js → vennDiagram-4TSXK5OY-x129VjoM.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-py3CuGuQ.js → wardleyDiagram-VM6X3IG4-B5aBvbvt.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CI5rcSdT.js → xychartDiagram-S5SC5T6Z-DLbk6hf2.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-QDRh2gO3.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CjY5Knq0.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CjY5Knq0.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BDHScdF2.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CftAjGJO.js +0 -8
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
O1CodeDark,
|
|
5
|
+
O1CodeLight,
|
|
6
|
+
Theme,
|
|
7
|
+
ansiTheme,
|
|
8
|
+
createCustomTheme,
|
|
9
|
+
darkTheme,
|
|
10
|
+
lightTheme,
|
|
11
|
+
validateCustomTheme
|
|
12
|
+
} from "./chunk-YQQ7QFC5.js";
|
|
3
13
|
import {
|
|
4
14
|
DEFAULT_DARK_THEME_NAME,
|
|
5
15
|
DEFAULT_LIGHT_THEME_NAME
|
|
@@ -19,588 +29,6 @@ init_esbuild_shims();
|
|
|
19
29
|
|
|
20
30
|
// packages/cli/src/ui/themes/ayu.ts
|
|
21
31
|
init_esbuild_shims();
|
|
22
|
-
|
|
23
|
-
// packages/cli/src/ui/themes/theme.ts
|
|
24
|
-
init_esbuild_shims();
|
|
25
|
-
|
|
26
|
-
// packages/cli/src/ui/themes/color-utils.ts
|
|
27
|
-
init_esbuild_shims();
|
|
28
|
-
var CSS_NAME_TO_HEX_MAP = {
|
|
29
|
-
aliceblue: "#f0f8ff",
|
|
30
|
-
antiquewhite: "#faebd7",
|
|
31
|
-
aqua: "#00ffff",
|
|
32
|
-
aquamarine: "#7fffd4",
|
|
33
|
-
azure: "#f0ffff",
|
|
34
|
-
beige: "#f5f5dc",
|
|
35
|
-
bisque: "#ffe4c4",
|
|
36
|
-
blanchedalmond: "#ffebcd",
|
|
37
|
-
blueviolet: "#8a2be2",
|
|
38
|
-
brown: "#a52a2a",
|
|
39
|
-
burlywood: "#deb887",
|
|
40
|
-
cadetblue: "#5f9ea0",
|
|
41
|
-
chartreuse: "#7fff00",
|
|
42
|
-
chocolate: "#d2691e",
|
|
43
|
-
coral: "#ff7f50",
|
|
44
|
-
cornflowerblue: "#6495ed",
|
|
45
|
-
cornsilk: "#fff8dc",
|
|
46
|
-
crimson: "#dc143c",
|
|
47
|
-
darkblue: "#00008b",
|
|
48
|
-
darkcyan: "#008b8b",
|
|
49
|
-
darkgoldenrod: "#b8860b",
|
|
50
|
-
darkgray: "#a9a9a9",
|
|
51
|
-
darkgrey: "#a9a9a9",
|
|
52
|
-
darkgreen: "#006400",
|
|
53
|
-
darkkhaki: "#bdb76b",
|
|
54
|
-
darkmagenta: "#8b008b",
|
|
55
|
-
darkolivegreen: "#556b2f",
|
|
56
|
-
darkorange: "#ff8c00",
|
|
57
|
-
darkorchid: "#9932cc",
|
|
58
|
-
darkred: "#8b0000",
|
|
59
|
-
darksalmon: "#e9967a",
|
|
60
|
-
darkseagreen: "#8fbc8f",
|
|
61
|
-
darkslateblue: "#483d8b",
|
|
62
|
-
darkslategray: "#2f4f4f",
|
|
63
|
-
darkslategrey: "#2f4f4f",
|
|
64
|
-
darkturquoise: "#00ced1",
|
|
65
|
-
darkviolet: "#9400d3",
|
|
66
|
-
deeppink: "#ff1493",
|
|
67
|
-
deepskyblue: "#00bfff",
|
|
68
|
-
dimgray: "#696969",
|
|
69
|
-
dimgrey: "#696969",
|
|
70
|
-
dodgerblue: "#1e90ff",
|
|
71
|
-
firebrick: "#b22222",
|
|
72
|
-
floralwhite: "#fffaf0",
|
|
73
|
-
forestgreen: "#228b22",
|
|
74
|
-
fuchsia: "#ff00ff",
|
|
75
|
-
gainsboro: "#dcdcdc",
|
|
76
|
-
ghostwhite: "#f8f8ff",
|
|
77
|
-
gold: "#ffd700",
|
|
78
|
-
goldenrod: "#daa520",
|
|
79
|
-
greenyellow: "#adff2f",
|
|
80
|
-
honeydew: "#f0fff0",
|
|
81
|
-
hotpink: "#ff69b4",
|
|
82
|
-
indianred: "#cd5c5c",
|
|
83
|
-
indigo: "#4b0082",
|
|
84
|
-
ivory: "#fffff0",
|
|
85
|
-
khaki: "#f0e68c",
|
|
86
|
-
lavender: "#e6e6fa",
|
|
87
|
-
lavenderblush: "#fff0f5",
|
|
88
|
-
lawngreen: "#7cfc00",
|
|
89
|
-
lemonchiffon: "#fffacd",
|
|
90
|
-
lightblue: "#add8e6",
|
|
91
|
-
lightcoral: "#f08080",
|
|
92
|
-
lightcyan: "#e0ffff",
|
|
93
|
-
lightgoldenrodyellow: "#fafad2",
|
|
94
|
-
lightgray: "#d3d3d3",
|
|
95
|
-
lightgrey: "#d3d3d3",
|
|
96
|
-
lightgreen: "#90ee90",
|
|
97
|
-
lightpink: "#ffb6c1",
|
|
98
|
-
lightsalmon: "#ffa07a",
|
|
99
|
-
lightseagreen: "#20b2aa",
|
|
100
|
-
lightskyblue: "#87cefa",
|
|
101
|
-
lightslategray: "#778899",
|
|
102
|
-
lightslategrey: "#778899",
|
|
103
|
-
lightsteelblue: "#b0c4de",
|
|
104
|
-
lightyellow: "#ffffe0",
|
|
105
|
-
lime: "#00ff00",
|
|
106
|
-
limegreen: "#32cd32",
|
|
107
|
-
linen: "#faf0e6",
|
|
108
|
-
maroon: "#800000",
|
|
109
|
-
mediumaquamarine: "#66cdaa",
|
|
110
|
-
mediumblue: "#0000cd",
|
|
111
|
-
mediumorchid: "#ba55d3",
|
|
112
|
-
mediumpurple: "#9370db",
|
|
113
|
-
mediumseagreen: "#3cb371",
|
|
114
|
-
mediumslateblue: "#7b68ee",
|
|
115
|
-
mediumspringgreen: "#00fa9a",
|
|
116
|
-
mediumturquoise: "#48d1cc",
|
|
117
|
-
mediumvioletred: "#c71585",
|
|
118
|
-
midnightblue: "#191970",
|
|
119
|
-
mintcream: "#f5fffa",
|
|
120
|
-
mistyrose: "#ffe4e1",
|
|
121
|
-
moccasin: "#ffe4b5",
|
|
122
|
-
navajowhite: "#ffdead",
|
|
123
|
-
navy: "#000080",
|
|
124
|
-
oldlace: "#fdf5e6",
|
|
125
|
-
olive: "#808000",
|
|
126
|
-
olivedrab: "#6b8e23",
|
|
127
|
-
orange: "#ffa500",
|
|
128
|
-
orangered: "#ff4500",
|
|
129
|
-
orchid: "#da70d6",
|
|
130
|
-
palegoldenrod: "#eee8aa",
|
|
131
|
-
palegreen: "#98fb98",
|
|
132
|
-
paleturquoise: "#afeeee",
|
|
133
|
-
palevioletred: "#db7093",
|
|
134
|
-
papayawhip: "#ffefd5",
|
|
135
|
-
peachpuff: "#ffdab9",
|
|
136
|
-
peru: "#cd853f",
|
|
137
|
-
pink: "#ffc0cb",
|
|
138
|
-
plum: "#dda0dd",
|
|
139
|
-
powderblue: "#b0e0e6",
|
|
140
|
-
purple: "#800080",
|
|
141
|
-
rebeccapurple: "#663399",
|
|
142
|
-
rosybrown: "#bc8f8f",
|
|
143
|
-
royalblue: "#4169e1",
|
|
144
|
-
saddlebrown: "#8b4513",
|
|
145
|
-
salmon: "#fa8072",
|
|
146
|
-
sandybrown: "#f4a460",
|
|
147
|
-
seagreen: "#2e8b57",
|
|
148
|
-
seashell: "#fff5ee",
|
|
149
|
-
sienna: "#a0522d",
|
|
150
|
-
silver: "#c0c0c0",
|
|
151
|
-
skyblue: "#87ceeb",
|
|
152
|
-
slateblue: "#6a5acd",
|
|
153
|
-
slategray: "#708090",
|
|
154
|
-
slategrey: "#708090",
|
|
155
|
-
snow: "#fffafa",
|
|
156
|
-
springgreen: "#00ff7f",
|
|
157
|
-
steelblue: "#4682b4",
|
|
158
|
-
tan: "#d2b48c",
|
|
159
|
-
teal: "#008080",
|
|
160
|
-
thistle: "#d8bfd8",
|
|
161
|
-
tomato: "#ff6347",
|
|
162
|
-
turquoise: "#40e0d0",
|
|
163
|
-
violet: "#ee82ee",
|
|
164
|
-
wheat: "#f5deb3",
|
|
165
|
-
whitesmoke: "#f5f5f5",
|
|
166
|
-
yellowgreen: "#9acd32"
|
|
167
|
-
};
|
|
168
|
-
var debugLogger = createDebugLogger("COLOR_UTILS");
|
|
169
|
-
var INK_SUPPORTED_NAMES = /* @__PURE__ */ new Set([
|
|
170
|
-
"black",
|
|
171
|
-
"red",
|
|
172
|
-
"green",
|
|
173
|
-
"yellow",
|
|
174
|
-
"blue",
|
|
175
|
-
"cyan",
|
|
176
|
-
"magenta",
|
|
177
|
-
"white",
|
|
178
|
-
"gray",
|
|
179
|
-
"grey",
|
|
180
|
-
"blackbright",
|
|
181
|
-
"redbright",
|
|
182
|
-
"greenbright",
|
|
183
|
-
"yellowbright",
|
|
184
|
-
"bluebright",
|
|
185
|
-
"cyanbright",
|
|
186
|
-
"magentabright",
|
|
187
|
-
"whitebright"
|
|
188
|
-
]);
|
|
189
|
-
function resolveColor(colorValue) {
|
|
190
|
-
const lowerColor = colorValue.toLowerCase();
|
|
191
|
-
if (lowerColor.startsWith("#")) {
|
|
192
|
-
if (/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(colorValue)) {
|
|
193
|
-
return lowerColor;
|
|
194
|
-
} else {
|
|
195
|
-
return void 0;
|
|
196
|
-
}
|
|
197
|
-
} else if (INK_SUPPORTED_NAMES.has(lowerColor)) {
|
|
198
|
-
return lowerColor;
|
|
199
|
-
} else if (CSS_NAME_TO_HEX_MAP[lowerColor]) {
|
|
200
|
-
return CSS_NAME_TO_HEX_MAP[lowerColor];
|
|
201
|
-
}
|
|
202
|
-
debugLogger.warn(
|
|
203
|
-
`[ColorUtils] Could not resolve color "${colorValue}" to an Ink-compatible format.`
|
|
204
|
-
);
|
|
205
|
-
return void 0;
|
|
206
|
-
}
|
|
207
|
-
__name(resolveColor, "resolveColor");
|
|
208
|
-
|
|
209
|
-
// packages/cli/src/ui/themes/extended-tokens.ts
|
|
210
|
-
init_esbuild_shims();
|
|
211
|
-
function deriveExtendedColors(colors) {
|
|
212
|
-
return {
|
|
213
|
-
text: { muted: colors.Comment, placeholder: colors.Comment },
|
|
214
|
-
ui: {
|
|
215
|
-
separator: colors.Gray,
|
|
216
|
-
rule: colors.Gray,
|
|
217
|
-
brand: colors.AccentBlue,
|
|
218
|
-
brandSoft: colors.LightBlue
|
|
219
|
-
},
|
|
220
|
-
activity: {
|
|
221
|
-
info: colors.AccentBlue,
|
|
222
|
-
read: colors.AccentCyan,
|
|
223
|
-
write: colors.AccentPurple,
|
|
224
|
-
execute: colors.AccentYellow,
|
|
225
|
-
success: colors.AccentGreen
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
__name(deriveExtendedColors, "deriveExtendedColors");
|
|
230
|
-
|
|
231
|
-
// packages/cli/src/ui/themes/theme.ts
|
|
232
|
-
var lightTheme = {
|
|
233
|
-
type: "light",
|
|
234
|
-
Background: "#FAFAFA",
|
|
235
|
-
Foreground: "",
|
|
236
|
-
LightBlue: "#89BDCD",
|
|
237
|
-
AccentBlue: "#3B82F6",
|
|
238
|
-
AccentPurple: "#8B5CF6",
|
|
239
|
-
AccentCyan: "#06B6D4",
|
|
240
|
-
AccentGreen: "#3CA84B",
|
|
241
|
-
AccentYellow: "#D5A40A",
|
|
242
|
-
AccentRed: "#DD4C4C",
|
|
243
|
-
AccentYellowDim: "#8B7000",
|
|
244
|
-
AccentRedDim: "#993333",
|
|
245
|
-
DiffAdded: "#C6EAD8",
|
|
246
|
-
DiffRemoved: "#FFCCCC",
|
|
247
|
-
Comment: "#008000",
|
|
248
|
-
Gray: "#97a0b0",
|
|
249
|
-
GradientColors: ["#4796E4", "#847ACE", "#C3677F"]
|
|
250
|
-
};
|
|
251
|
-
var darkTheme = {
|
|
252
|
-
type: "dark",
|
|
253
|
-
Background: "#1E1E2E",
|
|
254
|
-
Foreground: "",
|
|
255
|
-
LightBlue: "#ADD8E6",
|
|
256
|
-
AccentBlue: "#89B4FA",
|
|
257
|
-
AccentPurple: "#CBA6F7",
|
|
258
|
-
AccentCyan: "#89DCEB",
|
|
259
|
-
AccentGreen: "#A6E3A1",
|
|
260
|
-
AccentYellow: "#F9E2AF",
|
|
261
|
-
AccentRed: "#F38BA8",
|
|
262
|
-
AccentYellowDim: "#8B7530",
|
|
263
|
-
AccentRedDim: "#8B3A4A",
|
|
264
|
-
DiffAdded: "#28350B",
|
|
265
|
-
DiffRemoved: "#430000",
|
|
266
|
-
Comment: "#6C7086",
|
|
267
|
-
Gray: "#6C7086",
|
|
268
|
-
GradientColors: ["#4796E4", "#847ACE", "#C3677F"]
|
|
269
|
-
};
|
|
270
|
-
var ansiTheme = {
|
|
271
|
-
type: "ansi",
|
|
272
|
-
Background: "black",
|
|
273
|
-
Foreground: "white",
|
|
274
|
-
LightBlue: "blue",
|
|
275
|
-
AccentBlue: "blue",
|
|
276
|
-
AccentPurple: "magenta",
|
|
277
|
-
AccentCyan: "cyan",
|
|
278
|
-
AccentGreen: "green",
|
|
279
|
-
AccentYellow: "yellow",
|
|
280
|
-
AccentRed: "red",
|
|
281
|
-
AccentYellowDim: "yellow",
|
|
282
|
-
AccentRedDim: "red",
|
|
283
|
-
DiffAdded: "green",
|
|
284
|
-
DiffRemoved: "red",
|
|
285
|
-
Comment: "gray",
|
|
286
|
-
Gray: "gray"
|
|
287
|
-
};
|
|
288
|
-
var Theme = class _Theme {
|
|
289
|
-
/**
|
|
290
|
-
* Creates a new Theme instance.
|
|
291
|
-
* @param name The name of the theme.
|
|
292
|
-
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
293
|
-
*/
|
|
294
|
-
constructor(name, type, rawMappings, colors, semanticColors, extendedColors) {
|
|
295
|
-
this.name = name;
|
|
296
|
-
this.type = type;
|
|
297
|
-
this.colors = colors;
|
|
298
|
-
this.semanticColors = semanticColors ?? {
|
|
299
|
-
text: {
|
|
300
|
-
primary: this.colors.Foreground,
|
|
301
|
-
secondary: this.colors.Gray,
|
|
302
|
-
link: this.colors.AccentBlue,
|
|
303
|
-
accent: this.colors.AccentPurple,
|
|
304
|
-
code: this.colors.LightBlue
|
|
305
|
-
},
|
|
306
|
-
background: {
|
|
307
|
-
primary: this.colors.Background,
|
|
308
|
-
diff: {
|
|
309
|
-
added: this.colors.DiffAdded,
|
|
310
|
-
removed: this.colors.DiffRemoved
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
border: {
|
|
314
|
-
default: this.colors.Gray,
|
|
315
|
-
focused: this.colors.AccentBlue
|
|
316
|
-
},
|
|
317
|
-
ui: {
|
|
318
|
-
comment: this.colors.Gray,
|
|
319
|
-
symbol: this.colors.AccentCyan,
|
|
320
|
-
gradient: this.colors.GradientColors
|
|
321
|
-
},
|
|
322
|
-
status: {
|
|
323
|
-
error: this.colors.AccentRed,
|
|
324
|
-
success: this.colors.AccentGreen,
|
|
325
|
-
warning: this.colors.AccentYellow,
|
|
326
|
-
errorDim: this.colors.AccentRedDim,
|
|
327
|
-
warningDim: this.colors.AccentYellowDim
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
this.extendedColors = extendedColors ?? deriveExtendedColors(this.colors);
|
|
331
|
-
this._colorMap = Object.freeze(this._buildColorMap(rawMappings));
|
|
332
|
-
const rawDefaultColor = rawMappings["hljs"]?.color;
|
|
333
|
-
this.defaultColor = (rawDefaultColor ? _Theme._resolveColor(rawDefaultColor) : void 0) ?? "";
|
|
334
|
-
}
|
|
335
|
-
static {
|
|
336
|
-
__name(this, "Theme");
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* The default foreground color for text when no specific highlight rule applies.
|
|
340
|
-
* This is an Ink-compatible color string (hex or name).
|
|
341
|
-
*/
|
|
342
|
-
defaultColor;
|
|
343
|
-
/**
|
|
344
|
-
* Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
|
|
345
|
-
* to Ink-compatible color strings (hex or name).
|
|
346
|
-
*/
|
|
347
|
-
_colorMap;
|
|
348
|
-
semanticColors;
|
|
349
|
-
extendedColors;
|
|
350
|
-
/**
|
|
351
|
-
* Gets the Ink-compatible color string for a given highlight.js class name.
|
|
352
|
-
* @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
|
|
353
|
-
* @returns The corresponding Ink color string (hex or name) if it exists.
|
|
354
|
-
*/
|
|
355
|
-
getInkColor(hljsClass) {
|
|
356
|
-
return this._colorMap[hljsClass];
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Resolves a CSS color value (name or hex) into an Ink-compatible color string.
|
|
360
|
-
* @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
|
|
361
|
-
* @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
|
|
362
|
-
*/
|
|
363
|
-
static _resolveColor(colorValue) {
|
|
364
|
-
return resolveColor(colorValue);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Builds the internal map from highlight.js class names to Ink-compatible color strings.
|
|
368
|
-
* This method is protected and primarily intended for use by the constructor.
|
|
369
|
-
* @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
370
|
-
* @returns An Ink-compatible theme map (Record<string, string>).
|
|
371
|
-
*/
|
|
372
|
-
_buildColorMap(hljsTheme) {
|
|
373
|
-
const inkTheme = {};
|
|
374
|
-
for (const key in hljsTheme) {
|
|
375
|
-
if (!key.startsWith("hljs-") && key !== "hljs") {
|
|
376
|
-
continue;
|
|
377
|
-
}
|
|
378
|
-
const style = hljsTheme[key];
|
|
379
|
-
if (style?.color) {
|
|
380
|
-
const resolvedColor = _Theme._resolveColor(style.color);
|
|
381
|
-
if (resolvedColor !== void 0) {
|
|
382
|
-
inkTheme[key] = resolvedColor;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return inkTheme;
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
function createCustomTheme(customTheme) {
|
|
390
|
-
const colors = {
|
|
391
|
-
type: "custom",
|
|
392
|
-
Background: customTheme.background?.primary ?? customTheme.Background ?? "",
|
|
393
|
-
Foreground: customTheme.text?.primary ?? customTheme.Foreground ?? "",
|
|
394
|
-
LightBlue: customTheme.text?.code ?? customTheme.LightBlue ?? "",
|
|
395
|
-
AccentBlue: customTheme.text?.link ?? customTheme.AccentBlue ?? "",
|
|
396
|
-
AccentPurple: customTheme.text?.accent ?? customTheme.AccentPurple ?? "",
|
|
397
|
-
AccentCyan: customTheme.text?.link ?? customTheme.AccentCyan ?? "",
|
|
398
|
-
AccentGreen: customTheme.status?.success ?? customTheme.AccentGreen ?? "",
|
|
399
|
-
AccentYellow: customTheme.status?.warning ?? customTheme.AccentYellow ?? "",
|
|
400
|
-
AccentRed: customTheme.status?.error ?? customTheme.AccentRed ?? "",
|
|
401
|
-
AccentYellowDim: customTheme.status?.warningDim ?? customTheme.AccentYellowDim ?? "",
|
|
402
|
-
AccentRedDim: customTheme.status?.errorDim ?? customTheme.AccentRedDim ?? "",
|
|
403
|
-
DiffAdded: customTheme.background?.diff?.added ?? customTheme.DiffAdded ?? "",
|
|
404
|
-
DiffRemoved: customTheme.background?.diff?.removed ?? customTheme.DiffRemoved ?? "",
|
|
405
|
-
Comment: customTheme.ui?.comment ?? customTheme.Comment ?? "",
|
|
406
|
-
Gray: customTheme.text?.secondary ?? customTheme.Gray ?? "",
|
|
407
|
-
GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors
|
|
408
|
-
};
|
|
409
|
-
const rawMappings = {
|
|
410
|
-
hljs: {
|
|
411
|
-
display: "block",
|
|
412
|
-
overflowX: "auto",
|
|
413
|
-
padding: "0.5em",
|
|
414
|
-
background: colors.Background,
|
|
415
|
-
color: colors.Foreground
|
|
416
|
-
},
|
|
417
|
-
"hljs-keyword": {
|
|
418
|
-
color: colors.AccentBlue
|
|
419
|
-
},
|
|
420
|
-
"hljs-literal": {
|
|
421
|
-
color: colors.AccentBlue
|
|
422
|
-
},
|
|
423
|
-
"hljs-symbol": {
|
|
424
|
-
color: colors.AccentBlue
|
|
425
|
-
},
|
|
426
|
-
"hljs-name": {
|
|
427
|
-
color: colors.AccentBlue
|
|
428
|
-
},
|
|
429
|
-
"hljs-link": {
|
|
430
|
-
color: colors.AccentBlue,
|
|
431
|
-
textDecoration: "underline"
|
|
432
|
-
},
|
|
433
|
-
"hljs-built_in": {
|
|
434
|
-
color: colors.AccentCyan
|
|
435
|
-
},
|
|
436
|
-
"hljs-type": {
|
|
437
|
-
color: colors.AccentCyan
|
|
438
|
-
},
|
|
439
|
-
"hljs-number": {
|
|
440
|
-
color: colors.AccentGreen
|
|
441
|
-
},
|
|
442
|
-
"hljs-class": {
|
|
443
|
-
color: colors.AccentGreen
|
|
444
|
-
},
|
|
445
|
-
"hljs-string": {
|
|
446
|
-
color: colors.AccentYellow
|
|
447
|
-
},
|
|
448
|
-
"hljs-meta-string": {
|
|
449
|
-
color: colors.AccentYellow
|
|
450
|
-
},
|
|
451
|
-
"hljs-regexp": {
|
|
452
|
-
color: colors.AccentRed
|
|
453
|
-
},
|
|
454
|
-
"hljs-template-tag": {
|
|
455
|
-
color: colors.AccentRed
|
|
456
|
-
},
|
|
457
|
-
"hljs-subst": {
|
|
458
|
-
color: colors.Foreground
|
|
459
|
-
},
|
|
460
|
-
"hljs-function": {
|
|
461
|
-
color: colors.Foreground
|
|
462
|
-
},
|
|
463
|
-
"hljs-title": {
|
|
464
|
-
color: colors.Foreground
|
|
465
|
-
},
|
|
466
|
-
"hljs-params": {
|
|
467
|
-
color: colors.Foreground
|
|
468
|
-
},
|
|
469
|
-
"hljs-formula": {
|
|
470
|
-
color: colors.Foreground
|
|
471
|
-
},
|
|
472
|
-
"hljs-comment": {
|
|
473
|
-
color: colors.Comment,
|
|
474
|
-
fontStyle: "italic"
|
|
475
|
-
},
|
|
476
|
-
"hljs-quote": {
|
|
477
|
-
color: colors.Comment,
|
|
478
|
-
fontStyle: "italic"
|
|
479
|
-
},
|
|
480
|
-
"hljs-doctag": {
|
|
481
|
-
color: colors.Comment
|
|
482
|
-
},
|
|
483
|
-
"hljs-meta": {
|
|
484
|
-
color: colors.Gray
|
|
485
|
-
},
|
|
486
|
-
"hljs-meta-keyword": {
|
|
487
|
-
color: colors.Gray
|
|
488
|
-
},
|
|
489
|
-
"hljs-tag": {
|
|
490
|
-
color: colors.Gray
|
|
491
|
-
},
|
|
492
|
-
"hljs-variable": {
|
|
493
|
-
color: colors.AccentPurple
|
|
494
|
-
},
|
|
495
|
-
"hljs-template-variable": {
|
|
496
|
-
color: colors.AccentPurple
|
|
497
|
-
},
|
|
498
|
-
"hljs-attr": {
|
|
499
|
-
color: colors.LightBlue
|
|
500
|
-
},
|
|
501
|
-
"hljs-attribute": {
|
|
502
|
-
color: colors.LightBlue
|
|
503
|
-
},
|
|
504
|
-
"hljs-builtin-name": {
|
|
505
|
-
color: colors.LightBlue
|
|
506
|
-
},
|
|
507
|
-
"hljs-section": {
|
|
508
|
-
color: colors.AccentYellow
|
|
509
|
-
},
|
|
510
|
-
"hljs-emphasis": {
|
|
511
|
-
fontStyle: "italic"
|
|
512
|
-
},
|
|
513
|
-
"hljs-strong": {
|
|
514
|
-
fontWeight: "bold"
|
|
515
|
-
},
|
|
516
|
-
"hljs-bullet": {
|
|
517
|
-
color: colors.AccentYellow
|
|
518
|
-
},
|
|
519
|
-
"hljs-selector-tag": {
|
|
520
|
-
color: colors.AccentYellow
|
|
521
|
-
},
|
|
522
|
-
"hljs-selector-id": {
|
|
523
|
-
color: colors.AccentYellow
|
|
524
|
-
},
|
|
525
|
-
"hljs-selector-class": {
|
|
526
|
-
color: colors.AccentYellow
|
|
527
|
-
},
|
|
528
|
-
"hljs-selector-attr": {
|
|
529
|
-
color: colors.AccentYellow
|
|
530
|
-
},
|
|
531
|
-
"hljs-selector-pseudo": {
|
|
532
|
-
color: colors.AccentYellow
|
|
533
|
-
},
|
|
534
|
-
"hljs-addition": {
|
|
535
|
-
backgroundColor: colors.AccentGreen,
|
|
536
|
-
display: "inline-block",
|
|
537
|
-
width: "100%"
|
|
538
|
-
},
|
|
539
|
-
"hljs-deletion": {
|
|
540
|
-
backgroundColor: colors.AccentRed,
|
|
541
|
-
display: "inline-block",
|
|
542
|
-
width: "100%"
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
const semanticColors = {
|
|
546
|
-
text: {
|
|
547
|
-
primary: customTheme.text?.primary ?? colors.Foreground,
|
|
548
|
-
secondary: customTheme.text?.secondary ?? colors.Gray,
|
|
549
|
-
link: customTheme.text?.link ?? colors.AccentBlue,
|
|
550
|
-
accent: customTheme.text?.accent ?? colors.AccentPurple,
|
|
551
|
-
code: customTheme.text?.code ?? colors.LightBlue
|
|
552
|
-
},
|
|
553
|
-
background: {
|
|
554
|
-
primary: customTheme.background?.primary ?? colors.Background,
|
|
555
|
-
diff: {
|
|
556
|
-
added: customTheme.background?.diff?.added ?? colors.DiffAdded,
|
|
557
|
-
removed: customTheme.background?.diff?.removed ?? colors.DiffRemoved
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
border: {
|
|
561
|
-
default: customTheme.border?.default ?? colors.Gray,
|
|
562
|
-
focused: customTheme.border?.focused ?? colors.AccentBlue
|
|
563
|
-
},
|
|
564
|
-
ui: {
|
|
565
|
-
comment: customTheme.ui?.comment ?? colors.Comment,
|
|
566
|
-
symbol: customTheme.ui?.symbol ?? colors.Gray,
|
|
567
|
-
gradient: customTheme.ui?.gradient ?? colors.GradientColors
|
|
568
|
-
},
|
|
569
|
-
status: {
|
|
570
|
-
error: customTheme.status?.error ?? colors.AccentRed,
|
|
571
|
-
success: customTheme.status?.success ?? colors.AccentGreen,
|
|
572
|
-
warning: customTheme.status?.warning ?? colors.AccentYellow,
|
|
573
|
-
errorDim: customTheme.status?.errorDim ?? colors.AccentRedDim,
|
|
574
|
-
warningDim: customTheme.status?.warningDim ?? colors.AccentYellowDim
|
|
575
|
-
}
|
|
576
|
-
};
|
|
577
|
-
return new Theme(
|
|
578
|
-
customTheme.name,
|
|
579
|
-
"custom",
|
|
580
|
-
rawMappings,
|
|
581
|
-
colors,
|
|
582
|
-
semanticColors
|
|
583
|
-
);
|
|
584
|
-
}
|
|
585
|
-
__name(createCustomTheme, "createCustomTheme");
|
|
586
|
-
function validateCustomTheme(customTheme) {
|
|
587
|
-
if (customTheme.name && !isValidThemeName(customTheme.name)) {
|
|
588
|
-
return {
|
|
589
|
-
isValid: false,
|
|
590
|
-
error: `Invalid theme name: ${customTheme.name}`
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
return {
|
|
594
|
-
isValid: true
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
__name(validateCustomTheme, "validateCustomTheme");
|
|
598
|
-
function isValidThemeName(name) {
|
|
599
|
-
return name.trim().length > 0 && name.trim().length <= 50;
|
|
600
|
-
}
|
|
601
|
-
__name(isValidThemeName, "isValidThemeName");
|
|
602
|
-
|
|
603
|
-
// packages/cli/src/ui/themes/ayu.ts
|
|
604
32
|
var ayuDarkColors = {
|
|
605
33
|
type: "dark",
|
|
606
34
|
Background: "#0b0e14",
|
|
@@ -2236,332 +1664,6 @@ var XCode = new Theme(
|
|
|
2236
1664
|
xcodeColors
|
|
2237
1665
|
);
|
|
2238
1666
|
|
|
2239
|
-
// packages/cli/src/ui/themes/o1-code-light.ts
|
|
2240
|
-
init_esbuild_shims();
|
|
2241
|
-
var o1codeLightColors = {
|
|
2242
|
-
type: "light",
|
|
2243
|
-
Background: "#f7f9fc",
|
|
2244
|
-
Foreground: "#162033",
|
|
2245
|
-
LightBlue: "#2f5fdb",
|
|
2246
|
-
AccentBlue: "#2b5bd7",
|
|
2247
|
-
AccentPurple: "#6547c9",
|
|
2248
|
-
AccentCyan: "#0a6d78",
|
|
2249
|
-
AccentGreen: "#157a44",
|
|
2250
|
-
AccentYellow: "#9a5200",
|
|
2251
|
-
AccentRed: "#c02d2d",
|
|
2252
|
-
AccentYellowDim: "#86683a",
|
|
2253
|
-
AccentRedDim: "#a04848",
|
|
2254
|
-
DiffAdded: "#dcf2e4",
|
|
2255
|
-
DiffRemoved: "#f9dddd",
|
|
2256
|
-
Comment: "#56637b",
|
|
2257
|
-
Gray: "#46546d",
|
|
2258
|
-
GradientColors: ["#2b5bd7", "#2f5fdb"]
|
|
2259
|
-
};
|
|
2260
|
-
var O1CodeLight = new Theme(
|
|
2261
|
-
"O1-Code Light",
|
|
2262
|
-
"light",
|
|
2263
|
-
{
|
|
2264
|
-
hljs: {
|
|
2265
|
-
display: "block",
|
|
2266
|
-
overflowX: "auto",
|
|
2267
|
-
padding: "0.5em",
|
|
2268
|
-
background: o1codeLightColors.Background,
|
|
2269
|
-
color: o1codeLightColors.Foreground
|
|
2270
|
-
},
|
|
2271
|
-
"hljs-comment": {
|
|
2272
|
-
color: o1codeLightColors.Comment,
|
|
2273
|
-
fontStyle: "italic"
|
|
2274
|
-
},
|
|
2275
|
-
"hljs-quote": {
|
|
2276
|
-
color: o1codeLightColors.AccentCyan,
|
|
2277
|
-
fontStyle: "italic"
|
|
2278
|
-
},
|
|
2279
|
-
"hljs-string": {
|
|
2280
|
-
color: o1codeLightColors.AccentGreen
|
|
2281
|
-
},
|
|
2282
|
-
"hljs-constant": {
|
|
2283
|
-
color: o1codeLightColors.AccentCyan
|
|
2284
|
-
},
|
|
2285
|
-
"hljs-number": {
|
|
2286
|
-
color: o1codeLightColors.AccentPurple
|
|
2287
|
-
},
|
|
2288
|
-
"hljs-keyword": {
|
|
2289
|
-
color: o1codeLightColors.AccentYellow
|
|
2290
|
-
},
|
|
2291
|
-
"hljs-selector-tag": {
|
|
2292
|
-
color: o1codeLightColors.AccentYellow
|
|
2293
|
-
},
|
|
2294
|
-
"hljs-attribute": {
|
|
2295
|
-
color: o1codeLightColors.AccentYellow
|
|
2296
|
-
},
|
|
2297
|
-
"hljs-variable": {
|
|
2298
|
-
color: o1codeLightColors.Foreground
|
|
2299
|
-
},
|
|
2300
|
-
"hljs-variable.language": {
|
|
2301
|
-
color: o1codeLightColors.LightBlue,
|
|
2302
|
-
fontStyle: "italic"
|
|
2303
|
-
},
|
|
2304
|
-
"hljs-title": {
|
|
2305
|
-
color: o1codeLightColors.AccentBlue
|
|
2306
|
-
},
|
|
2307
|
-
"hljs-section": {
|
|
2308
|
-
color: o1codeLightColors.AccentGreen,
|
|
2309
|
-
fontWeight: "bold"
|
|
2310
|
-
},
|
|
2311
|
-
"hljs-type": {
|
|
2312
|
-
color: o1codeLightColors.LightBlue
|
|
2313
|
-
},
|
|
2314
|
-
"hljs-class .hljs-title": {
|
|
2315
|
-
color: o1codeLightColors.AccentBlue
|
|
2316
|
-
},
|
|
2317
|
-
"hljs-tag": {
|
|
2318
|
-
color: o1codeLightColors.LightBlue
|
|
2319
|
-
},
|
|
2320
|
-
"hljs-name": {
|
|
2321
|
-
color: o1codeLightColors.AccentBlue
|
|
2322
|
-
},
|
|
2323
|
-
"hljs-builtin-name": {
|
|
2324
|
-
color: o1codeLightColors.AccentYellow
|
|
2325
|
-
},
|
|
2326
|
-
"hljs-meta": {
|
|
2327
|
-
color: o1codeLightColors.AccentYellow
|
|
2328
|
-
},
|
|
2329
|
-
"hljs-symbol": {
|
|
2330
|
-
color: o1codeLightColors.AccentRed
|
|
2331
|
-
},
|
|
2332
|
-
"hljs-bullet": {
|
|
2333
|
-
color: o1codeLightColors.AccentYellow
|
|
2334
|
-
},
|
|
2335
|
-
"hljs-regexp": {
|
|
2336
|
-
color: o1codeLightColors.AccentCyan
|
|
2337
|
-
},
|
|
2338
|
-
"hljs-link": {
|
|
2339
|
-
color: o1codeLightColors.LightBlue
|
|
2340
|
-
},
|
|
2341
|
-
"hljs-deletion": {
|
|
2342
|
-
color: o1codeLightColors.AccentRed
|
|
2343
|
-
},
|
|
2344
|
-
"hljs-addition": {
|
|
2345
|
-
color: o1codeLightColors.AccentGreen
|
|
2346
|
-
},
|
|
2347
|
-
"hljs-emphasis": {
|
|
2348
|
-
fontStyle: "italic"
|
|
2349
|
-
},
|
|
2350
|
-
"hljs-strong": {
|
|
2351
|
-
fontWeight: "bold"
|
|
2352
|
-
},
|
|
2353
|
-
"hljs-literal": {
|
|
2354
|
-
color: o1codeLightColors.AccentCyan
|
|
2355
|
-
},
|
|
2356
|
-
"hljs-built_in": {
|
|
2357
|
-
color: o1codeLightColors.AccentRed
|
|
2358
|
-
},
|
|
2359
|
-
"hljs-doctag": {
|
|
2360
|
-
color: o1codeLightColors.AccentRed
|
|
2361
|
-
},
|
|
2362
|
-
"hljs-template-variable": {
|
|
2363
|
-
color: o1codeLightColors.AccentCyan
|
|
2364
|
-
},
|
|
2365
|
-
"hljs-selector-id": {
|
|
2366
|
-
color: o1codeLightColors.AccentRed
|
|
2367
|
-
}
|
|
2368
|
-
},
|
|
2369
|
-
o1codeLightColors,
|
|
2370
|
-
{
|
|
2371
|
-
text: {
|
|
2372
|
-
primary: "#162033",
|
|
2373
|
-
secondary: "#46546d",
|
|
2374
|
-
link: "#2b5bd7",
|
|
2375
|
-
accent: "#6547c9",
|
|
2376
|
-
code: "#0a6d78"
|
|
2377
|
-
},
|
|
2378
|
-
background: {
|
|
2379
|
-
primary: "#f7f9fc",
|
|
2380
|
-
diff: { added: "#dcf2e4", removed: "#f9dddd" }
|
|
2381
|
-
},
|
|
2382
|
-
border: { default: "#a3b4d2", focused: "#2b5bd7" },
|
|
2383
|
-
ui: {
|
|
2384
|
-
comment: "#56637b",
|
|
2385
|
-
symbol: "#46546d",
|
|
2386
|
-
gradient: o1codeLightColors.GradientColors
|
|
2387
|
-
},
|
|
2388
|
-
status: {
|
|
2389
|
-
error: "#c02d2d",
|
|
2390
|
-
success: "#157a44",
|
|
2391
|
-
warning: "#9a5200",
|
|
2392
|
-
errorDim: "#a04848",
|
|
2393
|
-
warningDim: "#86683a"
|
|
2394
|
-
}
|
|
2395
|
-
},
|
|
2396
|
-
{
|
|
2397
|
-
text: { muted: "#56637b", placeholder: "#65728a" },
|
|
2398
|
-
ui: {
|
|
2399
|
-
separator: "#9fadca",
|
|
2400
|
-
rule: "#a3b4d2",
|
|
2401
|
-
brand: "#2b5bd7",
|
|
2402
|
-
brandSoft: "#2f5fdb"
|
|
2403
|
-
},
|
|
2404
|
-
activity: {
|
|
2405
|
-
info: "#2b5bd7",
|
|
2406
|
-
read: "#0a6d78",
|
|
2407
|
-
write: "#6547c9",
|
|
2408
|
-
execute: "#9a5200",
|
|
2409
|
-
success: "#157a44"
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
);
|
|
2413
|
-
|
|
2414
|
-
// packages/cli/src/ui/themes/o1-code-dark.ts
|
|
2415
|
-
init_esbuild_shims();
|
|
2416
|
-
var o1codeDarkColors = {
|
|
2417
|
-
type: "dark",
|
|
2418
|
-
Background: "#0a1220",
|
|
2419
|
-
Foreground: "#e6ecf5",
|
|
2420
|
-
LightBlue: "#8fb2ff",
|
|
2421
|
-
AccentBlue: "#6e9bff",
|
|
2422
|
-
AccentPurple: "#a48bff",
|
|
2423
|
-
AccentCyan: "#3fc7d6",
|
|
2424
|
-
AccentGreen: "#3fd07f",
|
|
2425
|
-
AccentYellow: "#ffa347",
|
|
2426
|
-
AccentRed: "#ff6b6b",
|
|
2427
|
-
AccentYellowDim: "#8a5a2b",
|
|
2428
|
-
AccentRedDim: "#8a3d45",
|
|
2429
|
-
DiffAdded: "#123624",
|
|
2430
|
-
DiffRemoved: "#3b1a20",
|
|
2431
|
-
Comment: "#8593aa",
|
|
2432
|
-
Gray: "#95a5be",
|
|
2433
|
-
GradientColors: ["#6e9bff", "#8fb2ff"]
|
|
2434
|
-
};
|
|
2435
|
-
var O1CodeDark = new Theme(
|
|
2436
|
-
"O1-Code Dark",
|
|
2437
|
-
"dark",
|
|
2438
|
-
{
|
|
2439
|
-
hljs: {
|
|
2440
|
-
display: "block",
|
|
2441
|
-
overflowX: "auto",
|
|
2442
|
-
padding: "0.5em",
|
|
2443
|
-
background: o1codeDarkColors.Background,
|
|
2444
|
-
color: o1codeDarkColors.Foreground
|
|
2445
|
-
},
|
|
2446
|
-
"hljs-keyword": {
|
|
2447
|
-
color: o1codeDarkColors.AccentYellow
|
|
2448
|
-
},
|
|
2449
|
-
"hljs-literal": {
|
|
2450
|
-
color: o1codeDarkColors.AccentPurple
|
|
2451
|
-
},
|
|
2452
|
-
"hljs-symbol": {
|
|
2453
|
-
color: o1codeDarkColors.AccentCyan
|
|
2454
|
-
},
|
|
2455
|
-
"hljs-name": {
|
|
2456
|
-
color: o1codeDarkColors.LightBlue
|
|
2457
|
-
},
|
|
2458
|
-
"hljs-link": {
|
|
2459
|
-
color: o1codeDarkColors.AccentBlue
|
|
2460
|
-
},
|
|
2461
|
-
"hljs-function .hljs-keyword": {
|
|
2462
|
-
color: o1codeDarkColors.AccentYellow
|
|
2463
|
-
},
|
|
2464
|
-
"hljs-subst": {
|
|
2465
|
-
color: o1codeDarkColors.Foreground
|
|
2466
|
-
},
|
|
2467
|
-
"hljs-string": {
|
|
2468
|
-
color: o1codeDarkColors.AccentGreen
|
|
2469
|
-
},
|
|
2470
|
-
"hljs-title": {
|
|
2471
|
-
color: o1codeDarkColors.AccentYellow
|
|
2472
|
-
},
|
|
2473
|
-
"hljs-type": {
|
|
2474
|
-
color: o1codeDarkColors.AccentBlue
|
|
2475
|
-
},
|
|
2476
|
-
"hljs-attribute": {
|
|
2477
|
-
color: o1codeDarkColors.AccentYellow
|
|
2478
|
-
},
|
|
2479
|
-
"hljs-bullet": {
|
|
2480
|
-
color: o1codeDarkColors.AccentYellow
|
|
2481
|
-
},
|
|
2482
|
-
"hljs-addition": {
|
|
2483
|
-
color: o1codeDarkColors.AccentGreen
|
|
2484
|
-
},
|
|
2485
|
-
"hljs-variable": {
|
|
2486
|
-
color: o1codeDarkColors.Foreground
|
|
2487
|
-
},
|
|
2488
|
-
"hljs-template-tag": {
|
|
2489
|
-
color: o1codeDarkColors.AccentYellow
|
|
2490
|
-
},
|
|
2491
|
-
"hljs-template-variable": {
|
|
2492
|
-
color: o1codeDarkColors.AccentYellow
|
|
2493
|
-
},
|
|
2494
|
-
"hljs-comment": {
|
|
2495
|
-
color: o1codeDarkColors.Comment,
|
|
2496
|
-
fontStyle: "italic"
|
|
2497
|
-
},
|
|
2498
|
-
"hljs-quote": {
|
|
2499
|
-
color: o1codeDarkColors.AccentCyan,
|
|
2500
|
-
fontStyle: "italic"
|
|
2501
|
-
},
|
|
2502
|
-
"hljs-deletion": {
|
|
2503
|
-
color: o1codeDarkColors.AccentRed
|
|
2504
|
-
},
|
|
2505
|
-
"hljs-meta": {
|
|
2506
|
-
color: o1codeDarkColors.AccentYellow
|
|
2507
|
-
},
|
|
2508
|
-
"hljs-doctag": {
|
|
2509
|
-
fontWeight: "bold"
|
|
2510
|
-
},
|
|
2511
|
-
"hljs-strong": {
|
|
2512
|
-
fontWeight: "bold"
|
|
2513
|
-
},
|
|
2514
|
-
"hljs-emphasis": {
|
|
2515
|
-
fontStyle: "italic"
|
|
2516
|
-
}
|
|
2517
|
-
},
|
|
2518
|
-
o1codeDarkColors,
|
|
2519
|
-
{
|
|
2520
|
-
text: {
|
|
2521
|
-
// The terminal's own foreground: stays readable if background detection
|
|
2522
|
-
// fails and this default theme lands on a light terminal.
|
|
2523
|
-
primary: "",
|
|
2524
|
-
secondary: "#95a5be",
|
|
2525
|
-
link: "#6e9bff",
|
|
2526
|
-
accent: "#a48bff",
|
|
2527
|
-
code: "#3fc7d6"
|
|
2528
|
-
},
|
|
2529
|
-
background: {
|
|
2530
|
-
primary: "#0a1220",
|
|
2531
|
-
diff: { added: "#123624", removed: "#3b1a20" }
|
|
2532
|
-
},
|
|
2533
|
-
border: { default: "#46598a", focused: "#6e9bff" },
|
|
2534
|
-
ui: {
|
|
2535
|
-
comment: "#8593aa",
|
|
2536
|
-
symbol: "#95a5be",
|
|
2537
|
-
gradient: o1codeDarkColors.GradientColors
|
|
2538
|
-
},
|
|
2539
|
-
status: {
|
|
2540
|
-
error: "#ff6b6b",
|
|
2541
|
-
success: "#3fd07f",
|
|
2542
|
-
warning: "#ffa347",
|
|
2543
|
-
errorDim: "#8a3d45",
|
|
2544
|
-
warningDim: "#8a5a2b"
|
|
2545
|
-
}
|
|
2546
|
-
},
|
|
2547
|
-
{
|
|
2548
|
-
text: { muted: "#8593aa", placeholder: "#7a879e" },
|
|
2549
|
-
ui: {
|
|
2550
|
-
separator: "#52679c",
|
|
2551
|
-
rule: "#46598a",
|
|
2552
|
-
brand: "#6e9bff",
|
|
2553
|
-
brandSoft: "#8fb2ff"
|
|
2554
|
-
},
|
|
2555
|
-
activity: {
|
|
2556
|
-
info: "#6e9bff",
|
|
2557
|
-
read: "#3fc7d6",
|
|
2558
|
-
write: "#a48bff",
|
|
2559
|
-
execute: "#ffa347",
|
|
2560
|
-
success: "#3fd07f"
|
|
2561
|
-
}
|
|
2562
|
-
}
|
|
2563
|
-
);
|
|
2564
|
-
|
|
2565
1667
|
// packages/cli/src/ui/themes/theme-manager.ts
|
|
2566
1668
|
import * as fs from "node:fs";
|
|
2567
1669
|
import * as path from "node:path";
|
|
@@ -3135,7 +2237,7 @@ import process2 from "node:process";
|
|
|
3135
2237
|
init_esbuild_shims();
|
|
3136
2238
|
import { execSync } from "node:child_process";
|
|
3137
2239
|
import process from "node:process";
|
|
3138
|
-
var
|
|
2240
|
+
var debugLogger = createDebugLogger("THEME_DETECT");
|
|
3139
2241
|
var OSC11_TIMEOUT_MS = 200;
|
|
3140
2242
|
function hexComponent(hex) {
|
|
3141
2243
|
const max = 16 ** hex.length - 1;
|
|
@@ -3244,49 +2346,49 @@ __name(detectFromColorFgBg, "detectFromColorFgBg");
|
|
|
3244
2346
|
function detectTerminalTheme() {
|
|
3245
2347
|
const colorFgBgResult = detectFromColorFgBg();
|
|
3246
2348
|
if (colorFgBgResult) {
|
|
3247
|
-
|
|
2349
|
+
debugLogger.info(`Detected theme from COLORFGBG: ${colorFgBgResult}`);
|
|
3248
2350
|
return colorFgBgResult;
|
|
3249
2351
|
}
|
|
3250
2352
|
const macResult = detectMacOSTheme();
|
|
3251
2353
|
if (macResult) {
|
|
3252
|
-
|
|
2354
|
+
debugLogger.info(
|
|
3253
2355
|
`Detected theme from macOS system appearance: ${macResult}`
|
|
3254
2356
|
);
|
|
3255
2357
|
return macResult;
|
|
3256
2358
|
}
|
|
3257
|
-
|
|
2359
|
+
debugLogger.info("Could not detect terminal theme, defaulting to dark");
|
|
3258
2360
|
return "dark";
|
|
3259
2361
|
}
|
|
3260
2362
|
__name(detectTerminalTheme, "detectTerminalTheme");
|
|
3261
2363
|
async function detectTerminalThemeAsync() {
|
|
3262
2364
|
const colorFgBgResult = detectFromColorFgBg();
|
|
3263
2365
|
if (colorFgBgResult) {
|
|
3264
|
-
|
|
2366
|
+
debugLogger.info(
|
|
3265
2367
|
`Detected theme from COLORFGBG (async path): ${colorFgBgResult}`
|
|
3266
2368
|
);
|
|
3267
2369
|
return colorFgBgResult;
|
|
3268
2370
|
}
|
|
3269
2371
|
const osc11Result = await detectOsc11Theme();
|
|
3270
2372
|
if (osc11Result) {
|
|
3271
|
-
|
|
2373
|
+
debugLogger.info(
|
|
3272
2374
|
`Detected theme from OSC 11 background query: ${osc11Result}`
|
|
3273
2375
|
);
|
|
3274
2376
|
return osc11Result;
|
|
3275
2377
|
}
|
|
3276
2378
|
const macResult = detectMacOSTheme();
|
|
3277
2379
|
if (macResult) {
|
|
3278
|
-
|
|
2380
|
+
debugLogger.info(
|
|
3279
2381
|
`Detected theme from macOS system appearance: ${macResult}`
|
|
3280
2382
|
);
|
|
3281
2383
|
return macResult;
|
|
3282
2384
|
}
|
|
3283
|
-
|
|
2385
|
+
debugLogger.info("Could not detect terminal theme, defaulting to dark");
|
|
3284
2386
|
return "dark";
|
|
3285
2387
|
}
|
|
3286
2388
|
__name(detectTerminalThemeAsync, "detectTerminalThemeAsync");
|
|
3287
2389
|
|
|
3288
2390
|
// packages/cli/src/ui/themes/theme-manager.ts
|
|
3289
|
-
var
|
|
2391
|
+
var debugLogger2 = createDebugLogger("THEME_MANAGER");
|
|
3290
2392
|
var DEFAULT_THEME = O1CodeDark;
|
|
3291
2393
|
var AUTO_THEME_NAME = "auto";
|
|
3292
2394
|
function isPathWithinDirectory(parent, child) {
|
|
@@ -3336,7 +2438,7 @@ var ThemeManager = class {
|
|
|
3336
2438
|
const validation = validateCustomTheme(customThemeConfig);
|
|
3337
2439
|
if (validation.isValid) {
|
|
3338
2440
|
if (validation.warning) {
|
|
3339
|
-
|
|
2441
|
+
debugLogger2.warn(`Theme "${name}": ${validation.warning}`);
|
|
3340
2442
|
}
|
|
3341
2443
|
const themeWithDefaults = {
|
|
3342
2444
|
...DEFAULT_THEME.colors,
|
|
@@ -3348,10 +2450,10 @@ var ThemeManager = class {
|
|
|
3348
2450
|
const theme = createCustomTheme(themeWithDefaults);
|
|
3349
2451
|
this.customThemes.set(name, theme);
|
|
3350
2452
|
} catch (error) {
|
|
3351
|
-
|
|
2453
|
+
debugLogger2.warn(`Failed to load custom theme "${name}":`, error);
|
|
3352
2454
|
}
|
|
3353
2455
|
} else {
|
|
3354
|
-
|
|
2456
|
+
debugLogger2.warn(`Invalid custom theme "${name}": ${validation.error}`);
|
|
3355
2457
|
}
|
|
3356
2458
|
}
|
|
3357
2459
|
if (this.activeTheme && this.activeTheme.type === "custom" && this.customThemes.has(this.activeTheme.name)) {
|
|
@@ -3368,7 +2470,7 @@ var ThemeManager = class {
|
|
|
3368
2470
|
setActiveTheme(themeName) {
|
|
3369
2471
|
if (themeName === AUTO_THEME_NAME) {
|
|
3370
2472
|
this.activeTheme = this.resolveAutoTheme();
|
|
3371
|
-
|
|
2473
|
+
debugLogger2.info(`Auto-detected theme: ${this.activeTheme.name}`);
|
|
3372
2474
|
return true;
|
|
3373
2475
|
}
|
|
3374
2476
|
const theme = this.findThemeByName(themeName);
|
|
@@ -3413,7 +2515,7 @@ var ThemeManager = class {
|
|
|
3413
2515
|
const detected = await detectTerminalThemeAsync();
|
|
3414
2516
|
this.cachedAutoDetection = detected;
|
|
3415
2517
|
this.activeTheme = detected === "light" ? O1CodeLight : O1CodeDark;
|
|
3416
|
-
|
|
2518
|
+
debugLogger2.info(`Auto-detected theme (async): ${this.activeTheme.name}`);
|
|
3417
2519
|
}
|
|
3418
2520
|
/**
|
|
3419
2521
|
* Returns the terminal's detected background brightness ('dark' | 'light').
|
|
@@ -3541,7 +2643,7 @@ var ThemeManager = class {
|
|
|
3541
2643
|
}
|
|
3542
2644
|
const homeDir = path.resolve(os.homedir());
|
|
3543
2645
|
if (!isPathWithinDirectory(homeDir, canonicalPath)) {
|
|
3544
|
-
|
|
2646
|
+
debugLogger2.warn(
|
|
3545
2647
|
`Theme file at "${themePath}" is outside your home directory. Only load themes from trusted sources.`
|
|
3546
2648
|
);
|
|
3547
2649
|
return void 0;
|
|
@@ -3550,13 +2652,13 @@ var ThemeManager = class {
|
|
|
3550
2652
|
const customThemeConfig = JSON.parse(themeContent);
|
|
3551
2653
|
const validation = validateCustomTheme(customThemeConfig);
|
|
3552
2654
|
if (!validation.isValid) {
|
|
3553
|
-
|
|
2655
|
+
debugLogger2.warn(
|
|
3554
2656
|
`Invalid custom theme from file "${themePath}": ${validation.error}`
|
|
3555
2657
|
);
|
|
3556
2658
|
return void 0;
|
|
3557
2659
|
}
|
|
3558
2660
|
if (validation.warning) {
|
|
3559
|
-
|
|
2661
|
+
debugLogger2.warn(`Theme from "${themePath}": ${validation.warning}`);
|
|
3560
2662
|
}
|
|
3561
2663
|
const themeWithDefaults = {
|
|
3562
2664
|
...DEFAULT_THEME.colors,
|
|
@@ -3569,7 +2671,7 @@ var ThemeManager = class {
|
|
|
3569
2671
|
return theme;
|
|
3570
2672
|
} catch (error) {
|
|
3571
2673
|
if (!(error instanceof Error && "code" in error && error.code === "ENOENT")) {
|
|
3572
|
-
|
|
2674
|
+
debugLogger2.warn(
|
|
3573
2675
|
`Could not load theme from file "${themePath}":`,
|
|
3574
2676
|
error
|
|
3575
2677
|
);
|
|
@@ -3599,7 +2701,6 @@ var ThemeManager = class {
|
|
|
3599
2701
|
var themeManager = new ThemeManager();
|
|
3600
2702
|
|
|
3601
2703
|
export {
|
|
3602
|
-
resolveColor,
|
|
3603
2704
|
DEFAULT_THEME,
|
|
3604
2705
|
AUTO_THEME_NAME,
|
|
3605
2706
|
themeManager
|
|
@@ -3609,14 +2710,3 @@ export {
|
|
|
3609
2710
|
* Copyright 2025 Google LLC
|
|
3610
2711
|
* SPDX-License-Identifier: Apache-2.0
|
|
3611
2712
|
*/
|
|
3612
|
-
/**
|
|
3613
|
-
* @license
|
|
3614
|
-
* Copyright 2026 o1-code contributors
|
|
3615
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
3616
|
-
*/
|
|
3617
|
-
/**
|
|
3618
|
-
* @license
|
|
3619
|
-
* Copyright 2025 Google LLC
|
|
3620
|
-
* Modified by the o1-code project; see NOTICE.
|
|
3621
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
3622
|
-
*/
|