fss-link 1.0.77 → 1.0.79

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.
Files changed (2) hide show
  1. package/bundle/fss-link.js +41 -42
  2. package/package.json +1 -1
@@ -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.77";
22382
+ const version = "1.0.79";
22383
22383
  const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
22384
22384
  const baseHeaders = {
22385
22385
  "User-Agent": userAgent
@@ -372726,6 +372726,37 @@ var ModelManager = class {
372726
372726
  console.warn("Failed to apply provider settings:", error);
372727
372727
  }
372728
372728
  }
372729
+ /**
372730
+ * Get sampling parameters for the currently active model
372731
+ * @returns Record<string, unknown> containing sampling parameters like num_ctx, temperature, etc.
372732
+ */
372733
+ async getCurrentSamplingParams() {
372734
+ try {
372735
+ const activeModel = await this.getActiveModel();
372736
+ if (!activeModel) {
372737
+ return {};
372738
+ }
372739
+ const db = await this.getDb();
372740
+ const settings = await db.getProviderSettings(activeModel.authType);
372741
+ const samplingParams = {};
372742
+ if (settings["num_ctx"]) {
372743
+ samplingParams["num_ctx"] = parseInt(settings["num_ctx"], 10);
372744
+ }
372745
+ if (settings["temperature"]) {
372746
+ samplingParams["temperature"] = parseFloat(settings["temperature"]);
372747
+ }
372748
+ if (settings["top_p"]) {
372749
+ samplingParams["top_p"] = parseFloat(settings["top_p"]);
372750
+ }
372751
+ if (settings["top_k"]) {
372752
+ samplingParams["top_k"] = parseInt(settings["top_k"], 10);
372753
+ }
372754
+ return samplingParams;
372755
+ } catch (error) {
372756
+ console.warn("Failed to get current sampling params:", error);
372757
+ return {};
372758
+ }
372759
+ }
372729
372760
  };
372730
372761
  var modelManagerInstance = null;
372731
372762
  function getModelManager() {
@@ -373535,7 +373566,7 @@ async function getPackageJson() {
373535
373566
  // packages/cli/src/utils/version.ts
373536
373567
  async function getCliVersion() {
373537
373568
  const pkgJson = await getPackageJson();
373538
- return "1.0.77";
373569
+ return "1.0.79";
373539
373570
  }
373540
373571
 
373541
373572
  // packages/cli/src/ui/commands/aboutCommand.ts
@@ -407374,14 +407405,6 @@ function toPermissionOptions(confirmation) {
407374
407405
 
407375
407406
  // packages/cli/src/gemini.tsx
407376
407407
  import { jsx as jsx64 } from "react/jsx-runtime";
407377
- console.log("\u{1F527} Starting module imports - if error happens during this, we found the culprit");
407378
- console.log("\u{1F527} Importing React...");
407379
- console.log("\u{1F527} Importing ink...");
407380
- console.log("\u{1F527} Importing AppWrapper...");
407381
- console.log("\u{1F527} Importing config modules...");
407382
- console.log("\u{1F527} Importing settings...");
407383
- console.log("\u{1F527} Importing other modules...");
407384
- console.log("\u{1F527} All imports completed successfully");
407385
407408
  function validateDnsResolutionOrder(order) {
407386
407409
  const defaultValue = "ipv4first";
407387
407410
  if (order === void 0) {
@@ -407448,13 +407471,16 @@ ${reason.stack}` : ""}`;
407448
407471
  });
407449
407472
  }
407450
407473
  async function main() {
407451
- console.log("\u{1F527} MAIN FUNCTION STARTED - if error happens before this, it is during module loading");
407452
407474
  setupUnhandledRejectionHandler();
407453
- console.log("\u{1F527} EMERGENCY: Database initialization temporarily disabled for debugging");
407475
+ try {
407476
+ const modelManager2 = getModelManager();
407477
+ await modelManager2.initializeFromStore();
407478
+ console.log("\u2705 Database-first model persistence initialized");
407479
+ } catch (error) {
407480
+ console.warn("\u26A0\uFE0F Database initialization failed, falling back to environment variables:", error);
407481
+ }
407454
407482
  const workspaceRoot = process.cwd();
407455
- console.log("\u{1F527} About to call loadSettings() - checking if this causes the error");
407456
407483
  const settings = await loadSettings(workspaceRoot);
407457
- console.log("\u{1F527} loadSettings() completed successfully");
407458
407484
  await cleanupCheckpoints();
407459
407485
  if (settings.errors.length > 0) {
407460
407486
  for (const error of settings.errors) {
@@ -407653,35 +407679,8 @@ function setWindowTitle(title, settings) {
407653
407679
  }
407654
407680
 
407655
407681
  // packages/cli/index.ts
407656
- process.on("unhandledRejection", (reason, promise2) => {
407657
- if (String(reason) === "Statement closed") {
407658
- console.warn("\u26A0\uFE0F SUPPRESSED: SQL Statement closed error during startup - continuing execution");
407659
- return;
407660
- }
407661
- console.error("Unhandled rejection:", reason);
407662
- });
407663
- console.log("\u{1F527} INDEX.TS: Starting import of gemini.js");
407664
- console.log("\u{1F527} INDEX.TS: gemini.js import completed");
407665
- console.log("\u{1F527} INDEX.TS: All imports completed, calling main()");
407666
407682
  main().catch((error) => {
407667
- console.error("An unexpected critical error occurred:");
407668
- console.error(String(error));
407669
- if (error instanceof Error) {
407670
- console.error("Error name:", error.name);
407671
- console.error("Error message:", error.message);
407672
- console.error("Error stack:", error.stack);
407673
- }
407674
- if (error && typeof error === "object" && "stack" in error) {
407675
- console.error("Object stack:", error.stack);
407676
- }
407677
- console.error("Error type:", typeof error);
407678
- console.error("Error constructor:", error?.constructor?.name);
407679
- console.error("Error JSON:", JSON.stringify(error, null, 2));
407680
- if (String(error) === "Statement closed") {
407681
- console.error("*** THIS IS THE SQL.JS STATEMENT CLOSED ERROR ***");
407682
- console.error("*** CALL STACK AT TIME OF ERROR ***");
407683
- console.trace();
407684
- }
407683
+ console.error("Error:", error);
407685
407684
  process.exit(1);
407686
407685
  });
407687
407686
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fss-link",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },