@integrity-labs/agt-cli 0.28.197 → 0.28.198
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 +3 -3
- package/dist/{chunk-WBTOXOUC.js → chunk-75XCRB6E.js} +2 -2
- package/dist/lib/manager-worker.js +4 -4
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +13 -13
- package/package.json +1 -1
- /package/dist/{chunk-WBTOXOUC.js.map → chunk-75XCRB6E.js.map} +0 -0
package/dist/mcp/index.js
CHANGED
|
@@ -22981,18 +22981,18 @@ server.tool(
|
|
|
22981
22981
|
}
|
|
22982
22982
|
);
|
|
22983
22983
|
server.tool(
|
|
22984
|
-
"
|
|
22985
|
-
`List the
|
|
22984
|
+
"integration_list",
|
|
22985
|
+
`List the integrations currently installed on this agent, with their current typed context values and a preview of any freeform overrides. Use this when the user asks "what integrations do I have?", "show me the integrations", "what is the Coding integration configured with?", or before calling integration_improve to see what fields exist and what they're set to.`,
|
|
22986
22986
|
{},
|
|
22987
22987
|
async () => {
|
|
22988
22988
|
const data = await apiPost("/host/list-plugins", {
|
|
22989
22989
|
agent_id: AGT_AGENT_ID
|
|
22990
22990
|
});
|
|
22991
22991
|
if (!data.plugins.length) {
|
|
22992
|
-
return { content: [{ type: "text", text: "No
|
|
22992
|
+
return { content: [{ type: "text", text: "No integrations installed on this agent." }] };
|
|
22993
22993
|
}
|
|
22994
22994
|
const lines = [];
|
|
22995
|
-
lines.push(`## Installed
|
|
22995
|
+
lines.push(`## Installed Integrations (${data.plugins.length})
|
|
22996
22996
|
`);
|
|
22997
22997
|
for (const p of data.plugins) {
|
|
22998
22998
|
lines.push(`### ${p.plugin_name} \`${p.integration_slug ?? p.plugin_slug}\` (v${p.version})`);
|
|
@@ -23014,16 +23014,16 @@ server.tool(
|
|
|
23014
23014
|
}
|
|
23015
23015
|
lines.push("");
|
|
23016
23016
|
}
|
|
23017
|
-
lines.push("To update any
|
|
23017
|
+
lines.push("To update any integration's behavior, use the `integration_improve` tool with the user's feedback.");
|
|
23018
23018
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
23019
23019
|
}
|
|
23020
23020
|
);
|
|
23021
23021
|
server.tool(
|
|
23022
|
-
"
|
|
23022
|
+
"integration_improve",
|
|
23023
23023
|
// Description leads with the user phrasings the agent should match against,
|
|
23024
23024
|
// then explains the safety rule. Order matters — Claude\'s tool selection
|
|
23025
23025
|
// weights the first line of a description heavily.
|
|
23026
|
-
`Update, edit, or add a rule to an installed
|
|
23026
|
+
`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.`,
|
|
23027
23027
|
{
|
|
23028
23028
|
integration_slug: external_exports.string().optional().describe('Integration slug to improve (e.g. "claude-code-github"). Either this or integration_id is required.'),
|
|
23029
23029
|
integration_id: external_exports.string().optional().describe("Integration UUID. Either this or integration_slug is required."),
|
|
@@ -23033,7 +23033,7 @@ server.tool(
|
|
|
23033
23033
|
// canonical names.
|
|
23034
23034
|
plugin_slug: external_exports.string().optional().describe("@deprecated Use integration_slug. Legacy plugin-slug alias."),
|
|
23035
23035
|
plugin_id: external_exports.string().optional().describe("@deprecated Use integration_id. Legacy plugin-UUID alias."),
|
|
23036
|
-
feedback: external_exports.string().min(1).describe("The user's feedback in natural language. What should the
|
|
23036
|
+
feedback: external_exports.string().min(1).describe("The user's feedback in natural language. What should the integration do differently?"),
|
|
23037
23037
|
transcript_snippet: external_exports.string().optional().describe("Optional short transcript snippet showing the behavior the user flagged. Helps the LLM understand context. Max 2000 chars."),
|
|
23038
23038
|
auto_apply: external_exports.boolean().optional().describe("If true, apply the proposed update immediately without preview. Default false (preview-then-apply). Only set to true after the user has confirmed the proposed diff.")
|
|
23039
23039
|
},
|
|
@@ -23054,7 +23054,7 @@ server.tool(
|
|
|
23054
23054
|
auto_apply: params.auto_apply ?? false
|
|
23055
23055
|
});
|
|
23056
23056
|
const lines = [];
|
|
23057
|
-
lines.push(data.applied ? "\u2705 Applied
|
|
23057
|
+
lines.push(data.applied ? "\u2705 Applied integration context update" : "\u{1F4CB} Proposed integration context update (preview)");
|
|
23058
23058
|
lines.push("");
|
|
23059
23059
|
lines.push(`Rationale: ${data.proposed.rationale}`);
|
|
23060
23060
|
if (data.proposed.changed_fields.length > 0) {
|
|
@@ -23083,10 +23083,10 @@ server.tool(
|
|
|
23083
23083
|
if (!data.applied) {
|
|
23084
23084
|
lines.push("");
|
|
23085
23085
|
lines.push("---");
|
|
23086
|
-
lines.push("Show this diff to the user. If they confirm, call `
|
|
23086
|
+
lines.push("Show this diff to the user. If they confirm, call `integration_improve` again with `auto_apply: true` and the same arguments to apply.");
|
|
23087
23087
|
} else {
|
|
23088
23088
|
lines.push("");
|
|
23089
|
-
lines.push("Update applied. The manager will re-render the
|
|
23089
|
+
lines.push("Update applied. The manager will re-render the integration's SKILL.md files on the next refresh cycle.");
|
|
23090
23090
|
}
|
|
23091
23091
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
23092
23092
|
}
|
|
@@ -23345,8 +23345,8 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
23345
23345
|
"knowledge_add",
|
|
23346
23346
|
"knowledge_update",
|
|
23347
23347
|
"knowledge_delete",
|
|
23348
|
-
"
|
|
23349
|
-
"
|
|
23348
|
+
"integration_list",
|
|
23349
|
+
"integration_improve",
|
|
23350
23350
|
"dashboards_list",
|
|
23351
23351
|
"dashboards_show",
|
|
23352
23352
|
"dashboards_upsert",
|
package/package.json
CHANGED
|
File without changes
|