@integrity-labs/agt-cli 0.28.836 → 0.28.837
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 +3 -3
- package/dist/{chunk-E6B43IJZ.js → chunk-PWCWBPNG.js} +32 -3
- package/dist/{chunk-E6B43IJZ.js.map → chunk-PWCWBPNG.js.map} +1 -1
- package/dist/lib/manager-worker.js +2 -2
- package/dist/mcp/direct-chat-channel.js +148 -119
- package/dist/mcp/index.js +196 -120
- package/package.json +1 -1
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-PWCWBPNG.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5467
5467
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5468
5468
|
import chalk18 from "chalk";
|
|
5469
5469
|
import ora16 from "ora";
|
|
5470
|
-
var cliVersion = true ? "0.28.
|
|
5470
|
+
var cliVersion = true ? "0.28.837" : "dev";
|
|
5471
5471
|
async function fetchLatestVersion() {
|
|
5472
5472
|
const host2 = getHost();
|
|
5473
5473
|
if (!host2) return null;
|
|
@@ -6658,7 +6658,7 @@ function handleError(err) {
|
|
|
6658
6658
|
}
|
|
6659
6659
|
|
|
6660
6660
|
// src/bin/agt.ts
|
|
6661
|
-
var cliVersion2 = true ? "0.28.
|
|
6661
|
+
var cliVersion2 = true ? "0.28.837" : "dev";
|
|
6662
6662
|
var program = new Command();
|
|
6663
6663
|
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");
|
|
6664
6664
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -451,7 +451,7 @@ function orderTitlesForDescription(entries) {
|
|
|
451
451
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/index.js
|
|
452
452
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync4, mkdirSync as mkdirSync3, existsSync as existsSync4, chmodSync as chmodSync4, readdirSync, rmSync as rmSync2, copyFileSync, lstatSync, realpathSync, symlinkSync, readlinkSync, renameSync as renameSync4, opendirSync } from "fs";
|
|
453
453
|
import { join as join3, relative, dirname as dirname3 } from "path";
|
|
454
|
-
import { homedir as homedir3 } from "os";
|
|
454
|
+
import { homedir as homedir3, tmpdir } from "os";
|
|
455
455
|
import { execFile } from "child_process";
|
|
456
456
|
|
|
457
457
|
// ../../packages/core/dist/integrations/xurl-config.js
|
|
@@ -1864,6 +1864,34 @@ function sweepScratchDir(codeName, now = Date.now()) {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
return removed;
|
|
1866
1866
|
}
|
|
1867
|
+
var STRANDED_ARTEFACT_TMP_PREFIXES = [
|
|
1868
|
+
"augmented-artefact-",
|
|
1869
|
+
"augmented-artefact-source-"
|
|
1870
|
+
];
|
|
1871
|
+
function sweepStrandedArtefactTmpDirs(now = Date.now()) {
|
|
1872
|
+
const root = tmpdir();
|
|
1873
|
+
let entries;
|
|
1874
|
+
try {
|
|
1875
|
+
entries = readdirSync(root);
|
|
1876
|
+
} catch {
|
|
1877
|
+
return 0;
|
|
1878
|
+
}
|
|
1879
|
+
const cutoff = now - SCRATCH_RETENTION_DAYS * 24 * 60 * 60 * 1e3;
|
|
1880
|
+
let removed = 0;
|
|
1881
|
+
for (const entry of entries) {
|
|
1882
|
+
if (!STRANDED_ARTEFACT_TMP_PREFIXES.some((prefix) => entry.startsWith(prefix)))
|
|
1883
|
+
continue;
|
|
1884
|
+
const full = join3(root, entry);
|
|
1885
|
+
try {
|
|
1886
|
+
if (isFreshWithin(full, cutoff))
|
|
1887
|
+
continue;
|
|
1888
|
+
rmSync2(full, { recursive: true, force: true });
|
|
1889
|
+
removed += 1;
|
|
1890
|
+
} catch {
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
return removed;
|
|
1894
|
+
}
|
|
1867
1895
|
var SCRATCH_SCAN_ENTRY_BUDGET = 5e3;
|
|
1868
1896
|
function isFreshWithin(path, cutoff) {
|
|
1869
1897
|
let budget = SCRATCH_SCAN_ENTRY_BUDGET;
|
|
@@ -2051,6 +2079,7 @@ function deployArtifactsToProject(codeName, provisionDir) {
|
|
|
2051
2079
|
mkdirSync3(getScratchDir(codeName), { recursive: true });
|
|
2052
2080
|
mkdirSync3(getAgentTmpDir(codeName), { recursive: true });
|
|
2053
2081
|
sweepScratchDir(codeName);
|
|
2082
|
+
sweepStrandedArtefactTmpDirs();
|
|
2054
2083
|
} catch (err) {
|
|
2055
2084
|
process.stderr.write(`[scratch] [ensure-or-sweep-failed] agent=${codeName} error=${err.message}
|
|
2056
2085
|
`);
|
|
@@ -6537,7 +6566,7 @@ function exchangeFailureKind(err) {
|
|
|
6537
6566
|
}
|
|
6538
6567
|
|
|
6539
6568
|
// src/lib/api-client.ts
|
|
6540
|
-
var agtCliVersion = true ? "0.28.
|
|
6569
|
+
var agtCliVersion = true ? "0.28.837" : "dev";
|
|
6541
6570
|
var lastConfigHash = null;
|
|
6542
6571
|
function setConfigHash(hash) {
|
|
6543
6572
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -10895,4 +10924,4 @@ export {
|
|
|
10895
10924
|
managerInstallSystemUnitCommand,
|
|
10896
10925
|
managerUninstallSystemUnitCommand
|
|
10897
10926
|
};
|
|
10898
|
-
//# sourceMappingURL=chunk-
|
|
10927
|
+
//# sourceMappingURL=chunk-PWCWBPNG.js.map
|