repoburg 1.3.262 → 1.3.264

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.
@@ -41858,6 +41858,7 @@ async function registerTurnRoutes(fastify) {
41858
41858
  ...turn,
41859
41859
  attachments: rawTurn.attachments ? JSON.parse(rawTurn.attachments) : null
41860
41860
  };
41861
+ broadcast("turn:created", { sessionId: id, turn: parsedTurn });
41861
41862
  getProvider(session.runtime_type).startTurn(session, rawTurn).catch((err) => {
41862
41863
  console.error(`[provider] Unhandled error for session ${id}:`, err);
41863
41864
  });
@@ -43608,7 +43609,7 @@ App state does NOT live in this folder \u2014 it is stored in the pane database
43608
43609
 
43609
43610
  - getApp() - app info (id, title)
43610
43611
  - getState() / setState(data) - persistent JSON state, survives page reload
43611
- - createSession({ cwd, runtime_type, model, title }) - agent session owned by this app
43612
+ - createSession({ cwd, runtime_type, model, model_reasoning_effort, title }) - agent session owned by this app; model_reasoning_effort is the effort for its turns ("low" | "medium" | "high" | "xhigh" | "max" | "ultra", the levels the model supports), omitted = the runtime's default
43612
43613
  - submitTurn(sessionId, prompt) - send a prompt to a session
43613
43614
  - onTurnCompleted(callback) - callback(event, { turnId, response }) when a turn ends
43614
43615
  - onToolCall(callback) - callback({ callId, name, tool, args }) when the AGENT calls one of the manifest tools (name and tool carry the same tool name); answer with resolveToolCall(callId, result)
@@ -43801,7 +43802,16 @@ var BRIDGE_DTS = `/** AgentPane bridge \u2014 typed contract for mini apps (ambi
43801
43802
  interface AgentPaneAppInfo { id: string; title?: string }
43802
43803
  interface AgentPaneState { pinned: boolean; data: Record<string, unknown> | null }
43803
43804
  interface AgentPaneSessionInfo { id: string; title?: string | null }
43804
- interface AgentPaneCreateSessionOptions { title?: string; runtime_type?: string; model?: string; cwd?: string }
43805
+ interface AgentPaneCreateSessionOptions {
43806
+ title?: string;
43807
+ runtime_type?: string;
43808
+ model?: string;
43809
+ /** Reasoning effort for the session's turns: "low" | "medium" | "high" |
43810
+ * "xhigh" | "max" | "ultra" (the levels the model supports). Omitted =
43811
+ * the runtime's default. */
43812
+ model_reasoning_effort?: string;
43813
+ cwd?: string;
43814
+ }
43805
43815
  interface AgentPaneTurnPayload { turnId?: string; response?: string | null; error?: string }
43806
43816
  interface AgentPaneDeltaPayload { sessionId?: string; turnId?: string; itemId?: string; delta?: string }
43807
43817
  interface AgentPaneToolCallPayload { callId: string; tool: string; name: string; args: Record<string, unknown> }
@@ -41845,6 +41845,7 @@ async function registerTurnRoutes(fastify) {
41845
41845
  ...turn,
41846
41846
  attachments: rawTurn.attachments ? JSON.parse(rawTurn.attachments) : null
41847
41847
  };
41848
+ broadcast("turn:created", { sessionId: id, turn: parsedTurn });
41848
41849
  getProvider(session.runtime_type).startTurn(session, rawTurn).catch((err) => {
41849
41850
  console.error(`[provider] Unhandled error for session ${id}:`, err);
41850
41851
  });
@@ -43595,7 +43596,7 @@ App state does NOT live in this folder \u2014 it is stored in the pane database
43595
43596
 
43596
43597
  - getApp() - app info (id, title)
43597
43598
  - getState() / setState(data) - persistent JSON state, survives page reload
43598
- - createSession({ cwd, runtime_type, model, title }) - agent session owned by this app
43599
+ - createSession({ cwd, runtime_type, model, model_reasoning_effort, title }) - agent session owned by this app; model_reasoning_effort is the effort for its turns ("low" | "medium" | "high" | "xhigh" | "max" | "ultra", the levels the model supports), omitted = the runtime's default
43599
43600
  - submitTurn(sessionId, prompt) - send a prompt to a session
43600
43601
  - onTurnCompleted(callback) - callback(event, { turnId, response }) when a turn ends
43601
43602
  - onToolCall(callback) - callback({ callId, name, tool, args }) when the AGENT calls one of the manifest tools (name and tool carry the same tool name); answer with resolveToolCall(callId, result)
@@ -43788,7 +43789,16 @@ var BRIDGE_DTS = `/** AgentPane bridge \u2014 typed contract for mini apps (ambi
43788
43789
  interface AgentPaneAppInfo { id: string; title?: string }
43789
43790
  interface AgentPaneState { pinned: boolean; data: Record<string, unknown> | null }
43790
43791
  interface AgentPaneSessionInfo { id: string; title?: string | null }
43791
- interface AgentPaneCreateSessionOptions { title?: string; runtime_type?: string; model?: string; cwd?: string }
43792
+ interface AgentPaneCreateSessionOptions {
43793
+ title?: string;
43794
+ runtime_type?: string;
43795
+ model?: string;
43796
+ /** Reasoning effort for the session's turns: "low" | "medium" | "high" |
43797
+ * "xhigh" | "max" | "ultra" (the levels the model supports). Omitted =
43798
+ * the runtime's default. */
43799
+ model_reasoning_effort?: string;
43800
+ cwd?: string;
43801
+ }
43792
43802
  interface AgentPaneTurnPayload { turnId?: string; response?: string | null; error?: string }
43793
43803
  interface AgentPaneDeltaPayload { sessionId?: string; turnId?: string; itemId?: string; delta?: string }
43794
43804
  interface AgentPaneToolCallPayload { callId: string; tool: string; name: string; args: Record<string, unknown> }