@lssm/example.knowledge-canon 0.0.0-canary-20251217080011 → 1.41.0
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.log +19 -29
- package/dist/agent.js +2 -34
- package/dist/blueprint.js +1 -28
- package/dist/docs/index.js +1 -1
- package/dist/docs/knowledge-canon.docblock.js +16 -27
- package/dist/example.js +1 -39
- package/dist/index.js +1 -8
- package/dist/source.sample.js +1 -29
- package/dist/tenant.js +1 -32
- package/package.json +12 -15
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-build$colon$bundle.log +0 -58
- package/CHANGELOG.md +0 -13
- package/dist/agent.d.ts +0 -24
- package/dist/blueprint.d.ts +0 -6
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/knowledge-canon.docblock.d.ts +0 -1
- package/dist/example.d.ts +0 -33
- package/dist/index.d.ts +0 -6
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/ownership.js +0 -38
- package/dist/source.sample.d.ts +0 -6
- package/dist/tenant.d.ts +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
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
|
-
|
|
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
|
|
1
|
+
$ bun build:bundle && bun build:types
|
|
2
|
+
$ tsdown
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m
|
|
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 [2mdist/[22m[1mdocs/knowledge-canon.docblock.js[22m [2m1.46 kB[22m [2m│ gzip: 0.71 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.64 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m0.63 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.60 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1magent.js[22m [2m0.58 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1msource.sample.js[22m [2m0.48 kB[22m [2m│ gzip: 0.31 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.48 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
17
|
+
[34mℹ[39m 8 files, total: 4.91 kB
|
|
18
|
+
[32m✔[39m Build complete in [32m47ms[39m
|
|
19
|
+
$ tsc --noEmit
|
package/dist/agent.js
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Selects knowledge bindings that apply to a workflow or agent identifier.
|
|
4
|
-
*/
|
|
5
|
-
function selectKnowledgeBindings(resolved, options) {
|
|
6
|
-
return resolved.knowledge.filter(({ binding }) => {
|
|
7
|
-
if (!binding.scope) return true;
|
|
8
|
-
if (options.workflowId && binding.scope.workflows?.includes(options.workflowId)) return true;
|
|
9
|
-
if (options.agentId && binding.scope.agents?.includes(options.agentId)) return true;
|
|
10
|
-
return false;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pseudo implementation of an assistant lookup that routes prompts to the appropriate
|
|
15
|
-
* knowledge sources. In a real system this would call the ingestion/search services.
|
|
16
|
-
*/
|
|
17
|
-
async function answerWithKnowledge(resolved, question, { workflowId, agentId }) {
|
|
18
|
-
const bindings = selectKnowledgeBindings(resolved, {
|
|
19
|
-
workflowId,
|
|
20
|
-
agentId
|
|
21
|
-
});
|
|
22
|
-
if (bindings.length === 0) return "No knowledge space available for this request.";
|
|
23
|
-
const summaries = bindings.map(({ space }) => `• ${space.meta.displayName}`);
|
|
24
|
-
return [
|
|
25
|
-
`Q: ${question}`,
|
|
26
|
-
"Routed to knowledge spaces:",
|
|
27
|
-
...summaries,
|
|
28
|
-
"",
|
|
29
|
-
"TODO: invoke knowledge search service and synthesize response."
|
|
30
|
-
].join("\n");
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
export { answerWithKnowledge, selectKnowledgeBindings };
|
|
1
|
+
function e(e,t){return e.knowledge.filter(({binding:e})=>!!(!e.scope||t.workflowId&&e.scope.workflows?.includes(t.workflowId)||t.agentId&&e.scope.agents?.includes(t.agentId)))}async function t(t,n,{workflowId:r,agentId:i}){let a=e(t,{workflowId:r,agentId:i});if(a.length===0)return`No knowledge space available for this request.`;let o=a.map(({space:e})=>`• ${e.meta.displayName}`);return[`Q: ${n}`,`Routed to knowledge spaces:`,...o,``,`TODO: invoke knowledge search service and synthesize response.`].join(`
|
|
2
|
+
`)}export{t as answerWithKnowledge,e as selectKnowledgeBindings};
|
package/dist/blueprint.js
CHANGED
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/blueprint.ts
|
|
4
|
-
const artisanKnowledgeBlueprint = {
|
|
5
|
-
meta: {
|
|
6
|
-
name: "artisan.knowledge.product",
|
|
7
|
-
version: 1,
|
|
8
|
-
appId: "artisan",
|
|
9
|
-
title: "ArtisanOS Knowledge – Product Canon",
|
|
10
|
-
description: "Blueprint that surfaces canonical product knowledge to agents and workflows.",
|
|
11
|
-
domain: "knowledge",
|
|
12
|
-
owners: [OwnersEnum.PlatformContent],
|
|
13
|
-
tags: [
|
|
14
|
-
"knowledge",
|
|
15
|
-
"product-canon",
|
|
16
|
-
TagsEnum.Guide
|
|
17
|
-
],
|
|
18
|
-
stability: StabilityEnum.Experimental
|
|
19
|
-
},
|
|
20
|
-
workflows: { answerFaq: {
|
|
21
|
-
name: "artisan.knowledge.answerFaq",
|
|
22
|
-
version: 1
|
|
23
|
-
} },
|
|
24
|
-
notes: "Workflows and assistants running on this blueprint should bind the Product Canon knowledge space."
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { artisanKnowledgeBlueprint };
|
|
1
|
+
import{OwnersEnum as e,StabilityEnum as t,TagsEnum as n}from"@lssm/lib.contracts/ownership";const r={meta:{name:`artisan.knowledge.product`,version:1,appId:`artisan`,title:`ArtisanOS Knowledge – Product Canon`,description:`Blueprint that surfaces canonical product knowledge to agents and workflows.`,domain:`knowledge`,owners:[e.PlatformContent],tags:[`knowledge`,`product-canon`,n.Guide],stability:t.Experimental},workflows:{answerFaq:{name:`artisan.knowledge.answerFaq`,version:1}},notes:`Workflows and assistants running on this blueprint should bind the Product Canon knowledge space.`};export{r as artisanKnowledgeBlueprint};
|
package/dist/docs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./knowledge-canon.docblock.js";
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.examples.knowledge-canon`,title:`Knowledge Example — Product Canon Space`,summary:`Bind the Product Canon KnowledgeSpaceSpec to a tenant and expose it to agents/workflows via ResolvedAppConfig.`,kind:`reference`,visibility:`public`,route:`/docs/examples/knowledge-canon`,tags:[`knowledge`,`canon`,`example`],body:`## Included assets
|
|
2
|
+
- Blueprint referencing a workflow depending on the Product Canon space.
|
|
3
|
+
- Tenant app config binding the space to a workflow and agent scope.
|
|
4
|
+
- Sample knowledge source configuration.
|
|
5
|
+
- Helper to pick knowledge bindings from ResolvedAppConfig.
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
tags: [
|
|
13
|
-
"knowledge",
|
|
14
|
-
"canon",
|
|
15
|
-
"example"
|
|
16
|
-
],
|
|
17
|
-
body: `## Included assets\n- Blueprint referencing a workflow depending on the Product Canon space.\n- Tenant app config binding the space to a workflow and agent scope.\n- Sample knowledge source configuration.\n- Helper to pick knowledge bindings from ResolvedAppConfig.\n\n## Guardrails\n- Keep sources scoped per tenant.\n- Keep secret fields out of config (use secret providers).\n- Enforce scope restrictions before answering.`
|
|
18
|
-
}, {
|
|
19
|
-
id: "docs.examples.knowledge-canon.usage",
|
|
20
|
-
title: "Knowledge Canon — Usage",
|
|
21
|
-
summary: "How to register the space, configure sources, and route requests.",
|
|
22
|
-
kind: "usage",
|
|
23
|
-
visibility: "public",
|
|
24
|
-
route: "/docs/examples/knowledge-canon/usage",
|
|
25
|
-
tags: ["knowledge", "usage"],
|
|
26
|
-
body: `## Usage\n1) Register the knowledge space spec in your KnowledgeSpaceRegistry.\n2) Persist the source config through knowledge CRUD operations.\n3) Compose ResolvedAppConfig and pass it to your workflow/agent runtime.\n4) Use helpers like \`selectKnowledgeBindings\` before dispatching to search/embedding.\n\n## Notes\n- Avoid logging PII.\n- Keep search results auditable and cite sources.`
|
|
27
|
-
}]);
|
|
7
|
+
## Guardrails
|
|
8
|
+
- Keep sources scoped per tenant.
|
|
9
|
+
- Keep secret fields out of config (use secret providers).
|
|
10
|
+
- Enforce scope restrictions before answering.`},{id:`docs.examples.knowledge-canon.usage`,title:`Knowledge Canon — Usage`,summary:`How to register the space, configure sources, and route requests.`,kind:`usage`,visibility:`public`,route:`/docs/examples/knowledge-canon/usage`,tags:[`knowledge`,`usage`],body:`## Usage
|
|
11
|
+
1) Register the knowledge space spec in your KnowledgeSpaceRegistry.
|
|
12
|
+
2) Persist the source config through knowledge CRUD operations.
|
|
13
|
+
3) Compose ResolvedAppConfig and pass it to your workflow/agent runtime.
|
|
14
|
+
4) Use helpers like \`selectKnowledgeBindings\` before dispatching to search/embedding.
|
|
28
15
|
|
|
29
|
-
|
|
16
|
+
## Notes
|
|
17
|
+
- Avoid logging PII.
|
|
18
|
+
- Keep search results auditable and cite sources.`}]);
|
package/dist/example.js
CHANGED
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const example = {
|
|
3
|
-
id: "knowledge-canon",
|
|
4
|
-
title: "Knowledge Canon (Product Canon space)",
|
|
5
|
-
summary: "Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).",
|
|
6
|
-
tags: [
|
|
7
|
-
"knowledge",
|
|
8
|
-
"canon",
|
|
9
|
-
"app-config",
|
|
10
|
-
"agents",
|
|
11
|
-
"workflows"
|
|
12
|
-
],
|
|
13
|
-
kind: "knowledge",
|
|
14
|
-
visibility: "public",
|
|
15
|
-
docs: {
|
|
16
|
-
rootDocId: "docs.examples.knowledge-canon",
|
|
17
|
-
usageDocId: "docs.examples.knowledge-canon.usage"
|
|
18
|
-
},
|
|
19
|
-
entrypoints: {
|
|
20
|
-
packageName: "@lssm/example.knowledge-canon",
|
|
21
|
-
docs: "./docs"
|
|
22
|
-
},
|
|
23
|
-
surfaces: {
|
|
24
|
-
templates: true,
|
|
25
|
-
sandbox: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
modes: ["markdown", "specs"]
|
|
28
|
-
},
|
|
29
|
-
studio: {
|
|
30
|
-
enabled: true,
|
|
31
|
-
installable: true
|
|
32
|
-
},
|
|
33
|
-
mcp: { enabled: true }
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var example_default = example;
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { example_default as default };
|
|
1
|
+
var e={id:`knowledge-canon`,title:`Knowledge Canon (Product Canon space)`,summary:`Bind a canonical knowledge space to a tenant and route assistant/workflow requests to the right sources (blueprint + app config pattern).`,tags:[`knowledge`,`canon`,`app-config`,`agents`,`workflows`],kind:`knowledge`,visibility:`public`,docs:{rootDocId:`docs.examples.knowledge-canon`,usageDocId:`docs.examples.knowledge-canon.usage`},entrypoints:{packageName:`@lssm/example.knowledge-canon`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`markdown`,`specs`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { artisanKnowledgeBlueprint } from "./blueprint.js";
|
|
3
|
-
import example_default from "./example.js";
|
|
4
|
-
import { artisanKnowledgeTenantConfig } from "./tenant.js";
|
|
5
|
-
import { productCanonNotionSource } from "./source.sample.js";
|
|
6
|
-
import "./docs/index.js";
|
|
7
|
-
|
|
8
|
-
export { answerWithKnowledge, artisanKnowledgeBlueprint, artisanKnowledgeTenantConfig, example_default as example, productCanonNotionSource, selectKnowledgeBindings };
|
|
1
|
+
import{answerWithKnowledge as e,selectKnowledgeBindings as t}from"./agent.js";import{artisanKnowledgeBlueprint as n}from"./blueprint.js";import r from"./example.js";import{artisanKnowledgeTenantConfig as i}from"./tenant.js";import{productCanonNotionSource as a}from"./source.sample.js";import"./docs/index.js";export{e as answerWithKnowledge,n as artisanKnowledgeBlueprint,i as artisanKnowledgeTenantConfig,r as example,a as productCanonNotionSource,t as selectKnowledgeBindings};
|
package/dist/source.sample.js
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const productCanonNotionSource = {
|
|
3
|
-
meta: {
|
|
4
|
-
id: "source-canon-notion",
|
|
5
|
-
tenantId: "artisan-co",
|
|
6
|
-
spaceKey: "knowledge.product-canon",
|
|
7
|
-
spaceVersion: 1,
|
|
8
|
-
label: "Product Canon (Notion)",
|
|
9
|
-
sourceType: "notion",
|
|
10
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
11
|
-
updatedAt: "2026-01-01T00:00:00.000Z"
|
|
12
|
-
},
|
|
13
|
-
config: {
|
|
14
|
-
notionDatabaseId: "xxxxxxxxxxxxxxxx",
|
|
15
|
-
apiKey: "secret_notion_token"
|
|
16
|
-
},
|
|
17
|
-
syncSchedule: {
|
|
18
|
-
enabled: true,
|
|
19
|
-
cron: "0 * * * *"
|
|
20
|
-
},
|
|
21
|
-
lastSync: {
|
|
22
|
-
timestamp: /* @__PURE__ */ new Date("2026-01-01T00:00:00.000Z"),
|
|
23
|
-
success: true,
|
|
24
|
-
itemsProcessed: 128
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { productCanonNotionSource };
|
|
1
|
+
const e={meta:{id:`source-canon-notion`,tenantId:`artisan-co`,spaceKey:`knowledge.product-canon`,spaceVersion:1,label:`Product Canon (Notion)`,sourceType:`notion`,createdAt:`2026-01-01T00:00:00.000Z`,updatedAt:`2026-01-01T00:00:00.000Z`},config:{notionDatabaseId:`xxxxxxxxxxxxxxxx`,apiKey:`secret_notion_token`},syncSchedule:{enabled:!0,cron:`0 * * * *`},lastSync:{timestamp:new Date(`2026-01-01T00:00:00.000Z`),success:!0,itemsProcessed:128}};export{e as productCanonNotionSource};
|
package/dist/tenant.js
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const artisanKnowledgeTenantConfig = {
|
|
3
|
-
meta: {
|
|
4
|
-
id: "tenant-config-artisan-knowledge",
|
|
5
|
-
tenantId: "artisan-co",
|
|
6
|
-
appId: "artisan",
|
|
7
|
-
blueprintName: "artisan.knowledge.product",
|
|
8
|
-
blueprintVersion: 1,
|
|
9
|
-
environment: "production",
|
|
10
|
-
version: 1,
|
|
11
|
-
status: "published",
|
|
12
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
13
|
-
updatedAt: "2026-01-01T00:00:00.000Z"
|
|
14
|
-
},
|
|
15
|
-
knowledge: [{
|
|
16
|
-
spaceKey: "knowledge.product-canon",
|
|
17
|
-
spaceVersion: 1,
|
|
18
|
-
scope: {
|
|
19
|
-
workflows: ["answerFaq"],
|
|
20
|
-
agents: ["productSupportAssistant"]
|
|
21
|
-
},
|
|
22
|
-
constraints: {
|
|
23
|
-
maxTokensPerQuery: 4096,
|
|
24
|
-
maxQueriesPerMinute: 30
|
|
25
|
-
}
|
|
26
|
-
}],
|
|
27
|
-
integrations: [],
|
|
28
|
-
notes: "Product Canon knowledge space bound for production assistants."
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { artisanKnowledgeTenantConfig };
|
|
1
|
+
const e={meta:{id:`tenant-config-artisan-knowledge`,tenantId:`artisan-co`,appId:`artisan`,blueprintName:`artisan.knowledge.product`,blueprintVersion:1,environment:`production`,version:1,status:`published`,createdAt:`2026-01-01T00:00:00.000Z`,updatedAt:`2026-01-01T00:00:00.000Z`},knowledge:[{spaceKey:`knowledge.product-canon`,spaceVersion:1,scope:{workflows:[`answerFaq`],agents:[`productSupportAssistant`]},constraints:{maxTokensPerQuery:4096,maxQueriesPerMinute:30}}],integrations:[],notes:`Product Canon knowledge space bound for production assistants.`};export{e as artisanKnowledgeTenantConfig};
|
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.knowledge-canon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.41.0",
|
|
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
|
+
".": "./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",
|
|
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",
|
|
22
20
|
"build": "bun build:bundle && bun build:types",
|
|
23
21
|
"build:bundle": "tsdown",
|
|
24
22
|
"build:types": "tsc --noEmit",
|
|
@@ -30,12 +28,11 @@
|
|
|
30
28
|
"test": "bun test"
|
|
31
29
|
},
|
|
32
30
|
"dependencies": {
|
|
33
|
-
"@lssm/lib.
|
|
34
|
-
"@lssm/lib.contracts": "0.0.0-canary-20251217080011"
|
|
31
|
+
"@lssm/lib.contracts": "workspace:*"
|
|
35
32
|
},
|
|
36
33
|
"devDependencies": {
|
|
37
|
-
"@lssm/tool.tsdown": "
|
|
38
|
-
"@lssm/tool.typescript": "
|
|
34
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
35
|
+
"@lssm/tool.typescript": "workspace:*",
|
|
39
36
|
"tsdown": "^0.17.4",
|
|
40
37
|
"typescript": "^5.9.3"
|
|
41
38
|
},
|