@happyvertical/smrt-facts 0.57.46 → 0.57.48

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-facts",
5
- "packageVersion": "0.57.46",
5
+ "packageVersion": "0.57.48",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-facts:FactContent": {
8
8
  "name": "factcontent",
@@ -332,7 +332,8 @@
332
332
  {
333
333
  "name": "opts",
334
334
  "type": "JunctionAttachOptions",
335
- "optional": true
335
+ "optional": true,
336
+ "resolvedType": "Record<string, unknown>"
336
337
  }
337
338
  ],
338
339
  "returnType": "Promise<TItem>",
@@ -380,7 +381,8 @@
380
381
  {
381
382
  "name": "opts",
382
383
  "type": "JunctionAttachOptions",
383
- "optional": true
384
+ "optional": true,
385
+ "resolvedType": "Record<string, unknown>"
384
386
  }
385
387
  ],
386
388
  "returnType": "Promise<void>",
@@ -445,6 +447,11 @@
445
447
  "extendsTypeArg": "FactContent",
446
448
  "exportName": "FactContentCollection",
447
449
  "collectionExportName": "FactContentCollectionCollection",
450
+ "collectionOf": "@happyvertical/smrt-facts:FactContent",
451
+ "inheritedExposure": [
452
+ "api",
453
+ "mcp"
454
+ ],
448
455
  "schema": {
449
456
  "tableName": "fact_contents",
450
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);",
@@ -1036,6 +1043,11 @@
1036
1043
  "extendsTypeArg": "FactEvidence",
1037
1044
  "exportName": "FactEvidenceCollection",
1038
1045
  "collectionExportName": "FactEvidenceCollectionCollection",
1046
+ "collectionOf": "@happyvertical/smrt-facts:FactEvidence",
1047
+ "inheritedExposure": [
1048
+ "api",
1049
+ "mcp"
1050
+ ],
1039
1051
  "schema": {
1040
1052
  "tableName": "fact_evidences",
1041
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);",
@@ -1600,6 +1612,11 @@
1600
1612
  "extendsTypeArg": "FactSource",
1601
1613
  "exportName": "FactSourceCollection",
1602
1614
  "collectionExportName": "FactSourceCollectionCollection",
1615
+ "collectionOf": "@happyvertical/smrt-facts:FactSource",
1616
+ "inheritedExposure": [
1617
+ "api",
1618
+ "mcp"
1619
+ ],
1603
1620
  "schema": {
1604
1621
  "tableName": "fact_sources",
1605
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);",
@@ -2178,6 +2195,11 @@
2178
2195
  "extendsTypeArg": "FactSubject",
2179
2196
  "exportName": "FactSubjectCollection",
2180
2197
  "collectionExportName": "FactSubjectCollectionCollection",
2198
+ "collectionOf": "@happyvertical/smrt-facts:FactSubject",
2199
+ "inheritedExposure": [
2200
+ "api",
2201
+ "mcp"
2202
+ ],
2181
2203
  "schema": {
2182
2204
  "tableName": "fact_subjects",
2183
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);",
@@ -2658,6 +2680,11 @@
2658
2680
  "extendsTypeArg": "FactTag",
2659
2681
  "exportName": "FactTagCollection",
2660
2682
  "collectionExportName": "FactTagCollectionCollection",
2683
+ "collectionOf": "@happyvertical/smrt-facts:FactTag",
2684
+ "inheritedExposure": [
2685
+ "api",
2686
+ "mcp"
2687
+ ],
2661
2688
  "schema": {
2662
2689
  "tableName": "fact_tags",
2663
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);",
@@ -3571,6 +3598,11 @@
3571
3598
  "extendsTypeArg": "Fact",
3572
3599
  "exportName": "FactCollection",
3573
3600
  "collectionExportName": "FactCollectionCollection",
3601
+ "collectionOf": "@happyvertical/smrt-facts:Fact",
3602
+ "inheritedExposure": [
3603
+ "api",
3604
+ "mcp"
3605
+ ],
3574
3606
  "schema": {
3575
3607
  "tableName": "facts",
3576
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);",
@@ -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.57.46",
6
+ "packageVersion": "0.57.48",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "ca8782d7a36a0ecf9b4467a8c21587107026109bcabdd36958c2d8f3c521d725",
11
- "packageJson": "365602d188af83f12ebb26e4e0c2cd3819c6a8b524a0c8be2f1afb6ca555dab0",
10
+ "manifest": "bc0b2d4d5d29cad015e8eb15840d31ada445ef192b3f034c974b930aaeb20bfe",
11
+ "packageJson": "065a5263490743fee0c464a9ca8a84c89c791bd7b907056487a474ca656793b7",
12
12
  "agents": "3dff097c8282b094889f06247bdab664e75e54c85c4025219c82007f57b3a1bd"
13
13
  },
14
14
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-facts",
3
- "version": "0.57.46",
3
+ "version": "0.57.48",
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.0",
23
- "@happyvertical/files": "^0.111.0",
24
- "@happyvertical/logger": "^0.111.0",
25
- "@happyvertical/smrt-core": "0.57.46",
26
- "@happyvertical/smrt-prompts": "0.57.46",
27
- "@happyvertical/smrt-tenancy": "0.57.46",
28
- "@happyvertical/sql": "^0.111.0",
29
- "@happyvertical/utils": "^0.111.0"
22
+ "@happyvertical/ai": "^0.111.3",
23
+ "@happyvertical/files": "^0.111.3",
24
+ "@happyvertical/logger": "^0.111.3",
25
+ "@happyvertical/smrt-core": "0.57.48",
26
+ "@happyvertical/smrt-prompts": "0.57.48",
27
+ "@happyvertical/smrt-tenancy": "0.57.48",
28
+ "@happyvertical/sql": "^0.111.3",
29
+ "@happyvertical/utils": "^0.111.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@happyvertical/smrt-vitest": "0.57.46",
32
+ "@happyvertical/smrt-vitest": "0.57.48",
33
33
  "@types/node": "24.13.6",
34
34
  "typescript": "6.0.3",
35
35
  "vite": "8.1.6",