@integrity-labs/agt-cli 0.28.1218 → 0.28.1220
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 +6 -6
- package/dist/{chunk-2TSVU3OU.js → chunk-QAQIUHMS.js} +32 -17
- package/dist/{chunk-2TSVU3OU.js.map → chunk-QAQIUHMS.js.map} +1 -1
- package/dist/{chunk-F5R622EX.js → chunk-QGBIF6QK.js} +3 -3
- package/dist/{chunk-MJXBNSJY.js → chunk-R7UGBRUR.js} +12 -1
- package/dist/{chunk-MJXBNSJY.js.map → chunk-R7UGBRUR.js.map} +1 -1
- package/dist/{chunk-QI5C2VCI.js → chunk-WXJXO5TE.js} +2 -2
- package/dist/{chunk-HAQXH2J4.js → chunk-YR5PKAAL.js} +2 -2
- package/dist/{claude-code-updater-XZTIAQQ3.js → claude-code-updater-FWBF4JTA.js} +3 -3
- package/dist/{claude-pair-runtime-N7TZVTF7.js → claude-pair-runtime-6BSR5RTE.js} +3 -3
- package/dist/lib/manager-worker.js +127 -28
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +11 -0
- package/dist/mcp/index.js +177 -19
- package/dist/mcp/origami.js +11 -0
- package/dist/mcp/slack-channel.js +11 -0
- package/dist/mcp/telegram-channel.js +11 -0
- package/dist/{persistent-session-NQMAJQF2.js → persistent-session-YMVE4OG5.js} +4 -4
- package/dist/{responsiveness-probe-JGMZCQCI.js → responsiveness-probe-DD7LCTAS.js} +4 -4
- package/dist/{session-auth-dead-DPMMX7QL.js → session-auth-dead-QZOUWP4O.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-F5R622EX.js.map → chunk-QGBIF6QK.js.map} +0 -0
- /package/dist/{chunk-QI5C2VCI.js.map → chunk-WXJXO5TE.js.map} +0 -0
- /package/dist/{chunk-HAQXH2J4.js.map → chunk-YR5PKAAL.js.map} +0 -0
- /package/dist/{claude-code-updater-XZTIAQQ3.js.map → claude-code-updater-FWBF4JTA.js.map} +0 -0
- /package/dist/{claude-pair-runtime-N7TZVTF7.js.map → claude-pair-runtime-6BSR5RTE.js.map} +0 -0
- /package/dist/{persistent-session-NQMAJQF2.js.map → persistent-session-YMVE4OG5.js.map} +0 -0
- /package/dist/{responsiveness-probe-JGMZCQCI.js.map → responsiveness-probe-DD7LCTAS.js.map} +0 -0
- /package/dist/{session-auth-dead-DPMMX7QL.js.map → session-auth-dead-QZOUWP4O.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-QAQIUHMS.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-QGBIF6QK.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-YR5PKAAL.js";
|
|
54
54
|
import "../chunk-HYQ7VOC3.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-R7UGBRUR.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1220" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1220" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
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");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
parseEnvFileEntries,
|
|
17
17
|
parseEnvIntegrations,
|
|
18
18
|
shellQuote
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QGBIF6QK.js";
|
|
20
20
|
import {
|
|
21
21
|
readDailySessionPin,
|
|
22
22
|
sessionTranscriptDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YR5PKAAL.js";
|
|
24
24
|
import {
|
|
25
25
|
classifyUnanswerablePane,
|
|
26
26
|
isConsumerTermsDialogVisible,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
scanConfigForLiteralSecrets,
|
|
94
94
|
worseConnectivityOutcome,
|
|
95
95
|
wrapScheduledTaskPrompt
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-R7UGBRUR.js";
|
|
97
97
|
import {
|
|
98
98
|
claudeJsonPathFor,
|
|
99
99
|
effectiveClaudeJsonPath,
|
|
@@ -6517,8 +6517,8 @@ ${sections}`
|
|
|
6517
6517
|
const agentDir = getAgentDir(codeName);
|
|
6518
6518
|
const regFile = join5(agentDir, "registration.json");
|
|
6519
6519
|
if (existsSync4(regFile)) {
|
|
6520
|
-
const { unlinkSync:
|
|
6521
|
-
|
|
6520
|
+
const { unlinkSync: unlinkSync6 } = await import("fs");
|
|
6521
|
+
unlinkSync6(regFile);
|
|
6522
6522
|
}
|
|
6523
6523
|
return true;
|
|
6524
6524
|
} catch {
|
|
@@ -8084,7 +8084,7 @@ function exchangeFailureKind(err) {
|
|
|
8084
8084
|
}
|
|
8085
8085
|
|
|
8086
8086
|
// src/lib/api-client.ts
|
|
8087
|
-
var agtCliVersion = true ? "0.28.
|
|
8087
|
+
var agtCliVersion = true ? "0.28.1220" : "dev";
|
|
8088
8088
|
var lastConfigHash = null;
|
|
8089
8089
|
function setConfigHash(hash) {
|
|
8090
8090
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8426,9 +8426,9 @@ async function getHostId() {
|
|
|
8426
8426
|
}
|
|
8427
8427
|
|
|
8428
8428
|
// src/lib/atomic-write.ts
|
|
8429
|
-
import { closeSync, fsyncSync, openSync, writeSync, renameSync as renameSync5, mkdirSync as mkdirSync6 } from "fs";
|
|
8429
|
+
import { closeSync, fchmodSync, fchownSync, fsyncSync, openSync, writeSync, renameSync as renameSync5, mkdirSync as mkdirSync6, unlinkSync as unlinkSync4 } from "fs";
|
|
8430
8430
|
import { dirname as dirname4 } from "path";
|
|
8431
|
-
function atomicWriteFileSync(path, data) {
|
|
8431
|
+
function atomicWriteFileSync(path, data, own) {
|
|
8432
8432
|
const dirPath = dirname4(path);
|
|
8433
8433
|
const tmpPath = `${path}.tmp.${process.pid}.${Math.random().toString(36).slice(2, 8)}`;
|
|
8434
8434
|
try {
|
|
@@ -8437,15 +8437,30 @@ function atomicWriteFileSync(path, data) {
|
|
|
8437
8437
|
}
|
|
8438
8438
|
const fd = openSync(tmpPath, "w", 420);
|
|
8439
8439
|
try {
|
|
8440
|
-
writeSync(fd, data);
|
|
8441
8440
|
try {
|
|
8442
|
-
|
|
8441
|
+
writeSync(fd, data);
|
|
8442
|
+
if (own?.mode !== void 0) fchmodSync(fd, own.mode);
|
|
8443
|
+
if (own?.uid !== void 0 && own.gid !== void 0) {
|
|
8444
|
+
try {
|
|
8445
|
+
fchownSync(fd, own.uid, own.gid);
|
|
8446
|
+
} catch {
|
|
8447
|
+
}
|
|
8448
|
+
}
|
|
8449
|
+
try {
|
|
8450
|
+
fsyncSync(fd);
|
|
8451
|
+
} catch {
|
|
8452
|
+
}
|
|
8453
|
+
} finally {
|
|
8454
|
+
closeSync(fd);
|
|
8455
|
+
}
|
|
8456
|
+
renameSync5(tmpPath, path);
|
|
8457
|
+
} catch (err) {
|
|
8458
|
+
try {
|
|
8459
|
+
unlinkSync4(tmpPath);
|
|
8443
8460
|
} catch {
|
|
8444
8461
|
}
|
|
8445
|
-
|
|
8446
|
-
closeSync(fd);
|
|
8462
|
+
throw err;
|
|
8447
8463
|
}
|
|
8448
|
-
renameSync5(tmpPath, path);
|
|
8449
8464
|
try {
|
|
8450
8465
|
const dirFd = openSync(dirPath, "r");
|
|
8451
8466
|
try {
|
|
@@ -12499,7 +12514,7 @@ function table(headers, rows) {
|
|
|
12499
12514
|
}
|
|
12500
12515
|
|
|
12501
12516
|
// src/lib/watchdog.ts
|
|
12502
|
-
import { readFileSync as readFileSync11, writeFileSync as writeFileSync7, unlinkSync as
|
|
12517
|
+
import { readFileSync as readFileSync11, writeFileSync as writeFileSync7, unlinkSync as unlinkSync5, existsSync as existsSync9, mkdirSync as mkdirSync7, openSync as openSync2, closeSync as closeSync2, chmodSync as chmodSync5 } from "fs";
|
|
12503
12518
|
import { join as join11 } from "path";
|
|
12504
12519
|
import { spawn as spawn3, execFileSync as execFileSync3 } from "child_process";
|
|
12505
12520
|
var DEFAULT_CONFIG_DIR = join11(process.env["HOME"] ?? "/tmp", ".augmented");
|
|
@@ -12530,7 +12545,7 @@ function readPidFile(configDir) {
|
|
|
12530
12545
|
}
|
|
12531
12546
|
function removePidFile(configDir) {
|
|
12532
12547
|
try {
|
|
12533
|
-
|
|
12548
|
+
unlinkSync5(getManagerPaths(configDir).pidFile);
|
|
12534
12549
|
} catch {
|
|
12535
12550
|
}
|
|
12536
12551
|
}
|
|
@@ -12575,7 +12590,7 @@ function readStateFile(configDir) {
|
|
|
12575
12590
|
}
|
|
12576
12591
|
function removeStateFile(configDir) {
|
|
12577
12592
|
try {
|
|
12578
|
-
|
|
12593
|
+
unlinkSync5(getManagerPaths(configDir).stateFile);
|
|
12579
12594
|
} catch {
|
|
12580
12595
|
}
|
|
12581
12596
|
}
|
|
@@ -13709,4 +13724,4 @@ export {
|
|
|
13709
13724
|
managerInstallSystemUnitCommand,
|
|
13710
13725
|
managerUninstallSystemUnitCommand
|
|
13711
13726
|
};
|
|
13712
|
-
//# sourceMappingURL=chunk-
|
|
13727
|
+
//# sourceMappingURL=chunk-QAQIUHMS.js.map
|