@contractspec/example.locale-jurisdiction-gate 3.0.0 → 3.2.0
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 +3 -3
- package/AGENTS.md +36 -0
- package/CHANGELOG.md +33 -0
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -3,7 +3,7 @@ $ bun run prebuild && bun run build:bundle && bun run build:types
|
|
|
3
3
|
$ contractspec-bun-build prebuild
|
|
4
4
|
$ contractspec-bun-build transpile
|
|
5
5
|
[contractspec-bun-build] transpile target=bun root=src entries=15
|
|
6
|
-
Bundled 15 modules in
|
|
6
|
+
Bundled 15 modules in 34ms
|
|
7
7
|
|
|
8
8
|
docs/index.js 1.64 KB (entry point)
|
|
9
9
|
./index.js 18.39 KB (entry point)
|
|
@@ -22,7 +22,7 @@ Bundled 15 modules in 19ms
|
|
|
22
22
|
policy/guard.js 2.0 KB (entry point)
|
|
23
23
|
|
|
24
24
|
[contractspec-bun-build] transpile target=node root=src entries=15
|
|
25
|
-
Bundled 15 modules in
|
|
25
|
+
Bundled 15 modules in 23ms
|
|
26
26
|
|
|
27
27
|
docs/index.js 1.63 KB (entry point)
|
|
28
28
|
./index.js 18.38 KB (entry point)
|
|
@@ -41,7 +41,7 @@ Bundled 15 modules in 20ms
|
|
|
41
41
|
policy/guard.js 2.0 KB (entry point)
|
|
42
42
|
|
|
43
43
|
[contractspec-bun-build] transpile target=browser root=src entries=15
|
|
44
|
-
Bundled 15 modules in
|
|
44
|
+
Bundled 15 modules in 17ms
|
|
45
45
|
|
|
46
46
|
docs/index.js 1.63 KB (entry point)
|
|
47
47
|
./index.js 18.38 KB (entry point)
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# AI Agent Guide -- `@contractspec/example.locale-jurisdiction-gate`
|
|
2
|
+
|
|
3
|
+
Scope: `packages/examples/locale-jurisdiction-gate/*`
|
|
4
|
+
|
|
5
|
+
Enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed policy).
|
|
6
|
+
|
|
7
|
+
## Quick Context
|
|
8
|
+
|
|
9
|
+
- **Layer**: example
|
|
10
|
+
- **Related Packages**: `lib.contracts-spec`, `lib.schema`
|
|
11
|
+
|
|
12
|
+
## What This Demonstrates
|
|
13
|
+
|
|
14
|
+
- Fail-closed policy guard pattern for AI assistant calls
|
|
15
|
+
- Entity models for locale/jurisdiction gating
|
|
16
|
+
- Event-driven policy enforcement
|
|
17
|
+
- Handler and operation separation with typed operations
|
|
18
|
+
- Feature definition pattern
|
|
19
|
+
|
|
20
|
+
## Public Exports
|
|
21
|
+
|
|
22
|
+
- `.` -- root barrel
|
|
23
|
+
- `./policy` -- guard, types
|
|
24
|
+
- `./entities` -- models
|
|
25
|
+
- `./operations` -- assistant operations
|
|
26
|
+
- `./handlers` -- demo handlers
|
|
27
|
+
- `./events` -- policy events
|
|
28
|
+
- `./locale-jurisdiction-gate.feature` -- feature definition
|
|
29
|
+
- `./docs`, `./example`
|
|
30
|
+
|
|
31
|
+
## Local Commands
|
|
32
|
+
|
|
33
|
+
- Build: `bun run build`
|
|
34
|
+
- Dev: `bun run dev`
|
|
35
|
+
- Test: `bun test`
|
|
36
|
+
- Typecheck: `bun run typecheck`
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @contractspec/example.locale-jurisdiction-gate
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a281fc5: fix: missing dependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a281fc5]
|
|
12
|
+
- @contractspec/lib.contracts-spec@3.2.0
|
|
13
|
+
- @contractspec/lib.schema@3.2.0
|
|
14
|
+
|
|
15
|
+
## 3.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [02c0cc5]
|
|
20
|
+
- @contractspec/lib.contracts-spec@3.1.1
|
|
21
|
+
|
|
22
|
+
## 3.1.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- 28987eb: chore: upgrade dependencies
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [f2a4faf]
|
|
31
|
+
- Updated dependencies [28987eb]
|
|
32
|
+
- Updated dependencies [28987eb]
|
|
33
|
+
- @contractspec/lib.contracts-spec@3.1.0
|
|
34
|
+
- @contractspec/lib.schema@3.1.0
|
|
35
|
+
|
|
3
36
|
## 3.0.0
|
|
4
37
|
|
|
5
38
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.locale-jurisdiction-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
"typecheck": "tsc --noEmit"
|
|
163
163
|
},
|
|
164
164
|
"dependencies": {
|
|
165
|
-
"@contractspec/lib.contracts-spec": "3.
|
|
166
|
-
"@contractspec/lib.schema": "3.
|
|
165
|
+
"@contractspec/lib.contracts-spec": "3.2.0",
|
|
166
|
+
"@contractspec/lib.schema": "3.2.0"
|
|
167
167
|
},
|
|
168
168
|
"devDependencies": {
|
|
169
|
-
"@contractspec/tool.typescript": "3.
|
|
169
|
+
"@contractspec/tool.typescript": "3.2.0",
|
|
170
170
|
"typescript": "^5.9.3",
|
|
171
|
-
"@contractspec/tool.bun": "3.
|
|
171
|
+
"@contractspec/tool.bun": "3.2.0"
|
|
172
172
|
},
|
|
173
173
|
"publishConfig": {
|
|
174
174
|
"access": "public",
|