@alfe.ai/gateway 0.0.15 → 0.0.17

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.
Files changed (2) hide show
  1. package/dist/health.js +1 -10
  2. package/package.json +4 -4
package/dist/health.js CHANGED
@@ -3769,7 +3769,7 @@ var ReconciliationEngine = class {
3769
3769
  });
3770
3770
  return;
3771
3771
  }
3772
- if (local.version !== desired.version) {
3772
+ if (local.version !== desired.version && desired.version !== "" && local.version !== "unknown") {
3773
3773
  log$2.info(`Upgrading ${id}: ${local.version} → ${desired.version}`);
3774
3774
  try {
3775
3775
  await this.manager.deactivate(id);
@@ -20483,15 +20483,6 @@ async function handleCloudCommand(command) {
20483
20483
  }
20484
20484
  if (command.command === "daemon.update") {
20485
20485
  const version = command.payload?.version ?? "latest";
20486
- if (!isManagedMode()) return {
20487
- type: "COMMAND_ACK",
20488
- commandId: command.commandId,
20489
- status: "error",
20490
- result: {
20491
- code: "NOT_MANAGED",
20492
- message: "daemon.update is only supported in managed mode"
20493
- }
20494
- };
20495
20486
  setTimeout(() => {
20496
20487
  import("./upgrade.js").then(({ upgradeAndExit }) => upgradeAndExit(version)).catch((err) => {
20497
20488
  logger$1.error({ err: err instanceof Error ? err.message : String(err) }, "Upgrade failed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,9 +23,9 @@
23
23
  "smol-toml": ">=1.6.1",
24
24
  "ws": "^8.18.0",
25
25
  "@alfe.ai/ai-proxy-local": "^0.0.4",
26
- "@alfe.ai/config": "^0.0.4",
27
- "@alfe.ai/doctor": "^0.0.4",
28
- "@alfe.ai/integrations": "^0.0.8"
26
+ "@alfe.ai/doctor": "^0.0.5",
27
+ "@alfe.ai/integrations": "^0.0.10",
28
+ "@alfe.ai/config": "^0.0.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ws": "^8.5.13",