@contractspec/example.learning-journey-quest-challenges 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.
@@ -8,18 +8,18 @@ $ tsdown
8
8
  ℹ Cleaning 16 files
9
9
  ℹ dist/docs/quest-challenges.docblock.js 1.51 kB │ gzip: 0.78 kB
10
10
  ℹ dist/track.js 1.44 kB │ gzip: 0.76 kB
11
- ℹ dist/example.js 0.82 kB │ gzip: 0.46 kB
11
+ ℹ dist/example.js 0.93 kB │ gzip: 0.51 kB
12
12
  ℹ dist/index.js 0.21 kB │ gzip: 0.13 kB
13
13
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
14
  ℹ dist/track.js.map 2.70 kB │ gzip: 1.16 kB
15
15
  ℹ dist/docs/quest-challenges.docblock.js.map 1.93 kB │ gzip: 0.95 kB
16
- ℹ dist/example.js.map 1.17 kB │ gzip: 0.62 kB
17
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
16
+ ℹ dist/example.js.map 1.45 kB │ gzip: 0.73 kB
18
17
  ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
- ℹ dist/example.d.ts 1.05 kB │ gzip: 0.45 kB
18
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
19
  ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
20
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
21
21
  ℹ dist/index.d.ts 0.15 kB │ gzip: 0.10 kB
22
22
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
23
23
  ℹ dist/docs/quest-challenges.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
- ℹ 15 files, total: 11.66 kB
25
- ✔ Build complete in 13671ms
24
+ ℹ 15 files, total: 11.18 kB
25
+ ✔ Build complete in 18956ms
@@ -9,18 +9,18 @@ $ tsdown
9
9
  ℹ Build start
10
10
  ℹ dist/docs/quest-challenges.docblock.js 1.51 kB │ gzip: 0.78 kB
11
11
  ℹ dist/track.js 1.44 kB │ gzip: 0.76 kB
12
- ℹ dist/example.js 0.82 kB │ gzip: 0.46 kB
12
+ ℹ dist/example.js 0.93 kB │ gzip: 0.51 kB
13
13
  ℹ dist/index.js 0.21 kB │ gzip: 0.13 kB
14
14
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
15
  ℹ dist/track.js.map 2.70 kB │ gzip: 1.16 kB
16
16
  ℹ dist/docs/quest-challenges.docblock.js.map 1.93 kB │ gzip: 0.95 kB
17
- ℹ dist/example.js.map 1.17 kB │ gzip: 0.62 kB
18
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
17
+ ℹ dist/example.js.map 1.45 kB │ gzip: 0.73 kB
19
18
  ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
20
- ℹ dist/example.d.ts 1.05 kB │ gzip: 0.45 kB
19
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
21
20
  ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
21
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
22
22
  ℹ dist/index.d.ts 0.15 kB │ gzip: 0.10 kB
23
23
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
24
  ℹ dist/docs/quest-challenges.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
25
- ℹ 15 files, total: 11.66 kB
26
- ✔ Build complete in 15671ms
25
+ ℹ 15 files, total: 11.18 kB
26
+ ✔ Build complete in 19932ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @contractspec/example.learning-journey-quest-challenges
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-journey-quest-challenges";
4
- readonly title: "Learning Journey — Quest Challenges";
5
- readonly summary: "Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.";
6
- readonly tags: readonly ["learning", "quests", "challenges"];
7
- readonly kind: "template";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.learning-journey.quest-challenges";
11
- };
12
- readonly entrypoints: {
13
- readonly packageName: "@contractspec/example.learning-journey-quest-challenges";
14
- readonly docs: "./docs";
15
- };
16
- readonly surfaces: {
17
- readonly templates: true;
18
- readonly sandbox: {
19
- readonly enabled: true;
20
- readonly modes: readonly ["playground", "markdown"];
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,mCAAA"}
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-quest-challenges",
4
- title: "Learning Journey — Quest Challenges",
5
- summary: "Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.",
6
- tags: [
7
- "learning",
8
- "quests",
9
- "challenges"
10
- ],
11
- kind: "template",
12
- visibility: "public",
3
+ meta: {
4
+ key: "learning-journey-quest-challenges",
5
+ version: "1.0.0",
6
+ title: "Learning Journey — Quest Challenges",
7
+ description: "Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.",
8
+ kind: "template",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "learning",
14
+ "quests",
15
+ "challenges"
16
+ ]
17
+ },
13
18
  docs: { rootDocId: "docs.learning-journey.quest-challenges" },
14
19
  entrypoints: {
15
20
  packageName: "@contractspec/example.learning-journey-quest-challenges",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'learning-journey-quest-challenges',\n title: 'Learning Journey — Quest Challenges',\n summary:\n 'Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.',\n tags: ['learning', 'quests', 'challenges'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.learning-journey.quest-challenges',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-quest-challenges',\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} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAY;EAAU;EAAa;CAC1C,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,0CACZ;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;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-quest-challenges',\n version: '1.0.0',\n title: 'Learning Journey — Quest Challenges',\n description:\n 'Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'quests', 'challenges'],\n },\n docs: {\n rootDocId: 'docs.learning-journey.quest-challenges',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-quest-challenges',\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,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;GAAU;GAAa;EAC3C;CACD,MAAM,EACJ,WAAW,0CACZ;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;AAED,sBAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.learning-journey-quest-challenges",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "Time-bound quest/challenge learning journey example.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,13 +27,13 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/module.learning-journey": "1.44.1",
31
- "@contractspec/lib.schema": "1.44.1",
32
- "@contractspec/lib.contracts": "1.44.1"
30
+ "@contractspec/module.learning-journey": "1.45.1",
31
+ "@contractspec/lib.schema": "1.45.1",
32
+ "@contractspec/lib.contracts": "1.45.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@contractspec/tool.tsdown": "1.44.1",
36
- "@contractspec/tool.typescript": "1.44.1",
35
+ "@contractspec/tool.tsdown": "1.45.1",
36
+ "@contractspec/tool.typescript": "1.45.1",
37
37
  "tsdown": "^0.18.3",
38
38
  "typescript": "^5.9.3"
39
39
  },
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'learning-journey-quest-challenges',
3
- title: 'Learning Journey — Quest Challenges',
4
- summary:
5
- 'Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.',
6
- tags: ['learning', 'quests', 'challenges'],
7
- kind: 'template',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'learning-journey-quest-challenges',
6
+ version: '1.0.0',
7
+ title: 'Learning Journey — Quest Challenges',
8
+ description:
9
+ 'Quest/challenge pattern: multi-step goals with progress events, rewards, and streak hooks.',
10
+ kind: 'template',
11
+ visibility: 'public',
12
+ stability: 'experimental',
13
+ owners: ['@platform.core'],
14
+ tags: ['learning', 'quests', 'challenges'],
15
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.learning-journey.quest-challenges',
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;