@simonfestl/husky-cli 1.35.0 → 1.36.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.
@@ -229,7 +229,7 @@ supervisorCommand
229
229
  const tasksRes = await fetch(`${config.apiUrl}/api/tasks?status=backlog&assignee=llm&limit=10`, {
230
230
  headers: config.apiKey ? { "x-api-key": config.apiKey } : {},
231
231
  });
232
- // Get VM status
232
+ // Get VM status (read-only)
233
233
  const vmCommand = "gcloud compute instances list --filter='name~husky-' --format='json(name,status,zone,machineType)'";
234
234
  const { stdout: vmOutput } = await execAsync(vmCommand);
235
235
  const vms = JSON.parse(vmOutput || "[]");
@@ -283,20 +283,14 @@ supervisorCommand
283
283
  console.log(` Online: ${onlineAgents.length}, Busy: ${busyAgents.length}, Offline: ${offlineAgents.length}`);
284
284
  // Next actions
285
285
  console.log("\nšŸŽÆ Suggested Actions:");
286
- if (backlogTasks.length > 0 && runningWorkers.length === 0) {
287
- console.log(" • Start worker VM(s) to handle task backlog");
288
- }
289
- if (terminatedWorkers.length > 0 && backlogTasks.length > 0) {
290
- console.log(" • Resume terminated worker VMs");
291
- }
292
286
  if (backlogTasks.length > 0) {
293
- console.log(" • Assign tasks to available workers");
287
+ console.log(" • Create tasks only; autoscaling will provision workers");
294
288
  }
295
289
  if (offlineAgents.length > 0) {
296
290
  console.log(" • Check on offline agents");
297
291
  }
298
292
  if (backlogTasks.length === 0 && runningWorkers.length > 0) {
299
- console.log(" • Suspend idle worker VMs to save costs");
293
+ console.log(" • Autoscaling will handle idle workers");
300
294
  }
301
295
  console.log("\nQuick commands:");
302
296
  console.log(" husky supervisor start - Start supervisor");
@@ -335,16 +329,7 @@ supervisorCommand
335
329
  const tasks = tasksData.tasks || [];
336
330
  if (tasks.length > 0) {
337
331
  console.log(` Found ${tasks.length} tasks in backlog`);
338
- // Step 2: Check available worker VMs
339
- const { stdout: vmOutput } = await execAsync("gcloud compute instances list --filter='name~husky-worker' --format='json(name,status,zone)'");
340
- const vms = JSON.parse(vmOutput || "[]");
341
- const runningWorkers = vms.filter((vm) => vm.name.includes("worker") && vm.status === "RUNNING");
342
- if (runningWorkers.length === 0) {
343
- console.log(" No worker VMs running, starting one...");
344
- // This would need to be implemented based on your GCP setup
345
- console.log(" TODO: Implement VM startup logic");
346
- }
347
- // Step 3: Assign tasks to workers
332
+ console.log(" Autoscaling will provision workers via API");
348
333
  tasks.forEach((task) => {
349
334
  console.log(` Task ${task.id}: ${task.title}`);
350
335
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonfestl/husky-cli",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "CLI for Huskyv0 Task Orchestration with Claude Agent SDK",
5
5
  "type": "module",
6
6
  "bin": {