@contractspec/example.learning-journey-quest-challenges 1.46.2 → 1.48.0

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.
@@ -1,5 +1,5 @@
1
1
  $ tsdown
2
- ℹ tsdown v0.18.4 powered by rolldown v1.0.0-beta.57
2
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
3
3
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-quest-challenges/tsdown.config.js
4
4
  ℹ entry: src/example.ts, src/index.ts, src/track.ts, src/docs/index.ts, src/docs/quest-challenges.docblock.ts
5
5
  ℹ target: esnext
@@ -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.93 kB │ gzip: 0.51 kB
11
+ ℹ dist/example.js 1.00 kB │ gzip: 0.54 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
- ℹ dist/track.js.map 2.70 kB │ gzip: 1.16 kB
14
+ ℹ dist/track.js.map 2.61 kB │ gzip: 1.15 kB
15
15
  ℹ dist/docs/quest-challenges.docblock.js.map 1.93 kB │ gzip: 0.95 kB
16
- ℹ dist/example.js.map 1.45 kB │ gzip: 0.73 kB
16
+ ℹ dist/example.js.map 1.43 kB │ gzip: 0.74 kB
17
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
17
18
  ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
- ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
19
19
  ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
20
- ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
20
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 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.18 kB
25
- ✔ Build complete in 16138ms
24
+ ℹ 15 files, total: 11.21 kB
25
+ ✔ Build complete in 19385ms
@@ -1,7 +1,7 @@
1
1
  $ bun build:types && bun build:bundle
2
2
  $ tsc --noEmit
3
3
  $ tsdown
4
- ℹ tsdown v0.18.4 powered by rolldown v1.0.0-beta.57
4
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
5
5
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-quest-challenges/tsdown.config.js
6
6
  ℹ entry: src/example.ts, src/index.ts, src/track.ts, src/docs/index.ts, src/docs/quest-challenges.docblock.ts
7
7
  ℹ target: esnext
@@ -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.93 kB │ gzip: 0.51 kB
12
+ ℹ dist/example.js 1.00 kB │ gzip: 0.54 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
- ℹ dist/track.js.map 2.70 kB │ gzip: 1.16 kB
15
+ ℹ dist/track.js.map 2.61 kB │ gzip: 1.15 kB
16
16
  ℹ dist/docs/quest-challenges.docblock.js.map 1.93 kB │ gzip: 0.95 kB
17
- ℹ dist/example.js.map 1.45 kB │ gzip: 0.73 kB
17
+ ℹ dist/example.js.map 1.43 kB │ gzip: 0.74 kB
18
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
19
  ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
- ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
20
  ℹ dist/track.d.ts 0.33 kB │ gzip: 0.20 kB
21
- ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
21
+ ℹ dist/example.d.ts 0.25 kB │ gzip: 0.17 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.18 kB
26
- ✔ Build complete in 20501ms
25
+ ℹ 15 files, total: 11.21 kB
26
+ ✔ Build complete in 21801ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @contractspec/example.learning-journey-quest-challenges
2
2
 
3
+ ## 1.48.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b0444a4: feat: reduce adoption's friction by allowing generation of contracts from an analyse of the codebase
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b0444a4]
12
+ - @contractspec/module.learning-journey@1.48.0
13
+ - @contractspec/lib.contracts@1.48.0
14
+
15
+ ## 1.47.0
16
+
17
+ ### Minor Changes
18
+
19
+ - caf8701: feat: add cli vibe command to run workflow
20
+ - c69b849: feat: add api web services (mcp & website)
21
+ - 42b8d78: feat: add cli `contractspec vibe` workflow to simplify usage
22
+ - fd38e85: feat: auto-fix contractspec issues
23
+
24
+ ### Patch Changes
25
+
26
+ - e7ded36: feat: improve stability (adding ts-morph)
27
+ - c231a8b: test: improve workspace stability
28
+ - Updated dependencies [e7ded36]
29
+ - Updated dependencies [caf8701]
30
+ - Updated dependencies [c69b849]
31
+ - Updated dependencies [c231a8b]
32
+ - Updated dependencies [42b8d78]
33
+ - Updated dependencies [fd38e85]
34
+ - @contractspec/module.learning-journey@1.47.0
35
+ - @contractspec/lib.contracts@1.47.0
36
+
3
37
  ## 1.46.2
4
38
 
5
39
  ### Patch Changes
package/dist/example.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ExampleSpec } from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/example.d.ts
4
- declare const example: ExampleSpec;
4
+ declare const example: _contractspec_lib_contracts0.ExampleSpec;
5
5
  //#endregion
6
6
  export { example as default };
7
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SA0BJ,4BAAA,CA1BW"}
package/dist/example.js CHANGED
@@ -1,5 +1,7 @@
1
+ import { defineExample } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.ts
2
- const example = {
4
+ const example = defineExample({
3
5
  meta: {
4
6
  key: "learning-journey-quest-challenges",
5
7
  version: "1.0.0",
@@ -32,7 +34,7 @@ const example = {
32
34
  },
33
35
  mcp: { enabled: true }
34
36
  }
35
- };
37
+ });
36
38
  var example_default = example;
37
39
 
38
40
  //#endregion
@@ -1 +1 @@
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"}
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-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,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;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,CAAC;AAEF,sBAAe"}
package/dist/track.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"track.js","names":["moneyResetQuestTrack: LearningJourneyTrackSpec","questTracks: LearningJourneyTrackSpec[]"],"sources":["../src/track.ts"],"sourcesContent":["import type { LearningJourneyTrackSpec } from '@contractspec/module.learning-journey/track-spec';\n\nconst dayStep = (\n id: string,\n day: number,\n eventName: string,\n description: string\n): LearningJourneyTrackSpec['steps'][number] => ({\n id,\n title: `Day ${day}`,\n description,\n availability: { unlockOnDay: day },\n completion: {\n kind: 'time_window',\n eventName,\n withinHoursOfStart: (day + 1) * 24, // allow grace through next day\n },\n xpReward: 15,\n metadata: { day },\n});\n\nexport const moneyResetQuestTrack: LearningJourneyTrackSpec = {\n id: 'money_reset_7day',\n name: '7-day Money Reset',\n description:\n 'Time-bound quest to reset personal finances over a focused week.',\n targetUserSegment: 'money_user',\n totalXp: 105,\n completionRewards: { xpBonus: 30 },\n steps: [\n dayStep(\n 'day1_map_accounts',\n 1,\n 'accounts.mapped',\n 'Map bank and card accounts.'\n ),\n dayStep(\n 'day2_categorize_transactions',\n 2,\n 'transactions.categorized',\n 'Categorize recent transactions.'\n ),\n dayStep(\n 'day3_define_goals',\n 3,\n 'goals.created',\n 'Define at least one savings goal.'\n ),\n dayStep(\n 'day4_setup_recurring_savings',\n 4,\n 'recurring_rule.created',\n 'Set a recurring savings rule.'\n ),\n dayStep(\n 'day5_review_subscriptions',\n 5,\n 'subscription.flagged_or_cancelled',\n 'Review subscriptions and flag or cancel wasteful ones.'\n ),\n dayStep(\n 'day6_plan_emergency',\n 6,\n 'emergency_plan.completed',\n 'Draft an emergency plan and target buffer.'\n ),\n dayStep(\n 'day7_review_commit',\n 7,\n 'quest.review.completed',\n 'Review week outcomes and commit to the next month.'\n ),\n ],\n};\n\nexport const questTracks: LearningJourneyTrackSpec[] = [moneyResetQuestTrack];\n"],"mappings":";AAEA,MAAM,WACJ,IACA,KACA,WACA,iBAC+C;CAC/C;CACA,OAAO,OAAO;CACd;CACA,cAAc,EAAE,aAAa,KAAK;CAClC,YAAY;EACV,MAAM;EACN;EACA,qBAAqB,MAAM,KAAK;EACjC;CACD,UAAU;CACV,UAAU,EAAE,KAAK;CAClB;AAED,MAAaA,uBAAiD;CAC5D,IAAI;CACJ,MAAM;CACN,aACE;CACF,mBAAmB;CACnB,SAAS;CACT,mBAAmB,EAAE,SAAS,IAAI;CAClC,OAAO;EACL,QACE,qBACA,GACA,mBACA,8BACD;EACD,QACE,gCACA,GACA,4BACA,kCACD;EACD,QACE,qBACA,GACA,iBACA,oCACD;EACD,QACE,gCACA,GACA,0BACA,gCACD;EACD,QACE,6BACA,GACA,qCACA,yDACD;EACD,QACE,uBACA,GACA,4BACA,6CACD;EACD,QACE,sBACA,GACA,0BACA,qDACD;EACF;CACF;AAED,MAAaC,cAA0C,CAAC,qBAAqB"}
1
+ {"version":3,"file":"track.js","names":[],"sources":["../src/track.ts"],"sourcesContent":["import type { LearningJourneyTrackSpec } from '@contractspec/module.learning-journey/track-spec';\n\nconst dayStep = (\n id: string,\n day: number,\n eventName: string,\n description: string\n): LearningJourneyTrackSpec['steps'][number] => ({\n id,\n title: `Day ${day}`,\n description,\n availability: { unlockOnDay: day },\n completion: {\n kind: 'time_window',\n eventName,\n withinHoursOfStart: (day + 1) * 24, // allow grace through next day\n },\n xpReward: 15,\n metadata: { day },\n});\n\nexport const moneyResetQuestTrack: LearningJourneyTrackSpec = {\n id: 'money_reset_7day',\n name: '7-day Money Reset',\n description:\n 'Time-bound quest to reset personal finances over a focused week.',\n targetUserSegment: 'money_user',\n totalXp: 105,\n completionRewards: { xpBonus: 30 },\n steps: [\n dayStep(\n 'day1_map_accounts',\n 1,\n 'accounts.mapped',\n 'Map bank and card accounts.'\n ),\n dayStep(\n 'day2_categorize_transactions',\n 2,\n 'transactions.categorized',\n 'Categorize recent transactions.'\n ),\n dayStep(\n 'day3_define_goals',\n 3,\n 'goals.created',\n 'Define at least one savings goal.'\n ),\n dayStep(\n 'day4_setup_recurring_savings',\n 4,\n 'recurring_rule.created',\n 'Set a recurring savings rule.'\n ),\n dayStep(\n 'day5_review_subscriptions',\n 5,\n 'subscription.flagged_or_cancelled',\n 'Review subscriptions and flag or cancel wasteful ones.'\n ),\n dayStep(\n 'day6_plan_emergency',\n 6,\n 'emergency_plan.completed',\n 'Draft an emergency plan and target buffer.'\n ),\n dayStep(\n 'day7_review_commit',\n 7,\n 'quest.review.completed',\n 'Review week outcomes and commit to the next month.'\n ),\n ],\n};\n\nexport const questTracks: LearningJourneyTrackSpec[] = [moneyResetQuestTrack];\n"],"mappings":";AAEA,MAAM,WACJ,IACA,KACA,WACA,iBAC+C;CAC/C;CACA,OAAO,OAAO;CACd;CACA,cAAc,EAAE,aAAa,KAAK;CAClC,YAAY;EACV,MAAM;EACN;EACA,qBAAqB,MAAM,KAAK;EACjC;CACD,UAAU;CACV,UAAU,EAAE,KAAK;CAClB;AAED,MAAa,uBAAiD;CAC5D,IAAI;CACJ,MAAM;CACN,aACE;CACF,mBAAmB;CACnB,SAAS;CACT,mBAAmB,EAAE,SAAS,IAAI;CAClC,OAAO;EACL,QACE,qBACA,GACA,mBACA,8BACD;EACD,QACE,gCACA,GACA,4BACA,kCACD;EACD,QACE,qBACA,GACA,iBACA,oCACD;EACD,QACE,gCACA,GACA,0BACA,gCACD;EACD,QACE,6BACA,GACA,qCACA,yDACD;EACD,QACE,uBACA,GACA,4BACA,6CACD;EACD,QACE,sBACA,GACA,0BACA,qDACD;EACF;CACF;AAED,MAAa,cAA0C,CAAC,qBAAqB"}
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@contractspec/example.learning-journey-quest-challenges",
3
- "version": "1.46.2",
3
+ "version": "1.48.0",
4
4
  "description": "Time-bound quest/challenge learning journey example.",
5
5
  "type": "module",
6
- "main": "./dist/index.js",
7
6
  "types": "./dist/index.d.ts",
8
7
  "exports": {
9
8
  ".": "./dist/index.js",
@@ -27,16 +26,15 @@
27
26
  "test": "bun test"
28
27
  },
29
28
  "dependencies": {
30
- "@contractspec/module.learning-journey": "1.46.2",
31
- "@contractspec/lib.contracts": "1.46.2"
29
+ "@contractspec/module.learning-journey": "1.48.0",
30
+ "@contractspec/lib.contracts": "1.48.0"
32
31
  },
33
32
  "devDependencies": {
34
- "@contractspec/tool.tsdown": "1.46.2",
35
- "@contractspec/tool.typescript": "1.46.2",
36
- "tsdown": "^0.18.3",
33
+ "@contractspec/tool.tsdown": "1.48.0",
34
+ "@contractspec/tool.typescript": "1.48.0",
35
+ "tsdown": "^0.19.0",
37
36
  "typescript": "^5.9.3"
38
37
  },
39
- "module": "./dist/index.js",
40
38
  "publishConfig": {
41
39
  "exports": {
42
40
  ".": "./dist/index.js",
package/src/example.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { ExampleSpec } from '@contractspec/lib.contracts';
1
+ import { defineExample } from '@contractspec/lib.contracts';
2
2
 
3
- const example: ExampleSpec = {
3
+ const example = defineExample({
4
4
  meta: {
5
5
  key: 'learning-journey-quest-challenges',
6
6
  version: '1.0.0',
@@ -26,6 +26,6 @@ const example: ExampleSpec = {
26
26
  studio: { enabled: true, installable: true },
27
27
  mcp: { enabled: true },
28
28
  },
29
- };
29
+ });
30
30
 
31
31
  export default example;