opencode-supertask 0.1.34 → 0.1.36

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.
@@ -26,11 +26,29 @@ interface GatewayDiagnostic {
26
26
  currentScope: RuntimeScope;
27
27
  gatewayScope: RuntimeScope | null;
28
28
  scopeMatches: boolean;
29
+ gatewayOpenCode: OpenCodeRuntimeDiagnostic | null;
30
+ }
31
+ interface OpenCodeRuntimeDiagnostic {
32
+ ok: boolean;
33
+ executable: string;
34
+ version: string | null;
35
+ error: string | null;
29
36
  }
30
37
 
31
38
  declare function setDashboardRuntimeConfig(config: GatewayConfig | null): void;
32
39
  declare function resolveDashboardConfigState(runtimeAvailable: boolean, restartRequired: boolean, managedRestart: boolean): 'foreground' | 'applied' | 'pending' | 'manual';
33
40
  declare function isSafeDashboardRestartTarget(diagnostic: GatewayDiagnostic, currentPid: number): boolean;
41
+ interface RunCommandPresentation {
42
+ cwd: string;
43
+ command: string;
44
+ }
45
+ interface RunLogPresentation {
46
+ command: RunCommandPresentation | null;
47
+ text: string;
48
+ errors: string[];
49
+ tools: string[];
50
+ }
51
+ declare function presentRunLog(log: string): RunLogPresentation;
34
52
  declare const dashboardApp: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
35
53
  declare const _default: {
36
54
  hostname: string;
@@ -38,4 +56,4 @@ declare const _default: {
38
56
  fetch: (request: Request, Env?: unknown, executionCtx?: hono.ExecutionContext) => Response | Promise<Response>;
39
57
  };
40
58
 
41
- export { dashboardApp, _default as default, isSafeDashboardRestartTarget, resolveDashboardConfigState, setDashboardRuntimeConfig };
59
+ export { dashboardApp, _default as default, isSafeDashboardRestartTarget, presentRunLog, resolveDashboardConfigState, setDashboardRuntimeConfig };