@hyperwindmill/caretaker-cli 0.13.0 → 0.13.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/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.map +1 -1
- package/dist/harness/claude_code_runner.js +7 -4
- 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/webview/standalone.js +16 -0
- package/dist/webview/standalone.js.map +2 -2
- package/package.json +3 -3
|
@@ -41,14 +41,14 @@ export function parseReviewVerdict(text) {
|
|
|
41
41
|
export async function runDoneReview(opts) {
|
|
42
42
|
// Strip task-state tools: the reviewer must not mutate the task; the harness decides.
|
|
43
43
|
const reviewTools = opts.tools.filter((t) => !t.name.startsWith('mcp__task__'));
|
|
44
|
-
// claude-code reviewer: in a docker container it uses the same
|
|
44
|
+
// claude-code reviewer: in a docker container it uses the same dontAsk +
|
|
45
45
|
// workdir-scoped allowlist as the dev cycle (the Bash-rewrite hook is attached
|
|
46
46
|
// by the runner via `docker`); otherwise bypassPermissions, no task bridge.
|
|
47
47
|
const isClaudeCode = opts.provider.type === 'claude-code';
|
|
48
48
|
const claudeCode = isClaudeCode
|
|
49
49
|
? opts.dockerContainer
|
|
50
50
|
? {
|
|
51
|
-
permissionMode: '
|
|
51
|
+
permissionMode: 'dontAsk',
|
|
52
52
|
allowedTools: dockerDevAllowlist(opts.workingDir),
|
|
53
53
|
docker: { container: opts.dockerContainer, workdir: opts.workingDir },
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task_strategy.d.ts","sourceRoot":"","sources":["../../../../src/cli/web/scheduler/task_strategy.ts"],"names":[],"mappings":"AAyHA,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"task_strategy.d.ts","sourceRoot":"","sources":["../../../../src/cli/web/scheduler/task_strategy.ts"],"names":[],"mappings":"AAyHA,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAsanE"}
|
|
@@ -343,12 +343,14 @@ export async function runTaskHeartbeatTick(now) {
|
|
|
343
343
|
bridge: bridgeUrl && bridgeToken ? { url: bridgeUrl, token: bridgeToken } : undefined,
|
|
344
344
|
});
|
|
345
345
|
// Docker isolation for claude-code (non-planning): swap bypassPermissions
|
|
346
|
-
// for
|
|
346
|
+
// for dontAsk + a workdir-scoped allowlist and attach the Bash-rewrite hook.
|
|
347
|
+
// dontAsk auto-denies (and keeps running) anything off the allowlist and is
|
|
348
|
+
// valid on every CLI version, unlike 'manual' (a >=2.1.200 alias of 'default').
|
|
347
349
|
// Planning stays as-is (read-only; no shell to contain).
|
|
348
350
|
if (dockerContainer && !planning) {
|
|
349
351
|
claudeCode = {
|
|
350
352
|
...claudeCode,
|
|
351
|
-
permissionMode: '
|
|
353
|
+
permissionMode: 'dontAsk',
|
|
352
354
|
allowedTools: dockerDevAllowlist(workingDir),
|
|
353
355
|
disallowedTools: undefined,
|
|
354
356
|
docker: { container: dockerContainer, workdir: workingDir },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude_code_runner.d.ts","sourceRoot":"","sources":["../../src/harness/claude_code_runner.ts"],"names":[],"mappings":"AAMA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAM3E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAerE,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,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B,eAAe,CAAC,CAAC,EAAE,eAAe,GAAG,MAAM,EAAE,CAY5D;AAED,uEAAuE;AACvE,wBAAgB,oBAAoB,CAAC,CAAC,EAAE;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC,GAAG,mBAAmB,CAoBtB;AA+LD,wBAAsB,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,GAAE,YAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,CAkI/F"}
|
|
@@ -67,13 +67,16 @@ export function claudeCodeTaskExtras(p) {
|
|
|
67
67
|
: undefined;
|
|
68
68
|
if (!p.planning)
|
|
69
69
|
return { permissionMode: 'bypassPermissions', extraMcpServers };
|
|
70
|
-
// Planner: '
|
|
71
|
-
//
|
|
72
|
-
//
|
|
70
|
+
// Planner: 'dontAsk' mode + explicit allowlist. dontAsk auto-DENIES (and keeps
|
|
71
|
+
// running) any tool call not covered by the allowlist — exactly the headless
|
|
72
|
+
// "confine + never hang" contract. NOT 'default' (in -p an off-list prompt
|
|
73
|
+
// aborts the whole run, not a clean per-call deny), NOT 'plan' (could also
|
|
74
|
+
// block mcp task_submit_plan). ('manual' is only a >=2.1.200 alias of 'default'
|
|
75
|
+
// and errors on older CLIs, so it's the wrong choice on both counts.)
|
|
73
76
|
const allowedTools = ['Read', 'Glob', 'Grep', 'mcp__task'];
|
|
74
77
|
if (p.sdd)
|
|
75
78
|
allowedTools.push('Write(**/*.md)', 'Edit(**/*.md)', 'MultiEdit(**/*.md)');
|
|
76
|
-
return { permissionMode: '
|
|
79
|
+
return { permissionMode: 'dontAsk', allowedTools, disallowedTools: ['Bash'], extraMcpServers };
|
|
77
80
|
}
|
|
78
81
|
async function buildMcpConfigFile(serverIds, extra) {
|
|
79
82
|
const servers = {};
|
package/dist/lib/docker.d.ts
CHANGED
|
@@ -3,6 +3,18 @@ export declare function containerName(projectId: number, taskId: number): string
|
|
|
3
3
|
/** `docker run` argv. Mount is identical-path (`-v <root>:<root>`) so host and
|
|
4
4
|
* container agree on absolute paths. `--user` keeps written files owned by the
|
|
5
5
|
* host user (else root-owned files break the host WIP commit / review diff).
|
|
6
|
+
*
|
|
7
|
+
* We keep the container alive with `sleep infinity`, but pass it via
|
|
8
|
+
* `--entrypoint sleep` (arg `infinity`) rather than as the CMD. A CMD only
|
|
9
|
+
* overrides the image's CMD, not its ENTRYPOINT: a product's runtime image
|
|
10
|
+
* commonly defines an ENTRYPOINT that boots services (apache/supervisord/…)
|
|
11
|
+
* and never `exec "$@"`s, so our `sleep infinity` would be swallowed as args,
|
|
12
|
+
* the entrypoint would run its services (and, under `--user`, fail to setuid to
|
|
13
|
+
* root and exit non-zero), and the container would die mid-bootstrap — taking
|
|
14
|
+
* every in-flight `docker exec` (bootstrap, the agent) down with it. Overriding
|
|
15
|
+
* the entrypoint makes PID 1 be `sleep infinity` regardless of the image, which
|
|
16
|
+
* is exactly what we want: caretaker uses the container as an isolated shell
|
|
17
|
+
* target via `docker exec`, not to run the image's service stack.
|
|
6
18
|
* ponytail: if an image lacks a matching /etc/passwd entry, set HOME=/tmp; tune when a real image needs it. */
|
|
7
19
|
export declare function containerRunArgs(name: string, image: string, mountRoot: string, workdir: string, uid?: number, gid?: number, extraMounts?: string[]): string[];
|
|
8
20
|
export declare function containerExecArgs(name: string, cwd: string, cmd: string): string[];
|
|
@@ -38,6 +50,6 @@ export declare function dockerClaudeSettings(container: string, workdir: string,
|
|
|
38
50
|
* ABSOLUTE path and `/path` for project-relative. `workdir` is absolute (leads
|
|
39
51
|
* with `/`), so the rule must be `//<workdir>/**` — hence the extra leading `/`.
|
|
40
52
|
* With a single slash the rule is read as project-relative, matches nothing, and
|
|
41
|
-
* `--permission-mode
|
|
53
|
+
* `--permission-mode dontAsk` then denies every file-tool call (even in-workspace). */
|
|
42
54
|
export declare function dockerDevAllowlist(workdir: string): string[];
|
|
43
55
|
//# sourceMappingURL=docker.d.ts.map
|
package/dist/lib/docker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../src/lib/docker.ts"],"names":[],"mappings":"AASA,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED
|
|
1
|
+
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../src/lib/docker.ts"],"names":[],"mappings":"AASA,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;;;;;;;;;;;;gHAegH;AAChH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,EACZ,WAAW,GAAE,MAAM,EAAO,GACzB,MAAM,EAAE,CAWV;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAElF;AAcD,yFAAyF;AACzF,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,WAAW,GAAE,MAAM,EAAO,GACzB,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;4CAG4C;AAC5C,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGpE;AAED;sEACsE;AACtE,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAc/C;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;AAED,6DAA6D;AAC7D,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAErE;AAED;;qFAEqF;AACrF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;2DAE2D;AAC3D,wBAAsB,UAAU,CAC9B,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAWf;AAKD,eAAO,MAAM,uBAAuB,ojBAYnC,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,GACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWzB;AAED;;;;;;wFAMwF;AACxF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAY5D"}
|
package/dist/lib/docker.js
CHANGED
|
@@ -12,9 +12,21 @@ export function containerName(projectId, taskId) {
|
|
|
12
12
|
/** `docker run` argv. Mount is identical-path (`-v <root>:<root>`) so host and
|
|
13
13
|
* container agree on absolute paths. `--user` keeps written files owned by the
|
|
14
14
|
* host user (else root-owned files break the host WIP commit / review diff).
|
|
15
|
+
*
|
|
16
|
+
* We keep the container alive with `sleep infinity`, but pass it via
|
|
17
|
+
* `--entrypoint sleep` (arg `infinity`) rather than as the CMD. A CMD only
|
|
18
|
+
* overrides the image's CMD, not its ENTRYPOINT: a product's runtime image
|
|
19
|
+
* commonly defines an ENTRYPOINT that boots services (apache/supervisord/…)
|
|
20
|
+
* and never `exec "$@"`s, so our `sleep infinity` would be swallowed as args,
|
|
21
|
+
* the entrypoint would run its services (and, under `--user`, fail to setuid to
|
|
22
|
+
* root and exit non-zero), and the container would die mid-bootstrap — taking
|
|
23
|
+
* every in-flight `docker exec` (bootstrap, the agent) down with it. Overriding
|
|
24
|
+
* the entrypoint makes PID 1 be `sleep infinity` regardless of the image, which
|
|
25
|
+
* is exactly what we want: caretaker uses the container as an isolated shell
|
|
26
|
+
* target via `docker exec`, not to run the image's service stack.
|
|
15
27
|
* ponytail: if an image lacks a matching /etc/passwd entry, set HOME=/tmp; tune when a real image needs it. */
|
|
16
28
|
export function containerRunArgs(name, image, mountRoot, workdir, uid, gid, extraMounts = []) {
|
|
17
|
-
const args = ['run', '-d'];
|
|
29
|
+
const args = ['run', '-d', '--entrypoint', 'sleep'];
|
|
18
30
|
if (typeof uid === 'number' && typeof gid === 'number') {
|
|
19
31
|
args.push('--user', `${uid}:${gid}`);
|
|
20
32
|
}
|
|
@@ -23,7 +35,7 @@ export function containerRunArgs(name, image, mountRoot, workdir, uid, gid, extr
|
|
|
23
35
|
// worktree's gitdir resolves and in-container git works).
|
|
24
36
|
for (const m of extraMounts)
|
|
25
37
|
args.push('-v', `${m}:${m}`);
|
|
26
|
-
args.push('-w', workdir, '--name', name, image, '
|
|
38
|
+
args.push('-w', workdir, '--name', name, image, 'infinity');
|
|
27
39
|
return args;
|
|
28
40
|
}
|
|
29
41
|
export function containerExecArgs(name, cwd, cmd) {
|
|
@@ -144,7 +156,7 @@ export function dockerClaudeSettings(container, workdir, hookScriptPath) {
|
|
|
144
156
|
* ABSOLUTE path and `/path` for project-relative. `workdir` is absolute (leads
|
|
145
157
|
* with `/`), so the rule must be `//<workdir>/**` — hence the extra leading `/`.
|
|
146
158
|
* With a single slash the rule is read as project-relative, matches nothing, and
|
|
147
|
-
* `--permission-mode
|
|
159
|
+
* `--permission-mode dontAsk` then denies every file-tool call (even in-workspace). */
|
|
148
160
|
export function dockerDevAllowlist(workdir) {
|
|
149
161
|
const scope = `/${workdir}/**`; // workdir starts with '/', so this yields '//<abs>/**'
|
|
150
162
|
return [
|
|
@@ -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" }),
|