@crossworks/client-types 0.232.220 → 0.232.222

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.220",
3
+ "version": "0.232.222",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/dto/rows.ts CHANGED
@@ -702,6 +702,19 @@ export type ContextSnapshot = {
702
702
  ms: number;
703
703
  cached: boolean;
704
704
  };
705
+ /** The decider's `version_grouping` use, when it ran on this turn. Part A
706
+ * (code): hits whose living successor is also in the pool. Part B (the
707
+ * model): passages judged a version of a higher-ranked passage from an
708
+ * unlinked node. `shadow`: counts only; `live`: dropped. */
709
+ versionGrouping?: {
710
+ mode: 'shadow' | 'live';
711
+ threshold: number;
712
+ wouldDrop: { superseded: number; versions: number };
713
+ /** Candidate pairs asked about (0 = no model call). */
714
+ pairs: number;
715
+ ms: number;
716
+ cached: boolean;
717
+ };
705
718
  };
706
719
 
707
720
  export type BackupFrequency = 'daily' | 'weekly';
package/src/dto/views.ts CHANGED
@@ -86,6 +86,21 @@ export type ModelSpend = {
86
86
  tokensOut: number;
87
87
  cacheReadTokens: number;
88
88
  calls: number;
89
+ /** Per-use split of this model's calls, for models that serve typed
90
+ * decisions (trace_steps.meta.use, the decider's uses). Absent otherwise. */
91
+ uses?: UseSpend[];
92
+ };
93
+
94
+ /** One decider use's share of a model's spend (see ModelSpend.uses). */
95
+ export type UseSpend = {
96
+ use: string;
97
+ costMicroUsd: number;
98
+ tokensIn: number;
99
+ calls: number;
100
+ /** Calls that returned no decision (step skipped: decision_failed). */
101
+ failed: number;
102
+ /** Mean call time over the answered calls, from meta.decision_ms. */
103
+ avgMs: number | null;
89
104
  };
90
105
 
91
106
  export type DailySpend = {