@xenosystem/agent-sdk 0.10.5 → 0.10.6

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
@@ -8232,7 +8232,7 @@ interface XenoExecutionOwner {
8232
8232
  processId?: number;
8233
8233
  host?: string;
8234
8234
  }
8235
- type XenoCoordinationEventType = "goal.created" | "goal.updated" | "goal.steered" | "goal.completed" | "goal.cancelled" | "loop.started" | "loop.iteration" | "loop.paused" | "loop.waiting" | "loop.resumed" | "loop.stopped" | "loop.completed" | "loop.failed" | "handoff.created" | "handoff.claimed" | "handoff.completed" | "handoff.failed" | "ownership.acquired" | "admission.fenced" | "admission.restored" | "ownership.renewed" | "ownership.released";
8235
+ type XenoCoordinationEventType = "goal.created" | "goal.updated" | "goal.steered" | "goal.completed" | "goal.cancelled" | "loop.started" | "loop.iteration" | "loop.paused" | "loop.waiting" | "loop.resumed" | "loop.stopped" | "loop.completed" | "loop.failed" | "handoff.created" | "handoff.claimed" | "handoff.completed" | "handoff.failed" | "ownership.acquired" | "admission.fenced" | "admission.restored" | "ownership.renewed" | "ownership.recovered" | "ownership.released";
8236
8236
  interface XenoCoordinationEvent {
8237
8237
  schemaVersion: typeof XENO_COORDINATION_SCHEMA_VERSION;
8238
8238
  id: string;
@@ -9418,6 +9418,7 @@ declare class DurableXenoCoordinationStore {
9418
9418
  leaseMs?: number;
9419
9419
  }): Promise<XenoExecutionOwner>;
9420
9420
  renewOwnership(sessionId: string, ownerId: string, leaseId: string, leaseMs?: number): Promise<XenoExecutionOwner>;
9421
+ recoverExpiredOwnership(sessionId: string, ownerId: string, leaseId: string, processId: number, leaseMs?: number): Promise<XenoExecutionOwner>;
9421
9422
  releaseOwnership(sessionId: string, ownerId: string, leaseId: string): Promise<XenoExecutionOwner>;
9422
9423
  createHandoff(input: CreateXenoHandoffInput): Promise<XenoHandoffRecord>;
9423
9424
  claimHandoff(input: ClaimXenoHandoffInput): Promise<{
@@ -9468,7 +9469,7 @@ interface ExecuteXenoCoordinationActionResult {
9468
9469
  event?: XenoCoordinationEvent;
9469
9470
  }
9470
9471
  declare function executeXenoCoordinationAction(store: DurableXenoCoordinationStore, input: ExecuteXenoCoordinationActionInput): Promise<ExecuteXenoCoordinationActionResult>;
9471
- type XenoExecutionLeaseStore = Pick<DurableXenoCoordinationStore, "acquireOwnership" | "claimHandoff" | "completeHandoff" | "renewOwnership" | "releaseOwnership" | "createHandoff">;
9472
+ type XenoExecutionLeaseStore = Pick<DurableXenoCoordinationStore, "acquireOwnership" | "claimHandoff" | "completeHandoff" | "renewOwnership" | "releaseOwnership" | "createHandoff"> & Partial<Pick<DurableXenoCoordinationStore, "recoverExpiredOwnership">>;
9472
9473
  interface XenoExecutionLeaseSessionOptions {
9473
9474
  store?: XenoExecutionLeaseStore;
9474
9475
  sessionId: string;
@@ -9520,6 +9521,7 @@ declare class XenoExecutionLeaseSession {
9520
9521
  assertOwned(): Promise<XenoExecutionOwner>;
9521
9522
  private assertExecutionAllowed;
9522
9523
  private renewHeldLease;
9524
+ private renewOrRecover;
9523
9525
  prepareHandoff(input?: Omit<CreateXenoHandoffInput, "sessionId" | "sourceOwnerId" | "sourceLeaseId">): Promise<XenoHandoffRecord>;
9524
9526
  stop(options?: {
9525
9527
  release?: boolean;
package/dist/index.d.ts CHANGED
@@ -8232,7 +8232,7 @@ interface XenoExecutionOwner {
8232
8232
  processId?: number;
8233
8233
  host?: string;
8234
8234
  }
8235
- type XenoCoordinationEventType = "goal.created" | "goal.updated" | "goal.steered" | "goal.completed" | "goal.cancelled" | "loop.started" | "loop.iteration" | "loop.paused" | "loop.waiting" | "loop.resumed" | "loop.stopped" | "loop.completed" | "loop.failed" | "handoff.created" | "handoff.claimed" | "handoff.completed" | "handoff.failed" | "ownership.acquired" | "admission.fenced" | "admission.restored" | "ownership.renewed" | "ownership.released";
8235
+ type XenoCoordinationEventType = "goal.created" | "goal.updated" | "goal.steered" | "goal.completed" | "goal.cancelled" | "loop.started" | "loop.iteration" | "loop.paused" | "loop.waiting" | "loop.resumed" | "loop.stopped" | "loop.completed" | "loop.failed" | "handoff.created" | "handoff.claimed" | "handoff.completed" | "handoff.failed" | "ownership.acquired" | "admission.fenced" | "admission.restored" | "ownership.renewed" | "ownership.recovered" | "ownership.released";
8236
8236
  interface XenoCoordinationEvent {
8237
8237
  schemaVersion: typeof XENO_COORDINATION_SCHEMA_VERSION;
8238
8238
  id: string;
@@ -9418,6 +9418,7 @@ declare class DurableXenoCoordinationStore {
9418
9418
  leaseMs?: number;
9419
9419
  }): Promise<XenoExecutionOwner>;
9420
9420
  renewOwnership(sessionId: string, ownerId: string, leaseId: string, leaseMs?: number): Promise<XenoExecutionOwner>;
9421
+ recoverExpiredOwnership(sessionId: string, ownerId: string, leaseId: string, processId: number, leaseMs?: number): Promise<XenoExecutionOwner>;
9421
9422
  releaseOwnership(sessionId: string, ownerId: string, leaseId: string): Promise<XenoExecutionOwner>;
9422
9423
  createHandoff(input: CreateXenoHandoffInput): Promise<XenoHandoffRecord>;
9423
9424
  claimHandoff(input: ClaimXenoHandoffInput): Promise<{
@@ -9468,7 +9469,7 @@ interface ExecuteXenoCoordinationActionResult {
9468
9469
  event?: XenoCoordinationEvent;
9469
9470
  }
9470
9471
  declare function executeXenoCoordinationAction(store: DurableXenoCoordinationStore, input: ExecuteXenoCoordinationActionInput): Promise<ExecuteXenoCoordinationActionResult>;
9471
- type XenoExecutionLeaseStore = Pick<DurableXenoCoordinationStore, "acquireOwnership" | "claimHandoff" | "completeHandoff" | "renewOwnership" | "releaseOwnership" | "createHandoff">;
9472
+ type XenoExecutionLeaseStore = Pick<DurableXenoCoordinationStore, "acquireOwnership" | "claimHandoff" | "completeHandoff" | "renewOwnership" | "releaseOwnership" | "createHandoff"> & Partial<Pick<DurableXenoCoordinationStore, "recoverExpiredOwnership">>;
9472
9473
  interface XenoExecutionLeaseSessionOptions {
9473
9474
  store?: XenoExecutionLeaseStore;
9474
9475
  sessionId: string;
@@ -9520,6 +9521,7 @@ declare class XenoExecutionLeaseSession {
9520
9521
  assertOwned(): Promise<XenoExecutionOwner>;
9521
9522
  private assertExecutionAllowed;
9522
9523
  private renewHeldLease;
9524
+ private renewOrRecover;
9523
9525
  prepareHandoff(input?: Omit<CreateXenoHandoffInput, "sessionId" | "sourceOwnerId" | "sourceLeaseId">): Promise<XenoHandoffRecord>;
9524
9526
  stop(options?: {
9525
9527
  release?: boolean;