@iamlbccc/tdxd 1.1.0 → 1.1.1
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/package.json +1 -1
- package/tdxd-ctl.mjs +1 -1
- package/tdxd.mjs +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iamlbccc/tdxd",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "TDX-Daemon — remote daemon for Paperclip TDX-Adapter: drives ACP agents (opencode) with session-per-process, permission approval loop, usage metering; ships cross-platform tdxd-ctl (init/scaffold/start/stop/status)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/tdxd-ctl.mjs
CHANGED
|
@@ -34,7 +34,7 @@ function listAgents() {
|
|
|
34
34
|
|
|
35
35
|
function pick(target) {
|
|
36
36
|
const agents = listAgents();
|
|
37
|
-
if (agents.length === 0) { out(`[ctl]
|
|
37
|
+
if (agents.length === 0) { out(`[ctl] 无实例(查 ${AGENTS_DIR}/;初始化用 tdxd-ctl init <name>)`); process.exit(0); }
|
|
38
38
|
if (target === "all") return agents;
|
|
39
39
|
const a = agents.find((x) => x.name === target);
|
|
40
40
|
if (!a) { out(`[ctl] ✗ 未找到实例 "${target}"。现有: ${agents.map((x) => x.name).join(", ")}`); process.exit(1); }
|
package/tdxd.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// TDX-Daemon(tdxd)
|
|
2
|
+
// TDX-Daemon(tdxd)1.1.1(1.1.0:跨平台 ctl + init 脚手架 + BUG-05/11/12 修复)
|
|
3
3
|
// 职责:HTTP 入口(鉴权/唤醒/探活)+ SessionRouter(会话即进程) + ACP 事件→协议信封 + 平台回调
|
|
4
4
|
// 配置:--config config.json 或环境变量覆盖(见 config.example.json)
|
|
5
5
|
import http from "node:http";
|
|
@@ -227,7 +227,7 @@ const server = http.createServer((req, res) => {
|
|
|
227
227
|
if (req.method === "GET" && req.url === "/health") {
|
|
228
228
|
if (!okAuth(req)) { res.writeHead(401); res.end(); return; }
|
|
229
229
|
res.writeHead(200, { "content-type": "application/json" });
|
|
230
|
-
res.end(JSON.stringify({ ok: true, name: cfg.name, workspace: cfg.workspace, version: "1.1.
|
|
230
|
+
res.end(JSON.stringify({ ok: true, name: cfg.name, workspace: cfg.workspace, version: "1.1.1",
|
|
231
231
|
activeSessions: router.sessions.size }));
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
@@ -358,7 +358,7 @@ async function handleRun(wake, req, res) {
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
server.listen(cfg.port, cfg.bind, () => {
|
|
361
|
-
console.log(`[tdxd] ${cfg.name} v1.1.
|
|
361
|
+
console.log(`[tdxd] ${cfg.name} v1.1.1 就绪 ${cfg.bind}:${cfg.port}`);
|
|
362
362
|
console.log(`[tdxd] workspace=${cfg.workspace} command=${cfg.command} ${cfg.commandArgs.join(" ")}`);
|
|
363
363
|
console.log(`[tdxd] idleTTL=${cfg.idleTtlMin}min maxSessions=${cfg.maxSessions} 回调=${cfg.paperclip.url ? "启用" : "未配置"}`);
|
|
364
364
|
});
|