@contractspec/example.learning-journey-registry 1.44.1 → 1.45.1

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.
@@ -9,23 +9,23 @@ $ tsdown
9
9
  ℹ dist/api.js  6.79 kB │ gzip: 1.96 kB
10
10
  ℹ dist/ui/LearningMiniApp.js  2.93 kB │ gzip: 0.99 kB
11
11
  ℹ dist/tracks.js  1.81 kB │ gzip: 0.60 kB
12
- ℹ dist/presentations/index.js  1.72 kB │ gzip: 0.59 kB
13
- ℹ dist/learning-journey-registry.feature.js  1.36 kB │ gzip: 0.50 kB
12
+ ℹ dist/presentations/index.js  1.73 kB │ gzip: 0.59 kB
13
+ ℹ dist/learning-journey-registry.feature.js  1.41 kB │ gzip: 0.51 kB
14
14
  ℹ dist/docs/learning-journey-registry.docblock.js  1.36 kB │ gzip: 0.70 kB
15
15
  ℹ dist/index.js  1.14 kB │ gzip: 0.34 kB
16
+ ℹ dist/example.js  0.88 kB │ gzip: 0.47 kB
16
17
  ℹ dist/progress-store.js  0.84 kB │ gzip: 0.42 kB
17
- ℹ dist/example.js  0.77 kB │ gzip: 0.42 kB
18
18
  ℹ dist/ui/index.js  0.17 kB │ gzip: 0.09 kB
19
19
  ℹ dist/docs/index.js  0.05 kB │ gzip: 0.07 kB
20
20
  ℹ dist/api-types.js  0.00 kB │ gzip: 0.02 kB
21
21
  ℹ dist/api.js.map 13.20 kB │ gzip: 3.85 kB
22
22
  ℹ dist/ui/LearningMiniApp.js.map  5.07 kB │ gzip: 1.59 kB
23
23
  ℹ dist/tracks.js.map  3.68 kB │ gzip: 1.09 kB
24
- ℹ dist/presentations/index.js.map  2.96 kB │ gzip: 0.91 kB
25
- ℹ dist/learning-journey-registry.feature.js.map  2.58 kB │ gzip: 0.96 kB
24
+ ℹ dist/presentations/index.js.map  2.98 kB │ gzip: 0.91 kB
25
+ ℹ dist/learning-journey-registry.feature.js.map  2.63 kB │ gzip: 0.96 kB
26
26
  ℹ dist/docs/learning-journey-registry.docblock.js.map  1.77 kB │ gzip: 0.86 kB
27
27
  ℹ dist/progress-store.js.map  1.67 kB │ gzip: 0.76 kB
28
- ℹ dist/example.js.map  1.12 kB │ gzip: 0.58 kB
28
+ ℹ dist/example.js.map  1.40 kB │ gzip: 0.68 kB
29
29
  ℹ dist/api-types.d.ts.map  0.65 kB │ gzip: 0.34 kB
30
30
  ℹ dist/tracks.d.ts.map  0.58 kB │ gzip: 0.30 kB
31
31
  ℹ dist/ui/LearningMiniApp.d.ts.map  0.49 kB │ gzip: 0.29 kB
@@ -33,18 +33,18 @@ $ tsdown
33
33
  ℹ dist/api.d.ts.map  0.26 kB │ gzip: 0.19 kB
34
34
  ℹ dist/presentations/index.d.ts.map  0.23 kB │ gzip: 0.19 kB
35
35
  ℹ dist/learning-journey-registry.feature.d.ts.map  0.18 kB │ gzip: 0.14 kB
36
- ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
36
+ ℹ dist/example.d.ts.map  0.12 kB │ gzip: 0.12 kB
37
37
  ℹ dist/tracks.d.ts  1.76 kB │ gzip: 0.57 kB
38
38
  ℹ dist/ui/LearningMiniApp.d.ts  1.21 kB │ gzip: 0.53 kB
39
39
  ℹ dist/index.d.ts  1.17 kB │ gzip: 0.34 kB
40
40
  ℹ dist/api-types.d.ts  1.08 kB │ gzip: 0.48 kB
41
- ℹ dist/example.d.ts  1.00 kB │ gzip: 0.41 kB
42
41
  ℹ dist/progress-store.d.ts  0.69 kB │ gzip: 0.31 kB
43
42
  ℹ dist/presentations/index.d.ts  0.56 kB │ gzip: 0.23 kB
44
43
  ℹ dist/api.d.ts  0.56 kB │ gzip: 0.30 kB
45
44
  ℹ dist/learning-journey-registry.feature.d.ts  0.43 kB │ gzip: 0.24 kB
45
+ ℹ dist/example.d.ts  0.20 kB │ gzip: 0.16 kB
46
46
  ℹ dist/ui/index.d.ts  0.17 kB │ gzip: 0.09 kB
47
47
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
48
48
  ℹ dist/docs/learning-journey-registry.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
49
- ℹ 40 files, total: 62.51 kB
50
- ✔ Build complete in 3056ms
49
+ ℹ 40 files, total: 62.21 kB
50
+ ✔ Build complete in 3239ms
@@ -10,42 +10,42 @@ $ tsdown
10
10
  ℹ dist/api.js  6.79 kB │ gzip: 1.96 kB
11
11
  ℹ dist/ui/LearningMiniApp.js  2.93 kB │ gzip: 0.99 kB
12
12
  ℹ dist/tracks.js  1.81 kB │ gzip: 0.60 kB
13
- ℹ dist/presentations/index.js  1.72 kB │ gzip: 0.59 kB
14
- ℹ dist/learning-journey-registry.feature.js  1.36 kB │ gzip: 0.50 kB
13
+ ℹ dist/presentations/index.js  1.73 kB │ gzip: 0.59 kB
14
+ ℹ dist/learning-journey-registry.feature.js  1.41 kB │ gzip: 0.51 kB
15
15
  ℹ dist/docs/learning-journey-registry.docblock.js  1.36 kB │ gzip: 0.70 kB
16
16
  ℹ dist/index.js  1.14 kB │ gzip: 0.34 kB
17
+ ℹ dist/example.js  0.88 kB │ gzip: 0.47 kB
17
18
  ℹ dist/progress-store.js  0.84 kB │ gzip: 0.42 kB
18
- ℹ dist/example.js  0.77 kB │ gzip: 0.42 kB
19
19
  ℹ dist/ui/index.js  0.17 kB │ gzip: 0.09 kB
20
20
  ℹ dist/docs/index.js  0.05 kB │ gzip: 0.07 kB
21
21
  ℹ dist/api-types.js  0.00 kB │ gzip: 0.02 kB
22
22
  ℹ dist/api.js.map 13.20 kB │ gzip: 3.85 kB
23
23
  ℹ dist/ui/LearningMiniApp.js.map  5.07 kB │ gzip: 1.59 kB
24
24
  ℹ dist/tracks.js.map  3.68 kB │ gzip: 1.09 kB
25
- ℹ dist/presentations/index.js.map  2.96 kB │ gzip: 0.91 kB
26
- ℹ dist/learning-journey-registry.feature.js.map  2.58 kB │ gzip: 0.96 kB
25
+ ℹ dist/presentations/index.js.map  2.98 kB │ gzip: 0.91 kB
26
+ ℹ dist/learning-journey-registry.feature.js.map  2.63 kB │ gzip: 0.96 kB
27
27
  ℹ dist/docs/learning-journey-registry.docblock.js.map  1.77 kB │ gzip: 0.86 kB
28
28
  ℹ dist/progress-store.js.map  1.67 kB │ gzip: 0.76 kB
29
- ℹ dist/example.js.map  1.12 kB │ gzip: 0.58 kB
29
+ ℹ dist/example.js.map  1.40 kB │ gzip: 0.68 kB
30
30
  ℹ dist/api-types.d.ts.map  0.65 kB │ gzip: 0.34 kB
31
31
  ℹ dist/tracks.d.ts.map  0.58 kB │ gzip: 0.30 kB
32
32
  ℹ dist/ui/LearningMiniApp.d.ts.map  0.49 kB │ gzip: 0.29 kB
33
33
  ℹ dist/progress-store.d.ts.map  0.34 kB │ gzip: 0.23 kB
34
34
  ℹ dist/api.d.ts.map  0.26 kB │ gzip: 0.19 kB
35
- ℹ dist/presentations/index.d.ts.map  0.23 kB │ gzip: 0.19 kB
35
+ ℹ dist/presentations/index.d.ts.map  0.23 kB │ gzip: 0.18 kB
36
36
  ℹ dist/learning-journey-registry.feature.d.ts.map  0.18 kB │ gzip: 0.14 kB
37
- ℹ dist/example.d.ts.map  0.14 kB │ gzip: 0.13 kB
37
+ ℹ dist/example.d.ts.map  0.12 kB │ gzip: 0.12 kB
38
38
  ℹ dist/tracks.d.ts  1.76 kB │ gzip: 0.57 kB
39
39
  ℹ dist/ui/LearningMiniApp.d.ts  1.21 kB │ gzip: 0.53 kB
40
40
  ℹ dist/index.d.ts  1.17 kB │ gzip: 0.34 kB
41
41
  ℹ dist/api-types.d.ts  1.08 kB │ gzip: 0.48 kB
42
- ℹ dist/example.d.ts  1.00 kB │ gzip: 0.41 kB
43
42
  ℹ dist/progress-store.d.ts  0.69 kB │ gzip: 0.31 kB
44
43
  ℹ dist/presentations/index.d.ts  0.56 kB │ gzip: 0.23 kB
45
44
  ℹ dist/api.d.ts  0.56 kB │ gzip: 0.30 kB
46
45
  ℹ dist/learning-journey-registry.feature.d.ts  0.43 kB │ gzip: 0.24 kB
46
+ ℹ dist/example.d.ts  0.20 kB │ gzip: 0.16 kB
47
47
  ℹ dist/ui/index.d.ts  0.17 kB │ gzip: 0.09 kB
48
48
  ℹ dist/docs/index.d.ts  0.01 kB │ gzip: 0.03 kB
49
49
  ℹ dist/docs/learning-journey-registry.docblock.d.ts  0.01 kB │ gzip: 0.03 kB
50
- ℹ 40 files, total: 62.51 kB
51
- ✔ Build complete in 3138ms
50
+ ℹ 40 files, total: 62.21 kB
51
+ ✔ Build complete in 4907ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @contractspec/example.learning-journey-registry
2
2
 
3
+ ## 1.45.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: improve app config and examples contracts
8
+ - Updated dependencies
9
+ - @contractspec/example.learning-journey-studio-onboarding@1.45.1
10
+ - @contractspec/example.learning-journey-quest-challenges@1.45.1
11
+ - @contractspec/example.learning-journey-crm-onboarding@1.45.1
12
+ - @contractspec/example.learning-journey-ambient-coach@1.45.1
13
+ - @contractspec/example.learning-journey-platform-tour@1.45.1
14
+ - @contractspec/example.learning-journey-ui-onboarding@1.45.1
15
+ - @contractspec/example.learning-journey-ui-coaching@1.45.1
16
+ - @contractspec/example.learning-journey-ui-gamified@1.45.1
17
+ - @contractspec/example.learning-journey-duo-drills@1.45.1
18
+ - @contractspec/example.learning-journey-ui-shared@1.45.1
19
+ - @contractspec/module.learning-journey@1.45.1
20
+ - @contractspec/lib.contracts@1.45.1
21
+ - @contractspec/lib.schema@1.45.1
22
+
23
+ ## 1.45.0
24
+
25
+ ### Minor Changes
26
+
27
+ - e73ca1d: feat: improve app config and examples contracts
28
+ feat: Contract layers support (features, examples, app-configs)
29
+
30
+ ### New CLI Commands
31
+ - `contractspec list layers` - List all contract layers with filtering
32
+
33
+ ### Enhanced Commands
34
+ - `contractspec ci` - New `layers` check category validates features/examples/config
35
+ - `contractspec doctor` - New `layers` health checks
36
+ - `contractspec integrity` - Now shows layer statistics
37
+
38
+ ### New APIs
39
+ - `discoverLayers()` - Scan workspace for all layer files
40
+ - `scanExampleSource()` - Parse ExampleSpec from source code
41
+ - `isExampleFile()` - Check if file is an example spec
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [e73ca1d]
46
+ - @contractspec/example.learning-journey-studio-onboarding@1.45.0
47
+ - @contractspec/example.learning-journey-quest-challenges@1.45.0
48
+ - @contractspec/example.learning-journey-crm-onboarding@1.45.0
49
+ - @contractspec/example.learning-journey-ambient-coach@1.45.0
50
+ - @contractspec/example.learning-journey-platform-tour@1.45.0
51
+ - @contractspec/example.learning-journey-ui-onboarding@1.45.0
52
+ - @contractspec/example.learning-journey-ui-coaching@1.45.0
53
+ - @contractspec/example.learning-journey-ui-gamified@1.45.0
54
+ - @contractspec/example.learning-journey-duo-drills@1.45.0
55
+ - @contractspec/example.learning-journey-ui-shared@1.45.0
56
+ - @contractspec/module.learning-journey@1.45.0
57
+ - @contractspec/lib.contracts@1.45.0
58
+ - @contractspec/lib.schema@1.45.0
59
+
3
60
  ## 1.44.1
4
61
 
5
62
  ### Patch Changes
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","names":[],"sources":["../src/api.ts"],"sourcesContent":[],"mappings":";;;;cAyLa;UAWZ;EAXY,QAAA,EAWZ,aAAA,EAAA;AAED,CAAA;AAUa,cAVA,WAUsB,EAAA,CAAA,OAAA,EAAA,MAAa,EAAA,SAAA,EAAA,MAAA,EAAA,GAVc,aAUd,GAAA,SAAA;cAAnC,qBAAsB,kBAAa"}
1
+ {"version":3,"file":"api.d.ts","names":[],"sources":["../src/api.ts"],"sourcesContent":[],"mappings":";;;;cAyLa;UAWZ;EAXY,QAAA,EAWZ,aAAA,EAAA;AAED,CAAA;AAUa,cAVA,WAUsB,EAAA,CAAA,OAAA,EAAa,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,GAVc,aAUd,GAAA,SAAA;cAAnC,qBAAsB,kBAAa"}
package/dist/example.d.ts CHANGED
@@ -1,33 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "learning-journey-registry";
4
- readonly title: "Learning Journey Registry";
5
- readonly summary: "Registry of learning journey tracks + presentations + UI mini-app bindings.";
6
- readonly tags: readonly ["learning", "journey", "registry"];
7
- readonly kind: "library";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.learning-journey-registry";
11
- };
12
- readonly entrypoints: {
13
- readonly packageName: "@contractspec/example.learning-journey-registry";
14
- readonly docs: "./docs";
15
- };
16
- readonly surfaces: {
17
- readonly templates: true;
18
- readonly sandbox: {
19
- readonly enabled: true;
20
- readonly modes: readonly ["markdown", "specs"];
21
- };
22
- readonly studio: {
23
- readonly enabled: true;
24
- readonly installable: true;
25
- };
26
- readonly mcp: {
27
- readonly enabled: true;
28
- };
29
- };
30
- };
4
+ declare const example: ExampleSpec;
31
5
  //#endregion
32
6
  export { example as default };
33
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAqBI,EAAA,2BAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,15 +1,20 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "learning-journey-registry",
4
- title: "Learning Journey Registry",
5
- summary: "Registry of learning journey tracks + presentations + UI mini-app bindings.",
6
- tags: [
7
- "learning",
8
- "journey",
9
- "registry"
10
- ],
11
- kind: "library",
12
- visibility: "public",
3
+ meta: {
4
+ key: "learning-journey-registry",
5
+ version: "1.0.0",
6
+ title: "Learning Journey Registry",
7
+ description: "Registry of learning journey tracks + presentations + UI mini-app bindings.",
8
+ kind: "library",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "learning",
14
+ "journey",
15
+ "registry"
16
+ ]
17
+ },
13
18
  docs: { rootDocId: "docs.examples.learning-journey-registry" },
14
19
  entrypoints: {
15
20
  packageName: "@contractspec/example.learning-journey-registry",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'learning-journey-registry',\n title: 'Learning Journey Registry',\n summary:\n 'Registry of learning journey tracks + presentations + UI mini-app bindings.',\n tags: ['learning', 'journey', 'registry'],\n kind: 'library',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.learning-journey-registry',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-registry',\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} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAY;EAAW;EAAW;CACzC,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,2CACZ;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;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'learning-journey-registry',\n version: '1.0.0',\n title: 'Learning Journey Registry',\n description:\n 'Registry of learning journey tracks + presentations + UI mini-app bindings.',\n kind: 'library',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'journey', 'registry'],\n },\n docs: {\n rootDocId: 'docs.examples.learning-journey-registry',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-registry',\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,MAAMA,UAAuB;CAC3B,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,2CACZ;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;AAED,sBAAe"}
@@ -6,7 +6,7 @@
6
6
  const LearningJourneyRegistryFeature = {
7
7
  meta: {
8
8
  key: "learning-journey-registry",
9
- version: 1,
9
+ version: "1.0.0",
10
10
  title: "Learning Journey Registry",
11
11
  description: "Shared registry and presentations for learning journey tracks",
12
12
  domain: "learning-journey",
@@ -24,27 +24,27 @@ const LearningJourneyRegistryFeature = {
24
24
  presentations: [
25
25
  {
26
26
  key: "learning.journey.track_list",
27
- version: 1
27
+ version: "1.0.0"
28
28
  },
29
29
  {
30
30
  key: "learning.journey.track_detail",
31
- version: 1
31
+ version: "1.0.0"
32
32
  },
33
33
  {
34
34
  key: "learning.journey.progress_widget",
35
- version: 1
35
+ version: "1.0.0"
36
36
  }
37
37
  ],
38
38
  opToPresentation: [],
39
39
  presentationsTargets: [
40
40
  {
41
41
  key: "learning.journey.track_list",
42
- version: 1,
42
+ version: "1.0.0",
43
43
  targets: ["react", "markdown"]
44
44
  },
45
45
  {
46
46
  key: "learning.journey.track_detail",
47
- version: 1,
47
+ version: "1.0.0",
48
48
  targets: [
49
49
  "react",
50
50
  "markdown",
@@ -53,13 +53,13 @@ const LearningJourneyRegistryFeature = {
53
53
  },
54
54
  {
55
55
  key: "learning.journey.progress_widget",
56
- version: 1,
56
+ version: "1.0.0",
57
57
  targets: ["react"]
58
58
  }
59
59
  ],
60
60
  capabilities: { requires: [{
61
61
  key: "identity",
62
- version: 1
62
+ version: "1.0.0"
63
63
  }] }
64
64
  };
65
65
 
@@ -1 +1 @@
1
- {"version":3,"file":"learning-journey-registry.feature.js","names":["LearningJourneyRegistryFeature: FeatureModuleSpec"],"sources":["../src/learning-journey-registry.feature.ts"],"sourcesContent":["/**\n * Learning Journey Registry Feature Module Specification\n *\n * Defines the feature module for the learning journey registry.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Learning Journey Registry feature module that bundles\n * the shared presentations for learning journey tracks.\n */\nexport const LearningJourneyRegistryFeature: FeatureModuleSpec = {\n meta: {\n key: 'learning-journey-registry',\n version: 1,\n title: 'Learning Journey Registry',\n description:\n 'Shared registry and presentations for learning journey tracks',\n domain: 'learning-journey',\n owners: ['@learning-team'],\n tags: ['learning', 'journey', 'onboarding', 'registry'],\n stability: 'experimental',\n },\n\n // No operations in the registry - it's presentation-only\n operations: [],\n\n // Events emitted by this feature\n events: [],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'learning.journey.track_list', version: 1 },\n { key: 'learning.journey.track_detail', version: 1 },\n { key: 'learning.journey.progress_widget', version: 1 },\n ],\n\n // No op to presentation links for registry\n opToPresentation: [],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'learning.journey.track_list',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'learning.journey.track_detail',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'learning.journey.progress_widget',\n version: 1,\n targets: ['react'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [{ key: 'identity', version: 1 }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,iCAAoD;CAC/D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAY;GAAW;GAAc;GAAW;EACvD,WAAW;EACZ;CAGD,YAAY,EAAE;CAGd,QAAQ,EAAE;CAGV,eAAe;EACb;GAAE,KAAK;GAA+B,SAAS;GAAG;EAClD;GAAE,KAAK;GAAiC,SAAS;GAAG;EACpD;GAAE,KAAK;GAAoC,SAAS;GAAG;EACxD;CAGD,kBAAkB,EAAE;CAGpB,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACF;CAGD,cAAc,EACZ,UAAU,CAAC;EAAE,KAAK;EAAY,SAAS;EAAG,CAAC,EAC5C;CACF"}
1
+ {"version":3,"file":"learning-journey-registry.feature.js","names":["LearningJourneyRegistryFeature: FeatureModuleSpec"],"sources":["../src/learning-journey-registry.feature.ts"],"sourcesContent":["/**\n * Learning Journey Registry Feature Module Specification\n *\n * Defines the feature module for the learning journey registry.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Learning Journey Registry feature module that bundles\n * the shared presentations for learning journey tracks.\n */\nexport const LearningJourneyRegistryFeature: FeatureModuleSpec = {\n meta: {\n key: 'learning-journey-registry',\n version: '1.0.0',\n title: 'Learning Journey Registry',\n description:\n 'Shared registry and presentations for learning journey tracks',\n domain: 'learning-journey',\n owners: ['@learning-team'],\n tags: ['learning', 'journey', 'onboarding', 'registry'],\n stability: 'experimental',\n },\n\n // No operations in the registry - it's presentation-only\n operations: [],\n\n // Events emitted by this feature\n events: [],\n\n // Presentations associated with this feature\n presentations: [\n { key: 'learning.journey.track_list', version: '1.0.0' },\n { key: 'learning.journey.track_detail', version: '1.0.0' },\n { key: 'learning.journey.progress_widget', version: '1.0.0' },\n ],\n\n // No op to presentation links for registry\n opToPresentation: [],\n\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'learning.journey.track_list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'learning.journey.track_detail',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'learning.journey.progress_widget',\n version: '1.0.0',\n targets: ['react'],\n },\n ],\n\n // Capability requirements\n capabilities: {\n requires: [{ key: 'identity', version: '1.0.0' }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,iCAAoD;CAC/D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAY;GAAW;GAAc;GAAW;EACvD,WAAW;EACZ;CAGD,YAAY,EAAE;CAGd,QAAQ,EAAE;CAGV,eAAe;EACb;GAAE,KAAK;GAA+B,SAAS;GAAS;EACxD;GAAE,KAAK;GAAiC,SAAS;GAAS;EAC1D;GAAE,KAAK;GAAoC,SAAS;GAAS;EAC9D;CAGD,kBAAkB,EAAE;CAGpB,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACF;CAGD,cAAc,EACZ,UAAU,CAAC;EAAE,KAAK;EAAY,SAAS;EAAS,CAAC,EAClD;CACF"}
@@ -17,7 +17,7 @@ const baseMeta = {
17
17
  const LearningTrackListPresentation = {
18
18
  meta: {
19
19
  key: "learning.journey.track_list",
20
- version: 1,
20
+ version: "1.0.0",
21
21
  description: "List of learning journeys available to the learner.",
22
22
  ...baseMeta
23
23
  },
@@ -31,7 +31,7 @@ const LearningTrackListPresentation = {
31
31
  const LearningTrackDetailPresentation = {
32
32
  meta: {
33
33
  key: "learning.journey.track_detail",
34
- version: 1,
34
+ version: "1.0.0",
35
35
  description: "Track detail with steps and progress state.",
36
36
  ...baseMeta
37
37
  },
@@ -49,7 +49,7 @@ const LearningTrackDetailPresentation = {
49
49
  const LearningTrackProgressWidgetPresentation = {
50
50
  meta: {
51
51
  key: "learning.journey.progress_widget",
52
- version: 1,
52
+ version: "1.0.0",
53
53
  description: "Compact widget showing progress for active track.",
54
54
  ...baseMeta
55
55
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["baseMeta: Pick<\n PresentationSpecMeta,\n 'domain' | 'owners' | 'tags' | 'title' | 'stability' | 'goal' | 'context'\n>","LearningTrackListPresentation: PresentationSpec","LearningTrackDetailPresentation: PresentationSpec","LearningTrackProgressWidgetPresentation: PresentationSpec"],"sources":["../../src/presentations/index.ts"],"sourcesContent":["import type {\n PresentationSpecMeta,\n PresentationSpec,\n} from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\n\nconst baseMeta: Pick<\n PresentationSpecMeta,\n 'domain' | 'owners' | 'tags' | 'title' | 'stability' | 'goal' | 'context'\n> = {\n domain: 'learning-journey',\n title: 'Learning Journey',\n owners: ['@learning-team'] as string[],\n tags: ['learning', 'journey', 'onboarding'] as string[],\n stability: StabilityEnum.Experimental,\n goal: 'Progress through learning tracks',\n context: 'Learning journey section',\n};\n\nexport const LearningTrackListPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.track_list',\n version: 1,\n description: 'List of learning journeys available to the learner.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackList',\n },\n targets: ['react', 'markdown'],\n};\n\nexport const LearningTrackDetailPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.track_detail',\n version: 1,\n description: 'Track detail with steps and progress state.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackDetail',\n },\n targets: ['react', 'markdown', 'application/json'],\n};\n\nexport const LearningTrackProgressWidgetPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.progress_widget',\n version: 1,\n description: 'Compact widget showing progress for active track.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackProgressWidget',\n },\n targets: ['react'],\n};\n\nexport const learningJourneyPresentations = [\n LearningTrackListPresentation,\n LearningTrackDetailPresentation,\n LearningTrackProgressWidgetPresentation,\n];\n"],"mappings":";;;AAMA,MAAMA,WAGF;CACF,QAAQ;CACR,OAAO;CACP,QAAQ,CAAC,iBAAiB;CAC1B,MAAM;EAAC;EAAY;EAAW;EAAa;CAC3C,WAAW,cAAc;CACzB,MAAM;CACN,SAAS;CACV;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC/B;AAED,MAAaC,kCAAoD;CAC/D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CACnD;AAED,MAAaC,0CAA4D;CACvE,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,QAAQ;CACnB;AAED,MAAa,+BAA+B;CAC1C;CACA;CACA;CACD"}
1
+ {"version":3,"file":"index.js","names":["baseMeta: Pick<\n PresentationSpecMeta,\n 'domain' | 'owners' | 'tags' | 'title' | 'stability' | 'goal' | 'context'\n>","LearningTrackListPresentation: PresentationSpec","LearningTrackDetailPresentation: PresentationSpec","LearningTrackProgressWidgetPresentation: PresentationSpec"],"sources":["../../src/presentations/index.ts"],"sourcesContent":["import type {\n PresentationSpecMeta,\n PresentationSpec,\n} from '@contractspec/lib.contracts';\nimport { StabilityEnum } from '@contractspec/lib.contracts';\n\nconst baseMeta: Pick<\n PresentationSpecMeta,\n 'domain' | 'owners' | 'tags' | 'title' | 'stability' | 'goal' | 'context'\n> = {\n domain: 'learning-journey',\n title: 'Learning Journey',\n owners: ['@learning-team'] as string[],\n tags: ['learning', 'journey', 'onboarding'] as string[],\n stability: StabilityEnum.Experimental,\n goal: 'Progress through learning tracks',\n context: 'Learning journey section',\n};\n\nexport const LearningTrackListPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.track_list',\n version: '1.0.0',\n description: 'List of learning journeys available to the learner.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackList',\n },\n targets: ['react', 'markdown'],\n};\n\nexport const LearningTrackDetailPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.track_detail',\n version: '1.0.0',\n description: 'Track detail with steps and progress state.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackDetail',\n },\n targets: ['react', 'markdown', 'application/json'],\n};\n\nexport const LearningTrackProgressWidgetPresentation: PresentationSpec = {\n meta: {\n key: 'learning.journey.progress_widget',\n version: '1.0.0',\n description: 'Compact widget showing progress for active track.',\n ...baseMeta,\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'LearningTrackProgressWidget',\n },\n targets: ['react'],\n};\n\nexport const learningJourneyPresentations = [\n LearningTrackListPresentation,\n LearningTrackDetailPresentation,\n LearningTrackProgressWidgetPresentation,\n];\n"],"mappings":";;;AAMA,MAAMA,WAGF;CACF,QAAQ;CACR,OAAO;CACP,QAAQ,CAAC,iBAAiB;CAC1B,MAAM;EAAC;EAAY;EAAW;EAAa;CAC3C,WAAW,cAAc;CACzB,MAAM;CACN,SAAS;CACV;AAED,MAAaC,gCAAkD;CAC7D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC/B;AAED,MAAaC,kCAAoD;CAC/D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CACnD;AAED,MAAaC,0CAA4D;CACvE,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,GAAG;EACJ;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,QAAQ;CACnB;AAED,MAAa,+BAA+B;CAC1C;CACA;CACA;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.learning-journey-registry",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "Registry that aggregates learning journey example tracks.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -34,24 +34,24 @@
34
34
  "lint:check": "eslint src"
35
35
  },
36
36
  "dependencies": {
37
- "@contractspec/lib.schema": "1.44.1",
38
- "@contractspec/lib.contracts": "1.44.1",
39
- "@contractspec/example.learning-journey-ambient-coach": "1.44.1",
40
- "@contractspec/example.learning-journey-duo-drills": "1.44.1",
41
- "@contractspec/example.learning-journey-crm-onboarding": "1.44.1",
42
- "@contractspec/example.learning-journey-platform-tour": "1.44.1",
43
- "@contractspec/example.learning-journey-quest-challenges": "1.44.1",
44
- "@contractspec/example.learning-journey-studio-onboarding": "1.44.1",
45
- "@contractspec/example.learning-journey-ui-shared": "1.44.1",
46
- "@contractspec/example.learning-journey-ui-gamified": "1.44.1",
47
- "@contractspec/example.learning-journey-ui-onboarding": "1.44.1",
48
- "@contractspec/example.learning-journey-ui-coaching": "1.44.1",
49
- "@contractspec/module.learning-journey": "1.44.1",
37
+ "@contractspec/lib.schema": "1.45.1",
38
+ "@contractspec/lib.contracts": "1.45.1",
39
+ "@contractspec/example.learning-journey-ambient-coach": "1.45.1",
40
+ "@contractspec/example.learning-journey-duo-drills": "1.45.1",
41
+ "@contractspec/example.learning-journey-crm-onboarding": "1.45.1",
42
+ "@contractspec/example.learning-journey-platform-tour": "1.45.1",
43
+ "@contractspec/example.learning-journey-quest-challenges": "1.45.1",
44
+ "@contractspec/example.learning-journey-studio-onboarding": "1.45.1",
45
+ "@contractspec/example.learning-journey-ui-shared": "1.45.1",
46
+ "@contractspec/example.learning-journey-ui-gamified": "1.45.1",
47
+ "@contractspec/example.learning-journey-ui-onboarding": "1.45.1",
48
+ "@contractspec/example.learning-journey-ui-coaching": "1.45.1",
49
+ "@contractspec/module.learning-journey": "1.45.1",
50
50
  "react": "19.2.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@contractspec/tool.tsdown": "1.44.1",
54
- "@contractspec/tool.typescript": "1.44.1",
53
+ "@contractspec/tool.tsdown": "1.45.1",
54
+ "@contractspec/tool.typescript": "1.45.1",
55
55
  "@types/react": "^19.1.6",
56
56
  "tsdown": "^0.18.3",
57
57
  "typescript": "^5.9.3"
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'learning-journey-registry',
3
- title: 'Learning Journey Registry',
4
- summary:
5
- 'Registry of learning journey tracks + presentations + UI mini-app bindings.',
6
- tags: ['learning', 'journey', 'registry'],
7
- kind: 'library',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'learning-journey-registry',
6
+ version: '1.0.0',
7
+ title: 'Learning Journey Registry',
8
+ description:
9
+ 'Registry of learning journey tracks + presentations + UI mini-app bindings.',
10
+ kind: 'library',
11
+ visibility: 'public',
12
+ stability: 'experimental',
13
+ owners: ['@platform.core'],
14
+ tags: ['learning', 'journey', 'registry'],
15
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.examples.learning-journey-registry',
11
18
  },
@@ -19,6 +26,6 @@ const example = {
19
26
  studio: { enabled: true, installable: true },
20
27
  mcp: { enabled: true },
21
28
  },
22
- } as const;
29
+ };
23
30
 
24
31
  export default example;
@@ -12,7 +12,7 @@ import type { FeatureModuleSpec } from '@contractspec/lib.contracts';
12
12
  export const LearningJourneyRegistryFeature: FeatureModuleSpec = {
13
13
  meta: {
14
14
  key: 'learning-journey-registry',
15
- version: 1,
15
+ version: '1.0.0',
16
16
  title: 'Learning Journey Registry',
17
17
  description:
18
18
  'Shared registry and presentations for learning journey tracks',
@@ -30,9 +30,9 @@ export const LearningJourneyRegistryFeature: FeatureModuleSpec = {
30
30
 
31
31
  // Presentations associated with this feature
32
32
  presentations: [
33
- { key: 'learning.journey.track_list', version: 1 },
34
- { key: 'learning.journey.track_detail', version: 1 },
35
- { key: 'learning.journey.progress_widget', version: 1 },
33
+ { key: 'learning.journey.track_list', version: '1.0.0' },
34
+ { key: 'learning.journey.track_detail', version: '1.0.0' },
35
+ { key: 'learning.journey.progress_widget', version: '1.0.0' },
36
36
  ],
37
37
 
38
38
  // No op to presentation links for registry
@@ -42,23 +42,23 @@ export const LearningJourneyRegistryFeature: FeatureModuleSpec = {
42
42
  presentationsTargets: [
43
43
  {
44
44
  key: 'learning.journey.track_list',
45
- version: 1,
45
+ version: '1.0.0',
46
46
  targets: ['react', 'markdown'],
47
47
  },
48
48
  {
49
49
  key: 'learning.journey.track_detail',
50
- version: 1,
50
+ version: '1.0.0',
51
51
  targets: ['react', 'markdown', 'application/json'],
52
52
  },
53
53
  {
54
54
  key: 'learning.journey.progress_widget',
55
- version: 1,
55
+ version: '1.0.0',
56
56
  targets: ['react'],
57
57
  },
58
58
  ],
59
59
 
60
60
  // Capability requirements
61
61
  capabilities: {
62
- requires: [{ key: 'identity', version: 1 }],
62
+ requires: [{ key: 'identity', version: '1.0.0' }],
63
63
  },
64
64
  };
@@ -20,7 +20,7 @@ const baseMeta: Pick<
20
20
  export const LearningTrackListPresentation: PresentationSpec = {
21
21
  meta: {
22
22
  key: 'learning.journey.track_list',
23
- version: 1,
23
+ version: '1.0.0',
24
24
  description: 'List of learning journeys available to the learner.',
25
25
  ...baseMeta,
26
26
  },
@@ -35,7 +35,7 @@ export const LearningTrackListPresentation: PresentationSpec = {
35
35
  export const LearningTrackDetailPresentation: PresentationSpec = {
36
36
  meta: {
37
37
  key: 'learning.journey.track_detail',
38
- version: 1,
38
+ version: '1.0.0',
39
39
  description: 'Track detail with steps and progress state.',
40
40
  ...baseMeta,
41
41
  },
@@ -50,7 +50,7 @@ export const LearningTrackDetailPresentation: PresentationSpec = {
50
50
  export const LearningTrackProgressWidgetPresentation: PresentationSpec = {
51
51
  meta: {
52
52
  key: 'learning.journey.progress_widget',
53
- version: 1,
53
+ version: '1.0.0',
54
54
  description: 'Compact widget showing progress for active track.',
55
55
  ...baseMeta,
56
56
  },