impel-cli 0.20.6 → 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 +5 -0
- package/package.json +1 -1
- package/src/agents.js +6 -2
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
|
|
3
8
|
## 0.20.6 — Native-agent canary controls
|
|
4
9
|
|
|
5
10
|
- Gives Codex verbatim-relay parents one explicit 60-second blocking wait so
|
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");
|