open-agents-ai 0.187.267 → 0.187.268
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 +12 -7
- package/package.json +1 -1
package/dist/launcher.cjs
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Minimal launcher shim for open-agents CLI — forwards to bundled index.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
// Use dynamic import() so ESM with top-level await can load correctly.
|
|
4
|
+
(async () => {
|
|
5
|
+
try {
|
|
6
|
+
const { resolve } = require('node:path');
|
|
7
|
+
const { pathToFileURL } = require('node:url');
|
|
8
|
+
const entryUrl = pathToFileURL(resolve(__dirname, 'index.js')).href;
|
|
9
|
+
await import(entryUrl);
|
|
10
|
+
} catch (e) {
|
|
11
|
+
console.error('Failed to launch open-agents:', e && e.message ? e.message : e);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
})();
|
package/package.json
CHANGED