@integrity-labs/agt-cli 0.28.54 → 0.28.56

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.
@@ -21094,6 +21094,10 @@ var AdminDebugClient = class _AdminDebugClient {
21094
21094
  searchHosts(args) {
21095
21095
  return this.get("/admin/debug/hosts", _AdminDebugClient.cleanQuery(args));
21096
21096
  }
21097
+ /** List the orgs you're authorized to read, with tier + grant standing + rollups (ENG-6483). */
21098
+ searchOrgs(args) {
21099
+ return this.get("/admin/debug/orgs", _AdminDebugClient.cleanQuery(args));
21100
+ }
21097
21101
  listAlerts(args) {
21098
21102
  return this.get("/admin/debug/alerts", _AdminDebugClient.cleanQuery(args));
21099
21103
  }
@@ -21244,6 +21248,12 @@ var searchAgentsSchema = external_exports.object({
21244
21248
  environment: external_exports.string().max(32).optional().describe("Filter by environment (dev | stage | prod)."),
21245
21249
  limit: limitSchema
21246
21250
  });
21251
+ var searchOrgsSchema = external_exports.object({
21252
+ q: external_exports.string().max(128).optional().describe("Case-insensitive substring match on organization name or slug."),
21253
+ management_mode: external_exports.enum(["fully_managed", "self_managed"]).optional().describe("Filter by management mode (fully_managed | self_managed)."),
21254
+ is_internal: external_exports.boolean().optional().describe("Filter to Integrity-Labs-internal orgs (true) or customer orgs (false)."),
21255
+ limit: limitSchema
21256
+ });
21247
21257
  var getAgentSchema = external_exports.object({
21248
21258
  agent_id: external_exports.string().min(1).max(64).describe("The agent UUID to fetch a composite diagnostic for.")
21249
21259
  });
@@ -21476,6 +21486,19 @@ server.tool(
21476
21486
  }
21477
21487
  }
21478
21488
  );
21489
+ server.tool(
21490
+ "debug_search_orgs",
21491
+ `List the ORGANIZATIONS you're authorized to read \u2014 the org-level entry point for triage and access decisions, so you don't have to infer orgs off agent/host rows or probe one org's tier with debug_request_access. Returns a projection per org: { organization_id, organization_slug, display_name, is_internal, management_mode (fully_managed | self_managed), standing_reason (internal | fully_managed | granted \u2014 WHY you can read it), has_active_grant (do you hold a live grant right now), host_count, agent_count, active_agent_count, open_alert_count, created_at }. Use it to (1) decide access in one read \u2014 see a self_managed org and its grant state before deciding to debug_request_access; (2) triage the fleet \u2014 "which orgs have open alerts" (open_alert_count includes stuck-restart alerts) without walking agents; (3) disambiguate a slug \u2192 id \u2192 tier without needing an agent/host to exist. Authorized = IL-owned (is_internal) + fully-managed orgs (standing) plus any self-managed org you hold an active grant for. Filter with { q (slug/name substring), management_mode, is_internal, limit }. Projection only \u2014 no secrets, no transcripts; org-walled in SQL and audited as a cross-org access.`,
21492
+ searchOrgsSchema.shape,
21493
+ async (args) => {
21494
+ try {
21495
+ const result = await client.searchOrgs(args);
21496
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
21497
+ } catch (err) {
21498
+ return { content: [{ type: "text", text: formatError2(err) }], isError: true };
21499
+ }
21500
+ }
21501
+ );
21479
21502
  server.tool(
21480
21503
  "debug_host_versions",
21481
21504
  'Fleet-wide host health snapshot for triaging "which host is unhealthy?". Returns a projection per authorized host: { id, name, org, framework, framework_version (the Claude Code version the host runs), last_seen_verdict, agent_count, restart_count, restart_window_hours }. `restart_count` tallies `agent.restart` audit events across the host\'s agents within the window (default 24h) \u2014 a high count is the tell for a thrashing host. Use it to spot version skew (an old framework_version) or restart storms across the fleet at a glance. Filter with { q, status, since_hours, limit }.',
@@ -25,8 +25,8 @@ import {
25
25
  takeZombieDetection,
26
26
  writeDirectChatSessionState,
27
27
  writePersistentClaudeWrapper
28
- } from "./chunk-QK4EU3TC.js";
29
- import "./chunk-WBZFCFU6.js";
28
+ } from "./chunk-ATK3HBK6.js";
29
+ import "./chunk-TMTSBVPP.js";
30
30
  import "./chunk-XWVM4KPK.js";
31
31
  export {
32
32
  SEND_KEYS_ENTER_DELAY_MS,
@@ -56,4 +56,4 @@ export {
56
56
  writeDirectChatSessionState,
57
57
  writePersistentClaudeWrapper
58
58
  };
59
- //# sourceMappingURL=persistent-session-YSE6OUM6.js.map
59
+ //# sourceMappingURL=persistent-session-T6VRODM5.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-QK4EU3TC.js";
4
- import "./chunk-WBZFCFU6.js";
3
+ } from "./chunk-ATK3HBK6.js";
4
+ import "./chunk-TMTSBVPP.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -250,4 +250,4 @@ export {
250
250
  parkPendingInbound,
251
251
  readAndResetChannelDeflections
252
252
  };
253
- //# sourceMappingURL=responsiveness-probe-4BU75QQV.js.map
253
+ //# sourceMappingURL=responsiveness-probe-NI26NQJO.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.54",
3
+ "version": "0.28.56",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {