@lmzhen/dsh-skill-usage 0.3.58 → 0.3.59

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 +5 -3
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -85,10 +85,11 @@ var SkillUsageRegistry = class extends Service {
85
85
  * that anchor exists (curator gates churn on `usageObserved()`).
86
86
  */
87
87
  observeRead(name) {
88
+ const normalized = name.trim();
88
89
  return this.mutate(async (map) => {
89
- if (!map.has(name)) return;
90
+ if (!map.has(normalized)) return;
90
91
  const viewsBefore = usageTotals(map).views;
91
- bumpView(map, name, /* @__PURE__ */ new Date());
92
+ bumpView(map, normalized, /* @__PURE__ */ new Date());
92
93
  if (viewsBefore === 0) await this.appendUsageWindowEvent(map);
93
94
  });
94
95
  }
@@ -198,8 +199,9 @@ var SkillUsageRegistry = class extends Service {
198
199
  }
199
200
  /** Write feedback-derived quality onto the usage sidecar; curator reads it. */
200
201
  async setQuality(name, score, warn) {
202
+ const normalized = name.trim();
201
203
  await this.mutate((map) => {
202
- const record = map.get(name);
204
+ const record = map.get(normalized);
203
205
  if (!record) return;
204
206
  record.quality_score = score;
205
207
  record.quality_warn = warn;
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.3.58",
4
+ "version": "0.3.59",
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.58"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.59"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.1",
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
39
  "@deepseek-ai/dsh-session": "^0.1.1-rc.2",
40
- "@lmzhen/dsh-evolution-io": "^0.3.58"
40
+ "@lmzhen/dsh-evolution-io": "^0.3.59"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
44
44
  "@deepseek-ai/dsh-session": "^0.1.1-rc.2",
45
- "@lmzhen/dsh-evolution-core": "^0.3.58",
46
- "@lmzhen/dsh-evolution-io": "^0.3.58"
45
+ "@lmzhen/dsh-evolution-core": "^0.3.59",
46
+ "@lmzhen/dsh-evolution-io": "^0.3.59"
47
47
  }
48
48
  }