@hydra-acp/cli 0.1.92 → 0.1.93
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 +303 -303
- package/dist/index.d.ts +15 -0
- package/dist/index.js +61 -61
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1818,6 +1818,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1818
1818
|
busy: z.ZodDefault<z.ZodBoolean>;
|
|
1819
1819
|
awaitingInput: z.ZodDefault<z.ZodBoolean>;
|
|
1820
1820
|
compactionState: z.ZodOptional<z.ZodAny>;
|
|
1821
|
+
forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
|
|
1821
1822
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1822
1823
|
}, "strip", z.ZodTypeAny, {
|
|
1823
1824
|
sessionId: string;
|
|
@@ -1850,6 +1851,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1850
1851
|
interactive?: boolean | undefined;
|
|
1851
1852
|
priority?: number | undefined;
|
|
1852
1853
|
compactionState?: any;
|
|
1854
|
+
forkSynthesisState?: "running" | "failed" | undefined;
|
|
1853
1855
|
}, {
|
|
1854
1856
|
sessionId: string;
|
|
1855
1857
|
cwd: string;
|
|
@@ -1881,6 +1883,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1881
1883
|
busy?: boolean | undefined;
|
|
1882
1884
|
awaitingInput?: boolean | undefined;
|
|
1883
1885
|
compactionState?: any;
|
|
1886
|
+
forkSynthesisState?: "running" | "failed" | undefined;
|
|
1884
1887
|
}>;
|
|
1885
1888
|
type SessionListEntry = z.infer<typeof SessionListEntry>;
|
|
1886
1889
|
declare const SessionListResult: z.ZodObject<{
|
|
@@ -2018,6 +2021,7 @@ interface AuthMethod {
|
|
|
2018
2021
|
id: string;
|
|
2019
2022
|
description: string;
|
|
2020
2023
|
type?: "agent" | "terminal";
|
|
2024
|
+
args?: string[];
|
|
2021
2025
|
name?: string;
|
|
2022
2026
|
_meta?: Record<string, unknown>;
|
|
2023
2027
|
}
|
|
@@ -2612,6 +2616,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2612
2616
|
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
2613
2617
|
forkedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
2614
2618
|
forkedFromMessageId: z.ZodOptional<z.ZodString>;
|
|
2619
|
+
forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
|
|
2615
2620
|
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
2616
2621
|
name: z.ZodString;
|
|
2617
2622
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -2695,6 +2700,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2695
2700
|
upstreamSessionId: string;
|
|
2696
2701
|
} | undefined;
|
|
2697
2702
|
} | undefined;
|
|
2703
|
+
forkSynthesisState?: "running" | "failed" | undefined;
|
|
2698
2704
|
currentMode?: string | undefined;
|
|
2699
2705
|
lineageId?: string | undefined;
|
|
2700
2706
|
importedFromSessionId?: string | undefined;
|
|
@@ -2777,6 +2783,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2777
2783
|
upstreamSessionId: string;
|
|
2778
2784
|
} | undefined;
|
|
2779
2785
|
} | undefined;
|
|
2786
|
+
forkSynthesisState?: "running" | "failed" | undefined;
|
|
2780
2787
|
currentMode?: string | undefined;
|
|
2781
2788
|
lineageId?: string | undefined;
|
|
2782
2789
|
importedFromSessionId?: string | undefined;
|
|
@@ -2900,6 +2907,7 @@ interface SessionInit {
|
|
|
2900
2907
|
parentSessionId?: string;
|
|
2901
2908
|
forkedFromSessionId?: string;
|
|
2902
2909
|
forkedFromMessageId?: string;
|
|
2910
|
+
forkSynthesisState?: "running" | "failed";
|
|
2903
2911
|
originatingClient?: {
|
|
2904
2912
|
name: string;
|
|
2905
2913
|
version?: string;
|
|
@@ -2944,6 +2952,7 @@ declare class Session {
|
|
|
2944
2952
|
readonly parentSessionId: string | undefined;
|
|
2945
2953
|
readonly forkedFromSessionId: string | undefined;
|
|
2946
2954
|
readonly forkedFromMessageId: string | undefined;
|
|
2955
|
+
forkSynthesisState: "running" | "failed" | undefined;
|
|
2947
2956
|
readonly originatingClient: {
|
|
2948
2957
|
name: string;
|
|
2949
2958
|
version?: string;
|
|
@@ -3178,6 +3187,7 @@ declare class Session {
|
|
|
3178
3187
|
private respawnAgent;
|
|
3179
3188
|
private buildSwitchTranscript;
|
|
3180
3189
|
seedFromImport(): Promise<void>;
|
|
3190
|
+
seedFromFork(synopsis: SessionSynopsis): Promise<void>;
|
|
3181
3191
|
private broadcastAgentSwitch;
|
|
3182
3192
|
hasStreamBuffer(): boolean;
|
|
3183
3193
|
get streamPath(): string | undefined;
|
|
@@ -3690,6 +3700,7 @@ interface ResurrectParams {
|
|
|
3690
3700
|
priority?: number;
|
|
3691
3701
|
forkedFromSessionId?: string;
|
|
3692
3702
|
forkedFromMessageId?: string;
|
|
3703
|
+
forkSynthesisState?: "running" | "failed";
|
|
3693
3704
|
mcpServers?: unknown[];
|
|
3694
3705
|
forwardedEnv?: Record<string, string>;
|
|
3695
3706
|
compactionState?: CompactionState;
|
|
@@ -3743,6 +3754,7 @@ declare class SessionManager {
|
|
|
3743
3754
|
private extensionCommands?;
|
|
3744
3755
|
private defaultCwd;
|
|
3745
3756
|
private synopsisCoordinator;
|
|
3757
|
+
private pendingDeletions;
|
|
3746
3758
|
private compactionDeferrals;
|
|
3747
3759
|
private rollbackLocks;
|
|
3748
3760
|
private compactionTailK;
|
|
@@ -3814,6 +3826,7 @@ declare class SessionManager {
|
|
|
3814
3826
|
cwd?: string;
|
|
3815
3827
|
agentId?: string;
|
|
3816
3828
|
title?: string;
|
|
3829
|
+
mode?: "verbatim" | "synthesis";
|
|
3817
3830
|
}): Promise<{
|
|
3818
3831
|
sessionId: string;
|
|
3819
3832
|
forkedFromSessionId: string;
|
|
@@ -3821,6 +3834,8 @@ declare class SessionManager {
|
|
|
3821
3834
|
}>;
|
|
3822
3835
|
private writeImportedRecord;
|
|
3823
3836
|
deleteRecord(sessionId: string, reason?: "user" | "expired"): Promise<boolean>;
|
|
3837
|
+
waitForDeletion(sessionId: string): Promise<void>;
|
|
3838
|
+
isTombstoned(agentId: string, upstreamSessionId: string): Promise<boolean>;
|
|
3824
3839
|
hasRecord(sessionId: string): Promise<boolean>;
|
|
3825
3840
|
setPriority(sessionId: string, priority: number | undefined): Promise<boolean>;
|
|
3826
3841
|
private persistPriority;
|