@lssm/example.knowledge-canon 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217060433

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,27 @@
1
+
2
+ $ tsdown
3
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/knowledge-canon/tsdown.config.js (unrun)
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
+ ℹ target: esnext
7
+ ℹ tsconfig: tsconfig.json
8
+ ℹ Build start
9
+ ℹ Cleaning 17 files
10
+ ℹ dist/docs/knowledge-canon.docblock.js 1.46 kB │ gzip: 0.71 kB
11
+ ℹ dist/example.js 0.64 kB │ gzip: 0.38 kB
12
+ ℹ dist/blueprint.js 0.63 kB │ gzip: 0.38 kB
13
+ ℹ dist/tenant.js 0.60 kB │ gzip: 0.37 kB
14
+ ℹ dist/agent.js 0.58 kB │ gzip: 0.37 kB
15
+ ℹ dist/source.sample.js 0.48 kB │ gzip: 0.31 kB
16
+ ℹ dist/index.js 0.48 kB │ gzip: 0.22 kB
17
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
18
+ ℹ dist/example.d.ts 1.09 kB │ gzip: 0.45 kB
19
+ ℹ dist/agent.d.ts 0.90 kB │ gzip: 0.42 kB
20
+ ℹ dist/index.d.ts 0.44 kB │ gzip: 0.19 kB
21
+ ℹ dist/source.sample.d.ts 0.22 kB │ gzip: 0.16 kB
22
+ ℹ dist/tenant.d.ts 0.21 kB │ gzip: 0.15 kB
23
+ ℹ dist/blueprint.d.ts 0.21 kB │ gzip: 0.15 kB
24
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
25
+ ℹ dist/docs/knowledge-canon.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
26
+ ℹ 16 files, total: 8.01 kB
27
+ ✔ Build complete in 6157ms
@@ -1,19 +1,29 @@
1
- $ bun build:bundle && bun build:types
2
- $ tsdown
3
- ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
4
- ℹ config file: /home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js
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
- ℹ target: esnext
7
- ℹ tsconfig: tsconfig.json
8
- ℹ Build start
9
- ℹ dist/docs/knowledge-canon.docblock.js 1.46 kB │ gzip: 0.71 kB
10
- ℹ dist/example.js 0.64 kB │ gzip: 0.38 kB
11
- ℹ dist/blueprint.js 0.63 kB │ gzip: 0.38 kB
12
- ℹ dist/tenant.js 0.60 kB │ gzip: 0.37 kB
13
- ℹ dist/agent.js 0.58 kB │ gzip: 0.37 kB
14
- ℹ dist/source.sample.js 0.48 kB │ gzip: 0.31 kB
15
- ℹ dist/index.js 0.48 kB │ gzip: 0.22 kB
16
- ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
17
- ℹ 8 files, total: 4.91 kB
18
- ✔ Build complete in 69ms
19
- $ tsc --noEmit
1
+
2
+ $ bun build:bundle && bun build:types
3
+ $ tsdown
4
+ ℹ tsdown v0.17.4 powered by rolldown v1.0.0-beta.53
5
+ ℹ config file: /Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/knowledge-canon/tsdown.config.js (unrun)
6
+ ℹ 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
7
+ ℹ target: esnext
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ Cleaning 9 files
11
+ ℹ dist/docs/knowledge-canon.docblock.js 1.46 kB │ gzip: 0.71 kB
12
+ ℹ dist/example.js 0.64 kB │ gzip: 0.38 kB
13
+ ℹ dist/blueprint.js 0.63 kB │ gzip: 0.38 kB
14
+ ℹ dist/tenant.js 0.60 kB │ gzip: 0.37 kB
15
+ ℹ dist/agent.js 0.58 kB │ gzip: 0.37 kB
16
+ ℹ dist/source.sample.js 0.48 kB │ gzip: 0.31 kB
17
+ ℹ dist/index.js 0.48 kB │ gzip: 0.22 kB
18
+ ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
19
+ ℹ dist/example.d.ts 1.09 kB │ gzip: 0.45 kB
20
+ ℹ dist/agent.d.ts 0.90 kB │ gzip: 0.42 kB
21
+ ℹ dist/index.d.ts 0.44 kB │ gzip: 0.19 kB
22
+ ℹ dist/source.sample.d.ts 0.22 kB │ gzip: 0.16 kB
23
+ ℹ dist/tenant.d.ts 0.21 kB │ gzip: 0.15 kB
24
+ ℹ dist/blueprint.d.ts 0.21 kB │ gzip: 0.15 kB
25
+ ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
26
+ ℹ dist/docs/knowledge-canon.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
27
+ ℹ 16 files, total: 8.01 kB
28
+ ✔ Build complete in 6227ms
29
+ $ tsc --noEmit
package/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # @lssm/example.knowledge-canon
2
2
 
3
- ## 0.0.0-canary-20251217034842
3
+ ## 0.0.0-canary-20251217060433
4
+
5
+ ### Minor Changes
6
+
7
+ - 66a5dfd: initial release
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - Updated dependencies [3086383]
8
- - @lssm/lib.contracts@0.0.0-canary-20251217034842
11
+ - Updated dependencies [66a5dfd]
12
+ - @lssm/lib.contracts@0.0.0-canary-20251217060433
@@ -0,0 +1,24 @@
1
+ import * as _lssm_lib_contracts_app_config_runtime0 from "@lssm/lib.contracts/app-config/runtime";
2
+ import { ResolvedAppConfig } from "@lssm/lib.contracts/app-config/runtime";
3
+
4
+ //#region src/agent.d.ts
5
+ /**
6
+ * Selects knowledge bindings that apply to a workflow or agent identifier.
7
+ */
8
+ declare function selectKnowledgeBindings(resolved: ResolvedAppConfig, options: {
9
+ workflowId?: string;
10
+ agentId?: string;
11
+ }): _lssm_lib_contracts_app_config_runtime0.ResolvedKnowledge[];
12
+ /**
13
+ * Pseudo implementation of an assistant lookup that routes prompts to the appropriate
14
+ * knowledge sources. In a real system this would call the ingestion/search services.
15
+ */
16
+ declare function answerWithKnowledge(resolved: ResolvedAppConfig, question: string, {
17
+ workflowId,
18
+ agentId
19
+ }: {
20
+ workflowId?: string;
21
+ agentId?: string;
22
+ }): Promise<string>;
23
+ //#endregion
24
+ export { answerWithKnowledge, selectKnowledgeBindings };
@@ -0,0 +1,6 @@
1
+ import { AppBlueprintSpec } from "@lssm/lib.contracts/app-config/spec";
2
+
3
+ //#region src/blueprint.d.ts
4
+ declare const artisanKnowledgeBlueprint: AppBlueprintSpec;
5
+ //#endregion
6
+ export { artisanKnowledgeBlueprint };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,33 @@
1
+ //#region src/example.d.ts
2
+ declare const example: {
3
+ readonly id: "knowledge-canon";
4
+ readonly title: "Knowledge Canon (Product Canon space)";
5
+ readonly summary: "Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).";
6
+ readonly tags: readonly ["knowledge", "canon", "app-config", "agents", "workflows"];
7
+ readonly kind: "knowledge";
8
+ readonly visibility: "public";
9
+ readonly docs: {
10
+ readonly rootDocId: "docs.examples.knowledge-canon";
11
+ readonly usageDocId: "docs.examples.knowledge-canon.usage";
12
+ };
13
+ readonly entrypoints: {
14
+ readonly packageName: "@lssm/example.knowledge-canon";
15
+ readonly docs: "./docs";
16
+ };
17
+ readonly surfaces: {
18
+ readonly templates: true;
19
+ readonly sandbox: {
20
+ readonly enabled: true;
21
+ readonly modes: readonly ["markdown", "specs"];
22
+ };
23
+ readonly studio: {
24
+ readonly enabled: true;
25
+ readonly installable: true;
26
+ };
27
+ readonly mcp: {
28
+ readonly enabled: true;
29
+ };
30
+ };
31
+ };
32
+ //#endregion
33
+ export { example as default };
@@ -0,0 +1,6 @@
1
+ import { answerWithKnowledge, selectKnowledgeBindings } from "./agent.js";
2
+ import { artisanKnowledgeBlueprint } from "./blueprint.js";
3
+ import example from "./example.js";
4
+ import { artisanKnowledgeTenantConfig } from "./tenant.js";
5
+ import { productCanonNotionSource } from "./source.sample.js";
6
+ export { answerWithKnowledge, artisanKnowledgeBlueprint, artisanKnowledgeTenantConfig, example, productCanonNotionSource, selectKnowledgeBindings };
@@ -0,0 +1,6 @@
1
+ import { KnowledgeSourceConfig } from "@lssm/lib.contracts/knowledge/source";
2
+
3
+ //#region src/source.sample.d.ts
4
+ declare const productCanonNotionSource: KnowledgeSourceConfig;
5
+ //#endregion
6
+ export { productCanonNotionSource };
@@ -0,0 +1,6 @@
1
+ import { TenantAppConfig } from "@lssm/lib.contracts/app-config/spec";
2
+
3
+ //#region src/tenant.d.ts
4
+ declare const artisanKnowledgeTenantConfig: TenantAppConfig;
5
+ //#endregion
6
+ export { artisanKnowledgeTenantConfig };
package/package.json CHANGED
@@ -1,22 +1,24 @@
1
1
  {
2
2
  "name": "@lssm/example.knowledge-canon",
3
- "version": "0.0.0-canary-20251217034842",
3
+ "version": "0.0.0-canary-20251217060433",
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
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
21
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
20
22
  "build": "bun build:bundle && bun build:types",
21
23
  "build:bundle": "tsdown",
22
24
  "build:types": "tsc --noEmit",
@@ -28,11 +30,11 @@
28
30
  "test": "bun test"
29
31
  },
30
32
  "dependencies": {
31
- "@lssm/lib.contracts": "workspace:*"
33
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060433"
32
34
  },
33
35
  "devDependencies": {
34
- "@lssm/tool.tsdown": "workspace:*",
35
- "@lssm/tool.typescript": "workspace:*",
36
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
37
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060433",
36
38
  "tsdown": "^0.17.4",
37
39
  "typescript": "^5.9.3"
38
40
  },