minimal-forge-work-pack-sync 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10582,7 +10582,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
10582
10582
  };
10583
10583
 
10584
10584
  // packages/shared/src/contracts/settings.ts
10585
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.4";
10585
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.5";
10586
10586
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
10587
10587
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
10588
10588
 
@@ -10593,7 +10593,11 @@ async function reconcileWorkPacks(input) {
10593
10593
  const outcomes = [];
10594
10594
  let desiredFailed = false;
10595
10595
  let uncertain = false;
10596
- for (const pack of input.desired) {
10596
+ const orderedDesired = [
10597
+ ...input.desired.filter((pack) => !pack.enabled),
10598
+ ...input.desired.filter((pack) => pack.enabled)
10599
+ ];
10600
+ for (const pack of orderedDesired) {
10597
10601
  const operation = {
10598
10602
  action: pack.enabled ? "install" : "remove",
10599
10603
  reason: "desired",
@@ -11432,7 +11436,7 @@ async function writeTextAtomic(filePath, content) {
11432
11436
  }
11433
11437
 
11434
11438
  // packages/cli/src/workPackSyncPlugin.ts
11435
- var PLUGIN_VERSION = "0.1.4";
11439
+ var PLUGIN_VERSION = "0.1.5";
11436
11440
  var STATUS_FILENAME = "work-pack-startup-status.json";
11437
11441
  var activeSync = /* @__PURE__ */ new Map();
11438
11442
  var ForgeWorkPackSyncServer = async (_input, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimal-forge-work-pack-sync",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {