@integrity-labs/agt-cli 0.28.736 → 0.28.738

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-6J6G4HOG.js → chunk-JDNULCLF.js} +2 -2
  3. package/dist/{chunk-IBBBIE4K.js → chunk-MAXKAS4Q.js} +36 -15
  4. package/dist/chunk-MAXKAS4Q.js.map +1 -0
  5. package/dist/{chunk-F5UORP7D.js → chunk-WTAZ5GOS.js} +4 -4
  6. package/dist/{claude-pair-runtime-R2F4HRID.js → claude-pair-runtime-JUGH4TOW.js} +2 -2
  7. package/dist/lib/manager-worker.js +125 -16
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +35 -14
  10. package/dist/mcp/index.js +35 -14
  11. package/dist/mcp/origami.js +35 -14
  12. package/dist/mcp/slack-channel.js +35 -14
  13. package/dist/mcp/telegram-channel.js +35 -14
  14. package/dist/{persistent-session-GJMGXFF2.js → persistent-session-E7TUUVAI.js} +3 -3
  15. package/dist/{responsiveness-probe-34ECZDWQ.js → responsiveness-probe-PXXWLOML.js} +3 -3
  16. package/dist/{session-auth-dead-TK3KNAH4.js → session-auth-dead-HZZJK37X.js} +2 -2
  17. package/package.json +1 -1
  18. package/dist/chunk-IBBBIE4K.js.map +0 -1
  19. /package/dist/{chunk-6J6G4HOG.js.map → chunk-JDNULCLF.js.map} +0 -0
  20. /package/dist/{chunk-F5UORP7D.js.map → chunk-WTAZ5GOS.js.map} +0 -0
  21. /package/dist/{claude-pair-runtime-R2F4HRID.js.map → claude-pair-runtime-JUGH4TOW.js.map} +0 -0
  22. /package/dist/{persistent-session-GJMGXFF2.js.map → persistent-session-E7TUUVAI.js.map} +0 -0
  23. /package/dist/{responsiveness-probe-34ECZDWQ.js.map → responsiveness-probe-PXXWLOML.js.map} +0 -0
  24. /package/dist/{session-auth-dead-TK3KNAH4.js.map → session-auth-dead-HZZJK37X.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-WTAZ5GOS.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
48
48
  readDirectChatSessionState
49
- } from "../chunk-6J6G4HOG.js";
49
+ } from "../chunk-JDNULCLF.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-MAXKAS4Q.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.738" : "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.738" : "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) => {
@@ -17,7 +17,7 @@ import {
17
17
  rotateDailySession,
18
18
  sessionFileExists,
19
19
  todayLocalIso
20
- } from "./chunk-IBBBIE4K.js";
20
+ } from "./chunk-MAXKAS4Q.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-JDNULCLF.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",
@@ -5639,6 +5648,18 @@ var FLAG_REGISTRY = [
5639
5648
  public: true,
5640
5649
  defaultValue: false
5641
5650
  },
5651
+ {
5652
+ key: "ninjafy-notes-menu",
5653
+ description: 'Show the "Notes" nav item in the webapp, linking to the Ninja Notes landing surface (ENG-9676). The landing page tailors itself to the org: an Opt-in / request-enablement flow when Ninja Notes (the `ninjafy-notes` premium integration) is not yet opted in, or the Mac app DMG download once it is. Per-org rollout gate, sibling to `projects-menu`.',
5654
+ flagType: "boolean",
5655
+ // PUBLIC (ADR-0022 §2): a UI-rollout flag the browser needs (the nav shells
5656
+ // read it via usePublicBooleanFlag), so it's serialized to the client via
5657
+ // GET /flags and evaluated per the caller's active org. Flip it on per-org
5658
+ // from the admin Feature Flags page. No env override (UI flag, not an
5659
+ // operator gate). Ships dark (default false).
5660
+ public: true,
5661
+ defaultValue: false
5662
+ },
5642
5663
  {
5643
5664
  key: "platform-maintenance-mode",
5644
5665
  description: 'Platform-wide maintenance mode (ENG-6506): when on, every agent across every team/org auto-replies to admitted human inbound with a "we are offline for maintenance" notice instead of dispatching to the agent \u2014 for whole-platform downtime such as DB upgrades. Read host-side per inbound from the flags cache (no MCP restart). Boolean gate; ships dark \u2014 when off, channels behave exactly as today. (Proactive "back online" follow-up is the ENG-6508 fast-follow, not this flag.)',
@@ -13016,4 +13037,4 @@ export {
13016
13037
  peekCurrentSession,
13017
13038
  readDailySessionPin
13018
13039
  };
13019
- //# sourceMappingURL=chunk-IBBBIE4K.js.map
13040
+ //# sourceMappingURL=chunk-MAXKAS4Q.js.map