volute 0.32.0 → 0.34.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 (187) hide show
  1. package/README.md +16 -0
  2. package/dist/{accept-74M7I4RZ.js → accept-TW6V4WI4.js} +4 -4
  3. package/dist/{activity-events-HETAODOK.js → activity-events-BN7V6KCC.js} +4 -4
  4. package/dist/{ai-service-ZIPCV3MX.js → ai-service-PSILB5WD.js} +5 -5
  5. package/dist/{api-client-YPKOZP2O.js → api-client-XUXOB7LI.js} +1 -1
  6. package/dist/api.d.ts +1198 -957
  7. package/dist/{archive-INXYFVCW.js → archive-C2VEMQOR.js} +4 -4
  8. package/dist/{auth-6DMGES3I.js → auth-ZFZXJZDQ.js} +5 -5
  9. package/dist/{bridge-BVCBTGPF.js → bridge-O753D5F4.js} +4 -4
  10. package/dist/{chat-XT4OBJBU.js → chat-BHYX7DJ4.js} +9 -9
  11. package/dist/{chunk-M7UL5S3Q.js → chunk-2IOP6PHB.js} +1 -1
  12. package/dist/{chunk-JJ7W6WSB.js → chunk-47XDEWWV.js} +5 -5
  13. package/dist/{chunk-RSX4OPZY.js → chunk-47ZPNLF4.js} +7 -7
  14. package/dist/{chunk-RPZZSXV3.js → chunk-4JSR7YO7.js} +20 -1
  15. package/dist/chunk-6LXAAQ43.js +22 -0
  16. package/dist/{chunk-TSXLLQZW.js → chunk-6OWJXUAR.js} +10 -1
  17. package/dist/{chunk-I5KY25PQ.js → chunk-6WAWMWR5.js} +1 -1
  18. package/dist/{chunk-LSGWR54X.js → chunk-7F2SW2KD.js} +2 -2
  19. package/dist/chunk-7KJOFUNN.js +22 -0
  20. package/dist/{spirit-N4W4UQRH.js → chunk-B2BVAIZ4.js} +21 -12
  21. package/dist/{chunk-LGB6JBHI.js → chunk-BDK73LK6.js} +5 -55
  22. package/dist/{chunk-IYDIE3HG.js → chunk-BFWHBQK4.js} +1 -1
  23. package/dist/{chunk-TDRYEPH4.js → chunk-BM474GX6.js} +4 -4
  24. package/dist/{chunk-R7E6CRVQ.js → chunk-BTWAGDV5.js} +1 -1
  25. package/dist/{chunk-WKF5FEFK.js → chunk-CVL5IGIR.js} +629 -174
  26. package/dist/{chunk-S6NFERDC.js → chunk-E5C7OWZ2.js} +20 -22
  27. package/dist/chunk-FYCALD4Q.js +23 -0
  28. package/dist/{chunk-SKLSMHXO.js → chunk-IS7WJ56Q.js} +1 -1
  29. package/dist/{chunk-2NGTS5UU.js → chunk-M3K5AARV.js} +1 -1
  30. package/dist/{chunk-ALEF47VT.js → chunk-MLOQKQNB.js} +1 -1
  31. package/dist/{chunk-D5G5YOPL.js → chunk-N3DNFPVA.js} +41 -5
  32. package/dist/{chunk-LRCG2JLP.js → chunk-N7BLAHNE.js} +5 -1
  33. package/dist/chunk-OYAKCAVY.js +29 -0
  34. package/dist/{chunk-UKVWJRKN.js → chunk-PLDWHR4D.js} +1 -1
  35. package/dist/{chunk-QBQ424EM.js → chunk-TAHX36HZ.js} +545 -246
  36. package/dist/chunk-U5BTYSAL.js +59 -0
  37. package/dist/{chunk-SX5TKJBZ.js → chunk-V45JXOWY.js} +2 -2
  38. package/dist/{chunk-2FLJ63GU.js → chunk-V6ZCNULL.js} +2 -2
  39. package/dist/{chunk-QZANELPX.js → chunk-XWXBJQBE.js} +3 -2
  40. package/dist/cli.js +32 -24
  41. package/dist/{clock-2UOZ6JPU.js → clock-3X4DSC2N.js} +38 -23
  42. package/dist/{cloud-sync-JN3NWKEM.js → cloud-sync-TG3TIX5H.js} +21 -17
  43. package/dist/{config-H2H4UIF7.js → config-OROA5DUA.js} +4 -4
  44. package/dist/connectors/discord-bridge.js +1 -1
  45. package/dist/connectors/slack-bridge.js +1 -1
  46. package/dist/connectors/telegram-bridge.js +1 -1
  47. package/dist/{conversations-3O5O6AS3.js → conversations-HL2JP5GI.js} +5 -5
  48. package/dist/{create-RNLNCORE.js → create-3SEKKI6P.js} +5 -5
  49. package/dist/{create-WBBYI6V7.js → create-UOSOQ2HN.js} +4 -4
  50. package/dist/daemon-client-WOAQXXBM.js +12 -0
  51. package/dist/{daemon-restart-NGFHFAUF.js → daemon-restart-5ABHNXJZ.js} +9 -8
  52. package/dist/daemon.js +2730 -1520
  53. package/dist/{db-RA45JBFG.js → db-PLEDCBHZ.js} +1 -1
  54. package/dist/db-RYX3SS2W.js +9 -0
  55. package/dist/{delete-QTGWEDBI.js → delete-KYOVWR23.js} +3 -3
  56. package/dist/delivery-manager-2BR5NZKF.js +32 -0
  57. package/dist/{delivery-router-FL45JL7N.js → delivery-router-D5ELDMS2.js} +4 -4
  58. package/dist/down-QVFN4UPK.js +15 -0
  59. package/dist/{env-RLYQBOOP.js → env-R34DT7XL.js} +10 -6
  60. package/dist/exec-DVLXKRIO.js +17 -0
  61. package/dist/{export-SUYRLI5Q.js → export-6ZXAXATG.js} +6 -6
  62. package/dist/extension-PM42QCID.js +97 -0
  63. package/dist/extensions-BBGVL5JC.js +38 -0
  64. package/dist/{files-EAMPO2SJ.js → files-VQV2VZQO.js} +5 -5
  65. package/dist/{import-DDUFE7AY.js → import-MK2I2T6F.js} +5 -5
  66. package/dist/isolation-62MKDZN3.js +22 -0
  67. package/dist/{join-I5QEE3LG.js → join-DGYHTJUH.js} +3 -3
  68. package/dist/lib-DYEZMGW7.js +6588 -0
  69. package/dist/{list-DW2VRTOZ.js → list-C644WTHV.js} +16 -8
  70. package/dist/{login-7CHPW2PN.js → login-IIGEQPHL.js} +4 -4
  71. package/dist/{login-RIJF2F4G.js → login-KZQLMAWE.js} +4 -4
  72. package/dist/{logout-5MLHZALK.js → logout-AGTZVRGP.js} +4 -4
  73. package/dist/{logout-UZJRGY4Z.js → logout-KD6GXIJJ.js} +4 -4
  74. package/dist/message-delivery-V3R6NXJP.js +42 -0
  75. package/dist/{mind-2B6M7Y25.js → mind-BI4EPBVZ.js} +25 -19
  76. package/dist/{mind-activity-tracker-NZZT2NTT.js → mind-activity-tracker-2ACNHA7B.js} +5 -5
  77. package/dist/mind-history-WOYFLQAI.js +264 -0
  78. package/dist/{mind-list-WUPMQDYQ.js → mind-list-6VPM7GUQ.js} +4 -4
  79. package/dist/mind-manager-MWW3BTS4.js +32 -0
  80. package/dist/mind-profile-WPG42U5Y.js +47 -0
  81. package/dist/mind-service-VIKZJK2M.js +38 -0
  82. package/dist/{mind-sleep-B7BHJLH7.js → mind-sleep-XDISJY74.js} +4 -4
  83. package/dist/{mind-status-L3EFFRPR.js → mind-status-7FTZWPZF.js} +4 -4
  84. package/dist/{mind-wake-GY3RFX7Y.js → mind-wake-KIIKEI3A.js} +4 -4
  85. package/dist/{package-PK6JUFL3.js → package-V2WHWVG6.js} +9 -5
  86. package/dist/{read-5AMJRO3D.js → read-H5C26YO7.js} +18 -8
  87. package/dist/read-stdin-PIRM6A2Y.js +8 -0
  88. package/dist/{register-V2JZZKFK.js → register-J27WP33N.js} +4 -4
  89. package/dist/{registry-PJ4S5PHQ.js → registry-UYV5S6QT.js} +3 -3
  90. package/dist/{reject-33HEZMZ4.js → reject-OEANJYIA.js} +4 -4
  91. package/dist/{restart-3UCMRUVC.js → restart-V5EGYBJG.js} +4 -4
  92. package/dist/{sandbox-JANNTX6U.js → sandbox-SI5HMBP3.js} +5 -5
  93. package/dist/scheduler-AGG3L2FO.js +32 -0
  94. package/dist/{schema-PA3M5ZKH.js → schema-ETMABTW4.js} +4 -2
  95. package/dist/seed-WNGI6PNW.js +11 -0
  96. package/dist/seed-check-PXTH7YXS.js +32 -0
  97. package/dist/seed-cmd-VENFTGS3.js +36 -0
  98. package/dist/{seed-ALUQ55FF.js → seed-create-663ALOKH.js} +8 -8
  99. package/dist/{sprout-L2GFOVF7.js → seed-sprout-EH3AGKAI.js} +24 -11
  100. package/dist/{send-3MI36LEF.js → send-7FUUUZZH.js} +66 -51
  101. package/dist/{setup-SZIARWI6.js → setup-GGMKENLN.js} +6 -4
  102. package/dist/{setup-WENLVPVP.js → setup-Z3DEVWV7.js} +13 -11
  103. package/dist/{skill-TUVOTW4Z.js → skill-DKNYJS4P.js} +12 -8
  104. package/dist/skills/imagegen/SKILL.md +11 -7
  105. package/dist/skills/imagegen/scripts/imagegen.ts +146 -25
  106. package/dist/skills/orientation/SKILL.md +9 -2
  107. package/dist/skills/plan-coordinator/SKILL.md +60 -0
  108. package/dist/skills/seed-nurture/SKILL.md +42 -0
  109. package/dist/skills/volute-mind/SKILL.md +11 -221
  110. package/dist/skills/volute-mind/references/extensions.md +37 -0
  111. package/dist/skills/volute-mind/references/integrations.md +48 -0
  112. package/dist/skills/volute-mind/references/routing.md +86 -0
  113. package/dist/skills/volute-mind/references/sleep.md +33 -0
  114. package/dist/skills/volute-mind/references/variants.md +31 -0
  115. package/dist/{skills-XNZK6P4K.js → skills-Q6VZ2UGD.js} +11 -6
  116. package/dist/sleep-manager-BJK2ROPX.js +36 -0
  117. package/dist/spirit-4JP4TY4C.js +23 -0
  118. package/dist/{split-STOROBYJ.js → split-3YPMS2CL.js} +3 -3
  119. package/dist/sprout-E3HJIV2Z.js +11 -0
  120. package/dist/{start-K2NCUUCG.js → start-W3TPKX4D.js} +4 -4
  121. package/dist/{status-TCUMUO6M.js → status-4OVFXFEJ.js} +7 -6
  122. package/dist/{stop-H26JZDXF.js → stop-GTT6YWYO.js} +4 -4
  123. package/dist/system-channel-DXD2JBOU.js +36 -0
  124. package/dist/system-chat-TYLOL7SX.js +36 -0
  125. package/dist/{systems-DHBKVYEY.js → systems-AYLO727G.js} +7 -7
  126. package/dist/{tailscale-XHQBZROW.js → tailscale-ZEUK7GKZ.js} +3 -3
  127. package/dist/{template-hash-A6VVKOXJ.js → template-hash-EJRTKE36.js} +1 -1
  128. package/dist/up-PA7F2CXE.js +18 -0
  129. package/dist/{update-QVPRF6GR.js → update-HG4LCUSG.js} +7 -6
  130. package/dist/{update-check-ZD6OOIYQ.js → update-check-X3YG4WVP.js} +4 -4
  131. package/dist/{upgrade-O4Q7WJM3.js → upgrade-YGNIDICG.js} +3 -3
  132. package/dist/{variant-7TGZHOU3.js → variant-MZUMRTQO.js} +1 -1
  133. package/dist/{version-notify-TCKWBZZG.js → version-notify-YCH4UVQ2.js} +23 -20
  134. package/dist/volute-config-WBKYJGYQ.js +10 -0
  135. package/dist/web-assets/assets/index-DiiwC-CZ.css +1 -0
  136. package/dist/web-assets/assets/index-d6y5b9Ij.js +75 -0
  137. package/dist/web-assets/ext-theme.css +48 -9
  138. package/dist/web-assets/index.html +2 -2
  139. package/drizzle/0005_meta_summaries.sql +15 -0
  140. package/drizzle/meta/0005_snapshot.json +7 -0
  141. package/drizzle/meta/_journal.json +7 -0
  142. package/package.json +8 -4
  143. package/packages/extensions/plan/dist/ui/assets/index-CJj2gZnZ.css +1 -0
  144. package/packages/extensions/plan/dist/ui/assets/index-FMEJmvQz.js +61 -0
  145. package/packages/extensions/plan/dist/ui/index.html +14 -0
  146. package/packages/extensions/plan/skills/plan/SKILL.md +43 -0
  147. package/packages/extensions/plan/skills/plan/scripts/plan-hook.sh +37 -0
  148. package/templates/_base/home/VOLUTE.md +12 -19
  149. package/templates/_base/src/lib/context-breakdown.ts +450 -0
  150. package/templates/_base/src/lib/format-prefix.ts +17 -0
  151. package/templates/_base/src/lib/hook-loader.ts +8 -2
  152. package/templates/_base/src/lib/router.ts +75 -33
  153. package/templates/_base/src/lib/routing.ts +4 -1
  154. package/templates/_base/src/lib/startup.ts +16 -8
  155. package/templates/_base/src/lib/types.ts +2 -1
  156. package/templates/_base/src/lib/volute-server.ts +69 -8
  157. package/templates/claude/.init/CLAUDE.md +4 -10
  158. package/templates/claude/package.json.tmpl +1 -0
  159. package/templates/claude/src/agent.ts +100 -32
  160. package/templates/claude/src/lib/hooks/reply-instructions.ts +27 -7
  161. package/templates/claude/src/lib/stream-consumer.ts +40 -2
  162. package/templates/claude/src/server.ts +1 -0
  163. package/templates/codex/package.json.tmpl +1 -0
  164. package/templates/codex/src/agent.ts +81 -8
  165. package/templates/codex/src/server.ts +1 -4
  166. package/templates/pi/package.json.tmpl +1 -0
  167. package/templates/pi/src/agent.ts +115 -36
  168. package/templates/pi/src/lib/event-handler.ts +22 -7
  169. package/templates/pi/src/lib/reply-instructions-extension.ts +23 -4
  170. package/templates/pi/src/lib/subagents.ts +20 -17
  171. package/templates/pi/src/server.ts +2 -5
  172. package/dist/chunk-K3NQKI34.js +0 -10
  173. package/dist/daemon-client-6QXHZ7US.js +0 -12
  174. package/dist/db-F34YLV7D.js +0 -9
  175. package/dist/delivery-manager-SDVXFD4W.js +0 -28
  176. package/dist/down-TB3ESMNP.js +0 -14
  177. package/dist/extension-FQ5D3NCC.js +0 -174
  178. package/dist/extensions-GDYWQXC4.js +0 -29
  179. package/dist/history-FO5PHBQ5.js +0 -128
  180. package/dist/message-delivery-2FIM7QKO.js +0 -32
  181. package/dist/mind-manager-BNCMGYXW.js +0 -28
  182. package/dist/mind-service-AV273WT4.js +0 -34
  183. package/dist/sleep-manager-53DZOWW7.js +0 -32
  184. package/dist/system-chat-NPYFYZVI.js +0 -32
  185. package/dist/up-6I6BHRTO.js +0 -17
  186. package/dist/web-assets/assets/index-Bui7U9Uu.css +0 -1
  187. package/dist/web-assets/assets/index-e36DIo1b.js +0 -73
package/dist/api.d.ts CHANGED
@@ -4,6 +4,8 @@ import * as hono_utils_types from 'hono/utils/types';
4
4
  import * as hono_utils_http_status from 'hono/utils/http-status';
5
5
  import * as hono_types from 'hono/types';
6
6
 
7
+ type ExtensionSource = "builtin" | "npm" | "local";
8
+
7
9
  type PromptCategory = "creation" | "system" | "mind";
8
10
 
9
11
  type MindType = "mind" | "spirit";
@@ -521,6 +523,22 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
521
523
  input: {};
522
524
  output: {
523
525
  system: string | null;
526
+ name: string | null;
527
+ };
528
+ outputFormat: "json";
529
+ status: hono_utils_http_status.ContentfulStatusCode;
530
+ };
531
+ };
532
+ } & {
533
+ "/info": {
534
+ $put: {
535
+ input: {
536
+ json: {
537
+ name: string;
538
+ };
539
+ };
540
+ output: {
541
+ name: string | null;
524
542
  };
525
543
  outputFormat: "json";
526
544
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -707,6 +725,142 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
707
725
  status: 502;
708
726
  };
709
727
  };
728
+ } & {
729
+ "/imagegen/providers": {
730
+ $get: {
731
+ input: {};
732
+ output: {
733
+ id: string;
734
+ configured: boolean;
735
+ authMethod: "api_key" | "env_var" | null;
736
+ }[];
737
+ outputFormat: "json";
738
+ status: hono_utils_http_status.ContentfulStatusCode;
739
+ };
740
+ };
741
+ } & {
742
+ "/imagegen/providers/:id": {
743
+ $put: {
744
+ input: {
745
+ json: {
746
+ apiKey: string;
747
+ };
748
+ } & {
749
+ param: {
750
+ id: string;
751
+ };
752
+ };
753
+ output: {
754
+ error: string;
755
+ };
756
+ outputFormat: "json";
757
+ status: 400;
758
+ } | {
759
+ input: {
760
+ json: {
761
+ apiKey: string;
762
+ };
763
+ } & {
764
+ param: {
765
+ id: string;
766
+ };
767
+ };
768
+ output: {
769
+ ok: true;
770
+ };
771
+ outputFormat: "json";
772
+ status: hono_utils_http_status.ContentfulStatusCode;
773
+ };
774
+ };
775
+ } & {
776
+ "/imagegen/providers/:id": {
777
+ $delete: {
778
+ input: {
779
+ param: {
780
+ id: string;
781
+ };
782
+ };
783
+ output: {
784
+ error: string;
785
+ };
786
+ outputFormat: "json";
787
+ status: 400;
788
+ } | {
789
+ input: {
790
+ param: {
791
+ id: string;
792
+ };
793
+ };
794
+ output: {
795
+ ok: true;
796
+ };
797
+ outputFormat: "json";
798
+ status: hono_utils_http_status.ContentfulStatusCode;
799
+ };
800
+ };
801
+ } & {
802
+ "/imagegen/models": {
803
+ $get: {
804
+ input: {};
805
+ output: {
806
+ models: string[];
807
+ defaultModel: string | null;
808
+ };
809
+ outputFormat: "json";
810
+ status: hono_utils_http_status.ContentfulStatusCode;
811
+ };
812
+ };
813
+ } & {
814
+ "/imagegen/models": {
815
+ $put: {
816
+ input: {
817
+ json: {
818
+ models: string[];
819
+ defaultModel?: string | null | undefined;
820
+ };
821
+ };
822
+ output: {
823
+ ok: true;
824
+ };
825
+ outputFormat: "json";
826
+ status: hono_utils_http_status.ContentfulStatusCode;
827
+ };
828
+ };
829
+ } & {
830
+ "/imagegen/models/search": {
831
+ $get: {
832
+ input: {};
833
+ output: {
834
+ id: string;
835
+ name: string;
836
+ description?: string | undefined;
837
+ owner: string;
838
+ }[];
839
+ outputFormat: "json";
840
+ status: hono_utils_http_status.ContentfulStatusCode;
841
+ } | {
842
+ input: {};
843
+ output: {
844
+ error: string;
845
+ };
846
+ outputFormat: "json";
847
+ status: 500;
848
+ };
849
+ };
850
+ } & {
851
+ "/imagegen/generate": {
852
+ $post: {
853
+ input: {
854
+ json: {
855
+ model: string;
856
+ prompt: string;
857
+ };
858
+ };
859
+ output: {};
860
+ outputFormat: string;
861
+ status: hono_utils_http_status.StatusCode;
862
+ };
863
+ };
710
864
  } & {
711
865
  "/ai/key/:provider": {
712
866
  $get: {
@@ -780,6 +934,34 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
780
934
  status: hono_utils_http_status.ContentfulStatusCode;
781
935
  };
782
936
  };
937
+ } & {
938
+ "/ai/defaults": {
939
+ $get: {
940
+ input: {};
941
+ output: {
942
+ spiritModel: string | null;
943
+ utilityModel: string | null;
944
+ };
945
+ outputFormat: "json";
946
+ status: hono_utils_http_status.ContentfulStatusCode;
947
+ };
948
+ };
949
+ } & {
950
+ "/ai/defaults": {
951
+ $put: {
952
+ input: {
953
+ json: {
954
+ utilityModel: string | null;
955
+ spiritModel?: string | null | undefined;
956
+ };
957
+ };
958
+ output: {
959
+ ok: true;
960
+ };
961
+ outputFormat: "json";
962
+ status: hono_utils_http_status.ContentfulStatusCode;
963
+ };
964
+ };
783
965
  } & {
784
966
  "/ai/providers/:id": {
785
967
  $put: {
@@ -929,6 +1111,96 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
929
1111
  status: hono_utils_http_status.ContentfulStatusCode;
930
1112
  };
931
1113
  };
1114
+ } & {
1115
+ "/mind-defaults": {
1116
+ $get: {
1117
+ input: {};
1118
+ output: {
1119
+ cognition?: {
1120
+ model?: string | undefined;
1121
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1122
+ maxThinkingTokens?: number | undefined;
1123
+ tokenBudget?: number | undefined;
1124
+ tokenBudgetPeriodMinutes?: number | undefined;
1125
+ compaction?: {
1126
+ maxContextTokens?: number | undefined;
1127
+ } | undefined;
1128
+ } | undefined;
1129
+ sleep?: {
1130
+ enabled?: boolean | undefined;
1131
+ schedule?: {
1132
+ sleep: string;
1133
+ wake: string;
1134
+ } | undefined;
1135
+ wakeTriggers?: {
1136
+ mentions?: boolean | undefined;
1137
+ dms?: boolean | undefined;
1138
+ channels?: string[] | undefined;
1139
+ senders?: string[] | undefined;
1140
+ } | undefined;
1141
+ } | undefined;
1142
+ schedules?: {
1143
+ id: string;
1144
+ cron?: string | undefined;
1145
+ fireAt?: string | undefined;
1146
+ message?: string | undefined;
1147
+ script?: string | undefined;
1148
+ enabled: boolean;
1149
+ whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
1150
+ channel?: string | undefined;
1151
+ session?: string | undefined;
1152
+ }[] | undefined;
1153
+ };
1154
+ outputFormat: "json";
1155
+ status: hono_utils_http_status.ContentfulStatusCode;
1156
+ };
1157
+ };
1158
+ } & {
1159
+ "/mind-defaults": {
1160
+ $put: {
1161
+ input: {
1162
+ json: {
1163
+ cognition?: {
1164
+ model?: string | undefined;
1165
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1166
+ maxThinkingTokens?: number | undefined;
1167
+ tokenBudget?: number | undefined;
1168
+ tokenBudgetPeriodMinutes?: number | undefined;
1169
+ compaction?: {
1170
+ maxContextTokens?: number | undefined;
1171
+ } | undefined;
1172
+ } | undefined;
1173
+ sleep?: {
1174
+ enabled?: boolean | undefined;
1175
+ schedule?: {
1176
+ sleep: string;
1177
+ wake: string;
1178
+ } | undefined;
1179
+ wakeTriggers?: {
1180
+ mentions?: boolean | undefined;
1181
+ dms?: boolean | undefined;
1182
+ channels?: string[] | undefined;
1183
+ senders?: string[] | undefined;
1184
+ } | undefined;
1185
+ } | undefined;
1186
+ schedules?: {
1187
+ id: string;
1188
+ enabled: boolean;
1189
+ cron?: string | undefined;
1190
+ message?: string | undefined;
1191
+ script?: string | undefined;
1192
+ session?: string | undefined;
1193
+ whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
1194
+ }[] | undefined;
1195
+ };
1196
+ };
1197
+ output: {
1198
+ ok: true;
1199
+ };
1200
+ outputFormat: "json";
1201
+ status: hono_utils_http_status.ContentfulStatusCode;
1202
+ };
1203
+ };
932
1204
  }, "/api/system"> | hono_types.MergeSchemaPath<{
933
1205
  "/update": {
934
1206
  $get: {
@@ -1122,6 +1394,41 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1122
1394
  status: hono_utils_http_status.ContentfulStatusCode;
1123
1395
  };
1124
1396
  };
1397
+ } & {
1398
+ "/:name/context": {
1399
+ $get: {
1400
+ input: {
1401
+ param: {
1402
+ name: string;
1403
+ };
1404
+ };
1405
+ output: {
1406
+ error: string;
1407
+ };
1408
+ outputFormat: "json";
1409
+ status: 503;
1410
+ } | {
1411
+ input: {
1412
+ param: {
1413
+ name: string;
1414
+ };
1415
+ };
1416
+ output: {
1417
+ error: string;
1418
+ };
1419
+ outputFormat: "json";
1420
+ status: 404 | 502;
1421
+ } | {
1422
+ input: {
1423
+ param: {
1424
+ name: string;
1425
+ };
1426
+ };
1427
+ output: hono_utils_types.JSONValue;
1428
+ outputFormat: "json";
1429
+ status: hono_utils_http_status.ContentfulStatusCode;
1430
+ };
1431
+ };
1125
1432
  } & {
1126
1433
  "/:name/start": {
1127
1434
  $post: {
@@ -1460,8 +1767,8 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1460
1767
  };
1461
1768
  };
1462
1769
  } & {
1463
- "/:name/sprout": {
1464
- $post: {
1770
+ "/:name/profile": {
1771
+ $patch: {
1465
1772
  input: {
1466
1773
  param: {
1467
1774
  name: string;
@@ -1479,18 +1786,70 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1479
1786
  };
1480
1787
  };
1481
1788
  output: {
1482
- error: string;
1789
+ ok: true;
1483
1790
  };
1484
1791
  outputFormat: "json";
1485
- status: 409;
1486
- } | {
1792
+ status: hono_utils_http_status.ContentfulStatusCode;
1793
+ };
1794
+ };
1795
+ } & {
1796
+ "/:name/seed-check": {
1797
+ $get: {
1487
1798
  input: {
1488
1799
  param: {
1489
1800
  name: string;
1490
1801
  };
1491
1802
  };
1492
1803
  output: {
1493
- ok: true;
1804
+ error: string;
1805
+ };
1806
+ outputFormat: "json";
1807
+ status: 404;
1808
+ } | {
1809
+ input: {
1810
+ param: {
1811
+ name: string;
1812
+ };
1813
+ };
1814
+ output: {
1815
+ output: string;
1816
+ };
1817
+ outputFormat: "json";
1818
+ status: hono_utils_http_status.ContentfulStatusCode;
1819
+ };
1820
+ };
1821
+ } & {
1822
+ "/:name/sprout": {
1823
+ $post: {
1824
+ input: {
1825
+ param: {
1826
+ name: string;
1827
+ };
1828
+ };
1829
+ output: {
1830
+ error: string;
1831
+ };
1832
+ outputFormat: "json";
1833
+ status: 404;
1834
+ } | {
1835
+ input: {
1836
+ param: {
1837
+ name: string;
1838
+ };
1839
+ };
1840
+ output: {
1841
+ error: string;
1842
+ };
1843
+ outputFormat: "json";
1844
+ status: 409;
1845
+ } | {
1846
+ input: {
1847
+ param: {
1848
+ name: string;
1849
+ };
1850
+ };
1851
+ output: {
1852
+ ok: true;
1494
1853
  };
1495
1854
  outputFormat: "json";
1496
1855
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -1778,9 +2137,13 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1778
2137
  };
1779
2138
  config: {
1780
2139
  model: string | null;
1781
- thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | null;
2140
+ thinkingLevel: null;
2141
+ maxThinkingTokens: number | null;
1782
2142
  tokenBudget: number | null;
1783
2143
  tokenBudgetPeriodMinutes: number | null;
2144
+ compaction: {
2145
+ maxContextTokens?: number | undefined;
2146
+ } | null;
1784
2147
  };
1785
2148
  };
1786
2149
  outputFormat: "json";
@@ -1794,8 +2157,12 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1794
2157
  json: {
1795
2158
  model?: string | undefined;
1796
2159
  thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2160
+ maxThinkingTokens?: number | null | undefined;
1797
2161
  tokenBudget?: number | null | undefined;
1798
2162
  tokenBudgetPeriodMinutes?: number | null | undefined;
2163
+ compaction?: {
2164
+ maxContextTokens?: number | null | undefined;
2165
+ } | null | undefined;
1799
2166
  };
1800
2167
  } & {
1801
2168
  param: {
@@ -1812,8 +2179,12 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1812
2179
  json: {
1813
2180
  model?: string | undefined;
1814
2181
  thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2182
+ maxThinkingTokens?: number | null | undefined;
1815
2183
  tokenBudget?: number | null | undefined;
1816
2184
  tokenBudgetPeriodMinutes?: number | null | undefined;
2185
+ compaction?: {
2186
+ maxContextTokens?: number | null | undefined;
2187
+ } | null | undefined;
1817
2188
  };
1818
2189
  } & {
1819
2190
  param: {
@@ -2050,7 +2421,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2050
2421
  };
2051
2422
  };
2052
2423
  } & {
2053
- "/:name/history/turns": {
2424
+ "/:name/history/turn": {
2054
2425
  $get: {
2055
2426
  input: {
2056
2427
  param: {
@@ -2058,80 +2429,31 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2058
2429
  };
2059
2430
  };
2060
2431
  output: {
2061
- id: string;
2062
- summary: string | null;
2063
- summary_meta: {
2064
- [x: string]: hono_utils_types.JSONValue;
2065
- } | null;
2066
- status: string;
2067
- created_at: string;
2068
- trigger: {
2069
- channel: string | null;
2070
- sender: string | null;
2071
- content: string | null;
2072
- } | null;
2073
- conversations: {
2074
- id: string;
2075
- label: string;
2076
- type: "dm" | "channel";
2077
- messages: {
2078
- id: number;
2079
- role: string;
2080
- sender_name: string | null;
2081
- content: hono_utils_types.JSONValue[];
2082
- source_event_id: number | null;
2083
- created_at: string;
2084
- }[];
2085
- }[];
2086
- activities: {
2087
- id: number;
2088
- type: string;
2089
- summary: string;
2090
- metadata: {
2091
- [x: string]: hono_utils_types.JSONValue;
2092
- } | null;
2093
- source_event_id: number | null;
2094
- created_at: string;
2095
- }[];
2096
- }[];
2432
+ error: string;
2433
+ };
2097
2434
  outputFormat: "json";
2098
- status: hono_utils_http_status.ContentfulStatusCode;
2099
- };
2100
- };
2101
- } & {
2102
- "/:name/history/turn": {
2103
- $get: {
2435
+ status: 400;
2436
+ } | {
2104
2437
  input: {
2105
2438
  param: {
2106
2439
  name: string;
2107
2440
  };
2108
2441
  };
2109
2442
  output: {
2110
- id: number;
2111
2443
  mind: string;
2444
+ created_at: string;
2445
+ id: number;
2112
2446
  channel: string | null;
2447
+ type: string;
2113
2448
  session: string | null;
2114
2449
  sender: string | null;
2115
2450
  message_id: string | null;
2116
- type: string;
2117
2451
  content: string | null;
2118
2452
  metadata: string | null;
2119
2453
  turn_id: string | null;
2120
- created_at: string;
2121
2454
  }[];
2122
2455
  outputFormat: "json";
2123
2456
  status: hono_utils_http_status.ContentfulStatusCode;
2124
- } | {
2125
- input: {
2126
- param: {
2127
- name: string;
2128
- };
2129
- };
2130
- output: {
2131
- error: string;
2132
- };
2133
- outputFormat: "json";
2134
- status: 400;
2135
2457
  };
2136
2458
  };
2137
2459
  } & {
@@ -2186,111 +2508,6 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2186
2508
  };
2187
2509
  };
2188
2510
  }, "/api/minds"> | hono_types.MergeSchemaPath<{
2189
- "/:name/chat": {
2190
- $post: {
2191
- input: {
2192
- json: {
2193
- message?: string | undefined;
2194
- conversationId?: string | undefined;
2195
- sender?: string | undefined;
2196
- images?: {
2197
- media_type: string;
2198
- data: string;
2199
- }[] | undefined;
2200
- files?: {
2201
- filename: string;
2202
- data: string;
2203
- }[] | undefined;
2204
- };
2205
- } & {
2206
- param: {
2207
- name: string;
2208
- };
2209
- };
2210
- output: {
2211
- error: string;
2212
- };
2213
- outputFormat: "json";
2214
- status: 404;
2215
- } | {
2216
- input: {
2217
- json: {
2218
- message?: string | undefined;
2219
- conversationId?: string | undefined;
2220
- sender?: string | undefined;
2221
- images?: {
2222
- media_type: string;
2223
- data: string;
2224
- }[] | undefined;
2225
- files?: {
2226
- filename: string;
2227
- data: string;
2228
- }[] | undefined;
2229
- };
2230
- } & {
2231
- param: {
2232
- name: string;
2233
- };
2234
- };
2235
- output: {
2236
- error: string;
2237
- };
2238
- outputFormat: "json";
2239
- status: 400;
2240
- } | {
2241
- input: {
2242
- json: {
2243
- message?: string | undefined;
2244
- conversationId?: string | undefined;
2245
- sender?: string | undefined;
2246
- images?: {
2247
- media_type: string;
2248
- data: string;
2249
- }[] | undefined;
2250
- files?: {
2251
- filename: string;
2252
- data: string;
2253
- }[] | undefined;
2254
- };
2255
- } & {
2256
- param: {
2257
- name: string;
2258
- };
2259
- };
2260
- output: {
2261
- error: string;
2262
- };
2263
- outputFormat: "json";
2264
- status: 413;
2265
- } | {
2266
- input: {
2267
- json: {
2268
- message?: string | undefined;
2269
- conversationId?: string | undefined;
2270
- sender?: string | undefined;
2271
- images?: {
2272
- media_type: string;
2273
- data: string;
2274
- }[] | undefined;
2275
- files?: {
2276
- filename: string;
2277
- data: string;
2278
- }[] | undefined;
2279
- };
2280
- } & {
2281
- param: {
2282
- name: string;
2283
- };
2284
- };
2285
- output: {
2286
- ok: true;
2287
- conversationId: string;
2288
- };
2289
- outputFormat: "json";
2290
- status: hono_utils_http_status.ContentfulStatusCode;
2291
- };
2292
- };
2293
- } & {
2294
2511
  "/:name/conversations/:id/events": {
2295
2512
  $get: {
2296
2513
  input: {
@@ -2366,13 +2583,17 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2366
2583
  at: string;
2367
2584
  type: "cron" | "timer";
2368
2585
  }[];
2586
+ previous: {
2587
+ id: string;
2588
+ at: string;
2589
+ }[];
2369
2590
  };
2370
2591
  outputFormat: "json";
2371
2592
  status: hono_utils_http_status.ContentfulStatusCode;
2372
2593
  };
2373
2594
  };
2374
2595
  } & {
2375
- "/:name/schedules": {
2596
+ "/:name/sleep/config": {
2376
2597
  $get: {
2377
2598
  input: {
2378
2599
  param: {
@@ -2391,23 +2612,25 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2391
2612
  };
2392
2613
  };
2393
2614
  output: {
2394
- id: string;
2395
- cron?: string | undefined;
2396
- fireAt?: string | undefined;
2397
- message?: string | undefined;
2398
- script?: string | undefined;
2399
- enabled: boolean;
2400
- whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
2401
- channel?: string | undefined;
2402
- session?: string | undefined;
2403
- }[];
2615
+ enabled?: boolean | undefined;
2616
+ schedule?: {
2617
+ sleep: string;
2618
+ wake: string;
2619
+ } | undefined;
2620
+ wakeTriggers?: {
2621
+ mentions?: boolean | undefined;
2622
+ dms?: boolean | undefined;
2623
+ channels?: string[] | undefined;
2624
+ senders?: string[] | undefined;
2625
+ } | undefined;
2626
+ };
2404
2627
  outputFormat: "json";
2405
2628
  status: hono_utils_http_status.ContentfulStatusCode;
2406
2629
  };
2407
2630
  };
2408
2631
  } & {
2409
- "/:name/schedules": {
2410
- $post: {
2632
+ "/:name/sleep/config": {
2633
+ $put: {
2411
2634
  input: {
2412
2635
  param: {
2413
2636
  name: string;
@@ -2428,7 +2651,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2428
2651
  error: string;
2429
2652
  };
2430
2653
  outputFormat: "json";
2431
- status: 403;
2654
+ status: 400;
2432
2655
  } | {
2433
2656
  input: {
2434
2657
  param: {
@@ -2436,11 +2659,15 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2436
2659
  };
2437
2660
  };
2438
2661
  output: {
2439
- error: string;
2662
+ ok: true;
2440
2663
  };
2441
2664
  outputFormat: "json";
2442
- status: 400;
2443
- } | {
2665
+ status: hono_utils_http_status.ContentfulStatusCode;
2666
+ };
2667
+ };
2668
+ } & {
2669
+ "/:name/schedules": {
2670
+ $get: {
2444
2671
  input: {
2445
2672
  param: {
2446
2673
  name: string;
@@ -2450,7 +2677,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2450
2677
  error: string;
2451
2678
  };
2452
2679
  outputFormat: "json";
2453
- status: 409;
2680
+ status: 404;
2454
2681
  } | {
2455
2682
  input: {
2456
2683
  param: {
@@ -2458,16 +2685,83 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2458
2685
  };
2459
2686
  };
2460
2687
  output: {
2461
- ok: true;
2462
2688
  id: string;
2463
- };
2464
- outputFormat: "json";
2465
- status: 201;
2466
- };
2467
- };
2468
- } & {
2469
- "/:name/schedules/:id": {
2470
- $put: {
2689
+ cron?: string | undefined;
2690
+ fireAt?: string | undefined;
2691
+ message?: string | undefined;
2692
+ script?: string | undefined;
2693
+ enabled: boolean;
2694
+ whileSleeping?: "skip" | "queue" | "trigger-wake" | undefined;
2695
+ channel?: string | undefined;
2696
+ session?: string | undefined;
2697
+ }[];
2698
+ outputFormat: "json";
2699
+ status: hono_utils_http_status.ContentfulStatusCode;
2700
+ };
2701
+ };
2702
+ } & {
2703
+ "/:name/schedules": {
2704
+ $post: {
2705
+ input: {
2706
+ param: {
2707
+ name: string;
2708
+ };
2709
+ };
2710
+ output: {
2711
+ error: string;
2712
+ };
2713
+ outputFormat: "json";
2714
+ status: 404;
2715
+ } | {
2716
+ input: {
2717
+ param: {
2718
+ name: string;
2719
+ };
2720
+ };
2721
+ output: {
2722
+ error: string;
2723
+ };
2724
+ outputFormat: "json";
2725
+ status: 403;
2726
+ } | {
2727
+ input: {
2728
+ param: {
2729
+ name: string;
2730
+ };
2731
+ };
2732
+ output: {
2733
+ error: string;
2734
+ };
2735
+ outputFormat: "json";
2736
+ status: 400;
2737
+ } | {
2738
+ input: {
2739
+ param: {
2740
+ name: string;
2741
+ };
2742
+ };
2743
+ output: {
2744
+ error: string;
2745
+ };
2746
+ outputFormat: "json";
2747
+ status: 409;
2748
+ } | {
2749
+ input: {
2750
+ param: {
2751
+ name: string;
2752
+ };
2753
+ };
2754
+ output: {
2755
+ ok: true;
2756
+ id: string;
2757
+ };
2758
+ outputFormat: "json";
2759
+ status: 201;
2760
+ };
2761
+ };
2762
+ } & {
2763
+ "/:name/schedules/:id": {
2764
+ $put: {
2471
2765
  input: {
2472
2766
  param: {
2473
2767
  id: string;
@@ -3117,6 +3411,44 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3117
3411
  };
3118
3412
  };
3119
3413
  }, "/api/minds"> | hono_types.MergeSchemaPath<{
3414
+ "/:name/avatar": {
3415
+ $post: {
3416
+ input: {
3417
+ param: {
3418
+ name: string;
3419
+ };
3420
+ };
3421
+ output: {
3422
+ error: string;
3423
+ };
3424
+ outputFormat: "json";
3425
+ status: 404;
3426
+ } | {
3427
+ input: {
3428
+ param: {
3429
+ name: string;
3430
+ };
3431
+ };
3432
+ output: {
3433
+ error: string;
3434
+ };
3435
+ outputFormat: "json";
3436
+ status: 400;
3437
+ } | {
3438
+ input: {
3439
+ param: {
3440
+ name: string;
3441
+ };
3442
+ };
3443
+ output: {
3444
+ ok: true;
3445
+ avatar: string;
3446
+ };
3447
+ outputFormat: "json";
3448
+ status: hono_utils_http_status.ContentfulStatusCode;
3449
+ };
3450
+ };
3451
+ } & {
3120
3452
  "/:name/avatar": {
3121
3453
  $get: {
3122
3454
  input: {
@@ -3910,7 +4242,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
3910
4242
  } | {
3911
4243
  input: {};
3912
4244
  output: {
3913
- key: "seed_soul" | "default_soul" | "default_memory" | "sprout_message" | "restart_message" | "merge_message" | "upgrade_message" | "compaction_warning" | "compaction_instructions" | "reply_instructions" | "channel_invite" | "pre_sleep" | "wake_summary" | "turn_summary";
4245
+ key: "seed_soul" | "default_soul" | "default_memory" | "sprout_message" | "restart_message" | "merge_message" | "upgrade_message" | "compaction_warning" | "compaction_instructions" | "reply_instructions" | "channel_invite" | "pre_sleep" | "wake_summary" | "turn_summary" | "meta_summary_hour" | "meta_summary_day" | "meta_summary_week" | "meta_summary_month";
3914
4246
  content: string;
3915
4247
  description: string;
3916
4248
  variables: string[];
@@ -4078,6 +4410,35 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4078
4410
  status: hono_utils_http_status.ContentfulStatusCode;
4079
4411
  };
4080
4412
  };
4413
+ } & {
4414
+ "/auto-update": {
4415
+ $get: {
4416
+ input: {};
4417
+ output: {
4418
+ enabled: boolean;
4419
+ };
4420
+ outputFormat: "json";
4421
+ status: hono_utils_http_status.ContentfulStatusCode;
4422
+ };
4423
+ };
4424
+ } & {
4425
+ "/auto-update": {
4426
+ $put: {
4427
+ input: {};
4428
+ output: {
4429
+ error: string;
4430
+ };
4431
+ outputFormat: "json";
4432
+ status: 400;
4433
+ } | {
4434
+ input: {};
4435
+ output: {
4436
+ enabled: boolean;
4437
+ };
4438
+ outputFormat: "json";
4439
+ status: hono_utils_http_status.ContentfulStatusCode;
4440
+ };
4441
+ };
4081
4442
  } & {
4082
4443
  "/upload": {
4083
4444
  $post: {
@@ -4162,341 +4523,272 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4162
4523
  };
4163
4524
  };
4164
4525
  }, "/api/skills"> | hono_types.MergeSchemaPath<{
4165
- "/": {
4166
- $get: {
4167
- input: {};
4168
- output: {
4169
- id: string;
4170
- mind_name: string | null;
4171
- channel: string;
4172
- type: "dm" | "channel";
4173
- name: string | null;
4174
- user_id: number | null;
4175
- title: string | null;
4176
- private: number;
4177
- created_at: string;
4178
- updated_at: string;
4179
- participants: {
4180
- userId: number;
4181
- username: string;
4182
- userType: "brain" | "mind" | "puppet" | "system";
4183
- role: "owner" | "member";
4184
- displayName?: string | null | undefined;
4185
- description?: string | null | undefined;
4186
- avatar?: string | null | undefined;
4187
- }[];
4188
- lastMessage?: {
4189
- role: "user" | "assistant";
4190
- senderName: string | null;
4191
- text: string;
4192
- createdAt: string;
4193
- } | undefined;
4194
- }[];
4195
- outputFormat: "json";
4196
- status: hono_utils_http_status.ContentfulStatusCode;
4197
- };
4198
- };
4199
- } & {
4200
- "/:id/messages": {
4201
- $get: {
4526
+ "/:platform/inbound": {
4527
+ $post: {
4202
4528
  input: {
4529
+ json: {
4530
+ content: ({
4531
+ type: "text";
4532
+ text: string;
4533
+ } | {
4534
+ type: "image";
4535
+ media_type: string;
4536
+ data: string;
4537
+ })[];
4538
+ platformUserId: string;
4539
+ displayName: string;
4540
+ externalChannel: string;
4541
+ isDM: boolean;
4542
+ targetMind?: string | undefined;
4543
+ };
4544
+ } & {
4203
4545
  param: {
4204
- id: string;
4546
+ platform: string;
4205
4547
  };
4206
4548
  };
4207
4549
  output: {
4208
4550
  error: string;
4209
4551
  };
4210
4552
  outputFormat: "json";
4211
- status: 404;
4553
+ status: 403;
4212
4554
  } | {
4213
4555
  input: {
4556
+ json: {
4557
+ content: ({
4558
+ type: "text";
4559
+ text: string;
4560
+ } | {
4561
+ type: "image";
4562
+ media_type: string;
4563
+ data: string;
4564
+ })[];
4565
+ platformUserId: string;
4566
+ displayName: string;
4567
+ externalChannel: string;
4568
+ isDM: boolean;
4569
+ targetMind?: string | undefined;
4570
+ };
4571
+ } & {
4214
4572
  param: {
4215
- id: string;
4573
+ platform: string;
4216
4574
  };
4217
4575
  };
4218
4576
  output: {
4219
- id: number;
4220
- conversation_id: string;
4221
- role: "user" | "assistant";
4222
- sender_name: string | null;
4223
- content: ({
4224
- type: "text";
4225
- text: string;
4226
- } | {
4227
- type: "tool_use";
4228
- name: string;
4229
- input: hono_utils_types.JSONValue;
4230
- } | {
4231
- type: "tool_result";
4232
- output: string;
4233
- is_error?: boolean | undefined;
4234
- } | {
4235
- type: "image";
4236
- media_type: string;
4237
- data: string;
4238
- })[];
4239
- created_at: string;
4240
- }[];
4577
+ error: string;
4578
+ };
4241
4579
  outputFormat: "json";
4242
- status: hono_utils_http_status.ContentfulStatusCode;
4243
- };
4244
- };
4245
- } & {
4246
- "/": {
4247
- $post: {
4580
+ status: 400;
4581
+ } | {
4248
4582
  input: {
4249
4583
  json: {
4250
- participantNames: string[];
4251
- title?: string | undefined;
4252
- };
4253
- };
4254
- output: {
4255
- id: string;
4256
- mind_name: string | null;
4257
- channel: string;
4258
- type: "dm" | "channel";
4259
- name: string | null;
4260
- user_id: number | null;
4261
- title: string | null;
4262
- private: number;
4263
- created_at: string;
4264
- updated_at: string;
4265
- };
4266
- outputFormat: "json";
4267
- status: 201;
4268
- } | {
4269
- input: {
4270
- json: {
4271
- participantNames: string[];
4272
- title?: string | undefined;
4584
+ content: ({
4585
+ type: "text";
4586
+ text: string;
4587
+ } | {
4588
+ type: "image";
4589
+ media_type: string;
4590
+ data: string;
4591
+ })[];
4592
+ platformUserId: string;
4593
+ displayName: string;
4594
+ externalChannel: string;
4595
+ isDM: boolean;
4596
+ targetMind?: string | undefined;
4597
+ };
4598
+ } & {
4599
+ param: {
4600
+ platform: string;
4273
4601
  };
4274
4602
  };
4275
4603
  output: {
4276
4604
  error: string;
4277
4605
  };
4278
4606
  outputFormat: "json";
4279
- status: 400;
4280
- };
4281
- };
4282
- } & {
4283
- "/:id/events": {
4284
- $get: {
4285
- input: {
4286
- param: {
4287
- id: string;
4288
- };
4289
- };
4290
- output: {};
4291
- outputFormat: string;
4292
- status: hono_utils_http_status.StatusCode;
4293
- };
4294
- };
4295
- } & {
4296
- "/:id/private": {
4297
- $put: {
4607
+ status: 404;
4608
+ } | {
4298
4609
  input: {
4299
4610
  json: {
4300
- private: boolean;
4611
+ content: ({
4612
+ type: "text";
4613
+ text: string;
4614
+ } | {
4615
+ type: "image";
4616
+ media_type: string;
4617
+ data: string;
4618
+ })[];
4619
+ platformUserId: string;
4620
+ displayName: string;
4621
+ externalChannel: string;
4622
+ isDM: boolean;
4623
+ targetMind?: string | undefined;
4301
4624
  };
4302
4625
  } & {
4303
4626
  param: {
4304
- id: string;
4627
+ platform: string;
4305
4628
  };
4306
4629
  };
4307
4630
  output: {
4308
- error: string;
4631
+ ok: true;
4632
+ conversationId: string;
4309
4633
  };
4310
4634
  outputFormat: "json";
4311
- status: 403;
4635
+ status: hono_utils_http_status.ContentfulStatusCode;
4312
4636
  } | {
4313
4637
  input: {
4314
4638
  json: {
4315
- private: boolean;
4639
+ content: ({
4640
+ type: "text";
4641
+ text: string;
4642
+ } | {
4643
+ type: "image";
4644
+ media_type: string;
4645
+ data: string;
4646
+ })[];
4647
+ platformUserId: string;
4648
+ displayName: string;
4649
+ externalChannel: string;
4650
+ isDM: boolean;
4651
+ targetMind?: string | undefined;
4316
4652
  };
4317
4653
  } & {
4318
4654
  param: {
4319
- id: string;
4655
+ platform: string;
4320
4656
  };
4321
4657
  };
4322
4658
  output: {
4323
4659
  ok: true;
4660
+ unmapped: true;
4324
4661
  };
4325
4662
  outputFormat: "json";
4326
4663
  status: hono_utils_http_status.ContentfulStatusCode;
4327
4664
  };
4328
4665
  };
4329
4666
  } & {
4330
- "/:id": {
4331
- $delete: {
4332
- input: {
4333
- param: {
4334
- id: string;
4335
- };
4336
- };
4337
- output: {
4338
- error: string;
4339
- };
4340
- outputFormat: "json";
4341
- status: 404;
4342
- } | {
4343
- input: {
4344
- param: {
4345
- id: string;
4346
- };
4347
- };
4348
- output: {
4349
- ok: true;
4350
- };
4351
- outputFormat: "json";
4352
- status: hono_utils_http_status.ContentfulStatusCode;
4353
- };
4354
- };
4355
- }, "/api/conversations"> | hono_types.MergeSchemaPath<{
4356
4667
  "/": {
4357
4668
  $get: {
4358
4669
  input: {};
4359
4670
  output: {
4360
- participantCount: number;
4361
- isMember: boolean;
4362
- id: string;
4363
- mind_name: string | null;
4364
- channel: string;
4365
- type: "dm" | "channel";
4366
- name: string | null;
4367
- user_id: number | null;
4368
- title: string | null;
4369
- private: number;
4370
- created_at: string;
4371
- updated_at: string;
4671
+ platform: string;
4672
+ displayName: string;
4673
+ enabled: boolean;
4674
+ running: boolean;
4675
+ defaultMind: string;
4676
+ channelMappings: {
4677
+ [x: string]: string;
4678
+ };
4372
4679
  }[];
4373
4680
  outputFormat: "json";
4374
4681
  status: hono_utils_http_status.ContentfulStatusCode;
4375
4682
  };
4376
4683
  };
4377
4684
  } & {
4378
- "/": {
4685
+ "/:platform": {
4379
4686
  $post: {
4380
4687
  input: {
4381
4688
  json: {
4382
- name: string;
4689
+ defaultMind: string;
4690
+ };
4691
+ } & {
4692
+ param: {
4693
+ platform: string;
4383
4694
  };
4384
4695
  };
4385
4696
  output: {
4386
- id: string;
4387
- mind_name: string | null;
4388
- channel: string;
4389
- type: "dm" | "channel";
4390
- name: string | null;
4391
- user_id: number | null;
4392
- title: string | null;
4393
- private: number;
4394
- created_at: string;
4395
- updated_at: string;
4697
+ error: string;
4396
4698
  };
4397
4699
  outputFormat: "json";
4398
- status: 201;
4700
+ status: 400;
4399
4701
  } | {
4400
4702
  input: {
4401
4703
  json: {
4402
- name: string;
4704
+ defaultMind: string;
4403
4705
  };
4404
- };
4405
- output: {
4406
- error: string;
4407
- };
4408
- outputFormat: "json";
4409
- status: 409;
4410
- };
4411
- };
4412
- } & {
4413
- "/:name": {
4414
- $get: {
4415
- input: {
4706
+ } & {
4416
4707
  param: {
4417
- name: string;
4708
+ platform: string;
4418
4709
  };
4419
4710
  };
4420
4711
  output: {
4421
4712
  error: string;
4422
4713
  };
4423
4714
  outputFormat: "json";
4424
- status: 404;
4715
+ status: 500;
4425
4716
  } | {
4426
4717
  input: {
4718
+ json: {
4719
+ defaultMind: string;
4720
+ };
4721
+ } & {
4427
4722
  param: {
4428
- name: string;
4723
+ platform: string;
4429
4724
  };
4430
4725
  };
4431
4726
  output: {
4432
- participants: {
4433
- userId: number;
4434
- username: string;
4435
- userType: "brain" | "mind" | "puppet" | "system";
4436
- role: "owner" | "member";
4437
- displayName?: string | null | undefined;
4438
- description?: string | null | undefined;
4439
- avatar?: string | null | undefined;
4440
- }[];
4441
- id: string;
4442
- mind_name: string | null;
4443
- channel: string;
4444
- type: "dm" | "channel";
4445
- name: string | null;
4446
- user_id: number | null;
4447
- title: string | null;
4448
- private: number;
4449
- created_at: string;
4450
- updated_at: string;
4727
+ ok: true;
4451
4728
  };
4452
4729
  outputFormat: "json";
4453
4730
  status: hono_utils_http_status.ContentfulStatusCode;
4454
4731
  };
4455
4732
  };
4456
4733
  } & {
4457
- "/:name/join": {
4458
- $post: {
4734
+ "/:platform": {
4735
+ $delete: {
4459
4736
  input: {
4460
4737
  param: {
4461
- name: string;
4738
+ platform: string;
4462
4739
  };
4463
4740
  };
4464
4741
  output: {
4465
- error: string;
4742
+ ok: true;
4466
4743
  };
4467
4744
  outputFormat: "json";
4468
- status: 404;
4469
- } | {
4745
+ status: hono_utils_http_status.ContentfulStatusCode;
4746
+ };
4747
+ };
4748
+ } & {
4749
+ "/:platform/mappings": {
4750
+ $put: {
4470
4751
  input: {
4752
+ json: {
4753
+ externalChannel: string;
4754
+ voluteChannel: string;
4755
+ };
4756
+ } & {
4471
4757
  param: {
4472
- name: string;
4758
+ platform: string;
4473
4759
  };
4474
4760
  };
4475
4761
  output: {
4476
4762
  ok: true;
4477
- conversationId: string;
4478
4763
  };
4479
4764
  outputFormat: "json";
4480
4765
  status: hono_utils_http_status.ContentfulStatusCode;
4481
- };
4482
- };
4483
- } & {
4484
- "/:name/leave": {
4485
- $post: {
4766
+ } | {
4486
4767
  input: {
4768
+ json: {
4769
+ externalChannel: string;
4770
+ voluteChannel: string;
4771
+ };
4772
+ } & {
4487
4773
  param: {
4488
- name: string;
4774
+ platform: string;
4489
4775
  };
4490
4776
  };
4491
4777
  output: {
4492
4778
  error: string;
4493
4779
  };
4494
4780
  outputFormat: "json";
4495
- status: 404;
4496
- } | {
4781
+ status: 400;
4782
+ };
4783
+ };
4784
+ } & {
4785
+ "/:platform/mappings/:channel": {
4786
+ $delete: {
4497
4787
  input: {
4498
4788
  param: {
4499
- name: string;
4789
+ platform: string;
4790
+ } & {
4791
+ channel: string;
4500
4792
  };
4501
4793
  };
4502
4794
  output: {
@@ -4507,340 +4799,90 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4507
4799
  };
4508
4800
  };
4509
4801
  } & {
4510
- "/:name/members": {
4802
+ "/:platform/mappings": {
4511
4803
  $get: {
4512
4804
  input: {
4513
4805
  param: {
4514
- name: string;
4806
+ platform: string;
4515
4807
  };
4516
4808
  };
4517
4809
  output: {
4518
- userId: number;
4519
- username: string;
4520
- userType: "brain" | "mind" | "puppet" | "system";
4521
- role: "owner" | "member";
4522
- displayName?: string | null | undefined;
4523
- description?: string | null | undefined;
4524
- avatar?: string | null | undefined;
4525
- }[];
4810
+ error: string;
4811
+ };
4526
4812
  outputFormat: "json";
4527
- status: hono_utils_http_status.ContentfulStatusCode;
4813
+ status: 404;
4528
4814
  } | {
4529
4815
  input: {
4530
4816
  param: {
4531
- name: string;
4817
+ platform: string;
4532
4818
  };
4533
4819
  };
4534
4820
  output: {
4535
- error: string;
4821
+ [x: string]: string;
4536
4822
  };
4537
4823
  outputFormat: "json";
4538
- status: 404;
4824
+ status: hono_utils_http_status.ContentfulStatusCode;
4539
4825
  };
4540
4826
  };
4541
- } & {
4542
- "/:name/invite": {
4543
- $post: {
4544
- input: {
4545
- json: {
4546
- username: string;
4547
- };
4548
- } & {
4549
- param: {
4550
- name: string;
4551
- };
4552
- };
4553
- output: {
4554
- error: string;
4555
- };
4556
- outputFormat: "json";
4557
- status: 404;
4558
- } | {
4559
- input: {
4560
- json: {
4561
- username: string;
4562
- };
4563
- } & {
4564
- param: {
4565
- name: string;
4566
- };
4567
- };
4568
- output: {
4569
- error: string;
4570
- };
4571
- outputFormat: "json";
4572
- status: 409;
4573
- } | {
4574
- input: {
4575
- json: {
4576
- username: string;
4577
- };
4578
- } & {
4579
- param: {
4580
- name: string;
4581
- };
4582
- };
4583
- output: {
4584
- ok: true;
4585
- };
4586
- outputFormat: "json";
4587
- status: hono_utils_http_status.ContentfulStatusCode;
4588
- };
4589
- };
4590
- }, "/api/volute/channels"> | hono_types.MergeSchemaPath<{
4591
- "/chat": {
4592
- $post: {
4593
- input: {
4594
- json: {
4595
- conversationId: string;
4596
- message?: string | undefined;
4597
- images?: {
4598
- media_type: string;
4599
- data: string;
4600
- }[] | undefined;
4601
- files?: {
4602
- filename: string;
4603
- data: string;
4604
- }[] | undefined;
4605
- };
4606
- };
4607
- output: {
4608
- error: string;
4609
- };
4610
- outputFormat: "json";
4611
- status: 400;
4612
- } | {
4613
- input: {
4614
- json: {
4615
- conversationId: string;
4616
- message?: string | undefined;
4617
- images?: {
4618
- media_type: string;
4619
- data: string;
4620
- }[] | undefined;
4621
- files?: {
4622
- filename: string;
4623
- data: string;
4624
- }[] | undefined;
4625
- };
4626
- };
4627
- output: {
4628
- error: string;
4629
- };
4630
- outputFormat: "json";
4631
- status: 404;
4632
- } | {
4633
- input: {
4634
- json: {
4635
- conversationId: string;
4636
- message?: string | undefined;
4637
- images?: {
4638
- media_type: string;
4639
- data: string;
4640
- }[] | undefined;
4641
- files?: {
4642
- filename: string;
4643
- data: string;
4644
- }[] | undefined;
4645
- };
4646
- };
4647
- output: {
4648
- error: string;
4649
- };
4650
- outputFormat: "json";
4651
- status: 413;
4652
- } | {
4653
- input: {
4654
- json: {
4655
- conversationId: string;
4656
- message?: string | undefined;
4657
- images?: {
4658
- media_type: string;
4659
- data: string;
4660
- }[] | undefined;
4661
- files?: {
4662
- filename: string;
4663
- data: string;
4664
- }[] | undefined;
4665
- };
4666
- };
4667
- output: {
4668
- ok: true;
4669
- conversationId: string;
4670
- };
4671
- outputFormat: "json";
4672
- status: hono_utils_http_status.ContentfulStatusCode;
4673
- };
4674
- };
4675
- }, "/api/volute"> | hono_types.MergeSchemaPath<{
4676
- "/:platform/inbound": {
4677
- $post: {
4678
- input: {
4679
- json: {
4680
- content: ({
4681
- type: "text";
4682
- text: string;
4683
- } | {
4684
- type: "image";
4685
- media_type: string;
4686
- data: string;
4687
- })[];
4688
- platformUserId: string;
4689
- displayName: string;
4690
- externalChannel: string;
4691
- isDM: boolean;
4692
- targetMind?: string | undefined;
4693
- };
4694
- } & {
4695
- param: {
4696
- platform: string;
4697
- };
4698
- };
4699
- output: {
4700
- error: string;
4701
- };
4702
- outputFormat: "json";
4703
- status: 403;
4704
- } | {
4705
- input: {
4706
- json: {
4707
- content: ({
4708
- type: "text";
4709
- text: string;
4710
- } | {
4711
- type: "image";
4712
- media_type: string;
4713
- data: string;
4714
- })[];
4715
- platformUserId: string;
4716
- displayName: string;
4717
- externalChannel: string;
4718
- isDM: boolean;
4719
- targetMind?: string | undefined;
4720
- };
4721
- } & {
4722
- param: {
4723
- platform: string;
4724
- };
4725
- };
4726
- output: {
4727
- error: string;
4728
- };
4729
- outputFormat: "json";
4730
- status: 400;
4731
- } | {
4732
- input: {
4733
- json: {
4734
- content: ({
4735
- type: "text";
4736
- text: string;
4737
- } | {
4738
- type: "image";
4739
- media_type: string;
4740
- data: string;
4741
- })[];
4742
- platformUserId: string;
4743
- displayName: string;
4744
- externalChannel: string;
4745
- isDM: boolean;
4746
- targetMind?: string | undefined;
4747
- };
4748
- } & {
4749
- param: {
4750
- platform: string;
4751
- };
4752
- };
4753
- output: {
4754
- error: string;
4755
- };
4756
- outputFormat: "json";
4757
- status: 404;
4758
- } | {
4759
- input: {
4760
- json: {
4761
- content: ({
4762
- type: "text";
4763
- text: string;
4764
- } | {
4765
- type: "image";
4766
- media_type: string;
4767
- data: string;
4768
- })[];
4769
- platformUserId: string;
4770
- displayName: string;
4771
- externalChannel: string;
4772
- isDM: boolean;
4773
- targetMind?: string | undefined;
4774
- };
4775
- } & {
4776
- param: {
4777
- platform: string;
4778
- };
4779
- };
4780
- output: {
4781
- ok: true;
4782
- conversationId: string;
4783
- };
4784
- outputFormat: "json";
4785
- status: hono_utils_http_status.ContentfulStatusCode;
4786
- } | {
4787
- input: {
4788
- json: {
4789
- content: ({
4790
- type: "text";
4791
- text: string;
4792
- } | {
4793
- type: "image";
4794
- media_type: string;
4795
- data: string;
4796
- })[];
4797
- platformUserId: string;
4798
- displayName: string;
4799
- externalChannel: string;
4800
- isDM: boolean;
4801
- targetMind?: string | undefined;
4802
- };
4803
- } & {
4804
- param: {
4805
- platform: string;
4806
- };
4807
- };
4827
+ }, "/api/bridges"> | hono_types.MergeSchemaPath<{
4828
+ "/": {
4829
+ $get: {
4830
+ input: {};
4808
4831
  output: {
4809
- ok: true;
4810
- unmapped: true;
4811
- };
4832
+ id: string;
4833
+ name: string;
4834
+ version: string;
4835
+ description?: string | undefined;
4836
+ icon?: string | undefined;
4837
+ systemSection?: {
4838
+ id: string;
4839
+ label: string;
4840
+ urlPatterns?: string[] | undefined;
4841
+ } | undefined;
4842
+ mindSections?: {
4843
+ id: string;
4844
+ label: string;
4845
+ defaultPath?: string | undefined;
4846
+ }[] | undefined;
4847
+ feedSource?: {
4848
+ endpoint: string;
4849
+ kind?: string | undefined;
4850
+ } | undefined;
4851
+ commands?: {
4852
+ [x: string]: {
4853
+ description: string;
4854
+ usage?: string | undefined;
4855
+ };
4856
+ } | undefined;
4857
+ }[];
4812
4858
  outputFormat: "json";
4813
4859
  status: hono_utils_http_status.ContentfulStatusCode;
4814
4860
  };
4815
4861
  };
4816
4862
  } & {
4817
- "/": {
4863
+ "/all": {
4818
4864
  $get: {
4819
4865
  input: {};
4820
4866
  output: {
4821
- platform: string;
4822
- displayName: string;
4867
+ id: string;
4868
+ name: string;
4869
+ version: string;
4870
+ description?: string | undefined;
4871
+ icon?: string | undefined;
4872
+ source: ExtensionSource;
4823
4873
  enabled: boolean;
4824
- running: boolean;
4825
- defaultMind: string;
4826
- channelMappings: {
4827
- [x: string]: string;
4828
- };
4874
+ package?: string | undefined;
4829
4875
  }[];
4830
4876
  outputFormat: "json";
4831
4877
  status: hono_utils_http_status.ContentfulStatusCode;
4832
4878
  };
4833
4879
  };
4834
4880
  } & {
4835
- "/:platform": {
4836
- $post: {
4881
+ "/:id/enabled": {
4882
+ $put: {
4837
4883
  input: {
4838
- json: {
4839
- defaultMind: string;
4840
- };
4841
- } & {
4842
4884
  param: {
4843
- platform: string;
4885
+ id: string;
4844
4886
  };
4845
4887
  };
4846
4888
  output: {
@@ -4850,163 +4892,73 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4850
4892
  status: 400;
4851
4893
  } | {
4852
4894
  input: {
4853
- json: {
4854
- defaultMind: string;
4855
- };
4856
- } & {
4857
4895
  param: {
4858
- platform: string;
4896
+ id: string;
4859
4897
  };
4860
4898
  };
4861
4899
  output: {
4862
4900
  error: string;
4863
4901
  };
4864
4902
  outputFormat: "json";
4865
- status: 500;
4866
- } | {
4867
- input: {
4868
- json: {
4869
- defaultMind: string;
4870
- };
4871
- } & {
4872
- param: {
4873
- platform: string;
4874
- };
4875
- };
4876
- output: {
4877
- ok: true;
4878
- };
4879
- outputFormat: "json";
4880
- status: hono_utils_http_status.ContentfulStatusCode;
4881
- };
4882
- };
4883
- } & {
4884
- "/:platform": {
4885
- $delete: {
4886
- input: {
4887
- param: {
4888
- platform: string;
4889
- };
4890
- };
4891
- output: {
4892
- ok: true;
4893
- };
4894
- outputFormat: "json";
4895
- status: hono_utils_http_status.ContentfulStatusCode;
4896
- };
4897
- };
4898
- } & {
4899
- "/:platform/mappings": {
4900
- $put: {
4901
- input: {
4902
- json: {
4903
- externalChannel: string;
4904
- voluteChannel: string;
4905
- };
4906
- } & {
4907
- param: {
4908
- platform: string;
4909
- };
4910
- };
4911
- output: {
4912
- ok: true;
4913
- };
4914
- outputFormat: "json";
4915
- status: hono_utils_http_status.ContentfulStatusCode;
4903
+ status: 404;
4916
4904
  } | {
4917
- input: {
4918
- json: {
4919
- externalChannel: string;
4920
- voluteChannel: string;
4921
- };
4922
- } & {
4923
- param: {
4924
- platform: string;
4925
- };
4926
- };
4927
- output: {
4928
- error: string;
4929
- };
4930
- outputFormat: "json";
4931
- status: 400;
4932
- };
4933
- };
4934
- } & {
4935
- "/:platform/mappings/:channel": {
4936
- $delete: {
4937
4905
  input: {
4938
4906
  param: {
4939
- platform: string;
4940
- } & {
4941
- channel: string;
4907
+ id: string;
4942
4908
  };
4943
4909
  };
4944
4910
  output: {
4945
4911
  ok: true;
4912
+ requiresRestart: true;
4946
4913
  };
4947
4914
  outputFormat: "json";
4948
4915
  status: hono_utils_http_status.ContentfulStatusCode;
4949
4916
  };
4950
4917
  };
4951
4918
  } & {
4952
- "/:platform/mappings": {
4953
- $get: {
4954
- input: {
4955
- param: {
4956
- platform: string;
4957
- };
4958
- };
4959
- output: {
4960
- error: string;
4961
- };
4962
- outputFormat: "json";
4963
- status: 404;
4964
- } | {
4965
- input: {
4966
- param: {
4967
- platform: string;
4968
- };
4969
- };
4970
- output: {
4971
- [x: string]: string;
4972
- };
4973
- outputFormat: "json";
4974
- status: hono_utils_http_status.ContentfulStatusCode;
4975
- };
4976
- };
4977
- }, "/api/bridges"> | hono_types.MergeSchemaPath<{
4978
- "/": {
4979
- $get: {
4919
+ "/install": {
4920
+ $post: {
4980
4921
  input: {};
4981
- output: {
4982
- id: string;
4983
- name: string;
4984
- version: string;
4985
- description?: string | undefined;
4986
- icon?: string | undefined;
4987
- systemSection?: {
4988
- id: string;
4989
- label: string;
4990
- urlPatterns?: string[] | undefined;
4991
- } | undefined;
4992
- mindSections?: {
4993
- id: string;
4994
- label: string;
4995
- defaultPath?: string | undefined;
4996
- }[] | undefined;
4997
- feedSource?: {
4998
- endpoint: string;
4999
- kind?: string | undefined;
5000
- } | undefined;
5001
- commands?: {
5002
- [x: string]: {
5003
- description: string;
5004
- usage?: string | undefined;
5005
- };
5006
- } | undefined;
5007
- }[];
4922
+ output: {
4923
+ ok: true;
4924
+ requiresRestart: true;
4925
+ };
4926
+ outputFormat: "json";
4927
+ status: hono_utils_http_status.ContentfulStatusCode;
4928
+ } | {
4929
+ input: {};
4930
+ output: {
4931
+ error: string;
4932
+ };
4933
+ outputFormat: "json";
4934
+ status: 400 | 500;
4935
+ };
4936
+ };
4937
+ } & {
4938
+ "/uninstall/:package": {
4939
+ $delete: {
4940
+ input: {
4941
+ param: {
4942
+ package: string;
4943
+ };
4944
+ };
4945
+ output: {
4946
+ ok: true;
4947
+ requiresRestart: true;
4948
+ };
5008
4949
  outputFormat: "json";
5009
4950
  status: hono_utils_http_status.ContentfulStatusCode;
4951
+ } | {
4952
+ input: {
4953
+ param: {
4954
+ package: string;
4955
+ };
4956
+ };
4957
+ output: {
4958
+ error: string;
4959
+ };
4960
+ outputFormat: "json";
4961
+ status: 400 | 500;
5010
4962
  };
5011
4963
  };
5012
4964
  }, "/api/extensions"> | hono_types.MergeSchemaPath<{
@@ -5123,17 +5075,243 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5123
5075
  }[];
5124
5076
  outputFormat: "json";
5125
5077
  status: hono_utils_http_status.ContentfulStatusCode;
5126
- } | {
5127
- input: {
5128
- param: {
5129
- id: string;
5130
- };
5131
- };
5132
- output: {
5133
- error: string;
5134
- };
5135
- outputFormat: "json";
5136
- status: 404;
5078
+ } | {
5079
+ input: {
5080
+ param: {
5081
+ id: string;
5082
+ };
5083
+ };
5084
+ output: {
5085
+ error: string;
5086
+ };
5087
+ outputFormat: "json";
5088
+ status: 404;
5089
+ };
5090
+ };
5091
+ } & {
5092
+ "/": {
5093
+ $post: {
5094
+ input: {
5095
+ json: {
5096
+ participantNames: string[];
5097
+ title?: string | undefined;
5098
+ };
5099
+ };
5100
+ output: {
5101
+ id: string;
5102
+ mind_name: string | null;
5103
+ channel: string;
5104
+ type: "dm" | "channel";
5105
+ name: string | null;
5106
+ user_id: number | null;
5107
+ title: string | null;
5108
+ private: number;
5109
+ created_at: string;
5110
+ updated_at: string;
5111
+ };
5112
+ outputFormat: "json";
5113
+ status: 201;
5114
+ } | {
5115
+ input: {
5116
+ json: {
5117
+ participantNames: string[];
5118
+ title?: string | undefined;
5119
+ };
5120
+ };
5121
+ output: {
5122
+ error: string;
5123
+ };
5124
+ outputFormat: "json";
5125
+ status: 400;
5126
+ };
5127
+ };
5128
+ } & {
5129
+ "/:id/read": {
5130
+ $post: {
5131
+ input: {
5132
+ param: {
5133
+ id: string;
5134
+ };
5135
+ };
5136
+ output: {
5137
+ ok: true;
5138
+ };
5139
+ outputFormat: "json";
5140
+ status: hono_utils_http_status.ContentfulStatusCode;
5141
+ } | {
5142
+ input: {
5143
+ param: {
5144
+ id: string;
5145
+ };
5146
+ };
5147
+ output: {
5148
+ error: string;
5149
+ };
5150
+ outputFormat: "json";
5151
+ status: 404;
5152
+ };
5153
+ };
5154
+ } & {
5155
+ "/:id/private": {
5156
+ $put: {
5157
+ input: {
5158
+ json: {
5159
+ private: boolean;
5160
+ };
5161
+ } & {
5162
+ param: {
5163
+ id: string;
5164
+ };
5165
+ };
5166
+ output: {
5167
+ error: string;
5168
+ };
5169
+ outputFormat: "json";
5170
+ status: 403;
5171
+ } | {
5172
+ input: {
5173
+ json: {
5174
+ private: boolean;
5175
+ };
5176
+ } & {
5177
+ param: {
5178
+ id: string;
5179
+ };
5180
+ };
5181
+ output: {
5182
+ ok: true;
5183
+ };
5184
+ outputFormat: "json";
5185
+ status: hono_utils_http_status.ContentfulStatusCode;
5186
+ };
5187
+ };
5188
+ } & {
5189
+ "/:id": {
5190
+ $delete: {
5191
+ input: {
5192
+ param: {
5193
+ id: string;
5194
+ };
5195
+ };
5196
+ output: {
5197
+ error: string;
5198
+ };
5199
+ outputFormat: "json";
5200
+ status: 404;
5201
+ } | {
5202
+ input: {
5203
+ param: {
5204
+ id: string;
5205
+ };
5206
+ };
5207
+ output: {
5208
+ ok: true;
5209
+ };
5210
+ outputFormat: "json";
5211
+ status: hono_utils_http_status.ContentfulStatusCode;
5212
+ };
5213
+ };
5214
+ }, "/api/v1/conversations"> | hono_types.MergeSchemaPath<{
5215
+ "/": {
5216
+ $get: {
5217
+ input: {};
5218
+ output: {};
5219
+ outputFormat: string;
5220
+ status: hono_utils_http_status.StatusCode;
5221
+ };
5222
+ };
5223
+ }, "/api/v1/events"> | hono_types.MergeSchemaPath<{
5224
+ "/chat": {
5225
+ $post: {
5226
+ input: {
5227
+ json: {
5228
+ message?: string | undefined;
5229
+ conversationId?: string | undefined;
5230
+ targetMind?: string | undefined;
5231
+ sender?: string | undefined;
5232
+ images?: {
5233
+ media_type: string;
5234
+ data: string;
5235
+ }[] | undefined;
5236
+ files?: {
5237
+ filename: string;
5238
+ data: string;
5239
+ }[] | undefined;
5240
+ };
5241
+ };
5242
+ output: {
5243
+ error: string;
5244
+ };
5245
+ outputFormat: "json";
5246
+ status: 404;
5247
+ } | {
5248
+ input: {
5249
+ json: {
5250
+ message?: string | undefined;
5251
+ conversationId?: string | undefined;
5252
+ targetMind?: string | undefined;
5253
+ sender?: string | undefined;
5254
+ images?: {
5255
+ media_type: string;
5256
+ data: string;
5257
+ }[] | undefined;
5258
+ files?: {
5259
+ filename: string;
5260
+ data: string;
5261
+ }[] | undefined;
5262
+ };
5263
+ };
5264
+ output: {
5265
+ error: string;
5266
+ };
5267
+ outputFormat: "json";
5268
+ status: 400 | 413;
5269
+ } | {
5270
+ input: {
5271
+ json: {
5272
+ message?: string | undefined;
5273
+ conversationId?: string | undefined;
5274
+ targetMind?: string | undefined;
5275
+ sender?: string | undefined;
5276
+ images?: {
5277
+ media_type: string;
5278
+ data: string;
5279
+ }[] | undefined;
5280
+ files?: {
5281
+ filename: string;
5282
+ data: string;
5283
+ }[] | undefined;
5284
+ };
5285
+ };
5286
+ output: {
5287
+ ok: true;
5288
+ conversationId: string | undefined;
5289
+ outboundId: number | undefined;
5290
+ };
5291
+ outputFormat: "json";
5292
+ status: hono_utils_http_status.ContentfulStatusCode;
5293
+ };
5294
+ };
5295
+ }, "/api/v1"> | hono_types.MergeSchemaPath<{
5296
+ "/": {
5297
+ $get: {
5298
+ input: {};
5299
+ output: {
5300
+ participantCount: number;
5301
+ isMember: boolean;
5302
+ id: string;
5303
+ mind_name: string | null;
5304
+ channel: string;
5305
+ type: "dm" | "channel";
5306
+ name: string | null;
5307
+ user_id: number | null;
5308
+ title: string | null;
5309
+ private: number;
5310
+ created_at: string;
5311
+ updated_at: string;
5312
+ }[];
5313
+ outputFormat: "json";
5314
+ status: hono_utils_http_status.ContentfulStatusCode;
5137
5315
  };
5138
5316
  };
5139
5317
  } & {
@@ -5141,8 +5319,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5141
5319
  $post: {
5142
5320
  input: {
5143
5321
  json: {
5144
- participantNames: string[];
5145
- title?: string | undefined;
5322
+ name: string;
5146
5323
  };
5147
5324
  };
5148
5325
  output: {
@@ -5162,49 +5339,66 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5162
5339
  } | {
5163
5340
  input: {
5164
5341
  json: {
5165
- participantNames: string[];
5166
- title?: string | undefined;
5342
+ name: string;
5167
5343
  };
5168
5344
  };
5169
5345
  output: {
5170
5346
  error: string;
5171
5347
  };
5172
5348
  outputFormat: "json";
5173
- status: 400;
5349
+ status: 409;
5174
5350
  };
5175
5351
  };
5176
5352
  } & {
5177
- "/:id/read": {
5178
- $post: {
5353
+ "/:name": {
5354
+ $get: {
5179
5355
  input: {
5180
5356
  param: {
5181
- id: string;
5357
+ name: string;
5182
5358
  };
5183
5359
  };
5184
5360
  output: {
5185
- ok: true;
5361
+ error: string;
5186
5362
  };
5187
5363
  outputFormat: "json";
5188
- status: hono_utils_http_status.ContentfulStatusCode;
5364
+ status: 404;
5189
5365
  } | {
5190
5366
  input: {
5191
5367
  param: {
5192
- id: string;
5368
+ name: string;
5193
5369
  };
5194
5370
  };
5195
5371
  output: {
5196
- error: string;
5372
+ participants: {
5373
+ userId: number;
5374
+ username: string;
5375
+ userType: "brain" | "mind" | "puppet" | "system";
5376
+ role: "owner" | "member";
5377
+ displayName?: string | null | undefined;
5378
+ description?: string | null | undefined;
5379
+ avatar?: string | null | undefined;
5380
+ }[];
5381
+ id: string;
5382
+ mind_name: string | null;
5383
+ channel: string;
5384
+ type: "dm" | "channel";
5385
+ name: string | null;
5386
+ user_id: number | null;
5387
+ title: string | null;
5388
+ private: number;
5389
+ created_at: string;
5390
+ updated_at: string;
5197
5391
  };
5198
5392
  outputFormat: "json";
5199
- status: 404;
5393
+ status: hono_utils_http_status.ContentfulStatusCode;
5200
5394
  };
5201
5395
  };
5202
5396
  } & {
5203
- "/:id": {
5204
- $delete: {
5397
+ "/:name/join": {
5398
+ $post: {
5205
5399
  input: {
5206
5400
  param: {
5207
- id: string;
5401
+ name: string;
5208
5402
  };
5209
5403
  };
5210
5404
  output: {
@@ -5215,39 +5409,21 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5215
5409
  } | {
5216
5410
  input: {
5217
5411
  param: {
5218
- id: string;
5412
+ name: string;
5219
5413
  };
5220
5414
  };
5221
5415
  output: {
5222
5416
  ok: true;
5417
+ conversationId: string;
5223
5418
  };
5224
5419
  outputFormat: "json";
5225
5420
  status: hono_utils_http_status.ContentfulStatusCode;
5226
5421
  };
5227
5422
  };
5228
- }, "/api/v1/conversations"> | hono_types.MergeSchemaPath<{
5229
- "/": {
5230
- $get: {
5231
- input: {};
5232
- output: {};
5233
- outputFormat: string;
5234
- status: hono_utils_http_status.StatusCode;
5235
- };
5236
- };
5237
- }, "/api/v1/events"> | hono_types.MergeSchemaPath<{
5238
- "/minds/:name/chat": {
5423
+ } & {
5424
+ "/:name/leave": {
5239
5425
  $post: {
5240
5426
  input: {
5241
- json: {
5242
- message?: string | undefined;
5243
- conversationId?: string | undefined;
5244
- sender?: string | undefined;
5245
- images?: {
5246
- media_type: string;
5247
- data: string;
5248
- }[] | undefined;
5249
- };
5250
- } & {
5251
5427
  param: {
5252
5428
  name: string;
5253
5429
  };
@@ -5259,118 +5435,183 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5259
5435
  status: 404;
5260
5436
  } | {
5261
5437
  input: {
5262
- json: {
5263
- message?: string | undefined;
5264
- conversationId?: string | undefined;
5265
- sender?: string | undefined;
5266
- images?: {
5267
- media_type: string;
5268
- data: string;
5269
- }[] | undefined;
5270
- };
5271
- } & {
5272
5438
  param: {
5273
5439
  name: string;
5274
5440
  };
5275
5441
  };
5276
5442
  output: {
5277
- error: string;
5443
+ ok: true;
5278
5444
  };
5279
5445
  outputFormat: "json";
5280
- status: 400;
5281
- } | {
5446
+ status: hono_utils_http_status.ContentfulStatusCode;
5447
+ };
5448
+ };
5449
+ } & {
5450
+ "/:name/members": {
5451
+ $get: {
5282
5452
  input: {
5283
- json: {
5284
- message?: string | undefined;
5285
- conversationId?: string | undefined;
5286
- sender?: string | undefined;
5287
- images?: {
5288
- media_type: string;
5289
- data: string;
5290
- }[] | undefined;
5291
- };
5292
- } & {
5293
5453
  param: {
5294
5454
  name: string;
5295
5455
  };
5296
5456
  };
5297
5457
  output: {
5298
- ok: true;
5299
- conversationId: string;
5300
- };
5458
+ userId: number;
5459
+ username: string;
5460
+ userType: "brain" | "mind" | "puppet" | "system";
5461
+ role: "owner" | "member";
5462
+ displayName?: string | null | undefined;
5463
+ description?: string | null | undefined;
5464
+ avatar?: string | null | undefined;
5465
+ }[];
5301
5466
  outputFormat: "json";
5302
5467
  status: hono_utils_http_status.ContentfulStatusCode;
5303
- };
5304
- };
5305
- } & {
5306
- "/minds/:name/conversations/:id/events": {
5307
- $get: {
5468
+ } | {
5308
5469
  input: {
5309
5470
  param: {
5310
- id: string;
5311
- } & {
5312
5471
  name: string;
5313
5472
  };
5314
5473
  };
5315
- output: {};
5316
- outputFormat: string;
5317
- status: hono_utils_http_status.StatusCode;
5474
+ output: {
5475
+ error: string;
5476
+ };
5477
+ outputFormat: "json";
5478
+ status: 404;
5318
5479
  };
5319
5480
  };
5320
5481
  } & {
5321
- "/chat": {
5482
+ "/:name/invite": {
5322
5483
  $post: {
5323
5484
  input: {
5324
5485
  json: {
5325
- conversationId: string;
5326
- message?: string | undefined;
5327
- images?: {
5328
- media_type: string;
5329
- data: string;
5330
- }[] | undefined;
5486
+ username: string;
5487
+ };
5488
+ } & {
5489
+ param: {
5490
+ name: string;
5331
5491
  };
5332
5492
  };
5333
5493
  output: {
5334
5494
  error: string;
5335
5495
  };
5336
5496
  outputFormat: "json";
5337
- status: 400;
5497
+ status: 404;
5338
5498
  } | {
5339
5499
  input: {
5340
5500
  json: {
5341
- conversationId: string;
5342
- message?: string | undefined;
5343
- images?: {
5344
- media_type: string;
5345
- data: string;
5346
- }[] | undefined;
5501
+ username: string;
5502
+ };
5503
+ } & {
5504
+ param: {
5505
+ name: string;
5347
5506
  };
5348
5507
  };
5349
5508
  output: {
5350
5509
  error: string;
5351
5510
  };
5352
5511
  outputFormat: "json";
5353
- status: 404;
5512
+ status: 409;
5354
5513
  } | {
5355
5514
  input: {
5356
5515
  json: {
5357
- conversationId: string;
5358
- message?: string | undefined;
5359
- images?: {
5360
- media_type: string;
5361
- data: string;
5362
- }[] | undefined;
5516
+ username: string;
5517
+ };
5518
+ } & {
5519
+ param: {
5520
+ name: string;
5363
5521
  };
5364
5522
  };
5365
5523
  output: {
5366
5524
  ok: true;
5367
- conversationId: string;
5368
5525
  };
5369
5526
  outputFormat: "json";
5370
5527
  status: hono_utils_http_status.ContentfulStatusCode;
5371
5528
  };
5372
5529
  };
5373
- }, "/api/v1">, "/", "/">;
5530
+ }, "/api/v1/channels"> | hono_types.MergeSchemaPath<{
5531
+ "/turns": {
5532
+ $get: {
5533
+ input: {};
5534
+ output: {
5535
+ id: string;
5536
+ mind: string;
5537
+ summary: string | null;
5538
+ summary_meta: {
5539
+ [x: string]: hono_utils_types.JSONValue;
5540
+ } | null;
5541
+ status: string;
5542
+ created_at: string;
5543
+ trigger: {
5544
+ channel: string | null;
5545
+ sender: string | null;
5546
+ content: string | null;
5547
+ } | null;
5548
+ conversations: {
5549
+ id: string;
5550
+ label: string;
5551
+ type: "channel" | "dm";
5552
+ messages: {
5553
+ id: number;
5554
+ role: string;
5555
+ sender_name: string | null;
5556
+ content: {
5557
+ type: string;
5558
+ text: string;
5559
+ }[];
5560
+ source_event_id: number;
5561
+ created_at: string | null;
5562
+ }[];
5563
+ }[];
5564
+ activities: {
5565
+ id: number;
5566
+ type: string;
5567
+ summary: string;
5568
+ metadata: {
5569
+ [x: string]: hono_utils_types.JSONValue;
5570
+ } | null;
5571
+ source_event_id: number | null;
5572
+ created_at: string;
5573
+ }[];
5574
+ }[];
5575
+ outputFormat: "json";
5576
+ status: hono_utils_http_status.ContentfulStatusCode;
5577
+ };
5578
+ };
5579
+ } & {
5580
+ "/events": {
5581
+ $get: {
5582
+ input: {};
5583
+ output: {};
5584
+ outputFormat: string;
5585
+ status: hono_utils_http_status.StatusCode;
5586
+ };
5587
+ };
5588
+ } & {
5589
+ "/summaries": {
5590
+ $get: {
5591
+ input: {};
5592
+ output: {
5593
+ metadata: {
5594
+ [x: string]: hono_utils_types.JSONValue;
5595
+ } | null;
5596
+ id: number;
5597
+ mind: string;
5598
+ period: string;
5599
+ period_key: string;
5600
+ content: string;
5601
+ created_at: string;
5602
+ }[];
5603
+ outputFormat: "json";
5604
+ status: hono_utils_http_status.ContentfulStatusCode;
5605
+ } | {
5606
+ input: {};
5607
+ output: {
5608
+ error: string;
5609
+ };
5610
+ outputFormat: "json";
5611
+ status: 400;
5612
+ };
5613
+ };
5614
+ }, "/api/v1/history">, "/", "/">;
5374
5615
 
5375
5616
  type AppType = typeof routes;
5376
5617