@lmzhen/dsh-evolution-learning-graph 0.3.60 → 0.3.62
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/lib/index.js +2 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -287,8 +287,8 @@ function apply(ctx, rawConfig = {}) {
|
|
|
287
287
|
if (parsed === null) return err(`Invalid node id "${id}". Skill names or memory:<source>:<index> expected.`);
|
|
288
288
|
if (parsed.kind === "skill") {
|
|
289
289
|
const approval = ctx.get("evolutionApproval");
|
|
290
|
+
const origins = resolveOrigins(session?.header?.origin);
|
|
290
291
|
if (approval) {
|
|
291
|
-
const origins = resolveOrigins(session?.header?.origin);
|
|
292
292
|
const sessionPolicy = effectiveSessionPolicy(ctx, session);
|
|
293
293
|
const decision = await approval.request({
|
|
294
294
|
kind: "skill",
|
|
@@ -309,7 +309,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
309
309
|
});
|
|
310
310
|
if (decision.action === "staged") return ok(decision.message);
|
|
311
311
|
}
|
|
312
|
-
const result = await withSkills().update(parsed.name, content,
|
|
312
|
+
const result = await withSkills().update(parsed.name, content, origins.library);
|
|
313
313
|
if (result.ok && result.noop !== true) await usageService.record?.(parsed.name, "patch");
|
|
314
314
|
return result.ok ? ok(result.message) : err(result.message);
|
|
315
315
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-learning-graph",
|
|
3
3
|
"description": "Learning graph over skills and memory (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.62",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
35
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.62",
|
|
35
|
+
"@lmzhen/dsh-evolution-core": "^0.3.62"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|