@vinihcrosa/lumem-os 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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +107 -0
  3. package/bin/lumem.mjs +4605 -0
  4. package/bin/postinstall.mjs +55 -0
  5. package/dist/server/main.mjs +95446 -0
  6. package/dist/web/assets/codemirror-setup-Csmyc9rQ.js +18 -0
  7. package/dist/web/assets/core-rofTMs1b.js +12 -0
  8. package/dist/web/assets/css-CLj8gQPS.js +1 -0
  9. package/dist/web/assets/diff-D97Zzqfu.js +1 -0
  10. package/dist/web/assets/docker-BcOcwvcX.js +1 -0
  11. package/dist/web/assets/engine-javascript-DBd1bXLz.js +141 -0
  12. package/dist/web/assets/html-pp8916En.js +1 -0
  13. package/dist/web/assets/index-BlWx0v0O.js +101 -0
  14. package/dist/web/assets/index-jS7lSqBc.css +32 -0
  15. package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  16. package/dist/web/assets/javascript-wDzz0qaB.js +1 -0
  17. package/dist/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  18. package/dist/web/assets/json-Cp-IABpG.js +1 -0
  19. package/dist/web/assets/jsx-g9-lgVsj.js +1 -0
  20. package/dist/web/assets/make-CHLpvVh8.js +1 -0
  21. package/dist/web/assets/markdown-Cvjx9yec.js +1 -0
  22. package/dist/web/assets/python-B6aJPvgy.js +1 -0
  23. package/dist/web/assets/shellscript-Yzrsuije.js +1 -0
  24. package/dist/web/assets/sql-CRqJ_cUM.js +1 -0
  25. package/dist/web/assets/toml-vGWfd6FD.js +1 -0
  26. package/dist/web/assets/tsx-COt5Ahok.js +1 -0
  27. package/dist/web/assets/typescript-BPQ3VLAy.js +1 -0
  28. package/dist/web/assets/yaml-Buea-lGh.js +1 -0
  29. package/dist/web/index.html +13 -0
  30. package/drizzle/0000_initial.sql +68 -0
  31. package/drizzle/0001_adorable_joshua_kane.sql +71 -0
  32. package/drizzle/0002_striped_trish_tilby.sql +1 -0
  33. package/drizzle/0003_memoria_do_workspace.sql +127 -0
  34. package/drizzle/0004_memoria_no_nucleo.sql +1 -0
  35. package/drizzle/0005_playbooks.sql +21 -0
  36. package/drizzle/0006_consumo_por_turno.sql +15 -0
  37. package/drizzle/0007_project_origin_and_management.sql +2 -0
  38. package/drizzle/0008_sessao_de_script.sql +40 -0
  39. package/drizzle/0009_porta_por_checkout.sql +13 -0
  40. package/drizzle/0010_confianca_no_scripts.sql +1 -0
  41. package/drizzle/0011_fase_de_teste.sql +40 -0
  42. package/drizzle/meta/0000_snapshot.json +450 -0
  43. package/drizzle/meta/0001_snapshot.json +515 -0
  44. package/drizzle/meta/0002_snapshot.json +522 -0
  45. package/drizzle/meta/0003_snapshot.json +1292 -0
  46. package/drizzle/meta/0004_snapshot.json +1300 -0
  47. package/drizzle/meta/0005_snapshot.json +1445 -0
  48. package/drizzle/meta/0006_snapshot.json +1544 -0
  49. package/drizzle/meta/0007_snapshot.json +1559 -0
  50. package/drizzle/meta/0008_snapshot.json +1570 -0
  51. package/drizzle/meta/0009_snapshot.json +1649 -0
  52. package/drizzle/meta/0010_snapshot.json +1656 -0
  53. package/drizzle/meta/0011_snapshot.json +1656 -0
  54. package/drizzle/meta/_journal.json +90 -0
  55. package/package.json +47 -0
@@ -0,0 +1,1300 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "fe045b5c-0817-418d-8ddc-ca0d4fde86fd",
5
+ "prevId": "138df351-ec23-4832-a3e6-cd0739792569",
6
+ "tables": {
7
+ "action_signal": {
8
+ "name": "action_signal",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "target": {
25
+ "name": "target",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "workspace_id": {
32
+ "name": "workspace_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "project_id": {
39
+ "name": "project_id",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "worktree_id": {
46
+ "name": "worktree_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "session_id": {
53
+ "name": "session_id",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "detail": {
60
+ "name": "detail",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false,
72
+ "default": "(unixepoch('subsec') * 1000)"
73
+ },
74
+ "updated_at": {
75
+ "name": "updated_at",
76
+ "type": "integer",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false,
80
+ "default": "(unixepoch('subsec') * 1000)"
81
+ }
82
+ },
83
+ "indexes": {},
84
+ "foreignKeys": {},
85
+ "compositePrimaryKeys": {},
86
+ "uniqueConstraints": {},
87
+ "checkConstraints": {
88
+ "action_signal_kind": {
89
+ "name": "action_signal_kind",
90
+ "value": "\"action_signal\".\"kind\" IN (\n 'user_edited_after_agent',\n 'user_reverted_agent_commit',\n 'worktree_discarded',\n 'session_killed_early'\n )"
91
+ },
92
+ "action_signal_detail_number": {
93
+ "name": "action_signal_detail_number",
94
+ "value": "\"action_signal\".\"detail\" IS NULL OR typeof(\"action_signal\".\"detail\") = 'integer'"
95
+ },
96
+ "action_signal_target_shape": {
97
+ "name": "action_signal_target_shape",
98
+ "value": "length(\"action_signal\".\"target\") BETWEEN 1 AND 1024\n AND instr(\"action_signal\".\"target\", char(10)) = 0"
99
+ }
100
+ }
101
+ },
102
+ "agent_config": {
103
+ "name": "agent_config",
104
+ "columns": {
105
+ "id": {
106
+ "name": "id",
107
+ "type": "text",
108
+ "primaryKey": true,
109
+ "notNull": true,
110
+ "autoincrement": false
111
+ },
112
+ "name": {
113
+ "name": "name",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": true,
117
+ "autoincrement": false
118
+ },
119
+ "command": {
120
+ "name": "command",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": true,
124
+ "autoincrement": false
125
+ },
126
+ "args": {
127
+ "name": "args",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true,
131
+ "autoincrement": false,
132
+ "default": "'[]'"
133
+ },
134
+ "env": {
135
+ "name": "env",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false,
140
+ "default": "'{}'"
141
+ },
142
+ "transport": {
143
+ "name": "transport",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true,
147
+ "autoincrement": false,
148
+ "default": "'pty'"
149
+ },
150
+ "adapter_version": {
151
+ "name": "adapter_version",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ },
157
+ "created_at": {
158
+ "name": "created_at",
159
+ "type": "integer",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "autoincrement": false,
163
+ "default": "(unixepoch('subsec') * 1000)"
164
+ },
165
+ "updated_at": {
166
+ "name": "updated_at",
167
+ "type": "integer",
168
+ "primaryKey": false,
169
+ "notNull": true,
170
+ "autoincrement": false,
171
+ "default": "(unixepoch('subsec') * 1000)"
172
+ }
173
+ },
174
+ "indexes": {
175
+ "agent_config_name_unique": {
176
+ "name": "agent_config_name_unique",
177
+ "columns": [
178
+ "name"
179
+ ],
180
+ "isUnique": true
181
+ }
182
+ },
183
+ "foreignKeys": {},
184
+ "compositePrimaryKeys": {},
185
+ "uniqueConstraints": {},
186
+ "checkConstraints": {
187
+ "agent_config_transport": {
188
+ "name": "agent_config_transport",
189
+ "value": "\"agent_config\".\"transport\" IN ('pty', 'acp')"
190
+ },
191
+ "agent_config_adapter_version": {
192
+ "name": "agent_config_adapter_version",
193
+ "value": "(\"agent_config\".\"transport\" = 'acp' AND \"agent_config\".\"adapter_version\" IS NOT NULL)\n OR (\"agent_config\".\"transport\" = 'pty' AND \"agent_config\".\"adapter_version\" IS NULL)"
194
+ }
195
+ }
196
+ },
197
+ "memory_access": {
198
+ "name": "memory_access",
199
+ "columns": {
200
+ "id": {
201
+ "name": "id",
202
+ "type": "text",
203
+ "primaryKey": true,
204
+ "notNull": true,
205
+ "autoincrement": false
206
+ },
207
+ "workspace_id": {
208
+ "name": "workspace_id",
209
+ "type": "text",
210
+ "primaryKey": false,
211
+ "notNull": false,
212
+ "autoincrement": false
213
+ },
214
+ "from_project_id": {
215
+ "name": "from_project_id",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false,
219
+ "autoincrement": false
220
+ },
221
+ "target_project_id": {
222
+ "name": "target_project_id",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false
227
+ },
228
+ "kind": {
229
+ "name": "kind",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": true,
233
+ "autoincrement": false
234
+ },
235
+ "target": {
236
+ "name": "target",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": true,
240
+ "autoincrement": false
241
+ },
242
+ "decision": {
243
+ "name": "decision",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true,
247
+ "autoincrement": false
248
+ },
249
+ "reason": {
250
+ "name": "reason",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": false,
254
+ "autoincrement": false
255
+ },
256
+ "actor": {
257
+ "name": "actor",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "autoincrement": false
262
+ },
263
+ "created_at": {
264
+ "name": "created_at",
265
+ "type": "integer",
266
+ "primaryKey": false,
267
+ "notNull": true,
268
+ "autoincrement": false,
269
+ "default": "(unixepoch('subsec') * 1000)"
270
+ },
271
+ "updated_at": {
272
+ "name": "updated_at",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false,
277
+ "default": "(unixepoch('subsec') * 1000)"
278
+ }
279
+ },
280
+ "indexes": {},
281
+ "foreignKeys": {},
282
+ "compositePrimaryKeys": {},
283
+ "uniqueConstraints": {},
284
+ "checkConstraints": {
285
+ "memory_access_kind": {
286
+ "name": "memory_access_kind",
287
+ "value": "\"memory_access\".\"kind\" IN ('memory', 'repository')"
288
+ },
289
+ "memory_access_decision": {
290
+ "name": "memory_access_decision",
291
+ "value": "\"memory_access\".\"decision\" IN ('allowed', 'denied')"
292
+ }
293
+ }
294
+ },
295
+ "memory_decision": {
296
+ "name": "memory_decision",
297
+ "columns": {
298
+ "id": {
299
+ "name": "id",
300
+ "type": "text",
301
+ "primaryKey": true,
302
+ "notNull": true,
303
+ "autoincrement": false
304
+ },
305
+ "idempotency_key": {
306
+ "name": "idempotency_key",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": true,
310
+ "autoincrement": false
311
+ },
312
+ "path": {
313
+ "name": "path",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": true,
317
+ "autoincrement": false
318
+ },
319
+ "operation": {
320
+ "name": "operation",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "autoincrement": false
325
+ },
326
+ "outcome": {
327
+ "name": "outcome",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true,
331
+ "autoincrement": false
332
+ },
333
+ "actor": {
334
+ "name": "actor",
335
+ "type": "text",
336
+ "primaryKey": false,
337
+ "notNull": true,
338
+ "autoincrement": false
339
+ },
340
+ "confidence": {
341
+ "name": "confidence",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false
346
+ },
347
+ "candidate_hash": {
348
+ "name": "candidate_hash",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "autoincrement": false
353
+ },
354
+ "rule_trace": {
355
+ "name": "rule_trace",
356
+ "type": "text",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "autoincrement": false,
360
+ "default": "'[]'"
361
+ },
362
+ "source_sessions": {
363
+ "name": "source_sessions",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "autoincrement": false,
368
+ "default": "'[]'"
369
+ },
370
+ "reason": {
371
+ "name": "reason",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": false,
375
+ "autoincrement": false
376
+ },
377
+ "commit_sha": {
378
+ "name": "commit_sha",
379
+ "type": "text",
380
+ "primaryKey": false,
381
+ "notNull": false,
382
+ "autoincrement": false
383
+ },
384
+ "created_at": {
385
+ "name": "created_at",
386
+ "type": "integer",
387
+ "primaryKey": false,
388
+ "notNull": true,
389
+ "autoincrement": false,
390
+ "default": "(unixepoch('subsec') * 1000)"
391
+ },
392
+ "updated_at": {
393
+ "name": "updated_at",
394
+ "type": "integer",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false,
398
+ "default": "(unixepoch('subsec') * 1000)"
399
+ }
400
+ },
401
+ "indexes": {
402
+ "memory_decision_idempotency_key_unique": {
403
+ "name": "memory_decision_idempotency_key_unique",
404
+ "columns": [
405
+ "idempotency_key"
406
+ ],
407
+ "isUnique": true
408
+ }
409
+ },
410
+ "foreignKeys": {},
411
+ "compositePrimaryKeys": {},
412
+ "uniqueConstraints": {},
413
+ "checkConstraints": {
414
+ "memory_decision_operation": {
415
+ "name": "memory_decision_operation",
416
+ "value": "\"memory_decision\".\"operation\" IN ('add', 'update', 'delete')"
417
+ },
418
+ "memory_decision_outcome": {
419
+ "name": "memory_decision_outcome",
420
+ "value": "\"memory_decision\".\"outcome\" IN ('applied', 'noop', 'rejected')"
421
+ }
422
+ }
423
+ },
424
+ "memory_entry": {
425
+ "name": "memory_entry",
426
+ "columns": {
427
+ "id": {
428
+ "name": "id",
429
+ "type": "text",
430
+ "primaryKey": true,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "path": {
435
+ "name": "path",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "autoincrement": false
440
+ },
441
+ "type": {
442
+ "name": "type",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false
447
+ },
448
+ "scope": {
449
+ "name": "scope",
450
+ "type": "text",
451
+ "primaryKey": false,
452
+ "notNull": true,
453
+ "autoincrement": false
454
+ },
455
+ "slug": {
456
+ "name": "slug",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": true,
460
+ "autoincrement": false
461
+ },
462
+ "workspace_id": {
463
+ "name": "workspace_id",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true,
467
+ "autoincrement": false,
468
+ "default": "''"
469
+ },
470
+ "project_id": {
471
+ "name": "project_id",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false,
476
+ "default": "''"
477
+ },
478
+ "name": {
479
+ "name": "name",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false
484
+ },
485
+ "description": {
486
+ "name": "description",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "source_actor": {
493
+ "name": "source_actor",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "autoincrement": false
498
+ },
499
+ "confidence": {
500
+ "name": "confidence",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "autoincrement": false
505
+ },
506
+ "pinned": {
507
+ "name": "pinned",
508
+ "type": "integer",
509
+ "primaryKey": false,
510
+ "notNull": true,
511
+ "autoincrement": false,
512
+ "default": false
513
+ },
514
+ "content_hash": {
515
+ "name": "content_hash",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": true,
519
+ "autoincrement": false
520
+ },
521
+ "created_at": {
522
+ "name": "created_at",
523
+ "type": "integer",
524
+ "primaryKey": false,
525
+ "notNull": true,
526
+ "autoincrement": false,
527
+ "default": "(unixepoch('subsec') * 1000)"
528
+ },
529
+ "updated_at": {
530
+ "name": "updated_at",
531
+ "type": "integer",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false,
535
+ "default": "(unixepoch('subsec') * 1000)"
536
+ }
537
+ },
538
+ "indexes": {
539
+ "memory_entry_path_unique": {
540
+ "name": "memory_entry_path_unique",
541
+ "columns": [
542
+ "path"
543
+ ],
544
+ "isUnique": true
545
+ },
546
+ "memory_entry_identity": {
547
+ "name": "memory_entry_identity",
548
+ "columns": [
549
+ "scope",
550
+ "workspace_id",
551
+ "project_id",
552
+ "type",
553
+ "slug"
554
+ ],
555
+ "isUnique": true
556
+ }
557
+ },
558
+ "foreignKeys": {},
559
+ "compositePrimaryKeys": {},
560
+ "uniqueConstraints": {},
561
+ "checkConstraints": {
562
+ "memory_entry_type": {
563
+ "name": "memory_entry_type",
564
+ "value": "\"memory_entry\".\"type\" IN ('user', 'feedback', 'project', 'domain', 'process', 'contract', 'reference')"
565
+ },
566
+ "memory_entry_scope": {
567
+ "name": "memory_entry_scope",
568
+ "value": "\"memory_entry\".\"scope\" IN ('global', 'workspace', 'project')"
569
+ }
570
+ }
571
+ },
572
+ "memory_proposal": {
573
+ "name": "memory_proposal",
574
+ "columns": {
575
+ "id": {
576
+ "name": "id",
577
+ "type": "text",
578
+ "primaryKey": true,
579
+ "notNull": true,
580
+ "autoincrement": false
581
+ },
582
+ "path": {
583
+ "name": "path",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "autoincrement": false
588
+ },
589
+ "type": {
590
+ "name": "type",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "autoincrement": false
595
+ },
596
+ "scope": {
597
+ "name": "scope",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "autoincrement": false
602
+ },
603
+ "slug": {
604
+ "name": "slug",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ },
610
+ "workspace_id": {
611
+ "name": "workspace_id",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": false,
615
+ "autoincrement": false
616
+ },
617
+ "project_id": {
618
+ "name": "project_id",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false,
622
+ "autoincrement": false
623
+ },
624
+ "name": {
625
+ "name": "name",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": true,
629
+ "autoincrement": false
630
+ },
631
+ "description": {
632
+ "name": "description",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true,
636
+ "autoincrement": false
637
+ },
638
+ "body": {
639
+ "name": "body",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false,
644
+ "default": "''"
645
+ },
646
+ "actor": {
647
+ "name": "actor",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "from_project_id": {
654
+ "name": "from_project_id",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false,
658
+ "autoincrement": false
659
+ },
660
+ "session_id": {
661
+ "name": "session_id",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": false,
665
+ "autoincrement": false
666
+ },
667
+ "confidence": {
668
+ "name": "confidence",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "evidence": {
675
+ "name": "evidence",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": false,
679
+ "autoincrement": false
680
+ },
681
+ "status": {
682
+ "name": "status",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "autoincrement": false,
687
+ "default": "'pending'"
688
+ },
689
+ "resolved_at": {
690
+ "name": "resolved_at",
691
+ "type": "integer",
692
+ "primaryKey": false,
693
+ "notNull": false,
694
+ "autoincrement": false
695
+ },
696
+ "resolution_note": {
697
+ "name": "resolution_note",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": false,
701
+ "autoincrement": false
702
+ },
703
+ "created_at": {
704
+ "name": "created_at",
705
+ "type": "integer",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "autoincrement": false,
709
+ "default": "(unixepoch('subsec') * 1000)"
710
+ },
711
+ "updated_at": {
712
+ "name": "updated_at",
713
+ "type": "integer",
714
+ "primaryKey": false,
715
+ "notNull": true,
716
+ "autoincrement": false,
717
+ "default": "(unixepoch('subsec') * 1000)"
718
+ }
719
+ },
720
+ "indexes": {},
721
+ "foreignKeys": {},
722
+ "compositePrimaryKeys": {},
723
+ "uniqueConstraints": {},
724
+ "checkConstraints": {
725
+ "memory_proposal_status": {
726
+ "name": "memory_proposal_status",
727
+ "value": "\"memory_proposal\".\"status\" IN ('pending', 'approved', 'rejected')"
728
+ },
729
+ "memory_proposal_type": {
730
+ "name": "memory_proposal_type",
731
+ "value": "\"memory_proposal\".\"type\" IN ('user', 'feedback', 'project', 'domain', 'process', 'contract', 'reference')"
732
+ },
733
+ "memory_proposal_scope": {
734
+ "name": "memory_proposal_scope",
735
+ "value": "\"memory_proposal\".\"scope\" IN ('global', 'workspace', 'project')"
736
+ },
737
+ "memory_proposal_actor": {
738
+ "name": "memory_proposal_actor",
739
+ "value": "\"memory_proposal\".\"actor\" IN ('human', 'agent', 'distiller', 'auto_research', 'import')"
740
+ },
741
+ "memory_proposal_confidence": {
742
+ "name": "memory_proposal_confidence",
743
+ "value": "\"memory_proposal\".\"confidence\" IN ('low', 'medium', 'high')"
744
+ }
745
+ }
746
+ },
747
+ "memory_signal": {
748
+ "name": "memory_signal",
749
+ "columns": {
750
+ "path": {
751
+ "name": "path",
752
+ "type": "text",
753
+ "primaryKey": true,
754
+ "notNull": true,
755
+ "autoincrement": false
756
+ },
757
+ "recall_count": {
758
+ "name": "recall_count",
759
+ "type": "integer",
760
+ "primaryKey": false,
761
+ "notNull": true,
762
+ "autoincrement": false,
763
+ "default": 0
764
+ },
765
+ "last_recalled_at": {
766
+ "name": "last_recalled_at",
767
+ "type": "integer",
768
+ "primaryKey": false,
769
+ "notNull": false,
770
+ "autoincrement": false
771
+ },
772
+ "best_score": {
773
+ "name": "best_score",
774
+ "type": "real",
775
+ "primaryKey": false,
776
+ "notNull": true,
777
+ "autoincrement": false,
778
+ "default": 0
779
+ },
780
+ "created_at": {
781
+ "name": "created_at",
782
+ "type": "integer",
783
+ "primaryKey": false,
784
+ "notNull": true,
785
+ "autoincrement": false,
786
+ "default": "(unixepoch('subsec') * 1000)"
787
+ },
788
+ "updated_at": {
789
+ "name": "updated_at",
790
+ "type": "integer",
791
+ "primaryKey": false,
792
+ "notNull": true,
793
+ "autoincrement": false,
794
+ "default": "(unixepoch('subsec') * 1000)"
795
+ }
796
+ },
797
+ "indexes": {},
798
+ "foreignKeys": {},
799
+ "compositePrimaryKeys": {},
800
+ "uniqueConstraints": {},
801
+ "checkConstraints": {}
802
+ },
803
+ "memory_usage": {
804
+ "name": "memory_usage",
805
+ "columns": {
806
+ "id": {
807
+ "name": "id",
808
+ "type": "text",
809
+ "primaryKey": true,
810
+ "notNull": true,
811
+ "autoincrement": false
812
+ },
813
+ "kind": {
814
+ "name": "kind",
815
+ "type": "text",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "autoincrement": false
819
+ },
820
+ "session_id": {
821
+ "name": "session_id",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": false,
825
+ "autoincrement": false
826
+ },
827
+ "workspace_id": {
828
+ "name": "workspace_id",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false,
832
+ "autoincrement": false
833
+ },
834
+ "project_id": {
835
+ "name": "project_id",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": false,
839
+ "autoincrement": false
840
+ },
841
+ "amount": {
842
+ "name": "amount",
843
+ "type": "integer",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false,
847
+ "default": 0
848
+ },
849
+ "duration_ms": {
850
+ "name": "duration_ms",
851
+ "type": "integer",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "autoincrement": false,
855
+ "default": 0
856
+ },
857
+ "created_at": {
858
+ "name": "created_at",
859
+ "type": "integer",
860
+ "primaryKey": false,
861
+ "notNull": true,
862
+ "autoincrement": false,
863
+ "default": "(unixepoch('subsec') * 1000)"
864
+ },
865
+ "updated_at": {
866
+ "name": "updated_at",
867
+ "type": "integer",
868
+ "primaryKey": false,
869
+ "notNull": true,
870
+ "autoincrement": false,
871
+ "default": "(unixepoch('subsec') * 1000)"
872
+ }
873
+ },
874
+ "indexes": {},
875
+ "foreignKeys": {},
876
+ "compositePrimaryKeys": {},
877
+ "uniqueConstraints": {},
878
+ "checkConstraints": {}
879
+ },
880
+ "project": {
881
+ "name": "project",
882
+ "columns": {
883
+ "id": {
884
+ "name": "id",
885
+ "type": "text",
886
+ "primaryKey": true,
887
+ "notNull": true,
888
+ "autoincrement": false
889
+ },
890
+ "workspace_id": {
891
+ "name": "workspace_id",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "autoincrement": false
896
+ },
897
+ "name": {
898
+ "name": "name",
899
+ "type": "text",
900
+ "primaryKey": false,
901
+ "notNull": true,
902
+ "autoincrement": false
903
+ },
904
+ "path": {
905
+ "name": "path",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": true,
909
+ "autoincrement": false
910
+ },
911
+ "default_branch": {
912
+ "name": "default_branch",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "autoincrement": false
917
+ },
918
+ "created_at": {
919
+ "name": "created_at",
920
+ "type": "integer",
921
+ "primaryKey": false,
922
+ "notNull": true,
923
+ "autoincrement": false,
924
+ "default": "(unixepoch('subsec') * 1000)"
925
+ },
926
+ "updated_at": {
927
+ "name": "updated_at",
928
+ "type": "integer",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "autoincrement": false,
932
+ "default": "(unixepoch('subsec') * 1000)"
933
+ }
934
+ },
935
+ "indexes": {
936
+ "project_path_unique": {
937
+ "name": "project_path_unique",
938
+ "columns": [
939
+ "path"
940
+ ],
941
+ "isUnique": true
942
+ },
943
+ "project_name_per_workspace": {
944
+ "name": "project_name_per_workspace",
945
+ "columns": [
946
+ "workspace_id",
947
+ "name"
948
+ ],
949
+ "isUnique": true
950
+ }
951
+ },
952
+ "foreignKeys": {
953
+ "project_workspace_id_workspace_id_fk": {
954
+ "name": "project_workspace_id_workspace_id_fk",
955
+ "tableFrom": "project",
956
+ "tableTo": "workspace",
957
+ "columnsFrom": [
958
+ "workspace_id"
959
+ ],
960
+ "columnsTo": [
961
+ "id"
962
+ ],
963
+ "onDelete": "restrict",
964
+ "onUpdate": "no action"
965
+ }
966
+ },
967
+ "compositePrimaryKeys": {},
968
+ "uniqueConstraints": {},
969
+ "checkConstraints": {}
970
+ },
971
+ "session": {
972
+ "name": "session",
973
+ "columns": {
974
+ "id": {
975
+ "name": "id",
976
+ "type": "text",
977
+ "primaryKey": true,
978
+ "notNull": true,
979
+ "autoincrement": false
980
+ },
981
+ "kind": {
982
+ "name": "kind",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true,
986
+ "autoincrement": false
987
+ },
988
+ "agent_config_id": {
989
+ "name": "agent_config_id",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": false,
993
+ "autoincrement": false
994
+ },
995
+ "scope_type": {
996
+ "name": "scope_type",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": true,
1000
+ "autoincrement": false
1001
+ },
1002
+ "scope_id": {
1003
+ "name": "scope_id",
1004
+ "type": "text",
1005
+ "primaryKey": false,
1006
+ "notNull": true,
1007
+ "autoincrement": false
1008
+ },
1009
+ "cwd": {
1010
+ "name": "cwd",
1011
+ "type": "text",
1012
+ "primaryKey": false,
1013
+ "notNull": true,
1014
+ "autoincrement": false
1015
+ },
1016
+ "command": {
1017
+ "name": "command",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": true,
1021
+ "autoincrement": false
1022
+ },
1023
+ "state": {
1024
+ "name": "state",
1025
+ "type": "text",
1026
+ "primaryKey": false,
1027
+ "notNull": true,
1028
+ "autoincrement": false,
1029
+ "default": "'running'"
1030
+ },
1031
+ "exit_code": {
1032
+ "name": "exit_code",
1033
+ "type": "integer",
1034
+ "primaryKey": false,
1035
+ "notNull": false,
1036
+ "autoincrement": false
1037
+ },
1038
+ "transport": {
1039
+ "name": "transport",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "autoincrement": false,
1044
+ "default": "'pty'"
1045
+ },
1046
+ "acp_session_id": {
1047
+ "name": "acp_session_id",
1048
+ "type": "text",
1049
+ "primaryKey": false,
1050
+ "notNull": false,
1051
+ "autoincrement": false
1052
+ },
1053
+ "mode": {
1054
+ "name": "mode",
1055
+ "type": "text",
1056
+ "primaryKey": false,
1057
+ "notNull": false,
1058
+ "autoincrement": false
1059
+ },
1060
+ "model": {
1061
+ "name": "model",
1062
+ "type": "text",
1063
+ "primaryKey": false,
1064
+ "notNull": false,
1065
+ "autoincrement": false
1066
+ },
1067
+ "resumed_from_id": {
1068
+ "name": "resumed_from_id",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": false,
1072
+ "autoincrement": false
1073
+ },
1074
+ "created_at": {
1075
+ "name": "created_at",
1076
+ "type": "integer",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false,
1080
+ "default": "(unixepoch('subsec') * 1000)"
1081
+ },
1082
+ "updated_at": {
1083
+ "name": "updated_at",
1084
+ "type": "integer",
1085
+ "primaryKey": false,
1086
+ "notNull": true,
1087
+ "autoincrement": false,
1088
+ "default": "(unixepoch('subsec') * 1000)"
1089
+ }
1090
+ },
1091
+ "indexes": {},
1092
+ "foreignKeys": {
1093
+ "session_agent_config_id_agent_config_id_fk": {
1094
+ "name": "session_agent_config_id_agent_config_id_fk",
1095
+ "tableFrom": "session",
1096
+ "tableTo": "agent_config",
1097
+ "columnsFrom": [
1098
+ "agent_config_id"
1099
+ ],
1100
+ "columnsTo": [
1101
+ "id"
1102
+ ],
1103
+ "onDelete": "restrict",
1104
+ "onUpdate": "no action"
1105
+ }
1106
+ },
1107
+ "compositePrimaryKeys": {},
1108
+ "uniqueConstraints": {},
1109
+ "checkConstraints": {
1110
+ "session_kind": {
1111
+ "name": "session_kind",
1112
+ "value": "\"session\".\"kind\" IN ('shell', 'agent')"
1113
+ },
1114
+ "session_scope_type": {
1115
+ "name": "session_scope_type",
1116
+ "value": "\"session\".\"scope_type\" IN ('project', 'worktree')"
1117
+ },
1118
+ "session_state": {
1119
+ "name": "session_state",
1120
+ "value": "\"session\".\"state\" IN ('running', 'exited')"
1121
+ },
1122
+ "session_agent_config": {
1123
+ "name": "session_agent_config",
1124
+ "value": "(\"session\".\"kind\" = 'agent' AND \"session\".\"agent_config_id\" IS NOT NULL)\n OR (\"session\".\"kind\" = 'shell' AND \"session\".\"agent_config_id\" IS NULL)"
1125
+ },
1126
+ "session_exit_code": {
1127
+ "name": "session_exit_code",
1128
+ "value": "(\"session\".\"state\" = 'running' AND \"session\".\"exit_code\" IS NULL)\n OR (\"session\".\"state\" = 'exited')"
1129
+ },
1130
+ "session_transport": {
1131
+ "name": "session_transport",
1132
+ "value": "\"session\".\"transport\" IN ('pty', 'acp')"
1133
+ },
1134
+ "session_shell_transport": {
1135
+ "name": "session_shell_transport",
1136
+ "value": "\"session\".\"kind\" = 'agent' OR \"session\".\"transport\" = 'pty'"
1137
+ },
1138
+ "session_acp_id": {
1139
+ "name": "session_acp_id",
1140
+ "value": "(\"session\".\"transport\" = 'acp' AND \"session\".\"acp_session_id\" IS NOT NULL)\n OR (\"session\".\"transport\" = 'pty' AND \"session\".\"acp_session_id\" IS NULL)"
1141
+ }
1142
+ }
1143
+ },
1144
+ "workspace": {
1145
+ "name": "workspace",
1146
+ "columns": {
1147
+ "id": {
1148
+ "name": "id",
1149
+ "type": "text",
1150
+ "primaryKey": true,
1151
+ "notNull": true,
1152
+ "autoincrement": false
1153
+ },
1154
+ "name": {
1155
+ "name": "name",
1156
+ "type": "text",
1157
+ "primaryKey": false,
1158
+ "notNull": true,
1159
+ "autoincrement": false
1160
+ },
1161
+ "created_at": {
1162
+ "name": "created_at",
1163
+ "type": "integer",
1164
+ "primaryKey": false,
1165
+ "notNull": true,
1166
+ "autoincrement": false,
1167
+ "default": "(unixepoch('subsec') * 1000)"
1168
+ },
1169
+ "updated_at": {
1170
+ "name": "updated_at",
1171
+ "type": "integer",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "autoincrement": false,
1175
+ "default": "(unixepoch('subsec') * 1000)"
1176
+ }
1177
+ },
1178
+ "indexes": {
1179
+ "workspace_name_unique": {
1180
+ "name": "workspace_name_unique",
1181
+ "columns": [
1182
+ "name"
1183
+ ],
1184
+ "isUnique": true
1185
+ }
1186
+ },
1187
+ "foreignKeys": {},
1188
+ "compositePrimaryKeys": {},
1189
+ "uniqueConstraints": {},
1190
+ "checkConstraints": {}
1191
+ },
1192
+ "worktree": {
1193
+ "name": "worktree",
1194
+ "columns": {
1195
+ "id": {
1196
+ "name": "id",
1197
+ "type": "text",
1198
+ "primaryKey": true,
1199
+ "notNull": true,
1200
+ "autoincrement": false
1201
+ },
1202
+ "project_id": {
1203
+ "name": "project_id",
1204
+ "type": "text",
1205
+ "primaryKey": false,
1206
+ "notNull": true,
1207
+ "autoincrement": false
1208
+ },
1209
+ "name": {
1210
+ "name": "name",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": true,
1214
+ "autoincrement": false
1215
+ },
1216
+ "branch": {
1217
+ "name": "branch",
1218
+ "type": "text",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false
1222
+ },
1223
+ "path": {
1224
+ "name": "path",
1225
+ "type": "text",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "autoincrement": false
1229
+ },
1230
+ "state": {
1231
+ "name": "state",
1232
+ "type": "text",
1233
+ "primaryKey": false,
1234
+ "notNull": true,
1235
+ "autoincrement": false,
1236
+ "default": "'active'"
1237
+ },
1238
+ "created_at": {
1239
+ "name": "created_at",
1240
+ "type": "integer",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false,
1244
+ "default": "(unixepoch('subsec') * 1000)"
1245
+ },
1246
+ "updated_at": {
1247
+ "name": "updated_at",
1248
+ "type": "integer",
1249
+ "primaryKey": false,
1250
+ "notNull": true,
1251
+ "autoincrement": false,
1252
+ "default": "(unixepoch('subsec') * 1000)"
1253
+ }
1254
+ },
1255
+ "indexes": {
1256
+ "worktree_name_per_project": {
1257
+ "name": "worktree_name_per_project",
1258
+ "columns": [
1259
+ "project_id",
1260
+ "name"
1261
+ ],
1262
+ "isUnique": true
1263
+ }
1264
+ },
1265
+ "foreignKeys": {
1266
+ "worktree_project_id_project_id_fk": {
1267
+ "name": "worktree_project_id_project_id_fk",
1268
+ "tableFrom": "worktree",
1269
+ "tableTo": "project",
1270
+ "columnsFrom": [
1271
+ "project_id"
1272
+ ],
1273
+ "columnsTo": [
1274
+ "id"
1275
+ ],
1276
+ "onDelete": "restrict",
1277
+ "onUpdate": "no action"
1278
+ }
1279
+ },
1280
+ "compositePrimaryKeys": {},
1281
+ "uniqueConstraints": {},
1282
+ "checkConstraints": {
1283
+ "worktree_state": {
1284
+ "name": "worktree_state",
1285
+ "value": "\"worktree\".\"state\" IN ('active', 'missing')"
1286
+ }
1287
+ }
1288
+ }
1289
+ },
1290
+ "views": {},
1291
+ "enums": {},
1292
+ "_meta": {
1293
+ "schemas": {},
1294
+ "tables": {},
1295
+ "columns": {}
1296
+ },
1297
+ "internal": {
1298
+ "indexes": {}
1299
+ }
1300
+ }