@songsid/agend 2.0.11-beta.32 → 2.0.11-beta.34

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.
@@ -2108,21 +2108,6 @@ export class FleetManager {
2108
2108
  // ===================== Scheduler =====================
2109
2109
  async handleScheduleTrigger(schedule) {
2110
2110
  const { target, reply_chat_id, reply_thread_id, message, label, id, source } = schedule;
2111
- // Reserved auto-update schedule: run `agend update` instead of delivering a
2112
- // message to an instance. message === "beta" selects the beta channel.
2113
- if (target === "__fleet_update__") {
2114
- const cmd = message === "beta" ? "agend update --beta" : "agend update";
2115
- this.logger.info({ cmd, scheduleId: id }, "Auto-update schedule fired");
2116
- try {
2117
- const { spawn } = await import("node:child_process");
2118
- spawn("sh", ["-c", `sleep 1 && ${cmd}`], { detached: true, stdio: "ignore" }).unref();
2119
- this.scheduler?.recordRun(id, "delivered", `ran ${cmd}`);
2120
- }
2121
- catch (err) {
2122
- this.scheduler?.recordRun(id, "retry", `update spawn failed: ${err.message}`);
2123
- }
2124
- return;
2125
- }
2126
2111
  const RATE_LIMIT_DEFER_THRESHOLD = 85;
2127
2112
  const rl = this.statuslineWatcher.getRateLimits(target);
2128
2113
  if (rl && rl.five_hour_pct > RATE_LIMIT_DEFER_THRESHOLD) {
@@ -4092,7 +4077,9 @@ When users create specialized instances, suggest these configurations:
4092
4077
  if (target && this.semverGt(target, currentVersion)) {
4093
4078
  const generalId = this.findGeneralInstance();
4094
4079
  if (generalId) {
4095
- this.notifyInstanceTopic(generalId, t("update.available", `v${target}`) + ` (current: v${currentVersion})`);
4080
+ // Beta builds have no per-tag release page → link to the latest release.
4081
+ const releaseUrl = target.includes("-") ? "https://github.com/songsid/AgEnD/releases/latest" : `https://github.com/songsid/AgEnD/releases/tag/v${target}`;
4082
+ this.notifyInstanceTopic(generalId, t("update.available", `v${target}`) + ` (current: v${currentVersion})\nšŸ“„ ${releaseUrl}`);
4096
4083
  }
4097
4084
  }
4098
4085
  }
@@ -4256,6 +4243,7 @@ When users create specialized instances, suggest these configurations:
4256
4243
  res.writeHead(200);
4257
4244
  res.end(JSON.stringify({
4258
4245
  ...sysInfo,
4246
+ version: this.currentVersion,
4259
4247
  instances: enriched,
4260
4248
  }));
4261
4249
  return;