@integrity-labs/agt-cli 0.28.145 → 0.28.147
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/bin/agt.js +4 -4
- package/dist/{chunk-R4JDTW2M.js → chunk-FAWY7H7Q.js} +32 -3
- package/dist/{chunk-R4JDTW2M.js.map → chunk-FAWY7H7Q.js.map} +1 -1
- package/dist/{chunk-P7HRYVA3.js → chunk-H7DPP33E.js} +3 -2
- package/dist/chunk-H7DPP33E.js.map +1 -0
- package/dist/{chunk-SBVI6NJW.js → chunk-POW4BZEC.js} +19 -2
- package/dist/chunk-POW4BZEC.js.map +1 -0
- package/dist/{claude-pair-runtime-PSXLMBZT.js → claude-pair-runtime-E32P2WMR.js} +2 -2
- package/dist/lib/manager-worker.js +20 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/whatsapp-channel.js +14165 -0
- package/dist/{persistent-session-O5ACCLPL.js → persistent-session-ERNRO4J6.js} +3 -3
- package/dist/{responsiveness-probe-FT7DMZAR.js → responsiveness-probe-BLJS46ME.js} +3 -3
- package/package.json +2 -2
- package/dist/chunk-P7HRYVA3.js.map +0 -1
- package/dist/chunk-SBVI6NJW.js.map +0 -1
- /package/dist/{claude-pair-runtime-PSXLMBZT.js.map → claude-pair-runtime-E32P2WMR.js.map} +0 -0
- /package/dist/{persistent-session-O5ACCLPL.js.map → persistent-session-ERNRO4J6.js.map} +0 -0
- /package/dist/{responsiveness-probe-FT7DMZAR.js.map → responsiveness-probe-BLJS46ME.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-FAWY7H7Q.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
renderTemplate,
|
|
65
65
|
resolveChannels,
|
|
66
66
|
serializeManifestForSlackCli
|
|
67
|
-
} from "../chunk-
|
|
67
|
+
} from "../chunk-POW4BZEC.js";
|
|
68
68
|
|
|
69
69
|
// src/bin/agt.ts
|
|
70
70
|
import { join as join22 } from "path";
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.147" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5791,7 +5791,7 @@ function handleError(err) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
|
|
5793
5793
|
// src/bin/agt.ts
|
|
5794
|
-
var cliVersion2 = true ? "0.28.
|
|
5794
|
+
var cliVersion2 = true ? "0.28.147" : "dev";
|
|
5795
5795
|
var program = new Command();
|
|
5796
5796
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
5797
5797
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveConnectivityProbe,
|
|
23
23
|
worseConnectivityOutcome,
|
|
24
24
|
wrapScheduledTaskPrompt
|
|
25
|
-
} from "./chunk-
|
|
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.
|
|
7778
|
+
var agtCliVersion = true ? "0.28.147" : "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-
|
|
9075
|
+
//# sourceMappingURL=chunk-FAWY7H7Q.js.map
|