@lssm/example.knowledge-canon 0.0.0-canary-20251213172311 → 0.0.0-canary-20251215220103

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,6 +1,6 @@
1
1
  $ bun build:bundle && bun build:types
2
2
  $ tsdown
3
- ℹ tsdown v0.17.0 powered by rolldown v1.0.0-beta.53
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
4
  ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js
5
5
  ℹ entry: src/agent.ts, src/blueprint.ts, src/example.ts, src/index.ts, src/source.sample.ts, src/tenant.ts, src/docs/index.ts, src/docs/knowledge-canon.docblock.ts
6
6
  ℹ target: esnext
@@ -15,5 +15,5 @@ $ tsdown
15
15
  ℹ dist/index.js 0.48 kB │ gzip: 0.22 kB
16
16
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
17
17
  ℹ 8 files, total: 4.91 kB
18
- ✔ Build complete in 73ms
18
+ ✔ Build complete in 49ms
19
19
  $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @lssm/example.knowledge-canon
2
2
 
3
- ## 0.0.0-canary-20251213172311
3
+ ## 0.0.0-canary-20251215220103
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [3086383]
8
- - @lssm/lib.contracts@0.0.0-canary-20251213172311
8
+ - @lssm/lib.contracts@0.0.0-canary-20251215220103
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.knowledge-canon",
3
- "version": "0.0.0-canary-20251213172311",
3
+ "version": "0.0.0-canary-20251215220103",
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",
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@lssm/tool.tsdown": "workspace:*",
35
35
  "@lssm/tool.typescript": "workspace:*",
36
- "tsdown": "^0.17.0",
36
+ "tsdown": "^0.17.4",
37
37
  "typescript": "^5.9.3"
38
38
  },
39
39
  "publishConfig": {
package/src/agent.ts CHANGED
@@ -9,9 +9,13 @@ export function selectKnowledgeBindings(
9
9
  ) {
10
10
  return resolved.knowledge.filter(({ binding }) => {
11
11
  if (!binding.scope) return true;
12
- if (options.workflowId && binding.scope.workflows?.includes(options.workflowId))
12
+ if (
13
+ options.workflowId &&
14
+ binding.scope.workflows?.includes(options.workflowId)
15
+ )
16
+ return true;
17
+ if (options.agentId && binding.scope.agents?.includes(options.agentId))
13
18
  return true;
14
- if (options.agentId && binding.scope.agents?.includes(options.agentId)) return true;
15
19
  return false;
16
20
  });
17
21
  }
@@ -39,10 +43,3 @@ export async function answerWithKnowledge(
39
43
  'TODO: invoke knowledge search service and synthesize response.',
40
44
  ].join('\n');
41
45
  }
42
-
43
-
44
-
45
-
46
-
47
-
48
-
package/src/blueprint.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import type { AppBlueprintSpec } from '@lssm/lib.contracts/app-config/spec';
2
- import { OwnersEnum, StabilityEnum, TagsEnum } from '@lssm/lib.contracts/ownership';
2
+ import {
3
+ OwnersEnum,
4
+ StabilityEnum,
5
+ TagsEnum,
6
+ } from '@lssm/lib.contracts/ownership';
3
7
 
4
8
  export const artisanKnowledgeBlueprint: AppBlueprintSpec = {
5
9
  meta: {
@@ -20,10 +24,3 @@ export const artisanKnowledgeBlueprint: AppBlueprintSpec = {
20
24
  notes:
21
25
  'Workflows and assistants running on this blueprint should bind the Product Canon knowledge space.',
22
26
  };
23
-
24
-
25
-
26
-
27
-
28
-
29
-
package/src/docs/index.ts CHANGED
@@ -1,3 +1 @@
1
1
  import './knowledge-canon.docblock';
2
-
3
-
package/src/example.ts CHANGED
@@ -23,5 +23,3 @@ const example = {
23
23
  } as const;
24
24
 
25
25
  export default example;
26
-
27
-
package/src/index.ts CHANGED
@@ -4,5 +4,3 @@ export * from './tenant';
4
4
  export * from './source.sample';
5
5
  export { default as example } from './example';
6
6
  import './docs';
7
-
8
-
package/src/tenant.ts CHANGED
@@ -30,4 +30,3 @@ export const artisanKnowledgeTenantConfig: TenantAppConfig = {
30
30
  integrations: [],
31
31
  notes: 'Product Canon knowledge space bound for production assistants.',
32
32
  };
33
-