@lssm/example.learning-journey-platform-tour 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,29 @@
1
+
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/learning-journey-platform-tour/tsdown.config.js (unrun)
5
+ ℹ entry: src/example.ts, src/index.ts, src/learning-journey-platform-tour.feature.ts, src/track.ts, src/contracts/index.ts, src/docs/index.ts, src/docs/platform-tour.docblock.ts, src/handlers/demo.handlers.ts, src/presentations/index.ts
6
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ Cleaning 22 files
10
+ ℹ dist/contracts/index.js 2.81 kB │ gzip: 0.91 kB
11
+ ℹ dist/track.js 2.18 kB │ gzip: 0.80 kB
12
+ ℹ dist/docs/platform-tour.docblock.js 1.38 kB │ gzip: 0.73 kB
13
+ ℹ dist/index.js 1.06 kB │ gzip: 0.35 kB
14
+ ℹ dist/learning-journey-platform-tour.feature.js 1.02 kB │ gzip: 0.40 kB
15
+ ℹ dist/presentations/index.js 0.78 kB │ gzip: 0.37 kB
16
+ ℹ dist/example.js 0.63 kB │ gzip: 0.35 kB
17
+ ℹ dist/handlers/demo.handlers.js 0.45 kB │ gzip: 0.30 kB
18
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
19
+ ℹ dist/contracts/index.d.ts 8.11 kB │ gzip: 0.89 kB
20
+ ℹ dist/example.d.ts 1.09 kB │ gzip: 0.42 kB
21
+ ℹ dist/index.d.ts 0.99 kB │ gzip: 0.30 kB
22
+ ℹ dist/handlers/demo.handlers.d.ts 0.95 kB │ gzip: 0.41 kB
23
+ ℹ dist/presentations/index.d.ts 0.43 kB │ gzip: 0.18 kB
24
+ ℹ dist/learning-journey-platform-tour.feature.d.ts 0.38 kB │ gzip: 0.23 kB
25
+ ℹ dist/track.d.ts 0.32 kB │ gzip: 0.18 kB
26
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
27
+ ℹ dist/docs/platform-tour.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
28
+ ℹ 18 files, total: 22.63 kB
29
+ ✔ Build complete in 8084ms
@@ -1,20 +1,11 @@
1
- $ bun build:bundle && bun build:types
2
- $ tsdown
3
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
- ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-platform-tour/tsdown.config.js
5
- ℹ entry: src/example.ts, src/index.ts, src/learning-journey-platform-tour.feature.ts, src/track.ts, src/docs/index.ts, src/docs/platform-tour.docblock.ts, src/handlers/demo.handlers.ts, src/contracts/index.ts, src/presentations/index.ts
6
- ℹ target: esnext
7
- ℹ tsconfig: tsconfig.json
8
- ℹ Build start
9
- ℹ dist/contracts/index.js 2.81 kB │ gzip: 0.91 kB
10
- ℹ dist/track.js 2.18 kB │ gzip: 0.80 kB
11
- ℹ dist/docs/platform-tour.docblock.js 1.38 kB  gzip: 0.73 kB
12
- ℹ dist/index.js 1.06 kB │ gzip: 0.35 kB
13
- ℹ dist/learning-journey-platform-tour.feature.js 1.02 kB │ gzip: 0.40 kB
14
- ℹ dist/presentations/index.js 0.78 kB │ gzip: 0.37 kB
15
- ℹ dist/example.js 0.63 kB │ gzip: 0.35 kB
16
- ℹ dist/handlers/demo.handlers.js 0.45 kB │ gzip: 0.30 kB
17
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
18
- ℹ 9 files, total: 10.34 kB
19
- ✔ Build complete in 83ms
20
- $ tsc --noEmit
1
+
2
+ $ bun build:bundle && bun build:types
3
+ $ tsdown
4
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/learning-journey-platform-tour/tsdown.config.js (unrun)
6
+ ℹ entry: src/example.ts, src/index.ts, src/learning-journey-platform-tour.feature.ts, src/track.ts, src/contracts/index.ts, src/docs/index.ts, src/docs/platform-tour.docblock.ts, src/handlers/demo.handlers.ts, src/presentations/index.ts
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ Cleaning 13 files
11
+ error: script "build" was terminated by signal SIGHUP (Terminal hung up)
package/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # @lssm/example.learning-journey-platform-tour
2
2
 
3
- ## 0.0.0-canary-20251217034842
3
+ ## 0.0.0-canary-20251217060433
4
+
5
+ ### Minor Changes
6
+
7
+ - 66a5dfd: initial release
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Updated dependencies [3086383]
8
- - @lssm/lib.contracts@0.0.0-canary-20251217034842
9
- - @lssm/lib.schema@0.0.0-canary-20251217034842
10
- - @lssm/module.learning-journey@0.0.0-canary-20251217034842
11
+ - Updated dependencies [66a5dfd]
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217060433
13
+ - @lssm/lib.schema@0.0.0-canary-20251217060433
14
+ - @lssm/module.learning-journey@0.0.0-canary-20251217060433
@@ -0,0 +1,270 @@
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+ import * as _lssm_module_learning_journey_track_spec0 from "@lssm/module.learning-journey/track-spec";
4
+
5
+ //#region src/contracts/index.d.ts
6
+ declare const PlatformTourTrackModel: _lssm_lib_schema0.SchemaModel<{
7
+ id: {
8
+ type: _lssm_lib_schema0.FieldType<string, string>;
9
+ isOptional: false;
10
+ };
11
+ name: {
12
+ type: _lssm_lib_schema0.FieldType<string, string>;
13
+ isOptional: false;
14
+ };
15
+ description: {
16
+ type: _lssm_lib_schema0.FieldType<string, string>;
17
+ isOptional: true;
18
+ };
19
+ totalXp: {
20
+ type: _lssm_lib_schema0.FieldType<number, number>;
21
+ isOptional: true;
22
+ };
23
+ completionXpBonus: {
24
+ type: _lssm_lib_schema0.FieldType<number, number>;
25
+ isOptional: true;
26
+ };
27
+ completionBadgeKey: {
28
+ type: _lssm_lib_schema0.FieldType<string, string>;
29
+ isOptional: true;
30
+ };
31
+ streakHoursWindow: {
32
+ type: _lssm_lib_schema0.FieldType<number, number>;
33
+ isOptional: true;
34
+ };
35
+ streakBonusXp: {
36
+ type: _lssm_lib_schema0.FieldType<number, number>;
37
+ isOptional: true;
38
+ };
39
+ steps: {
40
+ type: _lssm_lib_schema0.SchemaModel<{
41
+ id: {
42
+ type: _lssm_lib_schema0.FieldType<string, string>;
43
+ isOptional: false;
44
+ };
45
+ title: {
46
+ type: _lssm_lib_schema0.FieldType<string, string>;
47
+ isOptional: false;
48
+ };
49
+ description: {
50
+ type: _lssm_lib_schema0.FieldType<string, string>;
51
+ isOptional: true;
52
+ };
53
+ completionEvent: {
54
+ type: _lssm_lib_schema0.FieldType<string, string>;
55
+ isOptional: false;
56
+ };
57
+ sourceModule: {
58
+ type: _lssm_lib_schema0.FieldType<string, string>;
59
+ isOptional: true;
60
+ };
61
+ xpReward: {
62
+ type: _lssm_lib_schema0.FieldType<number, number>;
63
+ isOptional: true;
64
+ };
65
+ order: {
66
+ type: _lssm_lib_schema0.FieldType<number, number>;
67
+ isOptional: true;
68
+ };
69
+ }>;
70
+ isArray: true;
71
+ isOptional: false;
72
+ };
73
+ }>;
74
+ declare const GetPlatformTourTrack: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{}>, _lssm_lib_schema0.SchemaModel<{
75
+ track: {
76
+ type: _lssm_lib_schema0.SchemaModel<{
77
+ id: {
78
+ type: _lssm_lib_schema0.FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ name: {
82
+ type: _lssm_lib_schema0.FieldType<string, string>;
83
+ isOptional: false;
84
+ };
85
+ description: {
86
+ type: _lssm_lib_schema0.FieldType<string, string>;
87
+ isOptional: true;
88
+ };
89
+ totalXp: {
90
+ type: _lssm_lib_schema0.FieldType<number, number>;
91
+ isOptional: true;
92
+ };
93
+ completionXpBonus: {
94
+ type: _lssm_lib_schema0.FieldType<number, number>;
95
+ isOptional: true;
96
+ };
97
+ completionBadgeKey: {
98
+ type: _lssm_lib_schema0.FieldType<string, string>;
99
+ isOptional: true;
100
+ };
101
+ streakHoursWindow: {
102
+ type: _lssm_lib_schema0.FieldType<number, number>;
103
+ isOptional: true;
104
+ };
105
+ streakBonusXp: {
106
+ type: _lssm_lib_schema0.FieldType<number, number>;
107
+ isOptional: true;
108
+ };
109
+ steps: {
110
+ type: _lssm_lib_schema0.SchemaModel<{
111
+ id: {
112
+ type: _lssm_lib_schema0.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ title: {
116
+ type: _lssm_lib_schema0.FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ description: {
120
+ type: _lssm_lib_schema0.FieldType<string, string>;
121
+ isOptional: true;
122
+ };
123
+ completionEvent: {
124
+ type: _lssm_lib_schema0.FieldType<string, string>;
125
+ isOptional: false;
126
+ };
127
+ sourceModule: {
128
+ type: _lssm_lib_schema0.FieldType<string, string>;
129
+ isOptional: true;
130
+ };
131
+ xpReward: {
132
+ type: _lssm_lib_schema0.FieldType<number, number>;
133
+ isOptional: true;
134
+ };
135
+ order: {
136
+ type: _lssm_lib_schema0.FieldType<number, number>;
137
+ isOptional: true;
138
+ };
139
+ }>;
140
+ isArray: true;
141
+ isOptional: false;
142
+ };
143
+ }>;
144
+ isOptional: false;
145
+ };
146
+ }>, undefined>;
147
+ declare const RecordPlatformTourEvent: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
148
+ learnerId: {
149
+ type: _lssm_lib_schema0.FieldType<string, string>;
150
+ isOptional: false;
151
+ };
152
+ eventName: {
153
+ type: _lssm_lib_schema0.FieldType<string, string>;
154
+ isOptional: false;
155
+ };
156
+ payload: {
157
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
158
+ isOptional: true;
159
+ };
160
+ occurredAt: {
161
+ type: _lssm_lib_schema0.FieldType<Date, string>;
162
+ isOptional: true;
163
+ };
164
+ }>, _lssm_lib_schema0.SchemaModel<{
165
+ success: {
166
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
167
+ isOptional: false;
168
+ };
169
+ }>, undefined>;
170
+ declare const platformTourContracts: {
171
+ GetPlatformTourTrack: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{}>, _lssm_lib_schema0.SchemaModel<{
172
+ track: {
173
+ type: _lssm_lib_schema0.SchemaModel<{
174
+ id: {
175
+ type: _lssm_lib_schema0.FieldType<string, string>;
176
+ isOptional: false;
177
+ };
178
+ name: {
179
+ type: _lssm_lib_schema0.FieldType<string, string>;
180
+ isOptional: false;
181
+ };
182
+ description: {
183
+ type: _lssm_lib_schema0.FieldType<string, string>;
184
+ isOptional: true;
185
+ };
186
+ totalXp: {
187
+ type: _lssm_lib_schema0.FieldType<number, number>;
188
+ isOptional: true;
189
+ };
190
+ completionXpBonus: {
191
+ type: _lssm_lib_schema0.FieldType<number, number>;
192
+ isOptional: true;
193
+ };
194
+ completionBadgeKey: {
195
+ type: _lssm_lib_schema0.FieldType<string, string>;
196
+ isOptional: true;
197
+ };
198
+ streakHoursWindow: {
199
+ type: _lssm_lib_schema0.FieldType<number, number>;
200
+ isOptional: true;
201
+ };
202
+ streakBonusXp: {
203
+ type: _lssm_lib_schema0.FieldType<number, number>;
204
+ isOptional: true;
205
+ };
206
+ steps: {
207
+ type: _lssm_lib_schema0.SchemaModel<{
208
+ id: {
209
+ type: _lssm_lib_schema0.FieldType<string, string>;
210
+ isOptional: false;
211
+ };
212
+ title: {
213
+ type: _lssm_lib_schema0.FieldType<string, string>;
214
+ isOptional: false;
215
+ };
216
+ description: {
217
+ type: _lssm_lib_schema0.FieldType<string, string>;
218
+ isOptional: true;
219
+ };
220
+ completionEvent: {
221
+ type: _lssm_lib_schema0.FieldType<string, string>;
222
+ isOptional: false;
223
+ };
224
+ sourceModule: {
225
+ type: _lssm_lib_schema0.FieldType<string, string>;
226
+ isOptional: true;
227
+ };
228
+ xpReward: {
229
+ type: _lssm_lib_schema0.FieldType<number, number>;
230
+ isOptional: true;
231
+ };
232
+ order: {
233
+ type: _lssm_lib_schema0.FieldType<number, number>;
234
+ isOptional: true;
235
+ };
236
+ }>;
237
+ isArray: true;
238
+ isOptional: false;
239
+ };
240
+ }>;
241
+ isOptional: false;
242
+ };
243
+ }>, undefined>;
244
+ RecordPlatformTourEvent: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
245
+ learnerId: {
246
+ type: _lssm_lib_schema0.FieldType<string, string>;
247
+ isOptional: false;
248
+ };
249
+ eventName: {
250
+ type: _lssm_lib_schema0.FieldType<string, string>;
251
+ isOptional: false;
252
+ };
253
+ payload: {
254
+ type: _lssm_lib_schema0.FieldType<unknown, unknown>;
255
+ isOptional: true;
256
+ };
257
+ occurredAt: {
258
+ type: _lssm_lib_schema0.FieldType<Date, string>;
259
+ isOptional: true;
260
+ };
261
+ }>, _lssm_lib_schema0.SchemaModel<{
262
+ success: {
263
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
264
+ isOptional: false;
265
+ };
266
+ }>, undefined>;
267
+ track: _lssm_module_learning_journey_track_spec0.LearningJourneyTrackSpec;
268
+ };
269
+ //#endregion
270
+ export { GetPlatformTourTrack, PlatformTourTrackModel, RecordPlatformTourEvent, platformTourContracts };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,34 @@
1
+ //#region src/example.d.ts
2
+ declare const example: {
3
+ readonly id: "learning-journey-platform-tour";
4
+ readonly title: "Learning Journey — Platform Tour";
5
+ readonly summary: "Learning journey track + contracts + presentations for a platform tour.";
6
+ readonly tags: readonly ["learning", "journey", "platform-tour"];
7
+ readonly kind: "template";
8
+ readonly visibility: "public";
9
+ readonly docs: {
10
+ readonly rootDocId: "docs.examples.platform-tour";
11
+ readonly goalDocId: "docs.examples.platform-tour.goal";
12
+ readonly usageDocId: "docs.examples.platform-tour.usage";
13
+ };
14
+ readonly entrypoints: {
15
+ readonly packageName: "@lssm/example.learning-journey-platform-tour";
16
+ readonly docs: "./docs";
17
+ };
18
+ readonly surfaces: {
19
+ readonly templates: true;
20
+ readonly sandbox: {
21
+ readonly enabled: true;
22
+ readonly modes: readonly ["markdown", "playground"];
23
+ };
24
+ readonly studio: {
25
+ readonly enabled: true;
26
+ readonly installable: true;
27
+ };
28
+ readonly mcp: {
29
+ readonly enabled: true;
30
+ };
31
+ };
32
+ };
33
+ //#endregion
34
+ export { example as default };
@@ -0,0 +1,24 @@
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 platformTourEvents: readonly ["org.member.added", "audit_log.created", "notification.sent", "job.completed", "flag.toggled", "attachment.attached", "usage.recorded"];
16
+ type PlatformEvent = (typeof platformTourEvents)[number];
17
+ declare const emitPlatformTourEvent: (eventName: PlatformEvent, {
18
+ learnerId,
19
+ occurredAt,
20
+ payload
21
+ }: EmitParams, record?: RecordEvent) => unknown;
22
+ declare const emitAllPlatformTourEvents: (params: EmitParams, record?: RecordEvent) => unknown[];
23
+ //#endregion
24
+ export { PlatformEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, platformTourEvents };
@@ -0,0 +1,7 @@
1
+ import { GetPlatformTourTrack, PlatformTourTrackModel, RecordPlatformTourEvent, platformTourContracts } from "./contracts/index.js";
2
+ import example from "./example.js";
3
+ import { PlatformEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, platformTourEvents } from "./handlers/demo.handlers.js";
4
+ import { platformLearningTracks, platformPrimitivesTourTrack } from "./track.js";
5
+ import { PlatformTourTrackPresentation, PlatformTourWidgetPresentation, platformTourPresentations } from "./presentations/index.js";
6
+ import { LearningJourneyPlatformTourFeature } from "./learning-journey-platform-tour.feature.js";
7
+ export { GetPlatformTourTrack, LearningJourneyPlatformTourFeature, PlatformEvent, PlatformTourTrackModel, PlatformTourTrackPresentation, PlatformTourWidgetPresentation, RecordPlatformTourEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, example, platformLearningTracks, platformPrimitivesTourTrack, platformTourContracts, platformTourEvents, platformTourPresentations };
@@ -0,0 +1,11 @@
1
+ import { FeatureModuleSpec } from "@lssm/lib.contracts";
2
+
3
+ //#region src/learning-journey-platform-tour.feature.d.ts
4
+
5
+ /**
6
+ * Learning Journey Platform Tour feature module that bundles
7
+ * platform-specific tour track operations and presentations.
8
+ */
9
+ declare const LearningJourneyPlatformTourFeature: FeatureModuleSpec;
10
+ //#endregion
11
+ export { LearningJourneyPlatformTourFeature };
@@ -0,0 +1,8 @@
1
+ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
2
+
3
+ //#region src/presentations/index.d.ts
4
+ declare const PlatformTourTrackPresentation: PresentationDescriptorV2;
5
+ declare const PlatformTourWidgetPresentation: PresentationDescriptorV2;
6
+ declare const platformTourPresentations: PresentationDescriptorV2[];
7
+ //#endregion
8
+ export { PlatformTourTrackPresentation, PlatformTourWidgetPresentation, platformTourPresentations };
@@ -0,0 +1,7 @@
1
+ import { LearningJourneyTrackSpec } from "@lssm/module.learning-journey/track-spec";
2
+
3
+ //#region src/track.d.ts
4
+ declare const platformPrimitivesTourTrack: LearningJourneyTrackSpec;
5
+ declare const platformLearningTracks: LearningJourneyTrackSpec[];
6
+ //#endregion
7
+ export { platformLearningTracks, platformPrimitivesTourTrack };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.learning-journey-platform-tour",
3
- "version": "0.0.0-canary-20251217034842",
3
+ "version": "0.0.0-canary-20251217060433",
4
4
  "description": "Learning journey track covering ContractSpec platform primitives.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,6 +18,8 @@
18
18
  "./*": "./*"
19
19
  },
20
20
  "scripts": {
21
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
22
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
21
23
  "build": "bun build:bundle && bun build:types",
22
24
  "build:bundle": "tsdown",
23
25
  "build:types": "tsc --noEmit",
@@ -28,13 +30,13 @@
28
30
  "lint:check": "eslint src"
29
31
  },
30
32
  "dependencies": {
31
- "@lssm/lib.contracts": "workspace:*",
32
- "@lssm/lib.schema": "workspace:*",
33
- "@lssm/module.learning-journey": "workspace:*"
33
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060433",
34
+ "@lssm/lib.schema": "0.0.0-canary-20251217060433",
35
+ "@lssm/module.learning-journey": "0.0.0-canary-20251217060433"
34
36
  },
35
37
  "devDependencies": {
36
- "@lssm/tool.tsdown": "workspace:*",
37
- "@lssm/tool.typescript": "workspace:*",
38
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
39
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060433",
38
40
  "tsdown": "^0.17.4",
39
41
  "typescript": "^5.9.3"
40
42
  },