omnara 0.5.0 → 0.5.1

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.
@@ -1,4 +1,5 @@
1
1
  import type { Logger } from '../utils/logger.js';
2
+ import { DaemonConfigStore } from './config-store.js';
2
3
  export interface StartDaemonOptions {
3
4
  waitForReady?: boolean;
4
5
  reason?: string;
@@ -24,6 +25,7 @@ export interface KillAllOptions {
24
25
  logger?: Logger;
25
26
  }
26
27
  export declare function ensureDaemonForSession(options?: EnsureDaemonOptions): Promise<void>;
28
+ export declare function ensureMachineNameConfigured(configStore: DaemonConfigStore, logger: Logger): Promise<string>;
27
29
  export declare function startDaemon(options?: StartDaemonOptions): Promise<boolean>;
28
30
  export declare function stopDaemon(options?: StopDaemonOptions): Promise<boolean>;
29
31
  export declare function showDaemonStatus(options?: StatusOptions): Promise<void>;
@@ -41,6 +41,8 @@ export declare class Session implements AsyncIterable<SDKUserMessage> {
41
41
  private announced;
42
42
  private shouldSummarize;
43
43
  private conversationHistory;
44
+ private retryDelayMs;
45
+ private retryCount;
44
46
  private readonly sessionInitControl;
45
47
  constructor(id: string, ai: AgentClient, options?: SessionOptions);
46
48
  enqueue(message: UserTextEnvelope): void;
@@ -50,6 +52,8 @@ export declare class Session implements AsyncIterable<SDKUserMessage> {
50
52
  private captureSdkSessionId;
51
53
  private collectAssistantSummaryBlocks;
52
54
  private buildCompletionEnvelope;
55
+ private buildErrorCompletionEnvelope;
56
+ private resetRetryState;
53
57
  private summarize;
54
58
  private emitProgress;
55
59
  onEnvelope(cb: (msg: MessageEnvelope) => void | Promise<void>): void;
@@ -0,0 +1,6 @@
1
+ export declare const INITIAL_RETRY_DELAY_MS = 1000;
2
+ export declare const MAX_RETRY_DELAY_MS = 30000;
3
+ /**
4
+ * Calculates next delay with exponential backoff and jitter.
5
+ */
6
+ export declare function calculateBackoff(currentDelayMs: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Command-line interface for Omnara.",
6
6
  "main": "dist/cli.js",