@hyperwindmill/caretaker-cli 0.13.0 → 0.14.0
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/config_claude.d.ts +9 -0
- package/dist/cli/config_claude.d.ts.map +1 -0
- package/dist/cli/config_claude.js +62 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +15 -0
- package/dist/cli/mcp.d.ts +2 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +17 -0
- package/dist/cli/web/mcp_bridge.d.ts.map +1 -1
- package/dist/cli/web/mcp_bridge.js +2 -44
- package/dist/cli/web/scheduler/task_review.js +2 -2
- package/dist/cli/web/scheduler/task_strategy.d.ts.map +1 -1
- package/dist/cli/web/scheduler/task_strategy.js +4 -2
- package/dist/harness/claude_code_runner.d.ts +3 -0
- package/dist/harness/claude_code_runner.d.ts.map +1 -1
- package/dist/harness/claude_code_runner.js +13 -6
- package/dist/index.js +21 -15
- package/dist/lib/docker.d.ts +13 -1
- package/dist/lib/docker.d.ts.map +1 -1
- package/dist/lib/docker.js +15 -3
- package/dist/mcp/task_server.d.ts +9 -0
- package/dist/mcp/task_server.d.ts.map +1 -0
- package/dist/mcp/task_server.js +48 -0
- package/dist/tui/agents.d.ts.map +1 -1
- package/dist/tui/agents.js +16 -5
- package/dist/webview/standalone.js +57 -16
- package/dist/webview/standalone.js.map +2 -2
- package/package.json +3 -3
|
@@ -16444,6 +16444,22 @@ ${text}</tr>
|
|
|
16444
16444
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "pnpm install" }),
|
|
16445
16445
|
". The run stops and the task is blocked if any command fails.",
|
|
16446
16446
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("br", {}),
|
|
16447
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { children: "One line = one command." }),
|
|
16448
|
+
" Each line is run as a ",
|
|
16449
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "separate" }),
|
|
16450
|
+
" shell at the worktree root \u2014 this is ",
|
|
16451
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "not" }),
|
|
16452
|
+
" a single script. Shell state does not carry over, so a ",
|
|
16453
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "cd" }),
|
|
16454
|
+
" on one line has ",
|
|
16455
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "no effect" }),
|
|
16456
|
+
" on the next. Chain dependent steps on one line with ",
|
|
16457
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "&&" }),
|
|
16458
|
+
" instead, e.g.",
|
|
16459
|
+
" ",
|
|
16460
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("code", { children: "cd sub && composer install" }),
|
|
16461
|
+
".",
|
|
16462
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("br", {}),
|
|
16447
16463
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { children: "Heads up on how tasks work:" }),
|
|
16448
16464
|
" each task runs on its own git worktree/branch, and every cycle commits ",
|
|
16449
16465
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("em", { children: "all" }),
|
|
@@ -16581,6 +16597,7 @@ ${text}</tr>
|
|
|
16581
16597
|
const [maxTurns, setMaxTurns] = (0, import_react8.useState)(30);
|
|
16582
16598
|
const [workingDir, setWorkingDir] = (0, import_react8.useState)("");
|
|
16583
16599
|
const [permissionMode, setPermissionMode] = (0, import_react8.useState)("");
|
|
16600
|
+
const [strictMcp, setStrictMcp] = (0, import_react8.useState)(false);
|
|
16584
16601
|
const [selectedTools, setSelectedTools] = (0, import_react8.useState)({});
|
|
16585
16602
|
const [confirmTools, setConfirmTools] = (0, import_react8.useState)({});
|
|
16586
16603
|
const [selectedPlugins, setSelectedPlugins] = (0, import_react8.useState)({});
|
|
@@ -16608,6 +16625,7 @@ ${text}</tr>
|
|
|
16608
16625
|
setMaxTurns(30);
|
|
16609
16626
|
setWorkingDir("");
|
|
16610
16627
|
setPermissionMode("");
|
|
16628
|
+
setStrictMcp(false);
|
|
16611
16629
|
const initialTools = {};
|
|
16612
16630
|
availableTools.forEach((t) => {
|
|
16613
16631
|
initialTools[t] = t === "read_file" || t === "grep_search";
|
|
@@ -16629,6 +16647,7 @@ ${text}</tr>
|
|
|
16629
16647
|
setMaxTurns(agent.maxTurns || 30);
|
|
16630
16648
|
setWorkingDir(agent.workingDir || "");
|
|
16631
16649
|
setPermissionMode(agent.permissionMode ?? "");
|
|
16650
|
+
setStrictMcp(agent.strictMcp ?? false);
|
|
16632
16651
|
const initialTools = {};
|
|
16633
16652
|
const initialConfirm = {};
|
|
16634
16653
|
availableTools.forEach((t) => {
|
|
@@ -16725,6 +16744,7 @@ ${text}</tr>
|
|
|
16725
16744
|
maxTurns,
|
|
16726
16745
|
...trimmedWorkingDir ? { workingDir: trimmedWorkingDir } : {},
|
|
16727
16746
|
...isClaudeCode && permissionMode ? { permissionMode } : {},
|
|
16747
|
+
...isClaudeCode && strictMcp ? { strictMcp: true } : {},
|
|
16728
16748
|
// Preserve plugin-managed properties
|
|
16729
16749
|
...editingAgent?.pluginId ? { pluginId: editingAgent.pluginId } : {},
|
|
16730
16750
|
...editingAgent?.pluginScopedName ? { pluginScopedName: editingAgent.pluginScopedName } : {}
|
|
@@ -16864,22 +16884,43 @@ ${text}</tr>
|
|
|
16864
16884
|
)
|
|
16865
16885
|
] }),
|
|
16866
16886
|
isClaudeCode ? (
|
|
16867
|
-
/* Permission mode (
|
|
16868
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
16869
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.
|
|
16870
|
-
|
|
16871
|
-
|
|
16872
|
-
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16887
|
+
/* Permission mode + strict-MCP toggle (replace the tool/plugins pickers, ignored at runtime) */
|
|
16888
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
16889
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "form-group", children: [
|
|
16890
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("label", { htmlFor: "agent-permission-mode", children: "Permission Mode" }),
|
|
16891
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
16892
|
+
"select",
|
|
16893
|
+
{
|
|
16894
|
+
id: "agent-permission-mode",
|
|
16895
|
+
value: permissionMode,
|
|
16896
|
+
onChange: (e) => setPermissionMode(e.target.value),
|
|
16897
|
+
children: [
|
|
16898
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "Auto (Claude Code default from ~/.claude/settings.json)" }),
|
|
16899
|
+
["acceptEdits", "auto", "bypassPermissions", "manual", "dontAsk", "plan"].map((m) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: m, children: m }, m))
|
|
16900
|
+
]
|
|
16901
|
+
}
|
|
16902
|
+
),
|
|
16903
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { style: { fontSize: "11px", color: "var(--vscode-descriptionForeground)", lineHeight: "1.4", margin: "4px 0 0" }, children: "Claude Code uses its own tools and permissions. Uses your local Claude Code session; Anthropic may bill programmatic use as extra usage." })
|
|
16904
|
+
] }),
|
|
16905
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "form-group", children: [
|
|
16906
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { style: { display: "flex", alignItems: "center", gap: "8px", cursor: "pointer" }, children: [
|
|
16907
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
16908
|
+
"input",
|
|
16909
|
+
{
|
|
16910
|
+
type: "checkbox",
|
|
16911
|
+
checked: strictMcp,
|
|
16912
|
+
onChange: (e) => setStrictMcp(e.target.checked)
|
|
16913
|
+
}
|
|
16914
|
+
),
|
|
16915
|
+
"Strict MCP config"
|
|
16916
|
+
] }),
|
|
16917
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { style: { fontSize: "11px", color: "var(--vscode-descriptionForeground)", lineHeight: "1.4", margin: "4px 0 0" }, children: [
|
|
16918
|
+
"Off (default): merge your native ~/.claude MCP servers with caretaker's \u2014 e.g. add a",
|
|
16919
|
+
" ",
|
|
16920
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("code", { children: "caretaker-cli mcp" }),
|
|
16921
|
+
" stdio server to ~/.claude for task tools in chat. On: use only caretaker's servers (--strict-mcp-config)."
|
|
16922
|
+
] })
|
|
16923
|
+
] })
|
|
16883
16924
|
] })
|
|
16884
16925
|
) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
16885
16926
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "form-group form-group--chips", children: [
|