staklink 0.4.8 → 0.4.10

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.
@@ -4347,8 +4347,28 @@ var Runner = class {
4347
4347
  return;
4348
4348
  }
4349
4349
  for (const process2 of restartableProcesses) {
4350
- const config = this.parseProcessConfig(process2);
4351
- await this.restartSingleProcess(config);
4350
+ const processConfig = this.parseProcessConfig(process2);
4351
+ await this.restartSingleProcess(processConfig);
4352
+ await new Promise((resolve) => setTimeout(resolve, 1e3));
4353
+ if (processConfig.postRunCommand) {
4354
+ this.log_cb(
4355
+ `\u{1F680} Running post-run command for ${processConfig.name}: ${processConfig.postRunCommand}`
4356
+ );
4357
+ try {
4358
+ await this.executeCommand(
4359
+ processConfig.postRunCommand,
4360
+ processConfig.cwd,
4361
+ `Post-run command for ${processConfig.name}`
4362
+ );
4363
+ this.log_cb(
4364
+ `\u2705 Post-run command completed for ${processConfig.name}`
4365
+ );
4366
+ } catch (error2) {
4367
+ log(
4368
+ `\u274C Post-run command failed for ${processConfig.name}: ${error2}`
4369
+ );
4370
+ }
4371
+ }
4352
4372
  }
4353
4373
  this.log_cb("\u2705 All configured processes restarted");
4354
4374
  } catch (error2) {
@@ -10967,7 +10987,7 @@ var glob = Object.assign(glob_, {
10967
10987
  glob.glob = glob;
10968
10988
 
10969
10989
  // src/proxy/version.ts
10970
- var VERSION = "0.4.8";
10990
+ var VERSION = "0.4.10";
10971
10991
 
10972
10992
  // src/deps.ts
10973
10993
  var import_child_process = require("child_process");
@@ -10976,7 +10996,7 @@ var import_fs3 = require("fs");
10976
10996
  var import_os = require("os");
10977
10997
  var import_path2 = require("path");
10978
10998
  var execAsync = (0, import_util2.promisify)(import_child_process.exec);
10979
- var GOOSE_VERSION = "1.22.0";
10999
+ var GOOSE_VERSION = "1.26.1";
10980
11000
  var SKILLS = [
10981
11001
  { name: "agent-browser", repo: "https://github.com/vercel-labs/agent-browser" },
10982
11002
  { name: "code-simplifier", repo: "https://github.com/getsentry/skills" },
@@ -11252,4 +11272,33 @@ program2.command("reload").description("Reload all PM2 apps (stops all except pr
11252
11272
  process.exit(1);
11253
11273
  }
11254
11274
  });
11255
- program2.parseAsync();
11275
+ program2.command("rebuild").description("Restart all configured processes (processes with RESTART=true)").action(async () => {
11276
+ try {
11277
+ const root = await workspaceRoot();
11278
+ const runner = new Runner(root, console.log);
11279
+ const proxyExists = await runner.doesProcessExist(STAKLINK_PROXY);
11280
+ if (!proxyExists) {
11281
+ console.error("\u274C Staklink server is not running");
11282
+ console.error("Run 'staklink start' first");
11283
+ process.exit(1);
11284
+ }
11285
+ console.log("Rebuilding configured processes...");
11286
+ const response = await fetch("http://localhost:15552/rebuild", {
11287
+ method: "POST"
11288
+ });
11289
+ if (!response.ok) {
11290
+ const errorData = await response.json().catch(() => ({}));
11291
+ throw new Error(
11292
+ errorData.error || `Failed to rebuild: ${response.statusText}`
11293
+ );
11294
+ }
11295
+ console.log("\u2705 Rebuild completed successfully");
11296
+ } catch (error2) {
11297
+ console.error("Failed to rebuild:", error2);
11298
+ process.exit(1);
11299
+ }
11300
+ });
11301
+ program2.parseAsync().catch((error2) => {
11302
+ console.error("Failed to parse command:", error2);
11303
+ process.exit(1);
11304
+ });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.4.8",
5
+ "version": "0.4.10",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {
@@ -119,7 +119,7 @@
119
119
  "@types/jsonwebtoken": "^9.0.10",
120
120
  "ai": "^6.0.26",
121
121
  "ai-sdk-provider-codex-cli": "^1.0.5",
122
- "ai-sdk-provider-goose": "^0.2.3",
122
+ "ai-sdk-provider-goose": "^0.2.4",
123
123
  "aieo": "^0.1.31",
124
124
  "async-mutex": "^0.5.0",
125
125
  "commander": "^14.0.1",