fss-link 1.2.10 → 1.2.11

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/bundle/fss-link.js +24 -2
  2. package/package.json +1 -1
@@ -22342,7 +22342,7 @@ async function createContentGeneratorConfig(config, authType) {
22342
22342
  async function createContentGenerator(config, gcConfig, sessionId2) {
22343
22343
  if (DEBUG_CONTENT)
22344
22344
  console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
22345
- const version = "1.2.10";
22345
+ const version = "1.2.11";
22346
22346
  const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
22347
22347
  const baseHeaders = {
22348
22348
  "User-Agent": userAgent
@@ -95173,7 +95173,7 @@ async function getPackageJson() {
95173
95173
  // packages/cli/src/utils/version.ts
95174
95174
  async function getCliVersion() {
95175
95175
  const pkgJson = await getPackageJson();
95176
- return "1.2.10";
95176
+ return "1.2.11";
95177
95177
  }
95178
95178
 
95179
95179
  // packages/cli/src/ui/commands/aboutCommand.ts
@@ -125777,20 +125777,32 @@ Or for automatic updates, install locally:
125777
125777
  };
125778
125778
  }
125779
125779
  function handleAutoUpdate(info, settings, projectRoot, spawnFn = spawnWrapper) {
125780
+ console.log("[UPDATE DEBUG] handleAutoUpdate called with info:", info ? `${info.update.current} \u2192 ${info.update.latest}` : "null");
125780
125781
  if (!info) {
125782
+ console.log("[UPDATE DEBUG] No update info, returning");
125781
125783
  return;
125782
125784
  }
125783
125785
  if (settings.merged.disableUpdateNag) {
125786
+ console.log("[UPDATE DEBUG] Update nag disabled, returning");
125784
125787
  return;
125785
125788
  }
125786
125789
  const installationInfo = getInstallationInfo(
125787
125790
  projectRoot,
125788
125791
  settings.merged.disableAutoUpdate ?? false
125789
125792
  );
125793
+ console.log("[UPDATE DEBUG] Installation info:", {
125794
+ packageManager: installationInfo.packageManager,
125795
+ isGlobal: installationInfo.isGlobal,
125796
+ updateCommand: installationInfo.updateCommand
125797
+ });
125790
125798
  const updateDecision = shouldAttemptAutoUpdate(
125791
125799
  installationInfo,
125792
125800
  installationInfo.isGlobal
125793
125801
  );
125802
+ console.log("[UPDATE DEBUG] Update decision:", {
125803
+ shouldAttempt: updateDecision.shouldAttempt,
125804
+ hasSudoAskpass: hasSudoAskpass()
125805
+ });
125794
125806
  let combinedMessage = info.message;
125795
125807
  combinedMessage += `
125796
125808
  ${updateDecision.updateMessage}`;
@@ -125798,6 +125810,11 @@ ${updateDecision.updateMessage}`;
125798
125810
  message: combinedMessage
125799
125811
  });
125800
125812
  if (!updateDecision.shouldAttempt || !installationInfo.updateCommand || settings.merged.disableAutoUpdate) {
125813
+ console.log("[UPDATE DEBUG] Not attempting update:", {
125814
+ shouldAttempt: updateDecision.shouldAttempt,
125815
+ hasUpdateCommand: !!installationInfo.updateCommand,
125816
+ autoUpdateDisabled: settings.merged.disableAutoUpdate
125817
+ });
125801
125818
  return;
125802
125819
  }
125803
125820
  const isNightly = info.update.latest.includes("nightly");
@@ -125809,13 +125826,17 @@ ${updateDecision.updateMessage}`;
125809
125826
  const homeDir2 = os28.homedir();
125810
125827
  const sudoGui = path79.join(homeDir2, ".local", "bin", "sudo-gui");
125811
125828
  updateCommand = updateCommand.replace(/^(npm|pnpm|yarn|bun)/, `${sudoGui} $1`);
125829
+ console.log("[UPDATE DEBUG] Wrapped command with sudo-gui");
125812
125830
  }
125831
+ console.log("[UPDATE DEBUG] Executing update command:", updateCommand);
125813
125832
  const updateProcess = spawnFn(updateCommand, { stdio: "pipe", shell: true });
125814
125833
  let errorOutput = "";
125815
125834
  updateProcess.stderr.on("data", (data) => {
125816
125835
  errorOutput += data.toString();
125817
125836
  });
125818
125837
  updateProcess.on("close", (code) => {
125838
+ console.log("[UPDATE DEBUG] Update process closed with code:", code);
125839
+ console.log("[UPDATE DEBUG] stderr output:", errorOutput.trim() || "(none)");
125819
125840
  if (code === 0) {
125820
125841
  updateEventEmitter.emit("update-success", {
125821
125842
  message: "Update successful! The new version will be used on your next run."
@@ -125827,6 +125848,7 @@ ${updateDecision.updateMessage}`;
125827
125848
  }
125828
125849
  });
125829
125850
  updateProcess.on("error", (err) => {
125851
+ console.log("[UPDATE DEBUG] Update process error:", err.message);
125830
125852
  updateEventEmitter.emit("update-failed", {
125831
125853
  message: `Automatic update failed. Please try updating manually. (error: ${err.message})`
125832
125854
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fss-link",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },