@organizaone/o1-code 0.20.3 → 0.21.1
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 +16 -1
- package/chunks/{MaxSizedBox-EZERR2VP.js → MaxSizedBox-ICHZQXOC.js} +21 -20
- package/chunks/{StandaloneSessionPicker-JNWXQZWK.js → StandaloneSessionPicker-NUNGDLEK.js} +42 -41
- package/chunks/{acp-subagent-executor-SWU2HEK2.js → acp-subagent-executor-2QB2XKHF.js} +19 -19
- package/chunks/{acpAgent-KBGZCBFV.js → acpAgent-7HJVGVK7.js} +114 -112
- package/chunks/{agent-IXG5INIW.js → agent-NRULZSLB.js} +9 -9
- package/chunks/{agent-headless-SY563G4Y.js → agent-headless-5KFFNZAU.js} +9 -9
- package/chunks/{all-providers-GEEOO5NG.js → all-providers-PBLJP7ZP.js} +2 -2
- package/chunks/{anthropicContentGenerator-QPZOYWP7.js → anthropicContentGenerator-S5N2I7GF.js} +5 -5
- package/chunks/{bridge-RCKHVFJ3.js → bridge-QIZ7R2BN.js} +19 -19
- package/chunks/{ca-6DKW436A.js → ca-EMDHXMDN.js} +6 -2
- package/chunks/{chunk-SKAH52QV.js → chunk-2AVSJ6YM.js} +1 -1
- package/chunks/chunk-2EFFEOP5.js +5043 -0
- package/chunks/{chunk-ZJ3GFM2U.js → chunk-2J4JQ2N4.js} +1 -1
- package/chunks/{chunk-RATJ5RDQ.js → chunk-3EWATM2M.js} +2 -2
- package/chunks/{chunk-LNWFWFJ4.js → chunk-3OU2KLMT.js} +3 -3
- package/chunks/{chunk-3DMPE7V6.js → chunk-3VKECQVW.js} +1 -1
- package/chunks/{chunk-L5MVOG3F.js → chunk-3ZAL7E5H.js} +1 -1
- package/chunks/{chunk-F5OH2PNI.js → chunk-4FUZP37P.js} +1 -1
- package/chunks/{chunk-XVYLALS6.js → chunk-4MTOCDP5.js} +2 -2
- package/chunks/{chunk-GNZQPESW.js → chunk-4NYLN5W2.js} +1 -1
- package/chunks/{chunk-ME6C5KAY.js → chunk-4PGPOGT5.js} +1 -1
- package/chunks/{chunk-Q6RYNLZS.js → chunk-63JTYQRD.js} +2 -2
- package/chunks/{chunk-WILZABQC.js → chunk-6NJGVFEF.js} +1 -1
- package/chunks/{chunk-CX4XYMNF.js → chunk-7CGD5SXJ.js} +7 -7
- package/chunks/{chunk-RI3VQTAX.js → chunk-7OP457SY.js} +3 -3
- package/chunks/{chunk-EZ3OQPXV.js → chunk-7T5XLH7W.js} +2 -2
- package/chunks/{chunk-2DFFYJGZ.js → chunk-AB76QMX5.js} +4 -4
- package/chunks/{chunk-2HLFWCUP.js → chunk-AG4TACE2.js} +1 -1
- package/chunks/{chunk-AP5DFANZ.js → chunk-ALOGVVOM.js} +5 -5
- package/chunks/{chunk-7EXAMT2I.js → chunk-AT7KYJE5.js} +2 -2
- package/chunks/{chunk-Q6OW4P7O.js → chunk-AVKRSELA.js} +1 -1
- package/chunks/{chunk-LYYJBCAH.js → chunk-B76JTBXH.js} +3 -3
- package/chunks/{chunk-SLIL7BEZ.js → chunk-BENP2MGF.js} +2 -2
- package/chunks/{chunk-A5JZKZ6Q.js → chunk-BJSDPW6T.js} +5 -5
- package/chunks/{chunk-FG53SLIP.js → chunk-BJVBQEFV.js} +2 -2
- package/chunks/{chunk-N2JEPFUF.js → chunk-BNOGS4FX.js} +3 -3
- package/chunks/{chunk-LFMK5B3W.js → chunk-BPJSYUTS.js} +1 -1
- package/chunks/{chunk-KSXF26WD.js → chunk-CKZ4CWXJ.js} +2 -2
- package/chunks/{chunk-VJWTK75T.js → chunk-CQZV6HQY.js} +8 -8
- package/chunks/{chunk-RBNHPCLB.js → chunk-CWJUH3EP.js} +2 -2
- package/chunks/{chunk-E6FTSEFU.js → chunk-DYLKYM5L.js} +3 -3
- package/chunks/{chunk-HDVWETU2.js → chunk-EQQRWB52.js} +12 -12
- package/chunks/{chunk-GLHPVNIZ.js → chunk-EULKBEV3.js} +4 -4
- package/chunks/{chunk-YPR43UHE.js → chunk-H7FQO2AI.js} +39 -39
- package/chunks/{chunk-GVELMYCX.js → chunk-HB6UJVMB.js} +1 -1
- package/chunks/{chunk-RHZORPOC.js → chunk-HHESWHDQ.js} +3 -3
- package/chunks/{chunk-PFOXLZCP.js → chunk-I6WVVBQB.js} +9 -9
- package/chunks/{chunk-23MB6DC2.js → chunk-I762YPHY.js} +5 -5
- package/chunks/{chunk-FDKCSPGD.js → chunk-ISCYNEVI.js} +13 -13
- package/chunks/{chunk-VWOLZXSN.js → chunk-JDEVIYN7.js} +4 -4
- package/chunks/{chunk-KV5NXG3S.js → chunk-JTFJDKOH.js} +2 -2
- package/chunks/{chunk-R3QWLJJF.js → chunk-K2G3JOA2.js} +13 -13
- package/chunks/{chunk-MBJJLPMX.js → chunk-KAKO4FTG.js} +32 -30
- package/chunks/{chunk-QKL4LXBU.js → chunk-L4O2KABK.js} +8 -8
- package/chunks/chunk-LRHUT6ZW.js +880 -0
- package/chunks/{chunk-ZKBTWORX.js → chunk-LY7DCKUQ.js} +2 -2
- package/chunks/{chunk-VQYBOX6T.js → chunk-M433S7FB.js} +2 -2
- package/chunks/{chunk-4B3VOPKW.js → chunk-MDNLB3UK.js} +5 -5
- package/chunks/{chunk-GDRFBPU5.js → chunk-MGEJU367.js} +1 -1
- package/chunks/{chunk-LPP5I5D7.js → chunk-MHMNVRN7.js} +3 -3
- package/chunks/{chunk-2FDD7R4M.js → chunk-MIM5ENJO.js} +6 -6
- package/chunks/{chunk-7UME3BB3.js → chunk-MLTPPT33.js} +1 -1
- package/chunks/{chunk-EW76FWYR.js → chunk-MVA53QCQ.js} +1 -1
- package/chunks/{chunk-OMBM5PM7.js → chunk-MW7MEKI4.js} +6 -6
- package/chunks/{chunk-6F6GDT4W.js → chunk-N37OR5HF.js} +9 -9
- package/chunks/{chunk-PRHAZ5WA.js → chunk-N4TE7U5S.js} +1 -1
- package/chunks/{chunk-CEQQIJ45.js → chunk-NLC655HE.js} +2 -2
- package/chunks/{chunk-VLAUXCTV.js → chunk-NYIPXPK4.js} +4 -4
- package/chunks/{chunk-AY7TZ56V.js → chunk-OCPL4PPW.js} +86 -43
- package/chunks/{chunk-TR4DEKSP.js → chunk-OMVVKQSW.js} +2 -2
- package/chunks/{chunk-P6YI66SA.js → chunk-ONHO7K3C.js} +1 -1
- package/chunks/{chunk-3TLBRQSX.js → chunk-P2QG25IN.js} +1 -1
- package/chunks/{chunk-VFSP4ZUZ.js → chunk-P7RO4QSF.js} +28 -938
- package/chunks/{chunk-5KLLG2CZ.js → chunk-Q4OQQMBM.js} +1 -1
- package/chunks/{chunk-NTUVIB2G.js → chunk-R5HO4EJV.js} +1 -1
- package/chunks/{chunk-TBVRYAVY.js → chunk-RRR7ZLSX.js} +3 -3
- package/chunks/{chunk-CN7MCAV5.js → chunk-RV5JQNMP.js} +4 -4
- package/chunks/{chunk-4ABEICOS.js → chunk-S3PGH3X6.js} +1 -1
- package/chunks/{chunk-UCXFJKY7.js → chunk-S445OAV2.js} +2 -2
- package/chunks/{chunk-QTKR2GD7.js → chunk-SLYDITP6.js} +1 -1
- package/chunks/{chunk-IUFEZVEZ.js → chunk-SMTIRSBP.js} +3 -3
- package/chunks/{chunk-DSAFH5CY.js → chunk-TJQTTY4F.js} +1 -1
- package/chunks/{chunk-4WQOE2IB.js → chunk-TUHTOEMJ.js} +2 -2
- package/chunks/{chunk-CIQ2CLQ2.js → chunk-TW6YBXRS.js} +1 -1
- package/chunks/{chunk-RTTJOKFS.js → chunk-UGGPKFNW.js} +10 -10
- package/chunks/{chunk-KMIBUJJV.js → chunk-UMBH4KSJ.js} +3 -3
- package/chunks/{chunk-LKRP2YCP.js → chunk-V44ZGIAX.js} +48 -48
- package/chunks/{chunk-MDJ4DEEJ.js → chunk-VACXX3OU.js} +1 -1
- package/chunks/chunk-VDSY3ODQ.js +2405 -0
- package/chunks/{chunk-6YH4HZFZ.js → chunk-VEWUBZZA.js} +3 -3
- package/chunks/{chunk-TQ65TNCT.js → chunk-VKDFX366.js} +1 -1
- package/chunks/{chunk-CH4NSUSE.js → chunk-VPHE2AYS.js} +9 -9
- package/chunks/{chunk-GFSDXCA6.js → chunk-WBH5MEDL.js} +3 -3
- package/chunks/{chunk-FBHAG372.js → chunk-WG3EVBEA.js} +3 -3
- package/chunks/{chunk-K6XWNSG7.js → chunk-WMLBM6FX.js} +1 -1
- package/chunks/{chunk-SAA7VWPH.js → chunk-XHAP6TX4.js} +1 -1
- package/chunks/{chunk-QAWZUGTG.js → chunk-YGZY5CAA.js} +2 -2
- package/chunks/chunk-YQQ7QFC5.js +945 -0
- package/chunks/{chunk-2GPRQW4P.js → chunk-YSLT46MG.js} +2 -2
- package/chunks/{chunk-FRXXYR4K.js → chunk-Z26JZJS7.js} +2 -2
- package/chunks/{chunk-URHRCX4D.js → chunk-ZCFFGFMQ.js} +2 -2
- package/chunks/{codex-subagent-executor-WNFU67G7.js → codex-subagent-executor-C5LFSQDT.js} +19 -19
- package/chunks/{contextCommand-6LFH2YPP.js → contextCommand-KQVTLA7W.js} +19 -19
- package/chunks/{core-runtime-MFXIMNSH.js → core-runtime-YR4XELUK.js} +17 -17
- package/chunks/{create-sub-session-NUE3R5WZ.js → create-sub-session-ULOGZEVK.js} +18 -18
- package/chunks/{daemon-git-worktree-guard-PQ3SE2KI.js → daemon-git-worktree-guard-CWE46OLL.js} +17 -17
- package/chunks/{daemon-status-provider-Z5OUOPTR.js → daemon-status-provider-ILG5O2E3.js} +24 -24
- package/chunks/{daemon-trust-policy-TX4QULOJ.js → daemon-trust-policy-FLL572SJ.js} +24 -24
- package/chunks/{daemon-trust-policy-monitor-CNBHLZT7.js → daemon-trust-policy-monitor-ZZD77SCF.js} +24 -24
- package/chunks/{de-E75VCQRZ.js → de-OMV463ND.js} +6 -2
- package/chunks/{deferred-core-runtime-XDE6DRBZ.js → deferred-core-runtime-PKKIUQY7.js} +17 -17
- package/chunks/{edit-QONTKKDS.js → edit-YY7OEZD4.js} +11 -11
- package/chunks/{en-TS3SF6KR.js → en-EEVIOXSR.js} +6 -2
- package/chunks/{enterPlanMode-A3NZ5LMR.js → enterPlanMode-RQJNH7BZ.js} +9 -9
- package/chunks/{environment-6FE7XGAC.js → environment-2KUMDVHJ.js} +19 -19
- package/chunks/{errors-R5Y7H2GW.js → errors-YG2MGIUH.js} +19 -19
- package/chunks/{execution-tool-BTPXNHGK.js → execution-tool-KO3S2ZMM.js} +11 -11
- package/chunks/{execution-worker-Q2WOKDYJ.js → execution-worker-T46PXAUX.js} +14 -14
- package/chunks/{exitPlanMode-FWVAIF2G.js → exitPlanMode-TZTA7KK3.js} +9 -9
- package/chunks/{fast-path-ADV46XXY.js → fast-path-NX5R5TEE.js} +5 -5
- package/chunks/foreground-runner-B37S5XWE.js +1496 -0
- package/chunks/{fr-KWQ6T7MX.js → fr-ZHVJMULM.js} +6 -2
- package/chunks/{glob-7C5LFIFY.js → glob-G4O2HUPX.js} +9 -9
- package/chunks/{goal-tools-ZBOA3S6T.js → goal-tools-LPZGCCGC.js} +9 -9
- package/chunks/{handleAutoUpdate-OZFXXZGE.js → handleAutoUpdate-FZZY67SI.js} +20 -20
- package/chunks/{i18n-ETDHGUAS.js → i18n-TER6KDYN.js} +18 -18
- package/chunks/{initializer-3TGPNDS6.js → initializer-WMM3T4IM.js} +26 -25
- package/chunks/{installationInfo-53FUD2SP.js → installationInfo-FTE33LPP.js} +17 -17
- package/chunks/{ja-NLAMHYSV.js → ja-MQ3LTDXD.js} +6 -2
- package/chunks/{list-D2SFACP2.js → list-CPFDTK72.js} +26 -26
- package/chunks/{llm-6JBUAXKT.js → llm-JEZJRZJX.js} +70 -70
- package/chunks/{llm-content-generator-X2YXGOCB.js → llm-content-generator-IUI5TQIN.js} +4 -4
- package/chunks/{loadedSettingsAdapter-S2OW76SD.js → loadedSettingsAdapter-FPRQ7O5E.js} +24 -24
- package/chunks/{local-execution-environment-TCIIK3JA.js → local-execution-environment-AY4TUGMD.js} +14 -14
- package/chunks/{loggingContentGenerator-GDJB7R3H.js → loggingContentGenerator-H4K7K3LL.js} +9 -9
- package/chunks/{managed-npm-update-I3YZBNY7.js → managed-npm-update-V7VEVX6I.js} +17 -17
- package/chunks/{mcp-6GZRGYAG.js → mcp-7PZ6AUCD.js} +24 -24
- package/chunks/{model-call-collection-YAUSBU5N.js → model-call-collection-RJ73WWKF.js} +1 -1
- package/chunks/{model-configuration-SMKT6PVP.js → model-configuration-AG546PXF.js} +25 -25
- package/chunks/{modelConfigUtils-FEON5T3Z.js → modelConfigUtils-4OUURPZ6.js} +19 -19
- package/chunks/{monitor-RNGWRP7C.js → monitor-7T2C33DH.js} +9 -9
- package/chunks/{nonInteractiveCli-5N55OFDF.js → nonInteractiveCli-JH3JQDRV.js} +62 -60
- package/chunks/{nonInteractiveToolExecutor-EURXYN6L.js → nonInteractiveToolExecutor-D5QJW7E6.js} +10 -10
- package/chunks/{notebook-edit-DMEOTACP.js → notebook-edit-2G52PPMW.js} +10 -10
- package/chunks/{omni-A6J5PKS7.js → omni-QYW5TRUE.js} +9 -9
- package/chunks/{openaiContentGenerator-2ZU6S23B.js → openaiContentGenerator-M63PIBVK.js} +6 -6
- package/chunks/{openaiResponsesContentGenerator-4RE34Y4W.js → openaiResponsesContentGenerator-GYKYO3UN.js} +4 -4
- package/chunks/{processUtils-VBBXC2KT.js → processUtils-ZXHN3JVL.js} +2 -2
- package/chunks/{prompt-terminal-ledger-6DE5MRV3.js → prompt-terminal-ledger-VYDSE5AW.js} +18 -18
- package/chunks/{pt-F6OOJLH6.js → pt-QYD5TZDW.js} +7 -2
- package/chunks/pty-host-process-PKCVFICX.js +29 -0
- package/chunks/{reactive-degrade-S3SQRQ4D.js → reactive-degrade-OMVZTLAX.js} +8 -8
- package/chunks/{read-file-HDY4MSJE.js → read-file-ZSZXWENP.js} +1 -1
- package/chunks/{resumeHistoryUtils-BX3CLUM7.js → resumeHistoryUtils-TZ22ZUX7.js} +26 -25
- package/chunks/{ripGrep-4E63BMST.js → ripGrep-LXMRMOTC.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-2ZM6TNAJ.js} +49 -49
- package/chunks/{sandboxConfig-7D6ZZBBU.js → sandboxConfig-N4V3RKXB.js} +17 -17
- package/chunks/{scheduled-tasks-FEV7YG7C.js → scheduled-tasks-YJHWVMUP.js} +22 -22
- package/chunks/{scheduler-OOZEZWGT.js → scheduler-S7IIBQUG.js} +19 -19
- package/chunks/{serve-5CZRH2NI.js → serve-5JQUI7RR.js} +24 -24
- package/chunks/{server-AIIM3MRX.js → server-3BXWI3A3.js} +141 -141
- package/chunks/{session-FZ3NBZYB.js → session-GTZ4UFHV.js} +1 -1
- package/chunks/{session-5IHMC2GA.js → session-PSL2EVMQ.js} +63 -61
- package/chunks/{session-attachments-root-ANZOYK7U.js → session-attachments-root-RPA44E4B.js} +17 -17
- package/chunks/{session-pr-refresh-CJLDHDTN.js → session-pr-refresh-ELTZKRHT.js} +22 -22
- package/chunks/{settings-35ADR3M3.js → settings-E3PBFDUS.js} +23 -23
- package/chunks/{shell-T7WI2AB4.js → shell-XLBUVRGS.js} +9 -9
- package/chunks/{skill-3J334MPG.js → skill-NWMDK2KV.js} +1 -1
- package/chunks/{skill-settings-VGNIJ4ZG.js → skill-settings-R6JWYTB3.js} +23 -23
- package/chunks/{spawnChannel-4GZBVZWY.js → spawnChannel-PJDEPU2B.js} +18 -18
- package/chunks/{standalone-update-3MMGTOKU.js → standalone-update-B3BXNT35.js} +19 -19
- package/chunks/{startInteractiveUI-ACAXKMOW.js → startInteractiveUI-F5FKSAUY.js} +233 -134
- package/chunks/supervisor-runner-JHRQ2FCR.js +24 -0
- package/chunks/{team-create-OL5P2TT3.js → team-create-VHVRQHVZ.js} +9 -9
- package/chunks/{team-plan-approval-AVOMP63W.js → team-plan-approval-23SRLJF6.js} +9 -9
- package/chunks/{terminal-image-renderer-YIP3F3SW.js → terminal-image-renderer-XKZZBFHE.js} +17 -17
- package/chunks/{theme-manager-WGBSECIC.js → theme-manager-IDIP6CUL.js} +19 -18
- package/chunks/{tool-result-media-43B2V5GK.js → tool-result-media-22WEAYPA.js} +9 -9
- package/chunks/{tool-search-D4CTJZQZ.js → tool-search-M7KEVANW.js} +1 -1
- package/chunks/{total-session-admission-5AVX4GWU.js → total-session-admission-ANEFPOUC.js} +19 -19
- package/chunks/{trustedFolders-A3EQT2KU.js → trustedFolders-B3BX2KJM.js} +18 -18
- package/chunks/{update-relaunch-ZFQ3KKWC.js → update-relaunch-NO3TRLFX.js} +5 -5
- package/chunks/{updateCheck-6WIKLTOC.js → updateCheck-EDPN2W6U.js} +19 -19
- package/chunks/{upload-config-CYAXYVA5.js → upload-config-W75CYANV.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-WQCDJ3GF.js → useAutoAcceptIndicator-FJGWGDP2.js} +27 -27
- package/chunks/{validateNonInterActiveAuth-YAKY5TIW.js → validateNonInterActiveAuth-MXJJWDQC.js} +59 -57
- package/chunks/{version-2JL37LTE.js → version-DNGAJY4A.js} +1 -1
- package/chunks/{web-fetch-3RS7AC6O.js → web-fetch-3QOUWJFX.js} +1 -1
- package/chunks/{web-search-32AOEQHL.js → web-search-LWRUF5S7.js} +7 -7
- package/chunks/{workflow-N6HB4M7K.js → workflow-VE63BIR7.js} +10 -10
- package/chunks/{workspace-providers-status-ZWERGC3Q.js → workspace-providers-status-SGUGDW4E.js} +28 -28
- package/chunks/{workspace-registration-store-CCUU3WMT.js → workspace-registration-store-7D7EMQ6X.js} +1 -1
- package/chunks/{workspace-registry-HWKUKITM.js → workspace-registry-767IFWSB.js} +19 -19
- package/chunks/{workspace-runtime-coordinator-7I7MNHER.js → workspace-runtime-coordinator-LPFBHIUA.js} +19 -19
- package/chunks/{workspace-service-YYLFPQLW.js → workspace-service-TSICCAYR.js} +27 -27
- package/chunks/{workspace-skills-status-ZW3EQWQ6.js → workspace-skills-status-BSORV2X3.js} +24 -24
- package/chunks/{workspace-trust-reconciler-G777OJEA.js → workspace-trust-reconciler-AQKSFA6C.js} +28 -28
- package/chunks/{write-file-IL2RFUQS.js → write-file-HU2MM2ND.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-2MEKHWCA.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 +10 -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 +11 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BvS-3VoN.js → abnfDiagram-VCTEODGH-DjlxT6Sr.js} +1 -1
- package/web-shell/assets/{arc-oqBoN1VH.js → arc-BTG52NX0.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BM3vyqvf.js → architectureDiagram-5GKGNRK7-B3yKxxDY.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-S94Kz5ys.js → blockDiagram-NRAW4CY4-MuQ7Q0WE.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-wFyXR3PR.js → c4Diagram-UCG6FXSJ-BMKpk3YI.js} +1 -1
- package/web-shell/assets/channel-DIPEHWyn.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BXpOLBvy.js → chunk-2Q5K7J3B-DoMEjvF1.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BWnRV7wD.js → chunk-5VM5RSS4-Cncm10Cs.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-NJG1XfCH.js → chunk-F27PBJKO-B_8A0pWW.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-D1MDovk_.js → chunk-G27WJ6UU-B5sAuPr5.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-Biw0OjWW.js → chunk-JWPE2WC7-CGsZtxy2.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CWoypbS8.js → chunk-LCL6LL3I-BHG7Uh8x.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-ZHBPGpI1.js → chunk-POPQ4Y6H-BYVcbHXm.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-BmhiTHIA.js → chunk-SVP7TREG-nspp3_tv.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-Ctjd24gG.js → chunk-XXDRQBXY-BPVXAnc6.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-j4RKZFKw.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-j4RKZFKw.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CEq9XMDz.js → cose-bilkent-JH36ORCC-DFhIl1B_.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-3oDMxKvV.js → cynefin-OW5HDTMX-B4z0nkv3.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-yGJvzOyq.js → cynefinDiagram-5FMLGOSQ-CgmbbcAV.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-aeyZyzOG.js → dagre-3AP2YEHR-C7FLTqkC.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-BAAcB3gC.js → diagram-S7CK7UJ4-z9SCYxX5.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-B1_QGLRY.js → diagram-UQ7AKVKN-Du7TwJIE.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-BiBpaCap.js → diagram-VSXAHHWV-TKRGx1uc.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-BUzzHihe.js → diagram-VX7I27RA-B0KvMoUC.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-6JxaEF1R.js → diagram-Z3DM3KII-DefoJUnQ.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-D1-6Yjiz.js → ebnfDiagram-PWID7BFC-ZYgJb4PE.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DpcEbarm.js → erDiagram-SSCWMZ5O-BuM0aSoT.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-DlRnvlQ3.js → flowDiagram-A5DVABFB-DzNaogy6.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DABNtKOf.js → ganttDiagram-EL5Y4UJY-C9yeWyJ1.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bpq0tIqs.js → gitGraphDiagram-WWUBYQGX-Dnr2eLom.js} +1 -1
- package/web-shell/assets/{index-Bjv2-WpQ.js → index-DfLQ3XsK.js} +3 -3
- package/web-shell/assets/{index-Bm3BviDi.js → index-DvsOnaoV.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-D7e7VPRa.js → infoDiagram-RXCK75RN-DRuFQcW5.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-BlOJr8s3.js → ishikawaDiagram-5VMMS53U-BNXQTQvc.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BJOqE-Ku.js → journeyDiagram-EYS64GPL-TCyttpgn.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-9Jp1HpGG.js → kanban-definition-3QL26DDD-1GVc7gxH.js} +1 -1
- package/web-shell/assets/{layout-BXGcWPmh.js → layout-D5cYP-BL.js} +1 -1
- package/web-shell/assets/{linear-Bb-3dQRR.js → linear-CIn1s0y9.js} +1 -1
- package/web-shell/assets/{mermaid.core-BQ9PYOoO.js → mermaid.core-DBEpygcO.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BbRVue0a.js → mindmap-definition-FBJOCRG2-XCMaUnbr.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-CLALfcXo.js → pegDiagram-XKGWAZYB-yUUjcw04.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BPa_8owh.js → pieDiagram-E7YTZNPT-Dccmiudc.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DTMPh3lk.js → quadrantDiagram-AXDQQJYC-iR076kxI.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CTqUx3sg.js → railroadDiagram-O6MQD6OU-Dn9VpVQ7.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BMfxMhwk.js → requirementDiagram-EFPCY7ZU-DRWZ70Aj.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-ciGAnluT.js → sankeyDiagram-P5KCCOFB-CvSeUvzD.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-D6eZeHbE.js → sequenceDiagram-WJ2MYXX4-Dw5pDaEn.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DQPYzdVi.js → sizeCapture-X5ZJPWSS-COHyCmqe.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DkqKm2SL.js → stateDiagram-HBIQ2CUA-DrD0m5Xy.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BoV3x5L6.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-C6XGW_tM.js → swimlanes-XN3QIQJK-Ca2nCc8O.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CTpICgX7.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-CExT5Nqx.js → timeline-definition-24CTP7MA-DnDeuzB5.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DYNNQGHI.js → vennDiagram-4TSXK5OY-Cws_OFVz.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-py3CuGuQ.js → wardleyDiagram-VM6X3IG4-ruIrciDw.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CI5rcSdT.js → xychartDiagram-S5SC5T6Z-wL2dgaWC.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
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
createDebugLogger
|
|
5
|
+
} from "./chunk-UK2KIU2V.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-S2467S6L.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/cli/src/ui/themes/theme.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
|
|
16
|
+
// packages/cli/src/ui/themes/color-utils.ts
|
|
17
|
+
init_esbuild_shims();
|
|
18
|
+
var CSS_NAME_TO_HEX_MAP = {
|
|
19
|
+
aliceblue: "#f0f8ff",
|
|
20
|
+
antiquewhite: "#faebd7",
|
|
21
|
+
aqua: "#00ffff",
|
|
22
|
+
aquamarine: "#7fffd4",
|
|
23
|
+
azure: "#f0ffff",
|
|
24
|
+
beige: "#f5f5dc",
|
|
25
|
+
bisque: "#ffe4c4",
|
|
26
|
+
blanchedalmond: "#ffebcd",
|
|
27
|
+
blueviolet: "#8a2be2",
|
|
28
|
+
brown: "#a52a2a",
|
|
29
|
+
burlywood: "#deb887",
|
|
30
|
+
cadetblue: "#5f9ea0",
|
|
31
|
+
chartreuse: "#7fff00",
|
|
32
|
+
chocolate: "#d2691e",
|
|
33
|
+
coral: "#ff7f50",
|
|
34
|
+
cornflowerblue: "#6495ed",
|
|
35
|
+
cornsilk: "#fff8dc",
|
|
36
|
+
crimson: "#dc143c",
|
|
37
|
+
darkblue: "#00008b",
|
|
38
|
+
darkcyan: "#008b8b",
|
|
39
|
+
darkgoldenrod: "#b8860b",
|
|
40
|
+
darkgray: "#a9a9a9",
|
|
41
|
+
darkgrey: "#a9a9a9",
|
|
42
|
+
darkgreen: "#006400",
|
|
43
|
+
darkkhaki: "#bdb76b",
|
|
44
|
+
darkmagenta: "#8b008b",
|
|
45
|
+
darkolivegreen: "#556b2f",
|
|
46
|
+
darkorange: "#ff8c00",
|
|
47
|
+
darkorchid: "#9932cc",
|
|
48
|
+
darkred: "#8b0000",
|
|
49
|
+
darksalmon: "#e9967a",
|
|
50
|
+
darkseagreen: "#8fbc8f",
|
|
51
|
+
darkslateblue: "#483d8b",
|
|
52
|
+
darkslategray: "#2f4f4f",
|
|
53
|
+
darkslategrey: "#2f4f4f",
|
|
54
|
+
darkturquoise: "#00ced1",
|
|
55
|
+
darkviolet: "#9400d3",
|
|
56
|
+
deeppink: "#ff1493",
|
|
57
|
+
deepskyblue: "#00bfff",
|
|
58
|
+
dimgray: "#696969",
|
|
59
|
+
dimgrey: "#696969",
|
|
60
|
+
dodgerblue: "#1e90ff",
|
|
61
|
+
firebrick: "#b22222",
|
|
62
|
+
floralwhite: "#fffaf0",
|
|
63
|
+
forestgreen: "#228b22",
|
|
64
|
+
fuchsia: "#ff00ff",
|
|
65
|
+
gainsboro: "#dcdcdc",
|
|
66
|
+
ghostwhite: "#f8f8ff",
|
|
67
|
+
gold: "#ffd700",
|
|
68
|
+
goldenrod: "#daa520",
|
|
69
|
+
greenyellow: "#adff2f",
|
|
70
|
+
honeydew: "#f0fff0",
|
|
71
|
+
hotpink: "#ff69b4",
|
|
72
|
+
indianred: "#cd5c5c",
|
|
73
|
+
indigo: "#4b0082",
|
|
74
|
+
ivory: "#fffff0",
|
|
75
|
+
khaki: "#f0e68c",
|
|
76
|
+
lavender: "#e6e6fa",
|
|
77
|
+
lavenderblush: "#fff0f5",
|
|
78
|
+
lawngreen: "#7cfc00",
|
|
79
|
+
lemonchiffon: "#fffacd",
|
|
80
|
+
lightblue: "#add8e6",
|
|
81
|
+
lightcoral: "#f08080",
|
|
82
|
+
lightcyan: "#e0ffff",
|
|
83
|
+
lightgoldenrodyellow: "#fafad2",
|
|
84
|
+
lightgray: "#d3d3d3",
|
|
85
|
+
lightgrey: "#d3d3d3",
|
|
86
|
+
lightgreen: "#90ee90",
|
|
87
|
+
lightpink: "#ffb6c1",
|
|
88
|
+
lightsalmon: "#ffa07a",
|
|
89
|
+
lightseagreen: "#20b2aa",
|
|
90
|
+
lightskyblue: "#87cefa",
|
|
91
|
+
lightslategray: "#778899",
|
|
92
|
+
lightslategrey: "#778899",
|
|
93
|
+
lightsteelblue: "#b0c4de",
|
|
94
|
+
lightyellow: "#ffffe0",
|
|
95
|
+
lime: "#00ff00",
|
|
96
|
+
limegreen: "#32cd32",
|
|
97
|
+
linen: "#faf0e6",
|
|
98
|
+
maroon: "#800000",
|
|
99
|
+
mediumaquamarine: "#66cdaa",
|
|
100
|
+
mediumblue: "#0000cd",
|
|
101
|
+
mediumorchid: "#ba55d3",
|
|
102
|
+
mediumpurple: "#9370db",
|
|
103
|
+
mediumseagreen: "#3cb371",
|
|
104
|
+
mediumslateblue: "#7b68ee",
|
|
105
|
+
mediumspringgreen: "#00fa9a",
|
|
106
|
+
mediumturquoise: "#48d1cc",
|
|
107
|
+
mediumvioletred: "#c71585",
|
|
108
|
+
midnightblue: "#191970",
|
|
109
|
+
mintcream: "#f5fffa",
|
|
110
|
+
mistyrose: "#ffe4e1",
|
|
111
|
+
moccasin: "#ffe4b5",
|
|
112
|
+
navajowhite: "#ffdead",
|
|
113
|
+
navy: "#000080",
|
|
114
|
+
oldlace: "#fdf5e6",
|
|
115
|
+
olive: "#808000",
|
|
116
|
+
olivedrab: "#6b8e23",
|
|
117
|
+
orange: "#ffa500",
|
|
118
|
+
orangered: "#ff4500",
|
|
119
|
+
orchid: "#da70d6",
|
|
120
|
+
palegoldenrod: "#eee8aa",
|
|
121
|
+
palegreen: "#98fb98",
|
|
122
|
+
paleturquoise: "#afeeee",
|
|
123
|
+
palevioletred: "#db7093",
|
|
124
|
+
papayawhip: "#ffefd5",
|
|
125
|
+
peachpuff: "#ffdab9",
|
|
126
|
+
peru: "#cd853f",
|
|
127
|
+
pink: "#ffc0cb",
|
|
128
|
+
plum: "#dda0dd",
|
|
129
|
+
powderblue: "#b0e0e6",
|
|
130
|
+
purple: "#800080",
|
|
131
|
+
rebeccapurple: "#663399",
|
|
132
|
+
rosybrown: "#bc8f8f",
|
|
133
|
+
royalblue: "#4169e1",
|
|
134
|
+
saddlebrown: "#8b4513",
|
|
135
|
+
salmon: "#fa8072",
|
|
136
|
+
sandybrown: "#f4a460",
|
|
137
|
+
seagreen: "#2e8b57",
|
|
138
|
+
seashell: "#fff5ee",
|
|
139
|
+
sienna: "#a0522d",
|
|
140
|
+
silver: "#c0c0c0",
|
|
141
|
+
skyblue: "#87ceeb",
|
|
142
|
+
slateblue: "#6a5acd",
|
|
143
|
+
slategray: "#708090",
|
|
144
|
+
slategrey: "#708090",
|
|
145
|
+
snow: "#fffafa",
|
|
146
|
+
springgreen: "#00ff7f",
|
|
147
|
+
steelblue: "#4682b4",
|
|
148
|
+
tan: "#d2b48c",
|
|
149
|
+
teal: "#008080",
|
|
150
|
+
thistle: "#d8bfd8",
|
|
151
|
+
tomato: "#ff6347",
|
|
152
|
+
turquoise: "#40e0d0",
|
|
153
|
+
violet: "#ee82ee",
|
|
154
|
+
wheat: "#f5deb3",
|
|
155
|
+
whitesmoke: "#f5f5f5",
|
|
156
|
+
yellowgreen: "#9acd32"
|
|
157
|
+
};
|
|
158
|
+
var debugLogger = createDebugLogger("COLOR_UTILS");
|
|
159
|
+
var INK_SUPPORTED_NAMES = /* @__PURE__ */ new Set([
|
|
160
|
+
"black",
|
|
161
|
+
"red",
|
|
162
|
+
"green",
|
|
163
|
+
"yellow",
|
|
164
|
+
"blue",
|
|
165
|
+
"cyan",
|
|
166
|
+
"magenta",
|
|
167
|
+
"white",
|
|
168
|
+
"gray",
|
|
169
|
+
"grey",
|
|
170
|
+
"blackbright",
|
|
171
|
+
"redbright",
|
|
172
|
+
"greenbright",
|
|
173
|
+
"yellowbright",
|
|
174
|
+
"bluebright",
|
|
175
|
+
"cyanbright",
|
|
176
|
+
"magentabright",
|
|
177
|
+
"whitebright"
|
|
178
|
+
]);
|
|
179
|
+
function resolveColor(colorValue) {
|
|
180
|
+
const lowerColor = colorValue.toLowerCase();
|
|
181
|
+
if (lowerColor.startsWith("#")) {
|
|
182
|
+
if (/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(colorValue)) {
|
|
183
|
+
return lowerColor;
|
|
184
|
+
} else {
|
|
185
|
+
return void 0;
|
|
186
|
+
}
|
|
187
|
+
} else if (INK_SUPPORTED_NAMES.has(lowerColor)) {
|
|
188
|
+
return lowerColor;
|
|
189
|
+
} else if (CSS_NAME_TO_HEX_MAP[lowerColor]) {
|
|
190
|
+
return CSS_NAME_TO_HEX_MAP[lowerColor];
|
|
191
|
+
}
|
|
192
|
+
debugLogger.warn(
|
|
193
|
+
`[ColorUtils] Could not resolve color "${colorValue}" to an Ink-compatible format.`
|
|
194
|
+
);
|
|
195
|
+
return void 0;
|
|
196
|
+
}
|
|
197
|
+
__name(resolveColor, "resolveColor");
|
|
198
|
+
|
|
199
|
+
// packages/cli/src/ui/themes/extended-tokens.ts
|
|
200
|
+
init_esbuild_shims();
|
|
201
|
+
function deriveExtendedColors(colors) {
|
|
202
|
+
return {
|
|
203
|
+
text: { muted: colors.Comment, placeholder: colors.Comment },
|
|
204
|
+
ui: {
|
|
205
|
+
separator: colors.Gray,
|
|
206
|
+
rule: colors.Gray,
|
|
207
|
+
brand: colors.AccentBlue,
|
|
208
|
+
brandSoft: colors.LightBlue
|
|
209
|
+
},
|
|
210
|
+
activity: {
|
|
211
|
+
info: colors.AccentBlue,
|
|
212
|
+
read: colors.AccentCyan,
|
|
213
|
+
write: colors.AccentPurple,
|
|
214
|
+
execute: colors.AccentYellow,
|
|
215
|
+
success: colors.AccentGreen
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
__name(deriveExtendedColors, "deriveExtendedColors");
|
|
220
|
+
|
|
221
|
+
// packages/cli/src/ui/themes/theme.ts
|
|
222
|
+
var lightTheme = {
|
|
223
|
+
type: "light",
|
|
224
|
+
Background: "#FAFAFA",
|
|
225
|
+
Foreground: "",
|
|
226
|
+
LightBlue: "#89BDCD",
|
|
227
|
+
AccentBlue: "#3B82F6",
|
|
228
|
+
AccentPurple: "#8B5CF6",
|
|
229
|
+
AccentCyan: "#06B6D4",
|
|
230
|
+
AccentGreen: "#3CA84B",
|
|
231
|
+
AccentYellow: "#D5A40A",
|
|
232
|
+
AccentRed: "#DD4C4C",
|
|
233
|
+
AccentYellowDim: "#8B7000",
|
|
234
|
+
AccentRedDim: "#993333",
|
|
235
|
+
DiffAdded: "#C6EAD8",
|
|
236
|
+
DiffRemoved: "#FFCCCC",
|
|
237
|
+
Comment: "#008000",
|
|
238
|
+
Gray: "#97a0b0",
|
|
239
|
+
GradientColors: ["#4796E4", "#847ACE", "#C3677F"]
|
|
240
|
+
};
|
|
241
|
+
var darkTheme = {
|
|
242
|
+
type: "dark",
|
|
243
|
+
Background: "#1E1E2E",
|
|
244
|
+
Foreground: "",
|
|
245
|
+
LightBlue: "#ADD8E6",
|
|
246
|
+
AccentBlue: "#89B4FA",
|
|
247
|
+
AccentPurple: "#CBA6F7",
|
|
248
|
+
AccentCyan: "#89DCEB",
|
|
249
|
+
AccentGreen: "#A6E3A1",
|
|
250
|
+
AccentYellow: "#F9E2AF",
|
|
251
|
+
AccentRed: "#F38BA8",
|
|
252
|
+
AccentYellowDim: "#8B7530",
|
|
253
|
+
AccentRedDim: "#8B3A4A",
|
|
254
|
+
DiffAdded: "#28350B",
|
|
255
|
+
DiffRemoved: "#430000",
|
|
256
|
+
Comment: "#6C7086",
|
|
257
|
+
Gray: "#6C7086",
|
|
258
|
+
GradientColors: ["#4796E4", "#847ACE", "#C3677F"]
|
|
259
|
+
};
|
|
260
|
+
var ansiTheme = {
|
|
261
|
+
type: "ansi",
|
|
262
|
+
Background: "black",
|
|
263
|
+
Foreground: "white",
|
|
264
|
+
LightBlue: "blue",
|
|
265
|
+
AccentBlue: "blue",
|
|
266
|
+
AccentPurple: "magenta",
|
|
267
|
+
AccentCyan: "cyan",
|
|
268
|
+
AccentGreen: "green",
|
|
269
|
+
AccentYellow: "yellow",
|
|
270
|
+
AccentRed: "red",
|
|
271
|
+
AccentYellowDim: "yellow",
|
|
272
|
+
AccentRedDim: "red",
|
|
273
|
+
DiffAdded: "green",
|
|
274
|
+
DiffRemoved: "red",
|
|
275
|
+
Comment: "gray",
|
|
276
|
+
Gray: "gray"
|
|
277
|
+
};
|
|
278
|
+
var Theme = class _Theme {
|
|
279
|
+
/**
|
|
280
|
+
* Creates a new Theme instance.
|
|
281
|
+
* @param name The name of the theme.
|
|
282
|
+
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
283
|
+
*/
|
|
284
|
+
constructor(name, type, rawMappings, colors, semanticColors, extendedColors) {
|
|
285
|
+
this.name = name;
|
|
286
|
+
this.type = type;
|
|
287
|
+
this.colors = colors;
|
|
288
|
+
this.semanticColors = semanticColors ?? {
|
|
289
|
+
text: {
|
|
290
|
+
primary: this.colors.Foreground,
|
|
291
|
+
secondary: this.colors.Gray,
|
|
292
|
+
link: this.colors.AccentBlue,
|
|
293
|
+
accent: this.colors.AccentPurple,
|
|
294
|
+
code: this.colors.LightBlue
|
|
295
|
+
},
|
|
296
|
+
background: {
|
|
297
|
+
primary: this.colors.Background,
|
|
298
|
+
diff: {
|
|
299
|
+
added: this.colors.DiffAdded,
|
|
300
|
+
removed: this.colors.DiffRemoved
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
border: {
|
|
304
|
+
default: this.colors.Gray,
|
|
305
|
+
focused: this.colors.AccentBlue
|
|
306
|
+
},
|
|
307
|
+
ui: {
|
|
308
|
+
comment: this.colors.Gray,
|
|
309
|
+
symbol: this.colors.AccentCyan,
|
|
310
|
+
gradient: this.colors.GradientColors
|
|
311
|
+
},
|
|
312
|
+
status: {
|
|
313
|
+
error: this.colors.AccentRed,
|
|
314
|
+
success: this.colors.AccentGreen,
|
|
315
|
+
warning: this.colors.AccentYellow,
|
|
316
|
+
errorDim: this.colors.AccentRedDim,
|
|
317
|
+
warningDim: this.colors.AccentYellowDim
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
this.extendedColors = extendedColors ?? deriveExtendedColors(this.colors);
|
|
321
|
+
this._colorMap = Object.freeze(this._buildColorMap(rawMappings));
|
|
322
|
+
const rawDefaultColor = rawMappings["hljs"]?.color;
|
|
323
|
+
this.defaultColor = (rawDefaultColor ? _Theme._resolveColor(rawDefaultColor) : void 0) ?? "";
|
|
324
|
+
}
|
|
325
|
+
static {
|
|
326
|
+
__name(this, "Theme");
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* The default foreground color for text when no specific highlight rule applies.
|
|
330
|
+
* This is an Ink-compatible color string (hex or name).
|
|
331
|
+
*/
|
|
332
|
+
defaultColor;
|
|
333
|
+
/**
|
|
334
|
+
* Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
|
|
335
|
+
* to Ink-compatible color strings (hex or name).
|
|
336
|
+
*/
|
|
337
|
+
_colorMap;
|
|
338
|
+
semanticColors;
|
|
339
|
+
extendedColors;
|
|
340
|
+
/**
|
|
341
|
+
* Gets the Ink-compatible color string for a given highlight.js class name.
|
|
342
|
+
* @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
|
|
343
|
+
* @returns The corresponding Ink color string (hex or name) if it exists.
|
|
344
|
+
*/
|
|
345
|
+
getInkColor(hljsClass) {
|
|
346
|
+
return this._colorMap[hljsClass];
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Resolves a CSS color value (name or hex) into an Ink-compatible color string.
|
|
350
|
+
* @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
|
|
351
|
+
* @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
|
|
352
|
+
*/
|
|
353
|
+
static _resolveColor(colorValue) {
|
|
354
|
+
return resolveColor(colorValue);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Builds the internal map from highlight.js class names to Ink-compatible color strings.
|
|
358
|
+
* This method is protected and primarily intended for use by the constructor.
|
|
359
|
+
* @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
360
|
+
* @returns An Ink-compatible theme map (Record<string, string>).
|
|
361
|
+
*/
|
|
362
|
+
_buildColorMap(hljsTheme) {
|
|
363
|
+
const inkTheme = {};
|
|
364
|
+
for (const key in hljsTheme) {
|
|
365
|
+
if (!key.startsWith("hljs-") && key !== "hljs") {
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
const style = hljsTheme[key];
|
|
369
|
+
if (style?.color) {
|
|
370
|
+
const resolvedColor = _Theme._resolveColor(style.color);
|
|
371
|
+
if (resolvedColor !== void 0) {
|
|
372
|
+
inkTheme[key] = resolvedColor;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return inkTheme;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
function createCustomTheme(customTheme) {
|
|
380
|
+
const colors = {
|
|
381
|
+
type: "custom",
|
|
382
|
+
Background: customTheme.background?.primary ?? customTheme.Background ?? "",
|
|
383
|
+
Foreground: customTheme.text?.primary ?? customTheme.Foreground ?? "",
|
|
384
|
+
LightBlue: customTheme.text?.code ?? customTheme.LightBlue ?? "",
|
|
385
|
+
AccentBlue: customTheme.text?.link ?? customTheme.AccentBlue ?? "",
|
|
386
|
+
AccentPurple: customTheme.text?.accent ?? customTheme.AccentPurple ?? "",
|
|
387
|
+
AccentCyan: customTheme.text?.link ?? customTheme.AccentCyan ?? "",
|
|
388
|
+
AccentGreen: customTheme.status?.success ?? customTheme.AccentGreen ?? "",
|
|
389
|
+
AccentYellow: customTheme.status?.warning ?? customTheme.AccentYellow ?? "",
|
|
390
|
+
AccentRed: customTheme.status?.error ?? customTheme.AccentRed ?? "",
|
|
391
|
+
AccentYellowDim: customTheme.status?.warningDim ?? customTheme.AccentYellowDim ?? "",
|
|
392
|
+
AccentRedDim: customTheme.status?.errorDim ?? customTheme.AccentRedDim ?? "",
|
|
393
|
+
DiffAdded: customTheme.background?.diff?.added ?? customTheme.DiffAdded ?? "",
|
|
394
|
+
DiffRemoved: customTheme.background?.diff?.removed ?? customTheme.DiffRemoved ?? "",
|
|
395
|
+
Comment: customTheme.ui?.comment ?? customTheme.Comment ?? "",
|
|
396
|
+
Gray: customTheme.text?.secondary ?? customTheme.Gray ?? "",
|
|
397
|
+
GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors
|
|
398
|
+
};
|
|
399
|
+
const rawMappings = {
|
|
400
|
+
hljs: {
|
|
401
|
+
display: "block",
|
|
402
|
+
overflowX: "auto",
|
|
403
|
+
padding: "0.5em",
|
|
404
|
+
background: colors.Background,
|
|
405
|
+
color: colors.Foreground
|
|
406
|
+
},
|
|
407
|
+
"hljs-keyword": {
|
|
408
|
+
color: colors.AccentBlue
|
|
409
|
+
},
|
|
410
|
+
"hljs-literal": {
|
|
411
|
+
color: colors.AccentBlue
|
|
412
|
+
},
|
|
413
|
+
"hljs-symbol": {
|
|
414
|
+
color: colors.AccentBlue
|
|
415
|
+
},
|
|
416
|
+
"hljs-name": {
|
|
417
|
+
color: colors.AccentBlue
|
|
418
|
+
},
|
|
419
|
+
"hljs-link": {
|
|
420
|
+
color: colors.AccentBlue,
|
|
421
|
+
textDecoration: "underline"
|
|
422
|
+
},
|
|
423
|
+
"hljs-built_in": {
|
|
424
|
+
color: colors.AccentCyan
|
|
425
|
+
},
|
|
426
|
+
"hljs-type": {
|
|
427
|
+
color: colors.AccentCyan
|
|
428
|
+
},
|
|
429
|
+
"hljs-number": {
|
|
430
|
+
color: colors.AccentGreen
|
|
431
|
+
},
|
|
432
|
+
"hljs-class": {
|
|
433
|
+
color: colors.AccentGreen
|
|
434
|
+
},
|
|
435
|
+
"hljs-string": {
|
|
436
|
+
color: colors.AccentYellow
|
|
437
|
+
},
|
|
438
|
+
"hljs-meta-string": {
|
|
439
|
+
color: colors.AccentYellow
|
|
440
|
+
},
|
|
441
|
+
"hljs-regexp": {
|
|
442
|
+
color: colors.AccentRed
|
|
443
|
+
},
|
|
444
|
+
"hljs-template-tag": {
|
|
445
|
+
color: colors.AccentRed
|
|
446
|
+
},
|
|
447
|
+
"hljs-subst": {
|
|
448
|
+
color: colors.Foreground
|
|
449
|
+
},
|
|
450
|
+
"hljs-function": {
|
|
451
|
+
color: colors.Foreground
|
|
452
|
+
},
|
|
453
|
+
"hljs-title": {
|
|
454
|
+
color: colors.Foreground
|
|
455
|
+
},
|
|
456
|
+
"hljs-params": {
|
|
457
|
+
color: colors.Foreground
|
|
458
|
+
},
|
|
459
|
+
"hljs-formula": {
|
|
460
|
+
color: colors.Foreground
|
|
461
|
+
},
|
|
462
|
+
"hljs-comment": {
|
|
463
|
+
color: colors.Comment,
|
|
464
|
+
fontStyle: "italic"
|
|
465
|
+
},
|
|
466
|
+
"hljs-quote": {
|
|
467
|
+
color: colors.Comment,
|
|
468
|
+
fontStyle: "italic"
|
|
469
|
+
},
|
|
470
|
+
"hljs-doctag": {
|
|
471
|
+
color: colors.Comment
|
|
472
|
+
},
|
|
473
|
+
"hljs-meta": {
|
|
474
|
+
color: colors.Gray
|
|
475
|
+
},
|
|
476
|
+
"hljs-meta-keyword": {
|
|
477
|
+
color: colors.Gray
|
|
478
|
+
},
|
|
479
|
+
"hljs-tag": {
|
|
480
|
+
color: colors.Gray
|
|
481
|
+
},
|
|
482
|
+
"hljs-variable": {
|
|
483
|
+
color: colors.AccentPurple
|
|
484
|
+
},
|
|
485
|
+
"hljs-template-variable": {
|
|
486
|
+
color: colors.AccentPurple
|
|
487
|
+
},
|
|
488
|
+
"hljs-attr": {
|
|
489
|
+
color: colors.LightBlue
|
|
490
|
+
},
|
|
491
|
+
"hljs-attribute": {
|
|
492
|
+
color: colors.LightBlue
|
|
493
|
+
},
|
|
494
|
+
"hljs-builtin-name": {
|
|
495
|
+
color: colors.LightBlue
|
|
496
|
+
},
|
|
497
|
+
"hljs-section": {
|
|
498
|
+
color: colors.AccentYellow
|
|
499
|
+
},
|
|
500
|
+
"hljs-emphasis": {
|
|
501
|
+
fontStyle: "italic"
|
|
502
|
+
},
|
|
503
|
+
"hljs-strong": {
|
|
504
|
+
fontWeight: "bold"
|
|
505
|
+
},
|
|
506
|
+
"hljs-bullet": {
|
|
507
|
+
color: colors.AccentYellow
|
|
508
|
+
},
|
|
509
|
+
"hljs-selector-tag": {
|
|
510
|
+
color: colors.AccentYellow
|
|
511
|
+
},
|
|
512
|
+
"hljs-selector-id": {
|
|
513
|
+
color: colors.AccentYellow
|
|
514
|
+
},
|
|
515
|
+
"hljs-selector-class": {
|
|
516
|
+
color: colors.AccentYellow
|
|
517
|
+
},
|
|
518
|
+
"hljs-selector-attr": {
|
|
519
|
+
color: colors.AccentYellow
|
|
520
|
+
},
|
|
521
|
+
"hljs-selector-pseudo": {
|
|
522
|
+
color: colors.AccentYellow
|
|
523
|
+
},
|
|
524
|
+
"hljs-addition": {
|
|
525
|
+
backgroundColor: colors.AccentGreen,
|
|
526
|
+
display: "inline-block",
|
|
527
|
+
width: "100%"
|
|
528
|
+
},
|
|
529
|
+
"hljs-deletion": {
|
|
530
|
+
backgroundColor: colors.AccentRed,
|
|
531
|
+
display: "inline-block",
|
|
532
|
+
width: "100%"
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
const semanticColors = {
|
|
536
|
+
text: {
|
|
537
|
+
primary: customTheme.text?.primary ?? colors.Foreground,
|
|
538
|
+
secondary: customTheme.text?.secondary ?? colors.Gray,
|
|
539
|
+
link: customTheme.text?.link ?? colors.AccentBlue,
|
|
540
|
+
accent: customTheme.text?.accent ?? colors.AccentPurple,
|
|
541
|
+
code: customTheme.text?.code ?? colors.LightBlue
|
|
542
|
+
},
|
|
543
|
+
background: {
|
|
544
|
+
primary: customTheme.background?.primary ?? colors.Background,
|
|
545
|
+
diff: {
|
|
546
|
+
added: customTheme.background?.diff?.added ?? colors.DiffAdded,
|
|
547
|
+
removed: customTheme.background?.diff?.removed ?? colors.DiffRemoved
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
border: {
|
|
551
|
+
default: customTheme.border?.default ?? colors.Gray,
|
|
552
|
+
focused: customTheme.border?.focused ?? colors.AccentBlue
|
|
553
|
+
},
|
|
554
|
+
ui: {
|
|
555
|
+
comment: customTheme.ui?.comment ?? colors.Comment,
|
|
556
|
+
symbol: customTheme.ui?.symbol ?? colors.Gray,
|
|
557
|
+
gradient: customTheme.ui?.gradient ?? colors.GradientColors
|
|
558
|
+
},
|
|
559
|
+
status: {
|
|
560
|
+
error: customTheme.status?.error ?? colors.AccentRed,
|
|
561
|
+
success: customTheme.status?.success ?? colors.AccentGreen,
|
|
562
|
+
warning: customTheme.status?.warning ?? colors.AccentYellow,
|
|
563
|
+
errorDim: customTheme.status?.errorDim ?? colors.AccentRedDim,
|
|
564
|
+
warningDim: customTheme.status?.warningDim ?? colors.AccentYellowDim
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
return new Theme(
|
|
568
|
+
customTheme.name,
|
|
569
|
+
"custom",
|
|
570
|
+
rawMappings,
|
|
571
|
+
colors,
|
|
572
|
+
semanticColors
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
__name(createCustomTheme, "createCustomTheme");
|
|
576
|
+
function validateCustomTheme(customTheme) {
|
|
577
|
+
if (customTheme.name && !isValidThemeName(customTheme.name)) {
|
|
578
|
+
return {
|
|
579
|
+
isValid: false,
|
|
580
|
+
error: `Invalid theme name: ${customTheme.name}`
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
return {
|
|
584
|
+
isValid: true
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
__name(validateCustomTheme, "validateCustomTheme");
|
|
588
|
+
function isValidThemeName(name) {
|
|
589
|
+
return name.trim().length > 0 && name.trim().length <= 50;
|
|
590
|
+
}
|
|
591
|
+
__name(isValidThemeName, "isValidThemeName");
|
|
592
|
+
|
|
593
|
+
// packages/cli/src/ui/themes/o1-code-dark.ts
|
|
594
|
+
init_esbuild_shims();
|
|
595
|
+
var o1codeDarkColors = {
|
|
596
|
+
type: "dark",
|
|
597
|
+
Background: "#0a1220",
|
|
598
|
+
Foreground: "#e6ecf5",
|
|
599
|
+
LightBlue: "#8fb2ff",
|
|
600
|
+
AccentBlue: "#6e9bff",
|
|
601
|
+
AccentPurple: "#a48bff",
|
|
602
|
+
AccentCyan: "#3fc7d6",
|
|
603
|
+
AccentGreen: "#3fd07f",
|
|
604
|
+
AccentYellow: "#ffa347",
|
|
605
|
+
AccentRed: "#ff6b6b",
|
|
606
|
+
AccentYellowDim: "#8a5a2b",
|
|
607
|
+
AccentRedDim: "#8a3d45",
|
|
608
|
+
DiffAdded: "#123624",
|
|
609
|
+
DiffRemoved: "#3b1a20",
|
|
610
|
+
Comment: "#8593aa",
|
|
611
|
+
Gray: "#95a5be",
|
|
612
|
+
GradientColors: ["#6e9bff", "#8fb2ff"]
|
|
613
|
+
};
|
|
614
|
+
var O1CodeDark = new Theme(
|
|
615
|
+
"O1-Code Dark",
|
|
616
|
+
"dark",
|
|
617
|
+
{
|
|
618
|
+
hljs: {
|
|
619
|
+
display: "block",
|
|
620
|
+
overflowX: "auto",
|
|
621
|
+
padding: "0.5em",
|
|
622
|
+
background: o1codeDarkColors.Background,
|
|
623
|
+
color: o1codeDarkColors.Foreground
|
|
624
|
+
},
|
|
625
|
+
"hljs-keyword": {
|
|
626
|
+
color: o1codeDarkColors.AccentYellow
|
|
627
|
+
},
|
|
628
|
+
"hljs-literal": {
|
|
629
|
+
color: o1codeDarkColors.AccentPurple
|
|
630
|
+
},
|
|
631
|
+
"hljs-symbol": {
|
|
632
|
+
color: o1codeDarkColors.AccentCyan
|
|
633
|
+
},
|
|
634
|
+
"hljs-name": {
|
|
635
|
+
color: o1codeDarkColors.LightBlue
|
|
636
|
+
},
|
|
637
|
+
"hljs-link": {
|
|
638
|
+
color: o1codeDarkColors.AccentBlue
|
|
639
|
+
},
|
|
640
|
+
"hljs-function .hljs-keyword": {
|
|
641
|
+
color: o1codeDarkColors.AccentYellow
|
|
642
|
+
},
|
|
643
|
+
"hljs-subst": {
|
|
644
|
+
color: o1codeDarkColors.Foreground
|
|
645
|
+
},
|
|
646
|
+
"hljs-string": {
|
|
647
|
+
color: o1codeDarkColors.AccentGreen
|
|
648
|
+
},
|
|
649
|
+
"hljs-title": {
|
|
650
|
+
color: o1codeDarkColors.AccentYellow
|
|
651
|
+
},
|
|
652
|
+
"hljs-type": {
|
|
653
|
+
color: o1codeDarkColors.AccentBlue
|
|
654
|
+
},
|
|
655
|
+
"hljs-attribute": {
|
|
656
|
+
color: o1codeDarkColors.AccentYellow
|
|
657
|
+
},
|
|
658
|
+
"hljs-bullet": {
|
|
659
|
+
color: o1codeDarkColors.AccentYellow
|
|
660
|
+
},
|
|
661
|
+
"hljs-addition": {
|
|
662
|
+
color: o1codeDarkColors.AccentGreen
|
|
663
|
+
},
|
|
664
|
+
"hljs-variable": {
|
|
665
|
+
color: o1codeDarkColors.Foreground
|
|
666
|
+
},
|
|
667
|
+
"hljs-template-tag": {
|
|
668
|
+
color: o1codeDarkColors.AccentYellow
|
|
669
|
+
},
|
|
670
|
+
"hljs-template-variable": {
|
|
671
|
+
color: o1codeDarkColors.AccentYellow
|
|
672
|
+
},
|
|
673
|
+
"hljs-comment": {
|
|
674
|
+
color: o1codeDarkColors.Comment,
|
|
675
|
+
fontStyle: "italic"
|
|
676
|
+
},
|
|
677
|
+
"hljs-quote": {
|
|
678
|
+
color: o1codeDarkColors.AccentCyan,
|
|
679
|
+
fontStyle: "italic"
|
|
680
|
+
},
|
|
681
|
+
"hljs-deletion": {
|
|
682
|
+
color: o1codeDarkColors.AccentRed
|
|
683
|
+
},
|
|
684
|
+
"hljs-meta": {
|
|
685
|
+
color: o1codeDarkColors.AccentYellow
|
|
686
|
+
},
|
|
687
|
+
"hljs-doctag": {
|
|
688
|
+
fontWeight: "bold"
|
|
689
|
+
},
|
|
690
|
+
"hljs-strong": {
|
|
691
|
+
fontWeight: "bold"
|
|
692
|
+
},
|
|
693
|
+
"hljs-emphasis": {
|
|
694
|
+
fontStyle: "italic"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
o1codeDarkColors,
|
|
698
|
+
{
|
|
699
|
+
text: {
|
|
700
|
+
// The terminal's own foreground: stays readable if background detection
|
|
701
|
+
// fails and this default theme lands on a light terminal.
|
|
702
|
+
primary: "",
|
|
703
|
+
secondary: "#95a5be",
|
|
704
|
+
link: "#6e9bff",
|
|
705
|
+
accent: "#a48bff",
|
|
706
|
+
code: "#3fc7d6"
|
|
707
|
+
},
|
|
708
|
+
background: {
|
|
709
|
+
primary: "#0a1220",
|
|
710
|
+
diff: { added: "#123624", removed: "#3b1a20" }
|
|
711
|
+
},
|
|
712
|
+
border: { default: "#46598a", focused: "#6e9bff" },
|
|
713
|
+
ui: {
|
|
714
|
+
comment: "#8593aa",
|
|
715
|
+
symbol: "#95a5be",
|
|
716
|
+
gradient: o1codeDarkColors.GradientColors
|
|
717
|
+
},
|
|
718
|
+
status: {
|
|
719
|
+
error: "#ff6b6b",
|
|
720
|
+
success: "#3fd07f",
|
|
721
|
+
warning: "#ffa347",
|
|
722
|
+
errorDim: "#8a3d45",
|
|
723
|
+
warningDim: "#8a5a2b"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
text: { muted: "#8593aa", placeholder: "#7a879e" },
|
|
728
|
+
ui: {
|
|
729
|
+
separator: "#52679c",
|
|
730
|
+
rule: "#46598a",
|
|
731
|
+
brand: "#6e9bff",
|
|
732
|
+
brandSoft: "#8fb2ff"
|
|
733
|
+
},
|
|
734
|
+
activity: {
|
|
735
|
+
info: "#6e9bff",
|
|
736
|
+
read: "#3fc7d6",
|
|
737
|
+
write: "#a48bff",
|
|
738
|
+
execute: "#ffa347",
|
|
739
|
+
success: "#3fd07f"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
);
|
|
743
|
+
|
|
744
|
+
// packages/cli/src/ui/themes/o1-code-light.ts
|
|
745
|
+
init_esbuild_shims();
|
|
746
|
+
var o1codeLightColors = {
|
|
747
|
+
type: "light",
|
|
748
|
+
Background: "#f7f9fc",
|
|
749
|
+
Foreground: "#162033",
|
|
750
|
+
LightBlue: "#2f5fdb",
|
|
751
|
+
AccentBlue: "#2b5bd7",
|
|
752
|
+
AccentPurple: "#6547c9",
|
|
753
|
+
AccentCyan: "#0a6d78",
|
|
754
|
+
AccentGreen: "#157a44",
|
|
755
|
+
AccentYellow: "#9a5200",
|
|
756
|
+
AccentRed: "#c02d2d",
|
|
757
|
+
AccentYellowDim: "#86683a",
|
|
758
|
+
AccentRedDim: "#a04848",
|
|
759
|
+
DiffAdded: "#dcf2e4",
|
|
760
|
+
DiffRemoved: "#f9dddd",
|
|
761
|
+
Comment: "#56637b",
|
|
762
|
+
Gray: "#46546d",
|
|
763
|
+
GradientColors: ["#2b5bd7", "#2f5fdb"]
|
|
764
|
+
};
|
|
765
|
+
var O1CodeLight = new Theme(
|
|
766
|
+
"O1-Code Light",
|
|
767
|
+
"light",
|
|
768
|
+
{
|
|
769
|
+
hljs: {
|
|
770
|
+
display: "block",
|
|
771
|
+
overflowX: "auto",
|
|
772
|
+
padding: "0.5em",
|
|
773
|
+
background: o1codeLightColors.Background,
|
|
774
|
+
color: o1codeLightColors.Foreground
|
|
775
|
+
},
|
|
776
|
+
"hljs-comment": {
|
|
777
|
+
color: o1codeLightColors.Comment,
|
|
778
|
+
fontStyle: "italic"
|
|
779
|
+
},
|
|
780
|
+
"hljs-quote": {
|
|
781
|
+
color: o1codeLightColors.AccentCyan,
|
|
782
|
+
fontStyle: "italic"
|
|
783
|
+
},
|
|
784
|
+
"hljs-string": {
|
|
785
|
+
color: o1codeLightColors.AccentGreen
|
|
786
|
+
},
|
|
787
|
+
"hljs-constant": {
|
|
788
|
+
color: o1codeLightColors.AccentCyan
|
|
789
|
+
},
|
|
790
|
+
"hljs-number": {
|
|
791
|
+
color: o1codeLightColors.AccentPurple
|
|
792
|
+
},
|
|
793
|
+
"hljs-keyword": {
|
|
794
|
+
color: o1codeLightColors.AccentYellow
|
|
795
|
+
},
|
|
796
|
+
"hljs-selector-tag": {
|
|
797
|
+
color: o1codeLightColors.AccentYellow
|
|
798
|
+
},
|
|
799
|
+
"hljs-attribute": {
|
|
800
|
+
color: o1codeLightColors.AccentYellow
|
|
801
|
+
},
|
|
802
|
+
"hljs-variable": {
|
|
803
|
+
color: o1codeLightColors.Foreground
|
|
804
|
+
},
|
|
805
|
+
"hljs-variable.language": {
|
|
806
|
+
color: o1codeLightColors.LightBlue,
|
|
807
|
+
fontStyle: "italic"
|
|
808
|
+
},
|
|
809
|
+
"hljs-title": {
|
|
810
|
+
color: o1codeLightColors.AccentBlue
|
|
811
|
+
},
|
|
812
|
+
"hljs-section": {
|
|
813
|
+
color: o1codeLightColors.AccentGreen,
|
|
814
|
+
fontWeight: "bold"
|
|
815
|
+
},
|
|
816
|
+
"hljs-type": {
|
|
817
|
+
color: o1codeLightColors.LightBlue
|
|
818
|
+
},
|
|
819
|
+
"hljs-class .hljs-title": {
|
|
820
|
+
color: o1codeLightColors.AccentBlue
|
|
821
|
+
},
|
|
822
|
+
"hljs-tag": {
|
|
823
|
+
color: o1codeLightColors.LightBlue
|
|
824
|
+
},
|
|
825
|
+
"hljs-name": {
|
|
826
|
+
color: o1codeLightColors.AccentBlue
|
|
827
|
+
},
|
|
828
|
+
"hljs-builtin-name": {
|
|
829
|
+
color: o1codeLightColors.AccentYellow
|
|
830
|
+
},
|
|
831
|
+
"hljs-meta": {
|
|
832
|
+
color: o1codeLightColors.AccentYellow
|
|
833
|
+
},
|
|
834
|
+
"hljs-symbol": {
|
|
835
|
+
color: o1codeLightColors.AccentRed
|
|
836
|
+
},
|
|
837
|
+
"hljs-bullet": {
|
|
838
|
+
color: o1codeLightColors.AccentYellow
|
|
839
|
+
},
|
|
840
|
+
"hljs-regexp": {
|
|
841
|
+
color: o1codeLightColors.AccentCyan
|
|
842
|
+
},
|
|
843
|
+
"hljs-link": {
|
|
844
|
+
color: o1codeLightColors.LightBlue
|
|
845
|
+
},
|
|
846
|
+
"hljs-deletion": {
|
|
847
|
+
color: o1codeLightColors.AccentRed
|
|
848
|
+
},
|
|
849
|
+
"hljs-addition": {
|
|
850
|
+
color: o1codeLightColors.AccentGreen
|
|
851
|
+
},
|
|
852
|
+
"hljs-emphasis": {
|
|
853
|
+
fontStyle: "italic"
|
|
854
|
+
},
|
|
855
|
+
"hljs-strong": {
|
|
856
|
+
fontWeight: "bold"
|
|
857
|
+
},
|
|
858
|
+
"hljs-literal": {
|
|
859
|
+
color: o1codeLightColors.AccentCyan
|
|
860
|
+
},
|
|
861
|
+
"hljs-built_in": {
|
|
862
|
+
color: o1codeLightColors.AccentRed
|
|
863
|
+
},
|
|
864
|
+
"hljs-doctag": {
|
|
865
|
+
color: o1codeLightColors.AccentRed
|
|
866
|
+
},
|
|
867
|
+
"hljs-template-variable": {
|
|
868
|
+
color: o1codeLightColors.AccentCyan
|
|
869
|
+
},
|
|
870
|
+
"hljs-selector-id": {
|
|
871
|
+
color: o1codeLightColors.AccentRed
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
o1codeLightColors,
|
|
875
|
+
{
|
|
876
|
+
text: {
|
|
877
|
+
primary: "#162033",
|
|
878
|
+
secondary: "#46546d",
|
|
879
|
+
link: "#2b5bd7",
|
|
880
|
+
accent: "#6547c9",
|
|
881
|
+
code: "#0a6d78"
|
|
882
|
+
},
|
|
883
|
+
background: {
|
|
884
|
+
primary: "#f7f9fc",
|
|
885
|
+
diff: { added: "#dcf2e4", removed: "#f9dddd" }
|
|
886
|
+
},
|
|
887
|
+
border: { default: "#a3b4d2", focused: "#2b5bd7" },
|
|
888
|
+
ui: {
|
|
889
|
+
comment: "#56637b",
|
|
890
|
+
symbol: "#46546d",
|
|
891
|
+
gradient: o1codeLightColors.GradientColors
|
|
892
|
+
},
|
|
893
|
+
status: {
|
|
894
|
+
error: "#c02d2d",
|
|
895
|
+
success: "#157a44",
|
|
896
|
+
warning: "#9a5200",
|
|
897
|
+
errorDim: "#a04848",
|
|
898
|
+
warningDim: "#86683a"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
text: { muted: "#56637b", placeholder: "#65728a" },
|
|
903
|
+
ui: {
|
|
904
|
+
separator: "#9fadca",
|
|
905
|
+
rule: "#a3b4d2",
|
|
906
|
+
brand: "#2b5bd7",
|
|
907
|
+
brandSoft: "#2f5fdb"
|
|
908
|
+
},
|
|
909
|
+
activity: {
|
|
910
|
+
info: "#2b5bd7",
|
|
911
|
+
read: "#0a6d78",
|
|
912
|
+
write: "#6547c9",
|
|
913
|
+
execute: "#9a5200",
|
|
914
|
+
success: "#157a44"
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
);
|
|
918
|
+
|
|
919
|
+
export {
|
|
920
|
+
resolveColor,
|
|
921
|
+
lightTheme,
|
|
922
|
+
darkTheme,
|
|
923
|
+
ansiTheme,
|
|
924
|
+
Theme,
|
|
925
|
+
createCustomTheme,
|
|
926
|
+
validateCustomTheme,
|
|
927
|
+
O1CodeDark,
|
|
928
|
+
O1CodeLight
|
|
929
|
+
};
|
|
930
|
+
/**
|
|
931
|
+
* @license
|
|
932
|
+
* Copyright 2025 Google LLC
|
|
933
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
934
|
+
*/
|
|
935
|
+
/**
|
|
936
|
+
* @license
|
|
937
|
+
* Copyright 2026 o1-code contributors
|
|
938
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
939
|
+
*/
|
|
940
|
+
/**
|
|
941
|
+
* @license
|
|
942
|
+
* Copyright 2025 Google LLC
|
|
943
|
+
* Modified by the o1-code project; see NOTICE.
|
|
944
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
945
|
+
*/
|