fss-link 1.0.85 → 1.1.0
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 +27 -78
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22084,7 +22084,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22084
22084
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22085
22085
|
if (DEBUG_CONTENT)
|
|
22086
22086
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22087
|
-
const version = "1.0
|
|
22087
|
+
const version = "1.1.0";
|
|
22088
22088
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22089
22089
|
const baseHeaders = {
|
|
22090
22090
|
"User-Agent": userAgent
|
|
@@ -81567,7 +81567,7 @@ var init_databaseMigrations = __esm({
|
|
|
81567
81567
|
registerMigrations() {
|
|
81568
81568
|
this.migrations.push({
|
|
81569
81569
|
version: 1,
|
|
81570
|
-
name: "
|
|
81570
|
+
name: "complete_schema",
|
|
81571
81571
|
up: (db) => {
|
|
81572
81572
|
db.exec(`
|
|
81573
81573
|
CREATE TABLE IF NOT EXISTS model_configs (
|
|
@@ -81624,33 +81624,13 @@ var init_databaseMigrations = __esm({
|
|
|
81624
81624
|
)
|
|
81625
81625
|
`);
|
|
81626
81626
|
console.log("provider_usage_stats table created successfully");
|
|
81627
|
-
},
|
|
81628
|
-
down: (db) => {
|
|
81629
|
-
db.exec("DROP TABLE IF EXISTS provider_usage_stats");
|
|
81630
|
-
db.exec("DROP TABLE IF EXISTS provider_settings");
|
|
81631
|
-
db.exec("DROP TABLE IF EXISTS custom_endpoints");
|
|
81632
|
-
db.exec("DROP TABLE IF EXISTS user_preferences");
|
|
81633
|
-
db.exec("DROP TABLE IF EXISTS model_configs");
|
|
81634
|
-
}
|
|
81635
|
-
});
|
|
81636
|
-
this.migrations.push({
|
|
81637
|
-
version: 2,
|
|
81638
|
-
name: "unique_active_constraint",
|
|
81639
|
-
up: (db) => {
|
|
81640
81627
|
db.exec(`
|
|
81641
|
-
CREATE
|
|
81642
|
-
|
|
81643
|
-
|
|
81628
|
+
CREATE TABLE IF NOT EXISTS schema_info (
|
|
81629
|
+
key TEXT PRIMARY KEY,
|
|
81630
|
+
value TEXT NOT NULL,
|
|
81631
|
+
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
81632
|
+
)
|
|
81644
81633
|
`);
|
|
81645
|
-
},
|
|
81646
|
-
down: (db) => {
|
|
81647
|
-
db.exec("DROP INDEX IF EXISTS idx_model_configs_active_unique");
|
|
81648
|
-
}
|
|
81649
|
-
});
|
|
81650
|
-
this.migrations.push({
|
|
81651
|
-
version: 3,
|
|
81652
|
-
name: "performance_indexes",
|
|
81653
|
-
up: (db) => {
|
|
81654
81634
|
db.exec(`
|
|
81655
81635
|
CREATE INDEX IF NOT EXISTS idx_model_configs_favorite
|
|
81656
81636
|
ON model_configs(is_favorite, last_used DESC)
|
|
@@ -81668,60 +81648,28 @@ var init_databaseMigrations = __esm({
|
|
|
81668
81648
|
db.exec(`
|
|
81669
81649
|
CREATE INDEX IF NOT EXISTS idx_provider_usage_stats_aggregation
|
|
81670
81650
|
ON provider_usage_stats(provider_id, created_at DESC)
|
|
81671
|
-
`);
|
|
81672
|
-
},
|
|
81673
|
-
down: (db) => {
|
|
81674
|
-
db.exec("DROP INDEX IF EXISTS idx_provider_usage_stats_aggregation");
|
|
81675
|
-
db.exec("DROP INDEX IF EXISTS idx_provider_settings_lookup");
|
|
81676
|
-
db.exec("DROP INDEX IF EXISTS idx_model_configs_recent");
|
|
81677
|
-
db.exec("DROP INDEX IF EXISTS idx_model_configs_favorite");
|
|
81678
|
-
}
|
|
81679
|
-
});
|
|
81680
|
-
this.migrations.push({
|
|
81681
|
-
version: 4,
|
|
81682
|
-
name: "health_monitoring",
|
|
81683
|
-
up: (db) => {
|
|
81684
|
-
db.exec(`
|
|
81685
|
-
CREATE TABLE IF NOT EXISTS schema_info (
|
|
81686
|
-
key TEXT PRIMARY KEY,
|
|
81687
|
-
value TEXT NOT NULL,
|
|
81688
|
-
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
81689
|
-
)
|
|
81690
81651
|
`);
|
|
81691
81652
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
81692
81653
|
db.exec(`
|
|
81693
81654
|
INSERT OR REPLACE INTO schema_info (key, value, updated_at)
|
|
81694
81655
|
VALUES
|
|
81695
|
-
('schema_version', '
|
|
81696
|
-
('last_migration', '
|
|
81697
|
-
('total_migrations', '
|
|
81656
|
+
('schema_version', '1', '${now}'),
|
|
81657
|
+
('last_migration', 'complete_schema', '${now}'),
|
|
81658
|
+
('total_migrations', '1', '${now}')
|
|
81698
81659
|
`);
|
|
81660
|
+
console.log("Complete database schema created successfully");
|
|
81699
81661
|
},
|
|
81700
81662
|
down: (db) => {
|
|
81663
|
+
db.exec("DROP INDEX IF EXISTS idx_provider_usage_stats_aggregation");
|
|
81664
|
+
db.exec("DROP INDEX IF EXISTS idx_provider_settings_lookup");
|
|
81665
|
+
db.exec("DROP INDEX IF EXISTS idx_model_configs_recent");
|
|
81666
|
+
db.exec("DROP INDEX IF EXISTS idx_model_configs_favorite");
|
|
81701
81667
|
db.exec("DROP TABLE IF EXISTS schema_info");
|
|
81702
|
-
|
|
81703
|
-
|
|
81704
|
-
|
|
81705
|
-
|
|
81706
|
-
|
|
81707
|
-
up: (db) => {
|
|
81708
|
-
const tableInfo = db.exec(`PRAGMA table_info(model_configs)`);
|
|
81709
|
-
const hasSourceColumn = tableInfo.some(
|
|
81710
|
-
(result) => result.values && result.values.some((row) => row[1] === "source")
|
|
81711
|
-
);
|
|
81712
|
-
if (!hasSourceColumn) {
|
|
81713
|
-
console.log("Adding missing source column to model_configs table...");
|
|
81714
|
-
db.exec(`
|
|
81715
|
-
ALTER TABLE model_configs
|
|
81716
|
-
ADD COLUMN source TEXT DEFAULT 'db'
|
|
81717
|
-
`);
|
|
81718
|
-
console.log("Source column added successfully");
|
|
81719
|
-
} else {
|
|
81720
|
-
console.log("Source column already exists, skipping");
|
|
81721
|
-
}
|
|
81722
|
-
},
|
|
81723
|
-
down: (db) => {
|
|
81724
|
-
console.log("Rollback: Source column left in place (SQLite limitation)");
|
|
81668
|
+
db.exec("DROP TABLE IF EXISTS provider_usage_stats");
|
|
81669
|
+
db.exec("DROP TABLE IF EXISTS provider_settings");
|
|
81670
|
+
db.exec("DROP TABLE IF EXISTS custom_endpoints");
|
|
81671
|
+
db.exec("DROP TABLE IF EXISTS user_preferences");
|
|
81672
|
+
db.exec("DROP TABLE IF EXISTS model_configs");
|
|
81725
81673
|
}
|
|
81726
81674
|
});
|
|
81727
81675
|
}
|
|
@@ -82439,13 +82387,14 @@ var init_core_database = __esm({
|
|
|
82439
82387
|
modelName: "qwen3-coder:latest",
|
|
82440
82388
|
endpointUrl: "http://localhost:11434",
|
|
82441
82389
|
displayName: "Qwen3 Coder (Ollama)",
|
|
82442
|
-
isActive:
|
|
82390
|
+
isActive: false
|
|
82443
82391
|
},
|
|
82444
82392
|
{
|
|
82445
82393
|
authType: "lm-studio",
|
|
82446
82394
|
modelName: "qwen/qwen3-coder-30b",
|
|
82447
82395
|
endpointUrl: "http://localhost:1234/v1",
|
|
82448
|
-
displayName: "Qwen3 Coder 30B (LM Studio)"
|
|
82396
|
+
displayName: "Qwen3 Coder 30B (LM Studio)",
|
|
82397
|
+
isActive: false
|
|
82449
82398
|
},
|
|
82450
82399
|
{
|
|
82451
82400
|
authType: "openai",
|
|
@@ -82456,13 +82405,13 @@ var init_core_database = __esm({
|
|
|
82456
82405
|
{
|
|
82457
82406
|
authType: "gemini-api-key",
|
|
82458
82407
|
modelName: "gemini-2.0-flash-thinking",
|
|
82459
|
-
endpointUrl: "",
|
|
82408
|
+
endpointUrl: "https://generativelanguage.googleapis.com/v1beta",
|
|
82460
82409
|
displayName: "Gemini 2.0 Flash Thinking"
|
|
82461
82410
|
},
|
|
82462
82411
|
{
|
|
82463
82412
|
authType: "qwen-oauth",
|
|
82464
82413
|
modelName: "qwen/qwen3-30b-a3b-2507",
|
|
82465
|
-
endpointUrl: "",
|
|
82414
|
+
endpointUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
82466
82415
|
displayName: "Qwen3 30B (OAuth)"
|
|
82467
82416
|
}
|
|
82468
82417
|
];
|
|
@@ -93878,7 +93827,7 @@ async function getPackageJson() {
|
|
|
93878
93827
|
// packages/cli/src/utils/version.ts
|
|
93879
93828
|
async function getCliVersion() {
|
|
93880
93829
|
const pkgJson = await getPackageJson();
|
|
93881
|
-
return "1.0
|
|
93830
|
+
return "1.1.0";
|
|
93882
93831
|
}
|
|
93883
93832
|
|
|
93884
93833
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -93930,7 +93879,7 @@ import open4 from "open";
|
|
|
93930
93879
|
import process11 from "node:process";
|
|
93931
93880
|
|
|
93932
93881
|
// packages/cli/src/generated/git-commit.ts
|
|
93933
|
-
var GIT_COMMIT_INFO = "
|
|
93882
|
+
var GIT_COMMIT_INFO = "7b22143f";
|
|
93934
93883
|
|
|
93935
93884
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
93936
93885
|
init_dist2();
|