nolo-cli 0.226.0-alpha.1 → 0.226.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 (259) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UE2NJPZD.js → _executeModel-IZ2MCXHO.js} +89 -83
  3. package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
  4. package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
  5. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
  6. package/{agentDeleteCommand-SOI25WK7.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
  7. package/{agentEmailCommands-UGWQQNKM.js → agentEmailCommands-OFS477PV.js} +144 -133
  8. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  9. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  10. package/agentListCommands-IQQHJSXP.js +644 -0
  11. package/{agentMachineCommands-M6IKO7XE.js → agentMachineCommands-NS65BEW7.js} +75 -66
  12. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
  13. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  14. package/agentRecordCommands-4VE7CNLC.js +188 -0
  15. package/agentRunCommand-2MUXHKNW.js +223 -0
  16. package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
  17. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
  18. package/{agentSlice-7PTNWEED.js → agentSlice-5VTAFG43.js} +19 -18
  19. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
  20. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
  21. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
  22. package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
  23. package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
  24. package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
  25. package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
  26. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
  29. package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
  32. package/chunk-2SXN7LAY.js +15 -0
  33. package/{chunk-GSAS72AN.js → chunk-2T5BHLID.js} +2871 -1565
  34. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  35. package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
  36. package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
  37. package/{chunk-OWH2BLNU.js → chunk-3UNAGTBW.js} +32 -95
  38. package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
  39. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  40. package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
  41. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  42. package/chunk-4ZCTKB27.js +31 -0
  43. package/chunk-53W5BXLN.js +340 -0
  44. package/{chunk-TD6QCQ5G.js → chunk-5GRWWUB4.js} +4 -4
  45. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  46. package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
  47. package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
  48. package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
  49. package/chunk-6RSNVJGO.js +279 -0
  50. package/{chunk-BRW24CTE.js → chunk-6S6CZUXK.js} +42 -33
  51. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  52. package/{chunk-CVS5IMJ5.js → chunk-6XLWUNZB.js} +25 -25
  53. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  54. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  55. package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
  56. package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
  57. package/{chunk-FS3RA7D2.js → chunk-7HUHOCIY.js} +147 -162
  58. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  59. package/chunk-BEM6LPD2.js +734 -0
  60. package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
  61. package/chunk-BIDSIRTS.js +307 -0
  62. package/{chunk-VTW7VKZX.js → chunk-C4KX626C.js} +15 -15
  63. package/chunk-C5A54QS7.js +108 -0
  64. package/{chunk-4PMZVBDU.js → chunk-CHYYSFFM.js} +6 -6
  65. package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
  66. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  67. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  68. package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
  69. package/{chunk-5NC6A2RZ.js → chunk-DPAIQLAL.js} +105 -102
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
  72. package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
  73. package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
  74. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  75. package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
  76. package/chunk-FDZ2GBWO.js +166 -0
  77. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  78. package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
  79. package/{chunk-HYHIAM6T.js → chunk-HQVNO7FH.js} +66 -35
  80. package/chunk-HSWEFHFS.js +103 -0
  81. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  82. package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
  83. package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
  84. package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
  85. package/{chunk-TUIWP2LF.js → chunk-J2XZZXIH.js} +4 -4
  86. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  87. package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
  88. package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
  89. package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
  90. package/chunk-KK3FCYZM.js +647 -0
  91. package/{chunk-ZZ4M2I3R.js → chunk-KLD7K5FD.js} +349 -16
  92. package/{chunk-JIADJPUV.js → chunk-KMW5CRRM.js} +1564 -2955
  93. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  94. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  95. package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
  96. package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
  97. package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
  98. package/chunk-MFXJY44K.js +133 -0
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  101. package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
  102. package/{chunk-HJAO2NAL.js → chunk-ODGSLWLO.js} +593 -370
  103. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  104. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  105. package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
  106. package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
  107. package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
  108. package/chunk-P27E22MA.js +203 -0
  109. package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
  110. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  111. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  112. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  113. package/{chunk-EVPIBQ5I.js → chunk-QUJKDFZW.js} +17 -17
  114. package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
  115. package/{chunk-X4OVEYPX.js → chunk-QYNABNNQ.js} +13 -13
  116. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  117. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  118. package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
  119. package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
  120. package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
  121. package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
  122. package/{chunk-X7YC2OHB.js → chunk-SBRJOYND.js} +723 -355
  123. package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
  124. package/chunk-SR4FE5VD.js +9 -0
  125. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  126. package/chunk-T3WSFTBS.js +62 -0
  127. package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
  128. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  129. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  130. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  131. package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
  132. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  133. package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
  134. package/{chunk-GS4OTYCH.js → chunk-UR7555FE.js} +9 -9
  135. package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
  136. package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
  137. package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
  138. package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
  139. package/chunk-VNALJT32.js +33394 -0
  140. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  141. package/chunk-WBSJAIZP.js +170 -0
  142. package/chunk-WDWZPASX.js +29 -0
  143. package/chunk-WFGNWWJI.js +326 -0
  144. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  145. package/chunk-WVOZ35E4.js +1438 -0
  146. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  147. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  148. package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
  149. package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
  150. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  151. package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
  152. package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
  153. package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
  154. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  155. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  156. package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
  157. package/chunk-YUZ2DAIH.js +34 -0
  158. package/chunk-Z6YTCDU4.js +24 -0
  159. package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
  160. package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
  161. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  162. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
  167. package/{commandRegistry-XSMTI5PG.js → commandRegistry-OKIWAJIS.js} +113 -101
  168. package/{contentThunks-S4NNC7R2.js → contentThunks-VF2DCU46.js} +41 -38
  169. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
  170. package/{createAgentAutomationAction-TH7ZEACJ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
  171. package/{createDialogAction-SYZAYIIQ.js → createDialogAction-XYDQZETK.js} +42 -40
  172. package/{createPageAction-7Y4U6TXO.js → createPageAction-74S5RO7U.js} +46 -43
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
  175. package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
  176. package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
  179. package/{dialogSlice-O3RHDAWK.js → dialogSlice-XAUKSWZ4.js} +41 -38
  180. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
  181. package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
  182. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
  183. package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
  184. package/{docStore-PYNEODAH.js → docStore-ZZT2BEBU.js} +16 -15
  185. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
  186. package/fetchMessages-TQEUZD7H.js +2 -2
  187. package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
  188. package/{handleSendMessageAction-Z43FP2E2.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
  189. package/{hostCredentialCreate-Y7YIGKP4.js → hostCredentialCreate-SNQT73H4.js} +131 -119
  190. package/index.js +56 -18
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  194. package/{localRuntimeAdapter-ZLJONQZS.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-4ZLMRIA3.js → machineCommands-3O6Y27R4.js} +283 -348
  198. package/machineWsRunDispatch-5PFLR5XC.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
  201. package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
  202. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  203. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-JBX6HNK6.js → projectArchive-X2EVXU3N.js} +47 -44
  207. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
  208. package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
  209. package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
  210. package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
  211. package/{readlineWorkspace-WFPIAAAT.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
  214. package/{runAgentClientLoop-STI5TKDJ.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
  215. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
  216. package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
  217. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
  218. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
  219. package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-A2WL5OOF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
  224. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
  225. package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  227. package/{tools-6NU5E6BN.js → tools-MIOCXKMG.js} +72 -68
  228. package/tuiRestart-ET3QISZ5.js +41 -0
  229. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
  230. package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-VMKU2Y67.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
  232. package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
  233. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
  234. package/webapi-24RZDIIQ.js +2488 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-YBNOQ5T3.js +0 -991
  241. package/agentRecordCommands-3HL7Z4X6.js +0 -177
  242. package/agentRunCommand-C64A6MPL.js +0 -208
  243. package/chunk-2THCNKE4.js +0 -147
  244. package/chunk-2WZXXAQD.js +0 -57
  245. package/chunk-5ZMIIR23.js +0 -265
  246. package/chunk-652XYZGP.js +0 -352
  247. package/chunk-BJF2MHJ3.js +0 -118
  248. package/chunk-KEPOVMF4.js +0 -91
  249. package/chunk-QVBXJNZ2.js +0 -81
  250. package/chunk-QZI44GWV.js +0 -776
  251. package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
  252. package/machineWsRunDispatch-L7Z3ULDF.js +0 -192
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  254. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  257. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  258. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  259. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
@@ -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,21 +1,31 @@
1
1
  import {
2
2
  streamSseDataValues
3
3
  } from "./chunk-HNUWUO75.js";
4
- import {
5
- resolveToolImagePolicy
6
- } from "./chunk-KNIIRXHF.js";
7
4
  import {
8
5
  projectOpenAiToolImages
9
- } from "./chunk-E2BESSAW.js";
6
+ } from "./chunk-X4O7FJF5.js";
7
+ import {
8
+ resolveToolImagePolicy
9
+ } from "./chunk-P244EH4W.js";
10
10
  import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-EWPDMS4N.js";
14
+ } from "./chunk-Y22P6ASC.js";
15
15
  import {
16
16
  asOptionalTrimmedString
17
17
  } from "./chunk-G3SUCT4W.js";
18
18
 
19
+ // packages/agent-runtime/types.ts
20
+ var AGENT_PROMPT_IN_MESSAGES = Symbol("agent-prompt-in-messages");
21
+ function hasAssembledAgentPrompt(messages) {
22
+ return messages.some((raw) => {
23
+ if (!raw || typeof raw !== "object") return false;
24
+ const message = raw;
25
+ return message.role === "system" && message[AGENT_PROMPT_IN_MESSAGES] === true;
26
+ });
27
+ }
28
+
19
29
  // packages/core/chat/upstreamErrorBody.ts
20
30
  function parseUpstreamErrorBody(errorText, statusText) {
21
31
  if (errorText) {
@@ -41,53 +51,115 @@ var WIRE_PROFILES = {
41
51
  // Antigravity discovery exposes 3.7 Flash as one tiered wire model.
42
52
  // The UI labels its effort variants (Low/Medium/High), but the literal
43
53
  // -medium/-high ids return 404 from streamGenerateContent.
44
- "gemini-3.7-flash-tiered": { modelEnum: "MODEL_PLACEHOLDER_M301", maxOutputTokens: 65536 },
54
+ "gemini-3.7-flash-tiered": {
55
+ modelEnum: "MODEL_PLACEHOLDER_M301",
56
+ maxOutputTokens: 65536
57
+ },
45
58
  // Gemini 3.8 Flash 沿用 3.7 的 tiered 兼容策略:仓库内暂无 Antigravity discovery
46
59
  // 证据确认 3.8 的 wire modelEnum,禁止虚构,先只声明同档输出上限;enum 待
47
60
  // discovery 证据到位后补齐。
48
61
  "gemini-3.8-flash-tiered": { maxOutputTokens: 65536 },
49
- // Gemini 4 Argon:fetchAvailableModels(2026-10 实测)仅返回键 `gemini-4-argon-disabled`
50
- // (MODEL_PLACEHOLDER_M421,maxOutputTokens 65536,disabled=true,提示「仅 Ultra 订阅可用」)。
51
- // 该键名带 -disabled 后缀,不是已验证可调用的 wire id:对 streamGenerateContent 用
52
- // gemini-4-argon / -disabled / -tiered / -low 均返回 404。因此这里以 logical id 作为
53
- // 透传 wire id(开放后若 discovery 给出真实 id,只需改这一行与 resolve 分支),
54
- // enum 取自 discovery 的 M421,不凭空推测 low/medium/high 档位 id。
55
- // 2026-10-13 实测:UA 升到官方 2.23.1 后 discovery 与 2.18.1 完全一致(仍仅 gemini-4-argon-disabled,
56
- // disabled=true,tagTitle "Unavailable",tagDescription "currently available to Ultra plan subscribers"),
57
- // streamGenerateContent 仍 404;loadCodeAssist currentTier=free-tier,账号非 Ultra,故保持占位映射。
58
- "gemini-4-argon": { modelEnum: "MODEL_PLACEHOLDER_M421", maxOutputTokens: 65536 },
62
+ // Discovery (2026-11-16) exposes separate enabled Argon effort variants.
63
+ "gemini-4-argon-low": {
64
+ modelEnum: "MODEL_PLACEHOLDER_M419",
65
+ maxOutputTokens: 65536
66
+ },
67
+ "gemini-4-argon-medium": {
68
+ modelEnum: "MODEL_PLACEHOLDER_M418",
69
+ maxOutputTokens: 65536
70
+ },
71
+ "gemini-4-argon-high": {
72
+ modelEnum: "MODEL_PLACEHOLDER_M417",
73
+ maxOutputTokens: 65536
74
+ },
75
+ // Discovery (2026-11-17) exposes Carbon effort variants with their own enums and a
76
+ // 262144 output cap (Argon caps at 65536). 裸 gemini-4-carbon 不在 discovery 里,
77
+ // 必须折叠到 effort 变体,否则上游回 404。
78
+ "gemini-4-carbon-low": {
79
+ modelEnum: "MODEL_PLACEHOLDER_M438",
80
+ maxOutputTokens: 262144
81
+ },
82
+ "gemini-4-carbon-medium": {
83
+ modelEnum: "MODEL_PLACEHOLDER_M437",
84
+ maxOutputTokens: 262144
85
+ },
86
+ "gemini-4-carbon-high": {
87
+ modelEnum: "MODEL_PLACEHOLDER_M427",
88
+ maxOutputTokens: 262144
89
+ },
90
+ // Antigravity discovery 暴露 -medium / -high 变体;尚无 modelEnum 证据时不虚构 enum,仅声明 65536 输出上限。
91
+ "gemini-4-hydrogen-medium": { maxOutputTokens: 65536 },
92
+ "gemini-4-hydrogen-high": { maxOutputTokens: 65536 },
59
93
  "gemini-3.6-flash-low": { maxOutputTokens: 65536 },
60
94
  "gemini-3.6-flash-medium": { maxOutputTokens: 65536 },
61
95
  "gemini-3.6-flash-high": { maxOutputTokens: 65536 },
62
96
  // 旧模型 wire 映射保留:存量自定义 agent 仍可能引用(注册表已下线不影响此处)。
63
- "gemini-3.5-flash-extra-low": { modelEnum: "MODEL_PLACEHOLDER_M187", maxOutputTokens: 65536 },
64
- "gemini-3.5-flash-low": { modelEnum: "MODEL_PLACEHOLDER_M20", maxOutputTokens: 65536 },
65
- "gemini-3-flash-agent": { modelEnum: "MODEL_PLACEHOLDER_M132", maxOutputTokens: 65536 },
66
- "gemini-3.1-pro-low": { modelEnum: "MODEL_PLACEHOLDER_M36", maxOutputTokens: 65535 },
67
- "gemini-pro-agent": { modelEnum: "MODEL_PLACEHOLDER_M16", maxOutputTokens: 65535 },
97
+ "gemini-3.5-flash-extra-low": {
98
+ modelEnum: "MODEL_PLACEHOLDER_M187",
99
+ maxOutputTokens: 65536
100
+ },
101
+ "gemini-3.5-flash-low": {
102
+ modelEnum: "MODEL_PLACEHOLDER_M20",
103
+ maxOutputTokens: 65536
104
+ },
105
+ "gemini-3-flash-agent": {
106
+ modelEnum: "MODEL_PLACEHOLDER_M132",
107
+ maxOutputTokens: 65536
108
+ },
109
+ "gemini-3.1-pro-low": {
110
+ modelEnum: "MODEL_PLACEHOLDER_M36",
111
+ maxOutputTokens: 65535
112
+ },
113
+ "gemini-pro-agent": {
114
+ modelEnum: "MODEL_PLACEHOLDER_M16",
115
+ maxOutputTokens: 65535
116
+ },
68
117
  "claude-sonnet-5": { maxOutputTokens: 64e3 },
69
118
  "claude-sonnet-4-6": { maxOutputTokens: 64e3 },
70
119
  "claude-opus-4-6-thinking": { maxOutputTokens: 64e3 },
71
120
  "gemini-2.5-flash": { maxOutputTokens: 65536 },
72
121
  "gemini-2.5-pro": { maxOutputTokens: 65536 }
73
122
  };
74
- function resolveAntigravityWireModel(logicalModelId) {
123
+ function resolveAntigravityWireModel(logicalModelId, reasoningEffort) {
75
124
  const id = logicalModelId.trim();
76
125
  const lower = id.toLowerCase();
77
126
  if (lower === "gemini-3.5-flash") {
78
127
  const wireModelId = "gemini-3.5-flash-low";
79
128
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
80
129
  }
81
- if (lower === "gemini-3.7-flash" || ["gemini-3.7-flash-low", "gemini-3.7-flash-medium", "gemini-3.7-flash-high"].includes(lower)) {
130
+ if (lower === "gemini-3.7-flash" || [
131
+ "gemini-3.7-flash-low",
132
+ "gemini-3.7-flash-medium",
133
+ "gemini-3.7-flash-high"
134
+ ].includes(lower)) {
82
135
  const wireModelId = "gemini-3.7-flash-tiered";
83
136
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
84
137
  }
85
- if (lower === "gemini-3.8-flash" || ["gemini-3.8-flash-low", "gemini-3.8-flash-medium", "gemini-3.8-flash-high"].includes(lower)) {
138
+ if (lower === "gemini-3.8-flash" || [
139
+ "gemini-3.8-flash-low",
140
+ "gemini-3.8-flash-medium",
141
+ "gemini-3.8-flash-high"
142
+ ].includes(lower)) {
86
143
  const wireModelId = "gemini-3.8-flash-tiered";
87
144
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
88
145
  }
89
- if (lower === "gemini-4-argon" || ["gemini-4-argon-low", "gemini-4-argon-medium", "gemini-4-argon-high"].includes(lower)) {
90
- const wireModelId = "gemini-4-argon";
146
+ const gemini4 = /^gemini-4-(argon|carbon)(?:-(low|medium|high))?$/.exec(
147
+ lower
148
+ );
149
+ if (gemini4) {
150
+ const family = gemini4[1] ?? "argon";
151
+ const explicitEffort = gemini4[2];
152
+ const effort = reasoningEffort?.trim().toLowerCase();
153
+ const selected = explicitEffort ?? (effort === "low" || effort === "high" ? effort : "medium");
154
+ const wireModelId = `gemini-4-${family}-${selected}`;
155
+ return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
156
+ }
157
+ const hydrogen = /^gemini-4-hydrogen(?:-(medium|high))?$/.exec(lower);
158
+ if (hydrogen) {
159
+ const explicitEffort = hydrogen[1];
160
+ const effort = reasoningEffort?.trim().toLowerCase();
161
+ const selected = explicitEffort ?? (effort === "high" ? "high" : "medium");
162
+ const wireModelId = `gemini-4-hydrogen-${selected}`;
91
163
  return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
92
164
  }
93
165
  if (lower === "gemini-3.6-flash") {
@@ -608,10 +680,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
608
680
  const branchRequired = Array.isArray(sanitized.required) ? sanitized.required : [];
609
681
  requiredIntersection = requiredIntersection === void 0 ? [...branchRequired] : requiredIntersection.filter((r) => branchRequired.includes(r));
610
682
  }
611
- out.properties = {
683
+ const combinedProperties = {
612
684
  ...out.properties ?? {},
613
685
  ...mergedProperties
614
686
  };
687
+ out.properties = Object.fromEntries(
688
+ Object.keys(combinedProperties).sort().map((key) => [key, combinedProperties[key]])
689
+ );
615
690
  if (requiredIntersection !== void 0 && requiredIntersection.length > 0) {
616
691
  out.required = requiredIntersection;
617
692
  }
@@ -639,10 +714,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
639
714
  for (const branch of src.allOf) {
640
715
  const sanitized = sanitizeGeminiSchemaNode(branch, seen);
641
716
  if (out.type === void 0 || out.type === "object" || out.properties || sanitized.properties) {
642
- out.properties = {
717
+ const merged = {
643
718
  ...out.properties ?? {},
644
719
  ...sanitized.properties ?? {}
645
720
  };
721
+ out.properties = Object.fromEntries(
722
+ Object.keys(merged).sort().map((key) => [key, merged[key]])
723
+ );
646
724
  }
647
725
  if (Array.isArray(sanitized.required)) {
648
726
  out.required = [
@@ -656,11 +734,10 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
656
734
  if (typeof out.type !== "string") out.type = "object";
657
735
  }
658
736
  if (src.properties && typeof src.properties === "object") {
737
+ const rawProperties = src.properties;
659
738
  const properties = {};
660
- for (const [key, value] of Object.entries(
661
- src.properties
662
- )) {
663
- properties[key] = sanitizeGeminiSchemaNode(value, seen);
739
+ for (const key of Object.keys(rawProperties).sort()) {
740
+ properties[key] = sanitizeGeminiSchemaNode(rawProperties[key], seen);
664
741
  }
665
742
  out.properties = properties;
666
743
  if (typeof out.type !== "string") out.type = "object";
@@ -706,6 +783,7 @@ function convertOpenAiToolsToGemini(tools) {
706
783
  });
707
784
  }
708
785
  if (declarations.length === 0) return void 0;
786
+ declarations.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
709
787
  return [{ functionDeclarations: declarations }];
710
788
  }
711
789
  function createGeminiAccumulatorState() {
@@ -721,19 +799,25 @@ function applyGeminiChunk(chunk, state, options) {
721
799
  const response = "response" in chunk && chunk.response && typeof chunk.response === "object" ? chunk.response : chunk;
722
800
  if ("usageMetadata" in response && response.usageMetadata && typeof response.usageMetadata === "object") {
723
801
  const meta = response.usageMetadata;
724
- const prompt = typeof meta.promptTokenCount === "number" ? meta.promptTokenCount : 0;
802
+ const hasPromptTokenCount = typeof meta.promptTokenCount === "number" && Number.isFinite(meta.promptTokenCount);
803
+ const hasCachedContentTokenCount = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount);
804
+ const prompt = hasPromptTokenCount ? meta.promptTokenCount : 0;
725
805
  const candidates2 = typeof meta.candidatesTokenCount === "number" ? meta.candidatesTokenCount : 0;
726
806
  const total = typeof meta.totalTokenCount === "number" ? meta.totalTokenCount : prompt + candidates2;
727
- const cached = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount) ? (
807
+ const clampedPrompt = Math.max(0, Math.floor(prompt));
808
+ const cached = hasCachedContentTokenCount ? (
728
809
  // cached ⊆ prompt;对畸形上游防御性钳位,避免 cache_read > input 破坏归一化与计费
729
- Math.min(Math.max(0, Math.floor(meta.cachedContentTokenCount)), prompt)
810
+ Math.min(
811
+ Math.max(0, Math.floor(meta.cachedContentTokenCount)),
812
+ clampedPrompt
813
+ )
730
814
  ) : 0;
731
815
  const thoughts = typeof meta.thoughtsTokenCount === "number" ? meta.thoughtsTokenCount : Array.isArray(meta.candidatesTokensDetails) && typeof meta.candidatesTokensDetails[0]?.tokensCount === "number" ? meta.candidatesTokensDetails[0].tokensCount : void 0;
732
816
  state.usage = {
733
817
  prompt_tokens: prompt,
734
818
  completion_tokens: candidates2,
735
819
  total_tokens: total,
736
- ...cached > 0 ? { cache_read_input_tokens: cached } : {},
820
+ ...hasPromptTokenCount || hasCachedContentTokenCount ? { cache_read_input_tokens: cached } : {},
737
821
  ...thoughts !== void 0 ? {
738
822
  completion_tokens_details: {
739
823
  reasoning_tokens: thoughts
@@ -840,7 +924,7 @@ function buildGeminiGenerateContentRequest(args) {
840
924
  maxImagesPerRequest: toolImagePolicy.maxImagesPerRequest
841
925
  }
842
926
  );
843
- const request = { contents };
927
+ const request = {};
844
928
  if (systemTexts.length > 0) {
845
929
  request.systemInstruction = {
846
930
  role: "user",
@@ -852,6 +936,7 @@ function buildGeminiGenerateContentRequest(args) {
852
936
  request.tools = toolsResult;
853
937
  request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
854
938
  }
939
+ request.contents = contents;
855
940
  const generationConfig = {};
856
941
  if (typeof args.maxTokens === "number" && args.maxTokens > 0) {
857
942
  generationConfig.maxOutputTokens = args.maxTokens;
@@ -898,7 +983,10 @@ function buildCloudCodeAssistPayload(args) {
898
983
  );
899
984
  }
900
985
  const logicalModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gemini-3.1-pro";
901
- const { wireModelId: model, profile } = resolveAntigravityWireModel(logicalModel);
986
+ const { wireModelId: model, profile } = resolveAntigravityWireModel(
987
+ logicalModel,
988
+ asOptionalTrimmedString(args.openAiBody.reasoning_effort) ?? args.agentConfig.reasoning_effort
989
+ );
902
990
  const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
903
991
  const quirks = resolveGeminiModelQuirks(model);
904
992
  const isClaude = quirks.isClaudeCrossModel;
@@ -916,8 +1004,8 @@ function buildCloudCodeAssistPayload(args) {
916
1004
  throw new Error("Antigravity Cloud Code Assist request has no user/model contents.");
917
1005
  }
918
1006
  const prompt = args.agentConfig.prompt?.trim();
919
- if (prompt) systemTexts.unshift(prompt);
920
- const request = { contents };
1007
+ if (prompt && !hasAssembledAgentPrompt(rawMessages)) systemTexts.unshift(prompt);
1008
+ const request = {};
921
1009
  if (systemTexts.length > 0) {
922
1010
  request.systemInstruction = {
923
1011
  role: "user",
@@ -931,6 +1019,7 @@ function buildCloudCodeAssistPayload(args) {
931
1019
  request.tools = tools;
932
1020
  request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
933
1021
  }
1022
+ request.contents = contents;
934
1023
  const generationConfig = {};
935
1024
  if (profile?.maxOutputTokens) {
936
1025
  generationConfig.maxOutputTokens = profile.maxOutputTokens;
@@ -1199,6 +1288,8 @@ function buildDevinOAuthCredential(token, now = Date.now()) {
1199
1288
  }
1200
1289
 
1201
1290
  export {
1291
+ AGENT_PROMPT_IN_MESSAGES,
1292
+ hasAssembledAgentPrompt,
1202
1293
  parseSseDataLineJson,
1203
1294
  parseSseDataLineObject,
1204
1295
  parseUpstreamErrorBody,
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
206
206
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
207
207
  }
208
208
  try {
209
- const { readAction } = await import("./read-Q7GOHGNP.js");
209
+ const { readAction } = await import("./read-QAHEQID5.js");
210
210
  const pageData = await readAction({ dbKey: id }, thunkApi);
211
211
  if (!pageData) {
212
212
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -3,26 +3,19 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-BRW24CTE.js";
6
+ } from "./chunk-6S6CZUXK.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-X4OVEYPX.js";
9
+ } from "./chunk-QYNABNNQ.js";
10
10
  import {
11
- CREDENTIAL_HYGIENE_RULE,
12
- DELETE_SAFETY_RED_LINE,
13
- DISPATCH_BACKEND_POLICY,
14
- DISPATCH_CANDIDATE_POLICY,
15
- PARALLEL_DISPATCH_DEFAULT_RULE,
16
- PLATFORM_RISK_CONTROL_RULE,
17
- VERIFY_BEFORE_CONCLUDING_RULE,
18
- buildConsultationModeBlock,
19
11
  buildIdentityBlock,
12
+ buildPlatformStaticContextLayers,
20
13
  buildResponseGuidelines,
21
14
  buildRuntimeGuidanceBlocks,
22
15
  compileContextLayers,
23
16
  detectDispatchIntentFromMessages,
24
17
  resolveToolGuidedSections
25
- } from "./chunk-2TIQO6TC.js";
18
+ } from "./chunk-ER3P6MBT.js";
26
19
  import {
27
20
  convertMessagesToResponsesInput,
28
21
  getUsageRequestOptions,
@@ -31,32 +24,36 @@ import {
31
24
  resolveReasoningReplayOptions,
32
25
  shouldStripReasoningContentForOutbound,
33
26
  stablePromptCacheKey
34
- } from "./chunk-JM5C4EUA.js";
27
+ } from "./chunk-F4MCAOWN.js";
35
28
  import {
36
29
  resolveAgentCallPlan,
37
30
  resolveClientWire
38
- } from "./chunk-DISQCYPE.js";
31
+ } from "./chunk-ENYTIRIO.js";
39
32
  import {
40
33
  createFileCredentialBroker
41
- } from "./chunk-SNBZZPYH.js";
34
+ } from "./chunk-OQHIVPG4.js";
35
+ import {
36
+ MEMORY_USE_GUIDANCE,
37
+ buildUserResponseLanguageContext
38
+ } from "./chunk-YGDYYFRX.js";
39
+ import {
40
+ wrapHistoricalSummaryWithReplayGuard
41
+ } from "./chunk-2SXN7LAY.js";
42
42
  import {
43
- WORKTREE_ISOLATION_PRELUDE,
44
43
  buildSkillGuidancePromptBlock
45
- } from "./chunk-GNHMRBYZ.js";
44
+ } from "./chunk-RIMFTQMC.js";
46
45
  import {
47
46
  canonicalizeToolNames
48
- } from "./chunk-6OVNSQHN.js";
47
+ } from "./chunk-YLAHYLDQ.js";
49
48
  import {
50
- MEMORY_USE_GUIDANCE,
51
- buildUserResponseLanguageContext,
52
- wrapHistoricalSummaryWithReplayGuard
53
- } from "./chunk-L5I543VB.js";
54
- import {
55
- buildProviderAuthHeaders
56
- } from "./chunk-4NA3YTBC.js";
49
+ API_ENDPOINTS
50
+ } from "./chunk-LCBAMY2M.js";
57
51
  import {
58
52
  toErrorMessage
59
53
  } from "./chunk-HNMXYYJR.js";
54
+ import {
55
+ buildProviderAuthHeaders
56
+ } from "./chunk-LMFMV5UC.js";
60
57
  import {
61
58
  asTrimmedString
62
59
  } from "./chunk-3EUW3WEO.js";
@@ -64,25 +61,22 @@ import {
64
61
  clampReasoningEffort,
65
62
  getModelConfig,
66
63
  isModelSupportReasoningEffort
67
- } from "./chunk-KYH7XW3K.js";
64
+ } from "./chunk-OJRTTERA.js";
68
65
  import {
69
66
  isRecord
70
67
  } from "./chunk-KUG52IAP.js";
71
- import {
72
- isDeepInfraKimiModel,
73
- isFireworksKimiModel,
74
- isPlatformMimoProviderModel,
75
- resolveFireworksKimiModel
76
- } from "./chunk-OBSEKCVK.js";
77
- import {
78
- API_ENDPOINTS
79
- } from "./chunk-LCBAMY2M.js";
80
68
  import {
81
69
  asOptionalTrimmedString
82
70
  } from "./chunk-G3SUCT4W.js";
83
71
  import {
84
72
  isLoopbackUrl
85
73
  } from "./chunk-4SN6J65J.js";
74
+ import {
75
+ isDeepInfraKimiModel,
76
+ isFireworksKimiModel,
77
+ isPlatformMimoProviderModel,
78
+ resolveFireworksKimiModel
79
+ } from "./chunk-U4VSBDO5.js";
86
80
 
87
81
  // packages/agent-runtime/responsesConversationState.ts
88
82
  function supportsResponsesConversationState(agent) {
@@ -247,8 +241,7 @@ ${mainPrompt}` : "";
247
241
  emailRegistrationWorkflow
248
242
  } = buildRuntimeGuidanceBlocks(agentTools);
249
243
  const clarifyingSection = !mainPrompt || hasAskTool ? CLARIFICATION_MODE_INSTRUCTIONS : "";
250
- const userGlobalPromptSection = contexts.userGlobalPrompt?.trim() ? `-- - \u7528\u6237\u5168\u5C40\u504F\u597D-- -
251
- ${contexts.userGlobalPrompt.trim()} ` : "";
244
+ const userGlobalPromptSection = "";
252
245
  const effectiveViewport = viewport ?? contexts.viewport;
253
246
  const isMobile = effectiveViewport !== void 0 ? effectiveViewport.width < mobileBreakpoint : typeof contexts.isMobile === "boolean" ? contexts.isMobile : isBrowser && typeof window !== "undefined" ? window.innerWidth < mobileBreakpoint : false;
254
247
  const responseGuidelinesSection = buildResponseGuidelines(isMobile);
@@ -267,65 +260,8 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
267
260
  const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
268
261
  ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
269
262
  return compileContextLayers([
270
- // 删除安全红线:系统层最高优先级约束,位于所有层之前(含身份信息),
271
- // owner 要求常驻「根本提示词」的最顶部(2026-09-26 批量误删事故)。
272
- {
273
- id: "delete-safety-red-line",
274
- owner: "platform",
275
- cacheScope: "static",
276
- content: DELETE_SAFETY_RED_LINE
277
- },
278
- // 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
279
- {
280
- id: "credential-hygiene",
281
- owner: "platform",
282
- cacheScope: "static",
283
- content: CREDENTIAL_HYGIENE_RULE
284
- },
285
- // 先验证再下结论:一切动作的前提,紧随凭据纪律、先于并行/派发/发布规则。
286
- {
287
- id: "verify-before-concluding",
288
- owner: "platform",
289
- cacheScope: "static",
290
- content: VERIFY_BEFORE_CONCLUDING_RULE
291
- },
292
- // 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
293
- {
294
- id: "parallel-dispatch-default",
295
- owner: "platform",
296
- cacheScope: "static",
297
- content: PARALLEL_DISPATCH_DEFAULT_RULE
298
- },
299
- // 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
300
- {
301
- id: "dispatch-backend-policy",
302
- owner: "platform",
303
- cacheScope: "static",
304
- content: DISPATCH_BACKEND_POLICY
305
- },
306
- // 派发选人:可用性重扫与速度口径(与后端块同级,紧随其后)。
307
- {
308
- id: "dispatch-candidate-policy",
309
- owner: "platform",
310
- cacheScope: "static",
311
- content: DISPATCH_CANDIDATE_POLICY
312
- },
313
- // 平台风控纪律:无条件静态前缀,紧随并行派发块。
314
- {
315
- id: "platform-risk-control",
316
- owner: "platform",
317
- cacheScope: "static",
318
- content: PLATFORM_RISK_CONTROL_RULE
319
- },
320
- { id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
321
- // Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
322
- // 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
323
- {
324
- id: "worktree-isolation-prelude",
325
- owner: "platform",
326
- cacheScope: "static",
327
- content: WORKTREE_ISOLATION_PRELUDE
328
- },
263
+ // 顶部固定平台层(唯一真源见 agent-runtime/platformStaticPromptLayers.ts)。
264
+ ...buildPlatformStaticContextLayers(),
329
265
  { id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
330
266
  { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
331
267
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
@@ -1234,6 +1170,7 @@ function sanitizeOutboundBody(body) {
1234
1170
 
1235
1171
  // packages/ai/tools/stripModelConfirmationFlags.ts
1236
1172
  var CONFIRMATION_INPUT_KEYS = {
1173
+ knowledge_capture_requires_confirmation: "__confirmedKnowledgeCapture",
1237
1174
  self_evolution_requires_confirmation: "__confirmedSelfEvolution",
1238
1175
  agent_update_requires_confirmation: "__confirmedSelfEvolution",
1239
1176
  media_job_start_requires_confirmation: "__confirmedMediaJobStart"
@@ -3,10 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-IZIN2UNJ.js";
7
- import {
8
- BUILTIN_NOLO_AGENT_KEY
9
- } from "./chunk-UJKTI5PG.js";
6
+ } from "./chunk-RH44TIHX.js";
10
7
  import {
11
8
  isPageKey,
12
9
  isTableMetaKey
@@ -14,6 +11,9 @@ import {
14
11
  import {
15
12
  isDialogRecordKey
16
13
  } from "./chunk-OJKUU3LP.js";
14
+ import {
15
+ BUILTIN_NOLO_AGENT_KEY
16
+ } from "./chunk-WRKMXMU7.js";
17
17
  import {
18
18
  asTrimmedString
19
19
  } from "./chunk-3EUW3WEO.js";
@@ -453,11 +453,24 @@ function resolveEmptyAssistantFallbackMessage(reason) {
453
453
  if (reason === "stagnant_tool_calls") return STAGNANT_TOOL_CALLS_FALLBACK_MESSAGE;
454
454
  return EMPTY_ASSISTANT_FALLBACK_MESSAGE;
455
455
  }
456
+ var DEGENERATE_CLOSING_BRACKET_FRAGMENT_RE = /^[}\])]+$/;
457
+ var MAX_DEGENERATE_FRAGMENT_CHARS = 4;
458
+ function isDegenerateClosingBracketFragment(text) {
459
+ if (typeof text !== "string") return false;
460
+ const compact = text.replace(/\s+/g, "");
461
+ return compact.length >= 1 && compact.length <= MAX_DEGENERATE_FRAGMENT_CHARS && DEGENERATE_CLOSING_BRACKET_FRAGMENT_RE.test(compact);
462
+ }
456
463
  function hasAssistantVisibleOutput(content) {
457
- if (typeof content === "string") return content.trim().length > 0;
464
+ if (typeof content === "string") {
465
+ const trimmed = content.trim();
466
+ return trimmed.length > 0 && !isDegenerateClosingBracketFragment(trimmed);
467
+ }
458
468
  if (!Array.isArray(content)) return false;
459
469
  return content.some((part) => {
460
- if (part?.type === "text" && String(part.text ?? "").trim()) return true;
470
+ if (part?.type === "text") {
471
+ const text = String(part.text ?? "").trim();
472
+ return text.length > 0 && !isDegenerateClosingBracketFragment(text);
473
+ }
461
474
  if (part?.type === "image_url") {
462
475
  const url = part?.image_url?.url;
463
476
  return typeof url === "string" && url.trim().length > 0;
@@ -493,13 +506,6 @@ function resolveTruncatedReasoningTailLog(reason, reasoning_content) {
493
506
  }
494
507
 
495
508
  export {
496
- DEFAULT_AUTO_EXECUTION_PROFILE,
497
- resolveAutoExecutionProfile,
498
- ATTACHMENT_PART_TYPE,
499
- ATTACHMENT_PART_VERSION,
500
- normalizeAttachmentPart,
501
- attachmentKind,
502
- describeAttachmentForModel,
503
509
  isCodexOAuthAgent,
504
510
  resolveCodexOAuthEffectiveModel,
505
511
  CODEX_OAUTH_CATALOG_TTL_MS,
@@ -511,6 +517,13 @@ export {
511
517
  codexOAuthCatalogWindow,
512
518
  devinChannelContextWindow,
513
519
  resolveAgentContextWindow,
520
+ DEFAULT_AUTO_EXECUTION_PROFILE,
521
+ resolveAutoExecutionProfile,
522
+ ATTACHMENT_PART_TYPE,
523
+ ATTACHMENT_PART_VERSION,
524
+ normalizeAttachmentPart,
525
+ attachmentKind,
526
+ describeAttachmentForModel,
514
527
  asOptionalJsonRecord,
515
528
  extractReferenceKeysFromMessage,
516
529
  EMPTY_ASSISTANT_REPAIR_PROMPT,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-4NA3YTBC.js";
3
+ } from "./chunk-LMFMV5UC.js";
4
4
 
5
5
  // packages/cli/client/localRuntimeHelpers.ts
6
6
  var REMOTE_DIALOG_SYNC_TIMEOUT_MS = 1e4;