@aliyunrds/ctxdb 1.0.8-beta.0 → 1.0.8-beta.1

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.
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  fetchKbCatalogBlock,
4
4
  recallTurn
5
- } from "./chunk-WSMZOFZQ.js";
5
+ } from "./chunk-NF5KFV2P.js";
6
6
 
7
7
  // src/lib/user-prompt-submit-compose.ts
8
8
  async function composeUserPromptSubmit(cfg, agent, client, prompt, sessionId = null) {
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- listKnowledgeBases
4
- } from "./chunk-CAXRYH6E.js";
5
2
  import {
6
3
  isConnectionError,
7
4
  resetCircuit,
8
5
  tripCircuit
9
- } from "./chunk-NJJBT52C.js";
6
+ } from "./chunk-3B7J5VUT.js";
7
+ import {
8
+ listKnowledgeBases
9
+ } from "./chunk-NFAPLK4C.js";
10
10
  import {
11
11
  CtxdbError
12
- } from "./chunk-AAZLOCVB.js";
12
+ } from "./chunk-KYW76CL7.js";
13
13
 
14
14
  // src/lib/kb-catalog.ts
15
15
  function sanitizeKeyEntities(raw) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CtxdbError
4
- } from "./chunk-AAZLOCVB.js";
4
+ } from "./chunk-KYW76CL7.js";
5
5
 
6
6
  // src/lib/kb.ts
7
7
  import {
@@ -4,12 +4,12 @@ import {
4
4
  isConnectionError,
5
5
  resetCircuit,
6
6
  tripCircuit
7
- } from "./chunk-NJJBT52C.js";
7
+ } from "./chunk-3B7J5VUT.js";
8
8
  import {
9
9
  CtxdbError,
10
10
  debug,
11
11
  isDebug
12
- } from "./chunk-AAZLOCVB.js";
12
+ } from "./chunk-KYW76CL7.js";
13
13
 
14
14
  // src/lib/capture-orchestrator.ts
15
15
  import {
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  fetchKbCatalogBlock,
4
4
  recallTurn
5
- } from "./chunk-WSMZOFZQ.js";
5
+ } from "./chunk-NF5KFV2P.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-AAZLOCVB.js";
8
+ } from "./chunk-KYW76CL7.js";
9
9
 
10
10
  // src/lib/warmup-recall.ts
11
11
  import { execSync } from "child_process";
package/dist/cli/main.js CHANGED
@@ -16,8 +16,9 @@ import {
16
16
  uploadFile,
17
17
  uploadText,
18
18
  validateLocalFile
19
- } from "../chunk-CAXRYH6E.js";
19
+ } from "../chunk-NFAPLK4C.js";
20
20
  import {
21
+ AGENT_CHOICES,
21
22
  CtxdbError,
22
23
  DEFAULT_BASE_URL,
23
24
  DEFAULT_USER_ID,
@@ -25,6 +26,7 @@ import {
25
26
  PACKAGE_NAME,
26
27
  PACKAGE_VERSION,
27
28
  SUPPORTED_AGENTS,
29
+ SUPPORTED_AGENT_CHOICES,
28
30
  agentFromEnv,
29
31
  agentHomeDir,
30
32
  agentHomeDirs,
@@ -41,7 +43,7 @@ import {
41
43
  save,
42
44
  updateConfiguredDebug,
43
45
  writeInstalledPkgVersion
44
- } from "../chunk-AAZLOCVB.js";
46
+ } from "../chunk-KYW76CL7.js";
45
47
  import {
46
48
  beginUpdateNotification,
47
49
  completeUpdateNotification,
@@ -2079,7 +2081,7 @@ async function runUpgrade(options = {}) {
2079
2081
  var STATUS_HELP = `ctxdb status \u2014 inspect configuration and connectivity
2080
2082
 
2081
2083
  USAGE
2082
- ctxdb status [--agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes|default> | --all] [--json]
2084
+ ctxdb status [--agent <${AGENT_CHOICES}> | --all] [--json]
2083
2085
 
2084
2086
  FLAGS
2085
2087
  --agent <name> Inspect exactly one Agent profile
@@ -2205,7 +2207,7 @@ async function ping(args) {
2205
2207
  var HELP = `ctxdb setup \u2014 configure an agent
2206
2208
 
2207
2209
  USAGE
2208
- ctxdb setup [--agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes> | --all]
2210
+ ctxdb setup [--agent <${SUPPORTED_AGENT_CHOICES}> | --all]
2209
2211
  [--api-key=K] [--base-url=URL] [--user-id=ID]
2210
2212
  [--no-install-skill] [--no-validate] [--json]
2211
2213
 
@@ -2226,7 +2228,7 @@ BEHAVIOR
2226
2228
  any running Hermes CLI/gateway process to load the hooks.
2227
2229
 
2228
2230
  FLAGS
2229
- --agent <name> Target agent (qoder|qoderwork|qwenwork|codex|claude|opencode|hermes)
2231
+ --agent <name> Target agent (${SUPPORTED_AGENT_CHOICES})
2230
2232
  --all Target every setup-compatible detected Agent
2231
2233
  --api-key <key> API key (required on first setup)
2232
2234
  --base-url <url> Server URL (default: https://context-database.aliyuncs.com)
@@ -2335,7 +2337,7 @@ ${highlightInlineCode(hint)}
2335
2337
  const agent = parseAgent(args);
2336
2338
  if (agent === "default" && !json && !configuredAgents().includes("default")) {
2337
2339
  process.stderr.write(
2338
- `hint: creating CLI-only "default" agent (no hooks/skills). Use --agent <claude|qoder|qoderwork|qwenwork|codex|opencode|hermes> for full setup.
2340
+ `hint: creating CLI-only "default" agent (no hooks/skills). Use --agent <${SUPPORTED_AGENT_CHOICES}> for full setup.
2339
2341
  `
2340
2342
  );
2341
2343
  }
@@ -2367,11 +2369,11 @@ var PACKAGE_UNINSTALL_TARGETS2 = DISTRIBUTION_MANIFEST.id === "internal" ? DISTR
2367
2369
  var HELP2 = `ctxdb uninstall \u2014 remove hooks + skills
2368
2370
 
2369
2371
  USAGE
2370
- ctxdb uninstall [--agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes>] [--purge-config] [--purge-logs] [--purge-all] [--json]
2372
+ ctxdb uninstall [--agent <${SUPPORTED_AGENT_CHOICES}>] [--purge-config] [--purge-logs] [--purge-all] [--json]
2371
2373
 
2372
2374
  DEFAULT BEHAVIOR (no --agent, no purge flags)
2373
- Strips ctxdb hook entries and skill directories for ALL agents (qoder,
2374
- qoderwork, qwenwork, codex, claude, opencode, hermes). Keeps ~/.ctxdb/ctxdb.json (credentials) and ~/.ctxdb/logs/
2375
+ Strips ctxdb hook entries and skill directories for ALL agents
2376
+ (${SUPPORTED_AGENTS.join(", ")}). Keeps ~/.ctxdb/ctxdb.json (credentials) and ~/.ctxdb/logs/
2375
2377
  so you can re-run \`ctxdb setup\` later without losing configuration.
2376
2378
 
2377
2379
  WITH --agent <name>
@@ -2379,7 +2381,7 @@ WITH --agent <name>
2379
2381
  Other agents remain untouched.
2380
2382
 
2381
2383
  FLAGS
2382
- --agent <name> Target a single agent (qoder|qoderwork|qwenwork|codex|claude|opencode|hermes)
2384
+ --agent <name> Target a single agent (${SUPPORTED_AGENT_CHOICES})
2383
2385
  --purge-config Also delete ~/.ctxdb/ctxdb.json
2384
2386
  --purge-logs Also delete ~/.ctxdb/logs/
2385
2387
  --purge-all Delete everything under ~/.ctxdb/
@@ -2433,7 +2435,7 @@ var UPDATE_REGISTRY_ARG = DISTRIBUTION_MANIFEST.packageRegistry ? ` --registry $
2433
2435
  var HELP3 = `ctxdb upgrade \u2014 refresh skills + hooks
2434
2436
 
2435
2437
  USAGE
2436
- ctxdb upgrade [--agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes>] [--no-self-update] [--json]
2438
+ ctxdb upgrade [--agent <${SUPPORTED_AGENT_CHOICES}>] [--no-self-update] [--json]
2437
2439
 
2438
2440
  BEHAVIOR
2439
2441
  Pulls the latest ${UPDATE_PACKAGE_NAME} package from npm, then re-runs setup
@@ -2443,7 +2445,7 @@ BEHAVIOR
2443
2445
  With --agent: sets up only the specified agent.
2444
2446
 
2445
2447
  FLAGS
2446
- --agent <name> Target a single agent (qoder|qoderwork|qwenwork|codex|claude|opencode|hermes)
2448
+ --agent <name> Target a single agent (${SUPPORTED_AGENT_CHOICES})
2447
2449
  --self-update Pull latest package from npm (enabled by default)
2448
2450
  --no-self-update Skip the npm package update and only re-run setup
2449
2451
  --json Machine-readable JSON output
@@ -2528,6 +2530,7 @@ ${h}
2528
2530
 
2529
2531
  // src/cli/skill-cli.ts
2530
2532
  var SUPPORTED_TARGETS = Object.keys(SKILL_INSTALL_TARGETS);
2533
+ var SUPPORTED_TARGET_CHOICES = SUPPORTED_TARGETS.join("|");
2531
2534
  var HELP4 = `ctxdb skill install \u2014 install skill files to an agent's skill directory
2532
2535
 
2533
2536
  USAGE
@@ -4296,18 +4299,20 @@ USAGE
4296
4299
  ctxdb <command> [args] [--flags]
4297
4300
 
4298
4301
  COMMANDS
4299
- setup [--agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes> | --all]
4302
+ setup [--agent <${SUPPORTED_AGENT_CHOICES}> | --all]
4300
4303
  [--api-key=K] [--base-url=URL] [--user-id=ID]
4301
4304
  [--no-install-skill] [--no-validate] [--json]
4302
4305
  Without --agent \u2192 writes agents.default (CLI-only, no hooks/skills)
4303
4306
  Qoder \u2192 writes agents.qoder config + ~/.qoder/settings.json hooks + skill
4304
4307
  QoderWork \u2192 writes agents.qoderwork config + ~/.qoderwork/settings.json hooks + skill
4308
+ QwenWork \u2192 writes agents.qwenwork config + ~/.qwenwork/settings.json hooks + skill
4305
4309
  Codex \u2192 writes agents.codex config + ~/.codex/hooks.json hooks + skill
4306
4310
  Claude \u2192 writes agents.claude config + ~/.claude/settings.json hooks + skill
4307
4311
  OpenCode \u2192 writes agents.opencode config + ~/.config/opencode/plugins/ctxdb.ts shim + skill
4308
4312
  Hermes \u2192 writes agents.hermes config + ~/.hermes/config.yaml pre/post_llm_call hooks + skill
4309
4313
  Approve pre_llm_call + post_llm_call with \`hermes --accept-hooks chat\`
4310
4314
  (exit chat, rerun setup, then restart any running Hermes CLI/gateway)
4315
+ WorkBuddy \u2192 writes agents.workbuddy config + ~/.workbuddy/settings.json hooks + skill
4311
4316
  --all \u2192 detects and configures every setup-compatible built-in Agent
4312
4317
  status [--agent <name> | --all] [--json]
4313
4318
  Inspect configuration, connectivity, and integration health.
@@ -4456,7 +4461,7 @@ COMMANDS
4456
4461
  All kb review commands accept --json.
4457
4462
 
4458
4463
 
4459
- skill install --target <qoder|qoderwork|qwenwork|codex|claude|opencode|openclaw|hermes> [--json]
4464
+ skill install --target <${SUPPORTED_TARGET_CHOICES}> [--json]
4460
4465
  skill install --path <dir> [--json]
4461
4466
  Install skill files (contextdb-memory,
4462
4467
  contextdb-knowledge) to an agent's skill directory.
@@ -4478,7 +4483,7 @@ HOOK ENV VARS:
4478
4483
  CTXDB_SKIP_HOOKS=TRUE Hook/plugin entrypoints exit immediately.
4479
4484
  Direct ctxdb CLI commands are unchanged.
4480
4485
 
4481
- CONFIG: ~/.ctxdb/ctxdb.json (agents.default / agents.qoder / agents.qoderwork / agents.codex / agents.claude / agents.opencode / agents.hermes)
4486
+ CONFIG: ~/.ctxdb/ctxdb.json (agents.default / ${SUPPORTED_AGENTS.map((agent) => `agents.${agent}`).join(" / ")})
4482
4487
  LOGS: ~/.ctxdb/logs/ctxdb.log, ~/.ctxdb/logs/recall-trace.jsonl
4483
4488
  `;
4484
4489
  var ROUTES = {
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  captureParsedMessages
4
- } from "../chunk-HF2CWTRU.js";
5
- import "../chunk-NJJBT52C.js";
4
+ } from "../chunk-SGRMPSZU.js";
5
+ import "../chunk-3B7J5VUT.js";
6
+ import {
7
+ shouldSkipHooks
8
+ } from "../chunk-5ML4VSXN.js";
6
9
  import {
7
10
  HttpClient,
8
11
  agentFromArgvWithFallback,
9
12
  debug,
10
13
  load,
11
14
  setDebug
12
- } from "../chunk-AAZLOCVB.js";
13
- import {
14
- shouldSkipHooks
15
- } from "../chunk-5ML4VSXN.js";
15
+ } from "../chunk-KYW76CL7.js";
16
16
  import "../chunk-R67JELM7.js";
17
17
  import "../chunk-VIG4SYLU.js";
18
18
 
@@ -2,17 +2,20 @@
2
2
  import {
3
3
  HOOK_TIMEOUT_MS,
4
4
  composeSessionStart
5
- } from "../chunk-24CNB3XJ.js";
5
+ } from "../chunk-TYW6ABNS.js";
6
6
  import {
7
7
  composeUserPromptSubmit
8
- } from "../chunk-BBTXHFMD.js";
8
+ } from "../chunk-LTAO6USK.js";
9
9
  import {
10
10
  fetchKbCatalogBlock
11
- } from "../chunk-WSMZOFZQ.js";
12
- import "../chunk-CAXRYH6E.js";
11
+ } from "../chunk-NF5KFV2P.js";
13
12
  import {
14
13
  isCircuitOpen
15
- } from "../chunk-NJJBT52C.js";
14
+ } from "../chunk-3B7J5VUT.js";
15
+ import {
16
+ shouldSkipHooks
17
+ } from "../chunk-5ML4VSXN.js";
18
+ import "../chunk-NFAPLK4C.js";
16
19
  import {
17
20
  HttpClient,
18
21
  agentFromArgvWithFallback,
@@ -20,10 +23,7 @@ import {
20
23
  isComplete,
21
24
  load,
22
25
  setDebug
23
- } from "../chunk-AAZLOCVB.js";
24
- import {
25
- shouldSkipHooks
26
- } from "../chunk-5ML4VSXN.js";
26
+ } from "../chunk-KYW76CL7.js";
27
27
  import "../chunk-R67JELM7.js";
28
28
  import "../chunk-VIG4SYLU.js";
29
29
 
@@ -3,12 +3,15 @@ import {
3
3
  HOOK_TIMEOUT_MS,
4
4
  composeSessionStart,
5
5
  formatSessionStartStdout
6
- } from "../chunk-24CNB3XJ.js";
7
- import "../chunk-WSMZOFZQ.js";
8
- import "../chunk-CAXRYH6E.js";
6
+ } from "../chunk-TYW6ABNS.js";
7
+ import "../chunk-NF5KFV2P.js";
9
8
  import {
10
9
  isCircuitOpen
11
- } from "../chunk-NJJBT52C.js";
10
+ } from "../chunk-3B7J5VUT.js";
11
+ import {
12
+ shouldSkipHooks
13
+ } from "../chunk-5ML4VSXN.js";
14
+ import "../chunk-NFAPLK4C.js";
12
15
  import {
13
16
  HttpClient,
14
17
  agentFromArgvWithFallback,
@@ -16,10 +19,7 @@ import {
16
19
  isComplete,
17
20
  load,
18
21
  setDebug
19
- } from "../chunk-AAZLOCVB.js";
20
- import {
21
- shouldSkipHooks
22
- } from "../chunk-5ML4VSXN.js";
22
+ } from "../chunk-KYW76CL7.js";
23
23
  import "../chunk-R67JELM7.js";
24
24
  import "../chunk-VIG4SYLU.js";
25
25
 
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  captureTurn
4
- } from "../chunk-HF2CWTRU.js";
5
- import "../chunk-NJJBT52C.js";
4
+ } from "../chunk-SGRMPSZU.js";
5
+ import "../chunk-3B7J5VUT.js";
6
+ import {
7
+ shouldSkipHooks
8
+ } from "../chunk-5ML4VSXN.js";
6
9
  import {
7
10
  HttpClient,
8
11
  agentFromArgvWithFallback,
9
12
  debug,
10
13
  load,
11
14
  setDebug
12
- } from "../chunk-AAZLOCVB.js";
13
- import {
14
- shouldSkipHooks
15
- } from "../chunk-5ML4VSXN.js";
15
+ } from "../chunk-KYW76CL7.js";
16
16
  import "../chunk-R67JELM7.js";
17
17
  import "../chunk-VIG4SYLU.js";
18
18
 
@@ -2,12 +2,15 @@
2
2
  import {
3
3
  composeUserPromptSubmit,
4
4
  formatUserPromptSubmitStdout
5
- } from "../chunk-BBTXHFMD.js";
6
- import "../chunk-WSMZOFZQ.js";
7
- import "../chunk-CAXRYH6E.js";
5
+ } from "../chunk-LTAO6USK.js";
6
+ import "../chunk-NF5KFV2P.js";
8
7
  import {
9
8
  isCircuitOpen
10
- } from "../chunk-NJJBT52C.js";
9
+ } from "../chunk-3B7J5VUT.js";
10
+ import {
11
+ shouldSkipHooks
12
+ } from "../chunk-5ML4VSXN.js";
13
+ import "../chunk-NFAPLK4C.js";
11
14
  import {
12
15
  HttpClient,
13
16
  agentFromArgvWithFallback,
@@ -15,10 +18,7 @@ import {
15
18
  isComplete,
16
19
  load,
17
20
  setDebug
18
- } from "../chunk-AAZLOCVB.js";
19
- import {
20
- shouldSkipHooks
21
- } from "../chunk-5ML4VSXN.js";
21
+ } from "../chunk-KYW76CL7.js";
22
22
  import "../chunk-R67JELM7.js";
23
23
  import "../chunk-VIG4SYLU.js";
24
24
 
@@ -19,7 +19,7 @@ description: contextdb 知识库高频操作(查询 / 浏览 KB / 上传或更
19
19
 
20
20
  ## 2. 高频 recipes
21
21
 
22
- > 命令里的 `--agent={{agent}}` 是当前 skill 安装目标。不要把示例改成 `qoder`;如果读到未替换的双花括号 agent 模板,先按 §6 判定真实 agent,再替换成 `qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`。
22
+ > 命令里的 `--agent={{agent}}` 是当前 skill 安装目标。不要把示例改成 `qoder`;如果读到未替换的双花括号 agent 模板,先按 §6 判定真实 agent,再替换成 `qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`。
23
23
 
24
24
  ### Recipe 1:在已知 KB 中查内容(最常见)
25
25
 
@@ -239,18 +239,18 @@ init 使用 PUT,part/complete 保持原协议;网络结果不明确时不自
239
239
 
240
240
  | 参数 | 说明 |
241
241
  |------|------|
242
- | `--agent=<name>` | **必填**。指定操作哪个 agent 的配置桶(`qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`) |
242
+ | `--agent=<name>` | **必填**。指定操作哪个 agent 的配置桶(`qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`) |
243
243
 
244
244
  `--agent` 解析顺序:
245
245
  1. 命令行显式 `--agent=<name>` → 用它
246
246
  2. 缺省 → 读 `CTXDB_AGENT` 环境变量
247
247
  3. env 也没有 → 落到 `"default"` 桶
248
- 4. 新版本 `ctxdb setup --agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes>` 会在 `agents.default` 缺失时复制当前 agent 配置作为兜底
248
+ 4. 新版本 `ctxdb setup --agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes|workbuddy>` 会在 `agents.default` 缺失时复制当前 agent 配置作为兜底
249
249
  5. 若 `"default"` 桶仍不存在或未配置完整 → exit 2 "config incomplete for agent default"
250
250
 
251
251
  ## 7. 配置
252
252
 
253
- - 配置文件:`~/.ctxdb/ctxdb.json`,分 `agents.<name>` 段(`qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`),互不复用
253
+ - 配置文件:`~/.ctxdb/ctxdb.json`,分 `agents.<name>` 段(`qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`),互不复用
254
254
  - 配置命令:`ctxdb setup --agent <name> --api-key=<key> --base-url=<url> [--user-id=<id>]`
255
255
  - 带 `--agent` 时还会装 hooks + skill;若 `agents.default` 缺失,会复制当前 agent 配置作为 CLI 兜底
256
256
  - `--agent default` 只写 `agents.default` 段(仅 CLI 用,不装 hooks / skill)
@@ -18,7 +18,7 @@ description: contextdb 长期记忆高频操作(主动记忆 / 搜索过往 /
18
18
 
19
19
  ## 2. 高频 recipes
20
20
 
21
- > 命令里的 `--agent={{agent}}` 是当前 skill 安装目标。不要把示例改成 `qoder`;如果读到未替换的双花括号 agent 模板,先按 §6 判定真实 agent,再替换成 `qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`。
21
+ > 命令里的 `--agent={{agent}}` 是当前 skill 安装目标。不要把示例改成 `qoder`;如果读到未替换的双花括号 agent 模板,先按 §6 判定真实 agent,再替换成 `qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`。
22
22
 
23
23
  ### Recipe 1:主动记忆("记住 X")
24
24
 
@@ -165,18 +165,18 @@ ctxdb memory delete <memory-id> --agent={{agent}}
165
165
 
166
166
  | 参数 | 说明 |
167
167
  |------|------|
168
- | `--agent=<name>` | **必填**。指定操作哪个 agent 的配置桶(`qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`) |
168
+ | `--agent=<name>` | **必填**。指定操作哪个 agent 的配置桶(`qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`) |
169
169
 
170
170
  `--agent` 解析顺序:
171
171
  1. 命令行显式 `--agent=<name>` → 用它
172
172
  2. 缺省 → 读 `CTXDB_AGENT` 环境变量
173
173
  3. env 也没有 → 落到 `"default"` 桶
174
- 4. 新版本 `ctxdb setup --agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes>` 会在 `agents.default` 缺失时复制当前 agent 配置作为兜底
174
+ 4. 新版本 `ctxdb setup --agent <qoder|qoderwork|qwenwork|codex|claude|opencode|hermes|workbuddy>` 会在 `agents.default` 缺失时复制当前 agent 配置作为兜底
175
175
  5. 若 `"default"` 桶仍不存在或未配置完整 → exit 2 "config incomplete for agent default"
176
176
 
177
177
  ## 7. 配置
178
178
 
179
- - 配置文件:`~/.ctxdb/ctxdb.json`,分 `agents.<name>` 段(`qoder` / `qoderwork` / `codex` / `claude` / `opencode` / `hermes` / `default`),互不复用
179
+ - 配置文件:`~/.ctxdb/ctxdb.json`,分 `agents.<name>` 段(`qoder` / `qoderwork` / `qwenwork` / `codex` / `claude` / `opencode` / `hermes` / `workbuddy` / `default`),互不复用
180
180
  - 配置命令:`ctxdb setup --agent <name> --api-key=<key> --base-url=<url> [--user-id=<id>]`
181
181
  - 带 `--agent` 时还会装 hooks + skill;若 `agents.default` 缺失,会复制当前 agent 配置作为 CLI 兜底
182
182
  - `--agent default` 只写 `agents.default` 段(仅 CLI 用,不装 hooks / skill)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aliyunrds/ctxdb",
3
- "version": "1.0.8-beta.0",
3
+ "version": "1.0.8-beta.1",
4
4
  "type": "module",
5
- "description": "Unified access layer for RDS ContextDatabase: `ctxdb` CLI (memory + KB ops), one-shot `setup --agent <qoder|qoderwork|codex|claude|opencode|hermes>` installer, per-agent config, hooks/plugins, and SKILL.md.",
5
+ "description": "Unified access layer for RDS ContextDatabase: `ctxdb` CLI (memory + KB ops), one-shot multi-agent installer, per-agent config, hooks/plugins, and SKILL.md.",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "rds-context-database",
@@ -10,8 +10,10 @@
10
10
  "memory",
11
11
  "knowledge-base",
12
12
  "qoder",
13
+ "qwenwork",
13
14
  "codex",
14
15
  "claude-code",
16
+ "workbuddy",
15
17
  "opencode",
16
18
  "hermes",
17
19
  "hooks"