omnara 0.3.0 → 0.3.2

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,5 +1,11 @@
1
+ export interface SessionRecord {
2
+ pid: number;
3
+ startedAt?: string;
4
+ command?: string;
5
+ }
1
6
  export interface SessionRegistry {
2
- [userSessionId: string]: number;
7
+ [userSessionId: string]: SessionRecord;
3
8
  }
4
9
  export declare function withSessionRegistry<T>(fn: (registry: SessionRegistry) => Promise<[SessionRegistry, T]> | [SessionRegistry, T]): Promise<T>;
5
10
  export declare function isProcessAlive(pid: number): Promise<boolean>;
11
+ export declare function isSessionProcessAlive(record: SessionRecord): Promise<boolean>;
@@ -21,8 +21,6 @@ export declare class SessionManager {
21
21
  private readonly frontendUrl?;
22
22
  private readonly directoryRegistry;
23
23
  private readonly logger;
24
- private readonly runners;
25
24
  constructor(options: SessionManagerOptions);
26
25
  startSession(spec: SessionLaunchSpec): Promise<void>;
27
- stopAll(): Promise<void>;
28
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "Command-line interface for Omnara.",
6
6
  "main": "dist/cli.js",