@contractspec/example.learning-journey-duo-drills 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 +41 -0
- package/dist/docs/duo-drills.docblock.d.ts +1 -0
- package/dist/docs/duo-drills.docblock.js +36 -0
- package/dist/docs/duo-drills.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 +43 -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 +8 -0
- package/dist/track.d.ts.map +1 -0
- package/dist/track.js +66 -0
- package/dist/track.js.map +1 -0
- package/example.ts +1 -0
- package/package.json +57 -0
- package/src/docs/duo-drills.docblock.ts +33 -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 +106 -0
- package/src/track.ts +62 -0
- package/tsconfig.json +18 -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-duo-drills/tsdown.config.js[24m
|
|
4
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/track.ts, src/docs/duo-drills.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.71 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/duo-drills.docblock.js[22m [2m1.43 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.99 kB[22m [2m│ gzip: 0.54 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.22 kB[22m [2m│ gzip: 0.13 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.73 kB[22m [2m│ gzip: 1.08 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22mdocs/duo-drills.docblock.js.map [2m1.84 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.43 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.20 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.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/duo-drills.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.44 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m15476ms[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-duo-drills/tsdown.config.js[24m
|
|
6
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/track.ts, src/docs/duo-drills.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.71 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/duo-drills.docblock.js[22m [2m1.43 kB[22m [2m│ gzip: 0.79 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.99 kB[22m [2m│ gzip: 0.54 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.22 kB[22m [2m│ gzip: 0.13 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.73 kB[22m [2m│ gzip: 1.08 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mdocs/duo-drills.docblock.js.map [2m1.84 kB[22m [2m│ gzip: 0.97 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.43 kB[22m [2m│ gzip: 0.74 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.13 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.34 kB[22m [2m│ gzip: 0.20 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.16 kB[22m [2m│ gzip: 0.10 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/duo-drills.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.44 kB
|
|
26
|
+
[32m✔[39m Build complete in [32m21815ms[39m
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# @contractspec/example.learning-journey-duo-drills
|
|
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,41 @@
|
|
|
1
|
+
# @contractspec/example.learning-journey-duo-drills
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Drill-based learning journey example that demonstrates short SRS-driven drills, XP, and streak hooks. Tracks are defined in `src/track.ts` and can be reused for language, finance, or ContractSpec concept drills.
|
|
7
|
+
|
|
8
|
+
## What it shows
|
|
9
|
+
|
|
10
|
+
- Event-driven steps (`drill.session.completed`, `drill.card.mastered`)
|
|
11
|
+
- Count-based completion (reach accuracy threshold across multiple sessions)
|
|
12
|
+
- SRS mastery-based completion (master N cards in a skill)
|
|
13
|
+
- XP per card/session and daily streak (via registry progress logic)
|
|
14
|
+
|
|
15
|
+
## How to run
|
|
16
|
+
|
|
17
|
+
1. Build dependencies: `bun install`
|
|
18
|
+
2. Run tests: `bun test packages/examples/learning-journey-duo-drills`
|
|
19
|
+
3. Use the registry helper to emit events:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
recordEvent,
|
|
24
|
+
getProgress,
|
|
25
|
+
} from '@contractspec/example.learning-journey-registry/api';
|
|
26
|
+
import { drillTracks } from '@contractspec/example.learning-journey-duo-drills/track';
|
|
27
|
+
|
|
28
|
+
recordEvent({
|
|
29
|
+
name: 'drill.session.completed',
|
|
30
|
+
learnerId: 'u1',
|
|
31
|
+
payload: { accuracyBucket: 'high' },
|
|
32
|
+
});
|
|
33
|
+
// ...
|
|
34
|
+
const progress = getProgress('drills_language_basics', 'u1');
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Adapting
|
|
38
|
+
|
|
39
|
+
- Swap skills/cards to represent language vocab, budgeting basics, or ContractSpec concepts.
|
|
40
|
+
- Tune count thresholds, mastery requirements, and XP rewards per step.
|
|
41
|
+
- Wire real drill events into the registry or your own progression handler.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
+
|
|
3
|
+
//#region src/docs/duo-drills.docblock.ts
|
|
4
|
+
registerDocBlocks([{
|
|
5
|
+
id: "docs.learning-journey.duo-drills",
|
|
6
|
+
title: "Learning Journey — Duo Drills",
|
|
7
|
+
summary: "Short drill/SRS example with XP and streak hooks for language, finance, or ContractSpec concept drills.",
|
|
8
|
+
kind: "reference",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
route: "/docs/learning-journey/duo-drills",
|
|
11
|
+
tags: [
|
|
12
|
+
"learning",
|
|
13
|
+
"drills",
|
|
14
|
+
"srs",
|
|
15
|
+
"xp"
|
|
16
|
+
],
|
|
17
|
+
body: `## Track
|
|
18
|
+
- **Key**: \`drills_language_basics\`
|
|
19
|
+
- **Persona**: learner running quick drills (language/finance/spec concepts)
|
|
20
|
+
- **Goal**: complete first session, maintain high-accuracy sessions, master cards in the first skill
|
|
21
|
+
|
|
22
|
+
## Steps & Conditions
|
|
23
|
+
1) \`complete_first_session\` → event \`drill.session.completed\`
|
|
24
|
+
2) \`reach_accuracy_threshold\` → count 3 sessions with payload \`accuracyBucket: "high"\` (within default window)
|
|
25
|
+
3) \`unlock_new_skill\` → SRS mastery: \`drill.card.mastered\` events with \`mastery >= 0.8\`, count 5 cards
|
|
26
|
+
|
|
27
|
+
XP: 20 + 30 + 40. Streak: daily session completion can be used to drive streak rewards.
|
|
28
|
+
|
|
29
|
+
## Wiring
|
|
30
|
+
- Tracks export from \`@contractspec/example.learning-journey-duo-drills/track\`.
|
|
31
|
+
- Use registry helper \`recordEvent\` to advance steps from drill/session events.
|
|
32
|
+
- SRS mastery events should include payload: \`{ skillId, mastery }\`.`
|
|
33
|
+
}]);
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//# sourceMappingURL=duo-drills.docblock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duo-drills.docblock.js","names":[],"sources":["../../src/docs/duo-drills.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst duoDrillsDocBlocks: DocBlock[] = [\n {\n id: 'docs.learning-journey.duo-drills',\n title: 'Learning Journey — Duo Drills',\n summary:\n 'Short drill/SRS example with XP and streak hooks for language, finance, or ContractSpec concept drills.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/learning-journey/duo-drills',\n tags: ['learning', 'drills', 'srs', 'xp'],\n body: `## Track\n- **Key**: \\`drills_language_basics\\`\n- **Persona**: learner running quick drills (language/finance/spec concepts)\n- **Goal**: complete first session, maintain high-accuracy sessions, master cards in the first skill\n\n## Steps & Conditions\n1) \\`complete_first_session\\` → event \\`drill.session.completed\\`\n2) \\`reach_accuracy_threshold\\` → count 3 sessions with payload \\`accuracyBucket: \"high\"\\` (within default window)\n3) \\`unlock_new_skill\\` → SRS mastery: \\`drill.card.mastered\\` events with \\`mastery >= 0.8\\`, count 5 cards\n\nXP: 20 + 30 + 40. Streak: daily session completion can be used to drive streak rewards.\n\n## Wiring\n- Tracks export from \\`@contractspec/example.learning-journey-duo-drills/track\\`.\n- Use registry helper \\`recordEvent\\` to advance steps from drill/session events.\n- SRS mastery events should include payload: \\`{ skillId, mastery }\\`.`,\n },\n];\n\nregisterDocBlocks(duoDrillsDocBlocks);\n"],"mappings":";;;AAgCA,kBA7BuC,CACrC;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAY;EAAU;EAAO;EAAK;CACzC,MAAM;;;;;;;;;;;;;;;;CAgBP,CACF,CAEoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./duo-drills.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,43 @@
|
|
|
1
|
+
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/example.ts
|
|
4
|
+
const example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "learning-journey-duo-drills",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Learning Journey — Duo Drills",
|
|
9
|
+
description: "Short drill/SRS example with XP and streak hooks for language, finance, or ContractSpec concept drills.",
|
|
10
|
+
kind: "template",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: [
|
|
15
|
+
"learning",
|
|
16
|
+
"drills",
|
|
17
|
+
"srs",
|
|
18
|
+
"xp"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
docs: { rootDocId: "docs.learning-journey.duo-drills" },
|
|
22
|
+
entrypoints: {
|
|
23
|
+
packageName: "@contractspec/example.learning-journey-duo-drills",
|
|
24
|
+
docs: "./docs"
|
|
25
|
+
},
|
|
26
|
+
surfaces: {
|
|
27
|
+
templates: true,
|
|
28
|
+
sandbox: {
|
|
29
|
+
enabled: true,
|
|
30
|
+
modes: ["playground", "markdown"]
|
|
31
|
+
},
|
|
32
|
+
studio: {
|
|
33
|
+
enabled: true,
|
|
34
|
+
installable: true
|
|
35
|
+
},
|
|
36
|
+
mcp: { enabled: true }
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var example_default = example;
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { example_default as default };
|
|
43
|
+
//# 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-duo-drills',\n version: '1.0.0',\n title: 'Learning Journey — Duo Drills',\n description:\n 'Short drill/SRS example with XP and streak hooks for language, finance, or ContractSpec concept drills.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'drills', 'srs', 'xp'],\n },\n docs: {\n rootDocId: 'docs.learning-journey.duo-drills',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-duo-drills',\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;GAAU;GAAO;GAAK;EAC1C;CACD,MAAM,EACJ,WAAW,oCACZ;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
package/dist/track.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LearningJourneyTrackSpec } from "@contractspec/module.learning-journey/track-spec";
|
|
2
|
+
|
|
3
|
+
//#region src/track.d.ts
|
|
4
|
+
declare const drillsLanguageBasicsTrack: LearningJourneyTrackSpec;
|
|
5
|
+
declare const drillTracks: LearningJourneyTrackSpec[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { drillTracks, drillsLanguageBasicsTrack };
|
|
8
|
+
//# sourceMappingURL=track.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.d.ts","names":[],"sources":["../src/track.ts"],"sourcesContent":[],"mappings":";;;cAEa,2BAA2B;cAyD3B,aAAa"}
|
package/dist/track.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//#region src/track.ts
|
|
2
|
+
const drillsLanguageBasicsTrack = {
|
|
3
|
+
id: "drills_language_basics",
|
|
4
|
+
name: "Language Basics Drills",
|
|
5
|
+
description: "Short SRS-driven drills to master a first skill, modeled after Duolingo-style sessions.",
|
|
6
|
+
targetUserSegment: "learner",
|
|
7
|
+
targetRole: "individual",
|
|
8
|
+
totalXp: 50,
|
|
9
|
+
completionRewards: { xpBonus: 25 },
|
|
10
|
+
steps: [
|
|
11
|
+
{
|
|
12
|
+
id: "complete_first_session",
|
|
13
|
+
title: "Complete first drill session",
|
|
14
|
+
description: "Finish a drill session to get started.",
|
|
15
|
+
order: 1,
|
|
16
|
+
completion: {
|
|
17
|
+
kind: "event",
|
|
18
|
+
eventName: "drill.session.completed"
|
|
19
|
+
},
|
|
20
|
+
xpReward: 20,
|
|
21
|
+
metadata: { surface: "drills" }
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "reach_accuracy_threshold",
|
|
25
|
+
title: "Hit high accuracy in sessions",
|
|
26
|
+
description: "Achieve three high-accuracy sessions to build confidence.",
|
|
27
|
+
order: 2,
|
|
28
|
+
completion: {
|
|
29
|
+
kind: "count",
|
|
30
|
+
eventName: "drill.session.completed",
|
|
31
|
+
atLeast: 3,
|
|
32
|
+
payloadFilter: { accuracyBucket: "high" }
|
|
33
|
+
},
|
|
34
|
+
xpReward: 30,
|
|
35
|
+
metadata: {
|
|
36
|
+
metric: "accuracy",
|
|
37
|
+
target: ">=85%"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "unlock_new_skill",
|
|
42
|
+
title: "Master core cards in first skill",
|
|
43
|
+
description: "Reach mastery on at least five cards in the first skill to unlock the next one.",
|
|
44
|
+
order: 3,
|
|
45
|
+
completion: {
|
|
46
|
+
kind: "srs_mastery",
|
|
47
|
+
eventName: "drill.card.mastered",
|
|
48
|
+
minimumMastery: .8,
|
|
49
|
+
requiredCount: 5,
|
|
50
|
+
skillIdField: "skillId",
|
|
51
|
+
masteryField: "mastery",
|
|
52
|
+
payloadFilter: { skillId: "language_basics" }
|
|
53
|
+
},
|
|
54
|
+
xpReward: 40,
|
|
55
|
+
metadata: {
|
|
56
|
+
surface: "srs",
|
|
57
|
+
skill: "language_basics"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
const drillTracks = [drillsLanguageBasicsTrack];
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { drillTracks, drillsLanguageBasicsTrack };
|
|
66
|
+
//# 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\nexport const drillsLanguageBasicsTrack: LearningJourneyTrackSpec = {\n id: 'drills_language_basics',\n name: 'Language Basics Drills',\n description:\n 'Short SRS-driven drills to master a first skill, modeled after Duolingo-style sessions.',\n targetUserSegment: 'learner',\n targetRole: 'individual',\n totalXp: 50,\n completionRewards: { xpBonus: 25 },\n steps: [\n {\n id: 'complete_first_session',\n title: 'Complete first drill session',\n description: 'Finish a drill session to get started.',\n order: 1,\n completion: {\n kind: 'event',\n eventName: 'drill.session.completed',\n },\n xpReward: 20,\n metadata: { surface: 'drills' },\n },\n {\n id: 'reach_accuracy_threshold',\n title: 'Hit high accuracy in sessions',\n description: 'Achieve three high-accuracy sessions to build confidence.',\n order: 2,\n completion: {\n kind: 'count',\n eventName: 'drill.session.completed',\n atLeast: 3,\n payloadFilter: { accuracyBucket: 'high' },\n },\n xpReward: 30,\n metadata: { metric: 'accuracy', target: '>=85%' },\n },\n {\n id: 'unlock_new_skill',\n title: 'Master core cards in first skill',\n description:\n 'Reach mastery on at least five cards in the first skill to unlock the next one.',\n order: 3,\n completion: {\n kind: 'srs_mastery',\n eventName: 'drill.card.mastered',\n minimumMastery: 0.8,\n requiredCount: 5,\n skillIdField: 'skillId',\n masteryField: 'mastery',\n payloadFilter: { skillId: 'language_basics' },\n },\n xpReward: 40,\n metadata: { surface: 'srs', skill: 'language_basics' },\n },\n ],\n};\n\nexport const drillTracks: LearningJourneyTrackSpec[] = [\n drillsLanguageBasicsTrack,\n];\n"],"mappings":";AAEA,MAAa,4BAAsD;CACjE,IAAI;CACJ,MAAM;CACN,aACE;CACF,mBAAmB;CACnB,YAAY;CACZ,SAAS;CACT,mBAAmB,EAAE,SAAS,IAAI;CAClC,OAAO;EACL;GACE,IAAI;GACJ,OAAO;GACP,aAAa;GACb,OAAO;GACP,YAAY;IACV,MAAM;IACN,WAAW;IACZ;GACD,UAAU;GACV,UAAU,EAAE,SAAS,UAAU;GAChC;EACD;GACE,IAAI;GACJ,OAAO;GACP,aAAa;GACb,OAAO;GACP,YAAY;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,eAAe,EAAE,gBAAgB,QAAQ;IAC1C;GACD,UAAU;GACV,UAAU;IAAE,QAAQ;IAAY,QAAQ;IAAS;GAClD;EACD;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,OAAO;GACP,YAAY;IACV,MAAM;IACN,WAAW;IACX,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,cAAc;IACd,eAAe,EAAE,SAAS,mBAAmB;IAC9C;GACD,UAAU;GACV,UAAU;IAAE,SAAS;IAAO,OAAO;IAAmB;GACvD;EACF;CACF;AAED,MAAa,cAA0C,CACrD,0BACD"}
|
package/example.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './src/example';
|