claude-task-worker 0.32.0 → 0.33.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.
Files changed (2) hide show
  1. package/dist/index.js +11 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1414,7 +1414,12 @@ var SYSTEM_PROMPT = `\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306F \`claude-t
1414
1414
  - \u63A2\u7D22\u3092\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3078\u59D4\u8B72\u3059\u308B\u5834\u5408\u306F\u3001\u3053\u306E\u65B9\u91DD\u3082\u59D4\u8B72\u30D7\u30ED\u30F3\u30D7\u30C8\u306B\u660E\u8A18\u3057\u3066\u4F1D\u3048\u308B`;
1415
1415
  var CLAUDE_COMMAND = "claude";
1416
1416
  var HEADROOM_COMMAND = "headroom";
1417
- function buildClaudeArgs({ mode, prompt, model, effort }) {
1417
+ var HEADROOM_WRAP_OPTIONS = ["--1m", "--memory", "--no-tokensave", "--no-serena"];
1418
+ var CONTEXT_1M_SUFFIX = "[1m]";
1419
+ function withContext1mSuffix(model) {
1420
+ return model.endsWith(CONTEXT_1M_SUFFIX) ? model : `${model}${CONTEXT_1M_SUFFIX}`;
1421
+ }
1422
+ function buildClaudeArgs({ mode, prompt, model, effort, headroom }) {
1418
1423
  return [
1419
1424
  ...mode === "herdr" ? [] : ["-p"],
1420
1425
  prompt,
@@ -1425,7 +1430,7 @@ function buildClaudeArgs({ mode, prompt, model, effort }) {
1425
1430
  "--append-system-prompt",
1426
1431
  SYSTEM_PROMPT,
1427
1432
  "--model",
1428
- model,
1433
+ headroom ? withContext1mSuffix(model) : model,
1429
1434
  "--effort",
1430
1435
  effort
1431
1436
  ];
@@ -1435,7 +1440,10 @@ function buildClaudeExecution(invocation) {
1435
1440
  if (!invocation.headroom) {
1436
1441
  return { command: CLAUDE_COMMAND, args };
1437
1442
  }
1438
- return { command: HEADROOM_COMMAND, args: ["wrap", CLAUDE_COMMAND, "--", ...args] };
1443
+ return {
1444
+ command: HEADROOM_COMMAND,
1445
+ args: ["wrap", CLAUDE_COMMAND, ...HEADROOM_WRAP_OPTIONS, "--", ...args]
1446
+ };
1439
1447
  }
1440
1448
  function buildClaudeEnv(mode) {
1441
1449
  if (mode === "herdr") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-task-worker",
3
- "version": "0.32.0",
3
+ "version": "0.33.1",
4
4
  "description": "CLI tool that polls GitHub Issues/PRs and delegates work to Claude CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",