@integrity-labs/agt-cli 0.28.62 → 0.28.64
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-AKOF4VV5.js → chunk-4P7HUXWI.js} +2 -2
- package/dist/{chunk-QQGXIZVB.js → chunk-JY3LAHBG.js} +3 -3
- package/dist/{chunk-7F2K3RRD.js → chunk-XKAJW4EX.js} +1 -1
- package/dist/{chunk-7F2K3RRD.js.map → chunk-XKAJW4EX.js.map} +1 -1
- package/dist/{claude-pair-runtime-QSRMTD7I.js → claude-pair-runtime-SPP3CUBA.js} +2 -2
- package/dist/lib/manager-worker.js +59 -23
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +34 -0
- package/dist/{persistent-session-5PEPYSMG.js → persistent-session-WJBIN6WM.js} +3 -3
- package/dist/{responsiveness-probe-HG23JDG2.js → responsiveness-probe-XVWLBSSH.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-AKOF4VV5.js.map → chunk-4P7HUXWI.js.map} +0 -0
- /package/dist/{chunk-QQGXIZVB.js.map → chunk-JY3LAHBG.js.map} +0 -0
- /package/dist/{claude-pair-runtime-QSRMTD7I.js.map → claude-pair-runtime-SPP3CUBA.js.map} +0 -0
- /package/dist/{persistent-session-5PEPYSMG.js.map → persistent-session-WJBIN6WM.js.map} +0 -0
- /package/dist/{responsiveness-probe-HG23JDG2.js.map → responsiveness-probe-XVWLBSSH.js.map} +0 -0
|
@@ -21107,6 +21107,10 @@ var AdminDebugClient = class _AdminDebugClient {
|
|
|
21107
21107
|
tailLogs(args) {
|
|
21108
21108
|
return this.get("/admin/debug/tail-logs", _AdminDebugClient.cleanQuery(args));
|
|
21109
21109
|
}
|
|
21110
|
+
/** Time-windowed read of ONE allowlisted host log across rotated files (ENG-6515). */
|
|
21111
|
+
queryLogs(args) {
|
|
21112
|
+
return this.get("/admin/debug/query-logs", _AdminDebugClient.cleanQuery(args));
|
|
21113
|
+
}
|
|
21110
21114
|
probeIntegration(args) {
|
|
21111
21115
|
return this.get("/admin/debug/probe-integration", _AdminDebugClient.cleanQuery(args));
|
|
21112
21116
|
}
|
|
@@ -21279,6 +21283,23 @@ var tailLogsSchema = external_exports.object({
|
|
|
21279
21283
|
"Trailing lines to return (default 200, max 2000). Output is also byte-capped (~20 KB, newest kept) to stay within SSM limits \u2014 `truncated` flags when it clipped."
|
|
21280
21284
|
)
|
|
21281
21285
|
});
|
|
21286
|
+
var queryLogsSchema = external_exports.object({
|
|
21287
|
+
agent_id: external_exports.string().min(1).max(64).describe(
|
|
21288
|
+
"UUID of the agent whose host log to query. Fails closed (uniform not-found) if you are not authorized for its org."
|
|
21289
|
+
),
|
|
21290
|
+
log: external_exports.enum(["manager", "pane", "slack-stderr", "telegram-stderr", "manager-state"]).optional().describe(
|
|
21291
|
+
"Which host log to read (default manager). Same allowlist as debug_tail_logs. Time filtering only applies to `manager` (its lines carry an ISO8601 prefix); the others return their byte-capped tail unfiltered (`time_filtered:false`)."
|
|
21292
|
+
),
|
|
21293
|
+
since: external_exports.string().min(1).max(40).optional().describe(
|
|
21294
|
+
"Lower bound (ISO8601 UTC, e.g. `2026-06-14T16:00:00Z`). Omit for unbounded. Only meaningful for `manager`."
|
|
21295
|
+
),
|
|
21296
|
+
until: external_exports.string().min(1).max(40).optional().describe(
|
|
21297
|
+
"Upper bound (ISO8601 UTC, e.g. `2026-06-14T18:00:00Z`). Omit for unbounded (up to now). Only meaningful for `manager`."
|
|
21298
|
+
),
|
|
21299
|
+
lines: external_exports.number().int().min(1).max(5e3).optional().describe(
|
|
21300
|
+
"Max lines to return (default 1000, max 5000; newest kept). Output is also byte-capped (~20 KB, newest kept) to stay within SSM limits \u2014 `truncated` flags when it clipped. Narrow the window if truncated."
|
|
21301
|
+
)
|
|
21302
|
+
});
|
|
21282
21303
|
var probeIntegrationSchema = external_exports.object({
|
|
21283
21304
|
agent_id: external_exports.string().min(1).max(64).describe(
|
|
21284
21305
|
"UUID of the agent whose integration to probe. Fails closed (uniform not-found) if you are not authorized for its org."
|
|
@@ -21525,6 +21546,19 @@ server.tool(
|
|
|
21525
21546
|
}
|
|
21526
21547
|
}
|
|
21527
21548
|
);
|
|
21549
|
+
server.tool(
|
|
21550
|
+
"debug_query_logs",
|
|
21551
|
+
'Read an agent\'s HOST logs OVER A TIME WINDOW, spanning rotated files \u2014 the historical counterpart to debug_tail_logs. Where tail only shows the live tail of the current file (minutes, and gone once it rotates), this reads the active log AND its logrotate siblings (manager.log.1, manager.log.2.gz, \u2026 14 kept) and filters lines to [since, until]. This is the read path for "did it restart at 4pm YESTERDAY?" \u2014 use it when the answer is older than the live tail or spans a rotation. Returns { agent_id, code_name, host, log, since, until, time_filtered, content, log_present, lines_requested, truncated, ssm_status }. Time filtering applies to `manager` (its lines carry an ISO8601 prefix); `pane`/`slack-stderr`/`telegram-stderr`/`manager-state` return their byte-capped tail unfiltered (time_filtered:false). Only operational logs are reachable \u2014 secret files (.mcp.json, .env.integrations) are NOT. Pass { agent_id, log?, since?, until?, lines? } (since/until ISO8601 UTC e.g. 2026-06-14T16:00:00Z, default unbounded; lines default 1000, max 5000; output ~20 KB-capped, newest kept \u2014 narrow the window if truncated). Fails closed for an unauthorized org; every call is audited as a cross-org host access.',
|
|
21552
|
+
queryLogsSchema.shape,
|
|
21553
|
+
async (args) => {
|
|
21554
|
+
try {
|
|
21555
|
+
const result = await client.queryLogs(args);
|
|
21556
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
21557
|
+
} catch (err) {
|
|
21558
|
+
return { content: [{ type: "text", text: formatError2(err) }], isError: true };
|
|
21559
|
+
}
|
|
21560
|
+
}
|
|
21561
|
+
);
|
|
21528
21562
|
server.tool(
|
|
21529
21563
|
"debug_probe_integration",
|
|
21530
21564
|
"Force a FRESH host-side connectivity probe for ONE of an agent's integrations and return the LIVE verdict \u2014 use when a user reports an integration \"isn't working\" but the console shows it connected, or to confirm a fix landed. Unlike the cached status the dashboard shows, this SSH-less SSM-invokes the agent's host to run the probe against its actual wired `.mcp.json` + credentials, so it can't disagree with reality. Returns { agent_id, code_name, slug, host, verdict, message, probed_at, ssm_status }. `verdict` is the live result: `ok` | `degraded` | `transient_error` (retryable) | `down` | `not_probeable` (no probe wired for this kind) \u2014 or a central degrade: `unreachable` (agent has no host), `not_installed` (integration not on this agent), `host_cli_too_old` (the host predates the probe \u2014 update its agt-cli), `probe_error`. Pass { agent_id, slug } where slug is the integration's definition code_name (e.g. `gmail`, `slack`, `here-now`). Fails closed for an unauthorized org; every call is audited as a cross-org host access.",
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
takeZombieDetection,
|
|
26
26
|
writeDirectChatSessionState,
|
|
27
27
|
writePersistentClaudeWrapper
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-4P7HUXWI.js";
|
|
29
|
+
import "./chunk-XKAJW4EX.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-WJBIN6WM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4P7HUXWI.js";
|
|
4
|
+
import "./chunk-XKAJW4EX.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-XVWLBSSH.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|