@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.
package/dist/index.d.cts CHANGED
@@ -622,6 +622,8 @@ interface SessionMeta {
622
622
  };
623
623
  formatVersion?: number;
624
624
  hostBinding?: AgentSessionHostBindingV1;
625
+ pinned?: boolean;
626
+ pinnedAt?: string;
625
627
  }
626
628
  type TranscriptEventType = "session_start" | "user_message" | "assistant_message" | "tool_call" | "tool_result" | "delegation_summary" | "checkpoint" | "context_compressed" | "session_end" | "error";
627
629
  interface SessionStartData {
@@ -630,6 +632,8 @@ interface SessionStartData {
630
632
  model: string;
631
633
  workingDirectory: string;
632
634
  formatVersion?: number;
635
+ forkedFrom?: string;
636
+ checkpointId?: string;
633
637
  }
634
638
  interface ToolCallData {
635
639
  toolName: string;
@@ -4177,6 +4181,13 @@ interface LlmClientDeps {
4177
4181
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
4178
4182
  readonly localTransportLimits?: ProviderTransportLimits;
4179
4183
  readonly apiKey?: string;
4184
+ authorizeRequest?(target: {
4185
+ method: string;
4186
+ url: string;
4187
+ }): Promise<{
4188
+ authorization: string;
4189
+ dpop?: string;
4190
+ } | null>;
4180
4191
  readonly maxTokens: number;
4181
4192
  getApiRequestTimeoutMs(): number;
4182
4193
  buildRuntimeSystemPrompt(): string;
@@ -4223,6 +4234,7 @@ declare class LlmClient {
4223
4234
  private static getHeaderValue;
4224
4235
  private static stripHtml;
4225
4236
  private static summarizeErrorBody;
4237
+ private authorizationHeaders;
4226
4238
  private createApiRequestSignal;
4227
4239
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
4228
4240
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -5298,6 +5310,13 @@ interface ModeSwitchRequest {
5298
5310
  }
5299
5311
  interface AgentLoopConfig {
5300
5312
  apiKey?: string;
5313
+ authorizeRequest?(target: {
5314
+ method: string;
5315
+ url: string;
5316
+ }): Promise<{
5317
+ authorization: string;
5318
+ dpop?: string;
5319
+ } | null>;
5301
5320
  baseURL: string;
5302
5321
  ollamaBaseURL?: string;
5303
5322
  localRuntimeUrl?: string;
@@ -10491,12 +10510,20 @@ declare class SessionLock {
10491
10510
  static cleanStale(sessionsDir: string): Promise<string[]>;
10492
10511
  }
10493
10512
  declare class SessionRegistry {
10513
+ static fork(sessionId: string, options?: {
10514
+ checkpointId?: string;
10515
+ name?: string;
10516
+ }): Promise<SessionMeta>;
10517
+ static setTitle(sessionId: string, title: string | null): Promise<SessionMeta>;
10518
+ static setPinned(sessionId: string, pinned: boolean): Promise<SessionMeta>;
10519
+ static setArchived(sessionId: string, archived: boolean): Promise<SessionMeta>;
10494
10520
  static getSessionsDir(): string;
10495
10521
  static list(options?: {
10496
10522
  status?: SessionStatus[];
10497
10523
  role?: string;
10498
10524
  workingDirectory?: string;
10499
10525
  limit?: number;
10526
+ includeArchived?: boolean;
10500
10527
  }): Promise<SessionMeta[]>;
10501
10528
  static find(sessionId: string): Promise<SessionMeta | null>;
10502
10529
  static findMostRecent(roleOrOptions?: string | {
package/dist/index.d.ts CHANGED
@@ -622,6 +622,8 @@ interface SessionMeta {
622
622
  };
623
623
  formatVersion?: number;
624
624
  hostBinding?: AgentSessionHostBindingV1;
625
+ pinned?: boolean;
626
+ pinnedAt?: string;
625
627
  }
626
628
  type TranscriptEventType = "session_start" | "user_message" | "assistant_message" | "tool_call" | "tool_result" | "delegation_summary" | "checkpoint" | "context_compressed" | "session_end" | "error";
627
629
  interface SessionStartData {
@@ -630,6 +632,8 @@ interface SessionStartData {
630
632
  model: string;
631
633
  workingDirectory: string;
632
634
  formatVersion?: number;
635
+ forkedFrom?: string;
636
+ checkpointId?: string;
633
637
  }
634
638
  interface ToolCallData {
635
639
  toolName: string;
@@ -4177,6 +4181,13 @@ interface LlmClientDeps {
4177
4181
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
4178
4182
  readonly localTransportLimits?: ProviderTransportLimits;
4179
4183
  readonly apiKey?: string;
4184
+ authorizeRequest?(target: {
4185
+ method: string;
4186
+ url: string;
4187
+ }): Promise<{
4188
+ authorization: string;
4189
+ dpop?: string;
4190
+ } | null>;
4180
4191
  readonly maxTokens: number;
4181
4192
  getApiRequestTimeoutMs(): number;
4182
4193
  buildRuntimeSystemPrompt(): string;
@@ -4223,6 +4234,7 @@ declare class LlmClient {
4223
4234
  private static getHeaderValue;
4224
4235
  private static stripHtml;
4225
4236
  private static summarizeErrorBody;
4237
+ private authorizationHeaders;
4226
4238
  private createApiRequestSignal;
4227
4239
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
4228
4240
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -5298,6 +5310,13 @@ interface ModeSwitchRequest {
5298
5310
  }
5299
5311
  interface AgentLoopConfig {
5300
5312
  apiKey?: string;
5313
+ authorizeRequest?(target: {
5314
+ method: string;
5315
+ url: string;
5316
+ }): Promise<{
5317
+ authorization: string;
5318
+ dpop?: string;
5319
+ } | null>;
5301
5320
  baseURL: string;
5302
5321
  ollamaBaseURL?: string;
5303
5322
  localRuntimeUrl?: string;
@@ -10491,12 +10510,20 @@ declare class SessionLock {
10491
10510
  static cleanStale(sessionsDir: string): Promise<string[]>;
10492
10511
  }
10493
10512
  declare class SessionRegistry {
10513
+ static fork(sessionId: string, options?: {
10514
+ checkpointId?: string;
10515
+ name?: string;
10516
+ }): Promise<SessionMeta>;
10517
+ static setTitle(sessionId: string, title: string | null): Promise<SessionMeta>;
10518
+ static setPinned(sessionId: string, pinned: boolean): Promise<SessionMeta>;
10519
+ static setArchived(sessionId: string, archived: boolean): Promise<SessionMeta>;
10494
10520
  static getSessionsDir(): string;
10495
10521
  static list(options?: {
10496
10522
  status?: SessionStatus[];
10497
10523
  role?: string;
10498
10524
  workingDirectory?: string;
10499
10525
  limit?: number;
10526
+ includeArchived?: boolean;
10500
10527
  }): Promise<SessionMeta[]>;
10501
10528
  static find(sessionId: string): Promise<SessionMeta | null>;
10502
10529
  static findMostRecent(roleOrOptions?: string | {