@alfe.ai/gateway 0.0.3 → 0.0.5
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/bin/gateway.js +2 -0
- package/dist/health.js +3329 -215
- package/dist/src/index.d.ts +6 -1
- package/dist/src/index.js +2 -2
- package/package.json +2 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import pino from "pino";
|
|
2
|
+
|
|
1
3
|
//#region src/protocol.d.ts
|
|
2
4
|
|
|
3
5
|
interface IPCRequest {
|
|
@@ -132,6 +134,9 @@ declare function queryDaemonHealth(socketPath: string, timeoutMs?: number): Prom
|
|
|
132
134
|
*/
|
|
133
135
|
declare function formatHealthReport(health: DaemonHealth): string;
|
|
134
136
|
//#endregion
|
|
137
|
+
//#region src/logger.d.ts
|
|
138
|
+
declare const logger: pino.Logger<never, boolean>;
|
|
139
|
+
//#endregion
|
|
135
140
|
//#region src/process-manager.d.ts
|
|
136
141
|
/**
|
|
137
142
|
* Process management — launchd/systemd service installation.
|
|
@@ -161,4 +166,4 @@ declare function checkExistingDaemon(): Promise<number | null>;
|
|
|
161
166
|
*/
|
|
162
167
|
declare function stopExistingDaemon(): Promise<boolean>;
|
|
163
168
|
//#endregion
|
|
164
|
-
export { ALFE_DIR, type AgentIdentity, type AgentWorkspaceConfig, type DaemonConfig, type DaemonHealth, type IPCEvent, type IPCRequest, type IPCResponse, PID_PATH, PROTOCOL_VERSION, SOCKET_PATH, checkExistingDaemon, fetchAgentConfig, formatHealthReport, installService, loadDaemonConfig, queryDaemonHealth, resolveAgentIdentity, startDaemon, stopExistingDaemon, uninstallService };
|
|
169
|
+
export { ALFE_DIR, type AgentIdentity, type AgentWorkspaceConfig, type DaemonConfig, type DaemonHealth, type IPCEvent, type IPCRequest, type IPCResponse, PID_PATH, PROTOCOL_VERSION, SOCKET_PATH, checkExistingDaemon, fetchAgentConfig, formatHealthReport, installService, loadDaemonConfig, logger, queryDaemonHealth, resolveAgentIdentity, startDaemon, stopExistingDaemon, uninstallService };
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as installService, c as PROTOCOL_VERSION, d as SOCKET_PATH, f as fetchAgentConfig, i as checkExistingDaemon, l as ALFE_DIR, m as resolveAgentIdentity, n as queryDaemonHealth, o as stopExistingDaemon, p as loadDaemonConfig, r as startDaemon, s as uninstallService, t as formatHealthReport, u as PID_PATH } from "../health.js";
|
|
2
|
-
export { ALFE_DIR, PID_PATH, PROTOCOL_VERSION, SOCKET_PATH, checkExistingDaemon, fetchAgentConfig, formatHealthReport, installService, loadDaemonConfig, queryDaemonHealth, resolveAgentIdentity, startDaemon, stopExistingDaemon, uninstallService };
|
|
1
|
+
import { a as installService, c as PROTOCOL_VERSION, d as SOCKET_PATH, f as fetchAgentConfig, g as logger, i as checkExistingDaemon, l as ALFE_DIR, m as resolveAgentIdentity, n as queryDaemonHealth, o as stopExistingDaemon, p as loadDaemonConfig, r as startDaemon, s as uninstallService, t as formatHealthReport, u as PID_PATH } from "../health.js";
|
|
2
|
+
export { ALFE_DIR, PID_PATH, PROTOCOL_VERSION, SOCKET_PATH, checkExistingDaemon, fetchAgentConfig, formatHealthReport, installService, loadDaemonConfig, logger, queryDaemonHealth, resolveAgentIdentity, startDaemon, stopExistingDaemon, uninstallService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"smol-toml": "^1.3.0",
|
|
23
23
|
"pino-roll": "^1.2.0",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
|
-
"@alfe/api-client": "0.1.0",
|
|
26
25
|
"@alfe.ai/ai-proxy-local": "^0.0.2",
|
|
27
26
|
"@alfe.ai/config": "^0.0.2",
|
|
28
27
|
"@alfe.ai/doctor": "^0.0.2",
|
|
@@ -31,6 +30,7 @@
|
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/ws": "^8.5.13",
|
|
33
32
|
"tsx": "^4.19.0",
|
|
33
|
+
"@alfe/api-client": "0.1.0",
|
|
34
34
|
"@alfe/ids": "0.1.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "UNLICENSED",
|