acpx 0.15.1 → 0.16.0
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-registry-DU6mhZBL.js +785 -0
- package/dist/agent-registry-DU6mhZBL.js.map +1 -0
- package/dist/agent-registry.d.ts +70 -0
- package/dist/agent-registry.d.ts.map +1 -0
- package/dist/agent-registry.js +2 -0
- package/dist/{cli-BHAT_D3V.js → cli-BkYIxj_N.js} +6 -14
- package/dist/cli-BkYIxj_N.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +137 -333
- package/dist/cli.js.map +1 -1
- package/dist/{client-Cvz6msGc.d.ts → client-5levcBIs.d.ts} +11 -9
- package/dist/client-5levcBIs.d.ts.map +1 -0
- package/dist/{flows-BOI1XkMp.js → flows-Bxs4udrs.js} +205 -277
- package/dist/flows-Bxs4udrs.js.map +1 -0
- package/dist/flows.d.ts +6 -17
- package/dist/flows.d.ts.map +1 -1
- package/dist/flows.js +1 -1
- package/dist/{flags-BHcZWTov.js → invocation-options-BY4lxkn3.js} +82 -58
- package/dist/invocation-options-BY4lxkn3.js.map +1 -0
- package/dist/{live-checkpoint-sB7dFOYR.js → live-checkpoint-BEfxBKCh.js} +997 -1412
- package/dist/live-checkpoint-BEfxBKCh.js.map +1 -0
- package/dist/{output-8-D6Gd4Z.js → output-uo5a27KB.js} +487 -490
- package/dist/output-uo5a27KB.js.map +1 -0
- package/dist/runtime.d.ts +105 -22
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +582 -366
- package/dist/runtime.js.map +1 -1
- package/dist/{session-options-DyIGRNfu.d.ts → session-options-t3d-F4dn.d.ts} +8 -6
- package/dist/session-options-t3d-F4dn.d.ts.map +1 -0
- package/package.json +27 -25
- package/skills/acpx/SKILL.md +19 -17
- package/dist/cli-BHAT_D3V.js.map +0 -1
- package/dist/client-Cvz6msGc.d.ts.map +0 -1
- package/dist/flags-BHcZWTov.js.map +0 -1
- package/dist/flows-BOI1XkMp.js.map +0 -1
- package/dist/live-checkpoint-sB7dFOYR.js.map +0 -1
- package/dist/output-8-D6Gd4Z.js.map +0 -1
- package/dist/session-options-DyIGRNfu.d.ts.map +0 -1
package/dist/runtime.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import
|
|
1
|
+
import { AcpAgentInspection, AcpAgentInspectionOptions, AcpAgentRegistry, AcpInspectableAgentRegistry, DEFAULT_AGENT_NAME, createAgentRegistry } from "./agent-registry.js";
|
|
2
|
+
import { S as PermissionPolicy, _ as AcpProcessStarted, a as AcpElicitationHandler, b as NonInteractivePermissionPolicy, c as AcpElicitationResponse, d as AcpPermissionRequest, f as AcpProcessExit, g as AcpProcessSpawnFailure, h as AcpProcessLifecycle, i as AcpElicitationContext, l as AcpPermissionDecision, m as AcpProcessLaunchScope, n as SystemPromptOption, o as AcpElicitationMode, p as AcpProcessLaunch, s as AcpElicitationRequest, t as SessionAgentOptions, u as AcpPermissionHandler, w as SessionRecord, x as PermissionMode, y as McpServer$1 } from "./session-options-t3d-F4dn.js";
|
|
3
|
+
import { a as RequestedModelUnsupportedErrorCode, i as RequestedModelUnsupportedError, n as REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, o as RequestedModelUnsupportedReason, r as REQUESTED_MODEL_UNSUPPORTED_REASONS, s as isRequestedModelUnsupportedError, t as AcpClient } from "./client-5levcBIs.js";
|
|
4
4
|
import { SetSessionConfigOptionResponse, ToolCallContent, ToolCallLocation, ToolKind } from "@agentclientprotocol/sdk";
|
|
5
|
-
//#region src/agent-registry.d.ts
|
|
6
|
-
export declare const DEFAULT_AGENT_NAME = "codex";
|
|
7
|
-
//#endregion
|
|
8
5
|
//#region src/runtime/public/contract.d.ts
|
|
9
6
|
type AcpRuntimePromptMode = "prompt" | "steer";
|
|
10
7
|
type AcpRuntimeSessionMode = "persistent" | "oneshot";
|
|
11
8
|
type AcpSessionUpdateTag = "agent_message_chunk" | "agent_thought_chunk" | "tool_call" | "tool_call_update" | "usage_update" | "available_commands_update" | "current_mode_update" | "config_option_update" | "session_info_update" | "plan" | (string & {});
|
|
12
|
-
type AcpRuntimeControl = "session/set_mode" | "session/set_config_option" | "session/status";
|
|
9
|
+
type AcpRuntimeControl = "session/set_mode" | "session/set_model" | "session/set_config_option" | "session/status";
|
|
13
10
|
type AcpRuntimeHandle = {
|
|
14
11
|
sessionKey: string;
|
|
15
12
|
backend: string;
|
|
@@ -31,7 +28,7 @@ type AcpRuntimeEnsureInput = {
|
|
|
31
28
|
* on the underlying `session/new` request, and persisted onto the new
|
|
32
29
|
* record. Ignored when an existing persistent session is reused — system
|
|
33
30
|
* prompts are fixed at `newSession` time, so changing them requires a
|
|
34
|
-
* different sessionKey or
|
|
31
|
+
* different sessionKey or prepareFreshSession on the prior record first.
|
|
35
32
|
*/
|
|
36
33
|
sessionOptions?: SessionAgentOptions;
|
|
37
34
|
};
|
|
@@ -51,6 +48,8 @@ type AcpRuntimeTurnInput = {
|
|
|
51
48
|
requestId: string;
|
|
52
49
|
timeoutMs?: number;
|
|
53
50
|
signal?: AbortSignal;
|
|
51
|
+
/** Overrides the runtime permission callback for this prompt turn. */
|
|
52
|
+
onPermissionRequest?: AcpPermissionHandler;
|
|
54
53
|
/** Handles ACP elicitation requests owned by this prompt turn. */
|
|
55
54
|
onElicitation?: AcpElicitationHandler;
|
|
56
55
|
};
|
|
@@ -61,6 +60,11 @@ type AcpRuntimeCapabilities = {
|
|
|
61
60
|
type AcpRuntimeSessionModels = {
|
|
62
61
|
currentModelId?: string;
|
|
63
62
|
availableModelIds: string[];
|
|
63
|
+
/** Native display names, when retained by the session snapshot. */
|
|
64
|
+
availableModels?: Array<{
|
|
65
|
+
modelId: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}>;
|
|
64
68
|
};
|
|
65
69
|
/**
|
|
66
70
|
* Cumulative session cost as reported by the agent. Mirrors ACP's
|
|
@@ -96,6 +100,15 @@ type AcpRuntimeAvailableCommand = {
|
|
|
96
100
|
/** True/false when ACP advertised whether this command has an input schema. */
|
|
97
101
|
hasInput?: boolean;
|
|
98
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* An entry in an ACP plan snapshot. Each update replaces the previous list.
|
|
105
|
+
* Priority is omitted unless the agent advertises a valid value.
|
|
106
|
+
*/
|
|
107
|
+
type AcpRuntimePlanEntry = {
|
|
108
|
+
content: string;
|
|
109
|
+
status: "pending" | "in_progress" | "completed";
|
|
110
|
+
priority?: "high" | "medium" | "low";
|
|
111
|
+
};
|
|
99
112
|
/**
|
|
100
113
|
* Session-level usage roll-up surfaced through `getStatus()`. The
|
|
101
114
|
* reducer persists the breakdowns onto the session record; this type
|
|
@@ -109,6 +122,8 @@ type AcpRuntimeSessionUsage = {
|
|
|
109
122
|
perRequest?: Record<string, AcpRuntimeUsageBreakdown>;
|
|
110
123
|
};
|
|
111
124
|
type AcpRuntimeStatus = {
|
|
125
|
+
/** Most recent host request id admitted for a prompt on this session. */
|
|
126
|
+
lastRequestId?: string;
|
|
112
127
|
summary?: string;
|
|
113
128
|
acpxRecordId?: string;
|
|
114
129
|
backendSessionId?: string;
|
|
@@ -186,6 +201,11 @@ type AcpRuntimeEvent = {
|
|
|
186
201
|
* non-null `input` schema.
|
|
187
202
|
*/
|
|
188
203
|
availableCommands?: AcpRuntimeAvailableCommand[];
|
|
204
|
+
/**
|
|
205
|
+
* Normalized entries on `plan` events; malformed entries are skipped.
|
|
206
|
+
* Replace the displayed plan when present, including clearing it for [].
|
|
207
|
+
*/
|
|
208
|
+
entries?: AcpRuntimePlanEntry[];
|
|
189
209
|
} | {
|
|
190
210
|
type: "tool_call";
|
|
191
211
|
text: string;
|
|
@@ -256,6 +276,13 @@ interface AcpRuntimeTurn {
|
|
|
256
276
|
}): Promise<void>;
|
|
257
277
|
}
|
|
258
278
|
interface AcpRuntime {
|
|
279
|
+
/** Stops owned connections and joins admitted work; stored sessions remain resumable. */
|
|
280
|
+
shutdown?(): Promise<void>;
|
|
281
|
+
/** Finds a persistent session handle without starting or reconnecting an agent. */
|
|
282
|
+
findSession?(input: {
|
|
283
|
+
sessionKey: string;
|
|
284
|
+
agent: string;
|
|
285
|
+
}): Promise<AcpRuntimeHandle | undefined>;
|
|
259
286
|
ensureSession(input: AcpRuntimeEnsureInput): Promise<AcpRuntimeHandle>;
|
|
260
287
|
startTurn(input: AcpRuntimeTurnInput): AcpRuntimeTurn;
|
|
261
288
|
/**
|
|
@@ -275,6 +302,10 @@ interface AcpRuntime {
|
|
|
275
302
|
handle: AcpRuntimeHandle;
|
|
276
303
|
mode: string;
|
|
277
304
|
}): Promise<void>;
|
|
305
|
+
setModel?(input: {
|
|
306
|
+
handle: AcpRuntimeHandle;
|
|
307
|
+
model: string;
|
|
308
|
+
}): Promise<void>;
|
|
278
309
|
setConfigOption?(input: {
|
|
279
310
|
handle: AcpRuntimeHandle;
|
|
280
311
|
key: string;
|
|
@@ -285,6 +316,10 @@ interface AcpRuntime {
|
|
|
285
316
|
handle: AcpRuntimeHandle;
|
|
286
317
|
reason?: string;
|
|
287
318
|
}): Promise<void>;
|
|
319
|
+
/** Locally closes the session and persists fresh creation on the next ensure without resumeSessionId. */
|
|
320
|
+
prepareFreshSession?(input: {
|
|
321
|
+
handle: AcpRuntimeHandle;
|
|
322
|
+
}): Promise<void>;
|
|
288
323
|
close(input: {
|
|
289
324
|
handle: AcpRuntimeHandle;
|
|
290
325
|
reason: string;
|
|
@@ -296,17 +331,24 @@ interface AcpSessionStore {
|
|
|
296
331
|
load(sessionId: string): Promise<AcpSessionRecord | undefined>;
|
|
297
332
|
save(record: AcpSessionRecord): Promise<void>;
|
|
298
333
|
}
|
|
299
|
-
interface AcpAgentRegistry {
|
|
300
|
-
resolve(agentName: string): string | string[];
|
|
301
|
-
list(): string[];
|
|
302
|
-
}
|
|
303
334
|
type AcpRuntimeOptions = {
|
|
304
335
|
cwd: string;
|
|
305
336
|
/** Trusted child-only environment, snapshotted at construction and never persisted. */
|
|
306
337
|
agentProcessEnv?: Record<string, string>;
|
|
307
338
|
sessionStore: AcpSessionStore;
|
|
308
339
|
agentRegistry: AcpAgentRegistry;
|
|
309
|
-
|
|
340
|
+
/**
|
|
341
|
+
* Servers for new and reconnected session clients. A resolver runs at connection
|
|
342
|
+
* creation with the session's stored identity; its result is never persisted.
|
|
343
|
+
* Retained connections keep their original servers. Initialization-only health
|
|
344
|
+
* probes do not call the resolver.
|
|
345
|
+
*/
|
|
346
|
+
mcpServers?: McpServer$1[] | ((session: {
|
|
347
|
+
sessionKey: string;
|
|
348
|
+
cwd: string;
|
|
349
|
+
agentCommand: string;
|
|
350
|
+
agentArgv?: string[];
|
|
351
|
+
}) => McpServer$1[]);
|
|
310
352
|
permissionMode: PermissionMode;
|
|
311
353
|
nonInteractivePermissions?: NonInteractivePermissionPolicy;
|
|
312
354
|
permissionPolicy?: PermissionPolicy;
|
|
@@ -317,14 +359,19 @@ type AcpRuntimeOptions = {
|
|
|
317
359
|
elicitationModes?: readonly AcpElicitationMode[];
|
|
318
360
|
/** Optional lifecycle observer for ACP agent processes owned by this runtime. */
|
|
319
361
|
processLifecycle?: AcpProcessLifecycle;
|
|
320
|
-
onPermissionRequest?:
|
|
321
|
-
signal: AbortSignal;
|
|
322
|
-
}) => Promise<AcpPermissionDecision | undefined>;
|
|
362
|
+
onPermissionRequest?: AcpPermissionHandler;
|
|
323
363
|
};
|
|
324
364
|
type AcpFileSessionStoreOptions = {
|
|
325
365
|
stateDir: string;
|
|
326
366
|
};
|
|
327
367
|
//#endregion
|
|
368
|
+
//#region src/runtime/public/probe.d.ts
|
|
369
|
+
type RuntimeHealthReport = {
|
|
370
|
+
ok: boolean;
|
|
371
|
+
message: string;
|
|
372
|
+
details?: string[];
|
|
373
|
+
};
|
|
374
|
+
//#endregion
|
|
328
375
|
//#region src/runtime/engine/manager.d.ts
|
|
329
376
|
type AcpRuntimeManagerDeps = {
|
|
330
377
|
clientFactory?: (options: ConstructorParameters<typeof AcpClient>[0]) => AcpClient;
|
|
@@ -342,12 +389,26 @@ declare class AcpRuntimeManager {
|
|
|
342
389
|
private readonly deps;
|
|
343
390
|
private readonly activeControllers;
|
|
344
391
|
private readonly retainedSessionOwners;
|
|
392
|
+
private readonly retiringSessionOwners;
|
|
345
393
|
private readonly pendingOneShotRecordIds;
|
|
346
394
|
private readonly ensureSessionLocks;
|
|
347
395
|
private readonly runtimeOperationLocks;
|
|
396
|
+
private readonly sessionTasks;
|
|
348
397
|
private readonly closingActiveRecords;
|
|
398
|
+
private readonly liveClients;
|
|
399
|
+
private readonly pendingTasks;
|
|
400
|
+
private shuttingDown;
|
|
401
|
+
private shutdownTask?;
|
|
349
402
|
constructor(options: AcpRuntimeOptions, deps?: AcpRuntimeManagerDeps);
|
|
350
403
|
private createClient;
|
|
404
|
+
probe(): Promise<RuntimeHealthReport>;
|
|
405
|
+
private assertOpen;
|
|
406
|
+
shutdown(): Promise<void>;
|
|
407
|
+
private shutdownOwnedClients;
|
|
408
|
+
private trackTask;
|
|
409
|
+
private queueSessionTask;
|
|
410
|
+
private cancelSessionTasks;
|
|
411
|
+
private closeClient;
|
|
351
412
|
private createSessionOwner;
|
|
352
413
|
private routeOwnedSessionUpdate;
|
|
353
414
|
private routeOwnedClientOperation;
|
|
@@ -358,9 +419,11 @@ declare class AcpRuntimeManager {
|
|
|
358
419
|
private readRetainedSessionOwner;
|
|
359
420
|
private closeRetainedSessionOwner;
|
|
360
421
|
private stopSessionOwner;
|
|
422
|
+
private retrySessionCleanup;
|
|
361
423
|
private refreshClosedState;
|
|
362
424
|
private retainPersistentSessionOwnerAfterTurn;
|
|
363
425
|
private canRetainPersistentSessionOwner;
|
|
426
|
+
private resolveMcpServers;
|
|
364
427
|
private withRuntimeControlSession;
|
|
365
428
|
private refreshOwnedRecordLifecycle;
|
|
366
429
|
ensureSession(input: RuntimeEnsureInput): Promise<SessionRecord>;
|
|
@@ -368,6 +431,7 @@ declare class AcpRuntimeManager {
|
|
|
368
431
|
private withManagerLock;
|
|
369
432
|
private ensureSessionWithOwnership;
|
|
370
433
|
private loadExistingRuntimeSession;
|
|
434
|
+
findSession(sessionKey: string): Promise<SessionRecord | undefined>;
|
|
371
435
|
private canReuseRuntimeSession;
|
|
372
436
|
private reuseRuntimeSession;
|
|
373
437
|
private closeConflictingPersistentSession;
|
|
@@ -384,6 +448,7 @@ declare class AcpRuntimeManager {
|
|
|
384
448
|
timeoutMs?: number;
|
|
385
449
|
signal?: AbortSignal;
|
|
386
450
|
onElicitation?: AcpElicitationHandler;
|
|
451
|
+
onPermissionRequest?: AcpPermissionHandler;
|
|
387
452
|
}): AcpRuntimeTurn;
|
|
388
453
|
private closeRetainedOneShotHandle;
|
|
389
454
|
private runRuntimeTurnTask;
|
|
@@ -407,7 +472,6 @@ declare class AcpRuntimeManager {
|
|
|
407
472
|
private connectRuntimeTurnClient;
|
|
408
473
|
private publishRuntimeTurnController;
|
|
409
474
|
private resolveRuntimeTurnReady;
|
|
410
|
-
private emitRuntimeTurnLoadStatus;
|
|
411
475
|
private cancelRuntimeTurnBeforePrompt;
|
|
412
476
|
private applyPendingRuntimeTurnCancel;
|
|
413
477
|
private saveCompletedRuntimeTurn;
|
|
@@ -427,21 +491,27 @@ declare class AcpRuntimeManager {
|
|
|
427
491
|
timeoutMs?: number;
|
|
428
492
|
signal?: AbortSignal;
|
|
429
493
|
onElicitation?: AcpElicitationHandler;
|
|
494
|
+
onPermissionRequest?: AcpPermissionHandler;
|
|
430
495
|
}): AsyncIterable<AcpRuntimeEvent>;
|
|
431
496
|
getStatus(handle: AcpRuntimeHandle): Promise<AcpRuntimeStatus>;
|
|
497
|
+
private readStatus;
|
|
432
498
|
setMode(handle: AcpRuntimeHandle, mode: string, sessionMode?: "persistent" | "oneshot"): Promise<void>;
|
|
433
499
|
private setModeWithOwnership;
|
|
500
|
+
setModel(handle: AcpRuntimeHandle, model: string, sessionMode?: "persistent" | "oneshot"): Promise<void>;
|
|
501
|
+
private setModelWithOwnership;
|
|
434
502
|
setConfigOption(handle: AcpRuntimeHandle, key: string, value: string, sessionMode?: "persistent" | "oneshot"): Promise<SetSessionConfigOptionResponse>;
|
|
435
503
|
private setConfigOptionWithOwnership;
|
|
436
504
|
cancel(handle: AcpRuntimeHandle): Promise<void>;
|
|
505
|
+
prepareFreshSession(handle: AcpRuntimeHandle): Promise<void>;
|
|
437
506
|
close(handle: AcpRuntimeHandle, options?: {
|
|
438
507
|
discardPersistentState?: boolean;
|
|
439
508
|
}): Promise<void>;
|
|
509
|
+
private closeRuntimeSession;
|
|
440
510
|
private resolveRuntimeRecordForClose;
|
|
441
511
|
private markActiveRuntimeRecordClosing;
|
|
442
512
|
private closeRuntimeRecordOwnership;
|
|
443
513
|
private closeBackendSession;
|
|
444
|
-
private
|
|
514
|
+
private finalizeSessionConnection;
|
|
445
515
|
private acquireBackendCloseConnection;
|
|
446
516
|
private requestBackendSessionClose;
|
|
447
517
|
private handleBackendSessionCloseError;
|
|
@@ -485,13 +555,12 @@ type AcpxRuntimeLike = AcpRuntime & {
|
|
|
485
555
|
isHealthy(): boolean;
|
|
486
556
|
doctor(): Promise<AcpRuntimeDoctorReport>;
|
|
487
557
|
};
|
|
488
|
-
export declare function createAgentRegistry(params?: {
|
|
489
|
-
overrides?: Record<string, string | string[]>;
|
|
490
|
-
}): AcpAgentRegistry;
|
|
491
558
|
export declare class AcpxRuntime implements AcpxRuntimeLike {
|
|
492
559
|
private readonly options;
|
|
493
560
|
private readonly testOptions?;
|
|
494
561
|
private healthy;
|
|
562
|
+
private shutdownTask?;
|
|
563
|
+
private readonly probeTasks;
|
|
495
564
|
private manager;
|
|
496
565
|
private managerPromise;
|
|
497
566
|
constructor(options: AcpRuntimeOptions, testOptions?: {
|
|
@@ -505,7 +574,13 @@ export declare class AcpxRuntime implements AcpxRuntimeLike {
|
|
|
505
574
|
isHealthy(): boolean;
|
|
506
575
|
probeAvailability(): Promise<void>;
|
|
507
576
|
doctor(): Promise<AcpRuntimeDoctorReport>;
|
|
577
|
+
private resolveSessionIdentity;
|
|
578
|
+
findSession(input: {
|
|
579
|
+
sessionKey: string;
|
|
580
|
+
agent: string;
|
|
581
|
+
}): Promise<AcpRuntimeHandle | undefined>;
|
|
508
582
|
ensureSession(input: AcpRuntimeEnsureInput): Promise<AcpRuntimeHandle>;
|
|
583
|
+
private createSessionHandle;
|
|
509
584
|
startTurn(input: AcpRuntimeTurnInput): {
|
|
510
585
|
requestId: string;
|
|
511
586
|
readonly promptStarted: Promise<void>;
|
|
@@ -532,6 +607,10 @@ export declare class AcpxRuntime implements AcpxRuntimeLike {
|
|
|
532
607
|
handle: AcpRuntimeHandle;
|
|
533
608
|
mode: string;
|
|
534
609
|
}): Promise<void>;
|
|
610
|
+
setModel(input: {
|
|
611
|
+
handle: AcpRuntimeHandle;
|
|
612
|
+
model: string;
|
|
613
|
+
}): Promise<void>;
|
|
535
614
|
setConfigOption(input: {
|
|
536
615
|
handle: AcpRuntimeHandle;
|
|
537
616
|
key: string;
|
|
@@ -541,11 +620,15 @@ export declare class AcpxRuntime implements AcpxRuntimeLike {
|
|
|
541
620
|
handle: AcpRuntimeHandle;
|
|
542
621
|
reason?: string;
|
|
543
622
|
}): Promise<void>;
|
|
623
|
+
prepareFreshSession(input: {
|
|
624
|
+
handle: AcpRuntimeHandle;
|
|
625
|
+
}): Promise<void>;
|
|
544
626
|
close(input: {
|
|
545
627
|
handle: AcpRuntimeHandle;
|
|
546
628
|
reason: string;
|
|
547
629
|
discardPersistentState?: boolean;
|
|
548
630
|
}): Promise<void>;
|
|
631
|
+
shutdown(): Promise<void>;
|
|
549
632
|
private getManager;
|
|
550
633
|
private runProbe;
|
|
551
634
|
private resolveManagerHandle;
|
|
@@ -556,5 +639,5 @@ export declare function createRuntimeStore(options: {
|
|
|
556
639
|
stateDir: string;
|
|
557
640
|
}): AcpSessionStore;
|
|
558
641
|
//#endregion
|
|
559
|
-
export { type AcpAgentRegistry, type AcpElicitationContext, type AcpElicitationHandler, type AcpElicitationMode, type AcpElicitationRequest, type AcpElicitationResponse, type AcpFileSessionStoreOptions, type AcpPermissionDecision, type AcpPermissionRequest, type AcpProcessExit, type AcpProcessLaunch, type AcpProcessLaunchScope, type AcpProcessLifecycle, type AcpProcessSpawnFailure, type AcpProcessStarted, type AcpRuntime, type AcpRuntimeAvailableCommand, type AcpRuntimeCapabilities, type AcpRuntimeDoctorReport, type AcpRuntimeEnsureInput, type AcpRuntimeErrorCode, type AcpRuntimeEvent, type AcpRuntimeHandle, type AcpRuntimeOptions, type AcpRuntimePromptMode, type AcpRuntimeSessionMode, type AcpRuntimeSessionModels, type AcpRuntimeSessionUsage, type AcpRuntimeStatus, type AcpRuntimeTurn, type AcpRuntimeTurnAttachment, type AcpRuntimeTurnInput, type AcpRuntimeTurnResult, type AcpRuntimeTurnResultError, type AcpRuntimeUsageBreakdown, type AcpRuntimeUsageCost, type AcpSessionRecord, type AcpSessionStore, type AcpSessionUpdateTag, type AcpTextDeltaOriginMeta, type PermissionPolicy, REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, REQUESTED_MODEL_UNSUPPORTED_REASONS, RequestedModelUnsupportedError, type RequestedModelUnsupportedErrorCode, type RequestedModelUnsupportedReason, type SessionAgentOptions, type SystemPromptOption, isRequestedModelUnsupportedError };
|
|
642
|
+
export { type AcpAgentInspection, type AcpAgentInspectionOptions, type AcpAgentRegistry, type AcpElicitationContext, type AcpElicitationHandler, type AcpElicitationMode, type AcpElicitationRequest, type AcpElicitationResponse, type AcpFileSessionStoreOptions, type AcpInspectableAgentRegistry, type AcpPermissionDecision, type AcpPermissionHandler, type AcpPermissionRequest, type AcpProcessExit, type AcpProcessLaunch, type AcpProcessLaunchScope, type AcpProcessLifecycle, type AcpProcessSpawnFailure, type AcpProcessStarted, type AcpRuntime, type AcpRuntimeAvailableCommand, type AcpRuntimeCapabilities, type AcpRuntimeDoctorReport, type AcpRuntimeEnsureInput, type AcpRuntimeErrorCode, type AcpRuntimeEvent, type AcpRuntimeHandle, type AcpRuntimeOptions, type AcpRuntimePlanEntry, type AcpRuntimePromptMode, type AcpRuntimeSessionMode, type AcpRuntimeSessionModels, type AcpRuntimeSessionUsage, type AcpRuntimeStatus, type AcpRuntimeTurn, type AcpRuntimeTurnAttachment, type AcpRuntimeTurnInput, type AcpRuntimeTurnResult, type AcpRuntimeTurnResultError, type AcpRuntimeUsageBreakdown, type AcpRuntimeUsageCost, type AcpSessionRecord, type AcpSessionStore, type AcpSessionUpdateTag, type AcpTextDeltaOriginMeta, DEFAULT_AGENT_NAME, type PermissionPolicy, REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, REQUESTED_MODEL_UNSUPPORTED_REASONS, RequestedModelUnsupportedError, type RequestedModelUnsupportedErrorCode, type RequestedModelUnsupportedReason, type SessionAgentOptions, type SystemPromptOption, createAgentRegistry, isRequestedModelUnsupportedError };
|
|
560
643
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/runtime/public/contract.ts","../src/runtime/public/probe.ts","../src/runtime/engine/manager.ts","../src/runtime/public/file-session-store.ts","../src/runtime/public/errors.ts","../src/runtime/public/shared.ts","../src/runtime/public/handle-state.ts","../src/runtime.ts"],"mappings":";;;;;KAyCY;KAEA;KAEA;KAaA;KAMA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;EASA,iBAAiB;;KAGP;;;;;EAKV;EACA;;KAGU;EACV,QAAQ;EACR;EACA,cAAc;EACd,MAAM;EACN;EACA;EACA,SAAS;;EAET,sBAAsB;;EAEtB,gBAAgB;;KAGN;EACV,UAAU;EACV;;KAGU;EACV;EACA;;EAEA,kBAAkB;IAAQ;IAAiB;;;;;;;;KAQjC;EACV;EACA;;;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