@todoforai/cli 0.1.12 → 0.1.13

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/todoai.js +9 -5
  2. package/package.json +1 -1
package/dist/todoai.js CHANGED
@@ -42744,7 +42744,7 @@ class ApiClient {
42744
42744
  }
42745
42745
  async request(method, endpoint, body) {
42746
42746
  const url = `${this.apiUrl}${endpoint}`;
42747
- const opts = { method, headers: this.headers };
42747
+ const opts = { method, headers: this.headers, signal: AbortSignal.timeout(30000) };
42748
42748
  if (body)
42749
42749
  opts.body = JSON.stringify(body);
42750
42750
  const res = await fetch(url, opts);
@@ -43300,7 +43300,6 @@ var EDGE_TOOL_TYPES = new Set([
43300
43300
  "edit" /* Edit */,
43301
43301
  "modify_file" /* ModifyFile */,
43302
43302
  "bash" /* Bash */,
43303
- "search" /* Search */,
43304
43303
  "grep" /* Grep */,
43305
43304
  "list" /* List */
43306
43305
  ]);
@@ -43725,8 +43724,6 @@ function serverIdMatches(ruleServerId, targetServerId, ctx) {
43725
43724
  const regex = new RegExp("^" + escaped.replace(/\*/g, "[^:]*") + "$");
43726
43725
  return regex.test(targetServerId);
43727
43726
  }
43728
- if (targetServerId.startsWith(ruleServerId + "_"))
43729
- return true;
43730
43727
  return false;
43731
43728
  }
43732
43729
  function patternMatches(rulePattern, targetPattern, ctx) {
@@ -43750,7 +43747,8 @@ function bashRuleMatchesCmd(rulePattern, serverId, cmd) {
43750
43747
  const rule = parsePattern(rulePattern);
43751
43748
  if (!rule)
43752
43749
  return false;
43753
- if (!serverIdMatches(rule.serverId, serverId))
43750
+ const targetServer = parsePattern(`${serverId}:_`)?.serverId ?? serverId;
43751
+ if (!serverIdMatches(rule.serverId, targetServer))
43754
43752
  return false;
43755
43753
  if (rule.toolName === "*" || rule.toolName === "BASH")
43756
43754
  return true;
@@ -43975,6 +43973,7 @@ Options:
43975
43973
  --non-interactive, -n Run to completion and exit without interactive prompt
43976
43974
  --dangerously-skip-permissions Auto-approve all blocks (for CI/benchmarks)
43977
43975
  --allow-all Set permissions to allow all tools (no approval needed)
43976
+ --raw-sysmsg <file> Use file contents verbatim as system prompt (new TODO only)
43978
43977
  --no-watch Create todo and exit
43979
43978
  --no-edge Do not auto-spawn edge daemon
43980
43979
  --json Output as JSON
@@ -44028,6 +44027,7 @@ function parseCliArgs() {
44028
44027
  "non-interactive": { type: "boolean", short: "n", default: false },
44029
44028
  "dangerously-skip-permissions": { type: "boolean", default: false },
44030
44029
  "allow-all": { type: "boolean", default: false },
44030
+ "raw-sysmsg": { type: "string" },
44031
44031
  "no-watch": { type: "boolean", default: false },
44032
44032
  "no-edge": { type: "boolean", default: false },
44033
44033
  json: { type: "boolean", default: false },
@@ -46527,6 +46527,10 @@ Resumed: ${CYAN}${getFrontendUrl(apiUrl, projectId2, todoId)}${RESET}
46527
46527
  await ws.connect();
46528
46528
  if (args.model)
46529
46529
  agent = { ...agent, model: args.model };
46530
+ if (args["raw-sysmsg"]) {
46531
+ const sysmsg = readFileSync3(resolve3(args["raw-sysmsg"]), "utf-8");
46532
+ agent = { ...agent, systemMessage: sysmsg, systemMessageMode: "raw" };
46533
+ }
46530
46534
  if (args["allow-all"]) {
46531
46535
  const perms = agent.permissions || { allow: [], ask: [], deny: [] };
46532
46536
  agent = { ...agent, permissions: { ...perms, allow: [...perms.allow || [], "*:*"] } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoforai/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "todoai": "dist/todoai.js"