@crossworks/client-types 0.235.1 → 0.237.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.235.1",
3
+ "version": "0.237.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/dto/agents.ts CHANGED
@@ -156,6 +156,12 @@ export interface AgentDTO {
156
156
  toolGroupSlugs: string[];
157
157
  memoryConfig: AgentMemoryConfigDTO;
158
158
  params: AgentParamsDTO;
159
+ /** Per-agent thinking effort (migration 0228): 'off', or a tier the
160
+ * providers take ('low' … 'max'). null = inherit the person's profile
161
+ * setting. Used when the model supports reasoning effort; the adapters
162
+ * drop or downgrade a tier a model lacks. Optional on the wire so a client
163
+ * built before the field reads a missing value as inherit. */
164
+ thinkingEffort?: 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
159
165
  avatar: AgentAvatarDTO | null;
160
166
  personaNotes: PersonaNoteDTO[];
161
167
  /** The co-admin login this agent is the personal assistant for (migration
package/src/dto/views.ts CHANGED
@@ -49,6 +49,20 @@ export type BrainCapacity = {
49
49
  zone: CapacityZone;
50
50
  /** Worst-axis fill as an integer percentage of the split budget (may exceed 100). */
51
51
  pctOfSplit: number;
52
+ /** The latest `recall_eval` passage score (the `search_chunks` arm), or
53
+ * null when the brain has never run one. Size says when to look; this
54
+ * says whether quality actually moved. Absent on older servers. */
55
+ retrieval?: RetrievalScore | null;
56
+ };
57
+
58
+ export type RetrievalScore = {
59
+ /** When the eval ran (ISO). */
60
+ at: string;
61
+ /** Gold cases scored. */
62
+ cases: number;
63
+ /** Fraction of cases whose gold node was in the top 10 passages, 0..1. */
64
+ recallAt10: number;
65
+ mrr: number;
52
66
  };
53
67
 
54
68
  export type AgentContext = {
@@ -906,6 +920,9 @@ export type StudioAgentDetail = {
906
920
  missingToolGroupSlugs: string[];
907
921
  toolCount: number;
908
922
  params: { temperature?: number; max_tokens?: number };
923
+ /** Per-agent thinking effort (migration 0228); null = inherit the profile.
924
+ * Optional so an older brain's graph reads as inherit. */
925
+ thinkingEffort?: 'off' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
909
926
  maxIterations?: number;
910
927
  /** Whether this is a manifest agent that can be reset to its canonical default. */
911
928
  resettable: boolean;