dodo-ai 0.1.7 → 0.1.11

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/bin/dodo.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { spawn } from 'child_process';
3
+ import { spawn, execSync } from 'child_process';
4
4
  import path from 'path';
5
5
  import os from 'os';
6
6
  import fs from 'fs';
@@ -21,7 +21,6 @@ if (!fs.existsSync(binaryPath)) {
21
21
  console.error('dodo-engine not found. Running installer...');
22
22
  try {
23
23
  const installScript = path.join(__dirname, '../scripts/install-engine.js');
24
- const { execSync } = require('child_process');
25
24
  execSync(`node "${installScript}"`, { stdio: 'inherit' });
26
25
  } catch (e) {
27
26
  // Ignore if failing, UI might handle it or just fail later
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "dodo-ai",
3
- "version": "0.1.7",
3
+ "version": "0.1.11",
4
4
  "description": "An open-source AI coding agent built in Go",
5
5
  "author": "Chams Bouzaiene",
6
6
  "license": "MIT",
7
+ "type": "module",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "git+https://github.com/ChamsBouzaiene/dodo.git"
@@ -1,18 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const https = require('https');
4
- const fs = require('fs');
5
- const path = require('path');
6
- const { execSync } = require('child_process');
7
- const os = require('os');
8
- // Dependencies that might not be installed yet during CI bootstrap
9
- let tar, AdmZip;
10
- try {
11
- tar = require('tar');
12
- AdmZip = require('adm-zip');
13
- } catch (e) {
14
- // Graceful fallback or ignore if just bootstrapping
15
- }
3
+ import https from 'https';
4
+ import fs from 'fs';
5
+ import path from 'path';
6
+ import { execSync } from 'child_process';
7
+ import os from 'os';
8
+ import { createRequire } from 'module';
9
+
10
+ const require = createRequire(import.meta.url);
11
+
12
+
16
13
 
17
14
  const REPO_OWNER = 'ChamsBouzaiene';
18
15
  const REPO_NAME = 'dodo';
File without changes