@contractspec/example.policy-safe-knowledge-assistant 1.44.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 +35 -0
- package/.turbo/turbo-build.log +36 -0
- package/CHANGELOG.md +365 -0
- package/IMPLEMENTATION_SKETCH.md +40 -0
- package/LICENSE +21 -0
- package/README.md +23 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/policy-safe-knowledge-assistant.docblock.d.ts +1 -0
- package/dist/docs/policy-safe-knowledge-assistant.docblock.js +35 -0
- package/dist/docs/policy-safe-knowledge-assistant.docblock.js.map +1 -0
- package/dist/example.d.ts +35 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +47 -0
- package/dist/example.js.map +1 -0
- package/dist/feature.d.ts +7 -0
- package/dist/feature.d.ts.map +1 -0
- package/dist/feature.js +148 -0
- package/dist/feature.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/orchestrator/buildAnswer.d.ts +53 -0
- package/dist/orchestrator/buildAnswer.d.ts.map +1 -0
- package/dist/orchestrator/buildAnswer.js +77 -0
- package/dist/orchestrator/buildAnswer.js.map +1 -0
- package/dist/seed/fixtures.d.ts +35 -0
- package/dist/seed/fixtures.d.ts.map +1 -0
- package/dist/seed/fixtures.js +34 -0
- package/dist/seed/fixtures.js.map +1 -0
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +3 -0
- package/package.json +77 -0
- package/src/docs/index.ts +1 -0
- package/src/docs/policy-safe-knowledge-assistant.docblock.ts +28 -0
- package/src/example.ts +29 -0
- package/src/feature.ts +58 -0
- package/src/index.ts +9 -0
- package/src/integration.test.ts +108 -0
- package/src/orchestrator/buildAnswer.ts +122 -0
- package/src/seed/fixtures.ts +31 -0
- package/src/seed/index.ts +1 -0
- package/tsconfig.json +19 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +17 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
$ tsdown
|
|
2
|
+
[34mℹ[39m tsdown [2mv0.18.3[22m powered by rolldown [2mv1.0.0-beta.57[22m
|
|
3
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/policy-safe-knowledge-assistant/tsdown.config.js[24m
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/feature.ts, src/index.ts, src/docs/index.ts, src/docs/policy-safe-knowledge-assistant.docblock.ts, src/orchestrator/buildAnswer.ts, src/seed/fixtures.ts, src/seed/index.ts[39m
|
|
5
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
6
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
7
|
+
[34mℹ[39m Build start
|
|
8
|
+
[34mℹ[39m Cleaning 28 files
|
|
9
|
+
[34mℹ[39m [2mdist/[22m[1morchestrator/buildAnswer.js[22m [2m2.47 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mfeature.js[22m [2m2.23 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/policy-safe-knowledge-assistant.docblock.js[22m [2m1.88 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.02 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mseed/fixtures.js[22m [2m0.80 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.38 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mseed/index.js[22m [2m0.07 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.06 kB[22m [2m│ gzip: 0.08 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22morchestrator/buildAnswer.js.map [2m5.08 kB[22m [2m│ gzip: 1.68 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mfeature.js.map [2m3.53 kB[22m [2m│ gzip: 1.05 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mdocs/policy-safe-knowledge-assistant.docblock.js.map [2m2.38 kB[22m [2m│ gzip: 1.08 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.41 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22mseed/fixtures.js.map [2m1.29 kB[22m [2m│ gzip: 0.55 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22morchestrator/buildAnswer.d.ts.map [2m0.39 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22mseed/fixtures.d.ts.map [2m0.20 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22mfeature.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1morchestrator/buildAnswer.d.ts[22m[39m [2m1.31 kB[22m [2m│ gzip: 0.57 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.24 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22m[32m[1mseed/fixtures.d.ts[22m[39m [2m1.03 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.40 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1mfeature.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1mseed/index.d.ts[22m[39m [2m0.07 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/policy-safe-knowledge-assistant.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
34
|
+
[34mℹ[39m 25 files, total: 27.79 kB
|
|
35
|
+
[32m✔[39m Build complete in [32m11338ms[39m
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
$ bun build:types && bun build:bundle
|
|
2
|
+
$ tsc --noEmit
|
|
3
|
+
$ tsdown
|
|
4
|
+
[34mℹ[39m tsdown [2mv0.18.3[22m powered by rolldown [2mv1.0.0-beta.57[22m
|
|
5
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/policy-safe-knowledge-assistant/tsdown.config.js[24m
|
|
6
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/feature.ts, src/index.ts, src/docs/index.ts, src/docs/policy-safe-knowledge-assistant.docblock.ts, src/orchestrator/buildAnswer.ts, src/seed/fixtures.ts, src/seed/index.ts[39m
|
|
7
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
8
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
|
+
[34mℹ[39m Build start
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1morchestrator/buildAnswer.js[22m [2m2.47 kB[22m [2m│ gzip: 0.93 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mfeature.js[22m [2m2.23 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/policy-safe-knowledge-assistant.docblock.js[22m [2m1.88 kB[22m [2m│ gzip: 0.90 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.02 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mseed/fixtures.js[22m [2m0.80 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.38 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mseed/index.js[22m [2m0.07 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.06 kB[22m [2m│ gzip: 0.08 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22morchestrator/buildAnswer.js.map [2m5.08 kB[22m [2m│ gzip: 1.68 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mfeature.js.map [2m3.53 kB[22m [2m│ gzip: 1.05 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22mdocs/policy-safe-knowledge-assistant.docblock.js.map [2m2.38 kB[22m [2m│ gzip: 1.08 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.41 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22mseed/fixtures.js.map [2m1.29 kB[22m [2m│ gzip: 0.55 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22morchestrator/buildAnswer.d.ts.map [2m0.39 kB[22m [2m│ gzip: 0.25 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22mseed/fixtures.d.ts.map [2m0.20 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22mfeature.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1morchestrator/buildAnswer.d.ts[22m[39m [2m1.31 kB[22m [2m│ gzip: 0.57 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.24 kB[22m [2m│ gzip: 0.51 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1mseed/fixtures.d.ts[22m[39m [2m1.03 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.40 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1mfeature.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mseed/index.d.ts[22m[39m [2m0.07 kB[22m [2m│ gzip: 0.07 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
34
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/policy-safe-knowledge-assistant.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
35
|
+
[34mℹ[39m 25 files, total: 27.79 kB
|
|
36
|
+
[32m✔[39m Build complete in [32m18614ms[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
# @contractspec/example.policy-safe-knowledge-assistant
|
|
2
|
+
|
|
3
|
+
## 1.44.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5f3a868: chore: isolate branding to contractspec.io
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [5f3a868]
|
|
12
|
+
- @contractspec/example.locale-jurisdiction-gate@1.44.0
|
|
13
|
+
- @contractspec/example.versioned-knowledge-base@1.44.0
|
|
14
|
+
- @contractspec/example.kb-update-pipeline@1.44.0
|
|
15
|
+
- @contractspec/example.learning-patterns@1.44.0
|
|
16
|
+
- @contractspec/module.learning-journey@1.44.0
|
|
17
|
+
- @contractspec/module.notifications@1.44.0
|
|
18
|
+
- @contractspec/module.audit-trail@1.44.0
|
|
19
|
+
- @contractspec/lib.feature-flags@1.44.0
|
|
20
|
+
- @contractspec/lib.identity-rbac@1.44.0
|
|
21
|
+
- @contractspec/lib.contracts@1.44.0
|
|
22
|
+
- @contractspec/lib.metering@1.44.0
|
|
23
|
+
- @contractspec/lib.schema@1.44.0
|
|
24
|
+
- @contractspec/lib.files@1.44.0
|
|
25
|
+
- @contractspec/lib.jobs@1.44.0
|
|
26
|
+
|
|
27
|
+
## 1.43.4
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 9216062: fix: cross-platform compatibility
|
|
32
|
+
- Updated dependencies [9216062]
|
|
33
|
+
- @contractspec/example.locale-jurisdiction-gate@1.43.4
|
|
34
|
+
- @contractspec/example.versioned-knowledge-base@1.43.4
|
|
35
|
+
- @contractspec/example.kb-update-pipeline@1.43.4
|
|
36
|
+
- @contractspec/example.learning-patterns@1.43.3
|
|
37
|
+
- @contractspec/module.learning-journey@1.43.4
|
|
38
|
+
- @contractspec/module.notifications@1.43.4
|
|
39
|
+
- @contractspec/module.audit-trail@1.43.4
|
|
40
|
+
- @contractspec/lib.feature-flags@1.43.4
|
|
41
|
+
- @contractspec/lib.identity-rbac@1.43.4
|
|
42
|
+
- @contractspec/lib.contracts@1.43.4
|
|
43
|
+
- @contractspec/lib.metering@1.43.4
|
|
44
|
+
- @contractspec/lib.schema@1.43.3
|
|
45
|
+
- @contractspec/lib.files@1.43.4
|
|
46
|
+
- @contractspec/lib.jobs@1.43.4
|
|
47
|
+
|
|
48
|
+
## 1.43.3
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- 24d9759: improve documentation
|
|
53
|
+
- Updated dependencies [24d9759]
|
|
54
|
+
- @contractspec/example.locale-jurisdiction-gate@1.43.3
|
|
55
|
+
- @contractspec/example.versioned-knowledge-base@1.43.3
|
|
56
|
+
- @contractspec/example.kb-update-pipeline@1.43.3
|
|
57
|
+
- @contractspec/example.learning-patterns@1.43.2
|
|
58
|
+
- @contractspec/module.learning-journey@1.43.3
|
|
59
|
+
- @contractspec/module.notifications@1.43.3
|
|
60
|
+
- @contractspec/module.audit-trail@1.43.3
|
|
61
|
+
- @contractspec/lib.feature-flags@1.43.3
|
|
62
|
+
- @contractspec/lib.identity-rbac@1.43.3
|
|
63
|
+
- @contractspec/lib.contracts@1.43.3
|
|
64
|
+
- @contractspec/lib.metering@1.43.3
|
|
65
|
+
- @contractspec/lib.schema@1.43.2
|
|
66
|
+
- @contractspec/lib.files@1.43.3
|
|
67
|
+
- @contractspec/lib.jobs@1.43.3
|
|
68
|
+
|
|
69
|
+
## 1.43.2
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- e147271: fix: improve stability
|
|
74
|
+
- Updated dependencies [e147271]
|
|
75
|
+
- @contractspec/example.locale-jurisdiction-gate@1.43.2
|
|
76
|
+
- @contractspec/example.versioned-knowledge-base@1.43.2
|
|
77
|
+
- @contractspec/example.kb-update-pipeline@1.43.2
|
|
78
|
+
- @contractspec/example.learning-patterns@1.43.2
|
|
79
|
+
- @contractspec/module.learning-journey@1.43.2
|
|
80
|
+
- @contractspec/module.notifications@1.43.2
|
|
81
|
+
- @contractspec/module.audit-trail@1.43.2
|
|
82
|
+
- @contractspec/lib.feature-flags@1.43.2
|
|
83
|
+
- @contractspec/lib.identity-rbac@1.43.2
|
|
84
|
+
- @contractspec/lib.contracts@1.43.2
|
|
85
|
+
- @contractspec/lib.metering@1.43.2
|
|
86
|
+
- @contractspec/lib.files@1.43.2
|
|
87
|
+
- @contractspec/lib.jobs@1.43.2
|
|
88
|
+
- @contractspec/lib.schema@1.43.1
|
|
89
|
+
|
|
90
|
+
## 1.43.1
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- Updated dependencies [f28fdad]
|
|
95
|
+
- @contractspec/lib.contracts@1.43.1
|
|
96
|
+
- @contractspec/example.kb-update-pipeline@1.43.1
|
|
97
|
+
- @contractspec/example.learning-patterns@1.43.1
|
|
98
|
+
- @contractspec/example.locale-jurisdiction-gate@1.43.1
|
|
99
|
+
- @contractspec/example.versioned-knowledge-base@1.43.1
|
|
100
|
+
- @contractspec/lib.feature-flags@1.43.1
|
|
101
|
+
- @contractspec/lib.files@1.43.1
|
|
102
|
+
- @contractspec/lib.identity-rbac@1.43.1
|
|
103
|
+
- @contractspec/lib.jobs@1.43.1
|
|
104
|
+
- @contractspec/lib.metering@1.43.1
|
|
105
|
+
- @contractspec/module.audit-trail@1.43.1
|
|
106
|
+
- @contractspec/module.learning-journey@1.43.1
|
|
107
|
+
- @contractspec/module.notifications@1.43.1
|
|
108
|
+
|
|
109
|
+
## 1.43.0
|
|
110
|
+
|
|
111
|
+
### Minor Changes
|
|
112
|
+
|
|
113
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- Updated dependencies [042d072]
|
|
118
|
+
- @contractspec/example.locale-jurisdiction-gate@1.43.0
|
|
119
|
+
- @contractspec/example.versioned-knowledge-base@1.43.0
|
|
120
|
+
- @contractspec/example.kb-update-pipeline@1.43.0
|
|
121
|
+
- @contractspec/example.learning-patterns@1.43.0
|
|
122
|
+
- @contractspec/module.learning-journey@1.43.0
|
|
123
|
+
- @contractspec/module.notifications@1.43.0
|
|
124
|
+
- @contractspec/module.audit-trail@1.43.0
|
|
125
|
+
- @contractspec/lib.feature-flags@1.43.0
|
|
126
|
+
- @contractspec/lib.identity-rbac@1.43.0
|
|
127
|
+
- @contractspec/lib.contracts@1.43.0
|
|
128
|
+
- @contractspec/lib.metering@1.43.0
|
|
129
|
+
- @contractspec/lib.schema@1.43.0
|
|
130
|
+
- @contractspec/lib.files@1.43.0
|
|
131
|
+
- @contractspec/lib.jobs@1.43.0
|
|
132
|
+
|
|
133
|
+
## 1.42.10
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- 1e6a0f1: fix: mcp server
|
|
138
|
+
- Updated dependencies [1e6a0f1]
|
|
139
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.10
|
|
140
|
+
- @contractspec/example.versioned-knowledge-base@1.42.10
|
|
141
|
+
- @contractspec/example.kb-update-pipeline@1.42.10
|
|
142
|
+
- @contractspec/example.learning-patterns@1.42.9
|
|
143
|
+
- @contractspec/module.learning-journey@1.42.10
|
|
144
|
+
- @contractspec/module.notifications@1.42.10
|
|
145
|
+
- @contractspec/module.audit-trail@1.42.10
|
|
146
|
+
- @contractspec/lib.feature-flags@1.42.10
|
|
147
|
+
- @contractspec/lib.identity-rbac@1.42.10
|
|
148
|
+
- @contractspec/lib.contracts@1.42.10
|
|
149
|
+
- @contractspec/lib.metering@1.42.10
|
|
150
|
+
- @contractspec/lib.schema@1.42.10
|
|
151
|
+
- @contractspec/lib.files@1.42.10
|
|
152
|
+
- @contractspec/lib.jobs@1.42.10
|
|
153
|
+
|
|
154
|
+
## 1.42.9
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- 9281db7: fix ModelRegistry
|
|
159
|
+
- Updated dependencies [9281db7]
|
|
160
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.9
|
|
161
|
+
- @contractspec/example.versioned-knowledge-base@1.42.9
|
|
162
|
+
- @contractspec/example.kb-update-pipeline@1.42.9
|
|
163
|
+
- @contractspec/example.learning-patterns@1.42.8
|
|
164
|
+
- @contractspec/module.learning-journey@1.42.9
|
|
165
|
+
- @contractspec/module.notifications@1.42.9
|
|
166
|
+
- @contractspec/module.audit-trail@1.42.9
|
|
167
|
+
- @contractspec/lib.feature-flags@1.42.9
|
|
168
|
+
- @contractspec/lib.identity-rbac@1.42.9
|
|
169
|
+
- @contractspec/lib.contracts@1.42.9
|
|
170
|
+
- @contractspec/lib.metering@1.42.9
|
|
171
|
+
- @contractspec/lib.schema@1.42.9
|
|
172
|
+
- @contractspec/lib.files@1.42.9
|
|
173
|
+
- @contractspec/lib.jobs@1.42.9
|
|
174
|
+
|
|
175
|
+
## 1.42.8
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- e07b5ac: fix
|
|
180
|
+
- Updated dependencies [e07b5ac]
|
|
181
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.8
|
|
182
|
+
- @contractspec/example.versioned-knowledge-base@1.42.8
|
|
183
|
+
- @contractspec/example.kb-update-pipeline@1.42.8
|
|
184
|
+
- @contractspec/example.learning-patterns@1.42.7
|
|
185
|
+
- @contractspec/module.learning-journey@1.42.8
|
|
186
|
+
- @contractspec/module.notifications@1.42.8
|
|
187
|
+
- @contractspec/module.audit-trail@1.42.8
|
|
188
|
+
- @contractspec/lib.feature-flags@1.42.8
|
|
189
|
+
- @contractspec/lib.identity-rbac@1.42.8
|
|
190
|
+
- @contractspec/lib.contracts@1.42.8
|
|
191
|
+
- @contractspec/lib.metering@1.42.8
|
|
192
|
+
- @contractspec/lib.schema@1.42.8
|
|
193
|
+
- @contractspec/lib.files@1.42.8
|
|
194
|
+
- @contractspec/lib.jobs@1.42.8
|
|
195
|
+
|
|
196
|
+
## 1.42.7
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- e9b575d: fix release
|
|
201
|
+
- Updated dependencies [e9b575d]
|
|
202
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.7
|
|
203
|
+
- @contractspec/example.versioned-knowledge-base@1.42.7
|
|
204
|
+
- @contractspec/example.kb-update-pipeline@1.42.7
|
|
205
|
+
- @contractspec/example.learning-patterns@1.42.6
|
|
206
|
+
- @contractspec/module.learning-journey@1.42.7
|
|
207
|
+
- @contractspec/module.notifications@1.42.7
|
|
208
|
+
- @contractspec/module.audit-trail@1.42.7
|
|
209
|
+
- @contractspec/lib.feature-flags@1.42.7
|
|
210
|
+
- @contractspec/lib.identity-rbac@1.42.7
|
|
211
|
+
- @contractspec/lib.contracts@1.42.7
|
|
212
|
+
- @contractspec/lib.metering@1.42.7
|
|
213
|
+
- @contractspec/lib.schema@1.42.7
|
|
214
|
+
- @contractspec/lib.files@1.42.7
|
|
215
|
+
- @contractspec/lib.jobs@1.42.7
|
|
216
|
+
|
|
217
|
+
## 1.42.6
|
|
218
|
+
|
|
219
|
+
### Patch Changes
|
|
220
|
+
|
|
221
|
+
- 1500242: fix tooling
|
|
222
|
+
- Updated dependencies [1500242]
|
|
223
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.6
|
|
224
|
+
- @contractspec/example.versioned-knowledge-base@1.42.6
|
|
225
|
+
- @contractspec/example.kb-update-pipeline@1.42.6
|
|
226
|
+
- @contractspec/example.learning-patterns@1.42.5
|
|
227
|
+
- @contractspec/module.learning-journey@1.42.6
|
|
228
|
+
- @contractspec/module.notifications@1.42.6
|
|
229
|
+
- @contractspec/module.audit-trail@1.42.6
|
|
230
|
+
- @contractspec/lib.feature-flags@1.42.6
|
|
231
|
+
- @contractspec/lib.identity-rbac@1.42.6
|
|
232
|
+
- @contractspec/lib.contracts@1.42.6
|
|
233
|
+
- @contractspec/lib.metering@1.42.6
|
|
234
|
+
- @contractspec/lib.schema@1.42.6
|
|
235
|
+
- @contractspec/lib.files@1.42.6
|
|
236
|
+
- @contractspec/lib.jobs@1.42.6
|
|
237
|
+
|
|
238
|
+
## 1.42.5
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- 1299719: fix vscode
|
|
243
|
+
- Updated dependencies [1299719]
|
|
244
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.5
|
|
245
|
+
- @contractspec/example.versioned-knowledge-base@1.42.5
|
|
246
|
+
- @contractspec/example.kb-update-pipeline@1.42.5
|
|
247
|
+
- @contractspec/example.learning-patterns@1.42.4
|
|
248
|
+
- @contractspec/module.learning-journey@1.42.5
|
|
249
|
+
- @contractspec/module.notifications@1.42.5
|
|
250
|
+
- @contractspec/module.audit-trail@1.42.5
|
|
251
|
+
- @contractspec/lib.feature-flags@1.42.5
|
|
252
|
+
- @contractspec/lib.identity-rbac@1.42.5
|
|
253
|
+
- @contractspec/lib.contracts@1.42.5
|
|
254
|
+
- @contractspec/lib.metering@1.42.5
|
|
255
|
+
- @contractspec/lib.schema@1.42.5
|
|
256
|
+
- @contractspec/lib.files@1.42.5
|
|
257
|
+
- @contractspec/lib.jobs@1.42.5
|
|
258
|
+
|
|
259
|
+
## 1.42.4
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- ac28b99: fix: generate from openapi
|
|
264
|
+
- Updated dependencies [ac28b99]
|
|
265
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.4
|
|
266
|
+
- @contractspec/example.versioned-knowledge-base@1.42.4
|
|
267
|
+
- @contractspec/example.kb-update-pipeline@1.42.4
|
|
268
|
+
- @contractspec/example.learning-patterns@1.42.3
|
|
269
|
+
- @contractspec/module.learning-journey@1.42.4
|
|
270
|
+
- @contractspec/module.notifications@1.42.4
|
|
271
|
+
- @contractspec/module.audit-trail@1.42.4
|
|
272
|
+
- @contractspec/lib.feature-flags@1.42.4
|
|
273
|
+
- @contractspec/lib.identity-rbac@1.42.4
|
|
274
|
+
- @contractspec/lib.contracts@1.42.4
|
|
275
|
+
- @contractspec/lib.metering@1.42.4
|
|
276
|
+
- @contractspec/lib.schema@1.42.4
|
|
277
|
+
- @contractspec/lib.files@1.42.4
|
|
278
|
+
- @contractspec/lib.jobs@1.42.4
|
|
279
|
+
|
|
280
|
+
## 1.42.3
|
|
281
|
+
|
|
282
|
+
### Patch Changes
|
|
283
|
+
|
|
284
|
+
- 3f5d015: fix(tooling): cicd
|
|
285
|
+
- Updated dependencies [3f5d015]
|
|
286
|
+
- @contractspec/example.kb-update-pipeline@1.42.3
|
|
287
|
+
- @contractspec/example.learning-patterns@1.42.2
|
|
288
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.3
|
|
289
|
+
- @contractspec/example.versioned-knowledge-base@1.42.3
|
|
290
|
+
- @contractspec/lib.contracts@1.42.3
|
|
291
|
+
- @contractspec/lib.feature-flags@1.42.3
|
|
292
|
+
- @contractspec/lib.files@1.42.3
|
|
293
|
+
- @contractspec/lib.identity-rbac@1.42.3
|
|
294
|
+
- @contractspec/lib.jobs@1.42.3
|
|
295
|
+
- @contractspec/lib.metering@1.42.3
|
|
296
|
+
- @contractspec/lib.schema@1.42.3
|
|
297
|
+
- @contractspec/module.audit-trail@1.42.3
|
|
298
|
+
- @contractspec/module.learning-journey@1.42.3
|
|
299
|
+
- @contractspec/module.notifications@1.42.3
|
|
300
|
+
|
|
301
|
+
## 1.42.2
|
|
302
|
+
|
|
303
|
+
### Patch Changes
|
|
304
|
+
|
|
305
|
+
- 1f9ac4c: fix
|
|
306
|
+
- Updated dependencies [1f9ac4c]
|
|
307
|
+
- @contractspec/example.kb-update-pipeline@1.42.2
|
|
308
|
+
- @contractspec/example.learning-patterns@1.42.2
|
|
309
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.2
|
|
310
|
+
- @contractspec/example.versioned-knowledge-base@1.42.2
|
|
311
|
+
- @contractspec/lib.contracts@1.42.2
|
|
312
|
+
- @contractspec/lib.feature-flags@1.42.2
|
|
313
|
+
- @contractspec/lib.files@1.42.2
|
|
314
|
+
- @contractspec/lib.identity-rbac@1.42.2
|
|
315
|
+
- @contractspec/lib.jobs@1.42.2
|
|
316
|
+
- @contractspec/lib.metering@1.42.2
|
|
317
|
+
- @contractspec/lib.schema@1.42.2
|
|
318
|
+
- @contractspec/module.audit-trail@1.42.2
|
|
319
|
+
- @contractspec/module.learning-journey@1.42.2
|
|
320
|
+
- @contractspec/module.notifications@1.42.2
|
|
321
|
+
|
|
322
|
+
## 1.42.1
|
|
323
|
+
|
|
324
|
+
### Patch Changes
|
|
325
|
+
|
|
326
|
+
- f043995: Fix release
|
|
327
|
+
- Updated dependencies [f043995]
|
|
328
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.1
|
|
329
|
+
- @contractspec/example.versioned-knowledge-base@1.42.1
|
|
330
|
+
- @contractspec/example.kb-update-pipeline@1.42.1
|
|
331
|
+
- @contractspec/example.learning-patterns@1.42.1
|
|
332
|
+
- @contractspec/module.learning-journey@1.42.1
|
|
333
|
+
- @contractspec/module.notifications@1.42.1
|
|
334
|
+
- @contractspec/module.audit-trail@1.42.1
|
|
335
|
+
- @contractspec/lib.feature-flags@1.42.1
|
|
336
|
+
- @contractspec/lib.identity-rbac@1.42.1
|
|
337
|
+
- @contractspec/lib.contracts@1.42.1
|
|
338
|
+
- @contractspec/lib.metering@1.42.1
|
|
339
|
+
- @contractspec/lib.schema@1.42.1
|
|
340
|
+
- @contractspec/lib.files@1.42.1
|
|
341
|
+
- @contractspec/lib.jobs@1.42.1
|
|
342
|
+
|
|
343
|
+
## 1.42.0
|
|
344
|
+
|
|
345
|
+
### Minor Changes
|
|
346
|
+
|
|
347
|
+
- 8eefd9c: initial release
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- Updated dependencies [8eefd9c]
|
|
352
|
+
- @contractspec/example.kb-update-pipeline@1.42.0
|
|
353
|
+
- @contractspec/example.learning-patterns@1.42.0
|
|
354
|
+
- @contractspec/example.locale-jurisdiction-gate@1.42.0
|
|
355
|
+
- @contractspec/example.versioned-knowledge-base@1.42.0
|
|
356
|
+
- @contractspec/lib.contracts@1.42.0
|
|
357
|
+
- @contractspec/lib.feature-flags@1.42.0
|
|
358
|
+
- @contractspec/lib.files@1.42.0
|
|
359
|
+
- @contractspec/lib.identity-rbac@1.42.0
|
|
360
|
+
- @contractspec/lib.jobs@1.42.0
|
|
361
|
+
- @contractspec/lib.metering@1.42.0
|
|
362
|
+
- @contractspec/lib.schema@1.42.0
|
|
363
|
+
- @contractspec/module.audit-trail@1.42.0
|
|
364
|
+
- @contractspec/module.learning-journey@1.42.0
|
|
365
|
+
- @contractspec/module.notifications@1.42.0
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
## Implementation sketch — Policy-safe Knowledge Assistant (example)
|
|
2
|
+
|
|
3
|
+
This example package is **spec-first** and demonstrates how to compose:
|
|
4
|
+
|
|
5
|
+
- `@contractspec/example.locale-jurisdiction-gate`
|
|
6
|
+
- `@contractspec/example.versioned-knowledge-base`
|
|
7
|
+
- `@contractspec/example.kb-update-pipeline`
|
|
8
|
+
- `@contractspec/example.learning-patterns`
|
|
9
|
+
|
|
10
|
+
The runnable **sandbox UI/runtime** lives in `@contractspec/bundle.studio` (wired later).
|
|
11
|
+
|
|
12
|
+
### Package boundaries
|
|
13
|
+
|
|
14
|
+
- **Gate**: validates `locale`, `jurisdiction`, `kbSnapshotId`, `allowedScope`. Refuses if citations are missing or scope is violated.
|
|
15
|
+
- **Versioned KB**: stores immutable sources and versioned rules; publishes snapshots containing only approved rule versions.
|
|
16
|
+
- **Update Pipeline (HITL)**: detects changes, creates review tasks, gates approvals by risk level; publishing remains blocked until all proposed rule versions are approved.
|
|
17
|
+
- **Learning patterns**: drills/coach/quests as event-driven Learning Journey tracks.
|
|
18
|
+
|
|
19
|
+
### Key invariants (fail-closed)
|
|
20
|
+
|
|
21
|
+
- No assistant call without explicit `locale` and `jurisdiction`.
|
|
22
|
+
- No assistant answer without at least one citation referencing a **KB snapshot**.
|
|
23
|
+
- Snapshot publishing includes only approved rule versions and is jurisdiction-scoped.
|
|
24
|
+
- High-risk KB changes require expert approval.
|
|
25
|
+
|
|
26
|
+
### What is stubbed vs real
|
|
27
|
+
|
|
28
|
+
- **LLM**: stubbed/deterministic (no external calls). Answers are derived from KB search results.
|
|
29
|
+
- **Source fetching**: stubbed/offline fixtures (no web truth).
|
|
30
|
+
- **Storage**: in tests, in-memory stores; in sandbox, browser SQLite + IndexedDB.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Chaman Ventures, SASU
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# `@contractspec/example.policy-safe-knowledge-assistant`
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
All-in-one template example demonstrating a **policy-safe knowledge assistant** end-to-end:
|
|
7
|
+
|
|
8
|
+
- Locale + jurisdiction gating (fail-closed)
|
|
9
|
+
- Versioned curated KB + published snapshots
|
|
10
|
+
- Automated KB update pipeline with HITL review + traceability
|
|
11
|
+
- Learning hub (drills, ambient coach, quests)
|
|
12
|
+
- Cross-cutting modules wired: identity/RBAC, audit trail, notifications, jobs, feature flags, files, metering, learning journey
|
|
13
|
+
|
|
14
|
+
This package is the **spec-first** source of truth. The sandbox UI/runtime integration lives in `@contractspec/bundle.studio`.\n+\n+## Seed scenario\n+\n+See `src/seed/fixtures.ts` for deterministic offline fixtures (no web dependencies).\n+\n+## Running tests\n+\n+```bash\n+bun test\n+```\n+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./policy-safe-knowledge-assistant.docblock.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/policy-safe-knowledge-assistant.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.examples.policy-safe-knowledge-assistant.goal",
|
|
6
|
+
title: "Policy-safe Knowledge Assistant — Goal",
|
|
7
|
+
summary: "End-to-end example: versioned KB snapshots + locale/jurisdiction gating + HITL pipeline + learning hub.",
|
|
8
|
+
kind: "goal",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/examples/policy-safe-knowledge-assistant/goal",
|
|
11
|
+
tags: [
|
|
12
|
+
"assistant",
|
|
13
|
+
"knowledge",
|
|
14
|
+
"policy",
|
|
15
|
+
"hitl",
|
|
16
|
+
"learning"
|
|
17
|
+
],
|
|
18
|
+
body: `## What this template proves\n- Assistant answers are structured and must cite a KB snapshot (or refuse).\n- Locale + jurisdiction are mandatory inputs for every assistant call.\n- Automation proposes KB patches; humans verify; publishing stays blocked until approvals.\n- Learning hub demonstrates drills + coaching + quests without spam.\n\n## Offline-first\n- Seeded fixtures are deterministic and require no external services.\n- Optional non-authoritative fallback can be added behind a single feature flag (disabled by default).`
|
|
19
|
+
}, {
|
|
20
|
+
id: "docs.examples.policy-safe-knowledge-assistant.usage",
|
|
21
|
+
title: "Policy-safe Knowledge Assistant — Usage",
|
|
22
|
+
summary: "5–10 minute sandbox walkthrough for developers.",
|
|
23
|
+
kind: "usage",
|
|
24
|
+
visibility: "public",
|
|
25
|
+
route: "/docs/examples/policy-safe-knowledge-assistant/usage",
|
|
26
|
+
tags: [
|
|
27
|
+
"assistant",
|
|
28
|
+
"knowledge",
|
|
29
|
+
"usage"
|
|
30
|
+
],
|
|
31
|
+
body: `## Demo walkthrough (high level)\n1) Onboard: set locale + jurisdiction.\n2) Publish snapshot: ingest source -> propose rule -> approve -> publish.\n3) Ask assistant: must pass gate and cite snapshot.\n4) Simulate change: watcher -> review -> publish new snapshot.\n5) Learning hub: drills session, ambient tip, quest start + step completion.`
|
|
32
|
+
}]);
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//# sourceMappingURL=policy-safe-knowledge-assistant.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-safe-knowledge-assistant.docblock.js","names":[],"sources":["../../src/docs/policy-safe-knowledge-assistant.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst docBlocks: DocBlock[] = [\n {\n id: 'docs.examples.policy-safe-knowledge-assistant.goal',\n title: 'Policy-safe Knowledge Assistant — Goal',\n summary:\n 'End-to-end example: versioned KB snapshots + locale/jurisdiction gating + HITL pipeline + learning hub.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/policy-safe-knowledge-assistant/goal',\n tags: ['assistant', 'knowledge', 'policy', 'hitl', 'learning'],\n body: `## What this template proves\\n- Assistant answers are structured and must cite a KB snapshot (or refuse).\\n- Locale + jurisdiction are mandatory inputs for every assistant call.\\n- Automation proposes KB patches; humans verify; publishing stays blocked until approvals.\\n- Learning hub demonstrates drills + coaching + quests without spam.\\n\\n## Offline-first\\n- Seeded fixtures are deterministic and require no external services.\\n- Optional non-authoritative fallback can be added behind a single feature flag (disabled by default).`,\n },\n {\n id: 'docs.examples.policy-safe-knowledge-assistant.usage',\n title: 'Policy-safe Knowledge Assistant — Usage',\n summary: '5–10 minute sandbox walkthrough for developers.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/policy-safe-knowledge-assistant/usage',\n tags: ['assistant', 'knowledge', 'usage'],\n body: `## Demo walkthrough (high level)\\n1) Onboard: set locale + jurisdiction.\\n2) Publish snapshot: ingest source -> propose rule -> approve -> publish.\\n3) Ask assistant: must pass gate and cite snapshot.\\n4) Simulate change: watcher -> review -> publish new snapshot.\\n5) Learning hub: drills session, ambient tip, quest start + step completion.`,\n },\n];\n\nregisterDocBlocks(docBlocks);\n"],"mappings":";;;AA2BA,kBAxB8B,CAC5B;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAa;EAAU;EAAQ;EAAW;CAC9D,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAa;EAAQ;CACzC,MAAM;CACP,CACF,CAE2B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "policy-safe-knowledge-assistant";
|
|
4
|
+
readonly title: "Policy-safe Knowledge Assistant";
|
|
5
|
+
readonly summary: "All-in-one template: locale/jurisdiction gating + versioned KB snapshots + HITL update pipeline + learning hub.";
|
|
6
|
+
readonly tags: readonly ["assistant", "knowledge", "policy", "hitl", "learning"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly goalDocId: "docs.examples.policy-safe-knowledge-assistant.goal";
|
|
11
|
+
readonly usageDocId: "docs.examples.policy-safe-knowledge-assistant.usage";
|
|
12
|
+
};
|
|
13
|
+
readonly entrypoints: {
|
|
14
|
+
readonly packageName: "@contractspec/example.policy-safe-knowledge-assistant";
|
|
15
|
+
readonly feature: "./feature";
|
|
16
|
+
readonly docs: "./docs";
|
|
17
|
+
};
|
|
18
|
+
readonly surfaces: {
|
|
19
|
+
readonly templates: true;
|
|
20
|
+
readonly sandbox: {
|
|
21
|
+
readonly enabled: true;
|
|
22
|
+
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
23
|
+
};
|
|
24
|
+
readonly studio: {
|
|
25
|
+
readonly enabled: true;
|
|
26
|
+
readonly installable: true;
|
|
27
|
+
};
|
|
28
|
+
readonly mcp: {
|
|
29
|
+
readonly enabled: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { example as default };
|
|
35
|
+
//# sourceMappingURL=example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA0BI,EAAA,iCAAA"}
|
package/dist/example.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region src/example.ts
|
|
2
|
+
const example = {
|
|
3
|
+
id: "policy-safe-knowledge-assistant",
|
|
4
|
+
title: "Policy-safe Knowledge Assistant",
|
|
5
|
+
summary: "All-in-one template: locale/jurisdiction gating + versioned KB snapshots + HITL update pipeline + learning hub.",
|
|
6
|
+
tags: [
|
|
7
|
+
"assistant",
|
|
8
|
+
"knowledge",
|
|
9
|
+
"policy",
|
|
10
|
+
"hitl",
|
|
11
|
+
"learning"
|
|
12
|
+
],
|
|
13
|
+
kind: "template",
|
|
14
|
+
visibility: "public",
|
|
15
|
+
docs: {
|
|
16
|
+
goalDocId: "docs.examples.policy-safe-knowledge-assistant.goal",
|
|
17
|
+
usageDocId: "docs.examples.policy-safe-knowledge-assistant.usage"
|
|
18
|
+
},
|
|
19
|
+
entrypoints: {
|
|
20
|
+
packageName: "@contractspec/example.policy-safe-knowledge-assistant",
|
|
21
|
+
feature: "./feature",
|
|
22
|
+
docs: "./docs"
|
|
23
|
+
},
|
|
24
|
+
surfaces: {
|
|
25
|
+
templates: true,
|
|
26
|
+
sandbox: {
|
|
27
|
+
enabled: true,
|
|
28
|
+
modes: [
|
|
29
|
+
"playground",
|
|
30
|
+
"specs",
|
|
31
|
+
"builder",
|
|
32
|
+
"markdown",
|
|
33
|
+
"evolution"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
studio: {
|
|
37
|
+
enabled: true,
|
|
38
|
+
installable: true
|
|
39
|
+
},
|
|
40
|
+
mcp: { enabled: true }
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var example_default = example;
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { example_default as default };
|
|
47
|
+
//# sourceMappingURL=example.js.map
|