nolo-cli 0.154.0-alpha.1 → 0.154.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/{_executeModel-SDGDBNX5.js → _executeModel-3HHZYHHB.js} +54 -54
- package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
- package/{action-SXJD5N5R.js → action-GPPJC5TI.js} +5 -5
- package/{addContentAction-65ONHX2T.js → addContentAction-XJQEJ4XW.js} +8 -8
- package/{addDialogAgentAction-WOLK7RB4.js → addDialogAgentAction-5WZX5CAY.js} +7 -7
- package/{agentDeleteCommand-W2XXF27A.js → agentDeleteCommand-ON2KVSJ5.js} +74 -75
- package/{agentEmailCommands-MSFGRDUZ.js → agentEmailCommands-2QPD5VP3.js} +77 -78
- package/{agentListCommands-G36AMSBR.js → agentListCommands-L33M3I6V.js} +35 -35
- package/{agentMachineCommands-YVVPDIHJ.js → agentMachineCommands-V44DPSED.js} +34 -31
- package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-CXBHNONN.js} +5 -5
- package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
- package/{agentRecordCommands-7G3DDI4L.js → agentRecordCommands-CKILCNQZ.js} +71 -72
- package/{agentRunCommand-ET7LIY7J.js → agentRunCommand-6IN7NK7H.js} +74 -74
- package/{agentRunControl-2C5GM3BW.js → agentRunControl-XBSNHHZE.js} +7 -7
- package/{agentRuntimeLocal-Q7ZOMZC7.js → agentRuntimeLocal-XCKO5FVP.js} +20 -18
- package/{agentSlice-MK5JTSZR.js → agentSlice-YT3VCCEW.js} +8 -8
- package/{appDeleteCommands-MMWT54BR.js → appDeleteCommands-2PJFNLAJ.js} +30 -28
- package/{appDeployCommands-OIFXVDOF.js → appDeployCommands-AZCMCMK6.js} +30 -28
- package/{appDeployStatusCommands-OTXMSDFB.js → appDeployStatusCommands-HSIKPVJN.js} +30 -28
- package/{appGetCommands-JPY36ANL.js → appGetCommands-IUZCPAP7.js} +30 -28
- package/{appListCommands-IHJGN36O.js → appListCommands-JLFVS44M.js} +30 -28
- package/{authCommand-J3XILHWW.js → authCommand-3Z52KJID.js} +22 -302
- package/{authCommands-77CHYBGF.js → authCommands-QOCKVPX3.js} +5 -5
- package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
- package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
- package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
- package/{chunk-FDT27L7S.js → chunk-2XDQAWBM.js} +18 -16
- package/{chunk-UGN77YJU.js → chunk-2ZYCNT2O.js} +232 -76
- package/{chunk-QFEW2ULV.js → chunk-32ZKZET7.js} +1 -1
- package/{chunk-QRRFQFFU.js → chunk-3GTVM7NJ.js} +22 -22
- package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
- package/{chunk-LGCICX53.js → chunk-3L5MSPWX.js} +1 -1
- package/{chunk-4YRTZIVN.js → chunk-43OFVLWJ.js} +6 -6
- package/{chunk-6TF64IF2.js → chunk-4L4K6YR7.js} +16 -2
- package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
- package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
- package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
- package/{chunk-OGI4JKBD.js → chunk-BAWAKW7X.js} +2 -2
- package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
- package/{chunk-A7HQF6YH.js → chunk-CDLP56BS.js} +9 -9
- package/{chunk-5MM7NNO6.js → chunk-CNWKLQRL.js} +8 -3
- package/{chunk-TJ2VPCBE.js → chunk-DD2EOI6S.js} +2 -2
- package/{chunk-36OMEXXR.js → chunk-DLV3H464.js} +8 -8
- package/{chunk-4WLENVCW.js → chunk-DT7EWFTY.js} +6 -6
- package/{chunk-C5DLHL3R.js → chunk-ESMZW5PE.js} +3 -3
- package/{chunk-FJRGRIVL.js → chunk-EVPKKBSI.js} +17 -16
- package/{chunk-PSJWPSKS.js → chunk-EWO77ZGF.js} +9 -43
- package/{chunk-ZWG3C7VI.js → chunk-F3SOW2EU.js} +81 -1
- package/{chunk-RGBBF2RB.js → chunk-F5WASHQA.js} +279 -138
- package/{chunk-GJRCYN5X.js → chunk-FB5WLEOD.js} +21 -17
- package/{chunk-HHC5FJHS.js → chunk-FCUKCVKN.js} +12 -8
- package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
- package/{chunk-EM3YOZJ4.js → chunk-FFHV45HO.js} +3 -3
- package/{chunk-SWZEIKWQ.js → chunk-FZYKQFBQ.js} +3 -3
- package/{chunk-7KYVUFDG.js → chunk-G3VYRPTV.js} +5 -267
- package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
- package/{chunk-LXTNZVD4.js → chunk-HW7EBEC5.js} +35 -207
- package/{chunk-B2EGWZJG.js → chunk-I7S63QUU.js} +1 -1
- package/{chunk-PDJ6ZODI.js → chunk-IF7V3CBU.js} +1 -1
- package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
- package/{chunk-YBNHPX4S.js → chunk-IW64YHXL.js} +155 -31
- package/{chunk-N37ERV4O.js → chunk-JDKSYQQN.js} +5 -5
- package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
- package/{chunk-PSYTZ4LK.js → chunk-JSB2OPQT.js} +134 -126
- package/{chunk-VEJFPTX7.js → chunk-JWEXJ573.js} +3 -3
- package/{chunk-ZG73GDYU.js → chunk-K25WQPP3.js} +253 -57
- package/{chunk-HKT6QXP3.js → chunk-KABQ74UQ.js} +5 -5
- package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
- package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
- package/{chunk-AIZE5TDM.js → chunk-MAYW6V3E.js} +2 -2
- package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
- package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
- package/{chunk-TPG4CZHI.js → chunk-NHEWV5FD.js} +17 -3
- package/{chunk-G47IPDOK.js → chunk-O2IWR23M.js} +1 -1
- package/{chunk-OU7WCUB5.js → chunk-OLVOR45M.js} +2 -2
- package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
- package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
- package/{chunk-2MTE2PEH.js → chunk-QA2C5NKI.js} +5 -739
- package/{chunk-TYND6RDQ.js → chunk-QI2WVWXV.js} +73 -2
- package/{chunk-L6EQV5OC.js → chunk-QXZH5UDF.js} +3 -3
- package/{chunk-24UXUXPR.js → chunk-QZIOZDM6.js} +10 -10
- package/{chunk-C7M4N5RA.js → chunk-R2KWTENX.js} +3 -3
- package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
- package/{chunk-UTIMX333.js → chunk-RIHQGFFA.js} +1 -1
- package/{chunk-4Z245KOA.js → chunk-SH3XD4E2.js} +8 -4
- package/{chunk-MM3662RS.js → chunk-SNAWGDXT.js} +263 -4
- package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
- package/chunk-TT644UJD.js +188 -0
- package/{chunk-IYBIRCQV.js → chunk-U34KT53V.js} +29 -11
- package/{chunk-ANJTRG52.js → chunk-ULQAD7ZY.js} +18 -43
- package/{chunk-LOLOIIIP.js → chunk-UY73HNIN.js} +704 -663
- package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
- package/{chunk-KX6LPG7W.js → chunk-VXS4YYJ2.js} +8 -8
- package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
- package/{chunk-IJERIUXS.js → chunk-WRCZXJ4N.js} +6 -3
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
- package/{chunk-EYWJT7A2.js → chunk-YPG7TUQD.js} +3 -3
- package/chunk-YR47Y7CN.js +2685 -0
- package/{chunk-NEJZ5GLD.js → chunk-ZAV4YVEA.js} +18 -2
- package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
- package/{chunk-WUR6LY7R.js → chunk-ZSLIYVIQ.js} +7 -7
- package/{commandRegistry-VSJPFX6B.js → commandRegistry-76FLRKYQ.js} +88 -96
- package/{contentThunks-65BTQQQE.js → contentThunks-QBL5NK2W.js} +21 -21
- package/{createAgentAutomationAction-SRMBZTAO.js → createAgentAutomationAction-5UWBLR2N.js} +21 -21
- package/{createDialogAction-OWAU72JP.js → createDialogAction-NJ2LE7KC.js} +25 -25
- package/{createPageAction-D4XGNX3P.js → createPageAction-7T3RINS2.js} +24 -25
- package/{dbSlice-S2HYXURM.js → dbSlice-6PVPY44C.js} +7 -7
- package/{deleteFile-6JWDDRVP.js → deleteFile-YM6NDPAR.js} +5 -5
- package/{dialogCommands-H3K7PTF6.js → dialogCommands-KMECTGCW.js} +34 -31
- package/{dialogSlice-GEBK3X5L.js → dialogSlice-GQMTD4HR.js} +20 -20
- package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
- package/{docCreateCommands-KP64KMVL.js → docCreateCommands-4IT5PUAL.js} +31 -29
- package/{docDeleteCommands-C3F4SZSR.js → docDeleteCommands-QS66YNZV.js} +32 -30
- package/{docReadCommands-7H6BDOUR.js → docReadCommands-3SAI46YC.js} +31 -29
- package/{docStore-ARTZTJRA.js → docStore-PM5PYKPZ.js} +8 -8
- package/{docUpdateCommands-JDW4BRBH.js → docUpdateCommands-OGYG5BRC.js} +31 -29
- package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
- package/{handleSendMessageAction-SPGAO47U.js → handleSendMessageAction-EQ3U6K5N.js} +43 -39
- package/index.js +8 -8
- package/{localRuntimeAdapter-CHLHJSA3.js → localRuntimeAdapter-MO64KEOS.js} +69 -68
- package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
- package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
- package/{machineCommands-GVFN64CM.js → machineCommands-7MBJJY4K.js} +79 -78
- package/{machineWsRunDispatch-3WXQ57DN.js → machineWsRunDispatch-T4LFRJL3.js} +69 -70
- package/{memberThunks-VPTET5M2.js → memberThunks-AZINUM4S.js} +10 -10
- package/package.json +6 -2
- package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
- package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-PKUOHQJT.js} +5 -5
- package/{providerRegistry-7IS43D3X.js → providerRegistry-HNQLIFN2.js} +5 -5
- package/{read-VMMIHEAK.js → read-7JPIWRBQ.js} +5 -5
- package/{readDocTool-4XSLKYSQ.js → readDocTool-AAQTB2Y3.js} +1 -1
- package/{readlineWorkspace-2WGUU7KH.js → readlineWorkspace-WRV322AB.js} +374 -199
- package/{removeDialogAgentAction-YIV37ENV.js → removeDialogAgentAction-RMVRILLK.js} +9 -9
- package/{runAgentClientLoop-WS2HFGIR.js → runAgentClientLoop-EXIQDX7G.js} +58 -53
- package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
- package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
- package/{setDialogExtraReferencesAction-FWVD656I.js → setDialogExtraReferencesAction-L3V7JTMG.js} +8 -8
- package/{setPrimaryDialogAgentAction-HIPQTT6N.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +9 -9
- package/settingThunks-N6XFWPOU.js +923 -0
- package/{spaceCommands-JQN7D4FE.js → spaceCommands-WQMUCGV7.js} +28 -26
- package/{streamAgentChatTurn-OSGLMHT6.js → streamAgentChatTurn-DI2334G3.js} +153 -94
- package/{switchDialogAgentAction-SLTPB635.js → switchDialogAgentAction-ZJ5CGU7J.js} +7 -7
- package/{tableCommands-U3QDY4L6.js → tableCommands-IVC5S7Y3.js} +11 -11
- package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
- package/{tools-XF5A6N2B.js → tools-23VQGJOX.js} +42 -43
- package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-FESHBDTT.js} +7 -7
- package/{updateCommands-NQXAGFM7.js → updateCommands-FJHGWD3Q.js} +5 -3
- package/{updateDialogTitleAction-IN5TBR23.js → updateDialogTitleAction-AGAYHWS7.js} +21 -21
- package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
- package/chunk-IA7TRNNR.js +0 -11
- package/chunk-ON3WLDG2.js +0 -7012
- package/chunk-UKZX3NHN.js +0 -48
- package/chunk-W4S6OTSC.js +0 -35
- package/clipboardy-GCO3GT3I.js +0 -11793
- package/settingThunks-SB37UY4C.js +0 -1371
- package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
- package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
- package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
- package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
- package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZAV4YVEA.js";
|
|
13
13
|
import {
|
|
14
14
|
getReadableCliDb
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-62TBKWTV.js";
|
|
16
16
|
import {
|
|
17
17
|
createCliLocalRuntimeAdapter,
|
|
18
18
|
detectCurrentMachineId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveBoundMachineId,
|
|
28
28
|
resolveFileWriteGateEnabled,
|
|
29
29
|
resolveLocalUserId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UY73HNIN.js";
|
|
31
31
|
import {
|
|
32
32
|
clearCredentialAvailability,
|
|
33
33
|
readCredentialEntry,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
t,
|
|
40
40
|
toolLabel,
|
|
41
41
|
toolLabelVariants
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2AB2HA4M.js";
|
|
43
43
|
import {
|
|
44
44
|
_appendEntityBatch,
|
|
45
45
|
_appendEvidenceBatch,
|
|
@@ -54,10 +54,13 @@ import {
|
|
|
54
54
|
loadMemoryVNextCatalog,
|
|
55
55
|
putMemoryEvidenceVNext
|
|
56
56
|
} from "./chunk-TY3TIUJK.js";
|
|
57
|
+
import {
|
|
58
|
+
parsePositiveFiniteNumberOrFallback
|
|
59
|
+
} from "./chunk-Y5GCAMGP.js";
|
|
57
60
|
import {
|
|
58
61
|
readDbRecord,
|
|
59
62
|
resolveAgentRecordFromHybridStore
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-KABQ74UQ.js";
|
|
61
64
|
import {
|
|
62
65
|
isLocalCliAgentKey
|
|
63
66
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -72,49 +75,46 @@ import {
|
|
|
72
75
|
} from "./chunk-BMQ2MJUK.js";
|
|
73
76
|
import {
|
|
74
77
|
resolveCliLocalRuntimeKeyCapability
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-2ZYCNT2O.js";
|
|
76
79
|
import {
|
|
77
80
|
isTransientFetchError
|
|
78
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-KFHREHUQ.js";
|
|
79
82
|
import {
|
|
80
83
|
parseUiCard,
|
|
81
84
|
uiCardFallback
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-FCUKCVKN.js";
|
|
83
86
|
import {
|
|
84
87
|
isGatewayHttpStatus
|
|
85
88
|
} from "./chunk-NF64D32W.js";
|
|
86
|
-
import {
|
|
87
|
-
parsePositiveFiniteNumberOrFallback
|
|
88
|
-
} from "./chunk-XPWGOTBQ.js";
|
|
89
89
|
import {
|
|
90
90
|
buildMemorySubjectsForAgent,
|
|
91
91
|
chooseMemoryOwners,
|
|
92
92
|
loadMemoryCandidatesFromDb,
|
|
93
93
|
resolveAgentMemoryPolicy
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-JDKSYQQN.js";
|
|
95
95
|
import {
|
|
96
96
|
API_REPORTED_COST_MULTIPLIER,
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
estimateMessagesTokens,
|
|
98
|
+
parseUiAskChoiceContent,
|
|
99
|
+
resolveAgentContextWindow,
|
|
100
|
+
resolveOccupancy,
|
|
101
|
+
resolveOccupancyWindow
|
|
102
|
+
} from "./chunk-F5WASHQA.js";
|
|
99
103
|
import {
|
|
100
|
-
|
|
101
|
-
} from "./chunk-
|
|
104
|
+
buildSkillDiscoveryContextLayer
|
|
105
|
+
} from "./chunk-AU7AXHUL.js";
|
|
102
106
|
import {
|
|
103
107
|
parseExternalSkillMarkdown,
|
|
104
108
|
parseSkillDocProtocol
|
|
105
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-AETZ7AD6.js";
|
|
106
110
|
import {
|
|
107
111
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
108
112
|
LOCAL_TURN_ABORTED_CODE,
|
|
109
113
|
readActionGate
|
|
110
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-K25WQPP3.js";
|
|
111
115
|
import {
|
|
112
|
-
devinChannelContextWindow,
|
|
113
116
|
resolveAgentRuntimeConfigFromRecord
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import {
|
|
116
|
-
isDevinOAuthAgent
|
|
117
|
-
} from "./chunk-5ZUL4CUO.js";
|
|
117
|
+
} from "./chunk-ULQAD7ZY.js";
|
|
118
118
|
import {
|
|
119
119
|
createThinkParserState,
|
|
120
120
|
flushThinkParser,
|
|
@@ -136,11 +136,9 @@ import {
|
|
|
136
136
|
resolveCredentialKeyWithFallback
|
|
137
137
|
} from "./chunk-3MZAGMYY.js";
|
|
138
138
|
import {
|
|
139
|
+
isOAuthApiKeyRef,
|
|
139
140
|
normalizeUsage
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import {
|
|
142
|
-
findModelContextWindow
|
|
143
|
-
} from "./chunk-2MTE2PEH.js";
|
|
141
|
+
} from "./chunk-F3SOW2EU.js";
|
|
144
142
|
import {
|
|
145
143
|
clipCompactText
|
|
146
144
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -151,6 +149,13 @@ import {
|
|
|
151
149
|
normalizeRuntimeToolPolicyOverride,
|
|
152
150
|
resolveEffectiveRuntimeToolPolicy
|
|
153
151
|
} from "./chunk-LIQJTQRN.js";
|
|
152
|
+
import {
|
|
153
|
+
buildAgentsMdLayer,
|
|
154
|
+
buildMemoryOverlayLayer,
|
|
155
|
+
buildMemoryUseGuidanceLayer,
|
|
156
|
+
partitionScopedBlocks,
|
|
157
|
+
renderTurnContextBlocksWithScope
|
|
158
|
+
} from "./chunk-VEA7H5FG.js";
|
|
154
159
|
import {
|
|
155
160
|
BUILTIN_NOLO_AGENT_KEY,
|
|
156
161
|
BUILTIN_NOLO_AGENT_NAME,
|
|
@@ -164,9 +169,6 @@ import {
|
|
|
164
169
|
createMemoryKey,
|
|
165
170
|
ulid
|
|
166
171
|
} from "./chunk-5EMSBTQ6.js";
|
|
167
|
-
import {
|
|
168
|
-
isAntigravityOAuthAgent
|
|
169
|
-
} from "./chunk-JGRPBIZZ.js";
|
|
170
172
|
import {
|
|
171
173
|
createRunActivityTracker,
|
|
172
174
|
createShellApprovalChild,
|
|
@@ -179,7 +181,7 @@ import {
|
|
|
179
181
|
serverOriginForDialog,
|
|
180
182
|
settleRunTerminalAuthoritatively,
|
|
181
183
|
spawnLocalBackgroundRun
|
|
182
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-SNAWGDXT.js";
|
|
183
185
|
import {
|
|
184
186
|
formatAgentListCard,
|
|
185
187
|
formatFinishedRunCard,
|
|
@@ -190,29 +192,14 @@ import {
|
|
|
190
192
|
formatStopRunCard,
|
|
191
193
|
isAgentRunTerminalStatus
|
|
192
194
|
} from "./chunk-PJNFNEJE.js";
|
|
193
|
-
import {
|
|
194
|
-
estimateTokenCount
|
|
195
|
-
} from "./chunk-PSCNXBYA.js";
|
|
196
|
-
import {
|
|
197
|
-
resolveClientVersion
|
|
198
|
-
} from "./chunk-SUKSWFLP.js";
|
|
199
|
-
import {
|
|
200
|
-
findModelConfig
|
|
201
|
-
} from "./chunk-TRW43TSC.js";
|
|
202
|
-
import {
|
|
203
|
-
asTrimmedString
|
|
204
|
-
} from "./chunk-3EUW3WEO.js";
|
|
205
195
|
import {
|
|
206
196
|
isCliAuthorityBrokerProtocolError,
|
|
207
197
|
isCliAuthorityBrokerTimeoutError,
|
|
208
198
|
isCliAuthorityBrokerUnavailableError
|
|
209
199
|
} from "./chunk-EXAJ6DCR.js";
|
|
210
|
-
import {
|
|
211
|
-
toErrorMessage
|
|
212
|
-
} from "./chunk-HNMXYYJR.js";
|
|
213
200
|
import {
|
|
214
201
|
getDefaultCliLocalRuntimeDb
|
|
215
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-FDLDMJTM.js";
|
|
216
203
|
import {
|
|
217
204
|
getLogger,
|
|
218
205
|
normalizeError
|
|
@@ -220,13 +207,28 @@ import {
|
|
|
220
207
|
import {
|
|
221
208
|
resolveAuthToken
|
|
222
209
|
} from "./chunk-A7GB5UGH.js";
|
|
223
|
-
import {
|
|
224
|
-
asOptionalTrimmedString
|
|
225
|
-
} from "./chunk-G3SUCT4W.js";
|
|
226
210
|
import {
|
|
227
211
|
readPipeText,
|
|
228
212
|
spawnProcess
|
|
229
213
|
} from "./chunk-Y6ROFCZO.js";
|
|
214
|
+
import {
|
|
215
|
+
isAntigravityOAuthAgent
|
|
216
|
+
} from "./chunk-SQX235S2.js";
|
|
217
|
+
import {
|
|
218
|
+
resolveClientVersion
|
|
219
|
+
} from "./chunk-PIG2IUVZ.js";
|
|
220
|
+
import {
|
|
221
|
+
findModelConfig
|
|
222
|
+
} from "./chunk-6EQD4AQL.js";
|
|
223
|
+
import {
|
|
224
|
+
asTrimmedString
|
|
225
|
+
} from "./chunk-3EUW3WEO.js";
|
|
226
|
+
import {
|
|
227
|
+
toErrorMessage
|
|
228
|
+
} from "./chunk-HNMXYYJR.js";
|
|
229
|
+
import {
|
|
230
|
+
asOptionalTrimmedString
|
|
231
|
+
} from "./chunk-G3SUCT4W.js";
|
|
230
232
|
import {
|
|
231
233
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
232
234
|
NOLO_CLIENT_VERSION_HEADER,
|
|
@@ -235,16 +237,6 @@ import {
|
|
|
235
237
|
import {
|
|
236
238
|
asTrimmedLowercaseString
|
|
237
239
|
} from "./chunk-QSJ3HFEF.js";
|
|
238
|
-
import {
|
|
239
|
-
buildSkillDiscoveryContextLayer
|
|
240
|
-
} from "./chunk-AU7AXHUL.js";
|
|
241
|
-
import {
|
|
242
|
-
buildAgentsMdLayer,
|
|
243
|
-
buildMemoryOverlayLayer,
|
|
244
|
-
buildMemoryUseGuidanceLayer,
|
|
245
|
-
partitionScopedBlocks,
|
|
246
|
-
renderTurnContextBlocksWithScope
|
|
247
|
-
} from "./chunk-VEA7H5FG.js";
|
|
248
240
|
|
|
249
241
|
// packages/agent-runtime/modelLayerOverride.ts
|
|
250
242
|
var MODEL_LAYER_KEYS = [
|
|
@@ -434,40 +426,6 @@ ${cardText}` : cardText;
|
|
|
434
426
|
// packages/chat/messages/attachmentWriteRollout.ts
|
|
435
427
|
var ENABLE_REMOTE_ATTACHMENT_PART_WRITES = false;
|
|
436
428
|
|
|
437
|
-
// packages/ai/context/contextOccupancy.ts
|
|
438
|
-
function estimateMessagesTokens(messages) {
|
|
439
|
-
return messages.reduce((total, message) => {
|
|
440
|
-
const content = typeof message.content === "string" ? message.content : message.content == null ? "" : JSON.stringify(message.content);
|
|
441
|
-
return total + estimateTokenCount(content) + 4;
|
|
442
|
-
}, 0);
|
|
443
|
-
}
|
|
444
|
-
function historyTokensBeforeLatestAssistant(messages) {
|
|
445
|
-
const total = estimateMessagesTokens(messages);
|
|
446
|
-
const latest = messages[messages.length - 1];
|
|
447
|
-
if (latest?.role !== "assistant") return total;
|
|
448
|
-
return Math.max(0, total - estimateMessagesTokens([latest]));
|
|
449
|
-
}
|
|
450
|
-
function resolveOccupancy(input) {
|
|
451
|
-
if (input.authoritativeInput !== void 0 && input.authoritativeInput > 0) {
|
|
452
|
-
const generated = Math.max(0, input.generatedSinceAuthority ?? 0);
|
|
453
|
-
return {
|
|
454
|
-
tokens: input.authoritativeInput + generated,
|
|
455
|
-
estimated: generated > 0
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
tokens: Math.max(0, input.baselineEstimate ?? 0),
|
|
460
|
-
estimated: true
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
function resolveOccupancyWindow(ref) {
|
|
464
|
-
if (!ref.model) return void 0;
|
|
465
|
-
if (isDevinOAuthAgent(ref)) {
|
|
466
|
-
return devinChannelContextWindow(ref.model) ?? findModelContextWindow(ref.model, ref.provider);
|
|
467
|
-
}
|
|
468
|
-
return findModelContextWindow(ref.model, ref.provider);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
429
|
// packages/cli/client/tokenUsage.ts
|
|
472
430
|
var PLATFORM_CREDIT_UNIT = "credits";
|
|
473
431
|
var isUsableModelId = (model) => {
|
|
@@ -491,34 +449,10 @@ function resolveAgentModelIdentity(opts) {
|
|
|
491
449
|
...model ? { model } : {}
|
|
492
450
|
};
|
|
493
451
|
}
|
|
494
|
-
function
|
|
452
|
+
function resolveAgentContextWindow2(opts) {
|
|
495
453
|
const model = resolveEffectiveModel(opts);
|
|
496
454
|
if (model) return resolveContextWindow(model);
|
|
497
|
-
|
|
498
|
-
if (byName !== void 0) return byName;
|
|
499
|
-
const candidates = [
|
|
500
|
-
...modelSlugCandidates(opts.agentKey, 2),
|
|
501
|
-
...modelSlugCandidates(opts.agentName, 1)
|
|
502
|
-
];
|
|
503
|
-
for (const candidate of candidates) {
|
|
504
|
-
const window = resolveOccupancyWindow({ model: candidate });
|
|
505
|
-
if (window !== void 0) return window;
|
|
506
|
-
}
|
|
507
|
-
return void 0;
|
|
508
|
-
}
|
|
509
|
-
var AGENT_KEY_PREFIX = /^agent-[a-z0-9]+-/i;
|
|
510
|
-
function modelSlugCandidates(source, maxDrop) {
|
|
511
|
-
const raw = source?.trim();
|
|
512
|
-
if (!raw) return [];
|
|
513
|
-
const base = raw.replace(/\s+/g, "-").toLowerCase();
|
|
514
|
-
const seed = base.replace(AGENT_KEY_PREFIX, "");
|
|
515
|
-
const out = [seed];
|
|
516
|
-
if (seed !== base) out.push(base);
|
|
517
|
-
const segments = seed.split("-");
|
|
518
|
-
for (let drop = 1; drop <= maxDrop && drop < segments.length; drop++) {
|
|
519
|
-
out.push(segments.slice(drop).join("-"));
|
|
520
|
-
}
|
|
521
|
-
return [...new Set(out.filter(Boolean))];
|
|
455
|
+
return resolveAgentContextWindow(opts);
|
|
522
456
|
}
|
|
523
457
|
var PROVIDER_LOOKUP_ORDER = [
|
|
524
458
|
"openrouter",
|
|
@@ -11204,6 +11138,51 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
11204
11138
|
return null;
|
|
11205
11139
|
}
|
|
11206
11140
|
|
|
11141
|
+
// packages/cli/idleHeapRelease.ts
|
|
11142
|
+
var IDLE_HEAP_RELEASE_DELAY_MS = 2e3;
|
|
11143
|
+
function releaseHeapPages(options = {}) {
|
|
11144
|
+
const env = options.env ?? process.env;
|
|
11145
|
+
if (env.NOLO_TUI_IDLE_HEAP_RELEASE === "0") return;
|
|
11146
|
+
const bun = "bun" in options ? options.bun : globalThis.Bun;
|
|
11147
|
+
if (typeof bun?.gc !== "function" || typeof bun?.shrink !== "function") return;
|
|
11148
|
+
try {
|
|
11149
|
+
bun.gc(true);
|
|
11150
|
+
bun.shrink();
|
|
11151
|
+
} catch {
|
|
11152
|
+
}
|
|
11153
|
+
}
|
|
11154
|
+
function createIdleHeapReleaser(options = {}) {
|
|
11155
|
+
const env = options.env ?? process.env;
|
|
11156
|
+
const bun = "bun" in options ? options.bun : globalThis.Bun;
|
|
11157
|
+
const disabled = env.NOLO_TUI_IDLE_HEAP_RELEASE === "0" || typeof bun?.gc !== "function" || typeof bun?.shrink !== "function";
|
|
11158
|
+
if (disabled) return { schedule() {
|
|
11159
|
+
}, cancel() {
|
|
11160
|
+
} };
|
|
11161
|
+
const delayMs = options.delayMs ?? IDLE_HEAP_RELEASE_DELAY_MS;
|
|
11162
|
+
const setTimer = options.setTimer ?? ((fn, ms) => {
|
|
11163
|
+
const handle = setTimeout(fn, ms);
|
|
11164
|
+
handle.unref?.();
|
|
11165
|
+
return handle;
|
|
11166
|
+
});
|
|
11167
|
+
const clearTimer = options.clearTimer ?? ((handle) => clearTimeout(handle));
|
|
11168
|
+
let pending = null;
|
|
11169
|
+
const release = () => {
|
|
11170
|
+
pending = null;
|
|
11171
|
+
releaseHeapPages({ env, bun });
|
|
11172
|
+
};
|
|
11173
|
+
return {
|
|
11174
|
+
schedule() {
|
|
11175
|
+
if (pending !== null) clearTimer(pending);
|
|
11176
|
+
pending = setTimer(release, delayMs);
|
|
11177
|
+
},
|
|
11178
|
+
cancel() {
|
|
11179
|
+
if (pending === null) return;
|
|
11180
|
+
clearTimer(pending);
|
|
11181
|
+
pending = null;
|
|
11182
|
+
}
|
|
11183
|
+
};
|
|
11184
|
+
}
|
|
11185
|
+
|
|
11207
11186
|
// packages/cli/client/agentRun.ts
|
|
11208
11187
|
import { ulid as ulid2 } from "ulid";
|
|
11209
11188
|
|
|
@@ -11245,7 +11224,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11245
11224
|
|
|
11246
11225
|
// packages/cli/client/agentRun.ts
|
|
11247
11226
|
async function loadRunLocalAgentTurn() {
|
|
11248
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11227
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XCKO5FVP.js");
|
|
11249
11228
|
return runLocalAgentTurn;
|
|
11250
11229
|
}
|
|
11251
11230
|
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();
|
|
@@ -11342,7 +11321,8 @@ function buildDefaultLocalRuntimeAdapter(options) {
|
|
|
11342
11321
|
// runtimeKey 接线:不传下去则本地 run 的 runtimeKey 在 agentRun 层就断了
|
|
11343
11322
|
// ——adapter 收不到 → docker workload 永不创建,非 docker 云后端也不会
|
|
11344
11323
|
// fail-closed(死代码)。
|
|
11345
|
-
...options.runtimeKey ? { runtimeKey: options.runtimeKey } : {}
|
|
11324
|
+
...options.runtimeKey ? { runtimeKey: options.runtimeKey } : {},
|
|
11325
|
+
...options.dockerWorkspaceMode ? { dockerWorkspaceMode: options.dockerWorkspaceMode } : {}
|
|
11346
11326
|
});
|
|
11347
11327
|
}
|
|
11348
11328
|
function resolveLocalRuntimeAdapter(options) {
|
|
@@ -11350,7 +11330,8 @@ function resolveLocalRuntimeAdapter(options) {
|
|
|
11350
11330
|
cwd: options.localRuntimeCwd,
|
|
11351
11331
|
// 与 buildDefaultLocalRuntimeAdapter 同口径:注入式 factory 也必须拿到
|
|
11352
11332
|
// runtimeKey,否则注入了 adapter 的本地 run 会静默丢掉 docker 语义。
|
|
11353
|
-
...options.runtimeKey ? { runtimeKey: options.runtimeKey } : {}
|
|
11333
|
+
...options.runtimeKey ? { runtimeKey: options.runtimeKey } : {},
|
|
11334
|
+
...options.dockerWorkspaceMode ? { dockerWorkspaceMode: options.dockerWorkspaceMode } : {}
|
|
11354
11335
|
}) || buildDefaultLocalRuntimeAdapter(options);
|
|
11355
11336
|
}
|
|
11356
11337
|
function wrapAdapterEphemeral(adapter) {
|
|
@@ -12247,6 +12228,24 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
12247
12228
|
}
|
|
12248
12229
|
}
|
|
12249
12230
|
async function runLocalAgentTurnForCliWithAdapter(options, settings, resolvedBaseAdapter) {
|
|
12231
|
+
try {
|
|
12232
|
+
return await executeLocalAgentTurnForCliWithAdapter(
|
|
12233
|
+
options,
|
|
12234
|
+
settings,
|
|
12235
|
+
resolvedBaseAdapter
|
|
12236
|
+
);
|
|
12237
|
+
} finally {
|
|
12238
|
+
try {
|
|
12239
|
+
if (typeof options.releaseHeapPages === "function") {
|
|
12240
|
+
options.releaseHeapPages();
|
|
12241
|
+
} else {
|
|
12242
|
+
releaseHeapPages({ env: options.env });
|
|
12243
|
+
}
|
|
12244
|
+
} catch {
|
|
12245
|
+
}
|
|
12246
|
+
}
|
|
12247
|
+
}
|
|
12248
|
+
async function executeLocalAgentTurnForCliWithAdapter(options, settings, resolvedBaseAdapter) {
|
|
12250
12249
|
const baseAdapter = (() => {
|
|
12251
12250
|
let adapter2 = resolvedBaseAdapter && options.modelOverride ? wrapLoadAgentConfigWithModelOverride(
|
|
12252
12251
|
resolvedBaseAdapter,
|
|
@@ -12341,6 +12340,9 @@ async function runLocalAgentTurnForCliWithAdapter(options, settings, resolvedBas
|
|
|
12341
12340
|
parentDialogId: options.parentDialogId,
|
|
12342
12341
|
runtimeContext: runtimeContextWithOwnership,
|
|
12343
12342
|
runKind: options.env.NOLO_AGENT_RUN_CHILD === "1" ? "subtask" : "interactive",
|
|
12343
|
+
// 展示能力由宿主声明(TUI=narrow),非交互 CLI/后台留空 → unknown;
|
|
12344
|
+
// 排版段只在能力已知时由 localLoop 注入,server 线不读该字段。
|
|
12345
|
+
...options.responseViewport ? { responseViewport: options.responseViewport } : {},
|
|
12344
12346
|
background: options.background,
|
|
12345
12347
|
noStream: options.noStream,
|
|
12346
12348
|
...options.contextBlockScopes?.length ? { contextBlockScopes: options.contextBlockScopes } : options.extraContextBlocks?.length ? { contextBlocks: options.extraContextBlocks } : {},
|
|
@@ -15770,6 +15772,12 @@ async function runAgentRunCommand(args, deps) {
|
|
|
15770
15772
|
} } : {},
|
|
15771
15773
|
agentName: targetAgentKey,
|
|
15772
15774
|
agentKey: targetAgentKey,
|
|
15775
|
+
// 当前执行链未提供可靠的最终展示能力,按约定使用 unknown(只注入行为段,不猜
|
|
15776
|
+
// 宽/窄屏;`stdout.isTTY` 只说明是不是终端,说明不了宽度)。这不表示宿主永远
|
|
15777
|
+
// 无法获得尺寸:将来接入时应传展示能力,不应由调用方拼接准则文本。
|
|
15778
|
+
// 放在 buildRunOptions 这个唯一构造点上,首轮 / quota fallback / 队列 drain
|
|
15779
|
+
// 三处 runner(...) 调用自动一致;远端分支走 server 线,不读该字段。
|
|
15780
|
+
responseViewport: "unknown",
|
|
15773
15781
|
serverUrl: resolveServerUrl(env),
|
|
15774
15782
|
message: formatTurnMessage(turnMessage),
|
|
15775
15783
|
imageUrls: parsed.imageUrls.map(normalizeCliImageInput),
|
|
@@ -15789,6 +15797,7 @@ async function runAgentRunCommand(args, deps) {
|
|
|
15789
15797
|
// runtimeKey 与 machine-shell 的组合已在 parseAgentRunArgs 入口显式拒绝,
|
|
15790
15798
|
// 这里直接透传即可(不再静默丢弃参数)。
|
|
15791
15799
|
...parsed.runtimeKey ? { runtimeKey: parsed.runtimeKey } : {},
|
|
15800
|
+
...parsed.dockerWorkspaceMode ? { dockerWorkspaceMode: parsed.dockerWorkspaceMode } : {},
|
|
15792
15801
|
...parsed.continueDialogId ? { continueDialogId: parsed.continueDialogId } : {},
|
|
15793
15802
|
...parsed.strictContinueHistory ? { strictContinueHistory: true } : {},
|
|
15794
15803
|
...parsed.spaceId ? { spaceId: parsed.spaceId } : {},
|
|
@@ -16059,10 +16068,8 @@ export {
|
|
|
16059
16068
|
redactSecrets,
|
|
16060
16069
|
safeAskText,
|
|
16061
16070
|
TUI_TREE_MARKER,
|
|
16062
|
-
estimateMessagesTokens,
|
|
16063
|
-
historyTokensBeforeLatestAssistant,
|
|
16064
16071
|
resolveAgentModelIdentity,
|
|
16065
|
-
resolveAgentContextWindow,
|
|
16072
|
+
resolveAgentContextWindow2 as resolveAgentContextWindow,
|
|
16066
16073
|
platformCreditsFromUsage,
|
|
16067
16074
|
formatCreditsChip,
|
|
16068
16075
|
formatTokenCount,
|
|
@@ -16070,6 +16077,7 @@ export {
|
|
|
16070
16077
|
computeBaselineContextTokens,
|
|
16071
16078
|
resolveContextUsage,
|
|
16072
16079
|
renderTokenStatus,
|
|
16080
|
+
createIdleHeapReleaser,
|
|
16073
16081
|
COLLAPSED_PASTE_PLACEHOLDER_RE,
|
|
16074
16082
|
shouldCollapsePaste,
|
|
16075
16083
|
createCollapsedPasteStore,
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
patch,
|
|
6
6
|
read
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CDLP56BS.js";
|
|
8
8
|
import {
|
|
9
9
|
DEVICE_LOCAL_OWNER_ID,
|
|
10
10
|
isDeviceLocalSpaceBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-43OFVLWJ.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUserId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PXYBUFDB.js";
|
|
15
15
|
|
|
16
16
|
// packages/create/space/utils/permissions.ts
|
|
17
17
|
var checkSpaceMembership = (spaceData, userId) => {
|