@todoforai/edge 0.13.7 → 0.13.9

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 +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -49616,15 +49616,24 @@ function execShellAsync(cmd, env, timeout) {
49616
49616
  async function scanCatalogTools() {
49617
49617
  const result = {};
49618
49618
  const env = buildEnvWithTools();
49619
+ const rawPath = process.env.PATH ?? process.env.Path ?? process.env.path ?? "";
49620
+ const pathDirs = rawPath.split(path3.delimiter).filter(Boolean);
49621
+ log2("scan", `platform=${os3.platform()} PATH dirs (${pathDirs.length}):`);
49622
+ for (const d of pathDirs)
49623
+ log2("scan", ` ${d}`);
49619
49624
  const entries = Object.entries(TOOL_CATALOG);
49620
49625
  const installed = [];
49626
+ const missing = [];
49621
49627
  for (const [name, entry] of entries) {
49622
49628
  if (!isToolInstalled(name)) {
49623
49629
  result[name] = { installed: false };
49630
+ missing.push(name);
49624
49631
  } else {
49625
49632
  installed.push([name, entry]);
49626
49633
  }
49627
49634
  }
49635
+ log2("scan", `installed: [${installed.map(([n]) => n).join(", ")}]`);
49636
+ log2("scan", `missing: [${missing.join(", ")}]`);
49628
49637
  await Promise.all(installed.map(async ([name, entry]) => {
49629
49638
  const state = { installed: true };
49630
49639
  if (entry.versionCmd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoforai/edge",
3
- "version": "0.13.7",
3
+ "version": "0.13.9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "todoforai-edge": "dist/index.js"