@hydra-acp/cli 0.1.56 → 0.1.58
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 +40 -51
- package/dist/cli.js +730 -316
- package/dist/index.d.ts +51 -1
- package/dist/index.js +266 -77
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1513,6 +1513,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1513
1513
|
name: string;
|
|
1514
1514
|
version?: string | undefined;
|
|
1515
1515
|
}>>;
|
|
1516
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
1516
1517
|
updatedAt: z.ZodString;
|
|
1517
1518
|
attachedClients: z.ZodNumber;
|
|
1518
1519
|
status: z.ZodDefault<z.ZodEnum<["live", "cold"]>>;
|
|
@@ -1536,6 +1537,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1536
1537
|
costAmount?: number | undefined;
|
|
1537
1538
|
costCurrency?: string | undefined;
|
|
1538
1539
|
} | undefined;
|
|
1540
|
+
interactive?: boolean | undefined;
|
|
1539
1541
|
importedFromMachine?: string | undefined;
|
|
1540
1542
|
importedFromUpstreamSessionId?: string | undefined;
|
|
1541
1543
|
parentSessionId?: string | undefined;
|
|
@@ -1562,6 +1564,7 @@ declare const SessionListEntry: z.ZodObject<{
|
|
|
1562
1564
|
costAmount?: number | undefined;
|
|
1563
1565
|
costCurrency?: string | undefined;
|
|
1564
1566
|
} | undefined;
|
|
1567
|
+
interactive?: boolean | undefined;
|
|
1565
1568
|
importedFromMachine?: string | undefined;
|
|
1566
1569
|
importedFromUpstreamSessionId?: string | undefined;
|
|
1567
1570
|
parentSessionId?: string | undefined;
|
|
@@ -2090,6 +2093,7 @@ interface SessionInit {
|
|
|
2090
2093
|
name: string;
|
|
2091
2094
|
version?: string;
|
|
2092
2095
|
};
|
|
2096
|
+
interactive?: boolean;
|
|
2093
2097
|
listSessions?: () => Promise<{
|
|
2094
2098
|
sessionId: string;
|
|
2095
2099
|
title?: string;
|
|
@@ -2118,6 +2122,8 @@ declare class Session {
|
|
|
2118
2122
|
name: string;
|
|
2119
2123
|
version?: string;
|
|
2120
2124
|
} | undefined;
|
|
2125
|
+
private _interactive;
|
|
2126
|
+
get interactive(): boolean | undefined;
|
|
2121
2127
|
title: string | undefined;
|
|
2122
2128
|
currentModel: string | undefined;
|
|
2123
2129
|
currentMode: string | undefined;
|
|
@@ -2166,6 +2172,7 @@ declare class Session {
|
|
|
2166
2172
|
private agentModelsHandlers;
|
|
2167
2173
|
private modelHandlers;
|
|
2168
2174
|
private modeHandlers;
|
|
2175
|
+
private interactiveHandlers;
|
|
2169
2176
|
private usageHandlers;
|
|
2170
2177
|
private cumulativeCost;
|
|
2171
2178
|
get currentUsage(): UsageSnapshot | undefined;
|
|
@@ -2254,6 +2261,7 @@ declare class Session {
|
|
|
2254
2261
|
onAgentModelsChange(handler: (models: AdvertisedModel[]) => void): void;
|
|
2255
2262
|
onModelChange(handler: (model: string) => void): void;
|
|
2256
2263
|
onModeChange(handler: (mode: string) => void): void;
|
|
2264
|
+
onInteractiveChange(handler: (interactive: boolean) => void): void;
|
|
2257
2265
|
applyModelChange(modelId: string): void;
|
|
2258
2266
|
applyModeChange(modeId: string): void;
|
|
2259
2267
|
onUsageChange(handler: (usage: UsageSnapshot) => void): void;
|
|
@@ -2469,6 +2477,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2469
2477
|
name: string;
|
|
2470
2478
|
version?: string | undefined;
|
|
2471
2479
|
}>>;
|
|
2480
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
2472
2481
|
createdAt: z.ZodString;
|
|
2473
2482
|
updatedAt: z.ZodString;
|
|
2474
2483
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2490,6 +2499,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2490
2499
|
costCurrency?: string | undefined;
|
|
2491
2500
|
cumulativeCost?: number | undefined;
|
|
2492
2501
|
} | undefined;
|
|
2502
|
+
interactive?: boolean | undefined;
|
|
2493
2503
|
importedFromMachine?: string | undefined;
|
|
2494
2504
|
importedFromUpstreamSessionId?: string | undefined;
|
|
2495
2505
|
parentSessionId?: string | undefined;
|
|
@@ -2544,6 +2554,7 @@ declare const SessionRecord: z.ZodObject<{
|
|
|
2544
2554
|
costCurrency?: string | undefined;
|
|
2545
2555
|
cumulativeCost?: number | undefined;
|
|
2546
2556
|
} | undefined;
|
|
2557
|
+
interactive?: boolean | undefined;
|
|
2547
2558
|
importedFromMachine?: string | undefined;
|
|
2548
2559
|
importedFromUpstreamSessionId?: string | undefined;
|
|
2549
2560
|
parentSessionId?: string | undefined;
|
|
@@ -2679,6 +2690,17 @@ declare const Bundle: z.ZodObject<{
|
|
|
2679
2690
|
name?: string | undefined;
|
|
2680
2691
|
description?: string | undefined;
|
|
2681
2692
|
}>, "many">>;
|
|
2693
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
2694
|
+
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
2695
|
+
name: z.ZodString;
|
|
2696
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
}, "strip", z.ZodTypeAny, {
|
|
2698
|
+
name: string;
|
|
2699
|
+
version?: string | undefined;
|
|
2700
|
+
}, {
|
|
2701
|
+
name: string;
|
|
2702
|
+
version?: string | undefined;
|
|
2703
|
+
}>>;
|
|
2682
2704
|
createdAt: z.ZodString;
|
|
2683
2705
|
updatedAt: z.ZodString;
|
|
2684
2706
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2699,6 +2721,11 @@ declare const Bundle: z.ZodObject<{
|
|
|
2699
2721
|
costCurrency?: string | undefined;
|
|
2700
2722
|
cumulativeCost?: number | undefined;
|
|
2701
2723
|
} | undefined;
|
|
2724
|
+
interactive?: boolean | undefined;
|
|
2725
|
+
originatingClient?: {
|
|
2726
|
+
name: string;
|
|
2727
|
+
version?: string | undefined;
|
|
2728
|
+
} | undefined;
|
|
2702
2729
|
synopsis?: {
|
|
2703
2730
|
outcome?: string | undefined;
|
|
2704
2731
|
goal?: string | undefined;
|
|
@@ -2735,6 +2762,11 @@ declare const Bundle: z.ZodObject<{
|
|
|
2735
2762
|
costCurrency?: string | undefined;
|
|
2736
2763
|
cumulativeCost?: number | undefined;
|
|
2737
2764
|
} | undefined;
|
|
2765
|
+
interactive?: boolean | undefined;
|
|
2766
|
+
originatingClient?: {
|
|
2767
|
+
name: string;
|
|
2768
|
+
version?: string | undefined;
|
|
2769
|
+
} | undefined;
|
|
2738
2770
|
synopsis?: {
|
|
2739
2771
|
outcome?: string | undefined;
|
|
2740
2772
|
goal?: string | undefined;
|
|
@@ -2788,6 +2820,11 @@ declare const Bundle: z.ZodObject<{
|
|
|
2788
2820
|
costCurrency?: string | undefined;
|
|
2789
2821
|
cumulativeCost?: number | undefined;
|
|
2790
2822
|
} | undefined;
|
|
2823
|
+
interactive?: boolean | undefined;
|
|
2824
|
+
originatingClient?: {
|
|
2825
|
+
name: string;
|
|
2826
|
+
version?: string | undefined;
|
|
2827
|
+
} | undefined;
|
|
2791
2828
|
synopsis?: {
|
|
2792
2829
|
outcome?: string | undefined;
|
|
2793
2830
|
goal?: string | undefined;
|
|
@@ -2839,6 +2876,11 @@ declare const Bundle: z.ZodObject<{
|
|
|
2839
2876
|
costCurrency?: string | undefined;
|
|
2840
2877
|
cumulativeCost?: number | undefined;
|
|
2841
2878
|
} | undefined;
|
|
2879
|
+
interactive?: boolean | undefined;
|
|
2880
|
+
originatingClient?: {
|
|
2881
|
+
name: string;
|
|
2882
|
+
version?: string | undefined;
|
|
2883
|
+
} | undefined;
|
|
2842
2884
|
synopsis?: {
|
|
2843
2885
|
outcome?: string | undefined;
|
|
2844
2886
|
goal?: string | undefined;
|
|
@@ -2887,6 +2929,7 @@ interface CreateSessionParams {
|
|
|
2887
2929
|
name: string;
|
|
2888
2930
|
version?: string;
|
|
2889
2931
|
};
|
|
2932
|
+
interactive?: boolean;
|
|
2890
2933
|
}
|
|
2891
2934
|
interface ResurrectParams {
|
|
2892
2935
|
hydraSessionId: string;
|
|
@@ -2910,6 +2953,7 @@ interface ResurrectParams {
|
|
|
2910
2953
|
name: string;
|
|
2911
2954
|
version?: string;
|
|
2912
2955
|
};
|
|
2956
|
+
interactive?: boolean;
|
|
2913
2957
|
forkedFromSessionId?: string;
|
|
2914
2958
|
forkedFromMessageId?: string;
|
|
2915
2959
|
}
|
|
@@ -2926,6 +2970,7 @@ interface SessionManagerOptions {
|
|
|
2926
2970
|
logger?: AgentLogger;
|
|
2927
2971
|
npmRegistry?: string;
|
|
2928
2972
|
extensionCommands?: ExtensionCommandRegistry;
|
|
2973
|
+
defaultCwd?: string;
|
|
2929
2974
|
}
|
|
2930
2975
|
declare class SessionManager {
|
|
2931
2976
|
private registry;
|
|
@@ -2946,13 +2991,16 @@ declare class SessionManager {
|
|
|
2946
2991
|
private logger?;
|
|
2947
2992
|
private npmRegistry?;
|
|
2948
2993
|
private extensionCommands?;
|
|
2994
|
+
private defaultCwd;
|
|
2949
2995
|
private synopsisCoordinator;
|
|
2950
2996
|
constructor(registry: Registry, spawner?: AgentSpawner, store?: SessionStore, options?: SessionManagerOptions);
|
|
2951
2997
|
create(params: CreateSessionParams): Promise<Session>;
|
|
2952
2998
|
resurrect(params: ResurrectParams): Promise<Session>;
|
|
2953
2999
|
private doResurrect;
|
|
2954
3000
|
private doResurrectFromImport;
|
|
2955
|
-
private
|
|
3001
|
+
private dirExists;
|
|
3002
|
+
reapIfOrphanedNonInteractive(sessionId: string): Promise<void>;
|
|
3003
|
+
private resolveResurrectCwd;
|
|
2956
3004
|
syncFromAgent(agentId: string): Promise<{
|
|
2957
3005
|
synced: SessionRecord[];
|
|
2958
3006
|
skipped: number;
|
|
@@ -2972,6 +3020,7 @@ declare class SessionManager {
|
|
|
2972
3020
|
require(sessionId: string): Session;
|
|
2973
3021
|
list(filter?: {
|
|
2974
3022
|
cwd?: string;
|
|
3023
|
+
includeNonInteractive?: boolean;
|
|
2975
3024
|
}): Promise<SessionListEntry[]>;
|
|
2976
3025
|
exportBundle(sessionId: string): Promise<{
|
|
2977
3026
|
record: SessionRecord & {
|
|
@@ -3115,6 +3164,7 @@ declare const paths: {
|
|
|
3115
3164
|
tuiHistoryFile: (id: string) => string;
|
|
3116
3165
|
globalTuiHistoryFile: () => string;
|
|
3117
3166
|
tuiLogFile: () => string;
|
|
3167
|
+
shimWireLogFile: () => string;
|
|
3118
3168
|
};
|
|
3119
3169
|
|
|
3120
3170
|
export { type AgentCapabilities, AgentInstance, HistoryPolicy, HydraConfig, type InitializeResult, JsonRpcConnection, type MessageStream, Registry, Session, SessionAttachParams, type SessionCapabilities, SessionDetachParams, SessionListEntry, SessionListParams, SessionListResult, SessionManager, defaultConfig, ensureServiceToken, generateServiceToken, loadConfig, loadServiceToken, ndjsonStreamFromStdio, paths, planSpawn, startDaemon, writeConfig, wsToMessageStream };
|