@fancyboi999/open-tag-daemon 0.7.0 → 0.7.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/dist/cli.mjs +31 -19
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4139,6 +4139,29 @@ function summarize(tool, input) {
|
|
|
4139
4139
|
if (["Read", "Write", "Edit"].includes(tool)) return input.file_path ?? input.path ?? "";
|
|
4140
4140
|
return "";
|
|
4141
4141
|
}
|
|
4142
|
+
var CLAUDE_EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "xhigh", "max"]);
|
|
4143
|
+
function buildClaudeArgs(p) {
|
|
4144
|
+
const args2 = [
|
|
4145
|
+
"-p",
|
|
4146
|
+
"--output-format",
|
|
4147
|
+
"stream-json",
|
|
4148
|
+
"--input-format",
|
|
4149
|
+
"stream-json",
|
|
4150
|
+
"--verbose",
|
|
4151
|
+
"--dangerously-skip-permissions",
|
|
4152
|
+
"--permission-mode",
|
|
4153
|
+
"bypassPermissions",
|
|
4154
|
+
"--include-partial-messages",
|
|
4155
|
+
"--disallowed-tools",
|
|
4156
|
+
"EnterPlanMode,ExitPlanMode,ScheduleWakeup,CronCreate,CronList,CronDelete,AskUserQuestion",
|
|
4157
|
+
...p.promptFileFlag
|
|
4158
|
+
];
|
|
4159
|
+
if (p.model) args2.push("--model", p.model);
|
|
4160
|
+
const effort = typeof p.reasoningEffort === "string" && CLAUDE_EFFORTS.has(p.reasoningEffort) ? p.reasoningEffort : null;
|
|
4161
|
+
if (effort) args2.push("--effort", effort);
|
|
4162
|
+
if (p.sessionId) args2.push("--resume", p.sessionId);
|
|
4163
|
+
return args2;
|
|
4164
|
+
}
|
|
4142
4165
|
var claudeRuntime = {
|
|
4143
4166
|
name: "claude",
|
|
4144
4167
|
start(opts, cb) {
|
|
@@ -4149,24 +4172,13 @@ var claudeRuntime = {
|
|
|
4149
4172
|
promptFlag = ["--append-system-prompt-file", pf];
|
|
4150
4173
|
} catch {
|
|
4151
4174
|
}
|
|
4152
|
-
const
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
"
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
"--dangerously-skip-permissions",
|
|
4160
|
-
"--permission-mode",
|
|
4161
|
-
"bypassPermissions",
|
|
4162
|
-
"--include-partial-messages",
|
|
4163
|
-
"--disallowed-tools",
|
|
4164
|
-
"EnterPlanMode,ExitPlanMode,ScheduleWakeup,CronCreate,CronList,CronDelete,AskUserQuestion",
|
|
4165
|
-
...promptFlag,
|
|
4166
|
-
"--model",
|
|
4167
|
-
opts.model ?? "sonnet"
|
|
4168
|
-
];
|
|
4169
|
-
if (opts.sessionId) args2.push("--resume", opts.sessionId);
|
|
4175
|
+
const rc = opts.runtimeConfig;
|
|
4176
|
+
const args2 = buildClaudeArgs({
|
|
4177
|
+
promptFileFlag: promptFlag,
|
|
4178
|
+
model: opts.model,
|
|
4179
|
+
reasoningEffort: rc && typeof rc.reasoningEffort === "string" ? rc.reasoningEffort : null,
|
|
4180
|
+
sessionId: opts.sessionId
|
|
4181
|
+
});
|
|
4170
4182
|
const proc = spawn("claude", args2, { cwd: opts.cwd, stdio: ["pipe", "pipe", "pipe"], env: opts.env });
|
|
4171
4183
|
let sessionId = opts.sessionId ?? null;
|
|
4172
4184
|
const writeUser = (text) => {
|
|
@@ -5991,7 +6003,7 @@ conn = new Connection(serverUrl, apiKey, (msg) => {
|
|
|
5991
6003
|
runningAgents: mgr.running(),
|
|
5992
6004
|
hostname: os4.hostname(),
|
|
5993
6005
|
os: `${os4.platform()} ${os4.arch()}`,
|
|
5994
|
-
daemonVersion: "0.7.
|
|
6006
|
+
daemonVersion: "0.7.1",
|
|
5995
6007
|
machineId: readMachineId()
|
|
5996
6008
|
// Stable identity: empty on first connection; server sends it back via ready:ack for persistence.
|
|
5997
6009
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fancyboi999/open-tag-daemon",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "open-tag compute-plane daemon — connect any machine to an open-tag server so its agents run there. No repo clone needed.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|