nolo-cli 0.157.0-alpha.1 → 0.159.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-5WS2PA62.js → _executeModel-JISIM4PS.js} +41 -41
  2. package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
  3. package/{action-ZJYUBXFC.js → action-GPPJC5TI.js} +4 -4
  4. package/{addContentAction-TVHB4526.js → addContentAction-BI6RDRTQ.js} +7 -7
  5. package/{addDialogAgentAction-FDPBU6K6.js → addDialogAgentAction-4RJYUSIK.js} +6 -6
  6. package/{agentDeleteCommand-Q6M4F3U6.js → agentDeleteCommand-2NMZDFL5.js} +54 -54
  7. package/{agentEmailCommands-FNH6FEHS.js → agentEmailCommands-VQ2QGKL4.js} +56 -56
  8. package/{agentListCommands-JUNMFS6E.js → agentListCommands-3CJ4GF6C.js} +21 -21
  9. package/{agentMachineCommands-VNLDEKNT.js → agentMachineCommands-BMOEPV5C.js} +20 -19
  10. package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-CUBOAVPB.js} +2 -2
  11. package/{agentRecordCommands-47XXRVPI.js → agentRecordCommands-XRB7BLWV.js} +54 -54
  12. package/{agentRunCommand-QEXFJUXQ.js → agentRunCommand-VKCTAW55.js} +56 -55
  13. package/{agentRunControl-2C5GM3BW.js → agentRunControl-PPYWJRIJ.js} +4 -4
  14. package/{agentRuntimeLocal-O5GDAFTN.js → agentRuntimeLocal-7JDS3OAL.js} +14 -14
  15. package/{agentSlice-E3XS5FTQ.js → agentSlice-ST6QQ5FD.js} +7 -7
  16. package/{appDeleteCommands-C2J5RQ3I.js → appDeleteCommands-UVWHW4TJ.js} +19 -19
  17. package/{appDeployCommands-3YRK7PSU.js → appDeployCommands-67JPR4JU.js} +19 -19
  18. package/{appDeployStatusCommands-FPAX7MOK.js → appDeployStatusCommands-UTC6IR5V.js} +19 -19
  19. package/{appGetCommands-XAC2V766.js → appGetCommands-KLLIGWNC.js} +19 -19
  20. package/{appListCommands-ZJL2W5O7.js → appListCommands-AZKNWJUR.js} +19 -19
  21. package/{authCommand-J3XILHWW.js → authCommand-MSINEFHH.js} +12 -292
  22. package/{authCommands-77CHYBGF.js → authCommands-AMNIAKEG.js} +2 -2
  23. package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-H3AY27TR.js} +1 -1
  24. package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
  25. package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
  26. package/{chunk-Z6KQDSZW.js → chunk-2SGAI64X.js} +2 -2
  27. package/{chunk-C5VPAHIU.js → chunk-32ZKZET7.js} +1 -1
  28. package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
  29. package/{chunk-MM3662RS.js → chunk-42W7LKBM.js} +1 -1
  30. package/{chunk-FPWT3RH2.js → chunk-4CYTNZG3.js} +14 -14
  31. package/{chunk-L6EQV5OC.js → chunk-4JOZECCA.js} +3 -3
  32. package/{chunk-YBNHPX4S.js → chunk-4RJJDA57.js} +1 -1
  33. package/{chunk-B2EGWZJG.js → chunk-5MPS5OOY.js} +1 -1
  34. package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
  35. package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
  36. package/{chunk-ZD2BLOY6.js → chunk-B5MSFO6R.js} +3 -3
  37. package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
  38. package/{chunk-UTIMX333.js → chunk-C3WXTFRP.js} +1 -1
  39. package/{chunk-ROPSATAB.js → chunk-CON6SI7N.js} +1 -1
  40. package/{chunk-4Z245KOA.js → chunk-DC3SZCRR.js} +6 -2
  41. package/{chunk-X5SUT4CN.js → chunk-DD7BZWJ6.js} +6 -6
  42. package/{chunk-ANJTRG52.js → chunk-DFWLD7WU.js} +1 -38
  43. package/{chunk-PSJWPSKS.js → chunk-EWO77ZGF.js} +9 -43
  44. package/{chunk-DW7MGLMG.js → chunk-FUNTOSV3.js} +26 -22
  45. package/{chunk-MVJVF4ED.js → chunk-FVZVJA54.js} +7 -6
  46. package/{chunk-ZWG3C7VI.js → chunk-GB552UJS.js} +36 -1
  47. package/{chunk-EJU23ST5.js → chunk-GJNYJH7O.js} +682 -639
  48. package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
  49. package/{chunk-QDA4Y5O6.js → chunk-HXSN43Y5.js} +21 -17
  50. package/{chunk-7GC3EKUG.js → chunk-IE7G4BF5.js} +3 -3
  51. package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
  52. package/{chunk-CE7PIHQD.js → chunk-IRTOYSA2.js} +3 -3
  53. package/{chunk-PEO24UB5.js → chunk-IULXURBL.js} +39 -12
  54. package/{chunk-WZ6OU4NX.js → chunk-J2ATF74A.js} +2 -2
  55. package/{chunk-SKPPKHD3.js → chunk-J4S44CSW.js} +2 -2
  56. package/{chunk-KOB75UNU.js → chunk-JKXXZUO4.js} +18 -2
  57. package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
  58. package/{chunk-RUNKPFM5.js → chunk-JPSTJHGJ.js} +12 -8
  59. package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
  60. package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
  61. package/{chunk-TZTWMGE3.js → chunk-M2P3OGXZ.js} +3 -3
  62. package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
  63. package/{chunk-2MTE2PEH.js → chunk-MGSNS22D.js} +1 -1
  64. package/{chunk-FDT27L7S.js → chunk-MJKKEGF5.js} +8 -6
  65. package/{chunk-H4KACZMG.js → chunk-MNRZCEYU.js} +263 -128
  66. package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
  67. package/{chunk-6MPAEODB.js → chunk-NDZOXXIM.js} +17 -3
  68. package/{chunk-VAZHH6FO.js → chunk-NJTXRGCJ.js} +18 -12
  69. package/{chunk-G47IPDOK.js → chunk-NUE735UT.js} +1 -1
  70. package/{chunk-HKT6QXP3.js → chunk-O4KVUI4W.js} +2 -2
  71. package/{chunk-36OMEXXR.js → chunk-OON4OBWI.js} +1 -1
  72. package/{chunk-7A4LJCDR.js → chunk-OVQFMCVI.js} +4 -4
  73. package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
  74. package/{chunk-OH2M7WEU.js → chunk-PIYYH2LE.js} +3 -3
  75. package/{chunk-EM3YOZJ4.js → chunk-PKC7D6SX.js} +3 -3
  76. package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
  77. package/{chunk-TYND6RDQ.js → chunk-QI2WVWXV.js} +73 -2
  78. package/{chunk-IYBIRCQV.js → chunk-QOYJE6NX.js} +1 -1
  79. package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
  80. package/{chunk-XFKZ3MCV.js → chunk-R6ABE4UC.js} +223 -67
  81. package/{chunk-KX6LPG7W.js → chunk-RE5I35J7.js} +2 -2
  82. package/{chunk-VSOWPETY.js → chunk-RGYDJ352.js} +7 -7
  83. package/{chunk-D4OWHT5Y.js → chunk-SPKLALBU.js} +2 -2
  84. package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
  85. package/{chunk-6TF64IF2.js → chunk-U6TTTB6V.js} +16 -2
  86. package/{chunk-3XZKV7QQ.js → chunk-US6MKPE7.js} +1 -1
  87. package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
  88. package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
  89. package/{chunk-7BSQK2UC.js → chunk-WRCZXJ4N.js} +2 -2
  90. package/{chunk-ZEHTARJA.js → chunk-XEF4HW56.js} +42 -96
  91. package/chunk-Y5GCAMGP.js +9 -0
  92. package/{chunk-7KYVUFDG.js → chunk-YNCJYU4X.js} +2 -264
  93. package/{chunk-SCJD2PNK.js → chunk-YPG7TUQD.js} +3 -3
  94. package/{chunk-TJ2VPCBE.js → chunk-ZIGIN5IX.js} +2 -2
  95. package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
  96. package/{chunk-HP6O6LTV.js → chunk-ZVQHBIWV.js} +6 -6
  97. package/{commandRegistry-OUBQIF62.js → commandRegistry-ROBNQFWA.js} +79 -87
  98. package/{contentThunks-B3FRQGP7.js → contentThunks-EWOJGG2I.js} +17 -16
  99. package/{createAgentAutomationAction-T2YFJ6MY.js → createAgentAutomationAction-I43ICGXU.js} +17 -16
  100. package/{createDialogAction-2NFGFBXW.js → createDialogAction-IIAHRXND.js} +18 -17
  101. package/{createPageAction-LDAVZDN7.js → createPageAction-OVK7PG4L.js} +17 -16
  102. package/{dbSlice-5QGKMQLO.js → dbSlice-DC2J53RC.js} +6 -6
  103. package/{deleteFile-EW6QNRRT.js → deleteFile-KYWEMNFX.js} +4 -4
  104. package/{dialogCommands-ZLBEAQHE.js → dialogCommands-K4OVKDYD.js} +22 -21
  105. package/{dialogSlice-64S3J6CP.js → dialogSlice-U22CFPRN.js} +16 -15
  106. package/{docCreateCommands-XOG5BBFQ.js → docCreateCommands-GI377ZFI.js} +17 -17
  107. package/{docDeleteCommands-NCW3BBRX.js → docDeleteCommands-NBQNTVHB.js} +18 -18
  108. package/{docReadCommands-OT7X44Y3.js → docReadCommands-6SKEW6AO.js} +17 -17
  109. package/{docStore-NIP7OO4I.js → docStore-SS2QUBG6.js} +7 -7
  110. package/{docUpdateCommands-JW7OWW2J.js → docUpdateCommands-NJ7JD6VA.js} +17 -17
  111. package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
  112. package/{handleSendMessageAction-TOKA7ED7.js → handleSendMessageAction-YVPRHPQR.js} +30 -29
  113. package/index.js +7 -7
  114. package/{localRuntimeAdapter-EQM6LFYC.js → localRuntimeAdapter-CC7ZPJRV.js} +54 -52
  115. package/{machineCommands-WJ7FZ67T.js → machineCommands-XEWIUHTY.js} +58 -56
  116. package/{machineWsRunDispatch-BQT4DEA2.js → machineWsRunDispatch-JYEWCXGP.js} +53 -53
  117. package/{memberThunks-KRV5YXOB.js → memberThunks-2DWKLE6W.js} +7 -7
  118. package/package.json +1 -1
  119. package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
  120. package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-PKUOHQJT.js} +5 -5
  121. package/{providerRegistry-7IS43D3X.js → providerRegistry-HNQLIFN2.js} +5 -5
  122. package/{read-5KAZHHDM.js → read-L7QEJETH.js} +4 -4
  123. package/{readDocTool-5QO34OSX.js → readDocTool-QELXV2GW.js} +1 -1
  124. package/{readlineWorkspace-JHJSU5DS.js → readlineWorkspace-7MZPTN5U.js} +330 -117
  125. package/{removeDialogAgentAction-6X63HMI3.js → removeDialogAgentAction-376XSUP2.js} +8 -8
  126. package/{runAgentClientLoop-5QIGEALK.js → runAgentClientLoop-MLEVVWUH.js} +45 -40
  127. package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-HEN5IPIH.js} +4 -4
  128. package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
  129. package/{setDialogExtraReferencesAction-4MAYKKYW.js → setDialogExtraReferencesAction-QBDSH63D.js} +7 -7
  130. package/{setPrimaryDialogAgentAction-EGBAMREH.js → setPrimaryDialogAgentAction-537QFGW3.js} +8 -8
  131. package/settingThunks-4Z43ZSAT.js +923 -0
  132. package/{spaceCommands-ZWDPTURU.js → spaceCommands-UM3ZQKJU.js} +17 -17
  133. package/{streamAgentChatTurn-456DWXNY.js → streamAgentChatTurn-J7HYND6V.js} +48 -48
  134. package/{switchDialogAgentAction-YBKTD6DO.js → switchDialogAgentAction-CSO6AKRL.js} +6 -6
  135. package/{tableCommands-U3QDY4L6.js → tableCommands-LBH3QPPO.js} +1 -1
  136. package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
  137. package/{tools-IWNXKK4Y.js → tools-3CEH74XY.js} +34 -33
  138. package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-VSNIIH63.js} +6 -6
  139. package/{updateCommands-NQXAGFM7.js → updateCommands-LXZLG44Y.js} +2 -2
  140. package/{updateDialogTitleAction-SX53FZWO.js → updateDialogTitleAction-C557RTYG.js} +17 -16
  141. package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
  142. package/chunk-W4S6OTSC.js +0 -35
  143. package/settingThunks-FTDRZNSJ.js +0 -1371
@@ -607,7 +607,11 @@ function createDockerToolChannel(runGrant, backend) {
607
607
 
608
608
  export {
609
609
  SANDBOX_WORKSPACE_ROOT,
610
+ SANDBOX_HELPER_PATH,
610
611
  buildSandboxHelperUploadArgv,
612
+ SANDBOX_OUTPUT_LIMITS,
613
+ buildWorkspaceHelperSource,
614
+ parseToolOutput,
611
615
  buildPrimaryExecutionTicket,
612
616
  dockerExecutionToolNames,
613
617
  createDockerToolChannel
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-SKPPKHD3.js";
8
+ } from "./chunk-J4S44CSW.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-DW7MGLMG.js";
17
+ } from "./chunk-FUNTOSV3.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-XFKZ3MCV.js";
21
+ } from "./chunk-R6ABE4UC.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-VSOWPETY.js";
26
+ } from "./chunk-RGYDJ352.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-RUNKPFM5.js";
35
+ } from "./chunk-JPSTJHGJ.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -42,10 +42,10 @@ import {
42
42
  messageStreaming,
43
43
  toolResultNeedsUserConfirmation,
44
44
  updateToolMessage
45
- } from "./chunk-H4KACZMG.js";
45
+ } from "./chunk-MNRZCEYU.js";
46
46
  import {
47
47
  streamAgentChatTurn
48
- } from "./chunk-X5SUT4CN.js";
48
+ } from "./chunk-DD7BZWJ6.js";
49
49
  import {
50
50
  getCurrentSpaceId
51
51
  } from "./chunk-ZJ7UHBJS.js";
@@ -56,16 +56,16 @@ import {
56
56
  } from "./chunk-OWYYDMGJ.js";
57
57
  import {
58
58
  selectCurrentServer
59
- } from "./chunk-C5VPAHIU.js";
59
+ } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-HP6O6LTV.js";
62
+ } from "./chunk-ZVQHBIWV.js";
63
63
  import {
64
64
  createAsyncThunk
65
- } from "./chunk-7BSQK2UC.js";
65
+ } from "./chunk-WRCZXJ4N.js";
66
66
  import {
67
67
  selectIdentityToken
68
- } from "./chunk-SEJ5OS6F.js";
68
+ } from "./chunk-PXYBUFDB.js";
69
69
  import {
70
70
  classifyOutboundErrorCategory,
71
71
  createOutboundDiagnosticCall,
@@ -85,13 +85,13 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-6TF64IF2.js";
88
+ } from "./chunk-U6TTTB6V.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-ZWG3C7VI.js";
91
+ } from "./chunk-GB552UJS.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-2MTE2PEH.js";
94
+ } from "./chunk-MGSNS22D.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
@@ -105,7 +105,7 @@ import {
105
105
  } from "./chunk-5EMSBTQ6.js";
106
106
  import {
107
107
  getApiEndpoint
108
- } from "./chunk-TRW43TSC.js";
108
+ } from "./chunk-6EQD4AQL.js";
109
109
  import {
110
110
  isRecord
111
111
  } from "./chunk-KUG52IAP.js";
@@ -573,7 +573,10 @@ var processToolData = createAsyncThunk(
573
573
  const toolResult = await found.executor(executionToolArgs, thunkApi, {
574
574
  parentMessageId,
575
575
  toolRunId,
576
- agentKey
576
+ agentKey,
577
+ // 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
578
+ ...args.dialogId ? { dialogId: args.dialogId } : {},
579
+ origin: "chat"
577
580
  });
578
581
  const rawData = toolResult?.rawData ?? toolResult;
579
582
  const llmContext = asOptionalTrimmedString(toolResult?.llmContext);
@@ -750,7 +753,8 @@ var handleToolCalls = createAsyncThunk(
750
753
  toolCall: { ...toolCall, id: toolCallId },
751
754
  parentMessageId: messageId,
752
755
  toolRunId,
753
- agentKey: agentConfig.dbKey
756
+ agentKey: agentConfig.dbKey,
757
+ dialogId
754
758
  })
755
759
  ).unwrap();
756
760
  const toolName = result.toolName;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-VSOWPETY.js";
4
+ } from "./chunk-RGYDJ352.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-H4KACZMG.js";
7
+ } from "./chunk-MNRZCEYU.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -12,7 +12,7 @@ import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-6TF64IF2.js";
15
+ } from "./chunk-U6TTTB6V.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_AGENT_BASE_POLICY,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE
4
- } from "./chunk-HXHSTRGH.js";
4
+ } from "./chunk-VYNMQ6HW.js";
5
5
 
6
6
  // packages/ai/policy/runtimePolicy.ts
7
7
  var clampLevel = (value, fallback) => {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-C5VPAHIU.js";
3
+ } from "./chunk-32ZKZET7.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-HP6O6LTV.js";
6
+ } from "./chunk-ZVQHBIWV.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-6Q7UTJKR.js";
10
10
  import {
11
11
  selectIdentityToken
12
- } from "./chunk-SEJ5OS6F.js";
12
+ } from "./chunk-PXYBUFDB.js";
13
13
 
14
14
  // packages/ai/agent/cliChatClient.ts
15
15
  function getCliChatRequestConfig(thunkApi) {
@@ -2,7 +2,7 @@ import {
2
2
  DEVIN_CONNECT_URL,
3
3
  parseSseDataLineJson,
4
4
  parseSseDataLineObject
5
- } from "./chunk-3C2QLERX.js";
5
+ } from "./chunk-KMDDG73K.js";
6
6
  import {
7
7
  applyChatCompletionDelta,
8
8
  applyResponsesToolEvent,
@@ -11,7 +11,7 @@ import {
11
11
  flushChatCompletionStream,
12
12
  providerHttpFailure,
13
13
  throwIfChatCompletionStreamFailed
14
- } from "./chunk-L6EQV5OC.js";
14
+ } from "./chunk-4JOZECCA.js";
15
15
  import {
16
16
  readSseFrames
17
17
  } from "./chunk-HNUWUO75.js";
@@ -24,15 +24,14 @@ import {
24
24
  } from "./chunk-PWTNI4N7.js";
25
25
  import {
26
26
  hasImageInRuntimeMessages,
27
- resolveAgentContextWindow,
28
27
  stripImagePartsFromMessages
29
- } from "./chunk-ANJTRG52.js";
28
+ } from "./chunk-DFWLD7WU.js";
30
29
  import {
31
30
  clipToolText,
32
31
  resolveAgentImageInputSupport,
33
32
  resolveHistoricalToolContentCap,
34
33
  resolveToolOutputProfile
35
- } from "./chunk-IYBIRCQV.js";
34
+ } from "./chunk-QOYJE6NX.js";
36
35
  import {
37
36
  applyShapingCounts,
38
37
  attachProjectionFacts,
@@ -52,7 +51,9 @@ import {
52
51
  finalizeAccumulatedToolCalls
53
52
  } from "./chunk-56GBUMO5.js";
54
53
  import {
54
+ CREDENTIAL_HYGIENE_RULE,
55
55
  DELETE_SAFETY_RED_LINE,
56
+ DISPATCH_BACKEND_POLICY,
56
57
  PARALLEL_DISPATCH_DEFAULT_RULE,
57
58
  PLATFORM_RISK_CONTROL_RULE,
58
59
  TOOL_GUIDED_SECTION_ORDER,
@@ -63,8 +64,9 @@ import {
63
64
  detectDispatchIntentFromMessages,
64
65
  estimateContextTokens,
65
66
  hashStablePrefixContent,
67
+ resolveResponseGuidelines,
66
68
  resolveToolGuidedSections
67
- } from "./chunk-TYND6RDQ.js";
69
+ } from "./chunk-QI2WVWXV.js";
68
70
  import {
69
71
  classifyUnparsableToolArgs,
70
72
  collectStablePromptPrefix,
@@ -88,7 +90,7 @@ import {
88
90
  toOpenAiCompatibleMessages,
89
91
  toResponsesTools,
90
92
  transferDowngradedToolTurnOrigin
91
- } from "./chunk-6TF64IF2.js";
93
+ } from "./chunk-U6TTTB6V.js";
92
94
  import {
93
95
  BRIDGE_STREAM_MAX_CHARS,
94
96
  DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
@@ -114,10 +116,11 @@ import {
114
116
  normalizeUsage,
115
117
  readCacheCreationInputTokens,
116
118
  readCacheReadInputTokens,
119
+ resolveAgentContextWindow,
117
120
  resolveEmptyAssistantFallbackMessage,
118
121
  resolveEmptyAssistantOutcome,
119
122
  resolveTruncatedReasoningTailLog
120
- } from "./chunk-ZWG3C7VI.js";
123
+ } from "./chunk-GB552UJS.js";
121
124
  import {
122
125
  COMPACTION_SUMMARY_SCHEMA_VERSION,
123
126
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
@@ -140,7 +143,7 @@ import {
140
143
  sha256Hex,
141
144
  truncateToolOutputForContext,
142
145
  withProviderCallTimingFields
143
- } from "./chunk-2MTE2PEH.js";
146
+ } from "./chunk-MGSNS22D.js";
144
147
  import {
145
148
  clipCompactText
146
149
  } from "./chunk-5MMAK75Q.js";
@@ -173,7 +176,7 @@ import {
173
176
  import {
174
177
  buildProviderAuthHeaders,
175
178
  buildProviderExecutionPlan
176
- } from "./chunk-SUKSWFLP.js";
179
+ } from "./chunk-PIG2IUVZ.js";
177
180
  import {
178
181
  isRecord
179
182
  } from "./chunk-KUG52IAP.js";
@@ -18463,7 +18466,11 @@ async function executeToolCall(args2) {
18463
18466
  ...userInputText ? { userInput: userInputText } : {},
18464
18467
  ...input.runtimeContext ? { runtimeContext: input.runtimeContext } : {},
18465
18468
  ...args2.runToolNames ? { runToolNames: args2.runToolNames } : {},
18466
- ...input.abortSignal ? { abortSignal: input.abortSignal } : {}
18469
+ ...input.abortSignal ? { abortSignal: input.abortSignal } : {},
18470
+ // 定档信号:来源只由 turn 输入推导,不让模型/参数层参与。
18471
+ // 三级判据见 plan §10——后台运行优先于子 run(后台派发的子 run 仍是
18472
+ // 无人值守的,按 automation 报更保守)。
18473
+ origin: input.background ? "automation" : input.runKind === "subtask" ? "agent" : "chat"
18467
18474
  }, {
18468
18475
  ...input.abortSignal ? { abortSignal: input.abortSignal } : {},
18469
18476
  ...input.runtimeContext ? { runtimeContext: input.runtimeContext } : {}
@@ -19756,18 +19763,38 @@ async function runLocalAgentTurn(input) {
19756
19763
  input.contextBlocks,
19757
19764
  input.contextBlockScopes
19758
19765
  );
19766
+ const responseGuidelines = resolveResponseGuidelines(
19767
+ input.responseViewport ?? "unknown"
19768
+ );
19769
+ const responseGuidelineScopes = [
19770
+ { content: responseGuidelines.behavior, cacheScope: "session" },
19771
+ ...responseGuidelines.presentation.trim().length > 0 ? [
19772
+ {
19773
+ content: responseGuidelines.presentation,
19774
+ cacheScope: "session"
19775
+ }
19776
+ ] : []
19777
+ ];
19759
19778
  const mergedContextBlockScopes = [
19760
19779
  // 删除安全红线:系统层最高优先级约束,位于所有块之前(含身份信息块),
19761
19780
  // owner 要求常驻「根本提示词」的最顶部(2026-09-26 批量误删事故)。
19762
19781
  { content: DELETE_SAFETY_RED_LINE, cacheScope: "session" },
19782
+ // 凭据纪律:与红线同为系统层固定块,紧随其后(四条装配线同源)。
19783
+ { content: CREDENTIAL_HYGIENE_RULE, cacheScope: "session" },
19763
19784
  // 并行是默认:系统层固定块,紧随红线(localLoop 无 static 作用域,用 session 占位,
19764
19785
  // 「最顶」由数组首位保证——与红线同一约定)。
19765
19786
  { content: PARALLEL_DISPATCH_DEFAULT_RULE, cacheScope: "session" },
19787
+ // 派发落点:并行派发纪律的下一层(派到哪个执行后端),沿用 session 占位约定。
19788
+ { content: DISPATCH_BACKEND_POLICY, cacheScope: "session" },
19766
19789
  // 平台风控纪律:无条件系统层块,沿用 session 占位约定。
19767
19790
  { content: PLATFORM_RISK_CONTROL_RULE, cacheScope: "session" },
19768
19791
  { content: buildConsultationModeBlock(), cacheScope: "session" },
19769
19792
  { content: identityBlock, cacheScope: "session" },
19770
19793
  ...guidanceScopes,
19794
+ // 回复行为准则:local 线(CLI 非交互 / 桌面 / TUI)的唯一注入边界。
19795
+ // 行为段恒注入;排版段只在宿主声明了可确认的展示能力时追加一份
19796
+ // (unknown = 拿不到视口信息,不得猜成宽屏或窄屏)。两块同属 session scope。
19797
+ ...responseGuidelineScopes,
19771
19798
  ...callerScopes
19772
19799
  ];
19773
19800
  loopTiming.mark("buildContextBlocks", 0);
@@ -21677,7 +21704,7 @@ function buildLoadSkillExecutor(args2) {
21677
21704
  const { resolveSkillByName } = await import("./skillDiscovery-QC35EQY4.js");
21678
21705
  const resolved = resolveSkillByName(args2.cwd, name);
21679
21706
  if (!resolved) {
21680
- const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-A6VSPJEJ.js");
21707
+ const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-H3AY27TR.js");
21681
21708
  const builtin = resolveBuiltinSkillByName(name);
21682
21709
  if (builtin) {
21683
21710
  return {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-UAD2WT54.js";
8
8
  import {
9
9
  toTimestampMs
10
- } from "./chunk-HP6O6LTV.js";
10
+ } from "./chunk-ZVQHBIWV.js";
11
11
  import {
12
12
  fetchFromServer,
13
13
  getAllServers
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  selectIdentityToken,
17
17
  selectIdentityUserId
18
- } from "./chunk-SEJ5OS6F.js";
18
+ } from "./chunk-PXYBUFDB.js";
19
19
  import {
20
20
  isTombstoneRecord
21
21
  } from "./chunk-D2MDMY2M.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-XFKZ3MCV.js";
3
+ } from "./chunk-R6ABE4UC.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-H4KACZMG.js";
6
+ } from "./chunk-MNRZCEYU.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-5EBLANFT.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-NBTY7YJF.js";
6
6
  import {
7
7
  resolveCliLocalRuntimeKeyCapability
8
- } from "./chunk-XFKZ3MCV.js";
8
+ } from "./chunk-R6ABE4UC.js";
9
9
  import {
10
10
  HIGH_RISK_MUTATION_TOOL_NAMES
11
11
  } from "./chunk-QLQ573SU.js";
@@ -150,7 +150,7 @@ function writeUsage(output, commandPath) {
150
150
  return;
151
151
  }
152
152
  output.write(
153
- "Usage: nolo agent run <agent> <message> [--local|--server|--auto] [--runtime-key <key>] [--ephemeral|--memory-only] [--continue <dialogId>] [--cwd <path>]\n nolo agent run --agent <agent> (--msg <message>|--msg-file <path>) [--image <url-or-path>] [--space <spaceId>] [--category <name>] [--inherit-from-dialog <dialog>] [--parent-dialog <dialog>] [--subject-dialog <dialog>] [--subject-ref <kind:id[:role]>] [--task-row-dbkey <key>] [--fallback-agent <agent>] (suggestions for agent to decide on quota) [--allowed-tool <tool>] [--blocked-tool <tool>] [--read-only] [--runtime-key <key>] [--machine-shell] [--dod <cmd>] [--bg] [--timeout-ms <n>] [--events jsonl] [--no-stream] [--skill <dbKey-or-md-path>]\n"
153
+ "Usage: nolo agent run <agent> <message> [--local|--server|--auto] [--runtime-key <key>] [--docker-workspace-mode git|empty] [--ephemeral|--memory-only] [--continue <dialogId>] [--cwd <path>]\n nolo agent run --agent <agent> (--msg <message>|--msg-file <path>) [--image <url-or-path>] [--space <spaceId>] [--category <name>] [--inherit-from-dialog <dialog>] [--parent-dialog <dialog>] [--subject-dialog <dialog>] [--subject-ref <kind:id[:role]>] [--task-row-dbkey <key>] [--fallback-agent <agent>] (suggestions for agent to decide on quota) [--allowed-tool <tool>] [--blocked-tool <tool>] [--read-only] [--runtime-key <key>] [--docker-workspace-mode git|empty] [--machine-shell] [--dod <cmd>] [--bg] [--timeout-ms <n>] [--events jsonl] [--no-stream] [--skill <dbKey-or-md-path>]\n"
154
154
  );
155
155
  }
156
156
  function parseAgentRunArgs(args, options = {}) {
@@ -166,6 +166,21 @@ function parseAgentRunArgs(args, options = {}) {
166
166
  const message = rawMessage.trim();
167
167
  const rawRuntimeKey = readFlagValue(args, "--runtime-key");
168
168
  const runtimeKey = rawRuntimeKey?.trim();
169
+ const rawDockerWorkspaceMode = readFlagValue(args, "--docker-workspace-mode")?.trim();
170
+ if (args.includes("--docker-workspace-mode") && rawDockerWorkspaceMode !== "git" && rawDockerWorkspaceMode !== "empty") {
171
+ throw new Error("--docker-workspace-mode \u5FC5\u987B\u662F git \u6216 empty");
172
+ }
173
+ const dockerWorkspaceMode = rawDockerWorkspaceMode;
174
+ if (dockerWorkspaceMode && !/^docker(:.+)?$/.test(runtimeKey ?? "")) {
175
+ throw new Error("--docker-workspace-mode \u4EC5\u9002\u7528\u4E8E --runtime-key docker[:runtimeId]");
176
+ }
177
+ const dockerWorkspaceModeRuntimeMode = runtimeModeFromArgs(args);
178
+ const dockerWorkspaceModeImplicitLocal = !dockerWorkspaceModeRuntimeMode && (isFullstackCodingAgentRef(rawAgentKey, agentKey) || isLocalCliAgentKey(agentKey) || args.includes("--dangerously-allow-shell"));
179
+ if (dockerWorkspaceMode && dockerWorkspaceModeRuntimeMode !== "local" && !dockerWorkspaceModeImplicitLocal) {
180
+ throw new Error(
181
+ "--docker-workspace-mode \u9700\u8981\u672C\u673A\u6267\u884C\u8DEF\u5F84\uFF1A\u4E0D\u5E26 --local \u65F6 runtimeMode \u89E3\u6790\u4E3A auto\uFF0C\u8BE5\u53C2\u6570\u4F1A\u88AB\u9759\u9ED8\u4E22\u5F03\u5E76\u6539\u8D70\u670D\u52A1\u7AEF\u6D3E\u53D1\u3002\u8BF7\u52A0 --local\uFF1B\u9690\u5F0F local\uFF08fullstack / local-cli agent / --dangerously-allow-shell\uFF09\u540C\u6837\u88AB\u63A5\u53D7\u3002"
182
+ );
183
+ }
169
184
  if (args.includes("--runtime-key") && !runtimeKey) {
170
185
  throw new Error(
171
186
  "runtimeKey \u5FC5\u987B\u662F\u975E\u7A7A\u7684 listRuntimes key\uFF08local | server | machine:<machineId> | docker | docker:<runtimeId> | instabox | gcp\uFF09"
@@ -244,6 +259,7 @@ function parseAgentRunArgs(args, options = {}) {
244
259
  } : {},
245
260
  ...runtimeMode ? { runtimeMode } : !runtimeKey && (fullstackLocalWorkspaceDefault || explicitLocalCliAgentDefault || args.includes("--dangerously-allow-shell")) ? { runtimeMode: "local" } : {},
246
261
  ...runtimeKey ? { runtimeKey } : {},
262
+ ...dockerWorkspaceMode ? { dockerWorkspaceMode } : {},
247
263
  background: args.includes("--bg"),
248
264
  noStream: args.includes("--no-stream"),
249
265
  machineShell: args.includes("--machine-shell"),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-SUKSWFLP.js";
3
+ } from "./chunk-PIG2IUVZ.js";
4
4
  import {
5
5
  getCredentialsDir
6
6
  } from "./chunk-ZWQUWF6W.js";
@@ -5,24 +5,24 @@ import {
5
5
  normalizePolicyLevelSetting,
6
6
  normalizeSystemBuiltinSkills,
7
7
  normalizeTonePresetSetting
8
- } from "./chunk-HXHSTRGH.js";
8
+ } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-VAZHH6FO.js";
11
+ } from "./chunk-NJTXRGCJ.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
15
15
  import {
16
16
  createAsyncThunk,
17
17
  createSelector
18
- } from "./chunk-7BSQK2UC.js";
18
+ } from "./chunk-WRCZXJ4N.js";
19
19
  import {
20
20
  selectIdentityUserId
21
- } from "./chunk-SEJ5OS6F.js";
21
+ } from "./chunk-PXYBUFDB.js";
22
22
  import {
23
23
  resolveBuiltinCapability,
24
24
  resolveBuiltinSkillEntry
25
- } from "./chunk-4Z245KOA.js";
25
+ } from "./chunk-DC3SZCRR.js";
26
26
  import {
27
27
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
28
28
  } from "./chunk-EUGTFFO6.js";
@@ -287,7 +287,11 @@ var MODES = [
287
287
  var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
288
288
  "worktree-isolation",
289
289
  "systematic-investigation",
290
- "show-me"
290
+ "show-me",
291
+ // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
292
+ // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
293
+ // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
294
+ "secrets-manager"
291
295
  ];
292
296
  var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
293
297
  var resolveAgentSkillConfig = (source) => {
@@ -517,7 +521,7 @@ var executeToolRun = createAsyncThunk(
517
521
  if (!executionInput) {
518
522
  throw new Error(`ToolRun ${id} has no input to execute with.`);
519
523
  }
520
- const { findToolExecutor } = await import("./tools-IWNXKK4Y.js");
524
+ const { findToolExecutor } = await import("./tools-3CEH74XY.js");
521
525
  const { executor } = findToolExecutor(run.toolName);
522
526
  toolRunStarted({
523
527
  id: run.id,
@@ -541,7 +545,7 @@ var executeToolRun = createAsyncThunk(
541
545
  const latestState = thunkApi.getState();
542
546
  const userId = selectIdentityUserId(latestState);
543
547
  if (userId) {
544
- const { fetchUserSpaceMemberships } = await import("./memberThunks-KRV5YXOB.js");
548
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-2DWKLE6W.js");
545
549
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
546
550
  }
547
551
  }
@@ -3,7 +3,7 @@ import {
3
3
  isCoreDrainingBody,
4
4
  normalizeNonNegativeMs,
5
5
  parseRetryAfterHeaderMs
6
- } from "./chunk-XPWGOTBQ.js";
6
+ } from "./chunk-3L2WKC3W.js";
7
7
  import {
8
8
  toErrorMessage
9
9
  } from "./chunk-HNMXYYJR.js";
@@ -5,7 +5,7 @@ import {
5
5
  getAntigravityUserAgent,
6
6
  readAntigravityProjectId,
7
7
  resolveAntigravityCloudCodeBaseUrl
8
- } from "./chunk-JGRPBIZZ.js";
8
+ } from "./chunk-SQX235S2.js";
9
9
  import {
10
10
  asOptionalTrimmedString
11
11
  } from "./chunk-G3SUCT4W.js";
@@ -4,14 +4,14 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-HP6O6LTV.js";
7
+ } from "./chunk-ZVQHBIWV.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-Z6KQDSZW.js";
11
+ } from "./chunk-2SGAI64X.js";
12
12
  import {
13
13
  selectIdentityUserId
14
- } from "./chunk-SEJ5OS6F.js";
14
+ } from "./chunk-PXYBUFDB.js";
15
15
 
16
16
  // packages/create/space/utils/permissions.ts
17
17
  var checkSpaceMembership = (spaceData, userId) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelPricing
3
- } from "./chunk-YANF2RR4.js";
3
+ } from "./chunk-ZPKUJROL.js";
4
4
  import {
5
5
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
6
6
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-M2EJHDJP.js";
24
24
  import {
25
25
  getModelConfig
26
- } from "./chunk-TRW43TSC.js";
26
+ } from "./chunk-6EQD4AQL.js";
27
27
  import {
28
28
  isRecord
29
29
  } from "./chunk-KUG52IAP.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-PSCNXBYA.js";
4
4
  import {
5
5
  MODEL_LOOKUP_MAP
6
- } from "./chunk-TRW43TSC.js";
6
+ } from "./chunk-6EQD4AQL.js";
7
7
  import {
8
8
  ALL_MODELS
9
9
  } from "./chunk-FYYSDHVQ.js";
@@ -7,15 +7,17 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-G47IPDOK.js";
10
+ } from "./chunk-NUE735UT.js";
11
+ import {
12
+ parsePositiveFiniteNumberOrFallback
13
+ } from "./chunk-Y5GCAMGP.js";
11
14
  import {
12
15
  fetchWithTransientRetry
13
- } from "./chunk-I2ZMGXXF.js";
16
+ } from "./chunk-KFHREHUQ.js";
14
17
  import {
15
18
  DRAIN_EXHAUSTED_USER_MESSAGE,
16
- isDrainExhaustedResponse,
17
- parsePositiveFiniteNumberOrFallback
18
- } from "./chunk-XPWGOTBQ.js";
19
+ isDrainExhaustedResponse
20
+ } from "./chunk-3L2WKC3W.js";
19
21
  import {
20
22
  buildDialogAttachmentPlan,
21
23
  extractFileContentIds
@@ -40,7 +42,7 @@ import {
40
42
  } from "./chunk-I42VC5KR.js";
41
43
  import {
42
44
  resolveRunsDir
43
- } from "./chunk-MM3662RS.js";
45
+ } from "./chunk-42W7LKBM.js";
44
46
  import {
45
47
  isRecord
46
48
  } from "./chunk-KUG52IAP.js";