@contractspec/example.ai-support-bot 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/setup.js 1.53 kB │ gzip: 0.75 kB
10
10
  ℹ dist/docs/ai-support-bot.docblock.js 1.35 kB │ gzip: 0.66 kB
11
- ℹ dist/example.js 0.81 kB │ gzip: 0.44 kB
11
+ ℹ dist/example.js 0.92 kB │ gzip: 0.49 kB
12
12
  ℹ dist/index.js 0.19 kB │ gzip: 0.12 kB
13
13
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
14
14
  ℹ dist/setup.js.map 2.70 kB │ gzip: 1.18 kB
15
15
  ℹ dist/docs/ai-support-bot.docblock.js.map 1.84 kB │ gzip: 0.85 kB
16
- ℹ dist/example.js.map 1.17 kB │ gzip: 0.60 kB
17
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
16
+ ℹ dist/example.js.map 1.45 kB │ gzip: 0.70 kB
18
17
  ℹ dist/setup.d.ts.map 0.13 kB │ gzip: 0.13 kB
19
- ℹ dist/example.d.ts 1.05 kB │ gzip: 0.44 kB
18
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
19
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
20
20
  ℹ dist/setup.d.ts 0.17 kB │ gzip: 0.14 kB
21
21
  ℹ dist/index.d.ts 0.13 kB │ gzip: 0.09 kB
22
22
  ℹ dist/docs/ai-support-bot.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
23
23
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
24
- ℹ 15 files, total: 11.29 kB
25
- ✔ Build complete in 17881ms
24
+ ℹ 15 files, total: 10.80 kB
25
+ ✔ Build complete in 17724ms
@@ -9,18 +9,18 @@ $ tsdown
9
9
  ℹ Build start
10
10
  ℹ dist/setup.js 1.53 kB │ gzip: 0.75 kB
11
11
  ℹ dist/docs/ai-support-bot.docblock.js 1.35 kB │ gzip: 0.66 kB
12
- ℹ dist/example.js 0.81 kB │ gzip: 0.44 kB
12
+ ℹ dist/example.js 0.92 kB │ gzip: 0.49 kB
13
13
  ℹ dist/index.js 0.19 kB │ gzip: 0.12 kB
14
14
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
15
15
  ℹ dist/setup.js.map 2.70 kB │ gzip: 1.18 kB
16
16
  ℹ dist/docs/ai-support-bot.docblock.js.map 1.84 kB │ gzip: 0.85 kB
17
- ℹ dist/example.js.map 1.17 kB │ gzip: 0.60 kB
18
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
17
+ ℹ dist/example.js.map 1.45 kB │ gzip: 0.70 kB
19
18
  ℹ dist/setup.d.ts.map 0.13 kB │ gzip: 0.13 kB
20
- ℹ dist/example.d.ts 1.05 kB │ gzip: 0.44 kB
19
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
20
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
21
21
  ℹ dist/setup.d.ts 0.17 kB │ gzip: 0.14 kB
22
22
  ℹ dist/index.d.ts 0.13 kB │ gzip: 0.09 kB
23
23
  ℹ dist/docs/ai-support-bot.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
24
24
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
25
- ℹ 15 files, total: 11.29 kB
26
- ✔ Build complete in 19396ms
25
+ ℹ 15 files, total: 10.80 kB
26
+ ✔ Build complete in 9086ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @contractspec/example.ai-support-bot
2
2
 
3
+ ## 1.45.1
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: improve app config and examples contracts
8
+ - Updated dependencies
9
+ - @contractspec/lib.support-bot@1.45.1
10
+ - @contractspec/lib.contracts@1.45.1
11
+ - @contractspec/lib.knowledge@1.45.1
12
+ - @contractspec/lib.logger@1.45.1
13
+ - @contractspec/lib.schema@1.45.1
14
+
15
+ ## 1.45.0
16
+
17
+ ### Minor Changes
18
+
19
+ - e73ca1d: feat: improve app config and examples contracts
20
+ feat: Contract layers support (features, examples, app-configs)
21
+
22
+ ### New CLI Commands
23
+ - `contractspec list layers` - List all contract layers with filtering
24
+
25
+ ### Enhanced Commands
26
+ - `contractspec ci` - New `layers` check category validates features/examples/config
27
+ - `contractspec doctor` - New `layers` health checks
28
+ - `contractspec integrity` - Now shows layer statistics
29
+
30
+ ### New APIs
31
+ - `discoverLayers()` - Scan workspace for all layer files
32
+ - `scanExampleSource()` - Parse ExampleSpec from source code
33
+ - `isExampleFile()` - Check if file is an example spec
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [e73ca1d]
38
+ - @contractspec/lib.support-bot@1.45.0
39
+ - @contractspec/lib.contracts@1.45.0
40
+ - @contractspec/lib.knowledge@1.45.0
41
+ - @contractspec/lib.logger@1.45.0
42
+ - @contractspec/lib.schema@1.45.0
43
+
3
44
  ## 1.44.1
4
45
 
5
46
  ### Patch Changes
package/dist/example.d.ts CHANGED
@@ -1,34 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "ai-support-bot";
4
- readonly title: "AI Support Bot";
5
- readonly summary: "Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.";
6
- readonly tags: readonly ["support", "ai", "tickets", "knowledge"];
7
- readonly kind: "script";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.ai-support-bot";
11
- readonly usageDocId: "docs.examples.ai-support-bot.usage";
12
- };
13
- readonly entrypoints: {
14
- readonly packageName: "@contractspec/example.ai-support-bot";
15
- readonly docs: "./docs";
16
- };
17
- readonly surfaces: {
18
- readonly templates: true;
19
- readonly sandbox: {
20
- readonly enabled: true;
21
- readonly modes: readonly ["markdown"];
22
- };
23
- readonly studio: {
24
- readonly enabled: true;
25
- readonly installable: true;
26
- };
27
- readonly mcp: {
28
- readonly enabled: true;
29
- };
30
- };
31
- };
4
+ declare const example: ExampleSpec;
32
5
  //#endregion
33
6
  export { example as default };
34
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,EAsBI,EAAA,gBAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "ai-support-bot",
4
- title: "AI Support Bot",
5
- summary: "Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.",
6
- tags: [
7
- "support",
8
- "ai",
9
- "tickets",
10
- "knowledge"
11
- ],
12
- kind: "script",
13
- visibility: "public",
3
+ meta: {
4
+ key: "ai-support-bot",
5
+ version: "1.0.0",
6
+ title: "AI Support Bot",
7
+ description: "Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.",
8
+ kind: "script",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "support",
14
+ "ai",
15
+ "tickets",
16
+ "knowledge"
17
+ ]
18
+ },
14
19
  docs: {
15
20
  rootDocId: "docs.examples.ai-support-bot",
16
21
  usageDocId: "docs.examples.ai-support-bot.usage"
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'ai-support-bot',\n title: 'AI Support Bot',\n summary:\n 'Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.',\n tags: ['support', 'ai', 'tickets', 'knowledge'],\n kind: 'script',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.ai-support-bot',\n usageDocId: 'docs.examples.ai-support-bot.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.ai-support-bot',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['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;EAAW;EAAM;EAAW;EAAY;CAC/C,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,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: 'ai-support-bot',\n version: '1.0.0',\n title: 'AI Support Bot',\n description:\n 'Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.',\n kind: 'script',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['support', 'ai', 'tickets', 'knowledge'],\n },\n docs: {\n rootDocId: 'docs.examples.ai-support-bot',\n usageDocId: 'docs.examples.ai-support-bot.usage',\n },\n entrypoints: {\n packageName: '@contractspec/example.ai-support-bot',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['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;GAAW;GAAM;GAAW;GAAY;EAChD;CACD,MAAM;EACJ,WAAW;EACX,YAAY;EACb;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,WAAW;GAAE;EAC/C,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.ai-support-bot",
3
- "version": "1.44.1",
3
+ "version": "1.45.1",
4
4
  "description": "AI support bot example: classify and resolve a support ticket using @contractspec/lib.support-bot.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,15 +27,15 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "@contractspec/lib.support-bot": "1.44.1",
31
- "@contractspec/lib.knowledge": "1.44.1",
32
- "@contractspec/lib.schema": "1.44.1",
33
- "@contractspec/lib.contracts": "1.44.1",
34
- "@contractspec/lib.logger": "1.44.1"
30
+ "@contractspec/lib.support-bot": "1.45.1",
31
+ "@contractspec/lib.knowledge": "1.45.1",
32
+ "@contractspec/lib.schema": "1.45.1",
33
+ "@contractspec/lib.contracts": "1.45.1",
34
+ "@contractspec/lib.logger": "1.45.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@contractspec/tool.tsdown": "1.44.1",
38
- "@contractspec/tool.typescript": "1.44.1",
37
+ "@contractspec/tool.tsdown": "1.45.1",
38
+ "@contractspec/tool.typescript": "1.45.1",
39
39
  "tsdown": "^0.18.3",
40
40
  "typescript": "^5.9.3"
41
41
  },
package/src/example.ts CHANGED
@@ -1,11 +1,18 @@
1
- const example = {
2
- id: 'ai-support-bot',
3
- title: 'AI Support Bot',
4
- summary:
5
- 'Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.',
6
- tags: ['support', 'ai', 'tickets', 'knowledge'],
7
- kind: 'script',
8
- visibility: 'public',
1
+ import type { ExampleSpec } from '@contractspec/lib.contracts';
2
+
3
+ const example: ExampleSpec = {
4
+ meta: {
5
+ key: 'ai-support-bot',
6
+ version: '1.0.0',
7
+ title: 'AI Support Bot',
8
+ description:
9
+ 'Classify and resolve a support ticket (with a drafted response) using the support-bot and knowledge libraries.',
10
+ kind: 'script',
11
+ visibility: 'public',
12
+ stability: 'experimental',
13
+ owners: ['@platform.core'],
14
+ tags: ['support', 'ai', 'tickets', 'knowledge'],
15
+ },
9
16
  docs: {
10
17
  rootDocId: 'docs.examples.ai-support-bot',
11
18
  usageDocId: 'docs.examples.ai-support-bot.usage',
@@ -20,6 +27,6 @@ const example = {
20
27
  studio: { enabled: true, installable: true },
21
28
  mcp: { enabled: true },
22
29
  },
23
- } as const;
30
+ };
24
31
 
25
32
  export default example;