open-agents-ai 0.21.2 → 0.22.0
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/dist/launcher.cjs +21 -0
- package/package.json +4 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Node version gate — uses only ES5 syntax so it parses on any Node version.
|
|
3
|
+
// Gives a clear error instead of a cryptic "SyntaxError: Unexpected token ??"
|
|
4
|
+
var nodeVersion = parseInt(process.versions.node, 10);
|
|
5
|
+
if (nodeVersion < 18) {
|
|
6
|
+
console.error(
|
|
7
|
+
"\n open-agents requires Node.js >= 18 (you have " + process.version + ")\n\n" +
|
|
8
|
+
" Install Node 20 via nvm:\n" +
|
|
9
|
+
" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash\n" +
|
|
10
|
+
" source ~/.bashrc\n" +
|
|
11
|
+
" nvm install 20\n" +
|
|
12
|
+
" nvm use 20\n" +
|
|
13
|
+
" npm i -g open-agents-ai\n"
|
|
14
|
+
);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
// Dynamic import works in Node 12+ and loads the ESM bundle
|
|
18
|
+
import("./index.js").catch(function(err) {
|
|
19
|
+
console.error("Failed to load open-agents:", err.message || err);
|
|
20
|
+
process.exit(1);
|
|
21
|
+
});
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"open-agents": "dist/
|
|
10
|
-
"oa": "dist/
|
|
9
|
+
"open-agents": "dist/launcher.cjs",
|
|
10
|
+
"oa": "dist/launcher.cjs"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/robit-man/open-agents/issues"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
|
-
"node": ">=
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"better-sqlite3": "^11.7.0",
|