impel-cli 0.20.9 → 0.20.10

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/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release notes
2
2
 
3
+ ## 0.20.10 — Direct-answer continuation surface
4
+
5
+ - Limits answer-only native agents to the exact answer and resume tools.
6
+ - Removes the unnecessary recovery branch after an authoritative continuation
7
+ handle exists, keeping healthy long-running answers within four inference
8
+ rounds while durable profiles retain ambiguous-start recovery.
9
+ - Regenerates managed agent profiles so the eager allowlist matches the
10
+ fail-closed local MCP surface.
11
+
3
12
  ## 0.20.9 — Claude managed-tool permissions
4
13
 
5
14
  - Lets eager Claude custom agents execute their fixed, tenant-bound MCP tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impel-cli",
3
- "version": "0.20.9",
3
+ "version": "0.20.10",
4
4
  "description": "Prepare isolated Claude and Codex workspaces for every accessible Impel tenant",
5
5
  "type": "module",
6
6
  "bin": {
package/src/agents.js CHANGED
@@ -51,7 +51,7 @@ export const NATIVE_AGENT_RUN_TOOL = "run_native_agent";
51
51
  export const NATIVE_AGENT_RESUME_TOOL = "resume_native_agent_run";
52
52
  export const NATIVE_AGENT_RECOVER_TOOL = "recover_native_agent_runs";
53
53
  export const MANAGED_AGENT_MCP_SERVER = "impel_agent";
54
- export const MANAGED_AGENT_MANIFEST_VERSION = 8;
54
+ export const MANAGED_AGENT_MANIFEST_VERSION = 9;
55
55
 
56
56
  const NATIVE_AGENT_TOOL_NAMES = [
57
57
  NATIVE_AGENT_RUN_TOOL,
@@ -61,7 +61,7 @@ const NATIVE_AGENT_TOOL_NAMES = [
61
61
  const NATIVE_AGENT_RECOVERY_TOOL_NAMES = [NATIVE_AGENT_RESUME_TOOL, NATIVE_AGENT_RECOVER_TOOL];
62
62
  function nativeAgentToolNames(agent) {
63
63
  return usesDirectAnswer(agent)
64
- ? [NATIVE_AGENT_ANSWER_TOOL, ...NATIVE_AGENT_RECOVERY_TOOL_NAMES]
64
+ ? [NATIVE_AGENT_ANSWER_TOOL, NATIVE_AGENT_RESUME_TOOL]
65
65
  : NATIVE_AGENT_TOOL_NAMES;
66
66
  }
67
67
  function eagerNativeAgentTransportEnabled() {
@@ -2193,7 +2193,11 @@ export function nativeAgentCompositeTools({ mode = "durable" } = {}) {
2193
2193
  },
2194
2194
  ];
2195
2195
  if (mode === "answer") {
2196
- return [answerTool, ...tools.filter(({ name }) => name !== NATIVE_AGENT_RUN_TOOL)];
2196
+ // A bounded answer either returns terminal text or the authoritative
2197
+ // continuation handle. Once that handle exists, resume is the only valid
2198
+ // next action; exposing recovery here gives the wrapper model an
2199
+ // unnecessary branch and can add a fifth inference round to healthy runs.
2200
+ return [answerTool, tools.find(({ name }) => name === NATIVE_AGENT_RESUME_TOOL)];
2197
2201
  }
2198
2202
  return mode === "recovery" ? tools.filter(({ name }) => name !== NATIVE_AGENT_RUN_TOOL) : tools;
2199
2203
  }