@integrity-labs/agt-cli 0.28.54 → 0.28.55
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 +4 -4
- package/dist/{chunk-SACN4YP6.js → chunk-7P2VKTWK.js} +3 -3
- package/dist/{chunk-QK4EU3TC.js → chunk-ATK3HBK6.js} +2 -2
- package/dist/{chunk-WBZFCFU6.js → chunk-TMTSBVPP.js} +1 -1
- package/dist/{chunk-WBZFCFU6.js.map → chunk-TMTSBVPP.js.map} +1 -1
- package/dist/{claude-pair-runtime-XU7GFFQH.js → claude-pair-runtime-LDE4CJO5.js} +2 -2
- package/dist/lib/manager-worker.js +8 -8
- package/dist/mcp/augmented-admin.js +23 -0
- package/dist/{persistent-session-YSE6OUM6.js → persistent-session-T6VRODM5.js} +3 -3
- package/dist/{responsiveness-probe-4BU75QQV.js → responsiveness-probe-NI26NQJO.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-SACN4YP6.js.map → chunk-7P2VKTWK.js.map} +0 -0
- /package/dist/{chunk-QK4EU3TC.js.map → chunk-ATK3HBK6.js.map} +0 -0
- /package/dist/{claude-pair-runtime-XU7GFFQH.js.map → claude-pair-runtime-LDE4CJO5.js.map} +0 -0
- /package/dist/{persistent-session-YSE6OUM6.js.map → persistent-session-T6VRODM5.js.map} +0 -0
- /package/dist/{responsiveness-probe-4BU75QQV.js.map → responsiveness-probe-NI26NQJO.js.map} +0 -0
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-T6VRODM5.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-LDE4CJO5.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-7P2VKTWK.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
takeWatchdogGiveUpCount,
|
|
66
66
|
takeZombieDetection,
|
|
67
67
|
transcriptActivityAgeSeconds
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-ATK3HBK6.js";
|
|
69
69
|
import {
|
|
70
70
|
FLAGS_SCHEMA_VERSION,
|
|
71
71
|
FLAG_REGISTRY,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
resolveDmTarget,
|
|
97
97
|
sumTranscriptUsageInWindow,
|
|
98
98
|
wrapScheduledTaskPrompt
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-TMTSBVPP.js";
|
|
100
100
|
import {
|
|
101
101
|
parsePsRows,
|
|
102
102
|
reapOrphanChannelMcps
|
|
@@ -6634,7 +6634,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6634
6634
|
var lastVersionCheckAt = 0;
|
|
6635
6635
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6636
6636
|
var lastResponsivenessProbeAt = 0;
|
|
6637
|
-
var agtCliVersion = true ? "0.28.
|
|
6637
|
+
var agtCliVersion = true ? "0.28.55" : "dev";
|
|
6638
6638
|
function resolveBrewPath(execFileSync4) {
|
|
6639
6639
|
try {
|
|
6640
6640
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7742,7 +7742,7 @@ async function pollCycle() {
|
|
|
7742
7742
|
}
|
|
7743
7743
|
try {
|
|
7744
7744
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
7745
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
7745
|
+
const { collectDiagnostics } = await import("../persistent-session-T6VRODM5.js");
|
|
7746
7746
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
7747
7747
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
7748
7748
|
let tailscaleHostname;
|
|
@@ -7843,7 +7843,7 @@ async function pollCycle() {
|
|
|
7843
7843
|
const {
|
|
7844
7844
|
collectResponsivenessProbes,
|
|
7845
7845
|
getResponsivenessIntervalMs
|
|
7846
|
-
} = await import("../responsiveness-probe-
|
|
7846
|
+
} = await import("../responsiveness-probe-NI26NQJO.js");
|
|
7847
7847
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
7848
7848
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
7849
7849
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -7875,7 +7875,7 @@ async function pollCycle() {
|
|
|
7875
7875
|
collectResponsivenessProbes,
|
|
7876
7876
|
livePendingInboundOldestAgeSeconds,
|
|
7877
7877
|
parkPendingInbound
|
|
7878
|
-
} = await import("../responsiveness-probe-
|
|
7878
|
+
} = await import("../responsiveness-probe-NI26NQJO.js");
|
|
7879
7879
|
const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
|
|
7880
7880
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
7881
7881
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -11285,7 +11285,7 @@ async function processClaudePairSessions(agents) {
|
|
|
11285
11285
|
killPairSession,
|
|
11286
11286
|
pairTmuxSession,
|
|
11287
11287
|
finalizeClaudePairOnboarding
|
|
11288
|
-
} = await import("../claude-pair-runtime-
|
|
11288
|
+
} = await import("../claude-pair-runtime-LDE4CJO5.js");
|
|
11289
11289
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
11290
11290
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
11291
11291
|
const killed = await killPairSession(pairTmuxSession(pairId));
|
|
@@ -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-
|
|
29
|
-
import "./chunk-
|
|
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-
|
|
59
|
+
//# sourceMappingURL=persistent-session-T6VRODM5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
253
|
+
//# sourceMappingURL=responsiveness-probe-NI26NQJO.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|