metame-cli 1.4.27 → 1.4.28
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/README.md +4 -2
- package/index.js +4 -0
- package/package.json +1 -1
- package/scripts/daemon-claude-engine.js +3 -1
- package/scripts/daemon-task-scheduler.js +2 -1
- package/scripts/daemon.js +3 -0
package/README.md
CHANGED
|
@@ -32,7 +32,8 @@ irm https://raw.githubusercontent.com/Yaron9/MetaMe/main/install.ps1 | iex
|
|
|
32
32
|
|
|
33
33
|
**Already have Node.js ≥ 18 (any platform):**
|
|
34
34
|
```bash
|
|
35
|
-
npm install -g metame-cli
|
|
35
|
+
npm install -g metame-cli
|
|
36
|
+
metame
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
---
|
|
@@ -210,7 +211,8 @@ irm https://raw.githubusercontent.com/Yaron9/MetaMe/main/install.ps1 | iex
|
|
|
210
211
|
|
|
211
212
|
**Already have Node.js ≥ 18 (any platform):**
|
|
212
213
|
```bash
|
|
213
|
-
npm install -g metame-cli
|
|
214
|
+
npm install -g metame-cli
|
|
215
|
+
metame
|
|
214
216
|
```
|
|
215
217
|
|
|
216
218
|
**3 minutes to full setup:**
|
package/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Suppress Node.js experimental warnings (e.g. SQLite)
|
|
4
|
+
process.removeAllListeners('warning');
|
|
5
|
+
|
|
3
6
|
const fs = require('fs');
|
|
4
7
|
const path = require('path');
|
|
5
8
|
const os = require('os');
|
|
@@ -1574,6 +1577,7 @@ WantedBy=default.target
|
|
|
1574
1577
|
const bg = spawn(cmd, args, {
|
|
1575
1578
|
detached: true,
|
|
1576
1579
|
stdio: 'ignore',
|
|
1580
|
+
windowsHide: true,
|
|
1577
1581
|
env: { ...process.env, HOME: HOME_DIR, METAME_ROOT: __dirname },
|
|
1578
1582
|
});
|
|
1579
1583
|
bg.unref();
|
package/package.json
CHANGED
|
@@ -242,6 +242,7 @@ Reply with ONLY the name, nothing else. Examples: 插件开发, API重构, Bug
|
|
|
242
242
|
const child = spawn(CLAUDE_BIN, args, {
|
|
243
243
|
cwd,
|
|
244
244
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
245
|
+
shell: process.platform === 'win32',
|
|
245
246
|
env: {
|
|
246
247
|
...process.env,
|
|
247
248
|
...getActiveProviderEnv(),
|
|
@@ -320,7 +321,8 @@ Reply with ONLY the name, nothing else. Examples: 插件开发, API重构, Bug
|
|
|
320
321
|
const child = spawn(CLAUDE_BIN, streamArgs, {
|
|
321
322
|
cwd,
|
|
322
323
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
323
|
-
|
|
324
|
+
shell: process.platform === 'win32',
|
|
325
|
+
detached: process.platform !== 'win32', // process groups are POSIX-only
|
|
324
326
|
env: {
|
|
325
327
|
...process.env,
|
|
326
328
|
...getActiveProviderEnv(),
|
|
@@ -403,7 +403,8 @@ function createTaskScheduler(deps) {
|
|
|
403
403
|
const child = spawn(CLAUDE_BIN, asyncArgs, {
|
|
404
404
|
cwd: cwd || undefined,
|
|
405
405
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
406
|
-
|
|
406
|
+
shell: process.platform === 'win32',
|
|
407
|
+
detached: process.platform !== 'win32', // process groups are POSIX-only
|
|
407
408
|
env: asyncEnv,
|
|
408
409
|
});
|
|
409
410
|
|