volute 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{accept-ZBDVVCEU.js → accept-AHAOUFBK.js} +4 -4
  2. package/dist/{activity-events-PWOGSMRL.js → activity-events-N6HCHU4P.js} +4 -4
  3. package/dist/{ai-service-GSZWIETO.js → ai-service-C2YNARGH.js} +5 -5
  4. package/dist/{api-client-3A77HMH7.js → api-client-LC5YRA32.js} +1 -1
  5. package/dist/{archive-Y2YEOCGB.js → archive-AWIJTVQV.js} +4 -4
  6. package/dist/{auth-YTQME4EV.js → auth-2QOOPMBX.js} +5 -5
  7. package/dist/{bridge-PXIO6PS2.js → bridge-F3ZJEKDN.js} +4 -4
  8. package/dist/{chat-ED7YOGKO.js → chat-5Y4FD77E.js} +9 -9
  9. package/dist/{chunk-75AJ54GM.js → chunk-2NHRJ3YO.js} +1 -1
  10. package/dist/{chunk-PJ4IPTIN.js → chunk-3F7XK5Q7.js} +1 -1
  11. package/dist/{chunk-IIWF2IPD.js → chunk-5DPRTREW.js} +3 -3
  12. package/dist/{chunk-X2J7QUFH.js → chunk-7AZQFSOV.js} +1 -1
  13. package/dist/{chunk-NUX47Y2V.js → chunk-A6FLW5XD.js} +1 -1
  14. package/dist/{chunk-SWW6AUVW.js → chunk-BIEWHAAM.js} +1 -1
  15. package/dist/{chunk-7PTQGPJY.js → chunk-CJ26DXZL.js} +1 -1
  16. package/dist/{chunk-PY557GDR.js → chunk-GVVVMZ4J.js} +1 -1
  17. package/dist/chunk-K3NQKI34.js +10 -0
  18. package/dist/{chunk-DQ7VBXAP.js → chunk-KBRGHKVU.js} +93 -81
  19. package/dist/{chunk-BOLJUV77.js → chunk-KXXJYY62.js} +4 -4
  20. package/dist/chunk-LQ6Z4FXN.js +87 -0
  21. package/dist/{chunk-N2AUHW4C.js → chunk-MQRS4J24.js} +2 -2
  22. package/dist/{chunk-B35VNNSS.js → chunk-N42QMDID.js} +2 -2
  23. package/dist/{chunk-GBDVNPN2.js → chunk-NYP3LBIV.js} +8 -8
  24. package/dist/{chunk-M5RYAA5I.js → chunk-ORNY3MZR.js} +4 -4
  25. package/dist/{chunk-YDBAY3NA.js → chunk-PMMHVSCR.js} +1 -1
  26. package/dist/chunk-QQQI6ISK.js +853 -0
  27. package/dist/{chunk-L72WYMF7.js → chunk-SNW2NPP4.js} +1 -1
  28. package/dist/chunk-SZJWC2GA.js +125 -0
  29. package/dist/{chunk-DJT5Y4UF.js → chunk-TNZ5XQA4.js} +2 -2
  30. package/dist/{chunk-DMV5P2LU.js → chunk-UIM5NHPP.js} +3 -3
  31. package/dist/{chunk-6F3YNULE.js → chunk-UQFYNZKT.js} +16 -16
  32. package/dist/{chunk-ZTVKQOU7.js → chunk-WC635OPK.js} +1 -1
  33. package/dist/{chunk-YTWZORJN.js → chunk-XLBQYIHH.js} +1 -1
  34. package/dist/{chunk-TWAN7ZNO.js → chunk-Z6TIXE77.js} +3 -3
  35. package/dist/cli.js +24 -24
  36. package/dist/{clock-HSEKS5AR.js → clock-BMLJ2TR6.js} +8 -8
  37. package/dist/{cloud-sync-BOCZSDIA.js → cloud-sync-OIX576NA.js} +18 -18
  38. package/dist/{config-UTS7QULS.js → config-QB7W3Z7P.js} +4 -4
  39. package/dist/connectors/discord-bridge.js +1 -1
  40. package/dist/connectors/slack-bridge.js +1 -1
  41. package/dist/connectors/telegram-bridge.js +1 -1
  42. package/dist/{conversations-HH3CJD4E.js → conversations-G6YRSABR.js} +5 -5
  43. package/dist/{create-5BPOOJAN.js → create-C3BBFYV7.js} +4 -4
  44. package/dist/{create-QBEPSD2Z.js → create-PN73742N.js} +4 -4
  45. package/dist/{daemon-client-RVIKXGFQ.js → daemon-client-2MIPKY3E.js} +1 -1
  46. package/dist/{daemon-restart-SIR3UR4B.js → daemon-restart-L2O6L7NR.js} +11 -11
  47. package/dist/daemon.js +392 -1101
  48. package/dist/db-CBOCDYVA.js +9 -0
  49. package/dist/{db-BDMH4SZ2.js → db-IJL6B26S.js} +1 -1
  50. package/dist/{delete-L5PAVDGQ.js → delete-NLXES2C7.js} +3 -3
  51. package/dist/delivery-manager-4PVBUZJB.js +30 -0
  52. package/dist/{delivery-router-VSULHXNH.js → delivery-router-QTFEZ26O.js} +4 -4
  53. package/dist/down-25L2RKCQ.js +17 -0
  54. package/dist/echo-text-T5ZLGMA7.js +31 -0
  55. package/dist/{env-E4XHO2BI.js → env-IQ6Q2333.js} +6 -6
  56. package/dist/exec-ONYZEA5B.js +17 -0
  57. package/dist/{export-HTFOHOKL.js → export-JPDBQESV.js} +6 -6
  58. package/dist/{extension-AKZ46YSL.js → extension-LZYHBNLV.js} +4 -4
  59. package/dist/{extensions-OOSFVH7U.js → extensions-CLYXNGYB.js} +17 -17
  60. package/dist/{files-H2YLRD37.js → files-LAQ3NXQK.js} +7 -7
  61. package/dist/{import-OL5BZX7S.js → import-EROF27RH.js} +11 -10
  62. package/dist/{isolation-N74RWOUX.js → isolation-G5J3MTKU.js} +4 -4
  63. package/dist/{join-DF5XSJAC.js → join-6SZCA5FX.js} +3 -3
  64. package/dist/{list-GJ4RUQQT.js → list-KHJZJPEJ.js} +4 -4
  65. package/dist/{login-JXRVMBRB.js → login-F6YMAVLE.js} +6 -6
  66. package/dist/{login-GOTAYLXP.js → login-GYTH67ES.js} +4 -4
  67. package/dist/{logout-FW243JBU.js → logout-HHPH52KZ.js} +6 -6
  68. package/dist/{logout-6KIA74EV.js → logout-YHQLOFLR.js} +4 -4
  69. package/dist/message-delivery-N2V5APCS.js +40 -0
  70. package/dist/{mind-6VJJHF65.js → mind-M57ET546.js} +19 -19
  71. package/dist/{mind-activity-tracker-66UVYIFW.js → mind-activity-tracker-42ENM32S.js} +5 -5
  72. package/dist/{mind-history-MII2SK7F.js → mind-history-WHCNZ6I5.js} +5 -5
  73. package/dist/{mind-list-GEWHWAL4.js → mind-list-H3HC2ZRG.js} +4 -4
  74. package/dist/mind-manager-LS2AIXHQ.js +30 -0
  75. package/dist/{mind-profile-DCBDVF5B.js → mind-profile-7VYRJGFZ.js} +2 -2
  76. package/dist/mind-service-UDXF5WC2.js +36 -0
  77. package/dist/{mind-sleep-ITCF6OQA.js → mind-sleep-ZL5ZXFTM.js} +4 -4
  78. package/dist/{mind-status-X4SX3YUG.js → mind-status-ZWULKOUO.js} +4 -4
  79. package/dist/{mind-wake-KXMKMGWX.js → mind-wake-HK5ORGUK.js} +4 -4
  80. package/dist/{package-3W2MEXHB.js → package-5FGU5QNP.js} +2 -2
  81. package/dist/{read-ZUDG4JWU.js → read-CP7MYMJQ.js} +4 -4
  82. package/dist/{read-stdin-3X5VYKNS.js → read-stdin-4B5UYPPM.js} +1 -1
  83. package/dist/{register-SB7NXCOE.js → register-XOBFEMI4.js} +4 -4
  84. package/dist/{registry-YPHK534W.js → registry-KMELPC3X.js} +3 -3
  85. package/dist/{reject-MUR2KWJ4.js → reject-43AGXB6B.js} +4 -4
  86. package/dist/{restart-5EGG4JXU.js → restart-O5QIYQJT.js} +5 -5
  87. package/dist/{sandbox-LP6YRAXS.js → sandbox-PQYEICEF.js} +5 -5
  88. package/dist/scheduler-NTC74JYH.js +30 -0
  89. package/dist/{schema-MISD3JFG.js → schema-K575EBPE.js} +2 -2
  90. package/dist/{seed-CEC4RC23.js → seed-55VC3A57.js} +2 -2
  91. package/dist/{seed-check-KJNTL72M.js → seed-check-HZPVFJKZ.js} +2 -2
  92. package/dist/{seed-cmd-WTTG7SRQ.js → seed-cmd-2KOEQZK6.js} +4 -4
  93. package/dist/{seed-create-M6RCC6RP.js → seed-create-Y2Z5JWBB.js} +6 -6
  94. package/dist/{seed-sprout-ZKCHFJKH.js → seed-sprout-OLSIWXZN.js} +14 -14
  95. package/dist/{send-LXUT2GGR.js → send-7CIP5GLS.js} +8 -8
  96. package/dist/{service-M6N3RUYU.js → service-YMHWPDXW.js} +6 -6
  97. package/dist/{setup-PJOF5UV5.js → setup-6Z34JJEB.js} +32 -37
  98. package/dist/{setup-PMJHCZQX.js → setup-PF7JSFMO.js} +4 -4
  99. package/dist/{skill-TAAKEYBV.js → skill-ICN6Y2ZF.js} +6 -6
  100. package/dist/{skills-2PTRTBQP.js → skills-FDMLJGZ3.js} +7 -7
  101. package/dist/sleep-manager-TQP5ZJI5.js +34 -0
  102. package/dist/{spirit-6KVDIROQ.js → spirit-SM6ARJ2N.js} +9 -9
  103. package/dist/{split-AWVOYOPZ.js → split-5YBEQTBF.js} +3 -3
  104. package/dist/{sprout-WX2FFYLP.js → sprout-G6G57IOY.js} +2 -2
  105. package/dist/{src-QEOLMAYC.js → src-LT6ZBYYX.js} +2 -2
  106. package/dist/{src-GW6FP6VL.js → src-O4PRLMKM.js} +1 -1
  107. package/dist/{src-FQE4BHRG.js → src-OYWRPLC6.js} +1 -1
  108. package/dist/{start-3UXOPXQG.js → start-LMXXRR3X.js} +5 -5
  109. package/dist/{status-3IVSLJDN.js → status-MC2P7DBG.js} +7 -7
  110. package/dist/{stop-3XYIBGFM.js → stop-TWDKVEUX.js} +5 -5
  111. package/dist/system-chat-NNXYCSVL.js +34 -0
  112. package/dist/{systems-O43WGQY6.js → systems-Y2WZV2K4.js} +7 -7
  113. package/dist/{tailscale-DZU4WM3E.js → tailscale-LTYNKIPZ.js} +3 -3
  114. package/dist/{template-hash-6ITI3WC4.js → template-hash-SSIBEEYK.js} +1 -1
  115. package/dist/up-5JXV6BZS.js +19 -0
  116. package/dist/{update-RIQYUPVN.js → update-UOP2INF2.js} +7 -7
  117. package/dist/{update-check-4TIJKVGD.js → update-check-IKS7SGK5.js} +4 -4
  118. package/dist/{upgrade-ZMDGC7M2.js → upgrade-RXFZR5FI.js} +3 -3
  119. package/dist/{variant-QWL2WSRI.js → variant-HHDTW74J.js} +1 -1
  120. package/dist/{version-notify-UXSHBZ35.js → version-notify-CSE4NBYM.js} +18 -18
  121. package/dist/{volute-config-V7UFFBG3.js → volute-config-TS62GS6A.js} +1 -1
  122. package/dist/web-assets/assets/{index-C-eYso8Y.js → index-B3xLeex8.js} +16 -16
  123. package/dist/web-assets/assets/{index-CCv_fSte.css → index-Dr4A90Lo.css} +1 -1
  124. package/dist/web-assets/index.html +2 -2
  125. package/package.json +1 -1
  126. package/templates/_base/src/lib/context-breakdown.ts +22 -16
  127. package/dist/chunk-7KJOFUNN.js +0 -22
  128. package/dist/chunk-PZYJBOQP.js +0 -207
  129. package/dist/db-URORGSXQ.js +0 -9
  130. package/dist/delivery-manager-WTGIPBGY.js +0 -30
  131. package/dist/down-DGGLZ5TA.js +0 -17
  132. package/dist/exec-X3C6ZZTQ.js +0 -17
  133. package/dist/lib-DYEZMGW7.js +0 -6588
  134. package/dist/message-delivery-YORUXKDQ.js +0 -40
  135. package/dist/mind-manager-TJ2SUPRX.js +0 -30
  136. package/dist/mind-service-E7FM2WZF.js +0 -36
  137. package/dist/scheduler-FRJ5DK24.js +0 -30
  138. package/dist/sleep-manager-WAZWMFJT.js +0 -34
  139. package/dist/system-chat-2IFS5HCX.js +0 -34
  140. package/dist/up-4SCIUIMG.js +0 -19
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  resolveMindName
4
4
  } from "./chunk-BTY4WNFE.js";
5
+ import {
6
+ daemonFetch
7
+ } from "./chunk-ZX7EAV5J.js";
5
8
  import {
6
9
  command
7
10
  } from "./chunk-TXSA4Q3V.js";
8
11
  import "./chunk-O7IGP7ZW.js";
9
- import {
10
- daemonFetch
11
- } from "./chunk-ZX7EAV5J.js";
12
- import "./chunk-7KJOFUNN.js";
12
+ import "./chunk-K3NQKI34.js";
13
13
 
14
14
  // packages/cli/src/commands/chat/accept.ts
15
15
  var cmd = command({
@@ -3,11 +3,11 @@ import {
3
3
  broadcast,
4
4
  publish,
5
5
  subscribe
6
- } from "./chunk-B35VNNSS.js";
6
+ } from "./chunk-N42QMDID.js";
7
7
  import "./chunk-T2TP6ZC6.js";
8
- import "./chunk-75AJ54GM.js";
9
- import "./chunk-7PTQGPJY.js";
10
- import "./chunk-7KJOFUNN.js";
8
+ import "./chunk-2NHRJ3YO.js";
9
+ import "./chunk-CJ26DXZL.js";
10
+ import "./chunk-K3NQKI34.js";
11
11
  export {
12
12
  broadcast,
13
13
  publish,
@@ -17,12 +17,12 @@ import {
17
17
  setEnabledModels,
18
18
  setUtilityModel,
19
19
  unqualifyModelId
20
- } from "./chunk-M5RYAA5I.js";
20
+ } from "./chunk-ORNY3MZR.js";
21
+ import "./chunk-A6FLW5XD.js";
21
22
  import "./chunk-T2TP6ZC6.js";
22
- import "./chunk-NUX47Y2V.js";
23
- import "./chunk-75AJ54GM.js";
24
- import "./chunk-7PTQGPJY.js";
25
- import "./chunk-7KJOFUNN.js";
23
+ import "./chunk-2NHRJ3YO.js";
24
+ import "./chunk-CJ26DXZL.js";
25
+ import "./chunk-K3NQKI34.js";
26
26
  export {
27
27
  aiComplete,
28
28
  aiCompleteUtility,
@@ -3,7 +3,7 @@ import {
3
3
  getClient,
4
4
  urlOf
5
5
  } from "./chunk-LOPXTW6H.js";
6
- import "./chunk-7KJOFUNN.js";
6
+ import "./chunk-K3NQKI34.js";
7
7
  export {
8
8
  getClient,
9
9
  urlOf
@@ -5,10 +5,10 @@ import {
5
5
  extractArchive,
6
6
  isHomeOnlyArchive,
7
7
  readManifest
8
- } from "./chunk-SWW6AUVW.js";
9
- import "./chunk-75AJ54GM.js";
10
- import "./chunk-7PTQGPJY.js";
11
- import "./chunk-7KJOFUNN.js";
8
+ } from "./chunk-BIEWHAAM.js";
9
+ import "./chunk-2NHRJ3YO.js";
10
+ import "./chunk-CJ26DXZL.js";
11
+ import "./chunk-K3NQKI34.js";
12
12
  export {
13
13
  addHistoryToArchive,
14
14
  createExportArchive,
@@ -17,12 +17,12 @@ import {
17
17
  syncMindProfile,
18
18
  updateUserProfile,
19
19
  verifyUser
20
- } from "./chunk-DMV5P2LU.js";
21
- import "./chunk-B35VNNSS.js";
20
+ } from "./chunk-UIM5NHPP.js";
21
+ import "./chunk-N42QMDID.js";
22
22
  import "./chunk-T2TP6ZC6.js";
23
- import "./chunk-75AJ54GM.js";
24
- import "./chunk-7PTQGPJY.js";
25
- import "./chunk-7KJOFUNN.js";
23
+ import "./chunk-2NHRJ3YO.js";
24
+ import "./chunk-CJ26DXZL.js";
25
+ import "./chunk-K3NQKI34.js";
26
26
  export {
27
27
  approveUser,
28
28
  changePassword,
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ daemonFetch
4
+ } from "./chunk-ZX7EAV5J.js";
2
5
  import {
3
6
  command,
4
7
  subcommands
5
8
  } from "./chunk-TXSA4Q3V.js";
6
9
  import "./chunk-O7IGP7ZW.js";
7
- import {
8
- daemonFetch
9
- } from "./chunk-ZX7EAV5J.js";
10
- import "./chunk-7KJOFUNN.js";
10
+ import "./chunk-K3NQKI34.js";
11
11
 
12
12
  // packages/cli/src/commands/chat/bridge.ts
13
13
  var bridgeAddCmd = command({
@@ -3,7 +3,7 @@ import {
3
3
  subcommands
4
4
  } from "./chunk-TXSA4Q3V.js";
5
5
  import "./chunk-O7IGP7ZW.js";
6
- import "./chunk-7KJOFUNN.js";
6
+ import "./chunk-K3NQKI34.js";
7
7
 
8
8
  // packages/cli/src/commands/chat.ts
9
9
  var cmd = subcommands({
@@ -12,35 +12,35 @@ var cmd = subcommands({
12
12
  commands: {
13
13
  send: {
14
14
  description: "Send a message",
15
- run: (args) => import("./send-LXUT2GGR.js").then((m) => m.run(args))
15
+ run: (args) => import("./send-7CIP5GLS.js").then((m) => m.run(args))
16
16
  },
17
17
  list: {
18
18
  description: "List conversations",
19
- run: (args) => import("./list-GJ4RUQQT.js").then((m) => m.run(args))
19
+ run: (args) => import("./list-KHJZJPEJ.js").then((m) => m.run(args))
20
20
  },
21
21
  read: {
22
22
  description: "Read conversation messages",
23
- run: (args) => import("./read-ZUDG4JWU.js").then((m) => m.run(args))
23
+ run: (args) => import("./read-CP7MYMJQ.js").then((m) => m.run(args))
24
24
  },
25
25
  create: {
26
26
  description: "Create a conversation",
27
- run: (args) => import("./create-5BPOOJAN.js").then((m) => m.run(args))
27
+ run: (args) => import("./create-C3BBFYV7.js").then((m) => m.run(args))
28
28
  },
29
29
  bridge: {
30
30
  description: "Manage platform bridges",
31
- run: (args) => import("./bridge-PXIO6PS2.js").then((m) => m.run(args))
31
+ run: (args) => import("./bridge-F3ZJEKDN.js").then((m) => m.run(args))
32
32
  },
33
33
  files: {
34
34
  description: "List pending incoming files",
35
- run: (args) => import("./files-H2YLRD37.js").then((m) => m.run(args))
35
+ run: (args) => import("./files-LAQ3NXQK.js").then((m) => m.run(args))
36
36
  },
37
37
  accept: {
38
38
  description: "Accept a pending file",
39
- run: (args) => import("./accept-ZBDVVCEU.js").then((m) => m.run(args))
39
+ run: (args) => import("./accept-AHAOUFBK.js").then((m) => m.run(args))
40
40
  },
41
41
  reject: {
42
42
  description: "Reject a pending file",
43
- run: (args) => import("./reject-MUR2KWJ4.js").then((m) => m.run(args))
43
+ run: (args) => import("./reject-43AGXB6B.js").then((m) => m.run(args))
44
44
  }
45
45
  },
46
46
  footer: "Use --mind <name> or VOLUTE_MIND to identify the mind."
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  minds,
4
4
  schema_exports
5
- } from "./chunk-7PTQGPJY.js";
5
+ } from "./chunk-CJ26DXZL.js";
6
6
 
7
7
  // packages/daemon/src/lib/db.ts
8
8
  import { chmodSync, existsSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  wrapForIsolation
4
- } from "./chunk-L72WYMF7.js";
4
+ } from "./chunk-SNW2NPP4.js";
5
5
 
6
6
  // packages/daemon/src/lib/util/exec.ts
7
7
  import { execFile as execFileCb, execFileSync, spawn } from "child_process";
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  subscribe
4
- } from "./chunk-B35VNNSS.js";
4
+ } from "./chunk-N42QMDID.js";
5
5
  import {
6
6
  logger_default
7
7
  } from "./chunk-T2TP6ZC6.js";
8
8
  import {
9
9
  getDb
10
- } from "./chunk-75AJ54GM.js";
10
+ } from "./chunk-2NHRJ3YO.js";
11
11
  import {
12
12
  channels,
13
13
  conversationParticipants,
@@ -15,7 +15,7 @@ import {
15
15
  conversations,
16
16
  messages,
17
17
  users
18
- } from "./chunk-7PTQGPJY.js";
18
+ } from "./chunk-CJ26DXZL.js";
19
19
 
20
20
  // packages/daemon/src/lib/events/conversations.ts
21
21
  import { randomUUID } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-T2TP6ZC6.js";
5
5
  import {
6
6
  mindDir
7
- } from "./chunk-75AJ54GM.js";
7
+ } from "./chunk-2NHRJ3YO.js";
8
8
 
9
9
  // packages/daemon/src/lib/delivery/delivery-router.ts
10
10
  import { readFileSync, statSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  voluteSystemDir
4
- } from "./chunk-75AJ54GM.js";
4
+ } from "./chunk-2NHRJ3YO.js";
5
5
 
6
6
  // packages/daemon/src/lib/config/setup.ts
7
7
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  mindDir,
4
4
  stateDir
5
- } from "./chunk-75AJ54GM.js";
5
+ } from "./chunk-2NHRJ3YO.js";
6
6
 
7
7
  // packages/daemon/src/lib/mind/archive.ts
8
8
  import { execFileSync } from "child_process";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  __export
4
- } from "./chunk-7KJOFUNN.js";
4
+ } from "./chunk-K3NQKI34.js";
5
5
 
6
6
  // packages/daemon/src/lib/schema.ts
7
7
  var schema_exports = {};
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  publish
4
- } from "./chunk-B35VNNSS.js";
4
+ } from "./chunk-N42QMDID.js";
5
5
  import {
6
6
  logger_default
7
7
  } from "./chunk-T2TP6ZC6.js";
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
7
+
8
+ export {
9
+ __export
10
+ };
@@ -1,37 +1,16 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ loadMergedEnv
4
+ } from "./chunk-PMMHVSCR.js";
2
5
  import {
3
6
  spiritDir
4
- } from "./chunk-6F3YNULE.js";
7
+ } from "./chunk-UQFYNZKT.js";
5
8
  import {
6
9
  hashSkillDir,
7
10
  importSkillFromDir,
8
11
  removeSharedSkill,
9
12
  sharedSkillsDir
10
- } from "./chunk-GBDVNPN2.js";
11
- import {
12
- markIdle
13
- } from "./chunk-PY557GDR.js";
14
- import {
15
- getOrCreateMindUser,
16
- getOrCreateSystemUser,
17
- getUser,
18
- getUserByUsername,
19
- syncMindProfile
20
- } from "./chunk-DMV5P2LU.js";
21
- import {
22
- addMessage,
23
- createChannel,
24
- createConversation,
25
- findDMConversation,
26
- getChannelByName,
27
- getParticipants,
28
- joinChannel,
29
- publish as publish2
30
- } from "./chunk-IIWF2IPD.js";
31
- import {
32
- publish,
33
- subscribe
34
- } from "./chunk-B35VNNSS.js";
13
+ } from "./chunk-NYP3LBIV.js";
35
14
  import {
36
15
  readVoluteConfig,
37
16
  writeVoluteConfig
@@ -39,37 +18,58 @@ import {
39
18
  import {
40
19
  isSandboxEnabled,
41
20
  wrapForSandbox
42
- } from "./chunk-BOLJUV77.js";
21
+ } from "./chunk-KXXJYY62.js";
43
22
  import {
44
23
  extractTextContent,
45
24
  getRoutingConfig,
46
25
  resolveDeliveryMode,
47
26
  resolveRoute
48
- } from "./chunk-X2J7QUFH.js";
27
+ } from "./chunk-7AZQFSOV.js";
49
28
  import {
50
- loadMergedEnv
51
- } from "./chunk-YDBAY3NA.js";
52
- import {
53
- aiCompleteUtility,
54
- getAiConfig,
55
- resolveApiKey
56
- } from "./chunk-M5RYAA5I.js";
57
- import {
58
- logger_default
59
- } from "./chunk-T2TP6ZC6.js";
29
+ markIdle
30
+ } from "./chunk-GVVVMZ4J.js";
60
31
  import {
61
32
  exec
62
- } from "./chunk-PJ4IPTIN.js";
33
+ } from "./chunk-3F7XK5Q7.js";
63
34
  import {
64
35
  chownMindDir,
65
36
  isIsolationEnabled,
66
37
  mindUserName,
67
38
  wrapForIsolation
68
- } from "./chunk-L72WYMF7.js";
39
+ } from "./chunk-SNW2NPP4.js";
40
+ import {
41
+ getOrCreateMindUser,
42
+ getOrCreateSystemUser,
43
+ getUser,
44
+ getUserByUsername,
45
+ syncMindProfile
46
+ } from "./chunk-UIM5NHPP.js";
47
+ import {
48
+ aiCompleteUtility,
49
+ getAiConfig,
50
+ resolveApiKey
51
+ } from "./chunk-ORNY3MZR.js";
69
52
  import {
70
53
  readGlobalConfig,
71
54
  writeGlobalConfig
72
- } from "./chunk-NUX47Y2V.js";
55
+ } from "./chunk-A6FLW5XD.js";
56
+ import {
57
+ addMessage,
58
+ createChannel,
59
+ createConversation,
60
+ findDMConversation,
61
+ getChannelByName,
62
+ getParticipants,
63
+ joinChannel,
64
+ publish as publish2
65
+ } from "./chunk-5DPRTREW.js";
66
+ import {
67
+ publish,
68
+ subscribe
69
+ } from "./chunk-N42QMDID.js";
70
+ import {
71
+ logger_default
72
+ } from "./chunk-T2TP6ZC6.js";
73
73
  import {
74
74
  findMind,
75
75
  getBaseName,
@@ -79,7 +79,7 @@ import {
79
79
  stateDir,
80
80
  voluteHome,
81
81
  voluteSystemDir
82
- } from "./chunk-75AJ54GM.js";
82
+ } from "./chunk-2NHRJ3YO.js";
83
83
  import {
84
84
  activity,
85
85
  conversationParticipants,
@@ -90,7 +90,7 @@ import {
90
90
  systemPrompts,
91
91
  turns,
92
92
  users
93
- } from "./chunk-7PTQGPJY.js";
93
+ } from "./chunk-CJ26DXZL.js";
94
94
 
95
95
  // packages/daemon/src/lib/delivery/message-delivery.ts
96
96
  import { and as and4, desc as desc2, eq as eq6, inArray as inArray3, sql as sql3 } from "drizzle-orm";
@@ -1534,12 +1534,18 @@ var MindManager = class {
1534
1534
  }
1535
1535
  }
1536
1536
  if (target.template === "codex") {
1537
- const ai = (await import("./ai-service-GSZWIETO.js")).getAiConfig();
1538
- const providerConfig = ai?.providers["openai-codex"];
1539
- if (providerConfig?.apiKey) {
1540
- env.OPENAI_API_KEY = providerConfig.apiKey;
1541
- } else if (process.env.OPENAI_API_KEY) {
1542
- env.OPENAI_API_KEY = process.env.OPENAI_API_KEY;
1537
+ try {
1538
+ const apiKey = await resolveApiKey("openai-codex");
1539
+ if (apiKey) {
1540
+ env.OPENAI_API_KEY = apiKey;
1541
+ } else if (process.env.OPENAI_API_KEY) {
1542
+ env.OPENAI_API_KEY = process.env.OPENAI_API_KEY;
1543
+ }
1544
+ } catch (err) {
1545
+ mlog.error(`failed to resolve OpenAI API key for ${name}`, logger_default.errorData(err));
1546
+ if (process.env.OPENAI_API_KEY) {
1547
+ env.OPENAI_API_KEY = process.env.OPENAI_API_KEY;
1548
+ }
1543
1549
  }
1544
1550
  const homeDir = resolve(dir, "home");
1545
1551
  const zshenvLines = Object.entries(env).filter(([k, v]) => k.startsWith("VOLUTE_") && v != null).map(([k, v]) => `export ${k}=${JSON.stringify(v)}`);
@@ -1734,7 +1740,7 @@ var MindManager = class {
1734
1740
  if (this.shuttingDown || this.stopping.has(name)) return;
1735
1741
  mlog.error(`mind ${name} exited with code ${code}`);
1736
1742
  try {
1737
- const { getSleepManagerIfReady: getSleepManagerIfReady2 } = await import("./sleep-manager-WAZWMFJT.js");
1743
+ const { getSleepManagerIfReady: getSleepManagerIfReady2 } = await import("./sleep-manager-TQP5ZJI5.js");
1738
1744
  const sleepState = getSleepManagerIfReady2()?.getState(name);
1739
1745
  if (sleepState?.sleeping) {
1740
1746
  mlog.info(`${name} is sleeping \u2014 skipping crash recovery`);
@@ -1747,15 +1753,15 @@ var MindManager = class {
1747
1753
  (err) => mlog.warn(`failed to clear turn state for ${name} after crash`, logger_default.errorData(err))
1748
1754
  );
1749
1755
  try {
1750
- const { getDeliveryManager: getDeliveryManager2 } = await import("./delivery-manager-WTGIPBGY.js");
1756
+ const { getDeliveryManager: getDeliveryManager2 } = await import("./delivery-manager-4PVBUZJB.js");
1751
1757
  getDeliveryManager2().clearMindSessions(name);
1752
1758
  } catch (err) {
1753
1759
  if (!(err instanceof Error && err.message.includes("not initialized"))) {
1754
1760
  mlog.warn(`failed to clear delivery state for ${name} after crash`, logger_default.errorData(err));
1755
1761
  }
1756
1762
  }
1757
- import("./mind-activity-tracker-66UVYIFW.js").then(({ markIdle: markIdle2 }) => markIdle2(name)).catch((err) => mlog.warn(`failed to mark ${name} idle after crash`, logger_default.errorData(err)));
1758
- import("./activity-events-PWOGSMRL.js").then(
1763
+ import("./mind-activity-tracker-42ENM32S.js").then(({ markIdle: markIdle2 }) => markIdle2(name)).catch((err) => mlog.warn(`failed to mark ${name} idle after crash`, logger_default.errorData(err)));
1764
+ import("./activity-events-N6HCHU4P.js").then(
1759
1765
  ({ publish: publish4 }) => publish4({ type: "mind_stopped", mind: name, summary: `${name} crashed (exit ${code})` })
1760
1766
  ).catch((err) => mlog.warn(`failed to publish crash event for ${name}`, logger_default.errorData(err)));
1761
1767
  const { shouldRestart, delay, attempt } = this.restartTracker.recordCrash(name);
@@ -1806,13 +1812,19 @@ var MindManager = class {
1806
1812
  mlog.warn(`failed to clear turn state for ${name} on stop`, logger_default.errorData(err));
1807
1813
  }
1808
1814
  try {
1809
- const { getDeliveryManager: getDeliveryManager2 } = await import("./delivery-manager-WTGIPBGY.js");
1815
+ const { getDeliveryManager: getDeliveryManager2 } = await import("./delivery-manager-4PVBUZJB.js");
1810
1816
  getDeliveryManager2().clearMindSessions(name);
1811
1817
  } catch (err) {
1812
1818
  if (!(err instanceof Error && err.message.includes("not initialized"))) {
1813
1819
  mlog.warn(`failed to clear delivery state for ${name} on stop`, logger_default.errorData(err));
1814
1820
  }
1815
1821
  }
1822
+ try {
1823
+ const { clearEchoTextCache } = await import("./echo-text-T5ZLGMA7.js");
1824
+ clearEchoTextCache(name);
1825
+ } catch (err) {
1826
+ mlog.debug(`failed to clear echo-text cache for ${name}`, logger_default.errorData(err));
1827
+ }
1816
1828
  if (this.restartTracker.reset(name)) this.saveCrashAttempts();
1817
1829
  rmSync(mindPidPath(name), { force: true });
1818
1830
  if (!this.shuttingDown) {
@@ -2291,9 +2303,9 @@ function resolveSkillsDir(manifest) {
2291
2303
  }
2292
2304
  async function discoverBuiltinExtensions(disabledIds) {
2293
2305
  const builtins = [
2294
- { id: "notes", load: async () => (await import("./src-FQE4BHRG.js")).default },
2295
- { id: "pages", load: async () => (await import("./src-QEOLMAYC.js")).default },
2296
- { id: "plan", load: async () => (await import("./src-GW6FP6VL.js")).default }
2306
+ { id: "notes", load: async () => (await import("./src-OYWRPLC6.js")).default },
2307
+ { id: "pages", load: async () => (await import("./src-LT6ZBYYX.js")).default },
2308
+ { id: "plan", load: async () => (await import("./src-O4PRLMKM.js")).default }
2297
2309
  ];
2298
2310
  const results = [];
2299
2311
  for (const { id, load } of builtins) {
@@ -2533,7 +2545,7 @@ async function installNpmExtension(pkg) {
2533
2545
  throw new Error(`Extension "${pkg}" is already installed`);
2534
2546
  }
2535
2547
  const dir = ensureExtensionsNpmDir();
2536
- const { exec: exec2 } = await import("./exec-X3C6ZZTQ.js");
2548
+ const { exec: exec2 } = await import("./exec-ONYZEA5B.js");
2537
2549
  try {
2538
2550
  await exec2("npm", ["install", pkg], { cwd: dir });
2539
2551
  } catch (err) {
@@ -2554,7 +2566,7 @@ async function uninstallNpmExtension(pkg) {
2554
2566
  packages.splice(idx, 1);
2555
2567
  writeExtensionsConfig(packages);
2556
2568
  try {
2557
- const { exec: exec2 } = await import("./exec-X3C6ZZTQ.js");
2569
+ const { exec: exec2 } = await import("./exec-ONYZEA5B.js");
2558
2570
  await exec2("npm", ["uninstall", pkg], { cwd: extensionsNpmDir() });
2559
2571
  } catch (err) {
2560
2572
  logger_default.warn(
@@ -3329,7 +3341,7 @@ async function wakeMind(name) {
3329
3341
  async function startSpiritFull(name) {
3330
3342
  const entry = await findMind(name);
3331
3343
  if (entry?.dir) {
3332
- const { registerMindDir } = await import("./delivery-router-VSULHXNH.js");
3344
+ const { registerMindDir } = await import("./delivery-router-QTFEZ26O.js");
3333
3345
  registerMindDir(name, entry.dir);
3334
3346
  }
3335
3347
  await getMindManager().startMind(name);
@@ -3351,8 +3363,8 @@ async function stopSpiritFull(name) {
3351
3363
  }).catch((err) => logger_default.error("failed to publish spirit_stopped activity", logger_default.errorData(err)));
3352
3364
  }
3353
3365
  async function ensureCreatorDM(mindName, creatorUsername) {
3354
- const { getOrCreateMindUser: getOrCreateMindUser2, getUserByUsername: getUserByUsername2 } = await import("./auth-YTQME4EV.js");
3355
- const { findDMConversation: findDMConversation2, createConversation: createConversation2 } = await import("./conversations-HH3CJD4E.js");
3366
+ const { getOrCreateMindUser: getOrCreateMindUser2, getUserByUsername: getUserByUsername2 } = await import("./auth-2QOOPMBX.js");
3367
+ const { findDMConversation: findDMConversation2, createConversation: createConversation2 } = await import("./conversations-G6YRSABR.js");
3356
3368
  const mindUser = await getOrCreateMindUser2(mindName);
3357
3369
  const creatorUser = await getUserByUsername2(creatorUsername);
3358
3370
  if (!creatorUser) {
@@ -3696,7 +3708,7 @@ var SleepManager = class {
3696
3708
  const db = await getDb();
3697
3709
  const rows = await db.select().from(deliveryQueue).where(and2(eq4(deliveryQueue.mind, name), eq4(deliveryQueue.status, "sleep-queued"))).all();
3698
3710
  if (rows.length === 0) return 0;
3699
- const { deliverMessage: deliverMessage2 } = await import("./message-delivery-YORUXKDQ.js");
3711
+ const { deliverMessage: deliverMessage2 } = await import("./message-delivery-N2V5APCS.js");
3700
3712
  const delivered = [];
3701
3713
  for (const row of rows) {
3702
3714
  try {
@@ -4606,7 +4618,7 @@ var DeliveryManager = class {
4606
4618
  `To accept this channel, add a routing rule for "${channel}" to your routes.json.`,
4607
4619
  `Messages are being held until a route is configured.`
4608
4620
  ].filter((line) => line !== null).join("\n");
4609
- const { sendSystemMessage: sendSystemMessage2 } = await import("./system-chat-2IFS5HCX.js");
4621
+ const { sendSystemMessage: sendSystemMessage2 } = await import("./system-chat-NNXYCSVL.js");
4610
4622
  await sendSystemMessage2(mindName, notification);
4611
4623
  }
4612
4624
  async persistToQueue(mindName, session, payload, status = "pending") {
@@ -4662,7 +4674,7 @@ var DeliveryManager = class {
4662
4674
  const blocks = [];
4663
4675
  let sharpDefault = null;
4664
4676
  try {
4665
- const mod = await import("./lib-DYEZMGW7.js");
4677
+ const mod = await import("sharp");
4666
4678
  sharpDefault = mod.default ?? mod;
4667
4679
  } catch (err) {
4668
4680
  const code = err.code;
@@ -4820,7 +4832,7 @@ async function recordOutbound(mind, channel, content, opts = {}) {
4820
4832
  type: "outbound",
4821
4833
  channel,
4822
4834
  content,
4823
- turn_id: null,
4835
+ turn_id: opts.turnId ?? null,
4824
4836
  message_id: opts.messageId ?? null
4825
4837
  }).returning({ id: mindHistory.id });
4826
4838
  return result[0]?.id;
@@ -5129,7 +5141,7 @@ async function generateSystemReply(conversationId, mindName, message) {
5129
5141
  if (config.sleep.schedule?.wake) contextParts.push(`Wake cron: ${config.sleep.schedule.wake}`);
5130
5142
  }
5131
5143
  try {
5132
- const { getSleepManagerIfReady: getSleepManagerIfReady2 } = await import("./sleep-manager-WAZWMFJT.js");
5144
+ const { getSleepManagerIfReady: getSleepManagerIfReady2 } = await import("./sleep-manager-TQP5ZJI5.js");
5133
5145
  const sm = getSleepManagerIfReady2();
5134
5146
  if (sm) {
5135
5147
  const state = sm.getState(mindName);
@@ -5213,6 +5225,19 @@ export {
5213
5225
  readSystemsConfig,
5214
5226
  writeSystemsConfig,
5215
5227
  deleteSystemsConfig,
5228
+ parseCommandArgs,
5229
+ loadAllExtensions,
5230
+ getLoadedExtensions,
5231
+ getAllDiscoveredExtensions,
5232
+ getAllDiscoveredExtensionsDetailed,
5233
+ setExtensionEnabled,
5234
+ installNpmExtension,
5235
+ uninstallNpmExtension,
5236
+ getExtensionStandardSkills,
5237
+ notifyExtensionsDaemonStart,
5238
+ notifyExtensionsDaemonStop,
5239
+ notifyExtensionsMindStart,
5240
+ notifyExtensionsMindStop,
5216
5241
  initMailPoller,
5217
5242
  Scheduler,
5218
5243
  initScheduler,
@@ -5240,18 +5265,5 @@ export {
5240
5265
  deliverMessage,
5241
5266
  ensureSystemChannel,
5242
5267
  joinSystemChannel,
5243
- announceToSystem,
5244
- parseCommandArgs,
5245
- loadAllExtensions,
5246
- getLoadedExtensions,
5247
- getAllDiscoveredExtensions,
5248
- getAllDiscoveredExtensionsDetailed,
5249
- setExtensionEnabled,
5250
- installNpmExtension,
5251
- uninstallNpmExtension,
5252
- getExtensionStandardSkills,
5253
- notifyExtensionsDaemonStart,
5254
- notifyExtensionsDaemonStop,
5255
- notifyExtensionsMindStart,
5256
- notifyExtensionsMindStop
5268
+ announceToSystem
5257
5269
  };
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ readGlobalConfig
4
+ } from "./chunk-A6FLW5XD.js";
2
5
  import {
3
6
  logger_default
4
7
  } from "./chunk-T2TP6ZC6.js";
5
- import {
6
- readGlobalConfig
7
- } from "./chunk-NUX47Y2V.js";
8
8
  import {
9
9
  getBaseName,
10
10
  readRegistry,
11
11
  voluteHome,
12
12
  voluteSystemDir,
13
13
  voluteUserHome
14
- } from "./chunk-75AJ54GM.js";
14
+ } from "./chunk-2NHRJ3YO.js";
15
15
 
16
16
  // packages/daemon/src/lib/mind/sandbox.ts
17
17
  import { resolve } from "path";