@integrity-labs/agt-cli 0.28.43 → 0.28.44
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
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
table,
|
|
39
39
|
warn
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-HQHLMAIW.js";
|
|
41
41
|
import {
|
|
42
42
|
CHANNEL_REGISTRY,
|
|
43
43
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4777
4777
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4778
4778
|
import chalk18 from "chalk";
|
|
4779
4779
|
import ora16 from "ora";
|
|
4780
|
-
var cliVersion = true ? "0.28.
|
|
4780
|
+
var cliVersion = true ? "0.28.44" : "dev";
|
|
4781
4781
|
async function fetchLatestVersion() {
|
|
4782
4782
|
const host2 = getHost();
|
|
4783
4783
|
if (!host2) return null;
|
|
@@ -5787,7 +5787,7 @@ function handleError(err) {
|
|
|
5787
5787
|
}
|
|
5788
5788
|
|
|
5789
5789
|
// src/bin/agt.ts
|
|
5790
|
-
var cliVersion2 = true ? "0.28.
|
|
5790
|
+
var cliVersion2 = true ? "0.28.44" : "dev";
|
|
5791
5791
|
var program = new Command();
|
|
5792
5792
|
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");
|
|
5793
5793
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7259,7 +7259,7 @@ function requireHost() {
|
|
|
7259
7259
|
}
|
|
7260
7260
|
|
|
7261
7261
|
// src/lib/api-client.ts
|
|
7262
|
-
var agtCliVersion = true ? "0.28.
|
|
7262
|
+
var agtCliVersion = true ? "0.28.44" : "dev";
|
|
7263
7263
|
var lastConfigHash = null;
|
|
7264
7264
|
function setConfigHash(hash) {
|
|
7265
7265
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -8540,4 +8540,4 @@ export {
|
|
|
8540
8540
|
managerInstallSystemUnitCommand,
|
|
8541
8541
|
managerUninstallSystemUnitCommand
|
|
8542
8542
|
};
|
|
8543
|
-
//# sourceMappingURL=chunk-
|
|
8543
|
+
//# sourceMappingURL=chunk-HQHLMAIW.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
requireHost,
|
|
28
28
|
safeWriteJsonAtomic,
|
|
29
29
|
setConfigHash
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-HQHLMAIW.js";
|
|
31
31
|
import {
|
|
32
32
|
getProjectDir as getProjectDir2,
|
|
33
33
|
getReadyTasks,
|
|
@@ -6626,7 +6626,7 @@ var cachedMaintenanceWindow = null;
|
|
|
6626
6626
|
var lastVersionCheckAt = 0;
|
|
6627
6627
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
6628
6628
|
var lastResponsivenessProbeAt = 0;
|
|
6629
|
-
var agtCliVersion = true ? "0.28.
|
|
6629
|
+
var agtCliVersion = true ? "0.28.44" : "dev";
|
|
6630
6630
|
function resolveBrewPath(execFileSync4) {
|
|
6631
6631
|
try {
|
|
6632
6632
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -21103,6 +21103,9 @@ var AdminDebugClient = class _AdminDebugClient {
|
|
|
21103
21103
|
tailLogs(args) {
|
|
21104
21104
|
return this.get("/admin/debug/tail-logs", _AdminDebugClient.cleanQuery(args));
|
|
21105
21105
|
}
|
|
21106
|
+
probeIntegration(args) {
|
|
21107
|
+
return this.get("/admin/debug/probe-integration", _AdminDebugClient.cleanQuery(args));
|
|
21108
|
+
}
|
|
21106
21109
|
queryAuditLog(args) {
|
|
21107
21110
|
return this.get("/admin/debug/audit-log", _AdminDebugClient.cleanQuery(args));
|
|
21108
21111
|
}
|
|
@@ -21218,6 +21221,17 @@ var tailLogsSchema = external_exports.object({
|
|
|
21218
21221
|
"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."
|
|
21219
21222
|
)
|
|
21220
21223
|
});
|
|
21224
|
+
var probeIntegrationSchema = external_exports.object({
|
|
21225
|
+
agent_id: external_exports.string().min(1).max(64).describe(
|
|
21226
|
+
"UUID of the agent whose integration to probe. Fails closed (uniform not-found) if you are not authorized for its org."
|
|
21227
|
+
),
|
|
21228
|
+
slug: external_exports.string().min(1).max(128).regex(
|
|
21229
|
+
/^[a-z0-9][a-z0-9._-]*$/i,
|
|
21230
|
+
"slug must be an integration definition code_name (alphanumeric, may include . _ -)"
|
|
21231
|
+
).describe(
|
|
21232
|
+
"The integration slug (its definition code_name, e.g. `gmail`, `slack`, `here-now`) to probe on that agent."
|
|
21233
|
+
)
|
|
21234
|
+
});
|
|
21221
21235
|
var listAlertsSchema = external_exports.object({
|
|
21222
21236
|
severity: external_exports.string().max(16).optional().describe("Filter by severity (critical | warning | info)."),
|
|
21223
21237
|
open: external_exports.boolean().optional().describe("When true, only currently-open (unclosed) alerts."),
|
|
@@ -21408,6 +21422,19 @@ server.tool(
|
|
|
21408
21422
|
}
|
|
21409
21423
|
}
|
|
21410
21424
|
);
|
|
21425
|
+
server.tool(
|
|
21426
|
+
"debug_probe_integration",
|
|
21427
|
+
"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.",
|
|
21428
|
+
probeIntegrationSchema.shape,
|
|
21429
|
+
async (args) => {
|
|
21430
|
+
try {
|
|
21431
|
+
const result = await client.probeIntegration(args);
|
|
21432
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
21433
|
+
} catch (err) {
|
|
21434
|
+
return { content: [{ type: "text", text: formatError2(err) }], isError: true };
|
|
21435
|
+
}
|
|
21436
|
+
}
|
|
21437
|
+
);
|
|
21411
21438
|
server.tool(
|
|
21412
21439
|
"debug_query_audit_log",
|
|
21413
21440
|
'Read recent audit events to troubleshoot why/when agents bounced \u2014 primarily restart events. Defaults to the "agent.restart" action: each event returns { created_at, source, reason, actor_kind, agent_id, code_name }, 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). Two modes: (1) pass { agent_id } to scope to ONE agent (fails closed if you\'re not authorized for its org) \u2014 use when a specific agent went quiet. (2) OMIT agent_id for a CROSS-AGENT sweep across every org you\'re authorized for (optionally narrow with { org_id }) \u2014 use to spot fleet-wide restart storms or compare agents. Filter the action with `action` (pass "all" to drop the action filter and read every event type), and bound with { since_hours?, limit? }. Cross-agent results are org-walled in SQL; unauthorized orgs are invisible.',
|
package/package.json
CHANGED
|
File without changes
|