@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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +2 -2
- package/package.json +2 -2
- package/src/agent.ts +6 -9
- package/src/blueprint.ts +5 -8
- package/src/docs/index.ts +0 -2
- package/src/example.ts +0 -2
- package/src/index.ts +0 -2
- package/src/tenant.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$ bun build:bundle && bun build:types
|
|
2
2
|
$ tsdown
|
|
3
|
-
[34mℹ[39m tsdown [2mv0.17.
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
4
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/knowledge-canon/tsdown.config.js[24m
|
|
5
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
6
|
[34mℹ[39m target: [34mesnext[39m
|
|
@@ -15,5 +15,5 @@ $ tsdown
|
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.48 kB[22m [2m│ gzip: 0.22 kB[22m
|
|
16
16
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
17
17
|
[34mℹ[39m 8 files, total: 4.91 kB
|
|
18
|
-
[32m✔[39m Build complete in [
|
|
18
|
+
[32m✔[39m Build complete in [32m49ms[39m
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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 (
|
|
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 {
|
|
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
package/src/example.ts
CHANGED
package/src/index.ts
CHANGED
package/src/tenant.ts
CHANGED