@alfe.ai/gateway 0.9.5 → 0.9.6
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/README.md +36 -37
- package/dist/health.js +412 -153
- package/dist/src/index.d.ts +1 -7
- package/dist/upgrade.js +8 -5
- package/package.json +7 -7
package/dist/src/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ declare const PINNED_OPENCLAW_VERSION = "2026.6.11";
|
|
|
73
73
|
* `PINNED_OPENCLAW_VERSION` — there is no `services/compute/Dockerfile` mirror to
|
|
74
74
|
* keep in sync.
|
|
75
75
|
*/
|
|
76
|
-
declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.
|
|
76
|
+
declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.6";
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/sentry.d.ts
|
|
79
79
|
/**
|
|
@@ -295,12 +295,6 @@ interface AgentIdentity {
|
|
|
295
295
|
* Returns agentId (derived from tokenId) and orgId (tenantId).
|
|
296
296
|
*/
|
|
297
297
|
declare function resolveAgentIdentity(apiKey: string, apiEndpoint: string): Promise<AgentIdentity>;
|
|
298
|
-
/**
|
|
299
|
-
* Whether the daemon is running in managed mode (ECS Fargate container).
|
|
300
|
-
* In managed mode, configuration comes from environment variables instead
|
|
301
|
-
* of ~/.alfe/config.toml, and IPC/PID features are disabled.
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
298
|
/**
|
|
305
299
|
* Load full daemon configuration.
|
|
306
300
|
* Reads config.toml, validates the API key, resolves agent identity,
|
package/dist/upgrade.js
CHANGED
|
@@ -244,7 +244,7 @@ async function sweepOrphanReifyTempDirs(scopeDir) {
|
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/upgrade.ts
|
|
246
246
|
/**
|
|
247
|
-
* CLI upgrade — runs npm install inline
|
|
247
|
+
* CLI upgrade — runs npm install inline and exits only after verification.
|
|
248
248
|
*
|
|
249
249
|
* Systemd has Restart=always, so after the daemon exits the service
|
|
250
250
|
* restarts automatically with the new CLI version. No detached scripts,
|
|
@@ -267,8 +267,10 @@ async function sweepOrphanReifyTempDirs(scopeDir) {
|
|
|
267
267
|
*/
|
|
268
268
|
const execFileAsync = promisify(execFile);
|
|
269
269
|
/**
|
|
270
|
-
* Upgrade the CLI to a target version and exit — UNLESS
|
|
271
|
-
* is broken, in which case
|
|
270
|
+
* Upgrade the CLI to a target version and exit — UNLESS npm fails or the
|
|
271
|
+
* resulting install is broken, in which case the already-loaded daemon stays
|
|
272
|
+
* alive. npm may have partially mutated its live global tree before returning
|
|
273
|
+
* an error, so an install failure is not proof that a restart is safe.
|
|
272
274
|
*
|
|
273
275
|
* Returns `Promise<never>` on the success path (it exits). On a verification
|
|
274
276
|
* failure it returns normally so the caller (and the daemon) keep running.
|
|
@@ -293,8 +295,9 @@ async function upgradeAndExit(version) {
|
|
|
293
295
|
logger.error({
|
|
294
296
|
err: message,
|
|
295
297
|
version
|
|
296
|
-
}, "CLI upgrade failed");
|
|
297
|
-
|
|
298
|
+
}, "CLI upgrade failed — keeping the loaded daemon alive");
|
|
299
|
+
captureCliFailure("upgrade.install_failed", err);
|
|
300
|
+
return;
|
|
298
301
|
}
|
|
299
302
|
const result = await verifyCliInstall(void 0, await resolveCliEntryPath(import.meta.url));
|
|
300
303
|
if (!result.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"pino-roll": "^1.2.0",
|
|
24
24
|
"smol-toml": ">=1.6.1",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@alfe.ai/agent-api-client": "^0.
|
|
27
|
-
"@alfe.ai/ai-proxy-local": "^0.0.
|
|
28
|
-
"@alfe.ai/config": "^0.4.
|
|
29
|
-
"@alfe.ai/integration-manifest": "^0.3.
|
|
30
|
-
"@alfe.ai/integrations": "^0.6.
|
|
31
|
-
"@alfe.ai/mcp-bundler": "^0.4.
|
|
26
|
+
"@alfe.ai/agent-api-client": "^0.15.0",
|
|
27
|
+
"@alfe.ai/ai-proxy-local": "^0.0.15",
|
|
28
|
+
"@alfe.ai/config": "^0.4.1",
|
|
29
|
+
"@alfe.ai/integration-manifest": "^0.3.5",
|
|
30
|
+
"@alfe.ai/integrations": "^0.6.1",
|
|
31
|
+
"@alfe.ai/mcp-bundler": "^0.4.1"
|
|
32
32
|
},
|
|
33
33
|
"license": "UNLICENSED",
|
|
34
34
|
"homepage": "https://alfe.ai",
|