volute 0.30.1 → 0.31.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 (169) hide show
  1. package/dist/{accept-E3PAH3QJ.js → accept-GAKQ3MEH.js} +4 -4
  2. package/dist/{activity-events-BKBPPUBP.js → activity-events-T5ZRCVAL.js} +2 -2
  3. package/dist/{ai-service-VAJT5UBS.js → ai-service-UWUPM4T6.js} +5 -3
  4. package/dist/api.d.ts +238 -111
  5. package/dist/{archive-WWDBWYN2.js → archive-YBNSJYZZ.js} +2 -2
  6. package/dist/auth-T5AW2USD.js +43 -0
  7. package/dist/{bridge-RO37CUFM.js → bridge-4AJ3EY26.js} +4 -4
  8. package/dist/{chat-TCUNPFGO.js → chat-7YLT7FI3.js} +8 -8
  9. package/dist/{chunk-EFVHR7KH.js → chunk-4OUOFS23.js} +24 -5
  10. package/dist/{chunk-G3GBKZGG.js → chunk-57OKQMP3.js} +54 -2
  11. package/dist/chunk-6QIUN46C.js +38 -0
  12. package/dist/{chunk-FSM45XD5.js → chunk-AAO77TZX.js} +1 -1
  13. package/dist/{chunk-DTC6EH5I.js → chunk-BC3P3QCK.js} +1 -1
  14. package/dist/{chunk-P7VFDSSG.js → chunk-BNC43CSY.js} +2 -2
  15. package/dist/{chunk-QVAQ5454.js → chunk-BWKIHH7B.js} +3080 -2099
  16. package/dist/{chunk-IKHDUZRH.js → chunk-DAXJKPHZ.js} +2 -2
  17. package/dist/{chunk-P27RV5WM.js → chunk-EKDWA7E4.js} +3 -1
  18. package/dist/{chunk-S5LR3XYJ.js → chunk-EMPFLFTG.js} +1 -1
  19. package/dist/{chunk-2C2VXEBB.js → chunk-FAHDKPEH.js} +18 -56
  20. package/dist/{chunk-W5OOPLNP.js → chunk-HDKY4TWU.js} +3 -3
  21. package/dist/{chunk-EFP3PE6C.js → chunk-HR5JKIDG.js} +2 -12
  22. package/dist/{chunk-JGFRDMR6.js → chunk-LX6T3GKQ.js} +1 -1
  23. package/dist/{chunk-2NDZC3S7.js → chunk-NOWVQ7AL.js} +447 -299
  24. package/dist/{chunk-ZWKTUQEL.js → chunk-NV3TYNWX.js} +1 -1
  25. package/dist/{chunk-NSBFETWP.js → chunk-PNQCXLSV.js} +7 -26
  26. package/dist/chunk-R5QJBZZG.js +175 -0
  27. package/dist/{chunk-MDPCSXZ4.js → chunk-S2TZLSDH.js} +4 -4
  28. package/dist/{chunk-FXHXHI2A.js → chunk-SNVPRRT7.js} +3 -6
  29. package/dist/{chunk-UPA6COHU.js → chunk-WRS3B556.js} +5 -5
  30. package/dist/{chunk-HHTXM4JT.js → chunk-X62AXPR7.js} +36 -4
  31. package/dist/cli.js +74 -23
  32. package/dist/{clock-G3ALCMLJ.js → clock-LJCG426D.js} +10 -8
  33. package/dist/{cloud-sync-JV4LJOK3.js → cloud-sync-O3LXIRN6.js} +13 -13
  34. package/dist/{conversations-7KVQV7EZ.js → conversations-RKKGP5IA.js} +7 -7
  35. package/dist/{create-VQSQHJQW.js → create-TL623TFC.js} +1 -1
  36. package/dist/{create-JTLS7GX3.js → create-WUTIIRI2.js} +4 -4
  37. package/dist/daemon-client-CVGM25DM.js +11 -0
  38. package/dist/{daemon-restart-4JGBHEJ4.js → daemon-restart-EZP7XH3V.js} +6 -7
  39. package/dist/daemon.js +1879 -1727
  40. package/dist/{db-HMFPIRO2.js → db-SW5PL6QA.js} +1 -1
  41. package/dist/{delete-JESHKE7F.js → delete-Z6HAG35F.js} +1 -1
  42. package/dist/down-TS4XQBA4.js +13 -0
  43. package/dist/{env-CLXXT7M2.js → env-NHESNNSP.js} +4 -4
  44. package/dist/{export-EGA5M5PB.js → export-EVMP7GWY.js} +3 -3
  45. package/dist/{extension-WZ4SUPJB.js → extension-LR7EW3JF.js} +5 -6
  46. package/dist/{extensions-ECO4RPFQ.js → extensions-NGEJI7JH.js} +7 -7
  47. package/dist/{files-4VEJDASH.js → files-3SM7V33S.js} +5 -5
  48. package/dist/{history-EJMMLXDO.js → history-PQD3LXEP.js} +4 -4
  49. package/dist/{import-YCGPMBSI.js → import-PR2OCGQJ.js} +3 -3
  50. package/dist/{join-2GBJKZEN.js → join-R4EN5CWQ.js} +1 -1
  51. package/dist/{list-Q6O7FGAN.js → list-B4XNUOFO.js} +4 -4
  52. package/dist/{login-RL6AU2SM.js → login-62JVY6A2.js} +4 -4
  53. package/dist/{login-RET5WESK.js → login-URWP6S2N.js} +2 -2
  54. package/dist/{logout-CGAGJN3L.js → logout-NXJQJDLI.js} +2 -2
  55. package/dist/{logout-JRPBEMMR.js → logout-ZK2N62T3.js} +2 -2
  56. package/dist/message-delivery-UJHCLVU4.js +30 -0
  57. package/dist/{mind-LUWRQUQ5.js → mind-E2ZV2WRX.js} +17 -17
  58. package/dist/{mind-activity-tracker-VYN2ZZ2M.js → mind-activity-tracker-ASNZBMLC.js} +3 -3
  59. package/dist/{mind-list-V5WW5DUA.js → mind-list-BEI7E5WY.js} +2 -2
  60. package/dist/mind-manager-IPA6DZXD.js +26 -0
  61. package/dist/{mind-sleep-R6PTNNW4.js → mind-sleep-CANABWJI.js} +4 -4
  62. package/dist/{mind-status-I4ISFJ6I.js → mind-status-6WKZVUOP.js} +2 -2
  63. package/dist/{mind-wake-67ZQEWAV.js → mind-wake-RZKLH2IN.js} +4 -4
  64. package/dist/{package-OYUD4ZJ4.js → package-NU4CA7OU.js} +3 -3
  65. package/dist/{pages-watcher-Z3PKNROC.js → pages-watcher-72OVPRMH.js} +4 -3
  66. package/dist/read-THL362EI.js +74 -0
  67. package/dist/{register-NZDSTLP3.js → register-QAQELAS6.js} +4 -4
  68. package/dist/{registry-ODSALQQL.js → registry-ASXCQCNH.js} +1 -1
  69. package/dist/{reject-2HZOJEIJ.js → reject-AYPBNPNL.js} +4 -4
  70. package/dist/{restart-QHS3NT64.js → restart-6SKPV3T2.js} +4 -4
  71. package/dist/{sandbox-O5FUSF43.js → sandbox-6ZEWQDVU.js} +3 -3
  72. package/dist/{seed-WUQMPLDM.js → seed-OWX2AW75.js} +36 -12
  73. package/dist/{send-OAN3RYYY.js → send-ZO4BTWXK.js} +5 -5
  74. package/dist/{setup-QMDK5RZX.js → setup-7CFITEQN.js} +2 -4
  75. package/dist/{setup-XJH3E7YM.js → setup-ZXBXG7E4.js} +6 -8
  76. package/dist/{skill-FZIN4W4Q.js → skill-YFXP67A2.js} +4 -4
  77. package/dist/skills/dreaming/references/INSTALL.md +2 -3
  78. package/dist/skills/dreaming/scripts/dream.ts +3 -25
  79. package/dist/skills/volute-mind/SKILL.md +1 -1
  80. package/dist/sleep-manager-TPS6OGCA.js +30 -0
  81. package/dist/{split-EXYGGGQN.js → split-MI62KJUU.js} +1 -1
  82. package/dist/{sprout-AXQ6H5DB.js → sprout-FDVI2CGN.js} +5 -6
  83. package/dist/{start-MTOVL6SY.js → start-D64BRKPH.js} +4 -4
  84. package/dist/{status-ZRO37MWR.js → status-ZZWBYFGE.js} +4 -5
  85. package/dist/{stop-OK5WEPVC.js → stop-OP2CTXCO.js} +4 -4
  86. package/dist/system-chat-B43GIXQU.js +30 -0
  87. package/dist/{systems-W3BBMSOZ.js → systems-EQPPT4B7.js} +5 -5
  88. package/dist/{tailscale-BM72RXCJ.js → tailscale-6DJKUMNF.js} +1 -1
  89. package/dist/up-TDXEP3VA.js +16 -0
  90. package/dist/{update-PLPHMMZ2.js → update-KUJXATRS.js} +4 -5
  91. package/dist/{update-check-CVCN7MF6.js → update-check-5WVSU37T.js} +2 -2
  92. package/dist/{upgrade-I6NPCYUU.js → upgrade-KBHCWX6T.js} +1 -1
  93. package/dist/{version-notify-2NTWVEHL.js → version-notify-75ELVKPV.js} +17 -21
  94. package/dist/web-assets/assets/index-BM1cTzBg.js +72 -0
  95. package/dist/web-assets/assets/index-BfJkKTPF.css +1 -0
  96. package/dist/web-assets/ext-theme.css +1 -0
  97. package/dist/web-assets/index.html +2 -2
  98. package/drizzle/0000_baseline.sql +152 -0
  99. package/drizzle/0001_add_conversation_private.sql +1 -0
  100. package/drizzle/0002_turns.sql +21 -0
  101. package/drizzle/0003_turn_feed_links.sql +11 -0
  102. package/drizzle/meta/0000_snapshot.json +3 -223
  103. package/drizzle/meta/0001_snapshot.json +3 -294
  104. package/drizzle/meta/0002_snapshot.json +3 -335
  105. package/drizzle/meta/0003_snapshot.json +3 -413
  106. package/drizzle/meta/_journal.json +8 -106
  107. package/package.json +3 -3
  108. package/packages/extensions/notes/dist/ui/assets/{index-DgawVO5g.css → index-B8GdTnXs.css} +1 -1
  109. package/packages/extensions/notes/dist/ui/assets/index-CDpGTCWb.js +2 -0
  110. package/packages/extensions/notes/dist/ui/index.html +2 -2
  111. package/packages/extensions/notes/skills/notes/SKILL.md +8 -8
  112. package/packages/extensions/pages/skills/pages/SKILL.md +7 -4
  113. package/packages/extensions/pages/skills/pages/scripts/pages.mjs +58 -0
  114. package/templates/_base/.init/.config/bin/volute +27 -0
  115. package/templates/_base/src/lib/auto-commit.ts +82 -43
  116. package/templates/_base/src/lib/daemon-client.ts +19 -23
  117. package/templates/_base/src/lib/router.ts +17 -1
  118. package/templates/_base/src/lib/startup.ts +6 -8
  119. package/templates/_base/src/lib/volute-server.ts +2 -5
  120. package/templates/claude/src/agent.ts +2 -1
  121. package/templates/claude/src/lib/hooks/auto-commit.ts +7 -3
  122. package/templates/claude/src/server.ts +0 -9
  123. package/templates/pi/package.json.tmpl +1 -1
  124. package/templates/pi/src/agent.ts +1 -1
  125. package/templates/pi/src/lib/event-handler.ts +5 -3
  126. package/dist/chunk-7D47T4RB.js +0 -84
  127. package/dist/chunk-CVH6Y2YG.js +0 -59
  128. package/dist/chunk-LIRWLNAK.js +0 -729
  129. package/dist/daemon-client-BCTFGVCZ.js +0 -9
  130. package/dist/down-NGBMGORS.js +0 -14
  131. package/dist/message-delivery-6YMVNOEC.js +0 -28
  132. package/dist/migrate-registry-to-db-FK35IPEH.js +0 -110
  133. package/dist/mind-manager-YFCOIAAX.js +0 -18
  134. package/dist/read-WQMPTSN2.js +0 -46
  135. package/dist/sleep-manager-O7YQFCV5.js +0 -30
  136. package/dist/up-BXUAIDXB.js +0 -17
  137. package/dist/web-assets/assets/index--kREqKl9.js +0 -72
  138. package/dist/web-assets/assets/index-BXYTG0nJ.css +0 -1
  139. package/drizzle/0000_flaky_mariko_yashida.sql +0 -34
  140. package/drizzle/0001_careless_warpath.sql +0 -12
  141. package/drizzle/0002_wealthy_the_call.sql +0 -6
  142. package/drizzle/0003_clean_ego.sql +0 -12
  143. package/drizzle/0004_magical_silverclaw.sql +0 -1
  144. package/drizzle/0005_rename_agents_to_minds.sql +0 -11
  145. package/drizzle/0006_mind_history.sql +0 -20
  146. package/drizzle/0007_system_prompts.sql +0 -5
  147. package/drizzle/0008_volute_channels.sql +0 -24
  148. package/drizzle/0009_shared_skills.sql +0 -9
  149. package/drizzle/0010_delivery_queue.sql +0 -12
  150. package/drizzle/0011_rename_human_to_brain.sql +0 -1
  151. package/drizzle/0012_activity.sql +0 -11
  152. package/drizzle/0013_user_profiles.sql +0 -3
  153. package/drizzle/0014_conversation_reads.sql +0 -7
  154. package/drizzle/0015_notes.sql +0 -23
  155. package/drizzle/0016_note_reactions_and_replies.sql +0 -15
  156. package/drizzle/0017_minds.sql +0 -16
  157. package/drizzle/meta/0004_snapshot.json +0 -410
  158. package/drizzle/meta/0005_snapshot.json +0 -410
  159. package/drizzle/meta/0006_snapshot.json +0 -7
  160. package/drizzle/meta/0007_snapshot.json +0 -7
  161. package/drizzle/meta/0008_snapshot.json +0 -7
  162. package/drizzle/meta/0009_snapshot.json +0 -7
  163. package/drizzle/meta/0010_snapshot.json +0 -7
  164. package/drizzle/meta/0011_snapshot.json +0 -7
  165. package/drizzle/meta/0012_snapshot.json +0 -7
  166. package/drizzle/meta/0013_snapshot.json +0 -7
  167. package/packages/extensions/notes/dist/ui/assets/index-qUWoeC4c.js +0 -2
  168. package/packages/extensions/notes/skills/notes/scripts/notes.mjs +0 -185
  169. package/templates/_base/home/public/.gitkeep +0 -0
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  resolveMindName
4
4
  } from "./chunk-NAOW2CLO.js";
5
- import {
6
- daemonFetch
7
- } from "./chunk-EFVHR7KH.js";
8
5
  import {
9
6
  parseArgs
10
7
  } from "./chunk-D424ZQGI.js";
11
- import "./chunk-HHTXM4JT.js";
8
+ import {
9
+ daemonFetch
10
+ } from "./chunk-4OUOFS23.js";
11
+ import "./chunk-X62AXPR7.js";
12
12
  import "./chunk-K3NQKI34.js";
13
13
 
14
14
  // src/commands/chat/accept.ts
@@ -3,9 +3,9 @@ import {
3
3
  broadcast,
4
4
  publish,
5
5
  subscribe
6
- } from "./chunk-P27RV5WM.js";
6
+ } from "./chunk-EKDWA7E4.js";
7
7
  import "./chunk-YUIHSKR6.js";
8
- import "./chunk-HHTXM4JT.js";
8
+ import "./chunk-X62AXPR7.js";
9
9
  import "./chunk-K3NQKI34.js";
10
10
  export {
11
11
  broadcast,
@@ -8,12 +8,13 @@ import {
8
8
  isAiConfigured,
9
9
  removeAiConfig,
10
10
  removeProviderConfig,
11
+ resolveApiKey,
11
12
  saveProviderConfig,
12
13
  setEnabledModels
13
- } from "./chunk-NSBFETWP.js";
14
+ } from "./chunk-PNQCXLSV.js";
14
15
  import "./chunk-YUIHSKR6.js";
15
- import "./chunk-7D47T4RB.js";
16
- import "./chunk-HHTXM4JT.js";
16
+ import "./chunk-6QIUN46C.js";
17
+ import "./chunk-X62AXPR7.js";
17
18
  import "./chunk-K3NQKI34.js";
18
19
  export {
19
20
  aiComplete,
@@ -24,6 +25,7 @@ export {
24
25
  isAiConfigured,
25
26
  removeAiConfig,
26
27
  removeProviderConfig,
28
+ resolveApiKey,
27
29
  saveProviderConfig,
28
30
  setEnabledModels
29
31
  };
package/dist/api.d.ts CHANGED
@@ -187,7 +187,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
187
187
  id: number;
188
188
  username: string;
189
189
  role: "admin" | "user" | "pending";
190
- user_type: "brain" | "mind";
190
+ user_type: "brain" | "mind" | "system";
191
191
  display_name: string | null;
192
192
  description: string | null;
193
193
  avatar: string | null;
@@ -205,7 +205,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
205
205
  id: number;
206
206
  username: string;
207
207
  role: "admin" | "user" | "pending";
208
- user_type: "brain" | "mind";
208
+ user_type: "brain" | "mind" | "system";
209
209
  display_name: string | null;
210
210
  description: string | null;
211
211
  avatar: string | null;
@@ -705,6 +705,32 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
705
705
  status: 502;
706
706
  };
707
707
  };
708
+ } & {
709
+ "/ai/key/:provider": {
710
+ $get: {
711
+ input: {
712
+ param: {
713
+ provider: string;
714
+ };
715
+ };
716
+ output: {
717
+ error: string;
718
+ };
719
+ outputFormat: "json";
720
+ status: 404;
721
+ } | {
722
+ input: {
723
+ param: {
724
+ provider: string;
725
+ };
726
+ };
727
+ output: {
728
+ key: string;
729
+ };
730
+ outputFormat: "json";
731
+ status: hono_utils_http_status.ContentfulStatusCode;
732
+ };
733
+ };
708
734
  } & {
709
735
  "/ai/providers": {
710
736
  $get: {
@@ -1587,65 +1613,6 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1587
1613
  status: hono_utils_http_status.ContentfulStatusCode;
1588
1614
  };
1589
1615
  };
1590
- } & {
1591
- "/:name/message": {
1592
- $post: {
1593
- input: {
1594
- param: {
1595
- name: string;
1596
- };
1597
- };
1598
- output: {
1599
- error: string;
1600
- };
1601
- outputFormat: "json";
1602
- status: 404;
1603
- } | {
1604
- input: {
1605
- param: {
1606
- name: string;
1607
- };
1608
- };
1609
- output: {
1610
- error: string;
1611
- };
1612
- outputFormat: "json";
1613
- status: 400;
1614
- } | {
1615
- input: {
1616
- param: {
1617
- name: string;
1618
- };
1619
- };
1620
- output: {
1621
- error: string;
1622
- };
1623
- outputFormat: "json";
1624
- status: 409;
1625
- } | {
1626
- input: {
1627
- param: {
1628
- name: string;
1629
- };
1630
- };
1631
- output: {
1632
- error: string;
1633
- };
1634
- outputFormat: "json";
1635
- status: 429;
1636
- } | {
1637
- input: {
1638
- param: {
1639
- name: string;
1640
- };
1641
- };
1642
- output: {
1643
- ok: true;
1644
- };
1645
- outputFormat: "json";
1646
- status: hono_utils_http_status.ContentfulStatusCode;
1647
- };
1648
- };
1649
1616
  } & {
1650
1617
  "/:name/conversations": {
1651
1618
  $get: {
@@ -1673,23 +1640,18 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1673
1640
  name: string | null;
1674
1641
  user_id: number | null;
1675
1642
  title: string | null;
1643
+ private: number;
1676
1644
  created_at: string;
1677
1645
  updated_at: string;
1678
1646
  participants: {
1679
1647
  userId: number;
1680
1648
  username: string;
1681
- userType: "brain" | "mind" | "puppet";
1649
+ userType: "brain" | "mind" | "puppet" | "system";
1682
1650
  role: "owner" | "member";
1683
1651
  displayName?: string | null | undefined;
1684
1652
  description?: string | null | undefined;
1685
1653
  avatar?: string | null | undefined;
1686
1654
  }[];
1687
- lastMessage?: {
1688
- role: "user" | "assistant";
1689
- senderName: string | null;
1690
- text: string;
1691
- createdAt: string;
1692
- } | undefined;
1693
1655
  }[];
1694
1656
  outputFormat: "json";
1695
1657
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -1710,6 +1672,19 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1710
1672
  };
1711
1673
  outputFormat: "json";
1712
1674
  status: 404;
1675
+ } | {
1676
+ input: {
1677
+ param: {
1678
+ name: string;
1679
+ } & {
1680
+ convId: string;
1681
+ };
1682
+ };
1683
+ output: {
1684
+ error: string;
1685
+ };
1686
+ outputFormat: "json";
1687
+ status: 403;
1713
1688
  } | {
1714
1689
  input: {
1715
1690
  param: {
@@ -2074,6 +2049,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2074
2049
  type: string;
2075
2050
  content: string | null;
2076
2051
  metadata: string | null;
2052
+ turn_id: string | null;
2077
2053
  created_at: string;
2078
2054
  }[];
2079
2055
  outputFormat: "json";
@@ -2091,6 +2067,91 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2091
2067
  status: 404;
2092
2068
  };
2093
2069
  };
2070
+ } & {
2071
+ "/:name/history/turns": {
2072
+ $get: {
2073
+ input: {
2074
+ param: {
2075
+ name: string;
2076
+ };
2077
+ };
2078
+ output: {
2079
+ id: string;
2080
+ summary: string | null;
2081
+ summary_meta: {
2082
+ [x: string]: hono_utils_types.JSONValue;
2083
+ } | null;
2084
+ status: string;
2085
+ created_at: string;
2086
+ trigger: {
2087
+ channel: string | null;
2088
+ sender: string | null;
2089
+ content: string | null;
2090
+ } | null;
2091
+ conversations: {
2092
+ id: string;
2093
+ label: string;
2094
+ type: "dm" | "channel";
2095
+ messages: {
2096
+ id: number;
2097
+ role: string;
2098
+ sender_name: string | null;
2099
+ content: hono_utils_types.JSONValue[];
2100
+ source_event_id: number | null;
2101
+ created_at: string;
2102
+ }[];
2103
+ }[];
2104
+ activities: {
2105
+ id: number;
2106
+ type: string;
2107
+ summary: string;
2108
+ metadata: {
2109
+ [x: string]: hono_utils_types.JSONValue;
2110
+ } | null;
2111
+ source_event_id: number | null;
2112
+ created_at: string;
2113
+ }[];
2114
+ }[];
2115
+ outputFormat: "json";
2116
+ status: hono_utils_http_status.ContentfulStatusCode;
2117
+ };
2118
+ };
2119
+ } & {
2120
+ "/:name/history/turn": {
2121
+ $get: {
2122
+ input: {
2123
+ param: {
2124
+ name: string;
2125
+ };
2126
+ };
2127
+ output: {
2128
+ id: number;
2129
+ mind: string;
2130
+ channel: string | null;
2131
+ session: string | null;
2132
+ sender: string | null;
2133
+ message_id: string | null;
2134
+ type: string;
2135
+ content: string | null;
2136
+ metadata: string | null;
2137
+ turn_id: string | null;
2138
+ created_at: string;
2139
+ }[];
2140
+ outputFormat: "json";
2141
+ status: hono_utils_http_status.ContentfulStatusCode;
2142
+ } | {
2143
+ input: {
2144
+ param: {
2145
+ name: string;
2146
+ };
2147
+ };
2148
+ output: {
2149
+ error: string;
2150
+ };
2151
+ outputFormat: "json";
2152
+ status: 400;
2153
+ };
2154
+ };
2094
2155
  } & {
2095
2156
  "/:name/history": {
2096
2157
  $get: {
@@ -2109,6 +2170,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2109
2170
  type: string;
2110
2171
  content: string | null;
2111
2172
  metadata: string | null;
2173
+ turn_id: string | null;
2112
2174
  created_at: string;
2113
2175
  }[];
2114
2176
  outputFormat: "json";
@@ -2288,8 +2350,8 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2288
2350
  script?: string | undefined;
2289
2351
  enabled: boolean;
2290
2352
  whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
2291
- skipWhenSleeping?: boolean | undefined;
2292
2353
  channel?: string | undefined;
2354
+ session?: string | undefined;
2293
2355
  }[];
2294
2356
  upcoming: {
2295
2357
  id: string;
@@ -2328,8 +2390,8 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2328
2390
  script?: string | undefined;
2329
2391
  enabled: boolean;
2330
2392
  whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
2331
- skipWhenSleeping?: boolean | undefined;
2332
2393
  channel?: string | undefined;
2394
+ session?: string | undefined;
2333
2395
  }[];
2334
2396
  outputFormat: "json";
2335
2397
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -2492,10 +2554,10 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2492
2554
  };
2493
2555
  };
2494
2556
  output: {
2495
- error: string;
2557
+ ok: true;
2496
2558
  };
2497
2559
  outputFormat: "json";
2498
- status: 502;
2560
+ status: hono_utils_http_status.ContentfulStatusCode;
2499
2561
  } | {
2500
2562
  input: {
2501
2563
  param: {
@@ -2505,10 +2567,10 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2505
2567
  };
2506
2568
  };
2507
2569
  output: {
2508
- ok: true;
2570
+ error: string;
2509
2571
  };
2510
2572
  outputFormat: "json";
2511
- status: hono_utils_http_status.ContentfulStatusCode;
2573
+ status: 502;
2512
2574
  };
2513
2575
  };
2514
2576
  }, "/api/minds"> | hono_types.MergeSchemaPath<{
@@ -3813,6 +3875,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3813
3875
  name: string | null;
3814
3876
  user_id: number | null;
3815
3877
  title: string | null;
3878
+ private: number;
3816
3879
  created_at: string;
3817
3880
  updated_at: string;
3818
3881
  }[];
@@ -3859,6 +3922,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3859
3922
  name: string | null;
3860
3923
  user_id: number | null;
3861
3924
  title: string | null;
3925
+ private: number;
3862
3926
  created_at: string;
3863
3927
  updated_at: string;
3864
3928
  };
@@ -3890,28 +3954,44 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3890
3954
  };
3891
3955
  };
3892
3956
  output: {
3893
- id: number;
3894
- conversation_id: string;
3895
- role: "user" | "assistant";
3896
- sender_name: string | null;
3897
- content: ({
3898
- type: "text";
3899
- text: string;
3900
- } | {
3901
- type: "tool_use";
3957
+ error: string;
3958
+ };
3959
+ outputFormat: "json";
3960
+ status: 400;
3961
+ } | {
3962
+ input: {
3963
+ param: {
3964
+ id: string;
3965
+ } & {
3902
3966
  name: string;
3903
- input: hono_utils_types.JSONValue;
3904
- } | {
3905
- type: "tool_result";
3906
- output: string;
3907
- is_error?: boolean | undefined;
3908
- } | {
3909
- type: "image";
3910
- media_type: string;
3911
- data: string;
3912
- })[];
3913
- created_at: string;
3914
- }[];
3967
+ };
3968
+ };
3969
+ output: {
3970
+ items: {
3971
+ id: number;
3972
+ conversation_id: string;
3973
+ role: "user" | "assistant";
3974
+ sender_name: string | null;
3975
+ content: ({
3976
+ type: "text";
3977
+ text: string;
3978
+ } | {
3979
+ type: "tool_use";
3980
+ name: string;
3981
+ input: hono_utils_types.JSONValue;
3982
+ } | {
3983
+ type: "tool_result";
3984
+ output: string;
3985
+ is_error?: boolean | undefined;
3986
+ } | {
3987
+ type: "image";
3988
+ media_type: string;
3989
+ data: string;
3990
+ })[];
3991
+ created_at: string;
3992
+ }[];
3993
+ hasMore: boolean;
3994
+ };
3915
3995
  outputFormat: "json";
3916
3996
  status: hono_utils_http_status.ContentfulStatusCode;
3917
3997
  };
@@ -3942,7 +4022,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3942
4022
  output: {
3943
4023
  userId: number;
3944
4024
  username: string;
3945
- userType: "brain" | "mind" | "puppet";
4025
+ userType: "brain" | "mind" | "puppet" | "system";
3946
4026
  role: "owner" | "member";
3947
4027
  displayName?: string | null | undefined;
3948
4028
  description?: string | null | undefined;
@@ -4320,12 +4400,13 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4320
4400
  name: string | null;
4321
4401
  user_id: number | null;
4322
4402
  title: string | null;
4403
+ private: number;
4323
4404
  created_at: string;
4324
4405
  updated_at: string;
4325
4406
  participants: {
4326
4407
  userId: number;
4327
4408
  username: string;
4328
- userType: "brain" | "mind" | "puppet";
4409
+ userType: "brain" | "mind" | "puppet" | "system";
4329
4410
  role: "owner" | "member";
4330
4411
  displayName?: string | null | undefined;
4331
4412
  description?: string | null | undefined;
@@ -4345,6 +4426,17 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4345
4426
  } & {
4346
4427
  "/:id/messages": {
4347
4428
  $get: {
4429
+ input: {
4430
+ param: {
4431
+ id: string;
4432
+ };
4433
+ };
4434
+ output: {
4435
+ error: string;
4436
+ };
4437
+ outputFormat: "json";
4438
+ status: 404;
4439
+ } | {
4348
4440
  input: {
4349
4441
  param: {
4350
4442
  id: string;
@@ -4375,17 +4467,6 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4375
4467
  }[];
4376
4468
  outputFormat: "json";
4377
4469
  status: hono_utils_http_status.ContentfulStatusCode;
4378
- } | {
4379
- input: {
4380
- param: {
4381
- id: string;
4382
- };
4383
- };
4384
- output: {
4385
- error: string;
4386
- };
4387
- outputFormat: "json";
4388
- status: 404;
4389
4470
  };
4390
4471
  };
4391
4472
  } & {
@@ -4405,6 +4486,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4405
4486
  name: string | null;
4406
4487
  user_id: number | null;
4407
4488
  title: string | null;
4489
+ private: number;
4408
4490
  created_at: string;
4409
4491
  updated_at: string;
4410
4492
  };
@@ -4437,6 +4519,40 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4437
4519
  status: hono_utils_http_status.StatusCode;
4438
4520
  };
4439
4521
  };
4522
+ } & {
4523
+ "/:id/private": {
4524
+ $put: {
4525
+ input: {
4526
+ json: {
4527
+ private: boolean;
4528
+ };
4529
+ } & {
4530
+ param: {
4531
+ id: string;
4532
+ };
4533
+ };
4534
+ output: {
4535
+ error: string;
4536
+ };
4537
+ outputFormat: "json";
4538
+ status: 403;
4539
+ } | {
4540
+ input: {
4541
+ json: {
4542
+ private: boolean;
4543
+ };
4544
+ } & {
4545
+ param: {
4546
+ id: string;
4547
+ };
4548
+ };
4549
+ output: {
4550
+ ok: true;
4551
+ };
4552
+ outputFormat: "json";
4553
+ status: hono_utils_http_status.ContentfulStatusCode;
4554
+ };
4555
+ };
4440
4556
  } & {
4441
4557
  "/:id": {
4442
4558
  $delete: {
@@ -4477,6 +4593,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4477
4593
  name: string | null;
4478
4594
  user_id: number | null;
4479
4595
  title: string | null;
4596
+ private: number;
4480
4597
  created_at: string;
4481
4598
  updated_at: string;
4482
4599
  }[];
@@ -4500,6 +4617,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4500
4617
  name: string | null;
4501
4618
  user_id: number | null;
4502
4619
  title: string | null;
4620
+ private: number;
4503
4621
  created_at: string;
4504
4622
  updated_at: string;
4505
4623
  };
@@ -4582,7 +4700,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4582
4700
  output: {
4583
4701
  userId: number;
4584
4702
  username: string;
4585
- userType: "brain" | "mind" | "puppet";
4703
+ userType: "brain" | "mind" | "puppet" | "system";
4586
4704
  role: "owner" | "member";
4587
4705
  displayName?: string | null | undefined;
4588
4706
  description?: string | null | undefined;
@@ -5057,11 +5175,18 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5057
5175
  id: string;
5058
5176
  label: string;
5059
5177
  defaultPath?: string | undefined;
5178
+ icon?: string | undefined;
5060
5179
  }[] | undefined;
5061
5180
  feedSource?: {
5062
5181
  endpoint: string;
5063
5182
  kind?: string | undefined;
5064
5183
  } | undefined;
5184
+ commands?: {
5185
+ [x: string]: {
5186
+ description: string;
5187
+ usage?: string | undefined;
5188
+ };
5189
+ } | undefined;
5065
5190
  }[];
5066
5191
  outputFormat: "json";
5067
5192
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -5079,12 +5204,13 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5079
5204
  name: string | null;
5080
5205
  user_id: number | null;
5081
5206
  title: string | null;
5207
+ private: number;
5082
5208
  created_at: string;
5083
5209
  updated_at: string;
5084
5210
  participants: {
5085
5211
  userId: number;
5086
5212
  username: string;
5087
- userType: "brain" | "mind" | "puppet";
5213
+ userType: "brain" | "mind" | "puppet" | "system";
5088
5214
  role: "owner" | "member";
5089
5215
  displayName?: string | null | undefined;
5090
5216
  description?: string | null | undefined;
@@ -5172,7 +5298,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5172
5298
  output: {
5173
5299
  userId: number;
5174
5300
  username: string;
5175
- userType: "brain" | "mind" | "puppet";
5301
+ userType: "brain" | "mind" | "puppet" | "system";
5176
5302
  role: "owner" | "member";
5177
5303
  displayName?: string | null | undefined;
5178
5304
  description?: string | null | undefined;
@@ -5210,6 +5336,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5210
5336
  name: string | null;
5211
5337
  user_id: number | null;
5212
5338
  title: string | null;
5339
+ private: number;
5213
5340
  created_at: string;
5214
5341
  updated_at: string;
5215
5342
  };
@@ -5,8 +5,8 @@ import {
5
5
  extractArchive,
6
6
  isHomeOnlyArchive,
7
7
  readManifest
8
- } from "./chunk-DTC6EH5I.js";
9
- import "./chunk-HHTXM4JT.js";
8
+ } from "./chunk-BC3P3QCK.js";
9
+ import "./chunk-X62AXPR7.js";
10
10
  import "./chunk-K3NQKI34.js";
11
11
  export {
12
12
  addHistoryToArchive,
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ approveUser,
4
+ changePassword,
5
+ countAdmins,
6
+ createUser,
7
+ deleteMindUser,
8
+ deleteUser,
9
+ getOrCreateMindUser,
10
+ getOrCreateSystemUser,
11
+ getUser,
12
+ getUserByUsername,
13
+ listPendingUsers,
14
+ listUsers,
15
+ listUsersByType,
16
+ setUserRole,
17
+ syncMindProfile,
18
+ updateUserProfile,
19
+ verifyUser
20
+ } from "./chunk-R5QJBZZG.js";
21
+ import "./chunk-EKDWA7E4.js";
22
+ import "./chunk-YUIHSKR6.js";
23
+ import "./chunk-X62AXPR7.js";
24
+ import "./chunk-K3NQKI34.js";
25
+ export {
26
+ approveUser,
27
+ changePassword,
28
+ countAdmins,
29
+ createUser,
30
+ deleteMindUser,
31
+ deleteUser,
32
+ getOrCreateMindUser,
33
+ getOrCreateSystemUser,
34
+ getUser,
35
+ getUserByUsername,
36
+ listPendingUsers,
37
+ listUsers,
38
+ listUsersByType,
39
+ setUserRole,
40
+ syncMindProfile,
41
+ updateUserProfile,
42
+ verifyUser
43
+ };