@integrity-labs/agt-cli 0.28.974 → 0.28.975
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-3PYNSD4I.js → chunk-KUSBSYQA.js} +4 -4
- package/dist/{chunk-HRHDATT5.js → chunk-VRYNZ3G5.js} +35 -14
- package/dist/{chunk-HRHDATT5.js.map → chunk-VRYNZ3G5.js.map} +1 -1
- package/dist/{chunk-PHPOHMSK.js → chunk-YBDGTOXI.js} +2 -2
- package/dist/{claude-pair-runtime-U6GBR7KM.js → claude-pair-runtime-FYEBDP2M.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/mcp/direct-chat-channel.js +62 -15
- package/dist/mcp/index.js +34 -13
- package/dist/mcp/origami.js +34 -13
- package/dist/mcp/slack-channel.js +34 -13
- package/dist/mcp/telegram-channel.js +34 -13
- package/dist/{persistent-session-YJJXZSUE.js → persistent-session-S32WR3KK.js} +3 -3
- package/dist/{responsiveness-probe-SQZGSNVI.js → responsiveness-probe-NSH4R5RH.js} +3 -3
- package/dist/{session-auth-dead-7OLNDHJC.js → session-auth-dead-A5RJASLW.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-3PYNSD4I.js.map → chunk-KUSBSYQA.js.map} +0 -0
- /package/dist/{chunk-PHPOHMSK.js.map → chunk-YBDGTOXI.js.map} +0 -0
- /package/dist/{claude-pair-runtime-U6GBR7KM.js.map → claude-pair-runtime-FYEBDP2M.js.map} +0 -0
- /package/dist/{persistent-session-YJJXZSUE.js.map → persistent-session-S32WR3KK.js.map} +0 -0
- /package/dist/{responsiveness-probe-SQZGSNVI.js.map → responsiveness-probe-NSH4R5RH.js.map} +0 -0
- /package/dist/{session-auth-dead-7OLNDHJC.js.map → session-auth-dead-A5RJASLW.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-KUSBSYQA.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-YBDGTOXI.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-VRYNZ3G5.js";
|
|
83
83
|
import "../chunk-DHWNVVX4.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
|
|
@@ -5471,7 +5471,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5471
5471
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5472
5472
|
import chalk18 from "chalk";
|
|
5473
5473
|
import ora16 from "ora";
|
|
5474
|
-
var cliVersion = true ? "0.28.
|
|
5474
|
+
var cliVersion = true ? "0.28.975" : "dev";
|
|
5475
5475
|
async function fetchLatestVersion() {
|
|
5476
5476
|
const host2 = getHost();
|
|
5477
5477
|
if (!host2) return null;
|
|
@@ -6731,7 +6731,7 @@ function handleError(err) {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
// src/bin/agt.ts
|
|
6734
|
-
var cliVersion2 = true ? "0.28.
|
|
6734
|
+
var cliVersion2 = true ? "0.28.975" : "dev";
|
|
6735
6735
|
var program = new Command();
|
|
6736
6736
|
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");
|
|
6737
6737
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseEnvFileEntries,
|
|
15
15
|
parseEnvIntegrations,
|
|
16
16
|
shellQuote
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YBDGTOXI.js";
|
|
18
18
|
import {
|
|
19
19
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
20
20
|
INTEGRATIONS_SECTION_END,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
sessionTranscriptDir,
|
|
75
75
|
worseConnectivityOutcome,
|
|
76
76
|
wrapScheduledTaskPrompt
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-VRYNZ3G5.js";
|
|
78
78
|
import {
|
|
79
79
|
classifyUnanswerablePane,
|
|
80
80
|
summarizeUnanswerablePane
|
|
@@ -6967,7 +6967,7 @@ function exchangeFailureKind(err) {
|
|
|
6967
6967
|
}
|
|
6968
6968
|
|
|
6969
6969
|
// src/lib/api-client.ts
|
|
6970
|
-
var agtCliVersion = true ? "0.28.
|
|
6970
|
+
var agtCliVersion = true ? "0.28.975" : "dev";
|
|
6971
6971
|
var lastConfigHash = null;
|
|
6972
6972
|
function setConfigHash(hash) {
|
|
6973
6973
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11709,4 +11709,4 @@ export {
|
|
|
11709
11709
|
managerInstallSystemUnitCommand,
|
|
11710
11710
|
managerUninstallSystemUnitCommand
|
|
11711
11711
|
};
|
|
11712
|
-
//# sourceMappingURL=chunk-
|
|
11712
|
+
//# sourceMappingURL=chunk-KUSBSYQA.js.map
|
|
@@ -7378,11 +7378,18 @@ var FLAG_REGISTRY = [
|
|
|
7378
7378
|
},
|
|
7379
7379
|
{
|
|
7380
7380
|
key: "ip-allowlist-enforce-admin-debug",
|
|
7381
|
-
description: "ENG-10594 - whether the IP allowlist on the admin-debug surface (/admin/debug/*, including the deliberately unauthenticated POST /admin/debug/token that exchanges a tlk_ key) REFUSES, or merely observes. OFF (default) = shadow: every request is still evaluated and logged with verdict=admit or verdict=would-refuse, and nothing is ever rejected. ON = a caller whose platform-attested source address is outside AGT_IP_ALLOWLIST_ADMIN_DEBUG gets a bare 403. THE SSM PARAMETER IS A SECOND LEVER AND BOTH ARE NEEDED: with the list unset this flag does nothing, because an unconfigured allowlist admits everyone by design. Arm in that order - populate the list, read the shadow logs until the would-refuse set is understood, then flip this. Deliberately global (evaluated with an empty context): the middleware runs BEFORE authentication, so there is no verified org to scope by, and taking one from an unverified request would let a caller choose its own enforcement posture.
|
|
7381
|
+
description: "ENG-10594 - whether the IP allowlist on the admin-debug surface (/admin/debug/*, including the deliberately unauthenticated POST /admin/debug/token that exchanges a tlk_ key) REFUSES, or merely observes. OFF (default) = shadow: every request is still evaluated and logged with verdict=admit or verdict=would-refuse, and nothing is ever rejected. ON = a caller whose platform-attested source address is outside AGT_IP_ALLOWLIST_ADMIN_DEBUG gets a bare 403. THE SSM PARAMETER IS A SECOND LEVER AND BOTH ARE NEEDED: with the list unset this flag does nothing, because an unconfigured allowlist admits everyone by design. Arm in that order - populate the list, read the shadow logs until the would-refuse set is understood, then flip this. Deliberately global (evaluated with an empty context): the middleware runs BEFORE authentication, so there is no verified org to scope by, and taking one from an unverified request would let a caller choose its own enforcement posture. There is deliberately NO counterpart flag for the per-agent MCP surface: that one is shadow-only structurally (its ENFORCE_FLAG entry is null), so arming this one does not and cannot arm that one. See the comment below this entry for why.",
|
|
7382
7382
|
flagType: "boolean",
|
|
7383
|
-
// Shadow. The measurement comes first
|
|
7384
|
-
//
|
|
7385
|
-
//
|
|
7383
|
+
// Shadow. The measurement comes first - and ENG-10664 corrected what the
|
|
7384
|
+
// measurement is OF. This comment used to say "nobody yet knows the real set
|
|
7385
|
+
// of staff addresses": there is no such set. Measured over 48h, all 315
|
|
7386
|
+
// requests to this surface came from ONE address, the agt-hosts AZ-2a NAT
|
|
7387
|
+
// EIP - an AGENT calling the debug_* tools, not a person. The decided policy
|
|
7388
|
+
// is that it stays that way (admin-debug is only ever reached from our own
|
|
7389
|
+
// NAT gateways). So the pre-arm check is not "does my laptop appear" but
|
|
7390
|
+
// "is every NAT EIP in the list", because an AZ whose NAT has not yet
|
|
7391
|
+
// carried a debug_* call is absent from the log and would be refused the
|
|
7392
|
+
// instant this flips. See docs/runbooks/ip-allowlist-rollout.md step 3.
|
|
7386
7393
|
defaultValue: false,
|
|
7387
7394
|
// Arming it changes who can reach production diagnostics. Worth one
|
|
7388
7395
|
// confirmation.
|
|
@@ -7397,20 +7404,34 @@ var FLAG_REGISTRY = [
|
|
|
7397
7404
|
// ENFORCE_FLAG (packages/api/src/middleware/ip-allowlist.ts) is null, so no
|
|
7398
7405
|
// flag is consulted and no flag flip can arm it.
|
|
7399
7406
|
//
|
|
7400
|
-
// Why it is not simply a second flag defaulting false
|
|
7401
|
-
//
|
|
7402
|
-
//
|
|
7403
|
-
//
|
|
7404
|
-
//
|
|
7405
|
-
//
|
|
7406
|
-
//
|
|
7407
|
+
// Why it is not simply a second flag defaulting false (CORRECTED, ENG-10664):
|
|
7408
|
+
//
|
|
7409
|
+
// This comment used to say the callers are agent HOSTS, most of which have no
|
|
7410
|
+
// allowlistable address per ADR-0032. That is the wrong caller. Agent hosts do
|
|
7411
|
+
// not call this surface at all: its handler's first act is
|
|
7412
|
+
// validateMcpAccessToken() against `mcp_oauth_tokens` (routes/mcp.ts:87, token
|
|
7413
|
+
// check at :91), so a host JWT is rejected outright - routes/host-runtime.ts
|
|
7414
|
+
// :33421 says so in as many words, which is why the ENG-4724 /host/* twins
|
|
7415
|
+
// exist. The caller set is remote MCP OAuth clients, structurally.
|
|
7416
|
+
//
|
|
7417
|
+
// The conclusion is unchanged and ONLY the reason has moved. Allowlisting this
|
|
7418
|
+
// surface would mean pinning a THIRD PARTY's egress ranges rather than our own
|
|
7419
|
+
// NAT EIPs - a different control, a different owner, a different failure mode:
|
|
7420
|
+
// they move a range and agent MCP access breaks with no signal on our side.
|
|
7421
|
+
// Per docs/runbooks/composio-allowlist-rollout.md this class of change has no
|
|
7407
7422
|
// fleet-level undo. A flag would leave that one toggle away during an
|
|
7408
7423
|
// incident, from someone who had just armed the admin-debug surface and
|
|
7409
7424
|
// reasonably assumed the pair moved together. Requiring a code change puts
|
|
7410
7425
|
// review in front of an irreversible action, which is the right price.
|
|
7411
7426
|
//
|
|
7412
|
-
//
|
|
7413
|
-
//
|
|
7427
|
+
// Keeping the false rationale would have been worse than having none: a reader
|
|
7428
|
+
// who checked it would find it does not hold and might "fix" it by adding the
|
|
7429
|
+
// flag. That is the failure this rewrite exists to prevent.
|
|
7430
|
+
//
|
|
7431
|
+
// If we ever DECIDE to take on that third-party dependency deliberately,
|
|
7432
|
+
// adding the flag here and a key in ENFORCE_FLAG is a small diff - but it is a
|
|
7433
|
+
// decision to own someone else's egress, not a discovery that the population
|
|
7434
|
+
// was allowlistable all along.
|
|
7414
7435
|
];
|
|
7415
7436
|
var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
|
|
7416
7437
|
function getFlagDefinition(key) {
|
|
@@ -15179,4 +15200,4 @@ export {
|
|
|
15179
15200
|
peekCurrentSession,
|
|
15180
15201
|
readDailySessionPin
|
|
15181
15202
|
};
|
|
15182
|
-
//# sourceMappingURL=chunk-
|
|
15203
|
+
//# sourceMappingURL=chunk-VRYNZ3G5.js.map
|