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

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 +14 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7433,7 +7433,8 @@ async function reportFailure(credentials, kind, error) {
7433
7433
  }),
7434
7434
  signal: AbortSignal.timeout(3e3)
7435
7435
  });
7436
- } catch {
7436
+ } catch (error2) {
7437
+ console.error("[Forge] Failed to report failure to Forge server:", error2 instanceof Error ? error2.message : String(error2));
7437
7438
  }
7438
7439
  }
7439
7440
 
@@ -10412,6 +10413,7 @@ var BUILT_IN_OPENROUTER_MODELS = [
10412
10413
  name: "Assistente de trabalho profundo",
10413
10414
  approvedByDefault: true,
10414
10415
  requiredInConfig: false,
10416
+ upstreamModel: "anthropic/claude-sonnet-4.6",
10415
10417
  metadata: {
10416
10418
  family: "anthropic",
10417
10419
  release_date: "2026-02-17",
@@ -10428,6 +10430,7 @@ var BUILT_IN_OPENROUTER_MODELS = [
10428
10430
  name: "Assistente r\xE1pido",
10429
10431
  approvedByDefault: true,
10430
10432
  requiredInConfig: false,
10433
+ upstreamModel: "anthropic/claude-haiku-4.5",
10431
10434
  metadata: {
10432
10435
  family: "anthropic",
10433
10436
  release_date: "2025-10-15",
@@ -10579,7 +10582,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
10579
10582
  };
10580
10583
 
10581
10584
  // packages/shared/src/contracts/settings.ts
10582
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.0";
10585
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.2";
10583
10586
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
10584
10587
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
10585
10588
 
@@ -11429,7 +11432,7 @@ async function writeTextAtomic(filePath, content) {
11429
11432
  }
11430
11433
 
11431
11434
  // packages/cli/src/workPackSyncPlugin.ts
11432
- var PLUGIN_VERSION = "0.1.0";
11435
+ var PLUGIN_VERSION = "0.1.2";
11433
11436
  var STATUS_FILENAME = "work-pack-startup-status.json";
11434
11437
  var activeSync = /* @__PURE__ */ new Map();
11435
11438
  var ForgeWorkPackSyncServer = async (_input, options) => {
@@ -11447,7 +11450,7 @@ var ForgeWorkPackSyncServer = async (_input, options) => {
11447
11450
  };
11448
11451
  };
11449
11452
  async function synchronizeAtStartup(forgeBaseUrl) {
11450
- const paths = resolvePaths();
11453
+ const paths = resolveStartupPaths();
11451
11454
  const before = await managedProjectionNames(paths);
11452
11455
  let credentials;
11453
11456
  try {
@@ -11473,6 +11476,7 @@ async function synchronizeAtStartup(forgeBaseUrl) {
11473
11476
  return { paths, before, after };
11474
11477
  } catch (error) {
11475
11478
  const message = safeErrorMessage(error);
11479
+ console.error("[Forge work-pack sync] Startup sync failed:", message);
11476
11480
  await writeStatus(paths, {
11477
11481
  version: 1,
11478
11482
  pluginVersion: PLUGIN_VERSION,
@@ -11484,6 +11488,12 @@ async function synchronizeAtStartup(forgeBaseUrl) {
11484
11488
  return { paths, before, after: before };
11485
11489
  }
11486
11490
  }
11491
+ function resolveStartupPaths() {
11492
+ const env = { ...process.env };
11493
+ delete env.OPENCODE_CONFIG;
11494
+ delete env.OPENCODE_CONFIG_DIR;
11495
+ return resolvePaths(void 0, void 0, env);
11496
+ }
11487
11497
  async function readWellKnownForgeCredentials(authPath, forgeBaseUrl) {
11488
11498
  const raw = await readFile2(authPath, "utf8");
11489
11499
  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.2",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",