@integrity-labs/agt-cli 0.28.1203 → 0.28.1204
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
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-PRW37VJ2.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1204" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1204" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
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");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8082,7 +8082,7 @@ function exchangeFailureKind(err) {
|
|
|
8082
8082
|
}
|
|
8083
8083
|
|
|
8084
8084
|
// src/lib/api-client.ts
|
|
8085
|
-
var agtCliVersion = true ? "0.28.
|
|
8085
|
+
var agtCliVersion = true ? "0.28.1204" : "dev";
|
|
8086
8086
|
var lastConfigHash = null;
|
|
8087
8087
|
function setConfigHash(hash) {
|
|
8088
8088
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13683,4 +13683,4 @@ export {
|
|
|
13683
13683
|
managerInstallSystemUnitCommand,
|
|
13684
13684
|
managerUninstallSystemUnitCommand
|
|
13685
13685
|
};
|
|
13686
|
-
//# sourceMappingURL=chunk-
|
|
13686
|
+
//# sourceMappingURL=chunk-PRW37VJ2.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-PRW37VJ2.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -16359,7 +16359,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16359
16359
|
var lastVersionCheckAt = 0;
|
|
16360
16360
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16361
16361
|
var lastResponsivenessProbeAt = 0;
|
|
16362
|
-
var agtCliVersion = true ? "0.28.
|
|
16362
|
+
var agtCliVersion = true ? "0.28.1204" : "dev";
|
|
16363
16363
|
function resolveBrewPath(execFileSync3) {
|
|
16364
16364
|
try {
|
|
16365
16365
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/index.js
CHANGED
|
@@ -32442,6 +32442,56 @@ var HOST_KEY_ROTATION_GRACE_MAX_MS = 60 * 6e4;
|
|
|
32442
32442
|
var TEAM_SLUG_MAX_ATTEMPTS = 20;
|
|
32443
32443
|
var SUFFIX_RESERVE = `-${TEAM_SLUG_MAX_ATTEMPTS}`.length;
|
|
32444
32444
|
|
|
32445
|
+
// src/integration-list-render.ts
|
|
32446
|
+
var PREVIEW_LENGTH = 200;
|
|
32447
|
+
function renderIntegrationList(plugins) {
|
|
32448
|
+
const lines = [];
|
|
32449
|
+
lines.push(`## Installed Integrations (${plugins.length})
|
|
32450
|
+
`);
|
|
32451
|
+
for (const p2 of plugins) {
|
|
32452
|
+
lines.push(`### ${p2.plugin_name} \`${p2.integration_slug ?? p2.plugin_slug}\` (v${p2.version})`);
|
|
32453
|
+
if (p2.description) lines.push(p2.description);
|
|
32454
|
+
lines.push(`- Skills: ${p2.skill_count}`);
|
|
32455
|
+
if (p2.excluded_skills?.length) {
|
|
32456
|
+
lines.push(`- Excluded on this agent only: ${p2.excluded_skills.map((s) => `\`${s}\``).join(", ")}`);
|
|
32457
|
+
}
|
|
32458
|
+
if (p2.base_hash && p2.effective_hash) {
|
|
32459
|
+
lines.push(`- Instructions: shared \`${p2.base_hash}\`, yours \`${p2.effective_hash}\``);
|
|
32460
|
+
}
|
|
32461
|
+
if (p2.has_schema && p2.context_field_count > 0) {
|
|
32462
|
+
lines.push(`- Context values:`);
|
|
32463
|
+
for (const [key, val] of Object.entries(p2.current_values)) {
|
|
32464
|
+
lines.push(` - \`${key}\`: ${JSON.stringify(val)}`);
|
|
32465
|
+
}
|
|
32466
|
+
} else if (p2.has_schema) {
|
|
32467
|
+
lines.push(`- Context: schema declared but no values set (all defaults)`);
|
|
32468
|
+
} else {
|
|
32469
|
+
lines.push(`- Context: no typed schema (freeform overrides only)`);
|
|
32470
|
+
}
|
|
32471
|
+
if (p2.has_overrides) {
|
|
32472
|
+
if (typeof p2.overrides === "string") {
|
|
32473
|
+
lines.push(`- Freeform overrides, on this agent only (full text):`);
|
|
32474
|
+
lines.push(` > ${p2.overrides.replace(/\n/g, "\n > ")}`);
|
|
32475
|
+
} else {
|
|
32476
|
+
const cut = p2.overrides_preview.length >= PREVIEW_LENGTH;
|
|
32477
|
+
lines.push(`- Freeform overrides, on this agent only (${cut ? "preview, call again with include_full_overrides: true for all of it" : "preview"}):`);
|
|
32478
|
+
lines.push(` > ${p2.overrides_preview.replace(/\n/g, "\n > ")}`);
|
|
32479
|
+
}
|
|
32480
|
+
} else {
|
|
32481
|
+
lines.push(`- Freeform overrides: none on this agent`);
|
|
32482
|
+
}
|
|
32483
|
+
lines.push("");
|
|
32484
|
+
}
|
|
32485
|
+
if (plugins.some((p2) => p2.base_hash && p2.effective_hash)) {
|
|
32486
|
+
lines.push(
|
|
32487
|
+
"To compare with another agent: the same shared hash and a different yours hash means one of you has a per-agent layer, which is the values, overrides and excluded skills above. A different shared hash means the shared skills themselves differ: one was edited, renamed, added or removed. These describe what you should have, so a just-changed integration can briefly differ from your files."
|
|
32488
|
+
);
|
|
32489
|
+
lines.push("");
|
|
32490
|
+
}
|
|
32491
|
+
lines.push("To update any integration's behavior, use the `integration_improve` tool with the user's feedback. It changes this agent's copy only, not other agents on the same integration.");
|
|
32492
|
+
return lines.join("\n");
|
|
32493
|
+
}
|
|
32494
|
+
|
|
32445
32495
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
32446
32496
|
var external_exports = {};
|
|
32447
32497
|
__export(external_exports, {
|
|
@@ -52556,40 +52606,21 @@ server.tool(
|
|
|
52556
52606
|
);
|
|
52557
52607
|
server.tool(
|
|
52558
52608
|
"integration_list",
|
|
52559
|
-
`List the integrations currently installed on this agent, with their current typed context values and
|
|
52560
|
-
{
|
|
52561
|
-
|
|
52609
|
+
`List the integrations currently installed on this agent, with their current typed context values, any freeform overrides, and hashes to compare your instructions with another agent's. Use this when the user asks "what integrations do I have?", "show me the integrations", "what is the Coding integration configured with?", when two agents seem to read different instructions, or before calling integration_improve to see what fields exist and what they're set to.`,
|
|
52610
|
+
{
|
|
52611
|
+
include_full_overrides: external_exports.boolean().optional().describe(
|
|
52612
|
+
"Return each integration's complete freeform overrides instead of a 200-character preview. This is the text appended to your skill files for that integration."
|
|
52613
|
+
)
|
|
52614
|
+
},
|
|
52615
|
+
async (params) => {
|
|
52562
52616
|
const data = await apiPost("/host/list-integrations", {
|
|
52563
|
-
agent_id: AGT_AGENT_ID
|
|
52617
|
+
agent_id: AGT_AGENT_ID,
|
|
52618
|
+
...params.include_full_overrides ? { include_full_overrides: true } : {}
|
|
52564
52619
|
});
|
|
52565
52620
|
if (!data.plugins.length) {
|
|
52566
52621
|
return { content: [{ type: "text", text: "No integrations installed on this agent." }] };
|
|
52567
52622
|
}
|
|
52568
|
-
|
|
52569
|
-
lines.push(`## Installed Integrations (${data.plugins.length})
|
|
52570
|
-
`);
|
|
52571
|
-
for (const p2 of data.plugins) {
|
|
52572
|
-
lines.push(`### ${p2.plugin_name} \`${p2.integration_slug ?? p2.plugin_slug}\` (v${p2.version})`);
|
|
52573
|
-
if (p2.description) lines.push(p2.description);
|
|
52574
|
-
lines.push(`- Skills: ${p2.skill_count}`);
|
|
52575
|
-
if (p2.has_schema && p2.context_field_count > 0) {
|
|
52576
|
-
lines.push(`- Context values:`);
|
|
52577
|
-
for (const [key, val] of Object.entries(p2.current_values)) {
|
|
52578
|
-
lines.push(` - \`${key}\`: ${JSON.stringify(val)}`);
|
|
52579
|
-
}
|
|
52580
|
-
} else if (p2.has_schema) {
|
|
52581
|
-
lines.push(`- Context: schema declared but no values set (all defaults)`);
|
|
52582
|
-
} else {
|
|
52583
|
-
lines.push(`- Context: no typed schema (freeform overrides only)`);
|
|
52584
|
-
}
|
|
52585
|
-
if (p2.has_overrides) {
|
|
52586
|
-
lines.push(`- Freeform overrides (preview):`);
|
|
52587
|
-
lines.push(` > ${p2.overrides_preview.replace(/\n/g, "\n > ")}`);
|
|
52588
|
-
}
|
|
52589
|
-
lines.push("");
|
|
52590
|
-
}
|
|
52591
|
-
lines.push("To update any integration's behavior, use the `integration_improve` tool with the user's feedback.");
|
|
52592
|
-
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
52623
|
+
return { content: [{ type: "text", text: renderIntegrationList(data.plugins) }] };
|
|
52593
52624
|
}
|
|
52594
52625
|
);
|
|
52595
52626
|
server.tool(
|
|
@@ -52597,7 +52628,7 @@ server.tool(
|
|
|
52597
52628
|
// Description leads with the user phrasings the agent should match against,
|
|
52598
52629
|
// then explains the safety rule. Order matters — Claude\'s tool selection
|
|
52599
52630
|
// weights the first line of a description heavily.
|
|
52600
|
-
`Update, edit, or add a rule to an installed integration (e.g. the Coding integration, the Knowledge Base integration, the Slack integration). USE THIS TOOL when the user says any of: "update the X integration", "add a rule to integration Y", "tell the X integration not to do Z", "change the X integration so it does Y", "the Coding integration should always/never...", "remember this for the X integration". This is the ONLY correct way to modify an integration's behavior. NEVER edit SKILL.md files under .claude/skills/integration-* directly \u2014 those files are derived from the platform database and your edits will be silently overwritten on the next manager refresh. The platform calls an LLM to translate the user's request into a structured update of the integration's typed context fields and/or freeform overrides text, then returns a diff for you to show the user. Default flow is preview-then-apply: call once to get the proposed diff, show it to the user, then call again with auto_apply=true if they confirm. Only works for integrations that are actually installed on this agent. Stored overrides are never rewritten: a note is only ever appended after them, and existing overrides text cannot be removed or reworded through this tool. If an auto_apply=true call fails as INDETERMINATE, do NOT retry it: a retry generates the note again and can append it twice. Tell the user the outcome is unknown instead.`,
|
|
52631
|
+
`Update, edit, or add a rule to an installed integration (e.g. the Coding integration, the Knowledge Base integration, the Slack integration). USE THIS TOOL when the user says any of: "update the X integration", "add a rule to integration Y", "tell the X integration not to do Z", "change the X integration so it does Y", "the Coding integration should always/never...", "remember this for the X integration". This is the ONLY correct way to modify an integration's behavior. NEVER edit SKILL.md files under .claude/skills/integration-* directly \u2014 those files are derived from the platform database and your edits will be silently overwritten on the next manager refresh. The platform calls an LLM to translate the user's request into a structured update of the integration's typed context fields and/or freeform overrides text, then returns a diff for you to show the user. Default flow is preview-then-apply: call once to get the proposed diff, show it to the user, then call again with auto_apply=true if they confirm. Only works for integrations that are actually installed on this agent. Stored overrides are never rewritten: a note is only ever appended after them, and existing overrides text cannot be removed or reworded through this tool. If an auto_apply=true call fails as INDETERMINATE, do NOT retry it: a retry generates the note again and can append it twice. Tell the user the outcome is unknown instead. It changes this agent's copy only: other agents on the same integration keep theirs.`,
|
|
52601
52632
|
{
|
|
52602
52633
|
integration_slug: external_exports.string().optional().describe('Integration slug to improve (e.g. "claude-code-github"). Either this or integration_id is required.'),
|
|
52603
52634
|
integration_id: external_exports.string().optional().describe("Integration UUID. Either this or integration_slug is required."),
|
package/package.json
CHANGED
|
File without changes
|