@myagentroam/agent 0.10.60 → 0.10.62

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.
@@ -56,6 +56,7 @@ export interface SessionMeta {
56
56
  storageTransactionId?: string;
57
57
  resume?: {
58
58
  version: 1;
59
+ userTurns?: number;
59
60
  compactSequence?: number;
60
61
  gcSequence?: number;
61
62
  gcGeneration?: number;
@@ -12,7 +12,7 @@ export class SubagentScheduler {
12
12
  #disposed = false;
13
13
  #createdInExecution = 0;
14
14
  #runner;
15
- constructor(runner, limits = { maxTasks: 8, maxConcurrent: 4 }) {
15
+ constructor(runner, limits = { maxTasks: 16, maxConcurrent: 16 }) {
16
16
  this.limits = limits;
17
17
  this.#runner = runner;
18
18
  }
@@ -16,6 +16,8 @@ export interface SubagentModelOption {
16
16
  export interface SubagentTurnHandle extends AsyncIterable<MarAgentEvent> {
17
17
  readonly executionId: string;
18
18
  readonly turnId: string;
19
+ /** True only after the child terminal event was durably appended. */
20
+ readonly persistedEvents?: boolean;
19
21
  result(): Promise<ExecutionResult>;
20
22
  cancel(): void;
21
23
  enqueueMessage(message: string, delivery?: SubagentMessageDelivery): boolean;
@@ -78,7 +80,7 @@ export interface SubagentSessionControllerBackend {
78
80
  }>;
79
81
  deleteSession(sessionId: string): Promise<void>;
80
82
  /** Returns children in durable creation order. */
81
- listChildren(parentSessionId: string): Promise<readonly PersistedSubagentSession[]>;
83
+ listChildren(parentSessionId: string): Promise<readonly Omit<PersistedSubagentSession, 'records'>[]>;
82
84
  loadChild(parentSessionId: string, sessionId: string): Promise<PersistedSubagentSession | undefined>;
83
85
  }
84
86
  export declare class SubagentSessionController implements SubagentController {
@@ -109,6 +111,10 @@ export declare class SubagentSessionController implements SubagentController {
109
111
  withOperation<T>(operation: SubagentParentOperation, run: () => T): T;
110
112
  inspect(agentId: string): Promise<SubagentTaskSnapshot>;
111
113
  inspectAll(): readonly SubagentTaskSnapshot[];
114
+ list(signal?: AbortSignal): Promise<readonly SubagentTaskSnapshot[]>;
115
+ /** Full listing is explicit; ordinary opens and executions never require it. */
116
+ prepareAll(signal?: AbortSignal): Promise<void>;
117
+ prepareSessionResources(signal?: AbortSignal): Promise<void>;
112
118
  collectModelUpdates(): readonly {
113
119
  snapshot: SubagentTaskSnapshot;
114
120
  truncated: boolean;