@cleocode/cleo 2026.3.19 → 2026.3.20

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.
@@ -1,651 +0,0 @@
1
- {
2
- "version": "7",
3
- "dialect": "sqlite",
4
- "id": "2b8b63be-1c35-42d0-aabd-71d94ead02ff",
5
- "prevIds": [
6
- "00000000-0000-0000-0000-000000000000"
7
- ],
8
- "ddl": [
9
- {
10
- "name": "brain_decisions",
11
- "entityType": "tables"
12
- },
13
- {
14
- "name": "brain_learnings",
15
- "entityType": "tables"
16
- },
17
- {
18
- "name": "brain_memory_links",
19
- "entityType": "tables"
20
- },
21
- {
22
- "name": "brain_patterns",
23
- "entityType": "tables"
24
- },
25
- {
26
- "name": "brain_schema_meta",
27
- "entityType": "tables"
28
- },
29
- {
30
- "type": "text",
31
- "notNull": false,
32
- "autoincrement": false,
33
- "default": null,
34
- "generated": null,
35
- "name": "id",
36
- "entityType": "columns",
37
- "table": "brain_decisions"
38
- },
39
- {
40
- "type": "text",
41
- "notNull": true,
42
- "autoincrement": false,
43
- "default": null,
44
- "generated": null,
45
- "name": "type",
46
- "entityType": "columns",
47
- "table": "brain_decisions"
48
- },
49
- {
50
- "type": "text",
51
- "notNull": true,
52
- "autoincrement": false,
53
- "default": null,
54
- "generated": null,
55
- "name": "decision",
56
- "entityType": "columns",
57
- "table": "brain_decisions"
58
- },
59
- {
60
- "type": "text",
61
- "notNull": true,
62
- "autoincrement": false,
63
- "default": null,
64
- "generated": null,
65
- "name": "rationale",
66
- "entityType": "columns",
67
- "table": "brain_decisions"
68
- },
69
- {
70
- "type": "text",
71
- "notNull": true,
72
- "autoincrement": false,
73
- "default": null,
74
- "generated": null,
75
- "name": "confidence",
76
- "entityType": "columns",
77
- "table": "brain_decisions"
78
- },
79
- {
80
- "type": "text",
81
- "notNull": false,
82
- "autoincrement": false,
83
- "default": null,
84
- "generated": null,
85
- "name": "outcome",
86
- "entityType": "columns",
87
- "table": "brain_decisions"
88
- },
89
- {
90
- "type": "text",
91
- "notNull": false,
92
- "autoincrement": false,
93
- "default": null,
94
- "generated": null,
95
- "name": "alternatives_json",
96
- "entityType": "columns",
97
- "table": "brain_decisions"
98
- },
99
- {
100
- "type": "text",
101
- "notNull": false,
102
- "autoincrement": false,
103
- "default": null,
104
- "generated": null,
105
- "name": "context_epic_id",
106
- "entityType": "columns",
107
- "table": "brain_decisions"
108
- },
109
- {
110
- "type": "text",
111
- "notNull": false,
112
- "autoincrement": false,
113
- "default": null,
114
- "generated": null,
115
- "name": "context_task_id",
116
- "entityType": "columns",
117
- "table": "brain_decisions"
118
- },
119
- {
120
- "type": "text",
121
- "notNull": false,
122
- "autoincrement": false,
123
- "default": null,
124
- "generated": null,
125
- "name": "context_phase",
126
- "entityType": "columns",
127
- "table": "brain_decisions"
128
- },
129
- {
130
- "type": "text",
131
- "notNull": true,
132
- "autoincrement": false,
133
- "default": "(datetime('now'))",
134
- "generated": null,
135
- "name": "created_at",
136
- "entityType": "columns",
137
- "table": "brain_decisions"
138
- },
139
- {
140
- "type": "text",
141
- "notNull": false,
142
- "autoincrement": false,
143
- "default": null,
144
- "generated": null,
145
- "name": "updated_at",
146
- "entityType": "columns",
147
- "table": "brain_decisions"
148
- },
149
- {
150
- "type": "text",
151
- "notNull": false,
152
- "autoincrement": false,
153
- "default": null,
154
- "generated": null,
155
- "name": "id",
156
- "entityType": "columns",
157
- "table": "brain_learnings"
158
- },
159
- {
160
- "type": "text",
161
- "notNull": true,
162
- "autoincrement": false,
163
- "default": null,
164
- "generated": null,
165
- "name": "insight",
166
- "entityType": "columns",
167
- "table": "brain_learnings"
168
- },
169
- {
170
- "type": "text",
171
- "notNull": true,
172
- "autoincrement": false,
173
- "default": null,
174
- "generated": null,
175
- "name": "source",
176
- "entityType": "columns",
177
- "table": "brain_learnings"
178
- },
179
- {
180
- "type": "real",
181
- "notNull": true,
182
- "autoincrement": false,
183
- "default": null,
184
- "generated": null,
185
- "name": "confidence",
186
- "entityType": "columns",
187
- "table": "brain_learnings"
188
- },
189
- {
190
- "type": "integer",
191
- "notNull": true,
192
- "autoincrement": false,
193
- "default": "false",
194
- "generated": null,
195
- "name": "actionable",
196
- "entityType": "columns",
197
- "table": "brain_learnings"
198
- },
199
- {
200
- "type": "text",
201
- "notNull": false,
202
- "autoincrement": false,
203
- "default": null,
204
- "generated": null,
205
- "name": "application",
206
- "entityType": "columns",
207
- "table": "brain_learnings"
208
- },
209
- {
210
- "type": "text",
211
- "notNull": false,
212
- "autoincrement": false,
213
- "default": null,
214
- "generated": null,
215
- "name": "applicable_types_json",
216
- "entityType": "columns",
217
- "table": "brain_learnings"
218
- },
219
- {
220
- "type": "text",
221
- "notNull": true,
222
- "autoincrement": false,
223
- "default": "(datetime('now'))",
224
- "generated": null,
225
- "name": "created_at",
226
- "entityType": "columns",
227
- "table": "brain_learnings"
228
- },
229
- {
230
- "type": "text",
231
- "notNull": false,
232
- "autoincrement": false,
233
- "default": null,
234
- "generated": null,
235
- "name": "updated_at",
236
- "entityType": "columns",
237
- "table": "brain_learnings"
238
- },
239
- {
240
- "type": "text",
241
- "notNull": true,
242
- "autoincrement": false,
243
- "default": null,
244
- "generated": null,
245
- "name": "memory_type",
246
- "entityType": "columns",
247
- "table": "brain_memory_links"
248
- },
249
- {
250
- "type": "text",
251
- "notNull": true,
252
- "autoincrement": false,
253
- "default": null,
254
- "generated": null,
255
- "name": "memory_id",
256
- "entityType": "columns",
257
- "table": "brain_memory_links"
258
- },
259
- {
260
- "type": "text",
261
- "notNull": true,
262
- "autoincrement": false,
263
- "default": null,
264
- "generated": null,
265
- "name": "task_id",
266
- "entityType": "columns",
267
- "table": "brain_memory_links"
268
- },
269
- {
270
- "type": "text",
271
- "notNull": true,
272
- "autoincrement": false,
273
- "default": null,
274
- "generated": null,
275
- "name": "link_type",
276
- "entityType": "columns",
277
- "table": "brain_memory_links"
278
- },
279
- {
280
- "type": "text",
281
- "notNull": true,
282
- "autoincrement": false,
283
- "default": "(datetime('now'))",
284
- "generated": null,
285
- "name": "created_at",
286
- "entityType": "columns",
287
- "table": "brain_memory_links"
288
- },
289
- {
290
- "type": "text",
291
- "notNull": false,
292
- "autoincrement": false,
293
- "default": null,
294
- "generated": null,
295
- "name": "id",
296
- "entityType": "columns",
297
- "table": "brain_patterns"
298
- },
299
- {
300
- "type": "text",
301
- "notNull": true,
302
- "autoincrement": false,
303
- "default": null,
304
- "generated": null,
305
- "name": "type",
306
- "entityType": "columns",
307
- "table": "brain_patterns"
308
- },
309
- {
310
- "type": "text",
311
- "notNull": true,
312
- "autoincrement": false,
313
- "default": null,
314
- "generated": null,
315
- "name": "pattern",
316
- "entityType": "columns",
317
- "table": "brain_patterns"
318
- },
319
- {
320
- "type": "text",
321
- "notNull": true,
322
- "autoincrement": false,
323
- "default": null,
324
- "generated": null,
325
- "name": "context",
326
- "entityType": "columns",
327
- "table": "brain_patterns"
328
- },
329
- {
330
- "type": "integer",
331
- "notNull": true,
332
- "autoincrement": false,
333
- "default": "1",
334
- "generated": null,
335
- "name": "frequency",
336
- "entityType": "columns",
337
- "table": "brain_patterns"
338
- },
339
- {
340
- "type": "real",
341
- "notNull": false,
342
- "autoincrement": false,
343
- "default": null,
344
- "generated": null,
345
- "name": "success_rate",
346
- "entityType": "columns",
347
- "table": "brain_patterns"
348
- },
349
- {
350
- "type": "text",
351
- "notNull": false,
352
- "autoincrement": false,
353
- "default": null,
354
- "generated": null,
355
- "name": "impact",
356
- "entityType": "columns",
357
- "table": "brain_patterns"
358
- },
359
- {
360
- "type": "text",
361
- "notNull": false,
362
- "autoincrement": false,
363
- "default": null,
364
- "generated": null,
365
- "name": "anti_pattern",
366
- "entityType": "columns",
367
- "table": "brain_patterns"
368
- },
369
- {
370
- "type": "text",
371
- "notNull": false,
372
- "autoincrement": false,
373
- "default": null,
374
- "generated": null,
375
- "name": "mitigation",
376
- "entityType": "columns",
377
- "table": "brain_patterns"
378
- },
379
- {
380
- "type": "text",
381
- "notNull": false,
382
- "autoincrement": false,
383
- "default": "'[]'",
384
- "generated": null,
385
- "name": "examples_json",
386
- "entityType": "columns",
387
- "table": "brain_patterns"
388
- },
389
- {
390
- "type": "text",
391
- "notNull": true,
392
- "autoincrement": false,
393
- "default": "(datetime('now'))",
394
- "generated": null,
395
- "name": "extracted_at",
396
- "entityType": "columns",
397
- "table": "brain_patterns"
398
- },
399
- {
400
- "type": "text",
401
- "notNull": false,
402
- "autoincrement": false,
403
- "default": null,
404
- "generated": null,
405
- "name": "updated_at",
406
- "entityType": "columns",
407
- "table": "brain_patterns"
408
- },
409
- {
410
- "type": "text",
411
- "notNull": false,
412
- "autoincrement": false,
413
- "default": null,
414
- "generated": null,
415
- "name": "key",
416
- "entityType": "columns",
417
- "table": "brain_schema_meta"
418
- },
419
- {
420
- "type": "text",
421
- "notNull": true,
422
- "autoincrement": false,
423
- "default": null,
424
- "generated": null,
425
- "name": "value",
426
- "entityType": "columns",
427
- "table": "brain_schema_meta"
428
- },
429
- {
430
- "columns": [
431
- "memory_type",
432
- "memory_id",
433
- "task_id",
434
- "link_type"
435
- ],
436
- "nameExplicit": false,
437
- "name": "brain_memory_links_pk",
438
- "entityType": "pks",
439
- "table": "brain_memory_links"
440
- },
441
- {
442
- "columns": [
443
- "id"
444
- ],
445
- "nameExplicit": false,
446
- "name": "brain_decisions_pk",
447
- "table": "brain_decisions",
448
- "entityType": "pks"
449
- },
450
- {
451
- "columns": [
452
- "id"
453
- ],
454
- "nameExplicit": false,
455
- "name": "brain_learnings_pk",
456
- "table": "brain_learnings",
457
- "entityType": "pks"
458
- },
459
- {
460
- "columns": [
461
- "id"
462
- ],
463
- "nameExplicit": false,
464
- "name": "brain_patterns_pk",
465
- "table": "brain_patterns",
466
- "entityType": "pks"
467
- },
468
- {
469
- "columns": [
470
- "key"
471
- ],
472
- "nameExplicit": false,
473
- "name": "brain_schema_meta_pk",
474
- "table": "brain_schema_meta",
475
- "entityType": "pks"
476
- },
477
- {
478
- "columns": [
479
- {
480
- "value": "type",
481
- "isExpression": false
482
- }
483
- ],
484
- "isUnique": false,
485
- "where": null,
486
- "origin": "manual",
487
- "name": "idx_brain_decisions_type",
488
- "entityType": "indexes",
489
- "table": "brain_decisions"
490
- },
491
- {
492
- "columns": [
493
- {
494
- "value": "confidence",
495
- "isExpression": false
496
- }
497
- ],
498
- "isUnique": false,
499
- "where": null,
500
- "origin": "manual",
501
- "name": "idx_brain_decisions_confidence",
502
- "entityType": "indexes",
503
- "table": "brain_decisions"
504
- },
505
- {
506
- "columns": [
507
- {
508
- "value": "outcome",
509
- "isExpression": false
510
- }
511
- ],
512
- "isUnique": false,
513
- "where": null,
514
- "origin": "manual",
515
- "name": "idx_brain_decisions_outcome",
516
- "entityType": "indexes",
517
- "table": "brain_decisions"
518
- },
519
- {
520
- "columns": [
521
- {
522
- "value": "context_epic_id",
523
- "isExpression": false
524
- }
525
- ],
526
- "isUnique": false,
527
- "where": null,
528
- "origin": "manual",
529
- "name": "idx_brain_decisions_context_epic",
530
- "entityType": "indexes",
531
- "table": "brain_decisions"
532
- },
533
- {
534
- "columns": [
535
- {
536
- "value": "context_task_id",
537
- "isExpression": false
538
- }
539
- ],
540
- "isUnique": false,
541
- "where": null,
542
- "origin": "manual",
543
- "name": "idx_brain_decisions_context_task",
544
- "entityType": "indexes",
545
- "table": "brain_decisions"
546
- },
547
- {
548
- "columns": [
549
- {
550
- "value": "confidence",
551
- "isExpression": false
552
- }
553
- ],
554
- "isUnique": false,
555
- "where": null,
556
- "origin": "manual",
557
- "name": "idx_brain_learnings_confidence",
558
- "entityType": "indexes",
559
- "table": "brain_learnings"
560
- },
561
- {
562
- "columns": [
563
- {
564
- "value": "actionable",
565
- "isExpression": false
566
- }
567
- ],
568
- "isUnique": false,
569
- "where": null,
570
- "origin": "manual",
571
- "name": "idx_brain_learnings_actionable",
572
- "entityType": "indexes",
573
- "table": "brain_learnings"
574
- },
575
- {
576
- "columns": [
577
- {
578
- "value": "task_id",
579
- "isExpression": false
580
- }
581
- ],
582
- "isUnique": false,
583
- "where": null,
584
- "origin": "manual",
585
- "name": "idx_brain_links_task",
586
- "entityType": "indexes",
587
- "table": "brain_memory_links"
588
- },
589
- {
590
- "columns": [
591
- {
592
- "value": "memory_type",
593
- "isExpression": false
594
- },
595
- {
596
- "value": "memory_id",
597
- "isExpression": false
598
- }
599
- ],
600
- "isUnique": false,
601
- "where": null,
602
- "origin": "manual",
603
- "name": "idx_brain_links_memory",
604
- "entityType": "indexes",
605
- "table": "brain_memory_links"
606
- },
607
- {
608
- "columns": [
609
- {
610
- "value": "type",
611
- "isExpression": false
612
- }
613
- ],
614
- "isUnique": false,
615
- "where": null,
616
- "origin": "manual",
617
- "name": "idx_brain_patterns_type",
618
- "entityType": "indexes",
619
- "table": "brain_patterns"
620
- },
621
- {
622
- "columns": [
623
- {
624
- "value": "impact",
625
- "isExpression": false
626
- }
627
- ],
628
- "isUnique": false,
629
- "where": null,
630
- "origin": "manual",
631
- "name": "idx_brain_patterns_impact",
632
- "entityType": "indexes",
633
- "table": "brain_patterns"
634
- },
635
- {
636
- "columns": [
637
- {
638
- "value": "frequency",
639
- "isExpression": false
640
- }
641
- ],
642
- "isUnique": false,
643
- "where": null,
644
- "origin": "manual",
645
- "name": "idx_brain_patterns_frequency",
646
- "entityType": "indexes",
647
- "table": "brain_patterns"
648
- }
649
- ],
650
- "renames": []
651
- }
@@ -1,23 +0,0 @@
1
- CREATE TABLE `brain_observations` (
2
- `id` text PRIMARY KEY,
3
- `type` text NOT NULL,
4
- `title` text NOT NULL,
5
- `subtitle` text,
6
- `narrative` text,
7
- `facts_json` text,
8
- `concepts_json` text,
9
- `project` text,
10
- `files_read_json` text,
11
- `files_modified_json` text,
12
- `source_session_id` text,
13
- `source_type` text DEFAULT 'agent' NOT NULL,
14
- `discovery_tokens` integer,
15
- `created_at` text DEFAULT (datetime('now')) NOT NULL,
16
- `updated_at` text
17
- );
18
- --> statement-breakpoint
19
- CREATE INDEX `idx_brain_observations_type` ON `brain_observations` (`type`);--> statement-breakpoint
20
- CREATE INDEX `idx_brain_observations_project` ON `brain_observations` (`project`);--> statement-breakpoint
21
- CREATE INDEX `idx_brain_observations_created_at` ON `brain_observations` (`created_at`);--> statement-breakpoint
22
- CREATE INDEX `idx_brain_observations_source_type` ON `brain_observations` (`source_type`);--> statement-breakpoint
23
- CREATE INDEX `idx_brain_observations_source_session` ON `brain_observations` (`source_session_id`);