@integrity-labs/agt-cli 0.28.736 → 0.28.737

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 (24) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-F5UORP7D.js → chunk-7LRKRRC5.js} +4 -4
  3. package/dist/{chunk-6J6G4HOG.js → chunk-MV3QBGO4.js} +2 -2
  4. package/dist/{chunk-IBBBIE4K.js → chunk-WB2E236K.js} +24 -15
  5. package/dist/chunk-WB2E236K.js.map +1 -0
  6. package/dist/{claude-pair-runtime-R2F4HRID.js → claude-pair-runtime-57FICYWW.js} +2 -2
  7. package/dist/lib/manager-worker.js +62 -13
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +23 -14
  10. package/dist/mcp/index.js +23 -14
  11. package/dist/mcp/origami.js +23 -14
  12. package/dist/mcp/slack-channel.js +23 -14
  13. package/dist/mcp/telegram-channel.js +23 -14
  14. package/dist/{persistent-session-GJMGXFF2.js → persistent-session-NE6DCBFD.js} +3 -3
  15. package/dist/{responsiveness-probe-34ECZDWQ.js → responsiveness-probe-VN4OPV56.js} +3 -3
  16. package/dist/{session-auth-dead-TK3KNAH4.js → session-auth-dead-TI6JWW4G.js} +2 -2
  17. package/package.json +1 -1
  18. package/dist/chunk-IBBBIE4K.js.map +0 -1
  19. /package/dist/{chunk-F5UORP7D.js.map → chunk-7LRKRRC5.js.map} +0 -0
  20. /package/dist/{chunk-6J6G4HOG.js.map → chunk-MV3QBGO4.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-R2F4HRID.js.map → claude-pair-runtime-57FICYWW.js.map} +0 -0
  22. /package/dist/{persistent-session-GJMGXFF2.js.map → persistent-session-NE6DCBFD.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-34ECZDWQ.js.map → responsiveness-probe-VN4OPV56.js.map} +0 -0
  24. /package/dist/{session-auth-dead-TK3KNAH4.js.map → session-auth-dead-TI6JWW4G.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -41,12 +41,12 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-F5UORP7D.js";
44
+ } from "../chunk-7LRKRRC5.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
48
48
  readDirectChatSessionState
49
- } from "../chunk-6J6G4HOG.js";
49
+ } from "../chunk-MV3QBGO4.js";
50
50
  import {
51
51
  AnchorSessionClient,
52
52
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-IBBBIE4K.js";
82
+ } from "../chunk-WB2E236K.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.736" : "dev";
5470
+ var cliVersion = true ? "0.28.737" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6654,7 +6654,7 @@ function handleError(err) {
6654
6654
  }
6655
6655
 
6656
6656
  // src/bin/agt.ts
6657
- var cliVersion2 = true ? "0.28.736" : "dev";
6657
+ var cliVersion2 = true ? "0.28.737" : "dev";
6658
6658
  var program = new Command();
6659
6659
  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");
6660
6660
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -13,7 +13,7 @@ import {
13
13
  parseEnvFileEntries,
14
14
  parseEnvIntegrations,
15
15
  shellQuote
16
- } from "./chunk-6J6G4HOG.js";
16
+ } from "./chunk-MV3QBGO4.js";
17
17
  import {
18
18
  BIND_FAILURE_QUARANTINE_THRESHOLD,
19
19
  INTEGRATIONS_SECTION_END,
@@ -62,7 +62,7 @@ import {
62
62
  sessionTranscriptDir,
63
63
  worseConnectivityOutcome,
64
64
  wrapScheduledTaskPrompt
65
- } from "./chunk-IBBBIE4K.js";
65
+ } from "./chunk-WB2E236K.js";
66
66
  import {
67
67
  parsePsRows
68
68
  } from "./chunk-XWVM4KPK.js";
@@ -6427,7 +6427,7 @@ function exchangeFailureKind(err) {
6427
6427
  }
6428
6428
 
6429
6429
  // src/lib/api-client.ts
6430
- var agtCliVersion = true ? "0.28.736" : "dev";
6430
+ var agtCliVersion = true ? "0.28.737" : "dev";
6431
6431
  var lastConfigHash = null;
6432
6432
  function setConfigHash(hash) {
6433
6433
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10473,4 +10473,4 @@ export {
10473
10473
  managerInstallSystemUnitCommand,
10474
10474
  managerUninstallSystemUnitCommand
10475
10475
  };
10476
- //# sourceMappingURL=chunk-F5UORP7D.js.map
10476
+ //# sourceMappingURL=chunk-7LRKRRC5.js.map
@@ -17,7 +17,7 @@ import {
17
17
  rotateDailySession,
18
18
  sessionFileExists,
19
19
  todayLocalIso
20
- } from "./chunk-IBBBIE4K.js";
20
+ } from "./chunk-WB2E236K.js";
21
21
  import {
22
22
  reapOrphanChannelMcps
23
23
  } from "./chunk-XWVM4KPK.js";
@@ -4929,4 +4929,4 @@ export {
4929
4929
  stopAllSessionsAndWait,
4930
4930
  getProjectDir
4931
4931
  };
4932
- //# sourceMappingURL=chunk-6J6G4HOG.js.map
4932
+ //# sourceMappingURL=chunk-MV3QBGO4.js.map
@@ -5482,22 +5482,31 @@ var FLAG_REGISTRY = [
5482
5482
  // seeding code, so `listNewOrgFlagOverrides()` is the one answer to "which flags
5483
5483
  // does a new org get". `defaultValue` stays false so the ~4 months of orgs already
5484
5484
  // carrying an inert enforce-level email.require_approval row are NOT armed on deploy.
5485
- newOrgOverride: true,
5486
- // ENG-9630: API-created organizations only, and this is a deliberate,
5487
- // reviewed asymmetry rather than an oversight.
5485
+ // ENG-9675: EVERY creation path, self-serve included.
5488
5486
  //
5489
- // Arming this holds EVERY dispatching send for human approval. The hold
5490
- // itself works fine on a self-serve org — `hitl-approval-routing` has
5491
- // defaulted to 'on' since ENG-7828, so a real Human Approval card is minted
5492
- // and it is actionable at /organization/approvals. What a self-serve org
5493
- // does NOT have is any means of being TOLD: no Slack alert channel is wired
5494
- // at signup, so the card sits in a console surface nobody has pointed the
5495
- // user at, and their agent's first email silently waits on it.
5487
+ // ENG-9630 had restricted this to API-created orgs on the grounds that a
5488
+ // self-serve org has no way of being TOLD about a held send — no Slack
5489
+ // alert channel is wired at signup. That reasoning was wrong, and the check
5490
+ // behind it was incomplete: it confirmed an in-console page exists at
5491
+ // /organization/approvals and stopped, without looking at the dispatch path.
5496
5492
  //
5497
- // So the blocker is the notification path, not the control. Whoever revisits
5498
- // this should treat "a self-serve org actually receives the card" as the
5499
- // prerequisite and then drop this line — do not simply widen it.
5500
- newOrgOverrideOrigins: ["api"]
5493
+ // `routeBlockedCallToApproval` has three dispatchers, and the Direct Chat
5494
+ // one (lib/integration-broker-approval-direct-chat.ts, ENG-7680) is the
5495
+ // universal fallback — "every managed agent always has a Direct Chat session
5496
+ // its operator/manager watches in the Console ... usable out of the box with
5497
+ // no per-org approval-route setup and no Slack dependency". It posts into a
5498
+ // thread keyed on the approval_requests.id and correlates the manager's
5499
+ // reply back through tryCaptureDirectChatApproval, so a self-serve org has
5500
+ // both a zero-config delivery channel AND a reply path.
5501
+ //
5502
+ // With the stated blocker gone, the guardrail's own promise — "before
5503
+ // sending any email" — applies to the organizations with the LEAST operator
5504
+ // oversight exactly as it does to the rest.
5505
+ //
5506
+ // Existing self-serve orgs are deliberately NOT armed by this: newOrgOverride
5507
+ // is applied at creation, and nothing backfills. Extending it to them is a
5508
+ // separate decision with a comms obligation.
5509
+ newOrgOverride: true
5501
5510
  },
5502
5511
  {
5503
5512
  key: "mail-rule-control-enforcement",
@@ -13016,4 +13025,4 @@ export {
13016
13025
  peekCurrentSession,
13017
13026
  readDailySessionPin
13018
13027
  };
13019
- //# sourceMappingURL=chunk-IBBBIE4K.js.map
13028
+ //# sourceMappingURL=chunk-WB2E236K.js.map