fss-link 1.2.11 → 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 +4 -47
  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.11";
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.11";
95176
+ return "1.2.12";
95177
95177
  }
95178
95178
 
95179
95179
  // packages/cli/src/ui/commands/aboutCommand.ts
@@ -125809,51 +125809,8 @@ ${updateDecision.updateMessage}`;
125809
125809
  updateEventEmitter.emit("update-received", {
125810
125810
  message: combinedMessage
125811
125811
  });
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
- });
125818
- return;
125819
- }
125820
- const isNightly = info.update.latest.includes("nightly");
125821
- let updateCommand = installationInfo.updateCommand.replace(
125822
- "@latest",
125823
- isNightly ? "@nightly" : `@${info.update.latest}`
125824
- );
125825
- if (installationInfo.isGlobal && hasSudoAskpass()) {
125826
- const homeDir2 = os28.homedir();
125827
- const sudoGui = path79.join(homeDir2, ".local", "bin", "sudo-gui");
125828
- updateCommand = updateCommand.replace(/^(npm|pnpm|yarn|bun)/, `${sudoGui} $1`);
125829
- console.log("[UPDATE DEBUG] Wrapped command with sudo-gui");
125830
- }
125831
- console.log("[UPDATE DEBUG] Executing update command:", updateCommand);
125832
- const updateProcess = spawnFn(updateCommand, { stdio: "pipe", shell: true });
125833
- let errorOutput = "";
125834
- updateProcess.stderr.on("data", (data) => {
125835
- errorOutput += data.toString();
125836
- });
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)");
125840
- if (code === 0) {
125841
- updateEventEmitter.emit("update-success", {
125842
- message: "Update successful! The new version will be used on your next run."
125843
- });
125844
- } else {
125845
- updateEventEmitter.emit("update-failed", {
125846
- message: `Automatic update failed. Please try updating manually. (command: ${updateCommand}, stderr: ${errorOutput.trim()})`
125847
- });
125848
- }
125849
- });
125850
- updateProcess.on("error", (err) => {
125851
- console.log("[UPDATE DEBUG] Update process error:", err.message);
125852
- updateEventEmitter.emit("update-failed", {
125853
- message: `Automatic update failed. Please try updating manually. (error: ${err.message})`
125854
- });
125855
- });
125856
- return updateProcess;
125812
+ console.log("[UPDATE DEBUG] Auto-update disabled - showing notification only");
125813
+ return;
125857
125814
  }
125858
125815
  function setUpdateHandler(addItem, setUpdateInfo) {
125859
125816
  let successfullyInstalled = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fss-link",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },