nolo-cli 0.229.0-alpha.1 → 0.240.0-alpha.2

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 (191) hide show
  1. package/{_executeModel-VYCHHZVT.js → _executeModel-5NA4USGG.js} +56 -51
  2. package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
  3. package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
  4. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
  5. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2RFGKFAB.js} +78 -70
  6. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-GQCQKKOR.js} +85 -73
  7. package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
  8. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-BISF6PVV.js} +26 -22
  9. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
  10. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
  11. package/{agentRecordCommands-IZYUVHME.js → agentRecordCommands-AOXPGYAJ.js} +80 -68
  12. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-YTZJCRAL.js} +86 -73
  13. package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
  14. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
  15. package/{agentSlice-UG76KEBH.js → agentSlice-XJNKE3PG.js} +10 -9
  16. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
  17. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
  18. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
  19. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
  20. package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
  21. package/{authCommand-OZ2KTP4Z.js → authCommand-4CVBDADE.js} +15 -13
  22. package/{authCommands-55OGQGCR.js → authCommands-EHU2BHOX.js} +7 -5
  23. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
  24. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
  25. package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
  26. package/chunk-2SXN7LAY.js +15 -0
  27. package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
  28. package/{chunk-XTJKU3Z4.js → chunk-3FBAVU2Y.js} +11 -9
  29. package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
  30. package/{chunk-MJI3UAXN.js → chunk-4IQVE43Z.js} +30 -26
  31. package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
  32. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  33. package/chunk-4ZCTKB27.js +31 -0
  34. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  35. package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
  36. package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
  37. package/chunk-6D25V6CB.js +133 -0
  38. package/{chunk-ZOHO6MOF.js → chunk-6WOLPIPY.js} +93 -90
  39. package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
  40. package/{chunk-DLXMMTGM.js → chunk-7AJRJGSQ.js} +260 -359
  41. package/chunk-7NIBQ4HY.js +138 -0
  42. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  43. package/{chunk-CNMY2XM6.js → chunk-A3LUWRQK.js} +4 -4
  44. package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
  45. package/{chunk-YVFH2MFB.js → chunk-AEQMKYZN.js} +4 -4
  46. package/{chunk-YKY4OVOX.js → chunk-AH5R7BYW.js} +13 -167
  47. package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
  48. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  49. package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
  50. package/{chunk-7BCG67EI.js → chunk-B7DE5XJW.js} +137 -290
  51. package/chunk-BEM6LPD2.js +734 -0
  52. package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
  53. package/{chunk-GAYNXB6T.js → chunk-BGGV6B5O.js} +416 -232
  54. package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
  55. package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
  56. package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
  57. package/{chunk-OTKSESZR.js → chunk-CVJRVBJL.js} +2 -2
  58. package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
  59. package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
  60. package/chunk-DVYAFH2Q.js +103 -0
  61. package/{chunk-LYD6C7OU.js → chunk-DXW5WDHZ.js} +4 -4
  62. package/{chunk-MZG5CETE.js → chunk-E5KJOZWY.js} +3 -3
  63. package/{chunk-45CAVC35.js → chunk-E5KY7RAY.js} +565 -103
  64. package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
  65. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  66. package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
  67. package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
  68. package/{chunk-3VZLEKV2.js → chunk-FFYE5ATM.js} +4 -4
  69. package/{chunk-HXB4VDGK.js → chunk-FZKA3XFA.js} +11 -11
  70. package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
  71. package/{chunk-WFDNADFX.js → chunk-GDUC4VS2.js} +7 -7
  72. package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
  73. package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
  74. package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
  75. package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
  76. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  77. package/{chunk-WCFFRBL5.js → chunk-IJTXNLQE.js} +9 -9
  78. package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
  79. package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
  80. package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
  81. package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
  82. package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
  83. package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
  84. package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
  85. package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
  86. package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
  87. package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
  88. package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
  89. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  90. package/{chunk-TSPMLCWI.js → chunk-P3IZUMIC.js} +2 -2
  91. package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
  92. package/{chunk-4QYJPWHH.js → chunk-PRMEU7BT.js} +229 -7
  93. package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
  94. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  95. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  96. package/chunk-RETQOQ4D.js +33394 -0
  97. package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
  98. package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
  99. package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
  100. package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
  101. package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
  102. package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
  103. package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
  104. package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
  105. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  106. package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
  107. package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
  108. package/{chunk-HF7BLF3F.js → chunk-VREG6ANQ.js} +102 -99
  109. package/chunk-VSRISJXZ.js +107 -0
  110. package/chunk-WDWZPASX.js +29 -0
  111. package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
  112. package/chunk-X7IA2B7R.js +166 -0
  113. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  114. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  115. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  116. package/{chunk-EGHP7KOY.js → chunk-Y5OWZQMJ.js} +28 -19
  117. package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
  118. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  119. package/{chunk-X3E6EHJW.js → chunk-Z2WZAE4P.js} +128 -150
  120. package/chunk-Z6YTCDU4.js +24 -0
  121. package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
  122. package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
  123. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
  124. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  125. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
  126. package/{commandRegistry-FVYPE2IN.js → commandRegistry-FIXBZJHE.js} +89 -85
  127. package/{contentThunks-GNFPG32S.js → contentThunks-U6OC4R2N.js} +23 -22
  128. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
  129. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
  130. package/{createDialogAction-EVTOPY7A.js → createDialogAction-IAGQJ3LH.js} +24 -23
  131. package/{createPageAction-2UYF2IDZ.js → createPageAction-AZ3UIFKA.js} +24 -23
  132. package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
  133. package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
  134. package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
  135. package/dialogMessageRecord-OAV77LT7.js +7 -0
  136. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
  137. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-QAKYN4DE.js} +22 -21
  138. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
  139. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
  140. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
  141. package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
  142. package/{docStore-OKKIKLT3.js → docStore-GIVRT7TQ.js} +10 -9
  143. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
  144. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
  145. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-6VDJFNDO.js} +82 -69
  146. package/index.js +8 -8
  147. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  148. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
  149. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  150. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  151. package/{machineCommands-HSQHDHOT.js → machineCommands-K6XIGOAD.js} +78 -66
  152. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-4OO7Z6UM.js} +78 -66
  153. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  154. package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
  155. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  156. package/package.json +1 -1
  157. package/{projectArchive-FQO654Z3.js → projectArchive-G7AOQPRW.js} +24 -23
  158. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
  159. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
  160. package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
  161. package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
  162. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-XMPGXR77.js} +2946 -2367
  163. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
  164. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
  165. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
  166. package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
  167. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
  168. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
  169. package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
  170. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  171. package/{spaceCommands-5VNWMDBE.js → spaceCommands-G63QGYQO.js} +26 -22
  172. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
  173. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
  174. package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
  175. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  176. package/{tools-M35PTIFB.js → tools-7RSX22FT.js} +41 -37
  177. package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
  178. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-BVNHMWLR.js} +6 -6
  179. package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
  180. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-SEWV252V.js} +23 -22
  181. package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
  182. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
  183. package/webapi-24RZDIIQ.js +2488 -0
  184. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  185. package/workContext-MM3P5GP5.js +13 -0
  186. package/workContextAccess-UZHDLBUR.js +11 -0
  187. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  188. package/chunk-ZXF6D3I6.js +0 -359
  189. package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
  190. package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
  191. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
@@ -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-TYMBGEXO.js");
209
+ const { readAction } = await import("./read-JEGPITEW.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`);
@@ -7,20 +7,20 @@ import {
7
7
  import {
8
8
  buildLocalAgentLookupKeys,
9
9
  shouldReadAgentKeyRemotely
10
- } from "./chunk-OJ45MEEI.js";
10
+ } from "./chunk-PROOOQZ3.js";
11
11
  import {
12
12
  resolveCliAgentKeyInput
13
13
  } from "./chunk-BR3GT6MR.js";
14
14
  import {
15
15
  createHostCredentialBrokerChain,
16
16
  createStrictHostCredentialBroker
17
- } from "./chunk-3QIYD3VM.js";
17
+ } from "./chunk-BEM6LPD2.js";
18
18
  import {
19
19
  collectInvalidAgentSkillModes,
20
20
  formatInvalidAgentSkillModeMessage,
21
21
  formatInvalidAgentSkillModesFieldMessage,
22
22
  isAgentSkillModesFieldShapeValid
23
- } from "./chunk-FJSNBZXR.js";
23
+ } from "./chunk-MM73SP4K.js";
24
24
  import {
25
25
  buildAgentApiKeyCredentialRef,
26
26
  migrateAgentSecrets
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
766
766
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
767
767
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
768
768
  if (args.parsed.presetId) {
769
- const { resolveProviderPresetFields } = await import("./providerPresetApply-WHAMP2D5.js");
769
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-OPBCAONX.js");
770
770
  const fields = resolveProviderPresetFields(args.parsed.presetId);
771
771
  if (fields.kind === "manual") {
772
772
  throw new Error(
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-ATEKLSLR.js";
3
+ } from "./chunk-O6IPRAVV.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-CMMI3DAT.js";
6
+ } from "./chunk-RM4UMFY4.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-4N6G2CKP.js";
9
+ } from "./chunk-ULLHVDTZ.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-GAYNXB6T.js";
3
+ } from "./chunk-BGGV6B5O.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-7BCG67EI.js";
6
+ } from "./chunk-B7DE5XJW.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-6OVNSQHN.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidGone
3
- } from "./chunk-OWKNSIXL.js";
3
+ } from "./chunk-MECDGHLK.js";
4
4
 
5
5
  // packages/cli/tui/tuiRestart.ts
6
6
  import { realpathSync } from "node:fs";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-L32W3PRP.js";
7
7
  import {
8
8
  BUILTIN_NOLO_AGENT_KEY
9
- } from "./chunk-ILHQ2AXT.js";
9
+ } from "./chunk-WRKMXMU7.js";
10
10
  import {
11
11
  isPageKey,
12
12
  isTableMetaKey
@@ -0,0 +1,103 @@
1
+ import {
2
+ WORKFLOW_GUIDANCE_SKILL_SLUGS
3
+ } from "./chunk-EBKHA63G.js";
4
+
5
+ // packages/ai/policy/types.ts
6
+ var DEFAULT_USER_PREFERENCE_PROFILE = {
7
+ version: 1,
8
+ tone: {
9
+ preset: "default"
10
+ },
11
+ knowledgeCaptureLevel: 2,
12
+ spaceContextLevel: 3
13
+ };
14
+
15
+ // packages/ai/skills/userPromptSkills.ts
16
+ var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
17
+ var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
18
+ RECOMMENDED_PROMPT_SKILL_SLUGS
19
+ );
20
+ function normalizeEnabledPromptSkills(value) {
21
+ if (!Array.isArray(value)) {
22
+ return [];
23
+ }
24
+ const result = [];
25
+ const seen = /* @__PURE__ */ new Set();
26
+ for (const item of value) {
27
+ if (typeof item !== "string") {
28
+ continue;
29
+ }
30
+ const trimmed = item.trim();
31
+ if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
32
+ seen.add(trimmed);
33
+ result.push(trimmed);
34
+ }
35
+ }
36
+ return result;
37
+ }
38
+
39
+ // packages/ai/skills/userSkills.ts
40
+ var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = WORKFLOW_GUIDANCE_SKILL_SLUGS;
41
+ function isAccountOnDemandWorkflowSkill(slug) {
42
+ return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
43
+ }
44
+ var SUPPORTED_USER_SKILL_SLUGS = [
45
+ "ub-mode",
46
+ "auto-review",
47
+ "code-style",
48
+ "worktree-isolation",
49
+ "systematic-investigation",
50
+ "show-me",
51
+ "caveman",
52
+ "secrets-manager",
53
+ "skill-creator",
54
+ "code-planning",
55
+ "coding",
56
+ "coding-review",
57
+ "android-adb",
58
+ "mihome-assistant",
59
+ "stock-quotes",
60
+ ...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
61
+ ];
62
+ var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
63
+ SUPPORTED_USER_SKILL_SLUGS
64
+ );
65
+ function normalizeEnabledSkills(value) {
66
+ if (!Array.isArray(value)) {
67
+ return [];
68
+ }
69
+ const result = [];
70
+ const seen = /* @__PURE__ */ new Set();
71
+ for (const item of value) {
72
+ if (typeof item !== "string") {
73
+ continue;
74
+ }
75
+ const trimmed = item.trim();
76
+ if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
77
+ seen.add(trimmed);
78
+ result.push(trimmed);
79
+ }
80
+ }
81
+ return result;
82
+ }
83
+ function resolveUserEnabledSkills(preferences) {
84
+ if (!preferences || typeof preferences !== "object") {
85
+ return [];
86
+ }
87
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
88
+ return normalizeEnabledSkills(preferences.enabledSkills);
89
+ }
90
+ if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
91
+ const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
92
+ return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
93
+ }
94
+ return [];
95
+ }
96
+
97
+ export {
98
+ DEFAULT_USER_PREFERENCE_PROFILE,
99
+ normalizeEnabledPromptSkills,
100
+ isAccountOnDemandWorkflowSkill,
101
+ normalizeEnabledSkills,
102
+ resolveUserEnabledSkills
103
+ };
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-UVLYNWIE.js";
4
4
  import {
5
5
  require_react
6
- } from "./chunk-5FUN7EG4.js";
6
+ } from "./chunk-RD3QLZQV.js";
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-CMMI3DAT.js";
10
+ } from "./chunk-RM4UMFY4.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-GNFPG32S.js");
338
+ const { updateContentTitle } = await import("./contentThunks-U6OC4R2N.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-2UYF2IDZ.js");
381
+ const { createPageAction } = await import("./createPageAction-AZ3UIFKA.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-EGHP7KOY.js";
4
+ } from "./chunk-Y5OWZQMJ.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-7BCG67EI.js";
7
+ } from "./chunk-B7DE5XJW.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
- } from "./chunk-S2NTVGA2.js";
10
+ } from "./chunk-I2OYPD3Y.js";
11
11
  import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,