@hydra-acp/cli 0.1.110 → 0.1.112
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 +383 -375
- package/dist/index.d.ts +29 -0
- package/dist/index.js +70 -67
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
62
62
|
}>>;
|
|
63
63
|
sessionIdleTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
64
64
|
sessionHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
65
|
+
sessionHistoryArchiveMaxBytes: z.ZodDefault<z.ZodNumber>;
|
|
66
|
+
sessionHistoryArchiveTiers: z.ZodDefault<z.ZodNumber>;
|
|
65
67
|
agentStderrTailBytes: z.ZodDefault<z.ZodNumber>;
|
|
66
68
|
publicHost: z.ZodOptional<z.ZodString>;
|
|
67
69
|
agentSyncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -73,6 +75,8 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
73
75
|
logLevel: "info" | "debug" | "warn" | "error";
|
|
74
76
|
sessionIdleTimeoutSeconds: number;
|
|
75
77
|
sessionHistoryMaxEntries: number;
|
|
78
|
+
sessionHistoryArchiveMaxBytes: number;
|
|
79
|
+
sessionHistoryArchiveTiers: number;
|
|
76
80
|
agentStderrTailBytes: number;
|
|
77
81
|
agentSyncIntervalMinutes: number;
|
|
78
82
|
sessionGcIntervalMinutes: number;
|
|
@@ -92,6 +96,8 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
92
96
|
} | undefined;
|
|
93
97
|
sessionIdleTimeoutSeconds?: number | undefined;
|
|
94
98
|
sessionHistoryMaxEntries?: number | undefined;
|
|
99
|
+
sessionHistoryArchiveMaxBytes?: number | undefined;
|
|
100
|
+
sessionHistoryArchiveTiers?: number | undefined;
|
|
95
101
|
agentStderrTailBytes?: number | undefined;
|
|
96
102
|
publicHost?: string | undefined;
|
|
97
103
|
agentSyncIntervalMinutes?: number | undefined;
|
|
@@ -314,6 +320,8 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
314
320
|
logLevel: "info" | "debug" | "warn" | "error";
|
|
315
321
|
sessionIdleTimeoutSeconds: number;
|
|
316
322
|
sessionHistoryMaxEntries: number;
|
|
323
|
+
sessionHistoryArchiveMaxBytes: number;
|
|
324
|
+
sessionHistoryArchiveTiers: number;
|
|
317
325
|
agentStderrTailBytes: number;
|
|
318
326
|
agentSyncIntervalMinutes: number;
|
|
319
327
|
sessionGcIntervalMinutes: number;
|
|
@@ -406,6 +414,8 @@ declare const HydraConfig: z.ZodObject<{
|
|
|
406
414
|
} | undefined;
|
|
407
415
|
sessionIdleTimeoutSeconds?: number | undefined;
|
|
408
416
|
sessionHistoryMaxEntries?: number | undefined;
|
|
417
|
+
sessionHistoryArchiveMaxBytes?: number | undefined;
|
|
418
|
+
sessionHistoryArchiveTiers?: number | undefined;
|
|
409
419
|
agentStderrTailBytes?: number | undefined;
|
|
410
420
|
publicHost?: string | undefined;
|
|
411
421
|
agentSyncIntervalMinutes?: number | undefined;
|
|
@@ -2388,14 +2398,28 @@ interface HistoryEntry {
|
|
|
2388
2398
|
}
|
|
2389
2399
|
interface HistoryStoreOptions {
|
|
2390
2400
|
maxEntries?: number;
|
|
2401
|
+
archiveMaxBytes?: number;
|
|
2402
|
+
archiveTiers?: number;
|
|
2391
2403
|
}
|
|
2392
2404
|
declare class HistoryStore {
|
|
2393
2405
|
private writeQueues;
|
|
2394
2406
|
private maxEntries;
|
|
2407
|
+
private archiveMaxBytes;
|
|
2408
|
+
private archiveTiers;
|
|
2409
|
+
private nextArchiveIndex;
|
|
2395
2410
|
constructor(options?: HistoryStoreOptions);
|
|
2396
2411
|
append(sessionId: string, entry: HistoryEntry): Promise<void>;
|
|
2397
2412
|
rewrite(sessionId: string, entries: HistoryEntry[]): Promise<void>;
|
|
2398
2413
|
compact(sessionId: string, maxEntries: number): Promise<void>;
|
|
2414
|
+
private spillToArchive;
|
|
2415
|
+
private resolveNextArchiveIndex;
|
|
2416
|
+
private enforceArchiveTierCap;
|
|
2417
|
+
private listArchiveIndices;
|
|
2418
|
+
listArchives(sessionId: string): Promise<Array<{
|
|
2419
|
+
index: number;
|
|
2420
|
+
path: string;
|
|
2421
|
+
}>>;
|
|
2422
|
+
loadArchives(sessionId: string): Promise<HistoryEntry[]>;
|
|
2399
2423
|
load(sessionId: string, opts?: {
|
|
2400
2424
|
tools?: "inline" | "references";
|
|
2401
2425
|
maxEntries?: number;
|
|
@@ -3782,6 +3806,8 @@ interface SessionManagerOptions {
|
|
|
3782
3806
|
compactionAgent?: string;
|
|
3783
3807
|
compactionModel?: string;
|
|
3784
3808
|
sessionHistoryMaxEntries?: number;
|
|
3809
|
+
sessionHistoryArchiveMaxBytes?: number;
|
|
3810
|
+
sessionHistoryArchiveTiers?: number;
|
|
3785
3811
|
defaultTransformers?: string[];
|
|
3786
3812
|
idleEventTimeoutMs?: number;
|
|
3787
3813
|
logger?: AgentLogger;
|
|
@@ -4022,6 +4048,8 @@ declare const paths: {
|
|
|
4022
4048
|
logFile: () => string;
|
|
4023
4049
|
currentLogFile: () => string;
|
|
4024
4050
|
registryCache: () => string;
|
|
4051
|
+
ttySessionDir: () => string;
|
|
4052
|
+
ttySessionFile: (ttyBasename: string) => string;
|
|
4025
4053
|
agentsDir: () => string;
|
|
4026
4054
|
agentLogFile: (id: string) => string;
|
|
4027
4055
|
agentInstallDir: (id: string, platformKey: string, version: string) => string;
|
|
@@ -4030,6 +4058,7 @@ declare const paths: {
|
|
|
4030
4058
|
sessionDir: (id: string) => string;
|
|
4031
4059
|
sessionFile: (id: string) => string;
|
|
4032
4060
|
historyFile: (id: string) => string;
|
|
4061
|
+
historyArchiveFile: (id: string, n: number) => string;
|
|
4033
4062
|
toolsDir: (id: string) => string;
|
|
4034
4063
|
toolBlobFile: (id: string, hash: string) => string;
|
|
4035
4064
|
queueFile: (id: string) => string;
|