@contractspec/example.learning-journey-ambient-coach 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 +25 -0
- package/.turbo/turbo-build.log +26 -0
- package/CHANGELOG.md +322 -0
- package/LICENSE +21 -0
- package/README.md +37 -0
- package/dist/docs/ambient-coach.docblock.d.ts +1 -0
- package/dist/docs/ambient-coach.docblock.js +34 -0
- package/dist/docs/ambient-coach.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 +42 -0
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/track.d.ts +9 -0
- package/dist/track.d.ts.map +1 -0
- package/dist/track.js +42 -0
- package/dist/track.js.map +1 -0
- package/example.ts +1 -0
- package/package.json +57 -0
- package/src/docs/ambient-coach.docblock.ts +32 -0
- package/src/docs/index.ts +1 -0
- package/src/example.ts +31 -0
- package/src/index.ts +3 -0
- package/src/track.test.ts +57 -0
- package/src/track.ts +74 -0
- package/tsconfig.json +9 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +17 -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/learning-journey-ambient-coach/tsdown.config.js[24m
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/track.ts, src/docs/ambient-coach.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[1mtrack.js[22m [2m1.63 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/ambient-coach.docblock.js[22m [2m1.27 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.98 kB[22m [2m│ gzip: 0.53 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.28 kB[22m [2m│ gzip: 0.14 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/[22mtrack.js.map [2m2.67 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22mdocs/ambient-coach.docblock.js.map [2m1.68 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.41 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.21 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[1mindex.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ambient-coach.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: 11.21 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m17991ms[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/learning-journey-ambient-coach/tsdown.config.js[24m
|
|
6
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/track.ts, src/docs/ambient-coach.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[1mtrack.js[22m [2m1.63 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/ambient-coach.docblock.js[22m [2m1.27 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.98 kB[22m [2m│ gzip: 0.53 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.28 kB[22m [2m│ gzip: 0.14 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/[22mtrack.js.map [2m2.67 kB[22m [2m│ gzip: 1.06 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mdocs/ambient-coach.docblock.js.map [2m1.68 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.41 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.25 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ambient-coach.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: 11.21 kB
|
|
26
|
+
[32m✔[39m Build complete in [32m22571ms[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# @contractspec/example.learning-journey-ambient-coach
|
|
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/module.learning-journey@0.0.0-canary-20260113162409
|
|
23
|
+
- @contractspec/lib.contracts@0.0.0-canary-20260113162409
|
|
24
|
+
|
|
25
|
+
## 1.46.2
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 7e21625: feat: library services (landing page & api)
|
|
30
|
+
- Updated dependencies [7e21625]
|
|
31
|
+
- @contractspec/module.learning-journey@1.46.2
|
|
32
|
+
- @contractspec/lib.contracts@1.46.2
|
|
33
|
+
|
|
34
|
+
## 1.46.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- 2d8a72b: fix: mcp for presentation
|
|
39
|
+
- Updated dependencies [2d8a72b]
|
|
40
|
+
- @contractspec/module.learning-journey@1.46.1
|
|
41
|
+
- @contractspec/lib.contracts@1.46.1
|
|
42
|
+
|
|
43
|
+
## 1.46.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 07cb19b: feat: feat: cleaude code & opencode integrations
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [07cb19b]
|
|
52
|
+
- @contractspec/module.learning-journey@1.46.0
|
|
53
|
+
- @contractspec/lib.contracts@1.46.0
|
|
54
|
+
|
|
55
|
+
## 1.45.6
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- a913074: feat: improve ai agents rules management"
|
|
60
|
+
- Updated dependencies [a913074]
|
|
61
|
+
- @contractspec/module.learning-journey@1.45.6
|
|
62
|
+
- @contractspec/lib.contracts@1.45.6
|
|
63
|
+
|
|
64
|
+
## 1.45.5
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- 9ddd7fa: feat: improve versioning
|
|
69
|
+
- Updated dependencies [9ddd7fa]
|
|
70
|
+
- @contractspec/module.learning-journey@1.45.5
|
|
71
|
+
- @contractspec/lib.contracts@1.45.5
|
|
72
|
+
|
|
73
|
+
## 1.45.4
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- fix: github action
|
|
78
|
+
- Updated dependencies
|
|
79
|
+
- @contractspec/module.learning-journey@1.45.4
|
|
80
|
+
- @contractspec/lib.contracts@1.45.4
|
|
81
|
+
|
|
82
|
+
## 1.45.3
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- e74ea9e: feat: version management
|
|
87
|
+
- Updated dependencies [e74ea9e]
|
|
88
|
+
- @contractspec/module.learning-journey@1.45.3
|
|
89
|
+
- @contractspec/lib.contracts@1.45.3
|
|
90
|
+
|
|
91
|
+
## 1.45.2
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
- 39ca241: code cleaning
|
|
96
|
+
- Updated dependencies [39ca241]
|
|
97
|
+
- @contractspec/module.learning-journey@1.45.2
|
|
98
|
+
- @contractspec/lib.contracts@1.45.2
|
|
99
|
+
|
|
100
|
+
## 1.45.1
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- feat: improve app config and examples contracts
|
|
105
|
+
- Updated dependencies
|
|
106
|
+
- @contractspec/module.learning-journey@1.45.1
|
|
107
|
+
- @contractspec/lib.contracts@1.45.1
|
|
108
|
+
- @contractspec/lib.schema@1.45.1
|
|
109
|
+
|
|
110
|
+
## 1.45.0
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
115
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
116
|
+
|
|
117
|
+
### New CLI Commands
|
|
118
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
119
|
+
|
|
120
|
+
### Enhanced Commands
|
|
121
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
122
|
+
- `contractspec doctor` - New `layers` health checks
|
|
123
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
124
|
+
|
|
125
|
+
### New APIs
|
|
126
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
127
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
128
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
129
|
+
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- Updated dependencies [e73ca1d]
|
|
133
|
+
- @contractspec/module.learning-journey@1.45.0
|
|
134
|
+
- @contractspec/lib.contracts@1.45.0
|
|
135
|
+
- @contractspec/lib.schema@1.45.0
|
|
136
|
+
|
|
137
|
+
## 1.44.1
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- 3c594fb: fix
|
|
142
|
+
- Updated dependencies [3c594fb]
|
|
143
|
+
- @contractspec/module.learning-journey@1.44.1
|
|
144
|
+
- @contractspec/lib.contracts@1.44.1
|
|
145
|
+
- @contractspec/lib.schema@1.44.1
|
|
146
|
+
|
|
147
|
+
## 1.44.0
|
|
148
|
+
|
|
149
|
+
### Minor Changes
|
|
150
|
+
|
|
151
|
+
- 5f3a868: chore: isolate branding to contractspec.io
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- Updated dependencies [5f3a868]
|
|
156
|
+
- @contractspec/module.learning-journey@1.44.0
|
|
157
|
+
- @contractspec/lib.contracts@1.44.0
|
|
158
|
+
- @contractspec/lib.schema@1.44.0
|
|
159
|
+
|
|
160
|
+
## 1.43.4
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- 9216062: fix: cross-platform compatibility
|
|
165
|
+
- Updated dependencies [9216062]
|
|
166
|
+
- @contractspec/module.learning-journey@1.43.4
|
|
167
|
+
- @contractspec/lib.contracts@1.43.4
|
|
168
|
+
- @contractspec/lib.schema@1.43.3
|
|
169
|
+
|
|
170
|
+
## 1.43.3
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- 24d9759: improve documentation
|
|
175
|
+
- Updated dependencies [24d9759]
|
|
176
|
+
- @contractspec/module.learning-journey@1.43.3
|
|
177
|
+
- @contractspec/lib.contracts@1.43.3
|
|
178
|
+
- @contractspec/lib.schema@1.43.2
|
|
179
|
+
|
|
180
|
+
## 1.43.2
|
|
181
|
+
|
|
182
|
+
### Patch Changes
|
|
183
|
+
|
|
184
|
+
- e147271: fix: improve stability
|
|
185
|
+
- Updated dependencies [e147271]
|
|
186
|
+
- @contractspec/module.learning-journey@1.43.2
|
|
187
|
+
- @contractspec/lib.contracts@1.43.2
|
|
188
|
+
- @contractspec/lib.schema@1.43.1
|
|
189
|
+
|
|
190
|
+
## 1.43.1
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- Updated dependencies [f28fdad]
|
|
195
|
+
- @contractspec/lib.contracts@1.43.1
|
|
196
|
+
- @contractspec/module.learning-journey@1.43.1
|
|
197
|
+
|
|
198
|
+
## 1.43.0
|
|
199
|
+
|
|
200
|
+
### Minor Changes
|
|
201
|
+
|
|
202
|
+
- 042d072: feat: schema declaration using json schema, including zod
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- Updated dependencies [042d072]
|
|
207
|
+
- @contractspec/module.learning-journey@1.43.0
|
|
208
|
+
- @contractspec/lib.contracts@1.43.0
|
|
209
|
+
- @contractspec/lib.schema@1.43.0
|
|
210
|
+
|
|
211
|
+
## 1.42.10
|
|
212
|
+
|
|
213
|
+
### Patch Changes
|
|
214
|
+
|
|
215
|
+
- 1e6a0f1: fix: mcp server
|
|
216
|
+
- Updated dependencies [1e6a0f1]
|
|
217
|
+
- @contractspec/module.learning-journey@1.42.10
|
|
218
|
+
- @contractspec/lib.contracts@1.42.10
|
|
219
|
+
- @contractspec/lib.schema@1.42.10
|
|
220
|
+
|
|
221
|
+
## 1.42.9
|
|
222
|
+
|
|
223
|
+
### Patch Changes
|
|
224
|
+
|
|
225
|
+
- 9281db7: fix ModelRegistry
|
|
226
|
+
- Updated dependencies [9281db7]
|
|
227
|
+
- @contractspec/module.learning-journey@1.42.9
|
|
228
|
+
- @contractspec/lib.contracts@1.42.9
|
|
229
|
+
- @contractspec/lib.schema@1.42.9
|
|
230
|
+
|
|
231
|
+
## 1.42.8
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- e07b5ac: fix
|
|
236
|
+
- Updated dependencies [e07b5ac]
|
|
237
|
+
- @contractspec/module.learning-journey@1.42.8
|
|
238
|
+
- @contractspec/lib.contracts@1.42.8
|
|
239
|
+
- @contractspec/lib.schema@1.42.8
|
|
240
|
+
|
|
241
|
+
## 1.42.7
|
|
242
|
+
|
|
243
|
+
### Patch Changes
|
|
244
|
+
|
|
245
|
+
- e9b575d: fix release
|
|
246
|
+
- Updated dependencies [e9b575d]
|
|
247
|
+
- @contractspec/module.learning-journey@1.42.7
|
|
248
|
+
- @contractspec/lib.contracts@1.42.7
|
|
249
|
+
- @contractspec/lib.schema@1.42.7
|
|
250
|
+
|
|
251
|
+
## 1.42.6
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- 1500242: fix tooling
|
|
256
|
+
- Updated dependencies [1500242]
|
|
257
|
+
- @contractspec/module.learning-journey@1.42.6
|
|
258
|
+
- @contractspec/lib.contracts@1.42.6
|
|
259
|
+
- @contractspec/lib.schema@1.42.6
|
|
260
|
+
|
|
261
|
+
## 1.42.5
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- 1299719: fix vscode
|
|
266
|
+
- Updated dependencies [1299719]
|
|
267
|
+
- @contractspec/module.learning-journey@1.42.5
|
|
268
|
+
- @contractspec/lib.contracts@1.42.5
|
|
269
|
+
- @contractspec/lib.schema@1.42.5
|
|
270
|
+
|
|
271
|
+
## 1.42.4
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- ac28b99: fix: generate from openapi
|
|
276
|
+
- Updated dependencies [ac28b99]
|
|
277
|
+
- @contractspec/module.learning-journey@1.42.4
|
|
278
|
+
- @contractspec/lib.contracts@1.42.4
|
|
279
|
+
- @contractspec/lib.schema@1.42.4
|
|
280
|
+
|
|
281
|
+
## 1.42.3
|
|
282
|
+
|
|
283
|
+
### Patch Changes
|
|
284
|
+
|
|
285
|
+
- 3f5d015: fix(tooling): cicd
|
|
286
|
+
- Updated dependencies [3f5d015]
|
|
287
|
+
- @contractspec/lib.contracts@1.42.3
|
|
288
|
+
- @contractspec/lib.schema@1.42.3
|
|
289
|
+
- @contractspec/module.learning-journey@1.42.3
|
|
290
|
+
|
|
291
|
+
## 1.42.2
|
|
292
|
+
|
|
293
|
+
### Patch Changes
|
|
294
|
+
|
|
295
|
+
- 1f9ac4c: fix
|
|
296
|
+
- Updated dependencies [1f9ac4c]
|
|
297
|
+
- @contractspec/lib.contracts@1.42.2
|
|
298
|
+
- @contractspec/lib.schema@1.42.2
|
|
299
|
+
- @contractspec/module.learning-journey@1.42.2
|
|
300
|
+
|
|
301
|
+
## 1.42.1
|
|
302
|
+
|
|
303
|
+
### Patch Changes
|
|
304
|
+
|
|
305
|
+
- f043995: Fix release
|
|
306
|
+
- Updated dependencies [f043995]
|
|
307
|
+
- @contractspec/module.learning-journey@1.42.1
|
|
308
|
+
- @contractspec/lib.contracts@1.42.1
|
|
309
|
+
- @contractspec/lib.schema@1.42.1
|
|
310
|
+
|
|
311
|
+
## 1.42.0
|
|
312
|
+
|
|
313
|
+
### Minor Changes
|
|
314
|
+
|
|
315
|
+
- 8eefd9c: initial release
|
|
316
|
+
|
|
317
|
+
### Patch Changes
|
|
318
|
+
|
|
319
|
+
- Updated dependencies [8eefd9c]
|
|
320
|
+
- @contractspec/lib.contracts@1.42.0
|
|
321
|
+
- @contractspec/lib.schema@1.42.0
|
|
322
|
+
- @contractspec/module.learning-journey@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,37 @@
|
|
|
1
|
+
# @contractspec/example.learning-journey-ambient-coach
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Ambient coach learning journey example that surfaces contextual tips based on user behavior and marks completion when acknowledged or acted upon.
|
|
7
|
+
|
|
8
|
+
## What it shows
|
|
9
|
+
|
|
10
|
+
- Tip/insight model with trigger → show → acknowledge/action events
|
|
11
|
+
- Track steps for money and coliving behaviors
|
|
12
|
+
- Event and count-based completion with optional action follow-ups
|
|
13
|
+
- XP/engagement increments for acting on tips
|
|
14
|
+
|
|
15
|
+
## How to run
|
|
16
|
+
|
|
17
|
+
1. `bun test packages/examples/learning-journey-ambient-coach`
|
|
18
|
+
2. Use registry helper `recordEvent` with events like:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
recordEvent({
|
|
22
|
+
name: 'coach.tip.triggered',
|
|
23
|
+
learnerId: 'u1',
|
|
24
|
+
payload: { tipId: 'cash_buffer_too_high' },
|
|
25
|
+
});
|
|
26
|
+
recordEvent({
|
|
27
|
+
name: 'coach.tip.follow_up_action_taken',
|
|
28
|
+
learnerId: 'u1',
|
|
29
|
+
payload: { tipId: 'cash_buffer_too_high' },
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Adapting
|
|
34
|
+
|
|
35
|
+
- Swap categories for your domain (money, coliving, product adoption).
|
|
36
|
+
- Adjust trigger payload filters to align with analytics events.
|
|
37
|
+
- Add more steps or split tracks per persona/segment.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/ambient-coach.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.learning-journey.ambient-coach",
|
|
6
|
+
title: "Learning Journey — Ambient Coach",
|
|
7
|
+
summary: "Context-aware coaching pattern that triggers tips, shows them, and marks completion when users act or acknowledge.",
|
|
8
|
+
kind: "reference",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/learning-journey/ambient-coach",
|
|
11
|
+
tags: [
|
|
12
|
+
"learning",
|
|
13
|
+
"coach",
|
|
14
|
+
"tips"
|
|
15
|
+
],
|
|
16
|
+
body: `## Tracks
|
|
17
|
+
- \`money_ambient_coach\`: cash buffer too high, no savings goal, irregular savings
|
|
18
|
+
- \`coliving_ambient_coach\`: noise late evening, guest frequency high, shared space conflicts
|
|
19
|
+
|
|
20
|
+
## Steps & Events
|
|
21
|
+
- Trigger tip: \`coach.tip.triggered\` (payload includes \`tipId\`)
|
|
22
|
+
- Show tip (optional UI emission): \`coach.tip.shown\`
|
|
23
|
+
- Complete when acknowledged or follow-up action taken:
|
|
24
|
+
- \`coach.tip.acknowledged\`
|
|
25
|
+
- \`coach.tip.follow_up_action_taken\`
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
- Tracks export from \`@contractspec/example.learning-journey-ambient-coach/track\`.
|
|
29
|
+
- Registry progression is event-driven; payload filters can scope tips per category.
|
|
30
|
+
- XP/engagement can be awarded on completion of each tip step.`
|
|
31
|
+
}]);
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//# sourceMappingURL=ambient-coach.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ambient-coach.docblock.js","names":[],"sources":["../../src/docs/ambient-coach.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst ambientCoachDocBlocks: DocBlock[] = [\n {\n id: 'docs.learning-journey.ambient-coach',\n title: 'Learning Journey — Ambient Coach',\n summary:\n 'Context-aware coaching pattern that triggers tips, shows them, and marks completion when users act or acknowledge.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/learning-journey/ambient-coach',\n tags: ['learning', 'coach', 'tips'],\n body: `## Tracks\n- \\`money_ambient_coach\\`: cash buffer too high, no savings goal, irregular savings\n- \\`coliving_ambient_coach\\`: noise late evening, guest frequency high, shared space conflicts\n\n## Steps & Events\n- Trigger tip: \\`coach.tip.triggered\\` (payload includes \\`tipId\\`)\n- Show tip (optional UI emission): \\`coach.tip.shown\\`\n- Complete when acknowledged or follow-up action taken:\n - \\`coach.tip.acknowledged\\`\n - \\`coach.tip.follow_up_action_taken\\`\n\n## Usage\n- Tracks export from \\`@contractspec/example.learning-journey-ambient-coach/track\\`.\n- Registry progression is event-driven; payload filters can scope tips per category.\n- XP/engagement can be awarded on completion of each tip step.`,\n },\n];\n\nregisterDocBlocks(ambientCoachDocBlocks);\n"],"mappings":";;;AA+BA,kBA5B0C,CACxC;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAY;EAAS;EAAO;CACnC,MAAM;;;;;;;;;;;;;;;CAeP,CACF,CAEuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./ambient-coach.docblock.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA0BJ,4BAAA,CA1BW"}
|
package/dist/example.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/example.ts
|
|
4
|
+
const example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "learning-journey-ambient-coach",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Learning Journey — Ambient Coach",
|
|
9
|
+
description: "Ambient coaching pattern: lightweight nudges driven by context and recent progress.",
|
|
10
|
+
kind: "template",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: [
|
|
15
|
+
"learning",
|
|
16
|
+
"coaching",
|
|
17
|
+
"ambient"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
docs: { rootDocId: "docs.learning-journey.ambient-coach" },
|
|
21
|
+
entrypoints: {
|
|
22
|
+
packageName: "@contractspec/example.learning-journey-ambient-coach",
|
|
23
|
+
docs: "./docs"
|
|
24
|
+
},
|
|
25
|
+
surfaces: {
|
|
26
|
+
templates: true,
|
|
27
|
+
sandbox: {
|
|
28
|
+
enabled: true,
|
|
29
|
+
modes: ["playground", "markdown"]
|
|
30
|
+
},
|
|
31
|
+
studio: {
|
|
32
|
+
enabled: true,
|
|
33
|
+
installable: true
|
|
34
|
+
},
|
|
35
|
+
mcp: { enabled: true }
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
var example_default = example;
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { example_default as default };
|
|
42
|
+
//# 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: 'learning-journey-ambient-coach',\n version: '1.0.0',\n title: 'Learning Journey — Ambient Coach',\n description:\n 'Ambient coaching pattern: lightweight nudges driven by context and recent progress.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'coaching', 'ambient'],\n },\n docs: {\n rootDocId: 'docs.learning-journey.ambient-coach',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-ambient-coach',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['playground', '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;GAAY;GAAY;GAAU;EAC1C;CACD,MAAM,EACJ,WAAW,uCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,cAAc,WAAW;GAAE;EAC7D,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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import example_default from "./example.js";
|
|
2
|
+
import { ambientCoachTracks, colivingAmbientCoachTrack, moneyAmbientCoachTrack } from "./track.js";
|
|
3
|
+
import "./docs/index.js";
|
|
4
|
+
|
|
5
|
+
export { ambientCoachTracks, colivingAmbientCoachTrack, example_default as example, moneyAmbientCoachTrack };
|
package/dist/track.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LearningJourneyTrackSpec } from "@contractspec/module.learning-journey/track-spec";
|
|
2
|
+
|
|
3
|
+
//#region src/track.d.ts
|
|
4
|
+
declare const moneyAmbientCoachTrack: LearningJourneyTrackSpec;
|
|
5
|
+
declare const colivingAmbientCoachTrack: LearningJourneyTrackSpec;
|
|
6
|
+
declare const ambientCoachTracks: LearningJourneyTrackSpec[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ambientCoachTracks, colivingAmbientCoachTrack, moneyAmbientCoachTrack };
|
|
9
|
+
//# sourceMappingURL=track.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.d.ts","names":[],"sources":["../src/track.ts"],"sourcesContent":[],"mappings":";;;cAmBa,wBAAwB;cA0BxB,2BAA2B;AA1B3B,cAmDA,kBA3BZ,EA2BgC,wBA3BhC,EAAA"}
|
package/dist/track.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region src/track.ts
|
|
2
|
+
const makeTipStep = (id, tipId, description) => ({
|
|
3
|
+
id,
|
|
4
|
+
title: `Resolve tip: ${tipId}`,
|
|
5
|
+
description,
|
|
6
|
+
completion: {
|
|
7
|
+
kind: "event",
|
|
8
|
+
eventName: "coach.tip.follow_up_action_taken",
|
|
9
|
+
payloadFilter: { tipId }
|
|
10
|
+
},
|
|
11
|
+
xpReward: 20,
|
|
12
|
+
metadata: { tipId }
|
|
13
|
+
});
|
|
14
|
+
const moneyAmbientCoachTrack = {
|
|
15
|
+
id: "money_ambient_coach",
|
|
16
|
+
name: "Ambient Coach — Money",
|
|
17
|
+
description: "Subtle coaching for money patterns (cash buffer, goals, saving rhythm).",
|
|
18
|
+
targetUserSegment: "money_user",
|
|
19
|
+
totalXp: 60,
|
|
20
|
+
steps: [
|
|
21
|
+
makeTipStep("cash_buffer_too_high", "cash_buffer_too_high", "Suggest sweeping excess cash into goals."),
|
|
22
|
+
makeTipStep("no_savings_goal", "no_savings_goal", "Prompt setting a first savings goal."),
|
|
23
|
+
makeTipStep("irregular_savings", "irregular_savings", "Recommend recurring saves after irregular deposits.")
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
const colivingAmbientCoachTrack = {
|
|
27
|
+
id: "coliving_ambient_coach",
|
|
28
|
+
name: "Ambient Coach — Coliving",
|
|
29
|
+
description: "Contextual tips for healthy coliving habits.",
|
|
30
|
+
targetUserSegment: "coliving",
|
|
31
|
+
totalXp: 60,
|
|
32
|
+
steps: [
|
|
33
|
+
makeTipStep("noise_late_evening", "noise_late_evening", "Suggest updating quiet hours to reduce evening noise."),
|
|
34
|
+
makeTipStep("guest_frequency_high", "guest_frequency_high", "Set guest frequency expectations for the house."),
|
|
35
|
+
makeTipStep("shared_space_conflicts", "shared_space_conflicts", "Offer a shared-space checklist to reduce conflicts.")
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
const ambientCoachTracks = [moneyAmbientCoachTrack, colivingAmbientCoachTrack];
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ambientCoachTracks, colivingAmbientCoachTrack, moneyAmbientCoachTrack };
|
|
42
|
+
//# sourceMappingURL=track.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.js","names":[],"sources":["../src/track.ts"],"sourcesContent":["import type { LearningJourneyTrackSpec } from '@contractspec/module.learning-journey/track-spec';\n\nconst makeTipStep = (\n id: string,\n tipId: string,\n description: string\n): LearningJourneyTrackSpec['steps'][number] => ({\n id,\n title: `Resolve tip: ${tipId}`,\n description,\n completion: {\n kind: 'event',\n eventName: 'coach.tip.follow_up_action_taken',\n payloadFilter: { tipId },\n },\n xpReward: 20,\n metadata: { tipId },\n});\n\nexport const moneyAmbientCoachTrack: LearningJourneyTrackSpec = {\n id: 'money_ambient_coach',\n name: 'Ambient Coach — Money',\n description:\n 'Subtle coaching for money patterns (cash buffer, goals, saving rhythm).',\n targetUserSegment: 'money_user',\n totalXp: 60,\n steps: [\n makeTipStep(\n 'cash_buffer_too_high',\n 'cash_buffer_too_high',\n 'Suggest sweeping excess cash into goals.'\n ),\n makeTipStep(\n 'no_savings_goal',\n 'no_savings_goal',\n 'Prompt setting a first savings goal.'\n ),\n makeTipStep(\n 'irregular_savings',\n 'irregular_savings',\n 'Recommend recurring saves after irregular deposits.'\n ),\n ],\n};\n\nexport const colivingAmbientCoachTrack: LearningJourneyTrackSpec = {\n id: 'coliving_ambient_coach',\n name: 'Ambient Coach — Coliving',\n description: 'Contextual tips for healthy coliving habits.',\n targetUserSegment: 'coliving',\n totalXp: 60,\n steps: [\n makeTipStep(\n 'noise_late_evening',\n 'noise_late_evening',\n 'Suggest updating quiet hours to reduce evening noise.'\n ),\n makeTipStep(\n 'guest_frequency_high',\n 'guest_frequency_high',\n 'Set guest frequency expectations for the house.'\n ),\n makeTipStep(\n 'shared_space_conflicts',\n 'shared_space_conflicts',\n 'Offer a shared-space checklist to reduce conflicts.'\n ),\n ],\n};\n\nexport const ambientCoachTracks: LearningJourneyTrackSpec[] = [\n moneyAmbientCoachTrack,\n colivingAmbientCoachTrack,\n];\n"],"mappings":";AAEA,MAAM,eACJ,IACA,OACA,iBAC+C;CAC/C;CACA,OAAO,gBAAgB;CACvB;CACA,YAAY;EACV,MAAM;EACN,WAAW;EACX,eAAe,EAAE,OAAO;EACzB;CACD,UAAU;CACV,UAAU,EAAE,OAAO;CACpB;AAED,MAAa,yBAAmD;CAC9D,IAAI;CACJ,MAAM;CACN,aACE;CACF,mBAAmB;CACnB,SAAS;CACT,OAAO;EACL,YACE,wBACA,wBACA,2CACD;EACD,YACE,mBACA,mBACA,uCACD;EACD,YACE,qBACA,qBACA,sDACD;EACF;CACF;AAED,MAAa,4BAAsD;CACjE,IAAI;CACJ,MAAM;CACN,aAAa;CACb,mBAAmB;CACnB,SAAS;CACT,OAAO;EACL,YACE,sBACA,sBACA,wDACD;EACD,YACE,wBACA,wBACA,kDACD;EACD,YACE,0BACA,0BACA,sDACD;EACF;CACF;AAED,MAAa,qBAAiD,CAC5D,wBACA,0BACD"}
|
package/example.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/example';
|