@guandata/decidex 0.6.0 → 0.7.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/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Decidex CLI
2
2
 
3
- 基于 Decidex **0.0.10** HTTP API 的零依赖 Node.js CLI(CLI 版本 0.6.0)。要求 Node.js 22+。
3
+ 基于 Decidex **0.0.12** HTTP API 的零依赖 Node.js CLI(CLI 版本 0.7.0)。要求 Node.js 22+。
4
4
 
5
- 适配基线:[tag 0.0.10 / b14beee9a](https://gitlab.mayidata.com/zijie0/decidex/-/tree/0.0.10),2026-11-18。按实际部署的 release 契约执行,保留 0.0.5 调度兼容。
5
+ 适配基线:[tag 0.0.12 / 43ec18de2](https://gitlab.mayidata.com/zijie0/decidex/-/tree/0.0.12),2026-11-20。按实际部署的 release 契约执行,保留 0.0.5 调度兼容。
6
6
 
7
7
  ```bash
8
- npm install -g @guandata/decidex@0.6.0
8
+ npm install -g @guandata/decidex@0.7.0
9
9
  decidex version --json # 本地 CLI 版本
10
10
  decidex server version # 目标服务端版本与 commit
11
11
  decidex server check auth whoami
@@ -35,7 +35,7 @@ decidex auth whoami # 服务端 >= 0.0.5,返回已验证的
35
35
 
36
36
  版本来自已登录目标的 `GET /api/app-version`,每次 CLI 进程重新读取,不持久缓存。`version` 查询即使遇到 `dev` 等版本也会显示原值和 `comparable=false`;需要版本决策的命令遇到无法比较的版本、认证失败或版本查询失败会明确报错,不猜测版本或在写入失败后重试另一种协议。
37
37
 
38
- `server check` 对没有版本规则的命令返回 `supported=null`、`reason=no_version_rule`,表示尚未声明版本边界,不能据此断言目标支持。`0.0.10` 是本次适配基线,不是所有命令的首次发布版本。SemVer 比较支持 `v` 前缀、预发布和构建信息;例如 `0.0.8-rc.1` 低于正式 `0.0.8`。
38
+ `server check` 对没有版本规则的命令返回 `supported=null`、`reason=no_version_rule`,表示尚未声明版本边界,不能据此断言目标支持。`0.0.12` 是本次适配基线,不是所有命令的首次发布版本。`agent improvement` 仅在 0.0.8–0.0.10 保留,0.0.11 起返回 `removed_in_release`。不指定命令的 `server check` 包含这些历史命令,发现已移除命令也会以退出码 1 返回;按需指定命令检查。SemVer 比较支持 `v` 前缀、预发布和构建信息;例如 `0.0.8-rc.1` 低于正式 `0.0.8`。
39
39
 
40
40
  已核实的版本差异:
41
41
 
@@ -172,6 +172,8 @@ decidex run diagnose RUN_ID --session-id SESSION_ID --json
172
172
 
173
173
  服务端 >= 0.0.9 可用 `decidex session follow-ups SESSION_ID --run-id RUN_ID` 读取已保存的推荐追问;它只返回最新成功 Run 的结果,不发起模型任务。`pending=true` 表示仍在生成,`prompts=[]` 也可能表示关闭或当前 Run 不适用;命令不会自动把推荐内容发送出去。
174
174
 
175
+ 服务端 0.0.12 起模型目录属于当前组织;切换组织或迁移后重新执行 `agent models`,不要复用其他组织的模型条目 ID。
176
+
175
177
  `session rename` 的标题不能为空,最多 24 个字符。
176
178
 
177
179
  会话列表按页返回;`--cursor` 接收 `nextCursor` 原值,`--agent-id` 查询指定 Agent 的历史页。`--status` 只过滤当前页,`completed` 表示非 RUNNING(含 ERROR),空页仍可能有下一页。`--query` 不可与 `--cursor` / `--agent-id` 同用。`session view --before OLDER_CURSOR` 读取更早消息,`--since LIVE_CURSOR` 读取增量;两者互斥。
@@ -179,15 +181,31 @@ decidex run diagnose RUN_ID --session-id SESSION_ID --json
179
181
  `session send` 同样支持附件、引用数组和推理档位。切换模型需先执行 `session model`,不能把模型参数混入续问接口。
180
182
 
181
183
  ```bash
184
+ decidex session queue add SESSION_ID --message "下一轮核查渠道变化"
182
185
  decidex session queue list SESSION_ID
183
186
  decidex session queue edit SESSION_ID DRAFT_ID --message "修改后的问题"
184
187
  decidex session queue delete SESSION_ID DRAFT_ID
185
188
  decidex session queue continue SESSION_ID --wait --follow
186
189
  ```
187
190
 
188
- `queue continue` 启动队首消息,可等待该 Run;不会等待整个队列清空。
191
+ `queue add` 要求服务端 >= 0.0.11,显式排到下一轮,仅支持纯文本(可带 `--reasoning-effort`);只有已有活动 Run 或队列时才可入队,空闲无队列返回 409。`queue continue` 启动队首消息,可等待该 Run;不会等待整个队列清空。
192
+
193
+ `session send --wait` 要求消息立即启动;会话正忙时服务端会在入队前返回冲突,避免 CLI 假失败后重试造成重复入队。0.0.11 起不带 `--wait` 的纯文本可能被送入正在运行的本轮,而非排到下一轮;保留返回的 `kind`、`runId` 和 `userMessage.inputStatus`。需要明确绑定本轮时同时传以下两个参数,同次提交保持同一 UUID;本轮结束或变化返回 409,先查会话,不自动改为新 Run 或重试。
194
+
195
+ ```bash
196
+ decidex session send SESSION_ID --message "补充:只看直营渠道" --expected-run-id RUN_ID --submission-id UUID
197
+ ```
198
+
199
+ 此用法要求服务端 >= 0.0.11,仅支持纯文本,不能带 `--wait`、附件、引用或推理档位;接收成功不等于模型已消费输入。
189
200
 
190
- `session send --wait` 要求消息立即启动;会话正忙时服务端会在入队前返回冲突,避免 CLI 假失败后重试造成重复入队。不带 `--wait` 时结果可能是 `kind=direct` 或 `kind=queued`。
201
+ ### 读取回答绑定的证据(服务端 >= 0.0.11)
202
+
203
+ ```bash
204
+ decidex session evidence SESSION_ID --message-id ASSISTANT_MESSAGE_ID --path workspace/analysis/turn.boe
205
+ decidex session evidence SESSION_ID --message-id ASSISTANT_MESSAGE_ID --path workspace/analysis/turn.boe --file workspace/analysis/source.csv --output source.csv
206
+ ```
207
+
208
+ 消息 ID 从 `session view` 获取。`fixed` 表示已固定证据快照,后续工作区改写不改变该快照;`legacy` 是旧回答证据,不能下载关联源文件;`unavailable` 表示没有可用证据,属于业务状态而非传输失败。下载必须显式指定 `--output`,仅能读取该回答绑定的文件。需要复核原回答时使用此入口;`session files` 仍读取当前工作区。
191
209
 
192
210
  `session files --scope analysis` 列出 `workspace/analysis/` 下的全部分析文件,包含 `.boe`;`--suffix` 按文件后缀过滤且不区分大小写。下载默认拒绝覆盖已有文件,也拒绝通过符号链接写出目标目录;确认覆盖普通文件时加 `--overwrite`。`run diagnose` 未显式传 `--session-id` 时会使用最近 50 条本地 Run 映射;若本地配置不可写,远端 Run 仍会继续,CLI 会先输出 Session/Run ID,之后可用显式 ID 恢复诊断。当前后端未向用户 API 暴露 Runner 的 Pod termination reason 和资源指标,结果会将这两项标记为 `not_exposed`。
193
211
 
@@ -299,7 +317,7 @@ decidex eval files download AGENT_ID RUN_ID --scope analysis --suffix .boe --all
299
317
 
300
318
  `eval files download` 按 Case 分目录下载评测会话文件;用 `--scope analysis --suffix .boe` 可只下载证据链。该命令要求服务端评测详情返回 `targetSessionId`;旧版服务端会给出明确升级提示。
301
319
 
302
- ## 专家协作与后台改进(服务端 >= 0.0.8)
320
+ ## 专家协作(服务端 >= 0.0.8)与旧版后台改进
303
321
 
304
322
  普通 Personal Agent 人工 normal 会话空闲且无排队消息时,可显式开启专家协作。先检查 `available`;平台功能开关或 Runtime 不满足要求时,服务端会拒绝,不会自动开启配置:
305
323
 
@@ -319,7 +337,7 @@ decidex session collaboration download SESSION_ID shared/result.txt ./result.txt
319
337
 
320
338
  显式继续已停止的工作使用 `continue SESSION_ID --submission-id UUID`;同一次操作保留相同 UUID,响应不确定时先查状态,不自动重新触发。`session send` 原有的普通回复或排队返回不能替代协作交付确认。
321
339
 
322
- 后台改进开关独立于 Agent JSON,需要编辑权限:
340
+ 以下后台改进命令仅保留给服务端 0.0.8–0.0.10;0.0.11 已移除后台改进与知识修改建议接口,CLI 在请求前拒绝,不提供替代自动改进命令。旧环境的开关独立于 Agent JSON,需要编辑权限:
323
341
 
324
342
  ```bash
325
343
  decidex agent improvement get AGENT_ID
@@ -422,6 +440,8 @@ decidex tracking review TASK_ID --wait
422
440
  decidex tracking report TASK_ID report.html
423
441
  ```
424
442
 
443
+ 对某条回答创建追踪时,`preview` 与 `create` 都带相同的 `--source-message-id ASSISTANT_MESSAGE_ID`:服务端 >= 0.0.11 会按消息证据快照预览及创建;旧版本继续按会话文件预览,消息 ID 仅作来源记录。省略该参数仍使用当前会话文件。
444
+
425
445
  `create` 使用服务端校验后的候选和 `evidenceVersion`,证据变化时保留 409。相同来源重复创建返回原任务;`lookup` 可按会话和两个路径查找。初始报告异步生成,用 `wait TASK_ID` 继续等待;失败后可显式 `retry TASK_ID --wait`;已有初始报告时返回原结果,不重复启动。
426
446
 
427
447
  支持 `rename TASK_ID 标题`、`pause/resume/close/delete TASK_ID`、`reviews TASK_ID --cursor CURSOR`。`schedule TASK_ID schedule.json` 接收 `{ "reviewFrequency": "WEEKLY", "nextReviewAt": "2026-11-12T01:00:00.000Z" }`,频率也可为 `MONTHLY`、`QUARTERLY`。初始报告完成后才能暂停、恢复、结束或复核。
@@ -448,7 +468,9 @@ decidex platform coverage
448
468
 
449
469
  版本边界来自 release tag 中的路由存在性,**不等于该版本所有业务字段均兼容**;字段与权限仍以服务端契约为准。仅在 main 存在的操作默认拒绝,确认目标已部署后才能显式 `--allow-unreleased`,不猜测未来版本号。`inputHints` 是路由文件线索,不是完整请求 schema。
450
470
 
451
- 当前目录覆盖 486/486 个纳入范围的操作,全部存在于 0.0.10 tag。全部 613 个路由操作中另有 127 个运行时、服务令牌、公开分享、回调、流式或代理协议,未纳入浏览器登录态 CLI;按全部路由计为 79.3%。这表示操作入口覆盖,不是逐接口业务验证或真实冒烟覆盖。详见 [覆盖审计](docs/api-coverage.md)。
471
+ 当前目录覆盖 482/482 个纳入范围的操作,全部存在于 0.0.12 tag。全部 609 个路由操作中另有 127 个运行时、服务令牌、公开分享、回调、流式或代理协议,未纳入浏览器登录态 CLI;按全部路由计为 79.1%。这表示操作入口覆盖,不是逐接口业务验证或真实冒烟覆盖。详见 [覆盖审计](docs/api-coverage.md)。
472
+
473
+ 0.0.12 的模型与定价管理改用 `organization-models.*` / `organization-model-pricing-profiles.*`,不再使用 `platform.models.*` / `platform.model-pricing-profiles.*`。先用 `platform list --query organization-models` 查当前目录,写入权限由服务端判断。
452
474
 
453
475
  ## 组织
454
476
 
@@ -503,7 +525,7 @@ CI 中可使用 `DECIDEX_BASE_URL` 和 `DECIDEX_SESSION`,无需写本地配置
503
525
  npm test
504
526
  npm pack --dry-run
505
527
  # 更新 API 目录:必须指定已核对的源码 commit 和适配 tag
506
- python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.10
528
+ python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.12
507
529
  npm install -g . # 更新本机 decidex;不发布到 npm
508
530
  ```
509
531
 
@@ -543,3 +565,8 @@ CLI 0.5.0 适配 `0.0.8 / b5cbd94c0`:新增专家协作状态、开启/继续/
543
565
  ## 2026-11-18 / 服务端 0.0.10 适配
544
566
 
545
567
  CLI 0.6.0 适配 `0.0.10 / b14beee9a`,核对 0.0.9 与 0.0.10 tag:补充产品授权状态、推荐追问读取和开关,适配协作说明确认与专家名单。保留 0.0.8 激活协议及 0.0.9 旧配置字段,0.0.10 不自动迁移已改变含义的授权。操作目录新增本体草稿、BI 元数据、平台 BI 连接等入口,移除组织用户记忆建议的确认/拒绝,记忆列表不再返回 suggestions。需浏览器事务 Cookie 的 BI OAuth 授权起点不纳入普通 CLI 调用。目录为 486 项管理操作,逐接口业务验证仍有限。
568
+
569
+
570
+ ## 2026-11-20 / 服务端 0.0.12 适配
571
+
572
+ CLI 0.7.0 适配 `0.0.12 / 43ec18de2`,核对 0.0.11 与 0.0.12 tag:新增显式排队、绑定活动 Run 的文本输入、回答证据快照读取与下载;指标追踪预览与创建使用同一消息证据来源。0.0.11 起阻止已移除的后台改进命令,保留旧版用法。模型与定价管理迁移到组织目录,当前目录为 482 项操作。42 项回归通过,真实环境验证输入、队列和证据快照不随工作区覆盖而变化;合成私有资源已删除。管理员写配置和所有目录操作未逐项冒烟。
@@ -1,18 +1,18 @@
1
1
  # API 覆盖审计
2
2
 
3
- 更新:2026-11-18;CLI:0.6.0;适配服务端:0.0.10。
3
+ 更新:2026-11-20;CLI:0.7.0;适配服务端:0.0.12。
4
4
 
5
- 源码依据与适配基线:[0.0.10 / b14beee9a](https://gitlab.mayidata.com/zijie0/decidex/-/tree/0.0.10),与生产 `server version` 返回的 commit 一致。逐一扫描 `src/app/api/**/route.ts` 的 HTTP 方法导出,以“方法 + 路径”计数,未把 `decidex api` 兜底算作覆盖。
5
+ 源码依据与适配基线:[0.0.12 / 43ec18de2](https://gitlab.mayidata.com/zijie0/decidex/-/tree/0.0.12),与生产 `server version` 返回的 commit 一致。逐一扫描 `src/app/api/**/route.ts` 的 HTTP 方法导出,以“方法 + 路径”计数,未把 `decidex api` 兜底算作覆盖。
6
6
 
7
7
  ## 覆盖口径
8
8
 
9
9
  | 范围 | 操作数 | CLI 入口 |
10
10
  | --- | ---: | --- |
11
- | 用户/管理员主动调用的 HTTP 操作 | 486 | 全部注册到 `platform list/show/call`,目录覆盖 100% |
12
- | 其中存在于 0.0.10 tag | 486 | 默认可调用,实际权限由服务端判断 |
11
+ | 用户/管理员主动调用的 HTTP 操作 | 482 | 全部注册到 `platform list/show/call`,目录覆盖 100% |
12
+ | 其中存在于 0.0.12 tag | 482 | 默认可调用,实际权限由服务端判断 |
13
13
  | 其中仅在 main | 0 | 本次目录仅取部署 release |
14
14
  | 运行时、分享、认证回调等协议 | 127 | 不纳入浏览器登录态 CLI |
15
- | 全部路由操作 | 613 | 按全部路由计算为 79.3% |
15
+ | 全部路由操作 | 609 | 按全部路由计算为 79.1% |
16
16
 
17
17
  **90% 目标在“用户/管理员主动操作”的入口范围内达到;若包含服务协议全部路由,仍未达到 90%。** 目录注册证明请求入口可发现、路径参数可校验、传输可执行,不证明每个接口字段已适配或业务功能经过冒烟。特殊协议不应通过替换认证头强行视为普通管理 API。
18
18
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  - 行动任务:建议/成员读取、创建/幂等、查询、采纳/拒绝/完成/取消,保留版本冲突与操作理由。
22
22
  - 指标追踪:候选与证据确认、创建/查询/等待、标题与调度、暂停/恢复/结束、复核历史、HTML 报告、失败重试与删除。
23
- - 操作目录:补足既有专用命令之外的知识库 CRUD/文件、Agent 记忆/权限/发布/自进化、Skill 治理、组织成员/渠道/机器人/邮件、MCP 连接器、运营分析和平台管理等调用入口。支持 JSON、查询参数、multipart、二进制上传与下载。
23
+ - 操作目录:补足既有专用命令之外的知识库 CRUD/文件、Agent 记忆/权限/发布、Skill 治理、组织成员/渠道/机器人/邮件、MCP 连接器、运营分析和平台管理等调用入口。支持 JSON、查询参数、multipart、二进制上传与下载。
24
24
 
25
25
  ## 仍有的差距
26
26
 
@@ -58,10 +58,19 @@
58
58
  - 0.0.9 协作说明按组织成员保存,CLI 只在显式 consent 时提交版本 1;0.0.10 配置改为 collaborationEnabled 与专家 ID 名单,旧字段不自动转换授权。0.0.8 激活协议及 0.0.9 旧配置用法保留版本分支。
59
59
  - 授权阻断保留原 HTTP 403、错误码和 reason,不触发重新登录或重试。推荐追问读取只查询保存结果,空列表不等同于执行失败。0.0.10 导入包不复制源专家绑定,真实导入验证了告警和移除行为。
60
60
 
61
+ ## 0.0.11 / 0.0.12 版本差异
62
+
63
+ - 相比 0.0.10 新增 16 个操作、移除 20 个操作,净减 4 项;609 个全路由中纳入 482 项,排除 127 项。新增消息证据读取、显式队列创建、参考文件编辑草稿统计,以及组织模型、定价与执行策略配置。
64
+ - 0.0.11 移除后台改进、自进化和知识修改建议全部操作,以及旧 interrupt-and-send;原生 improvement 命令仅兼容 0.0.8–0.0.10,声明 removedIn=0.0.11。手工维护 Agent 记忆仍保留。
65
+ - 0.0.11 的 chat 支持 expectedRunId + submissionId 向活动 Run 提交纯文本;CLI 保留 409、不自动重试或降级启动。显式下一轮用 queue add。回答证据按消息固定,读取区分 fixed/legacy/unavailable,下载仅限快照绑定文件。
66
+ - tracking --source-message-id 在 >=0.0.11 同时用于预览与创建,避免先读当前文件、再按快照创建导致证据版本冲突;低于该版本保留 session-file 协议。
67
+ - 0.0.12 的模型与定价管理从 platform 命名空间迁移到组织;高层 agent models 接口不变,返回当前组织目录,迁移或切组织后需重新取 ID。评测模型也按组织校验,不复用跨组织条目。
68
+ - 42 项回归通过;真实环境验证活动输入、队列、模型目录、证据 JSON/下载及快照不随工作区改写而变化,私有合成资源已清理。追踪来源参数由本地契约测试验证,未新增生产追踪任务;组织管理员写配置未执行。
69
+
61
70
  ## 复核方法
62
71
 
63
72
  ```bash
64
- python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.10
73
+ python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.12
65
74
  decidex platform coverage
66
75
  decidex platform list --group knowledge-library
67
76
  decidex platform show knowledge-library.folders.documents.create
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guandata/decidex",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "CLI for building and operating Decidex ontologies, agents, skills, sessions, and evaluations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceCommit": "b14beee9a0478a102e93894b53c5eaa042a7e2ce",
4
- "baselineVersion": "0.0.10",
5
- "baselineCommit": "b14beee9a0478a102e93894b53c5eaa042a7e2ce",
3
+ "sourceCommit": "43ec18de2dd7dbd936b25caa431f78de1a06398c",
4
+ "baselineVersion": "0.0.12",
5
+ "baselineCommit": "43ec18de2dd7dbd936b25caa431f78de1a06398c",
6
6
  "coverage": {
7
- "allRouteOperations": 613,
8
- "eligibleOperations": 486,
9
- "catalogOperations": 486,
7
+ "allRouteOperations": 609,
8
+ "eligibleOperations": 482,
9
+ "catalogOperations": 482,
10
10
  "excludedOperations": 127,
11
11
  "catalogCoveragePercent": 100,
12
- "baselineOperations": 486,
12
+ "baselineOperations": 482,
13
13
  "groups": {
14
14
  "account": 4,
15
15
  "action-tasks": 6,
@@ -29,16 +29,19 @@
29
29
  "i18n": 1,
30
30
  "knowledge-library": 25,
31
31
  "official-marketplace": 2,
32
+ "organization-agent-execution": 1,
32
33
  "organization-bi-environments": 7,
33
34
  "organization-bot-deliveries": 1,
34
35
  "organization-bots": 39,
35
36
  "organization-email": 5,
37
+ "organization-model-pricing-profiles": 3,
38
+ "organization-models": 6,
36
39
  "organization-service-channels": 6,
37
40
  "organization-user-memories": 5,
38
- "organizations": 16,
41
+ "organizations": 18,
39
42
  "personal-agent-automations": 7,
40
- "personal-agents": 170,
41
- "platform": 41,
43
+ "personal-agents": 163,
44
+ "platform": 32,
42
45
  "plugins": 8,
43
46
  "product-feedback": 4,
44
47
  "recommended-agents": 1,
@@ -640,20 +643,6 @@
640
643
  ],
641
644
  "sourceFile": "src/app/api/personal-agents/[agentId]/publications/route.ts"
642
645
  },
643
- {
644
- "id": "personal-agents.self-evolution.knowledge-changes.delete",
645
- "method": "DELETE",
646
- "path": "/api/personal-agents/[agentId]/self-evolution/knowledge-changes/[suggestionId]",
647
- "group": "personal-agents",
648
- "parameters": [
649
- "agentId",
650
- "suggestionId"
651
- ],
652
- "minVersion": "0.0.8",
653
- "inBaseline": true,
654
- "inputHints": [],
655
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolution/knowledge-changes/[suggestionId]/route.ts"
656
- },
657
646
  {
658
647
  "id": "personal-agents.service-channels.delete",
659
648
  "method": "DELETE",
@@ -2028,6 +2017,32 @@
2028
2017
  "inputHints": [],
2029
2018
  "sourceFile": "src/app/api/organization-email/availability/route.ts"
2030
2019
  },
2020
+ {
2021
+ "id": "organization-model-pricing-profiles.list",
2022
+ "method": "GET",
2023
+ "path": "/api/organization-model-pricing-profiles",
2024
+ "group": "organization-model-pricing-profiles",
2025
+ "parameters": [],
2026
+ "minVersion": "0.0.12",
2027
+ "inBaseline": true,
2028
+ "inputHints": [
2029
+ "json"
2030
+ ],
2031
+ "sourceFile": "src/app/api/organization-model-pricing-profiles/route.ts"
2032
+ },
2033
+ {
2034
+ "id": "organization-models.list",
2035
+ "method": "GET",
2036
+ "path": "/api/organization-models",
2037
+ "group": "organization-models",
2038
+ "parameters": [],
2039
+ "minVersion": "0.0.12",
2040
+ "inBaseline": true,
2041
+ "inputHints": [
2042
+ "json"
2043
+ ],
2044
+ "sourceFile": "src/app/api/organization-models/route.ts"
2045
+ },
2031
2046
  {
2032
2047
  "id": "organization-service-channels.list",
2033
2048
  "method": "GET",
@@ -2130,6 +2145,21 @@
2130
2145
  ],
2131
2146
  "sourceFile": "src/app/api/organizations/current/members/route.ts"
2132
2147
  },
2148
+ {
2149
+ "id": "organizations.current.members.billing-group.list",
2150
+ "method": "GET",
2151
+ "path": "/api/organizations/current/members/[userId]/billing-group",
2152
+ "group": "organizations",
2153
+ "parameters": [
2154
+ "userId"
2155
+ ],
2156
+ "minVersion": "0.0.12",
2157
+ "inBaseline": true,
2158
+ "inputHints": [
2159
+ "json"
2160
+ ],
2161
+ "sourceFile": "src/app/api/organizations/current/members/[userId]/billing-group/route.ts"
2162
+ },
2133
2163
  {
2134
2164
  "id": "organizations.current.members.channel-identities.list",
2135
2165
  "method": "GET",
@@ -2236,21 +2266,6 @@
2236
2266
  "inputHints": [],
2237
2267
  "sourceFile": "src/app/api/personal-agents/[agentId]/avatar/route.ts"
2238
2268
  },
2239
- {
2240
- "id": "personal-agents.background-improvement.list",
2241
- "method": "GET",
2242
- "path": "/api/personal-agents/[agentId]/background-improvement",
2243
- "group": "personal-agents",
2244
- "parameters": [
2245
- "agentId"
2246
- ],
2247
- "minVersion": "0.0.8",
2248
- "inBaseline": true,
2249
- "inputHints": [
2250
- "json"
2251
- ],
2252
- "sourceFile": "src/app/api/personal-agents/[agentId]/background-improvement/route.ts"
2253
- },
2254
2269
  {
2255
2270
  "id": "personal-agents.bi-user-property-options.list",
2256
2271
  "method": "GET",
@@ -2419,6 +2434,21 @@
2419
2434
  ],
2420
2435
  "sourceFile": "src/app/api/personal-agents/[agentId]/edit-draft/route.ts"
2421
2436
  },
2437
+ {
2438
+ "id": "personal-agents.edit-draft.files.list",
2439
+ "method": "GET",
2440
+ "path": "/api/personal-agents/[agentId]/edit-draft/files",
2441
+ "group": "personal-agents",
2442
+ "parameters": [
2443
+ "agentId"
2444
+ ],
2445
+ "minVersion": "0.0.12",
2446
+ "inBaseline": true,
2447
+ "inputHints": [
2448
+ "multipart"
2449
+ ],
2450
+ "sourceFile": "src/app/api/personal-agents/[agentId]/edit-draft/files/route.ts"
2451
+ },
2422
2452
  {
2423
2453
  "id": "personal-agents.email-push-recipients.list",
2424
2454
  "method": "GET",
@@ -2727,46 +2757,6 @@
2727
2757
  "inputHints": [],
2728
2758
  "sourceFile": "src/app/api/personal-agents/[agentId]/sdk-example/route.ts"
2729
2759
  },
2730
- {
2731
- "id": "personal-agents.self-evolution.knowledge-changes.list",
2732
- "method": "GET",
2733
- "path": "/api/personal-agents/[agentId]/self-evolution/knowledge-changes",
2734
- "group": "personal-agents",
2735
- "parameters": [
2736
- "agentId"
2737
- ],
2738
- "minVersion": "0.0.8",
2739
- "inBaseline": true,
2740
- "inputHints": [],
2741
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolution/knowledge-changes/route.ts"
2742
- },
2743
- {
2744
- "id": "personal-agents.self-evolutions.list",
2745
- "method": "GET",
2746
- "path": "/api/personal-agents/[agentId]/self-evolutions",
2747
- "group": "personal-agents",
2748
- "parameters": [
2749
- "agentId"
2750
- ],
2751
- "minVersion": "0.0.1",
2752
- "inBaseline": true,
2753
- "inputHints": [],
2754
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolutions/route.ts"
2755
- },
2756
- {
2757
- "id": "personal-agents.self-evolutions.get",
2758
- "method": "GET",
2759
- "path": "/api/personal-agents/[agentId]/self-evolutions/[evolutionId]",
2760
- "group": "personal-agents",
2761
- "parameters": [
2762
- "agentId",
2763
- "evolutionId"
2764
- ],
2765
- "minVersion": "0.0.1",
2766
- "inBaseline": true,
2767
- "inputHints": [],
2768
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/route.ts"
2769
- },
2770
2760
  {
2771
2761
  "id": "personal-agents.service-channels.list",
2772
2762
  "method": "GET",
@@ -2904,6 +2894,21 @@
2904
2894
  ],
2905
2895
  "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/decision-tracking-tasks/route.ts"
2906
2896
  },
2897
+ {
2898
+ "id": "personal-agents.sessions.evidence.get",
2899
+ "method": "GET",
2900
+ "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/evidence/[messageId]",
2901
+ "group": "personal-agents",
2902
+ "parameters": [
2903
+ "agentId",
2904
+ "sessionId",
2905
+ "messageId"
2906
+ ],
2907
+ "minVersion": "0.0.11",
2908
+ "inBaseline": true,
2909
+ "inputHints": [],
2910
+ "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/evidence/[messageId]/route.ts"
2911
+ },
2907
2912
  {
2908
2913
  "id": "personal-agents.sessions.files.list",
2909
2914
  "method": "GET",
@@ -3062,7 +3067,9 @@
3062
3067
  ],
3063
3068
  "minVersion": "0.0.1",
3064
3069
  "inBaseline": true,
3065
- "inputHints": [],
3070
+ "inputHints": [
3071
+ "json"
3072
+ ],
3066
3073
  "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/route.ts"
3067
3074
  },
3068
3075
  {
@@ -3323,32 +3330,6 @@
3323
3330
  ],
3324
3331
  "sourceFile": "src/app/api/platform/galaxy-oidc/route.ts"
3325
3332
  },
3326
- {
3327
- "id": "platform.model-pricing-profiles.list",
3328
- "method": "GET",
3329
- "path": "/api/platform/model-pricing-profiles",
3330
- "group": "platform",
3331
- "parameters": [],
3332
- "minVersion": "0.0.1",
3333
- "inBaseline": true,
3334
- "inputHints": [
3335
- "json"
3336
- ],
3337
- "sourceFile": "src/app/api/platform/model-pricing-profiles/route.ts"
3338
- },
3339
- {
3340
- "id": "platform.models.list",
3341
- "method": "GET",
3342
- "path": "/api/platform/models",
3343
- "group": "platform",
3344
- "parameters": [],
3345
- "minVersion": "0.0.1",
3346
- "inBaseline": true,
3347
- "inputHints": [
3348
- "json"
3349
- ],
3350
- "sourceFile": "src/app/api/platform/models/route.ts"
3351
- },
3352
3333
  {
3353
3334
  "id": "platform.official-marketplace.publisher-candidates.list",
3354
3335
  "method": "GET",
@@ -3992,6 +3973,19 @@
3992
3973
  ],
3993
3974
  "sourceFile": "src/app/api/knowledge-library/folders/[folderId]/route.ts"
3994
3975
  },
3976
+ {
3977
+ "id": "organization-agent-execution.update",
3978
+ "method": "PATCH",
3979
+ "path": "/api/organization-agent-execution",
3980
+ "group": "organization-agent-execution",
3981
+ "parameters": [],
3982
+ "minVersion": "0.0.12",
3983
+ "inBaseline": true,
3984
+ "inputHints": [
3985
+ "json"
3986
+ ],
3987
+ "sourceFile": "src/app/api/organization-agent-execution/route.ts"
3988
+ },
3995
3989
  {
3996
3990
  "id": "organization-bi-environments.update",
3997
3991
  "method": "PATCH",
@@ -4053,6 +4047,36 @@
4053
4047
  ],
4054
4048
  "sourceFile": "src/app/api/organization-bots/[botId]/permissions/route.ts"
4055
4049
  },
4050
+ {
4051
+ "id": "organization-model-pricing-profiles.update",
4052
+ "method": "PATCH",
4053
+ "path": "/api/organization-model-pricing-profiles/[key]",
4054
+ "group": "organization-model-pricing-profiles",
4055
+ "parameters": [
4056
+ "key"
4057
+ ],
4058
+ "minVersion": "0.0.12",
4059
+ "inBaseline": true,
4060
+ "inputHints": [
4061
+ "json"
4062
+ ],
4063
+ "sourceFile": "src/app/api/organization-model-pricing-profiles/[key]/route.ts"
4064
+ },
4065
+ {
4066
+ "id": "organization-models.update",
4067
+ "method": "PATCH",
4068
+ "path": "/api/organization-models/[id]",
4069
+ "group": "organization-models",
4070
+ "parameters": [
4071
+ "id"
4072
+ ],
4073
+ "minVersion": "0.0.12",
4074
+ "inBaseline": true,
4075
+ "inputHints": [
4076
+ "json"
4077
+ ],
4078
+ "sourceFile": "src/app/api/organization-models/[id]/route.ts"
4079
+ },
4056
4080
  {
4057
4081
  "id": "organization-service-channels.update",
4058
4082
  "method": "PATCH",
@@ -4285,49 +4309,6 @@
4285
4309
  ],
4286
4310
  "sourceFile": "src/app/api/platform/categories/[id]/route.ts"
4287
4311
  },
4288
- {
4289
- "id": "platform.model-pricing-profiles.update",
4290
- "method": "PATCH",
4291
- "path": "/api/platform/model-pricing-profiles/[key]",
4292
- "group": "platform",
4293
- "parameters": [
4294
- "key"
4295
- ],
4296
- "minVersion": "0.0.1",
4297
- "inBaseline": true,
4298
- "inputHints": [
4299
- "json"
4300
- ],
4301
- "sourceFile": "src/app/api/platform/model-pricing-profiles/[key]/route.ts"
4302
- },
4303
- {
4304
- "id": "platform.models.update",
4305
- "method": "PATCH",
4306
- "path": "/api/platform/models",
4307
- "group": "platform",
4308
- "parameters": [],
4309
- "minVersion": "0.0.2",
4310
- "inBaseline": true,
4311
- "inputHints": [
4312
- "json"
4313
- ],
4314
- "sourceFile": "src/app/api/platform/models/route.ts"
4315
- },
4316
- {
4317
- "id": "platform.models.update.by-id",
4318
- "method": "PATCH",
4319
- "path": "/api/platform/models/[id]",
4320
- "group": "platform",
4321
- "parameters": [
4322
- "id"
4323
- ],
4324
- "minVersion": "0.0.1",
4325
- "inBaseline": true,
4326
- "inputHints": [
4327
- "json"
4328
- ],
4329
- "sourceFile": "src/app/api/platform/models/[id]/route.ts"
4330
- },
4331
4312
  {
4332
4313
  "id": "platform.organizations.update",
4333
4314
  "method": "PATCH",
@@ -5135,6 +5116,71 @@
5135
5116
  ],
5136
5117
  "sourceFile": "src/app/api/organization-email/test/route.ts"
5137
5118
  },
5119
+ {
5120
+ "id": "organization-model-pricing-profiles.create",
5121
+ "method": "POST",
5122
+ "path": "/api/organization-model-pricing-profiles",
5123
+ "group": "organization-model-pricing-profiles",
5124
+ "parameters": [],
5125
+ "minVersion": "0.0.12",
5126
+ "inBaseline": true,
5127
+ "inputHints": [
5128
+ "json"
5129
+ ],
5130
+ "sourceFile": "src/app/api/organization-model-pricing-profiles/route.ts"
5131
+ },
5132
+ {
5133
+ "id": "organization-models.create",
5134
+ "method": "POST",
5135
+ "path": "/api/organization-models",
5136
+ "group": "organization-models",
5137
+ "parameters": [],
5138
+ "minVersion": "0.0.12",
5139
+ "inBaseline": true,
5140
+ "inputHints": [
5141
+ "json"
5142
+ ],
5143
+ "sourceFile": "src/app/api/organization-models/route.ts"
5144
+ },
5145
+ {
5146
+ "id": "organization-models.test.create",
5147
+ "method": "POST",
5148
+ "path": "/api/organization-models/[id]/test",
5149
+ "group": "organization-models",
5150
+ "parameters": [
5151
+ "id"
5152
+ ],
5153
+ "minVersion": "0.0.12",
5154
+ "inBaseline": true,
5155
+ "inputHints": [],
5156
+ "sourceFile": "src/app/api/organization-models/[id]/test/route.ts"
5157
+ },
5158
+ {
5159
+ "id": "organization-models.discover.create",
5160
+ "method": "POST",
5161
+ "path": "/api/organization-models/discover",
5162
+ "group": "organization-models",
5163
+ "parameters": [],
5164
+ "minVersion": "0.0.12",
5165
+ "inBaseline": true,
5166
+ "inputHints": [
5167
+ "json"
5168
+ ],
5169
+ "sourceFile": "src/app/api/organization-models/discover/route.ts"
5170
+ },
5171
+ {
5172
+ "id": "organization-models.guandata.create",
5173
+ "method": "POST",
5174
+ "path": "/api/organization-models/guandata",
5175
+ "group": "organization-models",
5176
+ "parameters": [],
5177
+ "minVersion": "0.0.12",
5178
+ "inBaseline": true,
5179
+ "inputHints": [
5180
+ "json"
5181
+ ],
5182
+ "sourceFile": "src/app/api/organization-models/guandata/route.ts"
5183
+ },
5138
5184
  {
5139
5185
  "id": "organization-service-channels.create",
5140
5186
  "method": "POST",
@@ -5551,6 +5597,19 @@
5551
5597
  ],
5552
5598
  "sourceFile": "src/app/api/personal-agents/[agentId]/memories/route.ts"
5553
5599
  },
5600
+ {
5601
+ "id": "personal-agents.metric-catalog-status.create",
5602
+ "method": "POST",
5603
+ "path": "/api/personal-agents/[agentId]/metric-catalog-status",
5604
+ "group": "personal-agents",
5605
+ "parameters": [
5606
+ "agentId"
5607
+ ],
5608
+ "minVersion": "0.0.11",
5609
+ "inBaseline": true,
5610
+ "inputHints": [],
5611
+ "sourceFile": "src/app/api/personal-agents/[agentId]/metric-catalog-status/route.ts"
5612
+ },
5554
5613
  {
5555
5614
  "id": "personal-agents.permissions.batch.create",
5556
5615
  "method": "POST",
@@ -5596,64 +5655,6 @@
5596
5655
  ],
5597
5656
  "sourceFile": "src/app/api/personal-agents/[agentId]/publications/route.ts"
5598
5657
  },
5599
- {
5600
- "id": "personal-agents.self-evolution.knowledge-changes.accept.create",
5601
- "method": "POST",
5602
- "path": "/api/personal-agents/[agentId]/self-evolution/knowledge-changes/[suggestionId]/accept",
5603
- "group": "personal-agents",
5604
- "parameters": [
5605
- "agentId",
5606
- "suggestionId"
5607
- ],
5608
- "minVersion": "0.0.8",
5609
- "inBaseline": true,
5610
- "inputHints": [
5611
- "json"
5612
- ],
5613
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolution/knowledge-changes/[suggestionId]/accept/route.ts"
5614
- },
5615
- {
5616
- "id": "personal-agents.self-evolutions.apply.create",
5617
- "method": "POST",
5618
- "path": "/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/apply",
5619
- "group": "personal-agents",
5620
- "parameters": [
5621
- "agentId",
5622
- "evolutionId"
5623
- ],
5624
- "minVersion": "0.0.1",
5625
- "inBaseline": true,
5626
- "inputHints": [],
5627
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/apply/route.ts"
5628
- },
5629
- {
5630
- "id": "personal-agents.self-evolutions.retry.create",
5631
- "method": "POST",
5632
- "path": "/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/retry",
5633
- "group": "personal-agents",
5634
- "parameters": [
5635
- "agentId",
5636
- "evolutionId"
5637
- ],
5638
- "minVersion": "0.0.8",
5639
- "inBaseline": true,
5640
- "inputHints": [],
5641
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/retry/route.ts"
5642
- },
5643
- {
5644
- "id": "personal-agents.self-evolutions.stop.create",
5645
- "method": "POST",
5646
- "path": "/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/stop",
5647
- "group": "personal-agents",
5648
- "parameters": [
5649
- "agentId",
5650
- "evolutionId"
5651
- ],
5652
- "minVersion": "0.0.1",
5653
- "inBaseline": true,
5654
- "inputHints": [],
5655
- "sourceFile": "src/app/api/personal-agents/[agentId]/self-evolutions/[evolutionId]/stop/route.ts"
5656
- },
5657
5658
  {
5658
5659
  "id": "personal-agents.service-channels.create",
5659
5660
  "method": "POST",
@@ -5857,38 +5858,39 @@
5857
5858
  "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/personal-agent-draft/route.ts"
5858
5859
  },
5859
5860
  {
5860
- "id": "personal-agents.sessions.queued-turn-drafts.continue.create",
5861
+ "id": "personal-agents.sessions.queued-turn-drafts.create",
5861
5862
  "method": "POST",
5862
- "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/continue",
5863
+ "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts",
5863
5864
  "group": "personal-agents",
5864
5865
  "parameters": [
5865
5866
  "agentId",
5866
5867
  "sessionId"
5867
5868
  ],
5868
- "minVersion": "0.0.1",
5869
+ "minVersion": "0.0.11",
5869
5870
  "inBaseline": true,
5870
- "inputHints": [],
5871
- "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/continue/route.ts"
5871
+ "inputHints": [
5872
+ "json"
5873
+ ],
5874
+ "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/route.ts"
5872
5875
  },
5873
5876
  {
5874
- "id": "personal-agents.sessions.runs.fork.create",
5877
+ "id": "personal-agents.sessions.queued-turn-drafts.continue.create",
5875
5878
  "method": "POST",
5876
- "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/fork",
5879
+ "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/continue",
5877
5880
  "group": "personal-agents",
5878
5881
  "parameters": [
5879
5882
  "agentId",
5880
- "sessionId",
5881
- "runId"
5883
+ "sessionId"
5882
5884
  ],
5883
5885
  "minVersion": "0.0.1",
5884
5886
  "inBaseline": true,
5885
5887
  "inputHints": [],
5886
- "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/fork/route.ts"
5888
+ "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/queued-turn-drafts/continue/route.ts"
5887
5889
  },
5888
5890
  {
5889
- "id": "personal-agents.sessions.runs.interrupt-and-send.create",
5891
+ "id": "personal-agents.sessions.runs.fork.create",
5890
5892
  "method": "POST",
5891
- "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/interrupt-and-send",
5893
+ "path": "/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/fork",
5892
5894
  "group": "personal-agents",
5893
5895
  "parameters": [
5894
5896
  "agentId",
@@ -5897,10 +5899,8 @@
5897
5899
  ],
5898
5900
  "minVersion": "0.0.1",
5899
5901
  "inBaseline": true,
5900
- "inputHints": [
5901
- "json"
5902
- ],
5903
- "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/interrupt-and-send/route.ts"
5902
+ "inputHints": [],
5903
+ "sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/runs/[runId]/fork/route.ts"
5904
5904
  },
5905
5905
  {
5906
5906
  "id": "personal-agents.sessions.runs.troubleshoot.create",
@@ -6114,58 +6114,6 @@
6114
6114
  ],
6115
6115
  "sourceFile": "src/app/api/platform/galaxy-oidc/test/route.ts"
6116
6116
  },
6117
- {
6118
- "id": "platform.model-pricing-profiles.create",
6119
- "method": "POST",
6120
- "path": "/api/platform/model-pricing-profiles",
6121
- "group": "platform",
6122
- "parameters": [],
6123
- "minVersion": "0.0.1",
6124
- "inBaseline": true,
6125
- "inputHints": [
6126
- "json"
6127
- ],
6128
- "sourceFile": "src/app/api/platform/model-pricing-profiles/route.ts"
6129
- },
6130
- {
6131
- "id": "platform.models.create",
6132
- "method": "POST",
6133
- "path": "/api/platform/models",
6134
- "group": "platform",
6135
- "parameters": [],
6136
- "minVersion": "0.0.1",
6137
- "inBaseline": true,
6138
- "inputHints": [
6139
- "json"
6140
- ],
6141
- "sourceFile": "src/app/api/platform/models/route.ts"
6142
- },
6143
- {
6144
- "id": "platform.models.test.create",
6145
- "method": "POST",
6146
- "path": "/api/platform/models/[id]/test",
6147
- "group": "platform",
6148
- "parameters": [
6149
- "id"
6150
- ],
6151
- "minVersion": "0.0.1",
6152
- "inBaseline": true,
6153
- "inputHints": [],
6154
- "sourceFile": "src/app/api/platform/models/[id]/test/route.ts"
6155
- },
6156
- {
6157
- "id": "platform.models.discover.create",
6158
- "method": "POST",
6159
- "path": "/api/platform/models/discover",
6160
- "group": "platform",
6161
- "parameters": [],
6162
- "minVersion": "0.0.1",
6163
- "inBaseline": true,
6164
- "inputHints": [
6165
- "json"
6166
- ],
6167
- "sourceFile": "src/app/api/platform/models/discover/route.ts"
6168
- },
6169
6117
  {
6170
6118
  "id": "platform.official-marketplace.agent-blueprints.create",
6171
6119
  "method": "POST",
@@ -6602,6 +6550,21 @@
6602
6550
  ],
6603
6551
  "sourceFile": "src/app/api/organizations/current/general-assistant/route.ts"
6604
6552
  },
6553
+ {
6554
+ "id": "organizations.current.members.billing-group.put",
6555
+ "method": "PUT",
6556
+ "path": "/api/organizations/current/members/[userId]/billing-group",
6557
+ "group": "organizations",
6558
+ "parameters": [
6559
+ "userId"
6560
+ ],
6561
+ "minVersion": "0.0.12",
6562
+ "inBaseline": true,
6563
+ "inputHints": [
6564
+ "json"
6565
+ ],
6566
+ "sourceFile": "src/app/api/organizations/current/members/[userId]/billing-group/route.ts"
6567
+ },
6605
6568
  {
6606
6569
  "id": "organizations.current.members.channel-identities.put",
6607
6570
  "method": "PUT",
@@ -6645,21 +6608,6 @@
6645
6608
  ],
6646
6609
  "sourceFile": "src/app/api/personal-agents/[agentId]/route.ts"
6647
6610
  },
6648
- {
6649
- "id": "personal-agents.background-improvement.put",
6650
- "method": "PUT",
6651
- "path": "/api/personal-agents/[agentId]/background-improvement",
6652
- "group": "personal-agents",
6653
- "parameters": [
6654
- "agentId"
6655
- ],
6656
- "minVersion": "0.0.8",
6657
- "inBaseline": true,
6658
- "inputHints": [
6659
- "json"
6660
- ],
6661
- "sourceFile": "src/app/api/personal-agents/[agentId]/background-improvement/route.ts"
6662
- },
6663
6611
  {
6664
6612
  "id": "personal-agents.edit-draft.put",
6665
6613
  "method": "PUT",
package/src/cli.js CHANGED
@@ -42,12 +42,13 @@ Usage:
42
42
  decidex agent file delete ID FILE_ID
43
43
  decidex agent file download ID FILE_ID FILE
44
44
  decidex agent models ID
45
- decidex agent improvement get|enable|disable AGENT_ID
45
+ decidex agent improvement get|enable|disable AGENT_ID # server 0.0.8..0.0.10 only
46
46
  decidex agent run ID (--message TEXT | --input FILE | --attach FILE) [--model-entry-id ID] [--reasoning-effort LEVEL] [--wait] [--follow] [--output FILE] [--timeout SECONDS]
47
47
 
48
48
  decidex session list [--status all|running|completed] [--query TEXT] [--cursor CURSOR] [--agent-id ID] [--pinned-session-id ID] [--pinned-agent-id ID]
49
49
  decidex session view SESSION_ID [--before CURSOR | --since CURSOR]
50
50
  decidex session follow-ups SESSION_ID --run-id RUN_ID
51
+ decidex session evidence SESSION_ID --message-id ID --path BOE_PATH [--file SOURCE_PATH --output FILE]
51
52
  decidex session send SESSION_ID (--message TEXT | --input FILE) [--wait] [--follow]
52
53
  decidex session stop SESSION_ID
53
54
  decidex session rename SESSION_ID TITLE
@@ -56,6 +57,7 @@ Usage:
56
57
  decidex session fork SESSION_ID RUN_ID
57
58
  decidex session collaboration status|disclosure|consent|activate|continue|stop|task|download ...
58
59
  decidex session queue list SESSION_ID
60
+ decidex session queue add SESSION_ID (--message TEXT | --input FILE)
59
61
  decidex session queue edit SESSION_ID DRAFT_ID (--message TEXT | --input FILE)
60
62
  decidex session queue delete SESSION_ID DRAFT_ID
61
63
  decidex session queue continue SESSION_ID [--wait] [--follow] [--output FILE]
@@ -203,7 +205,7 @@ released minimum versions are checked against the target server.`,
203
205
  decidex agent knowledge list|add|remove ...
204
206
  decidex agent file list|add|delete|download ...
205
207
  decidex agent models AGENT_ID
206
- decidex agent improvement get|enable|disable AGENT_ID
208
+ decidex agent improvement get|enable|disable AGENT_ID # server 0.0.8..0.0.10 only
207
209
  decidex agent run AGENT_ID (--message TEXT | --input FILE) [--wait] [--follow] [--output FILE]`,
208
210
  "agent run": `Usage:
209
211
  decidex agent run AGENT_ID (--message TEXT | --input FILE | --attach FILE) [--model-entry-id ID] [--reasoning-effort LEVEL] [--wait] [--follow] [--output FILE] [--timeout SECONDS]
@@ -216,9 +218,10 @@ to stderr, so stdout or --output remains machine-readable.
216
218
  accept JSON arrays. --reasoning-effort null uses the model default.
217
219
  Use agent models AGENT_ID to discover supported catalog entries and efforts.`,
218
220
  "agent improvement": `Usage:
219
- decidex agent improvement get|enable|disable AGENT_ID
221
+ decidex agent improvement get|enable|disable AGENT_ID # server 0.0.8..0.0.10 only
220
222
 
221
- Requires server >= 0.0.8 and edit permission. Enabling processes new feedback only;
223
+ Only server 0.0.8..0.0.10 with edit permission; removed in 0.0.11.
224
+ Enabling processes new feedback only;
222
225
  it does not replay feedback collected while disabled. Generated changes still require review.`,
223
226
  "session collaboration": `Usage:
224
227
  decidex session collaboration status SESSION_ID
@@ -239,10 +242,26 @@ Expert maintainers can review received and shared materials; share only necessar
239
242
  Read status for the current work epoch before stopping. Keep the same submission UUID
240
243
  for the same continuation; after an uncertain response inspect status, do not blindly retry.
241
244
  download uses a material path returned by status, not a local path.`,
245
+ "session send": `Usage:
246
+ decidex session send SESSION_ID (--message TEXT | --input FILE) [--wait] [--follow]
247
+ decidex session send SESSION_ID --message TEXT --expected-run-id RUN_ID --submission-id UUID
248
+
249
+ Server >= 0.0.11 may deliver non-waiting plain text to the active Run.
250
+ Use queue add to explicitly keep a message for the next turn. Pinned active input is text-only,
251
+ requires both flags and cannot combine --wait or reasoning settings. If the Run changes, 409
252
+ is preserved; inspect session view after an uncertain response, do not trigger a new Run.`,
253
+ "session evidence": `Usage:
254
+ decidex session evidence SESSION_ID --message-id MESSAGE_ID --path BOE_PATH
255
+ decidex session evidence SESSION_ID --message-id MESSAGE_ID --path BOE_PATH --file SOURCE_PATH --output FILE
256
+
257
+ Requires server >= 0.0.11. Uses the answer's fixed snapshot when available.
258
+ status=fixed/legacy/unavailable is preserved. Legacy reads can reflect live files;
259
+ only files belonging to the bound evidence can be downloaded.`,
242
260
  session: `Usage:
243
261
  decidex session list [--status all|running|completed] [--query TEXT] [--cursor CURSOR] [--agent-id ID] [--pinned-session-id ID] [--pinned-agent-id ID]
244
262
  decidex session view SESSION_ID [--before CURSOR | --since CURSOR]
245
263
  decidex session follow-ups SESSION_ID --run-id RUN_ID
264
+ decidex session evidence SESSION_ID --message-id ID --path BOE_PATH [--file SOURCE_PATH --output FILE]
246
265
  decidex session send SESSION_ID (--message TEXT | --input FILE) [--wait] [--follow]
247
266
  decidex session stop SESSION_ID
248
267
  decidex session rename SESSION_ID TITLE
@@ -251,6 +270,7 @@ download uses a material path returned by status, not a local path.`,
251
270
  decidex session fork SESSION_ID RUN_ID
252
271
  decidex session collaboration status|disclosure|consent|activate|continue|stop|task|download ...
253
272
  decidex session queue list SESSION_ID
273
+ decidex session queue add SESSION_ID (--message TEXT | --input FILE)
254
274
  decidex session queue edit SESSION_ID DRAFT_ID (--message TEXT | --input FILE)
255
275
  decidex session queue delete SESSION_ID DRAFT_ID
256
276
  decidex session queue continue SESSION_ID [--wait] [--follow] [--output FILE]
@@ -884,6 +904,7 @@ async function targetVersion(values, deadline = Date.now() + 10_000) {
884
904
  async function commandCompatibility(command, values) {
885
905
  const server = await targetVersion(values);
886
906
  const result = resolveCommandCompatibility(command, server.version);
907
+ if (result.reason === "removed_in_release") throw new Error(`decidex ${command} 自服务端 ${result.removedIn} 起已移除,目标 ${server.version} 不支持;仅在该版本之前的旧环境保留此用法`);
887
908
  if (result.supported === false) throw new Error(`decidex ${command} 需要服务端 >= ${result.minVersion};目标版本为 ${server.version},该版本不支持此命令`);
888
909
  return result;
889
910
  }
@@ -1042,7 +1063,7 @@ async function agentCommand(action, args) {
1042
1063
  expectPositionals(positionals, 2, "agent improvement get|enable|disable AGENT_ID");
1043
1064
  const [operation, agentId] = positionals;
1044
1065
  if (!["get", "enable", "disable"].includes(operation)) throw new Error("improvement 只支持 get、enable、disable");
1045
- return print(await taskApi(`personal-agents.background-improvement.${operation === "get" ? "list" : "put"}`, { agentId }, { body: operation === "get" ? undefined : { enabled: operation === "enable" }, values, deadline: Date.now() + positiveSeconds(values.timeout) * 1000 }));
1066
+ return print(await request(`/api/personal-agents/${encodeURIComponent(agentId)}/background-improvement`, { method: operation === "get" ? "GET" : "PUT", body: operation === "get" ? undefined : { enabled: operation === "enable" }, values, deadline: Date.now() + positiveSeconds(values.timeout) * 1000 }));
1046
1067
  }
1047
1068
  if (action === "get") return print(await request(`/api/personal-agents/${encodeURIComponent(required(positionals[0], "ID"))}`, { values }));
1048
1069
  if (action === "apply") {
@@ -1169,6 +1190,10 @@ async function sessionCommand(action, args) {
1169
1190
  "accept-governance-notice": { type: "boolean", default: false },
1170
1191
  "submission-id": { type: "string" },
1171
1192
  "run-id": { type: "string" },
1193
+ "expected-run-id": { type: "string" },
1194
+ "message-id": { type: "string" },
1195
+ path: { type: "string" },
1196
+ file: { type: "string" },
1172
1197
  epoch: { type: "string" },
1173
1198
  "model-entry-id": { type: "string" },
1174
1199
  before: { type: "string" },
@@ -1233,6 +1258,17 @@ async function sessionCommand(action, args) {
1233
1258
  const session = await resolveSession(positionals[0], values, deadline);
1234
1259
  return emit(await taskApi("personal-agents.sessions.follow-ups.list", { agentId: session.agentId, sessionId: positionals[0] }, { query: { runId }, values, deadline }), values.output);
1235
1260
  }
1261
+ if (action === "evidence") {
1262
+ expectPositionals(positionals, 1, "session evidence SESSION_ID --message-id ID --path BOE_PATH [--file SOURCE_PATH --output FILE]");
1263
+ const messageId = required(values["message-id"], "--message-id ID");
1264
+ const path = required(values.path, "--path BOE_PATH");
1265
+ if (path.length > 2000 || (values.file && values.file.length > 2000)) throw new Error("证据路径最多 2000 字符");
1266
+ if (values.file && !values.output) throw new Error("证据文件下载需要 --output FILE");
1267
+ const deadline = Date.now() + positiveSeconds(values.timeout) * 1000;
1268
+ const session = await resolveSession(positionals[0], values, deadline);
1269
+ const result = await taskApi("personal-agents.sessions.evidence.get", { agentId: session.agentId, sessionId: positionals[0], messageId }, { query: { path, ...(values.file ? { file: values.file } : {}) }, output: values.file ? values.output : undefined, values, deadline });
1270
+ return values.file ? print(result) : emit(result, values.output);
1271
+ }
1236
1272
  if (action === "list") {
1237
1273
  expectPositionals(positionals, 0, "session list");
1238
1274
  if (!new Set(["all", "running", "completed"]).has(values.status)) throw new Error("--status 只支持 all、running、completed");
@@ -1253,16 +1289,20 @@ async function sessionCommand(action, args) {
1253
1289
  }
1254
1290
  if (action === "queue") {
1255
1291
  const [operation, sessionId, draftId] = positionals;
1256
- if (!["list", "edit", "delete", "continue"].includes(operation)) throw new Error("queue 只支持 list、edit、delete、continue");
1292
+ if (!["list", "add", "edit", "delete", "continue"].includes(operation)) throw new Error("queue 只支持 list、add、edit、delete、continue");
1257
1293
  expectPositionals(positionals, ["edit", "delete"].includes(operation) ? 3 : 2, `session queue ${operation} SESSION_ID [DRAFT_ID]`);
1258
- const body = operation === "edit" ? { message: await readMessage(values) } : undefined;
1294
+ if (operation === "add") {
1295
+ if (values.attach?.length || values["context-references"] || values["conversation-references"]) throw new Error("排队只支持纯文本,不支持附件或引用");
1296
+ await commandCompatibility("session queue add", values);
1297
+ }
1298
+ const body = ["edit", "add"].includes(operation) ? { message: await readMessage(values), ...(operation === "add" && values["reasoning-effort"] !== undefined ? { reasoningEffort: values["reasoning-effort"] === "null" ? null : values["reasoning-effort"] } : {}) } : undefined;
1259
1299
  if (values.follow && (!values.wait || operation !== "continue")) throw new Error("--follow 仅支持 queue continue --wait");
1260
1300
  if (values.wait && operation !== "continue") throw new Error("--wait 仅支持 queue continue");
1261
1301
  if (values.wait) positiveSeconds(values.timeout);
1262
1302
  const session = await resolveSession(sessionId, values);
1263
1303
  const path = `${sessionPath(session.agentId, sessionId)}/queued-turn-drafts`;
1264
1304
  const suffix = draftId ? `/${encodeURIComponent(draftId)}` : operation === "continue" ? "/continue" : "";
1265
- const result = await request(`${path}${suffix}`, { method: { list: "GET", edit: "PATCH", delete: "DELETE", continue: "POST" }[operation], body, values });
1305
+ const result = await request(`${path}${suffix}`, { method: { list: "GET", add: "POST", edit: "PATCH", delete: "DELETE", continue: "POST" }[operation], body, values });
1266
1306
  if (operation !== "continue") return emit(result, values.output);
1267
1307
  await rememberRunBestEffort(session.agentId, sessionId, result.runId, values);
1268
1308
  if (!values.wait) return emit(result, values.output);
@@ -1327,6 +1367,14 @@ async function sessionCommand(action, args) {
1327
1367
  if (values.follow && !values.wait) throw new Error("--follow 需要同时指定 --wait");
1328
1368
  if (values["model-entry-id"]) throw new Error("续问切换模型请先执行 session model SESSION_ID MODEL_ENTRY_ID");
1329
1369
  const body = await turnBody(values);
1370
+ if (values["expected-run-id"] !== undefined || values["submission-id"] !== undefined) {
1371
+ if (!values["expected-run-id"]?.trim() || values["expected-run-id"].trim().length > 120 || !values["submission-id"]) throw new Error("向本轮发送时须同时传 --expected-run-id(1..120 字符)和 --submission-id UUID");
1372
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(values["submission-id"])) throw new Error("--submission-id 必须是 UUID");
1373
+ if (values.wait || values.attach?.length || values["context-references"] || values["conversation-references"] || values["reasoning-effort"] !== undefined) throw new Error("向指定本轮输入只支持纯文本,不能带 --wait、附件、引用或推理强度;结果需从会话查看");
1374
+ await commandCompatibility("session send active-input", values);
1375
+ body.expectedRunId = values["expected-run-id"].trim();
1376
+ body.submissionId = values["submission-id"];
1377
+ }
1330
1378
  if (values.wait) positiveSeconds(values.timeout);
1331
1379
  const started = await request(`${sessionPath(session.agentId, sessionId)}/chat`, {
1332
1380
  method: "POST",
@@ -2013,7 +2061,8 @@ async function trackingCommand(action, args) {
2013
2061
  const session = await resolveSession(sessionId, values, deadline);
2014
2062
  const parameters = { agentId: session.agentId, sessionId };
2015
2063
  if (action === "lookup") return emit(await taskApi("personal-agents.sessions.decision-tracking-tasks.list", parameters, { query: { candidatePath, boePath }, values, deadline }), values.output);
2016
- const preview = await taskApi("personal-agents.sessions.decision-tracking-candidate-preview.list", parameters, { query: { candidatePath, boePath, language: values.language }, values, deadline });
2064
+ const useSnapshot = values["source-message-id"] && (await commandCompatibility("tracking source-evidence", values)).protocol === "message-snapshot";
2065
+ const preview = await taskApi("personal-agents.sessions.decision-tracking-candidate-preview.list", parameters, { query: { candidatePath, boePath, language: values.language, ...(useSnapshot ? { sourceMessageId: values["source-message-id"] } : {}) }, values, deadline });
2017
2066
  if (action === "preview") return emit(preview, values.output);
2018
2067
  if (!preview.candidate || !/^[a-f0-9]{64}$/.test(preview.evidenceVersion ?? "")) throw new Error("服务端未返回有效候选或 evidenceVersion,未创建任务");
2019
2068
  const body = { candidatePath, boePath, candidate: preview.candidate, evidenceVersion: preview.evidenceVersion };
@@ -1,5 +1,5 @@
1
- export const ADAPTED_SERVER_VERSION = "0.0.10";
2
- export const ADAPTED_SERVER_COMMIT = "b14beee9a0478a102e93894b53c5eaa042a7e2ce";
1
+ export const ADAPTED_SERVER_VERSION = "0.0.12";
2
+ export const ADAPTED_SERVER_COMMIT = "43ec18de2dd7dbd936b25caa431f78de1a06398c";
3
3
  export const COLLABORATION_DISCLOSURE_VERSION = 1; // Identical in tags 0.0.9 and 0.0.10.
4
4
  export const LEGACY_COLLABORATION_VERSIONS = { minVersion: "0.0.9", before: "0.0.10" };
5
5
 
@@ -19,11 +19,15 @@ export const COMMAND_COMPATIBILITY = {
19
19
  "automation apply partial": { minVersion: "0.0.7" },
20
20
  // Collaboration routes and the background improvement switch first ship in 0.0.8.
21
21
  "session collaboration": { minVersion: "0.0.8", protocol: "member-disclosure", legacy: { before: "0.0.9", protocol: "session-notice" } },
22
- "agent improvement": { minVersion: "0.0.8" },
22
+ "agent improvement": { minVersion: "0.0.8", removedIn: "0.0.11" },
23
23
  "server license": { minVersion: "0.0.9" },
24
24
  "session follow-ups": { minVersion: "0.0.9" },
25
25
  "agent apply prompt-suggestions": { minVersion: "0.0.9" },
26
26
  "agent apply collaboration": { minVersion: "0.0.10" },
27
+ "session queue add": { minVersion: "0.0.11" },
28
+ "session send active-input": { minVersion: "0.0.11" },
29
+ "session evidence": { minVersion: "0.0.11" },
30
+ "tracking source-evidence": { protocol: "message-snapshot", legacy: { before: "0.0.11", protocol: "session-file" } },
27
31
  };
28
32
 
29
33
  export function adaptAutomationSchedule(input, protocol, now = Date.now()) {
@@ -103,6 +107,9 @@ export function resolveCommandCompatibility(command, version, rules = COMMAND_CO
103
107
  if (rule.minVersion && compareVersions(version, rule.minVersion) < 0) {
104
108
  return { command, supported: false, minVersion: rule.minVersion, protocol: null, reason: "server_too_old" };
105
109
  }
110
+ if (rule.removedIn && compareVersions(version, rule.removedIn) >= 0) {
111
+ return { command, supported: false, removedIn: rule.removedIn, protocol: null, reason: "removed_in_release" };
112
+ }
106
113
  const legacy = Boolean(rule.legacy && compareVersions(version, rule.legacy.before) < 0);
107
- return { command, supported: true, minVersion: rule.minVersion ?? null, protocol: legacy ? rule.legacy.protocol : rule.protocol ?? "current", legacy };
114
+ return { command, supported: true, minVersion: rule.minVersion ?? null, ...(rule.removedIn ? { removedIn: rule.removedIn } : {}), protocol: legacy ? rule.legacy.protocol : rule.protocol ?? "current", legacy };
108
115
  }