nolo-cli 0.241.0-alpha.1 → 0.242.0-alpha.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/README.md +3 -5
- package/{_executeModel-UCWDB72C.js → _executeModel-IZ2MCXHO.js} +67 -67
- package/{action-24MZYW2B.js → action-VDEW6WLI.js} +9 -9
- package/{addContentAction-HEMCSSHT.js → addContentAction-7YVXHIPQ.js} +14 -14
- package/{addDialogAgentAction-SQYDOXHA.js → addDialogAgentAction-BX7B47HF.js} +17 -17
- package/{agentDeleteCommand-P7O3ACNJ.js → agentDeleteCommand-N7ELXPLD.js} +90 -90
- package/{agentEmailCommands-A5BRSYWK.js → agentEmailCommands-OFS477PV.js} +92 -92
- package/{agentListCommands-LDRCOOMO.js → agentListCommands-IQQHJSXP.js} +193 -156
- package/{agentMachineCommands-AYL53KJV.js → agentMachineCommands-NS65BEW7.js} +43 -41
- package/{agentProviderCommands-N5EA3ED2.js → agentProviderCommands-SS6M6VGY.js} +2 -2
- package/{agentRecordCommands-FICBZ57C.js → agentRecordCommands-4VE7CNLC.js} +88 -88
- package/{agentRunCommand-CTXQGDUM.js → agentRunCommand-2MUXHKNW.js} +89 -89
- package/{agentRunControl-CO6BASZF.js → agentRunControl-55GL6Q3M.js} +7 -5
- package/{agentRuntimeLocal-5YN4D5WT.js → agentRuntimeLocal-5DB2P4MU.js} +42 -35
- package/{agentSlice-DJ5D4DU4.js → agentSlice-5VTAFG43.js} +14 -14
- package/{appDeleteCommands-B4E7N7M2.js → appDeleteCommands-EDKUPHJM.js} +43 -41
- package/{appDeployCommands-E4DTXRRM.js → appDeployCommands-JO74GW4L.js} +43 -41
- package/{appDeployStatusCommands-FCNHYHZM.js → appDeployStatusCommands-U77ZUHX7.js} +43 -41
- package/{appGetCommands-4DXSQHUZ.js → appGetCommands-QCMHBYPX.js} +43 -41
- package/{appListCommands-2NN5E4F6.js → appListCommands-ZQJYEXI6.js} +43 -41
- package/{authCommand-47DR6GZT.js → authCommand-W4KXRZLI.js} +13 -13
- package/{authCommands-ZZ3L5IFM.js → authCommands-6AUYO65N.js} +3 -3
- package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-GHE3RD3V.js} +7 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-VZWAY2KR.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
- package/{chunk-7OTNBI77.js → chunk-247AAJRK.js} +1 -1
- package/{chunk-BDERPCJW.js → chunk-2N4UBHUU.js} +2 -2
- package/{chunk-3V6JT6WN.js → chunk-2T5BHLID.js} +266 -109
- package/{chunk-5TJE4QCL.js → chunk-3OQFXODL.js} +2 -2
- package/{chunk-UAOFSUG7.js → chunk-3ORFJP2Z.js} +1 -1
- package/{chunk-6XBOPKUH.js → chunk-3UNAGTBW.js} +14 -14
- package/{chunk-ZTLTDUV6.js → chunk-4F7SWSWO.js} +4 -4
- package/{chunk-LT3DMEIB.js → chunk-4UK6UBXF.js} +1 -1
- package/{chunk-H6CHPU6M.js → chunk-5GRWWUB4.js} +3 -3
- package/{chunk-TTEBPPUV.js → chunk-6326DRQY.js} +1 -1
- package/{chunk-TXFYIWAW.js → chunk-6MQWGA5F.js} +10 -10
- package/{chunk-TE2XH4KH.js → chunk-6MX6S6TE.js} +3 -3
- package/{chunk-QGMIUVBT.js → chunk-6S6CZUXK.js} +19 -19
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-6BGJHJRN.js → chunk-6XLWUNZB.js} +27 -27
- package/{chunk-BIJTI5SX.js → chunk-7AWKDRXG.js} +2 -2
- package/{chunk-YMCSR7PA.js → chunk-7GTXPS3D.js} +8 -8
- package/{chunk-G6OPRPXH.js → chunk-7HUHOCIY.js} +35 -29
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-C3GOEQJF.js → chunk-BH7CEVOH.js} +1 -1
- package/{chunk-B72AFRR2.js → chunk-C4KX626C.js} +4 -4
- package/{chunk-EW37CXCQ.js → chunk-CHYYSFFM.js} +6 -6
- package/{chunk-ZQUCJBS4.js → chunk-CJTB3OYB.js} +2 -2
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-MM73SP4K.js → chunk-DOK7GDRU.js} +1 -1
- package/{chunk-Y5RN44VH.js → chunk-DPAIQLAL.js} +16 -16
- package/{chunk-LMZRXDWG.js → chunk-EKXPHL7M.js} +3 -3
- package/{chunk-NL7J2J5Z.js → chunk-ENYTIRIO.js} +1 -1
- package/{chunk-GCVFX6ZL.js → chunk-ER3P6MBT.js} +3 -3
- package/{chunk-NQQL2DKF.js → chunk-F4MCAOWN.js} +1 -1
- package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
- package/{chunk-2XMKW2OY.js → chunk-GES5GIAU.js} +8 -8
- package/{chunk-25OCZXSX.js → chunk-HQVNO7FH.js} +21 -21
- package/{chunk-DVYAFH2Q.js → chunk-HSWEFHFS.js} +1 -1
- package/{chunk-FSIEHQNH.js → chunk-IIG3TT73.js} +42 -5
- package/{chunk-FPMPWNVQ.js → chunk-IZJFTY4R.js} +3 -3
- package/{chunk-QES2NCVM.js → chunk-J25ESVUW.js} +9 -9
- package/{chunk-ZBQ5UGYY.js → chunk-J2XZZXIH.js} +3 -3
- package/{chunk-NBB2EBQD.js → chunk-JVJ53XCH.js} +1 -1
- package/{chunk-OATIWAKN.js → chunk-KC2QVCI7.js} +1 -1
- package/{chunk-3NFWMSTA.js → chunk-KF2DWSAH.js} +5 -5
- package/{chunk-KGIIZXPL.js → chunk-KLD7K5FD.js} +7 -7
- package/{chunk-FCAMGBLY.js → chunk-KMW5CRRM.js} +464 -276
- package/{chunk-7U2TFUWW.js → chunk-LZOOUQAZ.js} +4 -4
- package/{chunk-OYHJ4TW7.js → chunk-M5EA44QU.js} +2 -2
- package/{chunk-WHO3LYDW.js → chunk-MEDPR36J.js} +2 -2
- package/{chunk-6D25V6CB.js → chunk-MFXJY44K.js} +4 -4
- package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
- package/{chunk-FXX6VFMV.js → chunk-ODGSLWLO.js} +63 -63
- package/{chunk-YFRJAE3R.js → chunk-OGZE6BZG.js} +12 -4
- package/{chunk-F3FQPVHE.js → chunk-OKPC4QNX.js} +2 -2
- package/{chunk-DWWUVRB5.js → chunk-ONFFUQYM.js} +1 -1
- package/{chunk-IPRPYKBP.js → chunk-P244EH4W.js} +2 -2
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-24GVXSWK.js → chunk-PK7VT4ZU.js} +2 -2
- package/{chunk-TFGGNRT6.js → chunk-QLUYDJST.js} +1 -1
- package/{chunk-NWWQY2J5.js → chunk-QUJKDFZW.js} +7 -7
- package/{chunk-IUXBKS5L.js → chunk-QXUVCIPB.js} +9 -9
- package/{chunk-DLTMAXLF.js → chunk-QYNABNNQ.js} +6 -6
- package/{chunk-EIFSCI4C.js → chunk-RGUWOMXU.js} +263 -100
- package/{chunk-EBKHA63G.js → chunk-RIMFTQMC.js} +178 -46
- package/{chunk-7Q7MKJZN.js → chunk-SBRJOYND.js} +224 -116
- package/{chunk-ZT3DYK5T.js → chunk-SBRSXY67.js} +4 -4
- package/{chunk-UKSKCDBG.js → chunk-T3WSFTBS.js} +1 -1
- package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
- package/{chunk-LYDEFPQP.js → chunk-UDT4SI37.js} +1 -1
- package/{chunk-T444ENEC.js → chunk-UQXOORR3.js} +5 -5
- package/{chunk-CT6GT2BG.js → chunk-UR7555FE.js} +13 -13
- package/{chunk-X37RQEA3.js → chunk-UWOCASVL.js} +5 -5
- package/{chunk-DIBQXNGW.js → chunk-V2V5Q6DU.js} +2 -2
- package/{chunk-LCQJH7KN.js → chunk-VCU5GV42.js} +1 -1
- package/{chunk-MDVP5TLI.js → chunk-VMWY7TUA.js} +1 -1
- package/{chunk-HNWZJI4N.js → chunk-VNALJT32.js} +1 -1
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
- package/{chunk-BWW6WRX6.js → chunk-WVOZ35E4.js} +6 -6
- package/{chunk-XAFOLWLU.js → chunk-XDNXKFWF.js} +4 -4
- package/{chunk-KOIDLCAQ.js → chunk-XLN2GD6Z.js} +4 -4
- package/{chunk-TXQVH72L.js → chunk-Y5EBOURK.js} +3 -3
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-CZLSTOVM.js → chunk-YTEY27GN.js} +2 -2
- package/{chunk-C646JEUV.js → chunk-ZCVBIIUE.js} +4 -4
- package/{chunk-UAHUJ4HH.js → chunk-ZCZLTJEW.js} +10 -37
- package/{cliAgentConfigHelpers-RFR7ZCSK.js → cliAgentConfigHelpers-6OFDHJFT.js} +4 -4
- package/{cliLocalAgentRecordReader-AJ4UKHKT.js → cliLocalAgentRecordReader-FHIMCBUK.js} +44 -38
- package/{commandRegistry-IHWZVV4G.js → commandRegistry-OKIWAJIS.js} +99 -91
- package/{contentThunks-YQRCBDKF.js → contentThunks-VF2DCU46.js} +29 -29
- package/{cooldownCommands-W67DE765.js → cooldownCommands-QL6DWGVU.js} +1 -1
- package/{createAgentAutomationAction-ERSDNR4R.js → createAgentAutomationAction-BGET7Q6K.js} +30 -30
- package/{createDialogAction-QXC7JZPE.js → createDialogAction-XYDQZETK.js} +30 -30
- package/{createPageAction-RLZ7776F.js → createPageAction-74S5RO7U.js} +34 -34
- package/{dbSlice-7M2ESEUO.js → dbSlice-FI7VNDR5.js} +13 -13
- package/{deleteFile-WO6WSSNK.js → deleteFile-GD62MPZW.js} +7 -7
- package/{dialogCommands-UIRO4QNN.js → dialogCommands-Y6DHZUAM.js} +45 -44
- package/{dialogNotifyCommand-VDUFYBZV.js → dialogNotifyCommand-MKXL4NGL.js} +7 -7
- package/{dialogSlice-A4U3C76D.js → dialogSlice-XAUKSWZ4.js} +28 -28
- package/{docCreateCommands-MHPYTJWR.js → docCreateCommands-PHDFOQBM.js} +43 -41
- package/{docDeleteCommands-VYULMBAQ.js → docDeleteCommands-OSHJM67Y.js} +44 -42
- package/{docReadCommands-FV3GGZ7V.js → docReadCommands-E6QYCFMS.js} +43 -41
- package/{docStore-AWWI72FA.js → docStore-ZZT2BEBU.js} +15 -15
- package/{docUpdateCommands-JNS3HX7F.js → docUpdateCommands-DHIOPK2C.js} +43 -41
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-U5AR7ZHS.js → getPricing-RNRITFOP.js} +2 -2
- package/{handleSendMessageAction-WDJOUDNV.js → handleSendMessageAction-ARUU6CNF.js} +60 -60
- package/{hostCredentialCreate-H3FF2SAO.js → hostCredentialCreate-SNQT73H4.js} +88 -88
- package/index.js +8 -8
- package/keys-RWF7UCB4.js +1 -1
- package/{localRuntimeAdapter-JAQQXZJP.js → localRuntimeAdapter-MHI6Y2IZ.js} +96 -96
- package/{machineCommands-WYOFNB5I.js → machineCommands-3O6Y27R4.js} +216 -307
- package/{machineWsRunDispatch-Y7UIAZNM.js → machineWsRunDispatch-5PFLR5XC.js} +87 -87
- package/{mcpLocalAuthorizeCommand-SCYEFLRK.js → mcpLocalAuthorizeCommand-BQCQ2KRJ.js} +10 -10
- package/{memberThunks-DIITWU4M.js → memberThunks-TU6A6OBV.js} +17 -17
- package/package.json +1 -1
- package/{projectArchive-IZJXBW5N.js → projectArchive-X2EVXU3N.js} +34 -34
- package/{providerPresetApply-2QWXPJXZ.js → providerPresetApply-HUWNV2NI.js} +3 -3
- package/{providerRegistry-W4LCKK6V.js → providerRegistry-7FWKDKZJ.js} +3 -3
- package/{read-OBLJNMA2.js → read-QAHEQID5.js} +7 -7
- package/{readDocTool-QQZ4DAER.js → readDocTool-KG5DP6EM.js} +1 -1
- package/{readlineWorkspace-WF3SWZGR.js → readlineWorkspace-SO3APHVP.js} +482 -374
- package/{removeDialogAgentAction-HC3SOY3G.js → removeDialogAgentAction-QZCCVK2G.js} +19 -19
- package/{runAgentClientLoop-Z7V6TA3O.js → runAgentClientLoop-FLHHCOVH.js} +67 -67
- package/{secretCommands-STRAX275.js → secretCommands-36BCE3UE.js} +2 -2
- package/{setDialogExtraReferencesAction-DDZUQPY6.js → setDialogExtraReferencesAction-PDPTYSEW.js} +15 -15
- package/{setPrimaryDialogAgentAction-EB67OMAJ.js → setPrimaryDialogAgentAction-DOUIPR66.js} +19 -19
- package/{settingThunks-TN6GFASU.js → settingThunks-MHGGP6UE.js} +23 -23
- package/{spaceCommands-HBYQUVJI.js → spaceCommands-JH7UYE3K.js} +46 -44
- package/{streamAgentChatTurn-CM7QQXOS.js → streamAgentChatTurn-VDDA2TX6.js} +89 -89
- package/{switchDialogAgentAction-XY5TKQQE.js → switchDialogAgentAction-7USK3DAP.js} +17 -17
- package/{tableCommands-MXFL3JIT.js → tableCommands-UONBFC7L.js} +5 -5
- package/{tools-AT6H73LD.js → tools-MIOCXKMG.js} +52 -52
- package/{tuiRestart-272SAYSK.js → tuiRestart-ET3QISZ5.js} +6 -6
- package/{tuiSummaryLlmCaller-K2OVRVHG.js → tuiSummaryLlmCaller-MSINBP3M.js} +10 -10
- package/{updateCommands-O3BOVVVN.js → updateCommands-5OYND6EF.js} +3 -3
- package/{updateDialogTitleAction-PGY4UPLH.js → updateDialogTitleAction-2L4CC4YO.js} +30 -30
- package/{usageCommand-SCF3ROV2.js → usageCommand-JTKDAG6I.js} +2 -2
- package/{usageRebuildCommand-K5WPIBA5.js → usageRebuildCommand-4TFZCKXM.js} +3 -3
- package/{windowsSelfUpdate-WJDUZLEO.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
- package/chunk-TUSTONB3.js +0 -81
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- package/{chunk-6X3CS6NJ.js → chunk-RH44TIHX.js} +6 -6
- package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
- package/{chunk-LN4ZVSO7.js → chunk-Y22P6ASC.js} +5 -5
- package/{chunk-DGUUOHBF.js → chunk-Y3DOUQQQ.js} +3 -3
- package/{dialogUsageCommand-SEC6UZWM.js → dialogUsageCommand-BZPKR3DW.js} +3 -3
- package/{runtimeDoctorCommands-KX6YLPWV.js → runtimeDoctorCommands-DN3I52C6.js} +2 -2
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KMW5CRRM.js";
|
|
37
37
|
import {
|
|
38
38
|
boxGlyphs,
|
|
39
39
|
displayWidth,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
stripAnsi,
|
|
44
44
|
tokenizeAnsiLine,
|
|
45
45
|
visibleWidth
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KF2DWSAH.js";
|
|
47
47
|
import {
|
|
48
48
|
clearCredentialAvailability,
|
|
49
49
|
readEffectiveCredentialEntry
|
|
@@ -78,10 +78,6 @@ import {
|
|
|
78
78
|
loadMemoryVNextCatalog,
|
|
79
79
|
putMemoryEvidenceVNext
|
|
80
80
|
} from "./chunk-324FWHUA.js";
|
|
81
|
-
import {
|
|
82
|
-
isBuiltinNoloAgentRef,
|
|
83
|
-
resolveLocalUserId
|
|
84
|
-
} from "./chunk-7U2TFUWW.js";
|
|
85
81
|
import {
|
|
86
82
|
CliProviderQuotaError
|
|
87
83
|
} from "./chunk-R7XWZDOH.js";
|
|
@@ -90,14 +86,14 @@ import {
|
|
|
90
86
|
} from "./chunk-S73EPYNC.js";
|
|
91
87
|
import {
|
|
92
88
|
resolveCliLocalRuntimeKeyCapability
|
|
93
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-SBRJOYND.js";
|
|
94
90
|
import {
|
|
95
91
|
extractGoogleValidationLink
|
|
96
92
|
} from "./chunk-BMQ2MJUK.js";
|
|
97
93
|
import {
|
|
98
94
|
parseUiCard,
|
|
99
95
|
uiCardFallback
|
|
100
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DPAIQLAL.js";
|
|
101
97
|
import {
|
|
102
98
|
isGatewayHttpStatus
|
|
103
99
|
} from "./chunk-NF64D32W.js";
|
|
@@ -108,7 +104,7 @@ import {
|
|
|
108
104
|
loadOwnerItemsFromDb,
|
|
109
105
|
parseUiAskChoiceContent,
|
|
110
106
|
resolveAgentMemoryPolicy
|
|
111
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-KLD7K5FD.js";
|
|
112
108
|
import {
|
|
113
109
|
API_REPORTED_COST_MULTIPLIER,
|
|
114
110
|
estimateMessagesTokens,
|
|
@@ -117,25 +113,17 @@ import {
|
|
|
117
113
|
resolveAgentContextWindow,
|
|
118
114
|
resolveOccupancy,
|
|
119
115
|
resolveOccupancyWindow
|
|
120
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-ODGSLWLO.js";
|
|
121
117
|
import {
|
|
122
118
|
parsePositiveFiniteNumberOrFallback
|
|
123
119
|
} from "./chunk-Y5GCAMGP.js";
|
|
124
120
|
import {
|
|
125
121
|
readDbRecord,
|
|
126
122
|
resolveAgentRecordFromHybridStore
|
|
127
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-J25ESVUW.js";
|
|
128
124
|
import {
|
|
129
125
|
isTransientFetchError
|
|
130
126
|
} from "./chunk-DXWGFL2Z.js";
|
|
131
|
-
import {
|
|
132
|
-
isCliAuthorityBrokerProtocolError,
|
|
133
|
-
isCliAuthorityBrokerTimeoutError,
|
|
134
|
-
isCliAuthorityBrokerUnavailableError
|
|
135
|
-
} from "./chunk-KK3FCYZM.js";
|
|
136
|
-
import {
|
|
137
|
-
getDefaultCliLocalRuntimeDb
|
|
138
|
-
} from "./chunk-LELADM5Q.js";
|
|
139
127
|
import {
|
|
140
128
|
awaitLocalWriterChild,
|
|
141
129
|
createMcpApprovalChild,
|
|
@@ -156,7 +144,7 @@ import {
|
|
|
156
144
|
settleRunTerminalAuthoritatively,
|
|
157
145
|
spawnLocalBackgroundRun,
|
|
158
146
|
transitionRunToTerminal
|
|
159
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-IIG3TT73.js";
|
|
160
148
|
import {
|
|
161
149
|
formatAgentListCard,
|
|
162
150
|
formatFinishedRunCard,
|
|
@@ -169,8 +157,16 @@ import {
|
|
|
169
157
|
isAgentRunTerminalStatus
|
|
170
158
|
} from "./chunk-S25VJYXV.js";
|
|
171
159
|
import {
|
|
172
|
-
|
|
173
|
-
} from "./chunk-
|
|
160
|
+
buildSkillDiscoveryContextLayer
|
|
161
|
+
} from "./chunk-UHW6SCVK.js";
|
|
162
|
+
import {
|
|
163
|
+
isCliAuthorityBrokerProtocolError,
|
|
164
|
+
isCliAuthorityBrokerTimeoutError,
|
|
165
|
+
isCliAuthorityBrokerUnavailableError
|
|
166
|
+
} from "./chunk-KK3FCYZM.js";
|
|
167
|
+
import {
|
|
168
|
+
getDefaultCliLocalRuntimeDb
|
|
169
|
+
} from "./chunk-LELADM5Q.js";
|
|
174
170
|
import {
|
|
175
171
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
176
172
|
LOCAL_TURN_ABORTED_CODE,
|
|
@@ -178,10 +174,10 @@ import {
|
|
|
178
174
|
markCliUserBatchPhase,
|
|
179
175
|
readActionGate,
|
|
180
176
|
readAgentsMdLayerFromDisk
|
|
181
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-RGUWOMXU.js";
|
|
182
178
|
import {
|
|
183
179
|
resolveAgentRuntimeConfigFromRecord
|
|
184
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-SBRSXY67.js";
|
|
185
181
|
import {
|
|
186
182
|
createThinkParserState,
|
|
187
183
|
flushThinkParser,
|
|
@@ -196,7 +192,7 @@ import {
|
|
|
196
192
|
} from "./chunk-QJTZ76CP.js";
|
|
197
193
|
import {
|
|
198
194
|
resolveAgentImageInputSupport
|
|
199
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-P244EH4W.js";
|
|
200
196
|
import {
|
|
201
197
|
isContextOverflowText
|
|
202
198
|
} from "./chunk-TLE77UJ5.js";
|
|
@@ -205,12 +201,12 @@ import {
|
|
|
205
201
|
ATTACHMENT_PART_VERSION,
|
|
206
202
|
describeAttachmentForModel,
|
|
207
203
|
normalizeAttachmentPart
|
|
208
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-4F7SWSWO.js";
|
|
209
205
|
import {
|
|
210
206
|
findCodexOAuthPinnedContextWindow,
|
|
211
207
|
normalizeUsage,
|
|
212
208
|
readCacheReadInputTokensOrNull
|
|
213
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-RH44TIHX.js";
|
|
214
210
|
import {
|
|
215
211
|
isOAuthApiKeyRef
|
|
216
212
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -221,9 +217,6 @@ import {
|
|
|
221
217
|
normalizeRuntimeToolPolicyOverride,
|
|
222
218
|
resolveEffectiveRuntimeToolPolicy
|
|
223
219
|
} from "./chunk-USGHJSGO.js";
|
|
224
|
-
import {
|
|
225
|
-
compactWhitespace
|
|
226
|
-
} from "./chunk-DWLEOOGR.js";
|
|
227
220
|
import {
|
|
228
221
|
QUOTA_ERROR_PATTERNS,
|
|
229
222
|
isQuotaExhaustedError
|
|
@@ -231,10 +224,29 @@ import {
|
|
|
231
224
|
import {
|
|
232
225
|
estimateTokenCount
|
|
233
226
|
} from "./chunk-PSCNXBYA.js";
|
|
227
|
+
import {
|
|
228
|
+
compactWhitespace
|
|
229
|
+
} from "./chunk-DWLEOOGR.js";
|
|
230
|
+
import {
|
|
231
|
+
buildMemoryOverlayLayer,
|
|
232
|
+
buildMemoryUseGuidanceLayer,
|
|
233
|
+
partitionScopedBlocks,
|
|
234
|
+
renderTurnContextBlocksWithScope
|
|
235
|
+
} from "./chunk-5HUO7SEX.js";
|
|
234
236
|
import {
|
|
235
237
|
parseExternalSkillMarkdown,
|
|
236
238
|
parseSkillDocProtocol
|
|
237
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-AETZ7AD6.js";
|
|
240
|
+
import {
|
|
241
|
+
ulid
|
|
242
|
+
} from "./chunk-OJKUU3LP.js";
|
|
243
|
+
import {
|
|
244
|
+
isBuiltinNoloAgentRef,
|
|
245
|
+
resolveLocalUserId
|
|
246
|
+
} from "./chunk-LZOOUQAZ.js";
|
|
247
|
+
import {
|
|
248
|
+
isLocalCliAgentKey
|
|
249
|
+
} from "./chunk-BR3GT6MR.js";
|
|
238
250
|
import {
|
|
239
251
|
BUILTIN_NOLO_AGENT_KEY,
|
|
240
252
|
BUILTIN_NOLO_AGENT_NAME,
|
|
@@ -244,18 +256,6 @@ import {
|
|
|
244
256
|
import {
|
|
245
257
|
parsePublicAgentId
|
|
246
258
|
} from "./chunk-M2EJHDJP.js";
|
|
247
|
-
import {
|
|
248
|
-
ulid
|
|
249
|
-
} from "./chunk-OJKUU3LP.js";
|
|
250
|
-
import {
|
|
251
|
-
buildSkillDiscoveryContextLayer
|
|
252
|
-
} from "./chunk-UHW6SCVK.js";
|
|
253
|
-
import {
|
|
254
|
-
buildMemoryOverlayLayer,
|
|
255
|
-
buildMemoryUseGuidanceLayer,
|
|
256
|
-
partitionScopedBlocks,
|
|
257
|
-
renderTurnContextBlocksWithScope
|
|
258
|
-
} from "./chunk-5HUO7SEX.js";
|
|
259
259
|
import {
|
|
260
260
|
exitCliFromWatchdog,
|
|
261
261
|
getLogger,
|
|
@@ -281,16 +281,16 @@ import {
|
|
|
281
281
|
toolIcon,
|
|
282
282
|
toolLabel,
|
|
283
283
|
toolLabelVariants
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-OGZE6BZG.js";
|
|
285
285
|
import {
|
|
286
286
|
isAntigravityOAuthAgent
|
|
287
|
-
} from "./chunk-
|
|
288
|
-
import {
|
|
289
|
-
resolveClientVersion
|
|
290
|
-
} from "./chunk-LMFMV5UC.js";
|
|
287
|
+
} from "./chunk-Y22P6ASC.js";
|
|
291
288
|
import {
|
|
292
289
|
toErrorMessage
|
|
293
290
|
} from "./chunk-HNMXYYJR.js";
|
|
291
|
+
import {
|
|
292
|
+
resolveClientVersion
|
|
293
|
+
} from "./chunk-LMFMV5UC.js";
|
|
294
294
|
import {
|
|
295
295
|
asTrimmedString
|
|
296
296
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -1385,6 +1385,40 @@ function formatCliHyperlink(url, label, enabled = resolveCliHyperlinkEnabled())
|
|
|
1385
1385
|
|
|
1386
1386
|
// packages/cli/tui/theme.ts
|
|
1387
1387
|
var THEME_PALETTES = {
|
|
1388
|
+
nature: {
|
|
1389
|
+
light: {
|
|
1390
|
+
accent: { hex: "1A5FA4", ansiFallback: "\x1B[34m" },
|
|
1391
|
+
// deep ocean ink (--hl-blue-text, 6.53:1 on #FFFFFF)
|
|
1392
|
+
chrome: { hex: "78828E", ansiFallback: "\x1B[90m" },
|
|
1393
|
+
// mist slate (3.90:1 on #FFFFFF — structural rules/comments recede cleanly)
|
|
1394
|
+
success: { hex: "267347", ansiFallback: "\x1B[32m" },
|
|
1395
|
+
// pine forest green (5.61:1 on #FFFFFF)
|
|
1396
|
+
warning: { hex: "966014", ansiFallback: "\x1B[33m" },
|
|
1397
|
+
// warm sand amber (5.38:1 on #FFFFFF, never muddy yellow)
|
|
1398
|
+
info: { hex: "1B6F8A", ansiFallback: "\x1B[36m" },
|
|
1399
|
+
// fjord cyan-blue (5.77:1 on #FFFFFF, distinct from accent)
|
|
1400
|
+
danger: { hex: "BE3428", ansiFallback: "\x1B[31m" },
|
|
1401
|
+
// terracotta red (5.68:1 on #FFFFFF)
|
|
1402
|
+
muted: { hex: "525D6B", ansiFallback: "\x1B[90m" }
|
|
1403
|
+
// mountain granite (6.73:1 on #FFFFFF — crisp secondary copy)
|
|
1404
|
+
},
|
|
1405
|
+
dark: {
|
|
1406
|
+
accent: { hex: "6AA8EA", ansiFallback: "\x1B[94m" },
|
|
1407
|
+
// moonlight ocean (--hl-blue dark, 6.89:1 on #1C1C1F)
|
|
1408
|
+
chrome: { hex: "6E7683", ansiFallback: "\x1B[90m" },
|
|
1409
|
+
// night stone (3.69:1 on #1C1C1F — clear rules/comments below muted)
|
|
1410
|
+
success: { hex: "72C488", ansiFallback: "\x1B[32m" },
|
|
1411
|
+
// alpine meadow green (8.22:1 on #1C1C1F)
|
|
1412
|
+
warning: { hex: "DDA955", ansiFallback: "\x1B[33m" },
|
|
1413
|
+
// sunset sand gold (7.98:1 on #1C1C1F)
|
|
1414
|
+
info: { hex: "5EB5C8", ansiFallback: "\x1B[36m" },
|
|
1415
|
+
// glacier stream cyan (7.36:1 on #1C1C1F)
|
|
1416
|
+
danger: { hex: "E6766B", ansiFallback: "\x1B[31m" },
|
|
1417
|
+
// warm coral clay (5.86:1 on #1C1C1F)
|
|
1418
|
+
muted: { hex: "9AA3B0", ansiFallback: "\x1B[90m" }
|
|
1419
|
+
// silver mist (6.67:1 on #1C1C1F — legible status & tool details)
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1388
1422
|
trail: {
|
|
1389
1423
|
light: {
|
|
1390
1424
|
accent: { hex: "2E7DB5", ansiFallback: "\x1B[34m" },
|
|
@@ -1395,8 +1429,8 @@ var THEME_PALETTES = {
|
|
|
1395
1429
|
// moss green
|
|
1396
1430
|
warning: { hex: "9A6A1F", ansiFallback: "\x1B[33m" },
|
|
1397
1431
|
// deeper amber — B57F2E still read as yellow/washed on white (H2 headers like ## Plan floated); 9A6A1F raises contrast
|
|
1398
|
-
info: { hex: "
|
|
1399
|
-
// sky blue
|
|
1432
|
+
info: { hex: "2376A6", ansiFallback: "\x1B[36m" },
|
|
1433
|
+
// deepened sky blue (5.05:1 on white; 4A9FD4 was only 3.0:1)
|
|
1400
1434
|
danger: { hex: "C45C4A", ansiFallback: "\x1B[31m" },
|
|
1401
1435
|
// reddish
|
|
1402
1436
|
muted: { hex: "5E6A78", ansiFallback: "\x1B[90m" }
|
|
@@ -1405,7 +1439,7 @@ var THEME_PALETTES = {
|
|
|
1405
1439
|
dark: {
|
|
1406
1440
|
accent: { hex: "5BA3D9", ansiFallback: "\x1B[94m" },
|
|
1407
1441
|
// trail dark primary (was wrongly copied from catppuccin 89B4FA)
|
|
1408
|
-
chrome: { hex: "
|
|
1442
|
+
chrome: { hex: "747E91", ansiFallback: "\x1B[90m" },
|
|
1409
1443
|
success: { hex: "5CB87A", ansiFallback: "\x1B[32m" },
|
|
1410
1444
|
// trail dark success (was A6E3A1)
|
|
1411
1445
|
warning: { hex: "E6B35C", ansiFallback: "\x1B[33m" },
|
|
@@ -1421,17 +1455,19 @@ var THEME_PALETTES = {
|
|
|
1421
1455
|
catppuccin: {
|
|
1422
1456
|
light: {
|
|
1423
1457
|
accent: { hex: "0969DA", ansiFallback: "\x1B[34m" },
|
|
1424
|
-
chrome: { hex: "
|
|
1458
|
+
chrome: { hex: "77808B", ansiFallback: "\x1B[90m" },
|
|
1459
|
+
// lighter than muted so structural chrome recedes below secondary text
|
|
1425
1460
|
success: { hex: "116329", ansiFallback: "\x1B[32m" },
|
|
1426
1461
|
warning: { hex: "9A6700", ansiFallback: "\x1B[33m" },
|
|
1427
|
-
info: { hex: "
|
|
1462
|
+
info: { hex: "0E7490", ansiFallback: "\x1B[36m" },
|
|
1463
|
+
// distinct cyan-teal rather than duplicating accent
|
|
1428
1464
|
danger: { hex: "CF222E", ansiFallback: "\x1B[31m" },
|
|
1429
|
-
muted: { hex: "
|
|
1465
|
+
muted: { hex: "57606A", ansiFallback: "\x1B[90m" }
|
|
1430
1466
|
},
|
|
1431
1467
|
dark: {
|
|
1432
1468
|
accent: { hex: "89B4FA", ansiFallback: "\x1B[94m" },
|
|
1433
1469
|
// Catppuccin Mocha Blue
|
|
1434
|
-
chrome: { hex: "
|
|
1470
|
+
chrome: { hex: "7F849C", ansiFallback: "\x1B[90m" },
|
|
1435
1471
|
success: { hex: "A6E3A1", ansiFallback: "\x1B[32m" },
|
|
1436
1472
|
warning: { hex: "F9E2AF", ansiFallback: "\x1B[33m" },
|
|
1437
1473
|
info: { hex: "89B4FA", ansiFallback: "\x1B[36m" },
|
|
@@ -1522,7 +1558,7 @@ var THEME_PALETTES = {
|
|
|
1522
1558
|
}
|
|
1523
1559
|
}
|
|
1524
1560
|
};
|
|
1525
|
-
var activeThemeName = "
|
|
1561
|
+
var activeThemeName = "nature";
|
|
1526
1562
|
function getActiveThemeName() {
|
|
1527
1563
|
return activeThemeName;
|
|
1528
1564
|
}
|
|
@@ -1535,15 +1571,21 @@ function setActiveThemeName(name) {
|
|
|
1535
1571
|
}
|
|
1536
1572
|
var activeThemeMode = "terminal";
|
|
1537
1573
|
var resolvedBrightness = null;
|
|
1574
|
+
var terminalModeExplicit = false;
|
|
1538
1575
|
function getActiveThemeMode() {
|
|
1539
1576
|
return activeThemeMode;
|
|
1540
1577
|
}
|
|
1541
|
-
function setActiveThemeMode(mode) {
|
|
1578
|
+
function setActiveThemeMode(mode, options) {
|
|
1542
1579
|
activeThemeMode = mode;
|
|
1543
|
-
if (mode === "terminal")
|
|
1580
|
+
if (mode === "terminal") {
|
|
1581
|
+
resolvedBrightness = null;
|
|
1582
|
+
terminalModeExplicit = options?.explicit === true;
|
|
1583
|
+
} else {
|
|
1584
|
+
terminalModeExplicit = false;
|
|
1585
|
+
}
|
|
1544
1586
|
}
|
|
1545
|
-
function setActiveBrightness(brightness) {
|
|
1546
|
-
setActiveThemeMode(brightness ?? "terminal");
|
|
1587
|
+
function setActiveBrightness(brightness, options) {
|
|
1588
|
+
setActiveThemeMode(brightness ?? "terminal", options);
|
|
1547
1589
|
}
|
|
1548
1590
|
var TRUECOLOR_TERM_PROGRAMS = /* @__PURE__ */ new Set([
|
|
1549
1591
|
"iterm.app",
|
|
@@ -1553,13 +1595,17 @@ var TRUECOLOR_TERM_PROGRAMS = /* @__PURE__ */ new Set([
|
|
|
1553
1595
|
"hyper",
|
|
1554
1596
|
"tabby",
|
|
1555
1597
|
"rio",
|
|
1556
|
-
"warpterminal"
|
|
1598
|
+
"warpterminal",
|
|
1599
|
+
"ptyxis"
|
|
1557
1600
|
]);
|
|
1558
1601
|
function supportsTruecolor(env = process.env) {
|
|
1559
1602
|
const explicit = (env.NOLO_TUI_TRUECOLOR ?? "").trim().toLowerCase();
|
|
1560
1603
|
if (explicit === "1" || explicit === "true") return true;
|
|
1561
1604
|
if (explicit === "0" || explicit === "false") return false;
|
|
1562
1605
|
if ((env.WT_SESSION ?? "").trim()) return true;
|
|
1606
|
+
if ((env.PTYXIS_VERSION ?? "").trim()) return true;
|
|
1607
|
+
const vteVersion = Number.parseInt((env.VTE_VERSION ?? "").trim(), 10);
|
|
1608
|
+
if (Number.isFinite(vteVersion) && vteVersion >= 3600) return true;
|
|
1563
1609
|
if (/truecolor|24bit/i.test(env.COLORTERM ?? "")) return true;
|
|
1564
1610
|
if (/direct|24bit/i.test(env.TERM ?? "")) return true;
|
|
1565
1611
|
const program = (env.TERM_PROGRAM ?? "").toLowerCase();
|
|
@@ -1609,18 +1655,121 @@ function hexToSgrParams(hex) {
|
|
|
1609
1655
|
const b = Number.parseInt(hex.slice(4, 6), 16);
|
|
1610
1656
|
return `38;2;${r};${g};${b}`;
|
|
1611
1657
|
}
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1658
|
+
function relativeLuminanceFromHex(hex) {
|
|
1659
|
+
const channels = readHexChannels(hex.replace(/^#/, "").toUpperCase());
|
|
1660
|
+
if (!channels) return null;
|
|
1661
|
+
const linearize = (byte) => {
|
|
1662
|
+
const s = byte / 255;
|
|
1663
|
+
return s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
1664
|
+
};
|
|
1665
|
+
return 0.2126 * linearize(channels[0]) + 0.7152 * linearize(channels[1]) + 0.0722 * linearize(channels[2]);
|
|
1666
|
+
}
|
|
1667
|
+
function wcagContrastRatio(fgHex, bgHex) {
|
|
1668
|
+
const l1 = relativeLuminanceFromHex(fgHex);
|
|
1669
|
+
const l2 = relativeLuminanceFromHex(bgHex);
|
|
1670
|
+
if (l1 === null || l2 === null) return null;
|
|
1671
|
+
const lighter = Math.max(l1, l2);
|
|
1672
|
+
const darker = Math.min(l1, l2);
|
|
1673
|
+
return (lighter + 0.05) / (darker + 0.05);
|
|
1674
|
+
}
|
|
1675
|
+
var POLE_LIGHT_NEUTRAL = "F7F9FC";
|
|
1676
|
+
var POLE_DARK_NEUTRAL = "0A0C10";
|
|
1677
|
+
var POLE_LIGHT_EXTREME = "FFFFFF";
|
|
1678
|
+
var POLE_DARK_EXTREME = "000000";
|
|
1679
|
+
function solveBlendForContrast(sourceHex, anchorHex, canvasHex, targetRatio) {
|
|
1680
|
+
let lo = 0;
|
|
1681
|
+
let hi = 1;
|
|
1682
|
+
let best = sourceHex;
|
|
1683
|
+
let bestErr = Math.abs((wcagContrastRatio(sourceHex, canvasHex) ?? targetRatio) - targetRatio);
|
|
1684
|
+
for (let step = 0; step < 16; step++) {
|
|
1685
|
+
const mid = (lo + hi) / 2;
|
|
1686
|
+
const candidate = blendHex(anchorHex, sourceHex, mid);
|
|
1687
|
+
const ratio = wcagContrastRatio(candidate, canvasHex) ?? targetRatio;
|
|
1688
|
+
const err = Math.abs(ratio - targetRatio);
|
|
1689
|
+
if (err < bestErr) {
|
|
1690
|
+
bestErr = err;
|
|
1691
|
+
best = candidate;
|
|
1692
|
+
}
|
|
1693
|
+
const anchorRatio = wcagContrastRatio(anchorHex, canvasHex) ?? targetRatio;
|
|
1694
|
+
const sourceRatio = wcagContrastRatio(sourceHex, canvasHex) ?? targetRatio;
|
|
1695
|
+
const increasing = anchorRatio >= sourceRatio;
|
|
1696
|
+
if (increasing && ratio < targetRatio || !increasing && ratio > targetRatio) {
|
|
1697
|
+
lo = mid;
|
|
1698
|
+
} else {
|
|
1699
|
+
hi = mid;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
return best;
|
|
1703
|
+
}
|
|
1704
|
+
function adaptTokenHexToCanvas(rawHex, tokenKey, canvasHex) {
|
|
1705
|
+
const normRaw = rawHex.replace(/^#/, "").toUpperCase();
|
|
1706
|
+
const normCanvas = canvasHex.replace(/^#/, "").toUpperCase();
|
|
1707
|
+
const canvasLum = relativeLuminanceFromHex(normCanvas);
|
|
1708
|
+
const ratio = wcagContrastRatio(normRaw, normCanvas);
|
|
1709
|
+
if (canvasLum === null || ratio === null) return normRaw;
|
|
1710
|
+
if (tokenKey === "chrome") {
|
|
1711
|
+
if (ratio < 3.25) return pushToContrast(normRaw, normCanvas, 3.7, 3.3);
|
|
1712
|
+
if (ratio > 4.45) return solveBlendForContrast(normRaw, normCanvas, normCanvas, 3.85);
|
|
1713
|
+
return normRaw;
|
|
1714
|
+
}
|
|
1715
|
+
if (tokenKey === "muted") {
|
|
1716
|
+
if (ratio < 5.2) return pushToContrast(normRaw, normCanvas, 6.1, 6.1);
|
|
1717
|
+
if (ratio > 8.2) return solveBlendForContrast(normRaw, normCanvas, normCanvas, 6.6);
|
|
1718
|
+
return normRaw;
|
|
1719
|
+
}
|
|
1720
|
+
if (ratio < 4.5) {
|
|
1721
|
+
return pushToContrast(normRaw, normCanvas, 4.85, 4.55);
|
|
1722
|
+
}
|
|
1723
|
+
return normRaw;
|
|
1724
|
+
}
|
|
1725
|
+
function polesByReach(canvasHex) {
|
|
1726
|
+
const ranked = [
|
|
1727
|
+
POLE_LIGHT_NEUTRAL,
|
|
1728
|
+
POLE_DARK_NEUTRAL,
|
|
1729
|
+
POLE_LIGHT_EXTREME,
|
|
1730
|
+
POLE_DARK_EXTREME
|
|
1731
|
+
].map((pole) => ({ pole, reach: wcagContrastRatio(pole, canvasHex) ?? 1 }));
|
|
1732
|
+
const neutralFirst = (pole) => pole === POLE_LIGHT_NEUTRAL || pole === POLE_DARK_NEUTRAL ? 0 : 1;
|
|
1733
|
+
ranked.sort(
|
|
1734
|
+
(a, b) => a.reach !== b.reach ? b.reach - a.reach : neutralFirst(a.pole) - neutralFirst(b.pole)
|
|
1735
|
+
);
|
|
1736
|
+
return ranked.map((r) => r.pole);
|
|
1737
|
+
}
|
|
1738
|
+
function pushToContrast(rawHex, canvasHex, target, floor) {
|
|
1739
|
+
const poles = polesByReach(canvasHex);
|
|
1740
|
+
for (const pole of poles) {
|
|
1741
|
+
if ((wcagContrastRatio(pole, canvasHex) ?? 1) > target) {
|
|
1742
|
+
return solveBlendForContrast(rawHex, pole, canvasHex, target);
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
const best = poles[0];
|
|
1746
|
+
if ((wcagContrastRatio(best, canvasHex) ?? 1) > floor) {
|
|
1747
|
+
return solveBlendForContrast(rawHex, best, canvasHex, floor);
|
|
1748
|
+
}
|
|
1749
|
+
return best;
|
|
1750
|
+
}
|
|
1751
|
+
function shouldUseTruecolorTokens(env) {
|
|
1752
|
+
if (!supportsTruecolor(env)) return false;
|
|
1753
|
+
const explicit = (env.NOLO_TUI_THEME ?? "").trim().toLowerCase();
|
|
1754
|
+
if (explicit === "terminal" || explicit === "ansi") return false;
|
|
1755
|
+
if (resolveTuiThemeMode(env) !== "terminal") return true;
|
|
1756
|
+
if (terminalModeExplicit) return false;
|
|
1757
|
+
return activeTerminalBaseHex !== null || detectColorFgBgBrightness(env) !== null;
|
|
1614
1758
|
}
|
|
1615
1759
|
function themeSgrParams(token, env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1616
|
-
const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.
|
|
1760
|
+
const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.nature;
|
|
1617
1761
|
const entry = palette[brightness][token];
|
|
1618
|
-
|
|
1762
|
+
if (!shouldUseTruecolorTokens(env)) {
|
|
1763
|
+
return entry.ansiFallback.slice(2, -1);
|
|
1764
|
+
}
|
|
1765
|
+
const effectiveHex = activeTerminalBaseHex ? adaptTokenHexToCanvas(entry.hex, token, activeTerminalBaseHex) : entry.hex;
|
|
1766
|
+
return hexToSgrParams(effectiveHex);
|
|
1619
1767
|
}
|
|
1620
1768
|
function themeColorSequence(token, env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1621
1769
|
return `\x1B[${themeSgrParams(token, env, brightness)}m`;
|
|
1622
1770
|
}
|
|
1623
1771
|
var SURFACE_HEX = {
|
|
1772
|
+
nature: { light: "EBF0F5", dark: "262932" },
|
|
1624
1773
|
trail: { light: "E4E8EC", dark: "313244" },
|
|
1625
1774
|
catppuccin: { light: "E8ECF0", dark: "181825" },
|
|
1626
1775
|
wave: { light: "E5E1D6", dark: "2A2A37" },
|
|
@@ -1642,6 +1791,7 @@ function setActiveTerminalBaseHex(hex) {
|
|
|
1642
1791
|
}
|
|
1643
1792
|
function resetWorkspaceThemeState() {
|
|
1644
1793
|
setActiveThemeMode("terminal");
|
|
1794
|
+
terminalModeExplicit = false;
|
|
1645
1795
|
setActiveTerminalBaseHex(null);
|
|
1646
1796
|
}
|
|
1647
1797
|
function applyDetectedBackground(detected) {
|
|
@@ -1688,20 +1838,19 @@ function blendHex(fg, base, weight) {
|
|
|
1688
1838
|
return `${r}${g}${b}`;
|
|
1689
1839
|
}
|
|
1690
1840
|
function diffLineSequences(env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1691
|
-
if (
|
|
1692
|
-
|
|
1693
|
-
const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
|
|
1841
|
+
if (resolveSurfaceWashFallback(env) !== null) return null;
|
|
1842
|
+
const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.nature;
|
|
1694
1843
|
const successHex = palette[brightness].success.hex;
|
|
1695
1844
|
const dangerHex = palette[brightness].danger.hex;
|
|
1696
1845
|
const infoHex = palette[brightness].info.hex;
|
|
1697
|
-
const weight = brightness === "dark" ? 0.
|
|
1846
|
+
const weight = brightness === "dark" ? 0.15 : 0.1;
|
|
1698
1847
|
const baseHex = resolveTerminalBaseHex(brightness);
|
|
1699
1848
|
const addedBgHex = blendHex(successHex, baseHex, weight);
|
|
1700
1849
|
const removedBgHex = blendHex(dangerHex, baseHex, weight);
|
|
1701
1850
|
const hunkBgHex = blendHex(infoHex, baseHex, weight * 0.6);
|
|
1702
|
-
const successSgr =
|
|
1703
|
-
const dangerSgr =
|
|
1704
|
-
const infoSgr =
|
|
1851
|
+
const successSgr = themeColorSequence("success", env, brightness);
|
|
1852
|
+
const dangerSgr = themeColorSequence("danger", env, brightness);
|
|
1853
|
+
const infoSgr = themeColorSequence("info", env, brightness);
|
|
1705
1854
|
return {
|
|
1706
1855
|
added: {
|
|
1707
1856
|
fg: successSgr,
|
|
@@ -1716,12 +1865,12 @@ function diffLineSequences(env = process.env, brightness = resolveTuiBrightness(
|
|
|
1716
1865
|
hunk: {
|
|
1717
1866
|
fg: infoSgr,
|
|
1718
1867
|
bg: hexToBgSgr(hunkBgHex),
|
|
1719
|
-
bar: `${infoSgr}\
|
|
1868
|
+
bar: `${infoSgr}\u258E\x1B[39m`
|
|
1720
1869
|
},
|
|
1721
1870
|
context: {
|
|
1722
1871
|
fg: "",
|
|
1723
1872
|
bg: "",
|
|
1724
|
-
bar: `${themeColorSequence("chrome", env, brightness)}\
|
|
1873
|
+
bar: `${themeColorSequence("chrome", env, brightness)}\u258E\x1B[39m`
|
|
1725
1874
|
}
|
|
1726
1875
|
};
|
|
1727
1876
|
}
|
|
@@ -1739,12 +1888,17 @@ function renderDiffLine(args) {
|
|
|
1739
1888
|
if (!colorEnabled) return text;
|
|
1740
1889
|
if (gutter) {
|
|
1741
1890
|
const charset = args.boxCharset ?? resolveBoxCharset(resolveAmbiguousWidth(void 0, env), env);
|
|
1742
|
-
const railGlyph = charset === "ascii" ?
|
|
1891
|
+
const railGlyph = charset === "ascii" ? "|" : "\u258E";
|
|
1743
1892
|
const railTone = kind === "added" ? "success" : kind === "removed" ? "danger" : kind === "hunk" ? "info" : "chrome";
|
|
1744
1893
|
const rail = `${themeColorSequence(railTone, env)}${railGlyph}\x1B[39m`;
|
|
1745
1894
|
const body = highlightedText ?? (kind === "context" ? text : `${themeColorSequence(railTone, env)}${text}`);
|
|
1746
1895
|
const closedBody = body.endsWith("\x1B[0m") ? body : `${body}\x1B[0m`;
|
|
1747
|
-
|
|
1896
|
+
const seq2 = diffLineSequences(env)?.[kind];
|
|
1897
|
+
return `${rail} ${seq2?.bg ? renderSurfaceLine({
|
|
1898
|
+
text: body,
|
|
1899
|
+
surface: seq2.bg,
|
|
1900
|
+
padTo: args.padTo ?? visibleWidth(text)
|
|
1901
|
+
}) : closedBody}`;
|
|
1748
1902
|
}
|
|
1749
1903
|
const seqs = diffLineSequences(env);
|
|
1750
1904
|
if (!seqs) {
|
|
@@ -1795,9 +1949,9 @@ function themeText(text, token, colorEnabled = resolveCliColorEnabled(), env = p
|
|
|
1795
1949
|
}
|
|
1796
1950
|
function tuiRenderThemeFingerprint(colorEnabled, env = process.env) {
|
|
1797
1951
|
const mode = resolveTuiThemeMode(env);
|
|
1798
|
-
const colorKind = !colorEnabled ? "plain" :
|
|
1952
|
+
const colorKind = !colorEnabled ? "plain" : shouldUseTruecolorTokens(env) ? "truecolor" : "ansi";
|
|
1799
1953
|
const surface = colorEnabled ? userSurfaceBackgroundSequence(env) : "";
|
|
1800
|
-
return `${activeThemeName}|${mode}|${colorKind}|${surface}`;
|
|
1954
|
+
return `${activeThemeName}|${mode}|${colorKind}|${resolveTuiBrightness(env)}|${activeTerminalBaseHex ?? ""}|${env.COLORFGBG ?? ""}|${surface}`;
|
|
1801
1955
|
}
|
|
1802
1956
|
function classifyDiffLine(line) {
|
|
1803
1957
|
if (line.startsWith("@@")) return "hunk";
|
|
@@ -8491,24 +8645,23 @@ function highlightCodeLine(line, lang, brightness) {
|
|
|
8491
8645
|
const success = colorSeq("success", brightness);
|
|
8492
8646
|
const warning = colorSeq("warning", brightness);
|
|
8493
8647
|
const chrome = colorSeq("chrome", brightness);
|
|
8494
|
-
const dim = STYLE.dim;
|
|
8495
8648
|
const reset = STYLE.reset;
|
|
8496
8649
|
const out = [];
|
|
8497
8650
|
let cursor = 0;
|
|
8498
8651
|
for (const region of regions) {
|
|
8499
8652
|
if (region.start > cursor) {
|
|
8500
|
-
out.push(emitPlainGap(line.slice(cursor, region.start), keywords,
|
|
8653
|
+
out.push(emitPlainGap(line.slice(cursor, region.start), keywords, "\x1B[39m", accent, warning, reset));
|
|
8501
8654
|
}
|
|
8502
8655
|
const text = line.slice(region.start, region.end);
|
|
8503
8656
|
if (region.kind === "string") {
|
|
8504
8657
|
out.push(`${success}${text}${reset}`);
|
|
8505
8658
|
} else {
|
|
8506
|
-
out.push(`${chrome}${
|
|
8659
|
+
out.push(`${chrome}${text}${reset}`);
|
|
8507
8660
|
}
|
|
8508
8661
|
cursor = region.end;
|
|
8509
8662
|
}
|
|
8510
8663
|
if (cursor < line.length) {
|
|
8511
|
-
out.push(emitPlainGap(line.slice(cursor), keywords,
|
|
8664
|
+
out.push(emitPlainGap(line.slice(cursor), keywords, "\x1B[39m", accent, warning, reset));
|
|
8512
8665
|
}
|
|
8513
8666
|
return out.join("");
|
|
8514
8667
|
}
|
|
@@ -8624,7 +8777,7 @@ function styleToolDetailSegments(detail, muted, chrome) {
|
|
|
8624
8777
|
if (!metaMatch) {
|
|
8625
8778
|
return `${muted}${detail}${STYLE.reset}`;
|
|
8626
8779
|
}
|
|
8627
|
-
return `${muted}${metaMatch[1]}${STYLE.reset}${chrome}${
|
|
8780
|
+
return `${muted}${metaMatch[1]}${STYLE.reset}${chrome}${metaMatch[2]}${STYLE.reset}`;
|
|
8628
8781
|
}
|
|
8629
8782
|
function styleTuiToolLine(line, brightness) {
|
|
8630
8783
|
const plain = plainToolLine(line);
|
|
@@ -8635,13 +8788,13 @@ function styleTuiToolLine(line, brightness) {
|
|
|
8635
8788
|
const header = toolTreeHeaderMatch(plain);
|
|
8636
8789
|
if (header) {
|
|
8637
8790
|
const glyph = plain.startsWith("\u2022") ? "\u2022" : "\u25B8";
|
|
8638
|
-
return `${chrome}${glyph}${STYLE.reset} ${STYLE.bold}${
|
|
8791
|
+
return `${chrome}${glyph}${STYLE.reset} ${STYLE.bold}${muted}${header[1]}${STYLE.reset} ${chrome}(${header[2]})${STYLE.reset} ${chrome}\xB7${STYLE.reset} ${muted}${header[3]}${STYLE.reset} ${statusColorSeq("\u2713", brightness)}\u2713${STYLE.reset}`;
|
|
8639
8792
|
}
|
|
8640
8793
|
const single = plain.match(TOOL_SINGLE_RE);
|
|
8641
8794
|
if (single) {
|
|
8642
8795
|
const [, label, detail, marker, statusDetail] = single;
|
|
8643
8796
|
const isError = marker === "\u2717";
|
|
8644
|
-
const labelColor = isError ? danger :
|
|
8797
|
+
const labelColor = isError ? danger : muted;
|
|
8645
8798
|
let rendered = `${chrome}\u25B8${STYLE.reset} ${STYLE.bold}${labelColor}${label}${STYLE.reset}`;
|
|
8646
8799
|
if (detail) {
|
|
8647
8800
|
rendered += ` ${chrome}\xB7${STYLE.reset} ${styleToolDetailSegments(detail, muted, chrome)}`;
|
|
@@ -8651,7 +8804,7 @@ function styleTuiToolLine(line, brightness) {
|
|
|
8651
8804
|
if (isError) {
|
|
8652
8805
|
rendered += ` ${danger}${statusDetail}${STYLE.reset}`;
|
|
8653
8806
|
} else {
|
|
8654
|
-
rendered += ` ${chrome}${
|
|
8807
|
+
rendered += ` ${chrome}${statusDetail}${STYLE.reset}`;
|
|
8655
8808
|
}
|
|
8656
8809
|
}
|
|
8657
8810
|
return rendered;
|
|
@@ -8783,25 +8936,23 @@ function styleRichMarkdownLine(line, brightness) {
|
|
|
8783
8936
|
return `${STYLE.bold}${colorSeq("accent", brightness)}${styledTitle}${STYLE.reset}`;
|
|
8784
8937
|
}
|
|
8785
8938
|
if (level === 2) {
|
|
8786
|
-
return `${STYLE.bold}${colorSeq("warning", brightness)}${styledTitle}${STYLE.reset}`;
|
|
8787
|
-
}
|
|
8788
|
-
if (level === 3) {
|
|
8789
8939
|
return `${STYLE.bold}${colorSeq("info", brightness)}${styledTitle}${STYLE.reset}`;
|
|
8790
8940
|
}
|
|
8791
8941
|
return `${STYLE.bold}${colorSeq("muted", brightness)}${styledTitle}${STYLE.reset}`;
|
|
8792
8942
|
}
|
|
8793
8943
|
if (line.startsWith("\u8FDB\u5165 nolo-plan")) {
|
|
8794
|
-
return `${colorSeq("chrome", brightness)}${
|
|
8944
|
+
return `${colorSeq("chrome", brightness)}${line}${STYLE.reset}`;
|
|
8795
8945
|
}
|
|
8796
8946
|
const blockquote = line.match(/^>\s?(.*)$/);
|
|
8797
8947
|
if (blockquote) {
|
|
8798
8948
|
const border = colorSeq("chrome", brightness);
|
|
8949
|
+
const muted = colorSeq("muted", brightness);
|
|
8799
8950
|
const content = blockquote[1];
|
|
8800
|
-
const styled = styleInlineMarkdown(content, brightness);
|
|
8801
|
-
return `${border}\u2502${STYLE.reset} ${
|
|
8951
|
+
const styled = styleInlineMarkdown(content, brightness).split(STYLE.reset).join(`${STYLE.reset}${muted}`);
|
|
8952
|
+
return `${border}\u2502${STYLE.reset} ${muted}${styled}${STYLE.reset}`;
|
|
8802
8953
|
}
|
|
8803
8954
|
if (THEMATIC_BREAK_RE.test(line)) {
|
|
8804
|
-
return `${colorSeq("chrome", brightness)}${
|
|
8955
|
+
return `${colorSeq("chrome", brightness)}${boxGlyphs(resolveBoxCharset()).h.repeat(36)}${STYLE.reset}`;
|
|
8805
8956
|
}
|
|
8806
8957
|
const bullet = line.match(/^(\s*)(•)\s(.+)$/);
|
|
8807
8958
|
if (bullet) {
|
|
@@ -8826,22 +8977,22 @@ function styleRichMarkdownLine(line, brightness) {
|
|
|
8826
8977
|
var CODE_FENCE_RULE_WIDTH = 24;
|
|
8827
8978
|
function renderCodeFenceOpen(rawLang, brightness) {
|
|
8828
8979
|
const { h, tl } = boxGlyphs(resolveBoxCharset());
|
|
8829
|
-
const
|
|
8980
|
+
const chrome = colorSeq("chrome", brightness);
|
|
8830
8981
|
if (rawLang) {
|
|
8831
8982
|
const tailLen = Math.max(4, CODE_FENCE_RULE_WIDTH - rawLang.length - 3);
|
|
8832
|
-
return `${
|
|
8983
|
+
return `${chrome}${tl}${h} ${rawLang} ${h.repeat(tailLen)}${STYLE.reset}`;
|
|
8833
8984
|
}
|
|
8834
|
-
return `${
|
|
8985
|
+
return `${chrome}${tl}${h.repeat(CODE_FENCE_RULE_WIDTH)}${STYLE.reset}`;
|
|
8835
8986
|
}
|
|
8836
8987
|
function renderCodeFenceClose(brightness) {
|
|
8837
8988
|
const { h, bl } = boxGlyphs(resolveBoxCharset());
|
|
8838
|
-
const
|
|
8839
|
-
return `${
|
|
8989
|
+
const chrome = colorSeq("chrome", brightness);
|
|
8990
|
+
return `${chrome}${bl}${h.repeat(CODE_FENCE_RULE_WIDTH)}${STYLE.reset}`;
|
|
8840
8991
|
}
|
|
8841
8992
|
function renderCodeFenceLine(line, lang, brightness) {
|
|
8842
8993
|
const { v } = boxGlyphs(resolveBoxCharset());
|
|
8843
|
-
const
|
|
8844
|
-
return `${
|
|
8994
|
+
const chrome = colorSeq("chrome", brightness);
|
|
8995
|
+
return `${chrome}${v}${STYLE.reset} ${highlightCodeLine(line, lang, brightness)}`;
|
|
8845
8996
|
}
|
|
8846
8997
|
var FenceTracker = class {
|
|
8847
8998
|
inFence = false;
|
|
@@ -10787,10 +10938,12 @@ function formatToolTraceLine(text, colorEnabled, accent = "none") {
|
|
|
10787
10938
|
`;
|
|
10788
10939
|
const width = resolveSurfacePaintWidth(process.stdout.columns || 80);
|
|
10789
10940
|
const fitted = fitAnsiLine(text.replace(/\r?\n/g, " "), width);
|
|
10790
|
-
const styled = accent === "error" ? themeText(fitted, "danger", true) :
|
|
10941
|
+
const styled = accent === "error" ? themeText(fitted, "danger", true) : themeText(fitted, "muted", true);
|
|
10942
|
+
const candidateSurface = composerSurfaceBackgroundSequence();
|
|
10943
|
+
const surface = candidateSurface.startsWith("\x1B[48;2;") ? candidateSurface : "";
|
|
10791
10944
|
return `${renderSurfaceLine({
|
|
10792
10945
|
text: styled,
|
|
10793
|
-
surface
|
|
10946
|
+
surface,
|
|
10794
10947
|
padTo: width
|
|
10795
10948
|
})}
|
|
10796
10949
|
`;
|
|
@@ -11063,7 +11216,7 @@ function prefixFor(kind) {
|
|
|
11063
11216
|
return kind === "added" ? "+ " : kind === "removed" ? "- " : " ";
|
|
11064
11217
|
}
|
|
11065
11218
|
function buildEditLine(kind, body, maxWidth = resolveEditSnippetMaxWidth()) {
|
|
11066
|
-
return { kind, text: prefixFor(kind) + truncateByDisplayWidth(body, maxWidth) };
|
|
11219
|
+
return { kind, text: prefixFor(kind) + truncateByDisplayWidth(body.replace(/\t/g, " "), maxWidth) };
|
|
11067
11220
|
}
|
|
11068
11221
|
function snippetLinesWithKind(snippet, kind, maxWidth = resolveEditSnippetMaxWidth()) {
|
|
11069
11222
|
const lines = snippet.split(/\r?\n/);
|
|
@@ -11147,17 +11300,21 @@ function formatEditDetailBlock(lines, colorEnabled, filePath, env = process.env)
|
|
|
11147
11300
|
const isTruecolor = supportsTruecolor(env);
|
|
11148
11301
|
const lang = isTruecolor ? detectCodeLangFromPath(filePath) : "unknown";
|
|
11149
11302
|
const brightness = resolveTuiBrightness(env);
|
|
11150
|
-
const
|
|
11151
|
-
|
|
11303
|
+
const contentWidth = resolveHistoryLayoutGeometry(process.stdout.columns || 80).contentWidth;
|
|
11304
|
+
const bodyBudget = Math.max(0, contentWidth - 4);
|
|
11305
|
+
const clipped = lines.map((line) => ({ ...line, text: truncateByDisplayWidth(line.text, bodyBudget) }));
|
|
11306
|
+
const padTo = Math.max(0, ...clipped.map((line) => displayWidth(line.text)));
|
|
11307
|
+
return clipped.map((line) => {
|
|
11152
11308
|
const rendered = renderDiffLine({
|
|
11153
11309
|
kind: line.kind,
|
|
11154
11310
|
text: line.text,
|
|
11155
11311
|
highlightedText: shouldHighlightEditLine(line, lang, isTruecolor) ? buildHighlightedEditLine(line, lang, brightness, env) : void 0,
|
|
11156
11312
|
gutter: true,
|
|
11313
|
+
padTo,
|
|
11157
11314
|
colorEnabled: true,
|
|
11158
11315
|
env
|
|
11159
11316
|
});
|
|
11160
|
-
return `${fitAnsiLine(` ${rendered}`,
|
|
11317
|
+
return `${fitAnsiLine(` ${rendered}`, contentWidth)}
|
|
11161
11318
|
`;
|
|
11162
11319
|
}).join("");
|
|
11163
11320
|
}
|
|
@@ -11209,7 +11366,7 @@ function normalToolGistRaw(event) {
|
|
|
11209
11366
|
const url = typeof metadata.url === "string" ? metadata.url : "";
|
|
11210
11367
|
if (url) return formatFetchItemUrl(url);
|
|
11211
11368
|
}
|
|
11212
|
-
if (toolName === "exa_search" || toolName === "codeSearch" || toolName === "globFiles") {
|
|
11369
|
+
if (toolName === "exa_search" || toolName === "codeSearch" || toolName === "globFiles" || toolName === "searchFiles") {
|
|
11213
11370
|
const query2 = typeof metadata.query === "string" ? metadata.query : typeof metadata.pattern === "string" ? metadata.pattern : "";
|
|
11214
11371
|
const path3 = typeof metadata.path === "string" ? metadata.path : void 0;
|
|
11215
11372
|
if (query2 || path3) return formatSearchItemQuery(query2, path3);
|
|
@@ -11399,7 +11556,7 @@ var TUI_TREE_END = "";
|
|
|
11399
11556
|
var TUI_TREE_TOOLS = {
|
|
11400
11557
|
Run: ["execShell", "runCommand", "launchProcess"],
|
|
11401
11558
|
Read: ["readFile"],
|
|
11402
|
-
Search: ["exa_search", "globFiles", "codeSearch"],
|
|
11559
|
+
Search: ["exa_search", "globFiles", "searchFiles", "codeSearch"],
|
|
11403
11560
|
Fetch: ["fetchWebpage"]
|
|
11404
11561
|
};
|
|
11405
11562
|
function toolDetails(event, line) {
|
|
@@ -12567,7 +12724,7 @@ function isBalanceExhaustedError(error) {
|
|
|
12567
12724
|
|
|
12568
12725
|
// packages/cli/client/agentRun.ts
|
|
12569
12726
|
async function loadRunLocalAgentTurn() {
|
|
12570
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
12727
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-5DB2P4MU.js");
|
|
12571
12728
|
return runLocalAgentTurn;
|
|
12572
12729
|
}
|
|
12573
12730
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|