Skip to content

Commit 376e2a2

Browse files
committed
bump version
1 parent 71c0e31 commit 376e2a2

File tree

11 files changed

+1119
-552
lines changed

11 files changed

+1119
-552
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# dependencies (bun install)
22
node_modules
33
.vscode
4+
.docbase
45
dufs.exe
56
dufs
67
db.sqlite

bun.lock

Lines changed: 1070 additions & 512 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docbase",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"type": "module",
55
"bin": "./dist/cli/index.js",
66
"exports": {
@@ -38,19 +38,19 @@
3838
},
3939
"devDependencies": {
4040
"@types/adm-zip": "^0.5.7",
41-
"@types/bun": "^1.2.9",
41+
"@types/bun": "^1.2.14",
4242
"@types/fs-extra": "^11.0.4",
4343
"adm-zip": "^0.5.16",
4444
"chalk": "^5.4.1",
4545
"concurrently": "^9.1.2",
46-
"es-toolkit": "^1.34.1",
46+
"es-toolkit": "^1.38.0",
4747
"fs-extra": "^11.3.0",
4848
"ky": "^1.8.1",
49-
"rollup": "^4.40.0",
49+
"rollup": "^4.41.0",
5050
"rollup-plugin-dts": "^6.2.1"
5151
},
5252
"dependencies": {
53-
"@hey-api/client-fetch": "^0.10.0"
53+
"@hey-api/client-fetch": "^0.10.1"
5454
},
5555
"files": [
5656
"./dist/cli/**/*",

packages/app/client/types.gen.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,12 @@ export type GetV0BaseByKnowledgeIdEmbedderResponses = {
447447
mean: number;
448448
sigma: number;
449449
};
450-
request: {};
451-
response: {};
450+
request: {
451+
[key: string]: unknown;
452+
};
453+
response: {
454+
[key: string]: unknown;
455+
};
452456
headers?: {
453457
[key: string]: string;
454458
};
@@ -518,8 +522,12 @@ export type PostV0BaseByKnowledgeIdEmbedderData = {
518522
mean: number;
519523
sigma: number;
520524
};
521-
request: {};
522-
response: {};
525+
request: {
526+
[key: string]: unknown;
527+
};
528+
response: {
529+
[key: string]: unknown;
530+
};
523531
headers?: {
524532
[key: string]: string;
525533
};

packages/app/gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { exists, mkdir, writeFile } from "fs-extra";
22
import { createClient } from "@hey-api/openapi-ts";
3-
import { app } from "./src/main";
3+
import app from "./src/main";
44
import { version, name } from "~/package.json";
55

66
// 并行化文件操作

packages/app/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
"build": "bun ./build.ts"
77
},
88
"devDependencies": {
9-
"@hey-api/client-fetch": "^0.10.0",
10-
"@hey-api/openapi-ts": "^0.66.4",
9+
"@hey-api/client-fetch": "^0.10.1",
10+
"@hey-api/openapi-ts": "^0.67.5",
1111
"@hono/swagger-ui": "^0.5.1",
12-
"@hono/zod-openapi": "^0.19.4",
13-
"@prisma/client": "^6.6.0",
14-
"@prisma/config": "^6.6.0",
15-
"@prisma/migrate": "^6.6.0",
12+
"@hono/zod-openapi": "^0.19.6",
13+
"@prisma/client": "^6.8.2",
14+
"@prisma/config": "^6.8.2",
15+
"@prisma/migrate": "^6.8.2",
1616
"chokidar": "^4.0.3",
1717
"consola": "^3.4.2",
1818
"core": "workspace:*",
19-
"es-toolkit": "^1.34.1",
20-
"esbuild": "^0.25.2",
21-
"fdir": "^6.4.3",
22-
"hono": "^4.7.6",
19+
"es-toolkit": "^1.38.0",
20+
"esbuild": "^0.25.4",
21+
"fdir": "^6.4.4",
22+
"hono": "^4.7.10",
2323
"itertools-ts": "^2.2.0",
24-
"meilisearch": "^0.49.0",
24+
"meilisearch": "^0.50.0",
2525
"nypm": "^0.6.0",
26-
"prisma": "^6.6.0"
26+
"prisma": "^6.8.2"
2727
}
2828
}

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"build": "bun run ./build.ts"
77
},
88
"devDependencies": {
9-
"@inquirer/prompts": "^7.4.1",
10-
"@topcli/spinner": "^2.1.2",
9+
"@inquirer/prompts": "^7.5.1",
10+
"@topcli/spinner": "^3.0.0",
1111
"@types/bun": "latest",
1212
"citty": "^0.1.6",
1313
"hash-wasm": "^4.12.0"

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
},
1010
"devDependencies": {
1111
"console-table-printer": "^2.12.1",
12-
"es-toolkit": "^1.34.1",
12+
"es-toolkit": "^1.38.0",
1313
"hash-wasm": "^4.12.0",
1414
"itertools-ts": "^2.2.0",
15-
"meilisearch": "^0.49.0"
15+
"meilisearch": "^0.50.0"
1616
}
1717
}

packages/core/src/DocManager.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class DocManager {
127127
if ((error as Error).message === `Index \`${uid}\` not found.`) {
128128
console.info(`Index ${uid} not found, creating it...`);
129129
const task = await this.#client.createIndex(uid, { primaryKey });
130-
await this.#client.waitForTask(task.taskUid);
130+
await this.#client.tasks.waitForTask(task.taskUid);
131131
console.info(`Index ${uid} created successfully`);
132132
} else {
133133
console.error(`Error retrieving or creating index ${uid}:`, error);
@@ -192,7 +192,7 @@ export class DocManager {
192192

193193
// 获取已有的可筛选属性
194194
const docIndexFilterableAttributes =
195-
await this.#docIndex.getFilterableAttributes();
195+
(await this.#docIndex.getFilterableAttributes()) ?? [];
196196

197197
// 需要设置的可筛选的属性
198198
const docIndexFilterableAttributesNeedCreate = difference(
@@ -211,7 +211,7 @@ export class DocManager {
211211
...docIndexFilterableAttributesNeedCreate,
212212
],
213213
});
214-
await this.#docIndex.waitForTask(task.taskUid);
214+
await this.#docIndex.tasks.waitForTask(task.taskUid);
215215
}
216216
})(),
217217
// 确保 docChunkIndex 存在
@@ -234,7 +234,7 @@ export class DocManager {
234234
resetEmbedders = async (wait = false) => {
235235
const task = await this.#docChunkIndex.resetEmbedders();
236236
if (wait) {
237-
const task1 = await this.#docChunkIndex.waitForTask(task.taskUid);
237+
const task1 = await this.#docChunkIndex.tasks.waitForTask(task.taskUid);
238238
return task1.status;
239239
} else {
240240
return task.status;
@@ -245,7 +245,7 @@ export class DocManager {
245245
updateEmbedders = async (embedders: Embedders, wait = false) => {
246246
const task = await this.#docChunkIndex.updateEmbedders(embedders);
247247
if (wait) {
248-
const task1 = await this.#docChunkIndex.waitForTask(task.taskUid);
248+
const task1 = await this.#docChunkIndex.tasks.waitForTask(task.taskUid);
249249
return task1.status;
250250
} else {
251251
return task.status;
@@ -568,11 +568,11 @@ export class DocManager {
568568
await Promise.all([
569569
(async () => {
570570
const task = await this.#docIndex.delete();
571-
await this.#client.waitForTask(task.taskUid);
571+
await this.#client.tasks.waitForTask(task.taskUid);
572572
})(),
573573
(async () => {
574574
const task = await this.#docChunkIndex.delete();
575-
await this.#client.waitForTask(task.taskUid);
575+
await this.#client.tasks.waitForTask(task.taskUid);
576576
})(),
577577
]);
578578
};

packages/docbase-plugin-docloader-extra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@llm-tools/embedjs-loader-xml": "^0.1.28",
3535
"core": "workspace:*",
3636
"itertools-ts": "^2.2.0",
37-
"zod": "^3.24.2",
37+
"zod": "^3.25.20",
3838
"zod-to-json-schema": "^3.24.5"
3939
},
4040
"files": [

packages/ui/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
},
99
"devDependencies": {
1010
"@iconify-json/uil": "^1.2.3",
11-
"@nuxt/icon": "1.12.0",
11+
"@nuxt/icon": "1.13.0",
1212
"@pinia/nuxt": "^0.11.0",
13-
"@unocss/nuxt": "^66.1.0-beta.11",
13+
"@unocss/nuxt": "^66.1.2",
1414
"app": "workspace:*",
15-
"es-toolkit": "^1.34.1",
15+
"es-toolkit": "^1.38.0",
1616
"micromark": "^4.0.2",
17-
"nuxt": "^3.16.2",
17+
"nuxt": "^3.17.4",
1818
"pinia": "^3.0.2",
19-
"pinia-plugin-persistedstate": "^4.2.0",
20-
"unocss": "^66.1.0-beta.11",
19+
"pinia-plugin-persistedstate": "^4.3.0",
20+
"unocss": "^66.1.2",
2121
"vue": "latest",
2222
"vue-router": "latest"
2323
}

0 commit comments

Comments
 (0)