@integrity-labs/agt-cli 0.28.21 → 0.28.23
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-BKO5PJZ7.js → chunk-IHPN6AX7.js} +2 -2
- package/dist/{chunk-NGZVHSI3.js → chunk-JFSOYKVJ.js} +2 -2
- package/dist/{chunk-3HZSMDEW.js → chunk-SN2G4B2Z.js} +585 -459
- package/dist/chunk-SN2G4B2Z.js.map +1 -0
- package/dist/{claude-pair-runtime-LQJ5E4IF.js → claude-pair-runtime-UKOL6GWJ.js} +2 -2
- package/dist/lib/manager-worker.js +81 -128
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +22 -0
- package/dist/{persistent-session-5BEMWOTM.js → persistent-session-34CY65FC.js} +3 -3
- package/dist/{responsiveness-probe-JP4HLFYU.js → responsiveness-probe-KKWPOZSX.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-3HZSMDEW.js.map +0 -1
- /package/dist/{chunk-BKO5PJZ7.js.map → chunk-IHPN6AX7.js.map} +0 -0
- /package/dist/{chunk-NGZVHSI3.js.map → chunk-JFSOYKVJ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-LQJ5E4IF.js.map → claude-pair-runtime-UKOL6GWJ.js.map} +0 -0
- /package/dist/{persistent-session-5BEMWOTM.js.map → persistent-session-34CY65FC.js.map} +0 -0
- /package/dist/{responsiveness-probe-JP4HLFYU.js.map → responsiveness-probe-KKWPOZSX.js.map} +0 -0
|
@@ -21097,6 +21097,9 @@ var AdminDebugClient = class _AdminDebugClient {
|
|
|
21097
21097
|
listAlerts(args) {
|
|
21098
21098
|
return this.get("/admin/debug/alerts", _AdminDebugClient.cleanQuery(args));
|
|
21099
21099
|
}
|
|
21100
|
+
queryAuditLog(args) {
|
|
21101
|
+
return this.get("/admin/debug/audit-log", _AdminDebugClient.cleanQuery(args));
|
|
21102
|
+
}
|
|
21100
21103
|
// ─────────────────── request-scoped customer grant (ENG-6279) ───────────────────
|
|
21101
21104
|
/**
|
|
21102
21105
|
* Open scoped READ access to a SELF-MANAGED customer org so the read tools can
|
|
@@ -21199,6 +21202,12 @@ var requestActionSchema = external_exports.object({
|
|
|
21199
21202
|
var checkActionStatusSchema = external_exports.object({
|
|
21200
21203
|
request_id: external_exports.string().min(1).max(64).describe("The action request_id returned by request_action.")
|
|
21201
21204
|
});
|
|
21205
|
+
var queryAuditLogSchema = external_exports.object({
|
|
21206
|
+
agent_id: external_exports.string().min(1).max(64).describe("UUID of the agent whose audit events to read (required \u2014 the read is scoped to this agent's org)."),
|
|
21207
|
+
action: external_exports.string().max(64).optional().describe('Audit action to filter by. Defaults to "agent.restart" (restart events). e.g. "agent.restart".'),
|
|
21208
|
+
since_hours: external_exports.number().int().min(1).max(720).optional().describe("Only events newer than this many hours. Omit for no time bound."),
|
|
21209
|
+
limit: limitSchema
|
|
21210
|
+
});
|
|
21202
21211
|
|
|
21203
21212
|
// package.json
|
|
21204
21213
|
var package_default = {
|
|
@@ -21321,6 +21330,19 @@ server.tool(
|
|
|
21321
21330
|
}
|
|
21322
21331
|
}
|
|
21323
21332
|
);
|
|
21333
|
+
server.tool(
|
|
21334
|
+
"debug_query_audit_log",
|
|
21335
|
+
'Read recent audit events for ONE agent \u2014 primarily restart events \u2014 to troubleshoot why/when it bounced. Defaults to the "agent.restart" action: each event returns { created_at, source, reason, actor_kind }, where `source` is the restart trigger (agent-self-request, channel-command, maintenance-window, stale-mcp, hot-reload-mcp, mcp-presence-reaper, day-rollover, auth-tuple-change, \u2026) and `reason` is the free-text rationale when one was given (e.g. the agent\'s own words for a request_restart). Use it when an agent went quiet or restarted unexpectedly and you want the recent restart history with reasons. Pass { agent_id, action?, since_hours?, limit? }; agent_id is required and the read is scoped to that agent\'s org (fails closed if you\'re not authorized for it). To read non-restart events pass a different `action` (e.g. "agent.auto_resumed").',
|
|
21336
|
+
queryAuditLogSchema.shape,
|
|
21337
|
+
async (args) => {
|
|
21338
|
+
try {
|
|
21339
|
+
const result = await client.queryAuditLog(args);
|
|
21340
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
21341
|
+
} catch (err) {
|
|
21342
|
+
return { content: [{ type: "text", text: formatError2(err) }], isError: true };
|
|
21343
|
+
}
|
|
21344
|
+
}
|
|
21345
|
+
);
|
|
21324
21346
|
server.tool(
|
|
21325
21347
|
"debug_request_access",
|
|
21326
21348
|
"Open scoped READ access to a SELF-MANAGED customer org so the read tools (debug_search_agents / debug_get_agent / debug_search_hosts / debug_list_alerts) can reach it. Use this when a read returns nothing for an org you have a legitimate support reason to troubleshoot. It mints a short-TTL, logged, customer-revocable read grant \u2014 the customer sees the access in their Support-access console and can revoke it, and it auto-expires; it does NOT grant any write/remedial capability. For an already-authorized org (Integrity-Labs-internal or fully-managed) this returns { already_authorized: true } instead of minting a redundant grant \u2014 just use the read tools. Pass { target_org_id, reason }; the reason is recorded verbatim on the customer-visible access log, so be specific.",
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
takeZombieDetection,
|
|
26
26
|
writeDirectChatSessionState,
|
|
27
27
|
writePersistentClaudeWrapper
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-IHPN6AX7.js";
|
|
29
|
+
import "./chunk-SN2G4B2Z.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-34CY65FC.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IHPN6AX7.js";
|
|
4
|
+
import "./chunk-SN2G4B2Z.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-KKWPOZSX.js.map
|