fss-link 1.0.70 → 1.0.72
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 -21
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22379,7 +22379,7 @@ function createContentGeneratorConfig(config, authType) {
|
|
|
22379
22379
|
return contentGeneratorConfig;
|
|
22380
22380
|
}
|
|
22381
22381
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22382
|
-
const version = "1.0.
|
|
22382
|
+
const version = "1.0.72";
|
|
22383
22383
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22384
22384
|
const baseHeaders = {
|
|
22385
22385
|
"User-Agent": userAgent
|
|
@@ -369178,29 +369178,39 @@ var DatabaseConnectionPool = class {
|
|
|
369178
369178
|
*/
|
|
369179
369179
|
async initialize() {
|
|
369180
369180
|
if (this.initialized) return;
|
|
369181
|
-
|
|
369182
|
-
|
|
369183
|
-
|
|
369184
|
-
|
|
369185
|
-
|
|
369181
|
+
try {
|
|
369182
|
+
this.SQL = await initSqlJs();
|
|
369183
|
+
for (let i = 0; i < Math.min(2, this.maxConnections); i++) {
|
|
369184
|
+
const connection = await this.createConnection();
|
|
369185
|
+
this.connections.push(connection);
|
|
369186
|
+
this.availableConnections.push(connection);
|
|
369187
|
+
}
|
|
369188
|
+
this.initialized = true;
|
|
369189
|
+
} catch (error) {
|
|
369190
|
+
console.warn("Database pool initialization failed:", error);
|
|
369191
|
+
throw error;
|
|
369186
369192
|
}
|
|
369187
|
-
this.initialized = true;
|
|
369188
369193
|
}
|
|
369189
369194
|
/**
|
|
369190
369195
|
* Create a new database connection
|
|
369191
369196
|
*/
|
|
369192
369197
|
async createConnection() {
|
|
369193
369198
|
let db;
|
|
369194
|
-
|
|
369195
|
-
|
|
369196
|
-
|
|
369197
|
-
|
|
369198
|
-
|
|
369199
|
+
try {
|
|
369200
|
+
if (fs48.existsSync(this.dbPath)) {
|
|
369201
|
+
const data = fs48.readFileSync(this.dbPath);
|
|
369202
|
+
db = new this.SQL.Database(data);
|
|
369203
|
+
} else {
|
|
369204
|
+
db = new this.SQL.Database();
|
|
369205
|
+
}
|
|
369206
|
+
db.exec("PRAGMA journal_mode=WAL;");
|
|
369207
|
+
db.exec("PRAGMA busy_timeout=5000;");
|
|
369208
|
+
db.exec("PRAGMA foreign_keys=ON;");
|
|
369209
|
+
return db;
|
|
369210
|
+
} catch (error) {
|
|
369211
|
+
console.warn("Database connection creation failed:", error);
|
|
369212
|
+
throw error;
|
|
369199
369213
|
}
|
|
369200
|
-
db.exec("PRAGMA journal_mode=WAL;");
|
|
369201
|
-
db.exec("PRAGMA busy_timeout=5000;");
|
|
369202
|
-
db.exec("PRAGMA foreign_keys=ON;");
|
|
369203
|
-
return db;
|
|
369204
369214
|
}
|
|
369205
369215
|
/**
|
|
369206
369216
|
* Get a connection from the pool
|
|
@@ -373525,7 +373535,7 @@ async function getPackageJson() {
|
|
|
373525
373535
|
// packages/cli/src/utils/version.ts
|
|
373526
373536
|
async function getCliVersion() {
|
|
373527
373537
|
const pkgJson = await getPackageJson();
|
|
373528
|
-
return "1.0.
|
|
373538
|
+
return "1.0.72";
|
|
373529
373539
|
}
|
|
373530
373540
|
|
|
373531
373541
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -397354,10 +397364,6 @@ import { useState as useState32 } from "react";
|
|
|
397354
397364
|
init_dist2();
|
|
397355
397365
|
var validateAuthMethod = (authMethod) => {
|
|
397356
397366
|
loadEnvironment();
|
|
397357
|
-
const modelManager = getModelManager();
|
|
397358
|
-
modelManager.initializeFromStore().catch((error) => {
|
|
397359
|
-
console.warn("Failed to initialize model database in validateAuthMethod:", error);
|
|
397360
|
-
});
|
|
397361
397367
|
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.CLOUD_SHELL) {
|
|
397362
397368
|
return null;
|
|
397363
397369
|
}
|