agentwheel 0.20.13 → 0.20.14
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/index.js +10 -2
- package/openpack.json +1 -1
- package/package.json +1 -1
- package/skills/agentwheel/SKILL.md +1 -1
- package/skills/agentwheel-discovery/SKILL.md +1 -1
package/dist/index.js
CHANGED
|
@@ -8508,14 +8508,22 @@ async function resolvePriorTargetState(options) {
|
|
|
8508
8508
|
});
|
|
8509
8509
|
const correlated = candidates.filter((candidate) => candidate.manifest);
|
|
8510
8510
|
if (options.stableManifest) {
|
|
8511
|
+
const compatible = [];
|
|
8511
8512
|
for (const candidate of correlated) {
|
|
8512
|
-
if (
|
|
8513
|
+
if (sameManifestContributions(options.stableManifest, candidate.manifest)) {
|
|
8514
|
+
compatible.push(candidate);
|
|
8515
|
+
continue;
|
|
8516
|
+
}
|
|
8517
|
+
if (!options.recoverLegacyState) {
|
|
8513
8518
|
throw new Error(
|
|
8514
8519
|
`Stable and legacy target states coexist with disagreeing contributions for ${options.adapter}; reconcile them explicitly.`
|
|
8515
8520
|
);
|
|
8516
8521
|
}
|
|
8522
|
+
options.warn?.(
|
|
8523
|
+
`Legacy target state for ${options.adapter} at ${candidate.graphLockPath} disagrees with the stable manifest. Preserving it outside the explicitly recovered stable state.`
|
|
8524
|
+
);
|
|
8517
8525
|
}
|
|
8518
|
-
const sameKeyCandidates =
|
|
8526
|
+
const sameKeyCandidates = compatible.filter((candidate) => candidate.stateKey === options.stateKey);
|
|
8519
8527
|
if (!options.stableLock && sameKeyCandidates.length > 1) {
|
|
8520
8528
|
throw new Error(`Ambiguous legacy target state for ${options.adapter}: multiple correlated graph locks use the explicit state key.`);
|
|
8521
8529
|
}
|
package/openpack.json
CHANGED
package/package.json
CHANGED