@staff0rd/assist 0.304.0 → 0.305.0

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.304.0",
9
+ version: "0.305.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -20883,6 +20883,22 @@ function syncCommands(claudeDir, targetBase) {
20883
20883
  // src/commands/update.ts
20884
20884
  import { execSync as execSync49 } from "child_process";
20885
20885
  import * as path57 from "path";
20886
+
20887
+ // src/commands/restartDaemonAfterUpdate.ts
20888
+ async function restartDaemonAfterUpdate() {
20889
+ if (!await isDaemonRunning()) return;
20890
+ console.log("Restarting sessions daemon to load the new build...");
20891
+ try {
20892
+ await restartDaemon();
20893
+ } catch (error) {
20894
+ console.error(
20895
+ `Failed to restart sessions daemon: ${error instanceof Error ? error.message : String(error)}`
20896
+ );
20897
+ process.exit(1);
20898
+ }
20899
+ }
20900
+
20901
+ // src/commands/update.ts
20886
20902
  function isGlobalNpmInstall(dir) {
20887
20903
  try {
20888
20904
  const resolved = path57.resolve(dir);
@@ -20918,6 +20934,7 @@ async function update2() {
20918
20934
  );
20919
20935
  process.exit(1);
20920
20936
  }
20937
+ await restartDaemonAfterUpdate();
20921
20938
  }
20922
20939
 
20923
20940
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.304.0",
3
+ "version": "0.305.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {