@contractspec/example.ai-support-bot 0.0.0-canary-20260113170453
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 +25 -0
- package/.turbo/turbo-build.log +26 -0
- package/CHANGELOG.md +379 -0
- package/LICENSE +21 -0
- package/README.md +12 -0
- package/dist/docs/ai-support-bot.docblock.d.ts +1 -0
- package/dist/docs/ai-support-bot.docblock.js +29 -0
- package/dist/docs/ai-support-bot.docblock.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/example.d.ts +7 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +46 -0
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/setup.d.ts +5 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +45 -0
- package/dist/setup.js.map +1 -0
- package/example.ts +1 -0
- package/package.json +59 -0
- package/setup.ts +8 -0
- package/src/docs/ai-support-bot.docblock.ts +28 -0
- package/src/docs/index.ts +1 -0
- package/src/example.ts +32 -0
- package/src/index.ts +3 -0
- package/src/setup.ts +49 -0
- package/tsconfig.json +11 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +6 -0
|
@@ -0,0 +1,25 @@
|
|
|
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/ai-support-bot/tsdown.config.js[24m
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/setup.ts, src/docs/ai-support-bot.docblock.ts, src/docs/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 16 files
|
|
9
|
+
[34mℹ[39m [2mdist/[22m[1msetup.js[22m [2m1.53 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/ai-support-bot.docblock.js[22m [2m1.35 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.00 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.19 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22msetup.js.map [2m2.68 kB[22m [2m│ gzip: 1.18 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22mdocs/ai-support-bot.docblock.js.map [2m1.84 kB[22m [2m│ gzip: 0.85 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.44 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22msetup.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1msetup.d.ts[22m[39m [2m0.17 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.13 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ai-support-bot.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
|
+
[34mℹ[39m 15 files, total: 10.90 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m18743ms[39m
|
|
@@ -0,0 +1,26 @@
|
|
|
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/ai-support-bot/tsdown.config.js[24m
|
|
6
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/setup.ts, src/docs/ai-support-bot.docblock.ts, src/docs/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[1msetup.js[22m [2m1.53 kB[22m [2m│ gzip: 0.75 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/ai-support-bot.docblock.js[22m [2m1.35 kB[22m [2m│ gzip: 0.66 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m1.00 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.19 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22msetup.js.map [2m2.68 kB[22m [2m│ gzip: 1.18 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mdocs/ai-support-bot.docblock.js.map [2m1.84 kB[22m [2m│ gzip: 0.85 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.44 kB[22m [2m│ gzip: 0.70 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22msetup.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1msetup.d.ts[22m[39m [2m0.17 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.13 kB[22m [2m│ gzip: 0.09 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ai-support-bot.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
25
|
+
[34mℹ[39m 15 files, total: 10.90 kB
|
|
26
|
+
[32m✔[39m Build complete in [32m22141ms[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
# @contractspec/example.ai-support-bot
|
|
2
|
+
|
|
3
|
+
## 0.0.0-canary-20260113170453
|
|
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.support-bot@0.0.0-canary-20260113170453
|
|
23
|
+
- @contractspec/lib.contracts@0.0.0-canary-20260113170453
|
|
24
|
+
- @contractspec/lib.knowledge@0.0.0-canary-20260113170453
|
|
25
|
+
- @contractspec/lib.logger@0.0.0-canary-20260113170453
|
|
26
|
+
|
|
27
|
+
## 1.46.2
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 7e21625: feat: library services (landing page & api)
|
|
32
|
+
- Updated dependencies [7e21625]
|
|
33
|
+
- @contractspec/lib.support-bot@1.46.2
|
|
34
|
+
- @contractspec/lib.contracts@1.46.2
|
|
35
|
+
- @contractspec/lib.knowledge@1.46.2
|
|
36
|
+
- @contractspec/lib.logger@1.46.2
|
|
37
|
+
|
|
38
|
+
## 1.46.1
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- 2d8a72b: fix: mcp for presentation
|
|
43
|
+
- Updated dependencies [2d8a72b]
|
|
44
|
+
- @contractspec/lib.support-bot@1.46.1
|
|
45
|
+
- @contractspec/lib.contracts@1.46.1
|
|
46
|
+
- @contractspec/lib.knowledge@1.46.1
|
|
47
|
+
- @contractspec/lib.logger@1.46.1
|
|
48
|
+
|
|
49
|
+
## 1.46.0
|
|
50
|
+
|
|
51
|
+
### Minor Changes
|
|
52
|
+
|
|
53
|
+
- 07cb19b: feat: feat: cleaude code & opencode integrations
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Updated dependencies [07cb19b]
|
|
58
|
+
- @contractspec/lib.support-bot@1.46.0
|
|
59
|
+
- @contractspec/lib.contracts@1.46.0
|
|
60
|
+
- @contractspec/lib.knowledge@1.46.0
|
|
61
|
+
- @contractspec/lib.logger@1.46.0
|
|
62
|
+
|
|
63
|
+
## 1.45.6
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- a913074: feat: improve ai agents rules management"
|
|
68
|
+
- Updated dependencies [a913074]
|
|
69
|
+
- @contractspec/lib.support-bot@1.45.6
|
|
70
|
+
- @contractspec/lib.contracts@1.45.6
|
|
71
|
+
- @contractspec/lib.knowledge@1.45.6
|
|
72
|
+
- @contractspec/lib.logger@1.45.6
|
|
73
|
+
|
|
74
|
+
## 1.45.5
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- 9ddd7fa: feat: improve versioning
|
|
79
|
+
- Updated dependencies [9ddd7fa]
|
|
80
|
+
- @contractspec/lib.support-bot@1.45.5
|
|
81
|
+
- @contractspec/lib.contracts@1.45.5
|
|
82
|
+
- @contractspec/lib.knowledge@1.45.5
|
|
83
|
+
- @contractspec/lib.logger@1.45.5
|
|
84
|
+
|
|
85
|
+
## 1.45.4
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- fix: github action
|
|
90
|
+
- Updated dependencies
|
|
91
|
+
- @contractspec/lib.support-bot@1.45.4
|
|
92
|
+
- @contractspec/lib.contracts@1.45.4
|
|
93
|
+
- @contractspec/lib.knowledge@1.45.4
|
|
94
|
+
- @contractspec/lib.logger@1.45.4
|
|
95
|
+
|
|
96
|
+
## 1.45.3
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- e74ea9e: feat: version management
|
|
101
|
+
- Updated dependencies [e74ea9e]
|
|
102
|
+
- @contractspec/lib.support-bot@1.45.3
|
|
103
|
+
- @contractspec/lib.contracts@1.45.3
|
|
104
|
+
- @contractspec/lib.knowledge@1.45.3
|
|
105
|
+
- @contractspec/lib.logger@1.45.3
|
|
106
|
+
|
|
107
|
+
## 1.45.2
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- 39ca241: code cleaning
|
|
112
|
+
- Updated dependencies [39ca241]
|
|
113
|
+
- @contractspec/lib.support-bot@1.45.2
|
|
114
|
+
- @contractspec/lib.contracts@1.45.2
|
|
115
|
+
- @contractspec/lib.knowledge@1.45.2
|
|
116
|
+
- @contractspec/lib.logger@1.45.2
|
|
117
|
+
|
|
118
|
+
## 1.45.1
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- feat: improve app config and examples contracts
|
|
123
|
+
- Updated dependencies
|
|
124
|
+
- @contractspec/lib.support-bot@1.45.1
|
|
125
|
+
- @contractspec/lib.contracts@1.45.1
|
|
126
|
+
- @contractspec/lib.knowledge@1.45.1
|
|
127
|
+
- @contractspec/lib.logger@1.45.1
|
|
128
|
+
- @contractspec/lib.schema@1.45.1
|
|
129
|
+
|
|
130
|
+
## 1.45.0
|
|
131
|
+
|
|
132
|
+
### Minor Changes
|
|
133
|
+
|
|
134
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
135
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
136
|
+
|
|
137
|
+
### New CLI Commands
|
|
138
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
139
|
+
|
|
140
|
+
### Enhanced Commands
|
|
141
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
142
|
+
- `contractspec doctor` - New `layers` health checks
|
|
143
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
144
|
+
|
|
145
|
+
### New APIs
|
|
146
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
147
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
148
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- Updated dependencies [e73ca1d]
|
|
153
|
+
- @contractspec/lib.support-bot@1.45.0
|
|
154
|
+
- @contractspec/lib.contracts@1.45.0
|
|
155
|
+
- @contractspec/lib.knowledge@1.45.0
|
|
156
|
+
- @contractspec/lib.logger@1.45.0
|
|
157
|
+
- @contractspec/lib.schema@1.45.0
|
|
158
|
+
|
|
159
|
+
## 1.44.1
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- 3c594fb: fix
|
|
164
|
+
- Updated dependencies [3c594fb]
|
|
165
|
+
- @contractspec/lib.support-bot@1.44.1
|
|
166
|
+
- @contractspec/lib.contracts@1.44.1
|
|
167
|
+
- @contractspec/lib.knowledge@1.44.1
|
|
168
|
+
- @contractspec/lib.logger@1.44.1
|
|
169
|
+
- @contractspec/lib.schema@1.44.1
|
|
170
|
+
|
|
171
|
+
## 1.44.0
|
|
172
|
+
|
|
173
|
+
### Minor Changes
|
|
174
|
+
|
|
175
|
+
- 5f3a868: chore: isolate branding to contractspec.io
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- Updated dependencies [5f3a868]
|
|
180
|
+
- @contractspec/lib.support-bot@1.44.0
|
|
181
|
+
- @contractspec/lib.contracts@1.44.0
|
|
182
|
+
- @contractspec/lib.knowledge@1.44.0
|
|
183
|
+
- @contractspec/lib.logger@1.44.0
|
|
184
|
+
- @contractspec/lib.schema@1.44.0
|
|
185
|
+
|
|
186
|
+
## 1.43.4
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- 9216062: fix: cross-platform compatibility
|
|
191
|
+
- Updated dependencies [9216062]
|
|
192
|
+
- @contractspec/lib.support-bot@1.43.4
|
|
193
|
+
- @contractspec/lib.contracts@1.43.4
|
|
194
|
+
- @contractspec/lib.knowledge@1.43.4
|
|
195
|
+
- @contractspec/lib.logger@1.43.3
|
|
196
|
+
- @contractspec/lib.schema@1.43.3
|
|
197
|
+
|
|
198
|
+
## 1.43.3
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- 24d9759: improve documentation
|
|
203
|
+
- Updated dependencies [24d9759]
|
|
204
|
+
- @contractspec/lib.support-bot@1.43.3
|
|
205
|
+
- @contractspec/lib.contracts@1.43.3
|
|
206
|
+
- @contractspec/lib.knowledge@1.43.3
|
|
207
|
+
- @contractspec/lib.logger@1.43.2
|
|
208
|
+
- @contractspec/lib.schema@1.43.2
|
|
209
|
+
|
|
210
|
+
## 1.43.2
|
|
211
|
+
|
|
212
|
+
### Patch Changes
|
|
213
|
+
|
|
214
|
+
- e147271: fix: improve stability
|
|
215
|
+
- Updated dependencies [e147271]
|
|
216
|
+
- @contractspec/lib.support-bot@1.43.2
|
|
217
|
+
- @contractspec/lib.contracts@1.43.2
|
|
218
|
+
- @contractspec/lib.knowledge@1.43.2
|
|
219
|
+
- @contractspec/lib.logger@1.43.1
|
|
220
|
+
- @contractspec/lib.schema@1.43.1
|
|
221
|
+
|
|
222
|
+
## 1.43.1
|
|
223
|
+
|
|
224
|
+
### Patch Changes
|
|
225
|
+
|
|
226
|
+
- Updated dependencies [f28fdad]
|
|
227
|
+
- @contractspec/lib.contracts@1.43.1
|
|
228
|
+
- @contractspec/lib.knowledge@1.43.1
|
|
229
|
+
- @contractspec/lib.support-bot@1.43.1
|
|
230
|
+
|
|
231
|
+
## 1.43.0
|
|
232
|
+
|
|
233
|
+
### Minor Changes
|
|
234
|
+
|
|
235
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [042d072]
|
|
240
|
+
- @contractspec/lib.support-bot@1.43.0
|
|
241
|
+
- @contractspec/lib.contracts@1.43.0
|
|
242
|
+
- @contractspec/lib.knowledge@1.43.0
|
|
243
|
+
- @contractspec/lib.logger@1.43.0
|
|
244
|
+
- @contractspec/lib.schema@1.43.0
|
|
245
|
+
|
|
246
|
+
## 1.42.10
|
|
247
|
+
|
|
248
|
+
### Patch Changes
|
|
249
|
+
|
|
250
|
+
- 1e6a0f1: fix: mcp server
|
|
251
|
+
- Updated dependencies [1e6a0f1]
|
|
252
|
+
- @contractspec/lib.support-bot@1.42.10
|
|
253
|
+
- @contractspec/lib.contracts@1.42.10
|
|
254
|
+
- @contractspec/lib.knowledge@1.42.10
|
|
255
|
+
- @contractspec/lib.logger@1.42.10
|
|
256
|
+
- @contractspec/lib.schema@1.42.10
|
|
257
|
+
|
|
258
|
+
## 1.42.9
|
|
259
|
+
|
|
260
|
+
### Patch Changes
|
|
261
|
+
|
|
262
|
+
- 9281db7: fix ModelRegistry
|
|
263
|
+
- Updated dependencies [9281db7]
|
|
264
|
+
- @contractspec/lib.support-bot@1.42.9
|
|
265
|
+
- @contractspec/lib.contracts@1.42.9
|
|
266
|
+
- @contractspec/lib.knowledge@1.42.9
|
|
267
|
+
- @contractspec/lib.logger@1.42.9
|
|
268
|
+
- @contractspec/lib.schema@1.42.9
|
|
269
|
+
|
|
270
|
+
## 1.42.8
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- e07b5ac: fix
|
|
275
|
+
- Updated dependencies [e07b5ac]
|
|
276
|
+
- @contractspec/lib.support-bot@1.42.8
|
|
277
|
+
- @contractspec/lib.contracts@1.42.8
|
|
278
|
+
- @contractspec/lib.knowledge@1.42.8
|
|
279
|
+
- @contractspec/lib.logger@1.42.8
|
|
280
|
+
- @contractspec/lib.schema@1.42.8
|
|
281
|
+
|
|
282
|
+
## 1.42.7
|
|
283
|
+
|
|
284
|
+
### Patch Changes
|
|
285
|
+
|
|
286
|
+
- e9b575d: fix release
|
|
287
|
+
- Updated dependencies [e9b575d]
|
|
288
|
+
- @contractspec/lib.support-bot@1.42.7
|
|
289
|
+
- @contractspec/lib.contracts@1.42.7
|
|
290
|
+
- @contractspec/lib.knowledge@1.42.7
|
|
291
|
+
- @contractspec/lib.logger@1.42.7
|
|
292
|
+
- @contractspec/lib.schema@1.42.7
|
|
293
|
+
|
|
294
|
+
## 1.42.6
|
|
295
|
+
|
|
296
|
+
### Patch Changes
|
|
297
|
+
|
|
298
|
+
- 1500242: fix tooling
|
|
299
|
+
- Updated dependencies [1500242]
|
|
300
|
+
- @contractspec/lib.support-bot@1.42.6
|
|
301
|
+
- @contractspec/lib.contracts@1.42.6
|
|
302
|
+
- @contractspec/lib.knowledge@1.42.6
|
|
303
|
+
- @contractspec/lib.logger@1.42.6
|
|
304
|
+
- @contractspec/lib.schema@1.42.6
|
|
305
|
+
|
|
306
|
+
## 1.42.5
|
|
307
|
+
|
|
308
|
+
### Patch Changes
|
|
309
|
+
|
|
310
|
+
- 1299719: fix vscode
|
|
311
|
+
- Updated dependencies [1299719]
|
|
312
|
+
- @contractspec/lib.support-bot@1.42.5
|
|
313
|
+
- @contractspec/lib.contracts@1.42.5
|
|
314
|
+
- @contractspec/lib.knowledge@1.42.5
|
|
315
|
+
- @contractspec/lib.logger@1.42.5
|
|
316
|
+
- @contractspec/lib.schema@1.42.5
|
|
317
|
+
|
|
318
|
+
## 1.42.4
|
|
319
|
+
|
|
320
|
+
### Patch Changes
|
|
321
|
+
|
|
322
|
+
- ac28b99: fix: generate from openapi
|
|
323
|
+
- Updated dependencies [ac28b99]
|
|
324
|
+
- @contractspec/lib.support-bot@1.42.4
|
|
325
|
+
- @contractspec/lib.contracts@1.42.4
|
|
326
|
+
- @contractspec/lib.knowledge@1.42.4
|
|
327
|
+
- @contractspec/lib.logger@1.42.4
|
|
328
|
+
- @contractspec/lib.schema@1.42.4
|
|
329
|
+
|
|
330
|
+
## 1.42.3
|
|
331
|
+
|
|
332
|
+
### Patch Changes
|
|
333
|
+
|
|
334
|
+
- 3f5d015: fix(tooling): cicd
|
|
335
|
+
- Updated dependencies [3f5d015]
|
|
336
|
+
- @contractspec/lib.contracts@1.42.3
|
|
337
|
+
- @contractspec/lib.knowledge@1.42.3
|
|
338
|
+
- @contractspec/lib.logger@1.42.3
|
|
339
|
+
- @contractspec/lib.schema@1.42.3
|
|
340
|
+
- @contractspec/lib.support-bot@1.42.3
|
|
341
|
+
|
|
342
|
+
## 1.42.2
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- 1f9ac4c: fix
|
|
347
|
+
- Updated dependencies [1f9ac4c]
|
|
348
|
+
- @contractspec/lib.contracts@1.42.2
|
|
349
|
+
- @contractspec/lib.knowledge@1.42.2
|
|
350
|
+
- @contractspec/lib.logger@1.42.2
|
|
351
|
+
- @contractspec/lib.schema@1.42.2
|
|
352
|
+
- @contractspec/lib.support-bot@1.42.2
|
|
353
|
+
|
|
354
|
+
## 1.42.1
|
|
355
|
+
|
|
356
|
+
### Patch Changes
|
|
357
|
+
|
|
358
|
+
- f043995: Fix release
|
|
359
|
+
- Updated dependencies [f043995]
|
|
360
|
+
- @contractspec/lib.support-bot@1.42.1
|
|
361
|
+
- @contractspec/lib.contracts@1.42.1
|
|
362
|
+
- @contractspec/lib.knowledge@1.42.1
|
|
363
|
+
- @contractspec/lib.logger@1.42.1
|
|
364
|
+
- @contractspec/lib.schema@1.42.1
|
|
365
|
+
|
|
366
|
+
## 1.42.0
|
|
367
|
+
|
|
368
|
+
### Minor Changes
|
|
369
|
+
|
|
370
|
+
- 8eefd9c: initial release
|
|
371
|
+
|
|
372
|
+
### Patch Changes
|
|
373
|
+
|
|
374
|
+
- Updated dependencies [8eefd9c]
|
|
375
|
+
- @contractspec/lib.contracts@1.42.0
|
|
376
|
+
- @contractspec/lib.knowledge@1.42.0
|
|
377
|
+
- @contractspec/lib.logger@1.42.0
|
|
378
|
+
- @contractspec/lib.schema@1.42.0
|
|
379
|
+
- @contractspec/lib.support-bot@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,12 @@
|
|
|
1
|
+
# AI Support Bot Example
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Minimal wiring that shows how `@contractspec/lib.ai-agent` works together with `@contractspec/lib.support-bot`.
|
|
7
|
+
|
|
8
|
+
## What it demonstrates
|
|
9
|
+
|
|
10
|
+
- Create a SupportBot spec with confidence-based escalation.
|
|
11
|
+
- Register ticket classification / resolver / auto-responder tools.
|
|
12
|
+
- Run a mock ticket through the `AgentRunner` and inspect the draft reply.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/ai-support-bot.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.examples.ai-support-bot",
|
|
6
|
+
title: "AI Support Bot (example)",
|
|
7
|
+
summary: "Ticket classification + knowledge-grounded resolution + response drafting.",
|
|
8
|
+
kind: "reference",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/examples/ai-support-bot",
|
|
11
|
+
tags: [
|
|
12
|
+
"support",
|
|
13
|
+
"ai",
|
|
14
|
+
"example"
|
|
15
|
+
],
|
|
16
|
+
body: `## What this example shows\n- Classify a ticket into a support category.\n- Use a knowledge port to generate a grounded resolution.\n- Draft a response (email body) from the resolution.\n\n## Guardrails\n- Avoid logging raw ticket bodies/PII; prefer structured summaries.\n- Keep knowledge and ticket adapters explicit and testable.`
|
|
17
|
+
}, {
|
|
18
|
+
id: "docs.examples.ai-support-bot.usage",
|
|
19
|
+
title: "AI Support Bot — Usage",
|
|
20
|
+
summary: "How to run the example and swap the knowledge adapter.",
|
|
21
|
+
kind: "usage",
|
|
22
|
+
visibility: "public",
|
|
23
|
+
route: "/docs/examples/ai-support-bot/usage",
|
|
24
|
+
tags: ["support", "usage"],
|
|
25
|
+
body: `## Usage\n- Call \`runAiSupportBotExample()\`.\n- Replace the \`knowledge.query\` implementation with a real knowledge service.\n\n## Notes\n- Keep outputs structured.\n- Use policy gates before exposing drafted replies to end-users.`
|
|
26
|
+
}]);
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=ai-support-bot.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-support-bot.docblock.js","names":[],"sources":["../../src/docs/ai-support-bot.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.ai-support-bot',\n title: 'AI Support Bot (example)',\n summary:\n 'Ticket classification + knowledge-grounded resolution + response drafting.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/ai-support-bot',\n tags: ['support', 'ai', 'example'],\n body: `## What this example shows\\n- Classify a ticket into a support category.\\n- Use a knowledge port to generate a grounded resolution.\\n- Draft a response (email body) from the resolution.\\n\\n## Guardrails\\n- Avoid logging raw ticket bodies/PII; prefer structured summaries.\\n- Keep knowledge and ticket adapters explicit and testable.`,\n },\n {\n id: 'docs.examples.ai-support-bot.usage',\n title: 'AI Support Bot — Usage',\n summary: 'How to run the example and swap the knowledge adapter.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/ai-support-bot/usage',\n tags: ['support', 'usage'],\n body: `## Usage\\n- Call \\`runAiSupportBotExample()\\`.\\n- Replace the \\`knowledge.query\\` implementation with a real knowledge service.\\n\\n## Notes\\n- Keep outputs structured.\\n- Use policy gates before exposing drafted replies to end-users.`,\n },\n];\n\nregisterDocBlocks(blocks);\n"],"mappings":";;;AA2BA,kBAxB2B,CACzB;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAW;EAAM;EAAU;CAClC,MAAM;CACP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,WAAW,QAAQ;CAC1B,MAAM;CACP,CACF,CAEwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./ai-support-bot.docblock.js";
|
|
@@ -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,46 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/example.ts
|
|
4
|
+
const example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "ai-support-bot",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "AI Support Bot",
|
|
9
|
+
description: "Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.",
|
|
10
|
+
kind: "script",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: [
|
|
15
|
+
"support",
|
|
16
|
+
"ai",
|
|
17
|
+
"tickets",
|
|
18
|
+
"knowledge"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
docs: {
|
|
22
|
+
rootDocId: "docs.examples.ai-support-bot",
|
|
23
|
+
usageDocId: "docs.examples.ai-support-bot.usage"
|
|
24
|
+
},
|
|
25
|
+
entrypoints: {
|
|
26
|
+
packageName: "@contractspec/example.ai-support-bot",
|
|
27
|
+
docs: "./docs"
|
|
28
|
+
},
|
|
29
|
+
surfaces: {
|
|
30
|
+
templates: true,
|
|
31
|
+
sandbox: {
|
|
32
|
+
enabled: true,
|
|
33
|
+
modes: ["markdown"]
|
|
34
|
+
},
|
|
35
|
+
studio: {
|
|
36
|
+
enabled: true,
|
|
37
|
+
installable: true
|
|
38
|
+
},
|
|
39
|
+
mcp: { enabled: true }
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var example_default = example;
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { example_default as default };
|
|
46
|
+
//# 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: 'ai-support-bot',\n version: '1.0.0',\n title: 'AI Support Bot',\n description:\n 'Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.',\n kind: 'script',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['support', 'ai', 'tickets', 'knowledge'],\n },\n docs: {\n rootDocId: 'docs.examples.ai-support-bot',\n usageDocId: 'docs.examples.ai-support-bot.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.ai-support-bot',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown'] },\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;GAAW;GAAM;GAAW;GAAY;EAChD;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,WAAW;GAAE;EAC/C,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF,CAAC;AAEF,sBAAe"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","names":[],"sources":["../src/setup.ts"],"sourcesContent":[],"mappings":";iBAesB,sBAAA,CAAA,GAA0B"}
|
package/dist/setup.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { TicketResolver } from "@contractspec/lib.support-bot/rag";
|
|
2
|
+
import { TicketClassifier } from "@contractspec/lib.support-bot/tickets";
|
|
3
|
+
import { AutoResponder } from "@contractspec/lib.support-bot/bot";
|
|
4
|
+
import { LogLevel, Logger } from "@contractspec/lib.logger";
|
|
5
|
+
|
|
6
|
+
//#region src/setup.ts
|
|
7
|
+
const logger = new Logger({
|
|
8
|
+
level: process.env.NODE_ENV === "production" ? LogLevel.INFO : LogLevel.DEBUG,
|
|
9
|
+
environment: process.env.NODE_ENV || "development",
|
|
10
|
+
enableColors: process.env.NODE_ENV !== "production"
|
|
11
|
+
});
|
|
12
|
+
async function runAiSupportBotExample() {
|
|
13
|
+
const resolver = new TicketResolver({ knowledge: { async query(question) {
|
|
14
|
+
return {
|
|
15
|
+
answer: `The payout will retrigger automatically. (${question.slice(0, 40)}…)`,
|
|
16
|
+
references: []
|
|
17
|
+
};
|
|
18
|
+
} } });
|
|
19
|
+
const classifier = new TicketClassifier();
|
|
20
|
+
const responder = new AutoResponder();
|
|
21
|
+
const ticket = {
|
|
22
|
+
id: "TIC-42",
|
|
23
|
+
subject: "Payout failed",
|
|
24
|
+
body: "Hello, our supplier payout failed twice yesterday. Can you confirm status? It is urgent.",
|
|
25
|
+
channel: "email",
|
|
26
|
+
customerName: "Ivy",
|
|
27
|
+
metadata: { accountId: "acct_789" }
|
|
28
|
+
};
|
|
29
|
+
const classification = await classifier.classify(ticket);
|
|
30
|
+
const resolution = await resolver.resolve(ticket);
|
|
31
|
+
const draft = await responder.draft(ticket, resolution, classification);
|
|
32
|
+
logger.info("Support bot run completed", {
|
|
33
|
+
ticketId: ticket.id,
|
|
34
|
+
classification,
|
|
35
|
+
resolution,
|
|
36
|
+
emailDraft: {
|
|
37
|
+
subject: draft.subject,
|
|
38
|
+
body: draft.body
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { runAiSupportBotExample };
|
|
45
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","names":[],"sources":["../src/setup.ts"],"sourcesContent":["import { TicketResolver } from '@contractspec/lib.support-bot/rag';\nimport { TicketClassifier } from '@contractspec/lib.support-bot/tickets';\nimport { AutoResponder } from '@contractspec/lib.support-bot/bot';\nimport type { KnowledgeAnswer } from '@contractspec/lib.knowledge/query/service';\nimport type { SupportTicket } from '@contractspec/lib.support-bot/types';\nimport { Logger, LogLevel } from '@contractspec/lib.logger';\nimport type { LoggerConfig } from '@contractspec/lib.logger/types';\n\nconst logger = new Logger({\n level: process.env.NODE_ENV === 'production' ? LogLevel.INFO : LogLevel.DEBUG,\n environment:\n (process.env.NODE_ENV as LoggerConfig['environment']) || 'development',\n enableColors: process.env.NODE_ENV !== 'production',\n});\n\nexport async function runAiSupportBotExample(): Promise<void> {\n const knowledge = {\n async query(question: string): Promise<KnowledgeAnswer> {\n return {\n answer: `The payout will retrigger automatically. (${question.slice(0, 40)}…)`,\n references: [],\n };\n },\n };\n\n const resolver = new TicketResolver({ knowledge });\n const classifier = new TicketClassifier();\n const responder = new AutoResponder();\n\n const ticket: SupportTicket = {\n id: 'TIC-42',\n subject: 'Payout failed',\n body: 'Hello, our supplier payout failed twice yesterday. Can you confirm status? It is urgent.',\n channel: 'email',\n customerName: 'Ivy',\n metadata: { accountId: 'acct_789' },\n };\n\n const classification = await classifier.classify(ticket);\n const resolution = await resolver.resolve(ticket);\n const draft = await responder.draft(ticket, resolution, classification);\n\n logger.info('Support bot run completed', {\n ticketId: ticket.id,\n classification,\n resolution,\n emailDraft: { subject: draft.subject, body: draft.body },\n });\n}\n"],"mappings":";;;;;;AAQA,MAAM,SAAS,IAAI,OAAO;CACxB,OAAO,QAAQ,IAAI,aAAa,eAAe,SAAS,OAAO,SAAS;CACxE,aACG,QAAQ,IAAI,YAA4C;CAC3D,cAAc,QAAQ,IAAI,aAAa;CACxC,CAAC;AAEF,eAAsB,yBAAwC;CAU5D,MAAM,WAAW,IAAI,eAAe,EAAE,WATpB,EAChB,MAAM,MAAM,UAA4C;AACtD,SAAO;GACL,QAAQ,6CAA6C,SAAS,MAAM,GAAG,GAAG,CAAC;GAC3E,YAAY,EAAE;GACf;IAEJ,EAEgD,CAAC;CAClD,MAAM,aAAa,IAAI,kBAAkB;CACzC,MAAM,YAAY,IAAI,eAAe;CAErC,MAAM,SAAwB;EAC5B,IAAI;EACJ,SAAS;EACT,MAAM;EACN,SAAS;EACT,cAAc;EACd,UAAU,EAAE,WAAW,YAAY;EACpC;CAED,MAAM,iBAAiB,MAAM,WAAW,SAAS,OAAO;CACxD,MAAM,aAAa,MAAM,SAAS,QAAQ,OAAO;CACjD,MAAM,QAAQ,MAAM,UAAU,MAAM,QAAQ,YAAY,eAAe;AAEvE,QAAO,KAAK,6BAA6B;EACvC,UAAU,OAAO;EACjB;EACA;EACA,YAAY;GAAE,SAAS,MAAM;GAAS,MAAM,MAAM;GAAM;EACzD,CAAC"}
|
package/example.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/example';
|