@integrity-labs/agt-cli 0.28.624 → 0.28.626
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-4CJSB2EX.js → chunk-4NCEO44Q.js} +36 -6
- package/dist/{chunk-4CJSB2EX.js.map → chunk-4NCEO44Q.js.map} +1 -1
- package/dist/{chunk-UIB2SMFE.js → chunk-7QNQRV3A.js} +2 -2
- package/dist/{chunk-EDH4GZIW.js → chunk-XQ7BNYC4.js} +48 -1
- package/dist/{chunk-EDH4GZIW.js.map → chunk-XQ7BNYC4.js.map} +1 -1
- package/dist/{claude-pair-runtime-4JKKKO2Q.js → claude-pair-runtime-OU7EYHVL.js} +2 -2
- package/dist/lib/manager-worker.js +13 -13
- package/dist/mcp/augmented-admin.js +84 -108
- package/dist/mcp/slack-channel.js +39 -0
- package/dist/{persistent-session-UCWXUJE6.js → persistent-session-VUVAFI4R.js} +3 -3
- package/dist/{responsiveness-probe-N7LUZL3X.js → responsiveness-probe-Q4HYKKJJ.js} +3 -3
- package/dist/{session-auth-dead-RLQK5ZQV.js → session-auth-dead-WKUINREY.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-UIB2SMFE.js.map → chunk-7QNQRV3A.js.map} +0 -0
- /package/dist/{claude-pair-runtime-4JKKKO2Q.js.map → claude-pair-runtime-OU7EYHVL.js.map} +0 -0
- /package/dist/{persistent-session-UCWXUJE6.js.map → persistent-session-VUVAFI4R.js.map} +0 -0
- /package/dist/{responsiveness-probe-N7LUZL3X.js.map → responsiveness-probe-Q4HYKKJJ.js.map} +0 -0
- /package/dist/{session-auth-dead-RLQK5ZQV.js.map → session-auth-dead-WKUINREY.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-4NCEO44Q.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-7QNQRV3A.js";
|
|
47
47
|
import {
|
|
48
48
|
AnchorSessionClient,
|
|
49
49
|
CHANNEL_REGISTRY,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
requiredMcpWildcard,
|
|
74
74
|
resolveChannels,
|
|
75
75
|
serializeManifestForSlackCli
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-XQ7BNYC4.js";
|
|
77
77
|
import "../chunk-XWVM4KPK.js";
|
|
78
78
|
|
|
79
79
|
// src/bin/agt.ts
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.626" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.626" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
expandTemplateVars,
|
|
8
8
|
isolationMode,
|
|
9
9
|
parseEnvIntegrations
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7QNQRV3A.js";
|
|
11
11
|
import {
|
|
12
12
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
13
13
|
INTEGRATIONS_SECTION_END,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
RESTART_BREAKER_PROVISIONING_MAX,
|
|
23
23
|
RESTART_BREAKER_PROVISIONING_WINDOW_MS,
|
|
24
24
|
SCRATCH_RETENTION_DAYS,
|
|
25
|
+
SLACK_SOCKET_STATE_FILENAME,
|
|
25
26
|
bestConnectivityEvidence,
|
|
26
27
|
buildForwardHeaders,
|
|
27
28
|
buildIntegrationsSection,
|
|
@@ -32,9 +33,11 @@ import {
|
|
|
32
33
|
handshakeToolsListOutcome,
|
|
33
34
|
isControlPlaneOnlyConfigKey,
|
|
34
35
|
isDefaultRemoteMcpConnection,
|
|
36
|
+
isSlackInboundTransportDown,
|
|
35
37
|
listFlagDefinitions,
|
|
36
38
|
mcpWildcardsForServers,
|
|
37
39
|
normalizeFlagValue,
|
|
40
|
+
parseSlackSocketState,
|
|
38
41
|
probeComposioAccount,
|
|
39
42
|
probeComposioMcpToolCall,
|
|
40
43
|
probeHttpProvider,
|
|
@@ -48,7 +51,7 @@ import {
|
|
|
48
51
|
resolveConnectivityProbe,
|
|
49
52
|
worseConnectivityOutcome,
|
|
50
53
|
wrapScheduledTaskPrompt
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XQ7BNYC4.js";
|
|
52
55
|
import {
|
|
53
56
|
parsePsRows
|
|
54
57
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6066,7 +6069,7 @@ function exchangeFailureKind(err) {
|
|
|
6066
6069
|
}
|
|
6067
6070
|
|
|
6068
6071
|
// src/lib/api-client.ts
|
|
6069
|
-
var agtCliVersion = true ? "0.28.
|
|
6072
|
+
var agtCliVersion = true ? "0.28.626" : "dev";
|
|
6070
6073
|
var lastConfigHash = null;
|
|
6071
6074
|
function setConfigHash(hash) {
|
|
6072
6075
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8213,13 +8216,19 @@ function computeSessionToolBindStatus(input) {
|
|
|
8213
8216
|
missingStdioKeys,
|
|
8214
8217
|
httpReachable,
|
|
8215
8218
|
sessionLoadedServerKeys,
|
|
8216
|
-
coldStartActive = false
|
|
8219
|
+
coldStartActive = false,
|
|
8220
|
+
transportDownKeys
|
|
8217
8221
|
} = input;
|
|
8218
8222
|
if (stdioServerKeys.length === 0 && httpServerKeys.length === 0 && proxyServerKeys.length === 0)
|
|
8219
8223
|
return "unknown";
|
|
8220
8224
|
if (stdioServerKeys.some((k) => missingStdioKeys.has(k)) || proxyServerKeys.some((k) => missingStdioKeys.has(k))) {
|
|
8221
8225
|
return coldStartActive ? "unknown" : "missing";
|
|
8222
8226
|
}
|
|
8227
|
+
if (transportDownKeys && transportDownKeys.size > 0) {
|
|
8228
|
+
if (stdioServerKeys.some((k) => transportDownKeys.has(k)) || httpServerKeys.some((k) => transportDownKeys.has(k)) || proxyServerKeys.some((k) => transportDownKeys.has(k))) {
|
|
8229
|
+
return "unreachable";
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8223
8232
|
for (const k of proxyServerKeys) {
|
|
8224
8233
|
if (httpReachable.get(k) === false) return "unreachable";
|
|
8225
8234
|
}
|
|
@@ -8298,6 +8307,7 @@ async function runSessionToolBindProbes(integrations, options) {
|
|
|
8298
8307
|
}
|
|
8299
8308
|
const nowMs = (options.now?.() ?? /* @__PURE__ */ new Date()).getTime();
|
|
8300
8309
|
const coldStartActive = options.sessionStartedMs != null && nowMs - options.sessionStartedMs < DEFAULT_COLD_START_GRACE_MS;
|
|
8310
|
+
const transportDown = options.transportDownKeys?.();
|
|
8301
8311
|
const status = computeSessionToolBindStatus({
|
|
8302
8312
|
stdioServerKeys: stdio,
|
|
8303
8313
|
httpServerKeys: http,
|
|
@@ -8305,7 +8315,8 @@ async function runSessionToolBindProbes(integrations, options) {
|
|
|
8305
8315
|
missingStdioKeys: options.missingStdioKeys,
|
|
8306
8316
|
httpReachable,
|
|
8307
8317
|
sessionLoadedServerKeys: options.sessionLoadedServerKeys ?? /* @__PURE__ */ new Set(),
|
|
8308
|
-
coldStartActive
|
|
8318
|
+
coldStartActive,
|
|
8319
|
+
...transportDown ? { transportDownKeys: transportDown } : {}
|
|
8309
8320
|
});
|
|
8310
8321
|
if (status === "unknown") {
|
|
8311
8322
|
skipped += 1;
|
|
@@ -8320,6 +8331,11 @@ async function runSessionToolBindProbes(integrations, options) {
|
|
|
8320
8331
|
for (const k of proxy) {
|
|
8321
8332
|
if (httpReachable.get(k) === false) failingKeys.add(k);
|
|
8322
8333
|
}
|
|
8334
|
+
if (transportDown) {
|
|
8335
|
+
for (const k of [...stdio, ...proxy]) {
|
|
8336
|
+
if (transportDown.has(k)) failingKeys.add(k);
|
|
8337
|
+
}
|
|
8338
|
+
}
|
|
8323
8339
|
if (failingKeys.size > 0) {
|
|
8324
8340
|
rebindCandidates.push({
|
|
8325
8341
|
integration_id: integ.id,
|
|
@@ -8593,6 +8609,7 @@ function buildConnectivityProbeDeps(projectDir, probeEnv) {
|
|
|
8593
8609
|
import { execFileSync as syncExecFile } from "child_process";
|
|
8594
8610
|
import { readFileSync as readFileSync7 } from "fs";
|
|
8595
8611
|
import { join as join6 } from "path";
|
|
8612
|
+
import { dirname as dirname4 } from "path";
|
|
8596
8613
|
async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts) {
|
|
8597
8614
|
if (integrations.length === 0) return null;
|
|
8598
8615
|
let mcpJson = null;
|
|
@@ -8652,6 +8669,7 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
|
|
|
8652
8669
|
{
|
|
8653
8670
|
mcpJson,
|
|
8654
8671
|
missingStdioKeys,
|
|
8672
|
+
transportDownKeys: () => readSlackTransportDownKeys(projectDir),
|
|
8655
8673
|
probeHttp,
|
|
8656
8674
|
sessionLoadedServerKeys: opts.sessionLoadedServerKeys,
|
|
8657
8675
|
sessionStartedMs: opts.sessionStartedMs,
|
|
@@ -8660,6 +8678,18 @@ async function gatherSessionToolBindProbe(agent, integrations, projectDir, opts)
|
|
|
8660
8678
|
}
|
|
8661
8679
|
);
|
|
8662
8680
|
}
|
|
8681
|
+
var SLACK_TRANSPORT_DOWN_AFTER_MS = 3e5;
|
|
8682
|
+
var SLACK_MCP_SERVER_KEY = "slack";
|
|
8683
|
+
function readSlackTransportDownKeys(projectDir) {
|
|
8684
|
+
const none = /* @__PURE__ */ new Set();
|
|
8685
|
+
try {
|
|
8686
|
+
const raw = readFileSync7(join6(dirname4(projectDir), SLACK_SOCKET_STATE_FILENAME), "utf-8");
|
|
8687
|
+
const state = parseSlackSocketState(raw, Date.now());
|
|
8688
|
+
return isSlackInboundTransportDown(state, SLACK_TRANSPORT_DOWN_AFTER_MS) ? /* @__PURE__ */ new Set([SLACK_MCP_SERVER_KEY]) : none;
|
|
8689
|
+
} catch {
|
|
8690
|
+
return none;
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8663
8693
|
|
|
8664
8694
|
// ../../packages/core/dist/provisioning/provisioner.js
|
|
8665
8695
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -9559,4 +9589,4 @@ export {
|
|
|
9559
9589
|
managerInstallSystemUnitCommand,
|
|
9560
9590
|
managerUninstallSystemUnitCommand
|
|
9561
9591
|
};
|
|
9562
|
-
//# sourceMappingURL=chunk-
|
|
9592
|
+
//# sourceMappingURL=chunk-4NCEO44Q.js.map
|