fss-link 1.0.9 → 1.0.11
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 +16 -6
- package/package.json +40 -4
package/bundle/fss-link.js
CHANGED
|
@@ -6883,7 +6883,7 @@ var ModelManager = class {
|
|
|
6883
6883
|
async getCurrentAuthType() {
|
|
6884
6884
|
const db = await this.getDb();
|
|
6885
6885
|
const activeModel = await db.getActiveModel();
|
|
6886
|
-
if (!activeModel) return void 0;
|
|
6886
|
+
if (!activeModel || !activeModel.authType) return void 0;
|
|
6887
6887
|
const authType = this.mapToFSSLinkAuthType(activeModel.authType);
|
|
6888
6888
|
return authType;
|
|
6889
6889
|
}
|
|
@@ -6893,7 +6893,7 @@ var ModelManager = class {
|
|
|
6893
6893
|
async getCurrentFSSAuthType() {
|
|
6894
6894
|
const db = await this.getDb();
|
|
6895
6895
|
const activeModel = await db.getActiveModel();
|
|
6896
|
-
if (!activeModel) return void 0;
|
|
6896
|
+
if (!activeModel || !activeModel.authType) return void 0;
|
|
6897
6897
|
return this.mapToFSSLinkAuthType(activeModel.authType);
|
|
6898
6898
|
}
|
|
6899
6899
|
/**
|
|
@@ -6941,6 +6941,9 @@ var ModelManager = class {
|
|
|
6941
6941
|
* Map database auth type to FSS Link AuthType
|
|
6942
6942
|
*/
|
|
6943
6943
|
mapToFSSLinkAuthType(authType) {
|
|
6944
|
+
if (!authType) {
|
|
6945
|
+
throw new Error(`Auth type is null or undefined`);
|
|
6946
|
+
}
|
|
6944
6947
|
switch (authType) {
|
|
6945
6948
|
case "openai":
|
|
6946
6949
|
return AuthType.USE_OPENAI;
|
|
@@ -6966,7 +6969,14 @@ function getModelManager() {
|
|
|
6966
6969
|
// packages/cli/src/ui/hooks/useAuthCommand.ts
|
|
6967
6970
|
var useAuthCommand = (settings, setAuthError, config) => {
|
|
6968
6971
|
const modelManager = getModelManager();
|
|
6969
|
-
const hasActiveModel =
|
|
6972
|
+
const [hasActiveModel, setHasActiveModel] = useState11(false);
|
|
6973
|
+
useEffect12(() => {
|
|
6974
|
+
const checkActiveModel = async () => {
|
|
6975
|
+
const result = await modelManager.hasValidConfiguration();
|
|
6976
|
+
setHasActiveModel(result);
|
|
6977
|
+
};
|
|
6978
|
+
void checkActiveModel();
|
|
6979
|
+
}, [modelManager]);
|
|
6970
6980
|
const [isAuthDialogOpen, setIsAuthDialogOpen] = useState11(
|
|
6971
6981
|
!hasActiveModel && settings.merged.selectedAuthType === void 0
|
|
6972
6982
|
);
|
|
@@ -6980,7 +6990,7 @@ var useAuthCommand = (settings, setAuthError, config) => {
|
|
|
6980
6990
|
return;
|
|
6981
6991
|
}
|
|
6982
6992
|
if (hasActiveModel) {
|
|
6983
|
-
const currentAuthType = modelManager.getCurrentAuthType();
|
|
6993
|
+
const currentAuthType = await modelManager.getCurrentAuthType();
|
|
6984
6994
|
if (currentAuthType) {
|
|
6985
6995
|
try {
|
|
6986
6996
|
setIsAuthenticating(true);
|
|
@@ -7679,7 +7689,7 @@ async function getPackageJson() {
|
|
|
7679
7689
|
// packages/cli/src/utils/version.ts
|
|
7680
7690
|
async function getCliVersion() {
|
|
7681
7691
|
const pkgJson = await getPackageJson();
|
|
7682
|
-
return "1.0.
|
|
7692
|
+
return "1.0.11";
|
|
7683
7693
|
}
|
|
7684
7694
|
|
|
7685
7695
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -7731,7 +7741,7 @@ import open from "open";
|
|
|
7731
7741
|
import process6 from "node:process";
|
|
7732
7742
|
|
|
7733
7743
|
// packages/cli/src/generated/git-commit.ts
|
|
7734
|
-
var GIT_COMMIT_INFO = "
|
|
7744
|
+
var GIT_COMMIT_INFO = "3a11de7";
|
|
7735
7745
|
|
|
7736
7746
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
7737
7747
|
import { sessionId as sessionId3 } from "@fsscoding/fss-link-core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fss-link",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -89,10 +89,45 @@
|
|
|
89
89
|
"tsx": "^4.20.3",
|
|
90
90
|
"typescript-eslint": "^8.30.1",
|
|
91
91
|
"vitest": "^3.2.4",
|
|
92
|
-
"yargs": "^17.7.2"
|
|
92
|
+
"yargs": "^17.7.2",
|
|
93
|
+
"@fsscoding/fss-link-core": "1.0.2",
|
|
94
|
+
"@google/genai": "1.9.0",
|
|
95
|
+
"@iarna/toml": "^2.2.5",
|
|
96
|
+
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
97
|
+
"@types/sql.js": "^1.4.9",
|
|
98
|
+
"@types/fs-extra": "^11.0.4",
|
|
99
|
+
"@types/update-notifier": "^6.0.8",
|
|
100
|
+
"axios": "^1.11.0",
|
|
101
|
+
"cheerio": "^1.1.2",
|
|
102
|
+
"command-exists": "^1.2.9",
|
|
103
|
+
"diff": "^7.0.0",
|
|
104
|
+
"dotenv": "^17.1.0",
|
|
105
|
+
"fs-extra": "^11.3.1",
|
|
106
|
+
"highlight.js": "^11.11.1",
|
|
107
|
+
"ink": "^6.1.1",
|
|
108
|
+
"ink-big-text": "^2.0.0",
|
|
109
|
+
"ink-gradient": "^3.0.0",
|
|
110
|
+
"ink-link": "^4.1.0",
|
|
111
|
+
"ink-select-input": "^6.2.0",
|
|
112
|
+
"ink-spinner": "^5.0.0",
|
|
113
|
+
"lowlight": "^3.3.0",
|
|
114
|
+
"mime-types": "^3.0.1",
|
|
115
|
+
"node-fetch": "^3.3.2",
|
|
116
|
+
"open": "^10.1.2",
|
|
117
|
+
"p-limit": "^7.1.1",
|
|
118
|
+
"qrcode-terminal": "^0.12.0",
|
|
119
|
+
"react": "^19.1.0",
|
|
120
|
+
"read-package-up": "^11.0.0",
|
|
121
|
+
"shell-quote": "^1.8.3",
|
|
122
|
+
"string-width": "^7.1.0",
|
|
123
|
+
"strip-ansi": "^7.1.0",
|
|
124
|
+
"strip-json-comments": "^3.1.1",
|
|
125
|
+
"undici": "^7.10.0",
|
|
126
|
+
"update-notifier": "^7.3.1",
|
|
127
|
+
"zod": "^3.23.8"
|
|
93
128
|
},
|
|
94
129
|
"dependencies": {
|
|
95
|
-
"@fsscoding/fss-link-core": "1.0.
|
|
130
|
+
"@fsscoding/fss-link-core": "1.0.2",
|
|
96
131
|
"@google/genai": "1.9.0",
|
|
97
132
|
"@iarna/toml": "^2.2.5",
|
|
98
133
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
@@ -129,7 +164,8 @@
|
|
|
129
164
|
"undici": "^7.10.0",
|
|
130
165
|
"update-notifier": "^7.3.1",
|
|
131
166
|
"yargs": "^17.7.2",
|
|
132
|
-
"zod": "^3.23.8"
|
|
167
|
+
"zod": "^3.23.8",
|
|
168
|
+
"better-sqlite3": "^12.2.0"
|
|
133
169
|
},
|
|
134
170
|
"optionalDependencies": {
|
|
135
171
|
"@lydell/node-pty": "1.1.0",
|