nolo-cli 0.32.0 → 0.33.0-alpha.3

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 (170) hide show
  1. package/README.md +6 -12
  2. package/{_executeModel-LTMSIBS4.js → _executeModel-RWPVI3YV.js} +76 -67
  3. package/{action-HI3VRQLP.js → action-SMLG6OTB.js} +17 -15
  4. package/{addContentAction-NCURJ6PK.js → addContentAction-SFO244QN.js} +14 -13
  5. package/{addDialogAgentAction-RCY4ECF4.js → addDialogAgentAction-W44ZCEHB.js} +14 -13
  6. package/{agentDeleteCommand-D3MYZK6E.js → agentDeleteCommand-KU2RXQPP.js} +42 -59
  7. package/{agentEmailCommands-6BXS574I.js → agentEmailCommands-MPCMDENS.js} +89 -80
  8. package/{agentGrantCommands-E7ZZFRHK.js → agentGrantCommands-2LEZDADN.js} +2 -2
  9. package/{agentListCommands-SF3HEUTT.js → agentListCommands-EPD4N6FX.js} +73 -78
  10. package/{agentMachineCommands-YARVXRR6.js → agentMachineCommands-AF7C3YRT.js} +40 -57
  11. package/{agentPullCommand-ARSIDNVC.js → agentPullCommand-YH5GEBK4.js} +5 -5
  12. package/agentRecordCommands-EYE6MZZG.js +112 -0
  13. package/agentRunCommand-LL22SGTN.js +130 -0
  14. package/{agentRuntimeLocal-ATGJY6WC.js → agentRuntimeLocal-JX34G47Z.js} +35 -50
  15. package/{agentSlice-4XWW344Y.js → agentSlice-TNMFQQOV.js} +15 -13
  16. package/{appDeleteCommands-63JO7RXS.js → appDeleteCommands-43K5VXQB.js} +38 -55
  17. package/{appDeployCommands-Y7EWYUGM.js → appDeployCommands-FEEJSVDZ.js} +38 -55
  18. package/{appDeployStatusCommands-ZBEY3DWB.js → appDeployStatusCommands-H76CG45R.js} +38 -55
  19. package/{appGetCommands-QSSOSEYL.js → appGetCommands-MDZYFTYZ.js} +38 -55
  20. package/{appListCommands-PH3XWNDX.js → appListCommands-TUJJXPWG.js} +38 -55
  21. package/{authCommand-BBDHMSO6.js → authCommand-T7UK4CWS.js} +18 -18
  22. package/{authCommands-4UDEKRE6.js → authCommands-EAPFGNHN.js} +8 -8
  23. package/chatQueueReduxAdapter-LVQXC4ZY.js +180 -0
  24. package/chunk-2H3XIBY4.js +239 -0
  25. package/{chunk-TEYN42N3.js → chunk-2IVEXF7P.js} +11 -4
  26. package/{chunk-WTGCTVJG.js → chunk-2QTEYCR7.js} +3 -6
  27. package/{chunk-DOISARTV.js → chunk-2UECQ7RE.js} +1 -1
  28. package/{chunk-SWYMCHM7.js → chunk-37V5LNEQ.js} +69 -1
  29. package/{chunk-E3APEOIM.js → chunk-3GZXL6FM.js} +4 -19
  30. package/{chunk-O3JR45Q2.js → chunk-3VAQHAXT.js} +44 -44
  31. package/{chunk-O5OMJPPF.js → chunk-3WXRAHCG.js} +6 -5
  32. package/{chunk-LAXMH7JY.js → chunk-57QJXIB6.js} +18 -15
  33. package/chunk-5CS33IBL.js +301 -0
  34. package/{chunk-3UGKATZQ.js → chunk-5SBK2MTI.js} +8 -369
  35. package/chunk-6PO2SYCS.js +1800 -0
  36. package/{chunk-TA6EA2A3.js → chunk-6SXC35F4.js} +182 -20
  37. package/{chunk-MXFQHRSS.js → chunk-6XIE5ZGI.js} +1 -1
  38. package/{chunk-3GZT3L6F.js → chunk-73GINUCW.js} +326 -481
  39. package/{chunk-VMWR7VNI.js → chunk-7E72JMBB.js} +7 -7
  40. package/{chunk-4PNU7W7K.js → chunk-AAGCMVFT.js} +106 -124
  41. package/chunk-ADLYMQB6.js +642 -0
  42. package/{chunk-ZWJOGMKH.js → chunk-AETZ7AD6.js} +1 -1
  43. package/{chunk-UDA3ZYLW.js → chunk-AFV4FOT2.js} +70 -24
  44. package/{chunk-BGTUGS3T.js → chunk-AOXVOC6D.js} +4 -30
  45. package/{chunk-2ZRP5RUG.js → chunk-B2BSG6QQ.js} +12 -11
  46. package/{chunk-44HACRCK.js → chunk-BANYWEYY.js} +4 -4
  47. package/{chunk-TOW4E763.js → chunk-BJIRLHJR.js} +2 -0
  48. package/{chunk-ZJ2WITOO.js → chunk-BQXOGBFN.js} +2 -2
  49. package/{chunk-G5GVZAXF.js → chunk-CLP2K7U4.js} +15 -19
  50. package/{chunk-2K4NDPT5.js → chunk-DFUPZE6V.js} +20 -12
  51. package/{chunk-YHGHADBQ.js → chunk-DPMBNHOJ.js} +4 -4
  52. package/chunk-EGRJC4ZN.js +91 -0
  53. package/{chunk-K6QEHQZ3.js → chunk-EKLRRZIN.js} +1 -1
  54. package/{chunk-XFG3BAKN.js → chunk-FMEVI5TG.js} +65 -0
  55. package/{chunk-RH53LMEJ.js → chunk-FSSX3XRY.js} +2 -4
  56. package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
  57. package/{chunk-EEF23OOK.js → chunk-GMXWYXAF.js} +7 -7
  58. package/{chunk-SFWZUTCI.js → chunk-GTYM4HKV.js} +1 -1
  59. package/{chunk-MITD7CON.js → chunk-HDKRSRYU.js} +1461 -301
  60. package/chunk-HS7MLR74.js +38 -0
  61. package/{chunk-3AUWC6EM.js → chunk-HUCT7HID.js} +5 -84
  62. package/{chunk-PTHDLIRB.js → chunk-I6N2UVVY.js} +1 -1
  63. package/chunk-IDAU4UFS.js +437 -0
  64. package/{chunk-Q76I4SXI.js → chunk-IHEC7VBF.js} +1 -1
  65. package/{chunk-OWHNFZNW.js → chunk-IL545V3E.js} +4 -4
  66. package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
  67. package/{chunk-CF2WZF4N.js → chunk-J6WH4PYZ.js} +0 -8
  68. package/{chunk-2HXKAPH7.js → chunk-JMPYDFHY.js} +6 -6
  69. package/{chunk-V54H24CQ.js → chunk-JTSGWTYZ.js} +3 -3
  70. package/{chunk-ATK5WJOA.js → chunk-JZ5AMMXU.js} +4 -4
  71. package/chunk-KHCLMKZZ.js +3062 -0
  72. package/{chunk-WHLVPK32.js → chunk-KMSZPTM6.js} +27 -3
  73. package/{chunk-L3GCUVOH.js → chunk-KSRFVP36.js} +1 -1
  74. package/{chunk-DLWCWUNW.js → chunk-LOD75GOS.js} +336 -32
  75. package/{chunk-UOJRKY5J.js → chunk-M2YMQOLC.js} +44 -53
  76. package/chunk-M3JEW6N6.js +193 -0
  77. package/{chunk-XDHHF73Q.js → chunk-M4NC7NF6.js} +95 -95
  78. package/{chunk-3FCNXC2J.js → chunk-MPZJVZDC.js} +3735 -1394
  79. package/{chunk-IXZX5CJK.js → chunk-MQRZ5QUH.js} +1 -1
  80. package/{chunk-3ASDTTEI.js → chunk-MRWGHF56.js} +2 -0
  81. package/{chunk-D34RI6NI.js → chunk-NNWHHCVP.js} +75 -1
  82. package/{chunk-6YABCOFU.js → chunk-NUO3QFWD.js} +1 -1
  83. package/{chunk-GAF5X6B7.js → chunk-O6GEBMIY.js} +269 -309
  84. package/{chunk-CAENRKNJ.js → chunk-OR2HNLVO.js} +126 -88
  85. package/chunk-OW765XBU.js +10 -0
  86. package/chunk-PREQU5QV.js +231 -0
  87. package/{chunk-Q3CSL43H.js → chunk-Q5ITEGIN.js} +1 -1
  88. package/{chunk-7S54ZGF6.js → chunk-RAZOLMJR.js} +256 -12
  89. package/chunk-RCFIB45Q.js +28 -0
  90. package/chunk-RY57GLGW.js +188 -0
  91. package/{chunk-KGEVMUMI.js → chunk-TFPUAELY.js} +11 -11
  92. package/{chunk-ZJH3LKEW.js → chunk-UK5JGQVU.js} +94 -15
  93. package/chunk-URMS4XY2.js +10 -0
  94. package/{chunk-RXVX5LFR.js → chunk-VH2F7ZB6.js} +1 -1
  95. package/chunk-VIDPVFP3.js +20 -0
  96. package/{chunk-W367V5CH.js → chunk-WHD6BG7M.js} +400 -115
  97. package/{chunk-5RDLGLAP.js → chunk-WJSW43QZ.js} +4 -7
  98. package/{chunk-CF7S2RYZ.js → chunk-WLH5BAKX.js} +6 -6
  99. package/{chunk-VVEH6XUE.js → chunk-X2DAEZ3X.js} +1 -1
  100. package/{chunk-2IJAKBK2.js → chunk-X664KVEV.js} +426 -246
  101. package/{chunk-43EPBPZ2.js → chunk-XCCGU6QB.js} +2 -2
  102. package/chunk-Y5GCAMGP.js +9 -0
  103. package/{chunk-V42OE5HT.js → chunk-YDTYDA5W.js} +3 -3
  104. package/chunk-YYLHWIW6.js +48 -0
  105. package/{chunk-AOS5IN2I.js → chunk-ZHYK3N56.js} +1 -1
  106. package/{chunk-ODS2MVMU.js → chunk-ZJMME4DS.js} +19 -303
  107. package/{chunk-PJ2DDQQM.js → chunk-ZURFOV5J.js} +2 -2
  108. package/chunk-ZZ2MH7LE.js +84 -0
  109. package/{cliExecutor-BBUVQU4L.js → cliExecutor-DW3PHGEL.js} +2 -2
  110. package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
  111. package/{codingSkills-V35TRR4Y.js → codingSkills-DY5MINPG.js} +5 -4
  112. package/{createAgentAutomationAction-WLRNE7C4.js → createAgentAutomationAction-INQT23LX.js} +40 -31
  113. package/createDialogAction-LDCPDI73.js +60 -0
  114. package/{createPageAction-7YROVZ3W.js → createPageAction-5YXOG2M4.js} +56 -47
  115. package/{db-6DPSJ6WT.js → db-3H3JECGY.js} +45 -5
  116. package/{dbSlice-BBL3PEVW.js → dbSlice-3SD5L5H2.js} +13 -12
  117. package/{deleteFile-RJTEPOT4.js → deleteFile-XQXPBFFB.js} +7 -6
  118. package/dialogCommands-CHJO47AX.js +81 -0
  119. package/{dialogSlice-N4HPG6HM.js → dialogSlice-DOWKOILN.js} +36 -29
  120. package/{docCreateCommands-GRA5BHSA.js → docCreateCommands-OVZARUFX.js} +40 -55
  121. package/{docDeleteCommands-ONIJM5MD.js → docDeleteCommands-E2XJ62LD.js} +42 -57
  122. package/{docReadCommands-H55VQ2US.js → docReadCommands-I7OSREPJ.js} +40 -55
  123. package/{docStore-B5AHDNW5.js → docStore-UAWSKZ2Y.js} +39 -30
  124. package/{docUpdateCommands-ZQIQVGC2.js → docUpdateCommands-X4Z26VJM.js} +43 -58
  125. package/{fetchMessages-VPPQDDZ4.js → fetchMessages-7QRCCRYK.js} +3 -3
  126. package/{getPricing-QO5TYNCK.js → getPricing-L2ENXWHV.js} +7 -6
  127. package/{handleSendMessageAction-IN5XX5U7.js → handleSendMessageAction-C3TSDWKH.js} +38 -31
  128. package/index.js +67 -67
  129. package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
  130. package/{localDialogRead-3DBXVYXS.js → localDialogRead-SLMPV5SK.js} +2 -2
  131. package/{localRuntimeAuthority-NDUA2D7Y.js → localRuntimeAuthority-E3R24J4T.js} +4 -2
  132. package/{localRuntimeDb-GKYRBWLQ.js → localRuntimeDb-DDZCJFQZ.js} +1 -1
  133. package/{machineCommands-H3UMKE76.js → machineCommands-BUOIYJAD.js} +93 -84
  134. package/{machineWsRunDispatch-HONRUK3R.js → machineWsRunDispatch-7CRWAA6O.js} +83 -74
  135. package/{models-WDUTTYFS.js → models-OX2S5C6Q.js} +2 -2
  136. package/{offlineMarxistsAgentCommand-E6LUG63A.js → offlineMarxistsAgentCommand-GEH6SNNA.js} +1 -1
  137. package/package.json +1 -4
  138. package/{read-64OQDO3I.js → read-6G73BMEY.js} +8 -7
  139. package/{readDocTool-MXM3T6PE.js → readDocTool-DK4EI2GA.js} +1 -2
  140. package/{readlineWorkspace-XVJZDCSC.js → readlineWorkspace-ZDWEASJV.js} +265 -428
  141. package/{removeDialogAgentAction-NEKVAMSH.js → removeDialogAgentAction-E7H557UO.js} +19 -17
  142. package/{runAgentClientLoop-H7U53QB6.js → runAgentClientLoop-U7HYA3O5.js} +72 -64
  143. package/{runtimeDoctorCommands-WI2YZUSJ.js → runtimeDoctorCommands-KIKM6BIO.js} +5 -5
  144. package/{setDialogExtraReferencesAction-WTOHQDIV.js → setDialogExtraReferencesAction-RMMGBR5F.js} +15 -14
  145. package/{setPrimaryDialogAgentAction-LDJOYC4F.js → setPrimaryDialogAgentAction-FWBKKLVA.js} +19 -17
  146. package/{settingSlice-4M37TN7V.js → settingSlice-73PV4KG4.js} +16 -14
  147. package/{skillDiscovery-5U6RYAHN.js → skillDiscovery-KLLKXPUO.js} +4 -4
  148. package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
  149. package/{spaceCommands-7VVKJBDV.js → spaceCommands-GEWZXGHM.js} +43 -240
  150. package/{spaceSlice-T6YK6D34.js → spaceSlice-B6MOVY4N.js} +38 -61
  151. package/{streamAgentChatTurn-RQ63QFQ7.js → streamAgentChatTurn-T527EQTT.js} +1261 -150
  152. package/{switchDialogAgentAction-XVWGKR2Z.js → switchDialogAgentAction-US6QNL3N.js} +14 -13
  153. package/syncMapping-RK2MANUX.js +43 -0
  154. package/{tableCommands-RJZ3V4TF.js → tableCommands-QE47K72R.js} +8 -7
  155. package/{toolApiClient-ARGFDJAG.js → toolApiClient-B2MFXMEG.js} +3 -3
  156. package/tools-XMWCVMPM.js +98 -0
  157. package/{tuiSummaryLlmCaller-SRZ4QQUP.js → tuiSummaryLlmCaller-NCAJSVSD.js} +24 -21
  158. package/{updateDialogTitleAction-BBDSWHNG.js → updateDialogTitleAction-XPJZRJEL.js} +48 -38
  159. package/agentRecordCommands-JFZRQJQ4.js +0 -103
  160. package/agentRunCommand-NOX5FLKO.js +0 -121
  161. package/chunk-AYMOSAHE.js +0 -3158
  162. package/chunk-D2BPX6DQ.js +0 -1707
  163. package/chunk-DCDL3GC4.js +0 -171
  164. package/chunk-F3MP7CP6.js +0 -73
  165. package/chunk-WZSRQNQG.js +0 -2587
  166. package/createDialogAction-Y6YV64QB.js +0 -52
  167. package/dialogCommands-XLO5CAHZ.js +0 -95
  168. package/tools-KYZX3BGO.js +0 -90
  169. package/{chunk-Z5MXSEOJ.js → chunk-RQSOAMPJ.js} +2 -2
  170. package/{chunk-JDSUTNYY.js → chunk-SAQQLJZ5.js} +3 -3
@@ -1,7 +1,38 @@
1
+ import {
2
+ getLocalProviderSecret
3
+ } from "./chunk-HS7MLR74.js";
1
4
  import {
2
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
3
6
  isAntigravityOAuthAgent
4
- } from "./chunk-YHGHADBQ.js";
7
+ } from "./chunk-DPMBNHOJ.js";
8
+ import {
9
+ clipMultilineText,
10
+ fetchAndSerializeTable,
11
+ resolveBuiltinSkillPage,
12
+ waitForAbortableDelay
13
+ } from "./chunk-HDKRSRYU.js";
14
+ import {
15
+ createDrainExhaustedResponse,
16
+ isCoreDrainingBody,
17
+ isGatewayHttpStatus,
18
+ normalizeNonNegativeMs,
19
+ parseRetryAfterHeaderMs
20
+ } from "./chunk-RQSOAMPJ.js";
21
+ import {
22
+ slateToSimplifiedMarkdown
23
+ } from "./chunk-37V5LNEQ.js";
24
+ import {
25
+ extractCategorizedMentions
26
+ } from "./chunk-GM6PU7B6.js";
27
+ import {
28
+ fetchAndCacheMessages
29
+ } from "./chunk-73GINUCW.js";
30
+ import {
31
+ shouldUseServerProxy
32
+ } from "./chunk-YYLHWIW6.js";
33
+ import {
34
+ fetchServerSyncedCredential
35
+ } from "./chunk-ZJMME4DS.js";
5
36
  import {
6
37
  buildCurrentTimeBlock,
7
38
  buildIdentityBlock,
@@ -9,81 +40,77 @@ import {
9
40
  requiresBareImageUrl,
10
41
  resolveToolGuidedSections,
11
42
  toBareImageUrlMessages
12
- } from "./chunk-3UGKATZQ.js";
43
+ } from "./chunk-5SBK2MTI.js";
13
44
  import {
14
45
  convertMessagesToResponsesInput,
46
+ getUsageRequestOptions,
15
47
  preserveAgentStateFields
16
- } from "./chunk-D34RI6NI.js";
48
+ } from "./chunk-NNWHHCVP.js";
17
49
  import {
18
50
  buildProviderAuthHeaders,
19
51
  isOpenAiResponsesModel,
20
52
  resolvePlatformChatCompletionsEndpoint,
21
53
  resolvePlatformResponsesEndpoint
22
- } from "./chunk-UDA3ZYLW.js";
54
+ } from "./chunk-AFV4FOT2.js";
23
55
  import {
24
- MEMORY_USE_GUIDANCE,
25
- wrapHistoricalSummaryWithReplayGuard
26
- } from "./chunk-XFG3BAKN.js";
56
+ estimateTokenCount
57
+ } from "./chunk-AOXVOC6D.js";
27
58
  import {
28
- waitForAbortableDelay
29
- } from "./chunk-MITD7CON.js";
59
+ clampReasoningEffort,
60
+ getModelConfig,
61
+ isModelSupportReasoningEffort
62
+ } from "./chunk-DFUPZE6V.js";
30
63
  import {
31
- createDrainExhaustedResponse,
32
- isCoreDrainingBody,
33
- isGatewayHttpStatus,
34
- normalizeNonNegativeMs,
35
- parseRetryAfterHeaderMs
36
- } from "./chunk-Z5MXSEOJ.js";
64
+ createFileCredentialBroker
65
+ } from "./chunk-5CS33IBL.js";
37
66
  import {
38
- resolveBuiltinSkillPage
39
- } from "./chunk-D2BPX6DQ.js";
67
+ MEMORY_USE_GUIDANCE,
68
+ buildUserResponseLanguageContext,
69
+ wrapHistoricalSummaryWithReplayGuard
70
+ } from "./chunk-FMEVI5TG.js";
40
71
  import {
41
- shouldUseServerProxy
42
- } from "./chunk-3GZT3L6F.js";
72
+ buildSkillGuidancePromptBlock,
73
+ extractRuntimePageCapabilities,
74
+ resolveSkillGraphFromRoots
75
+ } from "./chunk-HUCT7HID.js";
43
76
  import {
44
- estimateTokenCount
45
- } from "./chunk-BGTUGS3T.js";
46
- import {
47
- createFileCredentialBroker,
48
- fetchServerSyncedCredential
49
- } from "./chunk-ODS2MVMU.js";
77
+ canonicalizeToolNames
78
+ } from "./chunk-ZZ2MH7LE.js";
50
79
  import {
51
80
  toErrorMessage
52
81
  } from "./chunk-HNMXYYJR.js";
53
- import {
54
- clampReasoningEffort,
55
- getModelConfig,
56
- isModelSupportReasoningEffort
57
- } from "./chunk-2K4NDPT5.js";
58
82
  import {
59
83
  isDeepInfraKimiModel,
60
84
  isFireworksKimiModel,
61
85
  resolveFireworksKimiModel
62
- } from "./chunk-CAENRKNJ.js";
86
+ } from "./chunk-OR2HNLVO.js";
87
+ import {
88
+ createSpaceKey
89
+ } from "./chunk-JTSGWTYZ.js";
63
90
  import {
64
91
  read
65
- } from "./chunk-LAXMH7JY.js";
92
+ } from "./chunk-57QJXIB6.js";
66
93
  import {
67
94
  asTrimmedLowercaseString
68
95
  } from "./chunk-QSJ3HFEF.js";
96
+ import {
97
+ getRuntimeServerContext
98
+ } from "./chunk-X664KVEV.js";
69
99
  import {
70
100
  isAbortError
71
- } from "./chunk-5RDLGLAP.js";
101
+ } from "./chunk-WJSW43QZ.js";
102
+ import {
103
+ asTrimmedString
104
+ } from "./chunk-3EUW3WEO.js";
105
+ import {
106
+ extractCustomId
107
+ } from "./chunk-BJIRLHJR.js";
72
108
  import {
73
109
  API_ENDPOINTS
74
110
  } from "./chunk-LCBAMY2M.js";
75
111
  import {
76
112
  isLoopbackUrl
77
113
  } from "./chunk-4SN6J65J.js";
78
- import {
79
- asTrimmedString
80
- } from "./chunk-3EUW3WEO.js";
81
- import {
82
- buildSkillGuidancePromptBlock,
83
- canonicalizeToolNames,
84
- extractRuntimePageCapabilities,
85
- resolveSkillGraphFromRoots
86
- } from "./chunk-3AUWC6EM.js";
87
114
  import {
88
115
  asOptionalTrimmedString
89
116
  } from "./chunk-G3SUCT4W.js";
@@ -452,55 +479,6 @@ function resolveAgentCallPlan(agentConfig, _env) {
452
479
  };
453
480
  }
454
481
 
455
- // packages/ai/llm/usageRequestOptions.ts
456
- var STREAM_USAGE_PROVIDERS = /* @__PURE__ */ new Set([
457
- "google",
458
- "openrouter",
459
- "xai",
460
- "openai",
461
- "fireworks",
462
- "mistral",
463
- "cloudflare",
464
- "gmi"
465
- ]);
466
- var EXTRA_USAGE_FIELD_PROVIDERS = /* @__PURE__ */ new Set(["openrouter"]);
467
- var normalizeProviderName = (providerName) => asTrimmedLowercaseString(providerName);
468
- var getUsageRequestOptions = (providerName, options) => {
469
- const normalizedProvider = normalizeProviderName(providerName);
470
- const api = options?.api ?? "chat-completions";
471
- if (api === "responses") {
472
- return EXTRA_USAGE_FIELD_PROVIDERS.has(normalizedProvider) ? {
473
- usage: {
474
- include: true
475
- }
476
- } : {};
477
- }
478
- return {
479
- ...STREAM_USAGE_PROVIDERS.has(normalizedProvider) ? {
480
- stream_options: {
481
- include_usage: true
482
- }
483
- } : {},
484
- ...EXTRA_USAGE_FIELD_PROVIDERS.has(normalizedProvider) ? {
485
- usage: {
486
- include: true
487
- }
488
- } : {}
489
- };
490
- };
491
-
492
- // packages/app/i18n/mapLanguage.ts
493
- var languageMap = {
494
- "en-US": "English",
495
- "zh-CN": "Simplified Chinese",
496
- "zh-TW": "Traditional Chinese",
497
- "ja-JP": "Japanese"
498
- // Add more mappings as needed
499
- };
500
- var mapLanguage = (responseLanguage) => {
501
- return languageMap[responseLanguage] || responseLanguage;
502
- };
503
-
504
482
  // packages/ai/agent/contextCompiler.ts
505
483
  function createHash(_algo) {
506
484
  let buf = "";
@@ -680,12 +658,10 @@ var buildSystemPromptContext = (options) => {
680
658
  } = options;
681
659
  const safeLanguage = options.language ?? (typeof navigator !== "undefined" ? navigator.language : "en");
682
660
  const { name, prompt: mainPrompt, dbKey, model } = agentConfig;
683
- const mappedLanguage = mapLanguage(safeLanguage);
684
661
  const identitySection = buildIdentityBlock({
685
662
  agentName: name,
686
663
  agentId: dbKey,
687
- model,
688
- responseLanguage: mappedLanguage
664
+ model
689
665
  });
690
666
  const corePersonaSection = mainPrompt ? `-- - \u6838\u5FC3\u89D2\u8272\u4E0E\u4EFB\u52A1-- -
691
667
  ${mainPrompt}` : "";
@@ -718,6 +694,7 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
718
694
  ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
719
695
  return compileContextLayers([
720
696
  { id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
697
+ { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
721
698
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
722
699
  { id: "core-persona", owner: "agent", cacheScope: "session", content: corePersonaSection },
723
700
  { id: "agent-orchestration", owner: "platform", cacheScope: "session", content: toolSections.agentOrchestration },
@@ -1280,27 +1257,6 @@ async function safeBrokerGet(broker, ref) {
1280
1257
  }
1281
1258
  }
1282
1259
 
1283
- // packages/shared/providerSecrets.ts
1284
- function providerSecretKey(presetId) {
1285
- const normalized = presetId.trim().replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
1286
- return `${normalized}_KEY`;
1287
- }
1288
-
1289
- // packages/ai/agent/providerSecrets.ts
1290
- var STORAGE_KEY = "nolo-local-secrets";
1291
- function readLocalSecrets() {
1292
- if (typeof localStorage === "undefined") return {};
1293
- try {
1294
- const value = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? "{}");
1295
- return value && typeof value === "object" ? value : {};
1296
- } catch {
1297
- return {};
1298
- }
1299
- }
1300
- function getLocalProviderSecret(presetId) {
1301
- return readLocalSecrets()[providerSecretKey(presetId)] ?? null;
1302
- }
1303
-
1304
1260
  // packages/ai/chat/fetchUtils.ts
1305
1261
  var buildProxyPayload = (bodyData, api, agentConfig, dialogId) => {
1306
1262
  const apiSource = agentConfig.apiSource === "custom" || agentConfig.apiSource === "cli" ? agentConfig.apiSource : void 0;
@@ -1418,7 +1374,336 @@ var performFetchRequest = async (params) => {
1418
1374
  }
1419
1375
  };
1420
1376
 
1377
+ // packages/create/editor/transforms/slateToText.ts
1378
+ function getNodeText(node) {
1379
+ if (node.text) {
1380
+ return node.text;
1381
+ }
1382
+ if (node.children && Array.isArray(node.children)) {
1383
+ return node.children.map(getNodeText).join("\n");
1384
+ }
1385
+ return "";
1386
+ }
1387
+ function slateToText(nodes) {
1388
+ if (!nodes || nodes.length === 0) {
1389
+ return "";
1390
+ }
1391
+ return nodes.map(getNodeText).join("\n\n");
1392
+ }
1393
+
1394
+ // packages/ai/context/buildReferenceContext.ts
1395
+ var MAX_META_TEXT_LENGTH = 80;
1396
+ var DIALOG_REFERENCE_MESSAGE_LIMIT = 20;
1397
+ var DIALOG_REFERENCE_SNIPPET_CHARS = 1200;
1398
+ var DIALOG_HANDOFF_SNIPPET_CHARS = 360;
1399
+ var truncateMetaText = (value, max = MAX_META_TEXT_LENGTH) => {
1400
+ if (!value) return "";
1401
+ if (value.length <= max) return value;
1402
+ return `${value.slice(0, max - 3)}...`;
1403
+ };
1404
+ var readSafe = async (dispatch, dbKey) => {
1405
+ try {
1406
+ return await dispatch(read({
1407
+ dbKey
1408
+ })).unwrap();
1409
+ } catch {
1410
+ return null;
1411
+ }
1412
+ };
1413
+ var buildMentionMetaMap = async (slateData, dispatch) => {
1414
+ const metaMap = /* @__PURE__ */ new Map();
1415
+ const mentions = extractCategorizedMentions(slateData);
1416
+ if (!mentions) return metaMap;
1417
+ const pageEntries = await Promise.all(
1418
+ (mentions.pages || []).map(async (pageId) => {
1419
+ const pageData = await readSafe(dispatch, pageId);
1420
+ if (!pageData) {
1421
+ return [`page:${pageId}`, { displayType: "page", metaParts: [] }];
1422
+ }
1423
+ if (pageData.type === "dialog" /* DIALOG */) {
1424
+ const agentCount = Array.isArray(pageData.cybots) ? pageData.cybots.length : 0;
1425
+ return [
1426
+ `page:${pageId}`,
1427
+ {
1428
+ displayType: "dialog",
1429
+ title: pageData.title,
1430
+ metaParts: [
1431
+ `agents=${agentCount}`,
1432
+ `updated=${pageData.updatedAt || pageData.updated_at || pageData.updated || "Unknown"}`
1433
+ ]
1434
+ }
1435
+ ];
1436
+ }
1437
+ const tags = pageData.tags && pageData.tags.length > 0 ? pageData.tags.slice(0, 5).join(", ") : "";
1438
+ return [
1439
+ `page:${pageId}`,
1440
+ {
1441
+ displayType: "page",
1442
+ title: pageData.title,
1443
+ metaParts: [
1444
+ pageData.spaceId ? `space=${pageData.spaceId}` : "",
1445
+ tags ? `tags=${tags}` : "",
1446
+ `updated=${pageData.updatedAt || pageData.updated_at || pageData.updated || "Unknown"}`
1447
+ ].filter(Boolean)
1448
+ }
1449
+ ];
1450
+ })
1451
+ );
1452
+ pageEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
1453
+ const agentEntries = await Promise.all(
1454
+ (mentions.agents || []).map(async (agentId) => {
1455
+ const agentData = await readSafe(dispatch, agentId);
1456
+ if (!agentData) {
1457
+ return [`agent:${agentId}`, { displayType: "agent", metaParts: [] }];
1458
+ }
1459
+ const desc = truncateMetaText(
1460
+ agentData.description || agentData.introduction || ""
1461
+ );
1462
+ return [
1463
+ `agent:${agentId}`,
1464
+ {
1465
+ displayType: "agent",
1466
+ title: agentData.name,
1467
+ metaParts: [
1468
+ `public=${agentData.isPublic ? "yes" : "no"}`,
1469
+ desc ? `desc=${desc}` : ""
1470
+ ].filter(Boolean)
1471
+ }
1472
+ ];
1473
+ })
1474
+ );
1475
+ agentEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
1476
+ const spaceEntries = await Promise.all(
1477
+ (mentions.spaces || []).map(async (spaceId) => {
1478
+ const spaceKey = createSpaceKey.space(spaceId);
1479
+ const spaceData = await readSafe(dispatch, spaceKey);
1480
+ if (!spaceData) {
1481
+ return [`space:${spaceId}`, { displayType: "space", metaParts: [] }];
1482
+ }
1483
+ const desc = truncateMetaText(spaceData.description || "");
1484
+ const categoriesCount = Object.keys(spaceData.categories || {}).length;
1485
+ const contentsCount = Object.keys(spaceData.contents || {}).length;
1486
+ return [
1487
+ `space:${spaceId}`,
1488
+ {
1489
+ displayType: "space",
1490
+ title: spaceData.name,
1491
+ metaParts: [
1492
+ desc ? `desc=${desc}` : "",
1493
+ `categories=${categoriesCount}`,
1494
+ `contents=${contentsCount}`
1495
+ ].filter(Boolean)
1496
+ }
1497
+ ];
1498
+ })
1499
+ );
1500
+ spaceEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
1501
+ return metaMap;
1502
+ };
1503
+ var buildInlineMention = (node, metaMap) => {
1504
+ const resourceType = node.resourceType || "unknown";
1505
+ const resourceId = node.resourceId || "unknown";
1506
+ const key = `${resourceType}:${resourceId}`;
1507
+ const meta = metaMap.get(key);
1508
+ const label = meta?.title || node.label || resourceId || "mention";
1509
+ const displayType = meta?.displayType || resourceType;
1510
+ const metaParts = meta?.metaParts ?? [];
1511
+ const idPart = resourceType === "tool" ? `tool=${resourceId}` : `dbkey=${resourceId}`;
1512
+ const metaSuffix = metaParts.length ? ` | ${metaParts.join(" | ")}` : "";
1513
+ return `@${label}(${displayType} | ${idPart}${metaSuffix})`;
1514
+ };
1515
+ var clipReferenceText = (value, max) => {
1516
+ const raw = typeof value === "string" ? value : value == null ? "" : JSON.stringify(value);
1517
+ return clipMultilineText(raw, max);
1518
+ };
1519
+ var fetchDialogReference = async (dbKey, refContent, dispatch) => {
1520
+ const dialogConfig = refContent;
1521
+ const dialogTitle = dialogConfig.title || `Untitled Dialog (${dbKey})`;
1522
+ const dialogId = extractCustomId(dbKey) || dbKey.replace(/^dialog-/, "");
1523
+ const checkpoint = dialogConfig.runtimeCheckpoint || null;
1524
+ const summary = asTrimmedString(dialogConfig.summary);
1525
+ const messages = await dispatch(
1526
+ async (_dispatch, getState, { db }) => {
1527
+ const state = getState();
1528
+ const { currentToken: token, remoteServers } = getRuntimeServerContext(state);
1529
+ return await fetchAndCacheMessages({
1530
+ db,
1531
+ dialogId,
1532
+ limit: DIALOG_REFERENCE_MESSAGE_LIMIT,
1533
+ token,
1534
+ remoteServers: remoteServers.length > 0 ? remoteServers : void 0
1535
+ });
1536
+ }
1537
+ );
1538
+ const sortedMessages = [...messages].reverse();
1539
+ const formatContent = (content) => clipReferenceText(content, DIALOG_REFERENCE_SNIPPET_CHARS);
1540
+ const transcript = sortedMessages.map((msg, index) => {
1541
+ const toolLine = msg.toolName ? ` tool=${msg.toolName}` : "";
1542
+ const agentLine = msg.cybotKey ? ` agent=${msg.cybotKey}` : "";
1543
+ const createdLine = msg.createdAt ? ` at=${msg.createdAt}` : "";
1544
+ return [
1545
+ `### Message ${index + 1}: ${msg.role || "unknown"} id=${msg.id || "unknown"}${toolLine}${agentLine}${createdLine}`,
1546
+ formatContent(msg.content) || "[empty]"
1547
+ ].join("\n");
1548
+ }).join("\n\n");
1549
+ const checkpointLines = [];
1550
+ if (checkpoint && typeof checkpoint === "object") {
1551
+ if (checkpoint.status) checkpointLines.push(`- status: ${checkpoint.status}`);
1552
+ if (checkpoint.lastUserInput) checkpointLines.push(`- lastUserInput: ${formatContent(checkpoint.lastUserInput)}`);
1553
+ if (checkpoint.lastAssistantText) checkpointLines.push(`- lastAssistantText: ${formatContent(checkpoint.lastAssistantText)}`);
1554
+ if (Array.isArray(checkpoint.lastToolNames) && checkpoint.lastToolNames.length) {
1555
+ checkpointLines.push(`- lastToolNames: ${checkpoint.lastToolNames.join(", ")}`);
1556
+ }
1557
+ if (Array.isArray(checkpoint.availableToolNames) && checkpoint.availableToolNames.length) {
1558
+ checkpointLines.push(`- availableToolNames: ${checkpoint.availableToolNames.join(", ")}`);
1559
+ }
1560
+ }
1561
+ const recentToolEvidence = sortedMessages.filter((msg) => msg.role === "tool" || msg.toolName).slice(-3).map((msg) => {
1562
+ const label = msg.toolName ? `${msg.toolName}` : "tool";
1563
+ return `- ${label} id=${msg.id || "unknown"}: ${clipReferenceText(msg.content, DIALOG_HANDOFF_SNIPPET_CHARS) || "[empty]"}`;
1564
+ });
1565
+ const handoffLines = [
1566
+ `- Use this when continuing work, transferring to another Agent, comparing with the current task, or preparing a document/plan from the prior discussion.`,
1567
+ `- Current state source: ${checkpointLines.length ? "Runtime Checkpoint" : "summaries and recent transcript"}.`,
1568
+ summary ? `- Compressed background: passive summary is available below; treat it as lossy, not original wording.` : "",
1569
+ recentToolEvidence.length ? `- Recent tool evidence:
1570
+ ${recentToolEvidence.join("\n")}` : `- Recent tool evidence: none loaded in the latest ${DIALOG_REFERENCE_MESSAGE_LIMIT} messages.`,
1571
+ `- For exact claims, old decisions, original wording, files/tools mentioned earlier, or anything not visible in the recent transcript, call searchDialogMessages with DB Key ${dbKey}.`
1572
+ ].filter(Boolean);
1573
+ const referenceBody = [
1574
+ `Conversation Reference:`,
1575
+ `DB Key: ${dbKey}`,
1576
+ `Title: ${dialogTitle}`,
1577
+ `Status: ${dialogConfig.status || "unknown"}`,
1578
+ `Loaded Recent Messages: ${sortedMessages.length}`,
1579
+ `Conversation Handoff:
1580
+ ${handoffLines.join("\n")}`,
1581
+ checkpointLines.length ? `Runtime Checkpoint:
1582
+ ${checkpointLines.join("\n")}` : "",
1583
+ summary ? `Passive Summary (compressed history, not original wording):
1584
+ ${wrapHistoricalSummaryWithReplayGuard(summary)}` : "",
1585
+ `Recent Transcript (original message excerpts, oldest to newest):
1586
+ ${transcript || "[no recent messages loaded]"}`,
1587
+ [
1588
+ `Coverage Note: This reference intentionally loads only the latest ${DIALOG_REFERENCE_MESSAGE_LIMIT} messages plus summaries/checkpoint to control token load.`,
1589
+ `Original Message Lookup Policy: If the user asks for an exact old message, original wording, who said what, why a decision was made, early-history detail, file/tool evidence, failed attempts, or a comparison with prior work, use searchDialogMessages({ dialogKey: "${dbKey}", query: "..." }) before making a factual claim from this referenced conversation.`
1590
+ ].join("\n")
1591
+ ].filter(Boolean).join("\n\n");
1592
+ const tokenEstimate = estimateTokenCount(referenceBody);
1593
+ return `${referenceBody}
1594
+
1595
+ Token Load Estimate: ${tokenEstimate} tokens for this conversation reference.
1596
+ ---
1597
+
1598
+ `;
1599
+ };
1600
+ var fetchTableReference = async (dbKey, refContent, dispatch) => {
1601
+ const tableMeta = refContent;
1602
+ const title = tableMeta.displayName || tableMeta.description || `Untitled Table (${dbKey})`;
1603
+ const { markdown: tableMd } = await dispatch(
1604
+ async (_dispatch, getState, { db }) => {
1605
+ const state = getState();
1606
+ const { currentToken: token, remoteServers } = getRuntimeServerContext(state);
1607
+ return await fetchAndSerializeTable(tableMeta, db, {
1608
+ token,
1609
+ remoteServers
1610
+ });
1611
+ }
1612
+ );
1613
+ const tags = tableMeta.tags?.length ? tableMeta.tags.join(", ") : "None";
1614
+ const description = tableMeta.description || "No description provided.";
1615
+ return `Reference Item (Table):
1616
+ DB Key: ${dbKey}
1617
+ Title: ${title}
1618
+ Description: ${description}
1619
+ Tags: ${tags}
1620
+ Content (Markdown Table):
1621
+
1622
+ ${tableMd}
1623
+ ---
1624
+
1625
+ `;
1626
+ };
1627
+ var fetchSlateReference = async (dbKey, refContent, dispatch, options) => {
1628
+ if (!refContent?.slateData) return null;
1629
+ const title = refContent.title || `Untitled (${dbKey})`;
1630
+ let contentString;
1631
+ let contentType;
1632
+ const inlineMentionMeta = options.inlineMentionMeta ?? options.format === "simplified_markdown";
1633
+ switch (options.format) {
1634
+ case "text":
1635
+ contentType = "Plain Text";
1636
+ contentString = slateToText(refContent.slateData);
1637
+ break;
1638
+ case "simplified_markdown":
1639
+ contentType = "Simplified Markdown";
1640
+ if (inlineMentionMeta) {
1641
+ const metaMap = await buildMentionMetaMap(refContent.slateData, dispatch);
1642
+ contentString = slateToSimplifiedMarkdown(refContent.slateData, {
1643
+ mentionResolver: (node) => buildInlineMention(node, metaMap)
1644
+ });
1645
+ } else {
1646
+ contentString = slateToSimplifiedMarkdown(refContent.slateData);
1647
+ }
1648
+ break;
1649
+ case "json":
1650
+ default:
1651
+ contentType = "Slate JSON";
1652
+ contentString = JSON.stringify(refContent.slateData, null, 2);
1653
+ break;
1654
+ }
1655
+ if (!contentString || typeof contentString === "string" && !contentString.trim() || contentString === "[]") {
1656
+ return null;
1657
+ }
1658
+ const tags = (refContent.tags || []).length > 0 ? refContent.tags.join(", ") : "None";
1659
+ const createdAt = refContent.created || "Unknown Creation Date";
1660
+ const updatedAt = refContent.updated || "Unknown Update Date";
1661
+ return `Reference Item:
1662
+ DB Key: ${dbKey}
1663
+ Title: ${title}
1664
+ Content (${contentType}):
1665
+ ${contentString}
1666
+ Tags: ${tags}
1667
+ Created At: ${createdAt}
1668
+ Updated At: ${updatedAt}
1669
+ ---
1670
+
1671
+ `;
1672
+ };
1673
+ var fetchReferenceContents = async (references, dispatch, options = { format: "simplified_markdown" }) => {
1674
+ const result = /* @__PURE__ */ new Map();
1675
+ if (!references || references.length === 0) return result;
1676
+ const referencePromises = references.map(async (dbKey) => {
1677
+ try {
1678
+ const hasPreloaded = options.preloaded?.has(dbKey);
1679
+ const refContent = hasPreloaded ? options.preloaded?.get(dbKey) : await dispatch(read({
1680
+ dbKey
1681
+ })).unwrap();
1682
+ if (!refContent) return null;
1683
+ let formatted = null;
1684
+ if (refContent.type === "dialog" /* DIALOG */) {
1685
+ formatted = await fetchDialogReference(dbKey, refContent, dispatch);
1686
+ } else if (refContent.type === "table" /* TABLE */) {
1687
+ formatted = await fetchTableReference(dbKey, refContent, dispatch);
1688
+ } else {
1689
+ formatted = await fetchSlateReference(dbKey, refContent, dispatch, options);
1690
+ }
1691
+ if (formatted) return [dbKey, formatted];
1692
+ return null;
1693
+ } catch (error) {
1694
+ console.error(`Error fetching reference ${dbKey}:`, error);
1695
+ return null;
1696
+ }
1697
+ });
1698
+ const resolved = await Promise.all(referencePromises);
1699
+ resolved.forEach((item) => {
1700
+ if (item) result.set(item[0], item[1]);
1701
+ });
1702
+ return result;
1703
+ };
1704
+
1421
1705
  export {
1706
+ fetchReferenceContents,
1422
1707
  mergeReferences,
1423
1708
  resolveReferenceAssets,
1424
1709
  resolveToolsFromKeys,
@@ -1,3 +1,6 @@
1
+ import {
2
+ isLevelNotFoundError
3
+ } from "./chunk-OW765XBU.js";
1
4
  import {
2
5
  API_ENDPOINTS,
3
6
  NOLO_CLUSTER_SERVERS,
@@ -138,13 +141,6 @@ var fetchWithTransientReadRetry = async (input, init, options = {}) => {
138
141
  }
139
142
  };
140
143
 
141
- // packages/database/levelNotFoundError.ts
142
- function isLevelNotFoundError(error) {
143
- if (!error || typeof error !== "object") return false;
144
- const e = error;
145
- return e.notFound === true || e.name === "NotFoundError" || e.code === "LEVEL_NOT_FOUND" || e.code === "LEVEL_NOT_FOUND_ERROR" || e.message === "NotFound";
146
- }
147
-
148
144
  // packages/database/actions/common.ts
149
145
  var logger = createClientLogger("database");
150
146
  var normalizeServer = (server) => normalizeKnownServerOrigin(server) ?? normalizeServerOrigin(server);
@@ -263,6 +259,7 @@ export {
263
259
  getIsDesktopApp,
264
260
  createClientLogger,
265
261
  isAbortError,
262
+ fetchWithTransientReadRetry,
266
263
  logger,
267
264
  getAllServers,
268
265
  fetchFromClientDb,
@@ -7,7 +7,7 @@ import {
7
7
  var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
8
8
  - \u4E0D\u590D\u8FF0\u9700\u6C42\uFF0C\u4E0D\u89E3\u91CA\u300C\u6253\u7B97\u600E\u4E48\u505A\u300D\uFF0C\u76F4\u63A5\u52A8\u624B\u3002\u6539\u5B8C\u53EA\u7528\u4E00\u4E24\u53E5\u8BDD\u8BF4\u6E05\u300C\u6539\u4E86\u4EC0\u4E48\u3001\u53BB\u54EA\u770B\u300D\u3002
9
9
  - \u601D\u8003\u7B80\u77ED\uFF1A\u5B9A\u4F4D\u95EE\u9898\u5373\u53EF\uFF0C\u4E0D\u505A\u957F\u7BC7\u63A8\u6F14\u3002
10
- - \u5C0F\u6539\u52A8\u8D70\u6700\u77ED\u8DEF\u5F84\uFF1AsearchFiles/globFiles \u5B9A\u4F4D \u2192 readFile \u786E\u8BA4 \u2192 editFile \u7CBE\u786E\u66FF\u6362\u3002\u80FD\u4E00\u6B21\u547D\u4E2D\u5C31\u4E0D\u8981\u53CD\u590D\u8BFB\u6587\u4EF6\u3002
10
+ - \u5C0F\u6539\u52A8\u8D70\u6700\u77ED\u8DEF\u5F84\uFF1A\u4F18\u5148\u7528 \`rg\` \u641C\u4EE3\u7801/\u6587\u672C\u3001\`find\`/\`fd\` \u5B9A\u4F4D\u6587\u4EF6 \u2192 readFile \u786E\u8BA4 \u2192 editFile \u7CBE\u786E\u66FF\u6362\u3002\u80FD\u4E00\u6B21\u547D\u4E2D\u5C31\u4E0D\u8981\u53CD\u590D\u8BFB\u6587\u4EF6\u3002
11
11
  - \u5DF2\u7ECF\u77E5\u9053\u6587\u4EF6\u548C\u4F4D\u7F6E\u65F6\uFF0C\u8DF3\u8FC7\u591A\u4F59\u7684 search/read\uFF0C\u76F4\u63A5 edit\u3002
12
12
  - \u7981\u6B62\u4E3A\u4E00\u4E2A\u5C0F\u6539\u52A8\u6574\u9875\u91CD\u5199\u6216\u8FDE\u5E26\u6539\u52A8\u672A\u547D\u4E2D\u7684\u90E8\u5206\u3002
13
13
 
@@ -16,6 +16,9 @@ var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\u
16
16
  - \u53EA\u78B0\u4EFB\u52A1\u4E66\u5217\u51FA\u7684\u6587\u4EF6\uFF1B\u6539\u5B8C\u7528 \`git status --short\` \u81EA\u67E5\uFF0C\u82E5\u6539\u5230\u6E05\u5355\u5916\u6587\u4EF6\uFF0C\u5982\u5B9E\u62A5\u544A\u3002
17
17
  - \u4E0D\u8981 \`git add\` / \`git commit\` / \`git push\` / \`git stash\` / \`git reset\` / \`git checkout\` / \`git clean\`\u2014\u2014\u6539\u52A8\u7559\u5728\u5DE5\u4F5C\u533A\uFF0C\u63D0\u4EA4\u7531\u8C03\u7528\u65B9\u9A8C\u6536\u540E\u5904\u7406\u3002\u4ED3\u5E93\u5E38\u6709\u591A\u4E2A\u4F1A\u8BDD\u5171\u7528\u4E00\u4E2A checkout\uFF0C\u4F60\u4E00\u63D0\u4EA4\u5C31\u4F1A\u628A\u522B\u4EBA\u7684\u5728\u9014\u6587\u4EF6\u5377\u8FDB\u6765\u3002
18
18
  - \u53EA\u8DD1\u4EFB\u52A1\u91CC\u5217\u51FA\u7684\u6D4B\u8BD5\u6587\u4EF6\uFF0C\u4E0D\u8981\u8DD1 broader \u6D4B\u8BD5\uFF08broaden \u6D4B\u8BD5\u7684\u5931\u8D25\u662F\u9884\u5B58\u7684\uFF0C\u548C\u4F60\u7684\u6539\u52A8\u65E0\u5173\uFF09\u3002
19
+ - \u540C\u4E00\u4E2A\u6587\u4EF6\u8BFB\u8FC7\u4E00\u6B21\u540E\u8BB0\u4F4F\u5185\u5BB9\uFF0C\u4E0D\u8981\u91CD\u590D\u8BFB\u53D6\u3002
20
+ - \u5982\u679C editFile \u5931\u8D25\u5E76\u63D0\u793A "expected 1 replacement but found 0"\uFF0C\u5148\u7528 \`file <path>\` \u68C0\u67E5\u662F\u5426\u6709 CRLF\u3002\u5982\u679C\u6709\uFF0C\u7528 \`tr -d '\\r' < <path> > /tmp/clean.ts && mv /tmp/clean.ts <path>\` \u8F6C\u6362\u540E\u91CD\u8BD5\u3002
21
+ - \u53EA\u8BFB\u4EFB\u52A1\u76F8\u5173\u7684\u6587\u4EF6\uFF0C\u4E0D\u8981 grep \u6574\u4E2A repo \u67E5\u627E\u89C4\u5219\u6216\u914D\u7F6E\u3002
19
22
  - **\u5EFA\u8BAE\u6C47\u62A5**\uFF1A\u4EA4\u4ED8\u65F6\u628A\u8FC7\u7A0B\u4E2D\u53D1\u73B0\u7684**\u4EFB\u4F55\u503C\u5F97\u7528\u6237\u77E5\u9053\u7684\u4E8B**\u90FD\u5217\u51FA\u6765\uFF08\u9884\u5B58\u65E0\u5173\u6539\u52A8\u3001\u65E2\u6709\u6D4B\u8BD5\u9694\u79BB\u95EE\u9898\u3001\u6F5C\u5728\u98CE\u9669\u3001\u540E\u7EED\u53EF\u4F18\u5316\u70B9\u3001\u9700\u7528\u6237\u51B3\u7B56\u7684\u4E8B\u9879\uFF09\uFF0C\u4E0D\u8981\u53EA\u62A5\u300C\u505A\u5B8C\u4E86\u300D\u3002
20
23
 
21
24
  ## Review \u7EAA\u5F8B\uFF08commit \u524D\u786C\u95E8\uFF09
@@ -41,7 +44,6 @@ var TOOL_PACKS = {
41
44
  // 加载,不再随 CORE 常驻;全部视图(All View)运行时只给 recommended hint,
42
45
  // 不自动注入工具。search_workspace 保持常驻(分类视图的「当前空间」检索)。
43
46
  CORE: [
44
- "ask_user",
45
47
  "read",
46
48
  "createDoc",
47
49
  "updateDoc",
@@ -67,8 +69,6 @@ var TOOL_PACKS = {
67
69
  "applyLineEdits",
68
70
  "codeSearch",
69
71
  "globFiles",
70
- "searchFiles",
71
- "listFiles",
72
72
  "execShell",
73
73
  "launchProcess",
74
74
  "listProcesses"
@@ -317,13 +317,13 @@ function appendEnabledPackPromptPatches(prompt, enabledPacks) {
317
317
 
318
318
  ${addition}`;
319
319
  }
320
- var FORCED_TOOLS = ["ask_user"];
320
+ var FORCED_TOOLS = /* @__PURE__ */ new Set();
321
321
  function applyDisabledTools(toolNames, disabledTools) {
322
322
  if (!Array.isArray(disabledTools) || disabledTools.length === 0) {
323
323
  return toolNames;
324
324
  }
325
325
  const disabled = new Set(disabledTools);
326
- const forced = new Set(FORCED_TOOLS);
326
+ const forced = FORCED_TOOLS;
327
327
  return toolNames.filter((name) => !disabled.has(name) || forced.has(name));
328
328
  }
329
329
  var WEB_SEARCH_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-D2BPX6DQ.js";
4
+ } from "./chunk-ADLYMQB6.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;