@integrity-labs/agt-cli 0.28.1234 → 0.28.1236

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 (34) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-74FVXAHG.js → chunk-6UWT4OVX.js} +3 -3
  3. package/dist/{chunk-PV2LPKJ2.js → chunk-CWO5BDXI.js} +2 -2
  4. package/dist/{chunk-3HLECXMI.js → chunk-FIGZJ6AU.js} +46 -1
  5. package/dist/{chunk-3HLECXMI.js.map → chunk-FIGZJ6AU.js.map} +1 -1
  6. package/dist/{chunk-AZ2QBMCL.js → chunk-IMNBAJ76.js} +2 -2
  7. package/dist/{chunk-UWJTR4AS.js → chunk-O3ZYQFAT.js} +5 -5
  8. package/dist/chunk-O3ZYQFAT.js.map +1 -0
  9. package/dist/{chunk-NPW4S55O.js → chunk-UBEPEAMN.js} +27 -3
  10. package/dist/{chunk-NPW4S55O.js.map → chunk-UBEPEAMN.js.map} +1 -1
  11. package/dist/{claude-code-updater-6GP4LY3Y.js → claude-code-updater-DD6TTIGM.js} +3 -3
  12. package/dist/{claude-pair-runtime-2QA23TMP.js → claude-pair-runtime-YLHZQYW6.js} +3 -3
  13. package/dist/lib/manager-worker.js +42 -24
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +26 -2
  16. package/dist/mcp/index.js +31 -5
  17. package/dist/mcp/origami.js +26 -2
  18. package/dist/mcp/slack-channel.js +26 -2
  19. package/dist/mcp/telegram-channel.js +26 -2
  20. package/dist/{persistent-session-YS5LY7YD.js → persistent-session-2XBZ3AV3.js} +4 -4
  21. package/dist/{responsiveness-probe-C3SSBQCL.js → responsiveness-probe-XEQL4LXY.js} +4 -4
  22. package/dist/{scheduler-engine-M6AFZWNU.js → scheduler-engine-5PCBGRNY.js} +8 -2
  23. package/dist/{session-auth-dead-3GT7MM6J.js → session-auth-dead-UKCQ3SSK.js} +3 -3
  24. package/package.json +1 -1
  25. package/dist/chunk-UWJTR4AS.js.map +0 -1
  26. /package/dist/{chunk-74FVXAHG.js.map → chunk-6UWT4OVX.js.map} +0 -0
  27. /package/dist/{chunk-PV2LPKJ2.js.map → chunk-CWO5BDXI.js.map} +0 -0
  28. /package/dist/{chunk-AZ2QBMCL.js.map → chunk-IMNBAJ76.js.map} +0 -0
  29. /package/dist/{claude-code-updater-6GP4LY3Y.js.map → claude-code-updater-DD6TTIGM.js.map} +0 -0
  30. /package/dist/{claude-pair-runtime-2QA23TMP.js.map → claude-pair-runtime-YLHZQYW6.js.map} +0 -0
  31. /package/dist/{persistent-session-YS5LY7YD.js.map → persistent-session-2XBZ3AV3.js.map} +0 -0
  32. /package/dist/{responsiveness-probe-C3SSBQCL.js.map → responsiveness-probe-XEQL4LXY.js.map} +0 -0
  33. /package/dist/{scheduler-engine-M6AFZWNU.js.map → scheduler-engine-5PCBGRNY.js.map} +0 -0
  34. /package/dist/{session-auth-dead-3GT7MM6J.js.map → session-auth-dead-UKCQ3SSK.js.map} +0 -0
@@ -6267,6 +6267,22 @@ var FLAG_REGISTRY = [
6267
6267
  // deliberate staged security flip, so mutations require explicit confirmation.
6268
6268
  sensitive: true
6269
6269
  },
6270
+ {
6271
+ key: "at-rest-scheme-k-writes",
6272
+ 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.",
6273
+ flagType: "boolean",
6274
+ // Declared safe value is `false` = scheme a. A flag-read error must never arm
6275
+ // scheme k on its own: an unintended `a` row is re-sealable, an unintended
6276
+ // `k` row is only readable via the KMS key it names, so the two failure
6277
+ // directions are not symmetric and the safe one is down.
6278
+ defaultValue: false,
6279
+ // Deliberately NOT public (a server/process gate; a browser neither seals nor
6280
+ // holds a KMS grant) and NO envVar — the API bootstrap evaluates the flag
6281
+ // directly, and a bare AGT_*_ENABLED gate would trip check-new-env-gates.sh.
6282
+ // Sensitive: arming changes the durable at-rest format AND the key custody of
6283
+ // every row it produces, so mutations require explicit confirmation.
6284
+ sensitive: true
6285
+ },
6270
6286
  {
6271
6287
  key: "opencode-host-wizard",
6272
6288
  description: "Show a framework selector (Claude Code | opencode) in the new-host wizard, plus the opencode auth mode (xAI/Grok, per-agent minted keys). Off = the wizard only creates Claude Code hosts (opencode host creation stays CLI/programmatic). Additive UI gate; ships dark. The backend mint + claude_auth_mode=xai are enabled separately.",
@@ -6569,6 +6585,12 @@ var FLAG_REGISTRY = [
6569
6585
  flagType: "boolean",
6570
6586
  defaultValue: true
6571
6587
  },
6588
+ {
6589
+ key: "pending-inbound-tiered-page",
6590
+ description: "Unanswered-inbound tiered PAGE (ENG-9755): when ON, the responsiveness-probe route opens an `agent_pending_inbound` alert for an agent whose oldest reply-expecting inbound has gone unanswered 15 minutes (warning) or 2 hours (critical), re-raised on every probe and closed when the marker clears. Tiers decided by Sherlock 2026-11-08. Before this the only producer was the CloudWatch bridge at `info`, which alert-pager drops, so a 20-hour silent drop paged nobody. Defaults ON for the same reason as frozen-customer-waiting-page: the input (pending_inbound_oldest_age_seconds) has been measured since ENG-6017, and shipping it dark would leave the bug in place. Flip OFF from the admin Feature Flags page to disarm stage-wide: new pages stop at once, and pages ALREADY open are closed (as superseded) by the agent-paused reconciler sweep on its next tick, so disarming never strands an open page. No envVar (ENG-8303 / check-new-env-gates.sh).",
6591
+ flagType: "boolean",
6592
+ defaultValue: true
6593
+ },
6572
6594
  {
6573
6595
  key: "promise-outstanding-alarm",
6574
6596
  description: 'Outstanding-interim-promise alarm (ENG-8265): when ON, the responsiveness-probe route creates a per-agent CloudWatch alarm on `PromiseOutstandingOldestAgeSeconds` \u2014 an inbound the agent acknowledged with an interim reply ("on it") and never answered substantively. Closes the blind spot where an ack satisfied channel-silent-loss, refreshed pending-inbound, and left agent_stall with no in_progress card to see, so a broken promise looked like a served request. Defaults ON (armed on deploy) because the alert it opens is `info` severity \u2014 dashboard-only, never paged \u2014 so a day-one false positive costs a visible row, not a woken human. Flip OFF from the admin Feature Flags page to disarm stage-wide; the window itself is tuned with the AUGMENTED_PROMISE_OUTSTANDING_THRESHOLD_SECONDS API tunable (default 1800).',
@@ -12082,8 +12104,10 @@ var DOWNLOAD_MOBILE_MIN_HEIGHT_PX = 44;
12082
12104
  var DECK_ATTRIBUTION_NARROW_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
12083
12105
  var VISIBILITY_BOTTOM_PX = DOWNLOAD_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
12084
12106
  var DECK_ATTRIBUTION_NARROW_WITH_VISIBILITY_BOTTOM_PX = VISIBILITY_BOTTOM_PX + DOWNLOAD_MOBILE_MIN_HEIGHT_PX + DECK_CHROME_GAP_PX;
12085
- var DECK_PRINT_BUTTON_W_PX = 72;
12086
- var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PRINT_BUTTON_W_PX + DECK_CHROME_GAP_PX;
12107
+ var DECK_PHONE_ICON_PILL_W_PX = DOWNLOAD_MOBILE_MIN_HEIGHT_PX;
12108
+ var DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
12109
+ var DECK_PHONE_VIS_LEFT_PX = 16 + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
12110
+ var DECK_PHONE_VIS_BESIDE_PRINT_LEFT_PX = DECK_PHONE_DOWNLOAD_BESIDE_PRINT_LEFT_PX + DECK_PHONE_ICON_PILL_W_PX + DECK_CHROME_GAP_PX;
12087
12111
 
12088
12112
  // ../../packages/core/dist/integrations/augmented-live/codec.js
12089
12113
  var CODEC_VERSION = 1;
@@ -18326,4 +18350,4 @@ export {
18326
18350
  HOST_ROTATE_KEY_CONFLICT,
18327
18351
  shouldMintReplacementKey
18328
18352
  };
18329
- //# sourceMappingURL=chunk-NPW4S55O.js.map
18353
+ //# sourceMappingURL=chunk-UBEPEAMN.js.map