@hydra-acp/cli 0.1.62 → 0.1.63
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 +1403 -396
- package/dist/index.d.ts +34 -3
- package/dist/index.js +763 -132
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
137
137
|
synopsisModel: z.ZodOptional<z.ZodString>;
|
|
138
138
|
synopsisOnClose: z.ZodDefault<z.ZodBoolean>;
|
|
139
139
|
defaultCwd: z.ZodDefault<z.ZodString>;
|
|
140
|
+
compressToolContent: z.ZodDefault<z.ZodBoolean>;
|
|
140
141
|
sessionListColdLimit: z.ZodDefault<z.ZodNumber>;
|
|
141
142
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
142
143
|
command: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -181,6 +182,9 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
181
182
|
progressIndicator: z.ZodDefault<z.ZodBoolean>;
|
|
182
183
|
defaultEnterAction: z.ZodDefault<z.ZodEnum<["enqueue", "amend"]>>;
|
|
183
184
|
showThoughts: z.ZodDefault<z.ZodBoolean>;
|
|
185
|
+
ambiguousWidth: z.ZodDefault<z.ZodEnum<["narrow", "wide"]>>;
|
|
186
|
+
toolContent: z.ZodDefault<z.ZodEnum<["inline", "references"]>>;
|
|
187
|
+
diffContextLines: z.ZodDefault<z.ZodNumber>;
|
|
184
188
|
promptHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
185
189
|
maxToolItems: z.ZodDefault<z.ZodNumber>;
|
|
186
190
|
maxPlanItems: z.ZodDefault<z.ZodNumber>;
|
|
@@ -195,6 +199,9 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
195
199
|
progressIndicator: boolean;
|
|
196
200
|
defaultEnterAction: "enqueue" | "amend";
|
|
197
201
|
showThoughts: boolean;
|
|
202
|
+
ambiguousWidth: "narrow" | "wide";
|
|
203
|
+
toolContent: "inline" | "references";
|
|
204
|
+
diffContextLines: number;
|
|
198
205
|
promptHistoryMaxEntries: number;
|
|
199
206
|
maxToolItems: number;
|
|
200
207
|
maxPlanItems: number;
|
|
@@ -209,6 +216,9 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
209
216
|
progressIndicator?: boolean | undefined;
|
|
210
217
|
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
211
218
|
showThoughts?: boolean | undefined;
|
|
219
|
+
ambiguousWidth?: "narrow" | "wide" | undefined;
|
|
220
|
+
toolContent?: "inline" | "references" | undefined;
|
|
221
|
+
diffContextLines?: number | undefined;
|
|
212
222
|
promptHistoryMaxEntries?: number | undefined;
|
|
213
223
|
maxToolItems?: number | undefined;
|
|
214
224
|
maxPlanItems?: number | undefined;
|
|
@@ -225,6 +235,9 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
225
235
|
progressIndicator: boolean;
|
|
226
236
|
defaultEnterAction: "enqueue" | "amend";
|
|
227
237
|
showThoughts: boolean;
|
|
238
|
+
ambiguousWidth: "narrow" | "wide";
|
|
239
|
+
toolContent: "inline" | "references";
|
|
240
|
+
diffContextLines: number;
|
|
228
241
|
promptHistoryMaxEntries: number;
|
|
229
242
|
maxToolItems: number;
|
|
230
243
|
maxPlanItems: number;
|
|
@@ -276,6 +289,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
276
289
|
defaultModels: Record<string, string>;
|
|
277
290
|
synopsisOnClose: boolean;
|
|
278
291
|
defaultCwd: string;
|
|
292
|
+
compressToolContent: boolean;
|
|
279
293
|
sessionListColdLimit: number;
|
|
280
294
|
defaultTransformers: string[];
|
|
281
295
|
synopsisAgent?: string | undefined;
|
|
@@ -291,6 +305,9 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
291
305
|
progressIndicator?: boolean | undefined;
|
|
292
306
|
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
293
307
|
showThoughts?: boolean | undefined;
|
|
308
|
+
ambiguousWidth?: "narrow" | "wide" | undefined;
|
|
309
|
+
toolContent?: "inline" | "references" | undefined;
|
|
310
|
+
diffContextLines?: number | undefined;
|
|
294
311
|
promptHistoryMaxEntries?: number | undefined;
|
|
295
312
|
maxToolItems?: number | undefined;
|
|
296
313
|
maxPlanItems?: number | undefined;
|
|
@@ -344,6 +361,7 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
344
361
|
synopsisModel?: string | undefined;
|
|
345
362
|
synopsisOnClose?: boolean | undefined;
|
|
346
363
|
defaultCwd?: string | undefined;
|
|
364
|
+
compressToolContent?: boolean | undefined;
|
|
347
365
|
sessionListColdLimit?: number | undefined;
|
|
348
366
|
defaultTransformers?: string[] | undefined;
|
|
349
367
|
npmRegistry?: string | undefined;
|
|
@@ -2165,7 +2183,9 @@ declare class HistoryStore {
|
|
|
2165
2183
|
append(sessionId: string, entry: HistoryEntry): Promise<void>;
|
|
2166
2184
|
rewrite(sessionId: string, entries: HistoryEntry[]): Promise<void>;
|
|
2167
2185
|
compact(sessionId: string, maxEntries: number): Promise<void>;
|
|
2168
|
-
load(sessionId: string
|
|
2186
|
+
load(sessionId: string, opts?: {
|
|
2187
|
+
tools?: "inline" | "references";
|
|
2188
|
+
}): Promise<HistoryEntry[]>;
|
|
2169
2189
|
flushAll(): Promise<void>;
|
|
2170
2190
|
delete(sessionId: string): Promise<void>;
|
|
2171
2191
|
private enqueue;
|
|
@@ -2367,11 +2387,12 @@ declare class Session {
|
|
|
2367
2387
|
}>;
|
|
2368
2388
|
get turnStartedAt(): number | undefined;
|
|
2369
2389
|
get awaitingInput(): boolean;
|
|
2370
|
-
getHistorySnapshot(): Promise<CachedNotification[]>;
|
|
2390
|
+
getHistorySnapshot(tools?: "inline" | "references"): Promise<CachedNotification[]>;
|
|
2371
2391
|
onBroadcast(handler: (entry: CachedNotification) => void): () => void;
|
|
2372
2392
|
attach(client: AttachedClient, historyPolicy: HistoryPolicy, opts?: {
|
|
2373
2393
|
afterMessageId?: string;
|
|
2374
2394
|
raw?: boolean;
|
|
2395
|
+
toolContent?: "inline" | "references";
|
|
2375
2396
|
}): Promise<{
|
|
2376
2397
|
entries: CachedNotification[];
|
|
2377
2398
|
appliedPolicy: HistoryPolicy;
|
|
@@ -3018,6 +3039,7 @@ declare const Bundle: z.ZodObject<{
|
|
|
3018
3039
|
params?: unknown;
|
|
3019
3040
|
}>, "many">;
|
|
3020
3041
|
promptHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3042
|
+
toolBlobs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3021
3043
|
}, "strip", z.ZodTypeAny, {
|
|
3022
3044
|
version: 1;
|
|
3023
3045
|
session: {
|
|
@@ -3074,6 +3096,7 @@ declare const Bundle: z.ZodObject<{
|
|
|
3074
3096
|
params?: unknown;
|
|
3075
3097
|
}[];
|
|
3076
3098
|
promptHistory?: string[] | undefined;
|
|
3099
|
+
toolBlobs?: Record<string, string> | undefined;
|
|
3077
3100
|
}, {
|
|
3078
3101
|
version: 1;
|
|
3079
3102
|
session: {
|
|
@@ -3130,6 +3153,7 @@ declare const Bundle: z.ZodObject<{
|
|
|
3130
3153
|
params?: unknown;
|
|
3131
3154
|
}[];
|
|
3132
3155
|
promptHistory?: string[] | undefined;
|
|
3156
|
+
toolBlobs?: Record<string, string> | undefined;
|
|
3133
3157
|
}>;
|
|
3134
3158
|
type Bundle = z.infer<typeof Bundle>;
|
|
3135
3159
|
|
|
@@ -3228,10 +3252,12 @@ declare class SessionManager {
|
|
|
3228
3252
|
skipped: number;
|
|
3229
3253
|
}>;
|
|
3230
3254
|
private collectAgentSessions;
|
|
3255
|
+
private applySeedModel;
|
|
3231
3256
|
private bootstrapAgent;
|
|
3232
3257
|
private attachManagerHooks;
|
|
3233
3258
|
getHistory(sessionId: string): Promise<HistoryEntry[] | undefined>;
|
|
3234
3259
|
loadHistory(sessionId: string): Promise<HistoryEntry[]>;
|
|
3260
|
+
loadToolBlob(sessionId: string, hash: string): Promise<string | null>;
|
|
3235
3261
|
loadFromDisk(sessionId: string): Promise<ResurrectParams | undefined>;
|
|
3236
3262
|
private clearPendingHistorySync;
|
|
3237
3263
|
private deriveTitleFromHistory;
|
|
@@ -3245,12 +3271,15 @@ declare class SessionManager {
|
|
|
3245
3271
|
cwd?: string;
|
|
3246
3272
|
includeNonInteractive?: boolean;
|
|
3247
3273
|
}): Promise<SessionListEntry[]>;
|
|
3248
|
-
exportBundle(sessionId: string
|
|
3274
|
+
exportBundle(sessionId: string, opts?: {
|
|
3275
|
+
tools?: "inline" | "references";
|
|
3276
|
+
}): Promise<{
|
|
3249
3277
|
record: SessionRecord & {
|
|
3250
3278
|
lineageId: string;
|
|
3251
3279
|
};
|
|
3252
3280
|
history: HistoryEntry[];
|
|
3253
3281
|
promptHistory: string[];
|
|
3282
|
+
toolBlobs?: Record<string, string>;
|
|
3254
3283
|
} | undefined>;
|
|
3255
3284
|
importBundle(bundle: Bundle, opts?: {
|
|
3256
3285
|
replace?: boolean;
|
|
@@ -3376,6 +3405,8 @@ declare const paths: {
|
|
|
3376
3405
|
sessionDir: (id: string) => string;
|
|
3377
3406
|
sessionFile: (id: string) => string;
|
|
3378
3407
|
historyFile: (id: string) => string;
|
|
3408
|
+
toolsDir: (id: string) => string;
|
|
3409
|
+
toolBlobFile: (id: string, hash: string) => string;
|
|
3379
3410
|
queueFile: (id: string) => string;
|
|
3380
3411
|
tombstonesDir: () => string;
|
|
3381
3412
|
tombstoneAgentDir: (agentId: string) => string;
|