@lssm/example.learning-journey-quest-challenges 1.41.0 → 1.42.2

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,25 @@
1
+ $ tsdown
2
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
3
+ ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-quest-challenges/tsdown.config.js
4
+ ℹ entry: src/example.ts, src/index.ts, src/track.ts, src/docs/index.ts, src/docs/quest-challenges.docblock.ts
5
+ ℹ target: esnext
6
+ ℹ tsconfig: tsconfig.json
7
+ ℹ Build start
8
+ ℹ Cleaning 16 files
9
+ ℹ dist/docs/quest-challenges.docblock.js 1.50 kB │ gzip: 0.78 kB
10
+ ℹ dist/track.js 1.44 kB │ gzip: 0.76 kB
11
+ ℹ dist/example.js 0.81 kB │ gzip: 0.45 kB
12
+ ℹ dist/index.js 0.21 kB │ gzip: 0.13 kB
13
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
+ ℹ dist/track.js.map 2.69 kB │ gzip: 1.16 kB
15
+ ℹ dist/docs/quest-challenges.docblock.js.map 1.91 kB │ gzip: 0.94 kB
16
+ ℹ dist/example.js.map 1.16 kB │ gzip: 0.62 kB
17
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
18
+ ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
+ ℹ dist/example.d.ts 1.04 kB │ gzip: 0.44 kB
20
+ ℹ dist/track.d.ts 0.32 kB │ gzip: 0.19 kB
21
+ ℹ dist/index.d.ts 0.15 kB │ gzip: 0.10 kB
22
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
23
+ ℹ dist/docs/quest-challenges.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
+ ℹ 15 files, total: 11.58 kB
25
+ ✔ Build complete in 14961ms
@@ -1,23 +1,26 @@
1
- $ bun build:bundle && bun build:types
1
+ $ bun build:types && bun build:bundle
2
+ $ tsc --noEmit
2
3
  $ tsdown
3
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ tsdown v0.18.3 powered by rolldown v1.0.0-beta.57
4
5
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/learning-journey-quest-challenges/tsdown.config.js
5
- ℹ entry: src/index.ts, src/track.ts, src/docs/index.ts, src/docs/quest-challenges.docblock.ts
6
+ ℹ entry: src/example.ts, src/index.ts, src/track.ts, src/docs/index.ts, src/docs/quest-challenges.docblock.ts
6
7
  ℹ target: esnext
7
8
  ℹ tsconfig: tsconfig.json
8
9
  ℹ Build start
9
- ℹ dist/index.mjs 0.97 kB │ gzip: 0.52 kB
10
- ℹ dist/track.mjs 0.13 kB │ gzip: 0.11 kB
11
- ℹ dist/docs/index.mjs 0.07 kB │ gzip: 0.08 kB
12
- ℹ dist/docs/quest-challenges.docblock.mjs 0.07 kB │ gzip: 0.08 kB
13
- ℹ dist/quest-challenges.docblock-dlZBb7sW.mjs 1.46 kB │ gzip: 0.76 kB
14
- ℹ dist/track-UnyS-rkK.mjs 1.42 kB │ gzip: 0.75 kB
15
- ℹ dist/index.d.mts 1.14 kB │ gzip: 0.49 kB
16
- ℹ dist/track.d.mts 0.13 kB │ gzip: 0.10 kB
17
- ℹ dist/docs/index.d.mts 0.01 kB │ gzip: 0.03 kB
18
- ℹ dist/docs/quest-challenges.docblock.d.mts 0.01 kB │ gzip: 0.03 kB
19
- ℹ dist/track-B4IVSL73.d.mts 0.30 kB │ gzip: 0.18 kB
20
- ℹ dist/quest-challenges.docblock-D0rnszAi.d.mts 0.01 kB │ gzip: 0.03 kB
21
- ℹ 12 files, total: 5.71 kB
22
- ✔ Build complete in 6418ms
23
- $ tsc --noEmit
10
+ ℹ dist/docs/quest-challenges.docblock.js 1.50 kB │ gzip: 0.78 kB
11
+ ℹ dist/track.js 1.44 kB │ gzip: 0.76 kB
12
+ ℹ dist/example.js 0.81 kB │ gzip: 0.45 kB
13
+ ℹ dist/index.js 0.21 kB │ gzip: 0.13 kB
14
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
+ ℹ dist/track.js.map 2.69 kB │ gzip: 1.16 kB
16
+ ℹ dist/docs/quest-challenges.docblock.js.map 1.91 kB │ gzip: 0.94 kB
17
+ ℹ dist/example.js.map 1.16 kB │ gzip: 0.62 kB
18
+ ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
19
+ ℹ dist/track.d.ts.map 0.14 kB │ gzip: 0.13 kB
20
+ ℹ dist/example.d.ts 1.04 kB │ gzip: 0.44 kB
21
+ ℹ dist/track.d.ts 0.32 kB │ gzip: 0.19 kB
22
+ ℹ dist/index.d.ts 0.15 kB │ gzip: 0.10 kB
23
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
+ ℹ dist/docs/quest-challenges.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
25
+ ℹ 15 files, total: 11.58 kB
26
+ ✔ Build complete in 15697ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # @lssm/example.learning-journey-quest-challenges
2
+
3
+ ## 1.42.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f9ac4c: fix
8
+ - Updated dependencies [1f9ac4c]
9
+ - @lssm/lib.contracts@1.42.2
10
+ - @lssm/lib.schema@1.42.2
11
+ - @lssm/module.learning-journey@1.42.2
12
+
13
+ ## 1.42.1
14
+
15
+ ### Patch Changes
16
+
17
+ - f043995: Fix release
18
+ - Updated dependencies [f043995]
19
+ - @lssm/module.learning-journey@1.42.1
20
+ - @lssm/lib.contracts@1.42.1
21
+ - @lssm/lib.schema@1.42.1
22
+
23
+ ## 1.42.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 8eefd9c: initial release
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [8eefd9c]
32
+ - @lssm/lib.contracts@1.42.0
33
+ - @lssm/lib.schema@1.42.0
34
+ - @lssm/module.learning-journey@1.42.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @lssm/example.learning-journey-quest-challenges
2
2
 
3
+ Website: https://contractspec.lssm.tech/
4
+
5
+
3
6
  Time-bound challenge/quest example (7-day money reset) showing day-based unlocks and event-driven completion.
4
7
 
5
8
  ## What it shows
@@ -0,0 +1 @@
1
+ import "./quest-challenges.docblock.js";
@@ -35,4 +35,4 @@ XP: 15 per day, completion bonus 30 if finished within duration. Optional recap
35
35
  }]);
36
36
 
37
37
  //#endregion
38
- export { };
38
+ //# sourceMappingURL=quest-challenges.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quest-challenges.docblock.js","names":[],"sources":["../../src/docs/quest-challenges.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst questDocBlocks: DocBlock[] = [\n {\n id: 'docs.learning-journey.quest-challenges',\n title: 'Learning Journey — Quest Challenges',\n summary:\n 'Time-bound challenge pattern (7-day money reset) with day unlocks and event-driven completion.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/learning-journey/quest-challenges',\n tags: ['learning', 'quest', 'challenge'],\n body: `## Track\n- **Key**: \\`money_reset_7day\\`\n- **Duration**: 7 days, steps unlock day by day\n\n## Steps & Events\n- Day 1 \\`day1_map_accounts\\` → event \\`accounts.mapped\\`\n- Day 2 \\`day2_categorize_transactions\\` → event \\`transactions.categorized\\`\n- Day 3 \\`day3_define_goals\\` → event \\`goals.created\\`\n- Day 4 \\`day4_setup_recurring_savings\\` → event \\`recurring_rule.created\\`\n- Day 5 \\`day5_review_subscriptions\\` → event \\`subscription.flagged_or_cancelled\\`\n- Day 6 \\`day6_plan_emergency\\` → event \\`emergency_plan.completed\\`\n- Day 7 \\`day7_review_commit\\` → event \\`quest.review.completed\\`\n\nXP: 15 per day, completion bonus 30 if finished within duration. Optional recap via SRS after completion.\n\n## Usage\n- Exported via \\`@lssm/example.learning-journey-quest-challenges/track\\`.\n- Step availability uses \\`availability.unlockOnDay\\` to gate days.\n- Registry progression handles event matching and XP application.`,\n },\n];\n\nregisterDocBlocks(questDocBlocks);\n"],"mappings":";;;AAmCA,kBAhCmC,CACjC;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAY;EAAS;EAAY;CACxC,MAAM;;;;;;;;;;;;;;;;;;;CAmBP,CACF,CAEgC"}
@@ -1,6 +1,3 @@
1
- import "./docs/index.mjs";
2
- import { n as questTracks, t as moneyResetQuestTrack } from "./track-B4IVSL73.mjs";
3
-
4
1
  //#region src/example.d.ts
5
2
  declare const example: {
6
3
  readonly id: "learning-journey-quest-challenges";
@@ -32,4 +29,5 @@ declare const example: {
32
29
  };
33
30
  };
34
31
  //#endregion
35
- export { example, moneyResetQuestTrack, questTracks };
32
+ export { example as default };
33
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAqBI,EAAA,mCAAA"}
@@ -1,7 +1,3 @@
1
- import { n as questTracks, t as moneyResetQuestTrack } from "./track-UnyS-rkK.mjs";
2
- import "./quest-challenges.docblock-dlZBb7sW.mjs";
3
- import "./docs/index.mjs";
4
-
5
1
  //#region src/example.ts
6
2
  const example = {
7
3
  id: "learning-journey-quest-challenges",
@@ -35,4 +31,5 @@ const example = {
35
31
  var example_default = example;
36
32
 
37
33
  //#endregion
38
- export { example_default as example, moneyResetQuestTrack, questTracks };
34
+ export { example_default as default };
35
+ //# sourceMappingURL=example.js.map
@@ -0,0 +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: '@lssm/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"}
@@ -0,0 +1,3 @@
1
+ import example from "./example.js";
2
+ import { moneyResetQuestTrack, questTracks } from "./track.js";
3
+ export { example, moneyResetQuestTrack, questTracks };
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import example_default from "./example.js";
2
+ import { moneyResetQuestTrack, questTracks } from "./track.js";
3
+ import "./docs/index.js";
4
+
5
+ export { example_default as example, moneyResetQuestTrack, questTracks };
@@ -4,4 +4,5 @@ import { LearningJourneyTrackSpec } from "@lssm/module.learning-journey/track-sp
4
4
  declare const moneyResetQuestTrack: LearningJourneyTrackSpec;
5
5
  declare const questTracks: LearningJourneyTrackSpec[];
6
6
  //#endregion
7
- export { questTracks as n, moneyResetQuestTrack as t };
7
+ export { moneyResetQuestTrack, questTracks };
8
+ //# sourceMappingURL=track.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track.d.ts","names":[],"sources":["../src/track.ts"],"sourcesContent":[],"mappings":";;;cAqBa,sBAAsB;cAsDtB,aAAa"}
@@ -32,4 +32,5 @@ const moneyResetQuestTrack = {
32
32
  const questTracks = [moneyResetQuestTrack];
33
33
 
34
34
  //#endregion
35
- export { questTracks as n, moneyResetQuestTrack as t };
35
+ export { moneyResetQuestTrack, questTracks };
36
+ //# sourceMappingURL=track.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track.js","names":["moneyResetQuestTrack: LearningJourneyTrackSpec","questTracks: LearningJourneyTrackSpec[]"],"sources":["../src/track.ts"],"sourcesContent":["import type { LearningJourneyTrackSpec } from '@lssm/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"}
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@lssm/example.learning-journey-quest-challenges",
3
- "version": "1.41.0",
3
+ "version": "1.42.2",
4
4
  "description": "Time-bound quest/challenge learning journey example.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./src/index.ts",
10
- "./example": "./src/example.ts",
11
- "./track": "./src/track.ts",
12
- "./docs": "./src/docs/index.ts",
13
- "./docs/quest-challenges.docblock": "./src/docs/quest-challenges.docblock.ts",
9
+ ".": "./dist/index.js",
10
+ "./docs": "./dist/docs/index.js",
11
+ "./docs/quest-challenges.docblock": "./dist/docs/quest-challenges.docblock.js",
12
+ "./example": "./dist/example.js",
13
+ "./track": "./dist/track.js",
14
14
  "./*": "./*"
15
15
  },
16
16
  "scripts": {
17
- "build": "bun build:bundle && bun build:types",
17
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
18
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
19
+ "build": "bun build:types && bun build:bundle",
18
20
  "build:bundle": "tsdown",
19
21
  "build:types": "tsc --noEmit",
20
22
  "dev": "bun build:bundle --watch",
@@ -25,13 +27,14 @@
25
27
  "test": "bun test"
26
28
  },
27
29
  "dependencies": {
28
- "@lssm/module.learning-journey": "workspace:*",
29
- "@lssm/lib.contracts": "workspace:*"
30
+ "@lssm/module.learning-journey": "1.42.2",
31
+ "@lssm/lib.schema": "1.42.2",
32
+ "@lssm/lib.contracts": "1.42.2"
30
33
  },
31
34
  "devDependencies": {
32
- "@lssm/tool.tsdown": "workspace:*",
33
- "@lssm/tool.typescript": "workspace:*",
34
- "tsdown": "^0.17.4",
35
+ "@lssm/tool.tsdown": "1.42.2",
36
+ "@lssm/tool.typescript": "1.42.2",
37
+ "tsdown": "^0.18.3",
35
38
  "typescript": "^5.9.3"
36
39
  },
37
40
  "module": "./dist/index.js",
@@ -43,6 +46,14 @@
43
46
  "./docs": "./dist/docs/index.js",
44
47
  "./docs/quest-challenges.docblock": "./dist/docs/quest-challenges.docblock.js",
45
48
  "./*": "./*"
46
- }
49
+ },
50
+ "registry": "https://registry.npmjs.org/",
51
+ "access": "public"
52
+ },
53
+ "license": "MIT",
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "https://github.com/lssm-tech/contractspec.git",
57
+ "directory": "packages/examples/learning-journey-quest-challenges"
47
58
  }
48
59
  }