@cueloop/schema 0.1.0-alpha.103 → 0.1.0-alpha.104

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": "@cueloop/schema",
3
- "version": "0.1.0-alpha.103",
3
+ "version": "0.1.0-alpha.104",
4
4
  "description": "The Thread primitive: types, markdown block model, quote-primary anchors, feedback serialization",
5
5
  "homepage": "https://github.com/mmurakaru/cueloop#readme",
6
6
  "bugs": {
@@ -1,5 +1,23 @@
1
1
  import type { AgentPermission, AgentTool, AgentConfigOption } from "./thread-agent";
2
2
 
3
+ /** Reasoning effort choices shared by Thread defaults and their settings controls. */
4
+ export const AGENT_REASONING_EFFORTS = ["low", "medium", "high", "xhigh"] as const;
5
+
6
+ /** Reasoning effort stored in the new-conversation defaults. */
7
+ export type AgentReasoningEffort = (typeof AGENT_REASONING_EFFORTS)[number];
8
+
9
+ /** Model identity and effort supplied by the owner for new Thread conversations. */
10
+ export interface ThreadModelDefaults {
11
+ model: string;
12
+ effort: AgentReasoningEffort;
13
+ }
14
+
15
+ /** Provider-qualified model defaults apply only when a Thread creates a conversation. */
16
+ export const THREAD_MODEL_DEFAULTS: Record<"pi" | "fx", ThreadModelDefaults> = {
17
+ pi: { model: "openai-codex/gpt-6.1-sol", effort: "medium" },
18
+ fx: { model: "grok/grok-4.7", effort: "medium" },
19
+ };
20
+
3
21
  /** Harness events carry transcript data without exposing a provider's wire protocol. */
4
22
  export type AgentHarnessEvent =
5
23
  | { kind: "message"; id?: string; text: string; replace?: boolean }
package/src/types.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * dependencies beyond the history shapes.
5
5
  */
6
6
 
7
+ import type { ThreadAgentState } from "./thread-agent";
7
8
  import type { SessionHistory } from "./history";
8
9
 
9
10
  export const SCHEMA_VERSION = "1";
@@ -320,6 +321,7 @@ export interface Thread {
320
321
  parentSessionId?: string;
321
322
  shares?: ShareLink[];
322
323
  participants?: Identity[];
324
+ agentSnapshot?: ThreadAgentState;
323
325
  }
324
326
 
325
327
  /** Whether a Message releases a harness gate. */