@integrity-labs/agt-cli 0.28.196 → 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/mcp/index.js CHANGED
@@ -22981,21 +22981,21 @@ server.tool(
22981
22981
  }
22982
22982
  );
22983
22983
  server.tool(
22984
- "plugin_list",
22985
- `List the plugins 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 plugins do I have?", "show me the plugins", "what is the Coding plugin configured with?", or before calling plugin_improve to see what fields exist and what they're set to.`,
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 plugins installed on this agent." }] };
22992
+ return { content: [{ type: "text", text: "No integrations installed on this agent." }] };
22993
22993
  }
22994
22994
  const lines = [];
22995
- lines.push(`## Installed Plugins (${data.plugins.length})
22995
+ lines.push(`## Installed Integrations (${data.plugins.length})
22996
22996
  `);
22997
22997
  for (const p of data.plugins) {
22998
- lines.push(`### ${p.plugin_name} \`${p.plugin_slug}\` (v${p.version})`);
22998
+ lines.push(`### ${p.plugin_name} \`${p.integration_slug ?? p.plugin_slug}\` (v${p.version})`);
22999
22999
  if (p.description) lines.push(p.description);
23000
23000
  lines.push(`- Skills: ${p.skill_count}`);
23001
23001
  if (p.has_schema && p.context_field_count > 0) {
@@ -23014,39 +23014,47 @@ server.tool(
23014
23014
  }
23015
23015
  lines.push("");
23016
23016
  }
23017
- lines.push("To update any plugin's behavior, use the `plugin_improve` tool with the user's feedback.");
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
- "plugin_improve",
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 plugin (e.g. the Coding plugin, the Knowledge Base plugin, the Slack plugin). USE THIS TOOL when the user says any of: "update the X plugin", "add a rule to plugin Y", "tell the X plugin not to do Z", "change the X plugin so it does Y", "the Coding plugin should always/never...", "remember this for the X plugin". This is the ONLY correct way to modify a plugin's behavior. NEVER edit SKILL.md files under .claude/skills/plugin-* 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 plugin'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 plugins that are actually installed on this agent.`,
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
- plugin_slug: external_exports.string().optional().describe('Plugin slug to improve (e.g. "claude-code-github"). Either this or plugin_id is required.'),
23029
- plugin_id: external_exports.string().optional().describe("Plugin UUID. Either this or plugin_slug is required."),
23030
- feedback: external_exports.string().min(1).describe("The user's feedback in natural language. What should the plugin do differently?"),
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
+ integration_id: external_exports.string().optional().describe("Integration UUID. Either this or integration_slug is required."),
23030
+ // ENG-7167: accept the legacy plugin_* names as deprecated aliases so the
23031
+ // tool boundary mirrors the dual-accept /host/improve-plugin endpoint. They
23032
+ // are normalised to integration_* below; the outgoing wire only posts the
23033
+ // canonical names.
23034
+ plugin_slug: external_exports.string().optional().describe("@deprecated Use integration_slug. Legacy plugin-slug alias."),
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 integration do differently?"),
23031
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."),
23032
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.")
23033
23039
  },
23034
23040
  async (params) => {
23035
- if (!params.plugin_slug && !params.plugin_id) {
23041
+ const integrationSlug = params.integration_slug ?? params.plugin_slug;
23042
+ const integrationId = params.integration_id ?? params.plugin_id;
23043
+ if (!integrationSlug && !integrationId) {
23036
23044
  return {
23037
- content: [{ type: "text", text: "Error: either plugin_slug or plugin_id is required." }]
23045
+ content: [{ type: "text", text: "Error: either integration_slug or integration_id is required." }]
23038
23046
  };
23039
23047
  }
23040
23048
  const data = await apiPost("/host/improve-plugin", {
23041
23049
  agent_id: AGT_AGENT_ID,
23042
- plugin_slug: params.plugin_slug,
23043
- plugin_id: params.plugin_id,
23050
+ integration_slug: integrationSlug,
23051
+ integration_id: integrationId,
23044
23052
  feedback: params.feedback,
23045
23053
  transcript_snippet: params.transcript_snippet,
23046
23054
  auto_apply: params.auto_apply ?? false
23047
23055
  });
23048
23056
  const lines = [];
23049
- lines.push(data.applied ? "\u2705 Applied plugin context update" : "\u{1F4CB} Proposed plugin context update (preview)");
23057
+ lines.push(data.applied ? "\u2705 Applied integration context update" : "\u{1F4CB} Proposed integration context update (preview)");
23050
23058
  lines.push("");
23051
23059
  lines.push(`Rationale: ${data.proposed.rationale}`);
23052
23060
  if (data.proposed.changed_fields.length > 0) {
@@ -23075,10 +23083,10 @@ server.tool(
23075
23083
  if (!data.applied) {
23076
23084
  lines.push("");
23077
23085
  lines.push("---");
23078
- lines.push("Show this diff to the user. If they confirm, call `plugin_improve` again with `auto_apply: true` and the same arguments to apply.");
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.");
23079
23087
  } else {
23080
23088
  lines.push("");
23081
- lines.push("Update applied. The manager will re-render the plugin's SKILL.md files on the next refresh cycle.");
23089
+ lines.push("Update applied. The manager will re-render the integration's SKILL.md files on the next refresh cycle.");
23082
23090
  }
23083
23091
  return { content: [{ type: "text", text: lines.join("\n") }] };
23084
23092
  }
@@ -23337,8 +23345,8 @@ var LOCAL_TOOL_NAMES = /* @__PURE__ */ new Set([
23337
23345
  "knowledge_add",
23338
23346
  "knowledge_update",
23339
23347
  "knowledge_delete",
23340
- "plugin_list",
23341
- "plugin_improve",
23348
+ "integration_list",
23349
+ "integration_improve",
23342
23350
  "dashboards_list",
23343
23351
  "dashboards_show",
23344
23352
  "dashboards_upsert",
@@ -34,8 +34,8 @@ import {
34
34
  writeDirectChatSessionState,
35
35
  writeEgressAllowlist,
36
36
  writePersistentClaudeWrapper
37
- } from "./chunk-H5KQGGFU.js";
38
- import "./chunk-C42HT3QT.js";
37
+ } from "./chunk-PCYEFPBE.js";
38
+ import "./chunk-CE6U2IAF.js";
39
39
  import "./chunk-XWVM4KPK.js";
40
40
  export {
41
41
  EGRESS_BASELINE_DOMAINS,
@@ -74,4 +74,4 @@ export {
74
74
  writeEgressAllowlist,
75
75
  writePersistentClaudeWrapper
76
76
  };
77
- //# sourceMappingURL=persistent-session-PKGKXWD2.js.map
77
+ //# sourceMappingURL=persistent-session-PG3OFGDB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-H5KQGGFU.js";
4
- import "./chunk-C42HT3QT.js";
3
+ } from "./chunk-PCYEFPBE.js";
4
+ import "./chunk-CE6U2IAF.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -304,4 +304,4 @@ export {
304
304
  readAndResetChannelDeflections,
305
305
  readAndResetChannelLaneClassifications
306
306
  };
307
- //# sourceMappingURL=responsiveness-probe-SSDLOYZB.js.map
307
+ //# sourceMappingURL=responsiveness-probe-MMHGI5FC.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.196",
3
+ "version": "0.28.198",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {