@lmzhen/dsh-skill-usage 0.22.0 → 0.24.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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Service } from "@deepseek-ai/cordis";
2
2
  import z from "@deepseek-ai/schemastery";
3
+ import { preferProvider } from "@lmzhen/dsh-evolution-io";
3
4
  import { DEFAULT_SUPPORT_READ_TOOL_NAMES, ToolDispatchNormalizer, appendEvolutionEvent, bumpPatch, bumpSupportRead, bumpUse, bumpView, eventsFile, evolutionIoAdapter, evolutionRoot, getRecord, isReviewChannelSession, loadUsage, makeSerialQueue, markAgentCreated, mutateUsage, resolveSkillsRoot, sessionAudited, skillReadNameOf, supportFileReadOf, usageObserved } from "@lmzhen/dsh-evolution-core";
4
5
  //#region lib/types/index.js
5
6
  /**
@@ -56,7 +57,7 @@ var SkillUsageRegistry = class extends Service {
56
57
  this.root = resolveSkillsRoot(config);
57
58
  this.supportReadToolNames = config.supportReadToolNames ?? DEFAULT_SUPPORT_READ_TOOL_NAMES;
58
59
  this.eventsHome = config.eventsHome?.trim() || evolutionRoot();
59
- this.io = evolutionIoAdapter(() => ctx.evolutionIo.provider());
60
+ this.io = evolutionIoAdapter(() => preferProvider(ctx.evolutionIo, ["fs"]));
60
61
  ctx.effect(() => {
61
62
  const reads = new ToolDispatchNormalizer({ maxTracked: LIVE_DISPATCH_LEDGER_CAP });
62
63
  return ctx.on("session/event", (session, event) => {
@@ -123,7 +124,7 @@ var SkillUsageRegistry = class extends Service {
123
124
  type: "usage",
124
125
  kind: "skill",
125
126
  source: "observation",
126
- note: "observation window opened",
127
+ note: "观测窗口已开启",
127
128
  counts: usageTotals(map),
128
129
  window: { opened: at }
129
130
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-skill-usage",
3
3
  "description": "Skill usage telemetry service (community build)",
4
- "version": "0.22.0",
4
+ "version": "0.24.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,16 +27,16 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.4",
30
- "@lmzhen/dsh-evolution-core": "^0.22.0"
30
+ "@lmzhen/dsh-evolution-core": "^0.24.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.1",
34
34
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
35
- "@lmzhen/dsh-evolution-io": "^0.22.0"
35
+ "@lmzhen/dsh-evolution-io": "^0.24.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
39
- "@lmzhen/dsh-evolution-core": "^0.22.0",
40
- "@lmzhen/dsh-evolution-io": "^0.22.0"
39
+ "@lmzhen/dsh-evolution-core": "^0.24.0",
40
+ "@lmzhen/dsh-evolution-io": "^0.24.0"
41
41
  }
42
42
  }