@lmzhen/dsh-evolution-feedback 0.3.21 → 0.3.22

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -4
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
- import { EVENT_LOG_VERSION, appendEvolutionEvent, eventsFile, evolutionIoAdapter, listEventArchives, parseEvolutionEvents, readEvolutionTimeline, transactIo } from "@lmzhen/dsh-evolution-core";
3
- import { homedir } from "node:os";
2
+ import { EVENT_LOG_VERSION, appendEvolutionEvent, eventsFile, evolutionIoAdapter, evolutionRoot, listEventArchives, parseEvolutionEvents, readEvolutionTimeline, transactIo } from "@lmzhen/dsh-evolution-core";
4
3
  import { join } from "node:path";
5
4
  //#region lib/types/index.js
6
5
  /**
@@ -34,7 +33,7 @@ var EvolutionFeedback = class {
34
33
  eventsPath;
35
34
  io;
36
35
  warn;
37
- constructor(io, home = process.env.DSH_HOME ?? join(homedir(), ".dsh"), pathOverride, warn = () => {}) {
36
+ constructor(io, home = evolutionRoot(), pathOverride, warn = () => {}) {
38
37
  this.path = pathOverride ?? join(home, "evolution", "feedback.json");
39
38
  this.eventsPath = eventsFile(home);
40
39
  this.io = io;
@@ -367,7 +366,7 @@ const Config = z.object({
367
366
  path: z.string().default("")
368
367
  });
369
368
  function apply(ctx, rawConfig = {}) {
370
- const feedback = new EvolutionFeedback(void 0, process.env.DSH_HOME ?? join(homedir(), ".dsh"), rawConfig.path || void 0, (message) => {
369
+ const feedback = new EvolutionFeedback(void 0, evolutionRoot(), rawConfig.path || void 0, (message) => {
371
370
  ctx.logger.warn(message);
372
371
  });
373
372
  ctx.provide("evolutionFeedback", feedback);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-feedback",
3
3
  "description": "Feedback-to-quality scoring for self-evolution (community build)",
4
- "version": "0.3.21",
4
+ "version": "0.3.22",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,18 +31,18 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-core": "^0.3.21"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.22"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
38
38
  "@deepseek-ai/cordis": "^4.0.1",
39
- "@lmzhen/dsh-evolution-io": "^0.3.21",
40
- "@lmzhen/dsh-skill-usage": "^0.3.21"
39
+ "@lmzhen/dsh-evolution-io": "^0.3.22",
40
+ "@lmzhen/dsh-skill-usage": "^0.3.22"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
44
- "@lmzhen/dsh-evolution-io": "^0.3.21",
45
- "@lmzhen/dsh-evolution-io-node": "^0.3.21",
46
- "@lmzhen/dsh-skill-usage": "^0.3.21"
44
+ "@lmzhen/dsh-evolution-io": "^0.3.22",
45
+ "@lmzhen/dsh-evolution-io-node": "^0.3.22",
46
+ "@lmzhen/dsh-skill-usage": "^0.3.22"
47
47
  }
48
48
  }