nolo-cli 0.219.0 → 0.221.0

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 (201) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-WZKT6XEU.js} +74 -74
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-PZWRHNXY.js} +114 -115
  6. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-QTKMEICX.js} +115 -116
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-SLLADS5C.js} +102 -103
  14. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-OFQLOF5Y.js} +113 -112
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-ACZGTZVW.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
  24. package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  33. package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  35. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  36. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  37. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  38. package/chunk-5ZUOVCKT.js +32 -0
  39. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  40. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  41. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  42. package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
  43. package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
  44. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  45. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  46. package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
  47. package/chunk-BIDSIRTS.js +307 -0
  48. package/chunk-BIWI5M4E.js +62 -0
  49. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  50. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  51. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  52. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  53. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  54. package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
  55. package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
  56. package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
  57. package/{chunk-MKQ2UTTX.js → chunk-DDC6P6EH.js} +22 -19
  58. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  59. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  60. package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
  61. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  62. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  63. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  64. package/{chunk-O2CYENYJ.js → chunk-EXJK7TQO.js} +2113 -1090
  65. package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
  66. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  67. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  68. package/{chunk-7WPAI5JJ.js → chunk-GACR7H6T.js} +14 -14
  69. package/{chunk-65XXHYZ5.js → chunk-GOCSSER3.js} +3 -3
  70. package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
  71. package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
  72. package/{chunk-F3TQURKK.js → chunk-GYS5FUYR.js} +19 -19
  73. package/{chunk-VHPAA6MT.js → chunk-H6L2NFHY.js} +6 -6
  74. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  75. package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
  76. package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
  77. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  78. package/{chunk-N3J4VDGV.js → chunk-IAAIUH64.js} +15 -15
  79. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  80. package/{chunk-T3O6BLYU.js → chunk-IXG6YXQM.js} +147 -115
  81. package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
  82. package/{chunk-QWYFFHCJ.js → chunk-K67C2JUC.js} +10 -10
  83. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  84. package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
  85. package/{chunk-KAVGK4ES.js → chunk-MDZWUD3R.js} +18 -18
  86. package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
  87. package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
  88. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  89. package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
  90. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  91. package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
  92. package/{chunk-XFJ4ZPFC.js → chunk-OYU2MA5S.js} +25 -25
  93. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  94. package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
  95. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  96. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  97. package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
  98. package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
  99. package/{chunk-FVZW66K4.js → chunk-R3NEQZ53.js} +288 -95
  100. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  101. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  102. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  103. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  104. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  105. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  106. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  107. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  108. package/{chunk-7UH3DGV6.js → chunk-SMJEXX2S.js} +7 -7
  109. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  110. package/{chunk-KO63FPG3.js → chunk-STJ6LSQE.js} +750 -2523
  111. package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
  112. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  113. package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
  114. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  115. package/{chunk-3ESU44FG.js → chunk-UE2EVEYS.js} +3 -3
  116. package/{chunk-S7SB7L2I.js → chunk-UWAIJOF2.js} +19 -19
  117. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  118. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  119. package/{chunk-N7HVLYOY.js → chunk-VSYTM22R.js} +3 -3
  120. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  121. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  122. package/{chunk-3N4ASIP6.js → chunk-XJPLSAPJ.js} +11 -11
  123. package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
  124. package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
  125. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  126. package/chunk-ZOHO6MOF.js +376 -0
  127. package/{chunk-652XYZGP.js → chunk-ZXF6D3I6.js} +13 -6
  128. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  129. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  130. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  131. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  132. package/{commandRegistry-SDSYBKMC.js → commandRegistry-ZLWHQVAI.js} +93 -93
  133. package/{contentThunks-G3TRPEAU.js → contentThunks-4ZX2TO7C.js} +36 -35
  134. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  135. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  136. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-QTU2R2Q3.js} +37 -36
  137. package/{createPageAction-HXKJ7OFG.js → createPageAction-F3GJTHW2.js} +37 -36
  138. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  139. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  140. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  141. package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
  142. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  143. package/{dialogSlice-HXPKFGRL.js → dialogSlice-P2S4LXQD.js} +34 -33
  144. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  145. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
  146. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  147. package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
  148. package/{docStore-A2B3GH33.js → docStore-6O7NYL6A.js} +12 -12
  149. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  150. package/fetchMessages-TQEUZD7H.js +1 -1
  151. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  152. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  153. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-VNCQUAFT.js} +102 -103
  154. package/index.js +56 -18
  155. package/keys-RWF7UCB4.js +1 -1
  156. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  157. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  158. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-FOWVNMIK.js} +109 -110
  159. package/{machineCommands-WFWV25IR.js → machineCommands-ZGC3J4JB.js} +111 -112
  160. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-KK5U4M3G.js} +100 -101
  161. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  162. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  163. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  164. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  165. package/package.json +1 -1
  166. package/{projectArchive-ULJDLUA6.js → projectArchive-7ZDYBXAX.js} +42 -41
  167. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
  168. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
  169. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  170. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  171. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-YHT4SX2C.js} +3946 -4393
  172. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  173. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-H4ED5V3K.js} +71 -67
  174. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  175. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  176. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  177. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  178. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  179. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  180. package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
  181. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  182. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-ZXPOXU33.js} +89 -128
  183. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  184. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  185. package/{tools-JVOJ5HC4.js → tools-2MRWA2PP.js} +58 -58
  186. package/tuiRestart-2IL37YIB.js +41 -0
  187. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  188. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  189. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  190. package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
  191. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  192. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  193. package/chunk-2THCNKE4.js +0 -147
  194. package/chunk-KEPOVMF4.js +0 -91
  195. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  196. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  197. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  198. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  199. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  200. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  201. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -123,6 +123,7 @@ var MIN_SHARED_TOKENS = 2;
123
123
  var MAX_LOCAL_RECALL_STATES = 8;
124
124
  var IDF_MIN_CORPUS = 20;
125
125
  var RARE_DF_RATIO = 0.05;
126
+ var RARE_DF_MAX_DOCS = 5;
126
127
  var SAFE_TECHNICAL_SYNONYMS = {
127
128
  pr: ["\u5BA1\u67E5", "\u4EE3\u7801\u5BA1\u67E5", "diff"],
128
129
  diff: ["\u5BA1\u67E5", "\u4EE3\u7801\u5BA1\u67E5"],
@@ -158,7 +159,7 @@ var recallMemoryVNextLocal = (input) => {
158
159
  }
159
160
  if (prepared.length === 0) return [];
160
161
  const useIdf = prepared.length >= IDF_MIN_CORPUS;
161
- const rareCutoff = prepared.length * RARE_DF_RATIO;
162
+ const rareCutoff = Math.min(prepared.length * RARE_DF_RATIO, RARE_DF_MAX_DOCS);
162
163
  const rareTokens = /* @__PURE__ */ new Set();
163
164
  if (useIdf) {
164
165
  for (const token of queryTokens) {
@@ -195,5 +196,6 @@ export {
195
196
  MAX_LOCAL_RECALL_STATES,
196
197
  IDF_MIN_CORPUS,
197
198
  RARE_DF_RATIO,
199
+ RARE_DF_MAX_DOCS,
198
200
  recallMemoryVNextLocal
199
201
  };
@@ -40,6 +40,13 @@ var KIND_PRIORITY = {
40
40
  procedural: 1,
41
41
  episodic: 2
42
42
  };
43
+ var emptyMemoryInjectionObservation = () => ({
44
+ vnextInjectedLines: 0,
45
+ legacyUncoveredInjectedLines: 0,
46
+ unattributedInjectedLines: 0,
47
+ totalInjectedLines: 0,
48
+ empty: true
49
+ });
43
50
  var FACET_DISPLAY = {
44
51
  unfinished: { label: "\u8FD8\u6CA1\u5B9A\u4E0B", strip: "\u8FD8\u6CA1\u51B3\u5B9A" },
45
52
  tension: { label: "\u5728\u6743\u8861", strip: "\u5728\u6743\u8861" },
@@ -100,7 +107,7 @@ var truncateLineToTokens = (lineText, budgetTokens) => {
100
107
  if (cut <= 2) return null;
101
108
  return `${lineText.slice(0, cut).trimEnd()}${TRUNCATED_SUFFIX}`;
102
109
  };
103
- var fitLinesToBudget = (allLines, remainingBudget) => {
110
+ var fitLinesToBudget = (allLines, remainingBudget, onKept) => {
104
111
  let usedTokens = 0;
105
112
  const keptByKind = {};
106
113
  let truncatedCount = 0;
@@ -118,6 +125,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
118
125
  if (candidate.lineTokens <= remaining) {
119
126
  usedTokens += candidate.lineTokens;
120
127
  pushLine(candidate.kind, candidate.lineText);
128
+ onKept(candidate);
121
129
  continue;
122
130
  }
123
131
  const truncated = truncateLineToTokens(candidate.lineText, remaining);
@@ -127,6 +135,7 @@ var fitLinesToBudget = (allLines, remainingBudget) => {
127
135
  }
128
136
  usedTokens += estimateTokens(truncated);
129
137
  pushLine(candidate.kind, truncated);
138
+ onKept(candidate);
130
139
  truncatedCount += 1;
131
140
  }
132
141
  return { keptByKind, truncatedCount, droppedCount };
@@ -141,7 +150,7 @@ var EMPTY_RESIDENT_FIT = {
141
150
  truncatedCount: 0,
142
151
  droppedCount: 0
143
152
  };
144
- var fitResidentLines = (lines, remainingBudget) => {
153
+ var fitResidentLines = (lines, remainingBudget, onKept) => {
145
154
  let usedTokens = 0;
146
155
  const keptLines = [];
147
156
  let truncatedCount = 0;
@@ -155,6 +164,7 @@ var fitResidentLines = (lines, remainingBudget) => {
155
164
  if (candidate.lineTokens <= remaining) {
156
165
  usedTokens += candidate.lineTokens;
157
166
  keptLines.push(candidate.lineText);
167
+ onKept(candidate);
158
168
  continue;
159
169
  }
160
170
  const truncated = truncateLineToTokens(candidate.lineText, remaining);
@@ -164,6 +174,7 @@ var fitResidentLines = (lines, remainingBudget) => {
164
174
  }
165
175
  usedTokens += estimateTokens(truncated);
166
176
  keptLines.push(truncated);
177
+ onKept(candidate);
167
178
  truncatedCount += 1;
168
179
  }
169
180
  return { keptLines, truncatedCount, droppedCount };
@@ -186,7 +197,22 @@ var buildBudgetFooter = (fit, residentFit) => {
186
197
  return [`\uFF08${notices.join("\u3001")}\uFF1B\u9700\u8981\u5B8C\u6574\u5185\u5BB9\u6216\u66F4\u591A\u76F8\u5173\u8BB0\u5FC6\u65F6\u7528 queryMemory \u68C0\u7D22\uFF09`];
187
198
  };
188
199
  var buildMemoryOverlay = (items, options) => {
189
- if (items.length === 0) return null;
200
+ const injection = emptyMemoryInjectionObservation();
201
+ const onKept = (line) => {
202
+ injection.totalInjectedLines++;
203
+ injection.empty = false;
204
+ if (line.source === "vnext") injection.vnextInjectedLines++;
205
+ else if (line.source === "legacy-uncovered") injection.legacyUncoveredInjectedLines++;
206
+ else injection.unattributedInjectedLines++;
207
+ };
208
+ const finish = (prompt) => {
209
+ try {
210
+ options?.injectionEmit?.(injection);
211
+ } catch {
212
+ }
213
+ return prompt;
214
+ };
215
+ if (items.length === 0) return finish(null);
190
216
  const maxTokens = options?.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET;
191
217
  const perKindLimit = options?.perKindLimit ?? 3;
192
218
  const residentMaxTokens = options?.residentMaxTokens ?? RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET;
@@ -195,9 +221,10 @@ var buildMemoryOverlay = (items, options) => {
195
221
  const residentFit = residentItems.length === 0 ? EMPTY_RESIDENT_FIT : fitResidentLines(
196
222
  residentItems.map((item) => {
197
223
  const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
198
- return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText) };
224
+ return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
199
225
  }),
200
- residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER)
226
+ residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER),
227
+ onKept
201
228
  );
202
229
  const byKind = {
203
230
  episodic: [],
@@ -214,10 +241,10 @@ var buildMemoryOverlay = (items, options) => {
214
241
  const allLines = Object.entries(byKind).filter(([, list]) => list.length > 0).flatMap(
215
242
  ([kind, list]) => pickWithinKind(list, perKindLimit).map((item) => {
216
243
  const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
217
- return { kind, lineText, lineTokens: estimateTokens(lineText) };
244
+ return { kind, lineText, lineTokens: estimateTokens(lineText), source: options?.sources?.get(item) };
218
245
  })
219
246
  ).sort((a, b) => (KIND_PRIORITY[a.kind] ?? 99) - (KIND_PRIORITY[b.kind] ?? 99));
220
- retrievalFit = fitLinesToBudget(allLines, remainingBudget);
247
+ retrievalFit = fitLinesToBudget(allLines, remainingBudget, onKept);
221
248
  const kindOrder = ["semantic", "procedural", "episodic"];
222
249
  retrievalSections = kindOrder.filter(
223
250
  (kind) => retrievalFit.keptByKind[kind] && retrievalFit.keptByKind[kind].length > 0
@@ -230,17 +257,18 @@ var buildMemoryOverlay = (items, options) => {
230
257
  ...retrievalSections
231
258
  ];
232
259
  if (sections.length === 0) {
233
- return OVERLAY_HEADER_LINES.join("\n");
260
+ return finish(OVERLAY_HEADER_LINES.join("\n"));
234
261
  }
235
- return [
262
+ return finish([
236
263
  ...OVERLAY_HEADER_LINES,
237
264
  ...sections,
238
265
  ...buildBudgetFooter(retrievalFit, residentFit)
239
- ].join("\n");
266
+ ].join("\n"));
240
267
  };
241
268
 
242
269
  export {
243
270
  EXPLICIT_REMEMBER_PREFIX_REGEX,
271
+ emptyMemoryInjectionObservation,
244
272
  DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
245
273
  RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET,
246
274
  buildMemoryOverlay
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-2VUZSVAS.js";
4
+ } from "./chunk-R6Z5S5GA.js";
5
5
  import {
6
6
  fetchFromClientDb
7
- } from "./chunk-AGP3YSEC.js";
7
+ } from "./chunk-4N6G2CKP.js";
8
8
  import {
9
9
  selectIdentityToken
10
10
  } from "./chunk-PXYBUFDB.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-UAD2WT54.js";
7
7
  import {
8
8
  toTimestampMs
9
- } from "./chunk-AVHRSJUH.js";
9
+ } from "./chunk-CMMI3DAT.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";
@@ -0,0 +1,32 @@
1
+ import {
2
+ resolveModelReasoningCapability
3
+ } from "./chunk-CD3RU7XL.js";
4
+
5
+ // packages/ai/agent/defaultReasoningEffort.ts
6
+ var defaults = {
7
+ "gpt-6.1-sol": "medium",
8
+ "gpt-6.1-terra": "medium",
9
+ "gpt-6-luna": "medium",
10
+ "gpt-6-astra": "high",
11
+ "claude-opus-5-5": "medium",
12
+ "claude-sonnet-5-5": "high",
13
+ "deepseek-flash": "high",
14
+ "deepseek-v4-flash": "high",
15
+ "deepseek-v4.1-flash": "high"
16
+ };
17
+ var deepseekChannels = /* @__PURE__ */ new Set(["opendesign", "ollama-cloud", "lithosai"]);
18
+ var providers = /* @__PURE__ */ new Set(["nolo", "openai", "openrouter", "anthropic", "deepseek", "commandcode", "opencode-go", "stepfun"]);
19
+ function resolveDefaultReasoningEffort(input) {
20
+ const provider = (input.provider ?? "").toLowerCase();
21
+ const model = (input.model ?? "").toLowerCase().split("/").pop() ?? "";
22
+ const isDeepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(model);
23
+ const effort = providers.has(provider) || deepseekChannels.has(provider) && isDeepseekFlash ? defaults[model] : void 0;
24
+ if (!effort) return input.fallback;
25
+ if (provider === "nolo" && model.startsWith("claude-") && input.model?.startsWith("anthropic/")) return effort;
26
+ if (provider === "anthropic" && model.startsWith("claude-")) return effort;
27
+ return resolveModelReasoningCapability(provider, input.model).efforts.includes(effort) ? effort : input.fallback;
28
+ }
29
+
30
+ export {
31
+ resolveDefaultReasoningEffort
32
+ };
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-VALBGPM6.js";
7
+ } from "./chunk-OBSEKCVK.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-MOMR7NMG.js";
5
+ } from "./chunk-547ENH5T.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  fetchFromServer,
12
12
  getAllServers
13
- } from "./chunk-AGP3YSEC.js";
13
+ } from "./chunk-4N6G2CKP.js";
14
14
  import {
15
15
  selectIdentityToken,
16
16
  selectIdentityUserId
@@ -8,7 +8,9 @@ var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
8
8
  "owner_oauth_unavailable",
9
9
  "invalid_grant",
10
10
  "auth_no_token",
11
- "token_expired"
11
+ "token_expired",
12
+ "user_batch_authority_controlled",
13
+ "tombstone_conflict"
12
14
  ]);
13
15
  var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
14
16
  function classifyDialogSyncFailure(error) {
@@ -122,7 +124,7 @@ async function runCliCommandWithSyncDrain(command, options) {
122
124
  }
123
125
  const complete = await drain(scope);
124
126
  if (commandThrew) throw commandError;
125
- options.exit(code === 0 && !complete ? 1 : code);
127
+ await options.exit(code === 0 && !complete ? 1 : code);
126
128
  });
127
129
  }
128
130
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-2OLYKYNY.js";
3
+ } from "./chunk-RTHFJZ6M.js";
4
4
  import {
5
5
  toErrorMessage
6
6
  } from "./chunk-HNMXYYJR.js";
@@ -14,22 +14,22 @@ import {
14
14
  qwenTokenPlanModels,
15
15
  stepfunModels,
16
16
  stepfunStepPlanModels
17
- } from "./chunk-LE6LGAJE.js";
17
+ } from "./chunk-CD3RU7XL.js";
18
+ import {
19
+ asOptionalFiniteNumber
20
+ } from "./chunk-WWC7I6TA.js";
21
+ import {
22
+ asOptionalTrimmedString
23
+ } from "./chunk-G3SUCT4W.js";
18
24
  import {
19
25
  PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
20
26
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
21
27
  PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
22
28
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
23
- } from "./chunk-VALBGPM6.js";
29
+ } from "./chunk-OBSEKCVK.js";
24
30
  import {
25
31
  asTrimmedLowercaseString
26
32
  } from "./chunk-QSJ3HFEF.js";
27
- import {
28
- asOptionalFiniteNumber
29
- } from "./chunk-WWC7I6TA.js";
30
- import {
31
- asOptionalTrimmedString
32
- } from "./chunk-G3SUCT4W.js";
33
33
 
34
34
  // packages/agent-runtime/antigravityOAuth.ts
35
35
  var decodeBase64 = (s) => typeof Buffer !== "undefined" ? Buffer.from(s, "base64").toString("utf8") : typeof atob === "function" ? atob(s) : s;
@@ -301,11 +301,11 @@ var KIMI_CODE_MODEL_OPTIONS = kimiCodeModels.map((m, i) => ({
301
301
  hasVision: m.hasVision,
302
302
  ...i === 0 ? { recommended: true } : {}
303
303
  }));
304
- var OPENCODE_GO_MODEL_OPTIONS = opencodeGoModels.map((m, i) => ({
304
+ var OPENCODE_GO_MODEL_OPTIONS = opencodeGoModels.map((m) => ({
305
305
  id: m.name,
306
306
  label: m.displayName ?? m.name,
307
307
  hasVision: m.hasVision,
308
- ...i === 0 ? { recommended: true } : {}
308
+ ...m.name === "deepseek-v4.1-flash" ? { recommended: true } : {}
309
309
  }));
310
310
  var COMMAND_CODE_MODEL_OPTIONS = commandCodeModels.map((m, i) => ({
311
311
  id: m.name,
@@ -417,6 +417,10 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
417
417
  // 非 Ultra 账号 discovery 返回 gemini-4-argon-disabled,选中后调用 404。标签明示门槛,
418
418
  // 让不具备资格的 Antigravity 用户不会误选;3.1 Pro 保留为所有档位可用的回退。
419
419
  { id: "gemini-4-argon", label: "Gemini 4 Argon\uFF08\u9700 Ultra\uFF09", hasVision: true },
420
+ // Exact wire IDs observed in Antigravity discovery with supportsImages=true.
421
+ { id: "gemini-4-hydrogen-medium", label: "Gemini 4 Hydrogen Medium", hasVision: true },
422
+ { id: "claude-opus-5-5-medium", label: "Claude Opus 5.5 Medium", hasVision: true },
423
+ { id: "claude-sonnet-5-5-high", label: "Claude Sonnet 5.5 High", hasVision: true },
420
424
  { id: "gemini-3.1-pro", label: "Gemini 3.1 Pro", hasVision: true },
421
425
  { id: "gemini-2.5-pro", label: "Gemini 2.5 Pro", hasVision: true },
422
426
  { id: "claude-sonnet-5", label: "Claude Sonnet 5", hasVision: true },
@@ -594,7 +598,7 @@ var CUSTOM_API_KEY_TEMPLATES = [
594
598
  description: "OpenCode Go \u8BA2\u9605\uFF08$5 \u9996\u6708 / $10 \u6708\uFF0C\u805A\u5408 Grok/Kimi/Qwen/GLM/MiMo/MiniMax/DeepSeek\uFF09",
595
599
  provider: "opencode-go",
596
600
  baseUrl: "https://opencode.ai/zen/go/v1",
597
- defaultModel: "qwen3.8-max",
601
+ defaultModel: "deepseek-v4.1-flash",
598
602
  modelOptions: OPENCODE_GO_MODEL_OPTIONS,
599
603
  commercialKind: "subscription",
600
604
  accessVariant: "token_plan_endpoint"
@@ -696,12 +700,12 @@ var CUSTOM_API_KEY_TEMPLATES = [
696
700
  description: "open-design.ai \u805A\u5408\u8BA2\u9605\uFF08\u4E00\u4E2A Key \u805A\u5408 GPT/Claude/DeepSeek/GLM/Kimi/MiMo\uFF0COpenAI \u517C\u5BB9\uFF09",
697
701
  provider: "opendesign",
698
702
  baseUrl: "https://amr-link.open-design.ai/v1",
699
- defaultModel: "gpt-6-luna",
703
+ defaultModel: "deepseek-v4.1-flash",
700
704
  modelOptions: [
701
- { id: "gpt-6-luna", label: "GPT-6 Luna", hasVision: true, recommended: true },
705
+ { id: "gpt-6-luna", label: "GPT-6 Luna", hasVision: true },
702
706
  { id: "claude-haiku-5.5", label: "Claude Haiku 5.5", hasVision: true },
703
707
  { id: "deepseek-v4-pro", label: "DeepSeek V4 Pro" },
704
- { id: "deepseek-v4.1-flash", label: "DeepSeek V4.1 Flash", hasVision: true },
708
+ { id: "deepseek-v4.1-flash", label: "DeepSeek V4.1 Flash", hasVision: true, recommended: true },
705
709
  { id: "deepseek-v4-flash", label: "DeepSeek V4 Flash" },
706
710
  { id: "deepseek-v4-flash-vision-exp", label: "DeepSeek V4 Flash Vision Exp", hasVision: true },
707
711
  { id: "glm-5.3-flashx", label: "GLM 5.3 FlashX", hasVision: true },