@integrity-labs/agt-cli 0.28.1246 → 0.28.1247

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.
Files changed (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-ZHLBICZL.js → chunk-5RS4R43T.js} +5 -5
  3. package/dist/{chunk-EGMQVUAO.js → chunk-DXP7JXKR.js} +3 -3
  4. package/dist/{chunk-OSXVD3YF.js → chunk-ETLHVYWG.js} +10 -1
  5. package/dist/{chunk-OSXVD3YF.js.map → chunk-ETLHVYWG.js.map} +1 -1
  6. package/dist/{chunk-22GBHBJZ.js → chunk-JEIS2UOM.js} +2 -2
  7. package/dist/{chunk-V47ZQJ3Y.js → chunk-W4HCSKZD.js} +2 -2
  8. package/dist/{claude-code-updater-6QVV5JHB.js → claude-code-updater-HCB6O4EB.js} +3 -3
  9. package/dist/{claude-pair-runtime-IOUQF6RF.js → claude-pair-runtime-QRSPPPER.js} +3 -3
  10. package/dist/lib/manager-worker.js +289 -118
  11. package/dist/lib/manager-worker.js.map +1 -1
  12. package/dist/mcp/direct-chat-channel.js +9 -0
  13. package/dist/mcp/index.js +9 -0
  14. package/dist/mcp/origami.js +9 -0
  15. package/dist/mcp/slack-channel.js +9 -0
  16. package/dist/mcp/telegram-channel.js +9 -0
  17. package/dist/{persistent-session-4HI235XH.js → persistent-session-W7AXIJPR.js} +4 -4
  18. package/dist/{responsiveness-probe-AD6WIPDA.js → responsiveness-probe-F6AUG6K2.js} +4 -4
  19. package/dist/{session-auth-dead-6FSKTBLA.js → session-auth-dead-IW36EKQV.js} +3 -3
  20. package/package.json +1 -1
  21. /package/dist/{chunk-ZHLBICZL.js.map → chunk-5RS4R43T.js.map} +0 -0
  22. /package/dist/{chunk-EGMQVUAO.js.map → chunk-DXP7JXKR.js.map} +0 -0
  23. /package/dist/{chunk-22GBHBJZ.js.map → chunk-JEIS2UOM.js.map} +0 -0
  24. /package/dist/{chunk-V47ZQJ3Y.js.map → chunk-W4HCSKZD.js.map} +0 -0
  25. /package/dist/{claude-code-updater-6QVV5JHB.js.map → claude-code-updater-HCB6O4EB.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-IOUQF6RF.js.map → claude-pair-runtime-QRSPPPER.js.map} +0 -0
  27. /package/dist/{persistent-session-4HI235XH.js.map → persistent-session-W7AXIJPR.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-AD6WIPDA.js.map → responsiveness-probe-F6AUG6K2.js.map} +0 -0
  29. /package/dist/{session-auth-dead-6FSKTBLA.js.map → session-auth-dead-IW36EKQV.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-ZHLBICZL.js";
43
+ } from "../chunk-5RS4R43T.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-EGMQVUAO.js";
48
+ } from "../chunk-DXP7JXKR.js";
49
49
  import {
50
50
  markDailySessionSpawn,
51
51
  sessionFileExists,
52
52
  sessionTranscriptDir
53
- } from "../chunk-V47ZQJ3Y.js";
53
+ } from "../chunk-W4HCSKZD.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-OSXVD3YF.js";
86
+ } from "../chunk-ETLHVYWG.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.1246" : "dev";
5208
+ var cliVersion = true ? "0.28.1247" : "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.1246" : "dev";
6468
+ var cliVersion2 = true ? "0.28.1247" : "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) => {
@@ -18,11 +18,11 @@ import {
18
18
  requiresRemoteMcpToolGate,
19
19
  shellQuote,
20
20
  withheldRemoteMcpMessage
21
- } from "./chunk-EGMQVUAO.js";
21
+ } from "./chunk-DXP7JXKR.js";
22
22
  import {
23
23
  readDailySessionPin,
24
24
  sessionTranscriptDir
25
- } from "./chunk-V47ZQJ3Y.js";
25
+ } from "./chunk-W4HCSKZD.js";
26
26
  import {
27
27
  classifyUnanswerablePane,
28
28
  isConsumerTermsDialogVisible,
@@ -95,7 +95,7 @@ import {
95
95
  scanConfigForLiteralSecrets,
96
96
  worseConnectivityOutcome,
97
97
  wrapScheduledTaskPrompt
98
- } from "./chunk-OSXVD3YF.js";
98
+ } from "./chunk-ETLHVYWG.js";
99
99
  import {
100
100
  claudeJsonPathFor,
101
101
  effectiveClaudeJsonPath,
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
8095
8095
  }
8096
8096
 
8097
8097
  // src/lib/api-client.ts
8098
- var agtCliVersion = true ? "0.28.1246" : "dev";
8098
+ var agtCliVersion = true ? "0.28.1247" : "dev";
8099
8099
  var lastConfigHash = null;
8100
8100
  function setConfigHash(hash) {
8101
8101
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13750,4 +13750,4 @@ export {
13750
13750
  managerInstallSystemUnitCommand,
13751
13751
  managerUninstallSystemUnitCommand
13752
13752
  };
13753
- //# sourceMappingURL=chunk-ZHLBICZL.js.map
13753
+ //# sourceMappingURL=chunk-5RS4R43T.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-V47ZQJ3Y.js";
7
+ } from "./chunk-W4HCSKZD.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-OSXVD3YF.js";
54
+ } from "./chunk-ETLHVYWG.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6196,4 +6196,4 @@ export {
6196
6196
  stopAllSessionsAndWait,
6197
6197
  getProjectDir
6198
6198
  };
6199
- //# sourceMappingURL=chunk-EGMQVUAO.js.map
6199
+ //# sourceMappingURL=chunk-DXP7JXKR.js.map
@@ -8646,6 +8646,15 @@ var FLAG_REGISTRY = [
8646
8646
  // §4 reserves for deliberate, audited flips.
8647
8647
  sensitive: true
8648
8648
  },
8649
+ {
8650
+ key: "org-two-factor-enforcement",
8651
+ description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (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
+ flagType: "boolean",
8653
+ defaultValue: false,
8654
+ // Turning it on changes the admission rule for people on the platform's
8655
+ // front door, so it gets the deliberate, audited flip ADR-0022 reserves.
8656
+ sensitive: true
8657
+ },
8649
8658
  {
8650
8659
  key: "first-party-token-refusal",
8651
8660
  description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
@@ -18432,4 +18441,4 @@ export {
18432
18441
  HOST_ROTATE_KEY_CONFLICT,
18433
18442
  shouldMintReplacementKey
18434
18443
  };
18435
- //# sourceMappingURL=chunk-OSXVD3YF.js.map
18444
+ //# sourceMappingURL=chunk-ETLHVYWG.js.map