impel-cli 0.20.5 → 0.20.7
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 +12 -0
- package/package.json +1 -1
- package/src/agents.js +6 -2
- package/src/selfInvocation.js +16 -1
- package/src/verbatimRelay.js +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.20.7 — Native-agent state compatibility
|
|
4
|
+
|
|
5
|
+
- Keeps profile discovery aligned with the durable transport schema so
|
|
6
|
+
answer-mode records remain integrity-validated without blocking agent sync.
|
|
7
|
+
|
|
8
|
+
## 0.20.6 — Native-agent canary controls
|
|
9
|
+
|
|
10
|
+
- Gives Codex verbatim-relay parents one explicit 60-second blocking wait so
|
|
11
|
+
direct-answer children do not trigger short-poll model turns.
|
|
12
|
+
- Forwards only the three opt-in, closed-schema native telemetry settings into
|
|
13
|
+
managed MCP processes; unrelated environment values remain excluded.
|
|
14
|
+
|
|
3
15
|
## 0.20.5 — Faster managed native agents
|
|
4
16
|
|
|
5
17
|
- Exposes exact bound tools eagerly on qualified Claude hosts while preserving
|
package/package.json
CHANGED
package/src/agents.js
CHANGED
|
@@ -378,8 +378,8 @@ function validatedPendingState(filePath, invocationId) {
|
|
|
378
378
|
const allowed = new Set([
|
|
379
379
|
"schema", "invocationId", "tenantId", "agentId", "scopeParam", "policyFingerprint",
|
|
380
380
|
"requestFingerprint", "idempotencyKey", "startArguments", "upstreamRunId", "status",
|
|
381
|
-
"startAttempts", "createdAt", "updatedAt", "fence", "sequence",
|
|
382
|
-
"result", "output", "error",
|
|
381
|
+
"startAttempts", "startMode", "createdAt", "updatedAt", "fence", "sequence",
|
|
382
|
+
"lastTransportError", "result", "output", "error", "version",
|
|
383
383
|
]);
|
|
384
384
|
if (!state || typeof state !== "object" || Array.isArray(state)
|
|
385
385
|
|| Object.keys(state).some((key) => !allowed.has(key))
|
|
@@ -397,10 +397,14 @@ function validatedPendingState(filePath, invocationId) {
|
|
|
397
397
|
|| !state.status
|
|
398
398
|
|| !Number.isSafeInteger(state.startAttempts)
|
|
399
399
|
|| state.startAttempts < 0
|
|
400
|
+
|| (state.startMode !== undefined
|
|
401
|
+
&& state.startMode !== "durable"
|
|
402
|
+
&& state.startMode !== "answer")
|
|
400
403
|
|| !Number.isFinite(Date.parse(state.createdAt))
|
|
401
404
|
|| !Number.isFinite(Date.parse(state.updatedAt))
|
|
402
405
|
|| (state.fence !== undefined && (!Number.isSafeInteger(state.fence) || state.fence < 0))
|
|
403
406
|
|| (state.sequence !== undefined && (!Number.isSafeInteger(state.sequence) || state.sequence < 0))
|
|
407
|
+
|| (state.version !== undefined && (!Number.isSafeInteger(state.version) || state.version < 0))
|
|
404
408
|
|| (state.upstreamRunId !== null
|
|
405
409
|
&& (typeof state.upstreamRunId !== "string" || !state.upstreamRunId))) {
|
|
406
410
|
throw new Error("native-agent run state failed integrity validation during profile sync");
|
package/src/selfInvocation.js
CHANGED
|
@@ -67,12 +67,27 @@ export function impelCliInvocation(args = [], options = {}) {
|
|
|
67
67
|
export const IMPEL_MANAGED_MCP_ENV = brandedEnvironmentName("MANAGED_MCP");
|
|
68
68
|
export const IMPEL_TASKS_MCP_SERVER_NAME = `${RUNTIME_BRAND.cli.providerId}-tasks`;
|
|
69
69
|
export const IMPEL_NATIVE_AGENT_MCP_TARGET = "native-agent";
|
|
70
|
+
export const IMPEL_NATIVE_AGENT_TELEMETRY_ENV_NAMES = [
|
|
71
|
+
"IMPEL_NATIVE_AGENT_TELEMETRY_PATH",
|
|
72
|
+
"IMPEL_NATIVE_HOST",
|
|
73
|
+
"IMPEL_NATIVE_HOST_BUILD",
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
function managedMcpEnvironment(environment = process.env) {
|
|
77
|
+
const telemetry = Object.fromEntries(
|
|
78
|
+
IMPEL_NATIVE_AGENT_TELEMETRY_ENV_NAMES.flatMap((name) => {
|
|
79
|
+
const value = environment?.[name];
|
|
80
|
+
return typeof value === "string" && value.length > 0 ? [[name, value]] : [];
|
|
81
|
+
}),
|
|
82
|
+
);
|
|
83
|
+
return { [IMPEL_MANAGED_MCP_ENV]: "1", ...telemetry };
|
|
84
|
+
}
|
|
70
85
|
|
|
71
86
|
export function impelMcpInvocation(args = [], options = {}) {
|
|
72
87
|
return {
|
|
73
88
|
type: "stdio",
|
|
74
89
|
...impelCliInvocation(["mcp", ...args], options),
|
|
75
|
-
env:
|
|
90
|
+
env: managedMcpEnvironment(options.environment),
|
|
76
91
|
};
|
|
77
92
|
}
|
|
78
93
|
|
package/src/verbatimRelay.js
CHANGED
|
@@ -14,7 +14,7 @@ export function parentVerbatimRelayAppendix() {
|
|
|
14
14
|
`When an explicit custom agent's catalog-derived description declares ${VERBATIM_RELAY_OPT_IN_MARKER}, ` +
|
|
15
15
|
`spawn it with ${VERBATIM_SPAWN_REQUIREMENT} and relay its finalText verbatim with ${VERBATIM_FINAL_TEXT_CONSTRAINTS}; ` +
|
|
16
16
|
"preserve Sources sections and citations exactly. Start one child, then use one blocking wait sized for the child budget; " +
|
|
17
|
-
"
|
|
17
|
+
"on Codex, call wait_agent exactly once with timeout_ms=60000. Do not send follow-ups, short-poll the child, or synthesize while it is running. " +
|
|
18
18
|
"Custom agents without that declaration keep the default delegation behavior."
|
|
19
19
|
);
|
|
20
20
|
}
|