impel-cli 0.20.7 → 0.20.9
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 +18 -0
- package/package.json +1 -1
- package/src/agents.js +9 -1
- package/src/nativeAgentTransport.js +4 -5
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.20.9 — Claude managed-tool permissions
|
|
4
|
+
|
|
5
|
+
- Lets eager Claude custom agents execute their fixed, tenant-bound MCP tools
|
|
6
|
+
in non-interactive `dontAsk` sessions without a permission prompt.
|
|
7
|
+
- Scopes prompt bypass to custom agents whose `tools` frontmatter contains only
|
|
8
|
+
the generated Impel run/resume/recovery allowlist; fallback profiles keep the
|
|
9
|
+
host's normal permission behavior.
|
|
10
|
+
- Preserves the terminal answer schema, status, and run id in the local result
|
|
11
|
+
so privacy-safe telemetry and native hosts can distinguish success from a
|
|
12
|
+
model process that merely exited cleanly.
|
|
13
|
+
|
|
14
|
+
## 0.20.8 — Claude direct-answer compatibility
|
|
15
|
+
|
|
16
|
+
- Publishes the bound direct-answer tool with Claude's supported closed object
|
|
17
|
+
schema while retaining the legacy `task` alias only inside the local runtime.
|
|
18
|
+
- Keeps the model-visible contract to one required `question`, so qualified
|
|
19
|
+
Claude custom agents receive the exact eager tool instead of silently losing it.
|
|
20
|
+
|
|
3
21
|
## 0.20.7 — Native-agent state compatibility
|
|
4
22
|
|
|
5
23
|
- Keeps profile discovery aligned with the durable transport schema so
|
package/package.json
CHANGED
package/src/agents.js
CHANGED
|
@@ -706,7 +706,15 @@ function renderClaudeAgent({ tenantId, agent, name, invocation, recoveryOnly = f
|
|
|
706
706
|
`description: ${JSON.stringify(description)}`,
|
|
707
707
|
"model: haiku",
|
|
708
708
|
...(eager
|
|
709
|
-
? [
|
|
709
|
+
? [
|
|
710
|
+
// This agent receives only the exact fixed-binding MCP allowlist below,
|
|
711
|
+
// so bypassing prompts cannot grant filesystem, shell, connector, or
|
|
712
|
+
// arbitrary MCP access. It lets non-interactive/dontAsk hosts execute
|
|
713
|
+
// the selected managed adapter instead of auto-denying its sole call.
|
|
714
|
+
"permissionMode: bypassPermissions",
|
|
715
|
+
"tools:",
|
|
716
|
+
...toolNames.map((tool) => ` - ${JSON.stringify(nativeToolName(tool))}`),
|
|
717
|
+
]
|
|
710
718
|
: []),
|
|
711
719
|
"mcpServers:",
|
|
712
720
|
` - ${MANAGED_AGENT_MCP_SERVER}:`,
|
|
@@ -1735,10 +1735,13 @@ export class NativeAgentCompositeTransport {
|
|
|
1735
1735
|
});
|
|
1736
1736
|
if (result?.schema === NATIVE_AGENT_RESULT_SCHEMA && result.status === "succeeded") {
|
|
1737
1737
|
return {
|
|
1738
|
+
schema: "impel.native-agent-answer.v1",
|
|
1739
|
+
status: "succeeded",
|
|
1738
1740
|
forUser: result.finalText,
|
|
1739
1741
|
answer: result.finalText,
|
|
1740
1742
|
agentId: this.agentId,
|
|
1741
1743
|
scopeParam: this.scopeParam,
|
|
1744
|
+
runId: state.upstreamRunId,
|
|
1742
1745
|
};
|
|
1743
1746
|
}
|
|
1744
1747
|
return result;
|
|
@@ -2136,13 +2139,9 @@ export function nativeAgentCompositeTools({ mode = "durable" } = {}) {
|
|
|
2136
2139
|
inputSchema: {
|
|
2137
2140
|
type: "object",
|
|
2138
2141
|
additionalProperties: false,
|
|
2139
|
-
|
|
2140
|
-
{ required: ["question"], not: { required: ["task"] } },
|
|
2141
|
-
{ required: ["task"], not: { required: ["question"] } },
|
|
2142
|
-
],
|
|
2142
|
+
required: ["question"],
|
|
2143
2143
|
properties: {
|
|
2144
2144
|
question: { type: "string", minLength: 1, maxLength: 40_000 },
|
|
2145
|
-
task: { type: "string", minLength: 1, maxLength: 40_000 },
|
|
2146
2145
|
context: { type: "string", maxLength: 40_000 },
|
|
2147
2146
|
contextKeys: {
|
|
2148
2147
|
type: "array",
|