@caelis/caelis 0.55.1 → 0.55.3

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.
@@ -124,24 +124,11 @@ function validateHandoffPlan(plan) {
124
124
  plan.command.some((value) => typeof value !== 'string' || value.length === 0)) {
125
125
  throw new Error('invalid npm update command');
126
126
  }
127
- if (!plan.latest_version || !plan.executable || !plan.store_dir) {
127
+ if (!plan.latest_version || !plan.executable) {
128
128
  throw new Error('incomplete npm update handoff plan');
129
129
  }
130
130
  }
131
131
 
132
- async function defaultActivateCaelis(executable, storeDir, signalCoordinator) {
133
- const result = await runCapturedProcess(
134
- executable,
135
- ['service', 'start', '--store-dir', storeDir, '--format', 'json'],
136
- { windowsHide: true },
137
- signalCoordinator,
138
- );
139
- if (result.signal || result.code !== 0) {
140
- const detail = String(result.stderr || result.stdout || '').trim();
141
- throw new Error(`updated Caelis did not activate${detail ? `: ${detail}` : ''}`);
142
- }
143
- }
144
-
145
132
  function validateHandoffOwnership(ownership) {
146
133
  if (!ownership || ownership.version !== 1) {
147
134
  throw new Error('invalid npm update handoff ownership version');
@@ -261,8 +248,6 @@ async function executeHandoffPlan(plan, options = {}) {
261
248
  ((handoffPlan) => defaultRunInstall(handoffPlan, signalCoordinator));
262
249
  const verifyVersion = options.verifyVersion ||
263
250
  ((executable) => defaultVerifyVersion(executable, signalCoordinator));
264
- const activateCaelis = options.activateCaelis ||
265
- ((executable, storeDir) => defaultActivateCaelis(executable, storeDir, signalCoordinator));
266
251
  let phase = 'install';
267
252
 
268
253
  try {
@@ -284,21 +269,19 @@ async function executeHandoffPlan(plan, options = {}) {
284
269
  }
285
270
  status.succeed(`Verified Caelis ${plan.latest_version}`);
286
271
 
287
- phase = 'activate';
288
- status.start('Activating updated Caelis…');
289
- await activateCaelis(plan.executable, plan.store_dir);
290
- status.succeed(`Activated Caelis ${plan.latest_version}`);
291
272
  stdout.write(
292
273
  // Keep this completion contract aligned with formatUpdateResult in
293
- // internal/cli/update.go; Go is silent while a handoff is active.
294
- `Caelis ${plan.latest_version} is ready ` +
295
- `(updated from ${plan.current_version || 'unknown'} via npm).\n`,
274
+ // internal/cli/update.go; Go is silent while a handoff is active. The
275
+ // installer only replaces the artifact, so the running Host is upgraded
276
+ // on the next Caelis start instead of being restarted here.
277
+ `Caelis ${plan.latest_version} is installed ` +
278
+ `(updated from ${plan.current_version || 'unknown'} via npm); ` +
279
+ `it takes effect on the next start.\n`,
296
280
  );
297
281
  return 0;
298
282
  } catch (err) {
299
283
  status.fail(
300
- phase === 'install' ? 'npm install failed' :
301
- phase === 'verify' ? 'Version verification failed' : 'Caelis activation failed',
284
+ phase === 'install' ? 'npm install failed' : 'Version verification failed',
302
285
  );
303
286
  throw err;
304
287
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caelis/caelis",
3
- "version": "0.55.1",
3
+ "version": "0.55.3",
4
4
  "description": "caelis CLI distributed via npm",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -37,12 +37,12 @@
37
37
  "publish-release": "node ./scripts/publish-release.mjs"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@caelis/caelis-darwin-arm64": "0.55.1",
41
- "@caelis/caelis-darwin-x64": "0.55.1",
42
- "@caelis/caelis-linux-arm64": "0.55.1",
43
- "@caelis/caelis-linux-x64": "0.55.1",
44
- "@caelis/caelis-windows-arm64": "0.55.1",
45
- "@caelis/caelis-windows-x64": "0.55.1"
40
+ "@caelis/caelis-darwin-arm64": "0.55.3",
41
+ "@caelis/caelis-darwin-x64": "0.55.3",
42
+ "@caelis/caelis-linux-arm64": "0.55.3",
43
+ "@caelis/caelis-linux-x64": "0.55.3",
44
+ "@caelis/caelis-windows-arm64": "0.55.3",
45
+ "@caelis/caelis-windows-x64": "0.55.3"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",