@lssm/example.knowledge-canon 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.
package/package.json CHANGED
@@ -1,23 +1,25 @@
1
1
  {
2
2
  "name": "@lssm/example.knowledge-canon",
3
- "version": "1.41.0",
3
+ "version": "1.42.2",
4
4
  "description": "Knowledge example – Product Canon space (blueprint + tenant config + source sample + runtime helper).",
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
- "./agent": "./src/agent.ts",
11
- "./blueprint": "./src/blueprint.ts",
12
- "./docs": "./src/docs/index.ts",
13
- "./docs/knowledge-canon.docblock": "./src/docs/knowledge-canon.docblock.ts",
14
- "./example": "./src/example.ts",
15
- "./source.sample": "./src/source.sample.ts",
16
- "./tenant": "./src/tenant.ts",
9
+ ".": "./dist/index.js",
10
+ "./agent": "./dist/agent.js",
11
+ "./blueprint": "./dist/blueprint.js",
12
+ "./docs": "./dist/docs/index.js",
13
+ "./docs/knowledge-canon.docblock": "./dist/docs/knowledge-canon.docblock.js",
14
+ "./example": "./dist/example.js",
15
+ "./source.sample": "./dist/source.sample.js",
16
+ "./tenant": "./dist/tenant.js",
17
17
  "./*": "./*"
18
18
  },
19
19
  "scripts": {
20
- "build": "bun build:bundle && bun build:types",
20
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
21
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
22
+ "build": "bun build:types && bun build:bundle",
21
23
  "build:bundle": "tsdown",
22
24
  "build:types": "tsc --noEmit",
23
25
  "dev": "bun build:bundle --watch",
@@ -28,12 +30,13 @@
28
30
  "test": "bun test"
29
31
  },
30
32
  "dependencies": {
31
- "@lssm/lib.contracts": "workspace:*"
33
+ "@lssm/lib.schema": "1.42.2",
34
+ "@lssm/lib.contracts": "1.42.2"
32
35
  },
33
36
  "devDependencies": {
34
- "@lssm/tool.tsdown": "workspace:*",
35
- "@lssm/tool.typescript": "workspace:*",
36
- "tsdown": "^0.17.4",
37
+ "@lssm/tool.tsdown": "1.42.2",
38
+ "@lssm/tool.typescript": "1.42.2",
39
+ "tsdown": "^0.18.3",
37
40
  "typescript": "^5.9.3"
38
41
  },
39
42
  "publishConfig": {
@@ -48,7 +51,14 @@
48
51
  "./source.sample": "./dist/source.sample.js",
49
52
  "./tenant": "./dist/tenant.js",
50
53
  "./*": "./*"
51
- }
54
+ },
55
+ "registry": "https://registry.npmjs.org/"
52
56
  },
53
- "module": "./dist/index.js"
57
+ "module": "./dist/index.js",
58
+ "license": "MIT",
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "https://github.com/lssm-tech/contractspec.git",
62
+ "directory": "packages/examples/knowledge-canon"
63
+ }
54
64
  }
package/src/agent.ts CHANGED
@@ -34,7 +34,9 @@ export async function answerWithKnowledge(
34
34
  return 'No knowledge space available for this request.';
35
35
  }
36
36
 
37
- const summaries = bindings.map(({ space }) => `• ${space.meta.displayName}`);
37
+ const summaries = bindings.map(
38
+ ({ space }) => `• ${space.meta.title || space.meta.description}`
39
+ );
38
40
  return [
39
41
  `Q: ${question}`,
40
42
  'Routed to knowledge spaces:',
package/src/blueprint.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
 
8
8
  export const artisanKnowledgeBlueprint: AppBlueprintSpec = {
9
9
  meta: {
10
- name: 'artisan.knowledge.product',
10
+ key: 'artisan.knowledge.product',
11
11
  version: 1,
12
12
  appId: 'artisan',
13
13
  title: 'ArtisanOS Knowledge – Product Canon',
@@ -19,7 +19,7 @@ export const artisanKnowledgeBlueprint: AppBlueprintSpec = {
19
19
  stability: StabilityEnum.Experimental,
20
20
  },
21
21
  workflows: {
22
- answerFaq: { name: 'artisan.knowledge.answerFaq', version: 1 },
22
+ answerFaq: { key: 'artisan.knowledge.answerFaq', version: 1 },
23
23
  },
24
24
  notes:
25
25
  'Workflows and assistants running on this blueprint should bind the Product Canon knowledge space.',