@love-moon/conductor-cli 0.2.24 → 0.2.25
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/package.json +4 -4
- package/src/native-deps.js +15 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@love-moon/conductor-cli",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"gitCommitId": "
|
|
3
|
+
"version": "0.2.25",
|
|
4
|
+
"gitCommitId": "6d7b348",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"conductor": "bin/conductor.js"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"test": "node --test test/*.test.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@love-moon/ai-sdk": "0.2.
|
|
21
|
-
"@love-moon/conductor-sdk": "0.2.
|
|
20
|
+
"@love-moon/ai-sdk": "0.2.25",
|
|
21
|
+
"@love-moon/conductor-sdk": "0.2.25",
|
|
22
22
|
"dotenv": "^16.4.5",
|
|
23
23
|
"enquirer": "^2.4.1",
|
|
24
24
|
"js-yaml": "^4.1.1",
|
package/src/native-deps.js
CHANGED
|
@@ -48,6 +48,13 @@ function quoteForSingleQuotedShell(value) {
|
|
|
48
48
|
return String(value).replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export function shouldIgnoreNodePtyVerificationErrorMessage(message) {
|
|
52
|
+
const normalized = String(message || "")
|
|
53
|
+
.trim()
|
|
54
|
+
.toLowerCase();
|
|
55
|
+
return normalized === "read eio" || normalized.endsWith(": read eio");
|
|
56
|
+
}
|
|
57
|
+
|
|
51
58
|
export function normalizeBuiltDependencyList(value) {
|
|
52
59
|
if (Array.isArray(value)) {
|
|
53
60
|
return value
|
|
@@ -164,6 +171,7 @@ export function buildNodePtyVerificationScript() {
|
|
|
164
171
|
const fs = require('node:fs');
|
|
165
172
|
const path = require('node:path');
|
|
166
173
|
const { createRequire } = require('node:module');
|
|
174
|
+
const shouldIgnoreNodePtyVerificationErrorMessage = ${shouldIgnoreNodePtyVerificationErrorMessage.toString()};
|
|
167
175
|
|
|
168
176
|
const packageDir = process.argv[1];
|
|
169
177
|
if (!packageDir) {
|
|
@@ -226,7 +234,13 @@ const timer = setTimeout(() => {
|
|
|
226
234
|
}, 5000);
|
|
227
235
|
|
|
228
236
|
child.on('exit', (code) => finish(code, null));
|
|
229
|
-
child.on('error', (error) =>
|
|
237
|
+
child.on('error', (error) => {
|
|
238
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
239
|
+
if (shouldIgnoreNodePtyVerificationErrorMessage(message)) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
finish(null, error);
|
|
243
|
+
});
|
|
230
244
|
`;
|
|
231
245
|
}
|
|
232
246
|
|