@contractspec/example.learning-journey-crm-onboarding 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.
Files changed (56) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +45 -0
  2. package/.turbo/turbo-build.log +46 -0
  3. package/CHANGELOG.md +359 -0
  4. package/LICENSE +21 -0
  5. package/README.md +42 -0
  6. package/dist/docs/crm-onboarding.docblock.d.ts +1 -0
  7. package/dist/docs/crm-onboarding.docblock.js +42 -0
  8. package/dist/docs/crm-onboarding.docblock.js.map +1 -0
  9. package/dist/docs/index.d.ts +1 -0
  10. package/dist/docs/index.js +1 -0
  11. package/dist/example.d.ts +7 -0
  12. package/dist/example.d.ts.map +1 -0
  13. package/dist/example.js +42 -0
  14. package/dist/example.js.map +1 -0
  15. package/dist/handlers/demo.handlers.d.ts +25 -0
  16. package/dist/handlers/demo.handlers.d.ts.map +1 -0
  17. package/dist/handlers/demo.handlers.js +26 -0
  18. package/dist/handlers/demo.handlers.js.map +1 -0
  19. package/dist/index.d.ts +7 -0
  20. package/dist/index.js +9 -0
  21. package/dist/learning-journey-crm-onboarding.feature.d.ts +12 -0
  22. package/dist/learning-journey-crm-onboarding.feature.d.ts.map +1 -0
  23. package/dist/learning-journey-crm-onboarding.feature.js +75 -0
  24. package/dist/learning-journey-crm-onboarding.feature.js.map +1 -0
  25. package/dist/operations/index.d.ts +271 -0
  26. package/dist/operations/index.d.ts.map +1 -0
  27. package/dist/operations/index.js +176 -0
  28. package/dist/operations/index.js.map +1 -0
  29. package/dist/presentations/index.d.ts +9 -0
  30. package/dist/presentations/index.d.ts.map +1 -0
  31. package/dist/presentations/index.js +55 -0
  32. package/dist/presentations/index.js.map +1 -0
  33. package/dist/tests/operations.test-spec.d.ts +7 -0
  34. package/dist/tests/operations.test-spec.d.ts.map +1 -0
  35. package/dist/tests/operations.test-spec.js +36 -0
  36. package/dist/tests/operations.test-spec.js.map +1 -0
  37. package/dist/track.d.ts +8 -0
  38. package/dist/track.d.ts.map +1 -0
  39. package/dist/track.js +99 -0
  40. package/dist/track.js.map +1 -0
  41. package/example.ts +1 -0
  42. package/package.json +67 -0
  43. package/src/docs/crm-onboarding.docblock.ts +40 -0
  44. package/src/docs/index.ts +1 -0
  45. package/src/example.ts +31 -0
  46. package/src/handlers/demo.handlers.ts +51 -0
  47. package/src/index.ts +7 -0
  48. package/src/learning-journey-crm-onboarding.feature.ts +66 -0
  49. package/src/operations/index.test.ts +49 -0
  50. package/src/operations/index.ts +122 -0
  51. package/src/presentations/index.ts +51 -0
  52. package/src/tests/operations.test-spec.ts +31 -0
  53. package/src/track.ts +95 -0
  54. package/tsconfig.json +9 -0
  55. package/tsconfig.tsbuildinfo +1 -0
  56. package/tsdown.config.js +17 -0
@@ -0,0 +1,45 @@
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-journey-crm-onboarding/tsdown.config.js
4
+ ℹ entry: src/example.ts, src/index.ts, src/learning-journey-crm-onboarding.feature.ts, src/track.ts, src/docs/crm-onboarding.docblock.ts, src/docs/index.ts, src/handlers/demo.handlers.ts, src/operations/index.ts, src/presentations/index.ts, src/tests/operations.test-spec.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 40 files
9
+ ℹ dist/operations/index.js 4.24 kB │ gzip: 1.08 kB
10
+ ℹ dist/track.js 2.54 kB │ gzip: 0.81 kB
11
+ ℹ dist/learning-journey-crm-onboarding.feature.js 1.80 kB │ gzip: 0.63 kB
12
+ ℹ dist/docs/crm-onboarding.docblock.js 1.48 kB │ gzip: 0.75 kB
13
+ ℹ dist/presentations/index.js 1.46 kB │ gzip: 0.57 kB
14
+ ℹ dist/index.js 1.01 kB │ gzip: 0.30 kB
15
+ ℹ dist/example.js 0.99 kB │ gzip: 0.54 kB
16
+ ℹ dist/tests/operations.test-spec.js 0.90 kB │ gzip: 0.42 kB
17
+ ℹ dist/handlers/demo.handlers.js 0.77 kB │ gzip: 0.39 kB
18
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
19
+ ℹ dist/operations/index.js.map 6.32 kB │ gzip: 1.60 kB
20
+ ℹ dist/track.js.map 4.06 kB │ gzip: 1.12 kB
21
+ ℹ dist/learning-journey-crm-onboarding.feature.js.map 2.85 kB │ gzip: 1.04 kB
22
+ ℹ dist/presentations/index.js.map 2.14 kB │ gzip: 0.85 kB
23
+ ℹ dist/docs/crm-onboarding.docblock.js.map 1.92 kB │ gzip: 0.92 kB
24
+ ℹ dist/handlers/demo.handlers.js.map 1.59 kB │ gzip: 0.69 kB
25
+ ℹ dist/tests/operations.test-spec.js.map 1.45 kB │ gzip: 0.62 kB
26
+ ℹ dist/example.js.map 1.42 kB │ gzip: 0.73 kB
27
+ ℹ dist/operations/index.d.ts.map 0.84 kB │ gzip: 0.32 kB
28
+ ℹ dist/handlers/demo.handlers.d.ts.map 0.66 kB │ gzip: 0.35 kB
29
+ ℹ dist/learning-journey-crm-onboarding.feature.d.ts.map 0.21 kB │ gzip: 0.16 kB
30
+ ℹ dist/presentations/index.d.ts.map 0.21 kB │ gzip: 0.16 kB
31
+ ℹ dist/tests/operations.test-spec.d.ts.map 0.17 kB │ gzip: 0.14 kB
32
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
33
+ ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
34
+ ℹ dist/operations/index.d.ts 8.80 kB │ gzip: 0.93 kB
35
+ ℹ dist/index.d.ts 0.97 kB │ gzip: 0.29 kB
36
+ ℹ dist/handlers/demo.handlers.d.ts 0.95 kB │ gzip: 0.40 kB
37
+ ℹ dist/presentations/index.d.ts 0.55 kB │ gzip: 0.22 kB
38
+ ℹ dist/learning-journey-crm-onboarding.feature.d.ts 0.50 kB │ gzip: 0.27 kB
39
+ ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
40
+ ℹ dist/tests/operations.test-spec.d.ts 0.28 kB │ gzip: 0.18 kB
41
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
42
+ ℹ dist/docs/crm-onboarding.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
43
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
44
+ ℹ 35 files, total: 51.99 kB
45
+ ✔ Build complete in 3754ms
@@ -0,0 +1,46 @@
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-journey-crm-onboarding/tsdown.config.js
6
+ ℹ entry: src/example.ts, src/index.ts, src/learning-journey-crm-onboarding.feature.ts, src/track.ts, src/docs/crm-onboarding.docblock.ts, src/docs/index.ts, src/handlers/demo.handlers.ts, src/operations/index.ts, src/presentations/index.ts, src/tests/operations.test-spec.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ dist/operations/index.js 4.24 kB │ gzip: 1.08 kB
11
+ ℹ dist/track.js 2.54 kB │ gzip: 0.81 kB
12
+ ℹ dist/learning-journey-crm-onboarding.feature.js 1.80 kB │ gzip: 0.63 kB
13
+ ℹ dist/docs/crm-onboarding.docblock.js 1.48 kB │ gzip: 0.75 kB
14
+ ℹ dist/presentations/index.js 1.46 kB │ gzip: 0.57 kB
15
+ ℹ dist/index.js 1.01 kB │ gzip: 0.30 kB
16
+ ℹ dist/example.js 0.99 kB │ gzip: 0.54 kB
17
+ ℹ dist/tests/operations.test-spec.js 0.90 kB │ gzip: 0.42 kB
18
+ ℹ dist/handlers/demo.handlers.js 0.77 kB │ gzip: 0.39 kB
19
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
20
+ ℹ dist/operations/index.js.map 6.32 kB │ gzip: 1.60 kB
21
+ ℹ dist/track.js.map 4.06 kB │ gzip: 1.12 kB
22
+ ℹ dist/learning-journey-crm-onboarding.feature.js.map 2.85 kB │ gzip: 1.04 kB
23
+ ℹ dist/presentations/index.js.map 2.14 kB │ gzip: 0.85 kB
24
+ ℹ dist/docs/crm-onboarding.docblock.js.map 1.92 kB │ gzip: 0.92 kB
25
+ ℹ dist/handlers/demo.handlers.js.map 1.59 kB │ gzip: 0.69 kB
26
+ ℹ dist/tests/operations.test-spec.js.map 1.45 kB │ gzip: 0.62 kB
27
+ ℹ dist/example.js.map 1.42 kB │ gzip: 0.73 kB
28
+ ℹ dist/operations/index.d.ts.map 0.84 kB │ gzip: 0.32 kB
29
+ ℹ dist/handlers/demo.handlers.d.ts.map 0.66 kB │ gzip: 0.35 kB
30
+ ℹ dist/learning-journey-crm-onboarding.feature.d.ts.map 0.21 kB │ gzip: 0.16 kB
31
+ ℹ dist/presentations/index.d.ts.map 0.21 kB │ gzip: 0.16 kB
32
+ ℹ dist/tests/operations.test-spec.d.ts.map 0.17 kB │ gzip: 0.14 kB
33
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
34
+ ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
35
+ ℹ dist/operations/index.d.ts 8.80 kB │ gzip: 0.93 kB
36
+ ℹ dist/index.d.ts 0.97 kB │ gzip: 0.29 kB
37
+ ℹ dist/handlers/demo.handlers.d.ts 0.95 kB │ gzip: 0.40 kB
38
+ ℹ dist/presentations/index.d.ts 0.55 kB │ gzip: 0.22 kB
39
+ ℹ dist/learning-journey-crm-onboarding.feature.d.ts 0.50 kB │ gzip: 0.27 kB
40
+ ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
41
+ ℹ dist/tests/operations.test-spec.d.ts 0.28 kB │ gzip: 0.18 kB
42
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 kB
43
+ ℹ dist/docs/crm-onboarding.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
44
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
45
+ ℹ 35 files, total: 51.99 kB
46
+ ✔ Build complete in 4091ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,359 @@
1
+ # @contractspec/example.learning-journey-crm-onboarding
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/module.learning-journey@0.0.0-canary-20260113170453
23
+ - @contractspec/example.crm-pipeline@0.0.0-canary-20260113170453
24
+ - @contractspec/lib.contracts@0.0.0-canary-20260113170453
25
+ - @contractspec/lib.schema@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/module.learning-journey@1.46.2
34
+ - @contractspec/example.crm-pipeline@1.46.2
35
+ - @contractspec/lib.contracts@1.46.2
36
+ - @contractspec/lib.schema@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/module.learning-journey@1.46.1
45
+ - @contractspec/example.crm-pipeline@1.46.1
46
+ - @contractspec/lib.contracts@1.46.1
47
+ - @contractspec/lib.schema@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/module.learning-journey@1.46.0
59
+ - @contractspec/example.crm-pipeline@1.46.0
60
+ - @contractspec/lib.contracts@1.46.0
61
+ - @contractspec/lib.schema@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/module.learning-journey@1.45.6
70
+ - @contractspec/example.crm-pipeline@1.45.6
71
+ - @contractspec/lib.contracts@1.45.6
72
+ - @contractspec/lib.schema@1.45.6
73
+
74
+ ## 1.45.5
75
+
76
+ ### Patch Changes
77
+
78
+ - 9ddd7fa: feat: improve versioning
79
+ - Updated dependencies [9ddd7fa]
80
+ - @contractspec/module.learning-journey@1.45.5
81
+ - @contractspec/example.crm-pipeline@1.45.5
82
+ - @contractspec/lib.contracts@1.45.5
83
+ - @contractspec/lib.schema@1.45.5
84
+
85
+ ## 1.45.4
86
+
87
+ ### Patch Changes
88
+
89
+ - fix: github action
90
+ - Updated dependencies
91
+ - @contractspec/module.learning-journey@1.45.4
92
+ - @contractspec/example.crm-pipeline@1.45.4
93
+ - @contractspec/lib.contracts@1.45.4
94
+ - @contractspec/lib.schema@1.45.4
95
+
96
+ ## 1.45.3
97
+
98
+ ### Patch Changes
99
+
100
+ - e74ea9e: feat: version management
101
+ - Updated dependencies [e74ea9e]
102
+ - @contractspec/module.learning-journey@1.45.3
103
+ - @contractspec/example.crm-pipeline@1.45.3
104
+ - @contractspec/lib.contracts@1.45.3
105
+ - @contractspec/lib.schema@1.45.3
106
+
107
+ ## 1.45.2
108
+
109
+ ### Patch Changes
110
+
111
+ - 39ca241: code cleaning
112
+ - Updated dependencies [39ca241]
113
+ - @contractspec/module.learning-journey@1.45.2
114
+ - @contractspec/example.crm-pipeline@1.45.2
115
+ - @contractspec/lib.contracts@1.45.2
116
+
117
+ ## 1.45.1
118
+
119
+ ### Patch Changes
120
+
121
+ - feat: improve app config and examples contracts
122
+ - Updated dependencies
123
+ - @contractspec/module.learning-journey@1.45.1
124
+ - @contractspec/example.crm-pipeline@1.45.1
125
+ - @contractspec/lib.contracts@1.45.1
126
+ - @contractspec/lib.schema@1.45.1
127
+
128
+ ## 1.45.0
129
+
130
+ ### Minor Changes
131
+
132
+ - e73ca1d: feat: improve app config and examples contracts
133
+ feat: Contract layers support (features, examples, app-configs)
134
+
135
+ ### New CLI Commands
136
+ - `contractspec list layers` - List all contract layers with filtering
137
+
138
+ ### Enhanced Commands
139
+ - `contractspec ci` - New `layers` check category validates features/examples/config
140
+ - `contractspec doctor` - New `layers` health checks
141
+ - `contractspec integrity` - Now shows layer statistics
142
+
143
+ ### New APIs
144
+ - `discoverLayers()` - Scan workspace for all layer files
145
+ - `scanExampleSource()` - Parse ExampleSpec from source code
146
+ - `isExampleFile()` - Check if file is an example spec
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [e73ca1d]
151
+ - @contractspec/module.learning-journey@1.45.0
152
+ - @contractspec/example.crm-pipeline@1.45.0
153
+ - @contractspec/lib.contracts@1.45.0
154
+ - @contractspec/lib.schema@1.45.0
155
+
156
+ ## 1.44.1
157
+
158
+ ### Patch Changes
159
+
160
+ - 3c594fb: fix
161
+ - Updated dependencies [3c594fb]
162
+ - @contractspec/module.learning-journey@1.44.1
163
+ - @contractspec/example.crm-pipeline@1.44.1
164
+ - @contractspec/lib.contracts@1.44.1
165
+ - @contractspec/lib.schema@1.44.1
166
+
167
+ ## 1.44.0
168
+
169
+ ### Minor Changes
170
+
171
+ - 5f3a868: chore: isolate branding to contractspec.io
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [5f3a868]
176
+ - @contractspec/module.learning-journey@1.44.0
177
+ - @contractspec/example.crm-pipeline@1.44.0
178
+ - @contractspec/lib.contracts@1.44.0
179
+ - @contractspec/lib.schema@1.44.0
180
+
181
+ ## 1.43.4
182
+
183
+ ### Patch Changes
184
+
185
+ - 9216062: fix: cross-platform compatibility
186
+ - Updated dependencies [9216062]
187
+ - @contractspec/module.learning-journey@1.43.4
188
+ - @contractspec/example.crm-pipeline@1.43.4
189
+ - @contractspec/lib.contracts@1.43.4
190
+ - @contractspec/lib.schema@1.43.3
191
+
192
+ ## 1.43.3
193
+
194
+ ### Patch Changes
195
+
196
+ - 24d9759: improve documentation
197
+ - Updated dependencies [24d9759]
198
+ - @contractspec/module.learning-journey@1.43.3
199
+ - @contractspec/example.crm-pipeline@1.43.3
200
+ - @contractspec/lib.contracts@1.43.3
201
+ - @contractspec/lib.schema@1.43.2
202
+
203
+ ## 1.43.2
204
+
205
+ ### Patch Changes
206
+
207
+ - e147271: fix: improve stability
208
+ - Updated dependencies [e147271]
209
+ - @contractspec/module.learning-journey@1.43.2
210
+ - @contractspec/example.crm-pipeline@1.43.2
211
+ - @contractspec/lib.contracts@1.43.2
212
+ - @contractspec/lib.schema@1.43.1
213
+
214
+ ## 1.43.1
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [f28fdad]
219
+ - @contractspec/lib.contracts@1.43.1
220
+ - @contractspec/example.crm-pipeline@1.43.1
221
+ - @contractspec/module.learning-journey@1.43.1
222
+
223
+ ## 1.43.0
224
+
225
+ ### Minor Changes
226
+
227
+ - 042d072: feat: schema declaration using json schema, including zod
228
+
229
+ ### Patch Changes
230
+
231
+ - Updated dependencies [042d072]
232
+ - @contractspec/module.learning-journey@1.43.0
233
+ - @contractspec/example.crm-pipeline@1.43.0
234
+ - @contractspec/lib.contracts@1.43.0
235
+ - @contractspec/lib.schema@1.43.0
236
+
237
+ ## 1.42.10
238
+
239
+ ### Patch Changes
240
+
241
+ - 1e6a0f1: fix: mcp server
242
+ - Updated dependencies [1e6a0f1]
243
+ - @contractspec/module.learning-journey@1.42.10
244
+ - @contractspec/example.crm-pipeline@1.42.10
245
+ - @contractspec/lib.contracts@1.42.10
246
+ - @contractspec/lib.schema@1.42.10
247
+
248
+ ## 1.42.9
249
+
250
+ ### Patch Changes
251
+
252
+ - 9281db7: fix ModelRegistry
253
+ - Updated dependencies [9281db7]
254
+ - @contractspec/module.learning-journey@1.42.9
255
+ - @contractspec/example.crm-pipeline@1.42.9
256
+ - @contractspec/lib.contracts@1.42.9
257
+ - @contractspec/lib.schema@1.42.9
258
+
259
+ ## 1.42.8
260
+
261
+ ### Patch Changes
262
+
263
+ - e07b5ac: fix
264
+ - Updated dependencies [e07b5ac]
265
+ - @contractspec/module.learning-journey@1.42.8
266
+ - @contractspec/example.crm-pipeline@1.42.8
267
+ - @contractspec/lib.contracts@1.42.8
268
+ - @contractspec/lib.schema@1.42.8
269
+
270
+ ## 1.42.7
271
+
272
+ ### Patch Changes
273
+
274
+ - e9b575d: fix release
275
+ - Updated dependencies [e9b575d]
276
+ - @contractspec/module.learning-journey@1.42.7
277
+ - @contractspec/example.crm-pipeline@1.42.7
278
+ - @contractspec/lib.contracts@1.42.7
279
+ - @contractspec/lib.schema@1.42.7
280
+
281
+ ## 1.42.6
282
+
283
+ ### Patch Changes
284
+
285
+ - 1500242: fix tooling
286
+ - Updated dependencies [1500242]
287
+ - @contractspec/module.learning-journey@1.42.6
288
+ - @contractspec/example.crm-pipeline@1.42.6
289
+ - @contractspec/lib.contracts@1.42.6
290
+ - @contractspec/lib.schema@1.42.6
291
+
292
+ ## 1.42.5
293
+
294
+ ### Patch Changes
295
+
296
+ - 1299719: fix vscode
297
+ - Updated dependencies [1299719]
298
+ - @contractspec/module.learning-journey@1.42.5
299
+ - @contractspec/example.crm-pipeline@1.42.5
300
+ - @contractspec/lib.contracts@1.42.5
301
+ - @contractspec/lib.schema@1.42.5
302
+
303
+ ## 1.42.4
304
+
305
+ ### Patch Changes
306
+
307
+ - ac28b99: fix: generate from openapi
308
+ - Updated dependencies [ac28b99]
309
+ - @contractspec/module.learning-journey@1.42.4
310
+ - @contractspec/example.crm-pipeline@1.42.4
311
+ - @contractspec/lib.contracts@1.42.4
312
+ - @contractspec/lib.schema@1.42.4
313
+
314
+ ## 1.42.3
315
+
316
+ ### Patch Changes
317
+
318
+ - 3f5d015: fix(tooling): cicd
319
+ - Updated dependencies [3f5d015]
320
+ - @contractspec/example.crm-pipeline@1.42.3
321
+ - @contractspec/lib.contracts@1.42.3
322
+ - @contractspec/lib.schema@1.42.3
323
+ - @contractspec/module.learning-journey@1.42.3
324
+
325
+ ## 1.42.2
326
+
327
+ ### Patch Changes
328
+
329
+ - 1f9ac4c: fix
330
+ - Updated dependencies [1f9ac4c]
331
+ - @contractspec/example.crm-pipeline@1.42.2
332
+ - @contractspec/lib.contracts@1.42.2
333
+ - @contractspec/lib.schema@1.42.2
334
+ - @contractspec/module.learning-journey@1.42.2
335
+
336
+ ## 1.42.1
337
+
338
+ ### Patch Changes
339
+
340
+ - f043995: Fix release
341
+ - Updated dependencies [f043995]
342
+ - @contractspec/module.learning-journey@1.42.1
343
+ - @contractspec/example.crm-pipeline@1.42.1
344
+ - @contractspec/lib.contracts@1.42.1
345
+ - @contractspec/lib.schema@1.42.1
346
+
347
+ ## 1.42.0
348
+
349
+ ### Minor Changes
350
+
351
+ - 8eefd9c: initial release
352
+
353
+ ### Patch Changes
354
+
355
+ - Updated dependencies [8eefd9c]
356
+ - @contractspec/example.crm-pipeline@1.42.0
357
+ - @contractspec/lib.contracts@1.42.0
358
+ - @contractspec/lib.schema@1.42.0
359
+ - @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,42 @@
1
+ # @contractspec/example.learning-journey-crm-onboarding
2
+
3
+ Website: https://contractspec.io/
4
+
5
+
6
+ Learning Journey example that guides a CRM user to first closed-won deal.
7
+
8
+ ## Track
9
+
10
+ - **Key**: `crm_first_win`
11
+ - **Persona**: CRM adopter
12
+ - **XP**: 15/20/20/20/30/30 + 25 bonus
13
+ - **Badge**: `crm_first_win`
14
+
15
+ ## Steps & Events
16
+
17
+ 1. `create_pipeline` → `pipeline.created`
18
+ 2. `create_contact_and_company` → `contact.created`
19
+ 3. `create_first_deal` → `deal.created`
20
+ 4. `move_deal_in_pipeline` → `deal.moved`
21
+ 5. `close_deal_won` → `deal.won`
22
+ 6. `setup_follow_up` → `task.completed` (type: follow_up)
23
+
24
+ ## Usage
25
+
26
+ - Import track specs:
27
+ `import { crmLearningTracks } from '@contractspec/example.learning-journey-crm-onboarding/track'`
28
+ - Contracts/handlers for demos:
29
+ `import { GetCrmOnboardingTrack, RecordCrmOnboardingEvent } from '@contractspec/example.learning-journey-crm-onboarding/contracts'`
30
+ `import { emitCrmOnboardingEvent } from '@contractspec/example.learning-journey-crm-onboarding/handlers/demo.handlers'`
31
+ - Presentations (react/markdown/json targets):
32
+ `import { crmOnboardingPresentations } from '@contractspec/example.learning-journey-crm-onboarding/presentations'`
33
+ - Register via onboarding API:
34
+ - `learning.onboarding.listTracks`
35
+ - `learning.onboarding.getProgress`
36
+ - `learning.onboarding.recordEvent` wired from CRM events
37
+ - Requires CRM pipeline example events to be emitted for completion.
38
+
39
+ ## Docs
40
+
41
+ - Docblock: `src/docs/crm-onboarding.docblock.ts`
42
+ - Route suggestion: `/docs/learning-journey/crm-onboarding`
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,42 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/crm-onboarding.docblock.ts
4
+ registerDocBlocks([{
5
+ id: "docs.learning-journey.crm-onboarding",
6
+ title: "Learning Journey — CRM First Win",
7
+ summary: "Onboarding track for the CRM Pipeline example that drives users to first closed-won deal.",
8
+ kind: "reference",
9
+ visibility: "public",
10
+ route: "/docs/learning-journey/crm-onboarding",
11
+ tags: [
12
+ "learning",
13
+ "crm",
14
+ "onboarding"
15
+ ],
16
+ body: `## Track
17
+ - **Key**: \`crm_first_win\`
18
+ - **Persona**: CRM adopter
19
+ - **Goal**: From empty CRM to first closed-won deal with follow-up
20
+
21
+ ## Steps & Events
22
+ 1) \`create_pipeline\` → \`pipeline.created\`
23
+ 2) \`create_contact_and_company\` → \`contact.created\`
24
+ 3) \`create_first_deal\` → \`deal.created\`
25
+ 4) \`move_deal_in_pipeline\` → \`deal.moved\`
26
+ 5) \`close_deal_won\` → \`deal.won\`
27
+ 6) \`setup_follow_up\` → \`task.completed\` (type: follow_up)
28
+
29
+ XP: 15/20/20/20/30/30 with 25 bonus within 72h. Badge: \`crm_first_win\`.
30
+
31
+ ## Wiring
32
+ - Depends on \`@contractspec/example.crm-pipeline\` events.
33
+ - Tracks export from \`@contractspec/example.learning-journey-crm-onboarding/track\`.
34
+ - Use onboarding API:
35
+ - \`learning.onboarding.listTracks\`
36
+ - \`learning.onboarding.getProgress\`
37
+ - \`learning.onboarding.recordEvent\` wired from CRM event bus handlers.
38
+ - Surface in CRM dashboard/pipeline UI to guide new users.`
39
+ }]);
40
+
41
+ //#endregion
42
+ //# sourceMappingURL=crm-onboarding.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crm-onboarding.docblock.js","names":[],"sources":["../../src/docs/crm-onboarding.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst crmOnboardingDocBlocks: DocBlock[] = [\n {\n id: 'docs.learning-journey.crm-onboarding',\n title: 'Learning Journey — CRM First Win',\n summary:\n 'Onboarding track for the CRM Pipeline example that drives users to first closed-won deal.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/learning-journey/crm-onboarding',\n tags: ['learning', 'crm', 'onboarding'],\n body: `## Track\n- **Key**: \\`crm_first_win\\`\n- **Persona**: CRM adopter\n- **Goal**: From empty CRM to first closed-won deal with follow-up\n\n## Steps & Events\n1) \\`create_pipeline\\` → \\`pipeline.created\\`\n2) \\`create_contact_and_company\\` → \\`contact.created\\`\n3) \\`create_first_deal\\` → \\`deal.created\\`\n4) \\`move_deal_in_pipeline\\` → \\`deal.moved\\`\n5) \\`close_deal_won\\` → \\`deal.won\\`\n6) \\`setup_follow_up\\` → \\`task.completed\\` (type: follow_up)\n\nXP: 15/20/20/20/30/30 with 25 bonus within 72h. Badge: \\`crm_first_win\\`.\n\n## Wiring\n- Depends on \\`@contractspec/example.crm-pipeline\\` events.\n- Tracks export from \\`@contractspec/example.learning-journey-crm-onboarding/track\\`.\n- Use onboarding API:\n - \\`learning.onboarding.listTracks\\`\n - \\`learning.onboarding.getProgress\\`\n - \\`learning.onboarding.recordEvent\\` wired from CRM event bus handlers.\n- Surface in CRM dashboard/pipeline UI to guide new users.`,\n },\n];\n\nregisterDocBlocks(crmOnboardingDocBlocks);\n"],"mappings":";;;AAuCA,kBApC2C,CACzC;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAY;EAAO;EAAa;CACvC,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBP,CACF,CAEwC"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./crm-onboarding.docblock.js";
@@ -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-journey-crm-onboarding",
7
+ version: "1.0.0",
8
+ title: "Learning Journey — CRM First Win",
9
+ description: "Onboarding track for CRM Pipeline driving users from empty CRM to first closed-won deal.",
10
+ kind: "template",
11
+ visibility: "public",
12
+ stability: "experimental",
13
+ owners: ["@platform.core"],
14
+ tags: [
15
+ "learning",
16
+ "crm",
17
+ "onboarding"
18
+ ]
19
+ },
20
+ docs: { rootDocId: "docs.learning-journey.crm-onboarding" },
21
+ entrypoints: {
22
+ packageName: "@contractspec/example.learning-journey-crm-onboarding",
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-crm-onboarding',\n version: '1.0.0',\n title: 'Learning Journey — CRM First Win',\n description:\n 'Onboarding track for CRM Pipeline driving users from empty CRM to first closed-won deal.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'crm', 'onboarding'],\n },\n docs: {\n rootDocId: 'docs.learning-journey.crm-onboarding',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-crm-onboarding',\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;GAAO;GAAa;EACxC;CACD,MAAM,EACJ,WAAW,wCACZ;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"}
@@ -0,0 +1,25 @@
1
+ //#region src/handlers/demo.handlers.d.ts
2
+ interface EmitParams {
3
+ learnerId: string;
4
+ occurredAt?: Date;
5
+ payload?: Record<string, unknown>;
6
+ }
7
+ interface LearningJourneyEvent {
8
+ learnerId: string;
9
+ name: string;
10
+ occurredAt: Date;
11
+ trackId: string;
12
+ payload?: Record<string, unknown>;
13
+ }
14
+ type RecordEvent = (event: LearningJourneyEvent) => unknown;
15
+ declare const crmOnboardingEvents: readonly ["pipeline.created", "contact.created", "deal.created", "deal.moved", "deal.won", "task.completed"];
16
+ type CrmEvent = (typeof crmOnboardingEvents)[number];
17
+ declare const emitCrmOnboardingEvent: (eventName: CrmEvent, {
18
+ learnerId,
19
+ occurredAt,
20
+ payload
21
+ }: EmitParams, record?: RecordEvent) => unknown;
22
+ declare const emitAllCrmOnboardingEvents: (params: EmitParams, record?: RecordEvent) => unknown[];
23
+ //#endregion
24
+ export { CrmEvent, crmOnboardingEvents, emitAllCrmOnboardingEvents, emitCrmOnboardingEvent };
25
+ //# sourceMappingURL=demo.handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo.handlers.d.ts","names":[],"sources":["../../src/handlers/demo.handlers.ts"],"sourcesContent":[],"mappings":";UAEU,UAAA;EAAA,SAAA,EAAA,MAAU;EAMV,UAAA,CAAA,EAJK,IAIL;EAQL,OAAA,CAAA,EAXO,MAWI,CAAA,MAAA,EAAW,OAAA,CAAA;AAE3B;AASA,UAnBU,oBAAA,CAmBqB;EAElB,SAAA,EAAA,MAAA;EACA,IAAA,EAAA,MAAA;EACX,UAAA,EApBY,IAoBZ;EAAA,OAAA,EAAA,MAAA;EAAA,OAAA,CAAA,EAlBU,MAkBV,CAAA,MAAA,EAAA,OAAA,CAAA;;KAfG,WAAA,GAgBM,CAAA,KAAA,EAhBgB,oBAgBhB,EAAA,GAAA,OAAA;AAAW,cAdT,mBAcS,EAAA,SAAA,CAAA,kBAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,YAAA,EAAA,UAAA,EAAA,gBAAA,CAAA;AAYT,KAjBD,QAAA,GAiBC,CAAA,OAjBkB,mBAkBrB,CAAA,CAAA,MACC,CAAA;cAjBE,oCACA;;;;GACsC,qBACxC;cAYE,qCACH,qBACC"}