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 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 (!sameManifestContributions(options.stableManifest, candidate.manifest)) {
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 = correlated.filter((candidate) => candidate.stateKey === options.stateKey);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "name": "NestDevLab/agentwheel",
4
- "version": "0.20.13",
4
+ "version": "0.20.14",
5
5
  "provides": [
6
6
  { "type": "skills", "path": "skills" }
7
7
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentwheel",
3
- "version": "0.20.13",
3
+ "version": "0.20.14",
4
4
  "description": "Weave skills, rules, and instructions across every AI agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.20.13"
8
+ version: "0.20.14"
9
9
  ---
10
10
 
11
11
  # agentwheel
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.20.13"
8
+ version: "0.20.14"
9
9
  ---
10
10
 
11
11
  # Agentwheel Discovery