@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.
- package/.turbo/turbo-build$colon$bundle.log +27 -0
- package/.turbo/turbo-build.log +29 -19
- package/CHANGELOG.md +7 -3
- package/dist/agent.d.ts +24 -0
- package/dist/blueprint.d.ts +6 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/knowledge-canon.docblock.d.ts +1 -0
- package/dist/example.d.ts +33 -0
- package/dist/index.d.ts +6 -0
- package/dist/source.sample.d.ts +6 -0
- package/dist/tenant.d.ts +6 -0
- package/package.json +14 -12
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mtsdown[0m
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
|
+
[34mℹ[39m config file: [4m/Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m (unrun)
|
|
5
|
+
[34mℹ[39m entry: [34msrc/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[39m
|
|
6
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
7
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
|
+
[34mℹ[39m Build start
|
|
9
|
+
[34mℹ[39m Cleaning 17 files
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/knowledge-canon.docblock.js[22m [2m1.46 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.64 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m0.63 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.60 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1magent.js[22m [2m0.58 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1msource.sample.js[22m [2m0.48 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.48 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.09 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1magent.d.ts[22m[39m [2m0.90 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1msource.sample.d.ts[22m[39m [2m0.22 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtenant.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mblueprint.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
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 [2mdist/[22m[32m[1mdocs/knowledge-canon.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
26
|
+
[34mℹ[39m 16 files, total: 8.01 kB
|
|
27
|
+
[32m✔[39m Build complete in [32m6157ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
[34mℹ[39m
|
|
5
|
-
[34mℹ[39m
|
|
6
|
-
[34mℹ[39m
|
|
7
|
-
[34mℹ[39m
|
|
8
|
-
[34mℹ[39m
|
|
9
|
-
[34mℹ[39m
|
|
10
|
-
[34mℹ[39m
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[
|
|
17
|
-
[34mℹ[39m
|
|
18
|
-
[
|
|
19
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mbun build:bundle && bun build:types[0m
|
|
3
|
+
[0m[2m[35m$[0m [2m[1mtsdown[0m
|
|
4
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
5
|
+
[34mℹ[39m config file: [4m/Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m (unrun)
|
|
6
|
+
[34mℹ[39m entry: [34msrc/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[39m
|
|
7
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
8
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
|
+
[34mℹ[39m Build start
|
|
10
|
+
[34mℹ[39m Cleaning 9 files
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/knowledge-canon.docblock.js[22m [2m1.46 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.64 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m0.63 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.60 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1magent.js[22m [2m0.58 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1msource.sample.js[22m [2m0.48 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.48 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.09 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1magent.d.ts[22m[39m [2m0.90 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.44 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1msource.sample.d.ts[22m[39m [2m0.22 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtenant.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mblueprint.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/knowledge-canon.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
27
|
+
[34mℹ[39m 16 files, total: 8.01 kB
|
|
28
|
+
[32m✔[39m Build complete in [32m6227ms[39m
|
|
29
|
+
[0m[2m[35m$[0m [2m[1mtsc --noEmit[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# @lssm/example.knowledge-canon
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
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 [
|
|
8
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
11
|
+
- Updated dependencies [66a5dfd]
|
|
12
|
+
- @lssm/lib.contracts@0.0.0-canary-20251217060433
|
package/dist/agent.d.ts
ADDED
|
@@ -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 @@
|
|
|
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 };
|
package/dist/index.d.ts
ADDED
|
@@ -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 };
|
package/dist/tenant.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.knowledge-canon",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
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
|
-
".": "./
|
|
10
|
-
"./agent": "./
|
|
11
|
-
"./blueprint": "./
|
|
12
|
-
"./docs": "./
|
|
13
|
-
"./docs/knowledge-canon.docblock": "./
|
|
14
|
-
"./example": "./
|
|
15
|
-
"./source.sample": "./
|
|
16
|
-
"./tenant": "./
|
|
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": "
|
|
33
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217060433"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@lssm/tool.tsdown": "
|
|
35
|
-
"@lssm/tool.typescript": "
|
|
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
|
},
|