agentwheel 0.20.13 → 0.20.15

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
  }
@@ -9246,7 +9254,8 @@ async function syncProfile(options) {
9246
9254
  forceDrift: options.forceDrift,
9247
9255
  forceConflict: options.forceConflict,
9248
9256
  forceForeignState: options.forceForeignState,
9249
- replaceConflict: options.replaceConflict
9257
+ replaceConflict: options.replaceConflict,
9258
+ recoverLegacyState: options.recoverLegacyState
9250
9259
  });
9251
9260
  try {
9252
9261
  const result = {
@@ -14311,6 +14320,7 @@ async function runInstallCommand(nameOrSource, options, behavior) {
14311
14320
  forceConflict: normalizedOptions.forceConflict,
14312
14321
  forceForeignState: normalizedOptions.forceForeignState,
14313
14322
  replaceConflict: normalizedOptions.replaceConflict,
14323
+ recoverLegacyState: normalizedOptions.recoverLegacyState,
14314
14324
  noDeps: noDepsFromOptions(normalizedOptions),
14315
14325
  includeSuggestions: normalizedOptions.withSuggestions,
14316
14326
  suggestionAliases: suggestionAliasesFromOptions(normalizedOptions),
@@ -14417,6 +14427,7 @@ async function buildPlanReport(nameOrSource, options) {
14417
14427
  forceConflict: normalizedOptions.forceConflict,
14418
14428
  forceForeignState: normalizedOptions.forceForeignState,
14419
14429
  replaceConflict: normalizedOptions.replaceConflict,
14430
+ recoverLegacyState: normalizedOptions.recoverLegacyState,
14420
14431
  noDeps: noDepsFromOptions(normalizedOptions),
14421
14432
  includeSuggestions: normalizedOptions.withSuggestions,
14422
14433
  suggestionAliases: suggestionAliasesFromOptions(normalizedOptions),
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.15",
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.15",
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.15"
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.15"
9
9
  ---
10
10
 
11
11
  # Agentwheel Discovery