@hydra-acp/cli 0.1.45 → 0.1.47

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/index.d.ts CHANGED
@@ -144,6 +144,7 @@ declare const HydraConfig: z.ZodObject<{
144
144
  progressIndicator: z.ZodDefault<z.ZodBoolean>;
145
145
  defaultEnterAction: z.ZodDefault<z.ZodEnum<["enqueue", "amend"]>>;
146
146
  showThoughts: z.ZodDefault<z.ZodBoolean>;
147
+ promptHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
147
148
  }, "strip", z.ZodTypeAny, {
148
149
  repaintThrottleMs: number;
149
150
  maxScrollbackLines: number;
@@ -153,6 +154,7 @@ declare const HydraConfig: z.ZodObject<{
153
154
  progressIndicator: boolean;
154
155
  defaultEnterAction: "enqueue" | "amend";
155
156
  showThoughts: boolean;
157
+ promptHistoryMaxEntries: number;
156
158
  }, {
157
159
  repaintThrottleMs?: number | undefined;
158
160
  maxScrollbackLines?: number | undefined;
@@ -162,6 +164,7 @@ declare const HydraConfig: z.ZodObject<{
162
164
  progressIndicator?: boolean | undefined;
163
165
  defaultEnterAction?: "enqueue" | "amend" | undefined;
164
166
  showThoughts?: boolean | undefined;
167
+ promptHistoryMaxEntries?: number | undefined;
165
168
  }>>;
166
169
  }, "strip", z.ZodTypeAny, {
167
170
  tui: {
@@ -173,6 +176,7 @@ declare const HydraConfig: z.ZodObject<{
173
176
  progressIndicator: boolean;
174
177
  defaultEnterAction: "enqueue" | "amend";
175
178
  showThoughts: boolean;
179
+ promptHistoryMaxEntries: number;
176
180
  };
177
181
  daemon: {
178
182
  host: string;
@@ -219,6 +223,7 @@ declare const HydraConfig: z.ZodObject<{
219
223
  progressIndicator?: boolean | undefined;
220
224
  defaultEnterAction?: "enqueue" | "amend" | undefined;
221
225
  showThoughts?: boolean | undefined;
226
+ promptHistoryMaxEntries?: number | undefined;
222
227
  } | undefined;
223
228
  daemon?: {
224
229
  host?: string | undefined;
@@ -1899,6 +1904,13 @@ interface SessionInit {
1899
1904
  transformChain?: TransformerRef[];
1900
1905
  idleEventTimeoutMs?: number;
1901
1906
  parentSessionId?: string;
1907
+ listSessions?: () => Promise<{
1908
+ sessionId: string;
1909
+ title?: string;
1910
+ cwd: string;
1911
+ agentId?: string;
1912
+ currentModel?: string;
1913
+ }[]>;
1902
1914
  }
1903
1915
  interface CloseOptions {
1904
1916
  deleteRecord?: boolean;
@@ -1918,7 +1930,7 @@ declare class Session {
1918
1930
  title: string | undefined;
1919
1931
  currentModel: string | undefined;
1920
1932
  currentMode: string | undefined;
1921
- currentUsage: UsageSnapshot | undefined;
1933
+ private _currentUsage;
1922
1934
  updatedAt: number;
1923
1935
  readonly createdAt: number;
1924
1936
  private clients;
@@ -1944,6 +1956,7 @@ declare class Session {
1944
1956
  private idleEventTimeoutMs;
1945
1957
  private lastRecordedAt;
1946
1958
  private spawnReplacementAgent;
1959
+ private listSessions;
1947
1960
  private logger;
1948
1961
  private transformChain;
1949
1962
  private pendingClaims;
@@ -1958,6 +1971,7 @@ declare class Session {
1958
1971
  private modeHandlers;
1959
1972
  private usageHandlers;
1960
1973
  private cumulativeCost;
1974
+ get currentUsage(): UsageSnapshot | undefined;
1961
1975
  private amendInProgress;
1962
1976
  private recentlyTerminal;
1963
1977
  private streamBuffer;
@@ -2012,6 +2026,7 @@ declare class Session {
2012
2026
  private amendOnHead;
2013
2027
  private enqueueAmendmentAsFollowUp;
2014
2028
  cancel(clientId: string): Promise<void>;
2029
+ addTransformer(ref: TransformerRef): void;
2015
2030
  forwardRequest(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number): Promise<unknown>;
2016
2031
  dischargeClaim(token: string, result: unknown): boolean;
2017
2032
  keepAliveClaim(token: string, estimatedRemainingMs?: number): boolean;
@@ -2041,6 +2056,7 @@ declare class Session {
2041
2056
  onAgentModelsChange(handler: (models: AdvertisedModel[]) => void): void;
2042
2057
  onModelChange(handler: (model: string) => void): void;
2043
2058
  onModeChange(handler: (mode: string) => void): void;
2059
+ applyModeChange(modeId: string): void;
2044
2060
  onUsageChange(handler: (usage: UsageSnapshot) => void): void;
2045
2061
  mergedAvailableCommands(): AdvertisedCommand[];
2046
2062
  agentOnlyAdvertisedCommands(): AdvertisedCommand[];
@@ -2048,11 +2064,15 @@ declare class Session {
2048
2064
  availableModels(): AdvertisedModel[];
2049
2065
  private maybeApplyAgentSessionInfo;
2050
2066
  private handleSlashCommand;
2067
+ private handleSessionsCommand;
2068
+ private handleHelpCommand;
2069
+ private handleModelCommand;
2051
2070
  private runTitleCommand;
2052
2071
  private runTitleRegen;
2053
2072
  private runInternalPrompt;
2054
2073
  private runAgentCommand;
2055
2074
  private runKillCommand;
2075
+ private runRestartCommand;
2056
2076
  private buildSwitchTranscript;
2057
2077
  seedFromImport(): Promise<void>;
2058
2078
  private broadcastAgentSwitch;
@@ -2557,6 +2577,7 @@ declare class SessionManager {
2557
2577
  private clearPendingHistorySync;
2558
2578
  private deriveTitleFromHistory;
2559
2579
  get(sessionId: string): Session | undefined;
2580
+ liveSessions(): IterableIterator<Session>;
2560
2581
  activeAgentVersions(): Map<string, Set<string>>;
2561
2582
  resolveCanonicalId(input: string): Promise<string | undefined>;
2562
2583
  require(sessionId: string): Session;