@geekbeer/minion 2.68.4 → 2.68.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.68.4",
3
+ "version": "2.68.6",
4
4
  "description": "AI Agent runtime for Minion - manages status and skill deployment on VPS",
5
5
  "main": "linux/server.js",
6
6
  "bin": {
@@ -218,32 +218,26 @@ function buildAllowedCommands(procMgr, agentConfig = {}) {
218
218
 
219
219
  commands['restart-agent'] = {
220
220
  description: 'Restart the minion agent process',
221
- spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File',
222
- buildRestartScript(stopBlock, startBlock, agentPort, apiToken)]],
221
+ spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
222
+ `& '${buildRestartScript(stopBlock, startBlock, agentPort, apiToken)}'`]],
223
223
  deferred: true,
224
224
  }
225
225
  commands['update-agent'] = {
226
226
  description: 'Update @geekbeer/minion to latest version and restart',
227
- spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', buildUpdateScript(
228
- 'npm install -g @geekbeer/minion@latest',
229
- stopBlock,
230
- startBlock,
231
- 'update-agent',
232
- agentPort,
233
- apiToken,
234
- )]],
227
+ spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
228
+ `& '${buildUpdateScript(
229
+ 'npm install -g @geekbeer/minion@latest',
230
+ stopBlock, startBlock, 'update-agent', agentPort, apiToken,
231
+ )}'`]],
235
232
  deferred: true,
236
233
  }
237
234
  commands['update-agent-dev'] = {
238
235
  description: 'Update @geekbeer/minion from Verdaccio (dev) and restart',
239
- spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', buildUpdateScript(
240
- 'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
241
- stopBlock,
242
- startBlock,
243
- 'update-agent-dev',
244
- agentPort,
245
- apiToken,
246
- )]],
236
+ spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
237
+ `& '${buildUpdateScript(
238
+ 'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
239
+ stopBlock, startBlock, 'update-agent-dev', agentPort, apiToken,
240
+ )}'`]],
247
241
  deferred: true,
248
242
  }
249
243
  commands['status-services'] = {