adhdev 0.7.16 → 0.7.19
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 +470 -343
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +886 -305
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/vendor/session-host-daemon/index.d.mts +33 -0
- package/vendor/session-host-daemon/index.d.ts +33 -0
- package/vendor/session-host-daemon/index.js +812 -0
- package/vendor/session-host-daemon/index.js.map +1 -0
- package/vendor/session-host-daemon/index.mjs +795 -0
- package/vendor/session-host-daemon/index.mjs.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adhdev",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"description": "ADHDev — Agent Dashboard Hub for Dev. Remote-control AI coding agents from anywhere.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsup",
|
|
11
|
+
"bundle:vendor": "node ./scripts/vendor-runtime-deps.mjs",
|
|
11
12
|
"dev": "tsx src/cli/index.ts",
|
|
12
13
|
"start": "node dist/cli/index.js",
|
|
13
14
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
14
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"prepublishOnly": "npm run build && npm run bundle:vendor"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
18
|
"dist",
|
|
19
|
+
"vendor",
|
|
18
20
|
"README.md"
|
|
19
21
|
],
|
|
20
22
|
"keywords": [
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { SessionHostEndpoint, SessionHostRegistry, SessionHostRequest, SessionHostResponse } from '@adhdev/session-host-core';
|
|
4
|
+
|
|
5
|
+
interface SessionHostServerOptions {
|
|
6
|
+
endpoint?: SessionHostEndpoint;
|
|
7
|
+
appName?: string;
|
|
8
|
+
}
|
|
9
|
+
declare class SessionHostServer extends EventEmitter {
|
|
10
|
+
readonly endpoint: SessionHostEndpoint;
|
|
11
|
+
readonly registry: SessionHostRegistry;
|
|
12
|
+
private runtimes;
|
|
13
|
+
private readonly storage;
|
|
14
|
+
private ipcServer;
|
|
15
|
+
private sockets;
|
|
16
|
+
private persistTimers;
|
|
17
|
+
constructor(options?: SessionHostServerOptions);
|
|
18
|
+
start(): Promise<void>;
|
|
19
|
+
stop(): Promise<void>;
|
|
20
|
+
handleRequest(request: SessionHostRequest): Promise<SessionHostResponse>;
|
|
21
|
+
private requireRuntime;
|
|
22
|
+
private getAttachedClient;
|
|
23
|
+
private emitEvent;
|
|
24
|
+
private handleIncomingRequest;
|
|
25
|
+
private schedulePersist;
|
|
26
|
+
private persistNow;
|
|
27
|
+
private flushAllPersistence;
|
|
28
|
+
private restorePersistedRuntimes;
|
|
29
|
+
private buildPayloadFromRecord;
|
|
30
|
+
private startRuntime;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { SessionHostServer, type SessionHostServerOptions };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import { SessionHostEndpoint, SessionHostRegistry, SessionHostRequest, SessionHostResponse } from '@adhdev/session-host-core';
|
|
4
|
+
|
|
5
|
+
interface SessionHostServerOptions {
|
|
6
|
+
endpoint?: SessionHostEndpoint;
|
|
7
|
+
appName?: string;
|
|
8
|
+
}
|
|
9
|
+
declare class SessionHostServer extends EventEmitter {
|
|
10
|
+
readonly endpoint: SessionHostEndpoint;
|
|
11
|
+
readonly registry: SessionHostRegistry;
|
|
12
|
+
private runtimes;
|
|
13
|
+
private readonly storage;
|
|
14
|
+
private ipcServer;
|
|
15
|
+
private sockets;
|
|
16
|
+
private persistTimers;
|
|
17
|
+
constructor(options?: SessionHostServerOptions);
|
|
18
|
+
start(): Promise<void>;
|
|
19
|
+
stop(): Promise<void>;
|
|
20
|
+
handleRequest(request: SessionHostRequest): Promise<SessionHostResponse>;
|
|
21
|
+
private requireRuntime;
|
|
22
|
+
private getAttachedClient;
|
|
23
|
+
private emitEvent;
|
|
24
|
+
private handleIncomingRequest;
|
|
25
|
+
private schedulePersist;
|
|
26
|
+
private persistNow;
|
|
27
|
+
private flushAllPersistence;
|
|
28
|
+
private restorePersistedRuntimes;
|
|
29
|
+
private buildPayloadFromRecord;
|
|
30
|
+
private startRuntime;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { SessionHostServer, type SessionHostServerOptions };
|