@happyvertical/smrt-manufacturing 0.60.8 → 0.60.10

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-manufacturing",
5
- "packageVersion": "0.60.8",
5
+ "packageVersion": "0.60.10",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-manufacturing:BillOfMaterialsCollection": {
8
8
  "name": "billofmaterialscollection",
@@ -84,8 +84,14 @@
84
84
  ],
85
85
  "schema": {
86
86
  "tableName": "manufacturing_boms",
87
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\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 \"tenant_id\" UUID,\n \"product_id\" TEXT NOT NULL DEFAULT '',\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"effective_date\" TIMESTAMP,\n \"status\" TEXT NOT NULL DEFAULT 'draft',\n \"notes\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD'\n);",
87
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\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 \"tenant_id\" UUID,\n \"product_id\" TEXT NOT NULL DEFAULT '',\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"effective_date\" TIMESTAMP,\n \"status\" TEXT NOT NULL DEFAULT 'draft',\n \"notes\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD'\n);",
88
88
  "columns": {
89
+ "_sync_origin_device_id": {
90
+ "type": "TEXT"
91
+ },
92
+ "_sync_revision": {
93
+ "type": "INTEGER"
94
+ },
89
95
  "id": {
90
96
  "type": "UUID",
91
97
  "primaryKey": true,
@@ -179,7 +185,7 @@
179
185
  ]
180
186
  }
181
187
  ],
182
- "version": "b2691adc"
188
+ "version": "ca3e355b"
183
189
  },
184
190
  "importPath": "@happyvertical/smrt-manufacturing"
185
191
  },
@@ -249,8 +255,14 @@
249
255
  ],
250
256
  "schema": {
251
257
  "tableName": "manufacturing_bom_lines",
252
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\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 \"tenant_id\" UUID,\n \"bom_id\" TEXT NOT NULL DEFAULT '',\n \"component_sku_id\" TEXT NOT NULL DEFAULT '',\n \"qty_per_unit\" REAL,\n \"uom\" TEXT DEFAULT 'each',\n \"waste_percent\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
258
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\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 \"tenant_id\" UUID,\n \"bom_id\" TEXT NOT NULL DEFAULT '',\n \"component_sku_id\" TEXT NOT NULL DEFAULT '',\n \"qty_per_unit\" REAL,\n \"uom\" TEXT DEFAULT 'each',\n \"waste_percent\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
253
259
  "columns": {
260
+ "_sync_origin_device_id": {
261
+ "type": "TEXT"
262
+ },
263
+ "_sync_revision": {
264
+ "type": "INTEGER"
265
+ },
254
266
  "id": {
255
267
  "type": "UUID",
256
268
  "primaryKey": true,
@@ -343,7 +355,7 @@
343
355
  ]
344
356
  }
345
357
  ],
346
- "version": "cfbae7e8"
358
+ "version": "fd7f769a"
347
359
  },
348
360
  "importPath": "@happyvertical/smrt-manufacturing"
349
361
  },
@@ -421,8 +433,14 @@
421
433
  ],
422
434
  "schema": {
423
435
  "tableName": "manufacturing_operations",
424
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\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 \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT NOT NULL DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
436
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\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 \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT NOT NULL DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
425
437
  "columns": {
438
+ "_sync_origin_device_id": {
439
+ "type": "TEXT"
440
+ },
441
+ "_sync_revision": {
442
+ "type": "INTEGER"
443
+ },
426
444
  "id": {
427
445
  "type": "UUID",
428
446
  "primaryKey": true,
@@ -516,7 +534,7 @@
516
534
  ]
517
535
  }
518
536
  ],
519
- "version": "0b3134d6"
537
+ "version": "f7214efc"
520
538
  },
521
539
  "importPath": "@happyvertical/smrt-manufacturing"
522
540
  },
@@ -591,8 +609,14 @@
591
609
  ],
592
610
  "schema": {
593
611
  "tableName": "manufacturing_production_runs",
594
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_runs\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"target_qty\" REAL,\n \"completed_qty\" REAL,\n \"status\" TEXT NOT NULL DEFAULT 'planned'\n);",
612
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_runs\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"target_qty\" REAL,\n \"completed_qty\" REAL,\n \"status\" TEXT NOT NULL DEFAULT 'planned'\n);",
595
613
  "columns": {
614
+ "_sync_origin_device_id": {
615
+ "type": "TEXT"
616
+ },
617
+ "_sync_revision": {
618
+ "type": "INTEGER"
619
+ },
596
620
  "id": {
597
621
  "type": "UUID",
598
622
  "primaryKey": true,
@@ -678,7 +702,7 @@
678
702
  ]
679
703
  }
680
704
  ],
681
- "version": "2ca8147d"
705
+ "version": "f8842e12"
682
706
  },
683
707
  "importPath": "@happyvertical/smrt-manufacturing"
684
708
  },
@@ -739,8 +763,14 @@
739
763
  ],
740
764
  "schema": {
741
765
  "tableName": "manufacturing_production_run_completions",
742
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_run_completions\" (\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 \"tenant_id\" UUID,\n \"run_id\" UUID NOT NULL,\n \"qty\" REAL,\n \"completed_at\" TIMESTAMP\n);",
766
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_run_completions\" (\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 \"tenant_id\" UUID,\n \"run_id\" UUID NOT NULL,\n \"qty\" REAL,\n \"completed_at\" TIMESTAMP\n);",
743
767
  "columns": {
768
+ "_sync_origin_device_id": {
769
+ "type": "TEXT"
770
+ },
771
+ "_sync_revision": {
772
+ "type": "INTEGER"
773
+ },
744
774
  "id": {
745
775
  "type": "UUID",
746
776
  "primaryKey": true,
@@ -820,7 +850,7 @@
820
850
  ]
821
851
  }
822
852
  ],
823
- "version": "c940de6c"
853
+ "version": "9eb691b7"
824
854
  },
825
855
  "importPath": "@happyvertical/smrt-manufacturing"
826
856
  },
@@ -888,8 +918,14 @@
888
918
  ],
889
919
  "schema": {
890
920
  "tableName": "manufacturing_routing_steps",
891
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID NOT NULL,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
921
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID NOT NULL,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
892
922
  "columns": {
923
+ "_sync_origin_device_id": {
924
+ "type": "TEXT"
925
+ },
926
+ "_sync_revision": {
927
+ "type": "INTEGER"
928
+ },
893
929
  "id": {
894
930
  "type": "UUID",
895
931
  "primaryKey": true,
@@ -995,7 +1031,7 @@
995
1031
  ]
996
1032
  }
997
1033
  ],
998
- "version": "41ac3c66"
1034
+ "version": "479c4d93"
999
1035
  },
1000
1036
  "importPath": "@happyvertical/smrt-manufacturing"
1001
1037
  },
@@ -1275,8 +1311,14 @@
1275
1311
  ],
1276
1312
  "schema": {
1277
1313
  "tableName": "products",
1278
- "ddl": "CREATE TABLE IF NOT EXISTS \"products\" (\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 \"tenant_id\" UUID,\n \"product_type\" TEXT,\n \"name\" TEXT,\n \"description\" TEXT,\n \"category\" TEXT,\n \"manufacturer\" TEXT,\n \"model\" TEXT,\n \"price\" INTEGER DEFAULT 0,\n \"default_sales_tax_code_id\" UUID,\n \"default_purchase_tax_code_id\" UUID,\n \"in_stock\" BOOLEAN DEFAULT TRUE,\n \"specifications\" JSON DEFAULT '{}',\n \"tags\" JSON DEFAULT '[]',\n \"estimated_labour_minutes\" INTEGER DEFAULT 0,\n \"default_operation_id\" UUID,\n \"part_reference\" TEXT DEFAULT ''\n);",
1314
+ "ddl": "CREATE TABLE IF NOT EXISTS \"products\" (\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 \"tenant_id\" UUID,\n \"product_type\" TEXT,\n \"name\" TEXT,\n \"description\" TEXT,\n \"category\" TEXT,\n \"manufacturer\" TEXT,\n \"model\" TEXT,\n \"price\" INTEGER DEFAULT 0,\n \"default_sales_tax_code_id\" UUID,\n \"default_purchase_tax_code_id\" UUID,\n \"in_stock\" BOOLEAN DEFAULT TRUE,\n \"specifications\" JSON DEFAULT '{}',\n \"tags\" JSON DEFAULT '[]',\n \"estimated_labour_minutes\" INTEGER DEFAULT 0,\n \"default_operation_id\" UUID,\n \"part_reference\" TEXT DEFAULT ''\n);",
1279
1315
  "columns": {
1316
+ "_sync_origin_device_id": {
1317
+ "type": "TEXT"
1318
+ },
1319
+ "_sync_revision": {
1320
+ "type": "INTEGER"
1321
+ },
1280
1322
  "id": {
1281
1323
  "type": "UUID",
1282
1324
  "primaryKey": true,
@@ -1435,7 +1477,7 @@
1435
1477
  ]
1436
1478
  }
1437
1479
  ],
1438
- "version": "e1a54866"
1480
+ "version": "f371449c"
1439
1481
  },
1440
1482
  "importPath": "@happyvertical/smrt-manufacturing"
1441
1483
  },
@@ -1572,8 +1614,14 @@
1572
1614
  ],
1573
1615
  "schema": {
1574
1616
  "tableName": "manufacturing_boms",
1575
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\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 \"tenant_id\" UUID,\n \"product_id\" TEXT NOT NULL DEFAULT '',\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"effective_date\" TIMESTAMP,\n \"status\" TEXT NOT NULL DEFAULT 'draft',\n \"notes\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD'\n);",
1617
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_boms\" (\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 \"tenant_id\" UUID,\n \"product_id\" TEXT NOT NULL DEFAULT '',\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"effective_date\" TIMESTAMP,\n \"status\" TEXT NOT NULL DEFAULT 'draft',\n \"notes\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD'\n);",
1576
1618
  "columns": {
1619
+ "_sync_origin_device_id": {
1620
+ "type": "TEXT"
1621
+ },
1622
+ "_sync_revision": {
1623
+ "type": "INTEGER"
1624
+ },
1577
1625
  "id": {
1578
1626
  "type": "UUID",
1579
1627
  "primaryKey": true,
@@ -1667,7 +1715,7 @@
1667
1715
  ]
1668
1716
  }
1669
1717
  ],
1670
- "version": "b2691adc"
1718
+ "version": "ca3e355b"
1671
1719
  },
1672
1720
  "importPath": "@happyvertical/smrt-manufacturing"
1673
1721
  },
@@ -1800,8 +1848,14 @@
1800
1848
  ],
1801
1849
  "schema": {
1802
1850
  "tableName": "manufacturing_bom_lines",
1803
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\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 \"tenant_id\" UUID,\n \"bom_id\" TEXT NOT NULL DEFAULT '',\n \"component_sku_id\" TEXT NOT NULL DEFAULT '',\n \"qty_per_unit\" REAL,\n \"uom\" TEXT DEFAULT 'each',\n \"waste_percent\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
1851
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_bom_lines\" (\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 \"tenant_id\" UUID,\n \"bom_id\" TEXT NOT NULL DEFAULT '',\n \"component_sku_id\" TEXT NOT NULL DEFAULT '',\n \"qty_per_unit\" REAL,\n \"uom\" TEXT DEFAULT 'each',\n \"waste_percent\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
1804
1852
  "columns": {
1853
+ "_sync_origin_device_id": {
1854
+ "type": "TEXT"
1855
+ },
1856
+ "_sync_revision": {
1857
+ "type": "INTEGER"
1858
+ },
1805
1859
  "id": {
1806
1860
  "type": "UUID",
1807
1861
  "primaryKey": true,
@@ -1894,7 +1948,7 @@
1894
1948
  ]
1895
1949
  }
1896
1950
  ],
1897
- "version": "cfbae7e8"
1951
+ "version": "fd7f769a"
1898
1952
  },
1899
1953
  "importPath": "@happyvertical/smrt-manufacturing"
1900
1954
  },
@@ -2023,8 +2077,14 @@
2023
2077
  ],
2024
2078
  "schema": {
2025
2079
  "tableName": "manufacturing_operations",
2026
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\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 \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT NOT NULL DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
2080
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_operations\" (\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 \"tenant_id\" UUID,\n \"code\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT NOT NULL DEFAULT '',\n \"category\" TEXT DEFAULT '',\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"required_qualification_id\" UUID\n);",
2027
2081
  "columns": {
2082
+ "_sync_origin_device_id": {
2083
+ "type": "TEXT"
2084
+ },
2085
+ "_sync_revision": {
2086
+ "type": "INTEGER"
2087
+ },
2028
2088
  "id": {
2029
2089
  "type": "UUID",
2030
2090
  "primaryKey": true,
@@ -2118,7 +2178,7 @@
2118
2178
  ]
2119
2179
  }
2120
2180
  ],
2121
- "version": "0b3134d6"
2181
+ "version": "f7214efc"
2122
2182
  },
2123
2183
  "importPath": "@happyvertical/smrt-manufacturing"
2124
2184
  },
@@ -2248,8 +2308,14 @@
2248
2308
  ],
2249
2309
  "schema": {
2250
2310
  "tableName": "manufacturing_production_runs",
2251
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_runs\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"target_qty\" REAL,\n \"completed_qty\" REAL,\n \"status\" TEXT NOT NULL DEFAULT 'planned'\n);",
2311
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_runs\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"target_qty\" REAL,\n \"completed_qty\" REAL,\n \"status\" TEXT NOT NULL DEFAULT 'planned'\n);",
2252
2312
  "columns": {
2313
+ "_sync_origin_device_id": {
2314
+ "type": "TEXT"
2315
+ },
2316
+ "_sync_revision": {
2317
+ "type": "INTEGER"
2318
+ },
2253
2319
  "id": {
2254
2320
  "type": "UUID",
2255
2321
  "primaryKey": true,
@@ -2335,7 +2401,7 @@
2335
2401
  ]
2336
2402
  }
2337
2403
  ],
2338
- "version": "2ca8147d"
2404
+ "version": "f8842e12"
2339
2405
  },
2340
2406
  "importPath": "@happyvertical/smrt-manufacturing"
2341
2407
  },
@@ -2435,8 +2501,14 @@
2435
2501
  ],
2436
2502
  "schema": {
2437
2503
  "tableName": "manufacturing_production_run_completions",
2438
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_run_completions\" (\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 \"tenant_id\" UUID,\n \"run_id\" UUID NOT NULL,\n \"qty\" REAL,\n \"completed_at\" TIMESTAMP\n);",
2504
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_production_run_completions\" (\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 \"tenant_id\" UUID,\n \"run_id\" UUID NOT NULL,\n \"qty\" REAL,\n \"completed_at\" TIMESTAMP\n);",
2439
2505
  "columns": {
2506
+ "_sync_origin_device_id": {
2507
+ "type": "TEXT"
2508
+ },
2509
+ "_sync_revision": {
2510
+ "type": "INTEGER"
2511
+ },
2440
2512
  "id": {
2441
2513
  "type": "UUID",
2442
2514
  "primaryKey": true,
@@ -2516,7 +2588,7 @@
2516
2588
  ]
2517
2589
  }
2518
2590
  ],
2519
- "version": "c940de6c"
2591
+ "version": "9eb691b7"
2520
2592
  },
2521
2593
  "importPath": "@happyvertical/smrt-manufacturing"
2522
2594
  },
@@ -2641,8 +2713,14 @@
2641
2713
  ],
2642
2714
  "schema": {
2643
2715
  "tableName": "manufacturing_routing_steps",
2644
- "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID NOT NULL,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
2716
+ "ddl": "CREATE TABLE IF NOT EXISTS \"manufacturing_routing_steps\" (\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 \"tenant_id\" UUID,\n \"bom_id\" UUID NOT NULL,\n \"operation_id\" UUID NOT NULL,\n \"sequence\" INTEGER NOT NULL DEFAULT 1,\n \"estimated_minutes\" REAL,\n \"notes\" TEXT DEFAULT ''\n);",
2645
2717
  "columns": {
2718
+ "_sync_origin_device_id": {
2719
+ "type": "TEXT"
2720
+ },
2721
+ "_sync_revision": {
2722
+ "type": "INTEGER"
2723
+ },
2646
2724
  "id": {
2647
2725
  "type": "UUID",
2648
2726
  "primaryKey": true,
@@ -2748,7 +2826,7 @@
2748
2826
  ]
2749
2827
  }
2750
2828
  ],
2751
- "version": "41ac3c66"
2829
+ "version": "479c4d93"
2752
2830
  },
2753
2831
  "importPath": "@happyvertical/smrt-manufacturing"
2754
2832
  }
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-manufacturing",
6
- "packageVersion": "0.60.8",
6
+ "packageVersion": "0.60.10",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "3ea52ece086dd371d46398ffb8397b30760b26701513cfc7f042c018ca25e26a",
11
- "packageJson": "ef9f3fba21ba2235ee203c853d99048b825d4673e750af0036f4825d0b7ea38d",
10
+ "manifest": "cb5357511e0e023ce2c78bea89908fd8668012193967c27deda2fff04d34e6d7",
11
+ "packageJson": "771b71bae973adab0bd02fc6c61f03e7922821b42abbc1a479b0dc6fc91132c3",
12
12
  "agents": "53bbb8d8dfd7e1dbd438a4ad1559be8cd1ad8ed46c726d5498d2dda5b3535054",
13
13
  "moduleDoc:agents/multilevel-and-runs.md": "544d519356801f3cb3beb9e6d49a3e0eec93fdddf3f56150cf3141f766f98c9d"
14
14
  },
@@ -0,0 +1,93 @@
1
+ ---
2
+ type: "Component"
3
+ title: "@happyvertical/smrt-manufacturing"
4
+ description: "Bills of materials, cost rollup, and production-order operations for the SMRT framework — strictly industry-neutral"
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:009a2c3092f06d4543853b3774161c934d436463b81dcfa0cb708abecf74b643"
12
+ sources:
13
+ - id: "manifest"
14
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/manufacturing/package.json"
15
+ title: "@happyvertical/smrt-manufacturing package manifest"
16
+ - id: "agents"
17
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/manufacturing/AGENTS.md"
18
+ title: "@happyvertical/smrt-manufacturing packages/manufacturing/AGENTS.md"
19
+ - id: "agents-2"
20
+ resource: "https://github.com/happyvertical/smrt/blob/main/packages/manufacturing/agents/multilevel-and-runs.md"
21
+ title: "@happyvertical/smrt-manufacturing packages/manufacturing/agents/multilevel-and-runs.md"
22
+ ---
23
+
24
+ # @happyvertical/smrt-manufacturing
25
+
26
+ ## Package
27
+
28
+ - Directory: `packages/manufacturing`
29
+ - Private: no
30
+ - Object source: `domain-artifact`
31
+ - Evidence level: `source-inspected`
32
+
33
+ ## Documentation
34
+
35
+ - `packages/manufacturing/AGENTS.md`
36
+ - `packages/manufacturing/agents/multilevel-and-runs.md`
37
+
38
+ ## Framework dependencies
39
+
40
+ - [smrt-core](/components/smrt-core.md)
41
+ - [smrt-inventory](/components/smrt-inventory.md)
42
+ - [smrt-products](/components/smrt-products.md)
43
+ - [smrt-tenancy](/components/smrt-tenancy.md)
44
+ - [smrt-types](/components/smrt-types.md)
45
+ - [smrt-ui](/components/smrt-ui.md)
46
+ - [smrt-vitest](/components/smrt-vitest.md)
47
+
48
+ ## SDK dependencies
49
+
50
+ - `@happyvertical/logger`
51
+ - `@happyvertical/sql`
52
+
53
+ ## Exports
54
+
55
+ - `.`
56
+ - `./manifest`
57
+ - `./manifest.json`
58
+ - `./svelte`
59
+ - `./ui`
60
+ - `./views`
61
+
62
+ ## Models
63
+
64
+ - `Assembly` (collection `products`, extends `Product`, STI table)
65
+ - `BillOfMaterials` (collection `billofmaterialses`, extends `SmrtObject`)
66
+ - `BillOfMaterialsCollection` (collection `billofmaterialses`, extends `SmrtCollection`)
67
+ - `BomLine` (collection `bomlines`, extends `SmrtObject`)
68
+ - `BomLineCollection` (collection `bomlines`, extends `SmrtCollection`)
69
+ - `Operation` (collection `operations`, extends `SmrtObject`)
70
+ - `OperationCollection` (collection `operations`, extends `SmrtCollection`)
71
+ - `ProductionRun` (collection `productionruns`, extends `SmrtObject`)
72
+ - `ProductionRunCollection` (collection `productionruns`, extends `SmrtCollection`)
73
+ - `ProductionRunCompletion` (collection `productionruncompletions`, extends `SmrtObject`)
74
+ - `ProductionRunCompletionCollection` (collection `productionruncompletions`, extends `SmrtCollection`)
75
+ - `RoutingStep` (collection `routingsteps`, extends `SmrtObject`)
76
+ - `RoutingStepCollection` (collection `routingsteps`, extends `SmrtCollection`)
77
+
78
+ ## MCP tools
79
+
80
+ - `assembly_get`: get on `@happyvertical/smrt-manufacturing:Assembly`
81
+ - `assembly_list`: list on `@happyvertical/smrt-manufacturing:Assembly`
82
+ - `billofmaterials_get`: get on `@happyvertical/smrt-manufacturing:BillOfMaterials`
83
+ - `billofmaterials_list`: list on `@happyvertical/smrt-manufacturing:BillOfMaterials`
84
+ - `bomline_get`: get on `@happyvertical/smrt-manufacturing:BomLine`
85
+ - `bomline_list`: list on `@happyvertical/smrt-manufacturing:BomLine`
86
+ - `operation_get`: get on `@happyvertical/smrt-manufacturing:Operation`
87
+ - `operation_list`: list on `@happyvertical/smrt-manufacturing:Operation`
88
+ - `productionrun_get`: get on `@happyvertical/smrt-manufacturing:ProductionRun`
89
+ - `productionrun_list`: list on `@happyvertical/smrt-manufacturing:ProductionRun`
90
+ - `productionruncompletion_get`: get on `@happyvertical/smrt-manufacturing:ProductionRunCompletion`
91
+ - `productionruncompletion_list`: list on `@happyvertical/smrt-manufacturing:ProductionRunCompletion`
92
+ - `routingstep_get`: get on `@happyvertical/smrt-manufacturing:RoutingStep`
93
+ - `routingstep_list`: list on `@happyvertical/smrt-manufacturing:RoutingStep`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-manufacturing",
3
- "version": "0.60.8",
3
+ "version": "0.60.10",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Bills of materials, cost rollup, and production-order operations for the SMRT framework — strictly industry-neutral",
6
6
  "type": "module",
@@ -35,14 +35,14 @@
35
35
  "./manifest.json": "./dist/manifest.json"
36
36
  },
37
37
  "dependencies": {
38
- "@happyvertical/logger": "^0.111.3",
39
- "@happyvertical/smrt-core": "0.60.8",
40
- "@happyvertical/smrt-inventory": "0.60.8",
41
- "@happyvertical/smrt-products": "0.60.8",
42
- "@happyvertical/smrt-tenancy": "0.60.8",
43
- "@happyvertical/smrt-types": "0.60.8",
44
- "@happyvertical/smrt-ui": "0.60.8",
45
- "@happyvertical/sql": "^0.111.3"
38
+ "@happyvertical/logger": "^0.111.5",
39
+ "@happyvertical/smrt-core": "0.60.10",
40
+ "@happyvertical/smrt-inventory": "0.60.10",
41
+ "@happyvertical/smrt-products": "0.60.10",
42
+ "@happyvertical/smrt-tenancy": "0.60.10",
43
+ "@happyvertical/smrt-types": "0.60.10",
44
+ "@happyvertical/smrt-ui": "0.60.10",
45
+ "@happyvertical/sql": "^0.111.5"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "svelte": "^5.57.0"
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@happyvertical/smrt-vitest": "0.60.8",
56
+ "@happyvertical/smrt-vitest": "0.60.10",
57
57
  "@sveltejs/package": "^2.5.8",
58
58
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
59
59
  "@types/node": "24.13.6",