@hydra-acp/cli 0.1.52 → 0.1.53
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/README.md +4 -2
- package/dist/cli.js +1460 -385
- package/dist/index.d.ts +37 -2
- package/dist/index.js +558 -239
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
148
148
|
defaultEnterAction: z.ZodDefault<z.ZodEnum<["enqueue", "amend"]>>;
|
|
149
149
|
showThoughts: z.ZodDefault<z.ZodBoolean>;
|
|
150
150
|
promptHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
151
|
+
showFileUpdates: z.ZodDefault<z.ZodEnum<["none", "edit", "diff"]>>;
|
|
151
152
|
}, "strip", z.ZodTypeAny, {
|
|
152
153
|
repaintThrottleMs: number;
|
|
153
154
|
maxScrollbackLines: number;
|
|
@@ -158,6 +159,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
158
159
|
defaultEnterAction: "enqueue" | "amend";
|
|
159
160
|
showThoughts: boolean;
|
|
160
161
|
promptHistoryMaxEntries: number;
|
|
162
|
+
showFileUpdates: "none" | "edit" | "diff";
|
|
161
163
|
}, {
|
|
162
164
|
repaintThrottleMs?: number | undefined;
|
|
163
165
|
maxScrollbackLines?: number | undefined;
|
|
@@ -168,6 +170,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
168
170
|
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
169
171
|
showThoughts?: boolean | undefined;
|
|
170
172
|
promptHistoryMaxEntries?: number | undefined;
|
|
173
|
+
showFileUpdates?: "none" | "edit" | "diff" | undefined;
|
|
171
174
|
}>>;
|
|
172
175
|
}, "strip", z.ZodTypeAny, {
|
|
173
176
|
tui: {
|
|
@@ -180,6 +183,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
180
183
|
defaultEnterAction: "enqueue" | "amend";
|
|
181
184
|
showThoughts: boolean;
|
|
182
185
|
promptHistoryMaxEntries: number;
|
|
186
|
+
showFileUpdates: "none" | "edit" | "diff";
|
|
183
187
|
};
|
|
184
188
|
daemon: {
|
|
185
189
|
host: string;
|
|
@@ -228,6 +232,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
228
232
|
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
229
233
|
showThoughts?: boolean | undefined;
|
|
230
234
|
promptHistoryMaxEntries?: number | undefined;
|
|
235
|
+
showFileUpdates?: "none" | "edit" | "diff" | undefined;
|
|
231
236
|
} | undefined;
|
|
232
237
|
daemon?: {
|
|
233
238
|
host?: string | undefined;
|
|
@@ -1396,7 +1401,7 @@ declare const SessionAttachParams: z.ZodObject<{
|
|
|
1396
1401
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1397
1402
|
}, "strip", z.ZodTypeAny, {
|
|
1398
1403
|
sessionId: string;
|
|
1399
|
-
historyPolicy: "
|
|
1404
|
+
historyPolicy: "none" | "full" | "pending_only" | "after_message";
|
|
1400
1405
|
readonly?: boolean | undefined;
|
|
1401
1406
|
clientInfo?: {
|
|
1402
1407
|
name: string;
|
|
@@ -1412,7 +1417,7 @@ declare const SessionAttachParams: z.ZodObject<{
|
|
|
1412
1417
|
name: string;
|
|
1413
1418
|
version?: string | undefined;
|
|
1414
1419
|
} | undefined;
|
|
1415
|
-
historyPolicy?: "
|
|
1420
|
+
historyPolicy?: "none" | "full" | "pending_only" | "after_message" | undefined;
|
|
1416
1421
|
afterMessageId?: string | undefined;
|
|
1417
1422
|
clientId?: string | undefined;
|
|
1418
1423
|
_meta?: Record<string, unknown> | undefined;
|
|
@@ -1475,6 +1480,8 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1475
1480
|
importedFromMachine: z.ZodOptional<z.ZodString>;
|
|
1476
1481
|
importedFromUpstreamSessionId: z.ZodOptional<z.ZodString>;
|
|
1477
1482
|
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
1483
|
+
forkedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
1484
|
+
forkedFromMessageId: z.ZodOptional<z.ZodString>;
|
|
1478
1485
|
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
1479
1486
|
name: z.ZodString;
|
|
1480
1487
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -1511,6 +1518,8 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1511
1518
|
importedFromMachine?: string | undefined;
|
|
1512
1519
|
importedFromUpstreamSessionId?: string | undefined;
|
|
1513
1520
|
parentSessionId?: string | undefined;
|
|
1521
|
+
forkedFromSessionId?: string | undefined;
|
|
1522
|
+
forkedFromMessageId?: string | undefined;
|
|
1514
1523
|
originatingClient?: {
|
|
1515
1524
|
name: string;
|
|
1516
1525
|
version?: string | undefined;
|
|
@@ -1535,6 +1544,8 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1535
1544
|
importedFromMachine?: string | undefined;
|
|
1536
1545
|
importedFromUpstreamSessionId?: string | undefined;
|
|
1537
1546
|
parentSessionId?: string | undefined;
|
|
1547
|
+
forkedFromSessionId?: string | undefined;
|
|
1548
|
+
forkedFromMessageId?: string | undefined;
|
|
1538
1549
|
originatingClient?: {
|
|
1539
1550
|
name: string;
|
|
1540
1551
|
version?: string | undefined;
|
|
@@ -1906,6 +1917,7 @@ declare class HistoryStore {
|
|
|
1906
1917
|
rewrite(sessionId: string, entries: HistoryEntry[]): Promise<void>;
|
|
1907
1918
|
compact(sessionId: string, maxEntries: number): Promise<void>;
|
|
1908
1919
|
load(sessionId: string): Promise<HistoryEntry[]>;
|
|
1920
|
+
flushAll(): Promise<void>;
|
|
1909
1921
|
delete(sessionId: string): Promise<void>;
|
|
1910
1922
|
private enqueue;
|
|
1911
1923
|
}
|
|
@@ -1980,6 +1992,8 @@ interface SessionInit {
|
|
|
1980
1992
|
transformChain?: TransformerRef[];
|
|
1981
1993
|
idleEventTimeoutMs?: number;
|
|
1982
1994
|
parentSessionId?: string;
|
|
1995
|
+
forkedFromSessionId?: string;
|
|
1996
|
+
forkedFromMessageId?: string;
|
|
1983
1997
|
originatingClient?: {
|
|
1984
1998
|
name: string;
|
|
1985
1999
|
version?: string;
|
|
@@ -2008,6 +2022,8 @@ declare class Session {
|
|
|
2008
2022
|
agentCapabilities: AgentCapabilities | undefined;
|
|
2009
2023
|
readonly agentArgs: string[] | undefined;
|
|
2010
2024
|
readonly parentSessionId: string | undefined;
|
|
2025
|
+
readonly forkedFromSessionId: string | undefined;
|
|
2026
|
+
readonly forkedFromMessageId: string | undefined;
|
|
2011
2027
|
readonly originatingClient: {
|
|
2012
2028
|
name: string;
|
|
2013
2029
|
version?: string;
|
|
@@ -2025,6 +2041,7 @@ declare class Session {
|
|
|
2025
2041
|
private promptInFlight;
|
|
2026
2042
|
private queueWriteChain;
|
|
2027
2043
|
private closed;
|
|
2044
|
+
private closing;
|
|
2028
2045
|
private closeHandlers;
|
|
2029
2046
|
private titleHandlers;
|
|
2030
2047
|
private broadcastHandlers;
|
|
@@ -2300,6 +2317,8 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2300
2317
|
}>, "many">>;
|
|
2301
2318
|
pendingHistorySync: z.ZodOptional<z.ZodBoolean>;
|
|
2302
2319
|
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
forkedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
2321
|
+
forkedFromMessageId: z.ZodOptional<z.ZodString>;
|
|
2303
2322
|
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
2304
2323
|
name: z.ZodString;
|
|
2305
2324
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -2334,6 +2353,8 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2334
2353
|
importedFromMachine?: string | undefined;
|
|
2335
2354
|
importedFromUpstreamSessionId?: string | undefined;
|
|
2336
2355
|
parentSessionId?: string | undefined;
|
|
2356
|
+
forkedFromSessionId?: string | undefined;
|
|
2357
|
+
forkedFromMessageId?: string | undefined;
|
|
2337
2358
|
originatingClient?: {
|
|
2338
2359
|
name: string;
|
|
2339
2360
|
version?: string | undefined;
|
|
@@ -2377,6 +2398,8 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2377
2398
|
importedFromMachine?: string | undefined;
|
|
2378
2399
|
importedFromUpstreamSessionId?: string | undefined;
|
|
2379
2400
|
parentSessionId?: string | undefined;
|
|
2401
|
+
forkedFromSessionId?: string | undefined;
|
|
2402
|
+
forkedFromMessageId?: string | undefined;
|
|
2380
2403
|
originatingClient?: {
|
|
2381
2404
|
name: string;
|
|
2382
2405
|
version?: string | undefined;
|
|
@@ -2668,6 +2691,8 @@ interface ResurrectParams {
|
|
|
2668
2691
|
name: string;
|
|
2669
2692
|
version?: string;
|
|
2670
2693
|
};
|
|
2694
|
+
forkedFromSessionId?: string;
|
|
2695
|
+
forkedFromMessageId?: string;
|
|
2671
2696
|
}
|
|
2672
2697
|
type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
|
|
2673
2698
|
interface SessionManagerOptions {
|
|
@@ -2737,6 +2762,15 @@ declare class SessionManager {
|
|
|
2737
2762
|
importedFromSessionId: string;
|
|
2738
2763
|
replaced: boolean;
|
|
2739
2764
|
}>;
|
|
2765
|
+
forkSession(sourceSessionId: string, opts?: {
|
|
2766
|
+
forkAt?: string;
|
|
2767
|
+
cwd?: string;
|
|
2768
|
+
agentId?: string;
|
|
2769
|
+
}): Promise<{
|
|
2770
|
+
sessionId: string;
|
|
2771
|
+
forkedFromSessionId: string;
|
|
2772
|
+
forkedAt: string;
|
|
2773
|
+
}>;
|
|
2740
2774
|
private writeImportedRecord;
|
|
2741
2775
|
deleteRecord(sessionId: string): Promise<boolean>;
|
|
2742
2776
|
hasRecord(sessionId: string): Promise<boolean>;
|
|
@@ -2747,6 +2781,7 @@ declare class SessionManager {
|
|
|
2747
2781
|
private enqueueMetaWrite;
|
|
2748
2782
|
closeAll(): Promise<void>;
|
|
2749
2783
|
flushMetaWrites(): Promise<void>;
|
|
2784
|
+
flushHistoryWrites(): Promise<void>;
|
|
2750
2785
|
resurrectPendingQueues(): Promise<void>;
|
|
2751
2786
|
}
|
|
2752
2787
|
|