@hydra-acp/cli 0.1.93 → 0.1.95
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/cli.js +325 -315
- package/dist/index.d.ts +30 -8
- package/dist/index.js +52 -51
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1814,7 +1814,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1814
1814
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1815
1815
|
updatedAt: z.ZodString;
|
|
1816
1816
|
attachedClients: z.ZodNumber;
|
|
1817
|
-
status: z.ZodDefault<z.ZodEnum<["
|
|
1817
|
+
status: z.ZodDefault<z.ZodEnum<["warm", "cold"]>>;
|
|
1818
1818
|
busy: z.ZodDefault<z.ZodBoolean>;
|
|
1819
1819
|
awaitingInput: z.ZodDefault<z.ZodBoolean>;
|
|
1820
1820
|
compactionState: z.ZodOptional<z.ZodAny>;
|
|
@@ -1823,7 +1823,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1823
1823
|
}, "strip", z.ZodTypeAny, {
|
|
1824
1824
|
sessionId: string;
|
|
1825
1825
|
cwd: string;
|
|
1826
|
-
status: "
|
|
1826
|
+
status: "warm" | "cold";
|
|
1827
1827
|
updatedAt: string;
|
|
1828
1828
|
attachedClients: number;
|
|
1829
1829
|
busy: boolean;
|
|
@@ -1857,7 +1857,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1857
1857
|
cwd: string;
|
|
1858
1858
|
updatedAt: string;
|
|
1859
1859
|
attachedClients: number;
|
|
1860
|
-
status?: "
|
|
1860
|
+
status?: "warm" | "cold" | undefined;
|
|
1861
1861
|
title?: string | undefined;
|
|
1862
1862
|
_meta?: Record<string, unknown> | undefined;
|
|
1863
1863
|
upstreamSessionId?: string | undefined;
|
|
@@ -2118,6 +2118,7 @@ declare class AgentInstance {
|
|
|
2118
2118
|
private constructor();
|
|
2119
2119
|
private writeLog;
|
|
2120
2120
|
private formatFailure;
|
|
2121
|
+
stderrTailText(): string;
|
|
2121
2122
|
static spawn(opts: AgentInstanceOptions): AgentInstance;
|
|
2122
2123
|
onExit(handler: (code: number | null, signal: NodeJS.Signals | null) => void): void;
|
|
2123
2124
|
isAlive(): boolean;
|
|
@@ -2982,6 +2983,7 @@ declare class Session {
|
|
|
2982
2983
|
private closed;
|
|
2983
2984
|
private closing;
|
|
2984
2985
|
private closeInFlight;
|
|
2986
|
+
private deleteRecordIntent;
|
|
2985
2987
|
private closeHandlers;
|
|
2986
2988
|
private titleHandlers;
|
|
2987
2989
|
private scheduleSynopsisHook?;
|
|
@@ -3005,8 +3007,8 @@ declare class Session {
|
|
|
3005
3007
|
private internalPromptCapture;
|
|
3006
3008
|
private idleTimeoutMs;
|
|
3007
3009
|
private idleTimer;
|
|
3008
|
-
private idleEventTimer;
|
|
3009
3010
|
private idleEventTimeoutMs;
|
|
3011
|
+
private idleHandlers;
|
|
3010
3012
|
private lastRecordedAt;
|
|
3011
3013
|
private spawnReplacementAgent;
|
|
3012
3014
|
private mintMcpServersForSwap;
|
|
@@ -3022,6 +3024,9 @@ declare class Session {
|
|
|
3022
3024
|
private extensionCommands;
|
|
3023
3025
|
private extensionCommandsUnsub;
|
|
3024
3026
|
private pendingClaims;
|
|
3027
|
+
private toolCompletionSeen;
|
|
3028
|
+
private toolCallKind;
|
|
3029
|
+
private filesEditedSeen;
|
|
3025
3030
|
private agentChangeHandlers;
|
|
3026
3031
|
private agentAdvertisedCommands;
|
|
3027
3032
|
private agentAdvertisedModes;
|
|
@@ -3063,6 +3068,7 @@ declare class Session {
|
|
|
3063
3068
|
get turnStartedAt(): number | undefined;
|
|
3064
3069
|
get awaitingInput(): boolean;
|
|
3065
3070
|
isQuiescedForSwap(): Promise<boolean>;
|
|
3071
|
+
isQuiescedSync(): boolean;
|
|
3066
3072
|
swapUpstream(opts: {
|
|
3067
3073
|
artifact: SessionSynopsis;
|
|
3068
3074
|
title?: string;
|
|
@@ -3114,9 +3120,17 @@ declare class Session {
|
|
|
3114
3120
|
cancel(clientId: string): Promise<void>;
|
|
3115
3121
|
addTransformer(ref: TransformerRef): void;
|
|
3116
3122
|
forwardRequest(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number, tailKind?: "request" | "notification"): Promise<unknown>;
|
|
3123
|
+
runAgentRequestChain(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number): Promise<{
|
|
3124
|
+
shortCircuit: false;
|
|
3125
|
+
envelope: unknown;
|
|
3126
|
+
} | {
|
|
3127
|
+
shortCircuit: true;
|
|
3128
|
+
payload: unknown;
|
|
3129
|
+
}>;
|
|
3117
3130
|
dischargeClaim(token: string, result: unknown): boolean;
|
|
3118
3131
|
keepAliveClaim(token: string, estimatedRemainingMs?: number): boolean;
|
|
3119
3132
|
emitToChain(emitterName: string, method: string, envelope: unknown): Promise<unknown>;
|
|
3133
|
+
emitToQueue(emitterName: string, envelope: unknown): Promise<unknown>;
|
|
3120
3134
|
private rewriteForAgent;
|
|
3121
3135
|
close(opts?: CloseOptions): Promise<void>;
|
|
3122
3136
|
private doClose;
|
|
@@ -3246,8 +3260,14 @@ declare class Session {
|
|
|
3246
3260
|
private armIdleTimer;
|
|
3247
3261
|
private checkIdle;
|
|
3248
3262
|
private cancelIdleTimer;
|
|
3249
|
-
|
|
3250
|
-
|
|
3263
|
+
onIdle(fn: (s: Session) => void, opts?: {
|
|
3264
|
+
once?: boolean;
|
|
3265
|
+
debounceMs?: number;
|
|
3266
|
+
}): () => void;
|
|
3267
|
+
onceIdle(fn: (s: Session) => void): () => void;
|
|
3268
|
+
private dispatchIdle;
|
|
3269
|
+
private disposeIdleHandlers;
|
|
3270
|
+
private maybeEmitToolEdges;
|
|
3251
3271
|
private notifyChain;
|
|
3252
3272
|
private rewriteForClient;
|
|
3253
3273
|
private recordAndBroadcast;
|
|
@@ -3755,12 +3775,14 @@ declare class SessionManager {
|
|
|
3755
3775
|
private defaultCwd;
|
|
3756
3776
|
private synopsisCoordinator;
|
|
3757
3777
|
private pendingDeletions;
|
|
3758
|
-
private
|
|
3778
|
+
private pendingSwapDisposers;
|
|
3759
3779
|
private rollbackLocks;
|
|
3760
3780
|
private compactionTailK;
|
|
3761
3781
|
private agentCatalog;
|
|
3762
3782
|
constructor(registry: Registry, spawner?: AgentSpawner, store?: SessionStore, options?: SessionManagerOptions);
|
|
3763
|
-
private
|
|
3783
|
+
private dispatchCompactionSwap;
|
|
3784
|
+
private onIdleAttemptSwap;
|
|
3785
|
+
private performCompactionSwap;
|
|
3764
3786
|
private refreshAgentCatalog;
|
|
3765
3787
|
create(params: CreateSessionParams): Promise<Session>;
|
|
3766
3788
|
resurrect(params: ResurrectParams): Promise<Session>;
|