@organizaone/o1-code 0.20.2 → 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-M6DCBRB7.js → MaxSizedBox-UVDDWU7T.js} +21 -20
- package/chunks/{StandaloneSessionPicker-WOSBURZC.js → StandaloneSessionPicker-BMP4CROY.js} +42 -41
- package/chunks/{acp-subagent-executor-G7N4CYL3.js → acp-subagent-executor-FV3XBATE.js} +19 -19
- package/chunks/{acpAgent-ELHXS6FM.js → acpAgent-6QL2DRXT.js} +114 -112
- package/chunks/{agent-LQAO63NW.js → agent-7RIITHH6.js} +9 -9
- package/chunks/{agent-headless-EV6Q2XO5.js → agent-headless-V7G74ZRT.js} +9 -9
- package/chunks/{all-providers-ONYYU25K.js → all-providers-NUAV373L.js} +2 -2
- package/chunks/{anthropicContentGenerator-O7CCZ4UJ.js → anthropicContentGenerator-IMMO2JES.js} +5 -5
- package/chunks/{bridge-GZYADDK2.js → bridge-NOBAHBIW.js} +19 -19
- package/chunks/{ca-6DKW436A.js → ca-EMDHXMDN.js} +6 -2
- package/chunks/{chunk-DASYHVHI.js → chunk-2327FMUY.js} +4 -4
- package/chunks/{chunk-QWLAQVSU.js → chunk-24LWP4WE.js} +2 -2
- package/chunks/chunk-2EFFEOP5.js +5043 -0
- package/chunks/{chunk-253UI55H.js → chunk-3QWBMA3B.js} +12 -12
- package/chunks/{chunk-QFGPKAOX.js → chunk-3ZEBS4OE.js} +9 -9
- package/chunks/{chunk-PHRIVPFS.js → chunk-4NXPUJJK.js} +2 -2
- package/chunks/{chunk-BP4CPYAM.js → chunk-4VB7VM7K.js} +1 -1
- package/chunks/{chunk-HO45CNDB.js → chunk-4XTPBUUX.js} +1 -1
- package/chunks/{chunk-RDDHWYCW.js → chunk-5ZH7V5XA.js} +1 -1
- package/chunks/{chunk-BORCGVXB.js → chunk-6LZG7Y6K.js} +2 -2
- package/chunks/{chunk-NSYASZQH.js → chunk-6YVU3VTW.js} +2 -2
- package/chunks/{chunk-XZYINGV2.js → chunk-A3Z6ZU7I.js} +2 -2
- package/chunks/{chunk-GQCX6NEQ.js → chunk-AFFISWZB.js} +32 -30
- package/chunks/{chunk-PIFTZSA7.js → chunk-B4XD2AVP.js} +2 -2
- package/chunks/{chunk-IQPPAGQS.js → chunk-B5BMQDN6.js} +2 -2
- package/chunks/{chunk-L6ZZSVWG.js → chunk-BCCQP2PA.js} +3 -3
- package/chunks/{chunk-WEVA5QY7.js → chunk-BDXSHKWM.js} +1 -1
- package/chunks/{chunk-SK4V5RB5.js → chunk-BG5FFE5T.js} +9 -9
- package/chunks/{chunk-A5TZZFQL.js → chunk-BJIFDJVV.js} +2 -2
- package/chunks/{chunk-JOYMKIQF.js → chunk-BYQ4WWVG.js} +1 -1
- package/chunks/{chunk-JZOLTE57.js → chunk-BZXX2MRG.js} +1 -1
- package/chunks/{chunk-ZRR57QY3.js → chunk-COZEN7HG.js} +6 -6
- package/chunks/{chunk-BTH7AZKY.js → chunk-CUGVJRCO.js} +2 -2
- package/chunks/{chunk-FBUTC46C.js → chunk-DAZ4E2KL.js} +2 -2
- package/chunks/{chunk-MYRAFQSK.js → chunk-DEEUE6NL.js} +9 -9
- package/chunks/{chunk-ML2FRS6E.js → chunk-EDYCC6T6.js} +5 -5
- package/chunks/{chunk-4IIC2T2R.js → chunk-FJVTBMTU.js} +3 -3
- package/chunks/{chunk-KMVJINUM.js → chunk-FSM6MGRH.js} +2 -2
- package/chunks/{chunk-KAYBWROC.js → chunk-G2GNLDQS.js} +13 -13
- package/chunks/{chunk-ELV37APC.js → chunk-GB6XUAYL.js} +1 -1
- package/chunks/{chunk-YNZ2HR7V.js → chunk-GWAPD4WA.js} +7 -7
- package/chunks/{chunk-ZJKQPIJH.js → chunk-HG2CPZUM.js} +3 -3
- package/chunks/{chunk-CHTZUPHL.js → chunk-HJRDPASY.js} +5 -5
- package/chunks/{chunk-PT3CIZIT.js → chunk-HVCQOHA6.js} +4 -4
- package/chunks/{chunk-WLVSOHOJ.js → chunk-HXOUCS5U.js} +4 -4
- package/chunks/{chunk-6M577SEO.js → chunk-IAW6OPW2.js} +3 -3
- package/chunks/{chunk-TQDWNJ7Y.js → chunk-IOUCJCNS.js} +1 -1
- package/chunks/{chunk-GMZPGNW5.js → chunk-ISDTLMDF.js} +1 -1
- package/chunks/{chunk-KBC3LE6C.js → chunk-J3I2P6J4.js} +1 -1
- package/chunks/{chunk-32HPDVH7.js → chunk-J4JE4YP3.js} +6 -6
- package/chunks/{chunk-TZGS6KLY.js → chunk-J5RKE7HJ.js} +8 -8
- package/chunks/{chunk-6UDLEDID.js → chunk-JEI2AYFD.js} +1 -1
- package/chunks/{chunk-BRSXP3HF.js → chunk-JJNBSJTF.js} +2 -2
- package/chunks/{chunk-VO56ZLLC.js → chunk-JYBDW4YQ.js} +1 -1
- package/chunks/{chunk-MFZ5PUYA.js → chunk-KK2WC2WS.js} +2 -2
- package/chunks/{chunk-D5LGZ7CS.js → chunk-KRPFK75A.js} +2 -2
- package/chunks/{chunk-S57KYLOB.js → chunk-KZ6OFUYM.js} +8 -8
- package/chunks/chunk-LRHUT6ZW.js +880 -0
- package/chunks/{chunk-O3FUFDAZ.js → chunk-LU3L67JW.js} +1 -1
- package/chunks/{chunk-IEF53O5P.js → chunk-MJFHIUKG.js} +2 -2
- package/chunks/{chunk-5J5ZKY2X.js → chunk-NXQOTJAA.js} +2 -2
- package/chunks/{chunk-SXRGKQMZ.js → chunk-NZYHDUMN.js} +1 -1
- package/chunks/{chunk-XKT7PPJD.js → chunk-O7V7JWOM.js} +86 -43
- package/chunks/{chunk-76WI2Y4C.js → chunk-OK7GPGMS.js} +2 -2
- package/chunks/{chunk-I4F5VMM4.js → chunk-ONTIVYTW.js} +3 -3
- package/chunks/{chunk-O2WH4QNE.js → chunk-P4OBMVRT.js} +3 -3
- package/chunks/{chunk-VFSP4ZUZ.js → chunk-P7RO4QSF.js} +28 -938
- package/chunks/{chunk-652EXJDT.js → chunk-PK3MLBOH.js} +1 -1
- package/chunks/{chunk-MSAWM65X.js → chunk-PP3G5KXH.js} +1 -1
- package/chunks/{chunk-Y5VJG35A.js → chunk-QAJ7AQSA.js} +1 -1
- package/chunks/{chunk-5ENVC5EC.js → chunk-QKZVYY6J.js} +5 -5
- package/chunks/{chunk-NTUVIB2G.js → chunk-R5HO4EJV.js} +1 -1
- package/chunks/{chunk-GQHMMDBT.js → chunk-RMYDHM23.js} +3 -3
- package/chunks/{chunk-R76Q5SQV.js → chunk-SL3PHYCR.js} +3 -3
- package/chunks/{chunk-FHB6IME5.js → chunk-SYZ5WTE6.js} +2 -2
- package/chunks/{chunk-TTZZ44LB.js → chunk-T7MXEOXM.js} +2 -2
- package/chunks/{chunk-DSAFH5CY.js → chunk-TJQTTY4F.js} +1 -1
- package/chunks/{chunk-VZW44QV7.js → chunk-TMYTIDVN.js} +3 -3
- package/chunks/{chunk-WLGGCE26.js → chunk-TZRF4LY7.js} +3 -3
- package/chunks/{chunk-JTE4PIZM.js → chunk-UKCKAG2F.js} +39 -39
- package/chunks/{chunk-CSL5UZA7.js → chunk-UUT7HQPM.js} +3 -3
- package/chunks/{chunk-7LQBFCI2.js → chunk-UWSO6VOM.js} +1 -1
- package/chunks/{chunk-OGVEQRC5.js → chunk-UXJP6322.js} +3 -3
- package/chunks/{chunk-BYWZ477D.js → chunk-V5QHABRY.js} +1 -1
- package/chunks/chunk-VDSY3ODQ.js +2405 -0
- package/chunks/{chunk-JIFFPY6X.js → chunk-VT5GZKMO.js} +1 -1
- package/chunks/{chunk-63XJSNCN.js → chunk-W3XJPDIO.js} +13 -13
- package/chunks/{chunk-AFP5Z5YY.js → chunk-WKGMAUE7.js} +1 -1
- package/chunks/{chunk-PU7HOH55.js → chunk-WOAI6G73.js} +3 -3
- package/chunks/{chunk-OZZ3NZGD.js → chunk-WQYJ72JS.js} +1 -1
- package/chunks/{chunk-X3ZRMOXL.js → chunk-WTC5HDJJ.js} +10 -10
- package/chunks/{chunk-UK437Y3P.js → chunk-WU7DQB4Q.js} +4 -4
- package/chunks/{chunk-7VO74Y4N.js → chunk-X7Q5L62S.js} +1 -1
- package/chunks/{chunk-A7LMIP3N.js → chunk-XCWRCCIS.js} +1 -1
- package/chunks/{chunk-MJPCZDA4.js → chunk-XHHPCZOZ.js} +2 -2
- package/chunks/{chunk-4S4AE3LJ.js → chunk-XIYHMMHO.js} +4 -4
- package/chunks/{chunk-NJZNVJKQ.js → chunk-XMEAEIT7.js} +1 -1
- package/chunks/{chunk-DNEDFRFX.js → chunk-XXPXFR7S.js} +48 -48
- package/chunks/chunk-YQQ7QFC5.js +945 -0
- package/chunks/{chunk-REFJETG4.js → chunk-YXRFXEIU.js} +5 -5
- package/chunks/{chunk-EFTQJBOI.js → chunk-ZGHZRHUW.js} +1 -1
- package/chunks/{codex-subagent-executor-42IWHTXH.js → codex-subagent-executor-3MIEB3VJ.js} +19 -19
- package/chunks/{contextCommand-SKHYM3K7.js → contextCommand-H6YVYBS3.js} +19 -19
- package/chunks/{core-runtime-XN7ACQRM.js → core-runtime-2HHFL26H.js} +17 -17
- package/chunks/{create-sub-session-3AA2Y4KO.js → create-sub-session-ALKLKZWI.js} +18 -18
- package/chunks/{daemon-git-worktree-guard-6GL7GAMY.js → daemon-git-worktree-guard-FKKXZKOZ.js} +17 -17
- package/chunks/{daemon-status-provider-HZVH6OMF.js → daemon-status-provider-L3JVFUFB.js} +24 -24
- package/chunks/{daemon-trust-policy-4O62GJPW.js → daemon-trust-policy-UKZ4URR5.js} +24 -24
- package/chunks/{daemon-trust-policy-monitor-PADS3D5B.js → daemon-trust-policy-monitor-O3BAF5WQ.js} +24 -24
- package/chunks/{de-E75VCQRZ.js → de-OMV463ND.js} +6 -2
- package/chunks/{deferred-core-runtime-TE5JZ4CV.js → deferred-core-runtime-TX4M62JC.js} +17 -17
- package/chunks/{edit-IIBA4J2Y.js → edit-URCTP3DW.js} +11 -11
- package/chunks/{en-LFESTYTB.js → en-EEVIOXSR.js} +14 -2
- package/chunks/{enterPlanMode-6XRRTOGI.js → enterPlanMode-JGAWYT7U.js} +9 -9
- package/chunks/{environment-CDJ5LMVD.js → environment-5NRP4NYH.js} +19 -19
- package/chunks/{errors-LCCBD2N5.js → errors-7BX5N6WH.js} +19 -19
- package/chunks/{execution-tool-46DCOYFU.js → execution-tool-4MAOTD33.js} +11 -11
- package/chunks/{execution-worker-MA7UKLYX.js → execution-worker-FE64M6YB.js} +14 -14
- package/chunks/{exitPlanMode-VUWTTAFT.js → exitPlanMode-MRIMIR7S.js} +9 -9
- package/chunks/{fast-path-Z5M2OGP3.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-KZDAWIYT.js → glob-VVMTH2FZ.js} +9 -9
- package/chunks/{goal-tools-WOAVAL6R.js → goal-tools-PIZJOC5V.js} +9 -9
- package/chunks/{handleAutoUpdate-M52FPIM7.js → handleAutoUpdate-7CYUYIFT.js} +20 -20
- package/chunks/{i18n-2ORJ7EUZ.js → i18n-DZGPXZHL.js} +18 -18
- package/chunks/{initializer-JKXV3VM4.js → initializer-6MWLCO6O.js} +26 -25
- package/chunks/{installationInfo-YAFZTTXR.js → installationInfo-2YFHIA4G.js} +17 -17
- package/chunks/{ja-NLAMHYSV.js → ja-MQ3LTDXD.js} +6 -2
- package/chunks/{list-PADJYOVB.js → list-2PCYJ5KG.js} +26 -26
- package/chunks/{llm-KRH33LVO.js → llm-QVOVDL2Q.js} +70 -70
- package/chunks/{llm-content-generator-TJSVJP3S.js → llm-content-generator-P4MM2G4V.js} +4 -4
- package/chunks/{loadedSettingsAdapter-MBW46SD5.js → loadedSettingsAdapter-6DG3R23U.js} +24 -24
- package/chunks/{local-execution-environment-VN3IR5HW.js → local-execution-environment-RQZE5ZPQ.js} +14 -14
- package/chunks/{loggingContentGenerator-23F4KFBU.js → loggingContentGenerator-T5HYYF2G.js} +9 -9
- package/chunks/{managed-npm-update-ZY3PJP5Q.js → managed-npm-update-FKD3RX22.js} +17 -17
- package/chunks/{mcp-4PZN2LIR.js → mcp-CONKBRY3.js} +24 -24
- package/chunks/{model-call-collection-WYHY6DOD.js → model-call-collection-L6GU4PEV.js} +1 -1
- package/chunks/{model-configuration-Z4DFPL2P.js → model-configuration-TBFXQOP6.js} +25 -25
- package/chunks/{modelConfigUtils-Y3CJEJLV.js → modelConfigUtils-ID2MFVCP.js} +19 -19
- package/chunks/{monitor-ICRZWUVU.js → monitor-ETBC2KHX.js} +9 -9
- package/chunks/{nonInteractiveCli-I2V6MAM6.js → nonInteractiveCli-QPKDUFGH.js} +62 -60
- package/chunks/{nonInteractiveToolExecutor-T4U2SQTB.js → nonInteractiveToolExecutor-7ZDYEIOV.js} +10 -10
- package/chunks/{notebook-edit-RAQ3E2IY.js → notebook-edit-PBP4CLHC.js} +10 -10
- package/chunks/{omni-NM6NMFX7.js → omni-EBPCPKLP.js} +9 -9
- package/chunks/{openaiContentGenerator-6HGOFBCF.js → openaiContentGenerator-FJJDGKFI.js} +6 -6
- package/chunks/{openaiResponsesContentGenerator-LEX4GEAX.js → openaiResponsesContentGenerator-Y27KA4YJ.js} +4 -4
- package/chunks/{processUtils-QVXMEUVY.js → processUtils-EUHGQHUQ.js} +2 -2
- package/chunks/{prompt-terminal-ledger-SLWWZ32V.js → prompt-terminal-ledger-XV4MIV4H.js} +18 -18
- package/chunks/{pt-EY6TJFGW.js → pt-AVWESYKZ.js} +14 -2
- package/chunks/pty-host-process-PKCVFICX.js +29 -0
- package/chunks/{reactive-degrade-RYXUWQNZ.js → reactive-degrade-LL5MSPMK.js} +8 -8
- package/chunks/{read-file-CN7ZTEDI.js → read-file-HQVTDGX5.js} +1 -1
- package/chunks/{resumeHistoryUtils-RJOR4X7G.js → resumeHistoryUtils-DKTD3ZG2.js} +26 -25
- package/chunks/{ripGrep-XGQKPFSN.js → ripGrep-WA7AGEV7.js} +1 -1
- package/chunks/{ru-QXDK3EHQ.js → ru-CSBDIXDS.js} +6 -2
- package/chunks/{run-o1-code-serve-OILFC54C.js → run-o1-code-serve-27EWAN7V.js} +49 -49
- package/chunks/{sandboxConfig-HAPLL76L.js → sandboxConfig-B4Z7RRB6.js} +17 -17
- package/chunks/{scheduled-tasks-4THWTS4Y.js → scheduled-tasks-KBBSAL7T.js} +22 -22
- package/chunks/{scheduler-ZFPQQHCZ.js → scheduler-WUFLFLZX.js} +19 -19
- package/chunks/{serve-COVK43MI.js → serve-GHD5P7VM.js} +24 -24
- package/chunks/{server-LGQYXUFH.js → server-O7S2DL3A.js} +141 -141
- package/chunks/{session-WSCO5TIG.js → session-4COCQNXM.js} +63 -61
- package/chunks/{session-P2DYIN6R.js → session-74Z72LNM.js} +1 -1
- package/chunks/{session-attachments-root-JGGALEUS.js → session-attachments-root-QTVKHZO3.js} +17 -17
- package/chunks/{session-pr-refresh-CPWDRHGO.js → session-pr-refresh-4XWL7OWU.js} +22 -22
- package/chunks/{settings-27RICWM3.js → settings-LKHHDZ22.js} +23 -23
- package/chunks/{shell-GXQXRLV5.js → shell-MBJWYI6H.js} +9 -9
- package/chunks/{skill-TTXC325A.js → skill-P47GW76V.js} +1 -1
- package/chunks/{skill-settings-MAULQ3TM.js → skill-settings-OOKHO2VX.js} +23 -23
- package/chunks/{spawnChannel-3S2M7K2F.js → spawnChannel-BCCGOYBS.js} +18 -18
- package/chunks/{standalone-update-3A556HIG.js → standalone-update-GFWLCIJA.js} +19 -19
- package/chunks/{startInteractiveUI-SUV4VAT4.js → startInteractiveUI-4U37J3U3.js} +1092 -889
- package/chunks/supervisor-runner-JHRQ2FCR.js +24 -0
- package/chunks/{team-create-3PPBCJY7.js → team-create-V7TS7YKU.js} +9 -9
- package/chunks/{team-plan-approval-CTXSTGLT.js → team-plan-approval-AZFDDNWX.js} +9 -9
- package/chunks/{terminal-image-renderer-WQY3JFVO.js → terminal-image-renderer-VKFNJYLX.js} +17 -17
- package/chunks/{theme-manager-J7AAKTK2.js → theme-manager-NJUI6CSB.js} +19 -18
- package/chunks/{tool-result-media-M3P2DAG4.js → tool-result-media-PNMKSY4I.js} +9 -9
- package/chunks/{tool-search-7U7FG4IT.js → tool-search-G775WYWX.js} +1 -1
- package/chunks/{total-session-admission-FLRO4VNA.js → total-session-admission-EU3OANCQ.js} +19 -19
- package/chunks/{trustedFolders-NKXMHVAW.js → trustedFolders-SHDE6P4A.js} +18 -18
- package/chunks/{update-relaunch-MJD4TQTQ.js → update-relaunch-WO4XSFPM.js} +5 -5
- package/chunks/{updateCheck-FWIBLR2D.js → updateCheck-VXMUIJQI.js} +19 -19
- package/chunks/{upload-config-RRVEVXT4.js → upload-config-W3I5KJ6Z.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-CBTKHLEO.js → useAutoAcceptIndicator-RVZ7NA4T.js} +27 -27
- package/chunks/{validateNonInterActiveAuth-35VKND26.js → validateNonInterActiveAuth-Z6VWDBAU.js} +59 -57
- package/chunks/{version-RW367FEL.js → version-BAIHAZMG.js} +1 -1
- package/chunks/{web-fetch-IR64PH6P.js → web-fetch-UVYCFIDA.js} +1 -1
- package/chunks/{web-search-575SSD6B.js → web-search-2HZLV7U7.js} +7 -7
- package/chunks/{workflow-2BTPXLOQ.js → workflow-MH5F52EN.js} +10 -10
- package/chunks/{workspace-providers-status-7ETHMLKH.js → workspace-providers-status-QGZHLTTK.js} +28 -28
- package/chunks/{workspace-registration-store-Z2KQL5YM.js → workspace-registration-store-ZOS5W3KI.js} +1 -1
- package/chunks/{workspace-registry-SHLVHQ2E.js → workspace-registry-S5UI2GMP.js} +19 -19
- package/chunks/{workspace-runtime-coordinator-DHUENYXW.js → workspace-runtime-coordinator-3VT4F7QU.js} +19 -19
- package/chunks/{workspace-service-RMGMLOY4.js → workspace-service-FPIDJZQX.js} +27 -27
- package/chunks/{workspace-skills-status-VYXV72SD.js → workspace-skills-status-3NDFOQ7X.js} +24 -24
- package/chunks/{workspace-trust-reconciler-I54XA63T.js → workspace-trust-reconciler-MIYMY5WA.js} +28 -28
- package/chunks/{write-file-EE43NO7H.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-Q6QNOKVS.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 +17 -2
- package/locales/fr.js +9 -2
- package/locales/ja.js +9 -2
- package/locales/pt.js +18 -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-z6c0GFXg.js → abnfDiagram-VCTEODGH-DvRQo4_D.js} +1 -1
- package/web-shell/assets/{arc-D1H1BUod.js → arc-BdiXk54-.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-Bn0PpSHC.js → architectureDiagram-5GKGNRK7-ghhLp2fv.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-1iNfJHTQ.js → blockDiagram-NRAW4CY4-D1Mnhplm.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-D6zRDM8T.js → c4Diagram-UCG6FXSJ-DUXySExV.js} +1 -1
- package/web-shell/assets/channel-Dh8nmHXD.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-D1Rmjg2y.js → chunk-2Q5K7J3B-emXgDXOn.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-COdyNeyR.js → chunk-5VM5RSS4-BAe_FRUg.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-GK0cRat4.js → chunk-F27PBJKO-BFNyq3ws.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-CH4_aaaL.js → chunk-G27WJ6UU-CsbX0ea1.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-DVihw01K.js → chunk-JWPE2WC7-BJsqlFOz.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-DSvGjOZE.js → chunk-LCL6LL3I-BhkoNwBC.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-D6SVQZ2M.js → chunk-POPQ4Y6H-DDHhZe1n.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-up0BrUtx.js → chunk-SVP7TREG-EMrfHdyh.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-CqtnzNig.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-B02bBecO.js → cose-bilkent-JH36ORCC-C12GhrmQ.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-Br_1z3cO.js → cynefin-OW5HDTMX-B1PlOkHW.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CS1KWbEy.js → cynefinDiagram-5FMLGOSQ-DqlIu1-5.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CsvBQRDU.js → dagre-3AP2YEHR-jwha3DyI.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4--rElHeb7.js → diagram-S7CK7UJ4-WJo7RwdL.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-Be49Etur.js → diagram-UQ7AKVKN-HNgwz504.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-Ba2t14dC.js → diagram-VSXAHHWV-CnSKwatX.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-1oLVSxkG.js → diagram-VX7I27RA-Bl2_wm4a.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-BptCVC1-.js → diagram-Z3DM3KII-C-h8dvnx.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-jC_pcjdP.js → ebnfDiagram-PWID7BFC-xPu9lOPC.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-B2RtFSSf.js → erDiagram-SSCWMZ5O-lL-N4ln4.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BOpivMwc.js → flowDiagram-A5DVABFB-DzBl_JGY.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Yx9XRrrM.js → ganttDiagram-EL5Y4UJY-CaDwMjwZ.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BI27bUeL.js → gitGraphDiagram-WWUBYQGX-DieKNHv6.js} +1 -1
- package/web-shell/assets/{index-ChRB-xAg.js → index-B8kdqIl5.js} +1 -1
- package/web-shell/assets/{index-D0lgrJdb.js → index-Dh9PvEFA.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-hcu4wZLS.js → infoDiagram-RXCK75RN-DAavpH0B.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-ClNh6AxU.js → ishikawaDiagram-5VMMS53U-UPSFQgsr.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-X-hxvs-e.js → journeyDiagram-EYS64GPL-tatKO6kZ.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-j1-Bo3JP.js → kanban-definition-3QL26DDD-DQVeuSX5.js} +1 -1
- package/web-shell/assets/{layout-DBz0Jmvk.js → layout-CRt7C8gi.js} +1 -1
- package/web-shell/assets/{linear-iMTtJ54o.js → linear-CtupaiXZ.js} +1 -1
- package/web-shell/assets/{mermaid.core-CZFkyVjC.js → mermaid.core-Pq6FiKYN.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-vpFv_mCH.js → mindmap-definition-FBJOCRG2-C3aBV9q4.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-B_VYmyAS.js → pegDiagram-XKGWAZYB-DPC6gXxQ.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-HAULF0GF.js → pieDiagram-E7YTZNPT-Bnulswji.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Dp6iZe8P.js → quadrantDiagram-AXDQQJYC-CgN1vgtM.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-C0wfx3Ka.js → railroadDiagram-O6MQD6OU-XdwHEwkM.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-t5dXKrc9.js → requirementDiagram-EFPCY7ZU-BrptICwx.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-DOXeBVgk.js → sankeyDiagram-P5KCCOFB-UVmNE7OK.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CghIZFeC.js → sequenceDiagram-WJ2MYXX4-CbLJdOim.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-ChafU-3p.js → sizeCapture-X5ZJPWSS-DHeZCcKI.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-hK7ohLs4.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-DfzxuHbo.js → swimlanes-XN3QIQJK-CFK29lSu.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DxcqGRuT.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-CEg8YNZQ.js → timeline-definition-24CTP7MA-BfAZG1ah.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-BvfG9FFY.js → vennDiagram-4TSXK5OY-x129VjoM.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Bt7Yotxp.js → wardleyDiagram-VM6X3IG4-B5aBvbvt.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-hn8Ssagi.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-oE8pKJFn.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-XqK7eu8w.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-XqK7eu8w.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BcE4kAA6.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BUE7JFK6.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
|
+
*/
|