@guandata/decidex 0.5.0 → 0.6.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 +24 -6
- package/docs/api-coverage.md +15 -8
- package/package.json +1 -1
- package/src/api-catalog.json +323 -34
- package/src/cli.js +63 -5
- package/src/compatibility.js +9 -3
package/README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# Decidex CLI
|
|
2
2
|
|
|
3
|
-
基于 Decidex **0.0.
|
|
3
|
+
基于 Decidex **0.0.10** HTTP API 的零依赖 Node.js CLI(CLI 版本 0.6.0)。要求 Node.js 22+。
|
|
4
4
|
|
|
5
|
-
适配基线:[tag 0.0.
|
|
5
|
+
适配基线:[tag 0.0.10 / b14beee9a](https://gitlab.mayidata.com/zijie0/decidex/-/tree/0.0.10),2026-11-18。按实际部署的 release 契约执行,保留 0.0.5 调度兼容。
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g @guandata/decidex@0.
|
|
8
|
+
npm install -g @guandata/decidex@0.6.0
|
|
9
9
|
decidex version --json # 本地 CLI 版本
|
|
10
10
|
decidex server version # 目标服务端版本与 commit
|
|
11
11
|
decidex server check auth whoami
|
|
12
|
+
decidex server license # 服务端 >= 0.0.9 的产品授权状态
|
|
12
13
|
decidex auth login --base-url https://decidex.example.com
|
|
13
14
|
decidex auth status
|
|
14
15
|
decidex context show
|
|
@@ -34,7 +35,7 @@ decidex auth whoami # 服务端 >= 0.0.5,返回已验证的
|
|
|
34
35
|
|
|
35
36
|
版本来自已登录目标的 `GET /api/app-version`,每次 CLI 进程重新读取,不持久缓存。`version` 查询即使遇到 `dev` 等版本也会显示原值和 `comparable=false`;需要版本决策的命令遇到无法比较的版本、认证失败或版本查询失败会明确报错,不猜测版本或在写入失败后重试另一种协议。
|
|
36
37
|
|
|
37
|
-
`server check` 对没有版本规则的命令返回 `supported=null`、`reason=no_version_rule`,表示尚未声明版本边界,不能据此断言目标支持。`0.0.
|
|
38
|
+
`server check` 对没有版本规则的命令返回 `supported=null`、`reason=no_version_rule`,表示尚未声明版本边界,不能据此断言目标支持。`0.0.10` 是本次适配基线,不是所有命令的首次发布版本。SemVer 比较支持 `v` 前缀、预发布和构建信息;例如 `0.0.8-rc.1` 低于正式 `0.0.8`。
|
|
38
39
|
|
|
39
40
|
已核实的版本差异:
|
|
40
41
|
|
|
@@ -44,6 +45,8 @@ decidex auth whoami # 服务端 >= 0.0.5,返回已验证的
|
|
|
44
45
|
| `auth status` / `auth login` 的登录验证 | 原有 Agent 列表验证,`legacy=true`,用户/组织身份未验证 | `/api/auth/context`,返回已验证身份 |
|
|
45
46
|
| `context show` | 本地上下文,`organizationIdVerified=false` | 读取服务端身份;可在没有活动组织时使用 |
|
|
46
47
|
|
|
48
|
+
`server license` 查询产品授权状态(>= 0.0.9)。运行遇到 `decidexLicenseAdmissionBlocked` 时,CLI 保留 403、错误码及 JSON 中的 `reason`,提示查授权,不把它当作登录失效,也不自动重试 Run。
|
|
49
|
+
|
|
47
50
|
常用命令的兼容规则在 `src/compatibility.js`,操作目录的路由版本在 `src/api-catalog.json`。后续添加命令时,可依据实际 release tag 声明:
|
|
48
51
|
|
|
49
52
|
```js
|
|
@@ -100,6 +103,10 @@ decidex agent delete AGENT_ID
|
|
|
100
103
|
|
|
101
104
|
服务端 >= 0.0.7 可配置 `biUserPropertiesEnabled`(创建默认 `false`)和 `biUserPropertyKeys`(默认 `[]`)。Key 最多 20 项,每项去空白后 1..200 字符,去重保序;可选 Key 通过 `decidex platform call personal-agents.bi-user-property-options.list --agent-id AGENT_ID` 查询,实际可用性取决于维护者的 BI 身份和属性目录。旧服务端使用这些字段会在写入前被 CLI 拒绝。
|
|
102
105
|
|
|
106
|
+
服务端 >= 0.0.9 可设置 `promptSuggestionsEnabled`,创建时默认 `true`;设为 `false` 停止生成推荐追问。>= 0.0.10 可在 `betaFeatures` 中设置 `collaborationEnabled` 和 `collaborationExpertAgentIds`,名单最多 20 项、每项 1..120 字符且不能重复;新增专家需其编辑权限,不能选择 Agent 自身。0.0.9 的 `collaborationDefaultEnabled` / `collaborationExpertEnabled` 仅在该版本按原协议保留,0.0.10 起明确拒绝;由于授权含义变化,CLI 不会自动转换专家名单。
|
|
107
|
+
|
|
108
|
+
0.0.10 导入迁移包时会移除源协作开关和专家绑定,并返回 `COLLABORATION_REQUIRES_BINDING` 提示;导入后应按目标环境重新配置。导出包仍可保留源配置用于留档。
|
|
109
|
+
|
|
103
110
|
上传参考文件和执行冒烟问题:
|
|
104
111
|
|
|
105
112
|
```bash
|
|
@@ -163,6 +170,8 @@ decidex run diagnose RUN_ID --session-id SESSION_ID --json
|
|
|
163
170
|
|
|
164
171
|
`session list` 的两个 `--pinned-*-id` 参数可重复,要求服务端 >= 0.0.7;只用于历史列表保留指定条目,不修改平台的置顶状态。
|
|
165
172
|
|
|
173
|
+
服务端 >= 0.0.9 可用 `decidex session follow-ups SESSION_ID --run-id RUN_ID` 读取已保存的推荐追问;它只返回最新成功 Run 的结果,不发起模型任务。`pending=true` 表示仍在生成,`prompts=[]` 也可能表示关闭或当前 Run 不适用;命令不会自动把推荐内容发送出去。
|
|
174
|
+
|
|
166
175
|
`session rename` 的标题不能为空,最多 24 个字符。
|
|
167
176
|
|
|
168
177
|
会话列表按页返回;`--cursor` 接收 `nextCursor` 原值,`--agent-id` 查询指定 Agent 的历史页。`--status` 只过滤当前页,`completed` 表示非 RUNNING(含 ERROR),空页仍可能有下一页。`--query` 不可与 `--cursor` / `--agent-id` 同用。`session view --before OLDER_CURSOR` 读取更早消息,`--since LIVE_CURSOR` 读取增量;两者互斥。
|
|
@@ -295,12 +304,17 @@ decidex eval files download AGENT_ID RUN_ID --scope analysis --suffix .boe --all
|
|
|
295
304
|
普通 Personal Agent 人工 normal 会话空闲且无排队消息时,可显式开启专家协作。先检查 `available`;平台功能开关或 Runtime 不满足要求时,服务端会拒绝,不会自动开启配置:
|
|
296
305
|
|
|
297
306
|
```bash
|
|
307
|
+
# >= 0.0.9:先读取说明;显式保存当前组织成员的确认
|
|
308
|
+
decidex session collaboration disclosure
|
|
309
|
+
decidex session collaboration consent --accept-governance-notice
|
|
298
310
|
decidex session collaboration status SESSION_ID
|
|
299
311
|
decidex session collaboration activate SESSION_ID --accept-governance-notice
|
|
300
312
|
decidex session collaboration stop SESSION_ID --epoch 1
|
|
301
313
|
decidex session collaboration download SESSION_ID shared/result.txt ./result.txt
|
|
302
314
|
```
|
|
303
315
|
|
|
316
|
+
服务端 0.0.8 保留 activate 的单次确认;>= 0.0.9 的 `consent` 会保存当前组织成员对说明版本 1 的确认,`activate` 不会代为保存。说明版本改变时 CLI 拒绝自动确认。>= 0.0.10 需先在 Agent 配置开启 `betaFeatures.collaborationEnabled` 并创建新会话;专家名单通过 `collaborationExpertAgentIds` 维护。
|
|
317
|
+
|
|
304
318
|
专家以会话所有者的身份和权限运行,可能增加模型消耗,专家管理者可审查收到及共享的材料。`--epoch` 必须取最新 `status` 返回的 `work.epoch`,不要固定照抄示例。材料路径取状态返回的 `shared/...` 或 `deliveries/...`;不传 Runtime 工作区路径。专家任务详情可用 `task SESSION_ID TASK_ID` 查询。
|
|
305
319
|
|
|
306
320
|
显式继续已停止的工作使用 `continue SESSION_ID --submission-id UUID`;同一次操作保留相同 UUID,响应不确定时先查状态,不自动重新触发。`session send` 原有的普通回复或排队返回不能替代协作交付确认。
|
|
@@ -434,7 +448,7 @@ decidex platform coverage
|
|
|
434
448
|
|
|
435
449
|
版本边界来自 release tag 中的路由存在性,**不等于该版本所有业务字段均兼容**;字段与权限仍以服务端契约为准。仅在 main 存在的操作默认拒绝,确认目标已部署后才能显式 `--allow-unreleased`,不猜测未来版本号。`inputHints` 是路由文件线索,不是完整请求 schema。
|
|
436
450
|
|
|
437
|
-
当前目录覆盖
|
|
451
|
+
当前目录覆盖 486/486 个纳入范围的操作,全部存在于 0.0.10 tag。全部 613 个路由操作中另有 127 个运行时、服务令牌、公开分享、回调、流式或代理协议,未纳入浏览器登录态 CLI;按全部路由计为 79.3%。这表示操作入口覆盖,不是逐接口业务验证或真实冒烟覆盖。详见 [覆盖审计](docs/api-coverage.md)。
|
|
438
452
|
|
|
439
453
|
## 组织
|
|
440
454
|
|
|
@@ -489,7 +503,7 @@ CI 中可使用 `DECIDEX_BASE_URL` 和 `DECIDEX_SESSION`,无需写本地配置
|
|
|
489
503
|
npm test
|
|
490
504
|
npm pack --dry-run
|
|
491
505
|
# 更新 API 目录:必须指定已核对的源码 commit 和适配 tag
|
|
492
|
-
python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.
|
|
506
|
+
python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.10
|
|
493
507
|
npm install -g . # 更新本机 decidex;不发布到 npm
|
|
494
508
|
```
|
|
495
509
|
|
|
@@ -525,3 +539,7 @@ CLI 0.4.0 适配 tag `0.0.7 / cfdf08dba`:新增 Agent BI 用户属性、历史
|
|
|
525
539
|
## 2026-11-13 / 服务端 0.0.8 适配
|
|
526
540
|
|
|
527
541
|
CLI 0.5.0 适配 `0.0.8 / b5cbd94c0`:新增专家协作状态、开启/继续/停止、任务详情与材料下载,增加后台改进开关。新命令在目标低于 0.0.8 时停止。目录更新为 469 项,补入企微证据存储配置及知识修改新入口,移除已退休的手动自进化与旧记忆建议操作。服务令牌与内部协作协议继续排除,不借用用户登录态调用。
|
|
542
|
+
|
|
543
|
+
## 2026-11-18 / 服务端 0.0.10 适配
|
|
544
|
+
|
|
545
|
+
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 项管理操作,逐接口业务验证仍有限。
|
package/docs/api-coverage.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# API 覆盖审计
|
|
2
2
|
|
|
3
|
-
更新:2026-11-
|
|
3
|
+
更新:2026-11-18;CLI:0.6.0;适配服务端:0.0.10。
|
|
4
4
|
|
|
5
|
-
源码依据与适配基线:[0.0.
|
|
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` 兜底算作覆盖。
|
|
6
6
|
|
|
7
7
|
## 覆盖口径
|
|
8
8
|
|
|
9
9
|
| 范围 | 操作数 | CLI 入口 |
|
|
10
10
|
| --- | ---: | --- |
|
|
11
|
-
| 用户/管理员主动调用的 HTTP 操作 |
|
|
12
|
-
| 其中存在于 0.0.
|
|
11
|
+
| 用户/管理员主动调用的 HTTP 操作 | 486 | 全部注册到 `platform list/show/call`,目录覆盖 100% |
|
|
12
|
+
| 其中存在于 0.0.10 tag | 486 | 默认可调用,实际权限由服务端判断 |
|
|
13
13
|
| 其中仅在 main | 0 | 本次目录仅取部署 release |
|
|
14
|
-
| 运行时、分享、认证回调等协议 |
|
|
15
|
-
| 全部路由操作 |
|
|
14
|
+
| 运行时、分享、认证回调等协议 | 127 | 不纳入浏览器登录态 CLI |
|
|
15
|
+
| 全部路由操作 | 613 | 按全部路由计算为 79.3% |
|
|
16
16
|
|
|
17
17
|
**90% 目标在“用户/管理员主动操作”的入口范围内达到;若包含服务协议全部路由,仍未达到 90%。** 目录注册证明请求入口可发现、路径参数可校验、传输可执行,不证明每个接口字段已适配或业务功能经过冒烟。特殊协议不应通过替换认证头强行视为普通管理 API。
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
- 上述扩展领域多数没有专用流程命令;请求字段仍需依据对应服务端 route/契约,`inputHints` 只提供线索。
|
|
28
28
|
- 版本元数据只证明路由在哪个 tag 已存在,不保证相同路由的请求字段、语义或权限始终不变;字段协议变化仍需单独适配与测试。
|
|
29
|
-
- 未支持内部运行时 25 项、服务令牌协议
|
|
29
|
+
- 未支持内部运行时 25 项、服务令牌协议 77 项、外部消息回调/投递 8 项、认证回调/元数据 9 项、事件流 2 项、代理/预览 catch-all 3 项、公开分享 3 项。
|
|
30
30
|
- 当前上传/下载整包载入内存;外部消息实际送达、管理员写配置及每个接口的业务成功路径未全量验证。
|
|
31
31
|
|
|
32
32
|
## 0.0.6 版本差异
|
|
@@ -51,10 +51,17 @@
|
|
|
51
51
|
- 新增的内部协作 1 项、服务令牌 6 项协议不纳入用户登录态调用入口;系统与自定义 BI 属性使用同一目录,新参数仍由目标校验。
|
|
52
52
|
- 原生协作命令保留显式治理确认、调用方提交 UUID 和当前 epoch,不自动生成继续请求或冲突重试;是否可用仍由平台开关与 Kubernetes Runtime 判断。
|
|
53
53
|
|
|
54
|
+
## 0.0.9 / 0.0.10 版本差异
|
|
55
|
+
|
|
56
|
+
- 相比 0.0.8 新增 19 个管理操作、移除 2 个组织用户记忆建议操作,净增 17 项。新增产品授权、推荐追问、本体会话草稿、协作确认/专家候选、成员渠道身份、BI 元数据/连接及组织设置等入口;实际最低版本按 tag 分别标记为 0.0.9 或 0.0.10。
|
|
57
|
+
- 新增的 10 个服务令牌协议仍排除。两个 BI OAuth 授权起点虽然返回 JSON,但依赖 Set-Cookie 事务和浏览器回调,本 CLI 不管理该 Cookie 链路,归入浏览器授权协议;不把完整授权流程算成已覆盖。
|
|
58
|
+
- 0.0.9 协作说明按组织成员保存,CLI 只在显式 consent 时提交版本 1;0.0.10 配置改为 collaborationEnabled 与专家 ID 名单,旧字段不自动转换授权。0.0.8 激活协议及 0.0.9 旧配置用法保留版本分支。
|
|
59
|
+
- 授权阻断保留原 HTTP 403、错误码和 reason,不触发重新登录或重试。推荐追问读取只查询保存结果,空列表不等同于执行失败。0.0.10 导入包不复制源专家绑定,真实导入验证了告警和移除行为。
|
|
60
|
+
|
|
54
61
|
## 复核方法
|
|
55
62
|
|
|
56
63
|
```bash
|
|
57
|
-
python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.
|
|
64
|
+
python3 scripts/sync-api-catalog.py --repo /path/to/decidex --ref COMMIT --baseline 0.0.10
|
|
58
65
|
decidex platform coverage
|
|
59
66
|
decidex platform list --group knowledge-library
|
|
60
67
|
decidex platform show knowledge-library.folders.documents.create
|
package/package.json
CHANGED
package/src/api-catalog.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceCommit": "
|
|
4
|
-
"baselineVersion": "0.0.
|
|
5
|
-
"baselineCommit": "
|
|
3
|
+
"sourceCommit": "b14beee9a0478a102e93894b53c5eaa042a7e2ce",
|
|
4
|
+
"baselineVersion": "0.0.10",
|
|
5
|
+
"baselineCommit": "b14beee9a0478a102e93894b53c5eaa042a7e2ce",
|
|
6
6
|
"coverage": {
|
|
7
|
-
"allRouteOperations":
|
|
8
|
-
"eligibleOperations":
|
|
9
|
-
"catalogOperations":
|
|
10
|
-
"excludedOperations":
|
|
7
|
+
"allRouteOperations": 613,
|
|
8
|
+
"eligibleOperations": 486,
|
|
9
|
+
"catalogOperations": 486,
|
|
10
|
+
"excludedOperations": 127,
|
|
11
11
|
"catalogCoveragePercent": 100,
|
|
12
|
-
"baselineOperations":
|
|
12
|
+
"baselineOperations": 486,
|
|
13
13
|
"groups": {
|
|
14
14
|
"account": 4,
|
|
15
15
|
"action-tasks": 6,
|
|
16
16
|
"agent-channels": 3,
|
|
17
|
+
"agent-collaboration": 2,
|
|
17
18
|
"agent-session-conversation-references": 1,
|
|
18
19
|
"agent-session-turn-references": 1,
|
|
19
20
|
"agent-sessions": 1,
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"auth": 7,
|
|
23
24
|
"bi-asset-citations": 1,
|
|
24
25
|
"biz-ontology": 64,
|
|
26
|
+
"decidex-license": 2,
|
|
25
27
|
"decision-tracking-tasks": 10,
|
|
26
28
|
"health": 1,
|
|
27
29
|
"i18n": 1,
|
|
@@ -33,11 +35,10 @@
|
|
|
33
35
|
"organization-email": 5,
|
|
34
36
|
"organization-service-channels": 6,
|
|
35
37
|
"organization-user-memories": 5,
|
|
36
|
-
"
|
|
37
|
-
"organizations": 9,
|
|
38
|
+
"organizations": 16,
|
|
38
39
|
"personal-agent-automations": 7,
|
|
39
|
-
"personal-agents":
|
|
40
|
-
"platform":
|
|
40
|
+
"personal-agents": 170,
|
|
41
|
+
"platform": 41,
|
|
41
42
|
"plugins": 8,
|
|
42
43
|
"product-feedback": 4,
|
|
43
44
|
"recommended-agents": 1,
|
|
@@ -413,17 +414,19 @@
|
|
|
413
414
|
"sourceFile": "src/app/api/organization-user-memories/[memoryId]/route.ts"
|
|
414
415
|
},
|
|
415
416
|
{
|
|
416
|
-
"id": "
|
|
417
|
+
"id": "organizations.current.members.channel-identities.delete",
|
|
417
418
|
"method": "DELETE",
|
|
418
|
-
"path": "/api/
|
|
419
|
-
"group": "
|
|
419
|
+
"path": "/api/organizations/current/members/[userId]/channel-identities",
|
|
420
|
+
"group": "organizations",
|
|
420
421
|
"parameters": [
|
|
421
|
-
"
|
|
422
|
+
"userId"
|
|
422
423
|
],
|
|
423
|
-
"minVersion": "0.0.
|
|
424
|
+
"minVersion": "0.0.9",
|
|
424
425
|
"inBaseline": true,
|
|
425
|
-
"inputHints": [
|
|
426
|
-
|
|
426
|
+
"inputHints": [
|
|
427
|
+
"json"
|
|
428
|
+
],
|
|
429
|
+
"sourceFile": "src/app/api/organizations/current/members/[userId]/channel-identities/route.ts"
|
|
427
430
|
},
|
|
428
431
|
{
|
|
429
432
|
"id": "personal-agent-automations.delete",
|
|
@@ -762,6 +765,19 @@
|
|
|
762
765
|
"inputHints": [],
|
|
763
766
|
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/shared-files/[sharedFileId]/route.ts"
|
|
764
767
|
},
|
|
768
|
+
{
|
|
769
|
+
"id": "platform.bi-connections.delete",
|
|
770
|
+
"method": "DELETE",
|
|
771
|
+
"path": "/api/platform/bi-connections",
|
|
772
|
+
"group": "platform",
|
|
773
|
+
"parameters": [],
|
|
774
|
+
"minVersion": "0.0.10",
|
|
775
|
+
"inBaseline": true,
|
|
776
|
+
"inputHints": [
|
|
777
|
+
"json"
|
|
778
|
+
],
|
|
779
|
+
"sourceFile": "src/app/api/platform/bi-connections/route.ts"
|
|
780
|
+
},
|
|
765
781
|
{
|
|
766
782
|
"id": "platform.categories.delete",
|
|
767
783
|
"method": "DELETE",
|
|
@@ -964,6 +980,19 @@
|
|
|
964
980
|
"inputHints": [],
|
|
965
981
|
"sourceFile": "src/app/api/action-tasks/[taskId]/events/[eventId]/attachments/[index]/route.ts"
|
|
966
982
|
},
|
|
983
|
+
{
|
|
984
|
+
"id": "agent-collaboration.disclosure.list",
|
|
985
|
+
"method": "GET",
|
|
986
|
+
"path": "/api/agent-collaboration/disclosure",
|
|
987
|
+
"group": "agent-collaboration",
|
|
988
|
+
"parameters": [],
|
|
989
|
+
"minVersion": "0.0.9",
|
|
990
|
+
"inBaseline": true,
|
|
991
|
+
"inputHints": [
|
|
992
|
+
"json"
|
|
993
|
+
],
|
|
994
|
+
"sourceFile": "src/app/api/agent-collaboration/disclosure/route.ts"
|
|
995
|
+
},
|
|
967
996
|
{
|
|
968
997
|
"id": "agent-session-conversation-references.list",
|
|
969
998
|
"method": "GET",
|
|
@@ -1479,6 +1508,17 @@
|
|
|
1479
1508
|
"inputHints": [],
|
|
1480
1509
|
"sourceFile": "src/app/api/biz-ontology/networks/[networkId]/versions/[versionId]/route.ts"
|
|
1481
1510
|
},
|
|
1511
|
+
{
|
|
1512
|
+
"id": "decidex-license.list",
|
|
1513
|
+
"method": "GET",
|
|
1514
|
+
"path": "/api/decidex-license",
|
|
1515
|
+
"group": "decidex-license",
|
|
1516
|
+
"parameters": [],
|
|
1517
|
+
"minVersion": "0.0.9",
|
|
1518
|
+
"inBaseline": true,
|
|
1519
|
+
"inputHints": [],
|
|
1520
|
+
"sourceFile": "src/app/api/decidex-license/route.ts"
|
|
1521
|
+
},
|
|
1482
1522
|
{
|
|
1483
1523
|
"id": "decision-tracking-tasks.list",
|
|
1484
1524
|
"method": "GET",
|
|
@@ -2064,6 +2104,19 @@
|
|
|
2064
2104
|
"inputHints": [],
|
|
2065
2105
|
"sourceFile": "src/app/api/organizations/current/bi-user-sync/users/route.ts"
|
|
2066
2106
|
},
|
|
2107
|
+
{
|
|
2108
|
+
"id": "organizations.current.general-assistant.list",
|
|
2109
|
+
"method": "GET",
|
|
2110
|
+
"path": "/api/organizations/current/general-assistant",
|
|
2111
|
+
"group": "organizations",
|
|
2112
|
+
"parameters": [],
|
|
2113
|
+
"minVersion": "0.0.10",
|
|
2114
|
+
"inBaseline": true,
|
|
2115
|
+
"inputHints": [
|
|
2116
|
+
"json"
|
|
2117
|
+
],
|
|
2118
|
+
"sourceFile": "src/app/api/organizations/current/general-assistant/route.ts"
|
|
2119
|
+
},
|
|
2067
2120
|
{
|
|
2068
2121
|
"id": "organizations.current.members.list",
|
|
2069
2122
|
"method": "GET",
|
|
@@ -2077,6 +2130,34 @@
|
|
|
2077
2130
|
],
|
|
2078
2131
|
"sourceFile": "src/app/api/organizations/current/members/route.ts"
|
|
2079
2132
|
},
|
|
2133
|
+
{
|
|
2134
|
+
"id": "organizations.current.members.channel-identities.list",
|
|
2135
|
+
"method": "GET",
|
|
2136
|
+
"path": "/api/organizations/current/members/[userId]/channel-identities",
|
|
2137
|
+
"group": "organizations",
|
|
2138
|
+
"parameters": [
|
|
2139
|
+
"userId"
|
|
2140
|
+
],
|
|
2141
|
+
"minVersion": "0.0.9",
|
|
2142
|
+
"inBaseline": true,
|
|
2143
|
+
"inputHints": [
|
|
2144
|
+
"json"
|
|
2145
|
+
],
|
|
2146
|
+
"sourceFile": "src/app/api/organizations/current/members/[userId]/channel-identities/route.ts"
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"id": "organizations.current.webpage-title.list",
|
|
2150
|
+
"method": "GET",
|
|
2151
|
+
"path": "/api/organizations/current/webpage-title",
|
|
2152
|
+
"group": "organizations",
|
|
2153
|
+
"parameters": [],
|
|
2154
|
+
"minVersion": "0.0.10",
|
|
2155
|
+
"inBaseline": true,
|
|
2156
|
+
"inputHints": [
|
|
2157
|
+
"json"
|
|
2158
|
+
],
|
|
2159
|
+
"sourceFile": "src/app/api/organizations/current/webpage-title/route.ts"
|
|
2160
|
+
},
|
|
2080
2161
|
{
|
|
2081
2162
|
"id": "personal-agent-automations.list",
|
|
2082
2163
|
"method": "GET",
|
|
@@ -2910,6 +2991,20 @@
|
|
|
2910
2991
|
"inputHints": [],
|
|
2911
2992
|
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/files/svg-preview/[token]/route.ts"
|
|
2912
2993
|
},
|
|
2994
|
+
{
|
|
2995
|
+
"id": "personal-agents.sessions.follow-ups.list",
|
|
2996
|
+
"method": "GET",
|
|
2997
|
+
"path": "/api/personal-agents/[agentId]/sessions/[sessionId]/follow-ups",
|
|
2998
|
+
"group": "personal-agents",
|
|
2999
|
+
"parameters": [
|
|
3000
|
+
"agentId",
|
|
3001
|
+
"sessionId"
|
|
3002
|
+
],
|
|
3003
|
+
"minVersion": "0.0.9",
|
|
3004
|
+
"inBaseline": true,
|
|
3005
|
+
"inputHints": [],
|
|
3006
|
+
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/follow-ups/route.ts"
|
|
3007
|
+
},
|
|
2913
3008
|
{
|
|
2914
3009
|
"id": "personal-agents.sessions.ontology-baseline.list",
|
|
2915
3010
|
"method": "GET",
|
|
@@ -2924,6 +3019,22 @@
|
|
|
2924
3019
|
"inputHints": [],
|
|
2925
3020
|
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/ontology-baseline/route.ts"
|
|
2926
3021
|
},
|
|
3022
|
+
{
|
|
3023
|
+
"id": "personal-agents.sessions.ontology-draft.list",
|
|
3024
|
+
"method": "GET",
|
|
3025
|
+
"path": "/api/personal-agents/[agentId]/sessions/[sessionId]/ontology-draft",
|
|
3026
|
+
"group": "personal-agents",
|
|
3027
|
+
"parameters": [
|
|
3028
|
+
"agentId",
|
|
3029
|
+
"sessionId"
|
|
3030
|
+
],
|
|
3031
|
+
"minVersion": "0.0.9",
|
|
3032
|
+
"inBaseline": true,
|
|
3033
|
+
"inputHints": [
|
|
3034
|
+
"json"
|
|
3035
|
+
],
|
|
3036
|
+
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/ontology-draft/route.ts"
|
|
3037
|
+
},
|
|
2927
3038
|
{
|
|
2928
3039
|
"id": "personal-agents.sessions.personal-agent-draft.list",
|
|
2929
3040
|
"method": "GET",
|
|
@@ -3112,6 +3223,17 @@
|
|
|
3112
3223
|
"inputHints": [],
|
|
3113
3224
|
"sourceFile": "src/app/api/personal-agents/choices/route.ts"
|
|
3114
3225
|
},
|
|
3226
|
+
{
|
|
3227
|
+
"id": "personal-agents.collaboration-experts.list",
|
|
3228
|
+
"method": "GET",
|
|
3229
|
+
"path": "/api/personal-agents/collaboration-experts",
|
|
3230
|
+
"group": "personal-agents",
|
|
3231
|
+
"parameters": [],
|
|
3232
|
+
"minVersion": "0.0.10",
|
|
3233
|
+
"inBaseline": true,
|
|
3234
|
+
"inputHints": [],
|
|
3235
|
+
"sourceFile": "src/app/api/personal-agents/collaboration-experts/route.ts"
|
|
3236
|
+
},
|
|
3115
3237
|
{
|
|
3116
3238
|
"id": "platform.access.list",
|
|
3117
3239
|
"method": "GET",
|
|
@@ -3162,6 +3284,19 @@
|
|
|
3162
3284
|
"inputHints": [],
|
|
3163
3285
|
"sourceFile": "src/app/api/platform/background-tasks/route.ts"
|
|
3164
3286
|
},
|
|
3287
|
+
{
|
|
3288
|
+
"id": "platform.bi-connections.list",
|
|
3289
|
+
"method": "GET",
|
|
3290
|
+
"path": "/api/platform/bi-connections",
|
|
3291
|
+
"group": "platform",
|
|
3292
|
+
"parameters": [],
|
|
3293
|
+
"minVersion": "0.0.10",
|
|
3294
|
+
"inBaseline": true,
|
|
3295
|
+
"inputHints": [
|
|
3296
|
+
"json"
|
|
3297
|
+
],
|
|
3298
|
+
"sourceFile": "src/app/api/platform/bi-connections/route.ts"
|
|
3299
|
+
},
|
|
3165
3300
|
{
|
|
3166
3301
|
"id": "platform.categories.list",
|
|
3167
3302
|
"method": "GET",
|
|
@@ -4306,6 +4441,19 @@
|
|
|
4306
4441
|
],
|
|
4307
4442
|
"sourceFile": "src/app/api/agent-channels/wecom/user-bindings/route.ts"
|
|
4308
4443
|
},
|
|
4444
|
+
{
|
|
4445
|
+
"id": "agent-collaboration.disclosure.create",
|
|
4446
|
+
"method": "POST",
|
|
4447
|
+
"path": "/api/agent-collaboration/disclosure",
|
|
4448
|
+
"group": "agent-collaboration",
|
|
4449
|
+
"parameters": [],
|
|
4450
|
+
"minVersion": "0.0.9",
|
|
4451
|
+
"inBaseline": true,
|
|
4452
|
+
"inputHints": [
|
|
4453
|
+
"json"
|
|
4454
|
+
],
|
|
4455
|
+
"sourceFile": "src/app/api/agent-collaboration/disclosure/route.ts"
|
|
4456
|
+
},
|
|
4309
4457
|
{
|
|
4310
4458
|
"id": "ai-ops.feedback.create",
|
|
4311
4459
|
"method": "POST",
|
|
@@ -4652,6 +4800,17 @@
|
|
|
4652
4800
|
],
|
|
4653
4801
|
"sourceFile": "src/app/api/biz-ontology/networks/import/route.ts"
|
|
4654
4802
|
},
|
|
4803
|
+
{
|
|
4804
|
+
"id": "decidex-license.recheck.create",
|
|
4805
|
+
"method": "POST",
|
|
4806
|
+
"path": "/api/decidex-license/recheck",
|
|
4807
|
+
"group": "decidex-license",
|
|
4808
|
+
"parameters": [],
|
|
4809
|
+
"minVersion": "0.0.9",
|
|
4810
|
+
"inBaseline": true,
|
|
4811
|
+
"inputHints": [],
|
|
4812
|
+
"sourceFile": "src/app/api/decidex-license/recheck/route.ts"
|
|
4813
|
+
},
|
|
4655
4814
|
{
|
|
4656
4815
|
"id": "decision-tracking-tasks.initial-report.create",
|
|
4657
4816
|
"method": "POST",
|
|
@@ -5017,21 +5176,6 @@
|
|
|
5017
5176
|
],
|
|
5018
5177
|
"sourceFile": "src/app/api/organization-user-memories/route.ts"
|
|
5019
5178
|
},
|
|
5020
|
-
{
|
|
5021
|
-
"id": "organization-user-memory-suggestions.accept.create",
|
|
5022
|
-
"method": "POST",
|
|
5023
|
-
"path": "/api/organization-user-memory-suggestions/[suggestionId]/accept",
|
|
5024
|
-
"group": "organization-user-memory-suggestions",
|
|
5025
|
-
"parameters": [
|
|
5026
|
-
"suggestionId"
|
|
5027
|
-
],
|
|
5028
|
-
"minVersion": "0.0.1",
|
|
5029
|
-
"inBaseline": true,
|
|
5030
|
-
"inputHints": [
|
|
5031
|
-
"json"
|
|
5032
|
-
],
|
|
5033
|
-
"sourceFile": "src/app/api/organization-user-memory-suggestions/[suggestionId]/accept/route.ts"
|
|
5034
|
-
},
|
|
5035
5179
|
{
|
|
5036
5180
|
"id": "organizations.create",
|
|
5037
5181
|
"method": "POST",
|
|
@@ -5166,6 +5310,21 @@
|
|
|
5166
5310
|
],
|
|
5167
5311
|
"sourceFile": "src/app/api/personal-agents/[agentId]/collaborators/route.ts"
|
|
5168
5312
|
},
|
|
5313
|
+
{
|
|
5314
|
+
"id": "personal-agents.context-references.guandata.metadata.create",
|
|
5315
|
+
"method": "POST",
|
|
5316
|
+
"path": "/api/personal-agents/[agentId]/context-references/guandata/metadata",
|
|
5317
|
+
"group": "personal-agents",
|
|
5318
|
+
"parameters": [
|
|
5319
|
+
"agentId"
|
|
5320
|
+
],
|
|
5321
|
+
"minVersion": "0.0.10",
|
|
5322
|
+
"inBaseline": true,
|
|
5323
|
+
"inputHints": [
|
|
5324
|
+
"json"
|
|
5325
|
+
],
|
|
5326
|
+
"sourceFile": "src/app/api/personal-agents/[agentId]/context-references/guandata/metadata/route.ts"
|
|
5327
|
+
},
|
|
5169
5328
|
{
|
|
5170
5329
|
"id": "personal-agents.debug.create",
|
|
5171
5330
|
"method": "POST",
|
|
@@ -6430,6 +6589,47 @@
|
|
|
6430
6589
|
],
|
|
6431
6590
|
"sourceFile": "src/app/api/organizations/current/bi-user-sync/route.ts"
|
|
6432
6591
|
},
|
|
6592
|
+
{
|
|
6593
|
+
"id": "organizations.current.general-assistant.put",
|
|
6594
|
+
"method": "PUT",
|
|
6595
|
+
"path": "/api/organizations/current/general-assistant",
|
|
6596
|
+
"group": "organizations",
|
|
6597
|
+
"parameters": [],
|
|
6598
|
+
"minVersion": "0.0.10",
|
|
6599
|
+
"inBaseline": true,
|
|
6600
|
+
"inputHints": [
|
|
6601
|
+
"json"
|
|
6602
|
+
],
|
|
6603
|
+
"sourceFile": "src/app/api/organizations/current/general-assistant/route.ts"
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
"id": "organizations.current.members.channel-identities.put",
|
|
6607
|
+
"method": "PUT",
|
|
6608
|
+
"path": "/api/organizations/current/members/[userId]/channel-identities",
|
|
6609
|
+
"group": "organizations",
|
|
6610
|
+
"parameters": [
|
|
6611
|
+
"userId"
|
|
6612
|
+
],
|
|
6613
|
+
"minVersion": "0.0.9",
|
|
6614
|
+
"inBaseline": true,
|
|
6615
|
+
"inputHints": [
|
|
6616
|
+
"json"
|
|
6617
|
+
],
|
|
6618
|
+
"sourceFile": "src/app/api/organizations/current/members/[userId]/channel-identities/route.ts"
|
|
6619
|
+
},
|
|
6620
|
+
{
|
|
6621
|
+
"id": "organizations.current.webpage-title.put",
|
|
6622
|
+
"method": "PUT",
|
|
6623
|
+
"path": "/api/organizations/current/webpage-title",
|
|
6624
|
+
"group": "organizations",
|
|
6625
|
+
"parameters": [],
|
|
6626
|
+
"minVersion": "0.0.10",
|
|
6627
|
+
"inBaseline": true,
|
|
6628
|
+
"inputHints": [
|
|
6629
|
+
"json"
|
|
6630
|
+
],
|
|
6631
|
+
"sourceFile": "src/app/api/organizations/current/webpage-title/route.ts"
|
|
6632
|
+
},
|
|
6433
6633
|
{
|
|
6434
6634
|
"id": "personal-agents.put",
|
|
6435
6635
|
"method": "PUT",
|
|
@@ -6552,6 +6752,22 @@
|
|
|
6552
6752
|
],
|
|
6553
6753
|
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/model-selection/route.ts"
|
|
6554
6754
|
},
|
|
6755
|
+
{
|
|
6756
|
+
"id": "personal-agents.sessions.ontology-draft.put",
|
|
6757
|
+
"method": "PUT",
|
|
6758
|
+
"path": "/api/personal-agents/[agentId]/sessions/[sessionId]/ontology-draft",
|
|
6759
|
+
"group": "personal-agents",
|
|
6760
|
+
"parameters": [
|
|
6761
|
+
"agentId",
|
|
6762
|
+
"sessionId"
|
|
6763
|
+
],
|
|
6764
|
+
"minVersion": "0.0.9",
|
|
6765
|
+
"inBaseline": true,
|
|
6766
|
+
"inputHints": [
|
|
6767
|
+
"json"
|
|
6768
|
+
],
|
|
6769
|
+
"sourceFile": "src/app/api/personal-agents/[agentId]/sessions/[sessionId]/ontology-draft/route.ts"
|
|
6770
|
+
},
|
|
6555
6771
|
{
|
|
6556
6772
|
"id": "personal-agents.sessions.resources.put",
|
|
6557
6773
|
"method": "PUT",
|
|
@@ -6622,6 +6838,19 @@
|
|
|
6622
6838
|
],
|
|
6623
6839
|
"sourceFile": "src/app/api/platform/automation-push/route.ts"
|
|
6624
6840
|
},
|
|
6841
|
+
{
|
|
6842
|
+
"id": "platform.bi-connections.put",
|
|
6843
|
+
"method": "PUT",
|
|
6844
|
+
"path": "/api/platform/bi-connections",
|
|
6845
|
+
"group": "platform",
|
|
6846
|
+
"parameters": [],
|
|
6847
|
+
"minVersion": "0.0.10",
|
|
6848
|
+
"inBaseline": true,
|
|
6849
|
+
"inputHints": [
|
|
6850
|
+
"json"
|
|
6851
|
+
],
|
|
6852
|
+
"sourceFile": "src/app/api/platform/bi-connections/route.ts"
|
|
6853
|
+
},
|
|
6625
6854
|
{
|
|
6626
6855
|
"id": "platform.galaxy-oidc.put",
|
|
6627
6856
|
"method": "PUT",
|
|
@@ -6695,6 +6924,11 @@
|
|
|
6695
6924
|
"path": "/api/service-agent/sessions/[sessionId]",
|
|
6696
6925
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
6697
6926
|
},
|
|
6927
|
+
{
|
|
6928
|
+
"method": "DELETE",
|
|
6929
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts/[draftId]",
|
|
6930
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
6931
|
+
},
|
|
6698
6932
|
{
|
|
6699
6933
|
"method": "GET",
|
|
6700
6934
|
"path": "/api/agent-channels/reply-images/[token]",
|
|
@@ -6890,6 +7124,11 @@
|
|
|
6890
7124
|
"path": "/api/service-agent/sessions/[sessionId]/messages",
|
|
6891
7125
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
6892
7126
|
},
|
|
7127
|
+
{
|
|
7128
|
+
"method": "GET",
|
|
7129
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts",
|
|
7130
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7131
|
+
},
|
|
6893
7132
|
{
|
|
6894
7133
|
"method": "GET",
|
|
6895
7134
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/feedback/attachments/[attachmentId]",
|
|
@@ -6900,6 +7139,11 @@
|
|
|
6900
7139
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/feedback/images/[imageId]",
|
|
6901
7140
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
6902
7141
|
},
|
|
7142
|
+
{
|
|
7143
|
+
"method": "GET",
|
|
7144
|
+
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/follow-ups",
|
|
7145
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7146
|
+
},
|
|
6903
7147
|
{
|
|
6904
7148
|
"method": "GET",
|
|
6905
7149
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/trace",
|
|
@@ -7075,6 +7319,21 @@
|
|
|
7075
7319
|
"path": "/api/service-agent/sessions/[sessionId]/messages",
|
|
7076
7320
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7077
7321
|
},
|
|
7322
|
+
{
|
|
7323
|
+
"method": "OPTIONS",
|
|
7324
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts",
|
|
7325
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"method": "OPTIONS",
|
|
7329
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts/[draftId]",
|
|
7330
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"method": "OPTIONS",
|
|
7334
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts/continue",
|
|
7335
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7336
|
+
},
|
|
7078
7337
|
{
|
|
7079
7338
|
"method": "OPTIONS",
|
|
7080
7339
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/feedback",
|
|
@@ -7090,6 +7349,11 @@
|
|
|
7090
7349
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/feedback/images/[imageId]",
|
|
7091
7350
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7092
7351
|
},
|
|
7352
|
+
{
|
|
7353
|
+
"method": "OPTIONS",
|
|
7354
|
+
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/follow-ups",
|
|
7355
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7356
|
+
},
|
|
7093
7357
|
{
|
|
7094
7358
|
"method": "OPTIONS",
|
|
7095
7359
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/stop",
|
|
@@ -7120,6 +7384,11 @@
|
|
|
7120
7384
|
"path": "/api/service-agent/action-tasks/[taskId]",
|
|
7121
7385
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7122
7386
|
},
|
|
7387
|
+
{
|
|
7388
|
+
"method": "PATCH",
|
|
7389
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts/[draftId]",
|
|
7390
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7391
|
+
},
|
|
7123
7392
|
{
|
|
7124
7393
|
"method": "PATCH",
|
|
7125
7394
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/feedback",
|
|
@@ -7175,6 +7444,11 @@
|
|
|
7175
7444
|
"path": "/api/internal/organization-email-send",
|
|
7176
7445
|
"reason": "server_runtime_protocol"
|
|
7177
7446
|
},
|
|
7447
|
+
{
|
|
7448
|
+
"method": "POST",
|
|
7449
|
+
"path": "/api/organization-bi-environments/[environmentId]/core-api-credential/authorize",
|
|
7450
|
+
"reason": "browser_auth_redirect_or_callback"
|
|
7451
|
+
},
|
|
7178
7452
|
{
|
|
7179
7453
|
"method": "POST",
|
|
7180
7454
|
"path": "/api/organization-bots/[botId]/feishu-events",
|
|
@@ -7190,6 +7464,11 @@
|
|
|
7190
7464
|
"path": "/api/personal-agents/[agentId]/channel-bindings/[bindingId]/stream",
|
|
7191
7465
|
"reason": "event_stream_protocol"
|
|
7192
7466
|
},
|
|
7467
|
+
{
|
|
7468
|
+
"method": "POST",
|
|
7469
|
+
"path": "/api/platform/bi-connections/authorize",
|
|
7470
|
+
"reason": "browser_auth_redirect_or_callback"
|
|
7471
|
+
},
|
|
7193
7472
|
{
|
|
7194
7473
|
"method": "POST",
|
|
7195
7474
|
"path": "/api/runtime/guandata-core-api-prepare",
|
|
@@ -7245,6 +7524,16 @@
|
|
|
7245
7524
|
"path": "/api/service-agent/sessions/[sessionId]/action-suggestions",
|
|
7246
7525
|
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7247
7526
|
},
|
|
7527
|
+
{
|
|
7528
|
+
"method": "POST",
|
|
7529
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts",
|
|
7530
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"method": "POST",
|
|
7534
|
+
"path": "/api/service-agent/sessions/[sessionId]/queued-turn-drafts/continue",
|
|
7535
|
+
"reason": "service_token_protocol_not_browser_platform_api"
|
|
7536
|
+
},
|
|
7248
7537
|
{
|
|
7249
7538
|
"method": "POST",
|
|
7250
7539
|
"path": "/api/service-agent/sessions/[sessionId]/runs/[runId]/stop",
|
package/src/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import { homedir } from "node:os";
|
|
|
7
7
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
8
8
|
import { parseArgs } from "node:util";
|
|
9
9
|
|
|
10
|
-
import { ADAPTED_SERVER_VERSION, ADAPTED_SERVER_COMMIT, COMMAND_COMPATIBILITY, compareVersions, resolveCommandCompatibility, adaptAutomationSchedule } from "./compatibility.js";
|
|
10
|
+
import { ADAPTED_SERVER_VERSION, ADAPTED_SERVER_COMMIT, COLLABORATION_DISCLOSURE_VERSION, LEGACY_COLLABORATION_VERSIONS, COMMAND_COMPATIBILITY, compareVersions, resolveCommandCompatibility, adaptAutomationSchedule } from "./compatibility.js";
|
|
11
11
|
|
|
12
12
|
import { apiCatalog, apiOperation, parameterFlag, operationPath, appendQuery } from "./catalog.js";
|
|
13
13
|
|
|
@@ -47,13 +47,14 @@ Usage:
|
|
|
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
|
+
decidex session follow-ups SESSION_ID --run-id RUN_ID
|
|
50
51
|
decidex session send SESSION_ID (--message TEXT | --input FILE) [--wait] [--follow]
|
|
51
52
|
decidex session stop SESSION_ID
|
|
52
53
|
decidex session rename SESSION_ID TITLE
|
|
53
54
|
decidex session delete SESSION_ID
|
|
54
55
|
decidex session model SESSION_ID MODEL_ENTRY_ID
|
|
55
56
|
decidex session fork SESSION_ID RUN_ID
|
|
56
|
-
decidex session collaboration status|activate|continue|stop|task|download ...
|
|
57
|
+
decidex session collaboration status|disclosure|consent|activate|continue|stop|task|download ...
|
|
57
58
|
decidex session queue list SESSION_ID
|
|
58
59
|
decidex session queue edit SESSION_ID DRAFT_ID (--message TEXT | --input FILE)
|
|
59
60
|
decidex session queue delete SESSION_ID DRAFT_ID
|
|
@@ -116,6 +117,7 @@ Usage:
|
|
|
116
117
|
decidex api METHOD PATH [--data FILE] [--output FILE]
|
|
117
118
|
decidex version --json # local CLI version
|
|
118
119
|
decidex server version # target version and commit
|
|
120
|
+
decidex server license # product license status; server >= 0.0.9
|
|
119
121
|
decidex server check [COMMAND...] # version rules and selected protocol
|
|
120
122
|
|
|
121
123
|
Turn options (agent run / session send):
|
|
@@ -220,6 +222,8 @@ Requires server >= 0.0.8 and edit permission. Enabling processes new feedback on
|
|
|
220
222
|
it does not replay feedback collected while disabled. Generated changes still require review.`,
|
|
221
223
|
"session collaboration": `Usage:
|
|
222
224
|
decidex session collaboration status SESSION_ID
|
|
225
|
+
decidex session collaboration disclosure [--agent-id ID]
|
|
226
|
+
decidex session collaboration consent --accept-governance-notice
|
|
223
227
|
decidex session collaboration activate SESSION_ID --accept-governance-notice
|
|
224
228
|
decidex session collaboration continue SESSION_ID --submission-id UUID
|
|
225
229
|
decidex session collaboration stop SESSION_ID --epoch N
|
|
@@ -227,6 +231,9 @@ it does not replay feedback collected while disabled. Generated changes still re
|
|
|
227
231
|
decidex session collaboration download SESSION_ID REMOTE_PATH FILE
|
|
228
232
|
|
|
229
233
|
Requires server >= 0.0.8. Only an idle normal Personal Agent user session can activate.
|
|
234
|
+
On >= 0.0.9, read disclosure and explicitly consent first; consent is saved for the current
|
|
235
|
+
organization membership (notice version 1), not automatically by activate.
|
|
236
|
+
On >= 0.0.10, the Agent must enable betaFeatures.collaborationEnabled before session creation.
|
|
230
237
|
Experts work with the owner's authority and may consume additional model credits.
|
|
231
238
|
Expert maintainers can review received and shared materials; share only necessary data.
|
|
232
239
|
Read status for the current work epoch before stopping. Keep the same submission UUID
|
|
@@ -235,13 +242,14 @@ download uses a material path returned by status, not a local path.`,
|
|
|
235
242
|
session: `Usage:
|
|
236
243
|
decidex session list [--status all|running|completed] [--query TEXT] [--cursor CURSOR] [--agent-id ID] [--pinned-session-id ID] [--pinned-agent-id ID]
|
|
237
244
|
decidex session view SESSION_ID [--before CURSOR | --since CURSOR]
|
|
245
|
+
decidex session follow-ups SESSION_ID --run-id RUN_ID
|
|
238
246
|
decidex session send SESSION_ID (--message TEXT | --input FILE) [--wait] [--follow]
|
|
239
247
|
decidex session stop SESSION_ID
|
|
240
248
|
decidex session rename SESSION_ID TITLE
|
|
241
249
|
decidex session delete SESSION_ID
|
|
242
250
|
decidex session model SESSION_ID MODEL_ENTRY_ID
|
|
243
251
|
decidex session fork SESSION_ID RUN_ID
|
|
244
|
-
decidex session collaboration status|activate|continue|stop|task|download ...
|
|
252
|
+
decidex session collaboration status|disclosure|consent|activate|continue|stop|task|download ...
|
|
245
253
|
decidex session queue list SESSION_ID
|
|
246
254
|
decidex session queue edit SESSION_ID DRAFT_ID (--message TEXT | --input FILE)
|
|
247
255
|
decidex session queue delete SESSION_ID DRAFT_ID
|
|
@@ -308,6 +316,7 @@ Runtime Pod termination details require backend support.`,
|
|
|
308
316
|
decidex ontology versions create NETWORK_ID [--description TEXT]`,
|
|
309
317
|
server: `Usage:
|
|
310
318
|
decidex server version
|
|
319
|
+
decidex server license # product license status; server >= 0.0.9
|
|
311
320
|
decidex server check [COMMAND...]
|
|
312
321
|
|
|
313
322
|
Unknown rules report supported=null; a newer server alone is not proof of compatibility.`,
|
|
@@ -445,6 +454,8 @@ async function request(path, { method = "GET", body, deadline, headers: extraHea
|
|
|
445
454
|
const error = new Error(`Decidex ${response.status}: ${detail || response.statusText}`);
|
|
446
455
|
error.httpStatus = response.status;
|
|
447
456
|
error.code = payload && typeof payload === "object" ? payload.code : undefined;
|
|
457
|
+
error.reason = payload && typeof payload === "object" ? payload.reason : undefined;
|
|
458
|
+
if (error.code === "decidexLicenseAdmissionBlocked") error.message += ";请用 decidex server license 查询产品授权状态,这不等同于登录失效";
|
|
448
459
|
error.requestId = payload && typeof payload === "object" ? payload.requestId : undefined;
|
|
449
460
|
throw error;
|
|
450
461
|
}
|
|
@@ -888,6 +899,10 @@ async function readIdentity(command, values) {
|
|
|
888
899
|
|
|
889
900
|
async function serverCommand(action, args) {
|
|
890
901
|
const { values, positionals } = commandArgs(args);
|
|
902
|
+
if (action === "license") {
|
|
903
|
+
expectPositionals(positionals, 0, "server license");
|
|
904
|
+
return print(await taskApi("decidex-license.list", {}, { values }));
|
|
905
|
+
}
|
|
891
906
|
if (!["version", "check"].includes(action)) throw new Error(`未知 server 命令:${action || "(空)"}`);
|
|
892
907
|
if (action === "version") expectPositionals(positionals, 0, "server version");
|
|
893
908
|
const server = await targetVersion(values);
|
|
@@ -1036,11 +1051,31 @@ async function agentCommand(action, args) {
|
|
|
1036
1051
|
if (!spec || typeof spec !== "object" || Array.isArray(spec)) throw new Error("Agent 文件必须是 JSON 对象");
|
|
1037
1052
|
const id = spec.id;
|
|
1038
1053
|
if (id !== undefined && (typeof id !== "string" || !id.trim())) throw new Error("Agent id 必须是非空字符串");
|
|
1039
|
-
const allowed = new Set(["id", "name", "description", "instructions", "avatarIcon", "avatarColor", "avatarImageDataUrl", "openingMessage", "presetQuestions", "contextReferences", "bizOntologyBindings", "betaFeatures", "actionSuggestionsEnabled", "biUserPropertiesEnabled", "biUserPropertyKeys", "biExplorationPolicy", "pluginSelection", "useScope", "sessionDefaultModelCatalogEntryId", "sessionDefaultReasoningEffort", ...(id ? ["builtInInstructions"] : [])]);
|
|
1054
|
+
const allowed = new Set(["id", "name", "description", "instructions", "avatarIcon", "avatarColor", "avatarImageDataUrl", "openingMessage", "presetQuestions", "contextReferences", "bizOntologyBindings", "betaFeatures", "actionSuggestionsEnabled", "promptSuggestionsEnabled", "biUserPropertiesEnabled", "biUserPropertyKeys", "biExplorationPolicy", "pluginSelection", "useScope", "sessionDefaultModelCatalogEntryId", "sessionDefaultReasoningEffort", ...(id ? ["builtInInstructions"] : [])]);
|
|
1040
1055
|
const unknown = Object.keys(spec).filter((key) => !allowed.has(key));
|
|
1041
1056
|
if (unknown.length) throw new Error(`Agent 文件包含不支持的字段:${unknown.join(", ")}`);
|
|
1042
1057
|
const body = { ...spec };
|
|
1043
1058
|
delete body.id;
|
|
1059
|
+
if (body.promptSuggestionsEnabled !== undefined) {
|
|
1060
|
+
if (typeof body.promptSuggestionsEnabled !== "boolean") throw new Error("promptSuggestionsEnabled 必须是布尔值");
|
|
1061
|
+
await commandCompatibility("agent apply prompt-suggestions", values);
|
|
1062
|
+
}
|
|
1063
|
+
if (body.betaFeatures?.collaborationDefaultEnabled !== undefined || body.betaFeatures?.collaborationExpertEnabled !== undefined) {
|
|
1064
|
+
if ([body.betaFeatures.collaborationDefaultEnabled, body.betaFeatures.collaborationExpertEnabled].some((value) => value !== undefined && typeof value !== "boolean")) throw new Error("旧协作开关必须是布尔值");
|
|
1065
|
+
const server = await targetVersion(values);
|
|
1066
|
+
if (compareVersions(server.version, LEGACY_COLLABORATION_VERSIONS.minVersion) < 0 || compareVersions(server.version, LEGACY_COLLABORATION_VERSIONS.before) >= 0) throw new Error("collaborationDefaultEnabled / collaborationExpertEnabled 仅适用于服务端 0.0.9;0.0.10 起需显式迁移为 collaborationEnabled 和专家名单,不能自动转换授权");
|
|
1067
|
+
}
|
|
1068
|
+
if (body.betaFeatures?.collaborationEnabled !== undefined || body.betaFeatures?.collaborationExpertAgentIds !== undefined) {
|
|
1069
|
+
const features = body.betaFeatures;
|
|
1070
|
+
if (features.collaborationEnabled !== undefined && typeof features.collaborationEnabled !== "boolean") throw new Error("collaborationEnabled 必须是布尔值");
|
|
1071
|
+
if (features.collaborationExpertAgentIds !== undefined) {
|
|
1072
|
+
const ids = features.collaborationExpertAgentIds;
|
|
1073
|
+
if (!Array.isArray(ids) || ids.length > 20 || ids.some((id) => typeof id !== "string" || !id.trim() || id.trim().length > 120)) throw new Error("collaborationExpertAgentIds 最多 20 项,每项为 1..120 字符的 Agent ID");
|
|
1074
|
+
features.collaborationExpertAgentIds = ids.map((id) => id.trim());
|
|
1075
|
+
if (new Set(features.collaborationExpertAgentIds).size !== ids.length) throw new Error("专家名单不能重复");
|
|
1076
|
+
}
|
|
1077
|
+
await commandCompatibility("agent apply collaboration", values);
|
|
1078
|
+
}
|
|
1044
1079
|
if (body.biUserPropertiesEnabled !== undefined || body.biUserPropertyKeys !== undefined) {
|
|
1045
1080
|
if (body.biUserPropertiesEnabled !== undefined && typeof body.biUserPropertiesEnabled !== "boolean") throw new Error("biUserPropertiesEnabled 必须是布尔值");
|
|
1046
1081
|
if (body.biUserPropertyKeys !== undefined) {
|
|
@@ -1133,6 +1168,7 @@ async function sessionCommand(action, args) {
|
|
|
1133
1168
|
"pinned-agent-id": { type: "string", multiple: true },
|
|
1134
1169
|
"accept-governance-notice": { type: "boolean", default: false },
|
|
1135
1170
|
"submission-id": { type: "string" },
|
|
1171
|
+
"run-id": { type: "string" },
|
|
1136
1172
|
epoch: { type: "string" },
|
|
1137
1173
|
"model-entry-id": { type: "string" },
|
|
1138
1174
|
before: { type: "string" },
|
|
@@ -1154,6 +1190,16 @@ async function sessionCommand(action, args) {
|
|
|
1154
1190
|
});
|
|
1155
1191
|
if (action === "collaboration") {
|
|
1156
1192
|
const [operation, sessionId, third, fourth] = positionals;
|
|
1193
|
+
if (["disclosure", "consent"].includes(operation)) {
|
|
1194
|
+
expectPositionals(positionals, 1, `session collaboration ${operation}`);
|
|
1195
|
+
if (operation === "consent" && !values["accept-governance-notice"]) throw new Error("确认材料共享、专家管理者审查及模型消耗后添加 --accept-governance-notice;本确认按当前组织成员保存");
|
|
1196
|
+
const disclosure = await taskApi("agent-collaboration.disclosure.list", {}, { query: values["agent-id"] ? { agentId: values["agent-id"] } : {}, values });
|
|
1197
|
+
if (operation === "disclosure") return emit(disclosure, values.output);
|
|
1198
|
+
if (!disclosure.available) throw new Error("目标尚未开放专家协作,未保存确认");
|
|
1199
|
+
if (disclosure.version !== COLLABORATION_DISCLOSURE_VERSION) throw new Error("协作说明版本已变化,请更新 CLI 并重新阅读说明,未保存确认");
|
|
1200
|
+
if (disclosure.accepted) return emit(disclosure, values.output);
|
|
1201
|
+
return emit(await taskApi("agent-collaboration.disclosure.create", {}, { body: { version: disclosure.version }, values }), values.output);
|
|
1202
|
+
}
|
|
1157
1203
|
if (!["status", "activate", "continue", "stop", "task", "download"].includes(operation)) throw new Error("collaboration 只支持 status、activate、continue、stop、task、download");
|
|
1158
1204
|
expectPositionals(positionals, operation === "download" ? 4 : operation === "task" ? 3 : 2, `session collaboration ${operation} SESSION_ID${operation === "download" ? " REMOTE_PATH FILE" : operation === "task" ? " TASK_ID" : ""}`);
|
|
1159
1205
|
let body;
|
|
@@ -1170,11 +1216,23 @@ async function sessionCommand(action, args) {
|
|
|
1170
1216
|
if (operation === "download" && (!third || third.length > 2048)) throw new Error("REMOTE_PATH 需要 1..2048 字符的远端材料路径");
|
|
1171
1217
|
const deadline = Date.now() + positiveSeconds(values.timeout) * 1000;
|
|
1172
1218
|
const session = await resolveSession(sessionId, values, deadline);
|
|
1219
|
+
if (operation === "activate" && (await commandCompatibility("session collaboration", values)).protocol === "member-disclosure") {
|
|
1220
|
+
const disclosure = await taskApi("agent-collaboration.disclosure.list", {}, { query: { agentId: session.agentId }, values, deadline });
|
|
1221
|
+
if (!disclosure.available) throw new Error("目标尚未开放专家协作");
|
|
1222
|
+
if (!disclosure.accepted) throw new Error("请先阅读 session collaboration --help,然后显式运行 session collaboration consent --accept-governance-notice;本确认按当前组织成员保存");
|
|
1223
|
+
}
|
|
1173
1224
|
const parameters = { agentId: session.agentId, sessionId, ...(operation === "task" ? { taskId: third } : {}) };
|
|
1174
1225
|
const id = operation === "download" ? "materials.list" : operation === "task" ? "tasks.get" : body ? "create" : "list";
|
|
1175
1226
|
const result = await taskApi(`personal-agents.sessions.collaboration.${id}`, parameters, { body, query: operation === "download" ? { path: third } : {}, output: operation === "download" ? fourth : undefined, values, deadline });
|
|
1176
1227
|
return operation === "download" ? print(result) : emit(result, values.output);
|
|
1177
1228
|
}
|
|
1229
|
+
if (action === "follow-ups") {
|
|
1230
|
+
expectPositionals(positionals, 1, "session follow-ups SESSION_ID --run-id RUN_ID");
|
|
1231
|
+
const runId = required(values["run-id"], "--run-id RUN_ID");
|
|
1232
|
+
const deadline = Date.now() + positiveSeconds(values.timeout) * 1000;
|
|
1233
|
+
const session = await resolveSession(positionals[0], values, deadline);
|
|
1234
|
+
return emit(await taskApi("personal-agents.sessions.follow-ups.list", { agentId: session.agentId, sessionId: positionals[0] }, { query: { runId }, values, deadline }), values.output);
|
|
1235
|
+
}
|
|
1178
1236
|
if (action === "list") {
|
|
1179
1237
|
expectPositionals(positionals, 0, "session list");
|
|
1180
1238
|
if (!new Set(["all", "running", "completed"]).has(values.status)) throw new Error("--status 只支持 all、running、completed");
|
|
@@ -2148,7 +2206,7 @@ async function main() {
|
|
|
2148
2206
|
|
|
2149
2207
|
main().catch((error) => {
|
|
2150
2208
|
if (process.argv.includes("--json")) {
|
|
2151
|
-
process.stderr.write(`${JSON.stringify({ schemaVersion: 1, error: { message: error.message, httpStatus: error.httpStatus ?? null, code: error.code ?? null, requestId: error.requestId ?? null } })}\n`);
|
|
2209
|
+
process.stderr.write(`${JSON.stringify({ schemaVersion: 1, error: { message: error.message, httpStatus: error.httpStatus ?? null, code: error.code ?? null, requestId: error.requestId ?? null, ...(error.reason !== undefined ? { reason: error.reason } : {}) } })}\n`);
|
|
2152
2210
|
} else {
|
|
2153
2211
|
const command = process.argv.slice(2, 4).filter((item) => !item.startsWith("-")).join(" ");
|
|
2154
2212
|
process.stderr.write(`Error: ${error.message}${command ? `\nTry: decidex ${command} --help` : ""}\n`);
|
package/src/compatibility.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export const ADAPTED_SERVER_VERSION = "0.0.
|
|
2
|
-
export const ADAPTED_SERVER_COMMIT = "
|
|
1
|
+
export const ADAPTED_SERVER_VERSION = "0.0.10";
|
|
2
|
+
export const ADAPTED_SERVER_COMMIT = "b14beee9a0478a102e93894b53c5eaa042a7e2ce";
|
|
3
|
+
export const COLLABORATION_DISCLOSURE_VERSION = 1; // Identical in tags 0.0.9 and 0.0.10.
|
|
4
|
+
export const LEGACY_COLLABORATION_VERSIONS = { minVersion: "0.0.9", before: "0.0.10" };
|
|
3
5
|
|
|
4
6
|
// Version boundaries must be backed by release tags, not the current main version.
|
|
5
7
|
// /api/auth/context first appears between tags 0.0.4 and 0.0.5 (a860e97ad).
|
|
@@ -16,8 +18,12 @@ export const COMMAND_COMPATIBILITY = {
|
|
|
16
18
|
"automation apply bi-groups": { minVersion: "0.0.7" },
|
|
17
19
|
"automation apply partial": { minVersion: "0.0.7" },
|
|
18
20
|
// Collaboration routes and the background improvement switch first ship in 0.0.8.
|
|
19
|
-
"session collaboration": { minVersion: "0.0.8" },
|
|
21
|
+
"session collaboration": { minVersion: "0.0.8", protocol: "member-disclosure", legacy: { before: "0.0.9", protocol: "session-notice" } },
|
|
20
22
|
"agent improvement": { minVersion: "0.0.8" },
|
|
23
|
+
"server license": { minVersion: "0.0.9" },
|
|
24
|
+
"session follow-ups": { minVersion: "0.0.9" },
|
|
25
|
+
"agent apply prompt-suggestions": { minVersion: "0.0.9" },
|
|
26
|
+
"agent apply collaboration": { minVersion: "0.0.10" },
|
|
21
27
|
};
|
|
22
28
|
|
|
23
29
|
export function adaptAutomationSchedule(input, protocol, now = Date.now()) {
|