@deepseek-ai/dsh-session-stats 0.1.2-alpha.2 → 0.1.2-alpha.4
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/README.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/package.json +8 -15
- package/lib/invariant.js +0 -28
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -27
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/session/session-stats/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 829c90ed12ea17b1d03be56f94dcb818df66c03a
|
|
6
|
+
README.zh.md: 6ce49ec864644c2cf2d0693daf2574cee771a732
|
package/README.md
CHANGED
|
@@ -130,3 +130,5 @@ These limits define what the figures describe and when the unit is absent. They
|
|
|
130
130
|
None.
|
|
131
131
|
|
|
132
132
|
</details>
|
|
133
|
+
|
|
134
|
+
**Runtime invariant:** No companion is published. The package owns a single pure projection fold whose wire payload is schema-validated by the projection registry at every snapshot and change-feed emission, and the event relations the fold relies on (`step/end` exactly once per entered step, monotonic host-assigned turn numbers, chunk and tool events carrying their step coordinates and call ids) are owned and runtime-checked by dsh-agent-loop and the session surface, not here.
|
package/README.zh.md
CHANGED
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.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./invariant": {
|
|
22
|
-
"types": "./lib/types/invariant.d.ts",
|
|
23
|
-
"default": "./lib/invariant.js"
|
|
24
|
-
},
|
|
25
21
|
"./types": {
|
|
26
22
|
"types": "./lib/types/types.d.ts",
|
|
27
23
|
"default": "./lib/types/types.js"
|
|
@@ -35,28 +31,25 @@
|
|
|
35
31
|
},
|
|
36
32
|
"files": [
|
|
37
33
|
"lib/index.js",
|
|
38
|
-
"lib/invariant.js",
|
|
39
34
|
"lib/types/**/*.js",
|
|
40
35
|
"lib/types/**/*.d.ts"
|
|
41
36
|
],
|
|
42
37
|
"license": "MIT",
|
|
43
38
|
"peerDependencies": {
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-session": "^0.1.2-alpha.
|
|
47
|
-
"@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.4",
|
|
40
|
+
"@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
|
|
41
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.4",
|
|
48
42
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
49
43
|
},
|
|
50
44
|
"dependencies": {
|
|
51
45
|
"zod": "^4.4.3"
|
|
52
46
|
},
|
|
53
47
|
"devDependencies": {
|
|
54
|
-
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
55
48
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/
|
|
58
|
-
"@deepseek-ai/dsh-session": "^0.1.2-alpha.
|
|
59
|
-
"@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.
|
|
49
|
+
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.4",
|
|
50
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
51
|
+
"@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
|
|
52
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.4",
|
|
60
53
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
61
54
|
}
|
|
62
55
|
}
|
package/lib/invariant.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//#region lib/types/invariant.js
|
|
2
|
-
/**
|
|
3
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-session-stats`.
|
|
4
|
-
* @module @deepseek-ai/dsh-session-stats/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@deepseek-ai/dsh-session-stats";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "session-stats-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: the package owns a single pure projection fold whose
|
|
13
|
-
* wire payload is schema-validated by the projection registry at every
|
|
14
|
-
* snapshot and change-feed emission, and the event relations the fold relies
|
|
15
|
-
* on (`step/end` exactly once per entered step, monotonic host-assigned turn
|
|
16
|
-
* numbers, chunk and tool events carrying their step coordinates and call
|
|
17
|
-
* ids) are owned and runtime-checked by dsh-agent-loop and the session
|
|
18
|
-
* surface, not here.
|
|
19
|
-
*/
|
|
20
|
-
const install = () => {};
|
|
21
|
-
/**
|
|
22
|
-
* Register this package's invariant companion.
|
|
23
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
24
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
25
|
-
*/
|
|
26
|
-
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
27
|
-
//#endregion
|
|
28
|
-
export { apply, inject, name };
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-session-stats`.
|
|
3
|
-
* @module @deepseek-ai/dsh-session-stats/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "session-stats-invariant";
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
/**
|
|
11
|
-
* Register this package's invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
-
*/
|
|
15
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
-
//# sourceMappingURL=invariant.d.ts.map
|
package/lib/types/invariant.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-session-stats`.
|
|
3
|
-
* @module @deepseek-ai/dsh-session-stats/invariant
|
|
4
|
-
*/
|
|
5
|
-
const PACKAGE_NAME = '@deepseek-ai/dsh-session-stats';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export const name = 'session-stats-invariant';
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export const inject = ['invariants'];
|
|
10
|
-
/**
|
|
11
|
-
* No runtime invariant: the package owns a single pure projection fold whose
|
|
12
|
-
* wire payload is schema-validated by the projection registry at every
|
|
13
|
-
* snapshot and change-feed emission, and the event relations the fold relies
|
|
14
|
-
* on (`step/end` exactly once per entered step, monotonic host-assigned turn
|
|
15
|
-
* numbers, chunk and tool events carrying their step coordinates and call
|
|
16
|
-
* ids) are owned and runtime-checked by dsh-agent-loop and the session
|
|
17
|
-
* surface, not here.
|
|
18
|
-
*/
|
|
19
|
-
const install = () => { };
|
|
20
|
-
/**
|
|
21
|
-
* Register this package's invariant companion.
|
|
22
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
23
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
24
|
-
*/
|
|
25
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
26
|
-
/* jscpd:ignore-end */
|
|
27
|
-
//# sourceMappingURL=invariant.js.map
|