@integrity-labs/agt-cli 0.28.1247 → 0.28.1249
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 +6 -6
- package/dist/{chunk-ETLHVYWG.js → chunk-CMCT3LOQ.js} +26 -2
- package/dist/chunk-CMCT3LOQ.js.map +1 -0
- package/dist/{chunk-5RS4R43T.js → chunk-COCLODTH.js} +5 -5
- package/dist/{chunk-DXP7JXKR.js → chunk-G5CNX4XF.js} +3 -3
- package/dist/{chunk-W4HCSKZD.js → chunk-IQ6MCAEK.js} +2 -2
- package/dist/{chunk-JEIS2UOM.js → chunk-NNB7XNZA.js} +2 -2
- package/dist/{claude-code-updater-HCB6O4EB.js → claude-code-updater-EWJ6B5HX.js} +3 -3
- package/dist/{claude-pair-runtime-QRSPPPER.js → claude-pair-runtime-BJLV7HMD.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +25 -1
- package/dist/mcp/index.js +25 -1
- package/dist/mcp/origami.js +25 -1
- package/dist/mcp/slack-channel.js +25 -1
- package/dist/mcp/telegram-channel.js +212 -2
- package/dist/{persistent-session-W7AXIJPR.js → persistent-session-ZTDFRERR.js} +4 -4
- package/dist/{responsiveness-probe-F6AUG6K2.js → responsiveness-probe-SVSMKLYS.js} +4 -4
- package/dist/{session-auth-dead-IW36EKQV.js → session-auth-dead-K63LMSKK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ETLHVYWG.js.map +0 -1
- /package/dist/{chunk-5RS4R43T.js.map → chunk-COCLODTH.js.map} +0 -0
- /package/dist/{chunk-DXP7JXKR.js.map → chunk-G5CNX4XF.js.map} +0 -0
- /package/dist/{chunk-W4HCSKZD.js.map → chunk-IQ6MCAEK.js.map} +0 -0
- /package/dist/{chunk-JEIS2UOM.js.map → chunk-NNB7XNZA.js.map} +0 -0
- /package/dist/{claude-code-updater-HCB6O4EB.js.map → claude-code-updater-EWJ6B5HX.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QRSPPPER.js.map → claude-pair-runtime-BJLV7HMD.js.map} +0 -0
- /package/dist/{persistent-session-W7AXIJPR.js.map → persistent-session-ZTDFRERR.js.map} +0 -0
- /package/dist/{responsiveness-probe-F6AUG6K2.js.map → responsiveness-probe-SVSMKLYS.js.map} +0 -0
- /package/dist/{session-auth-dead-IW36EKQV.js.map → session-auth-dead-K63LMSKK.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-COCLODTH.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-G5CNX4XF.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-IQ6MCAEK.js";
|
|
54
54
|
import "../chunk-HYQ7VOC3.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-CMCT3LOQ.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1249" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1249" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
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");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -5441,6 +5441,12 @@ var ASSET_TYPES = {
|
|
|
5441
5441
|
// module header does not apply. Embedded as <audio src=...> in the page HTML.
|
|
5442
5442
|
"audio/mpeg": { ext: "mp3", maxBytes: 20 * MB, enabled: true }
|
|
5443
5443
|
};
|
|
5444
|
+
var ENTITY_DOUBLE_QUOTE = "&(?:[qQ][uU][oO][tT]|#0*34|#[xX]0*22);";
|
|
5445
|
+
var ENTITY_SINGLE_QUOTE = "&(?:[aA][pP][oO][sS]|#0*39|#[xX]0*27);";
|
|
5446
|
+
var ENTITY_QUOTE_KINDS = [ENTITY_DOUBLE_QUOTE, ENTITY_SINGLE_QUOTE].map((src) => ({
|
|
5447
|
+
opens: new RegExp(`${src}$`),
|
|
5448
|
+
closes: new RegExp(src)
|
|
5449
|
+
}));
|
|
5444
5450
|
|
|
5445
5451
|
// ../../packages/core/dist/direct-chat/upload.js
|
|
5446
5452
|
var MB2 = 1024 * 1024;
|
|
@@ -8004,6 +8010,24 @@ var FLAG_REGISTRY = [
|
|
|
8004
8010
|
// everywhere it matters.
|
|
8005
8011
|
envVar: "AUGMENTED_CONNECTIVITY_RECONCILE_STATUS"
|
|
8006
8012
|
},
|
|
8013
|
+
{
|
|
8014
|
+
key: "direct-chat-malware-scan",
|
|
8015
|
+
// CodeRabbit on #7501: read stage-wide only (empty scope), so a scoped
|
|
8016
|
+
// override would look armed and do nothing. Turning it off disarms the
|
|
8017
|
+
// upload and download scan, so a change needs explicit confirmation.
|
|
8018
|
+
stageWideOnly: true,
|
|
8019
|
+
sensitive: true,
|
|
8020
|
+
description: "Gate Direct Chat uploads on the GuardDuty Malware Protection for S3 verdict (ENG-11967). When on, verifyDirectChatUploads waits for the GuardDutyMalwareScanStatus tag on each uploaded object and FAILS CLOSED: only NO_THREATS_FOUND is linked to a message; THREATS_FOUND is deleted (it marks every row sharing the object) and raises an upload_malware_detected alert; UNSUPPORTED, ACCESS_DENIED and FAILED are refused but KEPT, because the content-addressed object may back messages already delivered and two of those are our faults, not the file; no tag within the wait budget is refused and kept, so a re-send can pass once the scan lands. ARMING ALSO GATES EVERY DOWNLOAD: the browser mint and the agent poll serve an object only if its GuardDutyMalwareScanStatus tag is NO_THREATS_FOUND, so an attachment stored before the plan existed is refused until a one-off rescan (triggered on first access) tags it clean. In the browser it becomes downloadable once that lands; the agent poll delivers each attachment once, so one untagged at that poll is NEVER delivered to the agent (only a warn line records it). ARM ONLY AFTER the DirectChatUploadsMalwareProtection plan is deployed (GUARDDUTY_MALWARE_SCAN=true): with the flag on and no plan, no object is ever tagged and every upload is refused. ALSO CONFIRM FIRST, on the test stage, that the legacy rescan works: self-copy one untagged object and check it gains a GuardDutyMalwareScanStatus tag within a minute. If it does not, do NOT arm: every attachment stored before the plan stays refused while armed and the rescan cannot restore it. GLOBAL ONLY: evaluated with an empty context, so scoped overrides have no effect.",
|
|
8021
|
+
flagType: "boolean",
|
|
8022
|
+
// Off is the pre-ENG-11967 behaviour: no scan wait, no tag read.
|
|
8023
|
+
// UNLIKE most flags here, a flag-store READ ERROR counts as ON on the SEND
|
|
8024
|
+
// path (see malwareScanArmed in api lib/direct-chat-uploads.ts): the send
|
|
8025
|
+
// is the gate, and an outage must not silently stop scanning. The read
|
|
8026
|
+
// paths (agent poll, download mint) treat a read error as OFF, so a blip
|
|
8027
|
+
// cannot strip a claimed, single-shot message of its files (Obi Wan
|
|
8028
|
+
// edec921a519f); THREATS_FOUND rows stay hidden either way.
|
|
8029
|
+
defaultValue: false
|
|
8030
|
+
},
|
|
8007
8031
|
{
|
|
8008
8032
|
key: "platform-held-key-central-probe",
|
|
8009
8033
|
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).",
|
|
@@ -8648,7 +8672,7 @@ var FLAG_REGISTRY = [
|
|
|
8648
8672
|
},
|
|
8649
8673
|
{
|
|
8650
8674
|
key: "org-two-factor-enforcement",
|
|
8651
|
-
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware
|
|
8675
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware ENG-12023: also enforced by hostAuthMiddleware, and in the webapp, whose middleware asks GET /me/two-factor-gate (the same check) and sends a refused person to the code screen or to authenticator setup, and refuses its /api handlers with the same 403. It also gates the MCP OAuth consent flow (/oauth/authorize, /oauth/consent, POST /oauth/consent/approve, the only place an OAuth code is minted), so a single-factor session cannot mint a long-lived token. A test pins that every named createMiddleware in packages/api/src/middleware and routes that stamps a user runs the check (and that no file there stamps one from an unnamed middleware), except OAuth-token principals (userOAuthMiddleware, the MCP token validator), which carry no session level and are covered by that consent gate, and the admin-debug staff principal, which is not a GoTrue session. Tokens minted BEFORE enforcement is on keep working until they expire or are revoked. NOT YET COVERED: direct database access. A stolen password plus the public anon key gives an aal1 JWT that Supabase PostgREST and Realtime still accept, so until ENG-12033 (ENG-12023 slice 3) adds an aal2 RLS policy and Realtime channel auth, enforcement stays OFF in code (ORG_TWO_FACTOR_UNCOVERED_SURFACES) even with this flag on. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
8652
8676
|
flagType: "boolean",
|
|
8653
8677
|
defaultValue: false,
|
|
8654
8678
|
// Turning it on changes the admission rule for people on the platform's
|
|
@@ -18441,4 +18465,4 @@ export {
|
|
|
18441
18465
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18442
18466
|
shouldMintReplacementKey
|
|
18443
18467
|
};
|
|
18444
|
-
//# sourceMappingURL=chunk-
|
|
18468
|
+
//# sourceMappingURL=chunk-CMCT3LOQ.js.map
|