wezard 2.8.2 → 2.8.3
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/daemon/http.js +19 -1
- package/dist/daemon/http.js.map +1 -1
- package/dist/daemon/index.js +14 -15
- package/dist/daemon/index.js.map +1 -1
- package/dist/mcp/server.js +5 -5
- package/dist/mcp/server.js.map +1 -1
- package/dist/shared/task-template.js +24 -15
- package/dist/shared/task-template.js.map +1 -1
- package/package.json +1 -1
package/dist/daemon/http.js
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
// Local control HTTP — talks to hooks, slash commands, MCP server.
|
|
2
2
|
// Bound to 127.0.0.1; trust = "anyone with loopback access".
|
|
3
3
|
// Endpoints intentionally tiny & sync-friendly.
|
|
4
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
4
5
|
import { createServer } from "node:http";
|
|
5
|
-
import {
|
|
6
|
+
import { dirname, join } from "node:path";
|
|
7
|
+
import { URL, fileURLToPath } from "node:url";
|
|
6
8
|
import { expandHome } from "../shared/paths.js";
|
|
7
9
|
import { drainForReload, listPending } from "./pending.js";
|
|
10
|
+
/** 外部调用方的能力判据 (/status): 按名字查有没有, 别靠盘上目录之类的副作用猜。 */
|
|
11
|
+
const CAPABILITIES = ["dispatch.taskFile"];
|
|
12
|
+
// 加载时读一次: 报的是正在跑的这份代码的版本, 不是盘上刚 pull 下来的。源码跑 daemon/ → ../,
|
|
13
|
+
// 编译后与 npm 安装 dist/daemon/ → ../../ (同 web-assets 的双候选)。
|
|
14
|
+
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const VERSION = (() => {
|
|
16
|
+
const p = [join(HERE, "..", "package.json"), join(HERE, "..", "..", "package.json")].find(existsSync);
|
|
17
|
+
try {
|
|
18
|
+
return p ? String(JSON.parse(readFileSync(p, "utf8")).version ?? "") : "";
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
})();
|
|
8
24
|
const json = (res, status, body) => {
|
|
9
25
|
res.statusCode = status;
|
|
10
26
|
res.setHeader("content-type", "application/json");
|
|
@@ -31,6 +47,8 @@ const routes = {
|
|
|
31
47
|
const bots = ws.bots();
|
|
32
48
|
json(res, 200, {
|
|
33
49
|
ok: true,
|
|
50
|
+
version: VERSION,
|
|
51
|
+
capabilities: CAPABILITIES,
|
|
34
52
|
wsConnected: ws.client.isConnected,
|
|
35
53
|
ws: ws.status(),
|
|
36
54
|
backend: cfg.wrc.defaultCli,
|
package/dist/daemon/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../daemon/http.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,6DAA6D;AAC7D,gDAAgD;AAChD,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../daemon/http.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,6DAA6D;AAC7D,gDAAgD;AAChD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAS3D,oDAAoD;AACpD,MAAM,YAAY,GAAG,CAAC,mBAAmB,CAAU,CAAC;AAEpD,4DAA4D;AAC5D,yDAAyD;AACzD,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC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AE,GAAG,EAAE,CACV,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAC5B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QAChC,CAAC,CAAC;QACJ,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC;KACtD,CAAC;AACJ,CAAC,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/daemon/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { wxMarkdown } from "../shared/wx-text.js";
|
|
2
2
|
// Daemon entry. Resident process — exits only on signal or fatal WS auth failure.
|
|
3
|
-
import { existsSync,
|
|
3
|
+
import { existsSync, readFileSync, renameSync, statSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { timingSafeEqual, randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { loadOrCreateSvrToken } from "../shared/svr-token.js";
|
|
@@ -59,7 +59,7 @@ import { checkDirection } from "./direction.js";
|
|
|
59
59
|
import { loadJobStore, dutyLine, awaitingAccept, stalledRoots, shelvedRoots, nudgeDue, dayClamp, childrenOf as jobChildren, jobEpisode, rejectReason, ACCEPTS, JOB_MEMBER_MAX, JOB_DEPTH_MAX, depthOf, ancestorsOf as jobAncestors, treeOrder, jobStage } from "./jobs.js";
|
|
60
60
|
import { cacheTouchMs, cacheTtlSec, clipMiddle, contextMaterials, firstStamp, parseClosing, stripClosingMark, stripForChat, lastContextTokens, lastExchange, lastModel, openingTurn, talkTurns, turnsSince, renderPeerEnvelope, renderReceiptEnvelope, renderTaskEnvelope } from "./peers.js";
|
|
61
61
|
import { expandHome } from "../shared/paths.js";
|
|
62
|
-
import { expandTask, TemplateError
|
|
62
|
+
import { expandTask, TemplateError } from "../shared/task-template.js";
|
|
63
63
|
import { loadJsonMap } from "../shared/json-map-store.js";
|
|
64
64
|
import { createWorkflowNodes } from "./workflow-nodes.js";
|
|
65
65
|
import { loadWorkflowPlans, createWorkflowPlanRunner } from "./workflow-plans.js";
|
|
@@ -104,14 +104,6 @@ const main = async () => {
|
|
|
104
104
|
// attach / tmux spawn.
|
|
105
105
|
const { primary, backends } = bindCliBackends({ ...cfg.wrc, projectsDirOverride: cfg.wrc.mirror.projectsDir });
|
|
106
106
|
bindCodexStateDir(cfg.daemon.stateDir);
|
|
107
|
-
// 模板能力握手 (§8): 管家以「根目录存在」为切 taskFile 的唯一开关, 所以这个 mkdir
|
|
108
|
-
// 必须与入口展开**同车**落地 —— 只建目录不接展开, 管家切过去就全 400。失败只当
|
|
109
|
-
// 能力关闭 (expandTask 对缺失的根报 templates disabled), 绝不能拦 daemon 启动,
|
|
110
|
-
// 也不喷栈。
|
|
111
|
-
try {
|
|
112
|
-
mkdirSync(expandHome(TEMPLATE_ROOT), { recursive: true, mode: 0o700 });
|
|
113
|
-
}
|
|
114
|
-
catch { /* 静默是故意的 */ }
|
|
115
107
|
log.info({ primary: primary.name, bin: primary.bin, backends: backends.map((b) => b.name) }, "cli backends bound");
|
|
116
108
|
// A killed-on-timeout tmux call is the ONLY externally visible symptom of a
|
|
117
109
|
// wedged tmux server, and the exec helper has no logger of its own. Wire it
|
|
@@ -2362,6 +2354,10 @@ const main = async () => {
|
|
|
2362
2354
|
return undefined;
|
|
2363
2355
|
};
|
|
2364
2356
|
const transferNote = (f, target) => `这一笔 (${f}) 已整件交给 ${displayName(target)}: 它的结论 (含 NEED / 失败) 直接回你服务的上游, 不回你 —— 本轮静默收口, 别再为这件派活或对人说话`;
|
|
2357
|
+
/** taskFile 模板的解析基点: 调用方工作区 —— session 的 runningCwd (冷会话落
|
|
2358
|
+
* defaultCwd, 见 mirror-bridge 的 getCwd), 都为空才退 daemon 进程 cwd。模板
|
|
2359
|
+
* 路径相对它解析, realpath 后必须仍在它子树内 (防 ../ 与软链逃出工作区)。 */
|
|
2360
|
+
const callerBaseOf = (self) => m.getCwd(self).runningCwd || m.getCwd(self).defaultCwd || process.cwd();
|
|
2365
2361
|
const tellPeerAsInner = async (self, body, extra = "", planned, actor) => {
|
|
2366
2362
|
const authority = actor?.authority ?? (!planned ? controlSnapshot(self) : undefined);
|
|
2367
2363
|
const tb = body;
|
|
@@ -2372,7 +2368,7 @@ const main = async () => {
|
|
|
2372
2368
|
// 入口已展开过的正文原样走, 不重复读文件。
|
|
2373
2369
|
if (!text.trim() && (tb.taskFile ?? "") !== "") {
|
|
2374
2370
|
try {
|
|
2375
|
-
const expanded = await expandTask({ taskFile: tb.taskFile, params: tb.params ?? {} });
|
|
2371
|
+
const expanded = await expandTask({ taskFile: tb.taskFile, params: tb.params ?? {} }, { baseDir: callerBaseOf(self) });
|
|
2376
2372
|
text = expanded.text;
|
|
2377
2373
|
templateRef = expanded.templateRef;
|
|
2378
2374
|
}
|
|
@@ -3669,6 +3665,9 @@ const main = async () => {
|
|
|
3669
3665
|
// 派活收成一步 (见 route.decide): 查候选 → 过成本门控 → 转给已有的或按档白板 spawn →
|
|
3670
3666
|
// tell_peer 投出去, 回决定与理由。默认决定由守护进程算; 管家不同意就 `to` 点名、
|
|
3671
3667
|
// `force` 越过冷门控、`spawn:true` 硬要新的 —— 推翻要显式说。
|
|
3668
|
+
/** dispatch 回包的 reason: 投成了是选人理由; 投递 / 起 wizard 失败时 reason 必须是真实错误,
|
|
3669
|
+
* 选人理由降到 why —— 否则「你要了新的」会盖掉 bearAs / tell 的失败原因。 */
|
|
3670
|
+
const dispatchReason = (ok, real, why) => ok ? { reason: why } : { reason: String(real ?? "delivery failed (no reason)"), why };
|
|
3672
3671
|
http.register("POST /dispatch", async (req, res) => {
|
|
3673
3672
|
const { self, body } = await readPeerBody(req);
|
|
3674
3673
|
if (!self) {
|
|
@@ -3685,7 +3684,7 @@ const main = async () => {
|
|
|
3685
3684
|
if ((b.taskFile ?? "") !== "") {
|
|
3686
3685
|
let expanded;
|
|
3687
3686
|
try {
|
|
3688
|
-
expanded = await expandTask({ taskFile: b.taskFile, params: b.params ?? {} });
|
|
3687
|
+
expanded = await expandTask({ taskFile: b.taskFile, params: b.params ?? {} }, { baseDir: callerBaseOf(self) });
|
|
3689
3688
|
}
|
|
3690
3689
|
catch (e) {
|
|
3691
3690
|
json(res, 400, { ok: false, reason: e instanceof TemplateError ? e.message : `template expansion failed: ${errText(e)}` });
|
|
@@ -3820,7 +3819,7 @@ const main = async () => {
|
|
|
3820
3819
|
// 自动选中的被冷门控 (decide 用名册的活动时刻, 门控用 transcript 的, 口径差一点) 或方向闸 (它归别人管 / 是借来的专家) 退回: 改走 spawn; 点名的不改。
|
|
3821
3820
|
if (!(!to && (t.body.gated === "cold" || t.body.gated === "direction" || t.body.gated === "reuse"))) {
|
|
3822
3821
|
settleRoot(t.status === 200);
|
|
3823
|
-
json(res, t.status, withRoot({ ...t.body, decision: "existing", reason
|
|
3822
|
+
json(res, t.status, withRoot({ ...t.body, decision: "existing", ...dispatchReason(t.status === 200, t.body.reason, d.why), ...(shown.length ? { candidates: shown } : {}) }));
|
|
3824
3823
|
return;
|
|
3825
3824
|
}
|
|
3826
3825
|
diagnostics.deliveryFallback = String(t.body.reason);
|
|
@@ -3834,7 +3833,7 @@ const main = async () => {
|
|
|
3834
3833
|
const born = await bearAs(self, { inherit: false, name, description, tier, ...(lead ? { lead: true } : {}) }, undefined, dispatchOrigin?.authority);
|
|
3835
3834
|
if (born.status !== 200) {
|
|
3836
3835
|
settleRoot(false);
|
|
3837
|
-
json(res, born.status, { ...born.body, diagnostics, decision: "spawn", reason
|
|
3836
|
+
json(res, born.status, { ...born.body, diagnostics, decision: "spawn", ...dispatchReason(false, born.body.reason, d.why) });
|
|
3838
3837
|
return;
|
|
3839
3838
|
}
|
|
3840
3839
|
if (!controlValid(self, dispatchOrigin.authority)) {
|
|
@@ -3851,7 +3850,7 @@ const main = async () => {
|
|
|
3851
3850
|
json(res, t.status, withRoot({
|
|
3852
3851
|
...t.body,
|
|
3853
3852
|
decision: "spawn",
|
|
3854
|
-
reason
|
|
3853
|
+
...dispatchReason(t.status === 200, t.body.reason, d.why),
|
|
3855
3854
|
tier,
|
|
3856
3855
|
...(born.body.model ? { model: born.body.model } : {}),
|
|
3857
3856
|
...(born.body.effort ? { effort: born.body.effort } : {}),
|