@zhongqian97-code/ecode 0.1.0 → 0.1.1
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.cjs +24 -0
- package/package.json +3 -2
package/bin.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// Must run as CJS so this synchronous code executes BEFORE any ESM module loads.
|
|
5
|
+
// ESM static imports are resolved during the module linking phase, before any
|
|
6
|
+
// module body code (including tsup banner) runs. A CJS preloader is the only way
|
|
7
|
+
// to patch globals in time.
|
|
8
|
+
|
|
9
|
+
// Fix: ENOENT uv_cwd crash when process CWD has been deleted
|
|
10
|
+
const _rc = process.cwd.bind(process);
|
|
11
|
+
process.cwd = function () { try { return _rc(); } catch { return '/'; } };
|
|
12
|
+
|
|
13
|
+
// Suppress DEP0040 punycode deprecation from openai's transitive deps
|
|
14
|
+
const _ew = process.emitWarning.bind(process);
|
|
15
|
+
process.emitWarning = function (w, ...a) {
|
|
16
|
+
if ((w?.message ?? w)?.includes?.('punycode')) return;
|
|
17
|
+
_ew(w, ...a);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const path = require('path');
|
|
21
|
+
import(path.join(__dirname, 'dist/index.js')).catch(function (err) {
|
|
22
|
+
process.stderr.write(String(err) + '\n');
|
|
23
|
+
process.exit(1);
|
|
24
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhongqian97-code/ecode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A minimal Claude Code clone with REPL interface and bash tool calling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "zhongqian97-code",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"url": "https://github.com/zhongqian97-code/ecode/issues"
|
|
25
25
|
},
|
|
26
26
|
"bin": {
|
|
27
|
-
"ecode": "
|
|
27
|
+
"ecode": "bin.cjs"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
+
"bin.cjs",
|
|
30
31
|
"dist",
|
|
31
32
|
"skills",
|
|
32
33
|
"README.md",
|