minimal-forge-work-pack-sync 0.1.6 → 0.1.8

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 +5 -4
  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.6";
10585
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.8";
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
 
@@ -11490,7 +11490,7 @@ async function writeTextAtomic(filePath, content) {
11490
11490
  }
11491
11491
 
11492
11492
  // packages/cli/src/workPackSyncPlugin.ts
11493
- var PLUGIN_VERSION = "0.1.6";
11493
+ var PLUGIN_VERSION = "0.1.8";
11494
11494
  var STATUS_FILENAME = "work-pack-startup-status.json";
11495
11495
  var activeSync = /* @__PURE__ */ new Map();
11496
11496
  var ForgeWorkPackSyncServer = async (_input, options) => {
@@ -11543,7 +11543,8 @@ async function synchronizeAtStartup(forgeBaseUrl) {
11543
11543
  message
11544
11544
  }).catch(() => void 0);
11545
11545
  if (credentials) await reportFailure(credentials, "sync", new Error(message));
11546
- return { paths, before, after: before };
11546
+ const after = await managedProjectionNames(paths).catch(() => before);
11547
+ return { paths, before, after };
11547
11548
  }
11548
11549
  }
11549
11550
  function resolveStartupPaths() {
@@ -11554,7 +11555,7 @@ function resolveStartupPaths() {
11554
11555
  }
11555
11556
  async function readWellKnownForgeCredentials(authPath, forgeBaseUrl) {
11556
11557
  const raw = await readFile2(authPath, "utf8");
11557
- const parsed = JSON.parse(raw);
11558
+ const parsed = JSON.parse(raw.startsWith("\uFEFF") ? raw.slice(1) : raw);
11558
11559
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
11559
11560
  throw new Error("A autentica\xE7\xE3o do OpenCode n\xE3o \xE9 um objeto JSON v\xE1lido");
11560
11561
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimal-forge-work-pack-sync",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {