@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 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 };
@@ -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
@@ -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 {};
@@ -163,6 +163,7 @@ export const sessionStatsProjectionDefinition = {
163
163
  decodeMs: state.decodeMs,
164
164
  decodeTokens: state.decodeTokens,
165
165
  }),
166
+ summary: false,
166
167
  },
167
168
  };
168
169
  //# sourceMappingURL=projection.js.map
@@ -35,8 +35,12 @@ export interface SessionStatsProjection {
35
35
  }
36
36
  declare module '@deepseek-ai/dsh-session-projection/types' {
37
37
  interface SessionProjectionMap {
38
- /** Whole-log turn/step counts and wall times; see {@link SessionStatsProjection}. */
39
- sessionStats: SessionStatsProjection;
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
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Sitzungsstatistiken",
4
+ "description": "Fassen Sie statistische Informationen wie die Anzahl der Interaktionen und die für die Sitzung aufgewendete Zeit zusammen."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "estadísticas de sesión",
4
+ "description": "Resuma información estadística como el número de interacciones y el tiempo dedicado a la sesión."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "statistiques de session",
4
+ "description": "Résumez les informations statistiques telles que le nombre d’interactions et le temps passé sur la session."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "セッション統計",
4
+ "description": "セッションの対話回数や所要時間などの統計をまとめます。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "estatísticas da sessão",
4
+ "description": "Resuma informações estatísticas, como o número de interações e o tempo gasto na sessão."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "статистика сеанса",
4
+ "description": "Суммируйте статистическую информацию, такую как количество взаимодействий и время, потраченное на сеанс."
5
+ }
6
+ }
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.1-rc.3",
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.1-rc.3",
42
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
43
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.3",
44
- "@deepseek-ai/cordis": "~4.0.5"
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.10",
51
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
52
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
53
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
54
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.3",
55
- "@deepseek-ai/cordis": "~4.0.5"
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
  }