@integrity-labs/agt-cli 0.28.899 → 0.28.900

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
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-FZBIHBDG.js";
43
+ } from "../chunk-YG55GK7W.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
@@ -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.899" : "dev";
5470
+ var cliVersion = true ? "0.28.900" : "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.899" : "dev";
6661
+ var cliVersion2 = true ? "0.28.900" : "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) => {
@@ -6841,7 +6841,7 @@ function exchangeFailureKind(err) {
6841
6841
  }
6842
6842
 
6843
6843
  // src/lib/api-client.ts
6844
- var agtCliVersion = true ? "0.28.899" : "dev";
6844
+ var agtCliVersion = true ? "0.28.900" : "dev";
6845
6845
  var lastConfigHash = null;
6846
6846
  function setConfigHash(hash) {
6847
6847
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11451,4 +11451,4 @@ export {
11451
11451
  managerInstallSystemUnitCommand,
11452
11452
  managerUninstallSystemUnitCommand
11453
11453
  };
11454
- //# sourceMappingURL=chunk-FZBIHBDG.js.map
11454
+ //# sourceMappingURL=chunk-YG55GK7W.js.map
@@ -63,7 +63,7 @@ import {
63
63
  safeWriteJsonAtomic,
64
64
  setConfigHash,
65
65
  tripClass
66
- } from "../chunk-FZBIHBDG.js";
66
+ } from "../chunk-YG55GK7W.js";
67
67
  import {
68
68
  getProjectDir as getProjectDir2,
69
69
  getReadyTasks,
@@ -13721,7 +13721,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13721
13721
  var lastVersionCheckAt = 0;
13722
13722
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13723
13723
  var lastResponsivenessProbeAt = 0;
13724
- var agtCliVersion = true ? "0.28.899" : "dev";
13724
+ var agtCliVersion = true ? "0.28.900" : "dev";
13725
13725
  function resolveBrewPath(execFileSync2) {
13726
13726
  try {
13727
13727
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -21353,7 +21353,16 @@ var searchAgentsSchema = strictObject({
21353
21353
  q: external_exports.string().max(128).optional().describe("Case-insensitive substring match on code_name or display_name."),
21354
21354
  status: external_exports.string().max(32).optional().describe("Filter by agent status (draft | active | paused | revoked)."),
21355
21355
  environment: external_exports.string().max(32).optional().describe("Filter by environment (dev | stage | prod)."),
21356
- limit: limitSchema
21356
+ limit: limitSchema,
21357
+ // ENG-10152: these schemas are STRICT, so an unexposed field is REJECTED
21358
+ // rather than ignored. ENG-10379 hit exactly that on `debug_list_alerts` — the
21359
+ // API accepted a cursor for months and the schema never offered one, so the
21360
+ // paging existed and could not be driven. Adding the field here at the same
21361
+ // time as the endpoint is the whole point; shipping the API half alone would
21362
+ // rebuild that defect inside its own fix.
21363
+ cursor: external_exports.string().min(1).regex(/\S/, "cursor must not be blank").max(512).optional().describe(
21364
+ "Opaque keyset cursor from a previous response's `next_cursor`. Pass it to fetch the next page and repeat until `next_cursor` is null, which walks the whole roster in order. Ordering is `updated_at` DESC (agents never updated sort last), so the rows a truncated page drops are the LEAST recently updated \u2014 which is precisely where a long-paused agent ends up. A malformed cursor is rejected with 400, never silently served as page one."
21365
+ )
21357
21366
  });
21358
21367
  var searchOrgsSchema = strictObject({
21359
21368
  q: external_exports.string().max(128).optional().describe("Case-insensitive substring match on organization name or slug."),
@@ -21629,7 +21638,7 @@ var client = new AdminDebugClient({
21629
21638
  var server = new McpServer({ name: "augmented-admin-mcp", version: package_default.version });
21630
21639
  server.registerTool(
21631
21640
  "debug_search_agents",
21632
- { description: "Search managed end-user agents across authorized orgs for troubleshooting. Returns a diagnostic projection per agent (code_name, status, environment, risk_tier, org, heartbeat verdict) \u2014 never credentials or transcripts. Authorized = IL-owned + fully-managed orgs (standing) plus any self-managed org you hold an active grant for (see debug_request_access). Filter with { q, status, environment, limit }.", inputSchema: searchAgentsSchema },
21641
+ { description: 'Search managed end-user agents across authorized orgs for troubleshooting. Returns a diagnostic projection per agent (code_name, status, environment, risk_tier, org, heartbeat verdict) \u2014 never credentials or transcripts \u2014 plus { count, total, truncated, next_cursor }. Authorized = IL-owned + fully-managed orgs (standing) plus any self-managed org you hold an active grant for (see debug_request_access). Filter with { q, status, environment, limit, cursor }. **ENG-10152 \u2014 READ THIS BEFORE CONCLUDING AN AGENT DOES NOT EXIST.** This tool used to cap at 100 rows and say nothing about it, so a short page was indistinguishable from a complete one: that hid 2 of 8 paused agents, one a PROD/HIGH-risk customer agent down 8.5 days, simply because it sat past row 100. `total` is now the match count BEFORE the cap, so `truncated: true` means you are NOT seeing everything and any statement of the form "no agent is in state X" is unsupported until you have paged. ORDERING IS `updated_at` DESC, agents never updated sorting last \u2014 so the rows a truncated page drops are the LEAST RECENTLY UPDATED, which is exactly where a long-paused or abandoned agent ends up. That is the opposite of where you would look for one. To reach them, pass `cursor` set to this response\'s `next_cursor` and repeat until `next_cursor` comes back null; that walks the whole roster in order and is the supported alternative to partitioning on `environment` and hoping the union is complete. Narrow with `status`/`environment` when you already know what you are hunting.', inputSchema: searchAgentsSchema },
21633
21642
  async (args) => {
21634
21643
  try {
21635
21644
  const result = await client.searchAgents(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.899",
3
+ "version": "0.28.900",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {