@alfe.ai/gateway 0.0.26 → 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 +61 -4
  2. package/package.json +3 -3
package/dist/health.js CHANGED
@@ -78,6 +78,8 @@ const ID_PREFIXES = {
78
78
  team: "team",
79
79
  project: "proj",
80
80
  goal: "goal",
81
+ memory: "mem",
82
+ knowledgeTriple: "kgt",
81
83
  run: "run",
82
84
  request: "req",
83
85
  connection: "conn",
@@ -379,6 +381,18 @@ var AuthService = class {
379
381
  body: JSON.stringify(input)
380
382
  });
381
383
  }
384
+ updateSeats(seats) {
385
+ return this.client.request(`${this.prefix}/subscription/seats`, {
386
+ method: "POST",
387
+ body: JSON.stringify({ seats })
388
+ });
389
+ }
390
+ previewSeatChange(seats) {
391
+ return this.client.request(`${this.prefix}/subscription/seats/preview`, {
392
+ method: "POST",
393
+ body: JSON.stringify({ seats })
394
+ });
395
+ }
382
396
  };
383
397
  //#endregion
384
398
  //#region ../../packages-internal/api-client/dist/services/integrations.js
@@ -463,18 +477,30 @@ var IntegrationsService = class {
463
477
  return this.client.request(`/discord/guilds/${encodeURIComponent(guildId)}/channels`);
464
478
  }
465
479
  listMobileNumbers() {
466
- return this.client.request("/mobile/numbers");
480
+ return this.client.request("/twilio/numbers");
467
481
  }
468
- assignMobileNumber(agentId, phoneNumber, phoneSid) {
469
- 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", {
470
490
  method: "POST",
471
491
  body: JSON.stringify({
472
492
  agentId,
473
493
  phoneNumber,
474
- phoneSid
494
+ countryCode
475
495
  })
476
496
  });
477
497
  }
498
+ releaseMobileNumber(phoneSid) {
499
+ return this.client.request("/twilio/numbers/release", {
500
+ method: "POST",
501
+ body: JSON.stringify({ phoneSid })
502
+ });
503
+ }
478
504
  recallJoinMeeting(agentId, meetingUrl, botName) {
479
505
  if (this.voiceClient) return this.voiceClient.request("/api/join", {
480
506
  method: "POST",
@@ -3239,6 +3265,11 @@ enumValues({
3239
3265
  OpenClaw: "openclaw",
3240
3266
  NanoClaw: "nanoclaw"
3241
3267
  });
3268
+ enumValues({
3269
+ Public: "public",
3270
+ Dev: "dev",
3271
+ Hidden: "hidden"
3272
+ });
3242
3273
  enumValues({
3243
3274
  Org: "org",
3244
3275
  Team: "team",
@@ -3877,6 +3908,32 @@ var ReconciliationEngine = class {
3877
3908
  });
3878
3909
  return;
3879
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
+ }
3880
3937
  if (local.status !== "active") {
3881
3938
  log$2.info(`Activating ${id}`);
3882
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.26",
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": {
@@ -24,8 +24,8 @@
24
24
  "ws": "^8.18.0",
25
25
  "@alfe.ai/ai-proxy-local": "^0.0.5",
26
26
  "@alfe.ai/config": "^0.0.5",
27
- "@alfe.ai/integration-manifest": "^0.0.7",
28
- "@alfe.ai/integrations": "^0.0.17"
27
+ "@alfe.ai/integration-manifest": "^0.0.8",
28
+ "@alfe.ai/integrations": "^0.0.18"
29
29
  },
30
30
  "license": "UNLICENSED",
31
31
  "scripts": {