@absolutejs/absolute 0.19.0-beta.666 → 0.19.0-beta.668
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.
- package/dist/cli/index.js +654 -171
- package/dist/index.js +3 -2
- package/dist/index.js.map +3 -3
- package/dist/src/cli/workspaceTui.d.ts +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WorkspaceServiceVisibility } from '../../types/build';
|
|
2
|
+
type WorkspaceTuiStatus = 'pending' | 'starting' | 'ready' | 'paused' | 'restarting' | 'stopped' | 'error';
|
|
3
|
+
type WorkspaceTuiLogLevel = 'info' | 'warn' | 'error' | 'success';
|
|
4
|
+
type WorkspaceTuiService = {
|
|
5
|
+
name: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
url?: string | null;
|
|
8
|
+
visibility: WorkspaceServiceVisibility;
|
|
9
|
+
};
|
|
10
|
+
type WorkspaceTuiActions = {
|
|
11
|
+
open: () => void | Promise<void>;
|
|
12
|
+
pause: () => void | Promise<void>;
|
|
13
|
+
quit: () => void | Promise<void>;
|
|
14
|
+
restart: () => void | Promise<void>;
|
|
15
|
+
shell: (command: string) => void | Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
export declare const createWorkspaceTui: ({ actions, services, version }: {
|
|
18
|
+
actions: WorkspaceTuiActions;
|
|
19
|
+
services: WorkspaceTuiService[];
|
|
20
|
+
version: string;
|
|
21
|
+
}) => {
|
|
22
|
+
addLog: (source: string, message: string, level?: WorkspaceTuiLogLevel) => void;
|
|
23
|
+
clearLogs: () => void;
|
|
24
|
+
dispose: () => void;
|
|
25
|
+
setReadyDuration: (durationMs: number | null) => void;
|
|
26
|
+
setServiceStatus: (name: string, status: WorkspaceTuiStatus, detail?: string) => void;
|
|
27
|
+
start: () => void;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
package/package.json
CHANGED