@lssm/example.locale-jurisdiction-gate 0.0.0-canary-20251216031832 → 0.0.0-canary-20251216033905

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 @@ $ bun build:bundle && bun build:types
2
2
  $ tsdown
3
3
  ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
4
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/locale-jurisdiction-gate/tsdown.config.js
5
- ℹ entry: src/events.ts, src/example.ts, src/feature.ts, src/index.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
5
+ ℹ entry: src/events.ts, src/example.ts, src/feature.ts, src/index.ts, src/docs/index.ts, src/docs/locale-jurisdiction-gate.docblock.ts, src/entities/index.ts, src/entities/models.ts, src/contracts/assistant.ts, src/contracts/index.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
@@ -22,5 +22,5 @@ $ tsdown
22
22
  ℹ dist/docs/index.js 0.05 kB │ gzip: 0.07 kB
23
23
  ℹ dist/policy/types.js 0.00 kB │ gzip: 0.02 kB
24
24
  ℹ 15 files, total: 14.27 kB
25
- ✔ Build complete in 41ms
25
+ ✔ Build complete in 79ms
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-20251216031832
3
+ ## 0.0.0-canary-20251216033905
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [3086383]
8
- - @lssm/lib.contracts@0.0.0-canary-20251216031832
9
- - @lssm/lib.schema@0.0.0-canary-20251216031832
8
+ - @lssm/lib.contracts@0.0.0-canary-20251216033905
9
+ - @lssm/lib.schema@0.0.0-canary-20251216033905
package/README.md CHANGED
@@ -33,3 +33,4 @@ bun test
33
33
 
34
34
 
35
35
 
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.locale-jurisdiction-gate",
3
- "version": "0.0.0-canary-20251216031832",
3
+ "version": "0.0.0-canary-20251216033905",
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",
@@ -96,6 +96,3 @@ export const AssistantExplainConceptContract = defineCommand({
96
96
  },
97
97
  policy: { auth: 'user' },
98
98
  });
99
-
100
-
101
-
@@ -1,4 +1 @@
1
1
  export * from './assistant';
2
-
3
-
4
-
package/src/docs/index.ts CHANGED
@@ -1,4 +1 @@
1
1
  import './locale-jurisdiction-gate.docblock';
2
-
3
-
4
-
@@ -44,6 +44,3 @@ const docBlocks: DocBlock[] = [
44
44
  ];
45
45
 
46
46
  registerDocBlocks(docBlocks);
47
-
48
-
49
-
@@ -1,4 +1 @@
1
1
  export * from './models';
2
-
3
-
4
-
package/src/events.ts CHANGED
@@ -57,6 +57,3 @@ export const AssistantAnswerDeliveredEvent = defineEvent({
57
57
  'Assistant answer delivered (must include KB snapshot citations).',
58
58
  payload: AssistantAnswerDeliveredPayload,
59
59
  });
60
-
61
-
62
-
package/src/feature.ts CHANGED
@@ -27,6 +27,3 @@ export const LocaleJurisdictionGateFeature: FeatureModuleSpec = {
27
27
  requires: [{ key: 'knowledge', version: 1 }],
28
28
  },
29
29
  };
30
-
31
-
32
-
@@ -1,4 +1 @@
1
1
  export * from './demo.handlers';
2
-
3
-
4
-
@@ -23,6 +23,3 @@ describe('locale/jurisdiction gate policy', () => {
23
23
  if (!result.ok) expect(result.error.code).toBe('CITATIONS_REQUIRED');
24
24
  });
25
25
  });
26
-
27
-
28
-
@@ -100,6 +100,3 @@ export function enforceAllowedScope(
100
100
  }
101
101
  return { ok: true, value: answer };
102
102
  }
103
-
104
-
105
-
@@ -1,5 +1,2 @@
1
1
  export * from './types';
2
2
  export * from './guard';
3
-
4
-
5
-
@@ -16,6 +16,3 @@ export interface GateError {
16
16
  export type GateResult<T> =
17
17
  | { ok: true; value: T }
18
18
  | { ok: false; error: GateError };
19
-
20
-
21
-
package/tsconfig.json CHANGED
@@ -11,3 +11,4 @@
11
11
 
12
12
 
13
13
 
14
+