@clawos-dev/clawd 0.2.108-beta.208.cd97a67 → 0.2.109-beta.209.e48b1c9
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/cli.cjs +7 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -42514,6 +42514,11 @@ async function startDaemon(config) {
|
|
|
42514
42514
|
import_node_path45.default.join(config.dataDir, "personas/persona-app-builder")
|
|
42515
42515
|
);
|
|
42516
42516
|
const devServerSupervisor = new DevServerSupervisor();
|
|
42517
|
+
const appBuilderPortRange = [];
|
|
42518
|
+
for (let p2 = PROJECT_PORT_MIN; p2 <= PROJECT_PORT_MAX; p2++) appBuilderPortRange.push(p2);
|
|
42519
|
+
const effectivePreviewPorts = Array.from(
|
|
42520
|
+
/* @__PURE__ */ new Set([...config.previewPorts ?? [], ...appBuilderPortRange])
|
|
42521
|
+
);
|
|
42517
42522
|
const deleteSessionsByProject = async (_name) => {
|
|
42518
42523
|
};
|
|
42519
42524
|
const handlers = buildMethodHandlers({
|
|
@@ -42620,7 +42625,7 @@ async function startDaemon(config) {
|
|
|
42620
42625
|
// POST /extensions/import lands in ~/.clawd/extensions/<id>/
|
|
42621
42626
|
extensionsRoot: () => extensionsRoot(),
|
|
42622
42627
|
// app-builder build 模式:/preview/<port>/ 反代 dev server 的端口白名单(见 spec §三.2)
|
|
42623
|
-
previewPorts:
|
|
42628
|
+
previewPorts: effectivePreviewPorts
|
|
42624
42629
|
});
|
|
42625
42630
|
wsServer = new LocalWsServer({
|
|
42626
42631
|
host: config.host,
|
|
@@ -42660,7 +42665,7 @@ async function startDaemon(config) {
|
|
|
42660
42665
|
// file-sharing HTTP 路由复用 daemon 同端口(spec §5 第 3 条);router 自己处理 auth + 404
|
|
42661
42666
|
httpRequestHandler: httpRouter,
|
|
42662
42667
|
// app-builder build 模式:/preview/<port>/ HMR websocket upgrade 转发的端口白名单(同 http-router 配置)
|
|
42663
|
-
previewPorts:
|
|
42668
|
+
previewPorts: effectivePreviewPorts,
|
|
42664
42669
|
// 订阅成功后给该 client 重放 in-flight pendingQuestions(plan: clawd-question-server-truth)。
|
|
42665
42670
|
// daemon 是 pendingQuestions 的唯一 source of truth;新 client 接入 / 刷新页面时
|
|
42666
42671
|
// 把当前所有未决 question 以 session:question 帧定向回放,让 UI 不再误显示 Ended。
|
package/package.json
CHANGED