@xenosystem/agent-sdk 0.9.28 → 0.9.30

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.
@@ -405,6 +405,8 @@ interface SessionMeta {
405
405
  };
406
406
  formatVersion?: number;
407
407
  hostBinding?: AgentSessionHostBindingV1;
408
+ pinned?: boolean;
409
+ pinnedAt?: string;
408
410
  }
409
411
  type TranscriptEventType = "session_start" | "user_message" | "assistant_message" | "tool_call" | "tool_result" | "delegation_summary" | "checkpoint" | "context_compressed" | "session_end" | "error";
410
412
  interface SessionStartData {
@@ -413,6 +415,8 @@ interface SessionStartData {
413
415
  model: string;
414
416
  workingDirectory: string;
415
417
  formatVersion?: number;
418
+ forkedFrom?: string;
419
+ checkpointId?: string;
416
420
  }
417
421
  interface ToolCallData {
418
422
  toolName: string;
@@ -759,6 +763,13 @@ interface LlmClientDeps {
759
763
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
760
764
  readonly localTransportLimits?: ProviderTransportLimits;
761
765
  readonly apiKey?: string;
766
+ authorizeRequest?(target: {
767
+ method: string;
768
+ url: string;
769
+ }): Promise<{
770
+ authorization: string;
771
+ dpop?: string;
772
+ } | null>;
762
773
  readonly maxTokens: number;
763
774
  getApiRequestTimeoutMs(): number;
764
775
  buildRuntimeSystemPrompt(): string;
@@ -805,6 +816,7 @@ declare class LlmClient {
805
816
  private static getHeaderValue;
806
817
  private static stripHtml;
807
818
  private static summarizeErrorBody;
819
+ private authorizationHeaders;
808
820
  private createApiRequestSignal;
809
821
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
810
822
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -1347,6 +1359,13 @@ interface ModeSwitchRequest {
1347
1359
  }
1348
1360
  interface AgentLoopConfig {
1349
1361
  apiKey?: string;
1362
+ authorizeRequest?(target: {
1363
+ method: string;
1364
+ url: string;
1365
+ }): Promise<{
1366
+ authorization: string;
1367
+ dpop?: string;
1368
+ } | null>;
1350
1369
  baseURL: string;
1351
1370
  ollamaBaseURL?: string;
1352
1371
  localRuntimeUrl?: string;
@@ -405,6 +405,8 @@ interface SessionMeta {
405
405
  };
406
406
  formatVersion?: number;
407
407
  hostBinding?: AgentSessionHostBindingV1;
408
+ pinned?: boolean;
409
+ pinnedAt?: string;
408
410
  }
409
411
  type TranscriptEventType = "session_start" | "user_message" | "assistant_message" | "tool_call" | "tool_result" | "delegation_summary" | "checkpoint" | "context_compressed" | "session_end" | "error";
410
412
  interface SessionStartData {
@@ -413,6 +415,8 @@ interface SessionStartData {
413
415
  model: string;
414
416
  workingDirectory: string;
415
417
  formatVersion?: number;
418
+ forkedFrom?: string;
419
+ checkpointId?: string;
416
420
  }
417
421
  interface ToolCallData {
418
422
  toolName: string;
@@ -759,6 +763,13 @@ interface LlmClientDeps {
759
763
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
760
764
  readonly localTransportLimits?: ProviderTransportLimits;
761
765
  readonly apiKey?: string;
766
+ authorizeRequest?(target: {
767
+ method: string;
768
+ url: string;
769
+ }): Promise<{
770
+ authorization: string;
771
+ dpop?: string;
772
+ } | null>;
762
773
  readonly maxTokens: number;
763
774
  getApiRequestTimeoutMs(): number;
764
775
  buildRuntimeSystemPrompt(): string;
@@ -805,6 +816,7 @@ declare class LlmClient {
805
816
  private static getHeaderValue;
806
817
  private static stripHtml;
807
818
  private static summarizeErrorBody;
819
+ private authorizationHeaders;
808
820
  private createApiRequestSignal;
809
821
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
810
822
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -1347,6 +1359,13 @@ interface ModeSwitchRequest {
1347
1359
  }
1348
1360
  interface AgentLoopConfig {
1349
1361
  apiKey?: string;
1362
+ authorizeRequest?(target: {
1363
+ method: string;
1364
+ url: string;
1365
+ }): Promise<{
1366
+ authorization: string;
1367
+ dpop?: string;
1368
+ } | null>;
1350
1369
  baseURL: string;
1351
1370
  ollamaBaseURL?: string;
1352
1371
  localRuntimeUrl?: string;