fss-link 1.2.15 → 1.2.16
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 +11 -9
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -19872,11 +19872,7 @@ var init_openaiContentGenerator = __esm({
|
|
|
19872
19872
|
if (this.contentGeneratorConfig.authType === "ollama") {
|
|
19873
19873
|
return true;
|
|
19874
19874
|
}
|
|
19875
|
-
|
|
19876
|
-
if (!baseUrl)
|
|
19877
|
-
return false;
|
|
19878
|
-
return baseUrl.includes("localhost:11434") || baseUrl.includes("127.0.0.1:11434") || baseUrl.includes(":11434/v1") || baseUrl.includes(":11435/v1") || // Support proxy port
|
|
19879
|
-
baseUrl.includes("/ollama");
|
|
19875
|
+
return false;
|
|
19880
19876
|
}
|
|
19881
19877
|
/**
|
|
19882
19878
|
* Determine if this is a custom OpenAI-compatible endpoint (proxy, local server, etc.)
|
|
@@ -22347,7 +22343,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22347
22343
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22348
22344
|
if (DEBUG_CONTENT)
|
|
22349
22345
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22350
|
-
const version = "1.2.
|
|
22346
|
+
const version = "1.2.16";
|
|
22351
22347
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22352
22348
|
const baseHeaders = {
|
|
22353
22349
|
"User-Agent": userAgent
|
|
@@ -68985,7 +68981,7 @@ var init_turn = __esm({
|
|
|
68985
68981
|
/*curated*/
|
|
68986
68982
|
true
|
|
68987
68983
|
), req];
|
|
68988
|
-
await reportError(error, "Error when talking to
|
|
68984
|
+
await reportError(error, "Error when talking to LLM API", contextForReport, "Turn.run-sendMessageStream");
|
|
68989
68985
|
const status = typeof error === "object" && error !== null && "status" in error && typeof error.status === "number" ? error.status : void 0;
|
|
68990
68986
|
const structuredError = {
|
|
68991
68987
|
message: getErrorMessage(error),
|
|
@@ -95414,7 +95410,7 @@ async function getPackageJson() {
|
|
|
95414
95410
|
// packages/cli/src/utils/version.ts
|
|
95415
95411
|
async function getCliVersion() {
|
|
95416
95412
|
const pkgJson = await getPackageJson();
|
|
95417
|
-
return "1.2.
|
|
95413
|
+
return "1.2.16";
|
|
95418
95414
|
}
|
|
95419
95415
|
|
|
95420
95416
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -95466,7 +95462,7 @@ import open4 from "open";
|
|
|
95466
95462
|
import process11 from "node:process";
|
|
95467
95463
|
|
|
95468
95464
|
// packages/cli/src/generated/git-commit.ts
|
|
95469
|
-
var GIT_COMMIT_INFO = "
|
|
95465
|
+
var GIT_COMMIT_INFO = "a766b474";
|
|
95470
95466
|
|
|
95471
95467
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
95472
95468
|
init_dist2();
|
|
@@ -127920,6 +127916,7 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127920
127916
|
abortController.signal,
|
|
127921
127917
|
prompt_id
|
|
127922
127918
|
);
|
|
127919
|
+
let hasFinishedEvent = false;
|
|
127923
127920
|
for await (const event of responseStream) {
|
|
127924
127921
|
if (abortController.signal.aborted) {
|
|
127925
127922
|
console.error("Operation cancelled.");
|
|
@@ -127935,6 +127932,8 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127935
127932
|
id: toolCallRequest.callId
|
|
127936
127933
|
};
|
|
127937
127934
|
functionCalls.push(fc);
|
|
127935
|
+
} else if (event.type === GeminiEventType.Finished) {
|
|
127936
|
+
hasFinishedEvent = true;
|
|
127938
127937
|
}
|
|
127939
127938
|
}
|
|
127940
127939
|
if (functionCalls.length > 0) {
|
|
@@ -127970,6 +127969,9 @@ async function runNonInteractive(config, input, prompt_id) {
|
|
|
127970
127969
|
}
|
|
127971
127970
|
}
|
|
127972
127971
|
currentMessages = [{ role: "user", parts: toolResponseParts }];
|
|
127972
|
+
} else if (hasFinishedEvent) {
|
|
127973
|
+
process.stdout.write("\n");
|
|
127974
|
+
return;
|
|
127973
127975
|
} else {
|
|
127974
127976
|
process.stdout.write("\n");
|
|
127975
127977
|
return;
|