@contractspec/example.learning-journey-ambient-coach 1.44.0 → 1.45.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.
- package/.turbo/turbo-build$colon$bundle.log +6 -6
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +37 -0
- package/dist/example.d.ts +3 -29
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +15 -10
- package/dist/example.js.map +1 -1
- package/package.json +6 -6
- package/src/example.ts +16 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -8,18 +8,18 @@ $ tsdown
|
|
|
8
8
|
[34mℹ[39m Cleaning 16 files
|
|
9
9
|
[34mℹ[39m [2mdist/[22m[1mtrack.js[22m [2m1.63 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
10
10
|
[34mℹ[39m [2mdist/[22m[1mdocs/ambient-coach.docblock.js[22m [2m1.27 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.91 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.28 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22mtrack.js.map [2m2.83 kB[22m [2m│ gzip: 1.07 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22mdocs/ambient-coach.docblock.js.map [2m1.68 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
16
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.43 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
17
17
|
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.03 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
20
19
|
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
21
20
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ambient-coach.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
|
-
[34mℹ[39m 15 files, total: 11.
|
|
25
|
-
[32m✔[39m Build complete in [
|
|
24
|
+
[34mℹ[39m 15 files, total: 11.25 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m18273ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -9,18 +9,18 @@ $ tsdown
|
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
10
|
[34mℹ[39m [2mdist/[22m[1mtrack.js[22m [2m1.63 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mdocs/ambient-coach.docblock.js[22m [2m1.27 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.91 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.28 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22mtrack.js.map [2m2.83 kB[22m [2m│ gzip: 1.07 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22mdocs/ambient-coach.docblock.js.map [2m1.68 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.
|
|
17
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.43 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
18
18
|
[34mℹ[39m [2mdist/[22mtrack.d.ts.map [2m0.18 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
19
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.03 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
21
20
|
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.21 kB[22m
|
|
22
21
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/ambient-coach.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
24
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
25
|
-
[34mℹ[39m 15 files, total: 11.
|
|
26
|
-
[32m✔[39m Build complete in [
|
|
25
|
+
[34mℹ[39m 15 files, total: 11.25 kB
|
|
26
|
+
[32m✔[39m Build complete in [32m19830ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @contractspec/example.learning-journey-ambient-coach
|
|
2
2
|
|
|
3
|
+
## 1.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
8
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
9
|
+
|
|
10
|
+
### New CLI Commands
|
|
11
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
12
|
+
|
|
13
|
+
### Enhanced Commands
|
|
14
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
15
|
+
- `contractspec doctor` - New `layers` health checks
|
|
16
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
17
|
+
|
|
18
|
+
### New APIs
|
|
19
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
20
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
21
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [e73ca1d]
|
|
26
|
+
- @contractspec/module.learning-journey@1.45.0
|
|
27
|
+
- @contractspec/lib.contracts@1.45.0
|
|
28
|
+
- @contractspec/lib.schema@1.45.0
|
|
29
|
+
|
|
30
|
+
## 1.44.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 3c594fb: fix
|
|
35
|
+
- Updated dependencies [3c594fb]
|
|
36
|
+
- @contractspec/module.learning-journey@1.44.1
|
|
37
|
+
- @contractspec/lib.contracts@1.44.1
|
|
38
|
+
- @contractspec/lib.schema@1.44.1
|
|
39
|
+
|
|
3
40
|
## 1.44.0
|
|
4
41
|
|
|
5
42
|
### Minor 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-ambient-coach";
|
|
4
|
-
readonly title: "Learning Journey — Ambient Coach";
|
|
5
|
-
readonly summary: "Ambient coaching pattern: lightweight nudges driven by context and recent progress.";
|
|
6
|
-
readonly tags: readonly ["learning", "coaching", "ambient"];
|
|
7
|
-
readonly kind: "template";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.learning-journey.ambient-coach";
|
|
11
|
-
};
|
|
12
|
-
readonly entrypoints: {
|
|
13
|
-
readonly packageName: "@contractspec/example.learning-journey-ambient-coach";
|
|
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
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "learning-journey-ambient-coach",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Learning Journey — Ambient Coach",
|
|
7
|
+
description: "Ambient coaching pattern: lightweight nudges driven by context and recent progress.",
|
|
8
|
+
kind: "template",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"learning",
|
|
14
|
+
"coaching",
|
|
15
|
+
"ambient"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
13
18
|
docs: { rootDocId: "docs.learning-journey.ambient-coach" },
|
|
14
19
|
entrypoints: {
|
|
15
20
|
packageName: "@contractspec/example.learning-journey-ambient-coach",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
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-ambient-coach',\n version: '1.0.0',\n title: 'Learning Journey — Ambient Coach',\n description:\n 'Ambient coaching pattern: lightweight nudges driven by context and recent progress.',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['learning', 'coaching', 'ambient'],\n },\n docs: {\n rootDocId: 'docs.learning-journey.ambient-coach',\n },\n entrypoints: {\n packageName: '@contractspec/example.learning-journey-ambient-coach',\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;GAAY;GAAU;EAC1C;CACD,MAAM,EACJ,WAAW,uCACZ;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-ambient-coach",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Ambient coach learning journey example with contextual tips and follow-up actions.",
|
|
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.
|
|
31
|
-
"@contractspec/lib.schema": "1.
|
|
32
|
-
"@contractspec/lib.contracts": "1.
|
|
30
|
+
"@contractspec/module.learning-journey": "1.45.0",
|
|
31
|
+
"@contractspec/lib.schema": "1.45.0",
|
|
32
|
+
"@contractspec/lib.contracts": "1.45.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@contractspec/tool.tsdown": "1.
|
|
36
|
-
"@contractspec/tool.typescript": "1.
|
|
35
|
+
"@contractspec/tool.tsdown": "1.45.0",
|
|
36
|
+
"@contractspec/tool.typescript": "1.45.0",
|
|
37
37
|
"tsdown": "^0.18.3",
|
|
38
38
|
"typescript": "^5.9.3"
|
|
39
39
|
},
|
package/src/example.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'learning-journey-ambient-coach',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Learning Journey — Ambient Coach',
|
|
8
|
+
description:
|
|
9
|
+
'Ambient coaching pattern: lightweight nudges driven by context and recent progress.',
|
|
10
|
+
kind: 'template',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['learning', 'coaching', 'ambient'],
|
|
15
|
+
},
|
|
9
16
|
docs: {
|
|
10
17
|
rootDocId: 'docs.learning-journey.ambient-coach',
|
|
11
18
|
},
|
|
@@ -19,6 +26,6 @@ const example = {
|
|
|
19
26
|
studio: { enabled: true, installable: true },
|
|
20
27
|
mcp: { enabled: true },
|
|
21
28
|
},
|
|
22
|
-
}
|
|
29
|
+
};
|
|
23
30
|
|
|
24
31
|
export default example;
|