ei-tui 1.6.5 → 1.6.6
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/package.json +2 -2
- package/src/cli.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ei-tui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"author": "Flare576",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@opentui/core": "^0.1.79",
|
|
64
64
|
"@opentui/solid": "^0.1.79",
|
|
65
65
|
"fastembed": "^2.1.0",
|
|
66
|
-
"solid-js": "1.9.9",
|
|
66
|
+
"solid-js": "^1.9.9",
|
|
67
67
|
"yaml": "^2.8.2"
|
|
68
68
|
}
|
|
69
69
|
}
|
package/src/cli.ts
CHANGED
|
@@ -151,7 +151,7 @@ async function main(): Promise<void> {
|
|
|
151
151
|
const { RemoteSync } = await import("./storage/remote.js");
|
|
152
152
|
const { decodeAllEmbeddings, encodeAllEmbeddings } = await import("./storage/embeddings.js");
|
|
153
153
|
const { join } = await import("path");
|
|
154
|
-
const { readFile, writeFile, rename,
|
|
154
|
+
const { readFile, writeFile, rename, mkdir } = await import("fs/promises");
|
|
155
155
|
|
|
156
156
|
const dataPath = getDataPath();
|
|
157
157
|
const statePath = join(dataPath, "state.json");
|
|
@@ -217,6 +217,7 @@ async function main(): Promise<void> {
|
|
|
217
217
|
process.exit(1);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
await mkdir(dataPath, { recursive: true });
|
|
220
221
|
const tempPath = `${backupPath}.tmp.${Date.now()}`;
|
|
221
222
|
await writeFile(tempPath, JSON.stringify(encodeAllEmbeddings(result.state), null, 2), "utf-8");
|
|
222
223
|
await rename(tempPath, backupPath);
|