nolo-cli 0.226.0-alpha.2 → 0.228.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 (198) hide show
  1. package/{_executeModel-IKZGZZXW.js → _executeModel-WZKT6XEU.js} +74 -75
  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-IZY3VF5F.js → agentDeleteCommand-PZWRHNXY.js} +114 -116
  6. package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-QTKMEICX.js} +115 -117
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-YBNOQ5T3.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-WUUC2CX7.js → agentRecordCommands-SLLADS5C.js} +102 -104
  14. package/{agentRunCommand-W6MDKVLJ.js → agentRunCommand-OFQLOF5Y.js} +113 -114
  15. package/{agentRunControl-DFEEOFC7.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-5F5U5X2U.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-LN72GAOA.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-IJQQ3VND.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-7JXW54U4.js → authCommand-CGRIIOOV.js} +26 -27
  24. package/{authCommands-YDNAIDEY.js → authCommands-55OGQGCR.js} +9 -10
  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-N5PQJKCY.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-VFBVA3U2.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-SBVTHMEG.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-ZH6MUQEO.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  35. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  36. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  37. package/chunk-5ZUOVCKT.js +32 -0
  38. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  39. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  40. package/{chunk-EWPDMS4N.js → chunk-7JGMNKKG.js} +18 -14
  41. package/{chunk-2TIQO6TC.js → chunk-AGYPUBFW.js} +31 -205
  42. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  43. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  44. package/{chunk-GBZ4YKEO.js → chunk-AUAJTAFM.js} +8 -8
  45. package/chunk-BIDSIRTS.js +307 -0
  46. package/chunk-BIWI5M4E.js +62 -0
  47. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  48. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  49. package/{chunk-3QFLXA24.js → chunk-CBUZ6DKA.js} +3 -3
  50. package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
  51. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  52. package/{chunk-XN23AUVU.js → chunk-CYWNWA77.js} +5 -5
  53. package/{chunk-2VA6TU4I.js → chunk-D6YNCNM6.js} +17 -14
  54. package/{chunk-GOAPXKQU.js → chunk-DBUR22G5.js} +5 -5
  55. package/{chunk-QTMIHVLE.js → chunk-DDC6P6EH.js} +22 -19
  56. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  57. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  58. package/{chunk-KNIIRXHF.js → chunk-DUUDXSLX.js} +21 -7
  59. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  60. package/{chunk-JM5C4EUA.js → chunk-EEOOBRA7.js} +5 -5
  61. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  62. package/{chunk-GBUDWITV.js → chunk-EXJK7TQO.js} +1837 -1112
  63. package/{chunk-YDBMZ7FV.js → chunk-F6Z6ZCUV.js} +2 -2
  64. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  65. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  66. package/{chunk-4AMQZTE7.js → chunk-GACR7H6T.js} +14 -14
  67. package/{chunk-NEKH3XDV.js → chunk-GOCSSER3.js} +3 -3
  68. package/{chunk-3KNEE64G.js → chunk-GPOV42YM.js} +14 -14
  69. package/{chunk-UEKXWO7A.js → chunk-GUXZK7SE.js} +2 -2
  70. package/{chunk-JHRQXQ4A.js → chunk-GYS5FUYR.js} +19 -19
  71. package/{chunk-6O5YP6FX.js → chunk-H6L2NFHY.js} +6 -6
  72. package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
  73. package/{chunk-KZU52OJ5.js → chunk-HHFGE2WF.js} +6 -6
  74. package/{chunk-VV7TXWOC.js → chunk-HSSBDZLD.js} +3 -3
  75. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  76. package/{chunk-EFX3Q5SM.js → chunk-IAAIUH64.js} +15 -15
  77. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  78. package/{chunk-EJU6WCDH.js → chunk-IXG6YXQM.js} +146 -114
  79. package/{chunk-KC4SCKXO.js → chunk-JUSHVFNF.js} +238 -185
  80. package/{chunk-BLSNUIZD.js → chunk-K67C2JUC.js} +10 -10
  81. package/{chunk-IZIN2UNJ.js → chunk-L32W3PRP.js} +46 -16
  82. package/{chunk-67BE44IS.js → chunk-M4SFKP5L.js} +1 -1
  83. package/{chunk-L4NFXFFF.js → chunk-MDZWUD3R.js} +18 -18
  84. package/{chunk-QZI44GWV.js → chunk-NHY322ZU.js} +150 -9
  85. package/{chunk-DISQCYPE.js → chunk-OBIC6EG7.js} +6 -6
  86. package/{chunk-AZQZ5XPM.js → chunk-OG6MQOQG.js} +96 -28
  87. package/{chunk-VQUWV3YR.js → chunk-OOJNQK6V.js} +1 -1
  88. package/{chunk-F7DU25CE.js → chunk-OWKNSIXL.js} +149 -54
  89. package/{chunk-RRVQ446B.js → chunk-OYU2MA5S.js} +25 -25
  90. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  91. package/{chunk-FTQWYWUI.js → chunk-QBZCGP34.js} +1 -1
  92. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  93. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  94. package/{chunk-LM2PS3YS.js → chunk-QRGDJA4B.js} +9 -9
  95. package/{chunk-SOG7OEXX.js → chunk-QYB23WUH.js} +1 -1
  96. package/{chunk-W772FYAQ.js → chunk-R3NEQZ53.js} +285 -92
  97. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  98. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  99. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  100. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  101. package/{chunk-4NA3YTBC.js → chunk-RTHFJZ6M.js} +7 -7
  102. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  103. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  104. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  105. package/{chunk-HHL7WG65.js → chunk-SMJEXX2S.js} +122 -11
  106. package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
  107. package/{chunk-WSJMT3FA.js → chunk-STJ6LSQE.js} +746 -2519
  108. package/{chunk-6J4TTPS2.js → chunk-TGNIKIHR.js} +5 -5
  109. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  110. package/{chunk-4HFTBHBF.js → chunk-TSPMLCWI.js} +6 -6
  111. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  112. package/{chunk-2COEG5ZV.js → chunk-UE2EVEYS.js} +2 -2
  113. package/{chunk-E5EIYI34.js → chunk-UWAIJOF2.js} +19 -19
  114. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  115. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  116. package/{chunk-BYH3HMUP.js → chunk-VSYTM22R.js} +3 -3
  117. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  118. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  119. package/{chunk-T3T57NVP.js → chunk-XJPLSAPJ.js} +11 -11
  120. package/{chunk-UKS7D2NL.js → chunk-XSW4EXQV.js} +82 -18
  121. package/{chunk-TXGQ4O5S.js → chunk-YKY4OVOX.js} +11 -11
  122. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  123. package/chunk-ZOHO6MOF.js +376 -0
  124. package/{chunk-OLMJR6UM.js → chunk-ZXF6D3I6.js} +9 -7
  125. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  126. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  127. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  128. package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  129. package/{commandRegistry-6EQXVODF.js → commandRegistry-ZLWHQVAI.js} +93 -93
  130. package/{contentThunks-ANUP57QV.js → contentThunks-4ZX2TO7C.js} +36 -35
  131. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  132. package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  133. package/{createDialogAction-43QJIQDH.js → createDialogAction-QTU2R2Q3.js} +37 -37
  134. package/{createPageAction-SJO7UC3J.js → createPageAction-F3GJTHW2.js} +37 -36
  135. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  136. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  137. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  138. package/{dialogCommands-V5IYEOQP.js → dialogCommands-NRLCOPJR.js} +52 -52
  139. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  140. package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-P2S4LXQD.js} +34 -33
  141. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  142. package/{docCreateCommands-36WS33BK.js → docCreateCommands-YJRDA3RX.js} +48 -47
  143. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  144. package/{docReadCommands-QZMSFMPN.js → docReadCommands-CF2LTMYH.js} +48 -47
  145. package/{docStore-BZ2O7WLF.js → docStore-6O7NYL6A.js} +12 -12
  146. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  147. package/fetchMessages-TQEUZD7H.js +1 -1
  148. package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +5 -5
  149. package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  150. package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-VNCQUAFT.js} +102 -104
  151. package/index.js +56 -18
  152. package/keys-RWF7UCB4.js +1 -1
  153. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  154. package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-FOWVNMIK.js} +109 -111
  155. package/{machineCommands-77NFB2AE.js → machineCommands-ZGC3J4JB.js} +111 -113
  156. package/{machineWsRunDispatch-5XWFUJ53.js → machineWsRunDispatch-KK5U4M3G.js} +100 -102
  157. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  158. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  159. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  160. package/package.json +1 -1
  161. package/{projectArchive-GNOSYH6F.js → projectArchive-7ZDYBXAX.js} +42 -41
  162. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-WHAMP2D5.js} +6 -6
  163. package/{providerRegistry-KJGB5XWS.js → providerRegistry-ZI2KORJ7.js} +6 -6
  164. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  165. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  166. package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-YHT4SX2C.js} +4794 -5229
  167. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  168. package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-H4ED5V3K.js} +71 -68
  169. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  170. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  171. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  172. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  173. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  174. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  175. package/{spaceCommands-GUKMDRWN.js → spaceCommands-MEH3HJBC.js} +53 -52
  176. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  177. package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-ZXPOXU33.js} +89 -129
  178. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  179. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  180. package/{tools-YKE6PQHT.js → tools-2MRWA2PP.js} +58 -59
  181. package/tuiRestart-2IL37YIB.js +41 -0
  182. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  183. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  184. package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  185. package/{usageCommand-YPJ2ZI2F.js → usageCommand-2BF74MKF.js} +2 -2
  186. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  187. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  188. package/chunk-2THCNKE4.js +0 -147
  189. package/chunk-BJF2MHJ3.js +0 -118
  190. package/chunk-KEPOVMF4.js +0 -91
  191. package/chunk-PMDVQBGA.js +0 -100
  192. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  193. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  194. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  195. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  196. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  197. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  198. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -1,23 +1,24 @@
1
+ import {
2
+ applyPublicAgentCatalogOverride
3
+ } from "./chunk-DBUR22G5.js";
4
+ import {
5
+ applyBuiltinAgentRuntimeOverride,
6
+ resolveBuiltinPlatformAgentConfig
7
+ } from "./chunk-S6K5F3KP.js";
1
8
  import {
2
9
  buildLocalAgentLookupKeys
3
- } from "./chunk-2ZKFCIJJ.js";
10
+ } from "./chunk-QCB42576.js";
4
11
  import {
5
12
  LOCAL_CODEX_AGENT_ID,
6
13
  LOCAL_CODEX_AGENT_KEY
7
14
  } from "./chunk-BR3GT6MR.js";
8
15
  import {
9
- applyPublicAgentCatalogOverride
10
- } from "./chunk-GOAPXKQU.js";
11
- import {
12
- applyBuiltinAgentRuntimeOverride,
13
- resolveBuiltinPlatformAgentConfig
14
- } from "./chunk-JVRQ6YVK.js";
15
- import {
16
- localDialogMessageRecordToRuntimeMessage
17
- } from "./chunk-KC4SCKXO.js";
16
+ localDialogMessageRecordToRuntimeMessage,
17
+ orderDialogHistory
18
+ } from "./chunk-JUSHVFNF.js";
18
19
  import {
19
20
  resolveAgentRuntimeConfigFromRecord
20
- } from "./chunk-UEKXWO7A.js";
21
+ } from "./chunk-GUXZK7SE.js";
21
22
  import {
22
23
  dialogMessagePrefix,
23
24
  dialogMessageRange
@@ -86,7 +87,7 @@ async function readDialogMessages(args) {
86
87
  const message = localDialogMessageRecordToRuntimeMessage(entry.record);
87
88
  if (message) messages.push({ ...message, cliMessageId: entry.messageId });
88
89
  }
89
- return messages;
90
+ return orderDialogHistory(messages);
90
91
  }
91
92
 
92
93
  export {
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-KNIIRXHF.js";
6
+ } from "./chunk-DUUDXSLX.js";
7
7
  import {
8
8
  projectOpenAiToolImages
9
- } from "./chunk-E2BESSAW.js";
9
+ } from "./chunk-X4O7FJF5.js";
10
10
  import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-EWPDMS4N.js";
14
+ } from "./chunk-7JGMNKKG.js";
15
15
  import {
16
16
  asOptionalTrimmedString
17
17
  } from "./chunk-G3SUCT4W.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-4NA3YTBC.js";
3
+ } from "./chunk-RTHFJZ6M.js";
4
4
 
5
5
  // packages/cli/client/localRuntimeHelpers.ts
6
6
  var REMOTE_DIALOG_SYNC_TIMEOUT_MS = 1e4;
@@ -27,7 +27,10 @@ var readIndexed = async (db, prefix) => {
27
27
  var putMemoryEntityVNext = async (db, entity) => {
28
28
  await db.put(entityKey(entity.ownerId, entity.id), entity);
29
29
  };
30
- var getMemoryEntityVNext = async (db, ownerId, entityId) => db.get(entityKey(ownerId, entityId)).catch(() => null);
30
+ var getMemoryEntityVNext = async (db, ownerId, entityId) => db.get(entityKey(ownerId, entityId)).catch((error) => {
31
+ if (isLevelNotFoundError(error)) return null;
32
+ throw error;
33
+ });
31
34
  var listMemoryEntitiesVNext = async (db, ownerId) => {
32
35
  const rows = [];
33
36
  for await (const [, value] of db.iterator({
@@ -62,7 +65,10 @@ var putMemoryStateVNext = async (db, state) => {
62
65
  _appendStateBatch(batch, state);
63
66
  await batch.write();
64
67
  };
65
- var getMemoryStateVNext = async (db, ownerId, stateId) => db.get(stateKey(ownerId, stateId)).catch(() => null);
68
+ var getMemoryStateVNext = async (db, ownerId, stateId) => db.get(stateKey(ownerId, stateId)).catch((error) => {
69
+ if (isLevelNotFoundError(error)) return null;
70
+ throw error;
71
+ });
66
72
  var listMemoryStatesForEntityVNext = (db, ownerId, entityId) => readIndexed(db, stateEntityIndexPrefix(ownerId, entityId));
67
73
  var retireMemoryStateVNext = async (db, ownerId, stateId, retiredAt) => {
68
74
  const existing = await getMemoryStateVNext(db, ownerId, stateId);
@@ -129,6 +135,16 @@ var _appendRelationBatch = (batch, relation) => {
129
135
  batch.put(relationFromIndexKey(relation.ownerId, relation.from, relation.id), { key });
130
136
  batch.put(relationToIndexKey(relation.ownerId, relation.to, relation.id), { key });
131
137
  };
138
+ var loadNativeCaptureEvidenceContext = async (db, ownerId, excludeId, limit = 40) => {
139
+ const evidence = [];
140
+ const prefix = `mem2-v-${enc(ownerId)}-`;
141
+ let scanned = 0;
142
+ for await (const [, value] of db.iterator({ ...rangeOf(prefix), reverse: false })) {
143
+ if (++scanned > limit) return { evidence, truncated: true };
144
+ if (value?.nativeCapture && value.id !== excludeId) evidence.push(value);
145
+ }
146
+ return { evidence, truncated: false };
147
+ };
132
148
 
133
149
  export {
134
150
  putMemoryEntityVNext,
@@ -150,5 +166,6 @@ export {
150
166
  _appendEvidenceBatch,
151
167
  _appendStateBatch,
152
168
  _appendRetiredStateBatch,
153
- _appendRelationBatch
169
+ _appendRelationBatch,
170
+ loadNativeCaptureEvidenceContext
154
171
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MEMORY_USE_GUIDANCE,
3
3
  wrapHistoricalSummaryWithReplayGuard
4
- } from "./chunk-L5I543VB.js";
4
+ } from "./chunk-BNMPUQW6.js";
5
5
 
6
6
  // packages/agent-runtime/skillCatalog.ts
7
7
  var SKILL_CATALOG_PRIORITY = Object.freeze([
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-UKS7D2NL.js";
4
+ } from "./chunk-XSW4EXQV.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -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
+ };
@@ -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-4NA3YTBC.js";
3
+ } from "./chunk-RTHFJZ6M.js";
4
4
  import {
5
5
  toErrorMessage
6
6
  } from "./chunk-HNMXYYJR.js";
@@ -14,7 +14,13 @@ import {
14
14
  qwenTokenPlanModels,
15
15
  stepfunModels,
16
16
  stepfunStepPlanModels
17
- } from "./chunk-KYH7XW3K.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,
@@ -24,12 +30,6 @@ import {
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 },