@mandors/cli 0.0.7 → 0.0.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.
Binary file
Binary file
Binary file
Binary file
@@ -57,28 +57,23 @@ async function install(options = {}) {
57
57
  */
58
58
  function useBundledBinary(platform, arch) {
59
59
  const filename = `mandor-${platform}-${arch}`;
60
- const bundledBinary = path.join(BUNDLE_DIR, filename, 'mandor');
60
+ const bundledBinary = path.join(BUNDLE_DIR, filename);
61
61
 
62
- console.log(`DEBUG: Checking bundled binary at: ${bundledBinary}`);
62
+ console.log(`DEBUG: Looking for binary for ${platform}-${arch}`);
63
63
  console.log(`DEBUG: BUNDLE_DIR: ${BUNDLE_DIR}`);
64
- console.log(`DEBUG: Bundle dir exists: ${fs.existsSync(BUNDLE_DIR)}`);
65
-
66
- if (fs.existsSync(BUNDLE_DIR)) {
67
- console.log(`DEBUG: Files in BUNDLE_DIR: ${fs.readdirSync(BUNDLE_DIR).join(', ')}`);
68
- const platformDir = path.join(BUNDLE_DIR, filename);
69
- if (fs.existsSync(platformDir)) {
70
- console.log(`DEBUG: Files in ${filename}: ${fs.readdirSync(platformDir).join(', ')}`);
71
- } else {
72
- console.log(`DEBUG: ${filename} directory does not exist`);
73
- }
74
- }
64
+ console.log(`DEBUG: Files in BUNDLE_DIR: ${fs.readdirSync(BUNDLE_DIR).join(', ')}`);
75
65
 
76
66
  if (!fs.existsSync(bundledBinary)) {
77
- console.log(`DEBUG: Bundled binary not found`);
67
+ console.log(`DEBUG: No bundled binary found at: ${bundledBinary}`);
68
+ return null;
69
+ }
70
+
71
+ if (!fs.statSync(bundledBinary).isFile()) {
72
+ console.log(`DEBUG: ${bundledBinary} is not a file`);
78
73
  return null;
79
74
  }
80
75
 
81
- console.log(`DEBUG: Found bundled binary`);
76
+ console.log(`DEBUG: Found bundled binary: ${bundledBinary}`);
82
77
 
83
78
  const cacheDir = path.join(os.homedir(), '.mandor', 'bin');
84
79
  if (!fs.existsSync(cacheDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandors/cli",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Event-based task manager CLI for AI agent workflows",
5
5
  "main": "npm/lib/index.js",
6
6
  "bin": {