nolo-cli 0.249.0-alpha.9 → 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.
Files changed (143) hide show
  1. package/{_executeModel-HWAMKGWB.js → _executeModel-55PHWQWB.js} +30 -30
  2. package/{addContentAction-MLI6GOBV.js → addContentAction-LBVAQUF7.js} +2 -2
  3. package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-6WAUSUSZ.js} +1 -1
  4. package/{agentDeleteCommand-B7XG4QD5.js → agentDeleteCommand-KEO3KDK3.js} +59 -55
  5. package/{agentEmailCommands-IWRTGO7J.js → agentEmailCommands-RWJQQRNT.js} +59 -55
  6. package/{agentListCommands-ZJAHAV33.js → agentListCommands-L3TLPLNH.js} +24 -24
  7. package/{agentMachineCommands-ACOBJR4U.js → agentMachineCommands-EZWWXWDH.js} +20 -20
  8. package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
  9. package/{agentRecordCommands-NWKL4YUG.js → agentRecordCommands-7W2CGHJJ.js} +58 -54
  10. package/{agentRunCommand-MRDX6DL6.js → agentRunCommand-POL6B6BO.js} +59 -55
  11. package/{agentRunControl-QMWTWV7C.js → agentRunControl-FKSXBUAF.js} +1 -1
  12. package/{agentRuntimeLocal-65F3RVQM.js → agentRuntimeLocal-WSHWNIMF.js} +16 -16
  13. package/{agentSlice-CF3SO4QW.js → agentSlice-3G2YLTA4.js} +3 -3
  14. package/{appDeleteCommands-6ML7IZWP.js → appDeleteCommands-DZZQCVYH.js} +21 -21
  15. package/{appDeployCommands-CZOP3X47.js → appDeployCommands-NJJBVNH5.js} +21 -21
  16. package/{appDeployStatusCommands-T4QEGCMV.js → appDeployStatusCommands-GBOAFEYG.js} +21 -21
  17. package/{appGetCommands-4MWH3GB7.js → appGetCommands-GOOKYMKO.js} +21 -21
  18. package/{appListCommands-EYM6PLZM.js → appListCommands-OBCGUG3S.js} +21 -21
  19. package/{authCommand-3C3RN4OU.js → authCommand-77CRN332.js} +9 -9
  20. package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
  21. package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-6RLEBBJJ.js} +1 -1
  22. package/{chunk-MNXWT3GC.js → chunk-222CJNC2.js} +3 -3
  23. package/chunk-3A5NNQCN.js +64 -0
  24. package/{chunk-OP7UDCGP.js → chunk-3KWJPTVP.js} +3 -3
  25. package/{chunk-5D5C7IFJ.js → chunk-3ZWJVKFB.js} +150 -40
  26. package/{chunk-OLGFIQN2.js → chunk-43VT5PLM.js} +1 -1
  27. package/{chunk-RHBD22LV.js → chunk-5IKKSJYX.js} +4 -2
  28. package/{chunk-JRKQT7ST.js → chunk-6UNJ6JGR.js} +9 -9
  29. package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
  30. package/{chunk-P4HBFHQB.js → chunk-A55E2OCP.js} +16 -16
  31. package/{chunk-3WHVE2XX.js → chunk-BQ4CZEVZ.js} +1 -1
  32. package/{chunk-ITBX27W6.js → chunk-CFDOIIOZ.js} +2 -2
  33. package/{chunk-RNKWM6DL.js → chunk-CUYFRVJF.js} +3 -3
  34. package/{chunk-CUMWQC3F.js → chunk-D35TOEMM.js} +2 -2
  35. package/{chunk-OHUYN3YU.js → chunk-D3E5MYXO.js} +1 -1
  36. package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
  37. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  38. package/{chunk-DQFQOKCR.js → chunk-FAFDIQJG.js} +3 -3
  39. package/{chunk-UF6J7NXV.js → chunk-GMWZRXRM.js} +1 -1
  40. package/{chunk-ARFCL53U.js → chunk-HD5EKSLF.js} +3 -3
  41. package/{chunk-4IQN6FWY.js → chunk-HQLCYPL4.js} +1 -1
  42. package/chunk-HZD5HXUO.js +405 -0
  43. package/{chunk-FFFKAOJN.js → chunk-IXAGRTAR.js} +1 -1
  44. package/{chunk-UPOW5HTG.js → chunk-IZWGO2ZS.js} +1 -1
  45. package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
  46. package/{chunk-ZTWDSOXD.js → chunk-JUYI2D7J.js} +1 -1
  47. package/{chunk-5FU7HEII.js → chunk-K5CIMK3R.js} +3 -3
  48. package/{chunk-DKOUQOJ7.js → chunk-KGOBJAWC.js} +54 -52
  49. package/{chunk-CX5BGBCX.js → chunk-KHVTT4WW.js} +1 -1
  50. package/{chunk-L4ES2RVY.js → chunk-KJDN2YRH.js} +1 -1
  51. package/{chunk-JFRJEPFI.js → chunk-KRAPKTAS.js} +1 -1
  52. package/{chunk-Y45F45YH.js → chunk-KZVRPCOR.js} +3 -3
  53. package/{chunk-TMRJGSK2.js → chunk-L5HV76QT.js} +1 -1
  54. package/{chunk-H772FXSL.js → chunk-LOXR4TQN.js} +2 -2
  55. package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
  56. package/{chunk-VOWN2ZQI.js → chunk-LXKK7QFI.js} +1 -1
  57. package/{chunk-73PZD7JZ.js → chunk-MTS5DCL2.js} +2 -2
  58. package/{chunk-LAIWAVKI.js → chunk-N3SEV3CG.js} +35 -27
  59. package/{chunk-KLAMJNKQ.js → chunk-NMXGIRSG.js} +14 -7
  60. package/{chunk-WNIV5BV7.js → chunk-NTNX77FI.js} +8 -8
  61. package/{chunk-BGWCWHWL.js → chunk-OARYOLF3.js} +90 -79
  62. package/{chunk-BAH3BAUZ.js → chunk-OQCAHPDQ.js} +5 -5
  63. package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
  64. package/{chunk-IQAO6IUP.js → chunk-PKMDYRAM.js} +33 -24
  65. package/{chunk-MBJSAYYK.js → chunk-PLS2MJVW.js} +5 -5
  66. package/{chunk-V4D5ZKWF.js → chunk-Q5KZ6F55.js} +11 -11
  67. package/{chunk-RJSITWNF.js → chunk-QJ5YDTEF.js} +7 -7
  68. package/{chunk-V4IYI3SB.js → chunk-QLGL43SI.js} +1 -1
  69. package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
  70. package/{chunk-E5RYFR7E.js → chunk-R7D5SRAZ.js} +2 -0
  71. package/{chunk-YM6L335H.js → chunk-SLUZ6FBJ.js} +1 -1
  72. package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
  73. package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
  74. package/{chunk-ADOOL3PG.js → chunk-T4V6C3J3.js} +1 -1
  75. package/{chunk-E2U4I3NK.js → chunk-TGKAUEV3.js} +4 -4
  76. package/chunk-TRRXYFTR.js +46 -0
  77. package/{chunk-BVEDT6DM.js → chunk-U2OWDHDE.js} +3 -3
  78. package/{chunk-YWNCRUBZ.js → chunk-UCMUXZJV.js} +5 -5
  79. package/{chunk-SAXVCWLZ.js → chunk-W2N4OAKM.js} +2 -2
  80. package/{chunk-FNB2XPBD.js → chunk-X337N4D6.js} +3 -3
  81. package/{chunk-6TVYUQRM.js → chunk-XC5RPSXK.js} +1 -1
  82. package/chunk-XRGBJHZX.js +136 -0
  83. package/{chunk-IJZC2KIJ.js → chunk-Z7A2ZQ5X.js} +1 -1
  84. package/{chunk-DGHHJV3T.js → chunk-ZKKJZBNO.js} +6 -6
  85. package/{chunk-SHDJLJWV.js → chunk-ZSRR6HCH.js} +1 -1
  86. package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-N6LTB7UY.js} +2 -2
  87. package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  88. package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
  89. package/{cliLocalAgentRecordReader-WUSV4VMI.js → cliLocalAgentRecordReader-NFNGYOOW.js} +18 -18
  90. package/{commandRegistry-MR6GOEUC.js → commandRegistry-OM5DU4DS.js} +72 -72
  91. package/{contentThunks-WF73YCYA.js → contentThunks-7URM43ET.js} +10 -10
  92. package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-JEEV75B7.js} +1 -1
  93. package/{createAgentAutomationAction-NUIQOIOW.js → createAgentAutomationAction-GGEXIKMC.js} +10 -10
  94. package/{createDialogAction-IASHJN3H.js → createDialogAction-IXXEMFRQ.js} +11 -11
  95. package/{createPageAction-7YDRLGGF.js → createPageAction-IXIVLIOO.js} +13 -13
  96. package/{db-CMUTP3W5.js → db-J5KE7XRI.js} +3 -2
  97. package/{dbSlice-656PMWR2.js → dbSlice-IE4ADINL.js} +1 -1
  98. package/{dialogCommands-E4KH23LG.js → dialogCommands-RPBHOZB6.js} +30 -26
  99. package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-ECKI5MMA.js} +3 -3
  100. package/{dialogSlice-CTSI7MTT.js → dialogSlice-5FQB2TNN.js} +8 -8
  101. package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-TBIA2QAF.js} +2 -2
  102. package/{docCreateCommands-3OVVJQ5T.js → docCreateCommands-XJ2X57DW.js} +20 -20
  103. package/{docDeleteCommands-ZY3YVAKQ.js → docDeleteCommands-45WGFFEB.js} +21 -21
  104. package/{docReadCommands-DRKAOI4S.js → docReadCommands-LRRVDS46.js} +20 -20
  105. package/{docStore-6WBQOAXG.js → docStore-SUAVM24F.js} +2 -2
  106. package/{docUpdateCommands-YUOV2EY6.js → docUpdateCommands-QUYX6BVR.js} +20 -20
  107. package/{handleSendMessageAction-N2OMO5G4.js → handleSendMessageAction-FDIWBQUB.js} +65 -23
  108. package/{hostCredentialCreate-7URAYDDW.js → hostCredentialCreate-CEXQHYT4.js} +58 -54
  109. package/index.js +23 -11
  110. package/{localDialogRead-CIOTQM5T.js → localDialogRead-USDZXKIL.js} +1 -1
  111. package/{localRuntimeAdapter-N7UAZM2A.js → localRuntimeAdapter-O3JBRK6S.js} +56 -52
  112. package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
  113. package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
  114. package/{machineCommands-37DP3W6M.js → machineCommands-I3YA7TNC.js} +57 -53
  115. package/{machineWsRunDispatch-MWJ3YPHO.js → machineWsRunDispatch-E5CIE2OJ.js} +57 -53
  116. package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
  117. package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-K5J2VMG6.js} +10 -6
  118. package/{memberThunks-JFYC4Z5L.js → memberThunks-T7EAZE6A.js} +3 -3
  119. package/package.json +2 -1
  120. package/{projectArchive-LP7LCMCR.js → projectArchive-A7E65AZO.js} +13 -13
  121. package/{readlineWorkspace-VFI2DNJS.js → readlineWorkspace-2O65NBFG.js} +96 -93
  122. package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-GRT72HLK.js} +3 -3
  123. package/{runAgentClientLoop-S5Y42KAZ.js → runAgentClientLoop-NWCZIXCG.js} +28 -28
  124. package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-26HYHFTK.js} +9 -6
  125. package/{secretCommands-2FEMRUFM.js → secretCommands-XR72SHLK.js} +2 -2
  126. package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-CBG3X46B.js} +2 -2
  127. package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-EWTDZOAX.js} +3 -3
  128. package/{settingThunks-IHXUF276.js → settingThunks-X4PT66J2.js} +1 -1
  129. package/{spaceCommands-EKDIDAQD.js → spaceCommands-EVSNTGRS.js} +19 -19
  130. package/{streamAgentChatTurn-IYNNLYI5.js → streamAgentChatTurn-SYP3OEM5.js} +53 -53
  131. package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-YHPZ7K6E.js} +1 -1
  132. package/{tools-GIATFQW5.js → tools-2AO2SK4L.js} +22 -22
  133. package/{tuiRestart-5F2APN66.js → tuiRestart-HBQDF4AE.js} +2 -2
  134. package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-Q2PNR63K.js} +4 -4
  135. package/{updateCommands-FBYA5WVG.js → updateCommands-6SI7NWVC.js} +3 -3
  136. package/{updateDialogTitleAction-PQDJD35N.js → updateDialogTitleAction-MWVMBIPZ.js} +10 -10
  137. package/{usageCommand-L4OFWXEU.js → usageCommand-D44AOTMH.js} +2 -2
  138. package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-IRIMKDI5.js} +3 -3
  139. package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-BJIJKKIS.js} +2 -2
  140. package/{chunk-MYYNZG2M.js → chunk-CJ2BP6V7.js} +3 -3
  141. package/{chunk-HZDK56EK.js → chunk-IFJ6OTI6.js} +0 -0
  142. package/{chunk-WMKA2DPK.js → chunk-LMMRWGGJ.js} +3 -3
  143. package/{chunk-EDT65EUE.js → chunk-WZPG63Q4.js} +3 -3
@@ -3,7 +3,7 @@ import {
3
3
  DEVIN_CONNECT_URL,
4
4
  parseSseDataLineJson,
5
5
  parseSseDataLineObject
6
- } from "./chunk-MYYNZG2M.js";
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-EDT65EUE.js";
27
+ } from "./chunk-WZPG63Q4.js";
24
28
  import {
25
29
  readSseFrames
26
30
  } from "./chunk-HNUWUO75.js";
27
31
  import {
28
- evaluateFileWritePolicy,
29
- summarizeToolArguments
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-WMKA2DPK.js";
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,
@@ -62,7 +69,7 @@ import {
62
69
  hashStablePrefixContent,
63
70
  resolveResponseGuidelines,
64
71
  resolveToolGuidedSections
65
- } from "./chunk-VOWN2ZQI.js";
72
+ } from "./chunk-LXKK7QFI.js";
66
73
  import {
67
74
  BRIDGE_STREAM_MAX_CHARS,
68
75
  CLI_NOLO_WORKSPACE_TOOL_NAMES,
@@ -77,7 +84,7 @@ import {
77
84
  parseNoloWorkspaceToolArguments,
78
85
  readTextStreamUpToChars,
79
86
  resolveNoloDialogInput
80
- } from "./chunk-ITBX27W6.js";
87
+ } from "./chunk-CFDOIIOZ.js";
81
88
  import {
82
89
  classifyUnparsableToolArgs,
83
90
  collectStablePromptPrefix,
@@ -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-UPOW5HTG.js";
260
+ } from "./chunk-IZWGO2ZS.js";
261
261
  import {
262
262
  applyToolSurfaceConstraints
263
- } from "./chunk-NEG5LYK5.js";
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: resolveExecShellTimeoutMs(ctx.commandTimeoutMs),
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-WUSV4VMI.js");
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 ? {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-DKOUQOJ7.js";
4
+ } from "./chunk-KGOBJAWC.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-DGHHJV3T.js";
7
+ } from "./chunk-ZKKJZBNO.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-IQAO6IUP.js";
10
+ } from "./chunk-PKMDYRAM.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-USGHJSGO.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-KX6YBIHG.js";
17
17
  import {
18
18
  applyToolSurfaceConstraints
19
- } from "./chunk-NEG5LYK5.js";
19
+ } from "./chunk-JCQ3WCQ3.js";
20
20
  import {
21
21
  ownedAgentKey
22
22
  } from "./chunk-M2EJHDJP.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-4O22PGNQ.js";
39
39
  import {
40
40
  t
41
- } from "./chunk-E5RYFR7E.js";
41
+ } from "./chunk-R7D5SRAZ.js";
42
42
  import {
43
43
  toErrorMessage
44
44
  } from "./chunk-HNMXYYJR.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-CUMWQC3F.js";
8
+ } from "./chunk-D35TOEMM.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-5FU7HEII.js";
17
+ } from "./chunk-K5CIMK3R.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-5D5C7IFJ.js";
21
+ } from "./chunk-3ZWJVKFB.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,7 +27,7 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-DGHHJV3T.js";
30
+ } from "./chunk-ZKKJZBNO.js";
31
31
  import {
32
32
  addToolMessage,
33
33
  messageStreamEnd,
@@ -35,16 +35,19 @@ import {
35
35
  toast,
36
36
  toolResultNeedsUserConfirmation,
37
37
  updateToolMessage
38
- } from "./chunk-P4HBFHQB.js";
38
+ } from "./chunk-A55E2OCP.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-RJSITWNF.js";
41
+ } from "./chunk-QJ5YDTEF.js";
42
42
  import {
43
43
  getCurrentSpaceId
44
- } from "./chunk-FFFKAOJN.js";
44
+ } from "./chunk-IXAGRTAR.js";
45
+ import {
46
+ selectCurrentServer
47
+ } from "./chunk-MTM4LRVG.js";
45
48
  import {
46
49
  write
47
- } from "./chunk-HZDK56EK.js";
50
+ } from "./chunk-IFJ6OTI6.js";
48
51
  import {
49
52
  addActiveController,
50
53
  getActiveDialogKey,
@@ -54,9 +57,6 @@ import {
54
57
  import {
55
58
  require_react
56
59
  } from "./chunk-RD3QLZQV.js";
57
- import {
58
- selectCurrentServer
59
- } from "./chunk-MTM4LRVG.js";
60
60
  import {
61
61
  createAsyncThunk
62
62
  } from "./chunk-6XVPMGXK.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-HZDK56EK.js";
4
+ } from "./chunk-IFJ6OTI6.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
@@ -17,12 +17,12 @@ import {
17
17
  migrateAgentSecrets,
18
18
  normalizeAgentRuntimeToolPolicy
19
19
  } from "./chunk-USGHJSGO.js";
20
- import {
21
- createFileCredentialBroker
22
- } from "./chunk-E6A5NHDH.js";
23
20
  import {
24
21
  asRecordOrEmpty
25
22
  } from "./chunk-KX6YBIHG.js";
23
+ import {
24
+ createFileCredentialBroker
25
+ } from "./chunk-E6A5NHDH.js";
26
26
  import {
27
27
  isLevelNotFoundError
28
28
  } from "./chunk-OW765XBU.js";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-HWAMKGWB.js");
461
+ const { _executeModel } = await import("./_executeModel-55PHWQWB.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-S5Y42KAZ.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-NWCZIXCG.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-IYNNLYI5.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-SYP3OEM5.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-HZDK56EK.js";
8
+ } from "./chunk-IFJ6OTI6.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
@@ -1,8 +1,3 @@
1
- // packages/database/levelLockError.ts
2
- function isLevelLockError(error) {
3
- return typeof error === "object" && error !== null && error.code === "LEVEL_LOCKED";
4
- }
5
-
6
1
  // packages/cli/levelLazyShim.mjs
7
2
  import { createRequire } from "node:module";
8
3
  var _require = createRequire(import.meta.url);
@@ -105,46 +100,7 @@ function createLevelAuthorityStore(source) {
105
100
  };
106
101
  }
107
102
 
108
- // packages/database-engine/legacyServerDb.ts
109
- function createLegacyServerDb(store) {
110
- const batch = (ops) => {
111
- if (Array.isArray(ops)) {
112
- return store.batchWrite(ops);
113
- }
114
- return store.createBatch();
115
- };
116
- return {
117
- get location() {
118
- return store.location;
119
- },
120
- get status() {
121
- return store.status;
122
- },
123
- async open() {
124
- await store.open();
125
- },
126
- async close() {
127
- await store.close();
128
- },
129
- async get(key) {
130
- return store.get(key);
131
- },
132
- async put(key, value) {
133
- await store.put(key, value);
134
- },
135
- async del(key) {
136
- await store.del(key);
137
- },
138
- batch,
139
- iterator(options = {}) {
140
- return store.iterator(options);
141
- }
142
- };
143
- }
144
-
145
103
  export {
146
104
  Level,
147
- isLevelLockError,
148
- createLevelAuthorityStore,
149
- createLegacyServerDb
105
+ createLevelAuthorityStore
150
106
  };
@@ -2935,6 +2935,8 @@ var TOOL_FAMILY_OVERRIDES = {
2935
2935
  readPage: TOOL_FAMILIES.read,
2936
2936
  readArtifact: TOOL_FAMILIES.read,
2937
2937
  writeFile: TOOL_FAMILIES.write,
2938
+ materializeWorkspaceFile: TOOL_FAMILIES.write,
2939
+ commitSandboxArtifact: TOOL_FAMILIES.write,
2938
2940
  editFile: TOOL_FAMILIES.write,
2939
2941
  createDoc: TOOL_FAMILIES.write,
2940
2942
  updateDoc: TOOL_FAMILIES.write,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  readDbRecord,
9
9
  writeAgentRecord
10
- } from "./chunk-L4ES2RVY.js";
10
+ } from "./chunk-KJDN2YRH.js";
11
11
  import {
12
12
  parseUserIdFromAuthToken,
13
13
  readOption,
@@ -1,5 +1,6 @@
1
1
  // packages/database-engine/cliAuthorityBrokerClient.ts
2
2
  import { createConnection } from "node:net";
3
+ import { connect as connectTls } from "node:tls";
3
4
  var DEFAULT_ITERATOR_PAGE_SIZE = 200;
4
5
  var CliAuthorityBrokerUnavailableError = class extends Error {
5
6
  reason = "cli_authority_broker_unavailable";
@@ -112,6 +113,8 @@ function isNotFoundBrokerError(error) {
112
113
  }
113
114
  function createCliAuthorityBrokerSocketInvoker(options) {
114
115
  const target = resolveBrokerSocketTarget(options.endpoint);
116
+ const connectedEvent = options.tls ? "secureConnect" : "connect";
117
+ const connect = () => target.kind === "unix" ? createConnection(target.path) : options.tls ? connectTls({ host: target.host, port: target.port, servername: "localhost", ...options.tls, rejectUnauthorized: true }) : createConnection({ host: target.host, port: target.port });
115
118
  const timeoutMs = options.timeoutMs ?? 5e3;
116
119
  const idleTimeoutMs = options.idleTimeoutMs ?? 5e3;
117
120
  let nextRequestId = 1;
@@ -164,7 +167,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
164
167
  return Promise.reject(createClosedError());
165
168
  }
166
169
  return new Promise((resolve, reject) => {
167
- const socket = target.kind === "unix" ? createConnection(target.path) : createConnection({ host: target.host, port: target.port });
170
+ const socket = connect();
168
171
  let settled = false;
169
172
  let buffer = "";
170
173
  let timer;
@@ -196,7 +199,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
196
199
  finishReject(new CliAuthorityBrokerTimeoutError(options.endpoint, timeoutMs));
197
200
  }, timeoutMs);
198
201
  socket.setEncoding("utf8");
199
- socket.on("connect", () => {
202
+ socket.on(connectedEvent, () => {
200
203
  if (settled || explicitlyClosed) return;
201
204
  socket.write(`${JSON.stringify(request)}
202
205
  `);
@@ -340,7 +343,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
340
343
  activeConn.socket.ref?.();
341
344
  return activeConn;
342
345
  }
343
- const socket = target.kind === "unix" ? createConnection(target.path) : createConnection({ host: target.host, port: target.port });
346
+ const socket = connect();
344
347
  const conn = {
345
348
  socket,
346
349
  connected: false,
@@ -354,7 +357,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
354
357
  activeConn = conn;
355
358
  socket.setEncoding("utf8");
356
359
  socket.setNoDelay?.(true);
357
- socket.on("connect", () => {
360
+ socket.on(connectedEvent, () => {
358
361
  if (conn.closed) return;
359
362
  conn.connected = true;
360
363
  const queued = conn.writeQueue.splice(0, conn.writeQueue.length);
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // packages/cli/agentCommandSupport.ts
6
6
  async function getDefaultCliDb() {
7
- const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-BO7IVWAZ.js");
7
+ const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-3CIC4SKC.js");
8
8
  return getDefaultCliLocalRuntimeDb();
9
9
  }
10
10
  function createNullCliDb() {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-E6A5NHDH.js";
4
4
  import {
5
5
  t
6
- } from "./chunk-E5RYFR7E.js";
6
+ } from "./chunk-R7D5SRAZ.js";
7
7
 
8
8
  // packages/core/secretsStore.ts
9
9
  import {
@@ -2,13 +2,13 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-P4HBFHQB.js";
5
+ } from "./chunk-A55E2OCP.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
9
9
  getCurrentSpaceIdRaw,
10
10
  updateCurrentSpaceIfMatch
11
- } from "./chunk-FFFKAOJN.js";
11
+ } from "./chunk-IXAGRTAR.js";
12
12
  import {
13
13
  require_formatISO
14
14
  } from "./chunk-UVLYNWIE.js";
@@ -23,7 +23,7 @@ import {
23
23
  patchIndividualContentRecord,
24
24
  readContentRecordForSpaceSync,
25
25
  syncContentRecordSpaceId
26
- } from "./chunk-V4IYI3SB.js";
26
+ } from "./chunk-QLGL43SI.js";
27
27
  import {
28
28
  createSpaceKey,
29
29
  normalizeSpaceId
@@ -36,7 +36,7 @@ import {
36
36
  uploadFileAction,
37
37
  upsertSSREntity,
38
38
  write
39
- } from "./chunk-HZDK56EK.js";
39
+ } from "./chunk-IFJ6OTI6.js";
40
40
  import {
41
41
  resolveFileCategory
42
42
  } from "./chunk-3PVYUPXK.js";
@@ -0,0 +1,46 @@
1
+ // packages/database/levelLockError.ts
2
+ function isLevelLockError(error) {
3
+ return typeof error === "object" && error !== null && error.code === "LEVEL_LOCKED";
4
+ }
5
+
6
+ // packages/database-engine/legacyServerDb.ts
7
+ function createLegacyServerDb(store) {
8
+ const batch = (ops) => {
9
+ if (Array.isArray(ops)) {
10
+ return store.batchWrite(ops);
11
+ }
12
+ return store.createBatch();
13
+ };
14
+ return {
15
+ get location() {
16
+ return store.location;
17
+ },
18
+ get status() {
19
+ return store.status;
20
+ },
21
+ async open() {
22
+ await store.open();
23
+ },
24
+ async close() {
25
+ await store.close();
26
+ },
27
+ async get(key) {
28
+ return store.get(key);
29
+ },
30
+ async put(key, value) {
31
+ await store.put(key, value);
32
+ },
33
+ async del(key) {
34
+ await store.del(key);
35
+ },
36
+ batch,
37
+ iterator(options = {}) {
38
+ return store.iterator(options);
39
+ }
40
+ };
41
+ }
42
+
43
+ export {
44
+ isLevelLockError,
45
+ createLegacyServerDb
46
+ };
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-YNIYE47Z.js";
37
37
  import {
38
38
  getDefaultCliLocalRuntimeDb
39
- } from "./chunk-BFKJ2RS3.js";
39
+ } from "./chunk-7RYODZDD.js";
40
40
  import {
41
41
  createTokenStatsKey
42
42
  } from "./chunk-SYTHYBMI.js";
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-7JR33UHS.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-IRIMKDI5.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
11729
11729
  return 0;
11730
11730
  }
11731
11731
  async function resolveUsageUserId(env) {
11732
- const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-37ZNEY5Y.js");
11732
+ const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-N6LTB7UY.js");
11733
11733
  return resolveLocalUserId(env);
11734
11734
  }
11735
11735
  function isLocalDbMissingError(error) {
@@ -2657,11 +2657,12 @@ function validateLocalWriterChild(runId, cwd, policy, deps = {}) {
2657
2657
  if (!r || r.runId !== runId || r.pid !== process.pid || r.status !== "running" || e?.state !== "known" || e.kind !== "host-local" || e.runtimeKey !== "local" || e.device.kind !== "localhost" || e.device.hostname !== nodeHostname() || e.device.platform !== process.platform || !["cli-command-authorized", "cli-tool-dispatch-authorized"].includes(e.provenance) || e.owner.state !== "verified" || native.state !== "verified" || e.owner.pid !== process.pid || e.owner.startedAt !== native.startedAt || (e.owner.linux?.bootId !== native.linux?.bootId || e.owner.linux?.startTicks !== native.linux?.startTicks) || r.processIdentity !== "verified" || r.processStartedAt !== e.owner.startedAt || e.canonicalCwd !== real || r.cwd !== real || e.permissions.hostWritesAuthorized !== policy.hostWritesAuthorized || e.permissions.readOnly !== policy.readOnly) fail("native identity/authorization");
2658
2658
  if (e?.state !== "known") return fail();
2659
2659
  const set = (v) => JSON.stringify(v === void 0 ? null : [...new Set(v)].sort());
2660
- if (set(e.permissions.allowedToolNames) !== set(policy.allowedToolNames) || set(e.permissions.blockedToolNames) !== set(policy.blockedToolNames) || JSON.stringify(e.worktree) !== JSON.stringify(trustedLocalWorktree(real, deps))) fail("scope/worktree");
2660
+ if (set(e.permissions.allowedToolNames) !== set(policy.allowedToolNames) || !policy.readOnly && set(e.permissions.blockedToolNames) !== set(policy.blockedToolNames) || JSON.stringify(e.worktree) !== JSON.stringify(trustedLocalWorktree(real, deps))) fail("scope/worktree");
2661
2661
  if (!policy.readOnly && (!policy.hostWritesAuthorized || r?.localWriterClaim?.state !== "held" || r.localWriterClaim.cwd !== real || e.worktree && (r.localWriterClaim.worktree?.root !== e.worktree.root || r.localWriterClaim.worktree.gitDir !== e.worktree.gitDir))) fail();
2662
- return true;
2662
+ const blockedToolNames = policy.readOnly ? [.../* @__PURE__ */ new Set([...e.permissions.blockedToolNames ?? [], ...policy.blockedToolNames ?? []])] : policy.blockedToolNames;
2663
+ return { blockedToolNames };
2663
2664
  }, { strict: true, requireDeadOwner: true });
2664
- if (!validated) fail("registry lock busy");
2665
+ return validated ?? fail("registry lock busy");
2665
2666
  }
2666
2667
  async function awaitLocalWriterChild(runId, cwd, policy, deps = {}) {
2667
2668
  if (!/^[A-Za-z0-9_-]+$/.test(runId)) throw new Error("[local-writer-resource] child binding invalid id");
@@ -2675,8 +2676,7 @@ async function awaitLocalWriterChild(runId, cwd, policy, deps = {}) {
2675
2676
  const native = publication ? nativeOwner(publication.parent.pid, deps) : { state: "unknown" };
2676
2677
  const parentLive = publication && native.state === "verified" && publication.parent.startedAt === native.startedAt && publication.parent.linux?.bootId === native.linux?.bootId && publication.parent.linux?.startTicks === native.linux?.startTicks;
2677
2678
  try {
2678
- validateLocalWriterChild(runId, cwd, policy, deps);
2679
- return;
2679
+ return validateLocalWriterChild(runId, cwd, policy, deps);
2680
2680
  } catch (error) {
2681
2681
  const lockBusy = String(error).includes("registry lock busy");
2682
2682
  const pending = publication?.state === "pending" && r?.execution?.state === "known" && r.execution.owner.state === "unknown";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-RNKWM6DL.js";
4
+ } from "./chunk-CUYFRVJF.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-P4HBFHQB.js";
7
+ } from "./chunk-A55E2OCP.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-U35UUM5K.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-E2U4I3NK.js";
3
+ } from "./chunk-TGKAUEV3.js";
4
4
  import {
5
5
  prepareAndPersistMessage
6
- } from "./chunk-P4HBFHQB.js";
6
+ } from "./chunk-A55E2OCP.js";
7
7
  import {
8
8
  require_format
9
9
  } from "./chunk-BUDVRYES.js";
@@ -16,7 +16,7 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-HZDK56EK.js";
19
+ } from "./chunk-IFJ6OTI6.js";
20
20
  import {
21
21
  isDevelopment
22
22
  } from "./chunk-YHNUDTU4.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-R5GO3YZP.js";
8
8
  import {
9
9
  getCliLocale
10
- } from "./chunk-E5RYFR7E.js";
10
+ } from "./chunk-R7D5SRAZ.js";
11
11
  import {
12
12
  ANTIGRAVITY_AUTH_URL,
13
13
  ANTIGRAVITY_CALLBACK_PATH,