@cat-factory/node-server 0.29.0 → 0.31.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 (33) hide show
  1. package/dist/config.d.ts.map +1 -1
  2. package/dist/config.js +37 -0
  3. package/dist/config.js.map +1 -1
  4. package/dist/container.d.ts.map +1 -1
  5. package/dist/container.js +23 -1
  6. package/dist/container.js.map +1 -1
  7. package/dist/db/schema.d.ts +243 -0
  8. package/dist/db/schema.d.ts.map +1 -1
  9. package/dist/db/schema.js +49 -1
  10. package/dist/db/schema.js.map +1 -1
  11. package/dist/repositories/drizzle.d.ts +2 -1
  12. package/dist/repositories/drizzle.d.ts.map +1 -1
  13. package/dist/repositories/drizzle.js +97 -2
  14. package/dist/repositories/drizzle.js.map +1 -1
  15. package/dist/retention.d.ts +9 -1
  16. package/dist/retention.d.ts.map +1 -1
  17. package/dist/retention.js +32 -0
  18. package/dist/retention.js.map +1 -1
  19. package/dist/server.d.ts.map +1 -1
  20. package/dist/server.js +6 -1
  21. package/dist/server.js.map +1 -1
  22. package/dist/storage/PostgresBinaryBlobBackend.d.ts +11 -0
  23. package/dist/storage/PostgresBinaryBlobBackend.d.ts.map +1 -0
  24. package/dist/storage/PostgresBinaryBlobBackend.js +40 -0
  25. package/dist/storage/PostgresBinaryBlobBackend.js.map +1 -0
  26. package/drizzle/20260627083558_glossy_shen/migration.sql +23 -0
  27. package/drizzle/20260627083558_glossy_shen/snapshot.json +12574 -0
  28. package/drizzle/20260627102927_worthless_celestials/migration.sql +1 -0
  29. package/drizzle/20260627102927_worthless_celestials/snapshot.json +12587 -0
  30. package/drizzle/20260627111231_binary_artifacts_created_index/migration.sql +1 -0
  31. package/drizzle/20260627111231_binary_artifacts_created_index/snapshot.json +12615 -0
  32. package/drizzle/20260627131842_brave_slayback/snapshot.json +459 -3
  33. package/package.json +16 -15
@@ -1,10 +1,11 @@
1
1
  {
2
- "version": "8",
3
2
  "dialect": "postgres",
4
- "id": "0b692460-d43b-43e7-b4a0-396f66bdbf5d",
3
+ "id": "3cf68819-be91-4c77-870c-181f1e9af486",
5
4
  "prevIds": [
6
- "f9bb450d-f49d-450b-9ba5-b912ddda07e6"
5
+ "831ba498-de1d-41d0-8f67-fe9eb9bb527f",
6
+ "e08fa3bf-4aea-4709-9321-937165cb08c2"
7
7
  ],
8
+ "version": "8",
8
9
  "ddl": [
9
10
  {
10
11
  "name": "provisioning",
@@ -48,6 +49,18 @@
48
49
  "entityType": "tables",
49
50
  "schema": "public"
50
51
  },
52
+ {
53
+ "isRlsEnabled": false,
54
+ "name": "binary_artifact_blobs",
55
+ "entityType": "tables",
56
+ "schema": "public"
57
+ },
58
+ {
59
+ "isRlsEnabled": false,
60
+ "name": "binary_artifacts",
61
+ "entityType": "tables",
62
+ "schema": "public"
63
+ },
51
64
  {
52
65
  "isRlsEnabled": false,
53
66
  "name": "blocks",
@@ -222,6 +235,12 @@
222
235
  "entityType": "tables",
223
236
  "schema": "public"
224
237
  },
238
+ {
239
+ "isRlsEnabled": false,
240
+ "name": "password_reset_tokens",
241
+ "entityType": "tables",
242
+ "schema": "public"
243
+ },
225
244
  {
226
245
  "isRlsEnabled": false,
227
246
  "name": "personal_subscriptions",
@@ -1056,6 +1075,188 @@
1056
1075
  "schema": "public",
1057
1076
  "table": "agent_runs"
1058
1077
  },
1078
+ {
1079
+ "type": "text",
1080
+ "typeSchema": null,
1081
+ "notNull": true,
1082
+ "dimensions": 0,
1083
+ "default": null,
1084
+ "generated": null,
1085
+ "identity": null,
1086
+ "name": "storage_key",
1087
+ "entityType": "columns",
1088
+ "schema": "public",
1089
+ "table": "binary_artifact_blobs"
1090
+ },
1091
+ {
1092
+ "type": "bytea",
1093
+ "typeSchema": null,
1094
+ "notNull": true,
1095
+ "dimensions": 0,
1096
+ "default": null,
1097
+ "generated": null,
1098
+ "identity": null,
1099
+ "name": "bytes",
1100
+ "entityType": "columns",
1101
+ "schema": "public",
1102
+ "table": "binary_artifact_blobs"
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "typeSchema": null,
1107
+ "notNull": true,
1108
+ "dimensions": 0,
1109
+ "default": null,
1110
+ "generated": null,
1111
+ "identity": null,
1112
+ "name": "workspace_id",
1113
+ "entityType": "columns",
1114
+ "schema": "public",
1115
+ "table": "binary_artifacts"
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "typeSchema": null,
1120
+ "notNull": true,
1121
+ "dimensions": 0,
1122
+ "default": null,
1123
+ "generated": null,
1124
+ "identity": null,
1125
+ "name": "id",
1126
+ "entityType": "columns",
1127
+ "schema": "public",
1128
+ "table": "binary_artifacts"
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "typeSchema": null,
1133
+ "notNull": false,
1134
+ "dimensions": 0,
1135
+ "default": null,
1136
+ "generated": null,
1137
+ "identity": null,
1138
+ "name": "execution_id",
1139
+ "entityType": "columns",
1140
+ "schema": "public",
1141
+ "table": "binary_artifacts"
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "typeSchema": null,
1146
+ "notNull": false,
1147
+ "dimensions": 0,
1148
+ "default": null,
1149
+ "generated": null,
1150
+ "identity": null,
1151
+ "name": "block_id",
1152
+ "entityType": "columns",
1153
+ "schema": "public",
1154
+ "table": "binary_artifacts"
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "typeSchema": null,
1159
+ "notNull": true,
1160
+ "dimensions": 0,
1161
+ "default": null,
1162
+ "generated": null,
1163
+ "identity": null,
1164
+ "name": "kind",
1165
+ "entityType": "columns",
1166
+ "schema": "public",
1167
+ "table": "binary_artifacts"
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "typeSchema": null,
1172
+ "notNull": false,
1173
+ "dimensions": 0,
1174
+ "default": null,
1175
+ "generated": null,
1176
+ "identity": null,
1177
+ "name": "view",
1178
+ "entityType": "columns",
1179
+ "schema": "public",
1180
+ "table": "binary_artifacts"
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "typeSchema": null,
1185
+ "notNull": true,
1186
+ "dimensions": 0,
1187
+ "default": null,
1188
+ "generated": null,
1189
+ "identity": null,
1190
+ "name": "content_type",
1191
+ "entityType": "columns",
1192
+ "schema": "public",
1193
+ "table": "binary_artifacts"
1194
+ },
1195
+ {
1196
+ "type": "integer",
1197
+ "typeSchema": null,
1198
+ "notNull": true,
1199
+ "dimensions": 0,
1200
+ "default": null,
1201
+ "generated": null,
1202
+ "identity": null,
1203
+ "name": "byte_size",
1204
+ "entityType": "columns",
1205
+ "schema": "public",
1206
+ "table": "binary_artifacts"
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "typeSchema": null,
1211
+ "notNull": true,
1212
+ "dimensions": 0,
1213
+ "default": null,
1214
+ "generated": null,
1215
+ "identity": null,
1216
+ "name": "hash",
1217
+ "entityType": "columns",
1218
+ "schema": "public",
1219
+ "table": "binary_artifacts"
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "typeSchema": null,
1224
+ "notNull": true,
1225
+ "dimensions": 0,
1226
+ "default": null,
1227
+ "generated": null,
1228
+ "identity": null,
1229
+ "name": "storage",
1230
+ "entityType": "columns",
1231
+ "schema": "public",
1232
+ "table": "binary_artifacts"
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "typeSchema": null,
1237
+ "notNull": true,
1238
+ "dimensions": 0,
1239
+ "default": null,
1240
+ "generated": null,
1241
+ "identity": null,
1242
+ "name": "storage_key",
1243
+ "entityType": "columns",
1244
+ "schema": "public",
1245
+ "table": "binary_artifacts"
1246
+ },
1247
+ {
1248
+ "type": "bigint",
1249
+ "typeSchema": null,
1250
+ "notNull": true,
1251
+ "dimensions": 0,
1252
+ "default": null,
1253
+ "generated": null,
1254
+ "identity": null,
1255
+ "name": "created_at",
1256
+ "entityType": "columns",
1257
+ "schema": "public",
1258
+ "table": "binary_artifacts"
1259
+ },
1059
1260
  {
1060
1261
  "type": "text",
1061
1262
  "typeSchema": null,
@@ -5281,6 +5482,84 @@
5281
5482
  "schema": "public",
5282
5483
  "table": "observability_connections"
5283
5484
  },
5485
+ {
5486
+ "type": "text",
5487
+ "typeSchema": null,
5488
+ "notNull": true,
5489
+ "dimensions": 0,
5490
+ "default": null,
5491
+ "generated": null,
5492
+ "identity": null,
5493
+ "name": "id",
5494
+ "entityType": "columns",
5495
+ "schema": "public",
5496
+ "table": "password_reset_tokens"
5497
+ },
5498
+ {
5499
+ "type": "text",
5500
+ "typeSchema": null,
5501
+ "notNull": true,
5502
+ "dimensions": 0,
5503
+ "default": null,
5504
+ "generated": null,
5505
+ "identity": null,
5506
+ "name": "user_id",
5507
+ "entityType": "columns",
5508
+ "schema": "public",
5509
+ "table": "password_reset_tokens"
5510
+ },
5511
+ {
5512
+ "type": "text",
5513
+ "typeSchema": null,
5514
+ "notNull": true,
5515
+ "dimensions": 0,
5516
+ "default": null,
5517
+ "generated": null,
5518
+ "identity": null,
5519
+ "name": "token_hash",
5520
+ "entityType": "columns",
5521
+ "schema": "public",
5522
+ "table": "password_reset_tokens"
5523
+ },
5524
+ {
5525
+ "type": "text",
5526
+ "typeSchema": null,
5527
+ "notNull": true,
5528
+ "dimensions": 0,
5529
+ "default": "'pending'",
5530
+ "generated": null,
5531
+ "identity": null,
5532
+ "name": "status",
5533
+ "entityType": "columns",
5534
+ "schema": "public",
5535
+ "table": "password_reset_tokens"
5536
+ },
5537
+ {
5538
+ "type": "bigint",
5539
+ "typeSchema": null,
5540
+ "notNull": true,
5541
+ "dimensions": 0,
5542
+ "default": null,
5543
+ "generated": null,
5544
+ "identity": null,
5545
+ "name": "expires_at",
5546
+ "entityType": "columns",
5547
+ "schema": "public",
5548
+ "table": "password_reset_tokens"
5549
+ },
5550
+ {
5551
+ "type": "bigint",
5552
+ "typeSchema": null,
5553
+ "notNull": true,
5554
+ "dimensions": 0,
5555
+ "default": null,
5556
+ "generated": null,
5557
+ "identity": null,
5558
+ "name": "created_at",
5559
+ "entityType": "columns",
5560
+ "schema": "public",
5561
+ "table": "password_reset_tokens"
5562
+ },
5284
5563
  {
5285
5564
  "type": "text",
5286
5565
  "typeSchema": null,
@@ -9363,6 +9642,19 @@
9363
9642
  "schema": "public",
9364
9643
  "table": "workspace_settings"
9365
9644
  },
9645
+ {
9646
+ "type": "integer",
9647
+ "typeSchema": null,
9648
+ "notNull": true,
9649
+ "dimensions": 0,
9650
+ "default": "14",
9651
+ "generated": null,
9652
+ "identity": null,
9653
+ "name": "artifact_retention_days",
9654
+ "entityType": "columns",
9655
+ "schema": "public",
9656
+ "table": "workspace_settings"
9657
+ },
9366
9658
  {
9367
9659
  "type": "integer",
9368
9660
  "typeSchema": null,
@@ -9730,6 +10022,90 @@
9730
10022
  "schema": "public",
9731
10023
  "table": "agent_runs"
9732
10024
  },
10025
+ {
10026
+ "nameExplicit": true,
10027
+ "columns": [
10028
+ {
10029
+ "value": "workspace_id",
10030
+ "isExpression": false,
10031
+ "asc": true,
10032
+ "nullsFirst": false,
10033
+ "opclass": null
10034
+ },
10035
+ {
10036
+ "value": "execution_id",
10037
+ "isExpression": false,
10038
+ "asc": true,
10039
+ "nullsFirst": false,
10040
+ "opclass": null
10041
+ }
10042
+ ],
10043
+ "isUnique": false,
10044
+ "where": null,
10045
+ "with": "",
10046
+ "method": "btree",
10047
+ "concurrently": false,
10048
+ "name": "idx_binary_artifacts_execution",
10049
+ "entityType": "indexes",
10050
+ "schema": "public",
10051
+ "table": "binary_artifacts"
10052
+ },
10053
+ {
10054
+ "nameExplicit": true,
10055
+ "columns": [
10056
+ {
10057
+ "value": "workspace_id",
10058
+ "isExpression": false,
10059
+ "asc": true,
10060
+ "nullsFirst": false,
10061
+ "opclass": null
10062
+ },
10063
+ {
10064
+ "value": "block_id",
10065
+ "isExpression": false,
10066
+ "asc": true,
10067
+ "nullsFirst": false,
10068
+ "opclass": null
10069
+ }
10070
+ ],
10071
+ "isUnique": false,
10072
+ "where": null,
10073
+ "with": "",
10074
+ "method": "btree",
10075
+ "concurrently": false,
10076
+ "name": "idx_binary_artifacts_block",
10077
+ "entityType": "indexes",
10078
+ "schema": "public",
10079
+ "table": "binary_artifacts"
10080
+ },
10081
+ {
10082
+ "nameExplicit": true,
10083
+ "columns": [
10084
+ {
10085
+ "value": "workspace_id",
10086
+ "isExpression": false,
10087
+ "asc": true,
10088
+ "nullsFirst": false,
10089
+ "opclass": null
10090
+ },
10091
+ {
10092
+ "value": "created_at",
10093
+ "isExpression": false,
10094
+ "asc": true,
10095
+ "nullsFirst": false,
10096
+ "opclass": null
10097
+ }
10098
+ ],
10099
+ "isUnique": false,
10100
+ "where": null,
10101
+ "with": "",
10102
+ "method": "btree",
10103
+ "concurrently": false,
10104
+ "name": "idx_binary_artifacts_created",
10105
+ "entityType": "indexes",
10106
+ "schema": "public",
10107
+ "table": "binary_artifacts"
10108
+ },
9733
10109
  {
9734
10110
  "nameExplicit": true,
9735
10111
  "columns": [
@@ -10570,6 +10946,55 @@
10570
10946
  "schema": "public",
10571
10947
  "table": "notifications"
10572
10948
  },
10949
+ {
10950
+ "nameExplicit": true,
10951
+ "columns": [
10952
+ {
10953
+ "value": "token_hash",
10954
+ "isExpression": false,
10955
+ "asc": true,
10956
+ "nullsFirst": false,
10957
+ "opclass": null
10958
+ }
10959
+ ],
10960
+ "isUnique": true,
10961
+ "where": null,
10962
+ "with": "",
10963
+ "method": "btree",
10964
+ "concurrently": false,
10965
+ "name": "idx_password_reset_tokens_token",
10966
+ "entityType": "indexes",
10967
+ "schema": "public",
10968
+ "table": "password_reset_tokens"
10969
+ },
10970
+ {
10971
+ "nameExplicit": true,
10972
+ "columns": [
10973
+ {
10974
+ "value": "user_id",
10975
+ "isExpression": false,
10976
+ "asc": true,
10977
+ "nullsFirst": false,
10978
+ "opclass": null
10979
+ },
10980
+ {
10981
+ "value": "status",
10982
+ "isExpression": false,
10983
+ "asc": true,
10984
+ "nullsFirst": false,
10985
+ "opclass": null
10986
+ }
10987
+ ],
10988
+ "isUnique": false,
10989
+ "where": null,
10990
+ "with": "",
10991
+ "method": "btree",
10992
+ "concurrently": false,
10993
+ "name": "idx_password_reset_tokens_user",
10994
+ "entityType": "indexes",
10995
+ "schema": "public",
10996
+ "table": "password_reset_tokens"
10997
+ },
10573
10998
  {
10574
10999
  "nameExplicit": true,
10575
11000
  "columns": [
@@ -11582,6 +12007,17 @@
11582
12007
  "schema": "public",
11583
12008
  "table": "agent_runs"
11584
12009
  },
12010
+ {
12011
+ "columns": [
12012
+ "workspace_id",
12013
+ "id"
12014
+ ],
12015
+ "nameExplicit": false,
12016
+ "name": "binary_artifacts_pkey",
12017
+ "entityType": "pks",
12018
+ "schema": "public",
12019
+ "table": "binary_artifacts"
12020
+ },
11585
12021
  {
11586
12022
  "columns": [
11587
12023
  "workspace_id",
@@ -12071,6 +12507,16 @@
12071
12507
  "table": "agent_context_snapshots",
12072
12508
  "entityType": "pks"
12073
12509
  },
12510
+ {
12511
+ "columns": [
12512
+ "storage_key"
12513
+ ],
12514
+ "nameExplicit": false,
12515
+ "name": "binary_artifact_blobs_pkey",
12516
+ "schema": "public",
12517
+ "table": "binary_artifact_blobs",
12518
+ "entityType": "pks"
12519
+ },
12074
12520
  {
12075
12521
  "columns": [
12076
12522
  "account_id"
@@ -12151,6 +12597,16 @@
12151
12597
  "table": "observability_connections",
12152
12598
  "entityType": "pks"
12153
12599
  },
12600
+ {
12601
+ "columns": [
12602
+ "id"
12603
+ ],
12604
+ "nameExplicit": false,
12605
+ "name": "password_reset_tokens_pkey",
12606
+ "schema": "public",
12607
+ "table": "password_reset_tokens",
12608
+ "entityType": "pks"
12609
+ },
12154
12610
  {
12155
12611
  "columns": [
12156
12612
  "id"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/node-server",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Node.js runtime facade for the Agent Architecture Board: serves the shared @cat-factory/server Hono app via @hono/node-server, wiring Node implementations of the runtime ports (persistence, gateways, model provisioning).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,19 +31,20 @@
31
31
  "pg": "^8.22.0",
32
32
  "pg-boss": "^12.23.0",
33
33
  "ws": "^8.21.0",
34
- "@cat-factory/agents": "0.18.5",
35
- "@cat-factory/consensus": "0.7.52",
36
- "@cat-factory/contracts": "0.38.0",
37
- "@cat-factory/gates": "0.2.4",
38
- "@cat-factory/integrations": "0.23.4",
39
- "@cat-factory/kernel": "0.40.0",
40
- "@cat-factory/observability-langfuse": "0.7.48",
41
- "@cat-factory/orchestration": "0.30.0",
42
- "@cat-factory/provider-bedrock": "0.7.52",
43
- "@cat-factory/prompt-fragments": "0.7.36",
44
- "@cat-factory/server": "0.34.0",
45
- "@cat-factory/spend": "0.10.9",
46
- "@cat-factory/provider-cloudflare": "0.7.52"
34
+ "@cat-factory/agents": "0.20.0",
35
+ "@cat-factory/consensus": "0.7.54",
36
+ "@cat-factory/contracts": "0.40.0",
37
+ "@cat-factory/gates": "0.2.6",
38
+ "@cat-factory/integrations": "0.24.0",
39
+ "@cat-factory/kernel": "0.42.0",
40
+ "@cat-factory/observability-langfuse": "0.7.50",
41
+ "@cat-factory/orchestration": "0.32.0",
42
+ "@cat-factory/prompt-fragments": "0.7.38",
43
+ "@cat-factory/provider-cloudflare": "0.7.54",
44
+ "@cat-factory/provider-bedrock": "0.7.54",
45
+ "@cat-factory/provider-s3": "0.2.0",
46
+ "@cat-factory/server": "0.36.0",
47
+ "@cat-factory/spend": "0.10.11"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@types/node": "^26.0.0",
@@ -52,7 +53,7 @@
52
53
  "drizzle-kit": "1.0.0-rc.3",
53
54
  "typescript": "7.0.1-rc",
54
55
  "vitest": "^4.1.9",
55
- "@cat-factory/conformance": "0.9.0"
56
+ "@cat-factory/conformance": "0.9.2"
56
57
  },
57
58
  "scripts": {
58
59
  "build": "tsc -b tsconfig.build.json",