gm-qwen 2.0.724 → 2.0.726
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/plugkit.js +3 -3
- package/gm.json +1 -1
- package/package.json +1 -1
package/bin/plugkit.js
CHANGED
|
@@ -14,6 +14,8 @@ async function resolveBinary() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
async function main() {
|
|
17
|
+
const args = process.argv.slice(2);
|
|
18
|
+
const isHook = args[0] === 'hook';
|
|
17
19
|
let bin;
|
|
18
20
|
try {
|
|
19
21
|
bin = await resolveBinary();
|
|
@@ -21,12 +23,10 @@ async function main() {
|
|
|
21
23
|
process.stderr.write(`[plugkit] bootstrap failed: ${err.message}\n`);
|
|
22
24
|
const legacy = legacyFallback();
|
|
23
25
|
if (legacy) { bin = legacy; }
|
|
26
|
+
else if (isHook) { process.exit(0); }
|
|
24
27
|
else process.exit(1);
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
const args = process.argv.slice(2);
|
|
28
|
-
const isHook = args[0] === 'hook';
|
|
29
|
-
|
|
30
30
|
if (isHook && !process.stdin.isTTY) {
|
|
31
31
|
const chunks = [];
|
|
32
32
|
process.stdin.on('data', c => chunks.push(c));
|
package/gm.json
CHANGED