@lssm/example.locale-jurisdiction-gate 0.0.0-canary-20251216035145 → 0.0.0-canary-20251216062412
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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +3 -3
- package/README.md +2 -0
- package/dist/index.js +1 -1
- package/dist/locale-jurisdiction-gate.feature.js +1 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
- package/src/{feature.ts → locale-jurisdiction-gate.feature.ts} +1 -1
- package/tsconfig.json +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/tsdown.config.js +2 -0
- package/dist/feature.js +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,7 +2,7 @@ $ bun build:bundle && bun build:types
|
|
|
2
2
|
$ tsdown
|
|
3
3
|
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
4
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/locale-jurisdiction-gate/tsdown.config.js[24m
|
|
5
|
-
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/
|
|
5
|
+
[34mℹ[39m entry: [34msrc/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[39m
|
|
6
6
|
[34mℹ[39m target: [34mesnext[39m
|
|
7
7
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
8
|
[34mℹ[39m Build start
|
|
@@ -11,9 +11,9 @@ $ tsdown
|
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mevents.js[22m [2m1.69 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mhandlers/demo.handlers.js[22m [2m1.55 kB[22m [2m│ gzip: 0.69 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mdocs/locale-jurisdiction-gate.docblock.js[22m [2m1.40 kB[22m [2m│ gzip: 0.67 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.34 kB[22m [2m│ gzip: 0.47 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mpolicy/guard.js[22m [2m1.18 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mlocale-jurisdiction-gate.feature.js[22m [2m0.72 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
17
17
|
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.67 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
18
18
|
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.41 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1mpolicy/index.js[22m [2m0.17 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
@@ -21,6 +21,6 @@ $ tsdown
|
|
|
21
21
|
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m [2m0.11 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.05 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[1mpolicy/types.js[22m [2m0.00 kB[22m [2m│ gzip: 0.02 kB[22m
|
|
24
|
-
[34mℹ[39m 15 files, total: 14.
|
|
25
|
-
[32m✔[39m Build complete in [
|
|
24
|
+
[34mℹ[39m 15 files, total: 14.30 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m34ms[39m
|
|
26
26
|
$ tsc --noEmit
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @lssm/example.locale-jurisdiction-gate
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251216062412
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies [3086383]
|
|
8
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
9
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
8
|
+
- @lssm/lib.contracts@0.0.0-canary-20251216062412
|
|
9
|
+
- @lssm/lib.schema@0.0.0-canary-20251216062412
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AssistantAnswerBlockedEvent as e,AssistantAnswerDeliveredEvent as t,AssistantAnswerRequestedEvent as n}from"./events.js";import r from"./example.js";import{
|
|
1
|
+
import{AssistantAnswerBlockedEvent as e,AssistantAnswerDeliveredEvent as t,AssistantAnswerRequestedEvent as n}from"./events.js";import r from"./example.js";import{AllowedScopeEnum as i,AssistantAnswerIRModel as a,AssistantAnswerSectionModel as o,AssistantCitationModel as s,LLMCallEnvelopeModel as c,RegulatoryContextModel as l,UserProfileModel as u}from"./entities/models.js";import"./entities/index.js";import{AssistantAnswerContract as d,AssistantExplainConceptContract as f}from"./contracts/assistant.js";import"./contracts/index.js";import{enforceAllowedScope as p,enforceCitations as m,validateEnvelope as h}from"./policy/guard.js";import{createDemoAssistantHandlers as g}from"./handlers/demo.handlers.js";import{LocaleJurisdictionGateFeature as _}from"./locale-jurisdiction-gate.feature.js";import"./docs/index.js";export{i as AllowedScopeEnum,e as AssistantAnswerBlockedEvent,d as AssistantAnswerContract,t as AssistantAnswerDeliveredEvent,a as AssistantAnswerIRModel,n as AssistantAnswerRequestedEvent,o as AssistantAnswerSectionModel,s as AssistantCitationModel,f as AssistantExplainConceptContract,c as LLMCallEnvelopeModel,_ as LocaleJurisdictionGateFeature,l as RegulatoryContextModel,u as UserProfileModel,g as createDemoAssistantHandlers,p as enforceAllowedScope,m as enforceCitations,r as example,h as validateEnvelope};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meta:{key:`locale-jurisdiction-gate`,title:`Locale + Jurisdiction Gate`,description:`Fail-closed gating for assistant calls requiring locale/jurisdiction/snapshot/scope and citations.`,domain:`knowledge`,owners:[`@examples`],tags:[`assistant`,`policy`,`locale`,`jurisdiction`,`knowledge`],stability:`experimental`},operations:[{name:`assistant.answer`,version:1},{name:`assistant.explainConcept`,version:1}],events:[{name:`assistant.answer.requested`,version:1},{name:`assistant.answer.blocked`,version:1},{name:`assistant.answer.delivered`,version:1}],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{requires:[{key:`knowledge`,version:1}]}};export{e as LocaleJurisdictionGateFeature};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.locale-jurisdiction-gate",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251216062412",
|
|
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",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"./entities/models": "./src/entities/models.ts",
|
|
17
17
|
"./events": "./src/events.ts",
|
|
18
18
|
"./example": "./src/example.ts",
|
|
19
|
-
"./feature": "./src/feature.ts",
|
|
20
19
|
"./handlers": "./src/handlers/index.ts",
|
|
21
20
|
"./handlers/demo.handlers": "./src/handlers/demo.handlers.ts",
|
|
21
|
+
"./locale-jurisdiction-gate.feature": "./src/locale-jurisdiction-gate.feature.ts",
|
|
22
22
|
"./policy": "./src/policy/index.ts",
|
|
23
23
|
"./policy/guard": "./src/policy/guard.ts",
|
|
24
24
|
"./policy/types": "./src/policy/types.ts",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"./entities/models": "./dist/entities/models.js",
|
|
59
59
|
"./events": "./dist/events.js",
|
|
60
60
|
"./example": "./dist/example.js",
|
|
61
|
-
"./feature": "./dist/feature.js",
|
|
62
61
|
"./handlers": "./dist/handlers/index.js",
|
|
63
62
|
"./handlers/demo.handlers": "./dist/handlers/demo.handlers.js",
|
|
63
|
+
"./locale-jurisdiction-gate.feature": "./dist/locale-jurisdiction-gate.feature.js",
|
|
64
64
|
"./policy": "./dist/policy/index.js",
|
|
65
65
|
"./policy/guard": "./dist/policy/guard.js",
|
|
66
66
|
"./policy/types": "./dist/policy/types.js",
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './contracts';
|
|
|
9
9
|
export * from './events';
|
|
10
10
|
export * from './policy';
|
|
11
11
|
export * from './handlers';
|
|
12
|
-
export * from './feature';
|
|
12
|
+
export * from './locale-jurisdiction-gate.feature';
|
|
13
13
|
export { default as example } from './example';
|
|
14
14
|
|
|
15
15
|
import './docs';
|
|
@@ -7,7 +7,7 @@ export const LocaleJurisdictionGateFeature: FeatureModuleSpec = {
|
|
|
7
7
|
description:
|
|
8
8
|
'Fail-closed gating for assistant calls requiring locale/jurisdiction/snapshot/scope and citations.',
|
|
9
9
|
domain: 'knowledge',
|
|
10
|
-
owners: ['examples'],
|
|
10
|
+
owners: ['@examples'],
|
|
11
11
|
tags: ['assistant', 'policy', 'locale', 'jurisdiction', 'knowledge'],
|
|
12
12
|
stability: 'experimental',
|
|
13
13
|
},
|