@happyvertical/smrt-sites 0.36.6 → 0.36.7

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.
@@ -1,9 +1,252 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1782499834870,
3
+ "timestamp": 1782507428678,
4
4
  "packageName": "@happyvertical/smrt-sites",
5
- "packageVersion": "0.36.6",
5
+ "packageVersion": "0.36.7",
6
6
  "objects": {
7
+ "@happyvertical/smrt-sites:SiteAgentBindingCollection": {
8
+ "name": "siteagentbindingcollection",
9
+ "className": "SiteAgentBindingCollection",
10
+ "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
11
+ "collection": "siteagentbindings",
12
+ "filePath": "/home/runner/_work/smrt/smrt/packages/sites/src/collections/SiteAgentBindingCollection.ts",
13
+ "packageName": "@happyvertical/smrt-sites",
14
+ "fields": {},
15
+ "methods": {
16
+ "findBySite": {
17
+ "name": "findBySite",
18
+ "async": true,
19
+ "parameters": [
20
+ {
21
+ "name": "siteId",
22
+ "type": "string",
23
+ "optional": false
24
+ }
25
+ ],
26
+ "returnType": "Promise<SiteAgentBinding[]>",
27
+ "isStatic": false,
28
+ "isPublic": true
29
+ },
30
+ "findByAgent": {
31
+ "name": "findByAgent",
32
+ "async": true,
33
+ "parameters": [
34
+ {
35
+ "name": "agentClass",
36
+ "type": "string",
37
+ "optional": false
38
+ }
39
+ ],
40
+ "returnType": "Promise<SiteAgentBinding[]>",
41
+ "isStatic": false,
42
+ "isPublic": true
43
+ },
44
+ "findEnabled": {
45
+ "name": "findEnabled",
46
+ "async": true,
47
+ "parameters": [
48
+ {
49
+ "name": "siteId",
50
+ "type": "string",
51
+ "optional": false
52
+ }
53
+ ],
54
+ "returnType": "Promise<SiteAgentBinding[]>",
55
+ "isStatic": false,
56
+ "isPublic": true
57
+ },
58
+ "findBySiteAndAgent": {
59
+ "name": "findBySiteAndAgent",
60
+ "async": true,
61
+ "parameters": [
62
+ {
63
+ "name": "siteId",
64
+ "type": "string",
65
+ "optional": false
66
+ },
67
+ {
68
+ "name": "agentClass",
69
+ "type": "string",
70
+ "optional": false
71
+ }
72
+ ],
73
+ "returnType": "Promise<SiteAgentBinding | null>",
74
+ "isStatic": false,
75
+ "isPublic": true
76
+ }
77
+ },
78
+ "decoratorConfig": {
79
+ "tableName": "site_agent_bindings"
80
+ },
81
+ "extends": "SmrtCollection",
82
+ "extendsTypeArg": "SiteAgentBinding",
83
+ "exportName": "SiteAgentBindingCollection",
84
+ "collectionExportName": "SiteAgentBindingCollectionCollection",
85
+ "schema": {
86
+ "tableName": "site_agent_bindings",
87
+ "ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\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);",
88
+ "columns": {
89
+ "id": {
90
+ "type": "UUID",
91
+ "primaryKey": true,
92
+ "referenceKind": "id",
93
+ "notNull": true
94
+ },
95
+ "slug": {
96
+ "type": "TEXT",
97
+ "notNull": true
98
+ },
99
+ "context": {
100
+ "type": "TEXT",
101
+ "notNull": true,
102
+ "default": ""
103
+ },
104
+ "created_at": {
105
+ "type": "TIMESTAMP",
106
+ "notNull": true,
107
+ "default": "current_timestamp"
108
+ },
109
+ "updated_at": {
110
+ "type": "TIMESTAMP",
111
+ "notNull": true,
112
+ "default": "current_timestamp"
113
+ }
114
+ },
115
+ "indexes": [
116
+ {
117
+ "name": "site_agent_bindings_id_idx",
118
+ "columns": [
119
+ "id"
120
+ ]
121
+ },
122
+ {
123
+ "name": "site_agent_bindings_slug_context_idx",
124
+ "columns": [
125
+ "slug",
126
+ "context"
127
+ ],
128
+ "unique": true
129
+ }
130
+ ],
131
+ "version": "b7f2e6f8"
132
+ }
133
+ },
134
+ "@happyvertical/smrt-sites:SiteCollection": {
135
+ "name": "sitecollection",
136
+ "className": "SiteCollection",
137
+ "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
138
+ "collection": "sites",
139
+ "filePath": "/home/runner/_work/smrt/smrt/packages/sites/src/collections/SiteCollection.ts",
140
+ "packageName": "@happyvertical/smrt-sites",
141
+ "fields": {},
142
+ "methods": {
143
+ "findByDomain": {
144
+ "name": "findByDomain",
145
+ "async": true,
146
+ "parameters": [
147
+ {
148
+ "name": "domain",
149
+ "type": "string",
150
+ "optional": false
151
+ }
152
+ ],
153
+ "returnType": "Promise<Site | null>",
154
+ "isStatic": false,
155
+ "isPublic": true
156
+ },
157
+ "findByTenant": {
158
+ "name": "findByTenant",
159
+ "async": true,
160
+ "parameters": [
161
+ {
162
+ "name": "tenantId",
163
+ "type": "string",
164
+ "optional": false
165
+ }
166
+ ],
167
+ "returnType": "Promise<Site[]>",
168
+ "isStatic": false,
169
+ "isPublic": true
170
+ },
171
+ "findByStatus": {
172
+ "name": "findByStatus",
173
+ "async": true,
174
+ "parameters": [
175
+ {
176
+ "name": "status",
177
+ "type": "SiteStatus",
178
+ "optional": false
179
+ }
180
+ ],
181
+ "returnType": "Promise<Site[]>",
182
+ "isStatic": false,
183
+ "isPublic": true
184
+ },
185
+ "findActive": {
186
+ "name": "findActive",
187
+ "async": true,
188
+ "parameters": [],
189
+ "returnType": "Promise<Site[]>",
190
+ "isStatic": false,
191
+ "isPublic": true
192
+ }
193
+ },
194
+ "decoratorConfig": {
195
+ "tableName": "sites"
196
+ },
197
+ "extends": "SmrtCollection",
198
+ "extendsTypeArg": "Site",
199
+ "exportName": "SiteCollection",
200
+ "collectionExportName": "SiteCollectionCollection",
201
+ "schema": {
202
+ "tableName": "sites",
203
+ "ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\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);",
204
+ "columns": {
205
+ "id": {
206
+ "type": "UUID",
207
+ "primaryKey": true,
208
+ "referenceKind": "id",
209
+ "notNull": true
210
+ },
211
+ "slug": {
212
+ "type": "TEXT",
213
+ "notNull": true
214
+ },
215
+ "context": {
216
+ "type": "TEXT",
217
+ "notNull": true,
218
+ "default": ""
219
+ },
220
+ "created_at": {
221
+ "type": "TIMESTAMP",
222
+ "notNull": true,
223
+ "default": "current_timestamp"
224
+ },
225
+ "updated_at": {
226
+ "type": "TIMESTAMP",
227
+ "notNull": true,
228
+ "default": "current_timestamp"
229
+ }
230
+ },
231
+ "indexes": [
232
+ {
233
+ "name": "sites_id_idx",
234
+ "columns": [
235
+ "id"
236
+ ]
237
+ },
238
+ {
239
+ "name": "sites_slug_context_idx",
240
+ "columns": [
241
+ "slug",
242
+ "context"
243
+ ],
244
+ "unique": true
245
+ }
246
+ ],
247
+ "version": "2f0752a0"
248
+ }
249
+ },
7
250
  "@happyvertical/smrt-sites:Site": {
8
251
  "name": "site",
9
252
  "className": "Site",
@@ -525,249 +768,6 @@
525
768
  ],
526
769
  "version": "e9a85893"
527
770
  }
528
- },
529
- "@happyvertical/smrt-sites:SiteAgentBindingCollection": {
530
- "name": "siteagentbindingcollection",
531
- "className": "SiteAgentBindingCollection",
532
- "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
533
- "collection": "siteagentbindings",
534
- "filePath": "/home/runner/_work/smrt/smrt/packages/sites/src/collections/SiteAgentBindingCollection.ts",
535
- "packageName": "@happyvertical/smrt-sites",
536
- "fields": {},
537
- "methods": {
538
- "findBySite": {
539
- "name": "findBySite",
540
- "async": true,
541
- "parameters": [
542
- {
543
- "name": "siteId",
544
- "type": "string",
545
- "optional": false
546
- }
547
- ],
548
- "returnType": "Promise<SiteAgentBinding[]>",
549
- "isStatic": false,
550
- "isPublic": true
551
- },
552
- "findByAgent": {
553
- "name": "findByAgent",
554
- "async": true,
555
- "parameters": [
556
- {
557
- "name": "agentClass",
558
- "type": "string",
559
- "optional": false
560
- }
561
- ],
562
- "returnType": "Promise<SiteAgentBinding[]>",
563
- "isStatic": false,
564
- "isPublic": true
565
- },
566
- "findEnabled": {
567
- "name": "findEnabled",
568
- "async": true,
569
- "parameters": [
570
- {
571
- "name": "siteId",
572
- "type": "string",
573
- "optional": false
574
- }
575
- ],
576
- "returnType": "Promise<SiteAgentBinding[]>",
577
- "isStatic": false,
578
- "isPublic": true
579
- },
580
- "findBySiteAndAgent": {
581
- "name": "findBySiteAndAgent",
582
- "async": true,
583
- "parameters": [
584
- {
585
- "name": "siteId",
586
- "type": "string",
587
- "optional": false
588
- },
589
- {
590
- "name": "agentClass",
591
- "type": "string",
592
- "optional": false
593
- }
594
- ],
595
- "returnType": "Promise<SiteAgentBinding | null>",
596
- "isStatic": false,
597
- "isPublic": true
598
- }
599
- },
600
- "decoratorConfig": {
601
- "tableName": "site_agent_bindings"
602
- },
603
- "extends": "SmrtCollection",
604
- "extendsTypeArg": "SiteAgentBinding",
605
- "exportName": "SiteAgentBindingCollection",
606
- "collectionExportName": "SiteAgentBindingCollectionCollection",
607
- "schema": {
608
- "tableName": "site_agent_bindings",
609
- "ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\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);",
610
- "columns": {
611
- "id": {
612
- "type": "UUID",
613
- "primaryKey": true,
614
- "referenceKind": "id",
615
- "notNull": true
616
- },
617
- "slug": {
618
- "type": "TEXT",
619
- "notNull": true
620
- },
621
- "context": {
622
- "type": "TEXT",
623
- "notNull": true,
624
- "default": ""
625
- },
626
- "created_at": {
627
- "type": "TIMESTAMP",
628
- "notNull": true,
629
- "default": "current_timestamp"
630
- },
631
- "updated_at": {
632
- "type": "TIMESTAMP",
633
- "notNull": true,
634
- "default": "current_timestamp"
635
- }
636
- },
637
- "indexes": [
638
- {
639
- "name": "site_agent_bindings_id_idx",
640
- "columns": [
641
- "id"
642
- ]
643
- },
644
- {
645
- "name": "site_agent_bindings_slug_context_idx",
646
- "columns": [
647
- "slug",
648
- "context"
649
- ],
650
- "unique": true
651
- }
652
- ],
653
- "version": "b7f2e6f8"
654
- }
655
- },
656
- "@happyvertical/smrt-sites:SiteCollection": {
657
- "name": "sitecollection",
658
- "className": "SiteCollection",
659
- "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
660
- "collection": "sites",
661
- "filePath": "/home/runner/_work/smrt/smrt/packages/sites/src/collections/SiteCollection.ts",
662
- "packageName": "@happyvertical/smrt-sites",
663
- "fields": {},
664
- "methods": {
665
- "findByDomain": {
666
- "name": "findByDomain",
667
- "async": true,
668
- "parameters": [
669
- {
670
- "name": "domain",
671
- "type": "string",
672
- "optional": false
673
- }
674
- ],
675
- "returnType": "Promise<Site | null>",
676
- "isStatic": false,
677
- "isPublic": true
678
- },
679
- "findByTenant": {
680
- "name": "findByTenant",
681
- "async": true,
682
- "parameters": [
683
- {
684
- "name": "tenantId",
685
- "type": "string",
686
- "optional": false
687
- }
688
- ],
689
- "returnType": "Promise<Site[]>",
690
- "isStatic": false,
691
- "isPublic": true
692
- },
693
- "findByStatus": {
694
- "name": "findByStatus",
695
- "async": true,
696
- "parameters": [
697
- {
698
- "name": "status",
699
- "type": "SiteStatus",
700
- "optional": false
701
- }
702
- ],
703
- "returnType": "Promise<Site[]>",
704
- "isStatic": false,
705
- "isPublic": true
706
- },
707
- "findActive": {
708
- "name": "findActive",
709
- "async": true,
710
- "parameters": [],
711
- "returnType": "Promise<Site[]>",
712
- "isStatic": false,
713
- "isPublic": true
714
- }
715
- },
716
- "decoratorConfig": {
717
- "tableName": "sites"
718
- },
719
- "extends": "SmrtCollection",
720
- "extendsTypeArg": "Site",
721
- "exportName": "SiteCollection",
722
- "collectionExportName": "SiteCollectionCollection",
723
- "schema": {
724
- "tableName": "sites",
725
- "ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\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);",
726
- "columns": {
727
- "id": {
728
- "type": "UUID",
729
- "primaryKey": true,
730
- "referenceKind": "id",
731
- "notNull": true
732
- },
733
- "slug": {
734
- "type": "TEXT",
735
- "notNull": true
736
- },
737
- "context": {
738
- "type": "TEXT",
739
- "notNull": true,
740
- "default": ""
741
- },
742
- "created_at": {
743
- "type": "TIMESTAMP",
744
- "notNull": true,
745
- "default": "current_timestamp"
746
- },
747
- "updated_at": {
748
- "type": "TIMESTAMP",
749
- "notNull": true,
750
- "default": "current_timestamp"
751
- }
752
- },
753
- "indexes": [
754
- {
755
- "name": "sites_id_idx",
756
- "columns": [
757
- "id"
758
- ]
759
- },
760
- {
761
- "name": "sites_slug_context_idx",
762
- "columns": [
763
- "slug",
764
- "context"
765
- ],
766
- "unique": true
767
- }
768
- ],
769
- "version": "2f0752a0"
770
- }
771
771
  }
772
772
  },
773
773
  "moduleType": "smrt",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-06-26T18:50:36.599Z",
3
+ "generatedAt": "2026-06-26T20:57:14.772Z",
4
4
  "packageName": "@happyvertical/smrt-sites",
5
- "packageVersion": "0.36.6",
5
+ "packageVersion": "0.36.7",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "0c6ae4807b0cd5ad83e5993b1073f7b49f1811c46c8f8de138756164c153b129",
10
- "packageJson": "43fdbabf019dbb543f358f6ce528b0899f187c5de720b0f8f2ca233ff0878d87",
9
+ "manifest": "5b611292f6c706a9ab7dd4f0ea118900ea6a1f81b8152f053b34b10b3b5c4782",
10
+ "packageJson": "1f50ef41ae92968a25d7857a58d7c0949a7d34a77370c69823cb49c897925b14",
11
11
  "agents": "20ecba2963426d3e132157f077fbdc5583a20bb0f68d8a7942cf7f8ada5d5aa2"
12
12
  },
13
13
  "exports": [
@@ -39,6 +39,50 @@
39
39
  "tags": [],
40
40
  "risks": [],
41
41
  "objects": [
42
+ {
43
+ "name": "SiteAgentBindingCollection",
44
+ "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
45
+ "collection": "siteagentbindings",
46
+ "tableName": "site_agent_bindings",
47
+ "packageName": "@happyvertical/smrt-sites",
48
+ "extends": "SmrtCollection",
49
+ "fields": [],
50
+ "relationships": [],
51
+ "methods": [
52
+ "findByAgent",
53
+ "findBySite",
54
+ "findBySiteAndAgent",
55
+ "findEnabled"
56
+ ],
57
+ "surfaces": [],
58
+ "relationshipFeatures": [
59
+ "uuidColumns"
60
+ ],
61
+ "tags": [],
62
+ "risks": []
63
+ },
64
+ {
65
+ "name": "SiteCollection",
66
+ "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
67
+ "collection": "sites",
68
+ "tableName": "sites",
69
+ "packageName": "@happyvertical/smrt-sites",
70
+ "extends": "SmrtCollection",
71
+ "fields": [],
72
+ "relationships": [],
73
+ "methods": [
74
+ "findActive",
75
+ "findByDomain",
76
+ "findByStatus",
77
+ "findByTenant"
78
+ ],
79
+ "surfaces": [],
80
+ "relationshipFeatures": [
81
+ "uuidColumns"
82
+ ],
83
+ "tags": [],
84
+ "risks": []
85
+ },
42
86
  {
43
87
  "name": "Site",
44
88
  "qualifiedName": "@happyvertical/smrt-sites:Site",
@@ -384,50 +428,6 @@
384
428
  ],
385
429
  "tags": [],
386
430
  "risks": []
387
- },
388
- {
389
- "name": "SiteAgentBindingCollection",
390
- "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
391
- "collection": "siteagentbindings",
392
- "tableName": "site_agent_bindings",
393
- "packageName": "@happyvertical/smrt-sites",
394
- "extends": "SmrtCollection",
395
- "fields": [],
396
- "relationships": [],
397
- "methods": [
398
- "findByAgent",
399
- "findBySite",
400
- "findBySiteAndAgent",
401
- "findEnabled"
402
- ],
403
- "surfaces": [],
404
- "relationshipFeatures": [
405
- "uuidColumns"
406
- ],
407
- "tags": [],
408
- "risks": []
409
- },
410
- {
411
- "name": "SiteCollection",
412
- "qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
413
- "collection": "sites",
414
- "tableName": "sites",
415
- "packageName": "@happyvertical/smrt-sites",
416
- "extends": "SmrtCollection",
417
- "fields": [],
418
- "relationships": [],
419
- "methods": [
420
- "findActive",
421
- "findByDomain",
422
- "findByStatus",
423
- "findByTenant"
424
- ],
425
- "surfaces": [],
426
- "relationshipFeatures": [
427
- "uuidColumns"
428
- ],
429
- "tags": [],
430
- "risks": []
431
431
  }
432
432
  ],
433
433
  "surfaces": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-sites",
3
- "version": "0.36.6",
3
+ "version": "0.36.7",
4
4
  "description": "Site lifecycle management for multi-tenant SMRT networks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "./manifest.json": "./dist/manifest.json"
20
20
  },
21
21
  "dependencies": {
22
- "@happyvertical/smrt-core": "0.36.6",
23
- "@happyvertical/smrt-tenancy": "0.36.6"
22
+ "@happyvertical/smrt-core": "0.36.7",
23
+ "@happyvertical/smrt-tenancy": "0.36.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@happyvertical/sql": "^0.74.10",
@@ -29,8 +29,8 @@
29
29
  "typescript": "^5.9.3",
30
30
  "vite": "^7.3.1",
31
31
  "vitest": "^4.0.17",
32
- "@happyvertical/smrt-cli": "0.36.6",
33
- "@happyvertical/smrt-vitest": "0.36.6"
32
+ "@happyvertical/smrt-cli": "0.36.7",
33
+ "@happyvertical/smrt-vitest": "0.36.7"
34
34
  },
35
35
  "keywords": [
36
36
  "ai",