@absolutejs/absolute 0.15.12 → 0.15.14

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.
@@ -0,0 +1,2 @@
1
+ import type { Actions, InteractiveHandler } from '../../types/cli';
2
+ export declare const createInteractiveHandler: (actions: Actions) => InteractiveHandler;
@@ -0,0 +1 @@
1
+ export declare const dev: (serverEntry: string) => Promise<void>;
@@ -0,0 +1,11 @@
1
+ import type { DbScripts } from '../../types/cli';
2
+ export declare const isWSLEnvironment: () => boolean;
3
+ export declare const COMPOSE_PATH = "db/docker-compose.db.yml";
4
+ export declare const DEFAULT_SERVER_ENTRY = "src/backend/server.ts";
5
+ export declare const readDbScripts: () => Promise<DbScripts | null>;
6
+ export declare const timed: (label: string, fn: () => Promise<void>) => Promise<void>;
7
+ export declare const startDatabase: (scripts: DbScripts) => Promise<void>;
8
+ export declare const stopDatabase: (scripts: DbScripts) => Promise<void>;
9
+ export declare const printHelp: () => void;
10
+ export declare const printHint: () => void;
11
+ export declare const killStaleProcesses: (port: number) => void;
@@ -0,0 +1,17 @@
1
+ export type Action = () => void | Promise<void>;
2
+ export type Actions = {
3
+ clear: Action;
4
+ help: Action;
5
+ open: Action;
6
+ pause: Action;
7
+ quit: Action;
8
+ restart: Action;
9
+ shell: (command: string) => Promise<void>;
10
+ };
11
+ export type DbScripts = {
12
+ upCommand: string;
13
+ downCommand: string;
14
+ };
15
+ export type InteractiveHandler = {
16
+ dispose: () => void;
17
+ };
@@ -1,4 +1,5 @@
1
1
  export * from './build';
2
+ export * from './cli';
2
3
  export * from './client';
3
4
  export * from './messages';
4
5
  export * from './websocket';
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "typecheck": "bun run tsc --noEmit"
64
64
  },
65
65
  "types": "./dist/src/index.d.ts",
66
- "version": "0.15.12"
66
+ "version": "0.15.14"
67
67
  }
package/types/cli.ts ADDED
@@ -0,0 +1,20 @@
1
+ export type Action = () => void | Promise<void>;
2
+
3
+ export type Actions = {
4
+ clear: Action;
5
+ help: Action;
6
+ open: Action;
7
+ pause: Action;
8
+ quit: Action;
9
+ restart: Action;
10
+ shell: (command: string) => Promise<void>;
11
+ };
12
+
13
+ export type DbScripts = {
14
+ upCommand: string;
15
+ downCommand: string;
16
+ };
17
+
18
+ export type InteractiveHandler = {
19
+ dispose: () => void;
20
+ };
package/types/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './build';
2
+ export * from './cli';
2
3
  export * from './client';
3
4
  export * from './messages';
4
5
  export * from './websocket';