@hydra-acp/cli 0.1.111 → 0.1.113
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 +380 -372
- package/dist/index.d.ts +31 -0
- package/dist/index.js +72 -69
- 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,30 @@ 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 sealArchive;
|
|
2416
|
+
private resolveNextArchiveIndex;
|
|
2417
|
+
private enforceArchiveTierCap;
|
|
2418
|
+
private unlinkArchive;
|
|
2419
|
+
private listArchiveIndices;
|
|
2420
|
+
listArchives(sessionId: string): Promise<Array<{
|
|
2421
|
+
index: number;
|
|
2422
|
+
path: string;
|
|
2423
|
+
}>>;
|
|
2424
|
+
loadArchives(sessionId: string): Promise<HistoryEntry[]>;
|
|
2399
2425
|
load(sessionId: string, opts?: {
|
|
2400
2426
|
tools?: "inline" | "references";
|
|
2401
2427
|
maxEntries?: number;
|
|
@@ -3782,6 +3808,8 @@ interface SessionManagerOptions {
|
|
|
3782
3808
|
compactionAgent?: string;
|
|
3783
3809
|
compactionModel?: string;
|
|
3784
3810
|
sessionHistoryMaxEntries?: number;
|
|
3811
|
+
sessionHistoryArchiveMaxBytes?: number;
|
|
3812
|
+
sessionHistoryArchiveTiers?: number;
|
|
3785
3813
|
defaultTransformers?: string[];
|
|
3786
3814
|
idleEventTimeoutMs?: number;
|
|
3787
3815
|
logger?: AgentLogger;
|
|
@@ -4022,6 +4050,8 @@ declare const paths: {
|
|
|
4022
4050
|
logFile: () => string;
|
|
4023
4051
|
currentLogFile: () => string;
|
|
4024
4052
|
registryCache: () => string;
|
|
4053
|
+
ttySessionDir: () => string;
|
|
4054
|
+
ttySessionFile: (ttyBasename: string) => string;
|
|
4025
4055
|
agentsDir: () => string;
|
|
4026
4056
|
agentLogFile: (id: string) => string;
|
|
4027
4057
|
agentInstallDir: (id: string, platformKey: string, version: string) => string;
|
|
@@ -4030,6 +4060,7 @@ declare const paths: {
|
|
|
4030
4060
|
sessionDir: (id: string) => string;
|
|
4031
4061
|
sessionFile: (id: string) => string;
|
|
4032
4062
|
historyFile: (id: string) => string;
|
|
4063
|
+
historyArchiveFile: (id: string, n: number) => string;
|
|
4033
4064
|
toolsDir: (id: string) => string;
|
|
4034
4065
|
toolBlobFile: (id: string, hash: string) => string;
|
|
4035
4066
|
queueFile: (id: string) => string;
|