@walkhi/code-relax 0.1.0-beta.36 → 0.1.0-beta.38
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.
|
@@ -77,7 +77,7 @@ async function main() {
|
|
|
77
77
|
const powerCommand = command === 'keep-awake';
|
|
78
78
|
if (powerCommand && !(options.length === 0 || options.length === 1 && ['on', 'off'].includes(options[0]))) throw new Error('用法:relax keep-awake [on|off]');
|
|
79
79
|
if (!['keep-awake', 'kernel-restart', 'desktop-recover', 'setup', 'doctor', 'diag', 'uninstall', 'start', 'pair', 'pair-list', 'pair-revoke', 'devices', 'device-revoke', 'dots-tasks', 'desktop-helper-install', 'desktop-helper-status', 'desktop-helper-remove'].includes(command)
|
|
80
|
-
|| (!powerCommand && !longPair && !revokeInvite && !revokeDevice && (['pair-revoke', 'device-revoke'].includes(command) || options.some(flag => !((['kernel-restart', 'desktop-recover'].includes(command) && flag === '--confirm') || (command === 'setup' &&
|
|
80
|
+
|| (!powerCommand && !longPair && !revokeInvite && !revokeDevice && (['pair-revoke', 'device-revoke'].includes(command) || options.some(flag => !((['kernel-restart', 'desktop-recover'].includes(command) && flag === '--confirm') || (command === 'setup' && ['--desktop-helper', '--preserve-codex'].includes(flag))))))) {
|
|
81
81
|
throw new Error('无效命令或参数。使用 --help 查看用法。');
|
|
82
82
|
}
|
|
83
83
|
const inviteExpires = longPair ? Date.parse(options[1]) : undefined;
|
package/dist/build-platform.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"layout":"npm-platform-packages","version":"0.1.0-beta.
|
|
1
|
+
{"layout":"npm-platform-packages","version":"0.1.0-beta.38"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkhi/code-relax",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.38",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"tag": "beta"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@walkhi/code-relax-native-win32-x64": "0.1.0-beta.
|
|
45
|
-
"@walkhi/code-relax-native-darwin-arm64": "0.1.0-beta.
|
|
46
|
-
"@walkhi/code-relax-native-darwin-x64": "0.1.0-beta.
|
|
44
|
+
"@walkhi/code-relax-native-win32-x64": "0.1.0-beta.38",
|
|
45
|
+
"@walkhi/code-relax-native-darwin-arm64": "0.1.0-beta.38",
|
|
46
|
+
"@walkhi/code-relax-native-darwin-x64": "0.1.0-beta.38"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/tools/postinstall.mjs
CHANGED
|
@@ -151,7 +151,7 @@ if (invokedDirectly && process.env.npm_config_global === 'true') {
|
|
|
151
151
|
const { prepareNativePackage } = await import('../dist/src/platform/native-package.mjs');
|
|
152
152
|
prepareNativePackage(fileURLToPath(new URL('../', import.meta.url)));
|
|
153
153
|
setupStarted = true;
|
|
154
|
-
runStage(entry, 'setup', ['setup', '--json'
|
|
154
|
+
runStage(entry, 'setup', ['setup', '--json'], output => formatSetupOutput(output));
|
|
155
155
|
try { runStage(entry, 'doctor', ['doctor']); }
|
|
156
156
|
catch (error) {
|
|
157
157
|
console.error('服务安装已完成,但安装后健康检查未通过;请查看上方诊断与安装日志。');
|