fss-link 1.2.10 → 1.2.12

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 +16 -37
  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.12";
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.12";
95177
95177
  }
95178
95178
 
95179
95179
  // packages/cli/src/ui/commands/aboutCommand.ts
@@ -125777,61 +125777,40 @@ 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}`;
125797
125809
  updateEventEmitter.emit("update-received", {
125798
125810
  message: combinedMessage
125799
125811
  });
125800
- if (!updateDecision.shouldAttempt || !installationInfo.updateCommand || settings.merged.disableAutoUpdate) {
125801
- return;
125802
- }
125803
- const isNightly = info.update.latest.includes("nightly");
125804
- let updateCommand = installationInfo.updateCommand.replace(
125805
- "@latest",
125806
- isNightly ? "@nightly" : `@${info.update.latest}`
125807
- );
125808
- if (installationInfo.isGlobal && hasSudoAskpass()) {
125809
- const homeDir2 = os28.homedir();
125810
- const sudoGui = path79.join(homeDir2, ".local", "bin", "sudo-gui");
125811
- updateCommand = updateCommand.replace(/^(npm|pnpm|yarn|bun)/, `${sudoGui} $1`);
125812
- }
125813
- const updateProcess = spawnFn(updateCommand, { stdio: "pipe", shell: true });
125814
- let errorOutput = "";
125815
- updateProcess.stderr.on("data", (data) => {
125816
- errorOutput += data.toString();
125817
- });
125818
- updateProcess.on("close", (code) => {
125819
- if (code === 0) {
125820
- updateEventEmitter.emit("update-success", {
125821
- message: "Update successful! The new version will be used on your next run."
125822
- });
125823
- } else {
125824
- updateEventEmitter.emit("update-failed", {
125825
- message: `Automatic update failed. Please try updating manually. (command: ${updateCommand}, stderr: ${errorOutput.trim()})`
125826
- });
125827
- }
125828
- });
125829
- updateProcess.on("error", (err) => {
125830
- updateEventEmitter.emit("update-failed", {
125831
- message: `Automatic update failed. Please try updating manually. (error: ${err.message})`
125832
- });
125833
- });
125834
- return updateProcess;
125812
+ console.log("[UPDATE DEBUG] Auto-update disabled - showing notification only");
125813
+ return;
125835
125814
  }
125836
125815
  function setUpdateHandler(addItem, setUpdateInfo) {
125837
125816
  let successfullyInstalled = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fss-link",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },