@integrity-labs/agt-cli 0.28.891 → 0.28.892

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 (26) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-BH5RFBUM.js → chunk-FZ6KIIYX.js} +55 -15
  3. package/dist/chunk-FZ6KIIYX.js.map +1 -0
  4. package/dist/{chunk-2IVLMJXQ.js → chunk-SUVQ2KSP.js} +4 -4
  5. package/dist/{chunk-SXYTFXPO.js → chunk-WMJBXN6N.js} +2 -2
  6. package/dist/{claude-pair-runtime-TCDKO2CZ.js → claude-pair-runtime-RTD7ZCVS.js} +2 -2
  7. package/dist/lib/manager-worker.js +14 -39
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +54 -14
  10. package/dist/mcp/index.js +54 -14
  11. package/dist/mcp/origami.js +54 -14
  12. package/dist/mcp/slack-channel.js +54 -14
  13. package/dist/mcp/telegram-channel.js +54 -14
  14. package/dist/{persistent-session-ZDZSEODJ.js → persistent-session-ARKZDYMX.js} +3 -3
  15. package/dist/{responsiveness-probe-7CY5VZMG.js → responsiveness-probe-X2WXPIUI.js} +3 -3
  16. package/dist/{session-auth-dead-65TG2DLW.js → session-auth-dead-BLEV4AUJ.js} +2 -2
  17. package/package.json +2 -2
  18. package/dist/assets/review/SKILL.md +0 -223
  19. package/dist/assets/review/SWEEP.md +0 -169
  20. package/dist/chunk-BH5RFBUM.js.map +0 -1
  21. /package/dist/{chunk-2IVLMJXQ.js.map → chunk-SUVQ2KSP.js.map} +0 -0
  22. /package/dist/{chunk-SXYTFXPO.js.map → chunk-WMJBXN6N.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-TCDKO2CZ.js.map → claude-pair-runtime-RTD7ZCVS.js.map} +0 -0
  24. /package/dist/{persistent-session-ZDZSEODJ.js.map → persistent-session-ARKZDYMX.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-7CY5VZMG.js.map → responsiveness-probe-X2WXPIUI.js.map} +0 -0
  26. /package/dist/{session-auth-dead-65TG2DLW.js.map → session-auth-dead-BLEV4AUJ.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-2IVLMJXQ.js";
43
+ } from "../chunk-SUVQ2KSP.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-SXYTFXPO.js";
48
+ } from "../chunk-WMJBXN6N.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-BH5RFBUM.js";
82
+ } from "../chunk-FZ6KIIYX.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.891" : "dev";
5470
+ var cliVersion = true ? "0.28.892" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.891" : "dev";
6661
+ var cliVersion2 = true ? "0.28.892" : "dev";
6662
6662
  var program = new Command();
6663
6663
  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");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4659,6 +4659,12 @@ var USER_FACING_NOTICE_KINDS = Object.freeze([
4659
4659
  ]);
4660
4660
  var HIDDEN_NOTICE_KINDS = Object.freeze(Object.entries(NOTICE_KIND_AUDIENCE).filter(([, audience]) => audience === "agent").map(([kind]) => kind));
4661
4661
 
4662
+ // ../../packages/core/dist/direct-chat/agent-history-notices.js
4663
+ var AGENT_HISTORY_TURNS_ONLY_OR_FILTER = [
4664
+ "payload->>kind.is.null",
4665
+ `payload->>kind.in.("",${[...USER_FACING_NOTICE_KINDS].sort().join(",")})`
4666
+ ].join(",");
4667
+
4662
4668
  // ../../packages/core/dist/onboarding/state-machine.js
4663
4669
  var AREA_ORDER = [
4664
4670
  "framing",
@@ -6838,16 +6844,36 @@ var FLAG_REGISTRY = [
6838
6844
  },
6839
6845
  {
6840
6846
  key: "ninjafy-brand",
6841
- 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 getPublicBooleanFlagServer returns the default 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. Those surfaces follow only when the stage-wide default flips. Ships dark.',
6847
+ 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.',
6842
6848
  flagType: "boolean",
6843
- // Declared safe value is `false`: the pre-rebrand brand. `false` is also the
6844
- // fail-closed direction if the flag DB is unreachable we must show the brand
6845
- // that is currently live and contractually correct, never leak an unannounced
6846
- // rebrand to every customer at once.
6847
- defaultValue: false,
6849
+ // ENG-9830 (cutover step 1): flipped `false` -> `true`. The comment this
6850
+ // replaces argued `false` was the fail-closed direction "never leak an
6851
+ // UNANNOUNCED rebrand to every customer at once". That was correct for as
6852
+ // long as the rebrand was unannounced. It is not any more: Ninjafy is the
6853
+ // live, announced brand (ENG-9613 reconciled the console onto the master
6854
+ // assets while the flag was already ON in production), so `false` now points
6855
+ // at the brand we no longer ship. A flags outage that reverted a customer to
6856
+ // Augmented would be the incident, not the safe harbour.
6857
+ //
6858
+ // The old rationale is recorded rather than deleted because it is a correct
6859
+ // argument whose PREMISE expired — reading the change without it looks like
6860
+ // someone overriding a deliberate fail-closed default.
6861
+ //
6862
+ // NOTE this value is only consulted by the API evaluator when building the
6863
+ // `GET /flags` map for an org with no override. It is NOT the fallback the
6864
+ // webapp uses on an outage: `getPublicBooleanFlagServer(key, defaultValue)`
6865
+ // returns its own PASSED argument when the fetch fails, so the call sites in
6866
+ // (dashboard)/layout.tsx and components/brand-stamp.tsx carry `true` too.
6867
+ // Flipping only one of the two leaves the cutover half-applied.
6868
+ defaultValue: true,
6848
6869
  // ENG-9227: there are NO client readers of this key left. (dashboard)/
6849
6870
  // layout.tsx resolves it ONCE server-side via getPublicBooleanFlagServer and
6850
6871
  // passes the boolean down to sidebar.tsx and top-nav.tsx as a required prop.
6872
+ // "ONCE" is about the chrome, not the key: components/brand-stamp.tsx is a
6873
+ // SECOND, independent server read of `ninjafy-brand` (CodeRabbit, #5385).
6874
+ // Both are listed in the note above because both carry an outage fallback
6875
+ // that has to move together — reading this paragraph alone would leave you
6876
+ // updating one of the two.
6851
6877
  // ENG-8858 did that for the THEME; ENG-9227 finished the job for the
6852
6878
  // WORDMARK, which had kept usePublicBooleanFlag and so kept swapping
6853
6879
  // "augmented.team" to "ninjafy" after hydration.
@@ -6869,24 +6895,38 @@ var FLAG_REGISTRY = [
6869
6895
  },
6870
6896
  {
6871
6897
  key: "ninjafy-logo",
6872
- description: "Which Ninjafy logo TREATMENT the console chrome renders (ENG-9365). This is a SUB-SELECTION under ninjafy-brand, not a second brand gate: it is consulted only once ninjafy-brand has already resolved ON, so with the brand off the value is inert and the half-branded state that flag's description calls unreachable stays unreachable. ninjafy-brand remains the single kill switch for the rebrand. It exists so candidate logo treatments can be put in front of a human and compared in the running console, rather than judged from a static export. lockup = mark and wordmark together, both in the brand blue \u2014 exactly what ENG-9298 shipped, so an unset flag is a no-op. two-tone = the mark in brand blue with the wordmark in the neutral text colour (the treatment of the blue-icon/black-wordmark artwork). wordmark = the word alone, no mark. Every treatment is composed from the ENG-9298 geometry \u2014 ENG-9312 pins that the lockup's blue path IS the mark subpath followed by the wordmark subpaths, byte for byte \u2014 so a new treatment is a composition, never a fresh trace, and the three drawings cannot drift apart. Surfaces are the dashboard sidebar and the top nav. The top nav shows the WORDMARK portion at every width whatever the treatment, because ENG-9342 decided that deliberately (a full lockup at the header's icon height crowds the team switcher on a phone) \u2014 so a treatment changes the word's colour there, never whether a mark appears. The admin sidebar (ENG-9323) is NOT wired to this key and always renders the mark; widening it is a separate decision. Resolved SERVER-SIDE in (dashboard)/layout.tsx via getPublicEnumFlagServer, beside ninjafy-brand and in the same single GET /flags round trip, then passed down as a required prop. That is not a style preference: the client hook starts at its default and updates after an async fetch, so a client read would paint one logo and swap it after hydration \u2014 the exact flash ENG-9227 removed from the wordmark and ENG-8858 removed from the palette. Org and team are the useful pilot grains, as for ninjafy-brand: the single consumer evaluates in the active-org cookie scope, so a host- or agent-scoped override row is accepted by the table but never reached by the console.",
6898
+ description: "Which Ninjafy logo TREATMENT the console chrome renders (ENG-9365). This is a SUB-SELECTION under ninjafy-brand, not a second brand gate: it is consulted only once ninjafy-brand has already resolved ON, so with the brand off the value is inert and the half-branded state that flag's description calls unreachable stays unreachable. ninjafy-brand remains the single kill switch for the rebrand. It existed so candidate logo treatments could be put in front of a human and compared in the running console, rather than judged from a static export. That comparison has happened: ENG-9830 cutover step 1 chose TWO-TONE, so that is now the default and an unset flag renders it. NOTE this reverses the property this description used to claim \u2014 an unset flag was a no-op while the default was lockup (what ENG-9298 shipped), and that is deliberately given up at cutover: the default MOVING is the change. The key survives only until cutover step 2 hardcodes the chosen treatment and deletes it. lockup = mark and wordmark together, both in the brand blue \u2014 what ENG-9298 shipped. two-tone = the mark in brand blue with the wordmark in the neutral text colour (the treatment of the blue-icon/black-wordmark artwork); the chosen one. wordmark = the word alone, no mark. Every treatment is composed from the ENG-9298 geometry \u2014 ENG-9312 pins that the lockup's blue path IS the mark subpath followed by the wordmark subpaths, byte for byte \u2014 so a new treatment is a composition, never a fresh trace, and the three drawings cannot drift apart. Surfaces are the dashboard sidebar and the top nav. The top nav shows the WORDMARK portion at every width whatever the treatment, because ENG-9342 decided that deliberately (a full lockup at the header's icon height crowds the team switcher on a phone) \u2014 so a treatment changes the word's colour there, never whether a mark appears. The admin sidebar (ENG-9323) is NOT wired to this key and always renders the mark; widening it is a separate decision. Resolved SERVER-SIDE in (dashboard)/layout.tsx via getPublicEnumFlagServer, beside ninjafy-brand and in the same single GET /flags round trip, then passed down as a required prop. That is not a style preference: the client hook starts at its default and updates after an async fetch, so a client read would paint one logo and swap it after hydration \u2014 the exact flash ENG-9227 removed from the wordmark and ENG-8858 removed from the palette. Org and team are the useful pilot grains, as for ninjafy-brand: the single consumer evaluates in the active-org cookie scope, so a host- or agent-scoped override row is accepted by the table but never reached by the console.",
6873
6899
  flagType: "enum",
6874
6900
  allowedValues: ["lockup", "two-tone", "wordmark"],
6875
- // Declared safe value is `lockup` what ENG-9298 shipped. This flag has no
6876
- // "off" direction: it selects among presentations that are all live-safe, so
6877
- // fail-safe here means "the treatment currently in production", not the
6901
+ // ENG-9830 (cutover step 1): `lockup` -> `two-tone`. The treatments existed
6902
+ // so they could be compared in the running console rather than judged from a
6903
+ // static export (ENG-9365); that comparison has now happened and `two-tone`
6904
+ // — the mark in brand blue with the wordmark in the neutral text colour — is
6905
+ // the chosen treatment. It becomes the hardcoded one when this key is
6906
+ // removed at cutover step 2.
6907
+ //
6908
+ // The rule this value obeys is unchanged: this flag has no "off" direction,
6909
+ // so fail-safe means "the treatment currently in production", not the
6878
6910
  // narrowest one. A flag-DB read error, an archived row, or a stored value
6879
6911
  // outside allowedValues all resolve here (evaluate.ts normalizeFlagValue),
6880
- // which is what makes an experimental value impossible to strand.
6881
- defaultValue: "lockup",
6912
+ // which is what makes an experimental value impossible to strand. Only which
6913
+ // treatment holds that position has moved.
6914
+ //
6915
+ // Same split as ninjafy-brand above: this governs the API evaluation path
6916
+ // only. The webapp's outage fallback is the argument passed at the
6917
+ // (dashboard)/layout.tsx call site, which carries 'two-tone' to match.
6918
+ defaultValue: "two-tone",
6882
6919
  // Same trap as ninjafy-brand, and it bites harder here because there are no
6883
6920
  // client readers of this key AT ALL — it is server-resolved by construction.
6884
6921
  // `public` does NOT mean "read by a browser"; it means "readable through the
6885
6922
  // public map". getPublicEnumFlagServer resolves against the same GET /flags
6886
6923
  // endpoint the browser uses, and that route filters to listPublicFlagKeys()
6887
6924
  // (routes/flags.ts). Drop `public` and the key is simply absent from the map,
6888
- // so the helper falls through to its default and returns `lockup` FOREVER
6889
- // the dropdown appearing to do nothing, with no error raised anywhere.
6925
+ // so the helper falls through to the fallback passed at that call site and
6926
+ // returns it FOREVER — the dropdown appearing to do nothing, with no error
6927
+ // raised anywhere. Named as the call site rather than as a literal on
6928
+ // purpose: this comment said `lockup` for exactly as long as `lockup` was
6929
+ // the answer, and ENG-9830 flipping the winner is what made it a lie.
6890
6930
  public: true
6891
6931
  },
6892
6932
  {
@@ -14419,4 +14459,4 @@ export {
14419
14459
  peekCurrentSession,
14420
14460
  readDailySessionPin
14421
14461
  };
14422
- //# sourceMappingURL=chunk-BH5RFBUM.js.map
14462
+ //# sourceMappingURL=chunk-FZ6KIIYX.js.map