fss-link 1.1.4 → 1.1.5
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 +33 -26
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -8710,7 +8710,9 @@ var init_metrics = __esm({
|
|
|
8710
8710
|
ValueType = otelApi.ValueType;
|
|
8711
8711
|
openTelemetryAvailable = true;
|
|
8712
8712
|
} catch (error) {
|
|
8713
|
-
|
|
8713
|
+
if (process.env["FSS_DEBUG"] === "true") {
|
|
8714
|
+
console.debug("OpenTelemetry unavailable, using fallback metrics system");
|
|
8715
|
+
}
|
|
8714
8716
|
openTelemetryAvailable = false;
|
|
8715
8717
|
metrics = { getMeter: () => null };
|
|
8716
8718
|
ValueType = { INT: "int" };
|
|
@@ -11081,7 +11083,9 @@ var init_sdk = __esm({
|
|
|
11081
11083
|
HttpInstrumentation = otelInstrumentationHttp.HttpInstrumentation;
|
|
11082
11084
|
openTelemetryAvailable2 = true;
|
|
11083
11085
|
} catch (error) {
|
|
11084
|
-
|
|
11086
|
+
if (process.env["FSS_DEBUG"] === "true") {
|
|
11087
|
+
console.debug("OpenTelemetry SDK unavailable, telemetry disabled");
|
|
11088
|
+
}
|
|
11085
11089
|
openTelemetryAvailable2 = false;
|
|
11086
11090
|
}
|
|
11087
11091
|
if (openTelemetryAvailable2 && diag && DiagConsoleLogger && DiagLogLevel) {
|
|
@@ -11601,7 +11605,9 @@ var init_loggers = __esm({
|
|
|
11601
11605
|
SemanticAttributes = otelSemanticConventions.SemanticAttributes;
|
|
11602
11606
|
openTelemetryAvailable3 = true;
|
|
11603
11607
|
} catch (error) {
|
|
11604
|
-
|
|
11608
|
+
if (process.env["FSS_DEBUG"] === "true") {
|
|
11609
|
+
console.debug("OpenTelemetry loggers unavailable, using stubs");
|
|
11610
|
+
}
|
|
11605
11611
|
openTelemetryAvailable3 = false;
|
|
11606
11612
|
LogAttributes = {};
|
|
11607
11613
|
LogRecord = class {
|
|
@@ -22084,7 +22090,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22084
22090
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22085
22091
|
if (DEBUG_CONTENT)
|
|
22086
22092
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22087
|
-
const version = "1.1.
|
|
22093
|
+
const version = "1.1.5";
|
|
22088
22094
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22089
22095
|
const baseHeaders = {
|
|
22090
22096
|
"User-Agent": userAgent
|
|
@@ -84883,11 +84889,11 @@ var init_modelManager = __esm({
|
|
|
84883
84889
|
const db2 = await this.getDb();
|
|
84884
84890
|
const existingSettings = await db2.getProviderSettings(modelId);
|
|
84885
84891
|
if (!existingSettings["num_ctx"]) {
|
|
84886
|
-
console.log(`Creating provider settings for model ${modelId}`);
|
|
84887
|
-
console.log(`\u2705 Created default provider settings for Ollama model ${modelId}: num_ctx=32768`);
|
|
84892
|
+
if (DEBUG_MODEL) console.log(`Creating provider settings for model ${modelId}`);
|
|
84893
|
+
if (DEBUG_MODEL) console.log(`\u2705 Created default provider settings for Ollama model ${modelId}: num_ctx=32768`);
|
|
84888
84894
|
}
|
|
84889
84895
|
} catch (error) {
|
|
84890
|
-
console.warn("Failed to initialize provider settings for new model:", error);
|
|
84896
|
+
if (DEBUG_MODEL) console.warn("Failed to initialize provider settings for new model:", error);
|
|
84891
84897
|
}
|
|
84892
84898
|
}
|
|
84893
84899
|
await this.updateEnvironmentFromModel(config);
|
|
@@ -84918,7 +84924,7 @@ var init_modelManager = __esm({
|
|
|
84918
84924
|
await this.updateEnvironmentFromModel(config);
|
|
84919
84925
|
if (this.configRef && this.configRef.setModel) {
|
|
84920
84926
|
this.configRef.setModel(modelName);
|
|
84921
|
-
console.log(`\u{1F527} Notified Config of model change: ${modelName}`);
|
|
84927
|
+
if (DEBUG_MODEL) console.log(`\u{1F527} Notified Config of model change: ${modelName}`);
|
|
84922
84928
|
}
|
|
84923
84929
|
return modelId;
|
|
84924
84930
|
}
|
|
@@ -84942,7 +84948,7 @@ var init_modelManager = __esm({
|
|
|
84942
84948
|
if (DEBUG_MODEL) console.log(`\u274C [MODEL-MANAGER] Failed to switch to model ID: ${modelId} - model not found`);
|
|
84943
84949
|
return false;
|
|
84944
84950
|
} catch (error) {
|
|
84945
|
-
console.error(`\u274C [MODEL-MANAGER] Failed to switch to model ID ${modelId}:`, error);
|
|
84951
|
+
if (DEBUG_MODEL) console.error(`\u274C [MODEL-MANAGER] Failed to switch to model ID ${modelId}:`, error);
|
|
84946
84952
|
return false;
|
|
84947
84953
|
}
|
|
84948
84954
|
}
|
|
@@ -84971,7 +84977,7 @@ var init_modelManager = __esm({
|
|
|
84971
84977
|
});
|
|
84972
84978
|
const modelToActivate = models[0];
|
|
84973
84979
|
if (!modelToActivate.id) {
|
|
84974
|
-
console.error(`\u274C [MODEL-MANAGER] Model missing ID, cannot activate`);
|
|
84980
|
+
if (DEBUG_MODEL) console.error(`\u274C [MODEL-MANAGER] Model missing ID, cannot activate`);
|
|
84975
84981
|
return false;
|
|
84976
84982
|
}
|
|
84977
84983
|
if (DEBUG_MODEL) {
|
|
@@ -84984,7 +84990,7 @@ var init_modelManager = __esm({
|
|
|
84984
84990
|
}
|
|
84985
84991
|
return true;
|
|
84986
84992
|
} catch (error) {
|
|
84987
|
-
console.error(`\u274C [MODEL-MANAGER] Failed to switch to auth type ${authType}:`, error);
|
|
84993
|
+
if (DEBUG_MODEL) console.error(`\u274C [MODEL-MANAGER] Failed to switch to auth type ${authType}:`, error);
|
|
84988
84994
|
return false;
|
|
84989
84995
|
}
|
|
84990
84996
|
}
|
|
@@ -85015,7 +85021,7 @@ var init_modelManager = __esm({
|
|
|
85015
85021
|
const db = await this.getDb();
|
|
85016
85022
|
const models = await db.getAllModelConfigs();
|
|
85017
85023
|
const modelConfigs = models.map((model) => model);
|
|
85018
|
-
console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} models`);
|
|
85024
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} models`);
|
|
85019
85025
|
return modelConfigs;
|
|
85020
85026
|
}
|
|
85021
85027
|
/**
|
|
@@ -85028,7 +85034,7 @@ var init_modelManager = __esm({
|
|
|
85028
85034
|
const db = await this.getDb();
|
|
85029
85035
|
const favoriteModels = await db.getFavoriteModels();
|
|
85030
85036
|
const modelConfigs = favoriteModels.map((model) => model);
|
|
85031
|
-
console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} favorite models`);
|
|
85037
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} favorite models`);
|
|
85032
85038
|
return modelConfigs;
|
|
85033
85039
|
}
|
|
85034
85040
|
/**
|
|
@@ -85041,7 +85047,7 @@ var init_modelManager = __esm({
|
|
|
85041
85047
|
const db = await this.getDb();
|
|
85042
85048
|
const recentModels = await db.getRecentlyUsedModels(limit2);
|
|
85043
85049
|
const modelConfigs = recentModels.map((model) => model);
|
|
85044
|
-
console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} recent models`);
|
|
85050
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Retrieved ${modelConfigs.length} recent models`);
|
|
85045
85051
|
return modelConfigs;
|
|
85046
85052
|
}
|
|
85047
85053
|
/**
|
|
@@ -85058,7 +85064,7 @@ var init_modelManager = __esm({
|
|
|
85058
85064
|
return;
|
|
85059
85065
|
}
|
|
85060
85066
|
const newFavoriteStatus = await db.toggleModelFavorite(modelId);
|
|
85061
|
-
console.log(`\u2705 [MODEL-MANAGER] Model ID ${modelId} favorite status: ${newFavoriteStatus ? "enabled" : "disabled"}`);
|
|
85067
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Model ID ${modelId} favorite status: ${newFavoriteStatus ? "enabled" : "disabled"}`);
|
|
85062
85068
|
}
|
|
85063
85069
|
/**
|
|
85064
85070
|
* Delete a model configuration
|
|
@@ -85120,7 +85126,7 @@ var init_modelManager = __esm({
|
|
|
85120
85126
|
if (DEBUG_MODEL) console.log(`\u26A0\uFE0F [MODEL-MANAGER] No active model or auth type found`);
|
|
85121
85127
|
return void 0;
|
|
85122
85128
|
}
|
|
85123
|
-
console.log(`\u2705 [MODEL-MANAGER] Current auth type: ${activeModel.authType}`);
|
|
85129
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Current auth type: ${activeModel.authType}`);
|
|
85124
85130
|
return activeModel.authType;
|
|
85125
85131
|
}
|
|
85126
85132
|
/**
|
|
@@ -85136,7 +85142,7 @@ var init_modelManager = __esm({
|
|
|
85136
85142
|
if (DEBUG_MODEL) console.log(`\u26A0\uFE0F [MODEL-MANAGER] No active model or auth type found for FSS auth type`);
|
|
85137
85143
|
return void 0;
|
|
85138
85144
|
}
|
|
85139
|
-
console.log(`\u2705 [MODEL-MANAGER] Current FSS auth type: ${activeModel.authType}`);
|
|
85145
|
+
if (DEBUG_MODEL) console.log(`\u2705 [MODEL-MANAGER] Current FSS auth type: ${activeModel.authType}`);
|
|
85140
85146
|
return activeModel.authType;
|
|
85141
85147
|
}
|
|
85142
85148
|
/**
|
|
@@ -85153,7 +85159,7 @@ var init_modelManager = __esm({
|
|
|
85153
85159
|
settings = await db.getProviderSettings(model.id);
|
|
85154
85160
|
}
|
|
85155
85161
|
} catch (error) {
|
|
85156
|
-
console.warn("Failed to load provider settings:", error);
|
|
85162
|
+
if (DEBUG_MODEL) console.warn("Failed to load provider settings:", error);
|
|
85157
85163
|
}
|
|
85158
85164
|
await this.applyEnvironmentVariables(model, settings);
|
|
85159
85165
|
}
|
|
@@ -85206,7 +85212,7 @@ var init_modelManager = __esm({
|
|
|
85206
85212
|
case "qwen-oauth":
|
|
85207
85213
|
break;
|
|
85208
85214
|
default:
|
|
85209
|
-
console.warn(`Unknown auth type: ${model.authType}`);
|
|
85215
|
+
if (DEBUG_MODEL) console.warn(`Unknown auth type: ${model.authType}`);
|
|
85210
85216
|
break;
|
|
85211
85217
|
}
|
|
85212
85218
|
if (Object.keys(settings).length > 0) {
|
|
@@ -85232,10 +85238,10 @@ var init_modelManager = __esm({
|
|
|
85232
85238
|
samplingParams["top_k"] = parseInt(settings["top_k"], 10);
|
|
85233
85239
|
}
|
|
85234
85240
|
if (Object.keys(samplingParams).length > 0) {
|
|
85235
|
-
console.debug("Provider settings ready for application:", samplingParams);
|
|
85241
|
+
if (DEBUG_MODEL) console.debug("Provider settings ready for application:", samplingParams);
|
|
85236
85242
|
}
|
|
85237
85243
|
} catch (error) {
|
|
85238
|
-
console.warn("Failed to apply provider settings:", error);
|
|
85244
|
+
if (DEBUG_MODEL) console.warn("Failed to apply provider settings:", error);
|
|
85239
85245
|
}
|
|
85240
85246
|
}
|
|
85241
85247
|
/**
|
|
@@ -85256,7 +85262,7 @@ var init_modelManager = __esm({
|
|
|
85256
85262
|
settings = await db.getProviderSettings(activeModel.id);
|
|
85257
85263
|
if (DEBUG_MODEL) console.log(`\u{1F41B} DEBUG getCurrentSamplingParams: Retrieved settings for model ID ${activeModel.id}:`, settings);
|
|
85258
85264
|
} catch (dbError) {
|
|
85259
|
-
console.warn(`\u26A0\uFE0F Database connection issue for provider settings (non-critical):`, dbError);
|
|
85265
|
+
if (DEBUG_MODEL) console.warn(`\u26A0\uFE0F Database connection issue for provider settings (non-critical):`, dbError);
|
|
85260
85266
|
return {};
|
|
85261
85267
|
}
|
|
85262
85268
|
const samplingParams = {};
|
|
@@ -85275,7 +85281,7 @@ var init_modelManager = __esm({
|
|
|
85275
85281
|
if (DEBUG_MODEL) console.log(`\u{1F41B} DEBUG getCurrentSamplingParams: Final sampling params:`, samplingParams);
|
|
85276
85282
|
return samplingParams;
|
|
85277
85283
|
} catch (error) {
|
|
85278
|
-
console.warn("Failed to get current sampling params:", error);
|
|
85284
|
+
if (DEBUG_MODEL) console.warn("Failed to get current sampling params:", error);
|
|
85279
85285
|
return {};
|
|
85280
85286
|
}
|
|
85281
85287
|
}
|
|
@@ -94141,7 +94147,7 @@ async function getPackageJson() {
|
|
|
94141
94147
|
// packages/cli/src/utils/version.ts
|
|
94142
94148
|
async function getCliVersion() {
|
|
94143
94149
|
const pkgJson = await getPackageJson();
|
|
94144
|
-
return "1.1.
|
|
94150
|
+
return "1.1.5";
|
|
94145
94151
|
}
|
|
94146
94152
|
|
|
94147
94153
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -94193,7 +94199,7 @@ import open4 from "open";
|
|
|
94193
94199
|
import process11 from "node:process";
|
|
94194
94200
|
|
|
94195
94201
|
// packages/cli/src/generated/git-commit.ts
|
|
94196
|
-
var GIT_COMMIT_INFO = "
|
|
94202
|
+
var GIT_COMMIT_INFO = "425b354b";
|
|
94197
94203
|
|
|
94198
94204
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
94199
94205
|
init_dist2();
|
|
@@ -117981,8 +117987,9 @@ import { useState as useState33 } from "react";
|
|
|
117981
117987
|
init_dist2();
|
|
117982
117988
|
init_settings();
|
|
117983
117989
|
init_database();
|
|
117990
|
+
var DEBUG_AUTH = process.env["FSS_DEBUG"] === "true" || process.env["NODE_ENV"] === "development";
|
|
117984
117991
|
var validateAuthMethod = (authMethod) => {
|
|
117985
|
-
console.log(`\u{1F510} [AUTH-SYSTEM] Legacy auth validation: ${authMethod}`);
|
|
117992
|
+
if (DEBUG_AUTH) console.log(`\u{1F510} [AUTH-SYSTEM] Legacy auth validation: ${authMethod}`);
|
|
117986
117993
|
loadEnvironment();
|
|
117987
117994
|
return validateAuthEnvironment(authMethod);
|
|
117988
117995
|
};
|