rol-websocket-channel 1.6.0 → 1.6.2
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.
|
@@ -8,7 +8,7 @@ const execAsync = promisify(exec);
|
|
|
8
8
|
const execFileAsync = promisify(execFile);
|
|
9
9
|
const UPDATE_COMMAND_TIMEOUT_MS = 10 * 60 * 1000;
|
|
10
10
|
const UPDATE_COMMAND_MAX_BUFFER = 10 * 1024 * 1024;
|
|
11
|
-
const OPENCLAW_UPDATE_TARGET_PACKAGE = '
|
|
11
|
+
const OPENCLAW_UPDATE_TARGET_PACKAGE = 'openclaw';
|
|
12
12
|
const OPENCLAW_UPDATE_TARGET_VERSION = '2026.5.6';
|
|
13
13
|
const CHANNEL_FALLBACK_VERSION = '1.5.9';
|
|
14
14
|
export const ping = async () => {
|
|
@@ -76,8 +76,7 @@ export const doctorFix = async (_params, context) => {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
export const openclawUpdate = async (_params, context) => {
|
|
79
|
-
const
|
|
80
|
-
const installResult = await runSystemCommand(process.env.NPM_BIN || 'npm', ['install', '-g', packageSpec], context.openclawRoot, context, 'openclawUpdate.installCore');
|
|
79
|
+
const updateResult = await runOpenClawCommand(['update', '--tag', OPENCLAW_UPDATE_TARGET_VERSION], context, 'openclawUpdate.update');
|
|
81
80
|
const versionResult = await runOpenClawCommand(['--version'], context, 'openclawUpdate.version');
|
|
82
81
|
const doctorResult = await runOpenClawCommand(['doctor', '--deep'], context, 'openclawUpdate.doctorDeep');
|
|
83
82
|
return {
|
|
@@ -87,7 +86,7 @@ export const openclawUpdate = async (_params, context) => {
|
|
|
87
86
|
targetVersion: OPENCLAW_UPDATE_TARGET_VERSION,
|
|
88
87
|
restartRecommended: true,
|
|
89
88
|
steps: [
|
|
90
|
-
buildCommandStep('
|
|
89
|
+
buildCommandStep('update', updateResult),
|
|
91
90
|
buildCommandStep('version', versionResult),
|
|
92
91
|
buildCommandStep('doctorDeep', doctorResult)
|
|
93
92
|
]
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const execAsync = promisify(exec);
|
|
|
10
10
|
const execFileAsync = promisify(execFile);
|
|
11
11
|
const UPDATE_COMMAND_TIMEOUT_MS = 10 * 60 * 1000;
|
|
12
12
|
const UPDATE_COMMAND_MAX_BUFFER = 10 * 1024 * 1024;
|
|
13
|
-
const OPENCLAW_UPDATE_TARGET_PACKAGE = '
|
|
13
|
+
const OPENCLAW_UPDATE_TARGET_PACKAGE = 'openclaw';
|
|
14
14
|
const OPENCLAW_UPDATE_TARGET_VERSION = '2026.5.6';
|
|
15
15
|
const CHANNEL_FALLBACK_VERSION = '1.5.9';
|
|
16
16
|
|
|
@@ -83,13 +83,10 @@ export const doctorFix: MethodHandler = async (_params, context: MethodContext):
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
export const openclawUpdate: MethodHandler = async (_params, context: MethodContext): Promise<JsonValue> => {
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
process.env.NPM_BIN || 'npm',
|
|
89
|
-
['install', '-g', packageSpec],
|
|
90
|
-
context.openclawRoot,
|
|
86
|
+
const updateResult = await runOpenClawCommand(
|
|
87
|
+
['update', '--tag', OPENCLAW_UPDATE_TARGET_VERSION],
|
|
91
88
|
context,
|
|
92
|
-
'openclawUpdate.
|
|
89
|
+
'openclawUpdate.update'
|
|
93
90
|
);
|
|
94
91
|
const versionResult = await runOpenClawCommand(['--version'], context, 'openclawUpdate.version');
|
|
95
92
|
const doctorResult = await runOpenClawCommand(['doctor', '--deep'], context, 'openclawUpdate.doctorDeep');
|
|
@@ -101,7 +98,7 @@ export const openclawUpdate: MethodHandler = async (_params, context: MethodCont
|
|
|
101
98
|
targetVersion: OPENCLAW_UPDATE_TARGET_VERSION,
|
|
102
99
|
restartRecommended: true,
|
|
103
100
|
steps: [
|
|
104
|
-
buildCommandStep('
|
|
101
|
+
buildCommandStep('update', updateResult),
|
|
105
102
|
buildCommandStep('version', versionResult),
|
|
106
103
|
buildCommandStep('doctorDeep', doctorResult)
|
|
107
104
|
]
|