@integrity-labs/agt-cli 0.28.1256 → 0.28.1257

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 (32) hide show
  1. package/dist/{api-client-U52DMNUZ.js → api-client-6W27Z5SN.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-3DOSUOHP.js → chunk-AMZ5XSTY.js} +2 -2
  4. package/dist/{chunk-SR36GVLZ.js → chunk-GSNAPMCA.js} +3 -3
  5. package/dist/{chunk-5MAK4D4P.js → chunk-HXM2V3VK.js} +3 -3
  6. package/dist/{chunk-47XHFW55.js → chunk-MXDVYW5G.js} +2 -2
  7. package/dist/{chunk-47XHFW55.js.map → chunk-MXDVYW5G.js.map} +1 -1
  8. package/dist/{chunk-KYA2WIES.js → chunk-W6NQLEKG.js} +5 -5
  9. package/dist/{chunk-4RTRYTAS.js → chunk-ZRQWRXGK.js} +2 -2
  10. package/dist/{claude-code-updater-VKTFAUV3.js → claude-code-updater-3YFSB22P.js} +3 -3
  11. package/dist/{claude-pair-runtime-WMP5O3JG.js → claude-pair-runtime-W4XS6BR2.js} +3 -3
  12. package/dist/lib/manager-worker.js +21 -21
  13. package/dist/mcp/direct-chat-channel.js +1 -1
  14. package/dist/mcp/index.js +1 -1
  15. package/dist/mcp/origami.js +1 -1
  16. package/dist/mcp/slack-channel.js +3 -2
  17. package/dist/mcp/telegram-channel.js +3 -2
  18. package/dist/{persistent-session-UXXRNZ74.js → persistent-session-BBEOA3TR.js} +4 -4
  19. package/dist/{responsiveness-probe-X4QJKKRR.js → responsiveness-probe-X32GL24W.js} +4 -4
  20. package/dist/{session-auth-dead-T4FSSZWG.js → session-auth-dead-5F3NEK57.js} +3 -3
  21. package/package.json +1 -1
  22. /package/dist/{api-client-U52DMNUZ.js.map → api-client-6W27Z5SN.js.map} +0 -0
  23. /package/dist/{chunk-3DOSUOHP.js.map → chunk-AMZ5XSTY.js.map} +0 -0
  24. /package/dist/{chunk-SR36GVLZ.js.map → chunk-GSNAPMCA.js.map} +0 -0
  25. /package/dist/{chunk-5MAK4D4P.js.map → chunk-HXM2V3VK.js.map} +0 -0
  26. /package/dist/{chunk-KYA2WIES.js.map → chunk-W6NQLEKG.js.map} +0 -0
  27. /package/dist/{chunk-4RTRYTAS.js.map → chunk-ZRQWRXGK.js.map} +0 -0
  28. /package/dist/{claude-code-updater-VKTFAUV3.js.map → claude-code-updater-3YFSB22P.js.map} +0 -0
  29. /package/dist/{claude-pair-runtime-WMP5O3JG.js.map → claude-pair-runtime-W4XS6BR2.js.map} +0 -0
  30. /package/dist/{persistent-session-UXXRNZ74.js.map → persistent-session-BBEOA3TR.js.map} +0 -0
  31. /package/dist/{responsiveness-probe-X4QJKKRR.js.map → responsiveness-probe-X32GL24W.js.map} +0 -0
  32. /package/dist/{session-auth-dead-T4FSSZWG.js.map → session-auth-dead-5F3NEK57.js.map} +0 -0
@@ -15,8 +15,8 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-5MAK4D4P.js";
19
- import "./chunk-47XHFW55.js";
18
+ } from "./chunk-HXM2V3VK.js";
19
+ import "./chunk-MXDVYW5G.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-U52DMNUZ.js.map
39
+ //# sourceMappingURL=api-client-6W27Z5SN.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-KYA2WIES.js";
34
+ } from "../chunk-W6NQLEKG.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-5MAK4D4P.js";
45
+ } from "../chunk-HXM2V3VK.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-SR36GVLZ.js";
50
+ } from "../chunk-GSNAPMCA.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
54
54
  sessionTranscriptDir
55
- } from "../chunk-4RTRYTAS.js";
55
+ } from "../chunk-ZRQWRXGK.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-47XHFW55.js";
88
+ } from "../chunk-MXDVYW5G.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.1256" : "dev";
5210
+ var cliVersion = true ? "0.28.1257" : "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.1256" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1257" : "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-47XHFW55.js";
7
+ } from "./chunk-MXDVYW5G.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-3DOSUOHP.js.map
725
+ //# sourceMappingURL=chunk-AMZ5XSTY.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-4RTRYTAS.js";
7
+ } from "./chunk-ZRQWRXGK.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-47XHFW55.js";
54
+ } from "./chunk-MXDVYW5G.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6277,4 +6277,4 @@ export {
6277
6277
  stopAllSessionsAndWait,
6278
6278
  getProjectDir
6279
6279
  };
6280
- //# sourceMappingURL=chunk-SR36GVLZ.js.map
6280
+ //# sourceMappingURL=chunk-GSNAPMCA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-47XHFW55.js";
3
+ } from "./chunk-MXDVYW5G.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.1256" : "dev";
106
+ var agtCliVersion = true ? "0.28.1257" : "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-5MAK4D4P.js.map
471
+ //# sourceMappingURL=chunk-HXM2V3VK.js.map
@@ -6467,7 +6467,7 @@ var FLAG_REGISTRY = [
6467
6467
  },
6468
6468
  {
6469
6469
  key: "at-rest-scheme-k-writes",
6470
- description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2) and, as of ENG-11944, no production caller of mintDekEpoch at all \u2014 no route, no CLI verb, no cron. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
6470
+ description: "ADR-0062 increment C arm (ENG-11944). Gates whether an at-rest sink that has an active dek_epochs row seals under a PER-ORG DEK wrapped by the platform KEK (envelope `s: 'k'`) instead of the app key (`s: 'a'`). OFF (default) = scheme a, i.e. the ADR-0061 behaviour, whatever the sink and whatever epochs exist. Resolved FLEET-WIDE and process-global via setSchemeKWritesArmed at the API bootstrap seam \u2014 per-org overrides do NOT apply (the crypto writer carries no request context), despite the DEK itself being per-org. Ships dark; the corpus is empty. NOT REVERSIBLE THE WAY `at-rest-v2-writes` IS, and the difference is the point: clearing that flag returns the writer to v1 and every blob it wrote stays readable under the same app key, whereas clearing THIS one stops new rows but leaves every row already written readable ONLY through the KMS key its inline wrap names (A5 option 2), permanently. Three preconditions for the flip, none of which this flag can check: (1) ENG-10990 \u2014 the re-seal drain never UNWRAPS the survivor it nominates, so DRAIN COMPLETE can be reported over a row whose only path is a kms: ref that does not work; (2) ADR-0062 A9 \u2014 a wrap ref embeds a region and cannot follow a migration. The BINDING check is at the MINT and compares the region in the ARN KMS returns against PRIMARY_APP_REGION; isSecondaryStack() is only its pre-filter (AWS_REGION unset still lets the SDK take a region from the shared profile) and is separately what stops a non-live stack sealing at all. A seal never writes its own region \u2014 it reuses the epoch ref verbatim; (3) an org must have an active dek_epochs row before ANY of its rows can be scheme k, and this flag does not create one. There is no lazy first-write mint (dek-epochs.ts decision 2); the ONE production caller of mintDekEpoch is POST /admin/dek-epochs/:organizationId/mint (ENG-12012), staff-only, one named org per call, and it must be invoked deliberately. So FLIPPING THIS ON BY ITSELF CHANGES NOTHING: every org still seals scheme a until someone mints deliberately. That is the intended rollout for a control whose first row freezes the envelope for the whole corpus: one pilot org, watched. kms:GenerateDataKey is therefore a MINT precondition, not a flip one \u2014 sst.config.ts grants it only where apiSecretsKmsKeyArn is defined (prod and test), so a mint on any other stage fails loudly with AccessDenied, which is the right place to fail. BUT THE GRANT IS NOT THE ONLY PRECONDITION, AND SCHEME K IS PROD-ONLY (Obi Wan 5eda5230451a). This sentence used to stop at the grant, which read as \"prod and test can mint\". Test cannot: deploy-test.yml pins AUGMENTED_APP_REGION=us-east-2, so the test API runs with AWS_REGION=us-east-2, isSecondaryStack() is true there, and BOTH A9 gates refuse \u2014 the arming seam writes scheme a, and mintDekEpoch throws at its pre-filter (and would fail the ARN-region check anyway, since test's stage CMK is itself in us-east-2). So the first scheme-k row ever written will be on PROD, and the one-pilot-org rehearsal above cannot be done on test first. That is a KNOWN LIMITATION, not an oversight: both gates compare against the single PRIMARY_APP_REGION constant, and making them aware of a stage's own home region needs a stage->region source that does not exist at the mint's call site (AUGMENTED_APP_REGION is read only in sst.config.ts at deploy time, and the first mint runs in an operator shell). Do NOT whitelist us-east-2 to make test mint \u2014 that is the pre-cutover region A9 exists to keep out of rows. VERIFIED 2026-11-10 (ENG-11944), replacing the unverified note that stood here: the live key policy on alias/augmented-prod-secrets is the AWS default single statement (account root, kms:*, NO Condition block), so it constrains no EncryptionContext and cannot refuse the per-org one; and the live API role does hold Decrypt + GenerateDataKey on that key, unconditioned. Note what follows: KMS POLICY IS NOT WHAT ISOLATES ONE ORG DEK FROM ANOTHER. AES-GCM AAD is, cryptographically, inside KMS.",
6471
6471
  flagType: "boolean",
6472
6472
  // Declared safe value is `false` = scheme a. A flag-read error must never arm
6473
6473
  // scheme k on its own: an unintended `a` row is re-sealable, an unintended
@@ -18742,4 +18742,4 @@ export {
18742
18742
  HOST_ROTATE_KEY_CONFLICT,
18743
18743
  shouldMintReplacementKey
18744
18744
  };
18745
- //# sourceMappingURL=chunk-47XHFW55.js.map
18745
+ //# sourceMappingURL=chunk-MXDVYW5G.js.map