fss-link 1.2.17 → 1.2.18
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 +6 -17
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22343,7 +22343,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22343
22343
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22344
22344
|
if (DEBUG_CONTENT)
|
|
22345
22345
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22346
|
-
const version = "1.2.
|
|
22346
|
+
const version = "1.2.18";
|
|
22347
22347
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22348
22348
|
const baseHeaders = {
|
|
22349
22349
|
"User-Agent": userAgent
|
|
@@ -86144,20 +86144,15 @@ var init_modelManager = __esm({
|
|
|
86144
86144
|
/**
|
|
86145
86145
|
* Normalize base URLs for OpenAI-compatible endpoints
|
|
86146
86146
|
* Inspired by BobAI proxy's excellent URL normalization
|
|
86147
|
-
*
|
|
86148
|
-
* CRITICAL: Only strip /v1 for OpenAI provider where SDK adds it automatically.
|
|
86149
|
-
* For LM Studio and Ollama, /v1 is part of their actual API path.
|
|
86150
86147
|
*/
|
|
86151
86148
|
normalizeEndpointUrl(url2, authType) {
|
|
86152
86149
|
if (!url2) return void 0;
|
|
86153
86150
|
let normalized2 = url2.trim();
|
|
86154
|
-
if (normalized2.endsWith("/v1")
|
|
86155
|
-
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Stripping /v1 suffix from
|
|
86151
|
+
if (normalized2.endsWith("/v1")) {
|
|
86152
|
+
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Stripping /v1 suffix from: ${normalized2}`);
|
|
86156
86153
|
normalized2 = normalized2.slice(0, -3);
|
|
86157
86154
|
}
|
|
86158
|
-
|
|
86159
|
-
normalized2 = normalized2.replace(/\/+$/, "");
|
|
86160
|
-
}
|
|
86155
|
+
normalized2 = normalized2.replace(/\/+$/, "");
|
|
86161
86156
|
if (!normalized2.startsWith("http://localhost") && !normalized2.startsWith("http://127.0.0.1") && normalized2.startsWith("http://")) {
|
|
86162
86157
|
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Upgrading HTTP to HTTPS: ${normalized2}`);
|
|
86163
86158
|
normalized2 = normalized2.replace("http://", "https://");
|
|
@@ -95415,7 +95410,7 @@ async function getPackageJson() {
|
|
|
95415
95410
|
// packages/cli/src/utils/version.ts
|
|
95416
95411
|
async function getCliVersion() {
|
|
95417
95412
|
const pkgJson = await getPackageJson();
|
|
95418
|
-
return "1.2.
|
|
95413
|
+
return "1.2.18";
|
|
95419
95414
|
}
|
|
95420
95415
|
|
|
95421
95416
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -95467,7 +95462,7 @@ import open4 from "open";
|
|
|
95467
95462
|
import process11 from "node:process";
|
|
95468
95463
|
|
|
95469
95464
|
// packages/cli/src/generated/git-commit.ts
|
|
95470
|
-
var GIT_COMMIT_INFO = "
|
|
95465
|
+
var GIT_COMMIT_INFO = "ac38c742";
|
|
95471
95466
|
|
|
95472
95467
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
95473
95468
|
init_dist2();
|
|
@@ -127921,7 +127916,6 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127921
127916
|
abortController.signal,
|
|
127922
127917
|
prompt_id
|
|
127923
127918
|
);
|
|
127924
|
-
let hasFinishedEvent = false;
|
|
127925
127919
|
for await (const event of responseStream) {
|
|
127926
127920
|
if (abortController.signal.aborted) {
|
|
127927
127921
|
console.error("Operation cancelled.");
|
|
@@ -127937,8 +127931,6 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127937
127931
|
id: toolCallRequest.callId
|
|
127938
127932
|
};
|
|
127939
127933
|
functionCalls.push(fc);
|
|
127940
|
-
} else if (event.type === GeminiEventType.Finished) {
|
|
127941
|
-
hasFinishedEvent = true;
|
|
127942
127934
|
}
|
|
127943
127935
|
}
|
|
127944
127936
|
if (functionCalls.length > 0) {
|
|
@@ -127974,9 +127966,6 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127974
127966
|
}
|
|
127975
127967
|
}
|
|
127976
127968
|
currentMessages = [{ role: "user", parts: toolResponseParts }];
|
|
127977
|
-
} else if (hasFinishedEvent) {
|
|
127978
|
-
process.stdout.write("\n");
|
|
127979
|
-
return;
|
|
127980
127969
|
} else {
|
|
127981
127970
|
process.stdout.write("\n");
|
|
127982
127971
|
return;
|