@integrity-labs/agt-cli 0.28.1307 → 0.28.1308

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 (35) hide show
  1. package/dist/{api-client-HAN3QU6H.js → api-client-QHGAABOL.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-VOYD7FPP.js → chunk-GZT7DHPV.js} +3 -3
  4. package/dist/{chunk-IA3IT3JM.js → chunk-HMH4EOV5.js} +5 -5
  5. package/dist/{chunk-I6HGFJNX.js → chunk-JZOA4A3J.js} +2 -2
  6. package/dist/{chunk-GLX5CD6S.js → chunk-NXTNYNNV.js} +2 -2
  7. package/dist/{chunk-CQQYZUC5.js → chunk-VSJUMNQ5.js} +108 -13
  8. package/dist/chunk-VSJUMNQ5.js.map +1 -0
  9. package/dist/{chunk-4KSUIAI4.js → chunk-WW2CTOEO.js} +9 -73
  10. package/dist/chunk-WW2CTOEO.js.map +1 -0
  11. package/dist/{claude-code-updater-KA4VMUWK.js → claude-code-updater-OU4AEM5Y.js} +3 -3
  12. package/dist/{claude-pair-runtime-AAGIQSUI.js → claude-pair-runtime-H7A7ZOEW.js} +3 -3
  13. package/dist/lib/manager-worker.js +149 -26
  14. package/dist/lib/manager-worker.js.map +1 -1
  15. package/dist/mcp/direct-chat-channel.js +8 -72
  16. package/dist/mcp/index.js +18 -73
  17. package/dist/mcp/origami.js +8 -72
  18. package/dist/mcp/slack-channel.js +111 -180
  19. package/dist/mcp/telegram-channel.js +8 -72
  20. package/dist/{persistent-session-FJ4Y7XIB.js → persistent-session-OUCTECWP.js} +18 -4
  21. package/dist/{responsiveness-probe-2MCC7NOE.js → responsiveness-probe-SC72APRB.js} +4 -4
  22. package/dist/{session-auth-dead-MDZWPSED.js → session-auth-dead-MQR2SLW5.js} +3 -3
  23. package/package.json +1 -1
  24. package/dist/chunk-4KSUIAI4.js.map +0 -1
  25. package/dist/chunk-CQQYZUC5.js.map +0 -1
  26. /package/dist/{api-client-HAN3QU6H.js.map → api-client-QHGAABOL.js.map} +0 -0
  27. /package/dist/{chunk-VOYD7FPP.js.map → chunk-GZT7DHPV.js.map} +0 -0
  28. /package/dist/{chunk-IA3IT3JM.js.map → chunk-HMH4EOV5.js.map} +0 -0
  29. /package/dist/{chunk-I6HGFJNX.js.map → chunk-JZOA4A3J.js.map} +0 -0
  30. /package/dist/{chunk-GLX5CD6S.js.map → chunk-NXTNYNNV.js.map} +0 -0
  31. /package/dist/{claude-code-updater-KA4VMUWK.js.map → claude-code-updater-OU4AEM5Y.js.map} +0 -0
  32. /package/dist/{claude-pair-runtime-AAGIQSUI.js.map → claude-pair-runtime-H7A7ZOEW.js.map} +0 -0
  33. /package/dist/{persistent-session-FJ4Y7XIB.js.map → persistent-session-OUCTECWP.js.map} +0 -0
  34. /package/dist/{responsiveness-probe-2MCC7NOE.js.map → responsiveness-probe-SC72APRB.js.map} +0 -0
  35. /package/dist/{session-auth-dead-MDZWPSED.js.map → session-auth-dead-MQR2SLW5.js.map} +0 -0
@@ -8641,78 +8641,6 @@ var FLAG_REGISTRY = [
8641
8641
  // must never be serialized into the browser map.
8642
8642
  defaultValue: false
8643
8643
  },
8644
- {
8645
- key: "agent-unified-screen",
8646
- description: 'Unified agent screen redesign (ENG-8478 epic / ENG-8480). When ON, the webapp renders the new single-screen "viewing is editing" agent surface (stripped-back hero, working agent switcher, inline-editable profile, embedded operational panels + a live direct-chat drawer) in place of the separate agent view/edit pages; when OFF, the current view/edit pages are unchanged. Additive UI gate \u2014 no data-model change: each panel reads the same existing endpoints the current pages use. Composes independently with app-top-nav-shell (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9832 cutover step 1 flipped the default to true, so an org with no override now gets the unified screen. The key survives only until cutover step 2 deletes it \u2014 which is blocked on ENG-8547 and ENG-8559, because the flag-off branch is still the only home for the /edit tabs.',
8647
- flagType: "boolean",
8648
- // ENG-9832 (cutover step 1): flipped `false` -> `true`. The comment this
8649
- // replaces called `false` the safe direction — "the current view/edit
8650
- // pages", never "a half-built redesign". That was true while the redesign
8651
- // was half built. It has been the shipped surface for the pilot orgs since
8652
- // ENG-8481, so `false` now points at the pages being retired, not at safety.
8653
- // The old rationale is recorded rather than deleted because it was correct
8654
- // under a premise that has since expired.
8655
- //
8656
- // MIND THE SPLIT. This value is consulted by the API evaluator when it
8657
- // builds the `GET /flags` map for an org with NO override. It is NOT the
8658
- // fallback the webapp uses when that fetch fails: `getPublicBooleanFlagServer`
8659
- // and `usePublicBooleanFlag` both return the argument passed at the CALL
8660
- // SITE and never consult this registry. Three call sites carry `true` to
8661
- // match — agents/[agentId]/page.tsx, agents/[agentId]/edit/page.tsx and
8662
- // `useAgentUnifiedScreenEnabled` in lib/redesign-flags.ts. Flipping the
8663
- // registry alone leaves the cutover half-applied with no error anywhere;
8664
- // eng-9832-unified-fallback-parity.test.ts fails if any of the three drifts.
8665
- defaultValue: true,
8666
- // Read BOTH server-side (agents/[agentId]/page.tsx and its /edit sibling, via
8667
- // getPublicBooleanFlagServer) and client-side (dashboard-sherlock-shell.tsx,
8668
- // via usePublicBooleanFlag), so the key must be in the browser-exposed public
8669
- // map. Additive viewer gate, resolved within the active-org cookie's scope
8670
- // — not sensitive.
8671
- //
8672
- // `public` MUST STAY until step 2 deletes the key, and the reason reads
8673
- // backwards: the server helper resolves against the very SAME public-filtered
8674
- // `GET /flags` the browser uses (routes/flags.ts filters to
8675
- // listPublicFlagKeys()). Drop `public` and the key is simply absent from the
8676
- // map, so both server readers fall through to their call-site argument
8677
- // forever — silently, with no error raised anywhere.
8678
- public: true
8679
- },
8680
- {
8681
- key: "app-top-nav-shell",
8682
- description: "Global top-navigation shell redesign (ENG-8478 epic / ENG-8486). When ON, the dashboard chrome replaces the left sidebar with a top navigation bar (team switcher \xB7 destinations \xB7 command palette + account) so the left side is free for an agent-scoped rail; when OFF, the existing left sidebar is unchanged. Additive layout gate \u2014 no data-model change. Composes independently with agent-unified-screen (the two flags are reconciled in ENG-8488). NO LONGER DARK: ENG-9831 cutover step 1 flipped the default to true, so an org with no override now gets the top-nav shell. The key survives only until cutover step 2 deletes it.",
8683
- flagType: "boolean",
8684
- // ENG-9831 (cutover step 1): flipped `false` -> `true`. The comment this
8685
- // replaces called `false` the fail-closed direction — "the shell that ships
8686
- // today". That was true while the sidebar was the shell that shipped; the
8687
- // top nav is now the one being cut over to, so `false` points at the layout
8688
- // being retired. The old rationale is recorded rather than deleted because
8689
- // it was correct under a premise that has expired.
8690
- //
8691
- // NOTE the same split as ninjafy-brand below: this value is consulted by the
8692
- // API evaluator when building the `GET /flags` map for an org with no
8693
- // override. It is NOT the fallback the webapp uses on an outage — that is
8694
- // the argument passed at the call site. Four call sites carry `true` to
8695
- // match: (dashboard)/layout.tsx and the three legacy redirect hubs
8696
- // (settings, team, organization/settings). Flipping the registry alone
8697
- // leaves the cutover half-applied.
8698
- defaultValue: true,
8699
- // ENG-9831: NO LONGER read client-side. It was — via usePublicBooleanFlag in
8700
- // sidebar.tsx (twice) and top-nav.tsx — and that is precisely what this
8701
- // slice removed: a client hook starts at its default and corrects after an
8702
- // async GET /flags, so the console painted the sidebar and then replaced the
8703
- // WHOLE dashboard chrome after hydration. The ENG-8858/ENG-9227 flash at
8704
- // layout scale. It is now resolved once server-side in (dashboard)/
8705
- // layout.tsx and passed to both shells as a required prop.
8706
- //
8707
- // `public` MUST STAY ANYWAY — the same trap documented on ninjafy-brand.
8708
- // getPublicBooleanFlagServer resolves against the very same public-filtered
8709
- // `GET /flags` the browser uses (routes/flags.ts filters to
8710
- // listPublicFlagKeys()). Drop `public` and the key is simply absent from the
8711
- // map, the server helper falls through to its default forever, and every org
8712
- // silently gets whatever that default happens to be with no error anywhere.
8713
- // `public` means "readable through the public map", not "read by a browser".
8714
- public: true
8715
- },
8716
8644
  {
8717
8645
  key: "ninjafy-brand",
8718
8646
  description: 'Present the product under the Ninjafy brand instead of Augmented Team (ENG-8250). This is the UMBRELLA brand gate, not a one-off nav toggle: every subsequent rebrand surface (page titles, email templates, marketing-facing copy) reads THIS key rather than adding its own flag, so the whole rebrand keeps a single kill switch. First surface is the left-hand nav wordmark \u2014 ON replaces the human+robot mark and the "augmented.team" text with italic lowercase "ninjafy"; OFF renders exactly what shipped before. Scope is the USER-FACING BRAND PRESENTATION \u2014 text AND VISUAL THEME. ENG-8858 widened this from text alone: the Ninjafy palette is gated here too, because a colour theme is not text. It stays ONE key rather than gaining a `ninjafy-theme` sibling, so a half-branded state \u2014 ninjafy wordmark over Augmented green \u2014 is unreachable and the rebrand keeps a single kill switch. It must never gate a code identifier, package name, env var or CLI name. EXISTING identifiers stay `Augmented`/`agt` per the CLAUDE.md naming contract, which protects them from premature renaming \u2014 the deep rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here. That contract does NOT require NEW code to carry the old brand: artefacts created specifically for the rebrand take Ninjafy naming (ENG-8078 decision 9; see the CLAUDE.md rebrand carve-out). Either way it is a naming rule, not a flag concern \u2014 this key gates presentation, never an identifier. Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot a subset while everyone else still sees Augmented. Overrides resolve at FOUR grains, most specific first \u2014 agent, team, host, then org-wide (evaluate.ts:79-81); organization_id is always required, so there is no global override. Org and team are the useful pilot grains for THIS flag: there is now exactly ONE consumer \u2014 (dashboard)/layout.tsx via getPublicBooleanFlagServer \u2014 evaluating in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. It resolves the key ONCE per request and passes the boolean down to sidebar.tsx and top-nav.tsx as a required prop. Resolution is SERVER-side deliberately: the client hook starts at its default and updates after an async GET /flags, so anything gated on it paints Augmented and then repaints. ENG-8858 moved the PALETTE for that reason (a full-page colour flash); ENG-9227 moved the WORDMARK, which had been the last surface still swapping after hydration. A consequence worth knowing: /login and the marketing routes stay on the Augmented palette whatever an org sets, because fetchPublicFlags returns null without a verified session and a pre-auth page has neither a session nor an active org \u2014 a PER-ORG flag structurally cannot brand one. ENG-9830 CORRECTS what used to be written here ("those surfaces follow only when the stage-wide default flips"): they do not follow it at all. Two reasons. The value returned on a null fetch is the CALL SITE\u2019s passed argument, not this registry default; and six such pages (/login, /reset-password, /auth/confirm, the pre-redeem member-signin gate and the two public Slack-install terminal pages) do not mount <BrandStamp/> AT ALL \u2014 deliberately, enumerated with per-page reasons in eng-9266-brand-stamp-coverage.test.ts. They become branded when the flag is REMOVED at cutover step 2 and the palette moves into bare :root, with no read left to gate it. NO LONGER DARK: ENG-9830 cutover step 1 flipped the default to true, so an org with no override now sees Ninjafy. The key survives only until cutover step 2 deletes it.',
@@ -16392,6 +16320,14 @@ function detectDrift(snapshot, liveState, agentId, codeName, riskTier) {
16392
16320
  };
16393
16321
  }
16394
16322
 
16323
+ // ../../packages/core/dist/slack-mrkdwn.js
16324
+ var TARGET = String.raw`(<[^<>]*>|[^()\s]+(?:\([^()\s]*\)[^()\s]*)*)`;
16325
+ var TITLE = String.raw`(?:\s+"[^"]*")?`;
16326
+ var WHOLE_LINE_BLANK_IMAGE = new RegExp(String.raw`^[ \t]*!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*\r?\n?`, "gm");
16327
+ var INLINE_BLANK_IMAGE = new RegExp(String.raw`!\[[ \t]*\]\(\s*${TARGET}${TITLE}\s*\)[ \t]*`, "g");
16328
+ var IMAGE = new RegExp(String.raw`!\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
16329
+ var LINK = new RegExp(String.raw`(?<!!)\[([^\]]*)\]\(\s*${TARGET}${TITLE}\s*\)`, "g");
16330
+
16395
16331
  // ../../packages/core/dist/delivery/parse.js
16396
16332
  function parseDeliveryTarget(raw) {
16397
16333
  if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
@@ -19087,4 +19023,4 @@ export {
19087
19023
  HOST_ROTATE_KEY_CONFLICT,
19088
19024
  shouldMintReplacementKey
19089
19025
  };
19090
- //# sourceMappingURL=chunk-4KSUIAI4.js.map
19026
+ //# sourceMappingURL=chunk-WW2CTOEO.js.map