@integrity-labs/agt-cli 0.28.539 → 0.28.541

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.
@@ -21488,6 +21488,25 @@ var package_default = {
21488
21488
  }
21489
21489
  };
21490
21490
 
21491
+ // src/format-error.ts
21492
+ function formatError2(err) {
21493
+ if (err && typeof err === "object" && "status" in err && "message" in err) {
21494
+ const e = err;
21495
+ const serverMessage = typeof e.message === "string" ? e.message : "";
21496
+ const probe = serverMessage.trim();
21497
+ const saidNothing = probe === "" || probe === `admin-debug request failed: ${e.status}`;
21498
+ if (!saidNothing) return `Admin debug error ${e.status}: ${serverMessage}`;
21499
+ if (e.status === 403) {
21500
+ return "Admin debug error 403: forbidden, and the server gave no reason. One of three things, which this client cannot tell apart without a server message: the caller is not an Augmented Team staff agent; the admin-debug token lacks WRITE capability; or the target org is readable but not write-authorized (it needs an active write grant).";
21501
+ }
21502
+ if (e.status === 503) {
21503
+ return "Admin debug error 503: unavailable, and the server gave no reason. Usually one of: admin-debug writes are disabled (ADMIN_DEBUG_WRITE_MODE=off), the signing key is unconfigured, or the org context is unresolvable on this stage.";
21504
+ }
21505
+ return `Admin debug error ${e.status}`;
21506
+ }
21507
+ return err instanceof Error ? err.message : String(err);
21508
+ }
21509
+
21491
21510
  // src/index.ts
21492
21511
  var AGT_HOST = process.env.AGT_HOST;
21493
21512
  var AGT_TOKEN = process.env.AGT_TOKEN ?? "";
@@ -21507,19 +21526,6 @@ var client = new AdminDebugClient({
21507
21526
  agentId: AGT_AGENT_ID || void 0,
21508
21527
  runId: AGT_RUN_ID || void 0
21509
21528
  });
21510
- function formatError2(err) {
21511
- if (err && typeof err === "object" && "status" in err && "message" in err) {
21512
- const e = err;
21513
- if (e.status === 503) {
21514
- return "Admin debug surface is temporarily unavailable (503) \u2014 the signing key may be unconfigured or the org context is unresolvable on this stage.";
21515
- }
21516
- if (e.status === 403) {
21517
- return "Forbidden \u2014 admin debug is restricted to Integrity Labs staff agents.";
21518
- }
21519
- return `Admin debug error ${e.status}: ${e.message}`;
21520
- }
21521
- return err instanceof Error ? err.message : String(err);
21522
- }
21523
21529
  var server = new McpServer({ name: "augmented-admin-mcp", version: package_default.version });
21524
21530
  server.tool(
21525
21531
  "debug_search_agents",
@@ -35885,7 +35885,7 @@ var FLAG_REGISTRY = [
35885
35885
  },
35886
35886
  {
35887
35887
  key: "ninjafy-brand",
35888
- 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 USER-FACING BRAND TEXT ONLY: it must never gate a code identifier, package name, env var or CLI name, which stay `Augmented`/`agt` per the CLAUDE.md naming contract (the deep code rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here). Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot one organization while every other org still sees Augmented. Ships dark.',
35888
+ 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 USER-FACING BRAND TEXT ONLY: 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 text, 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: its only consumer is sidebar.tsx via usePublicBooleanFlag, which evaluates in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. Ships dark.',
35889
35889
  flagType: "boolean",
35890
35890
  // Declared safe value is `false`: the pre-rebrand brand. `false` is also the
35891
35891
  // fail-closed direction — if the flag DB is unreachable we must show the brand
@@ -41776,7 +41776,7 @@ var FLAG_REGISTRY = [
41776
41776
  },
41777
41777
  {
41778
41778
  key: "ninjafy-brand",
41779
- 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 USER-FACING BRAND TEXT ONLY: it must never gate a code identifier, package name, env var or CLI name, which stay `Augmented`/`agt` per the CLAUDE.md naming contract (the deep code rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here). Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot one organization while every other org still sees Augmented. Ships dark.',
41779
+ 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 USER-FACING BRAND TEXT ONLY: 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 text, 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: its only consumer is sidebar.tsx via usePublicBooleanFlag, which evaluates in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. Ships dark.',
41780
41780
  flagType: "boolean",
41781
41781
  // Declared safe value is `false`: the pre-rebrand brand. `false` is also the
41782
41782
  // fail-closed direction — if the flag DB is unreachable we must show the brand
@@ -36059,7 +36059,7 @@ var FLAG_REGISTRY = [
36059
36059
  },
36060
36060
  {
36061
36061
  key: "ninjafy-brand",
36062
- 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 USER-FACING BRAND TEXT ONLY: it must never gate a code identifier, package name, env var or CLI name, which stay `Augmented`/`agt` per the CLAUDE.md naming contract (the deep code rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here). Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot one organization while every other org still sees Augmented. Ships dark.',
36062
+ 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 USER-FACING BRAND TEXT ONLY: 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 text, 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: its only consumer is sidebar.tsx via usePublicBooleanFlag, which evaluates in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. Ships dark.',
36063
36063
  flagType: "boolean",
36064
36064
  // Declared safe value is `false`: the pre-rebrand brand. `false` is also the
36065
36065
  // fail-closed direction — if the flag DB is unreachable we must show the brand
@@ -36380,7 +36380,7 @@ var FLAG_REGISTRY = [
36380
36380
  },
36381
36381
  {
36382
36382
  key: "ninjafy-brand",
36383
- 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 USER-FACING BRAND TEXT ONLY: it must never gate a code identifier, package name, env var or CLI name, which stay `Augmented`/`agt` per the CLAUDE.md naming contract (the deep code rename is workstream C of docs/runbooks/rebrand-ninjafy-migration.md and is out of scope here). Set the stage-wide default to flip a whole environment, or add a feature_flag_overrides row to pilot one organization while every other org still sees Augmented. Ships dark.',
36383
+ 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 USER-FACING BRAND TEXT ONLY: 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 text, 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: its only consumer is sidebar.tsx via usePublicBooleanFlag, which evaluates in the active-org cookie scope, so a host- or agent-scoped row is accepted by the table but never reached by the console. Ships dark.',
36384
36384
  flagType: "boolean",
36385
36385
  // Declared safe value is `false`: the pre-rebrand brand. `false` is also the
36386
36386
  // fail-closed direction — if the flag DB is unreachable we must show the brand
@@ -41,7 +41,7 @@ import {
41
41
  writeDirectChatSessionState,
42
42
  writeEgressAllowlist,
43
43
  writePersistentClaudeWrapper
44
- } from "./chunk-N6HD5UG4.js";
44
+ } from "./chunk-F63RM2RQ.js";
45
45
  import "./chunk-XWVM4KPK.js";
46
46
  export {
47
47
  EGRESS_BASELINE_DOMAINS,
@@ -87,4 +87,4 @@ export {
87
87
  writeEgressAllowlist,
88
88
  writePersistentClaudeWrapper
89
89
  };
90
- //# sourceMappingURL=persistent-session-D47WOTHA.js.map
90
+ //# sourceMappingURL=persistent-session-7GPDXRPK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-N6HD5UG4.js";
3
+ } from "./chunk-F63RM2RQ.js";
4
4
  import "./chunk-XWVM4KPK.js";
5
5
 
6
6
  // src/lib/responsiveness-probe.ts
@@ -689,4 +689,4 @@ export {
689
689
  readAndResetSlackReplyBindingClassifications,
690
690
  readAndResetSlackReplyTargetClassifications
691
691
  };
692
- //# sourceMappingURL=responsiveness-probe-HZUQTMSG.js.map
692
+ //# sourceMappingURL=responsiveness-probe-P52CE6K7.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.539",
3
+ "version": "0.28.541",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {