1246 lines
42 KiB
JSON
1246 lines
42 KiB
JSON
{
|
|
"success": true,
|
|
"elapsedMs": 1093,
|
|
"label": "minimal-path",
|
|
"timeoutMs": 15000,
|
|
"scope": "Diagnostic only, no product wait change, no remote model; original pure prompt experiment and catalogue.",
|
|
"ready": {
|
|
"schemaVersion": 1,
|
|
"nonce": "003071ca-7626-4725-83b0-ee97e5b3b185",
|
|
"pid": 58672,
|
|
"signal": "appReady",
|
|
"readyAt": "2026-11-04T13:19:03.104Z",
|
|
"owner": {
|
|
"sessionId": "fbf7fd49-a7d4-454d-a3c7-408c30d397b5",
|
|
"projectId": "552c3d22-a2bc-4c8d-8ff6-873954ff64b1",
|
|
"taskId": "4845747a-3dac-499e-bd89-41b469e4c6f3",
|
|
"runId": "f827c6a6-08be-4e34-aecc-2d0d1a37f4ba",
|
|
"jobId": "77a3380c-5d74-482f-8c61-2b60e87c6e4d"
|
|
},
|
|
"sdkSessionId": "2736cc71-4893-435c-a18c-ba1179dd336f",
|
|
"catalogue": [
|
|
{
|
|
"name": "diagnose_environment",
|
|
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "index_project",
|
|
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_project",
|
|
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_session",
|
|
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
},
|
|
{
|
|
"name": "list_files",
|
|
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"depth": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_checks",
|
|
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"names": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"maxItems": 6,
|
|
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_environment",
|
|
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"registry": {
|
|
"type": "string"
|
|
},
|
|
"scripts": {
|
|
"type": "string",
|
|
"enum": [
|
|
"skip",
|
|
"allow"
|
|
]
|
|
},
|
|
"offline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_change_set",
|
|
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"change_ids": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"change_ids"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_environment",
|
|
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id",
|
|
"fingerprint"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_file",
|
|
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"content",
|
|
"reason"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_patch",
|
|
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"edits": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"old_text": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"new_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"old_text",
|
|
"new_text"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"base_sha256",
|
|
"reason",
|
|
"edits"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "query_code",
|
|
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"all",
|
|
"symbols",
|
|
"imports",
|
|
"files"
|
|
]
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 60
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_artifact",
|
|
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"artifact_id": {
|
|
"type": "string"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
}
|
|
},
|
|
"required": [
|
|
"artifact_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_file",
|
|
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"start_line": {
|
|
"type": "integer"
|
|
},
|
|
"end_line": {
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
},
|
|
"expected_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "run_checks",
|
|
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "search_files",
|
|
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
},
|
|
"case_sensitive": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df",
|
|
"providers": [
|
|
"agent-workbench"
|
|
],
|
|
"promptExperimentSha256": "40ed62dc4db453c1c8f93fce0a99d4c0a7c1d61a6d87ac53c55c20b16e559035"
|
|
},
|
|
"observations": [
|
|
{
|
|
"state": "starting",
|
|
"elapsedMs": 226,
|
|
"pid": 58672
|
|
},
|
|
{
|
|
"state": "ownership",
|
|
"elapsedMs": 683,
|
|
"pid": 58672
|
|
},
|
|
{
|
|
"state": "initializing",
|
|
"elapsedMs": 887
|
|
},
|
|
{
|
|
"state": "ready",
|
|
"elapsedMs": 1093
|
|
}
|
|
],
|
|
"report": {
|
|
"schemaVersion": 1,
|
|
"scope": "deepseek-workbench-engine-v1",
|
|
"owner": {
|
|
"sessionId": "fbf7fd49-a7d4-454d-a3c7-408c30d397b5",
|
|
"projectId": "552c3d22-a2bc-4c8d-8ff6-873954ff64b1",
|
|
"taskId": "4845747a-3dac-499e-bd89-41b469e4c6f3",
|
|
"runId": "f827c6a6-08be-4e34-aecc-2d0d1a37f4ba",
|
|
"jobId": "77a3380c-5d74-482f-8c61-2b60e87c6e4d"
|
|
},
|
|
"sdkSessionId": "2736cc71-4893-435c-a18c-ba1179dd336f",
|
|
"installationSha256": "289e1e930be588264d74414f32ccc1638b1a1d4ff6723b2027cfae1b90d4584e",
|
|
"startedAt": "2026-11-04T13:19:02.440Z",
|
|
"responses": [
|
|
{
|
|
"method": "initialize",
|
|
"params": {
|
|
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\project",
|
|
"provider": "agent-workbench",
|
|
"model": "owned-readiness-probe",
|
|
"maxTokens": 2048
|
|
},
|
|
"result": {
|
|
"serverInfo": {
|
|
"name": "deepseek-harness-sdk-runtime",
|
|
"version": "0.0.1"
|
|
}
|
|
},
|
|
"trace": {
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"id": 1,
|
|
"method": "initialize",
|
|
"parametersSha256": "356b6c9bb10f690f44fb11ba45afb3caa5c3f0fa34c07ae3969f6556e9c46a81",
|
|
"startedAt": "2026-11-04T13:19:03.318Z",
|
|
"finishedAt": "2026-11-04T13:19:03.320Z",
|
|
"status": "completed",
|
|
"dispatched": true,
|
|
"resultSha256": "eb9d4fa4bc4e7298228adf7affacab34a046b92aa168f8a77feeda8bbd740b5e",
|
|
"errorCode": null
|
|
}
|
|
},
|
|
{
|
|
"method": "session/working-directory/get",
|
|
"params": {
|
|
"sessionId": "2736cc71-4893-435c-a18c-ba1179dd336f"
|
|
},
|
|
"result": {
|
|
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\project"
|
|
},
|
|
"trace": {
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"id": 2,
|
|
"method": "session/working-directory/get",
|
|
"parametersSha256": "a6b0255c87a21d7d9b4e8610007d19c6e564f755d41b7f605b2fc23e0b1e385a",
|
|
"startedAt": "2026-11-04T13:19:03.422Z",
|
|
"finishedAt": "2026-11-04T13:19:03.426Z",
|
|
"status": "completed",
|
|
"dispatched": true,
|
|
"resultSha256": "27d3fd4fcd5d355366c73f637befad062591939776403296d65e24be1e53ee57",
|
|
"errorCode": null
|
|
}
|
|
}
|
|
],
|
|
"notifications": [],
|
|
"unownedNotifications": [],
|
|
"rejectedServerRequests": [],
|
|
"bridgeRequests": [],
|
|
"cleanup": {
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"pid": 58672,
|
|
"rootExited": true,
|
|
"forced": false,
|
|
"killError": null,
|
|
"exit": {
|
|
"code": 0,
|
|
"signal": null
|
|
},
|
|
"scope": "owned-stdio-process",
|
|
"finishedAt": "2026-11-04T13:19:03.448Z",
|
|
"treeConfirmed": true,
|
|
"remainingProcesses": []
|
|
},
|
|
"modelRequests": 0,
|
|
"toolRequests": 0,
|
|
"launchInputs": {
|
|
"plugin": {
|
|
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\invocation\\bridge.mjs",
|
|
"bytes": 6614,
|
|
"sha256": "b535eebb25cdaa9c5268737c4ead0dae24a6ec71a43f534bd0fdb45fb20d5117"
|
|
},
|
|
"patch": {
|
|
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\invocation\\bridge.patch.json",
|
|
"bytes": 8889,
|
|
"sha256": "8e43047ee460f71b821a8efe756ea124f876efad5a63f8594ac6805f41cde754"
|
|
},
|
|
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\project",
|
|
"disabledPlugins": [
|
|
"tool-fs",
|
|
"tool-working-directory",
|
|
"persistent-bash",
|
|
"persistent-pwsh",
|
|
"terminal-bash",
|
|
"terminal-pwsh",
|
|
"llm-deepseek",
|
|
"llm-retry"
|
|
],
|
|
"catalogue": [
|
|
{
|
|
"name": "diagnose_environment",
|
|
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "index_project",
|
|
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_project",
|
|
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_session",
|
|
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
},
|
|
{
|
|
"name": "list_files",
|
|
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"depth": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_checks",
|
|
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"names": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"maxItems": 6,
|
|
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_environment",
|
|
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"registry": {
|
|
"type": "string"
|
|
},
|
|
"scripts": {
|
|
"type": "string",
|
|
"enum": [
|
|
"skip",
|
|
"allow"
|
|
]
|
|
},
|
|
"offline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_change_set",
|
|
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"change_ids": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"change_ids"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_environment",
|
|
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id",
|
|
"fingerprint"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_file",
|
|
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"content",
|
|
"reason"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_patch",
|
|
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"edits": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"old_text": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"new_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"old_text",
|
|
"new_text"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"base_sha256",
|
|
"reason",
|
|
"edits"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "query_code",
|
|
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"all",
|
|
"symbols",
|
|
"imports",
|
|
"files"
|
|
]
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 60
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_artifact",
|
|
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"artifact_id": {
|
|
"type": "string"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
}
|
|
},
|
|
"required": [
|
|
"artifact_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_file",
|
|
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"start_line": {
|
|
"type": "integer"
|
|
},
|
|
"end_line": {
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
},
|
|
"expected_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "run_checks",
|
|
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "search_files",
|
|
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
},
|
|
"case_sensitive": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df"
|
|
},
|
|
"process": {
|
|
"pid": 58672,
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"startedAt": "2026-11-04T13:19:02.559Z",
|
|
"ownership": "one-process-per-engine-run",
|
|
"rootCreatedAt": "2026-11-04T13:19:02.5529300Z",
|
|
"descendants": [
|
|
{
|
|
"pid": 22792,
|
|
"parentPid": 58672,
|
|
"createdAt": "2026-11-04T13:19:02.5616200Z",
|
|
"executable": "C:\\WINDOWS\\system32\\conhost.exe"
|
|
}
|
|
],
|
|
"treeRemainingPids": [],
|
|
"treeObservedAt": "2026-11-04T13:19:03.832Z"
|
|
},
|
|
"readiness": {
|
|
"schemaVersion": 1,
|
|
"nonce": "003071ca-7626-4725-83b0-ee97e5b3b185",
|
|
"pid": 58672,
|
|
"signal": "appReady",
|
|
"readyAt": "2026-11-04T13:19:03.104Z",
|
|
"owner": {
|
|
"sessionId": "fbf7fd49-a7d4-454d-a3c7-408c30d397b5",
|
|
"projectId": "552c3d22-a2bc-4c8d-8ff6-873954ff64b1",
|
|
"taskId": "4845747a-3dac-499e-bd89-41b469e4c6f3",
|
|
"runId": "f827c6a6-08be-4e34-aecc-2d0d1a37f4ba",
|
|
"jobId": "77a3380c-5d74-482f-8c61-2b60e87c6e4d"
|
|
},
|
|
"sdkSessionId": "2736cc71-4893-435c-a18c-ba1179dd336f",
|
|
"catalogue": [
|
|
{
|
|
"name": "diagnose_environment",
|
|
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "index_project",
|
|
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_project",
|
|
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
},
|
|
{
|
|
"name": "inspect_session",
|
|
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
},
|
|
{
|
|
"name": "list_files",
|
|
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"depth": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_checks",
|
|
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"names": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"maxItems": 6,
|
|
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "plan_environment",
|
|
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"registry": {
|
|
"type": "string"
|
|
},
|
|
"scripts": {
|
|
"type": "string",
|
|
"enum": [
|
|
"skip",
|
|
"allow"
|
|
]
|
|
},
|
|
"offline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_change_set",
|
|
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"change_ids": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"change_ids"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "prepare_environment",
|
|
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id",
|
|
"fingerprint"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_file",
|
|
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"content",
|
|
"reason"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "propose_patch",
|
|
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"base_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"edits": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 32,
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"old_text": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"new_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"old_text",
|
|
"new_text"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"base_sha256",
|
|
"reason",
|
|
"edits"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "query_code",
|
|
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"all",
|
|
"symbols",
|
|
"imports",
|
|
"files"
|
|
]
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 60
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_artifact",
|
|
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"artifact_id": {
|
|
"type": "string"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
}
|
|
},
|
|
"required": [
|
|
"artifact_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_file",
|
|
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"start_line": {
|
|
"type": "integer"
|
|
},
|
|
"end_line": {
|
|
"type": "integer"
|
|
},
|
|
"offset": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 16000
|
|
},
|
|
"expected_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"path"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "run_checks",
|
|
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"plan_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"plan_id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "search_files",
|
|
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string"
|
|
},
|
|
"case_sensitive": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"query"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df",
|
|
"providers": [
|
|
"agent-workbench"
|
|
],
|
|
"promptExperimentSha256": "40ed62dc4db453c1c8f93fce0a99d4c0a7c1d61a6d87ac53c55c20b16e559035",
|
|
"artifact": {
|
|
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\startup-minimal-path\\invocation\\ready.json",
|
|
"bytes": 7525,
|
|
"sha256": "d9acb986e3404c60124e556f7c57bc99ca5a99d9c7b06c8a570e0d7fc761d009"
|
|
}
|
|
},
|
|
"trace": [
|
|
{
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"id": 1,
|
|
"method": "initialize",
|
|
"parametersSha256": "356b6c9bb10f690f44fb11ba45afb3caa5c3f0fa34c07ae3969f6556e9c46a81",
|
|
"startedAt": "2026-11-04T13:19:03.318Z",
|
|
"finishedAt": "2026-11-04T13:19:03.320Z",
|
|
"status": "completed",
|
|
"dispatched": true,
|
|
"resultSha256": "eb9d4fa4bc4e7298228adf7affacab34a046b92aa168f8a77feeda8bbd740b5e",
|
|
"errorCode": null
|
|
},
|
|
{
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"id": 2,
|
|
"method": "session/working-directory/get",
|
|
"parametersSha256": "a6b0255c87a21d7d9b4e8610007d19c6e564f755d41b7f605b2fc23e0b1e385a",
|
|
"startedAt": "2026-11-04T13:19:03.422Z",
|
|
"finishedAt": "2026-11-04T13:19:03.426Z",
|
|
"status": "completed",
|
|
"dispatched": true,
|
|
"resultSha256": "27d3fd4fcd5d355366c73f637befad062591939776403296d65e24be1e53ee57",
|
|
"errorCode": null
|
|
},
|
|
{
|
|
"connectionId": "76bf82c3-7550-4cf3-a494-85aacc225e20",
|
|
"id": 3,
|
|
"method": "shutdown",
|
|
"parametersSha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
|
|
"startedAt": "2026-11-04T13:19:03.427Z",
|
|
"finishedAt": "2026-11-04T13:19:03.428Z",
|
|
"status": "completed",
|
|
"dispatched": true,
|
|
"resultSha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
|
|
"errorCode": null
|
|
}
|
|
],
|
|
"stderr": "",
|
|
"finishedAt": "2026-11-04T13:19:03.933Z",
|
|
"status": "closed"
|
|
},
|
|
"realModelRequests": 0
|
|
}
|