nolo-cli 0.241.0-alpha.1 → 0.243.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 (187) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UCWDB72C.js → _executeModel-QLKALBXT.js} +75 -75
  3. package/{action-24MZYW2B.js → action-4V2UISXC.js} +9 -9
  4. package/{addContentAction-HEMCSSHT.js → addContentAction-5MZDMGI6.js} +14 -14
  5. package/{addDialogAgentAction-SQYDOXHA.js → addDialogAgentAction-ONVFHUOL.js} +17 -17
  6. package/{agentDeleteCommand-P7O3ACNJ.js → agentDeleteCommand-AUYYX4MU.js} +97 -97
  7. package/{agentEmailCommands-A5BRSYWK.js → agentEmailCommands-TZPXTTII.js} +98 -98
  8. package/{agentListCommands-LDRCOOMO.js → agentListCommands-7Z74VVSY.js} +198 -161
  9. package/{agentMachineCommands-AYL53KJV.js → agentMachineCommands-7JQ45EPE.js} +48 -46
  10. package/{agentProviderCommands-N5EA3ED2.js → agentProviderCommands-BQP2IK4C.js} +2 -2
  11. package/{agentRecordCommands-FICBZ57C.js → agentRecordCommands-OGOEBWLK.js} +95 -95
  12. package/{agentRunCommand-CTXQGDUM.js → agentRunCommand-ZKTHUSE5.js} +96 -96
  13. package/{agentRunControl-CO6BASZF.js → agentRunControl-CVCHDDDC.js} +10 -8
  14. package/{agentRuntimeLocal-5YN4D5WT.js → agentRuntimeLocal-ODDHRQ3M.js} +48 -41
  15. package/{agentSlice-DJ5D4DU4.js → agentSlice-ITLJEJAW.js} +14 -14
  16. package/{appDeleteCommands-B4E7N7M2.js → appDeleteCommands-QM6AWGQ5.js} +49 -47
  17. package/{appDeployCommands-E4DTXRRM.js → appDeployCommands-6XA2ONV6.js} +49 -47
  18. package/{appDeployStatusCommands-FCNHYHZM.js → appDeployStatusCommands-E75X542I.js} +49 -47
  19. package/{appGetCommands-4DXSQHUZ.js → appGetCommands-VKC2FHBH.js} +49 -47
  20. package/{appListCommands-2NN5E4F6.js → appListCommands-CICA4AQI.js} +49 -47
  21. package/{authCommand-47DR6GZT.js → authCommand-KVLFWXDS.js} +16 -16
  22. package/{authCommands-ZZ3L5IFM.js → authCommands-6AUYO65N.js} +3 -3
  23. package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-LRVAQCPW.js} +8 -8
  24. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  25. package/{chromeOpsCommands-VZWAY2KR.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
  26. package/{chunk-FPMPWNVQ.js → chunk-3IQ5GP5Y.js} +3 -3
  27. package/{chunk-NWWQY2J5.js → chunk-3S52WBJS.js} +7 -7
  28. package/chunk-4JFSDWTN.js +21 -0
  29. package/{chunk-C3GOEQJF.js → chunk-5PASH2MB.js} +2 -2
  30. package/{chunk-7Q7MKJZN.js → chunk-5UY2WQJ6.js} +323 -124
  31. package/{chunk-DVYAFH2Q.js → chunk-6PXFEPHL.js} +1 -1
  32. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  33. package/{chunk-H6CHPU6M.js → chunk-6ZQXUJGM.js} +4 -4
  34. package/{chunk-QGMIUVBT.js → chunk-76OIOVDN.js} +19 -19
  35. package/{chunk-KOIDLCAQ.js → chunk-7Y3L3IDA.js} +4 -4
  36. package/{chunk-DWWUVRB5.js → chunk-A4RK66EV.js} +1 -1
  37. package/{chunk-ZT3DYK5T.js → chunk-AERVJIZ2.js} +4 -4
  38. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  39. package/{chunk-TTEBPPUV.js → chunk-B5U64NZU.js} +1 -1
  40. package/{chunk-UKSKCDBG.js → chunk-BEJ243X3.js} +1 -1
  41. package/{chunk-TE2XH4KH.js → chunk-BZLF2LAP.js} +3 -3
  42. package/{chunk-ZVOL2MAJ.js → chunk-CO6E7YK6.js} +1 -1
  43. package/{chunk-NQQL2DKF.js → chunk-CQG24S2Q.js} +13 -6
  44. package/{chunk-25OCZXSX.js → chunk-CYAEPGKY.js} +23 -23
  45. package/{chunk-X37RQEA3.js → chunk-DEOPZE4S.js} +6 -6
  46. package/{chunk-B72AFRR2.js → chunk-DHRYMWMY.js} +4 -4
  47. package/{chunk-FXX6VFMV.js → chunk-DM323UA6.js} +84 -71
  48. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  49. package/{chunk-CT6GT2BG.js → chunk-DOCK6V3Z.js} +13 -13
  50. package/{chunk-ZTLTDUV6.js → chunk-FBVN3B5T.js} +4 -4
  51. package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
  52. package/{chunk-LMFMV5UC.js → chunk-FQFSLPNJ.js} +2 -2
  53. package/{chunk-ZQUCJBS4.js → chunk-G3SJCNHX.js} +2 -2
  54. package/{chunk-7U2TFUWW.js → chunk-GEKRDIMM.js} +5 -5
  55. package/{chunk-LT3DMEIB.js → chunk-GEY2UH2I.js} +17 -13
  56. package/{chunk-DLTMAXLF.js → chunk-GFBBHM53.js} +6 -6
  57. package/{chunk-OYHJ4TW7.js → chunk-HBO6UW3O.js} +4 -4
  58. package/{chunk-BDERPCJW.js → chunk-HKT7KOIX.js} +4 -4
  59. package/{chunk-3NFWMSTA.js → chunk-HTENYMO3.js} +5 -5
  60. package/{chunk-BWW6WRX6.js → chunk-HZN5VE32.js} +16 -13
  61. package/{chunk-G6OPRPXH.js → chunk-I27WRAPF.js} +37 -31
  62. package/{chunk-OJRTTERA.js → chunk-IBQHHCQE.js} +2 -1
  63. package/{chunk-LN4ZVSO7.js → chunk-JFGKVVLB.js} +8 -8
  64. package/{chunk-EIFSCI4C.js → chunk-JHHAIL34.js} +265 -102
  65. package/{chunk-JBWXPACD.js → chunk-JP2BH4NC.js} +1 -1
  66. package/{chunk-MM73SP4K.js → chunk-JV5FHHF7.js} +1 -1
  67. package/{chunk-NBB2EBQD.js → chunk-JVJ53XCH.js} +1 -1
  68. package/{chunk-Y5RN44VH.js → chunk-K3GJXP2N.js} +16 -16
  69. package/{chunk-OATIWAKN.js → chunk-KC2QVCI7.js} +1 -1
  70. package/{chunk-VP3BINY7.js → chunk-KMIDT4SW.js} +31 -1
  71. package/{chunk-IPRPYKBP.js → chunk-KOTJT7CY.js} +3 -3
  72. package/{chunk-4YFC3DWW.js → chunk-KQHEGELM.js} +1 -1
  73. package/{chunk-5TJE4QCL.js → chunk-KV5FDJOD.js} +2 -2
  74. package/{chunk-WRKMXMU7.js → chunk-KZAT2M2V.js} +12 -8
  75. package/{chunk-DGUUOHBF.js → chunk-LNFCR5IA.js} +4 -4
  76. package/{chunk-3V6JT6WN.js → chunk-MAURG3J4.js} +269 -112
  77. package/{chunk-WHO3LYDW.js → chunk-MEDPR36J.js} +2 -2
  78. package/{chunk-EW37CXCQ.js → chunk-NCJZUXRA.js} +6 -6
  79. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  80. package/{chunk-6D25V6CB.js → chunk-NJJK3PDA.js} +4 -4
  81. package/{chunk-U4VSBDO5.js → chunk-O5MEXHJW.js} +65 -46
  82. package/{chunk-YFRJAE3R.js → chunk-OGZE6BZG.js} +12 -4
  83. package/{chunk-KGIIZXPL.js → chunk-ORVM574D.js} +7 -7
  84. package/{chunk-YUZ2DAIH.js → chunk-OXFJWWOT.js} +1 -1
  85. package/chunk-P27E22MA.js +203 -0
  86. package/{chunk-BIJTI5SX.js → chunk-Q25LWFGP.js} +2 -2
  87. package/{chunk-TFGGNRT6.js → chunk-QLUYDJST.js} +1 -1
  88. package/{chunk-IUXBKS5L.js → chunk-QXUVCIPB.js} +9 -9
  89. package/{chunk-XNEDFWT4.js → chunk-RRYDDDV7.js} +2 -2
  90. package/{chunk-24GVXSWK.js → chunk-RXCP7AIJ.js} +2 -2
  91. package/{chunk-UAOFSUG7.js → chunk-SEDJEJBH.js} +1 -1
  92. package/{chunk-LYDEFPQP.js → chunk-SF4GMDZO.js} +2 -2
  93. package/{chunk-CZLSTOVM.js → chunk-SGI2FIGK.js} +2 -2
  94. package/{chunk-FSIEHQNH.js → chunk-SMYUQDYW.js} +42 -5
  95. package/{chunk-7OTNBI77.js → chunk-T3CUXNV4.js} +1 -1
  96. package/{chunk-EBKHA63G.js → chunk-TKE4OJ4B.js} +179 -47
  97. package/{chunk-T444ENEC.js → chunk-TRN54YTP.js} +5 -5
  98. package/{chunk-2XMKW2OY.js → chunk-TT4JI6QR.js} +9 -9
  99. package/{chunk-I2OYPD3Y.js → chunk-U35UUM5K.js} +1 -0
  100. package/{chunk-6X3CS6NJ.js → chunk-V2COUWMQ.js} +8 -8
  101. package/{chunk-LCQJH7KN.js → chunk-VCU5GV42.js} +1 -1
  102. package/{chunk-ZBQ5UGYY.js → chunk-VF7F3ADU.js} +4 -4
  103. package/{chunk-HNWZJI4N.js → chunk-VNALJT32.js} +1 -1
  104. package/{chunk-TXFYIWAW.js → chunk-VTB6V4UF.js} +10 -10
  105. package/{chunk-QES2NCVM.js → chunk-VTDC64JY.js} +10 -10
  106. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  107. package/{chunk-YMCSR7PA.js → chunk-VVNP722P.js} +8 -8
  108. package/{chunk-N6EN3HK3.js → chunk-W4EAF272.js} +1 -1
  109. package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
  110. package/{chunk-LMZRXDWG.js → chunk-WDDZCQ6V.js} +3 -3
  111. package/{chunk-TXQVH72L.js → chunk-WIRH2ZLI.js} +3 -3
  112. package/{chunk-C646JEUV.js → chunk-WXZZQRAH.js} +4 -4
  113. package/{chunk-6BGJHJRN.js → chunk-X66UVBL3.js} +28 -28
  114. package/{chunk-UAHUJ4HH.js → chunk-XBWZ3SPO.js} +10 -37
  115. package/{chunk-4FE3IWRE.js → chunk-XRFUYUS7.js} +1 -1
  116. package/{chunk-XAFOLWLU.js → chunk-YDTLGWBU.js} +4 -4
  117. package/{chunk-FCAMGBLY.js → chunk-YDWMJOCW.js} +467 -279
  118. package/{chunk-GCVFX6ZL.js → chunk-YFDLRLW7.js} +3 -3
  119. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  120. package/{chunk-DIBQXNGW.js → chunk-YO4DCVD2.js} +2 -2
  121. package/{chunk-NL7J2J5Z.js → chunk-YTYVSOY4.js} +3 -3
  122. package/{chunk-6XBOPKUH.js → chunk-Z5C2EICZ.js} +16 -16
  123. package/{chunk-MDVP5TLI.js → chunk-ZCFOIOZ6.js} +1 -1
  124. package/{chunk-F3FQPVHE.js → chunk-ZGHHY2PV.js} +2 -2
  125. package/{cliAgentConfigHelpers-RFR7ZCSK.js → cliAgentConfigHelpers-H3VR6JID.js} +9 -9
  126. package/{cliLocalAgentRecordReader-AJ4UKHKT.js → cliLocalAgentRecordReader-SQCTHOXC.js} +50 -44
  127. package/{commandRegistry-IHWZVV4G.js → commandRegistry-6P4GP7SY.js} +99 -91
  128. package/{contentThunks-YQRCBDKF.js → contentThunks-74IO72TZ.js} +34 -34
  129. package/{cooldownCommands-W67DE765.js → cooldownCommands-QL6DWGVU.js} +1 -1
  130. package/{createAgentAutomationAction-ERSDNR4R.js → createAgentAutomationAction-KRNQVWCA.js} +35 -35
  131. package/{createDialogAction-QXC7JZPE.js → createDialogAction-TWFKJNUJ.js} +35 -35
  132. package/{createPageAction-RLZ7776F.js → createPageAction-2O2RMNQH.js} +39 -39
  133. package/{dbSlice-7M2ESEUO.js → dbSlice-JBLCCYKC.js} +13 -13
  134. package/{deleteFile-WO6WSSNK.js → deleteFile-KV5VTKAT.js} +8 -8
  135. package/{dialogCommands-UIRO4QNN.js → dialogCommands-OILEFOMW.js} +51 -50
  136. package/{dialogNotifyCommand-VDUFYBZV.js → dialogNotifyCommand-KOKWBD5H.js} +11 -11
  137. package/{dialogSlice-A4U3C76D.js → dialogSlice-BZKPV4FB.js} +34 -34
  138. package/{docCreateCommands-MHPYTJWR.js → docCreateCommands-43U55CVY.js} +48 -46
  139. package/{docDeleteCommands-VYULMBAQ.js → docDeleteCommands-BFTJFJAV.js} +50 -48
  140. package/{docReadCommands-FV3GGZ7V.js → docReadCommands-PU3VWGCG.js} +48 -46
  141. package/{docStore-AWWI72FA.js → docStore-JTAXVIUB.js} +15 -15
  142. package/{docUpdateCommands-JNS3HX7F.js → docUpdateCommands-7JRDXTSJ.js} +48 -46
  143. package/fetchMessages-TQEUZD7H.js +2 -2
  144. package/{getPricing-U5AR7ZHS.js → getPricing-XZXEWFPY.js} +4 -4
  145. package/{handleSendMessageAction-WDJOUDNV.js → handleSendMessageAction-BCNWPO3U.js} +67 -67
  146. package/{hostCredentialCreate-H3FF2SAO.js → hostCredentialCreate-LKNAX2SV.js} +95 -95
  147. package/index.js +8 -8
  148. package/keys-RWF7UCB4.js +1 -1
  149. package/{localRuntimeAdapter-JAQQXZJP.js → localRuntimeAdapter-I5HVICYM.js} +103 -103
  150. package/{machineCommands-WYOFNB5I.js → machineCommands-PUOM4XEL.js} +222 -313
  151. package/{machineWsRunDispatch-Y7UIAZNM.js → machineWsRunDispatch-SOAAV7PQ.js} +94 -94
  152. package/{mcpLocalAuthorizeCommand-SCYEFLRK.js → mcpLocalAuthorizeCommand-TMBUP7FX.js} +14 -14
  153. package/{memberThunks-DIITWU4M.js → memberThunks-TWB77UHJ.js} +17 -17
  154. package/{models-CINY5UZR.js → models-RIKQRH6B.js} +2 -2
  155. package/package.json +1 -1
  156. package/{projectArchive-IZJXBW5N.js → projectArchive-3V5DIVKP.js} +39 -39
  157. package/{providerPresetApply-2QWXPJXZ.js → providerPresetApply-JBCXP3JP.js} +6 -6
  158. package/{providerRegistry-W4LCKK6V.js → providerRegistry-AMR7WUWQ.js} +6 -6
  159. package/{read-OBLJNMA2.js → read-CO6HMH5W.js} +8 -8
  160. package/{readDocTool-QQZ4DAER.js → readDocTool-P4MDVRNW.js} +1 -1
  161. package/{readlineWorkspace-WF3SWZGR.js → readlineWorkspace-NHVNU4DY.js} +491 -383
  162. package/{removeDialogAgentAction-HC3SOY3G.js → removeDialogAgentAction-D3R3QNPD.js} +19 -19
  163. package/{runAgentClientLoop-Z7V6TA3O.js → runAgentClientLoop-EWZ4UOXT.js} +74 -74
  164. package/{runtimeDoctorCommands-KX6YLPWV.js → runtimeDoctorCommands-EQS62LQV.js} +5 -5
  165. package/{secretCommands-STRAX275.js → secretCommands-36BCE3UE.js} +2 -2
  166. package/{setDialogExtraReferencesAction-DDZUQPY6.js → setDialogExtraReferencesAction-VORDLM57.js} +16 -16
  167. package/{setPrimaryDialogAgentAction-EB67OMAJ.js → setPrimaryDialogAgentAction-P5A65M32.js} +19 -19
  168. package/{settingThunks-TN6GFASU.js → settingThunks-JGBSDOC6.js} +24 -24
  169. package/{spaceCommands-HBYQUVJI.js → spaceCommands-SRICYK6S.js} +51 -49
  170. package/{streamAgentChatTurn-CM7QQXOS.js → streamAgentChatTurn-GHPLOX5L.js} +140 -125
  171. package/{switchDialogAgentAction-XY5TKQQE.js → switchDialogAgentAction-DMMWH5FG.js} +17 -17
  172. package/{tableCommands-MXFL3JIT.js → tableCommands-UHEA5QNL.js} +6 -6
  173. package/{toolApiClient-53YMJ2G6.js → toolApiClient-N5PYW2R3.js} +2 -2
  174. package/{tools-AT6H73LD.js → tools-ZSQGRWKI.js} +59 -59
  175. package/{tuiRestart-272SAYSK.js → tuiRestart-RATR636G.js} +9 -9
  176. package/{tuiSummaryLlmCaller-K2OVRVHG.js → tuiSummaryLlmCaller-J5HB4XVS.js} +14 -14
  177. package/{updateCommands-O3BOVVVN.js → updateCommands-5OYND6EF.js} +3 -3
  178. package/{updateDialogTitleAction-PGY4UPLH.js → updateDialogTitleAction-MEKAI3YO.js} +36 -36
  179. package/{usageCommand-SCF3ROV2.js → usageCommand-WW22APZ6.js} +2 -2
  180. package/{usageRebuildCommand-K5WPIBA5.js → usageRebuildCommand-B3S67JXH.js} +3 -3
  181. package/{windowsSelfUpdate-WJDUZLEO.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  182. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  183. package/chunk-776CXKMX.js +0 -134
  184. package/chunk-TUSTONB3.js +0 -81
  185. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  186. package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
  187. package/{dialogUsageCommand-SEC6UZWM.js → dialogUsageCommand-BZPKR3DW.js} +3 -3
@@ -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-OBLJNMA2.js");
209
+ const { readAction } = await import("./read-CO6HMH5W.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`);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_USER_PREFERENCE_PROFILE
3
- } from "./chunk-DVYAFH2Q.js";
3
+ } from "./chunk-6PXFEPHL.js";
4
4
  import {
5
5
  noloAgentId
6
- } from "./chunk-ZVOL2MAJ.js";
6
+ } from "./chunk-CO6E7YK6.js";
7
7
  import {
8
8
  normalizeServerOrigin
9
9
  } from "./chunk-CF7PE763.js";
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-TXFYIWAW.js";
8
+ } from "./chunk-VTB6V4UF.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-F3FQPVHE.js";
12
+ } from "./chunk-ZGHHY2PV.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -1,7 +1,3 @@
1
- import {
2
- resolveRuntimeAuthToken,
3
- resolveRuntimeServerUrl
4
- } from "./chunk-4FE3IWRE.js";
5
1
  import {
6
2
  isAgentRunTerminalStatus,
7
3
  normalizeRunTitle,
@@ -9,10 +5,14 @@ import {
9
5
  } from "./chunk-S25VJYXV.js";
10
6
  import {
11
7
  findPowerShellExecutable
12
- } from "./chunk-VMJVAJ6W.js";
8
+ } from "./chunk-TB5KTLNB.js";
13
9
  import {
14
10
  AUTH_ERROR_PATTERNS
15
11
  } from "./chunk-EWQ3HGNZ.js";
12
+ import {
13
+ resolveRuntimeAuthToken,
14
+ resolveRuntimeServerUrl
15
+ } from "./chunk-XRFUYUS7.js";
16
16
  import {
17
17
  AGENT_RUN_PROTOCOL,
18
18
  HOST_RUNTIME_CONTENT_IDENTITY,
@@ -2221,6 +2221,42 @@ function listRunRecords(deps = {}) {
2221
2221
  (a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
2222
2222
  );
2223
2223
  }
2224
+ function listRecentRunRecords(deps = {}) {
2225
+ const limit = deps.limit ?? 400;
2226
+ if (!Number.isFinite(limit) || limit <= 0) return [];
2227
+ const fs = deps.fs ?? nodeFs2;
2228
+ const dir = resolveRunsDir(deps.env, deps.homedir);
2229
+ let entries = [];
2230
+ try {
2231
+ entries = fs.readdirSync(dir);
2232
+ } catch {
2233
+ return [];
2234
+ }
2235
+ const timestampedRuns = [];
2236
+ const customRuns = [];
2237
+ for (const entry of entries) {
2238
+ if (!entry.endsWith(".json") || entry.startsWith("acked-") || entry.startsWith("busy-ack-") || entry.endsWith(".isolation.json") || entry.includes(".result.")) {
2239
+ continue;
2240
+ }
2241
+ if (entry.startsWith("run-")) {
2242
+ timestampedRuns.push(entry);
2243
+ } else {
2244
+ customRuns.push(entry);
2245
+ }
2246
+ }
2247
+ timestampedRuns.sort((a, b) => a < b ? 1 : a > b ? -1 : 0);
2248
+ const candidates = timestampedRuns.length >= limit ? timestampedRuns : [...timestampedRuns, ...customRuns.sort((a, b) => a < b ? 1 : a > b ? -1 : 0)];
2249
+ const records = [];
2250
+ for (const entry of candidates) {
2251
+ if (records.length >= limit) break;
2252
+ const runId = entry.slice(0, -".json".length);
2253
+ const record = readRunRecord(runId, deps);
2254
+ if (record) records.push(record);
2255
+ }
2256
+ return records.sort(
2257
+ (a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
2258
+ );
2259
+ }
2224
2260
  async function listRunRecordsAsync(deps = {}) {
2225
2261
  const dir = resolveRunsDir(deps.env, deps.homedir);
2226
2262
  let entries;
@@ -3981,6 +4017,7 @@ export {
3981
4017
  readRunRecord,
3982
4018
  backfillRunRecordParentDialog,
3983
4019
  listRunRecords,
4020
+ listRecentRunRecords,
3984
4021
  listRunRecordsAsync,
3985
4022
  findRunRecordByPid,
3986
4023
  findRunRecord,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  googleSessionRequestToken,
3
3
  isGoogleAuthoritySession
4
- } from "./chunk-C3GOEQJF.js";
4
+ } from "./chunk-5PASH2MB.js";
5
5
  import {
6
6
  selectIdentityToken
7
7
  } from "./chunk-PXYBUFDB.js";
@@ -1,17 +1,17 @@
1
- import {
2
- CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
3
- canonicalizeToolNames
4
- } from "./chunk-6OVNSQHN.js";
5
1
  import {
6
2
  buildSkillDocMarkdown,
7
3
  resolvePageSkillMetadata
8
- } from "./chunk-W6RFEDN4.js";
4
+ } from "./chunk-AETZ7AD6.js";
9
5
  import {
10
6
  nolotusId
11
- } from "./chunk-ZVOL2MAJ.js";
7
+ } from "./chunk-CO6E7YK6.js";
12
8
  import {
13
9
  createKey
14
10
  } from "./chunk-SYTHYBMI.js";
11
+ import {
12
+ CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
13
+ canonicalizeToolNames
14
+ } from "./chunk-YLAHYLDQ.js";
15
15
  import {
16
16
  asNonEmptyStringArray
17
17
  } from "./chunk-I42VC5KR.js";
@@ -19,6 +19,126 @@ import {
19
19
  asOptionalTrimmedString
20
20
  } from "./chunk-G3SUCT4W.js";
21
21
 
22
+ // packages/agent-runtime/pluginManagementSpecs.ts
23
+ var PLUGIN_MANAGEMENT_TOOL_NAMES = ["listPlugins", "setPluginEnabled", "configurePlugin", "diagnosePlugin"];
24
+ var PLUGIN_KINDS = ["ui", "data-source", "system-capability", "cloud", "mcp"];
25
+ var managementFailure = (code) => ({
26
+ ok: false,
27
+ error: { code }
28
+ });
29
+ var text = { type: "string", minLength: 1, maxLength: 128, pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]*$" };
30
+ var object = (properties, required = Object.keys(properties)) => ({
31
+ type: "object",
32
+ additionalProperties: false,
33
+ properties,
34
+ required
35
+ });
36
+ var target = {
37
+ oneOf: [
38
+ object({ kind: { enum: ["server", "local"] } }),
39
+ object({ kind: { const: "machine" }, machineId: text })
40
+ ]
41
+ };
42
+ var subject = {
43
+ oneOf: [
44
+ object({ kind: { enum: ["ui", "data-source", "system-capability"] }, id: text }),
45
+ object({ kind: { const: "cloud" }, id: text, connectionId: text }, ["kind", "id"]),
46
+ object({ kind: { const: "mcp" }, id: text, connectionId: text }, ["kind", "id"]),
47
+ object({ kind: { const: "mcp" }, connectionId: text })
48
+ ]
49
+ };
50
+ var revision = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
51
+ var PLUGIN_MANAGEMENT_SCHEMAS = {
52
+ listPlugins: {
53
+ name: "listPlugins",
54
+ description: "Discover registered plugins and authenticated account configuration; does not connect or execute.",
55
+ parameters: object({ kind: { enum: PLUGIN_KINDS }, target }, [])
56
+ },
57
+ setPluginEnabled: {
58
+ name: "setPluginEnabled",
59
+ description: "Change an existing account plugin switch. MCP requires expectedRevision. Does not grant execution or start programs.",
60
+ parameters: object({ subject, target, enabled: { type: "boolean" }, expectedRevision: revision }, ["subject", "enabled"])
61
+ },
62
+ configurePlugin: {
63
+ name: "configurePlugin",
64
+ description: "Return the authenticated UI entry and required field metadata without reading secret endpoints or credential refs.",
65
+ parameters: object({ subject, target }, ["subject"])
66
+ },
67
+ diagnosePlugin: {
68
+ name: "diagnosePlugin",
69
+ description: "Inspect configuration facts. Connectivity requires the execution approval bridge; never implicitly launches or connects.",
70
+ parameters: object({ subject, target, mode: { enum: ["configuration", "connectivity"] } }, ["subject", "mode"])
71
+ }
72
+ };
73
+ function record(value) {
74
+ return !!value && typeof value === "object" && !Array.isArray(value) && [Object.prototype, null].includes(Object.getPrototypeOf(value));
75
+ }
76
+ var identifier = (value) => typeof value === "string" && /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$/.test(value);
77
+ var keys = (value, allowed) => Object.keys(value).every((key) => allowed.includes(key));
78
+ function parsePluginManagementInput(tool, value) {
79
+ const bad = () => managementFailure("invalid_input");
80
+ try {
81
+ if (!record(value) || !keys(value, Object.keys(PLUGIN_MANAGEMENT_SCHEMAS[tool].parameters.properties))) return bad();
82
+ if (value.target !== void 0) {
83
+ const t = value.target;
84
+ if (!record(t) || !keys(t, t.kind === "machine" ? ["kind", "machineId"] : ["kind"]) || !["server", "local", "machine"].includes(String(t.kind)) || t.kind === "machine" && !identifier(t.machineId)) {
85
+ return bad();
86
+ }
87
+ }
88
+ if (tool === "listPlugins") {
89
+ if (value.kind !== void 0 && !PLUGIN_KINDS.includes(value.kind)) return bad();
90
+ } else {
91
+ const s = value.subject;
92
+ if (!record(s) || !keys(s, ["kind", "id", "connectionId"]) || !PLUGIN_KINDS.includes(s.kind) || s.id !== void 0 && !identifier(s.id) || s.connectionId !== void 0 && !identifier(s.connectionId) || (s.kind === "mcp" ? !s.id && !s.connectionId : !s.id)) {
93
+ return bad();
94
+ }
95
+ if (!["mcp", "cloud"].includes(String(s.kind)) && s.connectionId !== void 0) return bad();
96
+ if (tool === "setPluginEnabled" && (typeof value.enabled !== "boolean" || s.kind === "mcp" && !s.connectionId || s.kind === "mcp" && value.expectedRevision === void 0)) {
97
+ return bad();
98
+ }
99
+ if (value.expectedRevision !== void 0 && (!Number.isSafeInteger(value.expectedRevision) || value.expectedRevision < 1)) {
100
+ return bad();
101
+ }
102
+ if (tool === "diagnosePlugin" && !["configuration", "connectivity"].includes(String(value.mode))) return bad();
103
+ }
104
+ return { ok: true, value: structuredClone(value) };
105
+ } catch {
106
+ return bad();
107
+ }
108
+ }
109
+
110
+ // packages/ai/skills/pluginConfigurationSkill.ts
111
+ var PLUGIN_CONFIGURATION_SKILL_SLUGS = ["plugin-configuration"];
112
+ var buildPluginConfigurationSkillId = (_slug) => "builtin-plugin-config-v1";
113
+ var buildPluginConfigurationSkillPageKey = (userId, slug) => `page-${userId}-${buildPluginConfigurationSkillId(slug)}`;
114
+ function buildPluginConfigurationSkillConfig(_slug) {
115
+ return {
116
+ version: "0.1",
117
+ kind: "skill",
118
+ id: buildPluginConfigurationSkillId(_slug),
119
+ name: "\u63D2\u4EF6\u914D\u7F6E\u52A9\u624B\uFF08plugin-configuration\uFF09",
120
+ description: "\u901A\u8FC7\u5B9E\u9645\u7BA1\u7406\u5DE5\u5177\u53D1\u73B0\u3001\u542F\u505C\u3001\u53D7\u63A7\u914D\u7F6E\u548C\u8BCA\u65AD\u63D2\u4EF6\uFF1B\u6309\u5F53\u524D\u6267\u884C\u9762\u4E0E\u771F\u5B9E\u6CE8\u518C\u8868\u5224\u65AD\u53EF\u7528\u6027\u3002",
121
+ triggerMode: "explicit",
122
+ toolNames: [...PLUGIN_MANAGEMENT_TOOL_NAMES]
123
+ };
124
+ }
125
+ function buildPluginConfigurationSkillContent(_slug) {
126
+ return buildSkillDocMarkdown({
127
+ skillConfig: buildPluginConfigurationSkillConfig(_slug),
128
+ body: `# \u63D2\u4EF6\u914D\u7F6E\u52A9\u624B
129
+
130
+ \u5148\u786E\u8BA4\u672C\u8F6E\u5B9E\u9645\u63D0\u4F9B\u4E86\u54EA\u4E9B\u7BA1\u7406\u5DE5\u5177\uFF1BSkill \u88AB\u52A0\u8F7D\u4E0D\u4EE3\u8868\u5DE5\u5177\u5DF2\u63A5\u7EBF\u6216\u5404\u7AEF\u5DF2\u652F\u6301\u3002
131
+
132
+ - \u7528 listPlugins \u8BFB\u53D6\u771F\u5B9E\u6CE8\u518C\u8868\u3001\u8D26\u53F7\u72B6\u6001\u53CA\u53EF\u7528\u52A8\u4F5C\uFF0C\u4E0D\u6309\u9884\u8BBE\u540D\u79F0\u731C\u5B57\u6BB5\uFF0C\u4E0D\u4E3A\u6BCF\u4E2A\u9884\u8BBE\u590D\u5236\u6D41\u7A0B\u3002
133
+ - \u7528 setPluginEnabled \u4FEE\u6539\u5DF2\u5B58\u5728\u7684\u5F00\u5173\uFF1BMCP \u4F7F\u7528\u8BFB\u53D6\u5230\u7684 connectionId \u4E0E revision\uFF0C\u51B2\u7A81\u65F6\u91CD\u8BFB\uFF0C\u4E0D\u8986\u76D6\u672A\u77E5\u72B6\u6001\u3002
134
+ - \u7528 configurePlugin \u8FDB\u5165\u73B0\u6709\u8BA4\u8BC1\u914D\u7F6E\u9875\u9762\uFF0C\u51ED\u636E\u7531\u7528\u6237\u5728\u53D7\u63A7\u5165\u53E3\u8F93\u5165\u3002\u8FD4\u56DE pending \u53EA\u8868\u793A\u4ECD\u5F85\u4EA4\u4E92\uFF0C\u4E0D\u80FD\u8BF4\u4FDD\u5B58\u5B8C\u6210\uFF1B\u6CA1\u6709\u771F\u5B9E\u5165\u53E3\u5219\u62A5\u544A unavailable\u3002
135
+ - diagnosePlugin \u7684 configuration \u4EC5\u63CF\u8FF0\u914D\u7F6E\u4E8B\u5B9E\uFF1Bconnectivity \u5F53\u524D\u987B\u4EA4\u5BA1\u6279/\u6267\u884C\u6865\uFF0C\u4E0D\u80FD\u4E3A\u8BCA\u65AD\u81EA\u884C\u8054\u7F51\u6216\u542F\u52A8\u7A0B\u5E8F\u3002\u914D\u7F6E\u53EF\u7528\u4E0D\u7B49\u4E8E\u8FDE\u63A5\u53EF\u7528\u6216\u6267\u884C\u5DF2\u83B7\u6388\u6743\u3002
136
+ - \u4EC5\u6D88\u8D39\u7BA1\u7406\u5DE5\u5177\u7684\u8131\u654F\u7ED3\u679C\uFF1B\u4E0D\u8981\u7D22\u53D6\u6216\u8F93\u51FA secret\u3001endpoint\u3001credentialRef\u3001envRefs\u3002local/machine \u4E0D\u53EF\u7528\u65F6\u5982\u5B9E\u62A5\u544A\uFF0C\u4E0D\u6539\u6210 server \u6216\u4E0A\u4F20\u672C\u673A\u8D44\u6E90\u3002
137
+
138
+ \u4EA7\u54C1\u4E0E\u6743\u9650\u539F\u5219\u5F15\u7528 docs/product-foundation.md \xA75\u3001docs/product/skill-model.md\uFF1B\u5F53\u524D\u7BA1\u7406\u5951\u7EA6\u89C1 packages/agent-runtime/pluginManagementSpecs.ts\u3002Skill \u4E0D\u4FDD\u5B58\u914D\u7F6E\u72B6\u6001\u3002`
139
+ });
140
+ }
141
+
22
142
  // packages/ai/tools/agentCapabilities.ts
23
143
  var SYSTEM_AGENT_CAPABILITIES = [
24
144
  {
@@ -79,7 +199,7 @@ var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\u
79
199
  - \u6309\u89D2\u8272\u52A0\u8F7D\u5BF9\u5E94 skill\uFF1Areviewer \u5148 \`loadSkill("coding-review")\` \u62FF\u901A\u7528\u6D41\u7A0B\uFF0C\u518D\u6309\u89D2\u8272 \`loadSkill("coding-review-<role>")\` \u62FF\u68C0\u67E5\u9879\u3002\u89D2\u8272\u6E05\u5355\uFF1Acode-quality\uFF08**\u5FC5\u8DD1**\uFF09/ architecture\uFF08**\u5355\u72EC\u6D3E\u53D1**\uFF0C\u4E2D\u7EA7\u4EE5\u4E0A\u95EE\u9898\uFF09/ security\uFF08\u6309\u9700 + \u5B89\u5168\u654F\u611F\u89E6\u53D1\u5FC5\u8DD1\uFF09/ frontend-ux\uFF08\u6D89\u53CA UI \u65F6\uFF09/ backend-data\uFF08\u6D89\u53CA server \u65F6\uFF09\u3002\u89D2\u8272\u5207\u5272\u7684\u76EE\u7684\u662F\u6CE8\u610F\u529B\u9694\u79BB\u2014\u2014\u6BCF\u4E2A\u89D2\u8272\u53EA\u76EF\u81EA\u5DF1\u7684\u68C0\u67E5\u9762\uFF0C\u6309\u9700\u542F\u7528\uFF0C\u907F\u514D\u4E00\u4E2A reviewer \u80CC\u6240\u6709\u89D2\u8272\u5BFC\u81F4\u6CE8\u610F\u529B\u7A00\u91CA\u3002
80
200
  - Verdict \u6807\u51C6\uFF1AAPPROVE\uFF08\u65E0 CRITICAL \u6216 HIGH\uFF09\u2192 \u53EF commit\uFF1BWARNING\uFF08\u4EC5 HIGH\uFF09\u2192 \u62A5\u544A owner \u51B3\u5B9A\uFF1BBLOCK\uFF08\u6709 CRITICAL\uFF09\u2192 \u5FC5\u987B\u5148\u4FEE\u3002
81
201
  - review \u662F\u591A\u8F6E\u6536\u655B\u7684\uFF1A\u6D3E reviewer \u5BA1\u5DE5\u4F5C\u533A diff \u2192 \u51FA finding \u5C31\u4FEE \u2192 \u590D\u5BA1\uFF0C\u76F4\u5230 APPROVE \u624D\u63D0\u4EA4\u3002\u6BCF\u8F6E review \u65E0\u4E0A\u4E0B\u6587\u2014\u2014reviewer \u53EA\u770B\u5F53\u524D\u5DE5\u4F5C\u533A diff\uFF0C\u4E0D\u5E26\u4E0A\u4E00\u8F6E finding \u8BB0\u5FC6\u3002**APPROVE \u53EA\u8986\u76D6\u88AB\u5BA1\u7684\u90A3\u4E00\u7248**\uFF1A\u6B64\u540E\u4EFB\u4F55\u6539\u52A8\uFF08\u542B\u91C7\u7EB3 nit\u3001\u542B\u53EA\u52A8\u6CE8\u91CA / \u6587\u6863\uFF09\u90FD\u8981\u91CD\u65B0\u8FC7\u4E00\u8F6E review\uFF0C\u4F5C\u8005\u81EA\u8BC4\u4E0D\u6784\u6210\u590D\u6838\uFF08\u771F\u6E90 docs/workflow.md\uFF09\u3002
82
- - \u82E5\u5904\u4E8E\u5355 Agent \u72EC\u5360\u73AF\u5883\u3001\u5176\u4ED6 agent \u4E0D\u53EF\u8FBE\u3001\u6216\u7528\u6237\u660E\u786E\u8981\u6C42\u76F4\u63A5\u63D0\u4EA4\uFF1A\u4E0D\u8981\u8865\u5199\u6216\u4F2A\u9020 review \u8BC1\u636E\uFF0C\u4E5F**\u4E0D\u8981\u7528 [no-review: \u539F\u56E0] \u8FD9\u7C7B\u5199\u6CD5**\u2014\u2014\u5B83\u4EFB\u4F55\u5224\u636E\u90FD\u89E3\u6790\u4E0D\u4E86\uFF0C\u5199\u4E86\u7167\u6837\u88AB\u62E6\u3002\u81EA\u6709\u95F8\u95E8\u8BA4\u7684\u5F62\u5F0F\u662F Reviewed-by: <\u975E\u7A7A\u7F72\u540D> \u52A0 Review: \u5E26\u7ED3\u8BBA\uFF08APPROVE / Approved / WARNING\uFF0C\u5360\u4F4D\u7B26\u5982 <pending> \u4E0D\u7B97\uFF09\uFF0Ccommit-msg \u4E0E pre-merge \u90FD\u8D70\u8FD9\u4E00\u6761\u6B63\u5219\u3002pre-merge **\u53E6**\u8BA4\u4E00\u6761 owner-only \u8C41\u514D\uFF1A\u6B63\u6587\u5199 No-Review: <\u539F\u56E0> \u4E14 commit author email \u547D\u4E2D packages/nolo-ci/core/src/mapping.ts \u7684 NO_REVIEW_OWNER_EMAILS \u767D\u540D\u5355\u2014\u2014agent \u8EAB\u4EFD\uFF08\u5982 app-builder@nolo.local\uFF09\u4E0D\u9002\u7528\u3002\u771F\u88AB\u5361\u4F4F\u5C31\u5982\u5B9E\u4E0A\u62A5\u5361\u70B9\u3001\u7531 owner \u51B3\u5B9A\uFF1B\u672C\u5730\u5DF2\u65E0\u63A8\u9001\u94A9\u5B50\uFF082026-11-09 \u79FB\u9664 pre-push\uFF09\uFF0C\u670D\u52A1\u7AEF G2 \u4E0D\u53EF\u7ED5\u8FC7\u3002`;
202
+ - \u82E5\u5904\u4E8E\u5355 Agent \u72EC\u5360\u73AF\u5883\u3001\u5176\u4ED6 agent \u4E0D\u53EF\u8FBE\u3001\u6216\u7528\u6237\u660E\u786E\u8981\u6C42\u76F4\u63A5\u63D0\u4EA4\uFF1A\u4E0D\u8981\u8865\u5199\u6216\u4F2A\u9020 review \u8BC1\u636E\uFF0C\u4E5F**\u4E0D\u8981\u7528 [no-review: \u539F\u56E0] \u8FD9\u7C7B\u5199\u6CD5**\u2014\u2014\u5B83\u4EFB\u4F55\u5224\u636E\u90FD\u89E3\u6790\u4E0D\u4E86\uFF0C\u5199\u4E86\u7167\u6837\u88AB\u62E6\u3002\u81EA\u6709\u95F8\u95E8\u8BA4\u7684\u5F62\u5F0F\u662F Reviewed-by: <\u975E\u7A7A\u7F72\u540D> \u52A0 Review: \u5E26\u7ED3\u8BBA\uFF08APPROVE / Approved / WARNING\uFF0C\u5360\u4F4D\u7B26\u5982 <pending> \u4E0D\u7B97\uFF09\uFF0Ccommit-msg \u4E0E pre-merge \u90FD\u8D70\u8FD9\u4E00\u6761\u6B63\u5219\u3002pre-merge **\u53E6**\u8BA4\u4E00\u6761 owner-only \u8C41\u514D\uFF1A\u6B63\u6587\u5199 No-Review: <\u539F\u56E0> \u4E14 commit author email \u547D\u4E2D scripts/lib/reviewEvidencePolicy.ts \u7684 NO_REVIEW_OWNER_EMAILS \u767D\u540D\u5355\u2014\u2014agent \u8EAB\u4EFD\uFF08\u5982 app-builder@nolo.local\uFF09\u4E0D\u9002\u7528\u3002\u771F\u88AB\u5361\u4F4F\u5C31\u5982\u5B9E\u4E0A\u62A5\u5361\u70B9\u3001\u7531 owner \u51B3\u5B9A\uFF1B\u672C\u5730\u5DF2\u65E0\u63A8\u9001\u94A9\u5B50\uFF082026-11-09 \u79FB\u9664 pre-push\uFF09\uFF0C\u670D\u52A1\u7AEF G2 \u4E0D\u53EF\u7ED5\u8FC7\u3002`;
83
203
  var buildCodeWorkDiscipline = (heading) => `# ${heading}
84
204
 
85
205
  ${CODE_WORK_DISCIPLINE_BODY}`;
@@ -135,6 +255,7 @@ var TOOL_PACKS = {
135
255
  "applyLineEdits",
136
256
  "codeSearch",
137
257
  "globFiles",
258
+ "searchFiles",
138
259
  "execShell",
139
260
  "launchProcess",
140
261
  "listProcesses",
@@ -518,8 +639,8 @@ var buildSkillGuidancePromptBlock = (options) => {
518
639
  ...skillPromptPatches
519
640
  ].filter(Boolean).join("\n");
520
641
  };
521
- var buildIdentifierCandidates = (identifier, contentByKey) => {
522
- const trimmed = identifier.trim();
642
+ var buildIdentifierCandidates = (identifier2, contentByKey) => {
643
+ const trimmed = identifier2.trim();
523
644
  if (!trimmed || contentByKey.has(trimmed)) return trimmed;
524
645
  const candidateToKey = /* @__PURE__ */ new Map();
525
646
  for (const [key, page] of Array.from(contentByKey.entries())) {
@@ -546,21 +667,21 @@ async function resolveSkillGraphFromRoots(options) {
546
667
  const contribution = createContribution();
547
668
  const strict = options.strictRequiredDependencies === true;
548
669
  const blockedRoots = [];
549
- const mergeContribution = (target, source) => {
550
- source.requiredTools.forEach((value) => target.requiredTools.add(value));
551
- source.recommendedTools.forEach((value) => target.recommendedTools.add(value));
552
- source.recommendedSkillHints.forEach((value) => target.recommendedSkillHints.add(value));
670
+ const mergeContribution = (target2, source) => {
671
+ source.requiredTools.forEach((value) => target2.requiredTools.add(value));
672
+ source.recommendedTools.forEach((value) => target2.recommendedTools.add(value));
673
+ source.recommendedSkillHints.forEach((value) => target2.recommendedSkillHints.add(value));
553
674
  source.skillPromptPatches.forEach((value, skillId) => {
554
- if (!target.skillPromptPatches.has(skillId)) target.skillPromptPatches.set(skillId, value);
675
+ if (!target2.skillPromptPatches.has(skillId)) target2.skillPromptPatches.set(skillId, value);
555
676
  });
556
677
  for (const visit2 of source.visits) {
557
678
  const key = `${visit2.mode}:${visit2.dbKey}`;
558
- if (!target.visited.has(key)) target.visits.push(visit2);
559
- target.visited.add(key);
679
+ if (!target2.visited.has(key)) target2.visits.push(visit2);
680
+ target2.visited.add(key);
560
681
  }
561
682
  };
562
- const loadPageCached = async (identifier) => {
563
- const resolvedIdentifier = buildIdentifierCandidates(identifier, contentByKey);
683
+ const loadPageCached = async (identifier2) => {
684
+ const resolvedIdentifier = buildIdentifierCandidates(identifier2, contentByKey);
564
685
  if (!resolvedIdentifier) return null;
565
686
  if (contentByKey.has(resolvedIdentifier)) {
566
687
  return contentByKey.get(resolvedIdentifier) ?? null;
@@ -574,9 +695,9 @@ async function resolveSkillGraphFromRoots(options) {
574
695
  }
575
696
  return page ?? null;
576
697
  };
577
- const visit = async (identifier, mode, sourceLabel, target, path = []) => {
578
- const page = await loadPageCached(identifier);
579
- if (!page?.dbKey) return strict ? [{ path: [...path, identifier], reason: "missing" }] : [];
698
+ const visit = async (identifier2, mode, sourceLabel, target2, path = []) => {
699
+ const page = await loadPageCached(identifier2);
700
+ if (!page?.dbKey) return strict ? [{ path: [...path, identifier2], reason: "missing" }] : [];
580
701
  const meta = resolvePageSkillMetadata(page);
581
702
  const canonicalIdentifier = asOptionalTrimmedString(meta?.skillConfig?.id) ?? page.dbKey;
582
703
  const nextPath = [...path, canonicalIdentifier];
@@ -584,12 +705,12 @@ async function resolveSkillGraphFromRoots(options) {
584
705
  return strict ? [{ path: nextPath, reason: "denied" }] : [];
585
706
  }
586
707
  const visitKey = `${mode}:${page.dbKey}`;
587
- if (target.visited.has(visitKey)) return [];
588
- target.visited.add(visitKey);
708
+ if (target2.visited.has(visitKey)) return [];
709
+ target2.visited.add(visitKey);
589
710
  const directTools = canonicalizeToolNames(page.tools ?? []);
590
711
  const skillTools = canonicalizeToolNames(meta?.skillConfig?.toolNames ?? []);
591
712
  const mergedTools = joinUniqueStrings(directTools, skillTools);
592
- target.visits.push({
713
+ target2.visits.push({
593
714
  dbKey: page.dbKey,
594
715
  title: page.title,
595
716
  mode,
@@ -597,46 +718,46 @@ async function resolveSkillGraphFromRoots(options) {
597
718
  meta
598
719
  });
599
720
  if (mode === "required") {
600
- mergedTools.forEach((toolName) => target.requiredTools.add(toolName));
721
+ mergedTools.forEach((toolName) => target2.requiredTools.add(toolName));
601
722
  if (meta?.skillConfig?.promptPatch) {
602
- target.skillPromptPatches.set(canonicalIdentifier, meta.skillConfig.promptPatch);
723
+ target2.skillPromptPatches.set(canonicalIdentifier, meta.skillConfig.promptPatch);
603
724
  }
604
725
  } else {
605
- mergedTools.forEach((toolName) => target.recommendedTools.add(toolName));
726
+ mergedTools.forEach((toolName) => target2.recommendedTools.add(toolName));
606
727
  if (meta?.skillConfig?.name) {
607
- target.recommendedSkillHints.add(meta.skillConfig.name);
728
+ target2.recommendedSkillHints.add(meta.skillConfig.name);
608
729
  }
609
730
  }
610
731
  const nextHard = meta?.requiredSkills ?? meta?.skillConfig?.requiredSkills ?? [];
611
732
  const nextSoft = meta?.recommendedSkills ?? meta?.skillConfig?.recommendedSkills ?? [];
612
733
  if (strict) {
613
734
  const failures = (await Promise.all(nextHard.map(
614
- (childKey) => visit(childKey, mode, page.dbKey, target, nextPath)
735
+ (childKey) => visit(childKey, mode, page.dbKey, target2, nextPath)
615
736
  ))).flat();
616
737
  await Promise.all(nextSoft.map(async (childKey) => {
617
- const branch = createContribution(target.visited);
738
+ const branch = createContribution(target2.visited);
618
739
  const branchFailures = await visit(childKey, "recommended", page.dbKey, branch, nextPath);
619
- if (branchFailures.length === 0) mergeContribution(target, branch);
740
+ if (branchFailures.length === 0) mergeContribution(target2, branch);
620
741
  }));
621
742
  return failures;
622
743
  }
623
744
  if (mode === "required") {
624
- await Promise.all(nextHard.map((childKey) => visit(childKey, "required", page.dbKey, target)));
625
- await Promise.all(nextSoft.map((childKey) => visit(childKey, "recommended", page.dbKey, target)));
745
+ await Promise.all(nextHard.map((childKey) => visit(childKey, "required", page.dbKey, target2)));
746
+ await Promise.all(nextSoft.map((childKey) => visit(childKey, "recommended", page.dbKey, target2)));
626
747
  return [];
627
748
  }
628
- await Promise.all([...nextHard, ...nextSoft].map((childKey) => visit(childKey, "recommended", page.dbKey, target)));
749
+ await Promise.all([...nextHard, ...nextSoft].map((childKey) => visit(childKey, "recommended", page.dbKey, target2)));
629
750
  return [];
630
751
  };
631
752
  if (strict) {
632
753
  const results = await Promise.all(options.roots.map(async (root) => {
633
- const target = createContribution();
634
- const failures = await visit(root.identifier, root.mode, root.sourceLabel, target);
635
- return { root, target, failures };
754
+ const target2 = createContribution();
755
+ const failures = await visit(root.identifier, root.mode, root.sourceLabel, target2);
756
+ return { root, target: target2, failures };
636
757
  }));
637
- for (const { root, target, failures } of results) {
758
+ for (const { root, target: target2, failures } of results) {
638
759
  if (failures.length > 0) blockedRoots.push(...failures.map((failure) => ({ root, ...failure })));
639
- else mergeContribution(contribution, target);
760
+ else mergeContribution(contribution, target2);
640
761
  }
641
762
  } else {
642
763
  await Promise.all(options.roots.map(
@@ -2725,6 +2846,13 @@ var SOURCES = [
2725
2846
  buildConfig: buildCodingSkillConfig,
2726
2847
  buildContent: buildCodingSkillContentBySlug
2727
2848
  },
2849
+ {
2850
+ slugs: PLUGIN_CONFIGURATION_SKILL_SLUGS,
2851
+ buildSkillId: buildPluginConfigurationSkillId,
2852
+ buildPageKey: buildPluginConfigurationSkillPageKey,
2853
+ buildConfig: buildPluginConfigurationSkillConfig,
2854
+ buildContent: buildPluginConfigurationSkillContent
2855
+ },
2728
2856
  {
2729
2857
  slugs: SPECIALIST_SKILL_SLUGS,
2730
2858
  buildSkillId: buildSpecialistSkillId,
@@ -2867,8 +2995,8 @@ var BY_LOWER_NAME = new Map(
2867
2995
  REGISTRY.map((entry) => [entry.title.trim().toLowerCase(), entry])
2868
2996
  );
2869
2997
  var listBuiltinSkills = () => REGISTRY;
2870
- var resolveBuiltinSkillEntry = (identifier) => {
2871
- const raw = typeof identifier === "string" ? identifier.trim() : "";
2998
+ var resolveBuiltinSkillEntry = (identifier2) => {
2999
+ const raw = typeof identifier2 === "string" ? identifier2.trim() : "";
2872
3000
  if (!raw) return null;
2873
3001
  const bySlug = BY_SLUG.get(raw);
2874
3002
  if (bySlug) return bySlug;
@@ -2881,16 +3009,16 @@ var resolveBuiltinSkillEntry = (identifier) => {
2881
3009
  }
2882
3010
  return null;
2883
3011
  };
2884
- var resolveBuiltinSkillByName = (identifier) => {
2885
- const raw = typeof identifier === "string" ? identifier.trim() : "";
3012
+ var resolveBuiltinSkillByName = (identifier2) => {
3013
+ const raw = typeof identifier2 === "string" ? identifier2.trim() : "";
2886
3014
  if (!raw) return null;
2887
3015
  return resolveBuiltinSkillEntry(raw) ?? BY_LOWER_NAME.get(raw.toLowerCase()) ?? null;
2888
3016
  };
2889
- var resolveBuiltinSkillSlug = (identifier) => resolveBuiltinSkillEntry(identifier)?.slug ?? null;
2890
- var resolveBuiltinSkillPage = (identifier) => {
2891
- const entry = resolveBuiltinSkillEntry(identifier);
3017
+ var resolveBuiltinSkillSlug = (identifier2) => resolveBuiltinSkillEntry(identifier2)?.slug ?? null;
3018
+ var resolveBuiltinSkillPage = (identifier2) => {
3019
+ const entry = resolveBuiltinSkillEntry(identifier2);
2892
3020
  if (!entry) return null;
2893
- const raw = typeof identifier === "string" ? identifier.trim() : entry.slug;
3021
+ const raw = typeof identifier2 === "string" ? identifier2.trim() : entry.slug;
2894
3022
  return {
2895
3023
  dbKey: raw || entry.slug,
2896
3024
  title: entry.title,
@@ -2921,6 +3049,10 @@ var CAPABILITY_SLUG_COLLISIONS = ["app-builder"];
2921
3049
 
2922
3050
  export {
2923
3051
  WORKTREE_ISOLATION_PRELUDE,
3052
+ PLUGIN_MANAGEMENT_TOOL_NAMES,
3053
+ managementFailure,
3054
+ PLUGIN_MANAGEMENT_SCHEMAS,
3055
+ parsePluginManagementInput,
2924
3056
  DEFAULT_SYSTEM_AGENT_CAPABILITIES,
2925
3057
  TOOL_PACKS,
2926
3058
  CAPABILITY_PACKS,
@@ -1,12 +1,12 @@
1
- import {
2
- selectCurrentServer
3
- } from "./chunk-ZQUCJBS4.js";
4
1
  import {
5
2
  patch
6
- } from "./chunk-TXFYIWAW.js";
3
+ } from "./chunk-VTB6V4UF.js";
4
+ import {
5
+ selectCurrentServer
6
+ } from "./chunk-G3SJCNHX.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-C3GOEQJF.js";
9
+ } from "./chunk-5PASH2MB.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  applyPublicAgentCatalogOverride
3
- } from "./chunk-LT3DMEIB.js";
3
+ } from "./chunk-GEY2UH2I.js";
4
4
  import {
5
5
  applyBuiltinAgentRuntimeOverride,
6
6
  resolveBuiltinPlatformAgentConfig
7
- } from "./chunk-JBWXPACD.js";
7
+ } from "./chunk-JP2BH4NC.js";
8
8
  import {
9
9
  buildLocalAgentLookupKeys
10
- } from "./chunk-LCQJH7KN.js";
11
- import {
12
- LOCAL_CODEX_AGENT_ID,
13
- LOCAL_CODEX_AGENT_KEY
14
- } from "./chunk-BR3GT6MR.js";
10
+ } from "./chunk-VCU5GV42.js";
15
11
  import {
16
12
  localDialogMessageRecordToRuntimeMessage,
17
13
  orderDialogHistory
18
- } from "./chunk-EIFSCI4C.js";
14
+ } from "./chunk-JHHAIL34.js";
19
15
  import {
20
16
  resolveAgentRuntimeConfigFromRecord
21
- } from "./chunk-ZT3DYK5T.js";
17
+ } from "./chunk-AERVJIZ2.js";
22
18
  import {
23
19
  dialogMessagePrefix,
24
20
  dialogMessageRange
25
21
  } from "./chunk-OJKUU3LP.js";
22
+ import {
23
+ LOCAL_CODEX_AGENT_ID,
24
+ LOCAL_CODEX_AGENT_KEY
25
+ } from "./chunk-BR3GT6MR.js";
26
26
 
27
27
  // packages/cli/client/cliLocalAgentRecordReader.ts
28
28
  function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
@@ -177,6 +177,7 @@ var ensureDialogRuntimeState = (dialogKey) => {
177
177
  };
178
178
  function resetDialogRuntimeSessionState(dialogKey) {
179
179
  const runtime = ensureDialogRuntimeState(dialogKey);
180
+ if (Object.values(runtime.activeControllers).some((controller) => !controller.signal.aborted)) return;
180
181
  runtime.tokens = createEmptyTokenStats();
181
182
  runtime.loopStopReason = null;
182
183
  runtime.turnPhase = null;
@@ -4,24 +4,24 @@ import {
4
4
  import {
5
5
  sha256Hex
6
6
  } from "./chunk-SR4FE5VD.js";
7
- import {
8
- isAbortError
9
- } from "./chunk-7DPNBQSV.js";
10
7
  import {
11
8
  estimateTokenCount
12
9
  } from "./chunk-PSCNXBYA.js";
10
+ import {
11
+ isAbortError
12
+ } from "./chunk-7DPNBQSV.js";
13
13
  import {
14
14
  asTrimmedNonEmptyStringArray
15
15
  } from "./chunk-I42VC5KR.js";
16
16
  import {
17
17
  ALL_MODELS
18
- } from "./chunk-776CXKMX.js";
19
- import {
20
- MODEL_LOOKUP_MAP
21
- } from "./chunk-OJRTTERA.js";
18
+ } from "./chunk-4JFSDWTN.js";
22
19
  import {
23
20
  asOptionalFiniteNumber
24
21
  } from "./chunk-WWC7I6TA.js";
22
+ import {
23
+ MODEL_LOOKUP_MAP
24
+ } from "./chunk-IBQHHCQE.js";
25
25
  import {
26
26
  asOptionalTrimmedString
27
27
  } from "./chunk-G3SUCT4W.js";
@@ -29,7 +29,7 @@ import {
29
29
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
30
30
  isPlatformManagedProvider,
31
31
  resolvePlatformEffectiveModel
32
- } from "./chunk-U4VSBDO5.js";
32
+ } from "./chunk-O5MEXHJW.js";
33
33
 
34
34
  // packages/core/chat/messageContentSerialize.ts
35
35
  var serializeMessageContent = (content, imagePlaceholder = "[\u56FE\u7247]") => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-IUXBKS5L.js";
4
+ } from "./chunk-QXUVCIPB.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-7Q7MKJZN.js";
3
+ } from "./chunk-5UY2WQJ6.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-FXX6VFMV.js";
6
+ } from "./chunk-DM323UA6.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
- } from "./chunk-6OVNSQHN.js";
9
+ } from "./chunk-YLAHYLDQ.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  isNoloHostedProvider
15
- } from "./chunk-U4VSBDO5.js";
15
+ } from "./chunk-O5MEXHJW.js";
16
16
  import {
17
17
  asTrimmedLowercaseString
18
18
  } from "./chunk-QSJ3HFEF.js";
@@ -11,7 +11,7 @@ import {
11
11
  parseMcpListToolsInput,
12
12
  sameMcpPlacement,
13
13
  toMcpConnectionSummary
14
- } from "./chunk-7NIBQ4HY.js";
14
+ } from "./chunk-FDZ2GBWO.js";
15
15
  import {
16
16
  isLevelNotFoundError
17
17
  } from "./chunk-OW765XBU.js";