@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.
- package/dist/agent-core/sdk/agent.js +1 -1
- package/dist/agent-core/sdk/extension-agents.js +1 -1
- package/dist/agent-core/sdk/session.d.ts +18 -12
- package/dist/agent-core/sdk/session.js +42 -39
- package/dist/agent-core/sdk/subagent-backend.js +20 -17
- package/dist/agent-core/session/store/directory-index.d.ts +2 -2
- package/dist/agent-core/session/store/directory-index.js +17 -11
- package/dist/agent-core/session/store/execution-state.d.ts +1 -0
- package/dist/agent-core/session/store/execution-state.js +9 -0
- package/dist/agent-core/session/store/jsonl-store.d.ts +2 -2
- package/dist/agent-core/session/store/jsonl-store.js +217 -218
- package/dist/agent-core/session/store/types.d.ts +1 -0
- package/dist/agent-core/subagent/scheduler.js +1 -1
- package/dist/agent-core/subagent/session-controller.d.ts +7 -1
- package/dist/agent-core/subagent/session-controller.js +560 -352
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export class SubagentScheduler {
|
|
|
12
12
|
#disposed = false;
|
|
13
13
|
#createdInExecution = 0;
|
|
14
14
|
#runner;
|
|
15
|
-
constructor(runner, limits = { maxTasks:
|
|
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;
|