@lmzhen/dsh-skill-usage 0.3.23 → 0.3.25
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 +7 -20
- package/lib/types/index.d.ts +6 -12
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -11,10 +11,7 @@ import { appendEvolutionEvent, bumpPatch, bumpUse, bumpView, eventsFile, evoluti
|
|
|
11
11
|
* for read-side observation (A2): any tool listed here records a `view` when
|
|
12
12
|
* its call arguments name a skill.
|
|
13
13
|
*/
|
|
14
|
-
const READ_TOOL_KIND = {
|
|
15
|
-
skill: "view",
|
|
16
|
-
skill_load: "view"
|
|
17
|
-
};
|
|
14
|
+
const READ_TOOL_KIND = { skill: "view" };
|
|
18
15
|
/**
|
|
19
16
|
* Skill name from a tool/call arguments payload (A2, mirrors
|
|
20
17
|
* evolution-review's collectReadSkillNames): JSON strings are re-parsed and
|
|
@@ -159,22 +156,12 @@ var SkillUsageRegistry = class extends Service {
|
|
|
159
156
|
});
|
|
160
157
|
}
|
|
161
158
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
await this.mutate((map) => {
|
|
169
|
-
getRecord(map, name);
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* 0.3.18 (E-70): create-path telemetry in ONE atomic RMW. The former
|
|
174
|
-
* prepare→markAgentCreated pair ran two full transacts (doubled lock
|
|
175
|
-
* traffic) and left a window where `created_by=null` was on disk between
|
|
176
|
-
* them. `agentCreated` picks the authorship marking at the same commit
|
|
177
|
-
* point where the record is created.
|
|
159
|
+
* 0.3.18 (E-70): ensure a usage record exists in ONE atomic read-modify-write,
|
|
160
|
+
* picking the authorship marking at the same commit point where the record is
|
|
161
|
+
* created. The former prepare→markAgentCreated pair ran two full transacts
|
|
162
|
+
* (doubled lock traffic) and left a window where `created_by=null` was on disk
|
|
163
|
+
* between them. `agentCreated=false` creates the record without authorship
|
|
164
|
+
* (the plain "record exists from birth" path).
|
|
178
165
|
*/
|
|
179
166
|
async ensureRecordCreated(name, agentCreated) {
|
|
180
167
|
await this.mutate((map) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -64,18 +64,12 @@ export declare class SkillUsageRegistry extends Service {
|
|
|
64
64
|
report(): Promise<UsageMap>;
|
|
65
65
|
markAgentCreated(name: string): Promise<void>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* 0.3.18 (E-70): create-path telemetry in ONE atomic RMW. The former
|
|
75
|
-
* prepare→markAgentCreated pair ran two full transacts (doubled lock
|
|
76
|
-
* traffic) and left a window where `created_by=null` was on disk between
|
|
77
|
-
* them. `agentCreated` picks the authorship marking at the same commit
|
|
78
|
-
* point where the record is created.
|
|
67
|
+
* 0.3.18 (E-70): ensure a usage record exists in ONE atomic read-modify-write,
|
|
68
|
+
* picking the authorship marking at the same commit point where the record is
|
|
69
|
+
* created. The former prepare→markAgentCreated pair ran two full transacts
|
|
70
|
+
* (doubled lock traffic) and left a window where `created_by=null` was on disk
|
|
71
|
+
* between them. `agentCreated=false` creates the record without authorship
|
|
72
|
+
* (the plain "record exists from birth" path).
|
|
79
73
|
*/
|
|
80
74
|
ensureRecordCreated(name: string, agentCreated: boolean): Promise<void>;
|
|
81
75
|
/**
|
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.
|
|
4
|
+
"version": "0.3.25",
|
|
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.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.25"
|
|
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.
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.25"
|
|
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.
|
|
46
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.3.25",
|
|
46
|
+
"@lmzhen/dsh-evolution-io": "^0.3.25"
|
|
47
47
|
}
|
|
48
48
|
}
|