abtars 0.1.0-alpha.18 → 0.1.0-alpha.19

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 (42) hide show
  1. package/bundle/abtars-cli.js +29 -1
  2. package/bundle/abtars-cli.js.map +2 -2
  3. package/bundle/abtars.js +17 -17
  4. package/bundle/agent-registry-VJMNIQ5W.js +19 -0
  5. package/bundle/agent-registry-VJMNIQ5W.js.map +7 -0
  6. package/bundle/chunk-2F6XKG7Y.js +414 -0
  7. package/bundle/chunk-2F6XKG7Y.js.map +7 -0
  8. package/bundle/chunk-FVQGP5YO.js +185 -0
  9. package/bundle/chunk-FVQGP5YO.js.map +7 -0
  10. package/bundle/chunk-HFNXPEBL.js +645 -0
  11. package/bundle/chunk-HFNXPEBL.js.map +7 -0
  12. package/bundle/chunk-LD5BMLHG.js +160 -0
  13. package/bundle/chunk-LD5BMLHG.js.map +7 -0
  14. package/bundle/chunk-MTTSX3AS.js +3707 -0
  15. package/bundle/chunk-MTTSX3AS.js.map +7 -0
  16. package/bundle/chunk-PF5UQ64X.js +224 -0
  17. package/bundle/chunk-PF5UQ64X.js.map +7 -0
  18. package/bundle/chunk-WX7GHGFX.js +15903 -0
  19. package/bundle/chunk-WX7GHGFX.js.map +7 -0
  20. package/bundle/commands-XFVQDUJL.js +32 -0
  21. package/bundle/commands-XFVQDUJL.js.map +7 -0
  22. package/bundle/config-C6VHRJQ7.js +20 -0
  23. package/bundle/config-C6VHRJQ7.js.map +7 -0
  24. package/bundle/daemon-3VQ7YYKG.js +289 -0
  25. package/bundle/daemon-3VQ7YYKG.js.map +7 -0
  26. package/bundle/discord-adapter-MIJAO7QB.js +585 -0
  27. package/bundle/discord-adapter-MIJAO7QB.js.map +7 -0
  28. package/bundle/message-pipeline-GPAGX4RS.js +34 -0
  29. package/bundle/message-pipeline-GPAGX4RS.js.map +7 -0
  30. package/bundle/meta.json +130 -120
  31. package/bundle/phase-transport-ICMXDO3D.js +23 -0
  32. package/bundle/phase-transport-ICMXDO3D.js.map +7 -0
  33. package/bundle/subagent-runtime-XS2ZXYOZ.js +13 -0
  34. package/bundle/subagent-runtime-XS2ZXYOZ.js.map +7 -0
  35. package/bundle/system-status-2CR5OUDY.js +190 -0
  36. package/bundle/system-status-2CR5OUDY.js.map +7 -0
  37. package/bundle/telegram-adapter-EI3TXGGO.js +1061 -0
  38. package/bundle/telegram-adapter-EI3TXGGO.js.map +7 -0
  39. package/bundle/transport-config-ANPS2RYT.js +58 -0
  40. package/bundle/transport-config-ANPS2RYT.js.map +7 -0
  41. package/package.json +1 -1
  42. package/scripts/abtars-daemon.service +1 -0
@@ -1654,6 +1654,34 @@ Use --source local (default) or --source npm.
1654
1654
  process.stdout.write(`
1655
1655
  Update complete: ${staged.version}
1656
1656
  `);
1657
+ const transportJson = join9(paths.home, "config", "transport.json");
1658
+ if (existsSync7(transportJson)) {
1659
+ try {
1660
+ const tc = JSON.parse(readFileSync4(transportJson, "utf-8"));
1661
+ let cleared = false;
1662
+ for (const agent of Object.values(tc.agents ?? {})) {
1663
+ if (agent.demoted) {
1664
+ delete agent.demoted;
1665
+ delete agent.demotedReason;
1666
+ delete agent.demotedModel;
1667
+ cleared = true;
1668
+ }
1669
+ for (const fb of agent.fallbacks ?? []) {
1670
+ if (fb.demoted) {
1671
+ delete fb.demoted;
1672
+ delete fb.demotedReason;
1673
+ delete fb.demotedModel;
1674
+ cleared = true;
1675
+ }
1676
+ }
1677
+ }
1678
+ if (cleared) {
1679
+ const { writeFileSync: wfs } = await import("node:fs");
1680
+ wfs(transportJson, JSON.stringify(tc, null, 2) + "\n");
1681
+ }
1682
+ } catch {
1683
+ }
1684
+ }
1657
1685
  const { loadManifest } = await import("./install-manifest-MCJCAYSR.js");
1658
1686
  const sourceRoot = staged.stagedPath;
1659
1687
  const installManifest = loadManifest(sourceRoot);
@@ -1929,7 +1957,7 @@ async function main(argv) {
1929
1957
  return await startCmd();
1930
1958
  }
1931
1959
  case "daemon": {
1932
- const { daemon: daemonCmd } = await import("./daemon-VIBI3SQQ.js");
1960
+ const { daemon: daemonCmd } = await import("./daemon-3VQ7YYKG.js");
1933
1961
  return await daemonCmd(argv.slice(1));
1934
1962
  }
1935
1963
  case "logs": {