omnara 0.5.3 → 0.6.0

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.
@@ -42,6 +42,8 @@ export declare class MachineSupervisor {
42
42
  private runWebsocket;
43
43
  private handleSocketMessage;
44
44
  private handleRpcRequest;
45
+ private handleStartSession;
46
+ private handleStopSession;
45
47
  private sendRpcResponse;
46
48
  private launchWorkspaceSessionFromRpc;
47
49
  private launchWorkspaceSession;
@@ -25,4 +25,14 @@ export declare class SessionManager {
25
25
  private readonly logger;
26
26
  constructor(options: SessionManagerOptions);
27
27
  startSession(spec: SessionLaunchSpec): Promise<void>;
28
+ /**
29
+ * Stop a running session by user session ID.
30
+ *
31
+ * Looks up the session in the PID registry, sends SIGTERM for graceful
32
+ * shutdown, waits briefly, then sends SIGKILL if still alive.
33
+ *
34
+ * @returns true if a running session was found and terminated, false if
35
+ * the session was not running.
36
+ */
37
+ stopSession(userSessionId: string): Promise<boolean>;
28
38
  }
@@ -18,6 +18,7 @@ export declare const BASE_ALLOWED_WORKER_TOOLS: readonly ["Task", "Bash", "Glob"
18
18
  export declare class AIClient implements AgentClient {
19
19
  private baseOptions;
20
20
  private query?;
21
+ private abortController?;
21
22
  private currentModel;
22
23
  constructor(config?: AIClientConfig);
23
24
  streamUserMessage(prompt: string | AsyncIterable<SDKUserMessage>, overrides?: Partial<Options>): AsyncIterable<SDKMessage>;
@@ -37,6 +37,7 @@ export declare class Session implements AsyncIterable<SDKUserMessage> {
37
37
  private sessionInitSubscribers;
38
38
  private queue;
39
39
  private generating;
40
+ private waitingForMessage;
40
41
  private announcementPromise;
41
42
  private announced;
42
43
  private shouldSummarize;
@@ -13,10 +13,6 @@ export declare function isNpmInstallation(): boolean;
13
13
  export declare function runInstallScript(options?: {
14
14
  silent?: boolean;
15
15
  }): Promise<boolean>;
16
- /**
17
- * Handles npm installation: show warning and migrate to binary.
18
- */
19
- export declare function handleNpmInstallation(): Promise<boolean>;
20
16
  /**
21
17
  * Checks if an update is available.
22
18
  * Checks prerelease channel if PRERELEASE=1 env var is set.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Command-line interface for Omnara.",
6
6
  "main": "dist/cli.js",