@lmzhen/dsh-evolution-learning-graph 0.3.64 → 0.3.65

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 CHANGED
@@ -199,7 +199,10 @@ async function resolveGraphNode(parsed, repository) {
199
199
  * manage registers for `kind: 'skill'` replays them on approve.
200
200
  */
201
201
  const name = "evolution-learning-graph";
202
- const Config = z.object({ root: z.string().default("") });
202
+ const Config = z.object({
203
+ root: z.string().default(""),
204
+ threatExemptLabels: z.array(z.string()).default([])
205
+ });
203
206
  /**
204
207
  * F-10: rendered-line cap for the `/graph` directory — nodes span the
205
208
  * whole usage set plus every memory entry and the edge list is a full join, so
@@ -272,7 +275,7 @@ function apply(ctx, rawConfig = {}) {
272
275
  function withSkills() {
273
276
  return new SkillLibrary(graphSkillsRoot, evolutionIoAdapter(() => io.provider()), void 0, (event) => {
274
277
  ctx.emit("evolution/skill-mutated", event);
275
- });
278
+ }, void 0, [...rawConfig.threatExemptLabels ?? []]);
276
279
  }
277
280
  async function nodeDetail(id) {
278
281
  const parsed = parseGraphNodeId(id);
@@ -150,6 +150,12 @@ export interface Config {
150
150
  * the graph on the SAME skills tree the tools/catalog read under a
151
151
  * custom-root deployment (previously the default root was hardcoded). */
152
152
  root?: string;
153
+ /** P2-26 (v19): the deployment's benign threat labels. The graph edit/delete
154
+ * channel writes skill content through the same SkillLibrary as the tools,
155
+ * so it must honour the same exemption list — without it a label allowed on
156
+ * the tool channel was refused here, and the refusal named a config key this
157
+ * channel could not reach. */
158
+ threatExemptLabels?: string[];
153
159
  }
154
160
  export declare const Config: z<Config>;
155
161
  /**
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.64",
4
+ "version": "0.3.65",
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.64",
35
- "@lmzhen/dsh-evolution-core": "^0.3.64"
34
+ "@lmzhen/dsh-evolution-approval": "^0.3.65",
35
+ "@lmzhen/dsh-evolution-core": "^0.3.65"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",