@pennixrv/trellis 0.7.2-beta.6 → 0.7.2-beta.7
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.7.2-beta.7",
|
|
3
|
+
"description": "修复 daemon PATH 差异和已拒绝请求的幂等键冲突",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "必需 CodeGraph 由主控解析并核验绝对入口,避免 daemon PATH 不含用户安装目录导致 MCP 缺失;agent 创建幂等键包含实际请求指纹,相同请求保持稳定,经显式核验未创建后修正的请求不再撞旧指纹。",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "同步更新 CLI、可选 adapter 和原生项目资产;准备缺项仍阻断 execute,未知创建仍须原生对账,不能自动重试。"
|
|
9
|
+
}
|
|
@@ -6,6 +6,7 @@ import json
|
|
|
6
6
|
import os
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
import re
|
|
9
|
+
import shutil
|
|
9
10
|
import subprocess
|
|
10
11
|
import uuid
|
|
11
12
|
from typing import NoReturn
|
|
@@ -241,9 +242,14 @@ def prepare_agent(root: Path, child_dir: Path, record: dict, path: Path):
|
|
|
241
242
|
role = (root / ".trellis/agents/delegated-worktree-primary-agent.md").read_text(encoding="utf8")
|
|
242
243
|
if role.startswith("---\n"):
|
|
243
244
|
role = role.split("\n---\n", 1)[1].lstrip("\n")
|
|
245
|
+
codegraph = "codegraph" in record["requirements"].get("required_tools", [])
|
|
246
|
+
tool = shutil.which("codegraph") if codegraph else None
|
|
247
|
+
if codegraph and not tool:
|
|
248
|
+
fail("required CodeGraph executable is unavailable to the controller")
|
|
249
|
+
tool_payload = {"codegraph_command": str(Path(tool).resolve(strict=True))} if tool else {}
|
|
244
250
|
record["intent"] = "prepare-agent"
|
|
245
251
|
save(path, record)
|
|
246
|
-
agent = adapter(record, "prepare-agent", {"workspace_id": record["workspace_id"], "cwd": record["worktree_path"], "model": record["settings"]["model"], "effort": record["settings"]["effort"], "role": role, "context": str(context), "prompt": f"prepare:读取 {context},只准备并提交 ready.json;当前 agent_id 映射由主控落盘,身份不完整时只报告阻断。", "codegraph":
|
|
252
|
+
agent = adapter(record, "prepare-agent", {"workspace_id": record["workspace_id"], "cwd": record["worktree_path"], "model": record["settings"]["model"], "effort": record["settings"]["effort"], "role": role, "context": str(context), "prompt": f"prepare:读取 {context},只准备并提交 ready.json;当前 agent_id 映射由主控落盘,身份不完整时只报告阻断。", "codegraph": codegraph, **tool_payload, "labels": {"trellis.control": record["control_project_id"], "trellis.child": record["binding"]["child_task_id"], "trellis.attempt": record["attempt_id"]}})["agent"]
|
|
247
253
|
if not agent or not agent.get("id") or agent.get("workspaceId") != record["workspace_id"]:
|
|
248
254
|
fail("agent creation outcome unknown; preserve intent")
|
|
249
255
|
record.update({"agent_id": agent["id"], "status": "running", "intent": None})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pennixrv/trellis",
|
|
3
|
-
"version": "0.7.2-beta.
|
|
3
|
+
"version": "0.7.2-beta.7",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"inquirer": "^9.3.7",
|
|
36
36
|
"undici": "^6.21.0",
|
|
37
37
|
"zod": "^4.4.2",
|
|
38
|
-
"@pennixrv/trellis-core": "0.7.2-beta.
|
|
38
|
+
"@pennixrv/trellis-core": "0.7.2-beta.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@eslint/js": "^9.18.0",
|