nolo-cli 0.106.0-alpha.1 → 0.106.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 (210) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-C5ZUOC7O.js → _executeModel-EP6HAX3W.js} +77 -69
  3. package/action-GVA5ARSJ.js +20 -0
  4. package/{addContentAction-O7R66HEX.js → addContentAction-NZZNAVCB.js} +13 -12
  5. package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-5HVGEIXI.js} +19 -20
  6. package/{agentDeleteCommand-YB3S2LPY.js → agentDeleteCommand-M25A6UGB.js} +118 -43
  7. package/{agentEmailCommands-YBCBTG6X.js → agentEmailCommands-RUL4NL64.js} +99 -89
  8. package/agentListCommands-KSPFKHFO.js +741 -0
  9. package/{agentMachineCommands-QHYLBTVW.js → agentMachineCommands-IHBB6PHD.js} +48 -44
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-ND4S2Q6Q.js} +97 -2
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
  12. package/agentRecordCommands-7OKIBN6H.js +138 -0
  13. package/agentRunCommand-GBKJTQQU.js +167 -0
  14. package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
  15. package/{agentRuntimeLocal-FRUE5P2V.js → agentRuntimeLocal-E5HXZNXZ.js} +44 -40
  16. package/{agentSlice-7OEXULAY.js → agentSlice-7T3ZLYET.js} +15 -14
  17. package/{appDeleteCommands-JPWTSFID.js → appDeleteCommands-TTJUYTQN.js} +46 -42
  18. package/{appDeployCommands-YCVY2UYO.js → appDeployCommands-65WYK2TQ.js} +46 -42
  19. package/{appDeployStatusCommands-JMCEIKTI.js → appDeployStatusCommands-U4XESYYG.js} +46 -42
  20. package/{appGetCommands-EXWT3QAE.js → appGetCommands-VNHZZC4D.js} +46 -42
  21. package/{appListCommands-PKRLSWRE.js → appListCommands-O667ZEU6.js} +46 -42
  22. package/{authCommand-F4EFRRX6.js → authCommand-SUHHTVHA.js} +118 -24
  23. package/{authCommands-RGOGCPP6.js → authCommands-5RTUDYZW.js} +7 -5
  24. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-PUGT65WS.js} +11 -9
  25. package/{chromeCommands-FZYAU75D.js → chromeCommands-AU5ZJXBG.js} +289 -37
  26. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-ZYTCMNHG.js} +156 -22
  27. package/{chunk-ZNV445LB.js → chunk-2NGKYC3L.js} +29 -9
  28. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  29. package/{chunk-HVURBGF3.js → chunk-2U3NHADM.js} +6 -6
  30. package/{chunk-XA2FJW4L.js → chunk-3SXZ6SUC.js} +11 -9
  31. package/{chunk-UKZDAFYT.js → chunk-3VKDWQMJ.js} +6 -10
  32. package/chunk-4LCOCOR5.js +50 -0
  33. package/{chunk-JPGCXHNM.js → chunk-4LKMZ3RR.js} +1 -1
  34. package/{chunk-PQFHGD77.js → chunk-4VDS344D.js} +161 -14
  35. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  36. package/{chunk-6D6VBVEW.js → chunk-4W24JM32.js} +80 -14
  37. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  38. package/{chunk-GQBOR3G6.js → chunk-5F7UKMLN.js} +8 -4
  39. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  40. package/chunk-5MMAK75Q.js +15 -0
  41. package/{chunk-7S4YWN7P.js → chunk-5UUIGN6I.js} +4 -4
  42. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  43. package/{chunk-YCJN2RA3.js → chunk-6AIURTE7.js} +20 -11
  44. package/{chunk-VLTIYV3X.js → chunk-7I25CBT5.js} +34 -8
  45. package/chunk-AGIM7IMJ.js +147 -0
  46. package/{chunk-S4VLC46A.js → chunk-AM4G3LDJ.js} +66 -54
  47. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  48. package/{chunk-TJGWNDGO.js → chunk-AZB6HR4I.js} +846 -276
  49. package/{chunk-L5UXH3B2.js → chunk-BIH7KCDJ.js} +58 -9
  50. package/{chunk-UZGQNTVW.js → chunk-BPLIXNC6.js} +8 -6
  51. package/chunk-CEQ75WPL.js +915 -0
  52. package/chunk-CHOZJMJS.js +78 -0
  53. package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
  54. package/{chunk-GPCZ7UXG.js → chunk-DBKRC5O2.js} +1 -1
  55. package/chunk-DJ3JABG5.js +7990 -0
  56. package/{chunk-Q554LLSI.js → chunk-DMXLXZKL.js} +1 -1
  57. package/{chunk-UOBDA2JS.js → chunk-DSXRVBTA.js} +118 -90
  58. package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
  59. package/{chunk-HJUYAD4A.js → chunk-EBS4FKW4.js} +5 -5
  60. package/{chunk-LC43IGO4.js → chunk-EHGIEGLI.js} +834 -962
  61. package/{chunk-ABQYVJBJ.js → chunk-EV235ILT.js} +5 -5
  62. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  63. package/{chunk-TOP2VXOR.js → chunk-FJKZSR5P.js} +5 -5
  64. package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
  65. package/{chunk-SH43IESU.js → chunk-GGC55Q32.js} +199 -29
  66. package/{chunk-ZCYXJSTU.js → chunk-GMP3NBAA.js} +65 -95
  67. package/chunk-GMZLP5DV.js +82 -0
  68. package/{chunk-OIVSQH2O.js → chunk-GU7DC2TD.js} +300 -5
  69. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  70. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  71. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  72. package/{chunk-RJXZDT2P.js → chunk-HNA5KV37.js} +23 -28
  73. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  74. package/{chunk-ACTMNVHM.js → chunk-I5YMDACN.js} +1 -1
  75. package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
  76. package/{chunk-QDSINZM3.js → chunk-IXH3HKY2.js} +1 -22
  77. package/{chunk-Q67DOFOO.js → chunk-IYIXAIEB.js} +199 -92
  78. package/{chunk-BP4XNZRM.js → chunk-JIXGJTBU.js} +4 -4
  79. package/{chunk-OEVAY4J6.js → chunk-JWNBEIME.js} +18 -20
  80. package/{chunk-Z77CRGTW.js → chunk-KA5O5KQL.js} +1 -1
  81. package/{chunk-JZL6EHZR.js → chunk-LGWABBTZ.js} +47 -67
  82. package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
  83. package/{chunk-GEPUP7OO.js → chunk-LOPP5VT6.js} +3 -3
  84. package/{chunk-DHDMC6FO.js → chunk-LUBFABMJ.js} +15 -14
  85. package/chunk-LWLNLZC5.js +265 -0
  86. package/{chunk-BNGW5ASC.js → chunk-LYLO5U3H.js} +15 -2
  87. package/{chunk-4OEFYTWL.js → chunk-MJ3CRU77.js} +85 -50
  88. package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
  89. package/{chunk-NA35QHCF.js → chunk-NTNKA5VL.js} +1 -1
  90. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  91. package/chunk-NWENLDMM.js +42 -0
  92. package/chunk-O7SVKKLY.js +875 -0
  93. package/{chunk-FM2YTE6D.js → chunk-OAXBDMT7.js} +1 -1
  94. package/chunk-OCZKATRC.js +129 -0
  95. package/{chunk-EYAQT56M.js → chunk-ODTBO4W6.js} +9 -6
  96. package/{chunk-VMFTFOWF.js → chunk-OKGVNZTL.js} +35 -8
  97. package/{chunk-EEGDMATE.js → chunk-OQ5IVGCV.js} +86 -81
  98. package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
  99. package/{chunk-KQ4ONNQD.js → chunk-OYTWDOQV.js} +155 -8
  100. package/{chunk-JRQFUXY7.js → chunk-OZ2IIIRP.js} +99 -22
  101. package/{chunk-WV42OMV7.js → chunk-PFLF4R4E.js} +8 -8
  102. package/{chunk-J4MOO56S.js → chunk-QDH32WF5.js} +10 -2
  103. package/{chunk-3DII57IT.js → chunk-QVAWUJAJ.js} +1 -1
  104. package/{chunk-3BMYXEUW.js → chunk-R5AJODNI.js} +1 -1
  105. package/{chunk-6OZ36FXI.js → chunk-SJ7CUF65.js} +22 -4
  106. package/{chunk-IIVGDG4I.js → chunk-SJKULPGX.js} +13 -7
  107. package/{chunk-ETI2NYVF.js → chunk-SYEBIZOF.js} +4 -4
  108. package/{chunk-J3WULTWA.js → chunk-TLKXNTQJ.js} +19 -17
  109. package/chunk-TLYSGGPG.js +15 -0
  110. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  111. package/chunk-TY3TIUJK.js +89 -0
  112. package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
  113. package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
  114. package/chunk-UM7TA3K4.js +1008 -0
  115. package/{chunk-6YTOJY35.js → chunk-VBG7GWWR.js} +253 -8
  116. package/chunk-VBQGO5NX.js +164 -0
  117. package/chunk-VIWDGTDA.js +8 -0
  118. package/chunk-VJVNU77E.js +83 -0
  119. package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
  120. package/chunk-VYKXIHRP.js +13692 -0
  121. package/chunk-VZLO4XJD.js +17 -0
  122. package/{chunk-DNCEALKX.js → chunk-WMWYWYK2.js} +22 -29
  123. package/{chunk-H56FOERC.js → chunk-XDQ7PHU3.js} +567 -684
  124. package/{chunk-AEOE4Z6Q.js → chunk-XGOHDYM2.js} +39 -15
  125. package/{chunk-53HEEOTT.js → chunk-XLWMNFBZ.js} +83 -16
  126. package/{chunk-V4MJDUSR.js → chunk-YFU5EELM.js} +2 -2
  127. package/{chunk-IUTWFZOX.js → chunk-YQFLBS6A.js} +68 -46
  128. package/chunk-YV25TM3R.js +780 -0
  129. package/chunk-ZRAU6T47.js +56 -0
  130. package/{chunk-5H7KJX7J.js → chunk-ZVGXD7UJ.js} +5 -5
  131. package/{chunk-H62HCIUP.js → chunk-ZYM73IHG.js} +36 -22
  132. package/commandRegistry-6QIAUQDS.js +833 -0
  133. package/{contentThunks-AZVYDLM4.js → contentThunks-5DDMUQ7B.js} +39 -36
  134. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  135. package/{createAgentAutomationAction-V55DNYCE.js → createAgentAutomationAction-NQ6AZM42.js} +40 -37
  136. package/createDialogAction-QZ6X4A7O.js +70 -0
  137. package/{createPageAction-I3HH23O3.js → createPageAction-NCGEJBVK.js} +47 -43
  138. package/{chunk-GDNQO3QR.js → cursorProvider-YGGNMVWX.js} +2751 -10172
  139. package/{dbSlice-XVWBAGYN.js → dbSlice-RCZ7NRAF.js} +12 -11
  140. package/{deleteFile-YG6QMJLU.js → deleteFile-KESP65GC.js} +7 -6
  141. package/{dialogCommands-YVMHDEOX.js → dialogCommands-OGQLEF63.js} +49 -46
  142. package/{dialogSlice-LVJ67QWE.js → dialogSlice-GIKNUHNW.js} +57 -37
  143. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  144. package/{docCreateCommands-7UTWDYJU.js → docCreateCommands-RW6LNYT6.js} +48 -44
  145. package/{docDeleteCommands-GG6BJ4PS.js → docDeleteCommands-Z742TRNY.js} +49 -45
  146. package/{docReadCommands-QHMQVSLP.js → docReadCommands-5DIGA42Y.js} +47 -43
  147. package/{docStore-UJNL6SBT.js → docStore-6GUOZH52.js} +17 -13
  148. package/{docUpdateCommands-QPL6IVUK.js → docUpdateCommands-ZFZ2QEVK.js} +48 -44
  149. package/{fetchMessages-EIU7UFFK.js → fetchMessages-3PXAHKCR.js} +5 -5
  150. package/{getPricing-LUSEABA6.js → getPricing-QVSNUFZ6.js} +4 -4
  151. package/{handleSendMessageAction-CCL7ETCL.js → handleSendMessageAction-B2VXOLMM.js} +109 -42
  152. package/index.js +87 -884
  153. package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
  154. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-UYCKO7YZ.js} +2 -2
  155. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
  156. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
  157. package/{machineCommands-2QNINBNI.js → machineCommands-AI3N7JHQ.js} +93 -83
  158. package/machineWsRunDispatch-RPF2D6VV.js +154 -0
  159. package/{memberThunks-QGFLFVCI.js → memberThunks-YICJI4IS.js} +20 -18
  160. package/{models-T3SG6MJ5.js → models-FTNFVO3D.js} +2 -2
  161. package/oauthTokenStore-ITEB663N.js +23 -0
  162. package/package.json +1 -1
  163. package/pdf-U6KSUEZZ.js +26435 -0
  164. package/processSpawn-SOAV3FEV.js +11 -0
  165. package/profileConfig-ZGOFORWV.js +43 -0
  166. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-OJJXQ7NM.js} +7 -7
  167. package/{providerRegistry-757OWH3O.js → providerRegistry-DXFBDCGQ.js} +11 -7
  168. package/{read-COE3ZYR6.js → read-XMBM52Y4.js} +8 -7
  169. package/{readDocTool-5USN4A6V.js → readDocTool-LAQHKCVT.js} +5 -3
  170. package/{readlineWorkspace-4GULS23D.js → readlineWorkspace-EPUCVZ73.js} +2594 -2030
  171. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-HDUI2MU3.js} +22 -26
  172. package/{runAgentClientLoop-MUMLW2SA.js → runAgentClientLoop-OXQMDGAN.js} +78 -71
  173. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
  174. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  175. package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-ADBVOP4O.js} +16 -14
  176. package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-PXVXQJ62.js} +23 -27
  177. package/{chunk-AFUORTY4.js → settingThunks-G2MJRKUE.js} +226 -940
  178. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
  179. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  180. package/{spaceCommands-BMXKR7H6.js → spaceCommands-Z662QYY6.js} +51 -47
  181. package/{streamAgentChatTurn-6EOS5PNG.js → streamAgentChatTurn-YJYEJHP7.js} +214 -114
  182. package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-Z3RZACGF.js} +19 -20
  183. package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
  184. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-AD7CXTA4.js} +4 -3
  185. package/tools-GHI3WBEI.js +117 -0
  186. package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-WTC6GCQC.js} +25 -23
  187. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  188. package/{updateDialogTitleAction-4YUVCBDU.js → updateDialogTitleAction-GJCNWTPY.js} +84 -45
  189. package/action-YVYQEAAV.js +0 -31
  190. package/agentListCommands-3GWH4E4G.js +0 -410
  191. package/agentRecordCommands-P76DPWKV.js +0 -128
  192. package/agentRunCommand-EQPL4F4K.js +0 -156
  193. package/browser-image-compression-MFDTD7K6.js +0 -1763
  194. package/chatQueueReduxAdapter-ZBDDI2E5.js +0 -186
  195. package/chunk-CQ3WA2NE.js +0 -299
  196. package/chunk-M76ECQRD.js +0 -13658
  197. package/chunk-MEYIRKDN.js +0 -8967
  198. package/chunk-PUOC4YRO.js +0 -394
  199. package/chunk-Q5FJJ6XI.js +0 -103
  200. package/chunk-S7Z2HMCN.js +0 -25
  201. package/chunk-WC6UUQ2C.js +0 -20923
  202. package/chunk-Y5GCAMGP.js +0 -9
  203. package/chunk-YPREESF4.js +0 -225
  204. package/createDialogAction-H6URYLIZ.js +0 -65
  205. package/machineWsRunDispatch-S3XXOKR7.js +0 -144
  206. package/settingSlice-ZQZVUPKK.js +0 -204
  207. package/syncMapping-N6RGXGBW.js +0 -437
  208. package/tools-4AJZHAK3.js +0 -110
  209. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  210. package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
package/chunk-Y5GCAMGP.js DELETED
@@ -1,9 +0,0 @@
1
- // packages/core/positiveFiniteNumberOrFallback.ts
2
- function parsePositiveFiniteNumberOrFallback(value, fallback) {
3
- const parsed = Number(value);
4
- return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
5
- }
6
-
7
- export {
8
- parsePositiveFiniteNumberOrFallback
9
- };
package/chunk-YPREESF4.js DELETED
@@ -1,225 +0,0 @@
1
- // packages/core/chat/internalTurnEvent.ts
2
- function normalizeRunCompletionShape(record) {
3
- const runId = String(record.runId ?? record.id ?? "");
4
- const agentKey = String(record.agentKey ?? record.agent ?? "");
5
- const status = String(record.status ?? "done");
6
- const counters = record.activity?.counters;
7
- return {
8
- runId,
9
- agentKey,
10
- ...typeof record.agentName === "string" ? { agentName: record.agentName } : {},
11
- status,
12
- ...typeof record.exitCode === "number" ? { exitCode: record.exitCode } : {},
13
- ...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
14
- ...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
15
- ...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
16
- ...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
17
- ...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
18
- ...typeof record.note === "string" ? { note: record.note } : {},
19
- ...typeof record.error === "string" ? { error: record.error } : {},
20
- ...typeof record.ack === "boolean" ? { ack: record.ack } : {},
21
- ...counters ? {
22
- activity: {
23
- counters: {
24
- toolCalls: typeof counters.toolCalls === "number" ? counters.toolCalls : 0,
25
- llmCalls: typeof counters.llmCalls === "number" ? counters.llmCalls : 0,
26
- fileEdits: typeof counters.fileEdits === "number" ? counters.fileEdits : 0
27
- }
28
- }
29
- } : {}
30
- };
31
- }
32
- function createTurnRequest(input) {
33
- if (typeof input === "string") {
34
- return {
35
- event: { kind: "user", text: input },
36
- text: input
37
- };
38
- }
39
- if ("event" in input && typeof input.event === "object" && typeof input.text === "string") {
40
- return input;
41
- }
42
- const event = input;
43
- return {
44
- event,
45
- text: event.text
46
- };
47
- }
48
-
49
- // packages/core/chat/chatQueueMachine.ts
50
- var initialChatQueueState = {
51
- running: false,
52
- queue: [],
53
- drainPaused: false,
54
- lastDrainError: null
55
- };
56
- function reduceChatQueue(state, event) {
57
- switch (event.type) {
58
- case "turn-start":
59
- if (state.running && state.lastDrainError === null) return state;
60
- return {
61
- ...state,
62
- running: true,
63
- lastDrainError: null
64
- };
65
- case "turn-end":
66
- return {
67
- ...state,
68
- running: false,
69
- queue: event.aborted ? [] : state.queue,
70
- lastDrainError: !event.ok && !event.aborted ? "previous turn failed" : state.lastDrainError
71
- };
72
- case "enqueue": {
73
- const req = createTurnRequest(event.text);
74
- if (!req.text.trim() && req.event.kind === "user") {
75
- return state;
76
- }
77
- return {
78
- ...state,
79
- queue: [...state.queue, req]
80
- };
81
- }
82
- case "steer": {
83
- const req = createTurnRequest(event.text);
84
- if (!req.text.trim() && req.event.kind === "user") {
85
- return state;
86
- }
87
- return {
88
- ...state,
89
- queue: [req, ...state.queue]
90
- };
91
- }
92
- case "dequeue":
93
- if (state.queue.length === 0) return state;
94
- return {
95
- ...state,
96
- queue: state.queue.slice(1)
97
- };
98
- case "recall-last":
99
- if (state.queue.length === 0) return state;
100
- return {
101
- ...state,
102
- queue: state.queue.slice(0, -1)
103
- };
104
- case "clear":
105
- if (state.queue.length === 0 && state.lastDrainError === null) return state;
106
- return {
107
- ...state,
108
- queue: [],
109
- lastDrainError: null
110
- };
111
- case "pause-drain":
112
- if (state.drainPaused) return state;
113
- return {
114
- ...state,
115
- drainPaused: true
116
- };
117
- case "resume-drain":
118
- if (!state.drainPaused) return state;
119
- return {
120
- ...state,
121
- drainPaused: false
122
- };
123
- case "drain-error":
124
- return {
125
- ...state,
126
- lastDrainError: event.message || null
127
- };
128
- default:
129
- return state;
130
- }
131
- }
132
- function shouldDrainAfterTurnEnd(state, cleanTurnEnd) {
133
- return cleanTurnEnd && !state.running && !state.drainPaused && state.queue.length > 0;
134
- }
135
- function applyChatQueueEvent(state, event) {
136
- const prevQueue = state.queue;
137
- const prevQueueLen = prevQueue.length;
138
- const prevRunning = state.running;
139
- const prevPaused = state.drainPaused;
140
- const next = reduceChatQueue(state, event);
141
- const outgoing = [];
142
- if (next.queue.length !== prevQueueLen) {
143
- outgoing.push({ type: "queue-changed", length: next.queue.length });
144
- }
145
- if (next.running !== prevRunning) {
146
- outgoing.push({ type: "running-changed", running: next.running });
147
- }
148
- if (next.drainPaused !== prevPaused) {
149
- outgoing.push({ type: "drain-paused-changed", paused: next.drainPaused });
150
- }
151
- if (event.type === "recall-last" && prevQueueLen > 0) {
152
- const last = prevQueue[prevQueueLen - 1];
153
- outgoing.push({ type: "recalled-to-draft", text: last.text, request: last });
154
- }
155
- if (event.type === "steer" && next.running && next.queue.length > prevQueueLen) {
156
- const head = next.queue[0];
157
- if (head) {
158
- outgoing.push({ type: "steer-ready", text: head.text, request: head });
159
- }
160
- }
161
- if (event.type === "turn-end") {
162
- if (event.aborted && prevQueueLen > 0) {
163
- const first = prevQueue[0];
164
- outgoing.push({
165
- type: "aborted-draft-refill",
166
- text: first.text,
167
- request: first,
168
- abortedRequests: [...prevQueue]
169
- });
170
- } else if (!event.aborted && event.ok) {
171
- if (shouldDrainAfterTurnEnd(next, true)) {
172
- const head = next.queue[0];
173
- outgoing.push({ type: "drain-ready", text: head.text, request: head });
174
- }
175
- }
176
- }
177
- return { state: next, outgoing };
178
- }
179
-
180
- // packages/core/chat/chatQueueRuntime.ts
181
- function createChatQueueRuntime(initialState = initialChatQueueState) {
182
- let state = initialState;
183
- const listeners = /* @__PURE__ */ new Set();
184
- const dispatch = (events) => {
185
- for (const e of events) {
186
- for (const l of listeners) l(e);
187
- }
188
- };
189
- return {
190
- getState: () => state,
191
- send(event) {
192
- const result = applyChatQueueEvent(state, event);
193
- state = result.state;
194
- dispatch(result.outgoing);
195
- return state;
196
- },
197
- subscribe(listener) {
198
- listeners.add(listener);
199
- return () => {
200
- listeners.delete(listener);
201
- };
202
- },
203
- on(type, listener) {
204
- const wrapped = (e) => {
205
- if (e.type === type) {
206
- listener(e);
207
- }
208
- };
209
- listeners.add(wrapped);
210
- return () => {
211
- listeners.delete(wrapped);
212
- };
213
- },
214
- dispose() {
215
- listeners.clear();
216
- state = initialChatQueueState;
217
- }
218
- };
219
- }
220
-
221
- export {
222
- normalizeRunCompletionShape,
223
- createTurnRequest,
224
- createChatQueueRuntime
225
- };
@@ -1,65 +0,0 @@
1
- import {
2
- createDialogAction,
3
- isLocalOwnerDialogAgents
4
- } from "./chunk-RJXZDT2P.js";
5
- import "./chunk-JZL6EHZR.js";
6
- import "./chunk-ZJ7UHBJS.js";
7
- import "./chunk-WC6UUQ2C.js";
8
- import "./chunk-MC4XLIJ7.js";
9
- import "./chunk-3BMYXEUW.js";
10
- import "./chunk-YYLHWIW6.js";
11
- import "./chunk-AGGIDPCZ.js";
12
- import "./chunk-XA2FJW4L.js";
13
- import "./chunk-TOP2VXOR.js";
14
- import "./chunk-5RGU3J7P.js";
15
- import "./chunk-6YTOJY35.js";
16
- import "./chunk-M76ECQRD.js";
17
- import "./chunk-YDH3FDFQ.js";
18
- import "./chunk-DHDMC6FO.js";
19
- import "./chunk-Q554LLSI.js";
20
- import "./chunk-KHCLMKZZ.js";
21
- import "./chunk-4OEFYTWL.js";
22
- import "./chunk-DNCEALKX.js";
23
- import "./chunk-PSCNXBYA.js";
24
- import "./chunk-GQBOR3G6.js";
25
- import "./chunk-BYXBJQAS.js";
26
- import "./chunk-OIVSQH2O.js";
27
- import "./chunk-DWLEOOGR.js";
28
- import "./chunk-HVURBGF3.js";
29
- import "./chunk-ONXOABJR.js";
30
- import "./chunk-W7XHHYWM.js";
31
- import "./chunk-HNMXYYJR.js";
32
- import "./chunk-7S4YWN7P.js";
33
- import "./chunk-ACTMNVHM.js";
34
- import "./chunk-Q67DOFOO.js";
35
- import "./chunk-AFUORTY4.js";
36
- import "./chunk-Y5GCAMGP.js";
37
- import "./chunk-QDSINZM3.js";
38
- import "./chunk-KX6YBIHG.js";
39
- import "./chunk-V4MJDUSR.js";
40
- import "./chunk-UAD2WT54.js";
41
- import "./chunk-H62HCIUP.js";
42
- import "./chunk-VMFTFOWF.js";
43
- import "./chunk-WWC7I6TA.js";
44
- import "./chunk-ABQYVJBJ.js";
45
- import "./chunk-QSJ3HFEF.js";
46
- import "./chunk-WV42OMV7.js";
47
- import "./chunk-BNGW5ASC.js";
48
- import "./chunk-M2EJHDJP.js";
49
- import "./chunk-UKWGR5SS.js";
50
- import "./chunk-QOKAKDPE.js";
51
- import "./chunk-OW765XBU.js";
52
- import "./chunk-SEJ5OS6F.js";
53
- import "./chunk-GBRG75BQ.js";
54
- import "./chunk-KUG52IAP.js";
55
- import "./chunk-3EUW3WEO.js";
56
- import "./chunk-U6VC4MU4.js";
57
- import "./chunk-LCBAMY2M.js";
58
- import "./chunk-4SN6J65J.js";
59
- import "./chunk-CF7PE763.js";
60
- import "./chunk-G3SUCT4W.js";
61
- import "./chunk-4VNS5WPM.js";
62
- export {
63
- createDialogAction,
64
- isLocalOwnerDialogAgents
65
- };
@@ -1,144 +0,0 @@
1
- import {
2
- buildArtifactProgress,
3
- defaultRunConnectorLocalRuntimeAgent,
4
- extractMultimodalUserInput,
5
- handleConnectorRunMessage,
6
- hasExplicitMachinePermissions,
7
- isMachineBoundLocalCustomProvider,
8
- localRuntimeEnvFromPolicy,
9
- requestsLocalWorkspaceRuntime,
10
- runtimePolicyFromConnectorPayload,
11
- runtimeWorkspacePermissionPolicy,
12
- scopePermissionPolicyToRuntimeWorkspace,
13
- summarizeAgentConfigForLogs
14
- } from "./chunk-J3WULTWA.js";
15
- import "./chunk-GDNQO3QR.js";
16
- import "./chunk-53HEEOTT.js";
17
- import "./chunk-EADNWBAZ.js";
18
- import "./chunk-SH43IESU.js";
19
- import "./chunk-I3TQJXQ7.js";
20
- import "./chunk-42V6BK2E.js";
21
- import "./chunk-Z77CRGTW.js";
22
- import "./chunk-SV5IJK6K.js";
23
- import "./chunk-MP64VFGD.js";
24
- import "./chunk-JBTJAPUF.js";
25
- import "./chunk-3DII57IT.js";
26
- import "./chunk-ATNTHIZI.js";
27
- import "./chunk-S4VLC46A.js";
28
- import "./chunk-HS7MLR74.js";
29
- import "./chunk-H56FOERC.js";
30
- import "./chunk-5UTFL4QJ.js";
31
- import "./chunk-NF64D32W.js";
32
- import "./chunk-3L2WKC3W.js";
33
- import "./chunk-3VNWWVKB.js";
34
- import "./chunk-PQFHGD77.js";
35
- import "./chunk-KQHGZWSV.js";
36
- import "./chunk-J4MOO56S.js";
37
- import "./chunk-HJUYAD4A.js";
38
- import "./chunk-EYAQT56M.js";
39
- import "./chunk-VIDPVFP3.js";
40
- import "./chunk-VLTIYV3X.js";
41
- import "./chunk-UKZDAFYT.js";
42
- import "./chunk-N4G4PKQ6.js";
43
- import "./chunk-FZGV4FGK.js";
44
- import "./chunk-MEYIRKDN.js";
45
- import "./chunk-63W5N6P3.js";
46
- import "./chunk-VF4K2QE6.js";
47
- import "./chunk-YCJN2RA3.js";
48
- import "./chunk-RJXZDT2P.js";
49
- import "./chunk-JZL6EHZR.js";
50
- import "./chunk-ZJ7UHBJS.js";
51
- import "./chunk-WC6UUQ2C.js";
52
- import "./chunk-MC4XLIJ7.js";
53
- import "./chunk-3BMYXEUW.js";
54
- import "./chunk-YYLHWIW6.js";
55
- import "./chunk-AGGIDPCZ.js";
56
- import "./chunk-XA2FJW4L.js";
57
- import "./chunk-TOP2VXOR.js";
58
- import "./chunk-5RGU3J7P.js";
59
- import "./chunk-6YTOJY35.js";
60
- import "./chunk-M76ECQRD.js";
61
- import "./chunk-YDH3FDFQ.js";
62
- import "./chunk-2F7RJC6L.js";
63
- import "./chunk-GLKOYSRU.js";
64
- import "./chunk-JRQFUXY7.js";
65
- import "./chunk-DHDMC6FO.js";
66
- import "./chunk-Q554LLSI.js";
67
- import "./chunk-KHCLMKZZ.js";
68
- import "./chunk-LC43IGO4.js";
69
- import "./chunk-ZCYXJSTU.js";
70
- import "./chunk-Q5FJJ6XI.js";
71
- import "./chunk-ZNFJWEN4.js";
72
- import "./chunk-5H7KJX7J.js";
73
- import "./chunk-CQ3WA2NE.js";
74
- import "./chunk-5ZUL4CUO.js";
75
- import "./chunk-N7J63Q6C.js";
76
- import "./chunk-L5UXH3B2.js";
77
- import "./chunk-PUOC4YRO.js";
78
- import "./chunk-IIVGDG4I.js";
79
- import "./chunk-FDTR4QJ6.js";
80
- import "./chunk-UZGQNTVW.js";
81
- import "./chunk-6OZ36FXI.js";
82
- import "./chunk-2MBTWINN.js";
83
- import "./chunk-4OEFYTWL.js";
84
- import "./chunk-DNCEALKX.js";
85
- import "./chunk-PSCNXBYA.js";
86
- import "./chunk-GQBOR3G6.js";
87
- import "./chunk-BYXBJQAS.js";
88
- import "./chunk-OIVSQH2O.js";
89
- import "./chunk-DWLEOOGR.js";
90
- import "./chunk-HVURBGF3.js";
91
- import "./chunk-ONXOABJR.js";
92
- import "./chunk-W7XHHYWM.js";
93
- import "./chunk-HNMXYYJR.js";
94
- import "./chunk-DVINR3PL.js";
95
- import "./chunk-2GRGFCF6.js";
96
- import "./chunk-O6OSWFZQ.js";
97
- import "./chunk-7S4YWN7P.js";
98
- import "./chunk-X7HHHIOZ.js";
99
- import "./chunk-A7GB5UGH.js";
100
- import "./chunk-OLZBQWZU.js";
101
- import "./chunk-ACTMNVHM.js";
102
- import "./chunk-Q67DOFOO.js";
103
- import "./chunk-BP4XNZRM.js";
104
- import "./chunk-AFUORTY4.js";
105
- import "./chunk-Y5GCAMGP.js";
106
- import "./chunk-QDSINZM3.js";
107
- import "./chunk-KX6YBIHG.js";
108
- import "./chunk-V4MJDUSR.js";
109
- import "./chunk-UAD2WT54.js";
110
- import "./chunk-H62HCIUP.js";
111
- import "./chunk-VMFTFOWF.js";
112
- import "./chunk-WWC7I6TA.js";
113
- import "./chunk-ABQYVJBJ.js";
114
- import "./chunk-QSJ3HFEF.js";
115
- import "./chunk-WV42OMV7.js";
116
- import "./chunk-BNGW5ASC.js";
117
- import "./chunk-M2EJHDJP.js";
118
- import "./chunk-UKWGR5SS.js";
119
- import "./chunk-QOKAKDPE.js";
120
- import "./chunk-OW765XBU.js";
121
- import "./chunk-SEJ5OS6F.js";
122
- import "./chunk-GBRG75BQ.js";
123
- import "./chunk-KUG52IAP.js";
124
- import "./chunk-3EUW3WEO.js";
125
- import "./chunk-U6VC4MU4.js";
126
- import "./chunk-LCBAMY2M.js";
127
- import "./chunk-4SN6J65J.js";
128
- import "./chunk-CF7PE763.js";
129
- import "./chunk-G3SUCT4W.js";
130
- import "./chunk-4VNS5WPM.js";
131
- export {
132
- buildArtifactProgress,
133
- defaultRunConnectorLocalRuntimeAgent,
134
- extractMultimodalUserInput,
135
- handleConnectorRunMessage,
136
- hasExplicitMachinePermissions,
137
- isMachineBoundLocalCustomProvider,
138
- localRuntimeEnvFromPolicy,
139
- requestsLocalWorkspaceRuntime,
140
- runtimePolicyFromConnectorPayload,
141
- runtimeWorkspacePermissionPolicy,
142
- scopePermissionPolicyToRuntimeWorkspace,
143
- summarizeAgentConfigForLogs
144
- };
@@ -1,204 +0,0 @@
1
- import {
2
- LOCAL_FIRST_APPEARANCE_KEYS,
3
- LOCAL_ONLY_SETTINGS_KEYS,
4
- SYSTEM_DEFAULT_AGENT_ID,
5
- addHostToCurrentServer,
6
- buildSettingsPersistencePlan,
7
- changeDarkMode,
8
- changeDensity,
9
- changeFontPreset,
10
- changeTheme,
11
- getCachedDefaultAgentRegisterRecord,
12
- getSettings,
13
- hydrateStoredSettings,
14
- isLocalFirstAppearanceChange,
15
- normalizeSettingChanges,
16
- persistDefaultAgentRegister,
17
- sanitizeStoredSettingsRecord,
18
- selectAiRecentContentLimit,
19
- selectAutoApproveSelfUpdateFields,
20
- selectCopyDiagnosticsEnabled,
21
- selectCreateMenuOpenCount,
22
- selectCurrentServer,
23
- selectDefaultAgentId,
24
- selectDefaultAgentPreference,
25
- selectDeleteShortcut,
26
- selectDensity,
27
- selectDesktopChromeConnectorEnabled,
28
- selectDeveloperModeEnabled,
29
- selectDiagnosticModeEnabled,
30
- selectEditorAutoSave,
31
- selectEditorAutoSaveInterval,
32
- selectEditorCodeTheme,
33
- selectEditorConfig,
34
- selectEditorDarkCodeTheme,
35
- selectEditorDefaultMode,
36
- selectEditorFontSize,
37
- selectEditorLightCodeTheme,
38
- selectEditorShortcuts,
39
- selectEditorWordCountEnabled,
40
- selectEnableReadCurrentSpace,
41
- selectFontPreset,
42
- selectGlobalPrompt,
43
- selectHeaderHeight,
44
- selectIsDark,
45
- selectKnowledgeCaptureLevel,
46
- selectMaxCost,
47
- selectMaxExecutionTime,
48
- selectOcrModel,
49
- selectPreferredAnimationSet,
50
- selectRemoteServer,
51
- selectRemoteServers,
52
- selectRemoteSyncServers,
53
- selectSettings,
54
- selectShowScrollToBottomButton,
55
- selectShowScrollToTopButton,
56
- selectShowThinking,
57
- selectSidebarWidth,
58
- selectSpaceContextLevel,
59
- selectSyncServers,
60
- selectSystemBuiltinSkills,
61
- selectTheme,
62
- selectThemeFollowsSystem,
63
- selectThemeMode,
64
- selectThemeName,
65
- selectUserTonePreset,
66
- setAiRecentContentLimit,
67
- setDefaultAgentId,
68
- setEditorAutoSaveInterval,
69
- setEditorCodeTheme,
70
- setEditorDarkCodeTheme,
71
- setEditorDefaultMode,
72
- setEditorFontSize,
73
- setEditorLightCodeTheme,
74
- setGlobalPrompt,
75
- setKnowledgeCaptureLevel,
76
- setMaxExecutionTime,
77
- setSettings,
78
- setSidebarWidth,
79
- setSpaceContextLevel,
80
- setThemeFollowsSystem,
81
- setThemeMode,
82
- setUserTonePreset,
83
- settingSlice_default,
84
- stripRegisterBackedFieldsFromSettingsWrite,
85
- toggleEditorAutoSave,
86
- toggleEditorShortcut,
87
- toggleEditorWordCount,
88
- toggleEnableReadCurrentSpace,
89
- toggleShowThinking
90
- } from "./chunk-AFUORTY4.js";
91
- import "./chunk-Y5GCAMGP.js";
92
- import "./chunk-QDSINZM3.js";
93
- import "./chunk-KX6YBIHG.js";
94
- import "./chunk-H62HCIUP.js";
95
- import "./chunk-VMFTFOWF.js";
96
- import "./chunk-WWC7I6TA.js";
97
- import "./chunk-ABQYVJBJ.js";
98
- import "./chunk-QSJ3HFEF.js";
99
- import "./chunk-WV42OMV7.js";
100
- import "./chunk-BNGW5ASC.js";
101
- import "./chunk-M2EJHDJP.js";
102
- import "./chunk-UKWGR5SS.js";
103
- import "./chunk-QOKAKDPE.js";
104
- import "./chunk-OW765XBU.js";
105
- import "./chunk-SEJ5OS6F.js";
106
- import "./chunk-GBRG75BQ.js";
107
- import "./chunk-KUG52IAP.js";
108
- import "./chunk-3EUW3WEO.js";
109
- import "./chunk-U6VC4MU4.js";
110
- import "./chunk-LCBAMY2M.js";
111
- import "./chunk-4SN6J65J.js";
112
- import "./chunk-CF7PE763.js";
113
- import "./chunk-G3SUCT4W.js";
114
- import "./chunk-4VNS5WPM.js";
115
- export {
116
- LOCAL_FIRST_APPEARANCE_KEYS,
117
- LOCAL_ONLY_SETTINGS_KEYS,
118
- SYSTEM_DEFAULT_AGENT_ID,
119
- addHostToCurrentServer,
120
- buildSettingsPersistencePlan,
121
- changeDarkMode,
122
- changeDensity,
123
- changeFontPreset,
124
- changeTheme,
125
- settingSlice_default as default,
126
- getCachedDefaultAgentRegisterRecord,
127
- getSettings,
128
- hydrateStoredSettings,
129
- isLocalFirstAppearanceChange,
130
- normalizeSettingChanges,
131
- persistDefaultAgentRegister,
132
- sanitizeStoredSettingsRecord,
133
- selectAiRecentContentLimit,
134
- selectAutoApproveSelfUpdateFields,
135
- selectCopyDiagnosticsEnabled,
136
- selectCreateMenuOpenCount,
137
- selectCurrentServer,
138
- selectDefaultAgentId,
139
- selectDefaultAgentPreference,
140
- selectDeleteShortcut,
141
- selectDensity,
142
- selectDesktopChromeConnectorEnabled,
143
- selectDeveloperModeEnabled,
144
- selectDiagnosticModeEnabled,
145
- selectEditorAutoSave,
146
- selectEditorAutoSaveInterval,
147
- selectEditorCodeTheme,
148
- selectEditorConfig,
149
- selectEditorDarkCodeTheme,
150
- selectEditorDefaultMode,
151
- selectEditorFontSize,
152
- selectEditorLightCodeTheme,
153
- selectEditorShortcuts,
154
- selectEditorWordCountEnabled,
155
- selectEnableReadCurrentSpace,
156
- selectFontPreset,
157
- selectGlobalPrompt,
158
- selectHeaderHeight,
159
- selectIsDark,
160
- selectKnowledgeCaptureLevel,
161
- selectMaxCost,
162
- selectMaxExecutionTime,
163
- selectOcrModel,
164
- selectPreferredAnimationSet,
165
- selectRemoteServer,
166
- selectRemoteServers,
167
- selectRemoteSyncServers,
168
- selectSettings,
169
- selectShowScrollToBottomButton,
170
- selectShowScrollToTopButton,
171
- selectShowThinking,
172
- selectSidebarWidth,
173
- selectSpaceContextLevel,
174
- selectSyncServers,
175
- selectSystemBuiltinSkills,
176
- selectTheme,
177
- selectThemeFollowsSystem,
178
- selectThemeMode,
179
- selectThemeName,
180
- selectUserTonePreset,
181
- setAiRecentContentLimit,
182
- setDefaultAgentId,
183
- setEditorAutoSaveInterval,
184
- setEditorCodeTheme,
185
- setEditorDarkCodeTheme,
186
- setEditorDefaultMode,
187
- setEditorFontSize,
188
- setEditorLightCodeTheme,
189
- setGlobalPrompt,
190
- setKnowledgeCaptureLevel,
191
- setMaxExecutionTime,
192
- setSettings,
193
- setSidebarWidth,
194
- setSpaceContextLevel,
195
- setThemeFollowsSystem,
196
- setThemeMode,
197
- setUserTonePreset,
198
- stripRegisterBackedFieldsFromSettingsWrite,
199
- toggleEditorAutoSave,
200
- toggleEditorShortcut,
201
- toggleEditorWordCount,
202
- toggleEnableReadCurrentSpace,
203
- toggleShowThinking
204
- };