@integrity-labs/agt-cli 0.28.1214 → 0.28.1215
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.
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-BPXFPKJ4.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -16447,7 +16447,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16447
16447
|
var lastVersionCheckAt = 0;
|
|
16448
16448
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16449
16449
|
var lastResponsivenessProbeAt = 0;
|
|
16450
|
-
var agtCliVersion = true ? "0.28.
|
|
16450
|
+
var agtCliVersion = true ? "0.28.1215" : "dev";
|
|
16451
16451
|
function resolveBrewPath(execFileSync3) {
|
|
16452
16452
|
try {
|
|
16453
16453
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -21261,6 +21261,10 @@ var AdminDebugClient = class _AdminDebugClient {
|
|
|
21261
21261
|
getAgentIntegrations(agentId) {
|
|
21262
21262
|
return this.get(`/admin/debug/agents/${encodeURIComponent(agentId)}/integrations`);
|
|
21263
21263
|
}
|
|
21264
|
+
/** The agent's skills (agent + team + org + global) and routines/schedules, metadata only (CS-2237). */
|
|
21265
|
+
getAgentSkills(agentId) {
|
|
21266
|
+
return this.get(`/admin/debug/agents/${encodeURIComponent(agentId)}/skills`);
|
|
21267
|
+
}
|
|
21264
21268
|
searchHosts(args) {
|
|
21265
21269
|
return this.get("/admin/debug/hosts", _AdminDebugClient.cleanQuery(args));
|
|
21266
21270
|
}
|
|
@@ -21486,6 +21490,9 @@ var getAgentSchema = strictObject({
|
|
|
21486
21490
|
var getAgentIntegrationsSchema = strictObject({
|
|
21487
21491
|
agent_id: external_exports.string().min(1).max(64).describe("The agent UUID whose effective integration set to resolve.")
|
|
21488
21492
|
});
|
|
21493
|
+
var getAgentSkillsSchema = strictObject({
|
|
21494
|
+
agent_id: external_exports.string().min(1).max(64).describe("The agent UUID whose skills, routines and schedules to list (metadata only).")
|
|
21495
|
+
});
|
|
21489
21496
|
var searchHostsSchema = strictObject({
|
|
21490
21497
|
q: external_exports.string().max(128).optional().describe("Case-insensitive substring match on host name."),
|
|
21491
21498
|
status: external_exports.string().max(32).optional().describe("Filter by host status (active | decommissioned)."),
|
|
@@ -21787,6 +21794,18 @@ server.registerTool(
|
|
|
21787
21794
|
}
|
|
21788
21795
|
}
|
|
21789
21796
|
);
|
|
21797
|
+
server.registerTool(
|
|
21798
|
+
"debug_get_agent_skills",
|
|
21799
|
+
{ description: "List ONE agent's skills, routines and schedules as METADATA ONLY (CS-2237) - the read for \"which skills does this agent actually get, from which scope, and is that routine/schedule running?\". Returns { agent_id, code_name, team_id, organization_id, skills[], skill_counts, skill_scopes_queried, routines[], schedules[], last_run_lookup, not_covered[] }. Skills cover every scope the agent receives from (agent + team + organization + global); each entry is { id, code_name, display_name, description, scope, version, status (draft | published), updated_at, effective, not_effective_reason (draft | shadowed_by_more_specific | blank_body | null), shadowed_by_scope }. `effective` mirrors the host-refresh delivery rails: only published rows are delivered, the most specific published scope wins per code_name, and a blank override still shadows (the agent then gets neither). Schedules are agent_scheduled_tasks (`source: scheduled_task`) and recurring kanban templates (`source: recurring_kanban`): { id, source, name, schedule_kind, cron, every, at, timezone, status (enabled | disabled), routine_id, routine_role, last_run, next_run_at, next_run_basis, last_delivery_status, last_delivery_at, consecutive_failure_count, updated_at }. Routines are { id, name, status, paused, paused_at, origin, executor, recurrence { kind, cron, every, timezone }, runtimes[], last_run, next_run_at, updated_at }, with last/next run taken from the routine's execute-role runtime. `last_run` is { state: 'found', at, outcome } | { state: 'none' } | { state: 'none_in_retention', retention_days } | { state: 'unavailable', reason }. `none` means it provably never ran (created inside the 90-day runs retention window); `none_in_retention` means no run in the last 90 days, NOT that it never ran; `unavailable` means the runs lookup failed or was truncated - check `last_run_lookup`. NEVER returns skill bodies, routine descriptions, scheduled-task prompts or delivery targets, and there is no option to include them. Integration-bundled child skills are not listed here (see debug_get_agent_integrations). Fails closed (uniform not-found) for an unauthorized/unknown agent; a failed skills/schedules/routines read returns an error naming the section rather than an empty list. Audited as a cross-org access. Pass { agent_id }.", inputSchema: getAgentSkillsSchema },
|
|
21800
|
+
async (args) => {
|
|
21801
|
+
try {
|
|
21802
|
+
const result = await client.getAgentSkills(args.agent_id);
|
|
21803
|
+
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
21804
|
+
} catch (err) {
|
|
21805
|
+
return { content: [{ type: "text", text: formatError2(err) }], isError: true };
|
|
21806
|
+
}
|
|
21807
|
+
}
|
|
21808
|
+
);
|
|
21790
21809
|
server.registerTool(
|
|
21791
21810
|
"debug_search_hosts",
|
|
21792
21811
|
{ description: "Search managed hosts across authorized orgs. Returns a projection per host (name, org, status, framework version, last-seen verdict, EC2 + Claude auth status) \u2014 no api-key fingerprints or secrets. Filter with { q, status, limit }.", inputSchema: searchHostsSchema },
|