abtars 0.2.1-alpha.3 → 0.2.1-alpha.5

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 (77) hide show
  1. package/bundle/{_registry.generated-6GO2PAMD.js → _registry.generated-ADOYFJJ4.js} +5 -5
  2. package/bundle/abtars-cli.js +21 -27
  3. package/bundle/abtars-cli.js.map +3 -3
  4. package/bundle/abtars-restart.js +1 -1
  5. package/bundle/abtars-task.js +1 -1
  6. package/bundle/abtars-task.js.map +1 -1
  7. package/bundle/abtars.js +24 -18
  8. package/bundle/abtars.js.map +2 -2
  9. package/bundle/{browse-delivery-64GQIUHG.js → browse-delivery-VTLEAVYA.js} +4 -4
  10. package/bundle/{browser-5H2Q7GEC.js → browser-REIXOJ6S.js} +5 -5
  11. package/bundle/{chunk-XLLSPBBT.js → chunk-GPL57SRN.js} +2 -2
  12. package/bundle/chunk-GPL57SRN.js.map +7 -0
  13. package/bundle/{chunk-PQ62LZNA.js → chunk-HEHD3GG5.js} +2 -2
  14. package/bundle/{chunk-GZUQQWBZ.js → chunk-KJOCXWJ5.js} +3 -3
  15. package/bundle/chunk-KJOCXWJ5.js.map +7 -0
  16. package/bundle/{chunk-K7P74UNQ.js → chunk-LDKSCXGL.js} +3 -3
  17. package/bundle/{chunk-K7P74UNQ.js.map → chunk-LDKSCXGL.js.map} +2 -2
  18. package/bundle/{chunk-SMPIFP43.js → chunk-P2BZSLJJ.js} +4 -4
  19. package/bundle/{chunk-PPSB2ZIN.js → chunk-RJJWPMUZ.js} +15 -4
  20. package/bundle/chunk-RJJWPMUZ.js.map +7 -0
  21. package/bundle/{chunk-HXJRZWKA.js → chunk-RVERPUHT.js} +2 -3
  22. package/bundle/chunk-RVERPUHT.js.map +7 -0
  23. package/bundle/{chunk-XOCP5BMO.js → chunk-URAQLQ2U.js} +2 -2
  24. package/bundle/chunk-URAQLQ2U.js.map +7 -0
  25. package/bundle/{chunk-7STAQF5O.js → chunk-XZSYMCLF.js} +2 -2
  26. package/bundle/{chunk-7STAQF5O.js.map → chunk-XZSYMCLF.js.map} +2 -2
  27. package/bundle/{commands-E3Y4QUNF.js → commands-WUGPBPHI.js} +3 -3
  28. package/bundle/{deploy-lib-import-ODLDL2DB.js → deploy-lib-import-HCMZCKZD.js} +2 -2
  29. package/bundle/{discord-adapter-5DS7UTBE.js → discord-adapter-WA2MFRK3.js} +3 -3
  30. package/bundle/{install-RSLOS3Q5.js → install-GEXWJYJC.js} +3 -3
  31. package/bundle/{irc-adapter-RKRUSZXB.js → irc-adapter-AIEP6OX6.js} +6 -2
  32. package/bundle/irc-adapter-AIEP6OX6.js.map +7 -0
  33. package/bundle/{message-pipeline-U2CGLUNH.js → message-pipeline-2MBT44FO.js} +3 -3
  34. package/bundle/meta.json +168 -276
  35. package/bundle/{start-4IWBKLWO.js → start-CBVKNEAT.js} +1 -1
  36. package/bundle/{subagent-runtime-MDBO6LHS.js → subagent-runtime-4MTYUBIZ.js} +2 -2
  37. package/bundle/{system-status-WAY63BYC.js → system-status-GLYXXDE3.js} +2 -2
  38. package/bundle/{task-store-KIBFZL5A.js → task-store-LC7ZMS72.js} +2 -2
  39. package/bundle/{telegram-adapter-5SG4BFO6.js → telegram-adapter-BJJYXN7J.js} +3 -3
  40. package/install-manifest.json +1 -1
  41. package/package.json +1 -1
  42. package/scripts/abtars.sh +3 -5
  43. package/scripts/doctor.sh +36 -34
  44. package/scripts/watchdog.sh +2 -3
  45. package/bundle/chunk-GZUQQWBZ.js.map +0 -7
  46. package/bundle/chunk-HXJRZWKA.js.map +0 -7
  47. package/bundle/chunk-PPSB2ZIN.js.map +0 -7
  48. package/bundle/chunk-WUTCGJDZ.js +0 -3711
  49. package/bundle/chunk-WUTCGJDZ.js.map +0 -7
  50. package/bundle/chunk-XLLSPBBT.js.map +0 -7
  51. package/bundle/chunk-XOCP5BMO.js.map +0 -7
  52. package/bundle/commands-2JNT6SYN.js +0 -33
  53. package/bundle/discord-adapter-GWAFMN2H.js +0 -586
  54. package/bundle/discord-adapter-GWAFMN2H.js.map +0 -7
  55. package/bundle/irc-adapter-RKRUSZXB.js.map +0 -7
  56. package/bundle/message-pipeline-CFVO73CK.js +0 -35
  57. package/bundle/passwd-QSHZJ2CG.js +0 -134
  58. package/bundle/passwd-QSHZJ2CG.js.map +0 -7
  59. package/bundle/subagent-runtime-MDBO6LHS.js.map +0 -7
  60. package/bundle/task-store-KIBFZL5A.js.map +0 -7
  61. package/bundle/telegram-adapter-MVA33IO2.js +0 -1062
  62. package/bundle/telegram-adapter-MVA33IO2.js.map +0 -7
  63. /package/bundle/{_registry.generated-6GO2PAMD.js.map → _registry.generated-ADOYFJJ4.js.map} +0 -0
  64. /package/bundle/{browse-delivery-64GQIUHG.js.map → browse-delivery-VTLEAVYA.js.map} +0 -0
  65. /package/bundle/{browser-5H2Q7GEC.js.map → browser-REIXOJ6S.js.map} +0 -0
  66. /package/bundle/{chunk-PQ62LZNA.js.map → chunk-HEHD3GG5.js.map} +0 -0
  67. /package/bundle/{chunk-SMPIFP43.js.map → chunk-P2BZSLJJ.js.map} +0 -0
  68. /package/bundle/{commands-2JNT6SYN.js.map → commands-WUGPBPHI.js.map} +0 -0
  69. /package/bundle/{commands-E3Y4QUNF.js.map → deploy-lib-import-HCMZCKZD.js.map} +0 -0
  70. /package/bundle/{discord-adapter-5DS7UTBE.js.map → discord-adapter-WA2MFRK3.js.map} +0 -0
  71. /package/bundle/{deploy-lib-import-ODLDL2DB.js.map → install-GEXWJYJC.js.map} +0 -0
  72. /package/bundle/{install-RSLOS3Q5.js.map → message-pipeline-2MBT44FO.js.map} +0 -0
  73. /package/bundle/{start-4IWBKLWO.js.map → start-CBVKNEAT.js.map} +0 -0
  74. /package/bundle/{message-pipeline-CFVO73CK.js.map → subagent-runtime-4MTYUBIZ.js.map} +0 -0
  75. /package/bundle/{system-status-WAY63BYC.js.map → system-status-GLYXXDE3.js.map} +0 -0
  76. /package/bundle/{message-pipeline-U2CGLUNH.js.map → task-store-LC7ZMS72.js.map} +0 -0
  77. /package/bundle/{telegram-adapter-5SG4BFO6.js.map → telegram-adapter-BJJYXN7J.js.map} +0 -0
@@ -2,20 +2,20 @@
2
2
  import { createRequire as __bundleCreateRequire } from 'node:module'; import { fileURLToPath as __bundleFileURLToPath } from 'node:url'; import { dirname as __bundleDirname } from 'node:path'; const require = __bundleCreateRequire(import.meta.url); const __chunk_filename = __bundleFileURLToPath(import.meta.url); const __chunk_dirname = __bundleDirname(__chunk_filename);
3
3
  import {
4
4
  browser_exports
5
- } from "./chunk-GZUQQWBZ.js";
6
- import "./chunk-K7P74UNQ.js";
5
+ } from "./chunk-KJOCXWJ5.js";
6
+ import "./chunk-LDKSCXGL.js";
7
7
  import {
8
8
  hotskills_exports
9
9
  } from "./chunk-RE3F3CFW.js";
10
10
  import {
11
11
  sleep_exports
12
12
  } from "./chunk-KWBGYWDO.js";
13
- import "./chunk-PQ62LZNA.js";
13
+ import "./chunk-HEHD3GG5.js";
14
14
  import "./chunk-JAJ3DUQ2.js";
15
15
  import "./chunk-BYDUMHXT.js";
16
16
  import "./chunk-UDZIZB5F.js";
17
17
  import "./chunk-TBLYGCPQ.js";
18
- import "./chunk-XLLSPBBT.js";
18
+ import "./chunk-GPL57SRN.js";
19
19
  import "./chunk-MZWMYN4O.js";
20
20
  import "./chunk-KSEIWT4T.js";
21
21
  import "./chunk-EX2SRTUE.js";
@@ -33,4 +33,4 @@ var capabilities = [
33
33
  export {
34
34
  capabilities
35
35
  };
36
- //# sourceMappingURL=_registry.generated-6GO2PAMD.js.map
36
+ //# sourceMappingURL=_registry.generated-ADOYFJJ4.js.map
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __bundleCreateRequire } from 'node:module'; import { fileURLToPath as __bundleFileURLToPath } from 'node:url'; import { dirname as __bundleDirname } from 'node:path'; const require = __bundleCreateRequire(import.meta.url); const __chunk_filename = __bundleFileURLToPath(import.meta.url); const __chunk_dirname = __bundleDirname(__chunk_filename);
3
3
  import {
4
4
  install
5
- } from "./chunk-PPSB2ZIN.js";
5
+ } from "./chunk-RJJWPMUZ.js";
6
6
  import {
7
7
  RETENTION,
8
8
  acquireLock,
@@ -16,10 +16,10 @@ import {
16
16
  readManifest,
17
17
  releaseExists,
18
18
  writeManifest
19
- } from "./chunk-HXJRZWKA.js";
19
+ } from "./chunk-RVERPUHT.js";
20
20
  import {
21
21
  restart
22
- } from "./chunk-XOCP5BMO.js";
22
+ } from "./chunk-URAQLQ2U.js";
23
23
  import {
24
24
  init_log_and_swallow,
25
25
  logAndSwallow
@@ -488,7 +488,7 @@ async function runInteractive(existing) {
488
488
  const { intro, outro, text, select, confirm: confirm2, isCancel, cancel } = await import("./dist-J3T4XVKX.js");
489
489
  intro("abtars onboard \u2014 first-time setup");
490
490
  const noteEmpty = "press Enter to skip";
491
- const { packagePaths: pp, readManifest: rm3 } = await import("./deploy-lib-import-ODLDL2DB.js");
491
+ const { packagePaths: pp, readManifest: rm3 } = await import("./deploy-lib-import-HCMZCKZD.js");
492
492
  const mfPaths = pp("abtars");
493
493
  const mf = await rm3(mfPaths.manifest);
494
494
  const installMode = mf?.installMode ?? "supervised";
@@ -754,7 +754,7 @@ function validateNonInteractive(opts) {
754
754
  }
755
755
  return {
756
756
  installMode: "supervised",
757
- userName: "",
757
+ userName: opts.userName ?? "",
758
758
  passphrase: "",
759
759
  telegramToken: opts.telegramToken ?? "",
760
760
  telegramChatId: opts.telegramChatId ?? "",
@@ -819,7 +819,10 @@ function mergeEnvContent(existing, answers) {
819
819
  "WAKE_TIME",
820
820
  "HEARTBEAT_INTERVAL_SEC",
821
821
  "EMBEDDING_ENABLED",
822
- "TRUST_MODE"
822
+ "TRUST_MODE",
823
+ "TELEGRAM_ENABLED",
824
+ "DISCORD_ENABLED",
825
+ "IRC_ENABLED"
823
826
  ]);
824
827
  const keptLines = [];
825
828
  for (const line of existing.split("\n")) {
@@ -844,6 +847,9 @@ function mergeEnvContent(existing, answers) {
844
847
  newBlock.push(`EMBEDDING_ENABLED=${answers.embeddingEnabled ? "true" : "false"}`);
845
848
  newBlock.push(`SECURITY_MODE=${answers.securityMode}`);
846
849
  newBlock.push(`TRUST_MODE=${answers.trustMode ? "true" : "false"}`);
850
+ newBlock.push(`TELEGRAM_ENABLED=${answers.telegramToken ? "true" : "false"}`);
851
+ newBlock.push(`DISCORD_ENABLED=${answers.discordBotToken ? "true" : "false"}`);
852
+ newBlock.push(`IRC_ENABLED=false`);
847
853
  return [...keptLines, ...newBlock, ""].join("\n");
848
854
  }
849
855
  async function onboard(opts) {
@@ -918,7 +924,7 @@ async function onboard(opts) {
918
924
  }
919
925
  if (secrets.length > 0) process.stdout.write(`\u2713 ${secrets.length} secrets \u2192 ${secretDirPath}
920
926
  `);
921
- const { writeManifest: writeManifest2 } = await import("./deploy-lib-import-ODLDL2DB.js");
927
+ const { writeManifest: writeManifest2 } = await import("./deploy-lib-import-HCMZCKZD.js");
922
928
  const mf = await readManifest(paths.manifest);
923
929
  if (mf) await writeManifest2(paths.manifest, { ...mf, installMode: answers.installMode });
924
930
  process.stdout.write(`\u2713 install mode: ${answers.installMode}
@@ -1071,7 +1077,7 @@ Next: start the bridge
1071
1077
  }
1072
1078
  async function seedDefaultTasks(chatId, abtarsHome4) {
1073
1079
  const { existsSync: existsSync8 } = await import("node:fs");
1074
- const tasksJson = join6(abtarsHome4, "state", "tasks.json");
1080
+ const tasksJson = join6(abtarsHome4, "tasks", "tasks.json");
1075
1081
  if (existsSync8(tasksJson)) {
1076
1082
  process.stdout.write(`\u2022 tasks.json exists \u2014 skipping default-task seed
1077
1083
  `);
@@ -1301,7 +1307,7 @@ Re-run 'abtars update' or 'abtars rollback' to reconcile.
1301
1307
  init_log_and_swallow();
1302
1308
  import { hostname as hostname2 } from "node:os";
1303
1309
  import { join as join10, dirname as dirname3 } from "node:path";
1304
- import { readFileSync as readFileSync5, existsSync as existsSync7, mkdirSync as mkdirSync2 } from "node:fs";
1310
+ import { readFileSync as readFileSync5, existsSync as existsSync7 } from "node:fs";
1305
1311
  import { copyFile as copyFile2, mkdir as mkdir4, chmod, readdir, readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
1306
1312
 
1307
1313
  // src/cli/update-sources/local.ts
@@ -1512,10 +1518,6 @@ Use --source local (default) or --source npm.
1512
1518
  return 2;
1513
1519
  }
1514
1520
  const paths = packagePaths("abtars");
1515
- if (!existsSync7(paths.releases) && existsSync7(join10(paths.home, "current"))) {
1516
- process.stdout.write("Migrating old layout \u2192 releases/...\n");
1517
- mkdirSync2(paths.releases, { recursive: true });
1518
- }
1519
1521
  const release = await acquireLock(paths.lock, `update --source ${opts.source}`);
1520
1522
  try {
1521
1523
  let repoRoot = opts.repoRoot ?? process.cwd();
@@ -1666,10 +1668,9 @@ Update complete: ${staged.version}
1666
1668
  } catch {
1667
1669
  }
1668
1670
  }
1669
- const { loadManifest } = await import("./install-manifest-QRWID3KZ.js");
1670
- const sourceRoot = staged.stagedPath;
1671
- const installManifest = loadManifest(sourceRoot);
1672
- const repoScripts = join10(sourceRoot, "scripts");
1671
+ const installManifestPath = join10(repoRoot, "install-manifest.json");
1672
+ const installManifest = JSON.parse(await readFile3(installManifestPath, "utf-8"));
1673
+ const repoScripts = join10(repoRoot, "scripts");
1673
1674
  const destScripts = join10(paths.home, "scripts");
1674
1675
  await mkdir4(destScripts, { recursive: true });
1675
1676
  const allScriptFiles = await readdir(repoScripts).catch(() => []);
@@ -1688,10 +1689,6 @@ Update complete: ${staged.version}
1688
1689
  for (const name of scriptFiles) {
1689
1690
  await copyFile2(join10(repoScripts, name), join10(destScripts, name));
1690
1691
  if (isExecutable(name)) await chmod(join10(destScripts, name), 493);
1691
- if (isExecutable(name)) {
1692
- await copyFile2(join10(repoScripts, name), join10(paths.home, name));
1693
- await chmod(join10(paths.home, name), 493);
1694
- }
1695
1692
  const macService = installManifest.services.supervised.macos;
1696
1693
  if (macService && name === macService.plist && process.platform === "darwin" && home && installMode === "supervised") {
1697
1694
  const launchAgentsDir = join10(home, "Library", "LaunchAgents");
@@ -1716,7 +1713,7 @@ Update complete: ${staged.version}
1716
1713
  }
1717
1714
  process.stdout.write(`\u2713 scripts refreshed (${scriptFiles.length} files)
1718
1715
  `);
1719
- const { writeWrapper } = await import("./install-RSLOS3Q5.js");
1716
+ const { writeWrapper } = await import("./install-GEXWJYJC.js");
1720
1717
  await mkdir4(paths.bin, { recursive: true });
1721
1718
  for (const name of installManifest.cliWrappers) {
1722
1719
  await writeWrapper(paths.bin, name, paths.current, false);
@@ -1928,6 +1925,7 @@ async function main(argv) {
1928
1925
  defaultProvider: typeof flags.get("default-provider") === "string" ? flags.get("default-provider") : void 0,
1929
1926
  defaultModel: typeof flags.get("default-model") === "string" ? flags.get("default-model") : void 0,
1930
1927
  discordA2aChannel: typeof flags.get("discord-a2a-channel") === "string" ? flags.get("discord-a2a-channel") : void 0,
1928
+ userName: typeof flags.get("user-name") === "string" ? flags.get("user-name") : void 0,
1931
1929
  force: flags.get("force") === true
1932
1930
  });
1933
1931
  case "status":
@@ -1937,7 +1935,7 @@ async function main(argv) {
1937
1935
  case "stop":
1938
1936
  return await stop({ force: flags.get("force") === true });
1939
1937
  case "start": {
1940
- const { start: startCmd } = await import("./start-4IWBKLWO.js");
1938
+ const { start: startCmd } = await import("./start-CBVKNEAT.js");
1941
1939
  return await startCmd();
1942
1940
  }
1943
1941
  case "daemon": {
@@ -1956,10 +1954,6 @@ async function main(argv) {
1956
1954
  const { configShow } = await import("./config-show-ZTXX27FW.js");
1957
1955
  return await configShow();
1958
1956
  }
1959
- case "passwd": {
1960
- const { passwd } = await import("./passwd-QSHZJ2CG.js");
1961
- return await passwd();
1962
- }
1963
1957
  case "":
1964
1958
  case "help":
1965
1959
  case "--help":