@happyvertical/smrt-fields 0.57.45 → 0.57.47

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,110 +2,8 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-fields",
5
- "packageVersion": "0.57.45",
5
+ "packageVersion": "0.57.47",
6
6
  "objects": {
7
- "@happyvertical/smrt-fields:FieldUsageLearningAgent": {
8
- "name": "fieldusagelearningagent",
9
- "className": "FieldUsageLearningAgent",
10
- "qualifiedName": "@happyvertical/smrt-fields:FieldUsageLearningAgent",
11
- "collection": "fieldusagelearningagents",
12
- "description": "The registered schedule target for the #2051 learning loop (see the module doc for why it is NOT an smrt-agents Agent subclass).",
13
- "filePath": "/home/runner/work/smrt/smrt/packages/fields/src/usage-learning.ts",
14
- "packageName": "@happyvertical/smrt-fields",
15
- "fields": {},
16
- "methods": {
17
- "runUsageMaintenance": {
18
- "name": "runUsageMaintenance",
19
- "async": true,
20
- "parameters": [
21
- {
22
- "name": "args",
23
- "type": "Record<string, unknown>",
24
- "optional": true
25
- }
26
- ],
27
- "returnType": "Promise<FieldUsageMaintenanceSummary>",
28
- "isStatic": false,
29
- "isPublic": true
30
- },
31
- "runSuggestionGeneration": {
32
- "name": "runSuggestionGeneration",
33
- "async": true,
34
- "parameters": [
35
- {
36
- "name": "args",
37
- "type": "Record<string, unknown>",
38
- "optional": true
39
- }
40
- ],
41
- "returnType": "Promise<FieldUsageSuggestionRunSummary>",
42
- "isStatic": false,
43
- "isPublic": true
44
- }
45
- },
46
- "decoratorConfig": {
47
- "tableName": "_smrt_field_usage_learning_agents",
48
- "api": {
49
- "include": []
50
- },
51
- "cli": false,
52
- "mcp": {
53
- "include": []
54
- }
55
- },
56
- "extends": "SmrtObject",
57
- "exportName": "FieldUsageLearningAgent",
58
- "collectionExportName": "FieldUsageLearningAgentCollection",
59
- "schema": {
60
- "tableName": "_smrt_field_usage_learning_agents",
61
- "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_usage_learning_agents\" (\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);",
62
- "columns": {
63
- "id": {
64
- "type": "UUID",
65
- "primaryKey": true,
66
- "referenceKind": "id",
67
- "notNull": true
68
- },
69
- "slug": {
70
- "type": "TEXT",
71
- "notNull": true
72
- },
73
- "context": {
74
- "type": "TEXT",
75
- "notNull": true,
76
- "default": ""
77
- },
78
- "created_at": {
79
- "type": "TIMESTAMP",
80
- "notNull": true,
81
- "default": "current_timestamp"
82
- },
83
- "updated_at": {
84
- "type": "TIMESTAMP",
85
- "notNull": true,
86
- "default": "current_timestamp"
87
- }
88
- },
89
- "indexes": [
90
- {
91
- "name": "_smrt_field_usage_learning_agents_slug_context_idx",
92
- "columns": [
93
- "slug",
94
- "context"
95
- ],
96
- "unique": true
97
- },
98
- {
99
- "name": "_smrt_field_usage_learning_agents_created_at_idx",
100
- "columns": [
101
- "created_at"
102
- ]
103
- }
104
- ],
105
- "version": "183ee1d8"
106
- },
107
- "importPath": "@happyvertical/smrt-fields"
108
- },
109
7
  "@happyvertical/smrt-fields:FieldPolicyCollection": {
110
8
  "name": "fieldpolicycollection",
111
9
  "className": "FieldPolicyCollection",
@@ -263,6 +161,7 @@
263
161
  "extendsTypeArg": "FieldPolicy",
264
162
  "exportName": "FieldPolicyCollection",
265
163
  "collectionExportName": "FieldPolicyCollectionCollection",
164
+ "collectionOf": "@happyvertical/smrt-fields:FieldPolicy",
266
165
  "schema": {
267
166
  "tableName": "_smrt_field_policies",
268
167
  "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_policies\" (\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 \"object_ref\" TEXT NOT NULL DEFAULT '',\n \"field_name\" TEXT NOT NULL DEFAULT '',\n \"scope_type\" TEXT NOT NULL DEFAULT 'app',\n \"tenant_id\" UUID,\n \"user_id\" UUID,\n \"scope_key\" TEXT NOT NULL,\n \"default_value\" TEXT,\n \"visibility\" TEXT,\n \"help\" TEXT,\n \"label\" TEXT,\n \"display_order\" INTEGER,\n \"locked\" BOOLEAN,\n \"updated_by\" UUID\n);",
@@ -510,6 +409,7 @@
510
409
  "extendsTypeArg": "FieldPolicySuggestion",
511
410
  "exportName": "FieldPolicySuggestionCollection",
512
411
  "collectionExportName": "FieldPolicySuggestionCollectionCollection",
412
+ "collectionOf": "@happyvertical/smrt-fields:FieldPolicySuggestion",
513
413
  "schema": {
514
414
  "tableName": "_smrt_field_policy_suggestions",
515
415
  "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_policy_suggestions\" (\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 \"object_ref\" TEXT NOT NULL DEFAULT '',\n \"field_name\" TEXT NOT NULL DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"kind\" TEXT NOT NULL DEFAULT 'promote',\n \"proposed_value\" TEXT,\n \"evidence\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'pending',\n \"active_key\" TEXT NOT NULL,\n \"cooldown_until\" TIMESTAMP,\n \"decided_by\" UUID,\n \"decided_at\" TIMESTAMP\n);",
@@ -712,6 +612,7 @@
712
612
  "extendsTypeArg": "FieldUsageCounter",
713
613
  "exportName": "FieldUsageCounterCollection",
714
614
  "collectionExportName": "FieldUsageCounterCollectionCollection",
615
+ "collectionOf": "@happyvertical/smrt-fields:FieldUsageCounter",
715
616
  "schema": {
716
617
  "tableName": "_smrt_field_usage_counters",
717
618
  "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_usage_counters\" (\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 \"object_ref\" TEXT NOT NULL DEFAULT '',\n \"field_name\" TEXT NOT NULL DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"period\" TEXT NOT NULL DEFAULT '',\n \"submission_count\" INTEGER,\n \"set_count\" INTEGER,\n \"distinct_user_count\" INTEGER,\n \"distinct_user_ids\" TEXT,\n \"distinct_users_overflowed\" BOOLEAN,\n \"value_histogram\" TEXT,\n \"value_histogram_overflowed\" BOOLEAN\n);",
@@ -876,6 +777,7 @@
876
777
  "extendsTypeArg": "FieldUsageReportReceipt",
877
778
  "exportName": "FieldUsageReportReceiptCollection",
878
779
  "collectionExportName": "FieldUsageReportReceiptCollectionCollection",
780
+ "collectionOf": "@happyvertical/smrt-fields:FieldUsageReportReceipt",
879
781
  "schema": {
880
782
  "tableName": "_smrt_field_usage_report_receipts",
881
783
  "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_usage_report_receipts\" (\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 NOT NULL,\n \"user_id\" UUID,\n \"object_ref\" TEXT NOT NULL DEFAULT '',\n \"field_name\" TEXT NOT NULL DEFAULT '',\n \"period\" TEXT NOT NULL DEFAULT ''\n);",
@@ -2200,6 +2102,108 @@
2200
2102
  "version": "c3119047"
2201
2103
  },
2202
2104
  "importPath": "@happyvertical/smrt-fields"
2105
+ },
2106
+ "@happyvertical/smrt-fields:FieldUsageLearningAgent": {
2107
+ "name": "fieldusagelearningagent",
2108
+ "className": "FieldUsageLearningAgent",
2109
+ "qualifiedName": "@happyvertical/smrt-fields:FieldUsageLearningAgent",
2110
+ "collection": "fieldusagelearningagents",
2111
+ "description": "The registered schedule target for the #2051 learning loop (see the module doc for why it is NOT an smrt-agents Agent subclass).",
2112
+ "filePath": "/home/runner/work/smrt/smrt/packages/fields/src/usage-learning.ts",
2113
+ "packageName": "@happyvertical/smrt-fields",
2114
+ "fields": {},
2115
+ "methods": {
2116
+ "runUsageMaintenance": {
2117
+ "name": "runUsageMaintenance",
2118
+ "async": true,
2119
+ "parameters": [
2120
+ {
2121
+ "name": "args",
2122
+ "type": "Record<string, unknown>",
2123
+ "optional": true
2124
+ }
2125
+ ],
2126
+ "returnType": "Promise<FieldUsageMaintenanceSummary>",
2127
+ "isStatic": false,
2128
+ "isPublic": true
2129
+ },
2130
+ "runSuggestionGeneration": {
2131
+ "name": "runSuggestionGeneration",
2132
+ "async": true,
2133
+ "parameters": [
2134
+ {
2135
+ "name": "args",
2136
+ "type": "Record<string, unknown>",
2137
+ "optional": true
2138
+ }
2139
+ ],
2140
+ "returnType": "Promise<FieldUsageSuggestionRunSummary>",
2141
+ "isStatic": false,
2142
+ "isPublic": true
2143
+ }
2144
+ },
2145
+ "decoratorConfig": {
2146
+ "tableName": "_smrt_field_usage_learning_agents",
2147
+ "api": {
2148
+ "include": []
2149
+ },
2150
+ "cli": false,
2151
+ "mcp": {
2152
+ "include": []
2153
+ }
2154
+ },
2155
+ "extends": "SmrtObject",
2156
+ "exportName": "FieldUsageLearningAgent",
2157
+ "collectionExportName": "FieldUsageLearningAgentCollection",
2158
+ "schema": {
2159
+ "tableName": "_smrt_field_usage_learning_agents",
2160
+ "ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_field_usage_learning_agents\" (\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);",
2161
+ "columns": {
2162
+ "id": {
2163
+ "type": "UUID",
2164
+ "primaryKey": true,
2165
+ "referenceKind": "id",
2166
+ "notNull": true
2167
+ },
2168
+ "slug": {
2169
+ "type": "TEXT",
2170
+ "notNull": true
2171
+ },
2172
+ "context": {
2173
+ "type": "TEXT",
2174
+ "notNull": true,
2175
+ "default": ""
2176
+ },
2177
+ "created_at": {
2178
+ "type": "TIMESTAMP",
2179
+ "notNull": true,
2180
+ "default": "current_timestamp"
2181
+ },
2182
+ "updated_at": {
2183
+ "type": "TIMESTAMP",
2184
+ "notNull": true,
2185
+ "default": "current_timestamp"
2186
+ }
2187
+ },
2188
+ "indexes": [
2189
+ {
2190
+ "name": "_smrt_field_usage_learning_agents_slug_context_idx",
2191
+ "columns": [
2192
+ "slug",
2193
+ "context"
2194
+ ],
2195
+ "unique": true
2196
+ },
2197
+ {
2198
+ "name": "_smrt_field_usage_learning_agents_created_at_idx",
2199
+ "columns": [
2200
+ "created_at"
2201
+ ]
2202
+ }
2203
+ ],
2204
+ "version": "183ee1d8"
2205
+ },
2206
+ "importPath": "@happyvertical/smrt-fields"
2203
2207
  }
2204
2208
  },
2205
2209
  "moduleType": "smrt",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-fields",
6
- "packageVersion": "0.57.45",
6
+ "packageVersion": "0.57.47",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "19329324fa37a25ee1f4f8d1426c69333ce4b2df022e95b1afbf70768f52d99c",
11
- "packageJson": "54a24df863d205f3fd57e6d6442ddf9b0c56b677ad05b89c47cec0e7b66031c7",
10
+ "manifest": "2dd8d214e66f08ab871dbae470756f5be8d309718e7d11e2c79b1f4be4522032",
11
+ "packageJson": "54ef1f60a1dd2a4837572ab999c6ffe19cdc80580b3512571d21b679d3578bdd",
12
12
  "agents": "ae4bf7b69ae3b28a7900b590dd21b53ea0dfc5fd6778f858ceac97dfd8654187"
13
13
  },
14
14
  "exports": [
@@ -62,61 +62,6 @@
62
62
  "sensitive-fields-excluded"
63
63
  ],
64
64
  "objects": [
65
- {
66
- "name": "FieldUsageLearningAgent",
67
- "qualifiedName": "@happyvertical/smrt-fields:FieldUsageLearningAgent",
68
- "collection": "fieldusagelearningagents",
69
- "description": "The registered schedule target for the #2051 learning loop (see the module doc for why it is NOT an smrt-agents Agent subclass).",
70
- "tableName": "_smrt_field_usage_learning_agents",
71
- "packageName": "@happyvertical/smrt-fields",
72
- "extends": "SmrtObject",
73
- "fields": [],
74
- "relationships": [],
75
- "methods": [
76
- "runSuggestionGeneration",
77
- "runUsageMaintenance"
78
- ],
79
- "methodSignatures": [
80
- {
81
- "name": "runSuggestionGeneration",
82
- "async": true,
83
- "params": [
84
- "args?: Record<string, unknown>"
85
- ],
86
- "returns": "Promise<FieldUsageSuggestionRunSummary>"
87
- },
88
- {
89
- "name": "runUsageMaintenance",
90
- "async": true,
91
- "params": [
92
- "args?: Record<string, unknown>"
93
- ],
94
- "returns": "Promise<FieldUsageMaintenanceSummary>"
95
- }
96
- ],
97
- "surfaces": [],
98
- "withheldSurfaces": [
99
- {
100
- "kind": "api",
101
- "operation": "runSuggestionGeneration",
102
- "code": "not-included",
103
- "reason": "not listed in api.include",
104
- "objectName": "@happyvertical/smrt-fields:FieldUsageLearningAgent"
105
- },
106
- {
107
- "kind": "api",
108
- "operation": "runUsageMaintenance",
109
- "code": "not-included",
110
- "reason": "not listed in api.include",
111
- "objectName": "@happyvertical/smrt-fields:FieldUsageLearningAgent"
112
- }
113
- ],
114
- "relationshipFeatures": [
115
- "uuidColumns"
116
- ],
117
- "tags": [],
118
- "risks": []
119
- },
120
65
  {
121
66
  "name": "FieldPolicyCollection",
122
67
  "qualifiedName": "@happyvertical/smrt-fields:FieldPolicyCollection",
@@ -1100,6 +1045,61 @@
1100
1045
  ],
1101
1046
  "tags": [],
1102
1047
  "risks": []
1048
+ },
1049
+ {
1050
+ "name": "FieldUsageLearningAgent",
1051
+ "qualifiedName": "@happyvertical/smrt-fields:FieldUsageLearningAgent",
1052
+ "collection": "fieldusagelearningagents",
1053
+ "description": "The registered schedule target for the #2051 learning loop (see the module doc for why it is NOT an smrt-agents Agent subclass).",
1054
+ "tableName": "_smrt_field_usage_learning_agents",
1055
+ "packageName": "@happyvertical/smrt-fields",
1056
+ "extends": "SmrtObject",
1057
+ "fields": [],
1058
+ "relationships": [],
1059
+ "methods": [
1060
+ "runSuggestionGeneration",
1061
+ "runUsageMaintenance"
1062
+ ],
1063
+ "methodSignatures": [
1064
+ {
1065
+ "name": "runSuggestionGeneration",
1066
+ "async": true,
1067
+ "params": [
1068
+ "args?: Record<string, unknown>"
1069
+ ],
1070
+ "returns": "Promise<FieldUsageSuggestionRunSummary>"
1071
+ },
1072
+ {
1073
+ "name": "runUsageMaintenance",
1074
+ "async": true,
1075
+ "params": [
1076
+ "args?: Record<string, unknown>"
1077
+ ],
1078
+ "returns": "Promise<FieldUsageMaintenanceSummary>"
1079
+ }
1080
+ ],
1081
+ "surfaces": [],
1082
+ "withheldSurfaces": [
1083
+ {
1084
+ "kind": "api",
1085
+ "operation": "runSuggestionGeneration",
1086
+ "code": "not-included",
1087
+ "reason": "not listed in api.include",
1088
+ "objectName": "@happyvertical/smrt-fields:FieldUsageLearningAgent"
1089
+ },
1090
+ {
1091
+ "kind": "api",
1092
+ "operation": "runUsageMaintenance",
1093
+ "code": "not-included",
1094
+ "reason": "not listed in api.include",
1095
+ "objectName": "@happyvertical/smrt-fields:FieldUsageLearningAgent"
1096
+ }
1097
+ ],
1098
+ "relationshipFeatures": [
1099
+ "uuidColumns"
1100
+ ],
1101
+ "tags": [],
1102
+ "risks": []
1103
1103
  }
1104
1104
  ],
1105
1105
  "surfaces": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-fields",
3
- "version": "0.57.45",
3
+ "version": "0.57.47",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Layered field policy store and resolver (defaults, visibility tiers, help text) for SMRT objects",
6
6
  "type": "module",
@@ -37,17 +37,17 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@happyvertical/smrt-core": "0.57.45",
41
- "@happyvertical/smrt-tenancy": "0.57.45",
42
- "@happyvertical/smrt-ui": "0.57.45",
43
- "@happyvertical/smrt-users": "0.57.45",
44
- "@happyvertical/sql": "^0.111.0"
40
+ "@happyvertical/smrt-core": "0.57.47",
41
+ "@happyvertical/smrt-tenancy": "0.57.47",
42
+ "@happyvertical/smrt-ui": "0.57.47",
43
+ "@happyvertical/smrt-users": "0.57.47",
44
+ "@happyvertical/sql": "^0.111.3"
45
45
  },
46
46
  "devDependencies": {
47
- "@happyvertical/smrt-cli": "0.57.45",
48
- "@happyvertical/smrt-scanner": "0.57.45",
49
- "@happyvertical/smrt-users": "0.57.45",
50
- "@happyvertical/smrt-vitest": "0.57.45",
47
+ "@happyvertical/smrt-cli": "0.57.47",
48
+ "@happyvertical/smrt-scanner": "0.57.47",
49
+ "@happyvertical/smrt-users": "0.57.47",
50
+ "@happyvertical/smrt-vitest": "0.57.47",
51
51
  "@sveltejs/package": "^2.5.8",
52
52
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
53
53
  "@testing-library/svelte": "^5.4.2",