@dsh-libing/memory-manager 0.0.0-stage → 0.1.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.
- package/CHANGELOG.md +8 -0
- package/README.md +64 -2
- package/cordis.patch.yml +3 -0
- package/icon.svg +1 -0
- package/lib/client-types/client/Dialogs.d.ts +29 -0
- package/lib/client-types/client/Editor.d.ts +12 -0
- package/lib/client-types/client/MemoryPage.d.ts +31 -0
- package/lib/client-types/client/api.d.ts +9 -0
- package/lib/client-types/client/index.d.ts +9 -0
- package/lib/client-types/client/locales.d.ts +207 -0
- package/lib/client-types/client/navigation.d.ts +6 -0
- package/lib/client-types/client/turnView.d.ts +7 -0
- package/lib/client-types/client/useMemory.d.ts +122 -0
- package/lib/client-types/shared.d.ts +506 -0
- package/lib/client.js +221 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +111 -0
- package/lib/models.d.ts +21 -0
- package/lib/models.js +69 -0
- package/lib/recall.d.ts +55 -0
- package/lib/recall.js +34 -0
- package/lib/runtime.d.ts +349 -0
- package/lib/runtime.js +177 -0
- package/lib/scope.d.ts +33 -0
- package/lib/scope.js +82 -0
- package/lib/shared.d.ts +506 -0
- package/lib/shared.js +40 -0
- package/lib/storage-worker.d.ts +1 -0
- package/lib/storage-worker.js +256 -0
- package/lib/store.d.ts +15 -0
- package/lib/store.js +113 -0
- package/package.json +123 -3
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/** Validated wire/domain identities; candidates never belong to the readable collection. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const API = "/api/libing-memory-manager";
|
|
4
|
+
export declare const kinds: readonly ["agreement", "decision", "lesson", "handoff"];
|
|
5
|
+
export declare const kindSchema: z.ZodEnum<{
|
|
6
|
+
agreement: "agreement";
|
|
7
|
+
decision: "decision";
|
|
8
|
+
lesson: "lesson";
|
|
9
|
+
handoff: "handoff";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const scopeSchema: z.ZodObject<{
|
|
12
|
+
workspace: z.ZodString;
|
|
13
|
+
session: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export type Scope = z.infer<typeof scopeSchema>;
|
|
16
|
+
export declare const draftSchema: z.ZodObject<{
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
content: z.ZodString;
|
|
19
|
+
kind: z.ZodEnum<{
|
|
20
|
+
agreement: "agreement";
|
|
21
|
+
decision: "decision";
|
|
22
|
+
lesson: "lesson";
|
|
23
|
+
handoff: "handoff";
|
|
24
|
+
}>;
|
|
25
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
workspace: "workspace";
|
|
30
|
+
session: "session";
|
|
31
|
+
personal: "personal";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type Draft = z.infer<typeof draftSchema>;
|
|
35
|
+
export declare const sourceSchema: z.ZodObject<{
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
manual: "manual";
|
|
38
|
+
model: "model";
|
|
39
|
+
capture: "capture";
|
|
40
|
+
}>;
|
|
41
|
+
session: z.ZodNullable<z.ZodString>;
|
|
42
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
evidence: z.ZodString;
|
|
44
|
+
seqs: z.ZodArray<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
export type Source = z.infer<typeof sourceSchema>;
|
|
47
|
+
export declare const entrySchema: z.ZodObject<{
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
content: z.ZodString;
|
|
50
|
+
kind: z.ZodEnum<{
|
|
51
|
+
agreement: "agreement";
|
|
52
|
+
decision: "decision";
|
|
53
|
+
lesson: "lesson";
|
|
54
|
+
handoff: "handoff";
|
|
55
|
+
}>;
|
|
56
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
59
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
60
|
+
workspace: "workspace";
|
|
61
|
+
session: "session";
|
|
62
|
+
personal: "personal";
|
|
63
|
+
}>>;
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
version: z.ZodNumber;
|
|
66
|
+
workspace: z.ZodString;
|
|
67
|
+
session: z.ZodNullable<z.ZodString>;
|
|
68
|
+
state: z.ZodEnum<{
|
|
69
|
+
active: "active";
|
|
70
|
+
trash: "trash";
|
|
71
|
+
}>;
|
|
72
|
+
source: z.ZodObject<{
|
|
73
|
+
kind: z.ZodEnum<{
|
|
74
|
+
manual: "manual";
|
|
75
|
+
model: "model";
|
|
76
|
+
capture: "capture";
|
|
77
|
+
}>;
|
|
78
|
+
session: z.ZodNullable<z.ZodString>;
|
|
79
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
evidence: z.ZodString;
|
|
81
|
+
seqs: z.ZodArray<z.ZodNumber>;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
updated: z.ZodString;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export type Entry = z.infer<typeof entrySchema>;
|
|
86
|
+
export declare const candidateSchema: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
revision: z.ZodString;
|
|
89
|
+
target: z.ZodNullable<z.ZodString>;
|
|
90
|
+
expected: z.ZodNumber;
|
|
91
|
+
workspace: z.ZodString;
|
|
92
|
+
session: z.ZodNullable<z.ZodString>;
|
|
93
|
+
draft: z.ZodObject<{
|
|
94
|
+
title: z.ZodString;
|
|
95
|
+
content: z.ZodString;
|
|
96
|
+
kind: z.ZodEnum<{
|
|
97
|
+
agreement: "agreement";
|
|
98
|
+
decision: "decision";
|
|
99
|
+
lesson: "lesson";
|
|
100
|
+
handoff: "handoff";
|
|
101
|
+
}>;
|
|
102
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
103
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
106
|
+
workspace: "workspace";
|
|
107
|
+
session: "session";
|
|
108
|
+
personal: "personal";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
source: z.ZodObject<{
|
|
112
|
+
kind: z.ZodEnum<{
|
|
113
|
+
manual: "manual";
|
|
114
|
+
model: "model";
|
|
115
|
+
capture: "capture";
|
|
116
|
+
}>;
|
|
117
|
+
session: z.ZodNullable<z.ZodString>;
|
|
118
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
evidence: z.ZodString;
|
|
120
|
+
seqs: z.ZodArray<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
state: z.ZodEnum<{
|
|
123
|
+
pending: "pending";
|
|
124
|
+
rejected: "rejected";
|
|
125
|
+
accepted: "accepted";
|
|
126
|
+
}>;
|
|
127
|
+
updated: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export type Candidate = z.infer<typeof candidateSchema>;
|
|
130
|
+
export declare const activityItemSchema: z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
version: z.ZodNumber;
|
|
133
|
+
title: z.ZodString;
|
|
134
|
+
summary: z.ZodString;
|
|
135
|
+
status: z.ZodEnum<{
|
|
136
|
+
prepared: "prepared";
|
|
137
|
+
included: "included";
|
|
138
|
+
search: "search";
|
|
139
|
+
read: "read";
|
|
140
|
+
deleted: "deleted";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type ActivityItem = z.infer<typeof activityItemSchema>;
|
|
144
|
+
export declare const activitySchema: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
workspace: z.ZodString;
|
|
147
|
+
session: z.ZodNullable<z.ZodString>;
|
|
148
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
kind: z.ZodString;
|
|
150
|
+
reason: z.ZodString;
|
|
151
|
+
items: z.ZodArray<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
version: z.ZodNumber;
|
|
154
|
+
title: z.ZodString;
|
|
155
|
+
summary: z.ZodString;
|
|
156
|
+
status: z.ZodEnum<{
|
|
157
|
+
prepared: "prepared";
|
|
158
|
+
included: "included";
|
|
159
|
+
search: "search";
|
|
160
|
+
read: "read";
|
|
161
|
+
deleted: "deleted";
|
|
162
|
+
}>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
updated: z.ZodString;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export type Activity = z.infer<typeof activitySchema>;
|
|
167
|
+
export declare const jobSchema: z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
workspace: z.ZodString;
|
|
170
|
+
session: z.ZodString;
|
|
171
|
+
turn: z.ZodNumber;
|
|
172
|
+
state: z.ZodEnum<{
|
|
173
|
+
queued: "queued";
|
|
174
|
+
running: "running";
|
|
175
|
+
done: "done";
|
|
176
|
+
failed: "failed";
|
|
177
|
+
cancelled: "cancelled";
|
|
178
|
+
interrupted: "interrupted";
|
|
179
|
+
skipped: "skipped";
|
|
180
|
+
}>;
|
|
181
|
+
reason: z.ZodString;
|
|
182
|
+
candidateIds: z.ZodArray<z.ZodString>;
|
|
183
|
+
updated: z.ZodString;
|
|
184
|
+
automatic: z.ZodBoolean;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type Job = z.infer<typeof jobSchema>;
|
|
187
|
+
export declare const settingsSchema: z.ZodObject<{
|
|
188
|
+
revision: z.ZodDefault<z.ZodNumber>;
|
|
189
|
+
autoRecall: z.ZodDefault<z.ZodBoolean>;
|
|
190
|
+
autoCapture: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
192
|
+
model: z.ZodDefault<z.ZodString>;
|
|
193
|
+
maxDailyCalls: z.ZodDefault<z.ZodNumber>;
|
|
194
|
+
maxRecallChars: z.ZodDefault<z.ZodNumber>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
export type Settings = z.infer<typeof settingsSchema>;
|
|
197
|
+
export declare const selectionSchema: z.ZodObject<{
|
|
198
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
export type Selection = z.infer<typeof selectionSchema>;
|
|
202
|
+
export declare const mutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
203
|
+
action: z.ZodLiteral<"create">;
|
|
204
|
+
draft: z.ZodObject<{
|
|
205
|
+
title: z.ZodString;
|
|
206
|
+
content: z.ZodString;
|
|
207
|
+
kind: z.ZodEnum<{
|
|
208
|
+
agreement: "agreement";
|
|
209
|
+
decision: "decision";
|
|
210
|
+
lesson: "lesson";
|
|
211
|
+
handoff: "handoff";
|
|
212
|
+
}>;
|
|
213
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
214
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
216
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
217
|
+
workspace: "workspace";
|
|
218
|
+
session: "session";
|
|
219
|
+
personal: "personal";
|
|
220
|
+
}>>;
|
|
221
|
+
}, z.core.$strict>;
|
|
222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
223
|
+
action: z.ZodLiteral<"propose">;
|
|
224
|
+
draft: z.ZodObject<{
|
|
225
|
+
title: z.ZodString;
|
|
226
|
+
content: z.ZodString;
|
|
227
|
+
kind: z.ZodEnum<{
|
|
228
|
+
agreement: "agreement";
|
|
229
|
+
decision: "decision";
|
|
230
|
+
lesson: "lesson";
|
|
231
|
+
handoff: "handoff";
|
|
232
|
+
}>;
|
|
233
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
234
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
235
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
237
|
+
workspace: "workspace";
|
|
238
|
+
session: "session";
|
|
239
|
+
personal: "personal";
|
|
240
|
+
}>>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
target: z.ZodOptional<z.ZodString>;
|
|
243
|
+
expected: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
action: z.ZodLiteral<"approve">;
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
revision: z.ZodString;
|
|
248
|
+
draft: z.ZodObject<{
|
|
249
|
+
title: z.ZodString;
|
|
250
|
+
content: z.ZodString;
|
|
251
|
+
kind: z.ZodEnum<{
|
|
252
|
+
agreement: "agreement";
|
|
253
|
+
decision: "decision";
|
|
254
|
+
lesson: "lesson";
|
|
255
|
+
handoff: "handoff";
|
|
256
|
+
}>;
|
|
257
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
258
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
259
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
260
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
261
|
+
workspace: "workspace";
|
|
262
|
+
session: "session";
|
|
263
|
+
personal: "personal";
|
|
264
|
+
}>>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
action: z.ZodLiteral<"reject">;
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
revision: z.ZodString;
|
|
270
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
271
|
+
action: z.ZodEnum<{
|
|
272
|
+
trash: "trash";
|
|
273
|
+
restore: "restore";
|
|
274
|
+
toggle: "toggle";
|
|
275
|
+
}>;
|
|
276
|
+
id: z.ZodString;
|
|
277
|
+
version: z.ZodNumber;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
action: z.ZodLiteral<"purge">;
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
version: z.ZodNumber;
|
|
282
|
+
confirmTitle: z.ZodString;
|
|
283
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
284
|
+
action: z.ZodLiteral<"settings">;
|
|
285
|
+
settings: z.ZodObject<{
|
|
286
|
+
revision: z.ZodDefault<z.ZodNumber>;
|
|
287
|
+
autoRecall: z.ZodDefault<z.ZodBoolean>;
|
|
288
|
+
autoCapture: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
290
|
+
model: z.ZodDefault<z.ZodString>;
|
|
291
|
+
maxDailyCalls: z.ZodDefault<z.ZodNumber>;
|
|
292
|
+
maxRecallChars: z.ZodDefault<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strict>;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
action: z.ZodLiteral<"capture">;
|
|
296
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
expectedModel: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
provider: z.ZodString;
|
|
299
|
+
model: z.ZodString;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
action: z.ZodLiteral<"cancel">;
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
}, z.core.$strict>], "action">;
|
|
305
|
+
export type Mutation = z.infer<typeof mutationSchema>;
|
|
306
|
+
export declare const captureModelSchema: z.ZodObject<{
|
|
307
|
+
provider: z.ZodString;
|
|
308
|
+
model: z.ZodString;
|
|
309
|
+
source: z.ZodEnum<{
|
|
310
|
+
session: "session";
|
|
311
|
+
default: "default";
|
|
312
|
+
custom: "custom";
|
|
313
|
+
}>;
|
|
314
|
+
available: z.ZodBoolean;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
export declare const modelDirectorySchema: z.ZodObject<{
|
|
317
|
+
providers: z.ZodArray<z.ZodObject<{
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
models: z.ZodArray<z.ZodObject<{
|
|
321
|
+
id: z.ZodString;
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
unavailable: z.ZodBoolean;
|
|
325
|
+
}, z.core.$strip>>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
export type CaptureModel = z.infer<typeof captureModelSchema>;
|
|
328
|
+
export type ModelDirectory = z.infer<typeof modelDirectorySchema>;
|
|
329
|
+
export declare const stateSchema: z.ZodObject<{
|
|
330
|
+
profile: z.ZodString;
|
|
331
|
+
scope: z.ZodObject<{
|
|
332
|
+
workspace: z.ZodString;
|
|
333
|
+
session: z.ZodNullable<z.ZodString>;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
selectedSession: z.ZodNullable<z.ZodString>;
|
|
336
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
title: z.ZodString;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
title: z.ZodString;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
345
|
+
title: z.ZodString;
|
|
346
|
+
content: z.ZodString;
|
|
347
|
+
kind: z.ZodEnum<{
|
|
348
|
+
agreement: "agreement";
|
|
349
|
+
decision: "decision";
|
|
350
|
+
lesson: "lesson";
|
|
351
|
+
handoff: "handoff";
|
|
352
|
+
}>;
|
|
353
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
354
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
355
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
356
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
357
|
+
workspace: "workspace";
|
|
358
|
+
session: "session";
|
|
359
|
+
personal: "personal";
|
|
360
|
+
}>>;
|
|
361
|
+
id: z.ZodString;
|
|
362
|
+
version: z.ZodNumber;
|
|
363
|
+
workspace: z.ZodString;
|
|
364
|
+
session: z.ZodNullable<z.ZodString>;
|
|
365
|
+
state: z.ZodEnum<{
|
|
366
|
+
active: "active";
|
|
367
|
+
trash: "trash";
|
|
368
|
+
}>;
|
|
369
|
+
source: z.ZodObject<{
|
|
370
|
+
kind: z.ZodEnum<{
|
|
371
|
+
manual: "manual";
|
|
372
|
+
model: "model";
|
|
373
|
+
capture: "capture";
|
|
374
|
+
}>;
|
|
375
|
+
session: z.ZodNullable<z.ZodString>;
|
|
376
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
377
|
+
evidence: z.ZodString;
|
|
378
|
+
seqs: z.ZodArray<z.ZodNumber>;
|
|
379
|
+
}, z.core.$strict>;
|
|
380
|
+
updated: z.ZodString;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
revision: z.ZodString;
|
|
385
|
+
target: z.ZodNullable<z.ZodString>;
|
|
386
|
+
expected: z.ZodNumber;
|
|
387
|
+
workspace: z.ZodString;
|
|
388
|
+
session: z.ZodNullable<z.ZodString>;
|
|
389
|
+
draft: z.ZodObject<{
|
|
390
|
+
title: z.ZodString;
|
|
391
|
+
content: z.ZodString;
|
|
392
|
+
kind: z.ZodEnum<{
|
|
393
|
+
agreement: "agreement";
|
|
394
|
+
decision: "decision";
|
|
395
|
+
lesson: "lesson";
|
|
396
|
+
handoff: "handoff";
|
|
397
|
+
}>;
|
|
398
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
399
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
400
|
+
recall: z.ZodDefault<z.ZodBoolean>;
|
|
401
|
+
range: z.ZodDefault<z.ZodEnum<{
|
|
402
|
+
workspace: "workspace";
|
|
403
|
+
session: "session";
|
|
404
|
+
personal: "personal";
|
|
405
|
+
}>>;
|
|
406
|
+
}, z.core.$strict>;
|
|
407
|
+
source: z.ZodObject<{
|
|
408
|
+
kind: z.ZodEnum<{
|
|
409
|
+
manual: "manual";
|
|
410
|
+
model: "model";
|
|
411
|
+
capture: "capture";
|
|
412
|
+
}>;
|
|
413
|
+
session: z.ZodNullable<z.ZodString>;
|
|
414
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
415
|
+
evidence: z.ZodString;
|
|
416
|
+
seqs: z.ZodArray<z.ZodNumber>;
|
|
417
|
+
}, z.core.$strict>;
|
|
418
|
+
state: z.ZodEnum<{
|
|
419
|
+
pending: "pending";
|
|
420
|
+
rejected: "rejected";
|
|
421
|
+
accepted: "accepted";
|
|
422
|
+
}>;
|
|
423
|
+
updated: z.ZodString;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
activities: z.ZodArray<z.ZodObject<{
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
workspace: z.ZodString;
|
|
428
|
+
session: z.ZodNullable<z.ZodString>;
|
|
429
|
+
turn: z.ZodNullable<z.ZodNumber>;
|
|
430
|
+
kind: z.ZodString;
|
|
431
|
+
reason: z.ZodString;
|
|
432
|
+
items: z.ZodArray<z.ZodObject<{
|
|
433
|
+
id: z.ZodString;
|
|
434
|
+
version: z.ZodNumber;
|
|
435
|
+
title: z.ZodString;
|
|
436
|
+
summary: z.ZodString;
|
|
437
|
+
status: z.ZodEnum<{
|
|
438
|
+
prepared: "prepared";
|
|
439
|
+
included: "included";
|
|
440
|
+
search: "search";
|
|
441
|
+
read: "read";
|
|
442
|
+
deleted: "deleted";
|
|
443
|
+
}>;
|
|
444
|
+
}, z.core.$strip>>;
|
|
445
|
+
updated: z.ZodString;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
workspace: z.ZodString;
|
|
450
|
+
session: z.ZodString;
|
|
451
|
+
turn: z.ZodNumber;
|
|
452
|
+
state: z.ZodEnum<{
|
|
453
|
+
queued: "queued";
|
|
454
|
+
running: "running";
|
|
455
|
+
done: "done";
|
|
456
|
+
failed: "failed";
|
|
457
|
+
cancelled: "cancelled";
|
|
458
|
+
interrupted: "interrupted";
|
|
459
|
+
skipped: "skipped";
|
|
460
|
+
}>;
|
|
461
|
+
reason: z.ZodString;
|
|
462
|
+
candidateIds: z.ZodArray<z.ZodString>;
|
|
463
|
+
updated: z.ZodString;
|
|
464
|
+
automatic: z.ZodBoolean;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
settings: z.ZodObject<{
|
|
467
|
+
revision: z.ZodDefault<z.ZodNumber>;
|
|
468
|
+
autoRecall: z.ZodDefault<z.ZodBoolean>;
|
|
469
|
+
autoCapture: z.ZodDefault<z.ZodBoolean>;
|
|
470
|
+
provider: z.ZodDefault<z.ZodString>;
|
|
471
|
+
model: z.ZodDefault<z.ZodString>;
|
|
472
|
+
maxDailyCalls: z.ZodDefault<z.ZodNumber>;
|
|
473
|
+
maxRecallChars: z.ZodDefault<z.ZodNumber>;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
captureModel: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
476
|
+
provider: z.ZodString;
|
|
477
|
+
model: z.ZodString;
|
|
478
|
+
source: z.ZodEnum<{
|
|
479
|
+
session: "session";
|
|
480
|
+
default: "default";
|
|
481
|
+
custom: "custom";
|
|
482
|
+
}>;
|
|
483
|
+
available: z.ZodBoolean;
|
|
484
|
+
}, z.core.$strip>>>;
|
|
485
|
+
followingModel: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
486
|
+
provider: z.ZodString;
|
|
487
|
+
model: z.ZodString;
|
|
488
|
+
source: z.ZodEnum<{
|
|
489
|
+
session: "session";
|
|
490
|
+
default: "default";
|
|
491
|
+
custom: "custom";
|
|
492
|
+
}>;
|
|
493
|
+
available: z.ZodBoolean;
|
|
494
|
+
}, z.core.$strip>>>;
|
|
495
|
+
}, z.core.$strip>;
|
|
496
|
+
export type State = z.infer<typeof stateSchema>;
|
|
497
|
+
export declare const visible: (value: {
|
|
498
|
+
workspace: string;
|
|
499
|
+
session: string | null;
|
|
500
|
+
}, scope: Scope) => boolean;
|
|
501
|
+
export declare class MemoryError extends Error {
|
|
502
|
+
readonly code: string;
|
|
503
|
+
readonly status: number;
|
|
504
|
+
constructor(code: string, status?: number);
|
|
505
|
+
}
|
|
506
|
+
export declare function abort(signal?: AbortSignal): void;
|