@contractspec/example.learning-patterns 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.
@@ -10,7 +10,7 @@ $ tsdown
10
10
  ℹ dist/docs/learning-patterns.docblock.js 1.15 kB │ gzip: 0.57 kB
11
11
  ℹ dist/tracks/quests.js 1.11 kB │ gzip: 0.48 kB
12
12
  ℹ dist/tracks/ambient-coach.js 1.07 kB │ gzip: 0.48 kB
13
- ℹ dist/example.js 0.74 kB │ gzip: 0.41 kB
13
+ ℹ dist/example.js 0.84 kB │ gzip: 0.46 kB
14
14
  ℹ dist/events.js 0.53 kB │ gzip: 0.31 kB
15
15
  ℹ dist/index.js 0.50 kB │ gzip: 0.20 kB
16
16
  ℹ dist/tracks/index.js 0.29 kB │ gzip: 0.12 kB
@@ -19,21 +19,21 @@ $ tsdown
19
19
  ℹ dist/tracks/quests.js.map 1.96 kB │ gzip: 0.74 kB
20
20
  ℹ dist/tracks/ambient-coach.js.map 1.86 kB │ gzip: 0.74 kB
21
21
  ℹ dist/docs/learning-patterns.docblock.js.map 1.65 kB │ gzip: 0.74 kB
22
- ℹ dist/example.js.map 1.09 kB │ gzip: 0.58 kB
22
+ ℹ dist/example.js.map 1.37 kB │ gzip: 0.68 kB
23
23
  ℹ dist/events.js.map 0.82 kB │ gzip: 0.45 kB
24
24
  ℹ dist/events.d.ts.map 0.20 kB │ gzip: 0.16 kB
25
25
  ℹ dist/tracks/ambient-coach.d.ts.map 0.16 kB │ gzip: 0.14 kB
26
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
27
26
  ℹ dist/tracks/drills.d.ts.map 0.14 kB │ gzip: 0.13 kB
28
27
  ℹ dist/tracks/quests.d.ts.map 0.14 kB │ gzip: 0.13 kB
29
- ℹ dist/example.d.ts 0.97 kB │ gzip: 0.40 kB
28
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
30
29
  ℹ dist/events.d.ts 0.73 kB │ gzip: 0.36 kB
31
30
  ℹ dist/index.d.ts 0.46 kB │ gzip: 0.19 kB
32
31
  ℹ dist/tracks/ambient-coach.d.ts 0.36 kB │ gzip: 0.20 kB
33
32
  ℹ dist/tracks/drills.d.ts 0.32 kB │ gzip: 0.19 kB
34
33
  ℹ dist/tracks/quests.d.ts 0.32 kB │ gzip: 0.19 kB
35
34
  ℹ dist/tracks/index.d.ts 0.29 kB │ gzip: 0.12 kB
35
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
36
36
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
37
37
  ℹ dist/docs/learning-patterns.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
38
- ℹ 29 files, total: 20.41 kB
39
- ✔ Build complete in 14528ms
38
+ ℹ 29 files, total: 20.01 kB
39
+ ✔ Build complete in 18577ms
@@ -11,7 +11,7 @@ $ tsdown
11
11
  ℹ dist/docs/learning-patterns.docblock.js 1.15 kB │ gzip: 0.57 kB
12
12
  ℹ dist/tracks/quests.js 1.11 kB │ gzip: 0.48 kB
13
13
  ℹ dist/tracks/ambient-coach.js 1.07 kB │ gzip: 0.48 kB
14
- ℹ dist/example.js 0.74 kB │ gzip: 0.41 kB
14
+ ℹ dist/example.js 0.84 kB │ gzip: 0.46 kB
15
15
  ℹ dist/events.js 0.53 kB │ gzip: 0.31 kB
16
16
  ℹ dist/index.js 0.50 kB │ gzip: 0.20 kB
17
17
  ℹ dist/tracks/index.js 0.29 kB │ gzip: 0.12 kB
@@ -20,21 +20,21 @@ $ tsdown
20
20
  ℹ dist/tracks/quests.js.map 1.96 kB │ gzip: 0.74 kB
21
21
  ℹ dist/tracks/ambient-coach.js.map 1.86 kB │ gzip: 0.74 kB
22
22
  ℹ dist/docs/learning-patterns.docblock.js.map 1.65 kB │ gzip: 0.74 kB
23
- ℹ dist/example.js.map 1.09 kB │ gzip: 0.58 kB
23
+ ℹ dist/example.js.map 1.37 kB │ gzip: 0.68 kB
24
24
  ℹ dist/events.js.map 0.82 kB │ gzip: 0.45 kB
25
25
  ℹ dist/events.d.ts.map 0.20 kB │ gzip: 0.16 kB
26
26
  ℹ dist/tracks/ambient-coach.d.ts.map 0.16 kB │ gzip: 0.14 kB
27
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
28
27
  ℹ dist/tracks/drills.d.ts.map 0.14 kB │ gzip: 0.13 kB
29
28
  ℹ dist/tracks/quests.d.ts.map 0.14 kB │ gzip: 0.13 kB
30
- ℹ dist/example.d.ts 0.97 kB │ gzip: 0.40 kB
29
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
31
30
  ℹ dist/events.d.ts 0.73 kB │ gzip: 0.36 kB
32
31
  ℹ dist/index.d.ts 0.46 kB │ gzip: 0.19 kB
33
32
  ℹ dist/tracks/ambient-coach.d.ts 0.36 kB │ gzip: 0.20 kB
34
33
  ℹ dist/tracks/drills.d.ts 0.32 kB │ gzip: 0.19 kB
35
34
  ℹ dist/tracks/quests.d.ts 0.32 kB │ gzip: 0.19 kB
36
35
  ℹ dist/tracks/index.d.ts 0.29 kB │ gzip: 0.12 kB
36
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
37
37
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
38
38
  ℹ dist/docs/learning-patterns.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
39
- ℹ 29 files, total: 20.41 kB
40
- ✔ Build complete in 16456ms
39
+ ℹ 29 files, total: 20.01 kB
40
+ ✔ Build complete in 19970ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @contractspec/example.learning-patterns
2
2
 
3
+ ## 1.45.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: improve app config and examples contracts
8
+ - Updated dependencies
9
+ - @contractspec/module.learning-journey@1.45.1
10
+ - @contractspec/lib.contracts@1.45.1
11
+ - @contractspec/lib.schema@1.45.1
12
+
13
+ ## 1.45.0
14
+
15
+ ### Minor Changes
16
+
17
+ - e73ca1d: feat: improve app config and examples contracts
18
+ feat: Contract layers support (features, examples, app-configs)
19
+
20
+ ### New CLI Commands
21
+ - `contractspec list layers` - List all contract layers with filtering
22
+
23
+ ### Enhanced Commands
24
+ - `contractspec ci` - New `layers` check category validates features/examples/config
25
+ - `contractspec doctor` - New `layers` health checks
26
+ - `contractspec integrity` - Now shows layer statistics
27
+
28
+ ### New APIs
29
+ - `discoverLayers()` - Scan workspace for all layer files
30
+ - `scanExampleSource()` - Parse ExampleSpec from source code
31
+ - `isExampleFile()` - Check if file is an example spec
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [e73ca1d]
36
+ - @contractspec/module.learning-journey@1.45.0
37
+ - @contractspec/lib.contracts@1.45.0
38
+ - @contractspec/lib.schema@1.45.0
39
+
3
40
  ## 1.44.1
4
41
 
5
42
  ### Patch Changes
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-patterns";
4
- readonly title: "Learning Patterns";
5
- readonly summary: "Domain-agnostic learning archetypes implemented as Learning Journey tracks.";
6
- readonly tags: readonly ["learning", "journey", "patterns"];
7
- readonly kind: "library";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.learning-patterns";
11
- };
12
- readonly entrypoints: {
13
- readonly packageName: "@contractspec/example.learning-patterns";
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,mBAAA"}
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-patterns",
4
- title: "Learning Patterns",
5
- summary: "Domain-agnostic learning archetypes implemented as Learning Journey tracks.",
6
- tags: [
7
- "learning",
8
- "journey",
9
- "patterns"
10
- ],
11
- kind: "library",
12
- visibility: "public",
3
+ meta: {
4
+ key: "learning-patterns",
5
+ version: "1.0.0",
6
+ title: "Learning Patterns",
7
+ description: "Domain-agnostic learning archetypes implemented as Learning Journey tracks.",
8
+ kind: "library",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "learning",
14
+ "journey",
15
+ "patterns"
16
+ ]
17
+ },
13
18
  docs: { rootDocId: "docs.examples.learning-patterns" },
14
19
  entrypoints: {
15
20
  packageName: "@contractspec/example.learning-patterns",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'learning-patterns',\n title: 'Learning Patterns',\n summary:\n 'Domain-agnostic learning archetypes implemented as Learning Journey tracks.',\n tags: ['learning', 'journey', 'patterns'],\n kind: 'library',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.learning-patterns',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-patterns',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} 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,mCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;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-patterns',\n version: '1.0.0',\n title: 'Learning Patterns',\n description:\n 'Domain-agnostic learning archetypes implemented as Learning Journey tracks.',\n kind: 'library',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'journey', 'patterns'],\n },\n docs: {\n rootDocId: 'docs.examples.learning-patterns',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-patterns',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,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,mCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.learning-patterns",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "Example: drills + ambient coach + quests learning patterns, powered by Learning Journey (event-driven, deterministic).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,13 +32,13 @@
32
32
  "test": "bun test"
33
33
  },
34
34
  "dependencies": {
35
- "@contractspec/lib.schema": "1.44.1",
36
- "@contractspec/lib.contracts": "1.44.1",
37
- "@contractspec/module.learning-journey": "1.44.1"
35
+ "@contractspec/lib.schema": "1.45.1",
36
+ "@contractspec/lib.contracts": "1.45.1",
37
+ "@contractspec/module.learning-journey": "1.45.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@contractspec/tool.tsdown": "1.44.1",
41
- "@contractspec/tool.typescript": "1.44.1",
40
+ "@contractspec/tool.tsdown": "1.45.1",
41
+ "@contractspec/tool.typescript": "1.45.1",
42
42
  "tsdown": "^0.18.3",
43
43
  "typescript": "^5.9.3"
44
44
  },
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'learning-patterns',
3
- title: 'Learning Patterns',
4
- summary:
5
- 'Domain-agnostic learning archetypes implemented as Learning Journey tracks.',
6
- tags: ['learning', 'journey', 'patterns'],
7
- kind: 'library',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'learning-patterns',
6
+ version: '1.0.0',
7
+ title: 'Learning Patterns',
8
+ description:
9
+ 'Domain-agnostic learning archetypes implemented as Learning Journey tracks.',
10
+ kind: 'library',
11
+ visibility: 'public',
12
+ stability: 'experimental',
13
+ owners: ['@platform.core'],
14
+ tags: ['learning', 'journey', 'patterns'],
15
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.examples.learning-patterns',
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;