@integrity-labs/agt-cli 0.28.1255 → 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 (33) hide show
  1. package/dist/{api-client-QWPG4CTP.js → api-client-6W27Z5SN.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-FHBQ567A.js → chunk-AMZ5XSTY.js} +2 -2
  4. package/dist/{chunk-YRKZIOZ4.js → chunk-GSNAPMCA.js} +3 -3
  5. package/dist/{chunk-M4IKX2W2.js → chunk-HXM2V3VK.js} +3 -3
  6. package/dist/{chunk-JNG5SRQC.js → chunk-MXDVYW5G.js} +15 -3
  7. package/dist/chunk-MXDVYW5G.js.map +1 -0
  8. package/dist/{chunk-JZFSKDEJ.js → chunk-W6NQLEKG.js} +5 -5
  9. package/dist/{chunk-ZGG6D257.js → chunk-ZRQWRXGK.js} +2 -2
  10. package/dist/{claude-code-updater-DE7N7KAQ.js → claude-code-updater-3YFSB22P.js} +3 -3
  11. package/dist/{claude-pair-runtime-NNQOJHPB.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 +14 -2
  14. package/dist/mcp/index.js +14 -2
  15. package/dist/mcp/origami.js +14 -2
  16. package/dist/mcp/slack-channel.js +16 -3
  17. package/dist/mcp/telegram-channel.js +16 -3
  18. package/dist/{persistent-session-JR6TQJXM.js → persistent-session-BBEOA3TR.js} +4 -4
  19. package/dist/{responsiveness-probe-MOGAXCXI.js → responsiveness-probe-X32GL24W.js} +4 -4
  20. package/dist/{session-auth-dead-KZ7BTXYR.js → session-auth-dead-5F3NEK57.js} +3 -3
  21. package/package.json +1 -1
  22. package/dist/chunk-JNG5SRQC.js.map +0 -1
  23. /package/dist/{api-client-QWPG4CTP.js.map → api-client-6W27Z5SN.js.map} +0 -0
  24. /package/dist/{chunk-FHBQ567A.js.map → chunk-AMZ5XSTY.js.map} +0 -0
  25. /package/dist/{chunk-YRKZIOZ4.js.map → chunk-GSNAPMCA.js.map} +0 -0
  26. /package/dist/{chunk-M4IKX2W2.js.map → chunk-HXM2V3VK.js.map} +0 -0
  27. /package/dist/{chunk-JZFSKDEJ.js.map → chunk-W6NQLEKG.js.map} +0 -0
  28. /package/dist/{chunk-ZGG6D257.js.map → chunk-ZRQWRXGK.js.map} +0 -0
  29. /package/dist/{claude-code-updater-DE7N7KAQ.js.map → claude-code-updater-3YFSB22P.js.map} +0 -0
  30. /package/dist/{claude-pair-runtime-NNQOJHPB.js.map → claude-pair-runtime-W4XS6BR2.js.map} +0 -0
  31. /package/dist/{persistent-session-JR6TQJXM.js.map → persistent-session-BBEOA3TR.js.map} +0 -0
  32. /package/dist/{responsiveness-probe-MOGAXCXI.js.map → responsiveness-probe-X32GL24W.js.map} +0 -0
  33. /package/dist/{session-auth-dead-KZ7BTXYR.js.map → session-auth-dead-5F3NEK57.js.map} +0 -0
@@ -33121,6 +33121,7 @@ var ROLE_PERMISSIONS = {
33121
33121
  "project.create",
33122
33122
  "project.edit",
33123
33123
  "project.move",
33124
+ "project.share",
33124
33125
  "workflow.author",
33125
33126
  "workflow.promote",
33126
33127
  "guardrail.author"
@@ -33150,6 +33151,7 @@ var ROLE_PERMISSIONS = {
33150
33151
  "project.create",
33151
33152
  "project.edit",
33152
33153
  "project.move",
33154
+ "project.share",
33153
33155
  "workflow.author",
33154
33156
  "workflow.promote",
33155
33157
  "guardrail.author"
@@ -38743,6 +38745,10 @@ var HOUR_MS = 60 * MINUTE_MS;
38743
38745
  var DAY_MS = 24 * HOUR_MS;
38744
38746
  var ALERT_AGE_SEVERITY_FLOORS = [{ afterMs: 24 * HOUR_MS, floor: "critical" }];
38745
38747
 
38748
+ // ../core/dist/alerts/owner-notice.js
38749
+ var HOST_DOWN_NOTICE_GRACE_MS = 30 * 60 * 1e3;
38750
+ var NOTICE_RETRY_AFTER_MS = 10 * 60 * 1e3;
38751
+
38746
38752
  // ../core/dist/conversations/metrics.js
38747
38753
  var DAY_MS2 = 24 * 60 * 60 * 1e3;
38748
38754
  var ALL_TIME_FLOOR_ISO = "2026-01-01T00:00:00.000Z";
@@ -39533,7 +39539,7 @@ var FLAG_REGISTRY = [
39533
39539
  },
39534
39540
  {
39535
39541
  key: "at-rest-scheme-k-writes",
39536
- 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.",
39542
+ 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.",
39537
39543
  flagType: "boolean",
39538
39544
  // Declared safe value is `false` = scheme a. A flag-read error must never arm
39539
39545
  // scheme k on its own: an unintended `a` row is re-sealable, an unintended
@@ -40286,6 +40292,12 @@ var FLAG_REGISTRY = [
40286
40292
  flagType: "boolean",
40287
40293
  defaultValue: false
40288
40294
  },
40295
+ {
40296
+ key: "owner-dark-notice",
40297
+ description: "CS-2326: tell the ORG OWNER (Slack/Telegram DM as the agent bot, else email) when the org's agents go dark - an open usage_limit_reached alert, or a host_down open for 30+ minutes - and again when the alert closes recovered. One notice per (alert, org), ledgered in owner_dark_notices. Org-scoped boolean; ships dark.",
40298
+ flagType: "boolean",
40299
+ defaultValue: false
40300
+ },
40289
40301
  {
40290
40302
  key: "human-task-assignment-notify",
40291
40303
  description: "Notify a human teammate, via their preferred channel (Slack DM, else email fallback), when an agent assigns them a kanban task (ENG-6665, /host/kanban/assign-human). Off = the card is created silently (it still appears on the recipient's My Tasks page). Boolean gate; ships dark.",
@@ -42207,7 +42219,7 @@ var FLAG_REGISTRY = [
42207
42219
  },
42208
42220
  {
42209
42221
  key: "premium-gateway-inference",
42210
- description: "ENG-10865 / ADR-0117 - RESERVED, and INERT until the runtime wiring lands. Turning it ON today mints nothing and delivers nothing: no caller invokes the mint client yet, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway` either way. The flag is registered ahead of that wiring on purpose - see below - so an operator must not read it as a working switch. ONCE WIRED, ON will mean the API mints a budgeted key per agent and the host spawns against the gateway, so that a policy whose ACTIVE binding is transport=gateway with credential_owner=platform resolves `applied`; OFF will remain exactly the fleet behaviour before this flag existed. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape. The secret is set in prod BEFORE ADR-0117 is accepted, before metering exists (ENG-10867) and before the premium opt-in is registered (ENG-10868), so presence of the credential must not be the gate. Boolean.",
42222
+ description: 'ENG-10865 / ADR-0117 - ON NOW MINTS, AND STILL DELIVERS NOTHING. Do not turn it on expecting a working gateway. As of the API-side wiring, ON means every PROVISIONING write (agent create, host assign, host migrate, support onboarding) mints a budgeted per-agent Vercel key for an agent whose model policy carries a transport=gateway binding with credential_owner=platform and credential_mode=per_agent_minted - real platform spend, per agent. The cap is the AGENT budget if one is set, else the policy budget, else $25/month - and the agent value is a per-row column any team member can PATCH, so the effective ceiling is the $500/month clamp, not the $25 default (Obi Wan e37c56ea5955). Nothing CONSUMES it yet: no published agt-cli reads the delivered field, so GATEWAY_KEY_MIN_AGT_VERSION is null, the key is omitted from every /host/refresh body, resolveBindingCredential is unchanged, and a gateway binding still resolves `blocked-gateway`. So ON today buys keys nobody spends and nobody can use. It becomes a working switch when the CLI consumer ships and that threshold names a published version; OFF will remain exactly the fleet behaviour before this flag existed. Minting runs from provisioning writes ONLY, never from the polled /host/refresh: a mint is a 15-second vendor call and a claim two concurrent polls would race. One consequence is operational - an agent whose policy is assigned or edited AFTER it was provisioned, and every agent that already exists when this is first switched on, holds no key until an operator reconciles it. Registered early and kept deliberately SEPARATE from holding AI_GATEWAY_MINT_TOKEN, because possessing the minting credential is not clearance to spend platform money on a customer agent - the ENG-8247 shape: the credential can be set in prod at any time, independently of this flag, of metering (ENG-10867) and of the premium opt-in (ENG-10868), so presence of the credential must never BE the gate. That is the durable reason and it holds whatever prod currently holds. What prod currently holds, as a DATED observation: the secret is NOT set - the prod deploy for 54988ed44b93 (2026-11-11) reported `skip AI_GATEWAY_MINT_TOKEN (unset, nothing to clear)` in its SSM step, so /augmented/prod/gateway-mint/AI_GATEWAY_MINT_TOKEN does not exist and two independent mechanisms keep this dark: no flag and no credential. Read SSM rather than this line before relying on that - an earlier revision of this description asserted the opposite in the present tense ("the secret is set in prod"), which contradicted the measurement recorded in TASKS-ENG-10865.md and was caught in review (Obi Wan aabe5de1ca0d). A deployment fact stated inside a code registry goes stale by construction. Boolean.',
42211
42223
  flagType: "boolean",
42212
42224
  defaultValue: false,
42213
42225
  sensitive: true,
@@ -43488,7 +43500,8 @@ async function capturePaneSnapshot(opts) {
43488
43500
  try {
43489
43501
  const { stdout } = await execFileAsync(
43490
43502
  "tmux",
43491
- ["capture-pane", "-p", "-t", agentTmuxSessionName(opts.codeName), "-S", `-${scrollback}`],
43503
+ // ENG-12101: the exact session's current pane, never a prefix match.
43504
+ ["capture-pane", "-p", "-t", `=${agentTmuxSessionName(opts.codeName)}:`, "-S", `-${scrollback}`],
43492
43505
  { timeout: TMUX_CAPTURE_TIMEOUT_MS, maxBuffer: 4 * 1024 * 1024 }
43493
43506
  );
43494
43507
  return { source: "tmux", text: stdout };
@@ -68,12 +68,12 @@ import {
68
68
  writeDirectChatSessionState,
69
69
  writeEgressAllowlist,
70
70
  writePersistentClaudeWrapper
71
- } from "./chunk-YRKZIOZ4.js";
72
- import "./chunk-ZGG6D257.js";
71
+ } from "./chunk-GSNAPMCA.js";
72
+ import "./chunk-ZRQWRXGK.js";
73
73
  import "./chunk-HYQ7VOC3.js";
74
74
  import "./chunk-6HBXEJHO.js";
75
75
  import "./chunk-XWVM4KPK.js";
76
- import "./chunk-JNG5SRQC.js";
76
+ import "./chunk-MXDVYW5G.js";
77
77
  import "./chunk-AIUIMEUS.js";
78
78
  import "./chunk-DGUM43GV.js";
79
79
  export {
@@ -147,4 +147,4 @@ export {
147
147
  writeEgressAllowlist,
148
148
  writePersistentClaudeWrapper
149
149
  };
150
- //# sourceMappingURL=persistent-session-JR6TQJXM.js.map
150
+ //# sourceMappingURL=persistent-session-BBEOA3TR.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-YRKZIOZ4.js";
4
- import "./chunk-ZGG6D257.js";
3
+ } from "./chunk-GSNAPMCA.js";
4
+ import "./chunk-ZRQWRXGK.js";
5
5
  import "./chunk-HYQ7VOC3.js";
6
6
  import "./chunk-6HBXEJHO.js";
7
7
  import "./chunk-XWVM4KPK.js";
8
- import "./chunk-JNG5SRQC.js";
8
+ import "./chunk-MXDVYW5G.js";
9
9
  import "./chunk-AIUIMEUS.js";
10
10
  import "./chunk-DGUM43GV.js";
11
11
 
@@ -804,4 +804,4 @@ export {
804
804
  readAndResetSlackReplyBindingClassifications,
805
805
  readAndResetSlackReplyTargetClassifications
806
806
  };
807
- //# sourceMappingURL=responsiveness-probe-MOGAXCXI.js.map
807
+ //# sourceMappingURL=responsiveness-probe-X32GL24W.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-ZGG6D257.js";
4
- import "./chunk-JNG5SRQC.js";
3
+ } from "./chunk-ZRQWRXGK.js";
4
+ import "./chunk-MXDVYW5G.js";
5
5
  import "./chunk-DGUM43GV.js";
6
6
 
7
7
  // src/lib/session-auth-dead.ts
@@ -205,4 +205,4 @@ export {
205
205
  decideSessionAuthState,
206
206
  probeSessionAuth
207
207
  };
208
- //# sourceMappingURL=session-auth-dead-KZ7BTXYR.js.map
208
+ //# sourceMappingURL=session-auth-dead-5F3NEK57.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1255",
3
+ "version": "0.28.1257",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {