@deepseek-ai/dsh-session-stats 0.2.1-rc.3 → 0.2.2-alpha.2
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 +5 -3
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +3 -2
- package/lib/types/projection.d.ts +1 -5
- package/lib/types/projection.js +1 -0
- package/lib/types/types.d.ts +6 -2
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -167,7 +167,8 @@ const sessionStatsProjectionDefinition = {
|
|
|
167
167
|
ttftSteps: state.ttftSteps,
|
|
168
168
|
decodeMs: state.decodeMs,
|
|
169
169
|
decodeTokens: state.decodeTokens
|
|
170
|
-
})
|
|
170
|
+
}),
|
|
171
|
+
summary: false
|
|
171
172
|
}
|
|
172
173
|
};
|
|
173
174
|
//#endregion
|
|
@@ -190,9 +191,10 @@ const inject = ["sessionProjections"];
|
|
|
190
191
|
* Register the `sessionStats` unit; the registration is an effect on this
|
|
191
192
|
* plugin's fiber, so unloading removes the key.
|
|
192
193
|
* @param ctx - registrant context carrying the projection registry.
|
|
194
|
+
* @returns when the plugin is ready.
|
|
193
195
|
*/
|
|
194
|
-
function apply(ctx) {
|
|
195
|
-
ctx.sessionProjections.register(sessionStatsProjectionDefinition);
|
|
196
|
+
async function apply(ctx) {
|
|
197
|
+
await ctx.sessionProjections.register(sessionStatsProjectionDefinition);
|
|
196
198
|
}
|
|
197
199
|
//#endregion
|
|
198
200
|
export { apply, inject, name };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const inject: string[];
|
|
|
18
18
|
* Register the `sessionStats` unit; the registration is an effect on this
|
|
19
19
|
* plugin's fiber, so unloading removes the key.
|
|
20
20
|
* @param ctx - registrant context carrying the projection registry.
|
|
21
|
+
* @returns when the plugin is ready.
|
|
21
22
|
*/
|
|
22
|
-
export declare function apply(ctx: Context): void
|
|
23
|
+
export declare function apply(ctx: Context): Promise<void>;
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.js
CHANGED
|
@@ -17,8 +17,9 @@ export const inject = ['sessionProjections'];
|
|
|
17
17
|
* Register the `sessionStats` unit; the registration is an effect on this
|
|
18
18
|
* plugin's fiber, so unloading removes the key.
|
|
19
19
|
* @param ctx - registrant context carrying the projection registry.
|
|
20
|
+
* @returns when the plugin is ready.
|
|
20
21
|
*/
|
|
21
|
-
export function apply(ctx) {
|
|
22
|
-
ctx.sessionProjections.register(sessionStatsProjectionDefinition);
|
|
22
|
+
export async function apply(ctx) {
|
|
23
|
+
await ctx.sessionProjections.register(sessionStatsProjectionDefinition);
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -61,11 +61,6 @@ interface SessionStatsState extends SessionStatsTotals {
|
|
|
61
61
|
/** Dispatch times of tool calls whose result has not landed, by callId. */
|
|
62
62
|
pendingCalls: Record<string, number>;
|
|
63
63
|
}
|
|
64
|
-
declare module '@deepseek-ai/dsh-session-projection/types' {
|
|
65
|
-
interface SessionProjectionStateMap {
|
|
66
|
-
sessionStats: SessionStatsState;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
64
|
/** The `sessionStats` unit registered on `ctx.sessionProjections` (exported for the unit spec). */
|
|
70
65
|
export declare const sessionStatsProjectionDefinition: {
|
|
71
66
|
key: "sessionStats";
|
|
@@ -123,6 +118,7 @@ export declare const sessionStatsProjectionDefinition: {
|
|
|
123
118
|
decodeMs: number;
|
|
124
119
|
decodeTokens: number;
|
|
125
120
|
};
|
|
121
|
+
summary: false;
|
|
126
122
|
};
|
|
127
123
|
};
|
|
128
124
|
export {};
|
package/lib/types/projection.js
CHANGED
package/lib/types/types.d.ts
CHANGED
|
@@ -35,8 +35,12 @@ export interface SessionStatsProjection {
|
|
|
35
35
|
}
|
|
36
36
|
declare module '@deepseek-ai/dsh-session-projection/types' {
|
|
37
37
|
interface SessionProjectionMap {
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Whole-log turn/step counts and wall times; see
|
|
40
|
+
* {@link SessionStatsProjection}. Excluded from Session summary payloads:
|
|
41
|
+
* no list row renders these figures.
|
|
42
|
+
*/
|
|
43
|
+
sessionStats: SessionProjectionSummaryExcluded<SessionStatsProjection>;
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
//# sourceMappingURL=types.d.ts.map
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-stats",
|
|
3
3
|
"description": "Whole-log conversation counts and wall times projection (sessionStats) for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
42
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
43
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
44
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
41
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
|
|
44
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "4.4.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@deepseek-ai/cordis-plugin-include": "~1.0.
|
|
51
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0.
|
|
52
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
53
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
54
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
55
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
50
|
+
"@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.1",
|
|
51
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.1",
|
|
52
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
|
|
55
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1"
|
|
56
56
|
}
|
|
57
57
|
}
|