@alfe.ai/gateway 0.0.23 → 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 +19 -23
- package/package.json +3 -9
package/dist/health.js
CHANGED
|
@@ -351,21 +351,6 @@ var AuthService = class {
|
|
|
351
351
|
deleteToken(tokenId) {
|
|
352
352
|
return this.client.request(`${this.prefix}/tokens/${tokenId}`, { method: "DELETE" });
|
|
353
353
|
}
|
|
354
|
-
getReferralCode() {
|
|
355
|
-
return this.client.request(`${this.prefix}/referral/code`);
|
|
356
|
-
}
|
|
357
|
-
redeemCode(code) {
|
|
358
|
-
return this.client.request(`${this.prefix}/referral/redeem`, {
|
|
359
|
-
method: "POST",
|
|
360
|
-
body: JSON.stringify({ code })
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
getReferralStatus() {
|
|
364
|
-
return this.client.request(`${this.prefix}/referral/status`);
|
|
365
|
-
}
|
|
366
|
-
getReferralHistory() {
|
|
367
|
-
return this.client.request(`${this.prefix}/referral/history`);
|
|
368
|
-
}
|
|
369
354
|
getOnboardingStatus() {
|
|
370
355
|
return this.client.request(`${this.prefix}/onboarding/status`);
|
|
371
356
|
}
|
|
@@ -406,6 +391,9 @@ var IntegrationsService = class {
|
|
|
406
391
|
removeIntegration(agentId, integrationId) {
|
|
407
392
|
return this.client.request(`/integrations/agents/${agentId}/${integrationId}`, { method: "DELETE" });
|
|
408
393
|
}
|
|
394
|
+
reinstallIntegration(agentId, integrationId) {
|
|
395
|
+
return this.client.request(`/integrations/agents/${agentId}/${integrationId}/reinstall`, { method: "POST" });
|
|
396
|
+
}
|
|
409
397
|
getRegistry() {
|
|
410
398
|
return this.client.request("/integrations/registry");
|
|
411
399
|
}
|
|
@@ -3226,7 +3214,8 @@ enumValues({
|
|
|
3226
3214
|
Revoked: "revoked"
|
|
3227
3215
|
});
|
|
3228
3216
|
enumValues({
|
|
3229
|
-
|
|
3217
|
+
PendingCard: "pending_card",
|
|
3218
|
+
CardFulfilled: "card_fulfilled",
|
|
3230
3219
|
Completed: "completed",
|
|
3231
3220
|
Failed: "failed"
|
|
3232
3221
|
});
|
|
@@ -3765,14 +3754,8 @@ var ReconciliationEngine = class {
|
|
|
3765
3754
|
}
|
|
3766
3755
|
if (local.version !== desired.version && desired.version !== "" && local.version !== "unknown") {
|
|
3767
3756
|
log$2.info(`Upgrading ${id}: ${local.version} → ${desired.version}`);
|
|
3768
|
-
|
|
3769
|
-
await this.manager.deactivate(id);
|
|
3770
|
-
await this.manager.uninstall(id);
|
|
3771
|
-
} catch {}
|
|
3772
|
-
await this.manager.install(id, desired.version, desired.config);
|
|
3757
|
+
await this.manager.reinstall(id, desired.version, desired.config);
|
|
3773
3758
|
report.installed.push(id);
|
|
3774
|
-
log$2.info(`Activating ${id}`);
|
|
3775
|
-
await this.manager.activate(id);
|
|
3776
3759
|
report.activated.push(id);
|
|
3777
3760
|
report.results.push({
|
|
3778
3761
|
integrationId: id,
|
|
@@ -3792,6 +3775,18 @@ var ReconciliationEngine = class {
|
|
|
3792
3775
|
});
|
|
3793
3776
|
return;
|
|
3794
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
|
+
}
|
|
3795
3790
|
report.results.push({
|
|
3796
3791
|
integrationId: id,
|
|
3797
3792
|
action: "up_to_date",
|
|
@@ -19811,6 +19806,7 @@ var RuntimeProcess = class {
|
|
|
19811
19806
|
workspace: this.options.workspace
|
|
19812
19807
|
}, "Starting runtime process");
|
|
19813
19808
|
this.child = spawn(command, args, {
|
|
19809
|
+
cwd: this.options.workspace,
|
|
19814
19810
|
env: {
|
|
19815
19811
|
...process.env,
|
|
19816
19812
|
...this.options.env
|
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": {
|