@todoforai/cli 0.1.2 → 0.1.3
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/README.md +1 -0
- package/dist/todoai.js +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ todoai --resume <todo-id> # resume specific todo
|
|
|
66
66
|
--continue, -c Continue most recent todo
|
|
67
67
|
--non-interactive, -n Run to completion and exit
|
|
68
68
|
--dangerously-skip-permissions Auto-approve all blocks (CI/benchmarks)
|
|
69
|
+
--allow-all Set permissions to allow all tools (no approval needed)
|
|
69
70
|
--no-watch Create todo and exit
|
|
70
71
|
--json Output as JSON
|
|
71
72
|
--safe Validate API key upfront
|
package/dist/todoai.js
CHANGED
|
@@ -43059,6 +43059,7 @@ Options:
|
|
|
43059
43059
|
--continue, -c Continue most recent todo
|
|
43060
43060
|
--non-interactive, -n Run to completion and exit without interactive prompt
|
|
43061
43061
|
--dangerously-skip-permissions Auto-approve all blocks (for CI/benchmarks)
|
|
43062
|
+
--allow-all Set permissions to allow all tools (no approval needed)
|
|
43062
43063
|
--no-watch Create todo and exit
|
|
43063
43064
|
--json Output as JSON
|
|
43064
43065
|
--safe Validate API key upfront
|
|
@@ -43087,6 +43088,7 @@ function parseCliArgs() {
|
|
|
43087
43088
|
continue: { type: "boolean", short: "c", default: false },
|
|
43088
43089
|
"non-interactive": { type: "boolean", short: "n", default: false },
|
|
43089
43090
|
"dangerously-skip-permissions": { type: "boolean", default: false },
|
|
43091
|
+
"allow-all": { type: "boolean", default: false },
|
|
43090
43092
|
"no-watch": { type: "boolean", default: false },
|
|
43091
43093
|
json: { type: "boolean", default: false },
|
|
43092
43094
|
safe: { type: "boolean", default: false },
|
|
@@ -44995,7 +44997,11 @@ Cancelled by user (Ctrl+C)
|
|
|
44995
44997
|
const ws2 = new FrontendWebSocket(apiUrl, apiKey);
|
|
44996
44998
|
await ws2.connect();
|
|
44997
44999
|
const autoApprove = !!args["dangerously-skip-permissions"];
|
|
44998
|
-
|
|
45000
|
+
let agent2 = todo2.agentSettings || { id: todo2.agentSettingsId };
|
|
45001
|
+
if (args["allow-all"]) {
|
|
45002
|
+
const perms = agent2.permissions || { allow: [], ask: [], deny: [] };
|
|
45003
|
+
agent2 = { ...agent2, permissions: { ...perms, allow: [...perms.allow || [], "*:*"] } };
|
|
45004
|
+
}
|
|
44999
45005
|
await watchTodo(ws2, todoId, projectId2, {
|
|
45000
45006
|
json: !!args.json,
|
|
45001
45007
|
autoApprove,
|
|
@@ -45005,7 +45011,7 @@ Cancelled by user (Ctrl+C)
|
|
|
45005
45011
|
process.stderr.write(`
|
|
45006
45012
|
${"\u2500".repeat(40)}
|
|
45007
45013
|
`);
|
|
45008
|
-
await interactiveLoop(ws2, api, todoId, projectId2, agent2, !!args.json, autoApprove);
|
|
45014
|
+
await interactiveLoop(ws2, api, todoId, projectId2, agent2, !!args.json, autoApprove, cfg);
|
|
45009
45015
|
}
|
|
45010
45016
|
await ws2.close();
|
|
45011
45017
|
}
|
|
@@ -45135,6 +45141,10 @@ Resumed todo: ${todoId}
|
|
|
45135
45141
|
await ws.connect();
|
|
45136
45142
|
if (args.model)
|
|
45137
45143
|
agent = { ...agent, model: args.model };
|
|
45144
|
+
if (args["allow-all"]) {
|
|
45145
|
+
const perms = agent.permissions || { allow: [], ask: [], deny: [] };
|
|
45146
|
+
agent = { ...agent, permissions: { ...perms, allow: [...perms.allow || [], "*:*"] } };
|
|
45147
|
+
}
|
|
45138
45148
|
cfg.addToHistory(content);
|
|
45139
45149
|
const todo = await api.addMessage(projectId, content, agent);
|
|
45140
45150
|
const actualTodoId = todo.id || crypto.randomUUID();
|