@contractspec/example.knowledge-canon 0.0.0-canary-20260113162409
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 +37 -0
- package/.turbo/turbo-build.log +38 -0
- package/CHANGELOG.md +293 -0
- package/LICENSE +21 -0
- package/README.md +27 -0
- package/dist/agent.d.ts +25 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +35 -0
- package/dist/agent.js.map +1 -0
- package/dist/blueprint.d.ts +7 -0
- package/dist/blueprint.d.ts.map +1 -0
- package/dist/blueprint.js +29 -0
- package/dist/blueprint.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/knowledge-canon.docblock.d.ts +1 -0
- package/dist/docs/knowledge-canon.docblock.js +29 -0
- package/dist/docs/knowledge-canon.docblock.js.map +1 -0
- package/dist/example.d.ts +7 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +47 -0
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/source.sample.d.ts +7 -0
- package/dist/source.sample.d.ts.map +1 -0
- package/dist/source.sample.js +30 -0
- package/dist/source.sample.js.map +1 -0
- package/dist/tenant.d.ts +7 -0
- package/dist/tenant.d.ts.map +1 -0
- package/dist/tenant.js +33 -0
- package/dist/tenant.js.map +1 -0
- package/package.json +62 -0
- package/src/agent.ts +47 -0
- package/src/blueprint.ts +26 -0
- package/src/docs/index.ts +1 -0
- package/src/docs/knowledge-canon.docblock.ts +29 -0
- package/src/example.ts +32 -0
- package/src/index.ts +6 -0
- package/src/source.sample.ts +27 -0
- package/src/tenant.ts +32 -0
- package/tsconfig.json +11 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +6 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$ tsdown
|
|
2
|
+
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
3
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m
|
|
4
|
+
[34mℹ[39m entry: [34msrc/agent.ts, src/blueprint.ts, src/example.ts, src/index.ts, src/source.sample.ts, src/tenant.ts, src/docs/index.ts, src/docs/knowledge-canon.docblock.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[1mdocs/knowledge-canon.docblock.js[22m [2m1.68 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1magent.js[22m [2m1.25 kB[22m [2m│ gzip: 0.62 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.09 kB[22m [2m│ gzip: 0.56 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m0.85 kB[22m [2m│ gzip: 0.46 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.82 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1msource.sample.js[22m [2m0.70 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.50 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mdocs/knowledge-canon.docblock.js.map [2m2.18 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22magent.js.map [2m2.13 kB[22m [2m│ gzip: 1.00 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.53 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22mtenant.js.map [2m1.35 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22mblueprint.js.map [2m1.26 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22msource.sample.js.map [2m1.14 kB[22m [2m│ gzip: 0.58 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22magent.d.ts.map [2m0.29 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22msource.sample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22mblueprint.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22mtenant.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22m[32m[1magent.d.ts[22m[39m [2m0.91 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1msource.sample.d.ts[22m[39m [2m0.28 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1mblueprint.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtenant.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
34
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
35
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/knowledge-canon.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
36
|
+
[34mℹ[39m 27 files, total: 19.76 kB
|
|
37
|
+
[32m✔[39m Build complete in [32m21751ms[39m
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
$ bun build:types && bun build:bundle
|
|
2
|
+
$ tsc --noEmit
|
|
3
|
+
$ tsdown
|
|
4
|
+
[34mℹ[39m tsdown [2mv0.19.0[22m powered by rolldown [2mv1.0.0-beta.59[22m
|
|
5
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m
|
|
6
|
+
[34mℹ[39m entry: [34msrc/agent.ts, src/blueprint.ts, src/example.ts, src/index.ts, src/source.sample.ts, src/tenant.ts, src/docs/index.ts, src/docs/knowledge-canon.docblock.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[1mdocs/knowledge-canon.docblock.js[22m [2m1.68 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1magent.js[22m [2m1.25 kB[22m [2m│ gzip: 0.62 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.09 kB[22m [2m│ gzip: 0.56 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m0.85 kB[22m [2m│ gzip: 0.46 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.82 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1msource.sample.js[22m [2m0.70 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.50 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mdocs/knowledge-canon.docblock.js.map [2m2.18 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22magent.js.map [2m2.13 kB[22m [2m│ gzip: 1.00 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.53 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22mtenant.js.map [2m1.35 kB[22m [2m│ gzip: 0.68 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22mblueprint.js.map [2m1.26 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22msource.sample.js.map [2m1.14 kB[22m [2m│ gzip: 0.58 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22magent.d.ts.map [2m0.29 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22msource.sample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22mblueprint.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
28
|
+
[34mℹ[39m [2mdist/[22mtenant.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
29
|
+
[34mℹ[39m [2mdist/[22m[32m[1magent.d.ts[22m[39m [2m0.91 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
30
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
31
|
+
[34mℹ[39m [2mdist/[22m[32m[1msource.sample.d.ts[22m[39m [2m0.28 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
32
|
+
[34mℹ[39m [2mdist/[22m[32m[1mblueprint.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
33
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtenant.d.ts[22m[39m [2m0.26 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
34
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
35
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
36
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/knowledge-canon.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
37
|
+
[34mℹ[39m 27 files, total: 19.76 kB
|
|
38
|
+
[32m✔[39m Build complete in [32m23676ms[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# @contractspec/example.knowledge-canon
|
|
2
|
+
|
|
3
|
+
## 0.0.0-canary-20260113162409
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- caf8701: feat: add cli vibe command to run workflow
|
|
8
|
+
- c69b849: feat: add api web services (mcp & website)
|
|
9
|
+
- 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
|
|
10
|
+
- fd38e85: feat: auto-fix contractspec issues
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e7ded36: feat: improve stability (adding ts-morph)
|
|
15
|
+
- c231a8b: test: improve workspace stability
|
|
16
|
+
- Updated dependencies [e7ded36]
|
|
17
|
+
- Updated dependencies [caf8701]
|
|
18
|
+
- Updated dependencies [c69b849]
|
|
19
|
+
- Updated dependencies [c231a8b]
|
|
20
|
+
- Updated dependencies [42b8d78]
|
|
21
|
+
- Updated dependencies [fd38e85]
|
|
22
|
+
- @contractspec/lib.contracts@0.0.0-canary-20260113162409
|
|
23
|
+
|
|
24
|
+
## 1.46.2
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 7e21625: feat: library services (landing page & api)
|
|
29
|
+
- Updated dependencies [7e21625]
|
|
30
|
+
- @contractspec/lib.contracts@1.46.2
|
|
31
|
+
|
|
32
|
+
## 1.46.1
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- 2d8a72b: fix: mcp for presentation
|
|
37
|
+
- Updated dependencies [2d8a72b]
|
|
38
|
+
- @contractspec/lib.contracts@1.46.1
|
|
39
|
+
|
|
40
|
+
## 1.46.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- 07cb19b: feat: feat: cleaude code & opencode integrations
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [07cb19b]
|
|
49
|
+
- @contractspec/lib.contracts@1.46.0
|
|
50
|
+
|
|
51
|
+
## 1.45.6
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- a913074: feat: improve ai agents rules management"
|
|
56
|
+
- Updated dependencies [a913074]
|
|
57
|
+
- @contractspec/lib.contracts@1.45.6
|
|
58
|
+
|
|
59
|
+
## 1.45.5
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- 9ddd7fa: feat: improve versioning
|
|
64
|
+
- Updated dependencies [9ddd7fa]
|
|
65
|
+
- @contractspec/lib.contracts@1.45.5
|
|
66
|
+
|
|
67
|
+
## 1.45.4
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- fix: github action
|
|
72
|
+
- Updated dependencies
|
|
73
|
+
- @contractspec/lib.contracts@1.45.4
|
|
74
|
+
|
|
75
|
+
## 1.45.3
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- e74ea9e: feat: version management
|
|
80
|
+
- Updated dependencies [e74ea9e]
|
|
81
|
+
- @contractspec/lib.contracts@1.45.3
|
|
82
|
+
|
|
83
|
+
## 1.45.2
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- 39ca241: code cleaning
|
|
88
|
+
- Updated dependencies [39ca241]
|
|
89
|
+
- @contractspec/lib.contracts@1.45.2
|
|
90
|
+
|
|
91
|
+
## 1.45.1
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- feat: improve app config and examples contracts
|
|
96
|
+
- Updated dependencies
|
|
97
|
+
- @contractspec/lib.contracts@1.45.1
|
|
98
|
+
- @contractspec/lib.schema@1.45.1
|
|
99
|
+
|
|
100
|
+
## 1.45.0
|
|
101
|
+
|
|
102
|
+
### Minor Changes
|
|
103
|
+
|
|
104
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
105
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
106
|
+
|
|
107
|
+
### New CLI Commands
|
|
108
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
109
|
+
|
|
110
|
+
### Enhanced Commands
|
|
111
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
112
|
+
- `contractspec doctor` - New `layers` health checks
|
|
113
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
114
|
+
|
|
115
|
+
### New APIs
|
|
116
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
117
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
118
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- Updated dependencies [e73ca1d]
|
|
123
|
+
- @contractspec/lib.contracts@1.45.0
|
|
124
|
+
- @contractspec/lib.schema@1.45.0
|
|
125
|
+
|
|
126
|
+
## 1.44.1
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- 3c594fb: fix
|
|
131
|
+
- Updated dependencies [3c594fb]
|
|
132
|
+
- @contractspec/lib.contracts@1.44.1
|
|
133
|
+
- @contractspec/lib.schema@1.44.1
|
|
134
|
+
|
|
135
|
+
## 1.44.0
|
|
136
|
+
|
|
137
|
+
### Minor Changes
|
|
138
|
+
|
|
139
|
+
- 5f3a868: chore: isolate branding to contractspec.io
|
|
140
|
+
|
|
141
|
+
### Patch Changes
|
|
142
|
+
|
|
143
|
+
- Updated dependencies [5f3a868]
|
|
144
|
+
- @contractspec/lib.contracts@1.44.0
|
|
145
|
+
- @contractspec/lib.schema@1.44.0
|
|
146
|
+
|
|
147
|
+
## 1.43.4
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- 9216062: fix: cross-platform compatibility
|
|
152
|
+
- Updated dependencies [9216062]
|
|
153
|
+
- @contractspec/lib.contracts@1.43.4
|
|
154
|
+
- @contractspec/lib.schema@1.43.3
|
|
155
|
+
|
|
156
|
+
## 1.43.3
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- 24d9759: improve documentation
|
|
161
|
+
- Updated dependencies [24d9759]
|
|
162
|
+
- @contractspec/lib.contracts@1.43.3
|
|
163
|
+
- @contractspec/lib.schema@1.43.2
|
|
164
|
+
|
|
165
|
+
## 1.43.2
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- e147271: fix: improve stability
|
|
170
|
+
- Updated dependencies [e147271]
|
|
171
|
+
- @contractspec/lib.contracts@1.43.2
|
|
172
|
+
- @contractspec/lib.schema@1.43.1
|
|
173
|
+
|
|
174
|
+
## 1.43.1
|
|
175
|
+
|
|
176
|
+
### Patch Changes
|
|
177
|
+
|
|
178
|
+
- Updated dependencies [f28fdad]
|
|
179
|
+
- @contractspec/lib.contracts@1.43.1
|
|
180
|
+
|
|
181
|
+
## 1.43.0
|
|
182
|
+
|
|
183
|
+
### Minor Changes
|
|
184
|
+
|
|
185
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
186
|
+
|
|
187
|
+
### Patch Changes
|
|
188
|
+
|
|
189
|
+
- Updated dependencies [042d072]
|
|
190
|
+
- @contractspec/lib.contracts@1.43.0
|
|
191
|
+
- @contractspec/lib.schema@1.43.0
|
|
192
|
+
|
|
193
|
+
## 1.42.10
|
|
194
|
+
|
|
195
|
+
### Patch Changes
|
|
196
|
+
|
|
197
|
+
- 1e6a0f1: fix: mcp server
|
|
198
|
+
- Updated dependencies [1e6a0f1]
|
|
199
|
+
- @contractspec/lib.contracts@1.42.10
|
|
200
|
+
- @contractspec/lib.schema@1.42.10
|
|
201
|
+
|
|
202
|
+
## 1.42.9
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- 9281db7: fix ModelRegistry
|
|
207
|
+
- Updated dependencies [9281db7]
|
|
208
|
+
- @contractspec/lib.contracts@1.42.9
|
|
209
|
+
- @contractspec/lib.schema@1.42.9
|
|
210
|
+
|
|
211
|
+
## 1.42.8
|
|
212
|
+
|
|
213
|
+
### Patch Changes
|
|
214
|
+
|
|
215
|
+
- e07b5ac: fix
|
|
216
|
+
- Updated dependencies [e07b5ac]
|
|
217
|
+
- @contractspec/lib.contracts@1.42.8
|
|
218
|
+
- @contractspec/lib.schema@1.42.8
|
|
219
|
+
|
|
220
|
+
## 1.42.7
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- e9b575d: fix release
|
|
225
|
+
- Updated dependencies [e9b575d]
|
|
226
|
+
- @contractspec/lib.contracts@1.42.7
|
|
227
|
+
- @contractspec/lib.schema@1.42.7
|
|
228
|
+
|
|
229
|
+
## 1.42.6
|
|
230
|
+
|
|
231
|
+
### Patch Changes
|
|
232
|
+
|
|
233
|
+
- 1500242: fix tooling
|
|
234
|
+
- Updated dependencies [1500242]
|
|
235
|
+
- @contractspec/lib.contracts@1.42.6
|
|
236
|
+
- @contractspec/lib.schema@1.42.6
|
|
237
|
+
|
|
238
|
+
## 1.42.5
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- 1299719: fix vscode
|
|
243
|
+
- Updated dependencies [1299719]
|
|
244
|
+
- @contractspec/lib.contracts@1.42.5
|
|
245
|
+
- @contractspec/lib.schema@1.42.5
|
|
246
|
+
|
|
247
|
+
## 1.42.4
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- ac28b99: fix: generate from openapi
|
|
252
|
+
- Updated dependencies [ac28b99]
|
|
253
|
+
- @contractspec/lib.contracts@1.42.4
|
|
254
|
+
- @contractspec/lib.schema@1.42.4
|
|
255
|
+
|
|
256
|
+
## 1.42.3
|
|
257
|
+
|
|
258
|
+
### Patch Changes
|
|
259
|
+
|
|
260
|
+
- 3f5d015: fix(tooling): cicd
|
|
261
|
+
- Updated dependencies [3f5d015]
|
|
262
|
+
- @contractspec/lib.contracts@1.42.3
|
|
263
|
+
- @contractspec/lib.schema@1.42.3
|
|
264
|
+
|
|
265
|
+
## 1.42.2
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- 1f9ac4c: fix
|
|
270
|
+
- Updated dependencies [1f9ac4c]
|
|
271
|
+
- @contractspec/lib.contracts@1.42.2
|
|
272
|
+
- @contractspec/lib.schema@1.42.2
|
|
273
|
+
|
|
274
|
+
## 1.42.1
|
|
275
|
+
|
|
276
|
+
### Patch Changes
|
|
277
|
+
|
|
278
|
+
- f043995: Fix release
|
|
279
|
+
- Updated dependencies [f043995]
|
|
280
|
+
- @contractspec/lib.contracts@1.42.1
|
|
281
|
+
- @contractspec/lib.schema@1.42.1
|
|
282
|
+
|
|
283
|
+
## 1.42.0
|
|
284
|
+
|
|
285
|
+
### Minor Changes
|
|
286
|
+
|
|
287
|
+
- 8eefd9c: initial release
|
|
288
|
+
|
|
289
|
+
### Patch Changes
|
|
290
|
+
|
|
291
|
+
- Updated dependencies [8eefd9c]
|
|
292
|
+
- @contractspec/lib.contracts@1.42.0
|
|
293
|
+
- @contractspec/lib.schema@1.42.0
|
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,27 @@
|
|
|
1
|
+
### Knowledge Example – Product Canon Space
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
This example demonstrates how to bind the Product Canon `KnowledgeSpaceSpec` to a tenant and surface it to agents/workflows.
|
|
7
|
+
|
|
8
|
+
Included assets:
|
|
9
|
+
|
|
10
|
+
- `blueprint.ts` – `AppBlueprintSpec` that references an FAQ workflow depending on the Product Canon space.
|
|
11
|
+
- `tenant.ts` – `TenantAppConfig` binding the canonical knowledge space to the workflow and a `productSupportAssistant` agent.
|
|
12
|
+
- `source.sample.ts` – illustrative `KnowledgeSourceConfig` for syncing a Notion database into the canonical corpus.
|
|
13
|
+
- `agent.ts` – helper illustrating how to pick knowledge bindings from a `ResolvedAppConfig` at runtime.
|
|
14
|
+
|
|
15
|
+
Usage sketch:
|
|
16
|
+
|
|
17
|
+
1. Register the knowledge space spec (`knowledge.product-canon`) via `KnowledgeSpaceRegistry`.
|
|
18
|
+
2. Persist the Notion source through the knowledge CRUD contracts (`knowledge.source.create`).
|
|
19
|
+
3. Compose the app configuration and pass the `ResolvedAppConfig` to your workflow runner / agent runtime.
|
|
20
|
+
4. Use helpers similar to `selectKnowledgeBindings` to scope which spaces can answer a given request before dispatching to embedding/vector services.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
+
import { ResolvedAppConfig } from "@contractspec/lib.contracts/app-config/runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/agent.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Selects knowledge bindings that apply to a workflow or agent identifier.
|
|
7
|
+
*/
|
|
8
|
+
declare function selectKnowledgeBindings(resolved: ResolvedAppConfig, options: {
|
|
9
|
+
workflowId?: string;
|
|
10
|
+
agentId?: string;
|
|
11
|
+
}): _contractspec_lib_contracts0.ResolvedKnowledge[];
|
|
12
|
+
/**
|
|
13
|
+
* Pseudo implementation of an assistant lookup that routes prompts to the appropriate
|
|
14
|
+
* knowledge sources. In a real system this would call the ingestion/search services.
|
|
15
|
+
*/
|
|
16
|
+
declare function answerWithKnowledge(resolved: ResolvedAppConfig, question: string, {
|
|
17
|
+
workflowId,
|
|
18
|
+
agentId
|
|
19
|
+
}: {
|
|
20
|
+
workflowId?: string;
|
|
21
|
+
agentId?: string;
|
|
22
|
+
}): Promise<string>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { answerWithKnowledge, selectKnowledgeBindings };
|
|
25
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","names":[],"sources":["../src/agent.ts"],"sourcesContent":[],"mappings":";;;;;;;AAKgB,iBAAA,uBAAA,CACJ,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAAA;EAoBP,UAAA,CAAA,EAAA,MAAA;EACV,OAAA,CAAA,EAAA,MAAA;CAER,CAAA,EAvByB,4BAAA,CACuB,iBAAA,EAsBhD;;;;;iBAHkB,mBAAA,WACV;;;;;;IAGT"}
|
package/dist/agent.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/agent.ts
|
|
2
|
+
/**
|
|
3
|
+
* Selects knowledge bindings that apply to a workflow or agent identifier.
|
|
4
|
+
*/
|
|
5
|
+
function selectKnowledgeBindings(resolved, options) {
|
|
6
|
+
return resolved.knowledge.filter(({ binding }) => {
|
|
7
|
+
if (!binding.scope) return true;
|
|
8
|
+
if (options.workflowId && binding.scope.workflows?.includes(options.workflowId)) return true;
|
|
9
|
+
if (options.agentId && binding.scope.agents?.includes(options.agentId)) return true;
|
|
10
|
+
return false;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Pseudo implementation of an assistant lookup that routes prompts to the appropriate
|
|
15
|
+
* knowledge sources. In a real system this would call the ingestion/search services.
|
|
16
|
+
*/
|
|
17
|
+
async function answerWithKnowledge(resolved, question, { workflowId, agentId }) {
|
|
18
|
+
const bindings = selectKnowledgeBindings(resolved, {
|
|
19
|
+
workflowId,
|
|
20
|
+
agentId
|
|
21
|
+
});
|
|
22
|
+
if (bindings.length === 0) return "No knowledge space available for this request.";
|
|
23
|
+
const summaries = bindings.map(({ space }) => `• ${space.meta.title || space.meta.description}`);
|
|
24
|
+
return [
|
|
25
|
+
`Q: ${question}`,
|
|
26
|
+
"Routed to knowledge spaces:",
|
|
27
|
+
...summaries,
|
|
28
|
+
"",
|
|
29
|
+
"TODO: invoke knowledge search service and synthesize response."
|
|
30
|
+
].join("\n");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { answerWithKnowledge, selectKnowledgeBindings };
|
|
35
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","names":[],"sources":["../src/agent.ts"],"sourcesContent":["import type { ResolvedAppConfig } from '@contractspec/lib.contracts/app-config/runtime';\n\n/**\n * Selects knowledge bindings that apply to a workflow or agent identifier.\n */\nexport function selectKnowledgeBindings(\n resolved: ResolvedAppConfig,\n options: { workflowId?: string; agentId?: string }\n) {\n return resolved.knowledge.filter(({ binding }) => {\n if (!binding.scope) return true;\n if (\n options.workflowId &&\n binding.scope.workflows?.includes(options.workflowId)\n )\n return true;\n if (options.agentId && binding.scope.agents?.includes(options.agentId))\n return true;\n return false;\n });\n}\n\n/**\n * Pseudo implementation of an assistant lookup that routes prompts to the appropriate\n * knowledge sources. In a real system this would call the ingestion/search services.\n */\nexport async function answerWithKnowledge(\n resolved: ResolvedAppConfig,\n question: string,\n { workflowId, agentId }: { workflowId?: string; agentId?: string }\n): Promise<string> {\n const bindings = selectKnowledgeBindings(resolved, { workflowId, agentId });\n if (bindings.length === 0) {\n return 'No knowledge space available for this request.';\n }\n\n const summaries = bindings.map(\n ({ space }) => `• ${space.meta.title || space.meta.description}`\n );\n return [\n `Q: ${question}`,\n 'Routed to knowledge spaces:',\n ...summaries,\n '',\n 'TODO: invoke knowledge search service and synthesize response.',\n ].join('\\n');\n}\n"],"mappings":";;;;AAKA,SAAgB,wBACd,UACA,SACA;AACA,QAAO,SAAS,UAAU,QAAQ,EAAE,cAAc;AAChD,MAAI,CAAC,QAAQ,MAAO,QAAO;AAC3B,MACE,QAAQ,cACR,QAAQ,MAAM,WAAW,SAAS,QAAQ,WAAW,CAErD,QAAO;AACT,MAAI,QAAQ,WAAW,QAAQ,MAAM,QAAQ,SAAS,QAAQ,QAAQ,CACpE,QAAO;AACT,SAAO;GACP;;;;;;AAOJ,eAAsB,oBACpB,UACA,UACA,EAAE,YAAY,WACG;CACjB,MAAM,WAAW,wBAAwB,UAAU;EAAE;EAAY;EAAS,CAAC;AAC3E,KAAI,SAAS,WAAW,EACtB,QAAO;CAGT,MAAM,YAAY,SAAS,KACxB,EAAE,YAAY,KAAK,MAAM,KAAK,SAAS,MAAM,KAAK,cACpD;AACD,QAAO;EACL,MAAM;EACN;EACA,GAAG;EACH;EACA;EACD,CAAC,KAAK,KAAK"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppBlueprintSpec } from "@contractspec/lib.contracts/app-config/spec";
|
|
2
|
+
|
|
3
|
+
//#region src/blueprint.d.ts
|
|
4
|
+
declare const artisanKnowledgeBlueprint: AppBlueprintSpec;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { artisanKnowledgeBlueprint };
|
|
7
|
+
//# sourceMappingURL=blueprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","names":[],"sources":["../src/blueprint.ts"],"sourcesContent":[],"mappings":";;;cAOa,2BAA2B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OwnersEnum, StabilityEnum, TagsEnum } from "@contractspec/lib.contracts/ownership";
|
|
2
|
+
|
|
3
|
+
//#region src/blueprint.ts
|
|
4
|
+
const artisanKnowledgeBlueprint = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "artisan.knowledge.product",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
appId: "artisan",
|
|
9
|
+
title: "ArtisanOS Knowledge – Product Canon",
|
|
10
|
+
description: "Blueprint that surfaces canonical product knowledge to agents and workflows.",
|
|
11
|
+
domain: "knowledge",
|
|
12
|
+
owners: [OwnersEnum.PlatformContent],
|
|
13
|
+
tags: [
|
|
14
|
+
"knowledge",
|
|
15
|
+
"product-canon",
|
|
16
|
+
TagsEnum.Guide
|
|
17
|
+
],
|
|
18
|
+
stability: StabilityEnum.Experimental
|
|
19
|
+
},
|
|
20
|
+
workflows: { answerFaq: {
|
|
21
|
+
key: "artisan.knowledge.answerFaq",
|
|
22
|
+
version: "1.0.0"
|
|
23
|
+
} },
|
|
24
|
+
notes: "Workflows and assistants running on this blueprint should bind the Product Canon knowledge space."
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { artisanKnowledgeBlueprint };
|
|
29
|
+
//# sourceMappingURL=blueprint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.js","names":[],"sources":["../src/blueprint.ts"],"sourcesContent":["import type { AppBlueprintSpec } from '@contractspec/lib.contracts/app-config/spec';\nimport {\n OwnersEnum,\n StabilityEnum,\n TagsEnum,\n} from '@contractspec/lib.contracts/ownership';\n\nexport const artisanKnowledgeBlueprint: AppBlueprintSpec = {\n meta: {\n key: 'artisan.knowledge.product',\n version: '1.0.0',\n appId: 'artisan',\n title: 'ArtisanOS Knowledge – Product Canon',\n description:\n 'Blueprint that surfaces canonical product knowledge to agents and workflows.',\n domain: 'knowledge',\n owners: [OwnersEnum.PlatformContent],\n tags: ['knowledge', 'product-canon', TagsEnum.Guide],\n stability: StabilityEnum.Experimental,\n },\n workflows: {\n answerFaq: { key: 'artisan.knowledge.answerFaq', version: '1.0.0' },\n },\n notes:\n 'Workflows and assistants running on this blueprint should bind the Product Canon knowledge space.',\n};\n"],"mappings":";;;AAOA,MAAa,4BAA8C;CACzD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,WAAW,gBAAgB;EACpC,MAAM;GAAC;GAAa;GAAiB,SAAS;GAAM;EACpD,WAAW,cAAc;EAC1B;CACD,WAAW,EACT,WAAW;EAAE,KAAK;EAA+B,SAAS;EAAS,EACpE;CACD,OACE;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./knowledge-canon.docblock.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/knowledge-canon.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.examples.knowledge-canon",
|
|
6
|
+
title: "Knowledge Example — Product Canon Space",
|
|
7
|
+
summary: "Bind the Product Canon KnowledgeSpaceSpec to a tenant and expose it to agents/workflows via ResolvedAppConfig.",
|
|
8
|
+
kind: "reference",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/examples/knowledge-canon",
|
|
11
|
+
tags: [
|
|
12
|
+
"knowledge",
|
|
13
|
+
"canon",
|
|
14
|
+
"example"
|
|
15
|
+
],
|
|
16
|
+
body: `## Included assets\n- Blueprint referencing a workflow depending on the Product Canon space.\n- Tenant app config binding the space to a workflow and agent scope.\n- Sample knowledge source configuration.\n- Helper to pick knowledge bindings from ResolvedAppConfig.\n\n## Guardrails\n- Keep sources scoped per tenant.\n- Keep secret fields out of config (use secret providers).\n- Enforce scope restrictions before answering.`
|
|
17
|
+
}, {
|
|
18
|
+
id: "docs.examples.knowledge-canon.usage",
|
|
19
|
+
title: "Knowledge Canon — Usage",
|
|
20
|
+
summary: "How to register the space, configure sources, and route requests.",
|
|
21
|
+
kind: "usage",
|
|
22
|
+
visibility: "public",
|
|
23
|
+
route: "/docs/examples/knowledge-canon/usage",
|
|
24
|
+
tags: ["knowledge", "usage"],
|
|
25
|
+
body: `## Usage\n1) Register the knowledge space spec in your KnowledgeSpaceRegistry.\n2) Persist the source config through knowledge CRUD operations.\n3) Compose ResolvedAppConfig and pass it to your workflow/agent runtime.\n4) Use helpers like \`selectKnowledgeBindings\` before dispatching to search/embedding.\n\n## Notes\n- Avoid logging PII.\n- Keep search results auditable and cite sources.`
|
|
26
|
+
}]);
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=knowledge-canon.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-canon.docblock.js","names":[],"sources":["../../src/docs/knowledge-canon.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst blocks: DocBlock[] = [\n {\n id: 'docs.examples.knowledge-canon',\n title: 'Knowledge Example — Product Canon Space',\n summary:\n 'Bind the Product Canon KnowledgeSpaceSpec to a tenant and expose it to agents/workflows via ResolvedAppConfig.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/knowledge-canon',\n tags: ['knowledge', 'canon', 'example'],\n body: `## Included assets\\n- Blueprint referencing a workflow depending on the Product Canon space.\\n- Tenant app config binding the space to a workflow and agent scope.\\n- Sample knowledge source configuration.\\n- Helper to pick knowledge bindings from ResolvedAppConfig.\\n\\n## Guardrails\\n- Keep sources scoped per tenant.\\n- Keep secret fields out of config (use secret providers).\\n- Enforce scope restrictions before answering.`,\n },\n {\n id: 'docs.examples.knowledge-canon.usage',\n title: 'Knowledge Canon — Usage',\n summary:\n 'How to register the space, configure sources, and route requests.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/knowledge-canon/usage',\n tags: ['knowledge', 'usage'],\n body: `## Usage\\n1) Register the knowledge space spec in your KnowledgeSpaceRegistry.\\n2) Persist the source config through knowledge CRUD operations.\\n3) Compose ResolvedAppConfig and pass it to your workflow/agent runtime.\\n4) Use helpers like \\`selectKnowledgeBindings\\` before dispatching to search/embedding.\\n\\n## Notes\\n- Avoid logging PII.\\n- Keep search results auditable and cite sources.`,\n },\n];\n\nregisterDocBlocks(blocks);\n"],"mappings":";;;AA4BA,kBAzB2B,CACzB;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAa;EAAS;EAAU;CACvC,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,aAAa,QAAQ;CAC5B,MAAM;CACP,CACF,CAEwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA2BJ,4BAAA,CA3BW"}
|
package/dist/example.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/example.ts
|
|
4
|
+
const example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge-canon",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Knowledge Canon (Product Canon space)",
|
|
9
|
+
description: "Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).",
|
|
10
|
+
kind: "knowledge",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: [
|
|
15
|
+
"knowledge",
|
|
16
|
+
"canon",
|
|
17
|
+
"app-config",
|
|
18
|
+
"agents",
|
|
19
|
+
"workflows"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
docs: {
|
|
23
|
+
rootDocId: "docs.examples.knowledge-canon",
|
|
24
|
+
usageDocId: "docs.examples.knowledge-canon.usage"
|
|
25
|
+
},
|
|
26
|
+
entrypoints: {
|
|
27
|
+
packageName: "@contractspec/example.knowledge-canon",
|
|
28
|
+
docs: "./docs"
|
|
29
|
+
},
|
|
30
|
+
surfaces: {
|
|
31
|
+
templates: true,
|
|
32
|
+
sandbox: {
|
|
33
|
+
enabled: true,
|
|
34
|
+
modes: ["markdown", "specs"]
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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: 'knowledge-canon',\n version: '1.0.0',\n title: 'Knowledge Canon (Product Canon space)',\n description:\n 'Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).',\n kind: 'knowledge',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['knowledge', 'canon', 'app-config', 'agents', 'workflows'],\n },\n docs: {\n rootDocId: 'docs.examples.knowledge-canon',\n usageDocId: 'docs.examples.knowledge-canon.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.knowledge-canon',\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;GAAa;GAAS;GAAc;GAAU;GAAY;EAClE;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { answerWithKnowledge, selectKnowledgeBindings } from "./agent.js";
|
|
2
|
+
import { artisanKnowledgeBlueprint } from "./blueprint.js";
|
|
3
|
+
import example from "./example.js";
|
|
4
|
+
import { artisanKnowledgeTenantConfig } from "./tenant.js";
|
|
5
|
+
import { productCanonNotionSource } from "./source.sample.js";
|
|
6
|
+
export { answerWithKnowledge, artisanKnowledgeBlueprint, artisanKnowledgeTenantConfig, example, productCanonNotionSource, selectKnowledgeBindings };
|