@integrity-labs/agt-cli 0.28.1251 → 0.28.1253
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-ECOBF6BM.js → api-client-5ZXNFF4W.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-OAAKFU3J.js → chunk-233HXJ2D.js} +2 -2
- package/dist/{chunk-2VGFSHFP.js → chunk-2HF77X4C.js} +3 -3
- package/dist/{chunk-VOMOPWFI.js → chunk-CMLBFY5C.js} +2 -2
- package/dist/{chunk-O6WRX5FE.js → chunk-GRTMENH5.js} +3 -3
- package/dist/{chunk-4AUE34MF.js → chunk-UBGHZ2O2.js} +5 -5
- package/dist/{chunk-6KY5FKXC.js → chunk-UHT6L77A.js} +38 -1
- package/dist/{chunk-6KY5FKXC.js.map → chunk-UHT6L77A.js.map} +1 -1
- package/dist/{claude-code-updater-2TZ4TSOB.js → claude-code-updater-EKABTDXO.js} +3 -3
- package/dist/{claude-pair-runtime-CTJCJNK4.js → claude-pair-runtime-ZA24UQ7V.js} +3 -3
- package/dist/lib/manager-worker.js +21 -21
- package/dist/mcp/direct-chat-channel.js +102 -4
- package/dist/mcp/index.js +38 -1
- package/dist/mcp/origami.js +37 -0
- package/dist/mcp/slack-channel.js +37 -0
- package/dist/mcp/telegram-channel.js +37 -0
- package/dist/{persistent-session-TBE4KP4K.js → persistent-session-HXK2Z6GH.js} +4 -4
- package/dist/{responsiveness-probe-J7DA3AB4.js → responsiveness-probe-TPKISRGQ.js} +4 -4
- package/dist/{session-auth-dead-OL5ODQRN.js → session-auth-dead-KMB35KRB.js} +3 -3
- package/package.json +1 -1
- /package/dist/{api-client-ECOBF6BM.js.map → api-client-5ZXNFF4W.js.map} +0 -0
- /package/dist/{chunk-OAAKFU3J.js.map → chunk-233HXJ2D.js.map} +0 -0
- /package/dist/{chunk-2VGFSHFP.js.map → chunk-2HF77X4C.js.map} +0 -0
- /package/dist/{chunk-VOMOPWFI.js.map → chunk-CMLBFY5C.js.map} +0 -0
- /package/dist/{chunk-O6WRX5FE.js.map → chunk-GRTMENH5.js.map} +0 -0
- /package/dist/{chunk-4AUE34MF.js.map → chunk-UBGHZ2O2.js.map} +0 -0
- /package/dist/{claude-code-updater-2TZ4TSOB.js.map → claude-code-updater-EKABTDXO.js.map} +0 -0
- /package/dist/{claude-pair-runtime-CTJCJNK4.js.map → claude-pair-runtime-ZA24UQ7V.js.map} +0 -0
- /package/dist/{persistent-session-TBE4KP4K.js.map → persistent-session-HXK2Z6GH.js.map} +0 -0
- /package/dist/{responsiveness-probe-J7DA3AB4.js.map → responsiveness-probe-TPKISRGQ.js.map} +0 -0
- /package/dist/{session-auth-dead-OL5ODQRN.js.map → session-auth-dead-KMB35KRB.js.map} +0 -0
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-2HF77X4C.js";
|
|
19
|
+
import "./chunk-UHT6L77A.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
22
22
|
ApiError,
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-5ZXNFF4W.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-UBGHZ2O2.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-2HF77X4C.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
49
49
|
readDirectChatSessionState
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-GRTMENH5.js";
|
|
51
51
|
import {
|
|
52
52
|
markDailySessionSpawn,
|
|
53
53
|
sessionFileExists,
|
|
54
54
|
sessionTranscriptDir
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-CMLBFY5C.js";
|
|
56
56
|
import "../chunk-HYQ7VOC3.js";
|
|
57
57
|
import "../chunk-6HBXEJHO.js";
|
|
58
58
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
requiredMcpWildcard,
|
|
86
86
|
resolveChannels,
|
|
87
87
|
serializeManifestForSlackCli
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-UHT6L77A.js";
|
|
89
89
|
import "../chunk-AIUIMEUS.js";
|
|
90
90
|
import "../chunk-DGUM43GV.js";
|
|
91
91
|
|
|
@@ -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.1253" : "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.1253" : "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) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UHT6L77A.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-233HXJ2D.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HOST_ROTATE_KEY_CONFLICT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHT6L77A.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/config.ts
|
|
6
6
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1253" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-2HF77X4C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHT6L77A.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
peekPreviousSession,
|
|
245
245
|
readDailySessionPin
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-CMLBFY5C.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CMLBFY5C.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
remoteMcpConnectionEnvInfix,
|
|
52
52
|
remoteMcpConnectionLabel,
|
|
53
53
|
remoteMcpConnectionScopedEnvVar
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UHT6L77A.js";
|
|
55
55
|
import {
|
|
56
56
|
CLAUDE_CONFIG_DIR_ENV,
|
|
57
57
|
approveApiKeyInClaudeConfig,
|
|
@@ -6219,4 +6219,4 @@ export {
|
|
|
6219
6219
|
stopAllSessionsAndWait,
|
|
6220
6220
|
getProjectDir
|
|
6221
6221
|
};
|
|
6222
|
-
//# sourceMappingURL=chunk-
|
|
6222
|
+
//# sourceMappingURL=chunk-GRTMENH5.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2HF77X4C.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
requiresRemoteMcpToolGate,
|
|
24
24
|
shellQuote,
|
|
25
25
|
withheldRemoteMcpMessage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GRTMENH5.js";
|
|
27
27
|
import {
|
|
28
28
|
readDailySessionPin,
|
|
29
29
|
sessionTranscriptDir
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CMLBFY5C.js";
|
|
31
31
|
import {
|
|
32
32
|
classifyUnanswerablePane,
|
|
33
33
|
isConsumerTermsDialogVisible,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
scanConfigForLiteralSecrets,
|
|
100
100
|
worseConnectivityOutcome,
|
|
101
101
|
wrapScheduledTaskPrompt
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-UHT6L77A.js";
|
|
103
103
|
import {
|
|
104
104
|
claudeJsonPathFor,
|
|
105
105
|
effectiveClaudeJsonPath,
|
|
@@ -13347,4 +13347,4 @@ export {
|
|
|
13347
13347
|
managerInstallSystemUnitCommand,
|
|
13348
13348
|
managerUninstallSystemUnitCommand
|
|
13349
13349
|
};
|
|
13350
|
-
//# sourceMappingURL=chunk-
|
|
13350
|
+
//# sourceMappingURL=chunk-UBGHZ2O2.js.map
|
|
@@ -8213,6 +8213,31 @@ var FLAG_REGISTRY = [
|
|
|
8213
8213
|
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
8214
8214
|
defaultValue: false
|
|
8215
8215
|
},
|
|
8216
|
+
{
|
|
8217
|
+
key: "direct-chat-extracted-text",
|
|
8218
|
+
// ENG-11967 part 2b. Read stage-wide only (empty scope), like
|
|
8219
|
+
// direct-chat-malware-scan: a scoped override would do nothing.
|
|
8220
|
+
stageWideOnly: true,
|
|
8221
|
+
sensitive: true,
|
|
8222
|
+
description: `Serve a Direct Chat PDF or DOCX to the agent as its EXTRACTED TEXT instead of the raw file (ENG-11967 part 2b, Sherlock ruling (a)). off = today: the agent gets the raw file (scan-gated). hold-30s / hold-60s / hold-120s = armed, and the value is the HOLD CAP: the agent poll does not claim a message whose text is not ready yet for up to that long, and holds the rest of its session with it so order is kept. Holds chain: a message also waits for every document sent after it in the same session, so its delay is bounded by the cap measured from the LAST document in a run of sends, not from its own send. Ready text is delivered as <name>.txt. If extraction finished without text, or died, the message is released at once with "text extraction unavailable for <name> (couldn't read the file)" or "(timed out)"; at the cap it is released with "(timed out)" and the release is logged. Takes effect only while direct-chat-malware-scan is on, because extraction runs on GuardDuty's clean-scan event. ARM ONLY AFTER DIRECT_CHAT_TEXT_EXTRACTION=true has deployed the DirectChatTextExtract Lambda: armed without it, every PDF/DOCX waits out the cap and arrives as a timed-out notice. A flag-store read error counts as off on this read path. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.`,
|
|
8223
|
+
flagType: "enum",
|
|
8224
|
+
allowedValues: ["off", "hold-30s", "hold-60s", "hold-120s"],
|
|
8225
|
+
// Off is the pre-2b behaviour: no hold, no .txt read, the raw file.
|
|
8226
|
+
defaultValue: "off",
|
|
8227
|
+
// The flag is evaluated server-side, but its notice entries need the host's
|
|
8228
|
+
// direct-chat MCP to render them: an older agt-cli shows a notice as
|
|
8229
|
+
// "download failed; ask the user to re-send", which sends users in circles
|
|
8230
|
+
// (Sherlock, 13 Nov). So the flip-reach modal must count hosts by the CLI
|
|
8231
|
+
// that renders notices. 0.28.1252 is the first published agt-cli carrying
|
|
8232
|
+
// #7579's MCP change (tag agt-cli-0.28.1252, published from caf64c0b5; the
|
|
8233
|
+
// publish run on #7579's own merge commit 38465ce5f failed). Arm only when
|
|
8234
|
+
// the modal shows 0 stale and 0 unknown hosts. The reach count covers only
|
|
8235
|
+
// active hosts seen in the last 24h (routes/flags.ts), so also confirm no
|
|
8236
|
+
// active host older than 0.28.1252 is offline before arming the stage-wide
|
|
8237
|
+
// flip: one that reconnects later receives the armed flag on its first
|
|
8238
|
+
// heartbeat (CodeRabbit on #7588).
|
|
8239
|
+
since: "0.28.1252"
|
|
8240
|
+
},
|
|
8216
8241
|
{
|
|
8217
8242
|
key: "platform-held-key-central-probe",
|
|
8218
8243
|
description: "Arm the scheduled CENTRAL connectivity probe lane for platform-held-key integrations (ENG-10086). These store no customer credential (auth_type none), so the host cannot probe them and reports unverified forever. When on, the hourly PlatformHeldKeyProbe cron runs each central probe that exists (today only ninjafy-notes: org entitlement + broker routing, never note contents) and writes the result through the monitor observation path, so consecutive_connectivity_failures / _ok_cycles move and integration_down alerts can open and close on it. Definitions with no central probe are skipped, never written as a failure. When off the cron reads nothing and writes nothing. Boolean gate; ships dark because a new writer of the escalation counters is a paging change. GLOBAL ONLY: the cron and the host connectivity route both evaluate this flag with an empty context, so an org-, team- or agent-scoped override is stored but has NO effect. Arm it by its global value, not as a staged per-org rollout (Obi Wan 63053d02035e).",
|
|
@@ -9071,6 +9096,18 @@ var FLAG_REGISTRY = [
|
|
|
9071
9096
|
// honours the filter is unproven, so an org must not switch it on for itself.
|
|
9072
9097
|
platformAdminOnly: true
|
|
9073
9098
|
},
|
|
9099
|
+
{
|
|
9100
|
+
key: "agent-email-inbox",
|
|
9101
|
+
description: "ENG-12021 - lets an owner/admin give one agent its own email address on the platform's agent mail domain, provisioned as a Resend Inbox, which the agent can list, search and read. OFF (default) = the provisioning route refuses and no inbox can be created. This flag is ROLLOUT CONTROL, NOT the revocation: it decides whether an org may provision, and turning it off does NOT take the tools away from an agent that already has an address - `agent_email_inboxes.status` does that, and is what to reach for in an incident. Nor is it the only gate, and the two secrets do NOT gate the same things: AGENT_INBOX_RESEND_API_KEY gates EVERYTHING (unset = provisioning refuses AND every tool call on an existing inbox answers not_configured), while AGENT_INBOX_DOMAIN is read only when MINTING an address - so clearing the domain stops new inboxes and leaves an agent that already has one still reading its mail (NOT replying - this slice ships no send or reply tool at all; that is PR B). Do not reach for either as a kill switch; the status column is the one. A per-org cap refuses provisioning past its limit regardless of this flag. BEFORE ARMING THIS FOR AN ORG, verify cross-inbox thread isolation against a real key: the inbox segment of every Resend path is server-derived from the agent's own row, but thread_id is an AGENT-SUPPLIED argument, and Resend documents no error for a thread that belongs to a different inbox. Their thread response carries no inbox field either, so this cannot be re-checked on our side after the fact - it is a vendor behaviour that has to be measured once (request one inbox's thread id under another inbox and confirm a 404), not an invariant this code can enforce. Platform-admin-only AND sensitive because each inbox is a RECURRING monthly cost with no per-unit billing primitive behind it (ENG-8720) - an org must not be able to switch on a subscription for itself, and the cap is the only thing metering it.",
|
|
9102
|
+
flagType: "boolean",
|
|
9103
|
+
defaultValue: false,
|
|
9104
|
+
sensitive: true,
|
|
9105
|
+
platformAdminOnly: true
|
|
9106
|
+
// Deliberately NO envVar. The reader is the API, server-side, which can call the
|
|
9107
|
+
// flag evaluator directly - so there is no host-side bash hook needing a
|
|
9108
|
+
// materialised value, and declaring one would only create a literal for the
|
|
9109
|
+
// ENG-8303 sst-pin guard to catch.
|
|
9110
|
+
},
|
|
9074
9111
|
{
|
|
9075
9112
|
key: "premium-gateway-inference",
|
|
9076
9113
|
description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
|
|
@@ -18656,4 +18693,4 @@ export {
|
|
|
18656
18693
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18657
18694
|
shouldMintReplacementKey
|
|
18658
18695
|
};
|
|
18659
|
-
//# sourceMappingURL=chunk-
|
|
18696
|
+
//# sourceMappingURL=chunk-UHT6L77A.js.map
|