@qoder-ai/qmind-cli 3.4.0 → 4.0.0
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/CHANGELOG.md +17 -1
- package/CHANGELOG.zh-CN.md +17 -1
- package/README.md +3 -3
- package/README.zh-CN.md +1 -1
- package/bin/cli.js +1 -1
- package/dist/{bot-gateway-B5oq12FF.js → bot-gateway-B5cW3ErV.js} +1 -1
- package/dist/{imports-CUruHsu_.js → imports-Cmd6ys9g.js} +1 -1
- package/dist/{management-Dr8uPYN9.js → management-CgWDLle_.js} +16 -7
- package/dist/{notes-BcyIDQG5.js → notes-BRnv_Z10.js} +1 -1
- package/dist/qmind.js +200 -162
- package/dist/{shared-DBGAKppE.js → shared-53S5tNf6.js} +15 -75
- package/dist/{source-upload-CCasR8MW.js → source-upload-DlOLtECT.js} +1 -1
- package/dist/{transfers-DnuncvOY.js → transfers-cf1MXHdB.js} +7 -4
- package/dist/{wiki-branches-BfIfXeN9.js → wiki-branches-DmgHlIxc.js} +1 -1
- package/package.json +15 -13
- package/dist/cards-CfhvlNeF.js +0 -132
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ English (default) | [简体中文](CHANGELOG.zh-CN.md)
|
|
|
4
4
|
|
|
5
5
|
Published versions below describe the Global CLI/shared implementation, not historical CN releases. CN will join the shared history with the future joint release.
|
|
6
6
|
|
|
7
|
+
## 4.0.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- c0df079: Require Node.js 22.19.0 or later. Upgrade Node.js before installing this release if you use an older runtime.
|
|
12
|
+
|
|
13
|
+
Upgrade undici to 8.12.2, commander to 15.0.0, entities to 8.1.0, eventsource-parser to 4.1.2, open to 11.0.4, p-limit to 7.3.3, picomatch to 4.0.7, and zod to 4.6.7. Preserve existing HTTP/1.1 transport behavior and proxy policies.
|
|
14
|
+
|
|
15
|
+
Explicitly select English as the Global npm README and Chinese as the CN npm README. Use Qoder CN consistently as the CN product name in both languages.
|
|
16
|
+
|
|
17
|
+
## 3.5.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 708977c: Retire Cards completely from `qmind-cn`: retrieval JSON no longer includes `cards`, NDJSON emits only chunks, and table/agent output no longer renders Cards. Compilation progress no longer displays card counts. Update output consumers to use chunks and citations; there is no compatibility flag to restore Cards. Single-notebook retrieval keeps its endpoint, and multi-notebook output keeps notebook identity and server ranking.
|
|
22
|
+
|
|
7
23
|
## 3.4.0
|
|
8
24
|
|
|
9
25
|
### Minor Changes
|
|
@@ -56,7 +72,7 @@ Published versions below describe the Global CLI/shared implementation, not hist
|
|
|
56
72
|
|
|
57
73
|
### Major Changes
|
|
58
74
|
|
|
59
|
-
- 28508e5: Release QMind CLI as one shared-version Global/CN cohort. Keep `@qoder-ai/qmind-cli` / `qmind` for Qoder Global and introduce `@qodercn-ai/qmind-cli` / `qmind-cn` for Qoder
|
|
75
|
+
- 28508e5: Release QMind CLI as one shared-version Global/CN cohort. Keep `@qoder-ai/qmind-cli` / `qmind` for Qoder Global and introduce `@qodercn-ai/qmind-cli` / `qmind-cn` for Qoder CN. Each distribution now has a build-time-fixed product identity and production target, isolated product/target file credentials, bilingual package documentation and changelog, and an immutable dual-distribution candidate that is published automatically after its Changeset reaches `main`. The CLI no longer reads legacy root state or OS Keyring entries; upgrade the Global package and sign in again, and install the CN package separately when it is published.
|
|
60
76
|
|
|
61
77
|
### Changes without version bumps
|
|
62
78
|
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
以下已发布版本属于 Global CLI / 共享实现,不代表 CN 曾发布过这些版本。CN 将在后续共同发行版加入同一历史。
|
|
6
6
|
|
|
7
|
+
## 4.0.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- c0df079: 要求 Node.js 22.19.0 及以上版本。使用较旧运行时的用户须先升级 Node.js,再安装此版本。
|
|
12
|
+
|
|
13
|
+
将 undici 升级至 8.12.2、commander 升级至 15.0.0、entities 升级至 8.1.0、eventsource-parser 升级至 4.1.2、open 升级至 11.0.4、p-limit 升级至 7.3.3、picomatch 升级至 4.0.7、zod 升级至 4.6.7。保留既有 HTTP/1.1 传输行为与代理策略。
|
|
14
|
+
|
|
15
|
+
显式指定 Global npm README 默认为英文、CN npm README 默认为中文,并在中英文文档中统一使用 Qoder CN 产品名称。
|
|
16
|
+
|
|
17
|
+
## 3.5.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 708977c: 从 `qmind-cn` 彻底移除 Cards:检索 JSON 不再包含 `cards`,NDJSON 仅输出 chunks,table/agent 不再渲染卡片。编译进度不再展示卡片计数。消费方需改用 chunks 和 citations,不提供恢复 Cards 的兼容开关。单知识库检索保留原端点,多知识库输出保留知识库身份与服务端排序。
|
|
22
|
+
|
|
7
23
|
## 3.4.0
|
|
8
24
|
|
|
9
25
|
### Minor Changes
|
|
@@ -56,7 +72,7 @@
|
|
|
56
72
|
|
|
57
73
|
### Major Changes
|
|
58
74
|
|
|
59
|
-
- 28508e5: 将 QMind CLI 作为共享版本的 Global/CN 共同发行版发布:Qoder Global 继续使用 `@qoder-ai/qmind-cli` / `qmind`,Qoder
|
|
75
|
+
- 28508e5: 将 QMind CLI 作为共享版本的 Global/CN 共同发行版发布:Qoder Global 继续使用 `@qoder-ai/qmind-cli` / `qmind`,Qoder CN 新增 `@qodercn-ai/qmind-cli` / `qmind-cn`。每个发行版都具有构建时固定的产品身份与正式目标、按产品/目标隔离的文件凭证、中英文 package 文档与 changelog,以及一个在 Changeset 进入 `main` 后自动发布的双发行物不可变候选。CLI 不再读取旧根目录状态或 OS Keyring 项;Global 用户升级后需要重新登录,CN 包正式发布后需单独安装。
|
|
60
76
|
|
|
61
77
|
### Changes without version bumps
|
|
62
78
|
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Package: `@qoder-ai/qmind-cli` · command: `qmind`
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
Node.js `>=
|
|
11
|
+
Node.js `>=22.19.0` is required.
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
npm install --global @qoder-ai/qmind-cli
|
|
@@ -85,9 +85,9 @@ qmind retrieve --nb nb-1 --nb nb-2 "What is the deployment process?" --format ag
|
|
|
85
85
|
- Selection is explicit; the CLI never defaults to all accessible notebooks.
|
|
86
86
|
- Multiple notebooks use one unified retrieval request. The server jointly retrieves and reranks Source chunks; output retains server ranking and each chunk/citation's `notebookId` and `notebookTitle`.
|
|
87
87
|
- `--top-k` controls the joint recall candidate budget per route/query/channel; it is not multiplied by notebook count. `--max-results` limits the final results across all selected notebooks. Zero uses server defaults.
|
|
88
|
-
- `--sources` requires a single notebook. A single deduplicated notebook keeps the existing retrieval endpoint
|
|
88
|
+
- `--sources` requires a single notebook. A single deduplicated notebook keeps the existing retrieval endpoint. All retrieval output formats expose chunks and citations without knowledge cards.
|
|
89
89
|
- Multi-notebook JSON returns `{ chunks, citations, promptContext, total, reranked }`. NDJSON emits one `kind: "chunk"` record per returned chunk, in server order; zero hits emit no records. Table and agent output also identify each evidence item's notebook.
|
|
90
|
-
- Unified retrieval fails as one request when a target is invalid or inaccessible. The CLI reports the error without retrying notebooks individually or constructing partial-success results.
|
|
90
|
+
- Unified retrieval fails as one request when a target is invalid or inaccessible. The CLI reports the error without retrying notebooks individually or constructing partial-success results. Retrieval results no longer contain a `cards` field.
|
|
91
91
|
|
|
92
92
|
## Directory synchronization
|
|
93
93
|
|
package/README.zh-CN.md
CHANGED
package/bin/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as nodeModule from 'node:module';
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// Enable the cache before the application graph is loaded.
|
|
6
6
|
nodeModule.enableCompileCache?.();
|
|
7
7
|
|
|
8
8
|
await import('../dist/qmind.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Z as timestampSchema, a as invalidArgument, c as optionalRecord, d as pagination, h as requiredText, l as optionalString, m as requiredString, n as call, p as queryPath, r as compactUndefined, s as optionalBoolean, t as assertNonEmptyPatch, u as optionalTrimmedString } from "./shared-53S5tNf6.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../sdk/src/operations/bot-gateway-codecs.ts
|
|
4
4
|
const botTimestamp = z.preprocess((value) => typeof value === "object" && value !== null && !Array.isArray(value) && !("seconds" in value) ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as importProvidersSchema, T as fullSiteURLImportDiscoverySchema, _ as aliDingImportRunItemListSchema, a as invalidArgument, d as pagination, m as requiredString, n as call, nt as assertCapability, p as queryPath, tt as qmindFullSiteURLImportPageLimit, v as aliDingImportRunSchema, w as fullSiteURLImportConfirmationSchema } from "./shared-53S5tNf6.js";
|
|
2
2
|
//#region ../sdk/src/operations/imports.ts
|
|
3
3
|
const aliDingHost = "alidocs.dingtalk.com";
|
|
4
4
|
const requestIdPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as voidResponseSchema, a as invalidArgument, c as optionalRecord, f as positiveInteger, l as optionalString, m as requiredString, n as call, p as queryPath, r as compactUndefined, s as optionalBoolean, t as assertNonEmptyPatch } from "./shared-53S5tNf6.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../sdk/src/operations/management-schemas.ts
|
|
4
4
|
const memberPermissionSchema = z.enum([
|
|
@@ -46,7 +46,7 @@ const scheduledTaskSceneSchema = z.enum([
|
|
|
46
46
|
"source_refresh",
|
|
47
47
|
"source_binding_sync"
|
|
48
48
|
]);
|
|
49
|
-
const
|
|
49
|
+
const scheduledTaskWireSchema = z.object({
|
|
50
50
|
config: z.record(z.string(), z.unknown()).default({}),
|
|
51
51
|
createdAt: z.string().default(""),
|
|
52
52
|
enabled: z.boolean().default(true),
|
|
@@ -59,6 +59,16 @@ const scheduledTaskSchema = z.object({
|
|
|
59
59
|
updatedAt: z.string().default(""),
|
|
60
60
|
userId: z.string().default("")
|
|
61
61
|
});
|
|
62
|
+
const scheduledTaskSchema = scheduledTaskWireSchema;
|
|
63
|
+
const confirmedScheduledTaskSchema = scheduledTaskWireSchema.extend({
|
|
64
|
+
config: z.record(z.string(), z.unknown()).nullish().transform((config) => config ?? {}),
|
|
65
|
+
notebookId: z.string().min(1),
|
|
66
|
+
schedule: z.string().min(1),
|
|
67
|
+
enabled: z.boolean()
|
|
68
|
+
});
|
|
69
|
+
const sashScheduledTaskDeletionSchema = z.union([z.object({}).strict(), z.undefined()]).transform(() => void 0);
|
|
70
|
+
const dashboardScheduledTaskDeletionSchema = z.union([z.object({ status: z.literal("ok") }).strict(), z.undefined()]).transform(() => void 0);
|
|
71
|
+
const sashScheduledTaskListSchema = z.object({ tasks: z.array(confirmedScheduledTaskSchema).nullable().transform((tasks) => tasks ?? []) });
|
|
62
72
|
const scheduledTaskListSchema = z.object({ tasks: z.array(scheduledTaskSchema).nullish().transform((tasks) => tasks ?? []) });
|
|
63
73
|
const compilationRunSchema = z.object({
|
|
64
74
|
compiledSourceCount: z.number().int().nonnegative().default(0),
|
|
@@ -70,7 +80,6 @@ const compilationRunSchema = z.object({
|
|
|
70
80
|
"REBUILD"
|
|
71
81
|
]),
|
|
72
82
|
percent: z.number().min(0).max(100).default(0),
|
|
73
|
-
publishedCardCount: z.number().int().nonnegative().default(0),
|
|
74
83
|
runId: z.string().min(1),
|
|
75
84
|
stage: z.string().optional(),
|
|
76
85
|
startedAt: z.string().default(""),
|
|
@@ -224,7 +233,7 @@ function createManagementOperations(context) {
|
|
|
224
233
|
method: "POST",
|
|
225
234
|
operation: "scheduledTasks.create",
|
|
226
235
|
path: context.profile.apiPath("notebooks", notebook, "scheduled-tasks"),
|
|
227
|
-
schema:
|
|
236
|
+
schema: confirmedScheduledTaskSchema
|
|
228
237
|
});
|
|
229
238
|
},
|
|
230
239
|
async deleteScheduledTask(notebookId, taskId, options) {
|
|
@@ -237,7 +246,7 @@ function createManagementOperations(context) {
|
|
|
237
246
|
method: "DELETE",
|
|
238
247
|
operation: "scheduledTasks.delete",
|
|
239
248
|
path: context.profile.apiPath("notebooks", notebook, "scheduled-tasks", task),
|
|
240
|
-
schema:
|
|
249
|
+
schema: context.profile.access === "sash" ? sashScheduledTaskDeletionSchema : dashboardScheduledTaskDeletionSchema
|
|
241
250
|
});
|
|
242
251
|
},
|
|
243
252
|
async getCompilationSettings(notebookId, options) {
|
|
@@ -285,7 +294,7 @@ function createManagementOperations(context) {
|
|
|
285
294
|
method: "GET",
|
|
286
295
|
operation: "scheduledTasks.list",
|
|
287
296
|
path: context.profile.apiPath("notebooks", notebook, "scheduled-tasks"),
|
|
288
|
-
schema: scheduledTaskListSchema
|
|
297
|
+
schema: context.profile.access === "sash" ? sashScheduledTaskListSchema : scheduledTaskListSchema
|
|
289
298
|
});
|
|
290
299
|
},
|
|
291
300
|
async removeMember(notebookId, memberId, options) {
|
|
@@ -368,7 +377,7 @@ function createManagementOperations(context) {
|
|
|
368
377
|
method: "PUT",
|
|
369
378
|
operation: "scheduledTasks.update",
|
|
370
379
|
path: context.profile.apiPath("notebooks", notebook, "scheduled-tasks", task),
|
|
371
|
-
schema:
|
|
380
|
+
schema: confirmedScheduledTaskSchema
|
|
372
381
|
});
|
|
373
382
|
}
|
|
374
383
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as voidResponseSchema, Z as timestampSchema, c as optionalRecord, d as pagination, h as requiredText, l as optionalString, m as requiredString, n as call, p as queryPath, r as compactUndefined, t as assertNonEmptyPatch } from "./shared-53S5tNf6.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../sdk/src/operations/note-schemas.ts
|
|
4
4
|
const noteSchema = z.object({
|