automata-cli 0.4.0-develop.131 → 0.4.0-develop.142
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/index.js +17 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1879,7 +1879,7 @@ Title: ${issue.title}
|
|
|
1879
1879
|
}
|
|
1880
1880
|
return issue;
|
|
1881
1881
|
}
|
|
1882
|
-
var implementNextCommand = new Command3("implement-next").description("Find the next open GitHub issue matching the configured filter, claim it, and invoke the AI code assistant (Claude or Codex)").option("--json", "Output issue details as JSON").option("--no-claude", "Skip all AI invocation (Claude or Codex) after claiming the issue").option("--
|
|
1882
|
+
var implementNextCommand = new Command3("implement-next").description("Find the next open GitHub issue matching the configured filter, claim it, and invoke the AI code assistant (Claude or Codex)").option("--json", "Output issue details as JSON").option("--no-claude", "Skip all AI invocation (Claude or Codex) after claiming the issue").option("--with <executor>", "Executor to use: claude or codex", "claude").option("--query-only", "Print issue content and exit without claiming or invoking any AI tools").option("--yolo", "Launch with --dangerously-skip-permissions (Claude) or --dangerously-bypass-approvals-and-sandbox (Codex)").option("--silent", "Suppress step-by-step Claude output; show only the final summary").option("--model <string>", "Model identifier to pass to the executor").option("--take-first", "When multiple issues match, pick the first without prompting").option("--limit <n>", "Max issues to fetch and display (default: 10)", "10").action(async (options) => {
|
|
1883
1883
|
const config = readConfig();
|
|
1884
1884
|
validateConfig(config);
|
|
1885
1885
|
const limit = Number.parseInt(options.limit, 10);
|
|
@@ -1908,6 +1908,16 @@ ${issue.body}
|
|
|
1908
1908
|
if (options.queryOnly) {
|
|
1909
1909
|
process.exit(0);
|
|
1910
1910
|
}
|
|
1911
|
+
let executor;
|
|
1912
|
+
if (options.claude !== false) {
|
|
1913
|
+
const requestedExecutor = options.with.toLowerCase();
|
|
1914
|
+
if (requestedExecutor !== "claude" && requestedExecutor !== "codex") {
|
|
1915
|
+
process.stderr.write(`Error: --with must be 'claude' or 'codex', got '${options.with}'.
|
|
1916
|
+
`);
|
|
1917
|
+
process.exit(1);
|
|
1918
|
+
}
|
|
1919
|
+
executor = requestedExecutor;
|
|
1920
|
+
}
|
|
1911
1921
|
try {
|
|
1912
1922
|
postComment(issue.number, "working");
|
|
1913
1923
|
} catch (err) {
|
|
@@ -1922,11 +1932,13 @@ ${issue.body}
|
|
|
1922
1932
|
${systemPrompt}
|
|
1923
1933
|
|
|
1924
1934
|
${issue.body}`;
|
|
1925
|
-
if (
|
|
1926
|
-
|
|
1935
|
+
if (executor === "codex") {
|
|
1936
|
+
if (options.silent) {
|
|
1937
|
+
process.stderr.write("Warning: --silent is only supported with Claude and has no effect when used with Codex.\n");
|
|
1938
|
+
}
|
|
1939
|
+
invokeCodexCode(prompt, { yolo: options.yolo, model: options.model });
|
|
1927
1940
|
} else {
|
|
1928
|
-
|
|
1929
|
-
await invokeClaudeCode(prompt, { yolo: options.yolo, verbose: options.verbose, model });
|
|
1941
|
+
await invokeClaudeCode(prompt, { yolo: options.yolo, verbose: !options.silent, model: options.model });
|
|
1930
1942
|
}
|
|
1931
1943
|
}
|
|
1932
1944
|
});
|