nolo-cli 0.250.0-alpha.1 → 0.251.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/{_executeModel-F4MT6OPO.js → _executeModel-55PHWQWB.js} +27 -27
- package/{addContentAction-MLI6GOBV.js → addContentAction-LBVAQUF7.js} +2 -2
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-6WAUSUSZ.js} +1 -1
- package/{agentDeleteCommand-DBCRHB4S.js → agentDeleteCommand-KEO3KDK3.js} +53 -49
- package/{agentEmailCommands-T4PAJ4KG.js → agentEmailCommands-RWJQQRNT.js} +54 -50
- package/{agentListCommands-5ULWKQ3E.js → agentListCommands-L3TLPLNH.js} +17 -17
- package/{agentMachineCommands-65QUOCEY.js → agentMachineCommands-EZWWXWDH.js} +16 -16
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
- package/{agentRecordCommands-EKANS3A5.js → agentRecordCommands-7W2CGHJJ.js} +53 -49
- package/{agentRunCommand-336PXBRJ.js → agentRunCommand-POL6B6BO.js} +54 -50
- package/{agentRunControl-QMWTWV7C.js → agentRunControl-FKSXBUAF.js} +1 -1
- package/{agentRuntimeLocal-KKXJOBD3.js → agentRuntimeLocal-WSHWNIMF.js} +14 -14
- package/{agentSlice-FWYXP332.js → agentSlice-3G2YLTA4.js} +3 -3
- package/{appDeleteCommands-ERJK367V.js → appDeleteCommands-DZZQCVYH.js} +16 -16
- package/{appDeployCommands-LUV6QKQJ.js → appDeployCommands-NJJBVNH5.js} +16 -16
- package/{appDeployStatusCommands-WW7IYQD4.js → appDeployStatusCommands-GBOAFEYG.js} +16 -16
- package/{appGetCommands-G7XYYSFO.js → appGetCommands-GOOKYMKO.js} +16 -16
- package/{appListCommands-4RXCIDNI.js → appListCommands-OBCGUG3S.js} +16 -16
- package/{authCommand-3C3RN4OU.js → authCommand-77CRN332.js} +9 -9
- package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-6RLEBBJJ.js} +1 -1
- package/chunk-3A5NNQCN.js +64 -0
- package/{chunk-HEIIOJGN.js → chunk-3KWJPTVP.js} +2 -2
- package/{chunk-7IQA2VJF.js → chunk-3ZWJVKFB.js} +148 -38
- package/{chunk-OLGFIQN2.js → chunk-43VT5PLM.js} +1 -1
- package/{chunk-RHBD22LV.js → chunk-5IKKSJYX.js} +4 -2
- package/{chunk-U7OMQLRE.js → chunk-6UNJ6JGR.js} +9 -9
- package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
- package/{chunk-YQO5UKHP.js → chunk-A55E2OCP.js} +16 -16
- package/{chunk-XHG7QROB.js → chunk-CUYFRVJF.js} +3 -3
- package/{chunk-I3J7HO3U.js → chunk-D35TOEMM.js} +2 -2
- package/{chunk-OHUYN3YU.js → chunk-D3E5MYXO.js} +1 -1
- package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-ZKMS73DK.js → chunk-FAFDIQJG.js} +3 -3
- package/{chunk-UF6J7NXV.js → chunk-GMWZRXRM.js} +1 -1
- package/{chunk-ARFCL53U.js → chunk-HD5EKSLF.js} +3 -3
- package/{chunk-4IQN6FWY.js → chunk-HQLCYPL4.js} +1 -1
- package/chunk-HZD5HXUO.js +405 -0
- package/{chunk-FFFKAOJN.js → chunk-IXAGRTAR.js} +1 -1
- package/{chunk-UPOW5HTG.js → chunk-IZWGO2ZS.js} +1 -1
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-ZTWDSOXD.js → chunk-JUYI2D7J.js} +1 -1
- package/{chunk-OKKA4BCM.js → chunk-K5CIMK3R.js} +2 -2
- package/{chunk-AXZ5DDLB.js → chunk-KGOBJAWC.js} +51 -49
- package/{chunk-JFRJEPFI.js → chunk-KRAPKTAS.js} +1 -1
- package/{chunk-RDBDHGU7.js → chunk-KZVRPCOR.js} +2 -2
- package/{chunk-TMRJGSK2.js → chunk-L5HV76QT.js} +1 -1
- package/{chunk-3IVFGQIM.js → chunk-LOXR4TQN.js} +1 -1
- package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
- package/{chunk-73PZD7JZ.js → chunk-MTS5DCL2.js} +2 -2
- package/{chunk-SMEX763N.js → chunk-N3SEV3CG.js} +34 -26
- package/{chunk-WEZ27JA7.js → chunk-NMXGIRSG.js} +1 -1
- package/{chunk-I3OW5RAX.js → chunk-NTNX77FI.js} +6 -6
- package/{chunk-32WTED6G.js → chunk-OARYOLF3.js} +90 -79
- package/{chunk-BAH3BAUZ.js → chunk-OQCAHPDQ.js} +5 -5
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-W4G25PVP.js → chunk-PKMDYRAM.js} +31 -22
- package/{chunk-VV5IS3ES.js → chunk-PLS2MJVW.js} +5 -5
- package/{chunk-ATRU65OK.js → chunk-Q5KZ6F55.js} +11 -11
- package/{chunk-AKWA6PCE.js → chunk-QJ5YDTEF.js} +7 -7
- package/{chunk-V4IYI3SB.js → chunk-QLGL43SI.js} +1 -1
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-E5RYFR7E.js → chunk-R7D5SRAZ.js} +2 -0
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-T4V6C3J3.js} +1 -1
- package/{chunk-X6LYQDN5.js → chunk-TGKAUEV3.js} +4 -4
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-BVEDT6DM.js → chunk-U2OWDHDE.js} +3 -3
- package/{chunk-YWNCRUBZ.js → chunk-UCMUXZJV.js} +5 -5
- package/{chunk-6QL3SUEK.js → chunk-W2N4OAKM.js} +2 -2
- package/{chunk-VHMPJGT4.js → chunk-X337N4D6.js} +3 -3
- package/{chunk-6TVYUQRM.js → chunk-XC5RPSXK.js} +1 -1
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-PGDM7AM2.js → chunk-ZKKJZBNO.js} +6 -6
- package/{chunk-SHDJLJWV.js → chunk-ZSRR6HCH.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-N6LTB7UY.js} +2 -2
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
- package/{cliLocalAgentRecordReader-R4CLUHYO.js → cliLocalAgentRecordReader-NFNGYOOW.js} +15 -15
- package/{commandRegistry-UIZRI4JV.js → commandRegistry-OM5DU4DS.js} +72 -72
- package/{contentThunks-ZQSZA4GH.js → contentThunks-7URM43ET.js} +10 -10
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-JEEV75B7.js} +1 -1
- package/{createAgentAutomationAction-RQE4F6PR.js → createAgentAutomationAction-GGEXIKMC.js} +10 -10
- package/{createDialogAction-JDSMQ34U.js → createDialogAction-IXXEMFRQ.js} +11 -11
- package/{createPageAction-VLF6XCYO.js → createPageAction-IXIVLIOO.js} +13 -13
- package/{db-CMUTP3W5.js → db-J5KE7XRI.js} +3 -2
- package/{dbSlice-656PMWR2.js → dbSlice-IE4ADINL.js} +1 -1
- package/{dialogCommands-PLM7ZFWH.js → dialogCommands-RPBHOZB6.js} +25 -21
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-ECKI5MMA.js} +3 -3
- package/{dialogSlice-63DD2ER2.js → dialogSlice-5FQB2TNN.js} +8 -8
- package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-TBIA2QAF.js} +2 -2
- package/{docCreateCommands-BST5DO7L.js → docCreateCommands-XJ2X57DW.js} +15 -15
- package/{docDeleteCommands-YE6G2SO4.js → docDeleteCommands-45WGFFEB.js} +15 -15
- package/{docReadCommands-M6T35U3G.js → docReadCommands-LRRVDS46.js} +15 -15
- package/{docStore-7QNJWRJ2.js → docStore-SUAVM24F.js} +2 -2
- package/{docUpdateCommands-6DFWGPVG.js → docUpdateCommands-QUYX6BVR.js} +15 -15
- package/{handleSendMessageAction-FCEFFAV4.js → handleSendMessageAction-FDIWBQUB.js} +65 -23
- package/{hostCredentialCreate-YEWCAMZN.js → hostCredentialCreate-CEXQHYT4.js} +53 -49
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-USDZXKIL.js} +1 -1
- package/{localRuntimeAdapter-Z22ZOZRY.js → localRuntimeAdapter-O3JBRK6S.js} +51 -47
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
- package/{machineCommands-PT5OJ36V.js → machineCommands-I3YA7TNC.js} +52 -48
- package/{machineWsRunDispatch-DQVNBSVE.js → machineWsRunDispatch-E5CIE2OJ.js} +52 -48
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-GO6AYT63.js → mcpLocalAuthorizeCommand-K5J2VMG6.js} +10 -6
- package/{memberThunks-JFYC4Z5L.js → memberThunks-T7EAZE6A.js} +3 -3
- package/package.json +2 -1
- package/{projectArchive-4XUC5SLF.js → projectArchive-A7E65AZO.js} +13 -13
- package/{readlineWorkspace-7U5QM3OM.js → readlineWorkspace-2O65NBFG.js} +89 -86
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-GRT72HLK.js} +3 -3
- package/{runAgentClientLoop-7D7UCAS2.js → runAgentClientLoop-NWCZIXCG.js} +25 -25
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-26HYHFTK.js} +9 -6
- package/{secretCommands-2FEMRUFM.js → secretCommands-XR72SHLK.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-CBG3X46B.js} +2 -2
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-EWTDZOAX.js} +3 -3
- package/{settingThunks-IHXUF276.js → settingThunks-X4PT66J2.js} +1 -1
- package/{spaceCommands-WCLD36WH.js → spaceCommands-EVSNTGRS.js} +14 -14
- package/{streamAgentChatTurn-DVTOINT3.js → streamAgentChatTurn-SYP3OEM5.js} +50 -50
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-YHPZ7K6E.js} +1 -1
- package/{tools-BOPINT5S.js → tools-2AO2SK4L.js} +20 -20
- package/{tuiRestart-5F2APN66.js → tuiRestart-HBQDF4AE.js} +2 -2
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-Q2PNR63K.js} +4 -4
- package/{updateCommands-FBYA5WVG.js → updateCommands-6SI7NWVC.js} +3 -3
- package/{updateDialogTitleAction-S76PUCLQ.js → updateDialogTitleAction-MWVMBIPZ.js} +10 -10
- package/{usageCommand-L4OFWXEU.js → usageCommand-D44AOTMH.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-IRIMKDI5.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-BJIJKKIS.js} +2 -2
- package/{chunk-MYYNZG2M.js → chunk-CJ2BP6V7.js} +3 -3
- package/{chunk-HZDK56EK.js → chunk-IFJ6OTI6.js} +0 -0
- package/{chunk-WMKA2DPK.js → chunk-LMMRWGGJ.js} +3 -3
- package/{chunk-EDT65EUE.js → chunk-WZPG63Q4.js} +3 -3
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-GAHJLSDO.js";
|
|
9
9
|
import {
|
|
10
10
|
getReadableCliDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SSZHE2RK.js";
|
|
12
12
|
import {
|
|
13
13
|
INSTABOX_RUN_CONFIG_ENV,
|
|
14
14
|
buildLocalRunEnv,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KGOBJAWC.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-XC5RPSXK.js";
|
|
47
47
|
import {
|
|
48
48
|
clearCredentialAvailability,
|
|
49
49
|
readEffectiveCredentialEntry
|
|
@@ -84,16 +84,16 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
resolveMachineId
|
|
86
86
|
} from "./chunk-S73EPYNC.js";
|
|
87
|
-
import {
|
|
88
|
-
resolveCliLocalRuntimeKeyCapability
|
|
89
|
-
} from "./chunk-7IQA2VJF.js";
|
|
90
87
|
import {
|
|
91
88
|
extractGoogleValidationLink
|
|
92
89
|
} from "./chunk-BMQ2MJUK.js";
|
|
90
|
+
import {
|
|
91
|
+
resolveCliLocalRuntimeKeyCapability
|
|
92
|
+
} from "./chunk-3ZWJVKFB.js";
|
|
93
93
|
import {
|
|
94
94
|
parseUiCard,
|
|
95
95
|
uiCardFallback
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-ZKKJZBNO.js";
|
|
97
97
|
import {
|
|
98
98
|
isGatewayHttpStatus
|
|
99
99
|
} from "./chunk-NF64D32W.js";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
loadOwnerItemsFromDb,
|
|
105
105
|
parseUiAskChoiceContent,
|
|
106
106
|
resolveAgentMemoryPolicy
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-X337N4D6.js";
|
|
108
108
|
import {
|
|
109
109
|
API_REPORTED_COST_MULTIPLIER,
|
|
110
110
|
estimateMessagesTokens,
|
|
@@ -113,7 +113,10 @@ import {
|
|
|
113
113
|
resolveAgentContextWindow,
|
|
114
114
|
resolveOccupancy,
|
|
115
115
|
resolveOccupancyWindow
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-A55E2OCP.js";
|
|
117
|
+
import {
|
|
118
|
+
getDefaultCliLocalRuntimeDb
|
|
119
|
+
} from "./chunk-7RYODZDD.js";
|
|
117
120
|
import {
|
|
118
121
|
parsePositiveFiniteNumberOrFallback
|
|
119
122
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -144,7 +147,7 @@ import {
|
|
|
144
147
|
settleRunTerminalAuthoritatively,
|
|
145
148
|
spawnLocalBackgroundRun,
|
|
146
149
|
transitionRunToTerminal
|
|
147
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-UCMUXZJV.js";
|
|
148
151
|
import {
|
|
149
152
|
formatAgentListCard,
|
|
150
153
|
formatFinishedRunCard,
|
|
@@ -163,10 +166,7 @@ import {
|
|
|
163
166
|
isCliAuthorityBrokerProtocolError,
|
|
164
167
|
isCliAuthorityBrokerTimeoutError,
|
|
165
168
|
isCliAuthorityBrokerUnavailableError
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import {
|
|
168
|
-
getDefaultCliLocalRuntimeDb
|
|
169
|
-
} from "./chunk-BFKJ2RS3.js";
|
|
169
|
+
} from "./chunk-SQL7YNED.js";
|
|
170
170
|
import {
|
|
171
171
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
172
172
|
LOCAL_TURN_ABORTED_CODE,
|
|
@@ -178,10 +178,13 @@ import {
|
|
|
178
178
|
readActionGate,
|
|
179
179
|
readAgentsMdLayerFromDisk,
|
|
180
180
|
registerDialogOwner
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-PKMDYRAM.js";
|
|
182
182
|
import {
|
|
183
183
|
resolveAgentRuntimeConfigFromRecord
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-LMMRWGGJ.js";
|
|
185
|
+
import {
|
|
186
|
+
resolveAgentImageInputSupport
|
|
187
|
+
} from "./chunk-SX6AWTNK.js";
|
|
185
188
|
import {
|
|
186
189
|
createThinkParserState,
|
|
187
190
|
flushThinkParser,
|
|
@@ -194,9 +197,6 @@ import {
|
|
|
194
197
|
resolveAvailabilityAction,
|
|
195
198
|
resolveCredentialKeyWithFallback
|
|
196
199
|
} from "./chunk-QJTZ76CP.js";
|
|
197
|
-
import {
|
|
198
|
-
resolveAgentImageInputSupport
|
|
199
|
-
} from "./chunk-SX6AWTNK.js";
|
|
200
200
|
import {
|
|
201
201
|
isContextOverflowText
|
|
202
202
|
} from "./chunk-TLE77UJ5.js";
|
|
@@ -255,7 +255,7 @@ import {
|
|
|
255
255
|
import {
|
|
256
256
|
isBuiltinNoloAgentRef,
|
|
257
257
|
resolveLocalUserId
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-IZWGO2ZS.js";
|
|
259
259
|
import {
|
|
260
260
|
isLocalCliAgentKey
|
|
261
261
|
} from "./chunk-BR3GT6MR.js";
|
|
@@ -269,10 +269,12 @@ import {
|
|
|
269
269
|
parsePublicAgentId
|
|
270
270
|
} from "./chunk-M2EJHDJP.js";
|
|
271
271
|
import {
|
|
272
|
-
exitCliFromWatchdog
|
|
272
|
+
exitCliFromWatchdog
|
|
273
|
+
} from "./chunk-XRGBJHZX.js";
|
|
274
|
+
import {
|
|
273
275
|
getLogger,
|
|
274
276
|
normalizeError
|
|
275
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-EYLGAEB4.js";
|
|
276
278
|
import {
|
|
277
279
|
RuntimeProtocolMismatchError,
|
|
278
280
|
RuntimeVersionMismatchError,
|
|
@@ -293,7 +295,7 @@ import {
|
|
|
293
295
|
toolIcon,
|
|
294
296
|
toolLabel,
|
|
295
297
|
toolLabelVariants
|
|
296
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-R7D5SRAZ.js";
|
|
297
299
|
import {
|
|
298
300
|
isAntigravityOAuthAgent
|
|
299
301
|
} from "./chunk-CTWCZKNS.js";
|
|
@@ -13064,7 +13066,7 @@ function isBalanceExhaustedError(error) {
|
|
|
13064
13066
|
|
|
13065
13067
|
// packages/cli/client/agentRun.ts
|
|
13066
13068
|
async function loadRunLocalAgentTurn() {
|
|
13067
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
13069
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-WSHWNIMF.js");
|
|
13068
13070
|
return runLocalAgentTurn;
|
|
13069
13071
|
}
|
|
13070
13072
|
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();
|
|
@@ -13843,6 +13845,10 @@ function describeLocalRunFailure(message, rawError) {
|
|
|
13843
13845
|
const details = parseContextLengthDetails(message);
|
|
13844
13846
|
const shownMessage = details.requested && details.max ? t("contextLengthExceeded", details.requested, details.max) : details.max ? t("contextLengthExceededLimitOnly", details.max) : t("contextLengthExceededGeneric");
|
|
13845
13847
|
return `[nolo] ${shownMessage}
|
|
13848
|
+
`;
|
|
13849
|
+
}
|
|
13850
|
+
if (/CLI authority broker upgrade requires exit/i.test(message)) {
|
|
13851
|
+
return `${RUN_UNAVAILABLE_PREFIX} (${stripDebugNoise(message)})
|
|
13846
13852
|
`;
|
|
13847
13853
|
}
|
|
13848
13854
|
if (isCliAuthorityBrokerTimeoutError(rawError) || /CLI authority broker .* timed out/i.test(message)) {
|
|
@@ -17412,7 +17418,8 @@ async function runAgentRunCommandImpl(args, deps) {
|
|
|
17412
17418
|
if (hasRegistry && (parsed.runtimeKey?.trim() === "local" || locatedExecution?.state === "known")) {
|
|
17413
17419
|
const implicitReadonlyHost = !parsed.runtimeKey && args.includes("--read-only") && locatedExecution?.state === "known" && locatedExecution.runtimeKey === "local" && locatedExecution.permissions.readOnly;
|
|
17414
17420
|
if (parsed.runtimeKey?.trim() !== "local" && !implicitReadonlyHost) throw new Error("[local-writer-resource] child binding runtime mismatch");
|
|
17415
|
-
await awaitLocalWriterChild(childRunId, parsed.cwd ?? process.cwd(), hostPolicy(), { env, homedir: deps.homedir, fs: deps.fs });
|
|
17421
|
+
const { blockedToolNames } = await awaitLocalWriterChild(childRunId, parsed.cwd ?? process.cwd(), hostPolicy(), { env, homedir: deps.homedir, fs: deps.fs });
|
|
17422
|
+
parsed.blockedToolNames = blockedToolNames;
|
|
17416
17423
|
}
|
|
17417
17424
|
if (hasRegistry && parsed.runtimeKey?.trim() !== "local" && locatedExecution?.state !== "known") reportRunProcessIdentity(childRunId, { env, homedir: deps.homedir, fs: deps.fs, now: deps.now });
|
|
17418
17425
|
const processExit = deps.processExit ?? ((code) => process.exit(code));
|
|
@@ -17746,7 +17753,8 @@ async function runAgentRunCommandImpl(args, deps) {
|
|
|
17746
17753
|
if (hostRuntimeLocal && !parsed.background) {
|
|
17747
17754
|
const policy = { ...hostPolicy(), ...skillAllowedToolOverride !== void 0 ? { allowedToolNames: skillAllowedToolOverride } : {} };
|
|
17748
17755
|
if (hasRegistry) {
|
|
17749
|
-
await awaitLocalWriterChild(childRunId, localRuntimeCwd, policy, { env, homedir: deps.homedir, fs: deps.fs });
|
|
17756
|
+
const { blockedToolNames } = await awaitLocalWriterChild(childRunId, localRuntimeCwd, policy, { env, homedir: deps.homedir, fs: deps.fs });
|
|
17757
|
+
parsed.blockedToolNames = blockedToolNames;
|
|
17750
17758
|
} else if (!policy.readOnly) {
|
|
17751
17759
|
childRunId = registerLocalForegroundWriter(localRuntimeCwd, policy, agentKey, { env, homedir: deps.homedir, fs: deps.fs, now: deps.now });
|
|
17752
17760
|
hasRegistry = true;
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
14
14
|
import {
|
|
15
15
|
loadLocalRunChildDialogIds
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZSRR6HCH.js";
|
|
17
17
|
import {
|
|
18
18
|
buildDialogAttachmentPlan,
|
|
19
19
|
extractFileContentIds,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
} from "./chunk-QQ56R7KS.js";
|
|
29
29
|
import {
|
|
30
30
|
getDefaultCliLocalRuntimeDb
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HZD5HXUO.js";
|
|
32
32
|
import {
|
|
33
33
|
isLevelLockError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TRRXYFTR.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveLocalDialogDbCandidates,
|
|
37
37
|
resolveNoloHome,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-BIDSIRTS.js";
|
|
69
69
|
import {
|
|
70
70
|
t
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-R7D5SRAZ.js";
|
|
72
72
|
import {
|
|
73
73
|
toErrorMessage
|
|
74
74
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -825,7 +825,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
825
825
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
826
826
|
}
|
|
827
827
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
828
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
828
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-USDZXKIL.js")).readDialogFromLocalDb;
|
|
829
829
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
830
830
|
return {
|
|
831
831
|
...result,
|
|
@@ -840,7 +840,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
840
840
|
);
|
|
841
841
|
}
|
|
842
842
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
843
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
843
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-USDZXKIL.js");
|
|
844
844
|
return reader({ ...args, db });
|
|
845
845
|
}
|
|
846
846
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
mergeReferences,
|
|
4
4
|
resolveReferenceAssets,
|
|
5
5
|
resolveToolsFromKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CUYFRVJF.js";
|
|
7
7
|
import {
|
|
8
8
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
9
9
|
getAllToolRuns,
|
|
10
10
|
parseUiCard,
|
|
11
11
|
uiCardFallback
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZKKJZBNO.js";
|
|
13
13
|
import {
|
|
14
14
|
getDocState
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FAFDIQJG.js";
|
|
16
16
|
import {
|
|
17
17
|
getTableState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TGKAUEV3.js";
|
|
19
19
|
import {
|
|
20
20
|
selectAllMsgs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A55E2OCP.js";
|
|
22
22
|
import {
|
|
23
23
|
getCurrentSpaceIdRaw,
|
|
24
24
|
getViewMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IXAGRTAR.js";
|
|
26
26
|
import {
|
|
27
27
|
selectById
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveToolBaseUrl
|
|
31
31
|
} from "./chunk-KQHEGELM.js";
|
|
@@ -100,6 +100,84 @@ import {
|
|
|
100
100
|
asOptionalTrimmedString
|
|
101
101
|
} from "./chunk-G3SUCT4W.js";
|
|
102
102
|
|
|
103
|
+
// packages/app/utils/desktopActionGateChannel.ts
|
|
104
|
+
function targetForRunKind(kind, ctx = {}) {
|
|
105
|
+
if (kind === "server-run") {
|
|
106
|
+
return {
|
|
107
|
+
kind: "web",
|
|
108
|
+
server: ctx.server?.trim() ?? "",
|
|
109
|
+
token: ctx.token ?? null
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
return { kind: "desktop" };
|
|
113
|
+
}
|
|
114
|
+
var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
115
|
+
var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
116
|
+
var gates = /* @__PURE__ */ new Map();
|
|
117
|
+
var targets = /* @__PURE__ */ new Map();
|
|
118
|
+
var failures = /* @__PURE__ */ new Map();
|
|
119
|
+
var metadata = /* @__PURE__ */ new Map();
|
|
120
|
+
var errors = /* @__PURE__ */ new Map();
|
|
121
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
122
|
+
var cachedSnapshot = null;
|
|
123
|
+
function invalidateSnapshot() {
|
|
124
|
+
cachedSnapshot = null;
|
|
125
|
+
}
|
|
126
|
+
function notify() {
|
|
127
|
+
for (const listener of listeners) {
|
|
128
|
+
try {
|
|
129
|
+
listener();
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function pushGate(gate, target = { kind: "desktop" }, meta) {
|
|
135
|
+
if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
|
|
136
|
+
failures.delete(gate.id);
|
|
137
|
+
if (target.kind === "web" && (!target.token || !target.server.trim())) {
|
|
138
|
+
const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
|
|
139
|
+
if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
|
|
140
|
+
gates.delete(gate.id);
|
|
141
|
+
targets.delete(gate.id);
|
|
142
|
+
metadata.delete(gate.id);
|
|
143
|
+
errors.set(gate.id, message);
|
|
144
|
+
invalidateSnapshot();
|
|
145
|
+
notify();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
metadata.delete(gate.id);
|
|
149
|
+
if (meta && target.kind !== "local") metadata.set(gate.id, { ...meta, storage: target.kind });
|
|
150
|
+
errors.delete(gate.id);
|
|
151
|
+
targets.set(gate.id, target);
|
|
152
|
+
gates.set(gate.id, gate);
|
|
153
|
+
invalidateSnapshot();
|
|
154
|
+
notify();
|
|
155
|
+
}
|
|
156
|
+
function clearGateTurn(turnId) {
|
|
157
|
+
for (const [id, failure] of failures) {
|
|
158
|
+
if (failure.meta.turnId === turnId) failures.delete(id);
|
|
159
|
+
}
|
|
160
|
+
for (const [id, meta] of metadata) {
|
|
161
|
+
if (meta.turnId !== turnId) continue;
|
|
162
|
+
gates.delete(id);
|
|
163
|
+
targets.delete(id);
|
|
164
|
+
metadata.delete(id);
|
|
165
|
+
errors.delete(id);
|
|
166
|
+
}
|
|
167
|
+
invalidateSnapshot();
|
|
168
|
+
notify();
|
|
169
|
+
}
|
|
170
|
+
function getSnapshot() {
|
|
171
|
+
if (!cachedSnapshot) {
|
|
172
|
+
cachedSnapshot = {
|
|
173
|
+
gates: [...gates.values()],
|
|
174
|
+
failures: [...failures.values()],
|
|
175
|
+
errors: Object.fromEntries(errors)
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
return cachedSnapshot;
|
|
179
|
+
}
|
|
180
|
+
|
|
103
181
|
// packages/ai/agent/foregroundTurnAdmissionFetch.ts
|
|
104
182
|
var FOREGROUND_TURN_KEEPALIVE_MAX_BODY_BYTES = 60 * 1024;
|
|
105
183
|
function getUtf8ByteLength(value) {
|
|
@@ -1753,75 +1831,11 @@ async function resolveTurnToolContext(input) {
|
|
|
1753
1831
|
};
|
|
1754
1832
|
}
|
|
1755
1833
|
|
|
1756
|
-
// packages/app/utils/desktopActionGateChannel.ts
|
|
1757
|
-
function targetForRunKind(kind, ctx = {}) {
|
|
1758
|
-
if (kind === "server-run") {
|
|
1759
|
-
return {
|
|
1760
|
-
kind: "web",
|
|
1761
|
-
server: ctx.server?.trim() ?? "",
|
|
1762
|
-
token: ctx.token ?? null
|
|
1763
|
-
};
|
|
1764
|
-
}
|
|
1765
|
-
return { kind: "desktop" };
|
|
1766
|
-
}
|
|
1767
|
-
var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
1768
|
-
var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
|
|
1769
|
-
var gates = /* @__PURE__ */ new Map();
|
|
1770
|
-
var targets = /* @__PURE__ */ new Map();
|
|
1771
|
-
var failures = /* @__PURE__ */ new Map();
|
|
1772
|
-
var metadata = /* @__PURE__ */ new Map();
|
|
1773
|
-
var errors = /* @__PURE__ */ new Map();
|
|
1774
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
1775
|
-
var cachedSnapshot = null;
|
|
1776
|
-
function invalidateSnapshot() {
|
|
1777
|
-
cachedSnapshot = null;
|
|
1778
|
-
}
|
|
1779
|
-
function notify() {
|
|
1780
|
-
for (const listener of listeners) {
|
|
1781
|
-
try {
|
|
1782
|
-
listener();
|
|
1783
|
-
} catch {
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
function pushGate(gate, target = { kind: "desktop" }, meta) {
|
|
1788
|
-
if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
|
|
1789
|
-
failures.delete(gate.id);
|
|
1790
|
-
if (target.kind === "web" && (!target.token || !target.server.trim())) {
|
|
1791
|
-
const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
|
|
1792
|
-
if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
|
|
1793
|
-
gates.delete(gate.id);
|
|
1794
|
-
targets.delete(gate.id);
|
|
1795
|
-
metadata.delete(gate.id);
|
|
1796
|
-
errors.set(gate.id, message);
|
|
1797
|
-
invalidateSnapshot();
|
|
1798
|
-
notify();
|
|
1799
|
-
return;
|
|
1800
|
-
}
|
|
1801
|
-
metadata.delete(gate.id);
|
|
1802
|
-
if (meta && target.kind !== "local") metadata.set(gate.id, { ...meta, storage: target.kind });
|
|
1803
|
-
errors.delete(gate.id);
|
|
1804
|
-
targets.set(gate.id, target);
|
|
1805
|
-
gates.set(gate.id, gate);
|
|
1806
|
-
invalidateSnapshot();
|
|
1807
|
-
notify();
|
|
1808
|
-
}
|
|
1809
|
-
function clearGateTurn(turnId) {
|
|
1810
|
-
for (const [id, failure] of failures) {
|
|
1811
|
-
if (failure.meta.turnId === turnId) failures.delete(id);
|
|
1812
|
-
}
|
|
1813
|
-
for (const [id, meta] of metadata) {
|
|
1814
|
-
if (meta.turnId !== turnId) continue;
|
|
1815
|
-
gates.delete(id);
|
|
1816
|
-
targets.delete(id);
|
|
1817
|
-
metadata.delete(id);
|
|
1818
|
-
errors.delete(id);
|
|
1819
|
-
}
|
|
1820
|
-
invalidateSnapshot();
|
|
1821
|
-
notify();
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
1834
|
export {
|
|
1835
|
+
targetForRunKind,
|
|
1836
|
+
pushGate,
|
|
1837
|
+
clearGateTurn,
|
|
1838
|
+
getSnapshot,
|
|
1825
1839
|
buildForegroundTurnAdmissionFetchInit,
|
|
1826
1840
|
consumeAgentRunStream,
|
|
1827
1841
|
projectDesktopToolUiContent,
|
|
@@ -1834,8 +1848,5 @@ export {
|
|
|
1834
1848
|
mergeAgentToolsWithRuntime,
|
|
1835
1849
|
applyImageConfigRuntimeOverride,
|
|
1836
1850
|
resolveImageGenerationStreamingState,
|
|
1837
|
-
resolveTurnToolContext
|
|
1838
|
-
targetForRunKind,
|
|
1839
|
-
pushGate,
|
|
1840
|
-
clearGateTurn
|
|
1851
|
+
resolveTurnToolContext
|
|
1841
1852
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EFM2IPZR.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCloudflareEmailRoutingToken,
|
|
6
6
|
parseFlagWithOptionalValue,
|
|
7
7
|
runCloudflareOAuthLogin,
|
|
8
8
|
upsertEnvVariable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GMWZRXRM.js";
|
|
10
10
|
import {
|
|
11
11
|
ANTHROPIC_OAUTH_AUTHORIZE_URL,
|
|
12
12
|
ANTHROPIC_OAUTH_CALLBACK_PORT,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
startCallbackServer,
|
|
51
51
|
validateXAIEndpoint,
|
|
52
52
|
xaiOAuthDiscovery
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XC5RPSXK.js";
|
|
54
54
|
import {
|
|
55
55
|
extractGoogleValidationLink
|
|
56
56
|
} from "./chunk-BMQ2MJUK.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
detectLocalDevinCredentials,
|
|
61
61
|
extractDevinToken,
|
|
62
62
|
fetchAntigravityCloudCodeCompletion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-CJ2BP6V7.js";
|
|
64
64
|
import {
|
|
65
65
|
createOAuthTokenStore,
|
|
66
66
|
resolveFreshAccessToken
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-R5GO3YZP.js";
|
|
75
75
|
import {
|
|
76
76
|
t
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-R7D5SRAZ.js";
|
|
78
78
|
import {
|
|
79
79
|
toErrorMessage
|
|
80
80
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -7405,9 +7405,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
7405
7405
|
if (typeof value === "string") {
|
|
7406
7406
|
value = value.length > 0 ? { type: "text", value } : void 0;
|
|
7407
7407
|
}
|
|
7408
|
-
if (value
|
|
7409
|
-
find.lastIndex = position2 + 1;
|
|
7410
|
-
} else {
|
|
7408
|
+
if (value !== false) {
|
|
7411
7409
|
if (start !== position2) {
|
|
7412
7410
|
add({ type: "text", value: node2.value.slice(start, position2) });
|
|
7413
7411
|
}
|
|
@@ -7419,6 +7417,10 @@ function findAndReplace(tree, list2, options) {
|
|
|
7419
7417
|
start = position2 + match[0].length;
|
|
7420
7418
|
change = true;
|
|
7421
7419
|
}
|
|
7420
|
+
if (value === false || match[0].length === 0) {
|
|
7421
|
+
const code2 = node2.value.codePointAt(position2) || 0;
|
|
7422
|
+
find.lastIndex = position2 + (/[uv]/.test(find.flags) && code2 > 65535 ? 2 : 1);
|
|
7423
|
+
}
|
|
7422
7424
|
if (!find.global) {
|
|
7423
7425
|
break;
|
|
7424
7426
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEVIN_CONNECT_URL,
|
|
4
4
|
parseSseDataLineJson,
|
|
5
5
|
parseSseDataLineObject
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CJ2BP6V7.js";
|
|
7
7
|
import {
|
|
8
8
|
ALWAYS_EXCLUDED_GLOBS,
|
|
9
9
|
EXECUTION_BACKEND_KINDS
|
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
formatImageSummary,
|
|
13
13
|
readLocalImage
|
|
14
14
|
} from "./chunk-AL3TYDIF.js";
|
|
15
|
+
import {
|
|
16
|
+
evaluateFileWritePolicy,
|
|
17
|
+
summarizeToolArguments
|
|
18
|
+
} from "./chunk-CHOZJMJS.js";
|
|
15
19
|
import {
|
|
16
20
|
applyChatCompletionDelta,
|
|
17
21
|
applyResponsesToolEvent,
|
|
@@ -20,19 +24,22 @@ import {
|
|
|
20
24
|
flushChatCompletionStream,
|
|
21
25
|
providerHttpFailure,
|
|
22
26
|
throwIfChatCompletionStreamFailed
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WZPG63Q4.js";
|
|
24
28
|
import {
|
|
25
29
|
readSseFrames
|
|
26
30
|
} from "./chunk-HNUWUO75.js";
|
|
27
31
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./chunk-CHOZJMJS.js";
|
|
32
|
+
resolveToolExecutionContract
|
|
33
|
+
} from "./chunk-DMPZMYH4.js";
|
|
31
34
|
import {
|
|
32
35
|
evaluateRequestBudget,
|
|
33
36
|
hasImageInRuntimeMessages,
|
|
34
37
|
stripImagePartsFromMessages
|
|
35
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LMMRWGGJ.js";
|
|
39
|
+
import {
|
|
40
|
+
resolveAgentImageInputSupport,
|
|
41
|
+
resolveToolImagePolicy
|
|
42
|
+
} from "./chunk-SX6AWTNK.js";
|
|
36
43
|
import {
|
|
37
44
|
applyShapingCounts,
|
|
38
45
|
attachProjectionFacts,
|
|
@@ -115,13 +122,6 @@ import {
|
|
|
115
122
|
toolImages,
|
|
116
123
|
withoutToolImages
|
|
117
124
|
} from "./chunk-X4O7FJF5.js";
|
|
118
|
-
import {
|
|
119
|
-
resolveToolExecutionContract
|
|
120
|
-
} from "./chunk-DMPZMYH4.js";
|
|
121
|
-
import {
|
|
122
|
-
resolveAgentImageInputSupport,
|
|
123
|
-
resolveToolImagePolicy
|
|
124
|
-
} from "./chunk-SX6AWTNK.js";
|
|
125
125
|
import {
|
|
126
126
|
isContextOverflowText,
|
|
127
127
|
isQuotaExhaustedError
|
|
@@ -185,12 +185,12 @@ import {
|
|
|
185
185
|
observeMeaningfulProviderResponse,
|
|
186
186
|
withProviderCallTimingFields
|
|
187
187
|
} from "./chunk-H57T64RA.js";
|
|
188
|
-
import {
|
|
189
|
-
sha256Hex
|
|
190
|
-
} from "./chunk-SR4FE5VD.js";
|
|
191
188
|
import {
|
|
192
189
|
clipCompactText
|
|
193
190
|
} from "./chunk-5MMAK75Q.js";
|
|
191
|
+
import {
|
|
192
|
+
sha256Hex
|
|
193
|
+
} from "./chunk-SR4FE5VD.js";
|
|
194
194
|
import {
|
|
195
195
|
asRecordOrEmpty
|
|
196
196
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -257,10 +257,10 @@ import {
|
|
|
257
257
|
} from "./chunk-OJKUU3LP.js";
|
|
258
258
|
import {
|
|
259
259
|
resolveLocalUserId
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-IZWGO2ZS.js";
|
|
261
261
|
import {
|
|
262
262
|
applyToolSurfaceConstraints
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-JCQ3WCQ3.js";
|
|
264
264
|
import {
|
|
265
265
|
canonicalizeToolName,
|
|
266
266
|
canonicalizeToolNames
|
|
@@ -14741,15 +14741,16 @@ var execShellCapability = {
|
|
|
14741
14741
|
shell: normalized.shell,
|
|
14742
14742
|
...typeof normalized.login === "boolean" ? { login: normalized.login } : {}
|
|
14743
14743
|
});
|
|
14744
|
-
const background = normalized.background === true;
|
|
14744
|
+
const background = ctx.disableBackgroundDetach === true ? false : normalized.background === true;
|
|
14745
|
+
const effectiveTimeoutMs = resolveExecShellTimeoutMs(ctx.commandTimeoutMs);
|
|
14745
14746
|
const executionArgs = {
|
|
14746
14747
|
workspaceRoot,
|
|
14747
14748
|
command: shellPlan.argv,
|
|
14748
|
-
timeoutMs:
|
|
14749
|
+
timeoutMs: effectiveTimeoutMs,
|
|
14749
14750
|
outputLimit: ctx.commandOutputLimit,
|
|
14750
14751
|
commandPrefix: ctx.commandPrefix,
|
|
14751
14752
|
abortSignal: ctx.abortSignal,
|
|
14752
|
-
detachMs: background ? 0 : isImmediateDetachShellCommand({ command }) ? 0 : ctx.detachMs,
|
|
14753
|
+
detachMs: ctx.disableBackgroundDetach === true ? Math.max((effectiveTimeoutMs ?? 3e4) + 6e4, 12e4) : background ? 0 : isImmediateDetachShellCommand({ command }) ? 0 : ctx.detachMs,
|
|
14753
14754
|
stdin: typeof normalized.input === "string" ? normalized.input : void 0,
|
|
14754
14755
|
label: typeof normalized.label === "string" ? normalized.label : void 0,
|
|
14755
14756
|
// Ownership of the turn that invoked this command: an auto-detached
|
|
@@ -17970,6 +17971,7 @@ async function execShellTool(args2) {
|
|
|
17970
17971
|
restrictToWorkspace: args2.restrictToWorkspace,
|
|
17971
17972
|
abortSignal: args2.abortSignal,
|
|
17972
17973
|
detachMs: args2.detachMs,
|
|
17974
|
+
disableBackgroundDetach: args2.disableBackgroundDetach,
|
|
17973
17975
|
confirmed: args2.confirmed,
|
|
17974
17976
|
enableDestructiveShellGuard: args2.enableDestructiveShellGuard,
|
|
17975
17977
|
confirmDestructiveAction: args2.confirmDestructiveAction,
|
|
@@ -18450,6 +18452,7 @@ function createLocalWorkspaceToolExecutors(args2) {
|
|
|
18450
18452
|
restrictToWorkspace: args2.restrictShellToWorkspace,
|
|
18451
18453
|
abortSignal: opts?.abortSignal ?? args2.abortSignal,
|
|
18452
18454
|
detachMs: opts?.detachMs ?? args2.detachMs,
|
|
18455
|
+
disableBackgroundDetach: args2.disableBackgroundDetach,
|
|
18453
18456
|
confirmed: opts?.confirmed,
|
|
18454
18457
|
enableDestructiveShellGuard: opts?.enableDestructiveShellGuard,
|
|
18455
18458
|
confirmDestructiveAction: opts?.confirmDestructiveAction,
|
|
@@ -23519,6 +23522,12 @@ function createHybridRecordStore(deps) {
|
|
|
23519
23522
|
|
|
23520
23523
|
// packages/agent-runtime/sandboxCommandPrefix.ts
|
|
23521
23524
|
var DEFAULT_SANDBOX_TMPFS_SIZE_BYTES = 128 * 1024 * 1024;
|
|
23525
|
+
var DEFAULT_HOSTED_SANDBOX_RESOURCE_LIMITS = {
|
|
23526
|
+
cpuSeconds: 30,
|
|
23527
|
+
maxFileSizeBytes: 64 * 1024 * 1024,
|
|
23528
|
+
maxOpenFiles: 256,
|
|
23529
|
+
maxProcesses: 256
|
|
23530
|
+
};
|
|
23522
23531
|
var BWRAP_PROBE_TTL_MS = 5 * 6e4;
|
|
23523
23532
|
|
|
23524
23533
|
// node_modules/async-mutex/index.mjs
|
|
@@ -23858,7 +23867,7 @@ async function saveCliPendingUserMessages(args2) {
|
|
|
23858
23867
|
if (ops.length) await args2.store.batch(ops);
|
|
23859
23868
|
}
|
|
23860
23869
|
async function readCliPendingUserMessages(store, dialogId) {
|
|
23861
|
-
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-
|
|
23870
|
+
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-NFNGYOOW.js");
|
|
23862
23871
|
const rows = await readDialogMessageRecords({ store, dialogId });
|
|
23863
23872
|
const uncertain = rows.filter(({ record: record2 }) => record2.metadata?.cliBatchPhase === "requested" && !record2.metadata?.cliBatchResolution);
|
|
23864
23873
|
const recovery = uncertain.length ? {
|