@doubao-dev/cli 0.0.29 → 0.0.30
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/dist/2168.js +22 -22
- package/dist/275.js +2 -2
- package/dist/3974.js +22 -22
- package/dist/app.js +1 -1
- package/dist/dev-shell.js +1 -1
- package/dist/dev.js +8 -4
- package/dist/run.js +216 -216
- package/dist/sandbox.js +1 -1
- package/package.json +2 -2
- package/skills/dbx-eval/SKILL.md +18 -2
package/dist/sandbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:module";import{__webpack_require__ as t}from"./rslib-runtime.js";import"./9635.js";import{getSandboxApp as e}from"./app.js";import{getLastHttpResponseLogId as a}from"./2168.js";let o=t("node:crypto"),r=t("node:fs");var n=t.n(r);let _=t("node:path");var d=t.n(_);let p="default";async function i(t){let
|
|
1
|
+
import"node:module";import{__webpack_require__ as t}from"./rslib-runtime.js";import"./9635.js";import{getSandboxApp as e}from"./app.js";import{getLastHttpResponseLogId as a}from"./2168.js";let o=t("node:crypto"),r=t("node:fs");var n=t.n(r);let _=t("node:path");var d=t.n(_);let p="default";async function i(t){let o=s(t);return{...function(t){let e=t.data??{},o={sandbox_project_id:e.sandbox_project_id??"",sandbox_app_id:e.sandbox_app_id??e.sandbox_appid??"",sandbox_app_secret:e.sandbox_app_secret??e.sandbox_appsecret??"",log_id:t.log_id??a()??""};if(!o.sandbox_app_id||!o.sandbox_app_secret)throw Error("Get sandbox app failed: missing sandbox app credentials");return o}(await e(o.id)),sandbox_project_path:o.path}}function s(t,e=process.cwd()){let a=t??function(t){let e=d().resolve(t);for(;;){try{if(n().statSync(d().join(e,".dbx","config.json")).isFile())return e}catch{}let t=d().dirname(e);if(t===e)return;e=t}}(e);if(!a)return{id:p,path:p};let r=d().resolve(a),_=r;try{_=n().realpathSync.native(r)}catch{}return{id:(0,o.createHash)("sha256").update(_).digest("hex"),path:_}}export{i as fetchSandboxAppCredentials,s as resolveSandboxProject};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doubao-dev/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Doubao Dev CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"node-loader": "2.1.0",
|
|
47
47
|
"rimraf": "5.0.10",
|
|
48
48
|
"typescript": "6.0.3",
|
|
49
|
-
"@byted-doubao-apps/cli": "0.0.
|
|
49
|
+
"@byted-doubao-apps/cli": "0.0.30"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
52
|
"@doubao-dev/security-tasm": "0.0.22",
|
package/skills/dbx-eval/SKILL.md
CHANGED
|
@@ -135,8 +135,8 @@ server` / `dbx eval run` / `gen-explore` / `gen-trajectory`)之前,必须先
|
|
|
135
135
|
表达不要页面 / 只要终端 / CI / 无浏览器环境,或页面依赖检查失败时,才切换到
|
|
136
136
|
`dbx eval run` 或向用户确认降级。
|
|
137
137
|
|
|
138
|
-
使用自定义 LLM endpoint
|
|
139
|
-
|
|
138
|
+
使用自定义 LLM endpoint 或 MCP Header 时,项目配置会包含明文凭证。不得在回复、
|
|
139
|
+
日志摘要或错误信息中输出完整凭证,不得建议用户提交或分享 `.dbx/eval.yaml`。
|
|
140
140
|
|
|
141
141
|
## 必需信息
|
|
142
142
|
|
|
@@ -147,6 +147,7 @@ server` / `dbx eval run` / `gen-explore` / `gen-trajectory`)之前,必须先
|
|
|
147
147
|
`ua.model`。
|
|
148
148
|
- Judge 未配置的 endpoint、API Key 和 model 分别继承 UA,只询问用户要覆盖的字段。
|
|
149
149
|
- MCP URL:`mcp.url`
|
|
150
|
+
- MCP 静态请求头:`mcp.headers`,仅接受 Header 名到字符串值的映射
|
|
150
151
|
- Manifest:`app.manifest`
|
|
151
152
|
- Skill:`app.skill` 是 Skill 目录,默认 `<projectPath>/skill`;递归加载其中所有 `SKILL.md`
|
|
152
153
|
- App Key:默认 Gateway 后端下必需。发起评测前必须向用户确认 `manifest.yaml` 的
|
|
@@ -176,6 +177,21 @@ run:
|
|
|
176
177
|
max_rounds: 10
|
|
177
178
|
```
|
|
178
179
|
|
|
180
|
+
需要为 MCP 请求附加静态 Header 时,在 Eval YAML 中配置:
|
|
181
|
+
|
|
182
|
+
```yaml
|
|
183
|
+
mcp:
|
|
184
|
+
url: https://example.com/mcp
|
|
185
|
+
headers:
|
|
186
|
+
Authorization: "Bearer token"
|
|
187
|
+
X-Use-PPE: "1"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Header 值必须是 YAML 字符串;数字和布尔值需要加引号。该配置应用于
|
|
191
|
+
`dbx eval server`、`dbx eval run`、`dbx eval gen-explore` 和
|
|
192
|
+
`dbx eval gen-trajectory` 发起的全部 MCP 请求。完整 Eval 只读取 Eval YAML 的
|
|
193
|
+
`mcp.headers`,不会读取或合并 Manifest 中的 MCP Header。
|
|
194
|
+
|
|
179
195
|
## 首次配置
|
|
180
196
|
|
|
181
197
|
不要直接写最终的 `<projectPath>/.dbx/eval.yaml`。在本地临时目录生成 YAML,
|