@integrity-labs/agt-cli 0.28.1263 → 0.28.1265
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-SJR7V5JU.js → api-client-LPV5RUCO.js} +3 -3
- package/dist/bin/agt.js +7 -7
- package/dist/{chunk-CEJNJ6NF.js → chunk-6ENTMJ5T.js} +78 -24
- package/dist/chunk-6ENTMJ5T.js.map +1 -0
- package/dist/{chunk-5BXIXSSH.js → chunk-BMO6GCK2.js} +2 -2
- package/dist/{chunk-M6EWNC4M.js → chunk-DRP3J4CV.js} +5 -5
- package/dist/{chunk-KJ5OCCSJ.js → chunk-W2GHPRPZ.js} +2 -2
- package/dist/{chunk-KJ5OCCSJ.js.map → chunk-W2GHPRPZ.js.map} +1 -1
- package/dist/{chunk-HJWOXFJM.js → chunk-X2FBQPNR.js} +2 -2
- package/dist/{chunk-I4ZCWVZZ.js → chunk-ZIAXGM6I.js} +3 -3
- package/dist/{claude-code-updater-JQLNRK25.js → claude-code-updater-XISTQTZX.js} +3 -3
- package/dist/{claude-pair-runtime-BJ3EAWEJ.js → claude-pair-runtime-2EOLNZEY.js} +3 -3
- package/dist/lib/manager-worker.js +111 -24
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/origami.js +1 -1
- package/dist/mcp/slack-channel.js +1 -1
- package/dist/mcp/telegram-channel.js +1 -1
- package/dist/mcp/xero.js +727 -169
- package/dist/{persistent-session-YNHYNCNA.js → persistent-session-C7UKT4EE.js} +14 -4
- package/dist/{responsiveness-probe-57RV3U2H.js → responsiveness-probe-NV3LXAWL.js} +4 -4
- package/dist/{session-auth-dead-A3TO2N63.js → session-auth-dead-U62KZ342.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-CEJNJ6NF.js.map +0 -1
- /package/dist/{api-client-SJR7V5JU.js.map → api-client-LPV5RUCO.js.map} +0 -0
- /package/dist/{chunk-5BXIXSSH.js.map → chunk-BMO6GCK2.js.map} +0 -0
- /package/dist/{chunk-M6EWNC4M.js.map → chunk-DRP3J4CV.js.map} +0 -0
- /package/dist/{chunk-HJWOXFJM.js.map → chunk-X2FBQPNR.js.map} +0 -0
- /package/dist/{chunk-I4ZCWVZZ.js.map → chunk-ZIAXGM6I.js.map} +0 -0
- /package/dist/{claude-code-updater-JQLNRK25.js.map → claude-code-updater-XISTQTZX.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BJ3EAWEJ.js.map → claude-pair-runtime-2EOLNZEY.js.map} +0 -0
- /package/dist/{persistent-session-YNHYNCNA.js.map → persistent-session-C7UKT4EE.js.map} +0 -0
- /package/dist/{responsiveness-probe-57RV3U2H.js.map → responsiveness-probe-NV3LXAWL.js.map} +0 -0
- /package/dist/{session-auth-dead-A3TO2N63.js.map → session-auth-dead-U62KZ342.js.map} +0 -0
|
@@ -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-W2GHPRPZ.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-BMO6GCK2.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZIAXGM6I.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
shellQuote,
|
|
26
26
|
withheldRemoteMcpMessage,
|
|
27
27
|
withheldRemoteMcpReasonFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6ENTMJ5T.js";
|
|
29
29
|
import {
|
|
30
30
|
readDailySessionPin,
|
|
31
31
|
sessionTranscriptDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-X2FBQPNR.js";
|
|
33
33
|
import {
|
|
34
34
|
classifyUnanswerablePane,
|
|
35
35
|
isConsumerTermsDialogVisible,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
scanConfigForLiteralSecrets,
|
|
102
102
|
worseConnectivityOutcome,
|
|
103
103
|
wrapScheduledTaskPrompt
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-W2GHPRPZ.js";
|
|
105
105
|
import {
|
|
106
106
|
claudeJsonPathFor,
|
|
107
107
|
effectiveClaudeJsonPath,
|
|
@@ -13808,4 +13808,4 @@ export {
|
|
|
13808
13808
|
managerInstallSystemUnitCommand,
|
|
13809
13809
|
managerUninstallSystemUnitCommand
|
|
13810
13810
|
};
|
|
13811
|
-
//# sourceMappingURL=chunk-
|
|
13811
|
+
//# sourceMappingURL=chunk-DRP3J4CV.js.map
|
|
@@ -8968,7 +8968,7 @@ var FLAG_REGISTRY = [
|
|
|
8968
8968
|
},
|
|
8969
8969
|
{
|
|
8970
8970
|
key: "org-two-factor-enforcement",
|
|
8971
|
-
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.
|
|
8971
|
+
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. Direct database access (ENG-12033): the SAME flag row drives a RESTRICTIVE org_two_factor_required RLS policy on every RLS table, realtime.messages and storage.objects. The API, the webapp and the database all read this one flag row, so they never settle in different states while that read works. One exception: if the API cannot read the flag it treats enforcement as OFF (as every flag read failure here does), while the database keeps enforcing, so for as long as that read fails an aal1 member of a requiring org can see no organization instead of being sent to setup. They are not in lockstep, though: the database reads the row on every statement, while the API and the webapp gate read it through the ~60s evaluation cache. For up to a minute after turning it ON, an aal1 member of a requiring org can see no organization (the database already enforces, the gate does not yet redirect them to setup); for up to a minute after turning it OFF, the API may still refuse them. The database refuses to turn this ON while public.org_two_factor_db_uncovered() reports anything (a table without the policy, a storage policy the migration role could not create, a readable view that does not run as the caller, a table with RLS off that authenticated can touch, or a SECURITY DEFINER function in public that authenticated can execute and that is not on the reviewed allowlist, since each of those bypasses RLS). Turning it OFF always works. If something becomes uncovered while it is on, enforcement stays on and the API raises a critical org_two_factor_db_coverage_gap alert naming it. Exempt there as here: aal2, SSO, live impersonation sessions, host and broker tokens. (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.",
|
|
8972
8972
|
flagType: "boolean",
|
|
8973
8973
|
defaultValue: false,
|
|
8974
8974
|
// Turning it on changes the admission rule for people on the platform's
|
|
@@ -18847,4 +18847,4 @@ export {
|
|
|
18847
18847
|
HOST_ROTATE_KEY_CONFLICT,
|
|
18848
18848
|
shouldMintReplacementKey
|
|
18849
18849
|
};
|
|
18850
|
-
//# sourceMappingURL=chunk-
|
|
18850
|
+
//# sourceMappingURL=chunk-W2GHPRPZ.js.map
|