@contractspec/example.learning-patterns 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.
Files changed (49) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +39 -0
  2. package/.turbo/turbo-build.log +40 -0
  3. package/CHANGELOG.md +322 -0
  4. package/LICENSE +21 -0
  5. package/README.md +15 -0
  6. package/dist/docs/index.d.ts +1 -0
  7. package/dist/docs/index.js +1 -0
  8. package/dist/docs/learning-patterns.docblock.d.ts +1 -0
  9. package/dist/docs/learning-patterns.docblock.js +31 -0
  10. package/dist/docs/learning-patterns.docblock.js.map +1 -0
  11. package/dist/events.d.ts +16 -0
  12. package/dist/events.d.ts.map +1 -0
  13. package/dist/events.js +16 -0
  14. package/dist/events.js.map +1 -0
  15. package/dist/example.d.ts +7 -0
  16. package/dist/example.d.ts.map +1 -0
  17. package/dist/example.js +42 -0
  18. package/dist/example.js.map +1 -0
  19. package/dist/index.d.ts +6 -0
  20. package/dist/index.js +9 -0
  21. package/dist/tracks/ambient-coach.d.ts +8 -0
  22. package/dist/tracks/ambient-coach.d.ts.map +1 -0
  23. package/dist/tracks/ambient-coach.js +48 -0
  24. package/dist/tracks/ambient-coach.js.map +1 -0
  25. package/dist/tracks/drills.d.ts +8 -0
  26. package/dist/tracks/drills.d.ts.map +1 -0
  27. package/dist/tracks/drills.js +54 -0
  28. package/dist/tracks/drills.js.map +1 -0
  29. package/dist/tracks/index.d.ts +4 -0
  30. package/dist/tracks/index.js +5 -0
  31. package/dist/tracks/quests.d.ts +8 -0
  32. package/dist/tracks/quests.d.ts.map +1 -0
  33. package/dist/tracks/quests.js +56 -0
  34. package/dist/tracks/quests.js.map +1 -0
  35. package/example.ts +1 -0
  36. package/package.json +65 -0
  37. package/src/docs/index.ts +1 -0
  38. package/src/docs/learning-patterns.docblock.ts +30 -0
  39. package/src/events.ts +16 -0
  40. package/src/example.ts +31 -0
  41. package/src/index.ts +10 -0
  42. package/src/learning-patterns.test.ts +256 -0
  43. package/src/tracks/ambient-coach.ts +44 -0
  44. package/src/tracks/drills.ts +51 -0
  45. package/src/tracks/index.ts +3 -0
  46. package/src/tracks/quests.ts +44 -0
  47. package/tsconfig.json +19 -0
  48. package/tsconfig.tsbuildinfo +1 -0
  49. package/tsdown.config.js +7 -0
@@ -0,0 +1,39 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-patterns/tsdown.config.js
4
+ ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/docs/index.ts, src/docs/learning-patterns.docblock.ts, src/tracks/ambient-coach.ts, src/tracks/drills.ts, src/tracks/index.ts, src/tracks/quests.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 31 files
9
+ ℹ dist/tracks/drills.js 1.21 kB │ gzip: 0.59 kB
10
+ ℹ dist/docs/learning-patterns.docblock.js 1.15 kB │ gzip: 0.57 kB
11
+ ℹ dist/tracks/quests.js 1.11 kB │ gzip: 0.48 kB
12
+ ℹ dist/tracks/ambient-coach.js 1.07 kB │ gzip: 0.48 kB
13
+ ℹ dist/example.js 0.92 kB │ gzip: 0.49 kB
14
+ ℹ dist/events.js 0.53 kB │ gzip: 0.31 kB
15
+ ℹ dist/index.js 0.50 kB │ gzip: 0.20 kB
16
+ ℹ dist/tracks/index.js 0.29 kB │ gzip: 0.12 kB
17
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
18
+ ℹ dist/tracks/drills.js.map 2.05 kB │ gzip: 0.84 kB
19
+ ℹ dist/tracks/quests.js.map 1.87 kB │ gzip: 0.73 kB
20
+ ℹ dist/tracks/ambient-coach.js.map 1.77 kB │ gzip: 0.73 kB
21
+ ℹ dist/docs/learning-patterns.docblock.js.map 1.65 kB │ gzip: 0.74 kB
22
+ ℹ dist/example.js.map 1.35 kB │ gzip: 0.68 kB
23
+ ℹ dist/events.js.map 0.82 kB │ gzip: 0.45 kB
24
+ ℹ dist/events.d.ts.map 0.20 kB │ gzip: 0.16 kB
25
+ ℹ dist/tracks/ambient-coach.d.ts.map 0.16 kB │ gzip: 0.14 kB
26
+ ℹ dist/tracks/drills.d.ts.map 0.14 kB │ gzip: 0.13 kB
27
+ ℹ dist/tracks/quests.d.ts.map 0.14 kB │ gzip: 0.13 kB
28
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
29
+ ℹ dist/events.d.ts 0.73 kB │ gzip: 0.36 kB
30
+ ℹ dist/index.d.ts 0.46 kB │ gzip: 0.19 kB
31
+ ℹ dist/tracks/ambient-coach.d.ts 0.36 kB │ gzip: 0.20 kB
32
+ ℹ dist/tracks/drills.d.ts 0.32 kB │ gzip: 0.19 kB
33
+ ℹ dist/tracks/quests.d.ts 0.32 kB │ gzip: 0.19 kB
34
+ ℹ dist/tracks/index.d.ts 0.29 kB │ gzip: 0.12 kB
35
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
36
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
37
+ ℹ dist/docs/learning-patterns.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
38
+ ℹ 29 files, total: 19.87 kB
39
+ ✔ Build complete in 15802ms
@@ -0,0 +1,40 @@
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
3
+ $ tsdown
4
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
5
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-patterns/tsdown.config.js
6
+ ℹ entry: src/events.ts, src/example.ts, src/index.ts, src/docs/index.ts, src/docs/learning-patterns.docblock.ts, src/tracks/ambient-coach.ts, src/tracks/drills.ts, src/tracks/index.ts, src/tracks/quests.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/tracks/drills.js 1.21 kB │ gzip: 0.59 kB
11
+ ℹ dist/docs/learning-patterns.docblock.js 1.15 kB │ gzip: 0.57 kB
12
+ ℹ dist/tracks/quests.js 1.11 kB │ gzip: 0.48 kB
13
+ ℹ dist/tracks/ambient-coach.js 1.07 kB │ gzip: 0.48 kB
14
+ ℹ dist/example.js 0.92 kB │ gzip: 0.49 kB
15
+ ℹ dist/events.js 0.53 kB │ gzip: 0.31 kB
16
+ ℹ dist/index.js 0.50 kB │ gzip: 0.20 kB
17
+ ℹ dist/tracks/index.js 0.29 kB │ gzip: 0.12 kB
18
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
19
+ ℹ dist/tracks/drills.js.map 2.05 kB │ gzip: 0.84 kB
20
+ ℹ dist/tracks/quests.js.map 1.87 kB │ gzip: 0.73 kB
21
+ ℹ dist/tracks/ambient-coach.js.map 1.77 kB │ gzip: 0.73 kB
22
+ ℹ dist/docs/learning-patterns.docblock.js.map 1.65 kB │ gzip: 0.74 kB
23
+ ℹ dist/example.js.map 1.35 kB │ gzip: 0.68 kB
24
+ ℹ dist/events.js.map 0.82 kB │ gzip: 0.45 kB
25
+ ℹ dist/events.d.ts.map 0.20 kB │ gzip: 0.16 kB
26
+ ℹ dist/tracks/ambient-coach.d.ts.map 0.16 kB │ gzip: 0.14 kB
27
+ ℹ dist/tracks/drills.d.ts.map 0.14 kB │ gzip: 0.13 kB
28
+ ℹ dist/tracks/quests.d.ts.map 0.14 kB │ gzip: 0.13 kB
29
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
30
+ ℹ dist/events.d.ts 0.73 kB │ gzip: 0.36 kB
31
+ ℹ dist/index.d.ts 0.46 kB │ gzip: 0.19 kB
32
+ ℹ dist/tracks/ambient-coach.d.ts 0.36 kB │ gzip: 0.20 kB
33
+ ℹ dist/tracks/drills.d.ts 0.32 kB │ gzip: 0.19 kB
34
+ ℹ dist/tracks/quests.d.ts 0.32 kB │ gzip: 0.19 kB
35
+ ℹ dist/tracks/index.d.ts 0.29 kB │ gzip: 0.12 kB
36
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
37
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
38
+ ℹ dist/docs/learning-patterns.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
39
+ ℹ 29 files, total: 19.87 kB
40
+ ✔ Build complete in 22858ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,322 @@
1
+ # @contractspec/example.learning-patterns
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.3
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.2
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.9
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.8
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.7
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.6
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.5
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.4
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.3
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.2
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,15 @@
1
+ # `@contractspec/example.learning-patterns`
2
+
3
+ Website: https://contractspec.io/
4
+
5
+
6
+ Spec-first learning archetypes designed to be **domain-agnostic**:\n+\n+- **Drills + SRS** (Duolingo-like)\n+- **Ambient Coach** (contextual tips)\n+- **Quests** (3–7 day arcs)\n+\n+All progress is **event-driven** and compatible with `@contractspec/module.learning-journey` track specs.\n+\n+## Exports\n+\n+- `tracks/*`: ready-to-use `LearningJourneyTrackSpec[]`\n+- `events`: event name constants used by the tracks\n+\n+## Running tests\n+\n+```bash\n+bun test\n+```\n+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./learning-patterns.docblock.js";
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,31 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/learning-patterns.docblock.ts
4
+ registerDocBlocks([{
5
+ id: "docs.examples.learning-patterns.goal",
6
+ title: "Learning Patterns — Goal",
7
+ summary: "Domain-agnostic drills, ambient coaching, and quests built on Learning Journey.",
8
+ kind: "goal",
9
+ visibility: "public",
10
+ route: "/docs/examples/learning-patterns/goal",
11
+ tags: [
12
+ "learning",
13
+ "drills",
14
+ "quests",
15
+ "coaching"
16
+ ],
17
+ body: `## Why it matters
18
+ - Demonstrates multiple learning archetypes without vertical coupling.\n- Progress is event-driven (no client-side hacks).\n- SRS logic is deterministic and testable.`
19
+ }, {
20
+ id: "docs.examples.learning-patterns.reference",
21
+ title: "Learning Patterns — Reference",
22
+ summary: "Track specs and event names exported by the learning patterns example.",
23
+ kind: "reference",
24
+ visibility: "public",
25
+ route: "/docs/examples/learning-patterns",
26
+ tags: ["learning", "reference"],
27
+ body: `## Tracks\n- Drills + SRS\n- Ambient Coach\n- Quests\n\n## Events\n- drill.*\n- coach.*\n- quest.*`
28
+ }]);
29
+
30
+ //#endregion
31
+ //# sourceMappingURL=learning-patterns.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning-patterns.docblock.js","names":[],"sources":["../../src/docs/learning-patterns.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst docBlocks: DocBlock[] = [\n {\n id: 'docs.examples.learning-patterns.goal',\n title: 'Learning Patterns — Goal',\n summary:\n 'Domain-agnostic drills, ambient coaching, and quests built on Learning Journey.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/learning-patterns/goal',\n tags: ['learning', 'drills', 'quests', 'coaching'],\n body: `## Why it matters\n- Demonstrates multiple learning archetypes without vertical coupling.\\n- Progress is event-driven (no client-side hacks).\\n- SRS logic is deterministic and testable.`,\n },\n {\n id: 'docs.examples.learning-patterns.reference',\n title: 'Learning Patterns — Reference',\n summary:\n 'Track specs and event names exported by the learning patterns example.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/learning-patterns',\n tags: ['learning', 'reference'],\n body: `## Tracks\\n- Drills + SRS\\n- Ambient Coach\\n- Quests\\n\\n## Events\\n- drill.*\\n- coach.*\\n- quest.*`,\n },\n];\n\nregisterDocBlocks(docBlocks);\n"],"mappings":";;;AA6BA,kBA1B8B,CAC5B;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAY;EAAU;EAAU;EAAW;CAClD,MAAM;;CAEP,EACD;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,YAAY,YAAY;CAC/B,MAAM;CACP,CACF,CAE2B"}
@@ -0,0 +1,16 @@
1
+ //#region src/events.d.ts
2
+ declare const LEARNING_EVENTS: {
3
+ readonly DRILL_CARD_ANSWERED: "drill.card.answered";
4
+ readonly DRILL_SESSION_COMPLETED: "drill.session.completed";
5
+ readonly DRILL_CARD_MASTERED: "drill.card.mastered";
6
+ readonly COACH_TIP_TRIGGERED: "coach.tip.triggered";
7
+ readonly COACH_TIP_SHOWN: "coach.tip.shown";
8
+ readonly COACH_TIP_ACKNOWLEDGED: "coach.tip.acknowledged";
9
+ readonly COACH_TIP_ACTION_TAKEN: "coach.tip.actionTaken";
10
+ readonly QUEST_STARTED: "quest.started";
11
+ readonly QUEST_STEP_COMPLETED: "quest.step.completed";
12
+ };
13
+ type LearningEventName = (typeof LEARNING_EVENTS)[keyof typeof LEARNING_EVENTS];
14
+ //#endregion
15
+ export { LEARNING_EVENTS, LearningEventName };
16
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";cAAa;EAAA,SAAA,mBAYH,EAAA,qBAAA;EAEE,SAAA,uBACF,EAAA,yBAA8B;;;;;;;;;KAD5B,iBAAA,WACF,8BAA8B"}
package/dist/events.js ADDED
@@ -0,0 +1,16 @@
1
+ //#region src/events.ts
2
+ const LEARNING_EVENTS = {
3
+ DRILL_CARD_ANSWERED: "drill.card.answered",
4
+ DRILL_SESSION_COMPLETED: "drill.session.completed",
5
+ DRILL_CARD_MASTERED: "drill.card.mastered",
6
+ COACH_TIP_TRIGGERED: "coach.tip.triggered",
7
+ COACH_TIP_SHOWN: "coach.tip.shown",
8
+ COACH_TIP_ACKNOWLEDGED: "coach.tip.acknowledged",
9
+ COACH_TIP_ACTION_TAKEN: "coach.tip.actionTaken",
10
+ QUEST_STARTED: "quest.started",
11
+ QUEST_STEP_COMPLETED: "quest.step.completed"
12
+ };
13
+
14
+ //#endregion
15
+ export { LEARNING_EVENTS };
16
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["export const LEARNING_EVENTS = {\n DRILL_CARD_ANSWERED: 'drill.card.answered',\n DRILL_SESSION_COMPLETED: 'drill.session.completed',\n DRILL_CARD_MASTERED: 'drill.card.mastered',\n\n COACH_TIP_TRIGGERED: 'coach.tip.triggered',\n COACH_TIP_SHOWN: 'coach.tip.shown',\n COACH_TIP_ACKNOWLEDGED: 'coach.tip.acknowledged',\n COACH_TIP_ACTION_TAKEN: 'coach.tip.actionTaken',\n\n QUEST_STARTED: 'quest.started',\n QUEST_STEP_COMPLETED: 'quest.step.completed',\n} as const;\n\nexport type LearningEventName =\n (typeof LEARNING_EVENTS)[keyof typeof LEARNING_EVENTS];\n"],"mappings":";AAAA,MAAa,kBAAkB;CAC7B,qBAAqB;CACrB,yBAAyB;CACzB,qBAAqB;CAErB,qBAAqB;CACrB,iBAAiB;CACjB,wBAAwB;CACxB,wBAAwB;CAExB,eAAe;CACf,sBAAsB;CACvB"}
@@ -0,0 +1,7 @@
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/example.d.ts
4
+ declare const example: _contractspec_lib_contracts0.ExampleSpec;
5
+ //#endregion
6
+ export { example as default };
7
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA0BJ,4BAAA,CA1BW"}
@@ -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-patterns",
7
+ version: "1.0.0",
8
+ title: "Learning Patterns",
9
+ description: "Domain-agnostic learning archetypes implemented as Learning Journey tracks.",
10
+ kind: "library",
11
+ visibility: "public",
12
+ stability: "experimental",
13
+ owners: ["@platform.core"],
14
+ tags: [
15
+ "learning",
16
+ "journey",
17
+ "patterns"
18
+ ]
19
+ },
20
+ docs: { rootDocId: "docs.examples.learning-patterns" },
21
+ entrypoints: {
22
+ packageName: "@contractspec/example.learning-patterns",
23
+ docs: "./docs"
24
+ },
25
+ surfaces: {
26
+ templates: true,
27
+ sandbox: {
28
+ enabled: true,
29
+ modes: ["markdown", "specs"]
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-patterns',\n version: '1.0.0',\n title: 'Learning Patterns',\n description:\n 'Domain-agnostic learning archetypes implemented as Learning Journey tracks.',\n kind: 'library',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'journey', 'patterns'],\n },\n docs: {\n rootDocId: 'docs.examples.learning-patterns',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-patterns',\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;GAAY;GAAW;GAAW;EAC1C;CACD,MAAM,EACJ,WAAW,mCACZ;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"}
@@ -0,0 +1,6 @@
1
+ import { LEARNING_EVENTS, LearningEventName } from "./events.js";
2
+ import example from "./example.js";
3
+ import { drillTracks, drillsTrack } from "./tracks/drills.js";
4
+ import { ambientCoachTrack, ambientCoachTracks } from "./tracks/ambient-coach.js";
5
+ import { questTrack, questTracks } from "./tracks/quests.js";
6
+ export { LEARNING_EVENTS, LearningEventName, ambientCoachTrack, ambientCoachTracks, drillTracks, drillsTrack, example, questTrack, questTracks };
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { LEARNING_EVENTS } from "./events.js";
2
+ import example_default from "./example.js";
3
+ import { drillTracks, drillsTrack } from "./tracks/drills.js";
4
+ import { ambientCoachTrack, ambientCoachTracks } from "./tracks/ambient-coach.js";
5
+ import { questTrack, questTracks } from "./tracks/quests.js";
6
+ import "./tracks/index.js";
7
+ import "./docs/index.js";
8
+
9
+ export { LEARNING_EVENTS, ambientCoachTrack, ambientCoachTracks, drillTracks, drillsTrack, example_default as example, questTrack, questTracks };
@@ -0,0 +1,8 @@
1
+ import { LearningJourneyTrackSpec } from "@contractspec/module.learning-journey/track-spec";
2
+
3
+ //#region src/tracks/ambient-coach.d.ts
4
+ declare const ambientCoachTrack: LearningJourneyTrackSpec;
5
+ declare const ambientCoachTracks: LearningJourneyTrackSpec[];
6
+ //#endregion
7
+ export { ambientCoachTrack, ambientCoachTracks };
8
+ //# sourceMappingURL=ambient-coach.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ambient-coach.d.ts","names":[],"sources":["../../src/tracks/ambient-coach.ts"],"sourcesContent":[],"mappings":";;;cAGa,mBAAmB;cAsCnB,oBAAoB"}