fss-link 1.4.6 → 1.4.7
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 +13 -4
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22379,7 +22379,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22379
22379
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22380
22380
|
if (DEBUG_CONTENT)
|
|
22381
22381
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22382
|
-
const version = "1.4.
|
|
22382
|
+
const version = "1.4.7";
|
|
22383
22383
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22384
22384
|
const baseHeaders = {
|
|
22385
22385
|
"User-Agent": userAgent
|
|
@@ -96074,7 +96074,7 @@ async function getPackageJson() {
|
|
|
96074
96074
|
// packages/cli/src/utils/version.ts
|
|
96075
96075
|
async function getCliVersion() {
|
|
96076
96076
|
const pkgJson = await getPackageJson();
|
|
96077
|
-
return "1.4.
|
|
96077
|
+
return "1.4.7";
|
|
96078
96078
|
}
|
|
96079
96079
|
|
|
96080
96080
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -96126,7 +96126,7 @@ import open4 from "open";
|
|
|
96126
96126
|
import process11 from "node:process";
|
|
96127
96127
|
|
|
96128
96128
|
// packages/cli/src/generated/git-commit.ts
|
|
96129
|
-
var GIT_COMMIT_INFO = "
|
|
96129
|
+
var GIT_COMMIT_INFO = "322fc89a";
|
|
96130
96130
|
|
|
96131
96131
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
96132
96132
|
init_dist2();
|
|
@@ -120432,6 +120432,8 @@ async function fetchModelsFromCustomEndpoint(baseUrl, providerType, apiKey) {
|
|
|
120432
120432
|
if (apiKey && apiKey.trim() !== "") {
|
|
120433
120433
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
120434
120434
|
}
|
|
120435
|
+
console.error(`[DEBUG] fetchModelsFromCustomEndpoint: ${url2}`);
|
|
120436
|
+
console.error(`[DEBUG] Provider: ${providerType}, Has API key: ${!!apiKey}`);
|
|
120435
120437
|
try {
|
|
120436
120438
|
const controller = new AbortController();
|
|
120437
120439
|
const timeoutId = setTimeout(() => controller.abort(), 1e4);
|
|
@@ -120462,15 +120464,22 @@ async function fetchModelsFromCustomEndpoint(baseUrl, providerType, apiKey) {
|
|
|
120462
120464
|
object: m.object
|
|
120463
120465
|
}));
|
|
120464
120466
|
} catch (error) {
|
|
120467
|
+
console.error("[DEBUG] Fetch error caught:");
|
|
120468
|
+
console.error("[DEBUG] Error type:", error instanceof Error ? "Error" : typeof error);
|
|
120465
120469
|
if (error instanceof Error) {
|
|
120470
|
+
console.error("[DEBUG] Error name:", error.name);
|
|
120471
|
+
console.error("[DEBUG] Error message:", error.message);
|
|
120472
|
+
console.error("[DEBUG] Error stack:", error.stack);
|
|
120473
|
+
console.error("[DEBUG] Error cause:", error.cause);
|
|
120466
120474
|
if (error.name === "AbortError") {
|
|
120467
120475
|
throw new Error("Connection timeout (10s) - endpoint did not respond");
|
|
120468
120476
|
}
|
|
120469
120477
|
if (error.message.includes("fetch failed")) {
|
|
120470
|
-
throw new Error(`Network error - cannot reach ${normalizedBase}: ${error.message}`);
|
|
120478
|
+
throw new Error(`Network error - cannot reach ${normalizedBase}: ${error.message} (cause: ${error.cause})`);
|
|
120471
120479
|
}
|
|
120472
120480
|
throw error;
|
|
120473
120481
|
}
|
|
120482
|
+
console.error("[DEBUG] Non-Error object:", error);
|
|
120474
120483
|
throw new Error(`Connection failed: ${String(error)}`);
|
|
120475
120484
|
}
|
|
120476
120485
|
}
|