fss-link 1.2.11 → 1.2.13
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.
- package/bundle/fss-link.js +20 -51
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -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.
|
|
22345
|
+
const version = "1.2.13";
|
|
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.
|
|
95176
|
+
return "1.2.13";
|
|
95177
95177
|
}
|
|
95178
95178
|
|
|
95179
95179
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -95225,7 +95225,7 @@ import open4 from "open";
|
|
|
95225
95225
|
import process11 from "node:process";
|
|
95226
95226
|
|
|
95227
95227
|
// packages/cli/src/generated/git-commit.ts
|
|
95228
|
-
var GIT_COMMIT_INFO = "
|
|
95228
|
+
var GIT_COMMIT_INFO = "01a88da5";
|
|
95229
95229
|
|
|
95230
95230
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
95231
95231
|
init_dist2();
|
|
@@ -121467,17 +121467,29 @@ async function loadCliConfig(settings, extensions, sessionId2, argv, cwd3 = proc
|
|
|
121467
121467
|
try {
|
|
121468
121468
|
const { SearchEngineConfigProvider: SearchEngineConfigProvider2 } = await Promise.resolve().then(() => (init_SearchEngineConfigProvider(), SearchEngineConfigProvider_exports));
|
|
121469
121469
|
const configProvider = SearchEngineConfigProvider2.getInstance();
|
|
121470
|
-
await configProvider.loadConfiguration();
|
|
121470
|
+
const config2 = await configProvider.loadConfiguration();
|
|
121471
|
+
console.log("[API KEY DEBUG] Search engine config loaded at startup:", {
|
|
121472
|
+
hasBrave: !!config2.braveApiKey,
|
|
121473
|
+
hasTavily: !!config2.tavilyApiKey,
|
|
121474
|
+
braveEnvSet: !!process16.env["BRAVE_SEARCH_API_KEY"],
|
|
121475
|
+
tavilyEnvSet: !!process16.env["TAVILY_API_KEY"]
|
|
121476
|
+
});
|
|
121471
121477
|
} catch (error) {
|
|
121478
|
+
console.error("[API KEY DEBUG] Failed to load search engine config at startup:", error);
|
|
121472
121479
|
}
|
|
121473
121480
|
const webScraperConfigLoader = () => {
|
|
121474
121481
|
try {
|
|
121475
|
-
|
|
121482
|
+
const config2 = {
|
|
121476
121483
|
braveApiKey: process16.env["BRAVE_SEARCH_API_KEY"],
|
|
121477
121484
|
tavilyApiKey: process16.env["TAVILY_API_KEY"]
|
|
121478
121485
|
};
|
|
121486
|
+
console.log("[API KEY DEBUG] webScraperConfigLoader called:", {
|
|
121487
|
+
hasBrave: !!config2.braveApiKey,
|
|
121488
|
+
hasTavily: !!config2.tavilyApiKey
|
|
121489
|
+
});
|
|
121490
|
+
return config2;
|
|
121479
121491
|
} catch (error) {
|
|
121480
|
-
console.warn("Failed to load search engine configuration:", error);
|
|
121492
|
+
console.warn("[API KEY DEBUG] Failed to load search engine configuration:", error);
|
|
121481
121493
|
return null;
|
|
121482
121494
|
}
|
|
121483
121495
|
};
|
|
@@ -125809,51 +125821,8 @@ ${updateDecision.updateMessage}`;
|
|
|
125809
125821
|
updateEventEmitter.emit("update-received", {
|
|
125810
125822
|
message: combinedMessage
|
|
125811
125823
|
});
|
|
125812
|
-
|
|
125813
|
-
|
|
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;
|
|
125824
|
+
console.log("[UPDATE DEBUG] Auto-update disabled - showing notification only");
|
|
125825
|
+
return;
|
|
125857
125826
|
}
|
|
125858
125827
|
function setUpdateHandler(addItem, setUpdateInfo) {
|
|
125859
125828
|
let successfullyInstalled = false;
|