@lssm/example.locale-jurisdiction-gate 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217062943

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,11 +2,11 @@
2
2
  $ tsdown
3
3
  ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
4
  ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/locale-jurisdiction-gate/tsdown.config.js (unrun)
5
- ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/locale-jurisdiction-gate.feature.ts, src/contracts/assistant.ts, src/contracts/index.ts, src/docs/index.ts, src/docs/locale-jurisdiction-gate.docblock.ts, src/handlers/demo.handlers.ts, src/handlers/index.ts, src/entities/index.ts, src/entities/models.ts, src/policy/guard.ts, src/policy/index.ts, src/policy/types.ts
5
+ ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/locale-jurisdiction-gate.feature.ts, src/contracts/assistant.ts, src/contracts/index.ts, src/docs/index.ts, src/docs/locale-jurisdiction-gate.docblock.ts, src/entities/index.ts, src/entities/models.ts, src/handlers/demo.handlers.ts, src/handlers/index.ts, src/policy/guard.ts, src/policy/index.ts, src/policy/types.ts
6
6
  ℹ target: esnext
7
7
  ℹ tsconfig: tsconfig.json
8
8
  ℹ Build start
9
- ℹ Cleaning 35 files
9
+ ℹ Cleaning 192 files
10
10
  ℹ dist/entities/models.js  2.61 kB │ gzip: 0.75 kB
11
11
  ℹ dist/contracts/assistant.js  2.45 kB │ gzip: 0.94 kB
12
12
  ℹ dist/events.js  1.82 kB │ gzip: 0.50 kB
@@ -144,8 +144,8 @@
144
144
  ℹ dist/libs/schema/dist/entity/defineEntity.js  0.01 kB │ gzip: 0.03 kB
145
145
  ℹ dist/libs/schema/dist/entity/types.js  0.01 kB │ gzip: 0.03 kB
146
146
  ℹ dist/contracts/assistant.d.ts  6.73 kB │ gzip: 0.60 kB
147
- ℹ dist/entities/models.d.ts  5.05 kB │ gzip: 0.65 kB
148
- ℹ dist/events.d.ts  1.98 kB │ gzip: 0.35 kB
147
+ ℹ dist/entities/models.d.ts  5.01 kB │ gzip: 0.65 kB
148
+ ℹ dist/events.d.ts  1.99 kB │ gzip: 0.36 kB
149
149
  ℹ dist/handlers/demo.handlers.d.ts  1.43 kB │ gzip: 0.53 kB
150
150
  ℹ dist/index.d.ts  1.31 kB │ gzip: 0.40 kB
151
151
  ℹ dist/example.d.ts  1.16 kB │ gzip: 0.47 kB
@@ -158,9 +158,9 @@
158
158
  ℹ dist/handlers/index.d.ts  0.15 kB │ gzip: 0.09 kB
159
159
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
160
160
  ℹ dist/docs/locale-jurisdiction-gate.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
161
- ℹ 151 files, total: 206.97 kB
162
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'turndown' in ../../libs/contracts/dist/presentations.v2.js
163
- - Module not found, treating it as an external dependency in ../../libs/contracts/dist/presentations.v2.js at 93..103
161
+ ℹ 151 files, total: 206.94 kB
162
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/experiments/evaluator.js
163
+ - Module not found, treating it as an external dependency in ../../libs/contracts/dist/experiments/evaluator.js at 27..40
164
164
   │
165
165
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
166
166
 
@@ -169,8 +169,8 @@
169
169
   │
170
170
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
171
171
 
172
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/experiments/evaluator.js
173
- - Module not found, treating it as an external dependency in ../../libs/contracts/dist/experiments/evaluator.js at 27..40
172
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:timers/promises' in ../../libs/contracts/dist/regenerator/service.js
173
+ - Module not found, treating it as an external dependency in ../../libs/contracts/dist/regenerator/service.js at 121..143
174
174
   │
175
175
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
176
176
 
@@ -179,13 +179,13 @@
179
179
   │
180
180
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
181
181
 
182
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:timers/promises' in ../../libs/contracts/dist/regenerator/service.js
183
- - Module not found, treating it as an external dependency in ../../libs/contracts/dist/regenerator/service.js at 121..143
182
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
183
+ - Module not found, treating it as an external dependency in ../../libs/contracts/dist/workflow/runner.js at 80..93
184
184
   │
185
185
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
186
186
 
187
- [UNRESOLVED_IMPORT] Warning: Could not resolve 'node:crypto' in ../../libs/contracts/dist/workflow/runner.js
188
- - Module not found, treating it as an external dependency in ../../libs/contracts/dist/workflow/runner.js at 80..93
187
+ [UNRESOLVED_IMPORT] Warning: Could not resolve 'turndown' in ../../libs/contracts/dist/presentations.v2.js
188
+ - Module not found, treating it as an external dependency in ../../libs/contracts/dist/presentations.v2.js at 93..103
189
189
   │
190
190
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
191
191
 
@@ -194,4 +194,4 @@
194
194
   │
195
195
   │ Help: The "main" field here was ignored. Main fields must be configured explicitly when using the "neutral" platform.
196
196
 
197
- ✔ Build complete in 9676ms
197
+ ✔ Build complete in 8087ms
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lssm/example.locale-jurisdiction-gate
2
2
 
3
- ## 0.0.0-canary-20251217062139
3
+ ## 0.0.0-canary-20251217062943
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,5 +9,5 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - Updated dependencies [66a5dfd]
12
- - @lssm/lib.contracts@0.0.0-canary-20251217062139
13
- - @lssm/lib.schema@0.0.0-canary-20251217062139
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217062943
13
+ - @lssm/lib.schema@0.0.0-canary-20251217062943
@@ -1,135 +1,135 @@
1
- import * as _lssm_lib_schema16 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/entities/models.d.ts
4
- declare const AllowedScopeEnum: _lssm_lib_schema16.EnumType<[string, string, string]>;
5
- declare const UserProfileModel: _lssm_lib_schema16.SchemaModel<{
4
+ declare const AllowedScopeEnum: _lssm_lib_schema0.EnumType<[string, string, string]>;
5
+ declare const UserProfileModel: _lssm_lib_schema0.SchemaModel<{
6
6
  preferredLocale: {
7
- type: _lssm_lib_schema16.FieldType<string, string>;
7
+ type: _lssm_lib_schema0.FieldType<string, string>;
8
8
  isOptional: true;
9
9
  };
10
10
  residencyCountry: {
11
- type: _lssm_lib_schema16.FieldType<string, string>;
11
+ type: _lssm_lib_schema0.FieldType<string, string>;
12
12
  isOptional: true;
13
13
  };
14
14
  taxResidenceCountry: {
15
- type: _lssm_lib_schema16.FieldType<string, string>;
15
+ type: _lssm_lib_schema0.FieldType<string, string>;
16
16
  isOptional: true;
17
17
  };
18
18
  clientType: {
19
- type: _lssm_lib_schema16.FieldType<string, string>;
19
+ type: _lssm_lib_schema0.FieldType<string, string>;
20
20
  isOptional: true;
21
21
  };
22
22
  }>;
23
- declare const RegulatoryContextModel: _lssm_lib_schema16.SchemaModel<{
23
+ declare const RegulatoryContextModel: _lssm_lib_schema0.SchemaModel<{
24
24
  jurisdiction: {
25
- type: _lssm_lib_schema16.FieldType<string, string>;
25
+ type: _lssm_lib_schema0.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  region: {
29
- type: _lssm_lib_schema16.FieldType<string, string>;
29
+ type: _lssm_lib_schema0.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  clientType: {
33
- type: _lssm_lib_schema16.FieldType<string, string>;
33
+ type: _lssm_lib_schema0.FieldType<string, string>;
34
34
  isOptional: true;
35
35
  };
36
36
  allowedScope: {
37
- type: _lssm_lib_schema16.EnumType<[string, string, string]>;
37
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
38
38
  isOptional: false;
39
39
  };
40
40
  }>;
41
- declare const LLMCallEnvelopeModel: _lssm_lib_schema16.SchemaModel<{
41
+ declare const LLMCallEnvelopeModel: _lssm_lib_schema0.SchemaModel<{
42
42
  traceId: {
43
- type: _lssm_lib_schema16.FieldType<string, string>;
43
+ type: _lssm_lib_schema0.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  locale: {
47
- type: _lssm_lib_schema16.FieldType<string, string>;
47
+ type: _lssm_lib_schema0.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  regulatoryContext: {
51
- type: _lssm_lib_schema16.SchemaModel<{
51
+ type: _lssm_lib_schema0.SchemaModel<{
52
52
  jurisdiction: {
53
- type: _lssm_lib_schema16.FieldType<string, string>;
53
+ type: _lssm_lib_schema0.FieldType<string, string>;
54
54
  isOptional: false;
55
55
  };
56
56
  region: {
57
- type: _lssm_lib_schema16.FieldType<string, string>;
57
+ type: _lssm_lib_schema0.FieldType<string, string>;
58
58
  isOptional: true;
59
59
  };
60
60
  clientType: {
61
- type: _lssm_lib_schema16.FieldType<string, string>;
61
+ type: _lssm_lib_schema0.FieldType<string, string>;
62
62
  isOptional: true;
63
63
  };
64
64
  allowedScope: {
65
- type: _lssm_lib_schema16.EnumType<[string, string, string]>;
65
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
66
66
  isOptional: false;
67
67
  };
68
68
  }>;
69
69
  isOptional: false;
70
70
  };
71
71
  kbSnapshotId: {
72
- type: _lssm_lib_schema16.FieldType<string, string>;
72
+ type: _lssm_lib_schema0.FieldType<string, string>;
73
73
  isOptional: false;
74
74
  };
75
75
  allowedScope: {
76
- type: _lssm_lib_schema16.EnumType<[string, string, string]>;
76
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
77
77
  isOptional: false;
78
78
  };
79
79
  }>;
80
- declare const AssistantCitationModel: _lssm_lib_schema16.SchemaModel<{
80
+ declare const AssistantCitationModel: _lssm_lib_schema0.SchemaModel<{
81
81
  kbSnapshotId: {
82
- type: _lssm_lib_schema16.FieldType<string, string>;
82
+ type: _lssm_lib_schema0.FieldType<string, string>;
83
83
  isOptional: false;
84
84
  };
85
85
  sourceType: {
86
- type: _lssm_lib_schema16.FieldType<string, string>;
86
+ type: _lssm_lib_schema0.FieldType<string, string>;
87
87
  isOptional: false;
88
88
  };
89
89
  sourceId: {
90
- type: _lssm_lib_schema16.FieldType<string, string>;
90
+ type: _lssm_lib_schema0.FieldType<string, string>;
91
91
  isOptional: false;
92
92
  };
93
93
  title: {
94
- type: _lssm_lib_schema16.FieldType<string, string>;
94
+ type: _lssm_lib_schema0.FieldType<string, string>;
95
95
  isOptional: true;
96
96
  };
97
97
  excerpt: {
98
- type: _lssm_lib_schema16.FieldType<string, string>;
98
+ type: _lssm_lib_schema0.FieldType<string, string>;
99
99
  isOptional: true;
100
100
  };
101
101
  }>;
102
- declare const AssistantAnswerSectionModel: _lssm_lib_schema16.SchemaModel<{
102
+ declare const AssistantAnswerSectionModel: _lssm_lib_schema0.SchemaModel<{
103
103
  heading: {
104
- type: _lssm_lib_schema16.FieldType<string, string>;
104
+ type: _lssm_lib_schema0.FieldType<string, string>;
105
105
  isOptional: false;
106
106
  };
107
107
  body: {
108
- type: _lssm_lib_schema16.FieldType<string, string>;
108
+ type: _lssm_lib_schema0.FieldType<string, string>;
109
109
  isOptional: false;
110
110
  };
111
111
  }>;
112
- declare const AssistantAnswerIRModel: _lssm_lib_schema16.SchemaModel<{
112
+ declare const AssistantAnswerIRModel: _lssm_lib_schema0.SchemaModel<{
113
113
  locale: {
114
- type: _lssm_lib_schema16.FieldType<string, string>;
114
+ type: _lssm_lib_schema0.FieldType<string, string>;
115
115
  isOptional: false;
116
116
  };
117
117
  jurisdiction: {
118
- type: _lssm_lib_schema16.FieldType<string, string>;
118
+ type: _lssm_lib_schema0.FieldType<string, string>;
119
119
  isOptional: false;
120
120
  };
121
121
  allowedScope: {
122
- type: _lssm_lib_schema16.EnumType<[string, string, string]>;
122
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
123
123
  isOptional: false;
124
124
  };
125
125
  sections: {
126
- type: _lssm_lib_schema16.SchemaModel<{
126
+ type: _lssm_lib_schema0.SchemaModel<{
127
127
  heading: {
128
- type: _lssm_lib_schema16.FieldType<string, string>;
128
+ type: _lssm_lib_schema0.FieldType<string, string>;
129
129
  isOptional: false;
130
130
  };
131
131
  body: {
132
- type: _lssm_lib_schema16.FieldType<string, string>;
132
+ type: _lssm_lib_schema0.FieldType<string, string>;
133
133
  isOptional: false;
134
134
  };
135
135
  }>;
@@ -137,25 +137,25 @@ declare const AssistantAnswerIRModel: _lssm_lib_schema16.SchemaModel<{
137
137
  isOptional: false;
138
138
  };
139
139
  citations: {
140
- type: _lssm_lib_schema16.SchemaModel<{
140
+ type: _lssm_lib_schema0.SchemaModel<{
141
141
  kbSnapshotId: {
142
- type: _lssm_lib_schema16.FieldType<string, string>;
142
+ type: _lssm_lib_schema0.FieldType<string, string>;
143
143
  isOptional: false;
144
144
  };
145
145
  sourceType: {
146
- type: _lssm_lib_schema16.FieldType<string, string>;
146
+ type: _lssm_lib_schema0.FieldType<string, string>;
147
147
  isOptional: false;
148
148
  };
149
149
  sourceId: {
150
- type: _lssm_lib_schema16.FieldType<string, string>;
150
+ type: _lssm_lib_schema0.FieldType<string, string>;
151
151
  isOptional: false;
152
152
  };
153
153
  title: {
154
- type: _lssm_lib_schema16.FieldType<string, string>;
154
+ type: _lssm_lib_schema0.FieldType<string, string>;
155
155
  isOptional: true;
156
156
  };
157
157
  excerpt: {
158
- type: _lssm_lib_schema16.FieldType<string, string>;
158
+ type: _lssm_lib_schema0.FieldType<string, string>;
159
159
  isOptional: true;
160
160
  };
161
161
  }>;
@@ -163,21 +163,21 @@ declare const AssistantAnswerIRModel: _lssm_lib_schema16.SchemaModel<{
163
163
  isOptional: false;
164
164
  };
165
165
  disclaimers: {
166
- type: _lssm_lib_schema16.FieldType<string, string>;
166
+ type: _lssm_lib_schema0.FieldType<string, string>;
167
167
  isArray: true;
168
168
  isOptional: true;
169
169
  };
170
170
  riskFlags: {
171
- type: _lssm_lib_schema16.FieldType<string, string>;
171
+ type: _lssm_lib_schema0.FieldType<string, string>;
172
172
  isArray: true;
173
173
  isOptional: true;
174
174
  };
175
175
  refused: {
176
- type: _lssm_lib_schema16.FieldType<boolean, boolean>;
176
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
177
177
  isOptional: true;
178
178
  };
179
179
  refusalReason: {
180
- type: _lssm_lib_schema16.FieldType<string, string>;
180
+ type: _lssm_lib_schema0.FieldType<string, string>;
181
181
  isOptional: true;
182
182
  };
183
183
  }>;
package/dist/events.d.ts CHANGED
@@ -1,66 +1,66 @@
1
- import * as _lssm_lib_schema0 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema46 from "@lssm/lib.schema";
2
2
  import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
3
 
4
4
  //#region src/events.d.ts
5
- declare const AssistantAnswerRequestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
5
+ declare const AssistantAnswerRequestedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema46.SchemaModel<{
6
6
  traceId: {
7
- type: _lssm_lib_schema0.FieldType<string, string>;
7
+ type: _lssm_lib_schema46.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  locale: {
11
- type: _lssm_lib_schema0.FieldType<string, string>;
11
+ type: _lssm_lib_schema46.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  jurisdiction: {
15
- type: _lssm_lib_schema0.FieldType<string, string>;
15
+ type: _lssm_lib_schema46.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  kbSnapshotId: {
19
- type: _lssm_lib_schema0.FieldType<string, string>;
19
+ type: _lssm_lib_schema46.FieldType<string, string>;
20
20
  isOptional: false;
21
21
  };
22
22
  allowedScope: {
23
- type: _lssm_lib_schema0.FieldType<string, string>;
23
+ type: _lssm_lib_schema46.FieldType<string, string>;
24
24
  isOptional: false;
25
25
  };
26
26
  }>>;
27
- declare const AssistantAnswerBlockedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
27
+ declare const AssistantAnswerBlockedEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema46.SchemaModel<{
28
28
  traceId: {
29
- type: _lssm_lib_schema0.FieldType<string, string>;
29
+ type: _lssm_lib_schema46.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  reasonCode: {
33
- type: _lssm_lib_schema0.FieldType<string, string>;
33
+ type: _lssm_lib_schema46.FieldType<string, string>;
34
34
  isOptional: false;
35
35
  };
36
36
  reason: {
37
- type: _lssm_lib_schema0.FieldType<string, string>;
37
+ type: _lssm_lib_schema46.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  }>>;
41
- declare const AssistantAnswerDeliveredEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema0.SchemaModel<{
41
+ declare const AssistantAnswerDeliveredEvent: _lssm_lib_contracts0.EventSpec<_lssm_lib_schema46.SchemaModel<{
42
42
  traceId: {
43
- type: _lssm_lib_schema0.FieldType<string, string>;
43
+ type: _lssm_lib_schema46.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  locale: {
47
- type: _lssm_lib_schema0.FieldType<string, string>;
47
+ type: _lssm_lib_schema46.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  jurisdiction: {
51
- type: _lssm_lib_schema0.FieldType<string, string>;
51
+ type: _lssm_lib_schema46.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  kbSnapshotId: {
55
- type: _lssm_lib_schema0.FieldType<string, string>;
55
+ type: _lssm_lib_schema46.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  allowedScope: {
59
- type: _lssm_lib_schema0.FieldType<string, string>;
59
+ type: _lssm_lib_schema46.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  citationsCount: {
63
- type: _lssm_lib_schema0.FieldType<number, number>;
63
+ type: _lssm_lib_schema46.FieldType<number, number>;
64
64
  isOptional: false;
65
65
  };
66
66
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.locale-jurisdiction-gate",
3
- "version": "0.0.0-canary-20251217062139",
3
+ "version": "0.0.0-canary-20251217062943",
4
4
  "description": "Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,13 +38,13 @@
38
38
  "test": "bun test"
39
39
  },
40
40
  "dependencies": {
41
- "@lssm/lib.contracts": "0.0.0-canary-20251217062139",
42
- "@lssm/lib.schema": "0.0.0-canary-20251217062139",
41
+ "@lssm/lib.contracts": "0.0.0-canary-20251217062943",
42
+ "@lssm/lib.schema": "0.0.0-canary-20251217062943",
43
43
  "zod": "^4.1.13"
44
44
  },
45
45
  "devDependencies": {
46
- "@lssm/tool.tsdown": "0.0.0-canary-20251217062139",
47
- "@lssm/tool.typescript": "0.0.0-canary-20251217062139",
46
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217062943",
47
+ "@lssm/tool.typescript": "0.0.0-canary-20251217062943",
48
48
  "tsdown": "^0.17.4",
49
49
  "typescript": "^5.9.3"
50
50
  },