@integrity-labs/agt-cli 0.27.130 → 0.27.132

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.
package/dist/bin/agt.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-H4QCCP2M.js";
31
+ } from "../chunk-DAOANYK4.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -54,7 +54,7 @@ import {
54
54
  renderTemplate,
55
55
  resolveChannels,
56
56
  serializeManifestForSlackCli
57
- } from "../chunk-XCV5NU45.js";
57
+ } from "../chunk-TRGX4NVZ.js";
58
58
 
59
59
  // src/bin/agt.ts
60
60
  import { join as join20 } from "path";
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.130" : "dev";
4937
+ var cliVersion = true ? "0.27.132" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.130" : "dev";
5860
+ var cliVersion2 = true ? "0.27.132" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -9,7 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-XCV5NU45.js";
12
+ } from "./chunk-TRGX4NVZ.js";
13
13
 
14
14
  // ../../packages/core/dist/integrations/registry.js
15
15
  var INTEGRATION_REGISTRY = [
@@ -387,6 +387,24 @@ var INTEGRATION_REGISTRY = [
387
387
  }
388
388
  }
389
389
  },
390
+ {
391
+ // ENG-6195: admin-only debugging surface for Integrity Labs STAFF agents.
392
+ // Provisions the @integrity-labs/augmented-admin-mcp stdio broker, which
393
+ // reads end-user agent diagnostics cross-org via /admin/debug/*. `beta` so
394
+ // it is visible/enable-able only by admin-email-domain users; the API
395
+ // double-gates every call on the caller's owning org `is_internal = true`.
396
+ // auth `none` — no end-user OAuth; the host JWT (org_id claim) is the
397
+ // credential. NOT a customer integration; do not promote to `published`.
398
+ id: "augmented-admin",
399
+ name: "Augmented Admin Debug",
400
+ category: "infrastructure",
401
+ description: "Integrity Labs staff-only: cross-org agent/host/integration/alert diagnostics for troubleshooting managed agents.",
402
+ supported_auth_types: ["none"],
403
+ beta: true,
404
+ capabilities: [
405
+ { id: "augmented-admin:read-diagnostics", name: "Read Diagnostics", description: "Cross-org read of agent, host, integration, and alert diagnostics (projection only \u2014 never credentials or transcripts).", access: "read" }
406
+ ]
407
+ },
390
408
  {
391
409
  id: "custom",
392
410
  name: "Custom Integration",
@@ -5121,6 +5139,21 @@ function buildMcpJson(input) {
5121
5139
  }
5122
5140
  };
5123
5141
  }
5142
+ const hasAdminDebug = input.integrations?.some((i) => i.definition_id === "augmented-admin") ?? false;
5143
+ if (hasAdminDebug) {
5144
+ mcpServers["augmented-admin"] = {
5145
+ command: "npx",
5146
+ args: ["-y", "@integrity-labs/augmented-admin-mcp@latest"],
5147
+ env: {
5148
+ AGT_HOST: "${AGT_HOST}",
5149
+ AGT_AGENT_ID: input.agent.agent_id,
5150
+ AGT_RUN_ID: "${AGT_RUN_ID}",
5151
+ AGT_API_KEY: "${AGT_API_KEY}",
5152
+ PATH: process.env["PATH"] ?? "",
5153
+ HOME: process.env["HOME"] ?? ""
5154
+ }
5155
+ };
5156
+ }
5124
5157
  return { mcpServers };
5125
5158
  }
5126
5159
  function parseIntervalMinutes(scheduleEvery) {
@@ -6105,6 +6138,21 @@ ${sections}`
6105
6138
  });
6106
6139
  }
6107
6140
  }
6141
+ const hasAdminDebug = integrations.some((i) => i.definition_id === "augmented-admin");
6142
+ if (hasAdminDebug) {
6143
+ this.writeMcpServer(codeName, "augmented-admin", {
6144
+ command: "npx",
6145
+ args: ["-y", "@integrity-labs/augmented-admin-mcp@latest"],
6146
+ env: {
6147
+ AGT_HOST: "${AGT_HOST}",
6148
+ AGT_AGENT_ID: resolveBrokerAgentId(codeName) ?? agentId ?? "",
6149
+ AGT_RUN_ID: "${AGT_RUN_ID}",
6150
+ AGT_API_KEY: "${AGT_API_KEY}",
6151
+ PATH: process.env["PATH"] ?? "",
6152
+ HOME: process.env["HOME"] ?? ""
6153
+ }
6154
+ });
6155
+ }
6108
6156
  if (this.removeMcpServer) {
6109
6157
  const nativeMcpKeys = INTEGRATION_REGISTRY.filter((d) => d.nativeMcp !== void 0).map((d) => d.nativeMcp.key ?? d.id);
6110
6158
  const integrationDerivedKeys = /* @__PURE__ */ new Set([
@@ -6112,6 +6160,7 @@ ${sections}`
6112
6160
  "postiz",
6113
6161
  "cloud-broker",
6114
6162
  "xero-broker",
6163
+ "augmented-admin",
6115
6164
  ...nativeMcpKeys,
6116
6165
  ...Object.entries(OAUTH_PROVIDERS).filter(([, provider]) => Boolean(provider.mcpUrl)).map(([id]) => id)
6117
6166
  ]);
@@ -6124,6 +6173,8 @@ ${sections}`
6124
6173
  expectedKeys.add("cloud-broker");
6125
6174
  if (hasXeroBroker)
6126
6175
  expectedKeys.add("xero-broker");
6176
+ if (hasAdminDebug)
6177
+ expectedKeys.add("augmented-admin");
6127
6178
  for (const integration of integrations) {
6128
6179
  const def = INTEGRATION_REGISTRY.find((d) => d.id === integration.definition_id);
6129
6180
  if (def?.nativeMcp) {
@@ -7674,4 +7725,4 @@ export {
7674
7725
  managerInstallSystemUnitCommand,
7675
7726
  managerUninstallSystemUnitCommand
7676
7727
  };
7677
- //# sourceMappingURL=chunk-H4QCCP2M.js.map
7728
+ //# sourceMappingURL=chunk-DAOANYK4.js.map