dodo-ai 0.1.7 → 0.1.12
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 +3 -4
- package/dist/{index.mjs → index.js} +2 -4
- package/package.json +3 -2
- package/scripts/install-engine.js +10 -13
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,15 +21,14 @@ 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
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
// 2. Start the UI (which is now compiled into ../dist/index.
|
|
32
|
-
import('../dist/index.
|
|
30
|
+
// 2. Start the UI (which is now compiled into ../dist/index.js)
|
|
31
|
+
import('../dist/index.js').catch(err => {
|
|
33
32
|
console.error('Failed to start Dodo UI:', err);
|
|
34
33
|
console.error('Debug Info:');
|
|
35
34
|
console.error('__dirname:', __dirname);
|
|
@@ -1218,10 +1218,8 @@ import { Box as Box15, Text as Text16, useApp as useApp3, useInput as useInput2
|
|
|
1218
1218
|
|
|
1219
1219
|
// src/components/layout/Header.tsx
|
|
1220
1220
|
import { Box, Text } from "ink";
|
|
1221
|
-
import { createRequire } from "module";
|
|
1222
1221
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
1223
|
-
var
|
|
1224
|
-
var pkg = require2("../../../package.json");
|
|
1222
|
+
var version = "0.1.12";
|
|
1225
1223
|
var Header = () => {
|
|
1226
1224
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", paddingX: 1, marginBottom: 1, children: [
|
|
1227
1225
|
/* @__PURE__ */ jsx2(Box, { flexDirection: "row", alignItems: "center", children: /* @__PURE__ */ jsx2(Box, { paddingY: 1, marginRight: 4, children: /* @__PURE__ */ jsx2(Text, { color: "cyan", bold: true, children: `
|
|
@@ -1232,7 +1230,7 @@ var Header = () => {
|
|
|
1232
1230
|
\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588
|
|
1233
1231
|
\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588
|
|
1234
1232
|
\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591
|
|
1235
|
-
\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 v${
|
|
1233
|
+
\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 v${version}
|
|
1236
1234
|
` }) }) }),
|
|
1237
1235
|
/* @__PURE__ */ jsx2(Text, { color: "yellow", italic: true, children: "The Agentic AI Coding Assistant" })
|
|
1238
1236
|
] });
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dodo-ai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
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"
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"postinstall": "node ./scripts/install-engine.js",
|
|
29
|
-
"build": "tsup
|
|
30
|
+
"build": "tsup",
|
|
30
31
|
"prepublishOnly": "npm run build"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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';
|