@integrity-labs/agt-cli 0.28.144 → 0.28.146

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.
@@ -22,7 +22,7 @@ import {
22
22
  resolveConnectivityProbe,
23
23
  worseConnectivityOutcome,
24
24
  wrapScheduledTaskPrompt
25
- } from "./chunk-SBVI6NJW.js";
25
+ } from "./chunk-POW4BZEC.js";
26
26
 
27
27
  // ../../packages/core/dist/integrations/registry.js
28
28
  var INTEGRATION_REGISTRY = [
@@ -6767,6 +6767,35 @@ ${sections}`
6767
6767
  };
6768
6768
  }
6769
6769
  }
6770
+ if (channelId === "whatsapp") {
6771
+ const projectApiKey = config["project_api_key"];
6772
+ const phoneNumberId = config["phone_number_id"];
6773
+ if (projectApiKey && phoneNumberId) {
6774
+ const localWhatsappChannel = join4(getHomeDir3(), ".augmented", "_mcp", "whatsapp-channel.js");
6775
+ try {
6776
+ mkdirSync4(join4(getHomeDir3(), ".augmented", codeName, "whatsapp-pending-inbound"), { recursive: true });
6777
+ } catch {
6778
+ }
6779
+ writeEnvIntegrationsForAgent(codeName, {
6780
+ mode: "upsert",
6781
+ updates: { WHATSAPP_PROJECT_API_KEY: projectApiKey }
6782
+ });
6783
+ const kapsoBaseUrl = config["kapso_base_url"];
6784
+ const kapsoGraphVersion = config["kapso_graph_version"];
6785
+ const whatsappEnv = {
6786
+ AGT_AGENT_CODE_NAME: codeName,
6787
+ WHATSAPP_PROJECT_API_KEY: "${WHATSAPP_PROJECT_API_KEY}",
6788
+ WHATSAPP_PHONE_NUMBER_ID: phoneNumberId,
6789
+ ...kapsoBaseUrl ? { WHATSAPP_KAPSO_BASE_URL: kapsoBaseUrl } : {},
6790
+ ...kapsoGraphVersion ? { WHATSAPP_KAPSO_GRAPH_VERSION: kapsoGraphVersion } : {}
6791
+ };
6792
+ mcpServers["whatsapp"] = {
6793
+ command: "node",
6794
+ args: [localWhatsappChannel],
6795
+ env: whatsappEnv
6796
+ };
6797
+ }
6798
+ }
6770
6799
  if (writeMcpJsonGuarded(codeName, mcpJsonPath, mcpConfig)) {
6771
6800
  syncMcpToProject(codeName);
6772
6801
  }
@@ -7746,7 +7775,7 @@ function requireHost() {
7746
7775
  }
7747
7776
 
7748
7777
  // src/lib/api-client.ts
7749
- var agtCliVersion = true ? "0.28.144" : "dev";
7778
+ var agtCliVersion = true ? "0.28.146" : "dev";
7750
7779
  var lastConfigHash = null;
7751
7780
  function setConfigHash(hash) {
7752
7781
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9043,4 +9072,4 @@ export {
9043
9072
  managerInstallSystemUnitCommand,
9044
9073
  managerUninstallSystemUnitCommand
9045
9074
  };
9046
- //# sourceMappingURL=chunk-F2UOJCBZ.js.map
9075
+ //# sourceMappingURL=chunk-X3O5A2NQ.js.map