@contractspec/example.locale-jurisdiction-gate 1.46.2 → 1.48.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$colon$bundle.log +13 -13
- package/.turbo/turbo-build.log +13 -13
- package/CHANGELOG.md +34 -0
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +4 -2
- package/dist/example.js.map +1 -1
- package/dist/handlers/demo.handlers.js.map +1 -1
- package/dist/locale-jurisdiction-gate.feature.d.ts +2 -2
- package/dist/locale-jurisdiction-gate.feature.d.ts.map +1 -1
- package/dist/locale-jurisdiction-gate.feature.js +4 -2
- package/dist/locale-jurisdiction-gate.feature.js.map +1 -1
- package/dist/operations/assistant.d.ts +3 -3
- package/dist/policy/guard.js.map +1 -1
- package/package.json +6 -8
- package/src/example.ts +3 -3
- package/src/locale-jurisdiction-gate.feature.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsdown
|
|
2
|
-
[34mℹ[39m tsdown [2mv0.
|
|
2
|
+
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
3
3
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/locale-jurisdiction-gate/tsdown.config.js[24m
|
|
4
4
|
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/index.ts, src/locale-jurisdiction-gate.feature.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/operations/assistant.ts, src/operations/index.ts, src/policy/guard.ts, src/policy/index.ts, src/policy/types.ts[39m
|
|
5
5
|
[34mℹ[39m target: [34mesnext[39m
|
|
@@ -13,30 +13,30 @@ $ tsdown
|
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mpolicy/guard.js[22m [2m1.90 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mdocs/locale-jurisdiction-gate.docblock.js[22m [2m1.64 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.27 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mlocale-jurisdiction-gate.feature.js[22m [2m1.
|
|
17
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mlocale-jurisdiction-gate.feature.js[22m [2m1.16 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.13 kB[22m [2m│ gzip: 0.58 kB[22m
|
|
18
18
|
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.36 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1moperations/index.js[22m [2m0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[1mpolicy/index.js[22m [2m0.15 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
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 [2mdist/[22mhandlers/demo.handlers.js.map [2m5.
|
|
24
|
+
[34mℹ[39m [2mdist/[22mhandlers/demo.handlers.js.map [2m5.94 kB[22m [2m│ gzip: 1.81 kB[22m
|
|
25
25
|
[34mℹ[39m [2mdist/[22mentities/models.js.map [2m5.85 kB[22m [2m│ gzip: 1.20 kB[22m
|
|
26
26
|
[34mℹ[39m [2mdist/[22moperations/assistant.js.map [2m4.60 kB[22m [2m│ gzip: 1.41 kB[22m
|
|
27
27
|
[34mℹ[39m [2mdist/[22mevents.js.map [2m4.40 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
28
|
-
[34mℹ[39m [2mdist/[22mpolicy/guard.js.map [2m4.
|
|
28
|
+
[34mℹ[39m [2mdist/[22mpolicy/guard.js.map [2m4.08 kB[22m [2m│ gzip: 1.44 kB[22m
|
|
29
29
|
[34mℹ[39m [2mdist/[22mdocs/locale-jurisdiction-gate.docblock.js.map [2m2.16 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
30
|
-
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.js.map [2m1.
|
|
31
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
30
|
+
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.js.map [2m1.67 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.60 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
32
32
|
[34mℹ[39m [2mdist/[22mentities/models.d.ts.map [2m0.91 kB[22m [2m│ gzip: 0.39 kB[22m
|
|
33
33
|
[34mℹ[39m [2mdist/[22mpolicy/guard.d.ts.map [2m0.76 kB[22m [2m│ gzip: 0.39 kB[22m
|
|
34
34
|
[34mℹ[39m [2mdist/[22moperations/assistant.d.ts.map [2m0.65 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
35
35
|
[34mℹ[39m [2mdist/[22mevents.d.ts.map [2m0.57 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
36
36
|
[34mℹ[39m [2mdist/[22mhandlers/demo.handlers.d.ts.map [2m0.45 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
37
37
|
[34mℹ[39m [2mdist/[22mpolicy/types.d.ts.map [2m0.25 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
38
|
-
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.d.ts.map [2m0.
|
|
39
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
38
|
+
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
39
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
40
40
|
[34mℹ[39m [2mdist/[22m[32m[1moperations/assistant.d.ts[22m[39m [2m7.28 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
41
41
|
[34mℹ[39m [2mdist/[22m[32m[1mentities/models.d.ts[22m[39m [2m5.48 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
42
42
|
[34mℹ[39m [2mdist/[22m[32m[1mevents.d.ts[22m[39m [2m2.20 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
@@ -45,12 +45,12 @@ $ tsdown
|
|
|
45
45
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/guard.d.ts[22m[39m [2m0.93 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
46
46
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/types.d.ts[22m[39m [2m0.46 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
47
47
|
[34mℹ[39m [2mdist/[22m[32m[1mentities/index.d.ts[22m[39m [2m0.36 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
48
|
-
[34mℹ[39m [2mdist/[22m[32m[1mlocale-jurisdiction-gate.feature.d.ts[22m[39m [2m0.
|
|
48
|
+
[34mℹ[39m [2mdist/[22m[32m[1mlocale-jurisdiction-gate.feature.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
49
49
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/index.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
50
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.
|
|
50
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
51
51
|
[34mℹ[39m [2mdist/[22m[32m[1moperations/index.d.ts[22m[39m [2m0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
52
52
|
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/index.d.ts[22m[39m [2m0.15 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
53
53
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/locale-jurisdiction-gate.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
55
|
-
[34mℹ[39m 46 files, total: 75.
|
|
56
|
-
[32m✔[39m Build complete in [
|
|
55
|
+
[34mℹ[39m 46 files, total: 75.65 kB
|
|
56
|
+
[32m✔[39m Build complete in [32m25275ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$ bun build:types && bun build:bundle
|
|
2
2
|
$ tsc --noEmit
|
|
3
3
|
$ tsdown
|
|
4
|
-
[34mℹ[39m tsdown [2mv0.
|
|
4
|
+
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
5
5
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/locale-jurisdiction-gate/tsdown.config.js[24m
|
|
6
6
|
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/index.ts, src/locale-jurisdiction-gate.feature.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/operations/assistant.ts, src/operations/index.ts, src/policy/guard.ts, src/policy/index.ts, src/policy/types.ts[39m
|
|
7
7
|
[34mℹ[39m target: [34mesnext[39m
|
|
@@ -14,30 +14,30 @@ $ tsdown
|
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mpolicy/guard.js[22m [2m1.90 kB[22m [2m│ gzip: 0.76 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mdocs/locale-jurisdiction-gate.docblock.js[22m [2m1.64 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.27 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22m[1mlocale-jurisdiction-gate.feature.js[22m [2m1.
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mlocale-jurisdiction-gate.feature.js[22m [2m1.16 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.13 kB[22m [2m│ gzip: 0.58 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.36 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[1moperations/index.js[22m [2m0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
21
21
|
[34mℹ[39m [2mdist/[22m[1mpolicy/index.js[22m [2m0.15 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m [2m0.11 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.05 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
24
24
|
[34mℹ[39m [2mdist/[22m[1mpolicy/types.js[22m [2m0.00 kB[22m [2m│ gzip: 0.02 kB[22m
|
|
25
|
-
[34mℹ[39m [2mdist/[22mhandlers/demo.handlers.js.map [2m5.
|
|
25
|
+
[34mℹ[39m [2mdist/[22mhandlers/demo.handlers.js.map [2m5.94 kB[22m [2m│ gzip: 1.81 kB[22m
|
|
26
26
|
[34mℹ[39m [2mdist/[22mentities/models.js.map [2m5.85 kB[22m [2m│ gzip: 1.20 kB[22m
|
|
27
27
|
[34mℹ[39m [2mdist/[22moperations/assistant.js.map [2m4.60 kB[22m [2m│ gzip: 1.41 kB[22m
|
|
28
28
|
[34mℹ[39m [2mdist/[22mevents.js.map [2m4.40 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
29
|
-
[34mℹ[39m [2mdist/[22mpolicy/guard.js.map [2m4.
|
|
29
|
+
[34mℹ[39m [2mdist/[22mpolicy/guard.js.map [2m4.08 kB[22m [2m│ gzip: 1.44 kB[22m
|
|
30
30
|
[34mℹ[39m [2mdist/[22mdocs/locale-jurisdiction-gate.docblock.js.map [2m2.16 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
31
|
-
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.js.map [2m1.
|
|
32
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
31
|
+
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.js.map [2m1.67 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.60 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
33
33
|
[34mℹ[39m [2mdist/[22mentities/models.d.ts.map [2m0.91 kB[22m [2m│ gzip: 0.39 kB[22m
|
|
34
34
|
[34mℹ[39m [2mdist/[22mpolicy/guard.d.ts.map [2m0.76 kB[22m [2m│ gzip: 0.39 kB[22m
|
|
35
35
|
[34mℹ[39m [2mdist/[22moperations/assistant.d.ts.map [2m0.65 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
36
36
|
[34mℹ[39m [2mdist/[22mevents.d.ts.map [2m0.57 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
37
37
|
[34mℹ[39m [2mdist/[22mhandlers/demo.handlers.d.ts.map [2m0.45 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
38
38
|
[34mℹ[39m [2mdist/[22mpolicy/types.d.ts.map [2m0.25 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
39
|
-
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.d.ts.map [2m0.
|
|
40
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
39
|
+
[34mℹ[39m [2mdist/[22mlocale-jurisdiction-gate.feature.d.ts.map [2m0.19 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
40
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
41
41
|
[34mℹ[39m [2mdist/[22m[32m[1moperations/assistant.d.ts[22m[39m [2m7.28 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
42
42
|
[34mℹ[39m [2mdist/[22m[32m[1mentities/models.d.ts[22m[39m [2m5.48 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
43
43
|
[34mℹ[39m [2mdist/[22m[32m[1mevents.d.ts[22m[39m [2m2.20 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
@@ -46,12 +46,12 @@ $ tsdown
|
|
|
46
46
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/guard.d.ts[22m[39m [2m0.93 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
47
47
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/types.d.ts[22m[39m [2m0.46 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
48
48
|
[34mℹ[39m [2mdist/[22m[32m[1mentities/index.d.ts[22m[39m [2m0.36 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
49
|
-
[34mℹ[39m [2mdist/[22m[32m[1mlocale-jurisdiction-gate.feature.d.ts[22m[39m [2m0.
|
|
49
|
+
[34mℹ[39m [2mdist/[22m[32m[1mlocale-jurisdiction-gate.feature.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
50
50
|
[34mℹ[39m [2mdist/[22m[32m[1mpolicy/index.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
51
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.
|
|
51
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
52
52
|
[34mℹ[39m [2mdist/[22m[32m[1moperations/index.d.ts[22m[39m [2m0.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
53
53
|
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/index.d.ts[22m[39m [2m0.15 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
54
54
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
55
55
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/locale-jurisdiction-gate.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
56
|
-
[34mℹ[39m 46 files, total: 75.
|
|
57
|
-
[32m✔[39m Build complete in [
|
|
56
|
+
[34mℹ[39m 46 files, total: 75.65 kB
|
|
57
|
+
[32m✔[39m Build complete in [32m28335ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @contractspec/example.locale-jurisdiction-gate
|
|
2
2
|
|
|
3
|
+
## 1.48.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b0444a4: feat: reduce adoption's friction by allowing generation of contracts from an analyse of the codebase
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [b0444a4]
|
|
12
|
+
- @contractspec/lib.contracts@1.48.0
|
|
13
|
+
- @contractspec/lib.schema@1.48.0
|
|
14
|
+
|
|
15
|
+
## 1.47.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- caf8701: feat: add cli vibe command to run workflow
|
|
20
|
+
- c69b849: feat: add api web services (mcp & website)
|
|
21
|
+
- 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
|
|
22
|
+
- fd38e85: feat: auto-fix contractspec issues
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- e7ded36: feat: improve stability (adding ts-morph)
|
|
27
|
+
- c231a8b: test: improve workspace stability
|
|
28
|
+
- Updated dependencies [e7ded36]
|
|
29
|
+
- Updated dependencies [caf8701]
|
|
30
|
+
- Updated dependencies [c69b849]
|
|
31
|
+
- Updated dependencies [c231a8b]
|
|
32
|
+
- Updated dependencies [42b8d78]
|
|
33
|
+
- Updated dependencies [fd38e85]
|
|
34
|
+
- @contractspec/lib.contracts@1.47.0
|
|
35
|
+
- @contractspec/lib.schema@1.47.0
|
|
36
|
+
|
|
3
37
|
## 1.46.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/example.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _contractspec_lib_contracts2 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/example.d.ts
|
|
4
|
-
declare const example: ExampleSpec;
|
|
4
|
+
declare const example: _contractspec_lib_contracts2.ExampleSpec;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { example as default };
|
|
7
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA6BJ,4BAAA,CA7BW"}
|
package/dist/example.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.ts
|
|
2
|
-
const example = {
|
|
4
|
+
const example = defineExample({
|
|
3
5
|
meta: {
|
|
4
6
|
key: "locale-jurisdiction-gate",
|
|
5
7
|
version: "1.0.0",
|
|
@@ -37,7 +39,7 @@ const example = {
|
|
|
37
39
|
},
|
|
38
40
|
mcp: { enabled: true }
|
|
39
41
|
}
|
|
40
|
-
};
|
|
42
|
+
});
|
|
41
43
|
var example_default = example;
|
|
42
44
|
|
|
43
45
|
//#endregion
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[
|
|
1
|
+
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["import { defineExample } from '@contractspec/lib.contracts';\n\nconst example = defineExample({\n meta: {\n key: 'locale-jurisdiction-gate',\n version: '1.0.0',\n title: 'Locale / Jurisdiction Gate',\n description:\n 'Fail-closed gating for assistant calls: locale + jurisdiction + kbSnapshotId + allowedScope must be explicit, answers must cite a snapshot.',\n kind: 'knowledge',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['policy', 'locale', 'jurisdiction', 'assistant', 'gating'],\n },\n docs: {\n rootDocId: 'docs.examples.locale-jurisdiction-gate',\n },\n entrypoints: {\n packageName: '@contractspec/example.locale-jurisdiction-gate',\n feature: './feature',\n contracts: './contracts',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n});\n\nexport default example;\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc;CAC5B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAU;GAAU;GAAgB;GAAa;GAAS;EAClE;CACD,MAAM,EACJ,WAAW,0CACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF,CAAC;AAEF,sBAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo.handlers.js","names":[
|
|
1
|
+
{"version":3,"file":"demo.handlers.js","names":[],"sources":["../../src/handlers/demo.handlers.ts"],"sourcesContent":["import {\n enforceAllowedScope,\n enforceCitations,\n validateEnvelope,\n} from '../policy/guard';\n\ntype AllowedScope = 'education_only' | 'generic_info' | 'escalation_required';\n\ninterface AssistantAnswerIR {\n locale: string;\n jurisdiction: string;\n allowedScope: AllowedScope;\n sections: { heading: string; body: string }[];\n citations: {\n kbSnapshotId: string;\n sourceType: string;\n sourceId: string;\n title?: string;\n excerpt?: string;\n }[];\n disclaimers?: string[];\n riskFlags?: string[];\n refused?: boolean;\n refusalReason?: string;\n}\n\nexport interface DemoAssistantHandlers {\n answer(input: {\n envelope: {\n traceId: string;\n locale: string;\n kbSnapshotId: string;\n allowedScope: AllowedScope;\n regulatoryContext: { jurisdiction: string };\n };\n question: string;\n }): Promise<AssistantAnswerIR>;\n\n explainConcept(input: {\n envelope: {\n traceId: string;\n locale: string;\n kbSnapshotId: string;\n allowedScope: AllowedScope;\n regulatoryContext: { jurisdiction: string };\n };\n conceptKey: string;\n }): Promise<AssistantAnswerIR>;\n}\n\n/**\n * Deterministic demo assistant handlers (no LLM).\n *\n * - Validates envelope\n * - Requires citations\n * - Enforces allowedScope (education_only blocks actionable language)\n */\nexport function createDemoAssistantHandlers(): DemoAssistantHandlers {\n async function answer(input: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n envelope: DemoAssistantHandlers['answer'] extends (a: infer A) => any\n ? A extends { envelope: infer E }\n ? E\n : never\n : never;\n question: string;\n }): Promise<AssistantAnswerIR> {\n const env = validateEnvelope(input.envelope);\n if (!env.ok) {\n return {\n locale: input.envelope.locale ?? 'en-US',\n jurisdiction:\n input.envelope.regulatoryContext?.jurisdiction ?? 'UNKNOWN',\n allowedScope: input.envelope.allowedScope ?? 'education_only',\n sections: [\n {\n heading: 'Request blocked',\n body: env.error.message,\n },\n ],\n citations: [],\n disclaimers: [\n 'This system refuses to answer without a valid envelope.',\n ],\n riskFlags: [env.error.code],\n refused: true,\n refusalReason: env.error.code,\n };\n }\n\n const draft: AssistantAnswerIR = {\n locale: env.value.locale,\n jurisdiction: env.value.regulatoryContext?.jurisdiction ?? 'UNKNOWN',\n allowedScope: env.value.allowedScope ?? 'education_only',\n sections: [\n {\n heading: 'Answer (demo)',\n body: `You asked: \"${input.question}\". This demo answer is derived from the KB snapshot only.`,\n },\n ],\n citations: [\n {\n kbSnapshotId: env.value.kbSnapshotId ?? 'unknown',\n sourceType: 'ruleVersion',\n sourceId: 'rv_demo',\n title: 'Demo rule version',\n excerpt: 'Demo excerpt',\n },\n ],\n disclaimers: ['Educational demo only.'],\n riskFlags: [],\n };\n\n const scope = enforceAllowedScope(env.value.allowedScope, draft);\n if (!scope.ok) {\n return {\n ...draft,\n sections: [\n { heading: 'Escalation required', body: scope.error.message },\n ],\n citations: draft.citations,\n refused: true,\n refusalReason: scope.error.code,\n riskFlags: [...(draft.riskFlags ?? []), scope.error.code],\n };\n }\n\n const cited = enforceCitations(draft);\n if (!cited.ok) {\n return {\n ...draft,\n sections: [{ heading: 'Request blocked', body: cited.error.message }],\n citations: [],\n refused: true,\n refusalReason: cited.error.code,\n riskFlags: [...(draft.riskFlags ?? []), cited.error.code],\n };\n }\n\n return draft;\n }\n\n async function explainConcept(input: {\n envelope: DemoAssistantHandlers['explainConcept'] extends (\n a: infer A\n ) => any // eslint-disable-line @typescript-eslint/no-explicit-any\n ? A extends { envelope: infer E }\n ? E\n : never\n : never;\n conceptKey: string;\n }): Promise<AssistantAnswerIR> {\n return await answer({\n envelope: input.envelope,\n question: `Explain concept: ${input.conceptKey}`,\n });\n }\n\n return { answer, explainConcept };\n}\n"],"mappings":";;;;;;;;;;AAyDA,SAAgB,8BAAqD;CACnE,eAAe,OAAO,OAQS;EAC7B,MAAM,MAAM,iBAAiB,MAAM,SAAS;AAC5C,MAAI,CAAC,IAAI,GACP,QAAO;GACL,QAAQ,MAAM,SAAS,UAAU;GACjC,cACE,MAAM,SAAS,mBAAmB,gBAAgB;GACpD,cAAc,MAAM,SAAS,gBAAgB;GAC7C,UAAU,CACR;IACE,SAAS;IACT,MAAM,IAAI,MAAM;IACjB,CACF;GACD,WAAW,EAAE;GACb,aAAa,CACX,0DACD;GACD,WAAW,CAAC,IAAI,MAAM,KAAK;GAC3B,SAAS;GACT,eAAe,IAAI,MAAM;GAC1B;EAGH,MAAM,QAA2B;GAC/B,QAAQ,IAAI,MAAM;GAClB,cAAc,IAAI,MAAM,mBAAmB,gBAAgB;GAC3D,cAAc,IAAI,MAAM,gBAAgB;GACxC,UAAU,CACR;IACE,SAAS;IACT,MAAM,eAAe,MAAM,SAAS;IACrC,CACF;GACD,WAAW,CACT;IACE,cAAc,IAAI,MAAM,gBAAgB;IACxC,YAAY;IACZ,UAAU;IACV,OAAO;IACP,SAAS;IACV,CACF;GACD,aAAa,CAAC,yBAAyB;GACvC,WAAW,EAAE;GACd;EAED,MAAM,QAAQ,oBAAoB,IAAI,MAAM,cAAc,MAAM;AAChE,MAAI,CAAC,MAAM,GACT,QAAO;GACL,GAAG;GACH,UAAU,CACR;IAAE,SAAS;IAAuB,MAAM,MAAM,MAAM;IAAS,CAC9D;GACD,WAAW,MAAM;GACjB,SAAS;GACT,eAAe,MAAM,MAAM;GAC3B,WAAW,CAAC,GAAI,MAAM,aAAa,EAAE,EAAG,MAAM,MAAM,KAAK;GAC1D;EAGH,MAAM,QAAQ,iBAAiB,MAAM;AACrC,MAAI,CAAC,MAAM,GACT,QAAO;GACL,GAAG;GACH,UAAU,CAAC;IAAE,SAAS;IAAmB,MAAM,MAAM,MAAM;IAAS,CAAC;GACrE,WAAW,EAAE;GACb,SAAS;GACT,eAAe,MAAM,MAAM;GAC3B,WAAW,CAAC,GAAI,MAAM,aAAa,EAAE,EAAG,MAAM,MAAM,KAAK;GAC1D;AAGH,SAAO;;CAGT,eAAe,eAAe,OASC;AAC7B,SAAO,MAAM,OAAO;GAClB,UAAU,MAAM;GAChB,UAAU,oBAAoB,MAAM;GACrC,CAAC;;AAGJ,QAAO;EAAE;EAAQ;EAAgB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/locale-jurisdiction-gate.feature.d.ts
|
|
4
|
-
declare const LocaleJurisdictionGateFeature: FeatureModuleSpec;
|
|
4
|
+
declare const LocaleJurisdictionGateFeature: _contractspec_lib_contracts3.FeatureModuleSpec;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { LocaleJurisdictionGateFeature };
|
|
7
7
|
//# sourceMappingURL=locale-jurisdiction-gate.feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale-jurisdiction-gate.feature.d.ts","names":[],"sources":["../src/locale-jurisdiction-gate.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,+
|
|
1
|
+
{"version":3,"file":"locale-jurisdiction-gate.feature.d.ts","names":[],"sources":["../src/locale-jurisdiction-gate.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,+BA2BX,4BAAA,CA3BwC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/locale-jurisdiction-gate.feature.ts
|
|
2
|
-
const LocaleJurisdictionGateFeature = {
|
|
4
|
+
const LocaleJurisdictionGateFeature = defineFeature({
|
|
3
5
|
meta: {
|
|
4
6
|
key: "locale-jurisdiction-gate",
|
|
5
7
|
version: "1.0.0",
|
|
@@ -44,7 +46,7 @@ const LocaleJurisdictionGateFeature = {
|
|
|
44
46
|
key: "knowledge",
|
|
45
47
|
version: "1.0.0"
|
|
46
48
|
}] }
|
|
47
|
-
};
|
|
49
|
+
});
|
|
48
50
|
|
|
49
51
|
//#endregion
|
|
50
52
|
export { LocaleJurisdictionGateFeature };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale-jurisdiction-gate.feature.js","names":[
|
|
1
|
+
{"version":3,"file":"locale-jurisdiction-gate.feature.js","names":[],"sources":["../src/locale-jurisdiction-gate.feature.ts"],"sourcesContent":["import { defineFeature } from '@contractspec/lib.contracts';\n\nexport const LocaleJurisdictionGateFeature = defineFeature({\n meta: {\n key: 'locale-jurisdiction-gate',\n version: '1.0.0',\n title: 'Locale + Jurisdiction Gate',\n description:\n 'Fail-closed gating for assistant calls requiring locale/jurisdiction/snapshot/scope and citations.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['assistant', 'policy', 'locale', 'jurisdiction', 'knowledge'],\n stability: 'experimental',\n },\n operations: [\n { key: 'assistant.answer', version: '1.0.0' },\n { key: 'assistant.explainConcept', version: '1.0.0' },\n ],\n events: [\n { key: 'assistant.answer.requested', version: '1.0.0' },\n { key: 'assistant.answer.blocked', version: '1.0.0' },\n { key: 'assistant.answer.delivered', version: '1.0.0' },\n ],\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n capabilities: {\n requires: [{ key: 'knowledge', version: '1.0.0' }],\n },\n});\n"],"mappings":";;;AAEA,MAAa,gCAAgC,cAAc;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAU;GAAU;GAAgB;GAAY;EACpE,WAAW;EACZ;CACD,YAAY,CACV;EAAE,KAAK;EAAoB,SAAS;EAAS,EAC7C;EAAE,KAAK;EAA4B,SAAS;EAAS,CACtD;CACD,QAAQ;EACN;GAAE,KAAK;GAA8B,SAAS;GAAS;EACvD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAA8B,SAAS;GAAS;EACxD;CACD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CACxB,cAAc,EACZ,UAAU,CAAC;EAAE,KAAK;EAAa,SAAS;EAAS,CAAC,EACnD;CACF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
|
|
2
2
|
import * as _contractspec_lib_schema63 from "@contractspec/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/operations/assistant.d.ts
|
|
5
|
-
declare const AssistantAnswerContract:
|
|
5
|
+
declare const AssistantAnswerContract: _contractspec_lib_contracts4.OperationSpec<_contractspec_lib_schema63.SchemaModel<{
|
|
6
6
|
envelope: {
|
|
7
7
|
type: _contractspec_lib_schema63.SchemaModel<{
|
|
8
8
|
traceId: {
|
|
@@ -121,7 +121,7 @@ declare const AssistantAnswerContract: _contractspec_lib_contracts2.OperationSpe
|
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
}>, undefined>;
|
|
124
|
-
declare const AssistantExplainConceptContract:
|
|
124
|
+
declare const AssistantExplainConceptContract: _contractspec_lib_contracts4.OperationSpec<_contractspec_lib_schema63.SchemaModel<{
|
|
125
125
|
envelope: {
|
|
126
126
|
type: _contractspec_lib_schema63.SchemaModel<{
|
|
127
127
|
traceId: {
|
package/dist/policy/guard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.js","names":[
|
|
1
|
+
{"version":3,"file":"guard.js","names":[],"sources":["../../src/policy/guard.ts"],"sourcesContent":["import type { GateError, GateResult } from './types';\n\ninterface EnvelopeLike {\n locale?: string;\n kbSnapshotId?: string;\n allowedScope?: 'education_only' | 'generic_info' | 'escalation_required';\n regulatoryContext?: { jurisdiction?: string };\n}\n\ninterface AnswerLike {\n citations?: unknown[];\n sections?: { heading: string; body: string }[];\n refused?: boolean;\n refusalReason?: string;\n allowedScope?: 'education_only' | 'generic_info' | 'escalation_required';\n}\n\nconst SUPPORTED_LOCALES = new Set<string>(['en-US', 'en-GB', 'fr-FR']);\n\nfunction err(code: GateError['code'], message: string): GateError {\n return { code, message };\n}\n\nexport function validateEnvelope(\n envelope: EnvelopeLike\n): GateResult<Required<EnvelopeLike>> {\n if (!envelope.locale || !SUPPORTED_LOCALES.has(envelope.locale)) {\n return {\n ok: false,\n error: err('LOCALE_REQUIRED', 'locale is required and must be supported'),\n };\n }\n if (!envelope.regulatoryContext?.jurisdiction) {\n return {\n ok: false,\n error: err('JURISDICTION_REQUIRED', 'jurisdiction is required'),\n };\n }\n if (!envelope.kbSnapshotId) {\n return {\n ok: false,\n error: err('KB_SNAPSHOT_REQUIRED', 'kbSnapshotId is required'),\n };\n }\n if (!envelope.allowedScope) {\n return {\n ok: false,\n error: err('SCOPE_VIOLATION', 'allowedScope is required'),\n };\n }\n return { ok: true, value: envelope as Required<EnvelopeLike> };\n}\n\nexport function enforceCitations(answer: AnswerLike): GateResult<AnswerLike> {\n const citations = answer.citations ?? [];\n if (!Array.isArray(citations) || citations.length === 0) {\n return {\n ok: false,\n error: err(\n 'CITATIONS_REQUIRED',\n 'answers must include at least one citation'\n ),\n };\n }\n return { ok: true, value: answer };\n}\n\nconst EDUCATION_ONLY_FORBIDDEN_PATTERNS: RegExp[] = [\n /\\b(buy|sell)\\b/i,\n /\\b(should\\s+buy|should\\s+sell)\\b/i,\n /\\b(guarantee(d)?|promise(d)?)\\b/i,\n];\n\nexport function enforceAllowedScope(\n allowedScope: EnvelopeLike['allowedScope'],\n answer: AnswerLike\n): GateResult<AnswerLike> {\n if (!allowedScope) {\n return {\n ok: false,\n error: err('SCOPE_VIOLATION', 'allowedScope is required'),\n };\n }\n if (allowedScope !== 'education_only') {\n return { ok: true, value: answer };\n }\n\n const bodies = (answer.sections ?? []).map((s) => s.body).join('\\n');\n const violations = EDUCATION_ONLY_FORBIDDEN_PATTERNS.some((re) =>\n re.test(bodies)\n );\n if (violations) {\n return {\n ok: false,\n error: err(\n 'SCOPE_VIOLATION',\n 'answer violates education_only scope (contains actionable or promotional language)'\n ),\n };\n }\n return { ok: true, value: answer };\n}\n"],"mappings":";AAiBA,MAAM,oBAAoB,IAAI,IAAY;CAAC;CAAS;CAAS;CAAQ,CAAC;AAEtE,SAAS,IAAI,MAAyB,SAA4B;AAChE,QAAO;EAAE;EAAM;EAAS;;AAG1B,SAAgB,iBACd,UACoC;AACpC,KAAI,CAAC,SAAS,UAAU,CAAC,kBAAkB,IAAI,SAAS,OAAO,CAC7D,QAAO;EACL,IAAI;EACJ,OAAO,IAAI,mBAAmB,2CAA2C;EAC1E;AAEH,KAAI,CAAC,SAAS,mBAAmB,aAC/B,QAAO;EACL,IAAI;EACJ,OAAO,IAAI,yBAAyB,2BAA2B;EAChE;AAEH,KAAI,CAAC,SAAS,aACZ,QAAO;EACL,IAAI;EACJ,OAAO,IAAI,wBAAwB,2BAA2B;EAC/D;AAEH,KAAI,CAAC,SAAS,aACZ,QAAO;EACL,IAAI;EACJ,OAAO,IAAI,mBAAmB,2BAA2B;EAC1D;AAEH,QAAO;EAAE,IAAI;EAAM,OAAO;EAAoC;;AAGhE,SAAgB,iBAAiB,QAA4C;CAC3E,MAAM,YAAY,OAAO,aAAa,EAAE;AACxC,KAAI,CAAC,MAAM,QAAQ,UAAU,IAAI,UAAU,WAAW,EACpD,QAAO;EACL,IAAI;EACJ,OAAO,IACL,sBACA,6CACD;EACF;AAEH,QAAO;EAAE,IAAI;EAAM,OAAO;EAAQ;;AAGpC,MAAM,oCAA8C;CAClD;CACA;CACA;CACD;AAED,SAAgB,oBACd,cACA,QACwB;AACxB,KAAI,CAAC,aACH,QAAO;EACL,IAAI;EACJ,OAAO,IAAI,mBAAmB,2BAA2B;EAC1D;AAEH,KAAI,iBAAiB,iBACnB,QAAO;EAAE,IAAI;EAAM,OAAO;EAAQ;CAGpC,MAAM,UAAU,OAAO,YAAY,EAAE,EAAE,KAAK,MAAM,EAAE,KAAK,CAAC,KAAK,KAAK;AAIpE,KAHmB,kCAAkC,MAAM,OACzD,GAAG,KAAK,OAAO,CAChB,CAEC,QAAO;EACL,IAAI;EACJ,OAAO,IACL,mBACA,qFACD;EACF;AAEH,QAAO;EAAE,IAAI;EAAM,OAAO;EAAQ"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.locale-jurisdiction-gate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
6
|
"types": "./dist/index.d.ts",
|
|
9
7
|
"exports": {
|
|
10
8
|
".": "./dist/index.js",
|
|
@@ -38,13 +36,13 @@
|
|
|
38
36
|
"test": "bun test"
|
|
39
37
|
},
|
|
40
38
|
"dependencies": {
|
|
41
|
-
"@contractspec/lib.contracts": "1.
|
|
42
|
-
"@contractspec/lib.schema": "1.
|
|
39
|
+
"@contractspec/lib.contracts": "1.48.0",
|
|
40
|
+
"@contractspec/lib.schema": "1.48.0"
|
|
43
41
|
},
|
|
44
42
|
"devDependencies": {
|
|
45
|
-
"@contractspec/tool.tsdown": "1.
|
|
46
|
-
"@contractspec/tool.typescript": "1.
|
|
47
|
-
"tsdown": "^0.
|
|
43
|
+
"@contractspec/tool.tsdown": "1.48.0",
|
|
44
|
+
"@contractspec/tool.typescript": "1.48.0",
|
|
45
|
+
"tsdown": "^0.19.0",
|
|
48
46
|
"typescript": "^5.9.3"
|
|
49
47
|
},
|
|
50
48
|
"publishConfig": {
|
package/src/example.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineExample } from '@contractspec/lib.contracts';
|
|
2
2
|
|
|
3
|
-
const example
|
|
3
|
+
const example = defineExample({
|
|
4
4
|
meta: {
|
|
5
5
|
key: 'locale-jurisdiction-gate',
|
|
6
6
|
version: '1.0.0',
|
|
@@ -29,6 +29,6 @@ const example: ExampleSpec = {
|
|
|
29
29
|
studio: { enabled: true, installable: true },
|
|
30
30
|
mcp: { enabled: true },
|
|
31
31
|
},
|
|
32
|
-
};
|
|
32
|
+
});
|
|
33
33
|
|
|
34
34
|
export default example;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineFeature } from '@contractspec/lib.contracts';
|
|
2
2
|
|
|
3
|
-
export const LocaleJurisdictionGateFeature
|
|
3
|
+
export const LocaleJurisdictionGateFeature = defineFeature({
|
|
4
4
|
meta: {
|
|
5
5
|
key: 'locale-jurisdiction-gate',
|
|
6
6
|
version: '1.0.0',
|
|
@@ -27,4 +27,4 @@ export const LocaleJurisdictionGateFeature: FeatureModuleSpec = {
|
|
|
27
27
|
capabilities: {
|
|
28
28
|
requires: [{ key: 'knowledge', version: '1.0.0' }],
|
|
29
29
|
},
|
|
30
|
-
};
|
|
30
|
+
});
|