minimal-forge-work-pack-sync 0.1.0 → 0.1.1

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 +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10579,7 +10579,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
10579
10579
  };
10580
10580
 
10581
10581
  // packages/shared/src/contracts/settings.ts
10582
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.0";
10582
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.1";
10583
10583
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
10584
10584
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
10585
10585
 
@@ -11429,7 +11429,7 @@ async function writeTextAtomic(filePath, content) {
11429
11429
  }
11430
11430
 
11431
11431
  // packages/cli/src/workPackSyncPlugin.ts
11432
- var PLUGIN_VERSION = "0.1.0";
11432
+ var PLUGIN_VERSION = "0.1.1";
11433
11433
  var STATUS_FILENAME = "work-pack-startup-status.json";
11434
11434
  var activeSync = /* @__PURE__ */ new Map();
11435
11435
  var ForgeWorkPackSyncServer = async (_input, options) => {
@@ -11447,7 +11447,7 @@ var ForgeWorkPackSyncServer = async (_input, options) => {
11447
11447
  };
11448
11448
  };
11449
11449
  async function synchronizeAtStartup(forgeBaseUrl) {
11450
- const paths = resolvePaths();
11450
+ const paths = resolveStartupPaths();
11451
11451
  const before = await managedProjectionNames(paths);
11452
11452
  let credentials;
11453
11453
  try {
@@ -11484,6 +11484,12 @@ async function synchronizeAtStartup(forgeBaseUrl) {
11484
11484
  return { paths, before, after: before };
11485
11485
  }
11486
11486
  }
11487
+ function resolveStartupPaths() {
11488
+ const env = { ...process.env };
11489
+ delete env.OPENCODE_CONFIG;
11490
+ delete env.OPENCODE_CONFIG_DIR;
11491
+ return resolvePaths(void 0, void 0, env);
11492
+ }
11487
11493
  async function readWellKnownForgeCredentials(authPath, forgeBaseUrl) {
11488
11494
  const raw = await readFile2(authPath, "utf8");
11489
11495
  const parsed = JSON.parse(raw);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimal-forge-work-pack-sync",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",