praxo-cli 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.
Files changed (82) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +159 -2
  3. package/dist/app.js +75 -0
  4. package/dist/bin.js +21 -0
  5. package/dist/cli/commands/ai.command.js +189 -0
  6. package/dist/cli/commands/cmd.command.js +265 -0
  7. package/dist/cli/commands/completion.command.js +334 -0
  8. package/dist/cli/commands/config.command.js +27 -0
  9. package/dist/cli/commands/decision.command.js +287 -0
  10. package/dist/cli/commands/doctor.command.js +45 -0
  11. package/dist/cli/commands/project.command.js +24 -0
  12. package/dist/cli/commands/search.command.js +59 -0
  13. package/dist/cli/commands/sync.command.js +122 -0
  14. package/dist/cli/commands/transfer.command.js +148 -0
  15. package/dist/cli/index.js +156 -0
  16. package/dist/cli/output.js +133 -0
  17. package/dist/cli/prompts.js +68 -0
  18. package/dist/features/ai/client.js +238 -0
  19. package/dist/features/ai/output.js +7 -0
  20. package/dist/features/ai/providers.js +52 -0
  21. package/dist/features/ai/schemas.js +43 -0
  22. package/dist/features/ai/service.js +183 -0
  23. package/dist/features/commands/executor.js +54 -0
  24. package/dist/features/commands/repository.js +61 -0
  25. package/dist/features/commands/safety.js +154 -0
  26. package/dist/features/commands/service.js +254 -0
  27. package/dist/features/commands/template.js +153 -0
  28. package/dist/features/decisions/repository.js +53 -0
  29. package/dist/features/decisions/service.js +209 -0
  30. package/dist/features/decisions/stats.js +84 -0
  31. package/dist/features/decisions/status.js +7 -0
  32. package/dist/features/projects/repository.js +51 -0
  33. package/dist/features/projects/service.js +74 -0
  34. package/dist/features/sync/git.js +207 -0
  35. package/dist/features/sync/merge.js +194 -0
  36. package/dist/features/sync/repository.js +151 -0
  37. package/dist/features/sync/sanitizer.js +21 -0
  38. package/dist/features/sync/service.js +199 -0
  39. package/dist/features/sync/snapshot.js +230 -0
  40. package/dist/infrastructure/credentials/store.js +105 -0
  41. package/dist/infrastructure/database/client.js +41 -0
  42. package/dist/infrastructure/database/migrate.js +102 -0
  43. package/dist/infrastructure/database/schema.js +138 -0
  44. package/dist/infrastructure/git/detector.js +48 -0
  45. package/dist/shared/clipboard.js +19 -0
  46. package/dist/shared/config.js +163 -0
  47. package/dist/shared/doctor.js +47 -0
  48. package/dist/shared/errors.js +19 -0
  49. package/dist/shared/global-search.js +51 -0
  50. package/dist/shared/input.js +37 -0
  51. package/dist/shared/links.js +48 -0
  52. package/dist/shared/paths.js +14 -0
  53. package/dist/shared/query.js +10 -0
  54. package/dist/shared/redaction.js +54 -0
  55. package/dist/shared/search.js +39 -0
  56. package/dist/shared/sync-metadata.js +7 -0
  57. package/dist/shared/tags.js +91 -0
  58. package/dist/shared/transfer/archive.js +197 -0
  59. package/dist/shared/transfer/markdown.js +53 -0
  60. package/dist/shared/transfer/service.js +278 -0
  61. package/dist/tui/Workspace.js +121 -0
  62. package/dist/tui/components/AiPanel.js +200 -0
  63. package/dist/tui/components/Catalog.js +47 -0
  64. package/dist/tui/components/Confirm.js +28 -0
  65. package/dist/tui/components/Form.js +113 -0
  66. package/dist/tui/components/HelpModal.js +44 -0
  67. package/dist/tui/components/Inspection.js +28 -0
  68. package/dist/tui/components/KeyHints.js +7 -0
  69. package/dist/tui/components/SearchInput.js +31 -0
  70. package/dist/tui/components/SyncPanel.js +93 -0
  71. package/dist/tui/index.js +18 -0
  72. package/dist/tui/screens/Commands.js +383 -0
  73. package/dist/tui/screens/DecisionForms.js +117 -0
  74. package/dist/tui/screens/Decisions.js +260 -0
  75. package/dist/tui/screens/Lookup.js +96 -0
  76. package/dist/tui/theme.js +47 -0
  77. package/drizzle/0000_initial.sql +105 -0
  78. package/drizzle/0001_v11_sync.sql +117 -0
  79. package/drizzle/meta/0000_snapshot.json +735 -0
  80. package/drizzle/meta/0001_snapshot.json +867 -0
  81. package/drizzle/meta/_journal.json +20 -0
  82. package/package.json +77 -4
@@ -0,0 +1,735 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "dc898479-d708-46b0-be40-7166c8345ba4",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "command_usages": {
8
+ "name": "command_usages",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "commandId": {
18
+ "name": "commandId",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "kind": {
25
+ "name": "kind",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "usedAt": {
32
+ "name": "usedAt",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "outcome": {
39
+ "name": "outcome",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "exitCode": {
46
+ "name": "exitCode",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ }
52
+ },
53
+ "indexes": {
54
+ "usage_command_date": {
55
+ "name": "usage_command_date",
56
+ "columns": [
57
+ "commandId",
58
+ "usedAt"
59
+ ],
60
+ "isUnique": false
61
+ },
62
+ "usage_kind_date": {
63
+ "name": "usage_kind_date",
64
+ "columns": [
65
+ "kind",
66
+ "usedAt"
67
+ ],
68
+ "isUnique": false
69
+ }
70
+ },
71
+ "foreignKeys": {
72
+ "command_usages_commandId_commands_id_fk": {
73
+ "name": "command_usages_commandId_commands_id_fk",
74
+ "tableFrom": "command_usages",
75
+ "tableTo": "commands",
76
+ "columnsFrom": [
77
+ "commandId"
78
+ ],
79
+ "columnsTo": [
80
+ "id"
81
+ ],
82
+ "onDelete": "cascade",
83
+ "onUpdate": "no action"
84
+ }
85
+ },
86
+ "compositePrimaryKeys": {},
87
+ "uniqueConstraints": {},
88
+ "checkConstraints": {
89
+ "usage_kind": {
90
+ "name": "usage_kind",
91
+ "value": "\"command_usages\".\"kind\" in ('copy', 'run')"
92
+ },
93
+ "usage_outcome": {
94
+ "name": "usage_outcome",
95
+ "value": "\"command_usages\".\"outcome\" in ('success', 'failed', 'interrupted')"
96
+ },
97
+ "copy_outcome": {
98
+ "name": "copy_outcome",
99
+ "value": "\"command_usages\".\"kind\" != 'copy' or (\"command_usages\".\"outcome\" = 'success' and \"command_usages\".\"exitCode\" is null)"
100
+ }
101
+ }
102
+ },
103
+ "commands": {
104
+ "name": "commands",
105
+ "columns": {
106
+ "id": {
107
+ "name": "id",
108
+ "type": "text",
109
+ "primaryKey": true,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "name": {
114
+ "name": "name",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "template": {
121
+ "name": "template",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "autoincrement": false
126
+ },
127
+ "note": {
128
+ "name": "note",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true,
132
+ "autoincrement": false,
133
+ "default": "''"
134
+ },
135
+ "type": {
136
+ "name": "type",
137
+ "type": "text",
138
+ "primaryKey": false,
139
+ "notNull": true,
140
+ "autoincrement": false,
141
+ "default": "'custom'"
142
+ },
143
+ "tier": {
144
+ "name": "tier",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false,
149
+ "default": "'normal'"
150
+ },
151
+ "sos": {
152
+ "name": "sos",
153
+ "type": "integer",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "autoincrement": false,
157
+ "default": false
158
+ },
159
+ "danger": {
160
+ "name": "danger",
161
+ "type": "integer",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false,
165
+ "default": false
166
+ },
167
+ "projectId": {
168
+ "name": "projectId",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": false,
172
+ "autoincrement": false
173
+ },
174
+ "createdAt": {
175
+ "name": "createdAt",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "autoincrement": false
180
+ },
181
+ "updatedAt": {
182
+ "name": "updatedAt",
183
+ "type": "text",
184
+ "primaryKey": false,
185
+ "notNull": true,
186
+ "autoincrement": false
187
+ }
188
+ },
189
+ "indexes": {
190
+ "commands_project_tier": {
191
+ "name": "commands_project_tier",
192
+ "columns": [
193
+ "projectId",
194
+ "tier"
195
+ ],
196
+ "isUnique": false
197
+ }
198
+ },
199
+ "foreignKeys": {
200
+ "commands_projectId_projects_id_fk": {
201
+ "name": "commands_projectId_projects_id_fk",
202
+ "tableFrom": "commands",
203
+ "tableTo": "projects",
204
+ "columnsFrom": [
205
+ "projectId"
206
+ ],
207
+ "columnsTo": [
208
+ "id"
209
+ ],
210
+ "onDelete": "set null",
211
+ "onUpdate": "no action"
212
+ }
213
+ },
214
+ "compositePrimaryKeys": {},
215
+ "uniqueConstraints": {},
216
+ "checkConstraints": {
217
+ "command_tier": {
218
+ "name": "command_tier",
219
+ "value": "\"commands\".\"tier\" in ('hot', 'normal')"
220
+ },
221
+ "command_flags": {
222
+ "name": "command_flags",
223
+ "value": "\"commands\".\"sos\" in (0, 1) and \"commands\".\"danger\" in (0, 1)"
224
+ }
225
+ }
226
+ },
227
+ "decision_reviews": {
228
+ "name": "decision_reviews",
229
+ "columns": {
230
+ "id": {
231
+ "name": "id",
232
+ "type": "text",
233
+ "primaryKey": true,
234
+ "notNull": true,
235
+ "autoincrement": false
236
+ },
237
+ "decisionId": {
238
+ "name": "decisionId",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": true,
242
+ "autoincrement": false
243
+ },
244
+ "reviewedAt": {
245
+ "name": "reviewedAt",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true,
249
+ "autoincrement": false
250
+ },
251
+ "result": {
252
+ "name": "result",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true,
256
+ "autoincrement": false
257
+ },
258
+ "rating": {
259
+ "name": "rating",
260
+ "type": "text",
261
+ "primaryKey": false,
262
+ "notNull": true,
263
+ "autoincrement": false
264
+ },
265
+ "lesson": {
266
+ "name": "lesson",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": true,
270
+ "autoincrement": false
271
+ },
272
+ "snapshot": {
273
+ "name": "snapshot",
274
+ "type": "text",
275
+ "primaryKey": false,
276
+ "notNull": true,
277
+ "autoincrement": false
278
+ }
279
+ },
280
+ "indexes": {
281
+ "reviews_decision_date": {
282
+ "name": "reviews_decision_date",
283
+ "columns": [
284
+ "decisionId",
285
+ "reviewedAt",
286
+ "id"
287
+ ],
288
+ "isUnique": false
289
+ }
290
+ },
291
+ "foreignKeys": {
292
+ "decision_reviews_decisionId_decisions_id_fk": {
293
+ "name": "decision_reviews_decisionId_decisions_id_fk",
294
+ "tableFrom": "decision_reviews",
295
+ "tableTo": "decisions",
296
+ "columnsFrom": [
297
+ "decisionId"
298
+ ],
299
+ "columnsTo": [
300
+ "id"
301
+ ],
302
+ "onDelete": "cascade",
303
+ "onUpdate": "no action"
304
+ }
305
+ },
306
+ "compositePrimaryKeys": {},
307
+ "uniqueConstraints": {},
308
+ "checkConstraints": {
309
+ "review_rating": {
310
+ "name": "review_rating",
311
+ "value": "\"decision_reviews\".\"rating\" in ('accurate', 'partial', 'failed')"
312
+ }
313
+ }
314
+ },
315
+ "decisions": {
316
+ "name": "decisions",
317
+ "columns": {
318
+ "id": {
319
+ "name": "id",
320
+ "type": "text",
321
+ "primaryKey": true,
322
+ "notNull": true,
323
+ "autoincrement": false
324
+ },
325
+ "title": {
326
+ "name": "title",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "autoincrement": false
331
+ },
332
+ "content": {
333
+ "name": "content",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": true,
337
+ "autoincrement": false,
338
+ "default": "''"
339
+ },
340
+ "reason": {
341
+ "name": "reason",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false,
346
+ "default": "''"
347
+ },
348
+ "alternatives": {
349
+ "name": "alternatives",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false,
354
+ "default": "''"
355
+ },
356
+ "expected": {
357
+ "name": "expected",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "autoincrement": false,
362
+ "default": "''"
363
+ },
364
+ "domain": {
365
+ "name": "domain",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false,
370
+ "default": "'architecture'"
371
+ },
372
+ "confidence": {
373
+ "name": "confidence",
374
+ "type": "integer",
375
+ "primaryKey": false,
376
+ "notNull": false,
377
+ "autoincrement": false
378
+ },
379
+ "reviewAt": {
380
+ "name": "reviewAt",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "projectId": {
387
+ "name": "projectId",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false
392
+ },
393
+ "createdAt": {
394
+ "name": "createdAt",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "updatedAt": {
401
+ "name": "updatedAt",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "autoincrement": false
406
+ }
407
+ },
408
+ "indexes": {
409
+ "decisions_project_review": {
410
+ "name": "decisions_project_review",
411
+ "columns": [
412
+ "projectId",
413
+ "reviewAt"
414
+ ],
415
+ "isUnique": false
416
+ }
417
+ },
418
+ "foreignKeys": {
419
+ "decisions_projectId_projects_id_fk": {
420
+ "name": "decisions_projectId_projects_id_fk",
421
+ "tableFrom": "decisions",
422
+ "tableTo": "projects",
423
+ "columnsFrom": [
424
+ "projectId"
425
+ ],
426
+ "columnsTo": [
427
+ "id"
428
+ ],
429
+ "onDelete": "set null",
430
+ "onUpdate": "no action"
431
+ }
432
+ },
433
+ "compositePrimaryKeys": {},
434
+ "uniqueConstraints": {},
435
+ "checkConstraints": {
436
+ "decision_confidence": {
437
+ "name": "decision_confidence",
438
+ "value": "\"decisions\".\"confidence\" is null or (typeof(\"decisions\".\"confidence\") = 'integer' and \"decisions\".\"confidence\" between 0 and 100)"
439
+ }
440
+ }
441
+ },
442
+ "entity_links": {
443
+ "name": "entity_links",
444
+ "columns": {
445
+ "commandId": {
446
+ "name": "commandId",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false
451
+ },
452
+ "decisionId": {
453
+ "name": "decisionId",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true,
457
+ "autoincrement": false
458
+ }
459
+ },
460
+ "indexes": {
461
+ "entity_links_decision": {
462
+ "name": "entity_links_decision",
463
+ "columns": [
464
+ "decisionId"
465
+ ],
466
+ "isUnique": false
467
+ }
468
+ },
469
+ "foreignKeys": {
470
+ "entity_links_commandId_commands_id_fk": {
471
+ "name": "entity_links_commandId_commands_id_fk",
472
+ "tableFrom": "entity_links",
473
+ "tableTo": "commands",
474
+ "columnsFrom": [
475
+ "commandId"
476
+ ],
477
+ "columnsTo": [
478
+ "id"
479
+ ],
480
+ "onDelete": "cascade",
481
+ "onUpdate": "no action"
482
+ },
483
+ "entity_links_decisionId_decisions_id_fk": {
484
+ "name": "entity_links_decisionId_decisions_id_fk",
485
+ "tableFrom": "entity_links",
486
+ "tableTo": "decisions",
487
+ "columnsFrom": [
488
+ "decisionId"
489
+ ],
490
+ "columnsTo": [
491
+ "id"
492
+ ],
493
+ "onDelete": "cascade",
494
+ "onUpdate": "no action"
495
+ }
496
+ },
497
+ "compositePrimaryKeys": {
498
+ "entity_links_commandId_decisionId_pk": {
499
+ "columns": [
500
+ "commandId",
501
+ "decisionId"
502
+ ],
503
+ "name": "entity_links_commandId_decisionId_pk"
504
+ }
505
+ },
506
+ "uniqueConstraints": {},
507
+ "checkConstraints": {}
508
+ },
509
+ "entity_tags": {
510
+ "name": "entity_tags",
511
+ "columns": {
512
+ "tagId": {
513
+ "name": "tagId",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "commandId": {
520
+ "name": "commandId",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": false,
524
+ "autoincrement": false
525
+ },
526
+ "decisionId": {
527
+ "name": "decisionId",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ }
533
+ },
534
+ "indexes": {
535
+ "entity_tags_command": {
536
+ "name": "entity_tags_command",
537
+ "columns": [
538
+ "commandId",
539
+ "tagId"
540
+ ],
541
+ "isUnique": true
542
+ },
543
+ "entity_tags_decision": {
544
+ "name": "entity_tags_decision",
545
+ "columns": [
546
+ "decisionId",
547
+ "tagId"
548
+ ],
549
+ "isUnique": true
550
+ },
551
+ "entity_tags_tag": {
552
+ "name": "entity_tags_tag",
553
+ "columns": [
554
+ "tagId"
555
+ ],
556
+ "isUnique": false
557
+ }
558
+ },
559
+ "foreignKeys": {
560
+ "entity_tags_tagId_tags_id_fk": {
561
+ "name": "entity_tags_tagId_tags_id_fk",
562
+ "tableFrom": "entity_tags",
563
+ "tableTo": "tags",
564
+ "columnsFrom": [
565
+ "tagId"
566
+ ],
567
+ "columnsTo": [
568
+ "id"
569
+ ],
570
+ "onDelete": "cascade",
571
+ "onUpdate": "no action"
572
+ },
573
+ "entity_tags_commandId_commands_id_fk": {
574
+ "name": "entity_tags_commandId_commands_id_fk",
575
+ "tableFrom": "entity_tags",
576
+ "tableTo": "commands",
577
+ "columnsFrom": [
578
+ "commandId"
579
+ ],
580
+ "columnsTo": [
581
+ "id"
582
+ ],
583
+ "onDelete": "cascade",
584
+ "onUpdate": "no action"
585
+ },
586
+ "entity_tags_decisionId_decisions_id_fk": {
587
+ "name": "entity_tags_decisionId_decisions_id_fk",
588
+ "tableFrom": "entity_tags",
589
+ "tableTo": "decisions",
590
+ "columnsFrom": [
591
+ "decisionId"
592
+ ],
593
+ "columnsTo": [
594
+ "id"
595
+ ],
596
+ "onDelete": "cascade",
597
+ "onUpdate": "no action"
598
+ }
599
+ },
600
+ "compositePrimaryKeys": {},
601
+ "uniqueConstraints": {},
602
+ "checkConstraints": {
603
+ "entity_tags_owner": {
604
+ "name": "entity_tags_owner",
605
+ "value": "(\"entity_tags\".\"commandId\" is null) != (\"entity_tags\".\"decisionId\" is null)"
606
+ }
607
+ }
608
+ },
609
+ "projects": {
610
+ "name": "projects",
611
+ "columns": {
612
+ "id": {
613
+ "name": "id",
614
+ "type": "text",
615
+ "primaryKey": true,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "name": {
620
+ "name": "name",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "root": {
627
+ "name": "root",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": true,
631
+ "autoincrement": false
632
+ },
633
+ "aliases": {
634
+ "name": "aliases",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": true,
638
+ "autoincrement": false,
639
+ "default": "'[]'"
640
+ },
641
+ "remote": {
642
+ "name": "remote",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": false,
646
+ "autoincrement": false
647
+ },
648
+ "createdAt": {
649
+ "name": "createdAt",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "updatedAt": {
656
+ "name": "updatedAt",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ }
662
+ },
663
+ "indexes": {
664
+ "projects_root": {
665
+ "name": "projects_root",
666
+ "columns": [
667
+ "root"
668
+ ],
669
+ "isUnique": true
670
+ },
671
+ "projects_remote": {
672
+ "name": "projects_remote",
673
+ "columns": [
674
+ "remote"
675
+ ],
676
+ "isUnique": true,
677
+ "where": "\"projects\".\"remote\" is not null"
678
+ }
679
+ },
680
+ "foreignKeys": {},
681
+ "compositePrimaryKeys": {},
682
+ "uniqueConstraints": {},
683
+ "checkConstraints": {}
684
+ },
685
+ "tags": {
686
+ "name": "tags",
687
+ "columns": {
688
+ "id": {
689
+ "name": "id",
690
+ "type": "text",
691
+ "primaryKey": true,
692
+ "notNull": true,
693
+ "autoincrement": false
694
+ },
695
+ "name": {
696
+ "name": "name",
697
+ "type": "text",
698
+ "primaryKey": false,
699
+ "notNull": true,
700
+ "autoincrement": false
701
+ },
702
+ "normalized": {
703
+ "name": "normalized",
704
+ "type": "text",
705
+ "primaryKey": false,
706
+ "notNull": true,
707
+ "autoincrement": false
708
+ }
709
+ },
710
+ "indexes": {
711
+ "tags_normalized_unique": {
712
+ "name": "tags_normalized_unique",
713
+ "columns": [
714
+ "normalized"
715
+ ],
716
+ "isUnique": true
717
+ }
718
+ },
719
+ "foreignKeys": {},
720
+ "compositePrimaryKeys": {},
721
+ "uniqueConstraints": {},
722
+ "checkConstraints": {}
723
+ }
724
+ },
725
+ "views": {},
726
+ "enums": {},
727
+ "_meta": {
728
+ "schemas": {},
729
+ "tables": {},
730
+ "columns": {}
731
+ },
732
+ "internal": {
733
+ "indexes": {}
734
+ }
735
+ }