@waifucave/discord-waifus 1.5.154

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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +230 -0
  3. package/THIRD_PARTY_NOTICES.md +26 -0
  4. package/assets/ocr/eng.traineddata +0 -0
  5. package/bin/waifus.mjs +36 -0
  6. package/dist/api/errors.d.ts +9 -0
  7. package/dist/api/errors.js +23 -0
  8. package/dist/api/errors.js.map +1 -0
  9. package/dist/api/server.d.ts +19 -0
  10. package/dist/api/server.js +1290 -0
  11. package/dist/api/server.js.map +1 -0
  12. package/dist/backend/logger.d.ts +20 -0
  13. package/dist/backend/logger.js +65 -0
  14. package/dist/backend/logger.js.map +1 -0
  15. package/dist/backend/migrations.d.ts +4 -0
  16. package/dist/backend/migrations.js +521 -0
  17. package/dist/backend/migrations.js.map +1 -0
  18. package/dist/backend/redaction.d.ts +1 -0
  19. package/dist/backend/redaction.js +22 -0
  20. package/dist/backend/redaction.js.map +1 -0
  21. package/dist/backend/runtime.d.ts +30 -0
  22. package/dist/backend/runtime.js +49 -0
  23. package/dist/backend/runtime.js.map +1 -0
  24. package/dist/backend/server.d.ts +18 -0
  25. package/dist/backend/server.js +581 -0
  26. package/dist/backend/server.js.map +1 -0
  27. package/dist/cli/commands.d.ts +35 -0
  28. package/dist/cli/commands.js +510 -0
  29. package/dist/cli/commands.js.map +1 -0
  30. package/dist/cli/main.d.ts +1 -0
  31. package/dist/cli/main.js +12 -0
  32. package/dist/cli/main.js.map +1 -0
  33. package/dist/cli/parser.d.ts +10 -0
  34. package/dist/cli/parser.js +64 -0
  35. package/dist/cli/parser.js.map +1 -0
  36. package/dist/config/appConfig.d.ts +3 -0
  37. package/dist/config/appConfig.js +27 -0
  38. package/dist/config/appConfig.js.map +1 -0
  39. package/dist/config/layout.d.ts +13 -0
  40. package/dist/config/layout.js +173 -0
  41. package/dist/config/layout.js.map +1 -0
  42. package/dist/config/paths.d.ts +5 -0
  43. package/dist/config/paths.js +20 -0
  44. package/dist/config/paths.js.map +1 -0
  45. package/dist/config/prebuiltWaifus.d.ts +3 -0
  46. package/dist/config/prebuiltWaifus.js +106 -0
  47. package/dist/config/prebuiltWaifus.js.map +1 -0
  48. package/dist/discord/client.d.ts +394 -0
  49. package/dist/discord/client.js +1196 -0
  50. package/dist/discord/client.js.map +1 -0
  51. package/dist/discord/contextBuilder.d.ts +15 -0
  52. package/dist/discord/contextBuilder.js +18 -0
  53. package/dist/discord/contextBuilder.js.map +1 -0
  54. package/dist/discord/intents.d.ts +5 -0
  55. package/dist/discord/intents.js +21 -0
  56. package/dist/discord/intents.js.map +1 -0
  57. package/dist/discord/memberCache.d.ts +12 -0
  58. package/dist/discord/memberCache.js +55 -0
  59. package/dist/discord/memberCache.js.map +1 -0
  60. package/dist/discord/normalization.d.ts +34 -0
  61. package/dist/discord/normalization.js +330 -0
  62. package/dist/discord/normalization.js.map +1 -0
  63. package/dist/discord/rateLimit.d.ts +9 -0
  64. package/dist/discord/rateLimit.js +11 -0
  65. package/dist/discord/rateLimit.js.map +1 -0
  66. package/dist/orchestration/context.d.ts +85 -0
  67. package/dist/orchestration/context.js +200 -0
  68. package/dist/orchestration/context.js.map +1 -0
  69. package/dist/orchestration/decisions.d.ts +52 -0
  70. package/dist/orchestration/decisions.js +61 -0
  71. package/dist/orchestration/decisions.js.map +1 -0
  72. package/dist/orchestration/messageSplit.d.ts +6 -0
  73. package/dist/orchestration/messageSplit.js +118 -0
  74. package/dist/orchestration/messageSplit.js.map +1 -0
  75. package/dist/orchestration/ocr.d.ts +43 -0
  76. package/dist/orchestration/ocr.js +504 -0
  77. package/dist/orchestration/ocr.js.map +1 -0
  78. package/dist/orchestration/ocrPackages.d.ts +24 -0
  79. package/dist/orchestration/ocrPackages.js +85 -0
  80. package/dist/orchestration/ocrPackages.js.map +1 -0
  81. package/dist/orchestration/promptBlocks.d.ts +28 -0
  82. package/dist/orchestration/promptBlocks.js +232 -0
  83. package/dist/orchestration/promptBlocks.js.map +1 -0
  84. package/dist/orchestration/replyQuote.d.ts +7 -0
  85. package/dist/orchestration/replyQuote.js +198 -0
  86. package/dist/orchestration/replyQuote.js.map +1 -0
  87. package/dist/orchestration/reviewer.d.ts +5 -0
  88. package/dist/orchestration/reviewer.js +5 -0
  89. package/dist/orchestration/reviewer.js.map +1 -0
  90. package/dist/orchestration/runtime.d.ts +152 -0
  91. package/dist/orchestration/runtime.js +3535 -0
  92. package/dist/orchestration/runtime.js.map +1 -0
  93. package/dist/orchestration/session.d.ts +30 -0
  94. package/dist/orchestration/session.js +41 -0
  95. package/dist/orchestration/session.js.map +1 -0
  96. package/dist/orchestration/stageManager.d.ts +42 -0
  97. package/dist/orchestration/stageManager.js +50 -0
  98. package/dist/orchestration/stageManager.js.map +1 -0
  99. package/dist/providers/catalog.d.ts +6 -0
  100. package/dist/providers/catalog.js +212 -0
  101. package/dist/providers/catalog.js.map +1 -0
  102. package/dist/providers/pipelines.d.ts +13 -0
  103. package/dist/providers/pipelines.js +2388 -0
  104. package/dist/providers/pipelines.js.map +1 -0
  105. package/dist/providers/types.d.ts +91 -0
  106. package/dist/providers/types.js +2 -0
  107. package/dist/providers/types.js.map +1 -0
  108. package/dist/shared/queryLog.d.ts +39 -0
  109. package/dist/shared/queryLog.js +80 -0
  110. package/dist/shared/queryLog.js.map +1 -0
  111. package/dist/shared/schemas/common.d.ts +21 -0
  112. package/dist/shared/schemas/common.js +27 -0
  113. package/dist/shared/schemas/common.js.map +1 -0
  114. package/dist/shared/schemas/config.d.ts +57 -0
  115. package/dist/shared/schemas/config.js +49 -0
  116. package/dist/shared/schemas/config.js.map +1 -0
  117. package/dist/shared/schemas/domain.d.ts +825 -0
  118. package/dist/shared/schemas/domain.js +444 -0
  119. package/dist/shared/schemas/domain.js.map +1 -0
  120. package/dist/storage/atomic.d.ts +6 -0
  121. package/dist/storage/atomic.js +60 -0
  122. package/dist/storage/atomic.js.map +1 -0
  123. package/dist/storage/errors.d.ts +12 -0
  124. package/dist/storage/errors.js +23 -0
  125. package/dist/storage/errors.js.map +1 -0
  126. package/dist/storage/locks.d.ts +9 -0
  127. package/dist/storage/locks.js +42 -0
  128. package/dist/storage/locks.js.map +1 -0
  129. package/dist/storage/storageService.d.ts +25 -0
  130. package/dist/storage/storageService.js +66 -0
  131. package/dist/storage/storageService.js.map +1 -0
  132. package/dist-frontend/assets/index-B2bB3_2r.js +39 -0
  133. package/dist-frontend/assets/index-B2bB3_2r.js.map +1 -0
  134. package/dist-frontend/assets/index-Dj1L8Px-.css +1 -0
  135. package/dist-frontend/index.html +14 -0
  136. package/docs/api.md +162 -0
  137. package/docs/old-orchestrator-prompt.md +123 -0
  138. package/package.json +81 -0
@@ -0,0 +1,825 @@
1
+ import { z } from "zod";
2
+ export declare const ProviderIdSchema: z.ZodEnum<{
3
+ xai: "xai";
4
+ deepseek: "deepseek";
5
+ anthropic: "anthropic";
6
+ openai: "openai";
7
+ zai: "zai";
8
+ "google-ai-studio": "google-ai-studio";
9
+ }>;
10
+ export type ProviderId = z.infer<typeof ProviderIdSchema>;
11
+ export declare const ReasoningEffortSchema: z.ZodEnum<{
12
+ none: "none";
13
+ minimal: "minimal";
14
+ low: "low";
15
+ medium: "medium";
16
+ high: "high";
17
+ max: "max";
18
+ xhigh: "xhigh";
19
+ }>;
20
+ export type ReasoningEffort = z.infer<typeof ReasoningEffortSchema>;
21
+ export declare const ReasoningConfigSchema: z.ZodDefault<z.ZodObject<{
22
+ enabled: z.ZodOptional<z.ZodBoolean>;
23
+ effort: z.ZodOptional<z.ZodEnum<{
24
+ none: "none";
25
+ minimal: "minimal";
26
+ low: "low";
27
+ medium: "medium";
28
+ high: "high";
29
+ max: "max";
30
+ xhigh: "xhigh";
31
+ }>>;
32
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
33
+ }, z.core.$strip>>;
34
+ export type ReasoningConfig = z.infer<typeof ReasoningConfigSchema>;
35
+ export declare const TimeOfDaySchema: z.ZodString;
36
+ export type TimeOfDay = z.infer<typeof TimeOfDaySchema>;
37
+ export declare const WaifuSleepScheduleSchema: z.ZodDefault<z.ZodObject<{
38
+ enabled: z.ZodDefault<z.ZodBoolean>;
39
+ start: z.ZodDefault<z.ZodString>;
40
+ end: z.ZodDefault<z.ZodString>;
41
+ }, z.core.$strip>>;
42
+ export type WaifuSleepSchedule = z.infer<typeof WaifuSleepScheduleSchema>;
43
+ export declare const WaifuBusyIntervalSchema: z.ZodObject<{
44
+ start: z.ZodString;
45
+ end: z.ZodString;
46
+ reason: z.ZodString;
47
+ }, z.core.$strip>;
48
+ export type WaifuBusyInterval = z.infer<typeof WaifuBusyIntervalSchema>;
49
+ export declare const WaifuAvailabilitySchema: z.ZodDefault<z.ZodObject<{
50
+ sleep: z.ZodDefault<z.ZodObject<{
51
+ enabled: z.ZodDefault<z.ZodBoolean>;
52
+ start: z.ZodDefault<z.ZodString>;
53
+ end: z.ZodDefault<z.ZodString>;
54
+ }, z.core.$strip>>;
55
+ busy: z.ZodDefault<z.ZodArray<z.ZodObject<{
56
+ start: z.ZodString;
57
+ end: z.ZodString;
58
+ reason: z.ZodString;
59
+ }, z.core.$strip>>>;
60
+ }, z.core.$strip>>;
61
+ export type WaifuAvailability = z.infer<typeof WaifuAvailabilitySchema>;
62
+ export declare const WaifuToolSettingsSchema: z.ZodDefault<z.ZodObject<{
63
+ toolUse: z.ZodDefault<z.ZodBoolean>;
64
+ }, z.core.$strip>>;
65
+ export type WaifuToolSettings = z.infer<typeof WaifuToolSettingsSchema>;
66
+ export declare const PromptLayoutBlockNodeSchema: z.ZodObject<{
67
+ kind: z.ZodLiteral<"block">;
68
+ blockId: z.ZodString;
69
+ enabled: z.ZodDefault<z.ZodBoolean>;
70
+ }, z.core.$strip>;
71
+ export type PromptLayoutBlockNode = z.infer<typeof PromptLayoutBlockNodeSchema>;
72
+ export declare const PromptLayoutGroupNodeSchema: z.ZodObject<{
73
+ kind: z.ZodLiteral<"group">;
74
+ id: z.ZodString;
75
+ tag: z.ZodString;
76
+ enabled: z.ZodDefault<z.ZodBoolean>;
77
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
78
+ kind: z.ZodLiteral<"block">;
79
+ blockId: z.ZodString;
80
+ enabled: z.ZodDefault<z.ZodBoolean>;
81
+ }, z.core.$strip>>>;
82
+ }, z.core.$strip>;
83
+ export type PromptLayoutGroupNode = z.infer<typeof PromptLayoutGroupNodeSchema>;
84
+ export declare const PromptLayoutNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
85
+ kind: z.ZodLiteral<"block">;
86
+ blockId: z.ZodString;
87
+ enabled: z.ZodDefault<z.ZodBoolean>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ kind: z.ZodLiteral<"group">;
90
+ id: z.ZodString;
91
+ tag: z.ZodString;
92
+ enabled: z.ZodDefault<z.ZodBoolean>;
93
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
+ kind: z.ZodLiteral<"block">;
95
+ blockId: z.ZodString;
96
+ enabled: z.ZodDefault<z.ZodBoolean>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>], "kind">;
99
+ export type PromptLayoutNode = z.infer<typeof PromptLayoutNodeSchema>;
100
+ export declare const WaifuPromptLayoutSchema: z.ZodDefault<z.ZodObject<{
101
+ top: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
102
+ kind: z.ZodLiteral<"block">;
103
+ blockId: z.ZodString;
104
+ enabled: z.ZodDefault<z.ZodBoolean>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ kind: z.ZodLiteral<"group">;
107
+ id: z.ZodString;
108
+ tag: z.ZodString;
109
+ enabled: z.ZodDefault<z.ZodBoolean>;
110
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
111
+ kind: z.ZodLiteral<"block">;
112
+ blockId: z.ZodString;
113
+ enabled: z.ZodDefault<z.ZodBoolean>;
114
+ }, z.core.$strip>>>;
115
+ }, z.core.$strip>], "kind">>;
116
+ mid: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ kind: z.ZodLiteral<"block">;
118
+ blockId: z.ZodString;
119
+ enabled: z.ZodDefault<z.ZodBoolean>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ kind: z.ZodLiteral<"group">;
122
+ id: z.ZodString;
123
+ tag: z.ZodString;
124
+ enabled: z.ZodDefault<z.ZodBoolean>;
125
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
126
+ kind: z.ZodLiteral<"block">;
127
+ blockId: z.ZodString;
128
+ enabled: z.ZodDefault<z.ZodBoolean>;
129
+ }, z.core.$strip>>>;
130
+ }, z.core.$strip>], "kind">>;
131
+ trailing: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
132
+ kind: z.ZodLiteral<"block">;
133
+ blockId: z.ZodString;
134
+ enabled: z.ZodDefault<z.ZodBoolean>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"group">;
137
+ id: z.ZodString;
138
+ tag: z.ZodString;
139
+ enabled: z.ZodDefault<z.ZodBoolean>;
140
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
141
+ kind: z.ZodLiteral<"block">;
142
+ blockId: z.ZodString;
143
+ enabled: z.ZodDefault<z.ZodBoolean>;
144
+ }, z.core.$strip>>>;
145
+ }, z.core.$strip>], "kind">>;
146
+ }, z.core.$strip>>;
147
+ export type WaifuPromptLayout = z.infer<typeof WaifuPromptLayoutSchema>;
148
+ export declare function defaultWaifuPromptLayout(): WaifuPromptLayout;
149
+ export declare const ServerToolSettingsSchema: z.ZodDefault<z.ZodObject<{
150
+ pickNextWaifu: z.ZodDefault<z.ZodBoolean>;
151
+ shortTermMemory: z.ZodDefault<z.ZodBoolean>;
152
+ }, z.core.$strip>>;
153
+ export type ServerToolSettings = z.infer<typeof ServerToolSettingsSchema>;
154
+ export declare const ProviderCredentialsSchema: z.ZodObject<{
155
+ providerId: z.ZodEnum<{
156
+ xai: "xai";
157
+ deepseek: "deepseek";
158
+ anthropic: "anthropic";
159
+ openai: "openai";
160
+ zai: "zai";
161
+ "google-ai-studio": "google-ai-studio";
162
+ }>;
163
+ apiKey: z.ZodString;
164
+ label: z.ZodOptional<z.ZodString>;
165
+ createdAt: z.ZodString;
166
+ updatedAt: z.ZodString;
167
+ }, z.core.$strip>;
168
+ export type ProviderCredentials = z.infer<typeof ProviderCredentialsSchema>;
169
+ export declare const ProviderCredentialsFileSchema: z.ZodObject<{
170
+ schemaVersion: z.ZodLiteral<1>;
171
+ revision: z.ZodNumber;
172
+ updatedAt: z.ZodString;
173
+ providers: z.ZodRecord<z.ZodString, z.ZodObject<{
174
+ providerId: z.ZodEnum<{
175
+ xai: "xai";
176
+ deepseek: "deepseek";
177
+ anthropic: "anthropic";
178
+ openai: "openai";
179
+ zai: "zai";
180
+ "google-ai-studio": "google-ai-studio";
181
+ }>;
182
+ apiKey: z.ZodString;
183
+ label: z.ZodOptional<z.ZodString>;
184
+ createdAt: z.ZodString;
185
+ updatedAt: z.ZodString;
186
+ }, z.core.$strip>>;
187
+ }, z.core.$strip>;
188
+ export type ProviderCredentialsFile = z.infer<typeof ProviderCredentialsFileSchema>;
189
+ export declare const DiscordBotConfigSchema: z.ZodObject<{
190
+ id: z.ZodString;
191
+ displayName: z.ZodString;
192
+ applicationId: z.ZodOptional<z.ZodString>;
193
+ token: z.ZodOptional<z.ZodString>;
194
+ enabled: z.ZodDefault<z.ZodBoolean>;
195
+ }, z.core.$strip>;
196
+ export type DiscordBotConfig = z.infer<typeof DiscordBotConfigSchema>;
197
+ export declare const DiscordBotsFileSchema: z.ZodObject<{
198
+ schemaVersion: z.ZodLiteral<1>;
199
+ revision: z.ZodNumber;
200
+ updatedAt: z.ZodString;
201
+ orchestrator: z.ZodNullable<z.ZodObject<{
202
+ id: z.ZodString;
203
+ displayName: z.ZodString;
204
+ applicationId: z.ZodOptional<z.ZodString>;
205
+ token: z.ZodOptional<z.ZodString>;
206
+ enabled: z.ZodDefault<z.ZodBoolean>;
207
+ }, z.core.$strip>>;
208
+ waifus: z.ZodArray<z.ZodObject<{
209
+ id: z.ZodString;
210
+ displayName: z.ZodString;
211
+ applicationId: z.ZodOptional<z.ZodString>;
212
+ token: z.ZodOptional<z.ZodString>;
213
+ enabled: z.ZodDefault<z.ZodBoolean>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>;
216
+ export type DiscordBotsFile = z.infer<typeof DiscordBotsFileSchema>;
217
+ export declare const OrchestratorPromptSectionsSchema: z.ZodDefault<z.ZodObject<{
218
+ loopBreaking: z.ZodDefault<z.ZodBoolean>;
219
+ retriggerPacing: z.ZodDefault<z.ZodBoolean>;
220
+ messageStructure: z.ZodDefault<z.ZodBoolean>;
221
+ toolUse: z.ZodDefault<z.ZodBoolean>;
222
+ }, z.core.$strip>>;
223
+ export type OrchestratorPromptSections = z.infer<typeof OrchestratorPromptSectionsSchema>;
224
+ export declare const AgentConfigSchema: z.ZodObject<{
225
+ schemaVersion: z.ZodLiteral<1>;
226
+ revision: z.ZodNumber;
227
+ updatedAt: z.ZodString;
228
+ enabled: z.ZodDefault<z.ZodBoolean>;
229
+ providerId: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
230
+ xai: "xai";
231
+ deepseek: "deepseek";
232
+ anthropic: "anthropic";
233
+ openai: "openai";
234
+ zai: "zai";
235
+ "google-ai-studio": "google-ai-studio";
236
+ }>, z.ZodNull]>>, z.ZodTransform<"xai" | "deepseek" | "anthropic" | "openai" | "zai" | "google-ai-studio" | undefined, "xai" | "deepseek" | "anthropic" | "openai" | "zai" | "google-ai-studio" | null | undefined>>;
237
+ modelId: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>, z.ZodTransform<string | undefined, string | null | undefined>>;
238
+ contextWindow: z.ZodDefault<z.ZodNumber>;
239
+ prompt: z.ZodDefault<z.ZodString>;
240
+ useLegacyPrompt: z.ZodDefault<z.ZodBoolean>;
241
+ clipSceneDirection: z.ZodDefault<z.ZodBoolean>;
242
+ reasoning: z.ZodDefault<z.ZodObject<{
243
+ enabled: z.ZodOptional<z.ZodBoolean>;
244
+ effort: z.ZodOptional<z.ZodEnum<{
245
+ none: "none";
246
+ minimal: "minimal";
247
+ low: "low";
248
+ medium: "medium";
249
+ high: "high";
250
+ max: "max";
251
+ xhigh: "xhigh";
252
+ }>>;
253
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
254
+ }, z.core.$strip>>;
255
+ promptSections: z.ZodDefault<z.ZodObject<{
256
+ loopBreaking: z.ZodDefault<z.ZodBoolean>;
257
+ retriggerPacing: z.ZodDefault<z.ZodBoolean>;
258
+ messageStructure: z.ZodDefault<z.ZodBoolean>;
259
+ toolUse: z.ZodDefault<z.ZodBoolean>;
260
+ }, z.core.$strip>>;
261
+ }, z.core.$strip>;
262
+ export type AgentConfig = z.infer<typeof AgentConfigSchema>;
263
+ export declare const WaifuConfigSchema: z.ZodObject<{
264
+ schemaVersion: z.ZodLiteral<1>;
265
+ revision: z.ZodNumber;
266
+ updatedAt: z.ZodString;
267
+ id: z.ZodString;
268
+ name: z.ZodString;
269
+ displayName: z.ZodString;
270
+ enabled: z.ZodDefault<z.ZodBoolean>;
271
+ persona: z.ZodDefault<z.ZodString>;
272
+ providerId: z.ZodOptional<z.ZodEnum<{
273
+ xai: "xai";
274
+ deepseek: "deepseek";
275
+ anthropic: "anthropic";
276
+ openai: "openai";
277
+ zai: "zai";
278
+ "google-ai-studio": "google-ai-studio";
279
+ }>>;
280
+ modelId: z.ZodOptional<z.ZodString>;
281
+ botId: z.ZodOptional<z.ZodString>;
282
+ contextWindow: z.ZodDefault<z.ZodNumber>;
283
+ generation: z.ZodDefault<z.ZodObject<{
284
+ temperature: z.ZodOptional<z.ZodNumber>;
285
+ topP: z.ZodOptional<z.ZodNumber>;
286
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
287
+ }, z.core.$strip>>;
288
+ reasoning: z.ZodDefault<z.ZodObject<{
289
+ enabled: z.ZodOptional<z.ZodBoolean>;
290
+ effort: z.ZodOptional<z.ZodEnum<{
291
+ none: "none";
292
+ minimal: "minimal";
293
+ low: "low";
294
+ medium: "medium";
295
+ high: "high";
296
+ max: "max";
297
+ xhigh: "xhigh";
298
+ }>>;
299
+ budgetTokens: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$strip>>;
301
+ availability: z.ZodDefault<z.ZodObject<{
302
+ sleep: z.ZodDefault<z.ZodObject<{
303
+ enabled: z.ZodDefault<z.ZodBoolean>;
304
+ start: z.ZodDefault<z.ZodString>;
305
+ end: z.ZodDefault<z.ZodString>;
306
+ }, z.core.$strip>>;
307
+ busy: z.ZodDefault<z.ZodArray<z.ZodObject<{
308
+ start: z.ZodString;
309
+ end: z.ZodString;
310
+ reason: z.ZodString;
311
+ }, z.core.$strip>>>;
312
+ }, z.core.$strip>>;
313
+ tools: z.ZodDefault<z.ZodObject<{
314
+ toolUse: z.ZodDefault<z.ZodBoolean>;
315
+ }, z.core.$strip>>;
316
+ promptLayout: z.ZodDefault<z.ZodObject<{
317
+ top: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
318
+ kind: z.ZodLiteral<"block">;
319
+ blockId: z.ZodString;
320
+ enabled: z.ZodDefault<z.ZodBoolean>;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"group">;
323
+ id: z.ZodString;
324
+ tag: z.ZodString;
325
+ enabled: z.ZodDefault<z.ZodBoolean>;
326
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
327
+ kind: z.ZodLiteral<"block">;
328
+ blockId: z.ZodString;
329
+ enabled: z.ZodDefault<z.ZodBoolean>;
330
+ }, z.core.$strip>>>;
331
+ }, z.core.$strip>], "kind">>;
332
+ mid: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
333
+ kind: z.ZodLiteral<"block">;
334
+ blockId: z.ZodString;
335
+ enabled: z.ZodDefault<z.ZodBoolean>;
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ kind: z.ZodLiteral<"group">;
338
+ id: z.ZodString;
339
+ tag: z.ZodString;
340
+ enabled: z.ZodDefault<z.ZodBoolean>;
341
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
342
+ kind: z.ZodLiteral<"block">;
343
+ blockId: z.ZodString;
344
+ enabled: z.ZodDefault<z.ZodBoolean>;
345
+ }, z.core.$strip>>>;
346
+ }, z.core.$strip>], "kind">>;
347
+ trailing: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ kind: z.ZodLiteral<"block">;
349
+ blockId: z.ZodString;
350
+ enabled: z.ZodDefault<z.ZodBoolean>;
351
+ }, z.core.$strip>, z.ZodObject<{
352
+ kind: z.ZodLiteral<"group">;
353
+ id: z.ZodString;
354
+ tag: z.ZodString;
355
+ enabled: z.ZodDefault<z.ZodBoolean>;
356
+ children: z.ZodDefault<z.ZodArray<z.ZodObject<{
357
+ kind: z.ZodLiteral<"block">;
358
+ blockId: z.ZodString;
359
+ enabled: z.ZodDefault<z.ZodBoolean>;
360
+ }, z.core.$strip>>>;
361
+ }, z.core.$strip>], "kind">>;
362
+ }, z.core.$strip>>;
363
+ }, z.core.$strip>;
364
+ export type WaifuConfig = z.infer<typeof WaifuConfigSchema>;
365
+ export declare const ServerConfigSchema: z.ZodObject<{
366
+ schemaVersion: z.ZodLiteral<1>;
367
+ revision: z.ZodNumber;
368
+ updatedAt: z.ZodString;
369
+ guildId: z.ZodString;
370
+ name: z.ZodOptional<z.ZodString>;
371
+ enabled: z.ZodDefault<z.ZodBoolean>;
372
+ contextWindows: z.ZodDefault<z.ZodObject<{
373
+ orchestrator: z.ZodDefault<z.ZodNumber>;
374
+ waifu: z.ZodDefault<z.ZodNumber>;
375
+ stageManager: z.ZodDefault<z.ZodNumber>;
376
+ }, z.core.$strip>>;
377
+ tools: z.ZodDefault<z.ZodObject<{
378
+ pickNextWaifu: z.ZodDefault<z.ZodBoolean>;
379
+ shortTermMemory: z.ZodDefault<z.ZodBoolean>;
380
+ }, z.core.$strip>>;
381
+ channels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
382
+ channelId: z.ZodString;
383
+ name: z.ZodOptional<z.ZodString>;
384
+ enabled: z.ZodDefault<z.ZodBoolean>;
385
+ enabledWaifuIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
386
+ }, z.core.$strip>>>;
387
+ }, z.core.$strip>;
388
+ export type ServerConfig = z.infer<typeof ServerConfigSchema>;
389
+ export declare const GuildMemberCacheEntrySchema: z.ZodObject<{
390
+ userId: z.ZodString;
391
+ username: z.ZodOptional<z.ZodString>;
392
+ globalDisplayName: z.ZodOptional<z.ZodString>;
393
+ guildDisplayName: z.ZodOptional<z.ZodString>;
394
+ bot: z.ZodDefault<z.ZodBoolean>;
395
+ lastSeenAt: z.ZodOptional<z.ZodString>;
396
+ perChannelLastSeenAt: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
397
+ }, z.core.$strip>;
398
+ export type GuildMemberCacheEntry = z.infer<typeof GuildMemberCacheEntrySchema>;
399
+ export declare const GuildMembersFileSchema: z.ZodObject<{
400
+ schemaVersion: z.ZodLiteral<1>;
401
+ revision: z.ZodNumber;
402
+ updatedAt: z.ZodString;
403
+ guildId: z.ZodString;
404
+ members: z.ZodArray<z.ZodObject<{
405
+ userId: z.ZodString;
406
+ username: z.ZodOptional<z.ZodString>;
407
+ globalDisplayName: z.ZodOptional<z.ZodString>;
408
+ guildDisplayName: z.ZodOptional<z.ZodString>;
409
+ bot: z.ZodDefault<z.ZodBoolean>;
410
+ lastSeenAt: z.ZodOptional<z.ZodString>;
411
+ perChannelLastSeenAt: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
412
+ }, z.core.$strip>>;
413
+ }, z.core.$strip>;
414
+ export type GuildMembersFile = z.infer<typeof GuildMembersFileSchema>;
415
+ export declare const ActiveChatParticipantSchema: z.ZodObject<{
416
+ userId: z.ZodString;
417
+ displayName: z.ZodString;
418
+ lastSeenAt: z.ZodString;
419
+ expiresAt: z.ZodString;
420
+ }, z.core.$strip>;
421
+ export type ActiveChatParticipant = z.infer<typeof ActiveChatParticipantSchema>;
422
+ export declare const ActiveChatParticipantsFileSchema: z.ZodObject<{
423
+ schemaVersion: z.ZodLiteral<1>;
424
+ revision: z.ZodNumber;
425
+ updatedAt: z.ZodString;
426
+ guildId: z.ZodString;
427
+ channelId: z.ZodString;
428
+ participants: z.ZodArray<z.ZodObject<{
429
+ userId: z.ZodString;
430
+ displayName: z.ZodString;
431
+ lastSeenAt: z.ZodString;
432
+ expiresAt: z.ZodString;
433
+ }, z.core.$strip>>;
434
+ }, z.core.$strip>;
435
+ export type ActiveChatParticipantsFile = z.infer<typeof ActiveChatParticipantsFileSchema>;
436
+ export declare const GuildEmojiCacheEntrySchema: z.ZodObject<{
437
+ id: z.ZodString;
438
+ name: z.ZodString;
439
+ animated: z.ZodDefault<z.ZodBoolean>;
440
+ available: z.ZodDefault<z.ZodBoolean>;
441
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
442
+ fetchedAt: z.ZodString;
443
+ }, z.core.$strip>;
444
+ export type GuildEmojiCacheEntry = z.infer<typeof GuildEmojiCacheEntrySchema>;
445
+ export declare const GuildEmojisFileSchema: z.ZodObject<{
446
+ schemaVersion: z.ZodLiteral<1>;
447
+ revision: z.ZodNumber;
448
+ updatedAt: z.ZodString;
449
+ guildId: z.ZodString;
450
+ emojis: z.ZodArray<z.ZodObject<{
451
+ id: z.ZodString;
452
+ name: z.ZodString;
453
+ animated: z.ZodDefault<z.ZodBoolean>;
454
+ available: z.ZodDefault<z.ZodBoolean>;
455
+ roles: z.ZodDefault<z.ZodArray<z.ZodString>>;
456
+ fetchedAt: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ }, z.core.$strip>;
459
+ export type GuildEmojisFile = z.infer<typeof GuildEmojisFileSchema>;
460
+ export declare const GuildRoleCacheEntrySchema: z.ZodObject<{
461
+ id: z.ZodString;
462
+ name: z.ZodString;
463
+ color: z.ZodDefault<z.ZodNumber>;
464
+ hoist: z.ZodDefault<z.ZodBoolean>;
465
+ mentionable: z.ZodDefault<z.ZodBoolean>;
466
+ managed: z.ZodDefault<z.ZodBoolean>;
467
+ fetchedAt: z.ZodString;
468
+ }, z.core.$strip>;
469
+ export type GuildRoleCacheEntry = z.infer<typeof GuildRoleCacheEntrySchema>;
470
+ export declare const GuildRolesFileSchema: z.ZodObject<{
471
+ schemaVersion: z.ZodLiteral<1>;
472
+ revision: z.ZodNumber;
473
+ updatedAt: z.ZodString;
474
+ guildId: z.ZodString;
475
+ roles: z.ZodArray<z.ZodObject<{
476
+ id: z.ZodString;
477
+ name: z.ZodString;
478
+ color: z.ZodDefault<z.ZodNumber>;
479
+ hoist: z.ZodDefault<z.ZodBoolean>;
480
+ mentionable: z.ZodDefault<z.ZodBoolean>;
481
+ managed: z.ZodDefault<z.ZodBoolean>;
482
+ fetchedAt: z.ZodString;
483
+ }, z.core.$strip>>;
484
+ }, z.core.$strip>;
485
+ export type GuildRolesFile = z.infer<typeof GuildRolesFileSchema>;
486
+ export declare const WaifuMemorySchema: z.ZodObject<{
487
+ id: z.ZodString;
488
+ waifuId: z.ZodString;
489
+ scope: z.ZodLiteral<"guild">;
490
+ guildId: z.ZodOptional<z.ZodString>;
491
+ content: z.ZodString;
492
+ importance: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
493
+ permanent: z.ZodDefault<z.ZodBoolean>;
494
+ createdAt: z.ZodString;
495
+ updatedAt: z.ZodString;
496
+ sourceMessageIds: z.ZodArray<z.ZodString>;
497
+ status: z.ZodEnum<{
498
+ active: "active";
499
+ archived: "archived";
500
+ }>;
501
+ }, z.core.$strip>;
502
+ export type WaifuMemory = z.infer<typeof WaifuMemorySchema>;
503
+ export declare const MemoryStoreSchema: z.ZodObject<{
504
+ schemaVersion: z.ZodLiteral<1>;
505
+ revision: z.ZodNumber;
506
+ updatedAt: z.ZodString;
507
+ memories: z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ waifuId: z.ZodString;
510
+ scope: z.ZodLiteral<"guild">;
511
+ guildId: z.ZodOptional<z.ZodString>;
512
+ content: z.ZodString;
513
+ importance: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
514
+ permanent: z.ZodDefault<z.ZodBoolean>;
515
+ createdAt: z.ZodString;
516
+ updatedAt: z.ZodString;
517
+ sourceMessageIds: z.ZodArray<z.ZodString>;
518
+ status: z.ZodEnum<{
519
+ active: "active";
520
+ archived: "archived";
521
+ }>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>;
524
+ export type MemoryStore = z.infer<typeof MemoryStoreSchema>;
525
+ export declare const ShortTermMemorySchema: z.ZodObject<{
526
+ id: z.ZodString;
527
+ guildId: z.ZodString;
528
+ channelId: z.ZodString;
529
+ waifuId: z.ZodString;
530
+ content: z.ZodString;
531
+ createdAt: z.ZodString;
532
+ expiresAt: z.ZodString;
533
+ }, z.core.$strip>;
534
+ export type ShortTermMemory = z.infer<typeof ShortTermMemorySchema>;
535
+ export declare const ShortTermMemoryStoreSchema: z.ZodObject<{
536
+ schemaVersion: z.ZodLiteral<1>;
537
+ revision: z.ZodNumber;
538
+ updatedAt: z.ZodString;
539
+ entries: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodString;
541
+ guildId: z.ZodString;
542
+ channelId: z.ZodString;
543
+ waifuId: z.ZodString;
544
+ content: z.ZodString;
545
+ createdAt: z.ZodString;
546
+ expiresAt: z.ZodString;
547
+ }, z.core.$strip>>;
548
+ }, z.core.$strip>;
549
+ export type ShortTermMemoryStore = z.infer<typeof ShortTermMemoryStoreSchema>;
550
+ export declare const OrchestratorReplyStyleSchema: z.ZodEnum<{
551
+ normal: "normal";
552
+ short: "short";
553
+ long: "long";
554
+ sleepy: "sleepy";
555
+ }>;
556
+ export type OrchestratorReplyStyle = z.infer<typeof OrchestratorReplyStyleSchema>;
557
+ export declare const OrchestratorRespondingWaifuSchema: z.ZodObject<{
558
+ waifuId: z.ZodString;
559
+ delaySeconds: z.ZodNumber;
560
+ replyStyle: z.ZodEnum<{
561
+ normal: "normal";
562
+ short: "short";
563
+ long: "long";
564
+ sleepy: "sleepy";
565
+ }>;
566
+ replyToMessageId: z.ZodOptional<z.ZodString>;
567
+ sceneDirection: z.ZodOptional<z.ZodString>;
568
+ }, z.core.$strip>;
569
+ export type OrchestratorRespondingWaifu = z.infer<typeof OrchestratorRespondingWaifuSchema>;
570
+ export declare const OrchestratorActionLogSchema: z.ZodEnum<{
571
+ no_reply: "no_reply";
572
+ reply: "reply";
573
+ }>;
574
+ export declare const OrchestratorDecisionStatusSchema: z.ZodEnum<{
575
+ pending: "pending";
576
+ completed: "completed";
577
+ interrupted: "interrupted";
578
+ failed: "failed";
579
+ }>;
580
+ export type OrchestratorDecisionStatus = z.infer<typeof OrchestratorDecisionStatusSchema>;
581
+ export declare const OrchestratorResponderOutcomeSourceSchema: z.ZodEnum<{
582
+ orchestrator: "orchestrator";
583
+ handoff: "handoff";
584
+ }>;
585
+ export type OrchestratorResponderOutcomeSource = z.infer<typeof OrchestratorResponderOutcomeSourceSchema>;
586
+ export declare const OrchestratorResponderOutcomeStatusSchema: z.ZodEnum<{
587
+ pending: "pending";
588
+ interrupted: "interrupted";
589
+ failed: "failed";
590
+ sent: "sent";
591
+ tool_only: "tool_only";
592
+ empty: "empty";
593
+ unavailable: "unavailable";
594
+ not_run: "not_run";
595
+ }>;
596
+ export type OrchestratorResponderOutcomeStatus = z.infer<typeof OrchestratorResponderOutcomeStatusSchema>;
597
+ export declare const OrchestratorResponderOutcomeSchema: z.ZodObject<{
598
+ id: z.ZodString;
599
+ waifuId: z.ZodString;
600
+ source: z.ZodEnum<{
601
+ orchestrator: "orchestrator";
602
+ handoff: "handoff";
603
+ }>;
604
+ handoffFromWaifuId: z.ZodOptional<z.ZodString>;
605
+ status: z.ZodEnum<{
606
+ pending: "pending";
607
+ interrupted: "interrupted";
608
+ failed: "failed";
609
+ sent: "sent";
610
+ tool_only: "tool_only";
611
+ empty: "empty";
612
+ unavailable: "unavailable";
613
+ not_run: "not_run";
614
+ }>;
615
+ reason: z.ZodOptional<z.ZodString>;
616
+ messageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
617
+ }, z.core.$strip>;
618
+ export type OrchestratorResponderOutcome = z.infer<typeof OrchestratorResponderOutcomeSchema>;
619
+ export declare const OrchestratorDecisionHistoryEntrySchema: z.ZodObject<{
620
+ id: z.ZodString;
621
+ guildId: z.ZodOptional<z.ZodString>;
622
+ channelId: z.ZodOptional<z.ZodString>;
623
+ action: z.ZodDefault<z.ZodEnum<{
624
+ no_reply: "no_reply";
625
+ reply: "reply";
626
+ }>>;
627
+ respondingWaifus: z.ZodDefault<z.ZodArray<z.ZodObject<{
628
+ waifuId: z.ZodString;
629
+ delaySeconds: z.ZodNumber;
630
+ replyStyle: z.ZodEnum<{
631
+ normal: "normal";
632
+ short: "short";
633
+ long: "long";
634
+ sleepy: "sleepy";
635
+ }>;
636
+ replyToMessageId: z.ZodOptional<z.ZodString>;
637
+ sceneDirection: z.ZodOptional<z.ZodString>;
638
+ }, z.core.$strip>>>;
639
+ retriggerAfterSeconds: z.ZodOptional<z.ZodNumber>;
640
+ reasoning: z.ZodDefault<z.ZodString>;
641
+ status: z.ZodDefault<z.ZodEnum<{
642
+ pending: "pending";
643
+ completed: "completed";
644
+ interrupted: "interrupted";
645
+ failed: "failed";
646
+ }>>;
647
+ waifuMessageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
648
+ responderOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ waifuId: z.ZodString;
651
+ source: z.ZodEnum<{
652
+ orchestrator: "orchestrator";
653
+ handoff: "handoff";
654
+ }>;
655
+ handoffFromWaifuId: z.ZodOptional<z.ZodString>;
656
+ status: z.ZodEnum<{
657
+ pending: "pending";
658
+ interrupted: "interrupted";
659
+ failed: "failed";
660
+ sent: "sent";
661
+ tool_only: "tool_only";
662
+ empty: "empty";
663
+ unavailable: "unavailable";
664
+ not_run: "not_run";
665
+ }>;
666
+ reason: z.ZodOptional<z.ZodString>;
667
+ messageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
668
+ }, z.core.$strip>>>;
669
+ createdAt: z.ZodString;
670
+ }, z.core.$strip>;
671
+ export type OrchestratorDecisionHistoryEntry = z.infer<typeof OrchestratorDecisionHistoryEntrySchema>;
672
+ export declare const OrchestratorHistoryFileSchema: z.ZodObject<{
673
+ schemaVersion: z.ZodLiteral<1>;
674
+ revision: z.ZodNumber;
675
+ updatedAt: z.ZodString;
676
+ decisions: z.ZodArray<z.ZodObject<{
677
+ id: z.ZodString;
678
+ guildId: z.ZodOptional<z.ZodString>;
679
+ channelId: z.ZodOptional<z.ZodString>;
680
+ action: z.ZodDefault<z.ZodEnum<{
681
+ no_reply: "no_reply";
682
+ reply: "reply";
683
+ }>>;
684
+ respondingWaifus: z.ZodDefault<z.ZodArray<z.ZodObject<{
685
+ waifuId: z.ZodString;
686
+ delaySeconds: z.ZodNumber;
687
+ replyStyle: z.ZodEnum<{
688
+ normal: "normal";
689
+ short: "short";
690
+ long: "long";
691
+ sleepy: "sleepy";
692
+ }>;
693
+ replyToMessageId: z.ZodOptional<z.ZodString>;
694
+ sceneDirection: z.ZodOptional<z.ZodString>;
695
+ }, z.core.$strip>>>;
696
+ retriggerAfterSeconds: z.ZodOptional<z.ZodNumber>;
697
+ reasoning: z.ZodDefault<z.ZodString>;
698
+ status: z.ZodDefault<z.ZodEnum<{
699
+ pending: "pending";
700
+ completed: "completed";
701
+ interrupted: "interrupted";
702
+ failed: "failed";
703
+ }>>;
704
+ waifuMessageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
705
+ responderOutcomes: z.ZodDefault<z.ZodArray<z.ZodObject<{
706
+ id: z.ZodString;
707
+ waifuId: z.ZodString;
708
+ source: z.ZodEnum<{
709
+ orchestrator: "orchestrator";
710
+ handoff: "handoff";
711
+ }>;
712
+ handoffFromWaifuId: z.ZodOptional<z.ZodString>;
713
+ status: z.ZodEnum<{
714
+ pending: "pending";
715
+ interrupted: "interrupted";
716
+ failed: "failed";
717
+ sent: "sent";
718
+ tool_only: "tool_only";
719
+ empty: "empty";
720
+ unavailable: "unavailable";
721
+ not_run: "not_run";
722
+ }>;
723
+ reason: z.ZodOptional<z.ZodString>;
724
+ messageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
725
+ }, z.core.$strip>>>;
726
+ createdAt: z.ZodString;
727
+ }, z.core.$strip>>;
728
+ }, z.core.$strip>;
729
+ export type OrchestratorHistoryFile = z.infer<typeof OrchestratorHistoryFileSchema>;
730
+ export declare const OrchestratorDebugRouteSchema: z.ZodObject<{
731
+ sourceGuildId: z.ZodOptional<z.ZodString>;
732
+ sourceChannelId: z.ZodString;
733
+ destinationGuildId: z.ZodOptional<z.ZodString>;
734
+ destinationChannelId: z.ZodString;
735
+ createdByUserId: z.ZodString;
736
+ createdAt: z.ZodString;
737
+ updatedAt: z.ZodString;
738
+ }, z.core.$strip>;
739
+ export type OrchestratorDebugRoute = z.infer<typeof OrchestratorDebugRouteSchema>;
740
+ export declare const OrchestratorDebugConfigFileSchema: z.ZodObject<{
741
+ schemaVersion: z.ZodLiteral<1>;
742
+ revision: z.ZodNumber;
743
+ updatedAt: z.ZodString;
744
+ routes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
745
+ sourceGuildId: z.ZodOptional<z.ZodString>;
746
+ sourceChannelId: z.ZodString;
747
+ destinationGuildId: z.ZodOptional<z.ZodString>;
748
+ destinationChannelId: z.ZodString;
749
+ createdByUserId: z.ZodString;
750
+ createdAt: z.ZodString;
751
+ updatedAt: z.ZodString;
752
+ }, z.core.$strip>>>;
753
+ }, z.core.$strip>;
754
+ export type OrchestratorDebugConfigFile = z.infer<typeof OrchestratorDebugConfigFileSchema>;
755
+ export declare const StageManagerEditHistoryEntrySchema: z.ZodObject<{
756
+ id: z.ZodString;
757
+ guildId: z.ZodOptional<z.ZodString>;
758
+ channelId: z.ZodOptional<z.ZodString>;
759
+ tool: z.ZodEnum<{
760
+ add_memory: "add_memory";
761
+ update_memory: "update_memory";
762
+ archive_memory: "archive_memory";
763
+ merge_memories: "merge_memories";
764
+ no_change: "no_change";
765
+ }>;
766
+ affectedMemoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
767
+ summary: z.ZodDefault<z.ZodString>;
768
+ observationCount: z.ZodOptional<z.ZodNumber>;
769
+ createdAt: z.ZodString;
770
+ }, z.core.$strip>;
771
+ export type StageManagerEditHistoryEntry = z.infer<typeof StageManagerEditHistoryEntrySchema>;
772
+ export declare const StageManagerHistoryFileSchema: z.ZodObject<{
773
+ schemaVersion: z.ZodLiteral<1>;
774
+ revision: z.ZodNumber;
775
+ updatedAt: z.ZodString;
776
+ edits: z.ZodArray<z.ZodObject<{
777
+ id: z.ZodString;
778
+ guildId: z.ZodOptional<z.ZodString>;
779
+ channelId: z.ZodOptional<z.ZodString>;
780
+ tool: z.ZodEnum<{
781
+ add_memory: "add_memory";
782
+ update_memory: "update_memory";
783
+ archive_memory: "archive_memory";
784
+ merge_memories: "merge_memories";
785
+ no_change: "no_change";
786
+ }>;
787
+ affectedMemoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
788
+ summary: z.ZodDefault<z.ZodString>;
789
+ observationCount: z.ZodOptional<z.ZodNumber>;
790
+ createdAt: z.ZodString;
791
+ }, z.core.$strip>>;
792
+ }, z.core.$strip>;
793
+ export type StageManagerHistoryFile = z.infer<typeof StageManagerHistoryFileSchema>;
794
+ export declare const ReviewerHistoryEntrySchema: z.ZodObject<{
795
+ id: z.ZodString;
796
+ guildId: z.ZodOptional<z.ZodString>;
797
+ channelId: z.ZodOptional<z.ZodString>;
798
+ reviewerUserId: z.ZodOptional<z.ZodString>;
799
+ targetMessageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
800
+ hallucination: z.ZodBoolean;
801
+ deleted: z.ZodDefault<z.ZodBoolean>;
802
+ createdAt: z.ZodString;
803
+ }, z.core.$strip>;
804
+ export type ReviewerHistoryEntry = z.infer<typeof ReviewerHistoryEntrySchema>;
805
+ export declare const ReviewerHistoryFileSchema: z.ZodObject<{
806
+ schemaVersion: z.ZodLiteral<1>;
807
+ revision: z.ZodNumber;
808
+ updatedAt: z.ZodString;
809
+ reviews: z.ZodArray<z.ZodObject<{
810
+ id: z.ZodString;
811
+ guildId: z.ZodOptional<z.ZodString>;
812
+ channelId: z.ZodOptional<z.ZodString>;
813
+ reviewerUserId: z.ZodOptional<z.ZodString>;
814
+ targetMessageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
815
+ hallucination: z.ZodBoolean;
816
+ deleted: z.ZodDefault<z.ZodBoolean>;
817
+ createdAt: z.ZodString;
818
+ }, z.core.$strip>>;
819
+ }, z.core.$strip>;
820
+ export type ReviewerHistoryFile = z.infer<typeof ReviewerHistoryFileSchema>;
821
+ export declare function createEmptyRevisionedFile<T extends Record<string, unknown>>(extra: T): {
822
+ schemaVersion: number;
823
+ revision: number;
824
+ updatedAt: string;
825
+ } & T;