beercan 0.6.12 → 0.6.14

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 (91) hide show
  1. package/README.md +60 -10
  2. package/dist/chat/index.d.ts +3 -3
  3. package/dist/chat/index.d.ts.map +1 -1
  4. package/dist/chat/index.js +4 -4
  5. package/dist/chat/index.js.map +1 -1
  6. package/dist/chat/intent.d.ts +2 -2
  7. package/dist/chat/intent.d.ts.map +1 -1
  8. package/dist/chat/intent.js +7 -7
  9. package/dist/chat/intent.js.map +1 -1
  10. package/dist/cli.js +269 -23
  11. package/dist/cli.js.map +1 -1
  12. package/dist/config.d.ts +12 -0
  13. package/dist/config.d.ts.map +1 -1
  14. package/dist/config.js +9 -0
  15. package/dist/config.js.map +1 -1
  16. package/dist/core/gatekeeper.d.ts +3 -3
  17. package/dist/core/gatekeeper.d.ts.map +1 -1
  18. package/dist/core/gatekeeper.js +12 -12
  19. package/dist/core/gatekeeper.js.map +1 -1
  20. package/dist/core/reflection.d.ts +3 -3
  21. package/dist/core/reflection.d.ts.map +1 -1
  22. package/dist/core/reflection.js +10 -10
  23. package/dist/core/reflection.js.map +1 -1
  24. package/dist/core/roles.js +1 -1
  25. package/dist/core/roles.js.map +1 -1
  26. package/dist/core/runner.d.ts +3 -3
  27. package/dist/core/runner.d.ts.map +1 -1
  28. package/dist/core/runner.js +12 -14
  29. package/dist/core/runner.js.map +1 -1
  30. package/dist/events/daemon.js +3 -3
  31. package/dist/events/daemon.js.map +1 -1
  32. package/dist/index.d.ts +30 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +50 -5
  35. package/dist/index.js.map +1 -1
  36. package/dist/providers/anthropic.d.ts +8 -0
  37. package/dist/providers/anthropic.d.ts.map +1 -0
  38. package/dist/providers/anthropic.js +70 -0
  39. package/dist/providers/anthropic.js.map +1 -0
  40. package/dist/providers/factory.d.ts +3 -0
  41. package/dist/providers/factory.d.ts.map +1 -0
  42. package/dist/providers/factory.js +58 -0
  43. package/dist/providers/factory.js.map +1 -0
  44. package/dist/providers/index.d.ts +5 -0
  45. package/dist/providers/index.d.ts.map +1 -0
  46. package/dist/providers/index.js +4 -0
  47. package/dist/providers/index.js.map +1 -0
  48. package/dist/providers/openai.d.ts +16 -0
  49. package/dist/providers/openai.d.ts.map +1 -0
  50. package/dist/providers/openai.js +176 -0
  51. package/dist/providers/openai.js.map +1 -0
  52. package/dist/providers/types.d.ts +54 -0
  53. package/dist/providers/types.d.ts.map +1 -0
  54. package/dist/providers/types.js +4 -0
  55. package/dist/providers/types.js.map +1 -0
  56. package/dist/skills/index.d.ts.map +1 -1
  57. package/dist/skills/index.js +44 -0
  58. package/dist/skills/index.js.map +1 -1
  59. package/dist/tools/builtin/email.d.ts +5 -0
  60. package/dist/tools/builtin/email.d.ts.map +1 -0
  61. package/dist/tools/builtin/email.js +171 -0
  62. package/dist/tools/builtin/email.js.map +1 -0
  63. package/dist/tools/registry.d.ts +3 -12
  64. package/dist/tools/registry.d.ts.map +1 -1
  65. package/dist/tools/registry.js +3 -3
  66. package/dist/tools/registry.js.map +1 -1
  67. package/dist/training/curriculum.d.ts +4 -0
  68. package/dist/training/curriculum.d.ts.map +1 -0
  69. package/dist/training/curriculum.js +512 -0
  70. package/dist/training/curriculum.js.map +1 -0
  71. package/dist/training/evaluator.d.ts +21 -0
  72. package/dist/training/evaluator.d.ts.map +1 -0
  73. package/dist/training/evaluator.js +163 -0
  74. package/dist/training/evaluator.js.map +1 -0
  75. package/dist/training/exporter.d.ts +35 -0
  76. package/dist/training/exporter.d.ts.map +1 -0
  77. package/dist/training/exporter.js +377 -0
  78. package/dist/training/exporter.js.map +1 -0
  79. package/dist/training/index.d.ts +5 -0
  80. package/dist/training/index.d.ts.map +1 -0
  81. package/dist/training/index.js +5 -0
  82. package/dist/training/index.js.map +1 -0
  83. package/dist/training/sandbox-manager.d.ts +58 -0
  84. package/dist/training/sandbox-manager.d.ts.map +1 -0
  85. package/dist/training/sandbox-manager.js +416 -0
  86. package/dist/training/sandbox-manager.js.map +1 -0
  87. package/dist/training/types.d.ts +790 -0
  88. package/dist/training/types.d.ts.map +1 -0
  89. package/dist/training/types.js +154 -0
  90. package/dist/training/types.js.map +1 -0
  91. package/package.json +1 -1
@@ -0,0 +1,790 @@
1
+ import { z } from "zod";
2
+ export declare const ScenarioDifficulty: z.ZodEnum<["novice", "apprentice", "journeyman", "expert"]>;
3
+ export type ScenarioDifficulty = z.infer<typeof ScenarioDifficulty>;
4
+ export declare const ScenarioCategory: z.ZodEnum<["memory", "tools", "reasoning", "coding", "creativity", "planning", "self_improvement"]>;
5
+ export type ScenarioCategory = z.infer<typeof ScenarioCategory>;
6
+ export declare const EvaluatorType: z.ZodEnum<["llm", "regex", "contains"]>;
7
+ export type EvaluatorType = z.infer<typeof EvaluatorType>;
8
+ export declare const EvaluatorConfigSchema: z.ZodObject<{
9
+ /** For regex/contains: the pattern to match against the result */
10
+ pattern: z.ZodOptional<z.ZodString>;
11
+ /** For llm: the criteria to evaluate against */
12
+ criteria: z.ZodOptional<z.ZodString>;
13
+ /** Pass threshold for LLM scores (default 0.6) */
14
+ passThreshold: z.ZodDefault<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ passThreshold: number;
17
+ pattern?: string | undefined;
18
+ criteria?: string | undefined;
19
+ }, {
20
+ pattern?: string | undefined;
21
+ criteria?: string | undefined;
22
+ passThreshold?: number | undefined;
23
+ }>;
24
+ export type EvaluatorConfig = z.infer<typeof EvaluatorConfigSchema>;
25
+ export declare const TrainingScenarioSchema: z.ZodObject<{
26
+ id: z.ZodString;
27
+ name: z.ZodString;
28
+ difficulty: z.ZodEnum<["novice", "apprentice", "journeyman", "expert"]>;
29
+ category: z.ZodEnum<["memory", "tools", "reasoning", "coding", "creativity", "planning", "self_improvement"]>;
30
+ /** The goal string passed to the bloop */
31
+ goal: z.ZodString;
32
+ /** Human-readable description of what is being evaluated */
33
+ evaluationCriteria: z.ZodString;
34
+ evaluatorType: z.ZodEnum<["llm", "regex", "contains"]>;
35
+ evaluatorConfig: z.ZodObject<{
36
+ /** For regex/contains: the pattern to match against the result */
37
+ pattern: z.ZodOptional<z.ZodString>;
38
+ /** For llm: the criteria to evaluate against */
39
+ criteria: z.ZodOptional<z.ZodString>;
40
+ /** Pass threshold for LLM scores (default 0.6) */
41
+ passThreshold: z.ZodDefault<z.ZodNumber>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ passThreshold: number;
44
+ pattern?: string | undefined;
45
+ criteria?: string | undefined;
46
+ }, {
47
+ pattern?: string | undefined;
48
+ criteria?: string | undefined;
49
+ passThreshold?: number | undefined;
50
+ }>;
51
+ /** What capabilities this scenario teaches/tests */
52
+ teaches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
53
+ /** Tool names required for this scenario */
54
+ requiredTools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
55
+ /** IDs of scenarios that must be passed before this one */
56
+ prerequisites: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
57
+ maxAttempts: z.ZodDefault<z.ZodNumber>;
58
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ id: string;
61
+ goal: string;
62
+ name: string;
63
+ difficulty: "novice" | "apprentice" | "journeyman" | "expert";
64
+ category: "memory" | "reasoning" | "tools" | "coding" | "creativity" | "planning" | "self_improvement";
65
+ evaluationCriteria: string;
66
+ evaluatorType: "llm" | "regex" | "contains";
67
+ evaluatorConfig: {
68
+ passThreshold: number;
69
+ pattern?: string | undefined;
70
+ criteria?: string | undefined;
71
+ };
72
+ teaches: string[];
73
+ requiredTools: string[];
74
+ prerequisites: string[];
75
+ maxAttempts: number;
76
+ timeoutMs: number;
77
+ }, {
78
+ id: string;
79
+ goal: string;
80
+ name: string;
81
+ difficulty: "novice" | "apprentice" | "journeyman" | "expert";
82
+ category: "memory" | "reasoning" | "tools" | "coding" | "creativity" | "planning" | "self_improvement";
83
+ evaluationCriteria: string;
84
+ evaluatorType: "llm" | "regex" | "contains";
85
+ evaluatorConfig: {
86
+ pattern?: string | undefined;
87
+ criteria?: string | undefined;
88
+ passThreshold?: number | undefined;
89
+ };
90
+ teaches?: string[] | undefined;
91
+ requiredTools?: string[] | undefined;
92
+ prerequisites?: string[] | undefined;
93
+ maxAttempts?: number | undefined;
94
+ timeoutMs?: number | undefined;
95
+ }>;
96
+ export type TrainingScenario = z.infer<typeof TrainingScenarioSchema>;
97
+ export declare const AttemptStatusSchema: z.ZodEnum<["pass", "fail", "error"]>;
98
+ export type AttemptStatus = z.infer<typeof AttemptStatusSchema>;
99
+ export declare const ScenarioAttemptSchema: z.ZodObject<{
100
+ scenarioId: z.ZodString;
101
+ bloopId: z.ZodString;
102
+ status: z.ZodEnum<["pass", "fail", "error"]>;
103
+ /** Score between 0 and 1 */
104
+ score: z.ZodNumber;
105
+ feedback: z.ZodString;
106
+ tokensUsed: z.ZodNumber;
107
+ durationMs: z.ZodNumber;
108
+ attemptNumber: z.ZodNumber;
109
+ timestamp: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ status: "error" | "pass" | "fail";
112
+ durationMs: number;
113
+ timestamp: string;
114
+ tokensUsed: number;
115
+ score: number;
116
+ bloopId: string;
117
+ scenarioId: string;
118
+ feedback: string;
119
+ attemptNumber: number;
120
+ }, {
121
+ status: "error" | "pass" | "fail";
122
+ durationMs: number;
123
+ timestamp: string;
124
+ tokensUsed: number;
125
+ score: number;
126
+ bloopId: string;
127
+ scenarioId: string;
128
+ feedback: string;
129
+ attemptNumber: number;
130
+ }>;
131
+ export type ScenarioAttempt = z.infer<typeof ScenarioAttemptSchema>;
132
+ export declare const GraduationStatus: z.ZodEnum<["training", "graduated", "failed"]>;
133
+ export type GraduationStatus = z.infer<typeof GraduationStatus>;
134
+ export declare const FailedScenarioRecordSchema: z.ZodObject<{
135
+ id: z.ZodString;
136
+ attempts: z.ZodNumber;
137
+ }, "strip", z.ZodTypeAny, {
138
+ id: string;
139
+ attempts: number;
140
+ }, {
141
+ id: string;
142
+ attempts: number;
143
+ }>;
144
+ export type FailedScenarioRecord = z.infer<typeof FailedScenarioRecordSchema>;
145
+ export declare const TrainingProgressSchema: z.ZodObject<{
146
+ projectSlug: z.ZodString;
147
+ currentLevel: z.ZodEnum<["novice", "apprentice", "journeyman", "expert"]>;
148
+ passedScenarios: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
149
+ failedScenarios: z.ZodDefault<z.ZodArray<z.ZodObject<{
150
+ id: z.ZodString;
151
+ attempts: z.ZodNumber;
152
+ }, "strip", z.ZodTypeAny, {
153
+ id: string;
154
+ attempts: number;
155
+ }, {
156
+ id: string;
157
+ attempts: number;
158
+ }>, "many">>;
159
+ scenarioAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
160
+ scenarioId: z.ZodString;
161
+ bloopId: z.ZodString;
162
+ status: z.ZodEnum<["pass", "fail", "error"]>;
163
+ /** Score between 0 and 1 */
164
+ score: z.ZodNumber;
165
+ feedback: z.ZodString;
166
+ tokensUsed: z.ZodNumber;
167
+ durationMs: z.ZodNumber;
168
+ attemptNumber: z.ZodNumber;
169
+ timestamp: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ status: "error" | "pass" | "fail";
172
+ durationMs: number;
173
+ timestamp: string;
174
+ tokensUsed: number;
175
+ score: number;
176
+ bloopId: string;
177
+ scenarioId: string;
178
+ feedback: string;
179
+ attemptNumber: number;
180
+ }, {
181
+ status: "error" | "pass" | "fail";
182
+ durationMs: number;
183
+ timestamp: string;
184
+ tokensUsed: number;
185
+ score: number;
186
+ bloopId: string;
187
+ scenarioId: string;
188
+ feedback: string;
189
+ attemptNumber: number;
190
+ }>, "many">>;
191
+ createdTools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
192
+ createdSkills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
193
+ graduationStatus: z.ZodDefault<z.ZodEnum<["training", "graduated", "failed"]>>;
194
+ startedAt: z.ZodString;
195
+ graduatedAt: z.ZodOptional<z.ZodString>;
196
+ totalTokensUsed: z.ZodDefault<z.ZodNumber>;
197
+ totalBloops: z.ZodDefault<z.ZodNumber>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ projectSlug: string;
200
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
201
+ passedScenarios: string[];
202
+ failedScenarios: {
203
+ id: string;
204
+ attempts: number;
205
+ }[];
206
+ scenarioAttempts: {
207
+ status: "error" | "pass" | "fail";
208
+ durationMs: number;
209
+ timestamp: string;
210
+ tokensUsed: number;
211
+ score: number;
212
+ bloopId: string;
213
+ scenarioId: string;
214
+ feedback: string;
215
+ attemptNumber: number;
216
+ }[];
217
+ createdTools: string[];
218
+ createdSkills: string[];
219
+ graduationStatus: "failed" | "training" | "graduated";
220
+ startedAt: string;
221
+ totalTokensUsed: number;
222
+ totalBloops: number;
223
+ graduatedAt?: string | undefined;
224
+ }, {
225
+ projectSlug: string;
226
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
227
+ startedAt: string;
228
+ passedScenarios?: string[] | undefined;
229
+ failedScenarios?: {
230
+ id: string;
231
+ attempts: number;
232
+ }[] | undefined;
233
+ scenarioAttempts?: {
234
+ status: "error" | "pass" | "fail";
235
+ durationMs: number;
236
+ timestamp: string;
237
+ tokensUsed: number;
238
+ score: number;
239
+ bloopId: string;
240
+ scenarioId: string;
241
+ feedback: string;
242
+ attemptNumber: number;
243
+ }[] | undefined;
244
+ createdTools?: string[] | undefined;
245
+ createdSkills?: string[] | undefined;
246
+ graduationStatus?: "failed" | "training" | "graduated" | undefined;
247
+ graduatedAt?: string | undefined;
248
+ totalTokensUsed?: number | undefined;
249
+ totalBloops?: number | undefined;
250
+ }>;
251
+ export type TrainingProgress = z.infer<typeof TrainingProgressSchema>;
252
+ export declare const GraduationCriteriaSchema: z.ZodObject<{
253
+ /** Minimum pass rate required per difficulty level (0-1) */
254
+ minPassRateByLevel: z.ZodRecord<z.ZodEnum<["novice", "apprentice", "journeyman", "expert"]>, z.ZodNumber>;
255
+ /** Scenario IDs that must be passed regardless of pass rate */
256
+ requiredScenarioIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
257
+ /** Minimum number of custom tools created */
258
+ minToolsCreated: z.ZodDefault<z.ZodNumber>;
259
+ /** Minimum number of skills created */
260
+ minSkillsCreated: z.ZodDefault<z.ZodNumber>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ minPassRateByLevel: Partial<Record<"novice" | "apprentice" | "journeyman" | "expert", number>>;
263
+ requiredScenarioIds: string[];
264
+ minToolsCreated: number;
265
+ minSkillsCreated: number;
266
+ }, {
267
+ minPassRateByLevel: Partial<Record<"novice" | "apprentice" | "journeyman" | "expert", number>>;
268
+ requiredScenarioIds?: string[] | undefined;
269
+ minToolsCreated?: number | undefined;
270
+ minSkillsCreated?: number | undefined;
271
+ }>;
272
+ export type GraduationCriteria = z.infer<typeof GraduationCriteriaSchema>;
273
+ export declare const AgentPackageMemorySchema: z.ZodObject<{
274
+ id: z.ZodString;
275
+ projectId: z.ZodString;
276
+ memoryType: z.ZodString;
277
+ title: z.ZodString;
278
+ content: z.ZodString;
279
+ sourceBloopId: z.ZodNullable<z.ZodString>;
280
+ supersededBy: z.ZodNullable<z.ZodString>;
281
+ confidence: z.ZodNumber;
282
+ tags: z.ZodArray<z.ZodString, "many">;
283
+ createdAt: z.ZodString;
284
+ updatedAt: z.ZodString;
285
+ }, "strip", z.ZodTypeAny, {
286
+ id: string;
287
+ content: string;
288
+ projectId: string;
289
+ createdAt: string;
290
+ updatedAt: string;
291
+ memoryType: string;
292
+ title: string;
293
+ sourceBloopId: string | null;
294
+ supersededBy: string | null;
295
+ confidence: number;
296
+ tags: string[];
297
+ }, {
298
+ id: string;
299
+ content: string;
300
+ projectId: string;
301
+ createdAt: string;
302
+ updatedAt: string;
303
+ memoryType: string;
304
+ title: string;
305
+ sourceBloopId: string | null;
306
+ supersededBy: string | null;
307
+ confidence: number;
308
+ tags: string[];
309
+ }>;
310
+ export type AgentPackageMemory = z.infer<typeof AgentPackageMemorySchema>;
311
+ export declare const AgentPackageKGEntitySchema: z.ZodObject<{
312
+ id: z.ZodString;
313
+ projectId: z.ZodString;
314
+ name: z.ZodString;
315
+ entityType: z.ZodString;
316
+ description: z.ZodNullable<z.ZodString>;
317
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
318
+ sourceBloopId: z.ZodNullable<z.ZodString>;
319
+ sourceMemoryId: z.ZodNullable<z.ZodString>;
320
+ createdAt: z.ZodString;
321
+ updatedAt: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ id: string;
324
+ projectId: string;
325
+ createdAt: string;
326
+ updatedAt: string;
327
+ name: string;
328
+ description: string | null;
329
+ sourceBloopId: string | null;
330
+ entityType: string;
331
+ properties: Record<string, unknown>;
332
+ sourceMemoryId: string | null;
333
+ }, {
334
+ id: string;
335
+ projectId: string;
336
+ createdAt: string;
337
+ updatedAt: string;
338
+ name: string;
339
+ description: string | null;
340
+ sourceBloopId: string | null;
341
+ entityType: string;
342
+ properties: Record<string, unknown>;
343
+ sourceMemoryId: string | null;
344
+ }>;
345
+ export type AgentPackageKGEntity = z.infer<typeof AgentPackageKGEntitySchema>;
346
+ export declare const AgentPackageKGEdgeSchema: z.ZodObject<{
347
+ id: z.ZodString;
348
+ projectId: z.ZodString;
349
+ sourceId: z.ZodString;
350
+ targetId: z.ZodString;
351
+ edgeType: z.ZodString;
352
+ weight: z.ZodNumber;
353
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
354
+ sourceBloopId: z.ZodNullable<z.ZodString>;
355
+ createdAt: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ id: string;
358
+ projectId: string;
359
+ createdAt: string;
360
+ sourceBloopId: string | null;
361
+ properties: Record<string, unknown>;
362
+ sourceId: string;
363
+ targetId: string;
364
+ edgeType: string;
365
+ weight: number;
366
+ }, {
367
+ id: string;
368
+ projectId: string;
369
+ createdAt: string;
370
+ sourceBloopId: string | null;
371
+ properties: Record<string, unknown>;
372
+ sourceId: string;
373
+ targetId: string;
374
+ edgeType: string;
375
+ weight: number;
376
+ }>;
377
+ export type AgentPackageKGEdge = z.infer<typeof AgentPackageKGEdgeSchema>;
378
+ export declare const AgentPackageSkillSchema: z.ZodObject<{
379
+ name: z.ZodString;
380
+ content: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ content: string;
383
+ name: string;
384
+ }, {
385
+ content: string;
386
+ name: string;
387
+ }>;
388
+ export type AgentPackageSkill = z.infer<typeof AgentPackageSkillSchema>;
389
+ export declare const AgentPackageToolSchema: z.ZodObject<{
390
+ name: z.ZodString;
391
+ content: z.ZodString;
392
+ }, "strip", z.ZodTypeAny, {
393
+ content: string;
394
+ name: string;
395
+ }, {
396
+ content: string;
397
+ name: string;
398
+ }>;
399
+ export type AgentPackageTool = z.infer<typeof AgentPackageToolSchema>;
400
+ export declare const AgentPackageSchema: z.ZodObject<{
401
+ version: z.ZodString;
402
+ exportedAt: z.ZodString;
403
+ agentName: z.ZodString;
404
+ agentSlug: z.ZodString;
405
+ trainingProgress: z.ZodOptional<z.ZodObject<{
406
+ projectSlug: z.ZodString;
407
+ currentLevel: z.ZodEnum<["novice", "apprentice", "journeyman", "expert"]>;
408
+ passedScenarios: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
409
+ failedScenarios: z.ZodDefault<z.ZodArray<z.ZodObject<{
410
+ id: z.ZodString;
411
+ attempts: z.ZodNumber;
412
+ }, "strip", z.ZodTypeAny, {
413
+ id: string;
414
+ attempts: number;
415
+ }, {
416
+ id: string;
417
+ attempts: number;
418
+ }>, "many">>;
419
+ scenarioAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
420
+ scenarioId: z.ZodString;
421
+ bloopId: z.ZodString;
422
+ status: z.ZodEnum<["pass", "fail", "error"]>;
423
+ /** Score between 0 and 1 */
424
+ score: z.ZodNumber;
425
+ feedback: z.ZodString;
426
+ tokensUsed: z.ZodNumber;
427
+ durationMs: z.ZodNumber;
428
+ attemptNumber: z.ZodNumber;
429
+ timestamp: z.ZodString;
430
+ }, "strip", z.ZodTypeAny, {
431
+ status: "error" | "pass" | "fail";
432
+ durationMs: number;
433
+ timestamp: string;
434
+ tokensUsed: number;
435
+ score: number;
436
+ bloopId: string;
437
+ scenarioId: string;
438
+ feedback: string;
439
+ attemptNumber: number;
440
+ }, {
441
+ status: "error" | "pass" | "fail";
442
+ durationMs: number;
443
+ timestamp: string;
444
+ tokensUsed: number;
445
+ score: number;
446
+ bloopId: string;
447
+ scenarioId: string;
448
+ feedback: string;
449
+ attemptNumber: number;
450
+ }>, "many">>;
451
+ createdTools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
452
+ createdSkills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
453
+ graduationStatus: z.ZodDefault<z.ZodEnum<["training", "graduated", "failed"]>>;
454
+ startedAt: z.ZodString;
455
+ graduatedAt: z.ZodOptional<z.ZodString>;
456
+ totalTokensUsed: z.ZodDefault<z.ZodNumber>;
457
+ totalBloops: z.ZodDefault<z.ZodNumber>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ projectSlug: string;
460
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
461
+ passedScenarios: string[];
462
+ failedScenarios: {
463
+ id: string;
464
+ attempts: number;
465
+ }[];
466
+ scenarioAttempts: {
467
+ status: "error" | "pass" | "fail";
468
+ durationMs: number;
469
+ timestamp: string;
470
+ tokensUsed: number;
471
+ score: number;
472
+ bloopId: string;
473
+ scenarioId: string;
474
+ feedback: string;
475
+ attemptNumber: number;
476
+ }[];
477
+ createdTools: string[];
478
+ createdSkills: string[];
479
+ graduationStatus: "failed" | "training" | "graduated";
480
+ startedAt: string;
481
+ totalTokensUsed: number;
482
+ totalBloops: number;
483
+ graduatedAt?: string | undefined;
484
+ }, {
485
+ projectSlug: string;
486
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
487
+ startedAt: string;
488
+ passedScenarios?: string[] | undefined;
489
+ failedScenarios?: {
490
+ id: string;
491
+ attempts: number;
492
+ }[] | undefined;
493
+ scenarioAttempts?: {
494
+ status: "error" | "pass" | "fail";
495
+ durationMs: number;
496
+ timestamp: string;
497
+ tokensUsed: number;
498
+ score: number;
499
+ bloopId: string;
500
+ scenarioId: string;
501
+ feedback: string;
502
+ attemptNumber: number;
503
+ }[] | undefined;
504
+ createdTools?: string[] | undefined;
505
+ createdSkills?: string[] | undefined;
506
+ graduationStatus?: "failed" | "training" | "graduated" | undefined;
507
+ graduatedAt?: string | undefined;
508
+ totalTokensUsed?: number | undefined;
509
+ totalBloops?: number | undefined;
510
+ }>>;
511
+ memories: z.ZodDefault<z.ZodArray<z.ZodObject<{
512
+ id: z.ZodString;
513
+ projectId: z.ZodString;
514
+ memoryType: z.ZodString;
515
+ title: z.ZodString;
516
+ content: z.ZodString;
517
+ sourceBloopId: z.ZodNullable<z.ZodString>;
518
+ supersededBy: z.ZodNullable<z.ZodString>;
519
+ confidence: z.ZodNumber;
520
+ tags: z.ZodArray<z.ZodString, "many">;
521
+ createdAt: z.ZodString;
522
+ updatedAt: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ id: string;
525
+ content: string;
526
+ projectId: string;
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ memoryType: string;
530
+ title: string;
531
+ sourceBloopId: string | null;
532
+ supersededBy: string | null;
533
+ confidence: number;
534
+ tags: string[];
535
+ }, {
536
+ id: string;
537
+ content: string;
538
+ projectId: string;
539
+ createdAt: string;
540
+ updatedAt: string;
541
+ memoryType: string;
542
+ title: string;
543
+ sourceBloopId: string | null;
544
+ supersededBy: string | null;
545
+ confidence: number;
546
+ tags: string[];
547
+ }>, "many">>;
548
+ knowledgeGraphEntities: z.ZodDefault<z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ projectId: z.ZodString;
551
+ name: z.ZodString;
552
+ entityType: z.ZodString;
553
+ description: z.ZodNullable<z.ZodString>;
554
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
555
+ sourceBloopId: z.ZodNullable<z.ZodString>;
556
+ sourceMemoryId: z.ZodNullable<z.ZodString>;
557
+ createdAt: z.ZodString;
558
+ updatedAt: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ id: string;
561
+ projectId: string;
562
+ createdAt: string;
563
+ updatedAt: string;
564
+ name: string;
565
+ description: string | null;
566
+ sourceBloopId: string | null;
567
+ entityType: string;
568
+ properties: Record<string, unknown>;
569
+ sourceMemoryId: string | null;
570
+ }, {
571
+ id: string;
572
+ projectId: string;
573
+ createdAt: string;
574
+ updatedAt: string;
575
+ name: string;
576
+ description: string | null;
577
+ sourceBloopId: string | null;
578
+ entityType: string;
579
+ properties: Record<string, unknown>;
580
+ sourceMemoryId: string | null;
581
+ }>, "many">>;
582
+ knowledgeGraphEdges: z.ZodDefault<z.ZodArray<z.ZodObject<{
583
+ id: z.ZodString;
584
+ projectId: z.ZodString;
585
+ sourceId: z.ZodString;
586
+ targetId: z.ZodString;
587
+ edgeType: z.ZodString;
588
+ weight: z.ZodNumber;
589
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
590
+ sourceBloopId: z.ZodNullable<z.ZodString>;
591
+ createdAt: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ id: string;
594
+ projectId: string;
595
+ createdAt: string;
596
+ sourceBloopId: string | null;
597
+ properties: Record<string, unknown>;
598
+ sourceId: string;
599
+ targetId: string;
600
+ edgeType: string;
601
+ weight: number;
602
+ }, {
603
+ id: string;
604
+ projectId: string;
605
+ createdAt: string;
606
+ sourceBloopId: string | null;
607
+ properties: Record<string, unknown>;
608
+ sourceId: string;
609
+ targetId: string;
610
+ edgeType: string;
611
+ weight: number;
612
+ }>, "many">>;
613
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
614
+ name: z.ZodString;
615
+ content: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ content: string;
618
+ name: string;
619
+ }, {
620
+ content: string;
621
+ name: string;
622
+ }>, "many">>;
623
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
624
+ name: z.ZodString;
625
+ content: z.ZodString;
626
+ }, "strip", z.ZodTypeAny, {
627
+ content: string;
628
+ name: string;
629
+ }, {
630
+ content: string;
631
+ name: string;
632
+ }>, "many">>;
633
+ projectContext: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ version: string;
636
+ tools: {
637
+ content: string;
638
+ name: string;
639
+ }[];
640
+ skills: {
641
+ content: string;
642
+ name: string;
643
+ }[];
644
+ exportedAt: string;
645
+ agentName: string;
646
+ agentSlug: string;
647
+ memories: {
648
+ id: string;
649
+ content: string;
650
+ projectId: string;
651
+ createdAt: string;
652
+ updatedAt: string;
653
+ memoryType: string;
654
+ title: string;
655
+ sourceBloopId: string | null;
656
+ supersededBy: string | null;
657
+ confidence: number;
658
+ tags: string[];
659
+ }[];
660
+ knowledgeGraphEntities: {
661
+ id: string;
662
+ projectId: string;
663
+ createdAt: string;
664
+ updatedAt: string;
665
+ name: string;
666
+ description: string | null;
667
+ sourceBloopId: string | null;
668
+ entityType: string;
669
+ properties: Record<string, unknown>;
670
+ sourceMemoryId: string | null;
671
+ }[];
672
+ knowledgeGraphEdges: {
673
+ id: string;
674
+ projectId: string;
675
+ createdAt: string;
676
+ sourceBloopId: string | null;
677
+ properties: Record<string, unknown>;
678
+ sourceId: string;
679
+ targetId: string;
680
+ edgeType: string;
681
+ weight: number;
682
+ }[];
683
+ projectContext: Record<string, unknown>;
684
+ trainingProgress?: {
685
+ projectSlug: string;
686
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
687
+ passedScenarios: string[];
688
+ failedScenarios: {
689
+ id: string;
690
+ attempts: number;
691
+ }[];
692
+ scenarioAttempts: {
693
+ status: "error" | "pass" | "fail";
694
+ durationMs: number;
695
+ timestamp: string;
696
+ tokensUsed: number;
697
+ score: number;
698
+ bloopId: string;
699
+ scenarioId: string;
700
+ feedback: string;
701
+ attemptNumber: number;
702
+ }[];
703
+ createdTools: string[];
704
+ createdSkills: string[];
705
+ graduationStatus: "failed" | "training" | "graduated";
706
+ startedAt: string;
707
+ totalTokensUsed: number;
708
+ totalBloops: number;
709
+ graduatedAt?: string | undefined;
710
+ } | undefined;
711
+ }, {
712
+ version: string;
713
+ exportedAt: string;
714
+ agentName: string;
715
+ agentSlug: string;
716
+ tools?: {
717
+ content: string;
718
+ name: string;
719
+ }[] | undefined;
720
+ skills?: {
721
+ content: string;
722
+ name: string;
723
+ }[] | undefined;
724
+ trainingProgress?: {
725
+ projectSlug: string;
726
+ currentLevel: "novice" | "apprentice" | "journeyman" | "expert";
727
+ startedAt: string;
728
+ passedScenarios?: string[] | undefined;
729
+ failedScenarios?: {
730
+ id: string;
731
+ attempts: number;
732
+ }[] | undefined;
733
+ scenarioAttempts?: {
734
+ status: "error" | "pass" | "fail";
735
+ durationMs: number;
736
+ timestamp: string;
737
+ tokensUsed: number;
738
+ score: number;
739
+ bloopId: string;
740
+ scenarioId: string;
741
+ feedback: string;
742
+ attemptNumber: number;
743
+ }[] | undefined;
744
+ createdTools?: string[] | undefined;
745
+ createdSkills?: string[] | undefined;
746
+ graduationStatus?: "failed" | "training" | "graduated" | undefined;
747
+ graduatedAt?: string | undefined;
748
+ totalTokensUsed?: number | undefined;
749
+ totalBloops?: number | undefined;
750
+ } | undefined;
751
+ memories?: {
752
+ id: string;
753
+ content: string;
754
+ projectId: string;
755
+ createdAt: string;
756
+ updatedAt: string;
757
+ memoryType: string;
758
+ title: string;
759
+ sourceBloopId: string | null;
760
+ supersededBy: string | null;
761
+ confidence: number;
762
+ tags: string[];
763
+ }[] | undefined;
764
+ knowledgeGraphEntities?: {
765
+ id: string;
766
+ projectId: string;
767
+ createdAt: string;
768
+ updatedAt: string;
769
+ name: string;
770
+ description: string | null;
771
+ sourceBloopId: string | null;
772
+ entityType: string;
773
+ properties: Record<string, unknown>;
774
+ sourceMemoryId: string | null;
775
+ }[] | undefined;
776
+ knowledgeGraphEdges?: {
777
+ id: string;
778
+ projectId: string;
779
+ createdAt: string;
780
+ sourceBloopId: string | null;
781
+ properties: Record<string, unknown>;
782
+ sourceId: string;
783
+ targetId: string;
784
+ edgeType: string;
785
+ weight: number;
786
+ }[] | undefined;
787
+ projectContext?: Record<string, unknown> | undefined;
788
+ }>;
789
+ export type AgentPackage = z.infer<typeof AgentPackageSchema>;
790
+ //# sourceMappingURL=types.d.ts.map