@integrity-labs/agt-cli 0.28.805 → 0.28.806
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 +5 -5
- package/dist/{chunk-YNSVQMSD.js → chunk-7TIQODEK.js} +59 -6
- package/dist/{chunk-YNSVQMSD.js.map → chunk-7TIQODEK.js.map} +1 -1
- package/dist/{chunk-2FL6V4E5.js → chunk-RMBASAMS.js} +33 -1
- package/dist/chunk-RMBASAMS.js.map +1 -0
- package/dist/{chunk-DHOVIXR5.js → chunk-TWZFTSGP.js} +17 -2
- package/dist/{chunk-DHOVIXR5.js.map → chunk-TWZFTSGP.js.map} +1 -1
- package/dist/{claude-pair-runtime-WS3IVDDE.js → claude-pair-runtime-YEW7Y5N2.js} +2 -2
- package/dist/lib/manager-worker.js +54 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +32 -0
- package/dist/mcp/index.js +32 -0
- package/dist/mcp/origami.js +32 -0
- package/dist/mcp/slack-channel.js +32 -0
- package/dist/mcp/telegram-channel.js +32 -0
- package/dist/{persistent-session-PV4GPHG3.js → persistent-session-GPVAPK4S.js} +3 -3
- package/dist/{responsiveness-probe-X3AW5TGA.js → responsiveness-probe-7FEKDJZW.js} +3 -3
- package/dist/{session-auth-dead-W6K5VEU7.js → session-auth-dead-ZBMVGQYW.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-2FL6V4E5.js.map +0 -1
- /package/dist/{claude-pair-runtime-WS3IVDDE.js.map → claude-pair-runtime-YEW7Y5N2.js.map} +0 -0
- /package/dist/{persistent-session-PV4GPHG3.js.map → persistent-session-GPVAPK4S.js.map} +0 -0
- /package/dist/{responsiveness-probe-X3AW5TGA.js.map → responsiveness-probe-7FEKDJZW.js.map} +0 -0
- /package/dist/{session-auth-dead-W6K5VEU7.js.map → session-auth-dead-ZBMVGQYW.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-7TIQODEK.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-TWZFTSGP.js";
|
|
49
49
|
import {
|
|
50
50
|
AnchorSessionClient,
|
|
51
51
|
CHANNEL_REGISTRY,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
serializeManifestForSlackCli,
|
|
80
80
|
sessionFileExists,
|
|
81
81
|
sessionTranscriptDir
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-RMBASAMS.js";
|
|
83
83
|
import "../chunk-XWVM4KPK.js";
|
|
84
84
|
|
|
85
85
|
// src/bin/agt.ts
|
|
@@ -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.806" : "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.806" : "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) => {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
buildNativeMcpEntry,
|
|
6
6
|
buildOAuthRemoteMcpProxyEntry,
|
|
7
7
|
buildRemoteMcpEntry,
|
|
8
|
+
classifyUnanswerablePane,
|
|
8
9
|
expandTemplateVars,
|
|
9
10
|
getProjectDir,
|
|
10
11
|
hardBoundedExecFile,
|
|
@@ -13,8 +14,9 @@ import {
|
|
|
13
14
|
mergeEnvIntegrationsContent,
|
|
14
15
|
parseEnvFileEntries,
|
|
15
16
|
parseEnvIntegrations,
|
|
16
|
-
shellQuote
|
|
17
|
-
|
|
17
|
+
shellQuote,
|
|
18
|
+
summarizeUnanswerablePane
|
|
19
|
+
} from "./chunk-TWZFTSGP.js";
|
|
18
20
|
import {
|
|
19
21
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
20
22
|
INTEGRATIONS_SECTION_END,
|
|
@@ -69,7 +71,7 @@ import {
|
|
|
69
71
|
sessionTranscriptDir,
|
|
70
72
|
worseConnectivityOutcome,
|
|
71
73
|
wrapScheduledTaskPrompt
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-RMBASAMS.js";
|
|
73
75
|
import {
|
|
74
76
|
parsePsRows
|
|
75
77
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6521,7 +6523,7 @@ function exchangeFailureKind(err) {
|
|
|
6521
6523
|
}
|
|
6522
6524
|
|
|
6523
6525
|
// src/lib/api-client.ts
|
|
6524
|
-
var agtCliVersion = true ? "0.28.
|
|
6526
|
+
var agtCliVersion = true ? "0.28.806" : "dev";
|
|
6525
6527
|
var lastConfigHash = null;
|
|
6526
6528
|
function setConfigHash(hash) {
|
|
6527
6529
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -7554,7 +7556,10 @@ function reapMissingMcpSessions(args) {
|
|
|
7554
7556
|
// ENG-8013: default false → a "no live child" observation is only excluded
|
|
7555
7557
|
// from the give-up/quarantine budget when the caller positively identifies
|
|
7556
7558
|
// the current generation as externally-churned. Legacy callers/tests unchanged.
|
|
7557
|
-
currentGenerationExternallyStarted = false
|
|
7559
|
+
currentGenerationExternallyStarted = false,
|
|
7560
|
+
// ENG-9932: unwired => strict no-op, restart proceeds exactly as before.
|
|
7561
|
+
readPane,
|
|
7562
|
+
onPaneBlocked
|
|
7558
7563
|
} = args;
|
|
7559
7564
|
const now = args.now ?? Date.now;
|
|
7560
7565
|
const runPs = args.runPs ?? (isolated ? (
|
|
@@ -7905,6 +7910,54 @@ function reapMissingMcpSessions(args) {
|
|
|
7905
7910
|
genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0
|
|
7906
7911
|
};
|
|
7907
7912
|
}
|
|
7913
|
+
if (readPane) {
|
|
7914
|
+
let pane = null;
|
|
7915
|
+
try {
|
|
7916
|
+
pane = readPane(codeName);
|
|
7917
|
+
} catch (err) {
|
|
7918
|
+
log2(
|
|
7919
|
+
`[mcp-presence-reaper] '${codeName}': pane read threw (${err.message}) \u2014 proceeding with restart (ENG-9932 fails open)`
|
|
7920
|
+
);
|
|
7921
|
+
}
|
|
7922
|
+
const blocked = classifyUnanswerablePane(pane);
|
|
7923
|
+
if (blocked) {
|
|
7924
|
+
const fingerprint = pane ? summarizeUnanswerablePane(pane) : null;
|
|
7925
|
+
log2(
|
|
7926
|
+
`[mcp-presence-reaper] '${codeName}': NOT restarting \u2014 session is blocked on an interactive prompt (${blocked}), so declared MCP(s) [${active.join(", ")}] were never spawned rather than having died. A restart re-presents the same prompt and burns the ENG-5441 breaker budget. Needs a human at the pane: tmux attach -t agt-${codeName}` + // Fingerprint, never pane text — see summarizeUnanswerablePane.
|
|
7927
|
+
(fingerprint ? ` (modal fp=${fingerprint.hash} len=${fingerprint.length})` : "")
|
|
7928
|
+
);
|
|
7929
|
+
if (onPaneBlocked) {
|
|
7930
|
+
try {
|
|
7931
|
+
onPaneBlocked(codeName, {
|
|
7932
|
+
kind: blocked,
|
|
7933
|
+
activeKeys: [...active],
|
|
7934
|
+
paneHash: fingerprint?.hash ?? null,
|
|
7935
|
+
paneLength: fingerprint?.length ?? null
|
|
7936
|
+
});
|
|
7937
|
+
} catch (err) {
|
|
7938
|
+
log2(
|
|
7939
|
+
`[mcp-presence-reaper] onPaneBlocked callback threw for '${codeName}' (suppressed): ${err.message}`
|
|
7940
|
+
);
|
|
7941
|
+
}
|
|
7942
|
+
}
|
|
7943
|
+
return {
|
|
7944
|
+
missing,
|
|
7945
|
+
restarted: false,
|
|
7946
|
+
reason: "pane-blocked-on-dialog",
|
|
7947
|
+
paneBlockedOn: blocked,
|
|
7948
|
+
givenUp: givenUp.length > 0 ? givenUp : void 0,
|
|
7949
|
+
backingOff: backingOff.length > 0 ? backingOff : void 0,
|
|
7950
|
+
rotationGraced: rotationGraced.length > 0 ? rotationGraced : void 0,
|
|
7951
|
+
rotationProbeArmed: rotationProbeArmed.length > 0 ? rotationProbeArmed : void 0,
|
|
7952
|
+
rotationProbeWaiting: rotationProbeWaiting.length > 0 ? rotationProbeWaiting : void 0,
|
|
7953
|
+
rotationProbeExhausted: rotationProbeExhausted.length > 0 ? rotationProbeExhausted : void 0,
|
|
7954
|
+
rotationRespawnOutcomes: Object.keys(rotationRespawnOutcomes).length > 0 ? rotationRespawnOutcomes : void 0,
|
|
7955
|
+
quarantined: quarantined.length > 0 ? quarantined : void 0,
|
|
7956
|
+
wouldQuarantine: wouldQuarantine.length > 0 ? wouldQuarantine : void 0,
|
|
7957
|
+
genuinelyDead: genuinelyDead.length > 0 ? genuinelyDead : void 0
|
|
7958
|
+
};
|
|
7959
|
+
}
|
|
7960
|
+
}
|
|
7908
7961
|
const givenUpSuffix = givenUp.length > 0 ? ` (skipping over-cap: [${givenUp.join(", ")}])` : "";
|
|
7909
7962
|
log2(
|
|
7910
7963
|
`[mcp-presence-reaper] '${codeName}': declared MCP(s) [${active.join(", ")}] have no live children \u2014 restarting session${givenUpSuffix}`
|
|
@@ -10765,4 +10818,4 @@ export {
|
|
|
10765
10818
|
managerInstallSystemUnitCommand,
|
|
10766
10819
|
managerUninstallSystemUnitCommand
|
|
10767
10820
|
};
|
|
10768
|
-
//# sourceMappingURL=chunk-
|
|
10821
|
+
//# sourceMappingURL=chunk-7TIQODEK.js.map
|