@alfe.ai/gateway 0.0.27 → 0.0.28

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 +47 -4
  2. package/package.json +1 -1
package/dist/health.js CHANGED
@@ -477,18 +477,30 @@ var IntegrationsService = class {
477
477
  return this.client.request(`/discord/guilds/${encodeURIComponent(guildId)}/channels`);
478
478
  }
479
479
  listMobileNumbers() {
480
- return this.client.request("/mobile/numbers");
480
+ return this.client.request("/twilio/numbers");
481
481
  }
482
- assignMobileNumber(agentId, phoneNumber, phoneSid) {
483
- return this.client.request("/mobile/numbers/assign", {
482
+ searchMobileNumbers(country, query) {
483
+ const params = new URLSearchParams();
484
+ if (country) params.set("country", country);
485
+ if (query) params.set("query", query);
486
+ return this.client.request(`/twilio/numbers/search?${params}`);
487
+ }
488
+ assignMobileNumber(agentId, phoneNumber, countryCode) {
489
+ return this.client.request("/twilio/numbers/assign", {
484
490
  method: "POST",
485
491
  body: JSON.stringify({
486
492
  agentId,
487
493
  phoneNumber,
488
- phoneSid
494
+ countryCode
489
495
  })
490
496
  });
491
497
  }
498
+ releaseMobileNumber(phoneSid) {
499
+ return this.client.request("/twilio/numbers/release", {
500
+ method: "POST",
501
+ body: JSON.stringify({ phoneSid })
502
+ });
503
+ }
492
504
  recallJoinMeeting(agentId, meetingUrl, botName) {
493
505
  if (this.voiceClient) return this.voiceClient.request("/api/join", {
494
506
  method: "POST",
@@ -3253,6 +3265,11 @@ enumValues({
3253
3265
  OpenClaw: "openclaw",
3254
3266
  NanoClaw: "nanoclaw"
3255
3267
  });
3268
+ enumValues({
3269
+ Public: "public",
3270
+ Dev: "dev",
3271
+ Hidden: "hidden"
3272
+ });
3256
3273
  enumValues({
3257
3274
  Org: "org",
3258
3275
  Team: "team",
@@ -3891,6 +3908,32 @@ var ReconciliationEngine = class {
3891
3908
  });
3892
3909
  return;
3893
3910
  }
3911
+ if (local.status === "error") {
3912
+ if (desired.reinstallRequestedAt && local.installedAt && desired.reinstallRequestedAt > local.installedAt) {
3913
+ log$2.info(`Reinstalling ${id} from error state (requested: ${desired.reinstallRequestedAt}, installed: ${local.installedAt})`);
3914
+ await this.manager.reinstall(id, desired.version, desired.config);
3915
+ report.installed.push(id);
3916
+ report.activated.push(id);
3917
+ report.results.push({
3918
+ integrationId: id,
3919
+ action: "installed",
3920
+ actualStatus: "active"
3921
+ });
3922
+ return;
3923
+ }
3924
+ log$2.warn(`Integration ${id} is in error state — waiting for reinstall request`);
3925
+ report.errors.push({
3926
+ integrationId: id,
3927
+ error: "Integration is in error state"
3928
+ });
3929
+ report.results.push({
3930
+ integrationId: id,
3931
+ action: "error",
3932
+ actualStatus: "error",
3933
+ errorMessage: "Integration is in error state"
3934
+ });
3935
+ return;
3936
+ }
3894
3937
  if (local.status !== "active") {
3895
3938
  log$2.info(`Activating ${id}`);
3896
3939
  await this.manager.activate(id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {