@integrity-labs/agt-cli 0.15.24 → 0.15.31
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 +7 -3
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-YLZSW2GG.js → chunk-EFABVBMW.js} +79 -2
- package/dist/{chunk-YLZSW2GG.js.map → chunk-EFABVBMW.js.map} +1 -1
- package/dist/{claude-pair-runtime-5DOIHB44.js → claude-pair-runtime-VXNC2VEX.js} +12 -63
- package/dist/claude-pair-runtime-VXNC2VEX.js.map +1 -0
- package/dist/lib/manager-worker.js +29 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/manager-supervisor-A23IZIWC.js +182 -0
- package/dist/manager-supervisor-A23IZIWC.js.map +1 -0
- package/mcp/slack-channel.js +420 -208
- package/mcp/telegram-channel.js +407 -206
- package/package.json +1 -1
- package/dist/claude-pair-runtime-5DOIHB44.js.map +0 -1
|
@@ -7206,6 +7206,81 @@ function managerStatusCommand(opts = {}) {
|
|
|
7206
7206
|
);
|
|
7207
7207
|
}
|
|
7208
7208
|
}
|
|
7209
|
+
async function managerInstallCommand(opts = {}) {
|
|
7210
|
+
const json = isJsonMode();
|
|
7211
|
+
const { installSupervisor, supervisorStatus } = await import("./manager-supervisor-A23IZIWC.js");
|
|
7212
|
+
const intervalSec = parseInt(opts.interval ?? "10", 10);
|
|
7213
|
+
if (isNaN(intervalSec) || intervalSec < 5) {
|
|
7214
|
+
const msg = "Interval must be at least 5 seconds.";
|
|
7215
|
+
if (json) jsonOutput({ ok: false, error: msg });
|
|
7216
|
+
else error(msg);
|
|
7217
|
+
process.exitCode = 1;
|
|
7218
|
+
return;
|
|
7219
|
+
}
|
|
7220
|
+
const configDir = opts.configDir ?? join8(homedir6(), ".augmented");
|
|
7221
|
+
const agtBin = process.argv[1];
|
|
7222
|
+
if (!agtBin) {
|
|
7223
|
+
const msg = "Could not resolve the agt binary path from argv. Re-run via the installed `agt` command.";
|
|
7224
|
+
if (json) jsonOutput({ ok: false, error: msg });
|
|
7225
|
+
else error(msg);
|
|
7226
|
+
process.exitCode = 1;
|
|
7227
|
+
return;
|
|
7228
|
+
}
|
|
7229
|
+
if (process.platform === "darwin") {
|
|
7230
|
+
const home = homedir6();
|
|
7231
|
+
const protectedRoots = ["Documents", "Downloads", "Desktop", "Movies", "Music", "Pictures"];
|
|
7232
|
+
const offending = protectedRoots.map((r) => join8(home, r)).find((p) => agtBin === p || agtBin.startsWith(`${p}/`));
|
|
7233
|
+
if (offending) {
|
|
7234
|
+
const msg = `agt binary at ${agtBin} sits inside a macOS TCC-protected folder (${offending}). launchd-spawned processes cannot read files there and the manager would EPERM on startup. Either install agt globally (\`npm install -g @integrity-labs/agt-cli\`) or copy the dist outside protected folders before running this command.`;
|
|
7235
|
+
if (json) jsonOutput({ ok: false, error: msg });
|
|
7236
|
+
else error(msg);
|
|
7237
|
+
process.exitCode = 1;
|
|
7238
|
+
return;
|
|
7239
|
+
}
|
|
7240
|
+
}
|
|
7241
|
+
const env2 = {
|
|
7242
|
+
AGT_HOST: getHost()
|
|
7243
|
+
};
|
|
7244
|
+
const apiKey = getApiKey();
|
|
7245
|
+
if (apiKey) env2.AGT_API_KEY = apiKey;
|
|
7246
|
+
for (const k of ["AGT_TEAM", "PATH", "CLAUDE_PATH"]) {
|
|
7247
|
+
const v = process.env[k];
|
|
7248
|
+
if (v != null) env2[k] = v;
|
|
7249
|
+
}
|
|
7250
|
+
const result = await installSupervisor({ agtBin, intervalSec, configDir, env: env2 });
|
|
7251
|
+
if (!result.ok) {
|
|
7252
|
+
if (json) jsonOutput({ ok: false, error: result.error });
|
|
7253
|
+
else error(result.error);
|
|
7254
|
+
process.exitCode = 1;
|
|
7255
|
+
return;
|
|
7256
|
+
}
|
|
7257
|
+
const status = supervisorStatus();
|
|
7258
|
+
if (json) {
|
|
7259
|
+
jsonOutput({ ok: true, status, details: result.details });
|
|
7260
|
+
return;
|
|
7261
|
+
}
|
|
7262
|
+
success("Supervisor installed.");
|
|
7263
|
+
info(result.details);
|
|
7264
|
+
if (status.kind === "installed" && status.pid != null) {
|
|
7265
|
+
info(`Manager already running under the supervisor \u2014 PID ${status.pid}.`);
|
|
7266
|
+
}
|
|
7267
|
+
}
|
|
7268
|
+
async function managerUninstallCommand() {
|
|
7269
|
+
const json = isJsonMode();
|
|
7270
|
+
const { uninstallSupervisor } = await import("./manager-supervisor-A23IZIWC.js");
|
|
7271
|
+
const result = await uninstallSupervisor();
|
|
7272
|
+
if (!result.ok) {
|
|
7273
|
+
if (json) jsonOutput({ ok: false, error: result.error });
|
|
7274
|
+
else error(result.error);
|
|
7275
|
+
process.exitCode = 1;
|
|
7276
|
+
return;
|
|
7277
|
+
}
|
|
7278
|
+
if (json) jsonOutput({ ok: true, details: result.details });
|
|
7279
|
+
else {
|
|
7280
|
+
success("Supervisor uninstalled.");
|
|
7281
|
+
info(result.details);
|
|
7282
|
+
}
|
|
7283
|
+
}
|
|
7209
7284
|
|
|
7210
7285
|
export {
|
|
7211
7286
|
wrapScheduledTaskPrompt,
|
|
@@ -7268,6 +7343,8 @@ export {
|
|
|
7268
7343
|
managerStartCommand,
|
|
7269
7344
|
SUPERVISOR_RESTART_EXIT_CODE,
|
|
7270
7345
|
managerStopCommand,
|
|
7271
|
-
managerStatusCommand
|
|
7346
|
+
managerStatusCommand,
|
|
7347
|
+
managerInstallCommand,
|
|
7348
|
+
managerUninstallCommand
|
|
7272
7349
|
};
|
|
7273
|
-
//# sourceMappingURL=chunk-
|
|
7350
|
+
//# sourceMappingURL=chunk-EFABVBMW.js.map
|