acpx 0.17.0 → 0.18.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 → agent-registry-DdKB-zia.js} +20 -17
- package/dist/agent-registry-DdKB-zia.js.map +1 -0
- package/dist/agent-registry.d.ts.map +1 -1
- package/dist/agent-registry.js +1 -1
- package/dist/{cli-CiyfEC7L.js → cli-8mVHeUXh.js} +5 -5
- package/dist/{cli-CiyfEC7L.js.map → cli-8mVHeUXh.js.map} +1 -1
- package/dist/cli.js +122 -94
- package/dist/cli.js.map +1 -1
- package/dist/{client-C6NUFqr-.d.ts → client-DeNKZZcu.d.ts} +19 -13
- package/dist/client-DeNKZZcu.d.ts.map +1 -0
- package/dist/{flows-CTOdIk-m.js → flows-WOQNzCMC.js} +5 -5
- package/dist/{flows-CTOdIk-m.js.map → flows-WOQNzCMC.js.map} +1 -1
- package/dist/flows.d.ts +1 -1
- package/dist/flows.js +1 -1
- package/dist/{invocation-options-DbCcOAzM.js → invocation-options-B6d7TI-y.js} +7 -6
- package/dist/{invocation-options-DbCcOAzM.js.map → invocation-options-B6d7TI-y.js.map} +1 -1
- package/dist/{ipc-D3akHMEq.js → ipc-BJrvfNXr.js} +307 -90
- package/dist/ipc-BJrvfNXr.js.map +1 -0
- package/dist/{output-BPPjvJTI.js → output-CL18YmsG.js} +9 -6
- package/dist/output-CL18YmsG.js.map +1 -0
- package/dist/{queue-owner-runtime--IbbndGz.js → queue-owner-runtime-Cr0dWJuL.js} +1008 -463
- package/dist/queue-owner-runtime-Cr0dWJuL.js.map +1 -0
- package/dist/runtime.d.ts +129 -39
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +378 -176
- package/dist/runtime.js.map +1 -1
- package/dist/{session-watch--UX5dh00.js → session-watch-B8Q_TsGf.js} +4 -4
- package/dist/{session-watch--UX5dh00.js.map → session-watch-B8Q_TsGf.js.map} +1 -1
- package/dist/{watch-BbBxO-kb.js → watch-Dp73ph8h.js} +2 -2
- package/dist/{watch-BbBxO-kb.js.map → watch-Dp73ph8h.js.map} +1 -1
- package/package.json +3 -3
- package/skills/acpx/SKILL.md +27 -7
- package/dist/agent-registry-DU6mhZBL.js.map +0 -1
- package/dist/client-C6NUFqr-.d.ts.map +0 -1
- package/dist/ipc-D3akHMEq.js.map +0 -1
- package/dist/output-BPPjvJTI.js.map +0 -1
- package/dist/queue-owner-runtime--IbbndGz.js.map +0 -1
package/dist/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AcpAgentInspection, AcpAgentInspectionOptions, AcpAgentRegistry, AcpInspectableAgentRegistry, DEFAULT_AGENT_NAME, createAgentRegistry } from "./agent-registry.js";
|
|
2
|
-
import { C as PermissionPolicy, S as PermissionMode, T as SessionRecord, _ as AcpProcessSpawnFailure, a as AcpElicitationHandler, b as McpServer$1, c as AcpElicitationResponse, d as AcpPermissionHandler, f as AcpPermissionRequest, g as AcpProcessLifecycle, h as AcpProcessLaunchScope, i as AcpElicitationContext, l as AcpJsonRpcMessage, m as AcpProcessLaunch, n as SystemPromptOption, o as AcpElicitationMode, p as AcpProcessExit, s as AcpElicitationRequest, t as SessionAgentOptions, u as AcpPermissionDecision, v as AcpProcessStarted, x as NonInteractivePermissionPolicy, y as AuthPolicy } from "./session-options-Dp6mzNSy.js";
|
|
3
|
-
import { a as RequestedModelUnsupportedErrorCode, c as AcpControlAuthority, 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-
|
|
2
|
+
import { C as PermissionPolicy, E as PromptInput, S as PermissionMode, T as SessionRecord, _ as AcpProcessSpawnFailure, a as AcpElicitationHandler, b as McpServer$1, c as AcpElicitationResponse, d as AcpPermissionHandler, f as AcpPermissionRequest, g as AcpProcessLifecycle, h as AcpProcessLaunchScope, i as AcpElicitationContext, l as AcpJsonRpcMessage, m as AcpProcessLaunch, n as SystemPromptOption, o as AcpElicitationMode, p as AcpProcessExit, s as AcpElicitationRequest, t as SessionAgentOptions, u as AcpPermissionDecision, v as AcpProcessStarted, x as NonInteractivePermissionPolicy, y as AuthPolicy } from "./session-options-Dp6mzNSy.js";
|
|
3
|
+
import { a as RequestedModelUnsupportedErrorCode, c as AcpControlAuthority, 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-DeNKZZcu.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { SetSessionConfigOptionResponse, ToolCallContent, ToolCallLocation, ToolKind } from "@agentclientprotocol/sdk";
|
|
6
6
|
//#region src/session/journal.d.ts
|
|
@@ -70,15 +70,22 @@ type AcpRuntimeTurnAttachment = {
|
|
|
70
70
|
mediaType: string;
|
|
71
71
|
data: string;
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
/**
|
|
74
|
+
* In-process turns check synchronous host authority before prompt dispatch.
|
|
75
|
+
* A throwing assertActive rejects admission without aborting the signal.
|
|
76
|
+
*/
|
|
77
|
+
type AcpRuntimeTurnInput = AcpControlAuthority & {
|
|
74
78
|
handle: AcpRuntimeHandle;
|
|
75
79
|
text: string;
|
|
76
80
|
attachments?: AcpRuntimeTurnAttachment[];
|
|
77
81
|
mode: AcpRuntimePromptMode;
|
|
78
82
|
requestId: string;
|
|
79
83
|
timeoutMs?: number;
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Overrides the client's default callback for this prompt turn. Throwing or
|
|
86
|
+
* returning undefined falls through to configured permission policy, not the
|
|
87
|
+
* default callback.
|
|
88
|
+
*/
|
|
82
89
|
onPermissionRequest?: AcpPermissionHandler;
|
|
83
90
|
/** Handles ACP elicitation requests owned by this prompt turn. */
|
|
84
91
|
onElicitation?: AcpElicitationHandler;
|
|
@@ -368,6 +375,13 @@ interface AcpSessionStore {
|
|
|
368
375
|
load(sessionId: string): Promise<AcpSessionRecord | undefined>;
|
|
369
376
|
save(record: AcpSessionRecord): Promise<void>;
|
|
370
377
|
}
|
|
378
|
+
type AcpRuntimeSessionContext = {
|
|
379
|
+
sessionKey: string;
|
|
380
|
+
cwd: string;
|
|
381
|
+
agentCommand: string;
|
|
382
|
+
agentArgv?: string[];
|
|
383
|
+
};
|
|
384
|
+
type AcpRuntimeSessionPermissions = Partial<Pick<AcpRuntimeOptions, "permissionMode" | "nonInteractivePermissions" | "permissionPolicy" | "onPermissionRequest">>;
|
|
371
385
|
type AcpRuntimeOptions = {
|
|
372
386
|
cwd: string;
|
|
373
387
|
/** Trusted child-only environment, snapshotted at construction and never persisted. */
|
|
@@ -380,12 +394,14 @@ type AcpRuntimeOptions = {
|
|
|
380
394
|
* Retained connections keep their original servers. Initialization-only health
|
|
381
395
|
* probes do not call the resolver.
|
|
382
396
|
*/
|
|
383
|
-
mcpServers?: McpServer$1[] | ((session:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
397
|
+
mcpServers?: McpServer$1[] | ((session: AcpRuntimeSessionContext) => McpServer$1[]);
|
|
398
|
+
/**
|
|
399
|
+
* Client permissions for new and reconnected sessions, resolved from stored
|
|
400
|
+
* identity. Unspecified fields inherit runtime defaults. Retained clients keep
|
|
401
|
+
* their original policy; health probes do not call this resolver. Neither the
|
|
402
|
+
* policy nor its callback is persisted.
|
|
403
|
+
*/
|
|
404
|
+
sessionPermissions?: (session: AcpRuntimeSessionContext) => AcpRuntimeSessionPermissions | undefined;
|
|
389
405
|
permissionMode: PermissionMode;
|
|
390
406
|
nonInteractivePermissions?: NonInteractivePermissionPolicy;
|
|
391
407
|
permissionPolicy?: PermissionPolicy;
|
|
@@ -408,11 +424,53 @@ type RuntimeHealthReport = {
|
|
|
408
424
|
message: string;
|
|
409
425
|
details?: string[];
|
|
410
426
|
};
|
|
427
|
+
type InspectAgentModelsOptions = {
|
|
428
|
+
agentCommand: string[];
|
|
429
|
+
cwd: string;
|
|
430
|
+
signal?: AbortSignal;
|
|
431
|
+
/** Positive startup/session discovery deadline; defaults to 120 seconds. Cleanup is awaited. */
|
|
432
|
+
timeoutMs?: number;
|
|
433
|
+
/** Trusted child-only environment overlay; never persisted. */
|
|
434
|
+
agentProcessEnv?: Record<string, string>;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Inspect session model metadata without a runtime store or prompt. The agent
|
|
438
|
+
* may create native session history; only its owned transport is closed.
|
|
439
|
+
*/
|
|
440
|
+
export declare function inspectAgentModels(options: InspectAgentModelsOptions): Promise<AcpRuntimeSessionModels | undefined>;
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/runtime/engine/turn.d.ts
|
|
443
|
+
type Deferred<T> = {
|
|
444
|
+
promise: Promise<T>;
|
|
445
|
+
resolve: (value: T) => void;
|
|
446
|
+
reject: (error: unknown) => void;
|
|
447
|
+
};
|
|
448
|
+
declare class AsyncEventQueue {
|
|
449
|
+
private readonly items;
|
|
450
|
+
private readonly waits;
|
|
451
|
+
private closed;
|
|
452
|
+
push(item: AcpRuntimeEvent): void;
|
|
453
|
+
close(): void;
|
|
454
|
+
clear(): void;
|
|
455
|
+
next(): Promise<AcpRuntimeEvent | null>;
|
|
456
|
+
iterate(): AsyncIterable<AcpRuntimeEvent>;
|
|
457
|
+
}
|
|
411
458
|
//#endregion
|
|
412
459
|
//#region src/runtime/engine/manager.d.ts
|
|
413
460
|
type AcpRuntimeManagerDeps = {
|
|
414
461
|
clientFactory?: (options: ConstructorParameters<typeof AcpClient>[0]) => AcpClient;
|
|
415
462
|
};
|
|
463
|
+
type ActiveSessionController = {
|
|
464
|
+
hasActivePrompt: () => boolean;
|
|
465
|
+
requestCancelActivePrompt: () => Promise<boolean>;
|
|
466
|
+
setSessionMode: (modeId: string, authority?: AcpControlAuthority) => Promise<void>;
|
|
467
|
+
setSessionModel: (modelId: string, authority?: AcpControlAuthority) => ReturnType<AcpClient["setSessionModel"]>;
|
|
468
|
+
setSessionConfigOption: (configId: string, value: string, authority?: AcpControlAuthority) => ReturnType<AcpClient["setSessionConfigOption"]>;
|
|
469
|
+
setResolvedSessionConfigOption: (configId: string, value: string, authority?: AcpControlAuthority) => Promise<{
|
|
470
|
+
configId: string;
|
|
471
|
+
response: Awaited<ReturnType<AcpClient["setSessionConfigOption"]>>;
|
|
472
|
+
}>;
|
|
473
|
+
};
|
|
416
474
|
type RuntimeEnsureInput = {
|
|
417
475
|
sessionKey: string;
|
|
418
476
|
agent: string;
|
|
@@ -421,10 +479,28 @@ type RuntimeEnsureInput = {
|
|
|
421
479
|
resumeSessionId?: string;
|
|
422
480
|
sessionOptions?: SessionAgentOptions;
|
|
423
481
|
};
|
|
482
|
+
type RuntimeTurnTaskState = {
|
|
483
|
+
pendingCancel: boolean;
|
|
484
|
+
turnActive: boolean;
|
|
485
|
+
activeController: ActiveSessionController | null;
|
|
486
|
+
};
|
|
487
|
+
type RuntimeTurnTask = {
|
|
488
|
+
input: AcpRuntimeTurnInput & {
|
|
489
|
+
sessionMode: "persistent" | "oneshot";
|
|
490
|
+
};
|
|
491
|
+
promptInput: PromptInput | string;
|
|
492
|
+
queue: AsyncEventQueue;
|
|
493
|
+
promptStarted: Deferred<void>;
|
|
494
|
+
sessionReady: Deferred<void>;
|
|
495
|
+
state: RuntimeTurnTaskState;
|
|
496
|
+
settleResult: (next: AcpRuntimeTurnResult) => void;
|
|
497
|
+
abortHandler: () => void;
|
|
498
|
+
};
|
|
424
499
|
declare class AcpRuntimeManager {
|
|
425
500
|
private readonly options;
|
|
426
501
|
private readonly deps;
|
|
427
502
|
private readonly activeControllers;
|
|
503
|
+
private readonly controlSessionRecords;
|
|
428
504
|
private readonly retainedSessionOwners;
|
|
429
505
|
private readonly retiringSessionOwners;
|
|
430
506
|
private readonly pendingOneShotRecordIds;
|
|
@@ -447,6 +523,7 @@ declare class AcpRuntimeManager {
|
|
|
447
523
|
private cancelSessionTasks;
|
|
448
524
|
private closeClient;
|
|
449
525
|
private createSessionOwner;
|
|
526
|
+
private saveSessionOwner;
|
|
450
527
|
private routeOwnedSessionUpdate;
|
|
451
528
|
private routeOwnedClientOperation;
|
|
452
529
|
private attachIdleProjection;
|
|
@@ -461,32 +538,26 @@ declare class AcpRuntimeManager {
|
|
|
461
538
|
private retainPersistentSessionOwnerAfterTurn;
|
|
462
539
|
private canRetainPersistentSessionOwner;
|
|
463
540
|
private resolveMcpServers;
|
|
541
|
+
private resolveSessionPermissions;
|
|
464
542
|
private withRuntimeControlSession;
|
|
465
543
|
private refreshOwnedRecordLifecycle;
|
|
466
544
|
ensureSession(input: RuntimeEnsureInput): Promise<SessionRecord>;
|
|
467
545
|
private withEnsureSessionLock;
|
|
468
546
|
private withManagerLock;
|
|
547
|
+
private serializeManagerOperation;
|
|
469
548
|
private ensureSessionWithOwnership;
|
|
549
|
+
private reuseCompatiblePersistentSession;
|
|
550
|
+
private acquireRuntimeSession;
|
|
470
551
|
private loadExistingRuntimeSession;
|
|
471
552
|
findSession(sessionKey: string): Promise<SessionRecord | undefined>;
|
|
472
553
|
private canReuseRuntimeSession;
|
|
554
|
+
private assertRuntimeSessionIdle;
|
|
473
555
|
private reuseRuntimeSession;
|
|
474
556
|
private closeConflictingPersistentSession;
|
|
475
557
|
private createOwnedRuntimeSession;
|
|
476
558
|
private prepareInitialRuntimeRecord;
|
|
477
559
|
private retainInitializedSessionOwner;
|
|
478
|
-
startTurn(input:
|
|
479
|
-
handle: AcpRuntimeHandle;
|
|
480
|
-
text: string;
|
|
481
|
-
attachments?: AcpRuntimeTurnAttachment[];
|
|
482
|
-
mode: AcpRuntimePromptMode;
|
|
483
|
-
sessionMode: "persistent" | "oneshot";
|
|
484
|
-
requestId: string;
|
|
485
|
-
timeoutMs?: number;
|
|
486
|
-
signal?: AbortSignal;
|
|
487
|
-
onElicitation?: AcpElicitationHandler;
|
|
488
|
-
onPermissionRequest?: AcpPermissionHandler;
|
|
489
|
-
}): AcpRuntimeTurn;
|
|
560
|
+
startTurn(input: RuntimeTurnTask["input"]): AcpRuntimeTurn;
|
|
490
561
|
private closeRetainedOneShotHandle;
|
|
491
562
|
private runRuntimeTurnTask;
|
|
492
563
|
private runRuntimePrompt;
|
|
@@ -499,7 +570,6 @@ declare class AcpRuntimeManager {
|
|
|
499
570
|
private createRunningRuntimeTurn;
|
|
500
571
|
private activateRuntimeTurn;
|
|
501
572
|
private createTurnClient;
|
|
502
|
-
private createRuntimeTurnCheckpoint;
|
|
503
573
|
private buildRuntimeTurnController;
|
|
504
574
|
private waitForRuntimeControlSession;
|
|
505
575
|
private requestRuntimeTurnCancel;
|
|
@@ -510,26 +580,16 @@ declare class AcpRuntimeManager {
|
|
|
510
580
|
private publishRuntimeTurnController;
|
|
511
581
|
private resolveRuntimeTurnReady;
|
|
512
582
|
private cancelRuntimeTurnBeforePrompt;
|
|
513
|
-
private
|
|
514
|
-
private
|
|
583
|
+
private updateCompletedRuntimeTurn;
|
|
584
|
+
private handleRuntimeTurnFailure;
|
|
515
585
|
private failRuntimeTurn;
|
|
516
586
|
private finalizeRuntimeTurn;
|
|
517
587
|
private discardRetainedRuntimeTurnOwner;
|
|
588
|
+
private attachFinalRuntimeProjection;
|
|
518
589
|
private closeRuntimeTurnClient;
|
|
519
590
|
private cleanupRuntimeTurn;
|
|
520
591
|
private finalizeRuntimeTurnRecord;
|
|
521
|
-
runTurn(input:
|
|
522
|
-
handle: AcpRuntimeHandle;
|
|
523
|
-
text: string;
|
|
524
|
-
attachments?: AcpRuntimeTurnAttachment[];
|
|
525
|
-
mode: AcpRuntimePromptMode;
|
|
526
|
-
sessionMode: "persistent" | "oneshot";
|
|
527
|
-
requestId: string;
|
|
528
|
-
timeoutMs?: number;
|
|
529
|
-
signal?: AbortSignal;
|
|
530
|
-
onElicitation?: AcpElicitationHandler;
|
|
531
|
-
onPermissionRequest?: AcpPermissionHandler;
|
|
532
|
-
}): AsyncIterable<AcpRuntimeEvent>;
|
|
592
|
+
runTurn(input: RuntimeTurnTask["input"]): AsyncIterable<AcpRuntimeEvent>;
|
|
533
593
|
getStatus(handle: AcpRuntimeHandle): Promise<AcpRuntimeStatus>;
|
|
534
594
|
private readStatus;
|
|
535
595
|
setMode(handle: AcpRuntimeHandle, mode: string, sessionMode?: "persistent" | "oneshot", authority?: AcpControlAuthority): Promise<void>;
|
|
@@ -603,6 +663,7 @@ export declare class SharedAcpRuntime {
|
|
|
603
663
|
private readonly options;
|
|
604
664
|
private readonly disconnect;
|
|
605
665
|
private readonly pending;
|
|
666
|
+
private readonly controlChains;
|
|
606
667
|
constructor(options: SharedAcpRuntimeOptions);
|
|
607
668
|
private assertOpen;
|
|
608
669
|
private track;
|
|
@@ -618,6 +679,35 @@ export declare class SharedAcpRuntime {
|
|
|
618
679
|
getStatus(input: {
|
|
619
680
|
handle: AcpRuntimeHandle;
|
|
620
681
|
}): Promise<AcpRuntimeStatus>;
|
|
682
|
+
getCapabilities(input?: {
|
|
683
|
+
handle?: AcpRuntimeHandle;
|
|
684
|
+
}): Promise<AcpRuntimeCapabilities>;
|
|
685
|
+
/**
|
|
686
|
+
* Preserves this client's control order, including caller-side persistence
|
|
687
|
+
* when talking to older owners. Updated owners checkpoint accepted controls
|
|
688
|
+
* themselves; serialization here cannot coordinate other legacy callers.
|
|
689
|
+
*/
|
|
690
|
+
private chainControl;
|
|
691
|
+
/**
|
|
692
|
+
* Checks this client's authority locally, then hands the control to the
|
|
693
|
+
* running owner. The check gates this client's dispatch only; it cannot gate
|
|
694
|
+
* controls other clients of the same owner send, and it cannot recall a
|
|
695
|
+
* control the owner already accepted.
|
|
696
|
+
*/
|
|
697
|
+
private dispatchControl;
|
|
698
|
+
setMode(input: AcpControlAuthority & {
|
|
699
|
+
handle: AcpRuntimeHandle;
|
|
700
|
+
mode: string;
|
|
701
|
+
}): Promise<void>;
|
|
702
|
+
setModel(input: AcpControlAuthority & {
|
|
703
|
+
handle: AcpRuntimeHandle;
|
|
704
|
+
model: string;
|
|
705
|
+
}): Promise<void>;
|
|
706
|
+
setConfigOption(input: AcpControlAuthority & {
|
|
707
|
+
handle: AcpRuntimeHandle;
|
|
708
|
+
key: string;
|
|
709
|
+
value: string;
|
|
710
|
+
}): Promise<SetSessionConfigOptionResponse>;
|
|
621
711
|
watchSession(input: {
|
|
622
712
|
handle: AcpRuntimeHandle;
|
|
623
713
|
cursor?: string;
|
|
@@ -726,5 +816,5 @@ export declare function createRuntimeStore(options: {
|
|
|
726
816
|
stateDir: string;
|
|
727
817
|
}): AcpSessionStore;
|
|
728
818
|
//#endregion
|
|
729
|
-
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 SessionWatchEvent, type SessionWatchResult, type SharedAcpRuntimeOptions, type SystemPromptOption, createAgentRegistry, isRequestedModelUnsupportedError };
|
|
819
|
+
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 AcpRuntimeSessionContext, type AcpRuntimeSessionMode, type AcpRuntimeSessionModels, type AcpRuntimeSessionPermissions, 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 InspectAgentModelsOptions, type PermissionPolicy, REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, REQUESTED_MODEL_UNSUPPORTED_REASONS, RequestedModelUnsupportedError, type RequestedModelUnsupportedErrorCode, type RequestedModelUnsupportedReason, type SessionAgentOptions, type SessionWatchEvent, type SessionWatchResult, type SharedAcpRuntimeOptions, type SystemPromptOption, createAgentRegistry, isRequestedModelUnsupportedError };
|
|
730
820
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/session/journal.ts","../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/shared.ts","../src/runtime.ts"],"mappings":";;;;;;KAYY;EAEN;EACA;EACA,QAAQ;;EAGR;EACA;IAAS;IAAiB;IAAe;IAAqB;;;KAGxD;EAAsB;;EAC5B;EAAiB;EAA0B,SAAS;;EACpD;EAAsB;;EACtB;EAAqB;EAAmB,QAAQ;;;;KCiB1C;KAEA;KAEA;KAaA;KAMA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;EASA,iBAAiB;;KAGP;;;;;EAKV;EACA
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/session/journal.ts","../src/runtime/public/contract.ts","../src/runtime/public/probe.ts","../src/runtime/engine/turn.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/shared.ts","../src/runtime.ts"],"mappings":";;;;;;KAYY;EAEN;EACA;EACA,QAAQ;;EAGR;EACA;IAAS;IAAiB;IAAe;IAAqB;;;KAGxD;EAAsB;;EAC5B;EAAiB;EAA0B,SAAS;;EACpD;EAAsB;;EACtB;EAAqB;EAAmB,QAAQ;;;;KCiB1C;KAEA;KAEA;KAaA;KAMA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;EASA,iBAAiB;;KA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