@integrity-labs/agt-cli 0.28.1315 → 0.28.1317
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/{api-client-WRBPHC5L.js → api-client-F33REB5P.js} +2 -2
- package/dist/bin/agt.js +5 -5
- package/dist/{chunk-BSZRE4X6.js → chunk-K65L7VWZ.js} +21 -1
- package/dist/chunk-K65L7VWZ.js.map +1 -0
- package/dist/{chunk-G644BWOT.js → chunk-NJOFLFR4.js} +3 -3
- package/dist/{chunk-QWJMDUEU.js → chunk-RNLQGD6H.js} +2 -2
- package/dist/{claude-pair-runtime-QA3AUNBF.js → claude-pair-runtime-RASVBPT3.js} +2 -2
- package/dist/lib/manager-worker.js +130 -44
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-K5WFQVXD.js → persistent-session-T2BMZYPF.js} +6 -2
- package/dist/{responsiveness-probe-Q5PDMK2L.js → responsiveness-probe-UP33EKKX.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-BSZRE4X6.js.map +0 -1
- /package/dist/{api-client-WRBPHC5L.js.map → api-client-F33REB5P.js.map} +0 -0
- /package/dist/{chunk-G644BWOT.js.map → chunk-NJOFLFR4.js.map} +0 -0
- /package/dist/{chunk-QWJMDUEU.js.map → chunk-RNLQGD6H.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QA3AUNBF.js.map → claude-pair-runtime-RASVBPT3.js.map} +0 -0
- /package/dist/{persistent-session-K5WFQVXD.js.map → persistent-session-T2BMZYPF.js.map} +0 -0
- /package/dist/{responsiveness-probe-Q5PDMK2L.js.map → responsiveness-probe-UP33EKKX.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RNLQGD6H.js";
|
|
19
19
|
import "./chunk-JYBRZAAK.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-F33REB5P.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-NJOFLFR4.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-RNLQGD6H.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-K65L7VWZ.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1317" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1317" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
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");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -4939,6 +4939,10 @@ function findForeignAgentIdsInMcpConfig(args) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
var sessions2 = /* @__PURE__ */ new Map();
|
|
4941
4941
|
var SPAWN_SUPERSEDED = "superseded";
|
|
4942
|
+
var SPAWN_LAUNCH_FENCED = "launch-fenced";
|
|
4943
|
+
function markLaunchFenced(session) {
|
|
4944
|
+
session.status = "stopped";
|
|
4945
|
+
}
|
|
4942
4946
|
var spawnGenerationCounter = 0;
|
|
4943
4947
|
function beginSpawnPending(record) {
|
|
4944
4948
|
record.spawnPending = true;
|
|
@@ -5260,6 +5264,11 @@ function runTmuxSpawnPlan(opts) {
|
|
|
5260
5264
|
opts.onSpawnFailed(SPAWN_SUPERSEDED);
|
|
5261
5265
|
return;
|
|
5262
5266
|
}
|
|
5267
|
+
if (failure === null && opts.launchAllowed && !opts.launchAllowed()) {
|
|
5268
|
+
runCleanup();
|
|
5269
|
+
opts.onSpawnFailed(SPAWN_LAUNCH_FENCED);
|
|
5270
|
+
return;
|
|
5271
|
+
}
|
|
5263
5272
|
if (failure === null) spawnRealSession();
|
|
5264
5273
|
else opts.onSpawnFailed(failure);
|
|
5265
5274
|
};
|
|
@@ -5763,6 +5772,7 @@ function spawnSession(config, session) {
|
|
|
5763
5772
|
env: tmuxEnv
|
|
5764
5773
|
},
|
|
5765
5774
|
stillCurrent: () => spawnStillCurrent(sessions2.get(codeName), session, generation),
|
|
5775
|
+
launchAllowed: config.launchStillAllowed,
|
|
5766
5776
|
onSessionSpawned: (child) => {
|
|
5767
5777
|
child.on("close", onTmuxSessionClose);
|
|
5768
5778
|
child.on("error", onTmuxSessionError);
|
|
@@ -5772,6 +5782,14 @@ function spawnSession(config, session) {
|
|
|
5772
5782
|
onSpawnFailed: (reason) => {
|
|
5773
5783
|
spawnFailed = true;
|
|
5774
5784
|
spawnSettledNow();
|
|
5785
|
+
if (reason === SPAWN_LAUNCH_FENCED) {
|
|
5786
|
+
markLaunchFenced(session);
|
|
5787
|
+
log2(
|
|
5788
|
+
`[persistent-session] launch for '${codeName}' refused by its launch fence (its single-start grant lapsed during the bootstrap): not starting it [ENG-12290]`
|
|
5789
|
+
);
|
|
5790
|
+
config.onLaunchFenced?.();
|
|
5791
|
+
return;
|
|
5792
|
+
}
|
|
5775
5793
|
if (reason === SPAWN_SUPERSEDED) {
|
|
5776
5794
|
log2(
|
|
5777
5795
|
`[persistent-session] spawn for '${codeName}' superseded (generation ${generation}, current ${sessions2.get(codeName)?.spawnGeneration ?? "none"}): not starting it; its key was never handed to a process [ENG-12126]`
|
|
@@ -6687,6 +6705,8 @@ export {
|
|
|
6687
6705
|
describePaneAgentIdMismatch,
|
|
6688
6706
|
findForeignAgentIdsInMcpConfig,
|
|
6689
6707
|
SPAWN_SUPERSEDED,
|
|
6708
|
+
SPAWN_LAUNCH_FENCED,
|
|
6709
|
+
markLaunchFenced,
|
|
6690
6710
|
beginSpawnPending,
|
|
6691
6711
|
nextSpawnGeneration,
|
|
6692
6712
|
spawnStillCurrent,
|
|
@@ -6741,4 +6761,4 @@ export {
|
|
|
6741
6761
|
stopAllSessionsAndWait,
|
|
6742
6762
|
getProjectDir
|
|
6743
6763
|
};
|
|
6744
|
-
//# sourceMappingURL=chunk-
|
|
6764
|
+
//# sourceMappingURL=chunk-K65L7VWZ.js.map
|