opencode-supertask 0.1.31 → 0.1.32-rc.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,7 +1,36 @@
1
1
  import * as hono from 'hono';
2
2
  import { Hono } from 'hono';
3
3
  import * as hono_types from 'hono/types';
4
+ import { G as GatewayConfig } from '../config-CCUuD6Az.js';
4
5
 
6
+ interface RuntimeScope {
7
+ cwd: string;
8
+ databasePath: string;
9
+ configPath: string;
10
+ opencodePath: string;
11
+ home: string;
12
+ pm2Home: string;
13
+ managementLockPath: string;
14
+ }
15
+ interface GatewayDiagnostic {
16
+ pm2Installed: boolean;
17
+ processFound: boolean;
18
+ status: string | null;
19
+ pid: number | null;
20
+ ready: boolean;
21
+ runningVersion: string | null;
22
+ gatewayEntry: string | null;
23
+ gatewayPackageVersion: string | null;
24
+ logRotationInstalled: boolean;
25
+ startupConfigured: boolean | null;
26
+ currentScope: RuntimeScope;
27
+ gatewayScope: RuntimeScope | null;
28
+ scopeMatches: boolean;
29
+ }
30
+
31
+ declare function setDashboardRuntimeConfig(config: GatewayConfig | null): void;
32
+ declare function resolveDashboardConfigState(runtimeAvailable: boolean, restartRequired: boolean, managedRestart: boolean): 'foreground' | 'applied' | 'pending' | 'manual';
33
+ declare function isSafeDashboardRestartTarget(diagnostic: GatewayDiagnostic, currentPid: number): boolean;
5
34
  declare const dashboardApp: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
6
35
  declare const _default: {
7
36
  hostname: string;
@@ -9,4 +38,4 @@ declare const _default: {
9
38
  fetch: (request: Request, Env?: unknown, executionCtx?: hono.ExecutionContext) => Response | Promise<Response>;
10
39
  };
11
40
 
12
- export { dashboardApp, _default as default };
41
+ export { dashboardApp, _default as default, isSafeDashboardRestartTarget, resolveDashboardConfigState, setDashboardRuntimeConfig };