@happyvertical/smrt-facts 0.60.9 → 0.60.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +97 -25
- package/dist/smrt-knowledge.json +3 -3
- package/dist/smrt-knowledge.okf.md +90 -0
- package/package.json +10 -10
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-facts",
|
|
5
|
-
"packageVersion": "0.60.
|
|
5
|
+
"packageVersion": "0.60.11",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-facts:FactContent": {
|
|
8
8
|
"name": "factcontent",
|
|
@@ -169,8 +169,14 @@
|
|
|
169
169
|
],
|
|
170
170
|
"schema": {
|
|
171
171
|
"tableName": "fact_contents",
|
|
172
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"content_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'extracted_from',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
172
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_contents\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"content_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'extracted_from',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
173
173
|
"columns": {
|
|
174
|
+
"_sync_origin_device_id": {
|
|
175
|
+
"type": "TEXT"
|
|
176
|
+
},
|
|
177
|
+
"_sync_revision": {
|
|
178
|
+
"type": "INTEGER"
|
|
179
|
+
},
|
|
174
180
|
"id": {
|
|
175
181
|
"type": "UUID",
|
|
176
182
|
"primaryKey": true,
|
|
@@ -264,7 +270,7 @@
|
|
|
264
270
|
]
|
|
265
271
|
}
|
|
266
272
|
],
|
|
267
|
-
"version": "
|
|
273
|
+
"version": "10f2815a"
|
|
268
274
|
},
|
|
269
275
|
"importPath": "@happyvertical/smrt-facts"
|
|
270
276
|
},
|
|
@@ -454,8 +460,14 @@
|
|
|
454
460
|
],
|
|
455
461
|
"schema": {
|
|
456
462
|
"tableName": "fact_contents",
|
|
457
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_contents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"content_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'extracted_from',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
463
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_contents\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"content_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL DEFAULT 'extracted_from',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
458
464
|
"columns": {
|
|
465
|
+
"_sync_origin_device_id": {
|
|
466
|
+
"type": "TEXT"
|
|
467
|
+
},
|
|
468
|
+
"_sync_revision": {
|
|
469
|
+
"type": "INTEGER"
|
|
470
|
+
},
|
|
459
471
|
"id": {
|
|
460
472
|
"type": "UUID",
|
|
461
473
|
"primaryKey": true,
|
|
@@ -549,7 +561,7 @@
|
|
|
549
561
|
]
|
|
550
562
|
}
|
|
551
563
|
],
|
|
552
|
-
"version": "
|
|
564
|
+
"version": "10f2815a"
|
|
553
565
|
},
|
|
554
566
|
"importPath": "@happyvertical/smrt-facts"
|
|
555
567
|
},
|
|
@@ -753,8 +765,14 @@
|
|
|
753
765
|
],
|
|
754
766
|
"schema": {
|
|
755
767
|
"tableName": "fact_evidences",
|
|
756
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_evidences\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"evidence_key\" TEXT NOT NULL DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'supports',\n \"source_kind\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"quote\" TEXT DEFAULT '',\n \"locator\" TEXT DEFAULT '',\n \"extraction_method\" TEXT DEFAULT '',\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
768
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_evidences\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"evidence_key\" TEXT NOT NULL DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'supports',\n \"source_kind\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"quote\" TEXT DEFAULT '',\n \"locator\" TEXT DEFAULT '',\n \"extraction_method\" TEXT DEFAULT '',\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
757
769
|
"columns": {
|
|
770
|
+
"_sync_origin_device_id": {
|
|
771
|
+
"type": "TEXT"
|
|
772
|
+
},
|
|
773
|
+
"_sync_revision": {
|
|
774
|
+
"type": "INTEGER"
|
|
775
|
+
},
|
|
758
776
|
"id": {
|
|
759
777
|
"type": "UUID",
|
|
760
778
|
"primaryKey": true,
|
|
@@ -889,7 +907,7 @@
|
|
|
889
907
|
]
|
|
890
908
|
}
|
|
891
909
|
],
|
|
892
|
-
"version": "
|
|
910
|
+
"version": "a6ccdc3e"
|
|
893
911
|
},
|
|
894
912
|
"importPath": "@happyvertical/smrt-facts"
|
|
895
913
|
},
|
|
@@ -1050,8 +1068,14 @@
|
|
|
1050
1068
|
],
|
|
1051
1069
|
"schema": {
|
|
1052
1070
|
"tableName": "fact_evidences",
|
|
1053
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_evidences\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"evidence_key\" TEXT NOT NULL DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'supports',\n \"source_kind\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"quote\" TEXT DEFAULT '',\n \"locator\" TEXT DEFAULT '',\n \"extraction_method\" TEXT DEFAULT '',\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1071
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_evidences\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"evidence_key\" TEXT NOT NULL DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'supports',\n \"source_kind\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"quote\" TEXT DEFAULT '',\n \"locator\" TEXT DEFAULT '',\n \"extraction_method\" TEXT DEFAULT '',\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1054
1072
|
"columns": {
|
|
1073
|
+
"_sync_origin_device_id": {
|
|
1074
|
+
"type": "TEXT"
|
|
1075
|
+
},
|
|
1076
|
+
"_sync_revision": {
|
|
1077
|
+
"type": "INTEGER"
|
|
1078
|
+
},
|
|
1055
1079
|
"id": {
|
|
1056
1080
|
"type": "UUID",
|
|
1057
1081
|
"primaryKey": true,
|
|
@@ -1186,7 +1210,7 @@
|
|
|
1186
1210
|
]
|
|
1187
1211
|
}
|
|
1188
1212
|
],
|
|
1189
|
-
"version": "
|
|
1213
|
+
"version": "a6ccdc3e"
|
|
1190
1214
|
},
|
|
1191
1215
|
"importPath": "@happyvertical/smrt-facts"
|
|
1192
1216
|
},
|
|
@@ -1358,8 +1382,14 @@
|
|
|
1358
1382
|
],
|
|
1359
1383
|
"schema": {
|
|
1360
1384
|
"tableName": "fact_sources",
|
|
1361
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_sources\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID,\n \"source_type\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"credibility\" REAL DEFAULT 0,\n \"extracted_at\" TIMESTAMP,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1385
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_sources\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID,\n \"source_type\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"credibility\" REAL DEFAULT 0,\n \"extracted_at\" TIMESTAMP,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1362
1386
|
"columns": {
|
|
1387
|
+
"_sync_origin_device_id": {
|
|
1388
|
+
"type": "TEXT"
|
|
1389
|
+
},
|
|
1390
|
+
"_sync_revision": {
|
|
1391
|
+
"type": "INTEGER"
|
|
1392
|
+
},
|
|
1363
1393
|
"id": {
|
|
1364
1394
|
"type": "UUID",
|
|
1365
1395
|
"primaryKey": true,
|
|
@@ -1471,7 +1501,7 @@
|
|
|
1471
1501
|
]
|
|
1472
1502
|
}
|
|
1473
1503
|
],
|
|
1474
|
-
"version": "
|
|
1504
|
+
"version": "2dbf1801"
|
|
1475
1505
|
},
|
|
1476
1506
|
"importPath": "@happyvertical/smrt-facts"
|
|
1477
1507
|
},
|
|
@@ -1619,8 +1649,14 @@
|
|
|
1619
1649
|
],
|
|
1620
1650
|
"schema": {
|
|
1621
1651
|
"tableName": "fact_sources",
|
|
1622
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_sources\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID,\n \"source_type\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"credibility\" REAL DEFAULT 0,\n \"extracted_at\" TIMESTAMP,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1652
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_sources\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID,\n \"source_type\" TEXT DEFAULT '',\n \"source_url\" TEXT DEFAULT '',\n \"source_title\" TEXT DEFAULT '',\n \"credibility\" REAL DEFAULT 0,\n \"extracted_at\" TIMESTAMP,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1623
1653
|
"columns": {
|
|
1654
|
+
"_sync_origin_device_id": {
|
|
1655
|
+
"type": "TEXT"
|
|
1656
|
+
},
|
|
1657
|
+
"_sync_revision": {
|
|
1658
|
+
"type": "INTEGER"
|
|
1659
|
+
},
|
|
1624
1660
|
"id": {
|
|
1625
1661
|
"type": "UUID",
|
|
1626
1662
|
"primaryKey": true,
|
|
@@ -1732,7 +1768,7 @@
|
|
|
1732
1768
|
]
|
|
1733
1769
|
}
|
|
1734
1770
|
],
|
|
1735
|
-
"version": "
|
|
1771
|
+
"version": "2dbf1801"
|
|
1736
1772
|
},
|
|
1737
1773
|
"importPath": "@happyvertical/smrt-facts"
|
|
1738
1774
|
},
|
|
@@ -1909,8 +1945,14 @@
|
|
|
1909
1945
|
],
|
|
1910
1946
|
"schema": {
|
|
1911
1947
|
"tableName": "fact_subjects",
|
|
1912
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_subjects\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"entity_type\" TEXT NOT NULL DEFAULT '',\n \"entity_id\" TEXT NOT NULL DEFAULT '',\n \"role\" TEXT DEFAULT 'subject',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1948
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_subjects\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"entity_type\" TEXT NOT NULL DEFAULT '',\n \"entity_id\" TEXT NOT NULL DEFAULT '',\n \"role\" TEXT DEFAULT 'subject',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
1913
1949
|
"columns": {
|
|
1950
|
+
"_sync_origin_device_id": {
|
|
1951
|
+
"type": "TEXT"
|
|
1952
|
+
},
|
|
1953
|
+
"_sync_revision": {
|
|
1954
|
+
"type": "INTEGER"
|
|
1955
|
+
},
|
|
1914
1956
|
"id": {
|
|
1915
1957
|
"type": "UUID",
|
|
1916
1958
|
"primaryKey": true,
|
|
@@ -2004,7 +2046,7 @@
|
|
|
2004
2046
|
]
|
|
2005
2047
|
}
|
|
2006
2048
|
],
|
|
2007
|
-
"version": "
|
|
2049
|
+
"version": "d0c76286"
|
|
2008
2050
|
},
|
|
2009
2051
|
"importPath": "@happyvertical/smrt-facts"
|
|
2010
2052
|
},
|
|
@@ -2202,8 +2244,14 @@
|
|
|
2202
2244
|
],
|
|
2203
2245
|
"schema": {
|
|
2204
2246
|
"tableName": "fact_subjects",
|
|
2205
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_subjects\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"entity_type\" TEXT NOT NULL DEFAULT '',\n \"entity_id\" TEXT NOT NULL DEFAULT '',\n \"role\" TEXT DEFAULT 'subject',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2247
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_subjects\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"entity_type\" TEXT NOT NULL DEFAULT '',\n \"entity_id\" TEXT NOT NULL DEFAULT '',\n \"role\" TEXT DEFAULT 'subject',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2206
2248
|
"columns": {
|
|
2249
|
+
"_sync_origin_device_id": {
|
|
2250
|
+
"type": "TEXT"
|
|
2251
|
+
},
|
|
2252
|
+
"_sync_revision": {
|
|
2253
|
+
"type": "INTEGER"
|
|
2254
|
+
},
|
|
2207
2255
|
"id": {
|
|
2208
2256
|
"type": "UUID",
|
|
2209
2257
|
"primaryKey": true,
|
|
@@ -2297,7 +2345,7 @@
|
|
|
2297
2345
|
]
|
|
2298
2346
|
}
|
|
2299
2347
|
],
|
|
2300
|
-
"version": "
|
|
2348
|
+
"version": "d0c76286"
|
|
2301
2349
|
},
|
|
2302
2350
|
"importPath": "@happyvertical/smrt-facts"
|
|
2303
2351
|
},
|
|
@@ -2447,8 +2495,14 @@
|
|
|
2447
2495
|
],
|
|
2448
2496
|
"schema": {
|
|
2449
2497
|
"tableName": "fact_tags",
|
|
2450
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_tags\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"tag_slug\" TEXT NOT NULL DEFAULT '',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2498
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_tags\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"tag_slug\" TEXT NOT NULL DEFAULT '',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2451
2499
|
"columns": {
|
|
2500
|
+
"_sync_origin_device_id": {
|
|
2501
|
+
"type": "TEXT"
|
|
2502
|
+
},
|
|
2503
|
+
"_sync_revision": {
|
|
2504
|
+
"type": "INTEGER"
|
|
2505
|
+
},
|
|
2452
2506
|
"id": {
|
|
2453
2507
|
"type": "UUID",
|
|
2454
2508
|
"primaryKey": true,
|
|
@@ -2529,7 +2583,7 @@
|
|
|
2529
2583
|
]
|
|
2530
2584
|
}
|
|
2531
2585
|
],
|
|
2532
|
-
"version": "
|
|
2586
|
+
"version": "3b722e58"
|
|
2533
2587
|
},
|
|
2534
2588
|
"importPath": "@happyvertical/smrt-facts"
|
|
2535
2589
|
},
|
|
@@ -2687,8 +2741,14 @@
|
|
|
2687
2741
|
],
|
|
2688
2742
|
"schema": {
|
|
2689
2743
|
"tableName": "fact_tags",
|
|
2690
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_tags\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"tag_slug\" TEXT NOT NULL DEFAULT '',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2744
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"fact_tags\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"fact_id\" UUID NOT NULL,\n \"tag_slug\" TEXT NOT NULL DEFAULT '',\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
2691
2745
|
"columns": {
|
|
2746
|
+
"_sync_origin_device_id": {
|
|
2747
|
+
"type": "TEXT"
|
|
2748
|
+
},
|
|
2749
|
+
"_sync_revision": {
|
|
2750
|
+
"type": "INTEGER"
|
|
2751
|
+
},
|
|
2692
2752
|
"id": {
|
|
2693
2753
|
"type": "UUID",
|
|
2694
2754
|
"primaryKey": true,
|
|
@@ -2769,7 +2829,7 @@
|
|
|
2769
2829
|
]
|
|
2770
2830
|
}
|
|
2771
2831
|
],
|
|
2772
|
-
"version": "
|
|
2832
|
+
"version": "3b722e58"
|
|
2773
2833
|
},
|
|
2774
2834
|
"importPath": "@happyvertical/smrt-facts"
|
|
2775
2835
|
},
|
|
@@ -3078,8 +3138,14 @@
|
|
|
3078
3138
|
],
|
|
3079
3139
|
"schema": {
|
|
3080
3140
|
"tableName": "facts",
|
|
3081
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"facts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"text_refined\" TEXT DEFAULT '',\n \"text_raw\" TEXT DEFAULT '',\n \"catalog_search\" TEXT,\n \"type\" TEXT DEFAULT 'assertion',\n \"status\" TEXT DEFAULT 'pending',\n \"domain\" TEXT DEFAULT '',\n \"access_scope\" TEXT,\n \"previous_fact_id\" UUID,\n \"evolution_type\" TEXT DEFAULT 'original',\n \"source_count\" INTEGER DEFAULT 0,\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
3141
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"facts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"text_refined\" TEXT DEFAULT '',\n \"text_raw\" TEXT DEFAULT '',\n \"catalog_search\" TEXT,\n \"type\" TEXT DEFAULT 'assertion',\n \"status\" TEXT DEFAULT 'pending',\n \"domain\" TEXT DEFAULT '',\n \"access_scope\" TEXT,\n \"previous_fact_id\" UUID,\n \"evolution_type\" TEXT DEFAULT 'original',\n \"source_count\" INTEGER DEFAULT 0,\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
3082
3142
|
"columns": {
|
|
3143
|
+
"_sync_origin_device_id": {
|
|
3144
|
+
"type": "TEXT"
|
|
3145
|
+
},
|
|
3146
|
+
"_sync_revision": {
|
|
3147
|
+
"type": "INTEGER"
|
|
3148
|
+
},
|
|
3083
3149
|
"id": {
|
|
3084
3150
|
"type": "UUID",
|
|
3085
3151
|
"primaryKey": true,
|
|
@@ -3215,7 +3281,7 @@
|
|
|
3215
3281
|
]
|
|
3216
3282
|
}
|
|
3217
3283
|
],
|
|
3218
|
-
"version": "
|
|
3284
|
+
"version": "738419d3"
|
|
3219
3285
|
},
|
|
3220
3286
|
"importPath": "@happyvertical/smrt-facts"
|
|
3221
3287
|
},
|
|
@@ -3605,8 +3671,14 @@
|
|
|
3605
3671
|
],
|
|
3606
3672
|
"schema": {
|
|
3607
3673
|
"tableName": "facts",
|
|
3608
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"facts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"text_refined\" TEXT DEFAULT '',\n \"text_raw\" TEXT DEFAULT '',\n \"catalog_search\" TEXT,\n \"type\" TEXT DEFAULT 'assertion',\n \"status\" TEXT DEFAULT 'pending',\n \"domain\" TEXT DEFAULT '',\n \"access_scope\" TEXT,\n \"previous_fact_id\" UUID,\n \"evolution_type\" TEXT DEFAULT 'original',\n \"source_count\" INTEGER DEFAULT 0,\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
3674
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"facts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"text_refined\" TEXT DEFAULT '',\n \"text_raw\" TEXT DEFAULT '',\n \"catalog_search\" TEXT,\n \"type\" TEXT DEFAULT 'assertion',\n \"status\" TEXT DEFAULT 'pending',\n \"domain\" TEXT DEFAULT '',\n \"access_scope\" TEXT,\n \"previous_fact_id\" UUID,\n \"evolution_type\" TEXT DEFAULT 'original',\n \"source_count\" INTEGER DEFAULT 0,\n \"confidence\" REAL DEFAULT 0,\n \"metadata\" TEXT DEFAULT '',\n \"tenant_id\" UUID\n);",
|
|
3609
3675
|
"columns": {
|
|
3676
|
+
"_sync_origin_device_id": {
|
|
3677
|
+
"type": "TEXT"
|
|
3678
|
+
},
|
|
3679
|
+
"_sync_revision": {
|
|
3680
|
+
"type": "INTEGER"
|
|
3681
|
+
},
|
|
3610
3682
|
"id": {
|
|
3611
3683
|
"type": "UUID",
|
|
3612
3684
|
"primaryKey": true,
|
|
@@ -3742,7 +3814,7 @@
|
|
|
3742
3814
|
]
|
|
3743
3815
|
}
|
|
3744
3816
|
],
|
|
3745
|
-
"version": "
|
|
3817
|
+
"version": "738419d3"
|
|
3746
3818
|
},
|
|
3747
3819
|
"importPath": "@happyvertical/smrt-facts"
|
|
3748
3820
|
}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-facts",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.11",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "8536c4216627c6e7858be494776aee39bd0596a65883391a63af168bcab8a4f1",
|
|
11
|
+
"packageJson": "10a6b07b749b91f820097ec5121ad0ec202ae08dacb261b7862483b4f03de172",
|
|
12
12
|
"agents": "3dff097c8282b094889f06247bdab664e75e54c85c4025219c82007f57b3a1bd"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: "Component"
|
|
3
|
+
title: "@happyvertical/smrt-facts"
|
|
4
|
+
description: "Distributed memory and knowledge management with provenance tracking for SMRT framework"
|
|
5
|
+
status: "stable"
|
|
6
|
+
generated:
|
|
7
|
+
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
+
at: "2026-11-05T15:48:19Z"
|
|
9
|
+
audience: "internal"
|
|
10
|
+
evidence_level: "source-inspected"
|
|
11
|
+
source_revision: "sha256:74aa5926b3f3a4f9c58fb4641535c987ef2d5dd2cd7bf41c00e7d80a24adc8fe"
|
|
12
|
+
sources:
|
|
13
|
+
- id: "manifest"
|
|
14
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/facts/package.json"
|
|
15
|
+
title: "@happyvertical/smrt-facts package manifest"
|
|
16
|
+
- id: "agents"
|
|
17
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/facts/AGENTS.md"
|
|
18
|
+
title: "@happyvertical/smrt-facts packages/facts/AGENTS.md"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# @happyvertical/smrt-facts
|
|
22
|
+
|
|
23
|
+
## Package
|
|
24
|
+
|
|
25
|
+
- Directory: `packages/facts`
|
|
26
|
+
- Private: no
|
|
27
|
+
- Object source: `domain-artifact`
|
|
28
|
+
- Evidence level: `source-inspected`
|
|
29
|
+
|
|
30
|
+
## Documentation
|
|
31
|
+
|
|
32
|
+
- `packages/facts/AGENTS.md`
|
|
33
|
+
|
|
34
|
+
## Framework dependencies
|
|
35
|
+
|
|
36
|
+
- [smrt-core](/components/smrt-core.md)
|
|
37
|
+
- [smrt-prompts](/components/smrt-prompts.md)
|
|
38
|
+
- [smrt-tenancy](/components/smrt-tenancy.md)
|
|
39
|
+
- [smrt-vitest](/components/smrt-vitest.md)
|
|
40
|
+
|
|
41
|
+
## SDK dependencies
|
|
42
|
+
|
|
43
|
+
- `@happyvertical/ai`
|
|
44
|
+
- `@happyvertical/files`
|
|
45
|
+
- `@happyvertical/logger`
|
|
46
|
+
- `@happyvertical/sql`
|
|
47
|
+
- `@happyvertical/utils`
|
|
48
|
+
|
|
49
|
+
## Exports
|
|
50
|
+
|
|
51
|
+
- `.`
|
|
52
|
+
- `./manifest`
|
|
53
|
+
- `./manifest.json`
|
|
54
|
+
|
|
55
|
+
## Models
|
|
56
|
+
|
|
57
|
+
- `Fact` (collection `facts`, extends `SmrtObject`, STI table)
|
|
58
|
+
- `FactCollection` (collection `facts`, extends `SmrtCollection`)
|
|
59
|
+
- `FactContent` (collection `factcontents`, extends `SmrtObject`)
|
|
60
|
+
- `FactContentCollection` (collection `factcontents`, extends `SmrtJunction`)
|
|
61
|
+
- `FactEvidence` (collection `factevidences`, extends `SmrtObject`)
|
|
62
|
+
- `FactEvidenceCollection` (collection `factevidences`, extends `SmrtCollection`)
|
|
63
|
+
- `FactSource` (collection `factsources`, extends `SmrtObject`, STI table)
|
|
64
|
+
- `FactSourceCollection` (collection `factsources`, extends `SmrtCollection`)
|
|
65
|
+
- `FactSubject` (collection `factsubjects`, extends `SmrtObject`)
|
|
66
|
+
- `FactSubjectCollection` (collection `factsubjects`, extends `SmrtCollection`)
|
|
67
|
+
- `FactTag` (collection `facttags`, extends `SmrtObject`)
|
|
68
|
+
- `FactTagCollection` (collection `facttags`, extends `SmrtCollection`)
|
|
69
|
+
|
|
70
|
+
## MCP tools
|
|
71
|
+
|
|
72
|
+
- `fact_create`: create on `@happyvertical/smrt-facts:Fact`
|
|
73
|
+
- `fact_get`: get on `@happyvertical/smrt-facts:Fact`
|
|
74
|
+
- `fact_list`: list on `@happyvertical/smrt-facts:Fact`
|
|
75
|
+
- `fact_update`: update on `@happyvertical/smrt-facts:Fact`
|
|
76
|
+
- `factcontent_create`: create on `@happyvertical/smrt-facts:FactContent`
|
|
77
|
+
- `factcontent_get`: get on `@happyvertical/smrt-facts:FactContent`
|
|
78
|
+
- `factcontent_list`: list on `@happyvertical/smrt-facts:FactContent`
|
|
79
|
+
- `factevidence_create`: create on `@happyvertical/smrt-facts:FactEvidence`
|
|
80
|
+
- `factevidence_get`: get on `@happyvertical/smrt-facts:FactEvidence`
|
|
81
|
+
- `factevidence_list`: list on `@happyvertical/smrt-facts:FactEvidence`
|
|
82
|
+
- `factsource_create`: create on `@happyvertical/smrt-facts:FactSource`
|
|
83
|
+
- `factsource_get`: get on `@happyvertical/smrt-facts:FactSource`
|
|
84
|
+
- `factsource_list`: list on `@happyvertical/smrt-facts:FactSource`
|
|
85
|
+
- `factsubject_create`: create on `@happyvertical/smrt-facts:FactSubject`
|
|
86
|
+
- `factsubject_get`: get on `@happyvertical/smrt-facts:FactSubject`
|
|
87
|
+
- `factsubject_list`: list on `@happyvertical/smrt-facts:FactSubject`
|
|
88
|
+
- `facttag_create`: create on `@happyvertical/smrt-facts:FactTag`
|
|
89
|
+
- `facttag_get`: get on `@happyvertical/smrt-facts:FactTag`
|
|
90
|
+
- `facttag_list`: list on `@happyvertical/smrt-facts:FactTag`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-facts",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.11",
|
|
4
4
|
"description": "Distributed memory and knowledge management with provenance tracking for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"./manifest.json": "./dist/manifest.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@happyvertical/ai": "^0.111.
|
|
23
|
-
"@happyvertical/files": "^0.111.
|
|
24
|
-
"@happyvertical/logger": "^0.111.
|
|
25
|
-
"@happyvertical/smrt-core": "0.60.
|
|
26
|
-
"@happyvertical/smrt-prompts": "0.60.
|
|
27
|
-
"@happyvertical/smrt-tenancy": "0.60.
|
|
28
|
-
"@happyvertical/sql": "^0.111.
|
|
29
|
-
"@happyvertical/utils": "^0.111.
|
|
22
|
+
"@happyvertical/ai": "^0.111.5",
|
|
23
|
+
"@happyvertical/files": "^0.111.5",
|
|
24
|
+
"@happyvertical/logger": "^0.111.5",
|
|
25
|
+
"@happyvertical/smrt-core": "0.60.11",
|
|
26
|
+
"@happyvertical/smrt-prompts": "0.60.11",
|
|
27
|
+
"@happyvertical/smrt-tenancy": "0.60.11",
|
|
28
|
+
"@happyvertical/sql": "^0.111.5",
|
|
29
|
+
"@happyvertical/utils": "^0.111.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@happyvertical/smrt-vitest": "0.60.
|
|
32
|
+
"@happyvertical/smrt-vitest": "0.60.11",
|
|
33
33
|
"@types/node": "24.13.6",
|
|
34
34
|
"typescript": "6.0.3",
|
|
35
35
|
"vite": "8.1.6",
|