@todoforai/cli 0.1.12 → 0.1.14

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