@alfe.ai/gateway 0.0.24 → 0.0.25
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/health.js +16 -7
- package/package.json +3 -9
package/dist/health.js
CHANGED
|
@@ -391,6 +391,9 @@ var IntegrationsService = class {
|
|
|
391
391
|
removeIntegration(agentId, integrationId) {
|
|
392
392
|
return this.client.request(`/integrations/agents/${agentId}/${integrationId}`, { method: "DELETE" });
|
|
393
393
|
}
|
|
394
|
+
reinstallIntegration(agentId, integrationId) {
|
|
395
|
+
return this.client.request(`/integrations/agents/${agentId}/${integrationId}/reinstall`, { method: "POST" });
|
|
396
|
+
}
|
|
394
397
|
getRegistry() {
|
|
395
398
|
return this.client.request("/integrations/registry");
|
|
396
399
|
}
|
|
@@ -3751,14 +3754,8 @@ var ReconciliationEngine = class {
|
|
|
3751
3754
|
}
|
|
3752
3755
|
if (local.version !== desired.version && desired.version !== "" && local.version !== "unknown") {
|
|
3753
3756
|
log$2.info(`Upgrading ${id}: ${local.version} → ${desired.version}`);
|
|
3754
|
-
|
|
3755
|
-
await this.manager.deactivate(id);
|
|
3756
|
-
await this.manager.uninstall(id);
|
|
3757
|
-
} catch {}
|
|
3758
|
-
await this.manager.install(id, desired.version, desired.config);
|
|
3757
|
+
await this.manager.reinstall(id, desired.version, desired.config);
|
|
3759
3758
|
report.installed.push(id);
|
|
3760
|
-
log$2.info(`Activating ${id}`);
|
|
3761
|
-
await this.manager.activate(id);
|
|
3762
3759
|
report.activated.push(id);
|
|
3763
3760
|
report.results.push({
|
|
3764
3761
|
integrationId: id,
|
|
@@ -3778,6 +3775,18 @@ var ReconciliationEngine = class {
|
|
|
3778
3775
|
});
|
|
3779
3776
|
return;
|
|
3780
3777
|
}
|
|
3778
|
+
if (desired.reinstallRequestedAt && local.installedAt && desired.reinstallRequestedAt > local.installedAt) {
|
|
3779
|
+
log$2.info(`Reinstall requested for ${id} (requested: ${desired.reinstallRequestedAt}, installed: ${local.installedAt})`);
|
|
3780
|
+
await this.manager.reinstall(id, desired.version, desired.config);
|
|
3781
|
+
report.installed.push(id);
|
|
3782
|
+
report.activated.push(id);
|
|
3783
|
+
report.results.push({
|
|
3784
|
+
integrationId: id,
|
|
3785
|
+
action: "installed",
|
|
3786
|
+
actualStatus: "active"
|
|
3787
|
+
});
|
|
3788
|
+
return;
|
|
3789
|
+
}
|
|
3781
3790
|
report.results.push({
|
|
3782
3791
|
integrationId: id,
|
|
3783
3792
|
action: "up_to_date",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/gateway",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Alfe local gateway daemon — persistent control plane for agent integrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,16 +22,10 @@
|
|
|
22
22
|
"pino-roll": "^1.2.0",
|
|
23
23
|
"smol-toml": ">=1.6.1",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
|
-
"@alfe.ai/ai-proxy-local": "^0.0.5",
|
|
26
25
|
"@alfe.ai/config": "^0.0.5",
|
|
26
|
+
"@alfe.ai/ai-proxy-local": "^0.0.5",
|
|
27
27
|
"@alfe.ai/integration-manifest": "^0.0.6",
|
|
28
|
-
"@alfe.ai/integrations": "^0.0.
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/ws": "^8.5.13",
|
|
32
|
-
"tsx": "^4.19.0",
|
|
33
|
-
"@alfe/api-client": "0.1.1",
|
|
34
|
-
"@alfe/ids": "0.1.0"
|
|
28
|
+
"@alfe.ai/integrations": "^0.0.16"
|
|
35
29
|
},
|
|
36
30
|
"license": "UNLICENSED",
|
|
37
31
|
"scripts": {
|