@michael-joseph-miller/ant-bot 0.1.0 → 0.1.2

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 (43) hide show
  1. package/CHANGELOG.md +42 -5
  2. package/README.md +69 -24
  3. package/dist/{browser-OHRD7YI3.js → browser-4ZHHBD6J.js} +132 -4
  4. package/dist/browser-4ZHHBD6J.js.map +7 -0
  5. package/dist/{bundled-46DUK5PG.js → bundled-26SJR7EB.js} +5 -5
  6. package/dist/{bundled-46DUK5PG.js.map → bundled-26SJR7EB.js.map} +1 -1
  7. package/dist/{chunk-DYIJTUMY.js → chunk-AON76FHD.js} +113 -83
  8. package/dist/chunk-AON76FHD.js.map +7 -0
  9. package/dist/{chunk-AHAON6J7.js → chunk-CNCHYZVD.js} +2 -2
  10. package/dist/{chunk-AHAON6J7.js.map → chunk-CNCHYZVD.js.map} +1 -1
  11. package/dist/{chunk-Z2YT2PZN.js → chunk-GYWJUW4E.js} +6 -6
  12. package/dist/{chunk-Z2YT2PZN.js.map → chunk-GYWJUW4E.js.map} +3 -3
  13. package/dist/{chunk-7BOHBPB2.js → chunk-JCZBDGBA.js} +3 -3
  14. package/dist/{chunk-7BOHBPB2.js.map → chunk-JCZBDGBA.js.map} +1 -1
  15. package/dist/{chunk-KSQOVWP5.js → chunk-MSSHR6SW.js} +6 -6
  16. package/dist/chunk-MSSHR6SW.js.map +7 -0
  17. package/dist/index.js +28 -28
  18. package/dist/index.js.map +2 -2
  19. package/dist/{install-IY2M3OUQ.js → install-KTEW2CW3.js} +3 -3
  20. package/dist/{plugin-POMHVGD4.js → plugin-WYUCG6F7.js} +2 -2
  21. package/dist/{plugin-POMHVGD4.js.map → plugin-WYUCG6F7.js.map} +1 -1
  22. package/dist/{scheduler-Q7OHNGP6.js → scheduler-VZVHQWGD.js} +3 -3
  23. package/dist/scheduler-VZVHQWGD.js.map +7 -0
  24. package/dist/server.js +58 -41
  25. package/dist/server.js.map +3 -3
  26. package/dist/{skills-66WRX64H.js → skills-JUHWFBD6.js} +2 -2
  27. package/dist/skills-spec.js +2 -2
  28. package/dist/skills-spec.js.map +1 -1
  29. package/dist/{tools-P5537ASX.js → tools-YNE7ZRPR.js} +2 -2
  30. package/dist/{tools-P5537ASX.js.map → tools-YNE7ZRPR.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/skills/README.md +1 -1
  33. package/web/dist/assets/index-BBZbK10k.js +130 -0
  34. package/web/dist/assets/index-BKrFsCQD.css +2 -0
  35. package/web/dist/index.html +2 -2
  36. package/dist/browser-OHRD7YI3.js.map +0 -7
  37. package/dist/chunk-DYIJTUMY.js.map +0 -7
  38. package/dist/chunk-KSQOVWP5.js.map +0 -7
  39. package/dist/scheduler-Q7OHNGP6.js.map +0 -7
  40. package/web/dist/assets/index-BLQ8rPiN.js +0 -130
  41. package/web/dist/assets/index-IEIkG_jd.css +0 -2
  42. /package/dist/{install-IY2M3OUQ.js.map → install-KTEW2CW3.js.map} +0 -0
  43. /package/dist/{skills-66WRX64H.js.map → skills-JUHWFBD6.js.map} +0 -0
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ import { createRequire as __antbotCreateRequire } from 'node:module';
3
3
  const require = __antbotCreateRequire(import.meta.url);
4
4
  import {
5
5
  SettingsSchema
6
- } from "./chunk-DYIJTUMY.js";
6
+ } from "./chunk-AON76FHD.js";
7
7
 
8
- // packages/cli/src/index.ts
8
+ // cli/src/index.ts
9
9
  import fs10 from "node:fs";
10
10
  import readline2 from "node:readline/promises";
11
11
  import path11 from "node:path";
12
12
 
13
- // packages/cli/src/args.ts
13
+ // cli/src/args.ts
14
14
  var KNOWN_COMMANDS = [
15
15
  "start",
16
16
  "stop",
@@ -123,7 +123,7 @@ Run "antbot --help" for usage.`);
123
123
  return { command, help, version: false, positionals, flags };
124
124
  }
125
125
 
126
- // packages/cli/src/help.ts
126
+ // cli/src/help.ts
127
127
  var GLOBAL_HELP = `antbot \u2014 a local daemon and web UI for a roster of persistent Claude teammates.
128
128
 
129
129
  Usage: antbot <command> [options]
@@ -268,7 +268,7 @@ function commandHelp(command) {
268
268
  return COMMAND_HELP[command];
269
269
  }
270
270
 
271
- // packages/cli/src/version.ts
271
+ // cli/src/version.ts
272
272
  import fs from "node:fs";
273
273
  import path from "node:path";
274
274
  import { fileURLToPath } from "node:url";
@@ -296,7 +296,7 @@ function getCliVersion() {
296
296
  );
297
297
  }
298
298
 
299
- // packages/cli/src/doctor.ts
299
+ // cli/src/doctor.ts
300
300
  import path2 from "node:path";
301
301
  function pass(name, message) {
302
302
  return { name, status: "pass", message };
@@ -438,7 +438,7 @@ async function runDoctor(deps) {
438
438
  return { results, exitCode };
439
439
  }
440
440
 
441
- // packages/cli/src/proc.ts
441
+ // cli/src/proc.ts
442
442
  import { spawn } from "node:child_process";
443
443
  function runCommand(cmd, args, opts = {}) {
444
444
  return new Promise((resolve, reject) => {
@@ -456,7 +456,7 @@ function runCommand(cmd, args, opts = {}) {
456
456
  });
457
457
  }
458
458
 
459
- // packages/cli/src/net.ts
459
+ // cli/src/net.ts
460
460
  import net from "node:net";
461
461
  function sleep(ms) {
462
462
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -542,11 +542,11 @@ async function deleteJson(port, path12) {
542
542
  );
543
543
  }
544
544
 
545
- // packages/server/dist/config/config.js
545
+ // daemon/dist/config/config.js
546
546
  import fs3 from "node:fs";
547
547
  import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
548
548
 
549
- // packages/server/dist/config/paths.js
549
+ // daemon/dist/config/paths.js
550
550
  import os from "node:os";
551
551
  import path3 from "node:path";
552
552
  import fs2 from "node:fs";
@@ -580,7 +580,7 @@ function ensureDirs(p) {
580
580
  }
581
581
  }
582
582
 
583
- // packages/server/dist/config/config.js
583
+ // daemon/dist/config/config.js
584
584
  var DEFAULT_PORT = 4780;
585
585
  var DEFAULT_HOST = "127.0.0.1";
586
586
  function loadConfig(root) {
@@ -613,7 +613,7 @@ function writeConfig(cfg) {
613
613
  fs3.writeFileSync(cfg.paths.config, stringifyToml({ server: { port: cfg.port, host: cfg.host }, settings: cfg.settings }));
614
614
  }
615
615
 
616
- // packages/cli/src/serverBridge.ts
616
+ // cli/src/serverBridge.ts
617
617
  import fs4 from "node:fs";
618
618
  import path4 from "node:path";
619
619
  import { createRequire } from "node:module";
@@ -629,12 +629,12 @@ function packageRootOf(from, exists) {
629
629
  }
630
630
  function resolveServerPackageDir(deps) {
631
631
  try {
632
- return deps.realpath(path4.dirname(deps.resolve("@antbot/server/package.json")));
632
+ return deps.realpath(path4.dirname(deps.resolve("@antbot/daemon/package.json")));
633
633
  } catch {
634
634
  }
635
635
  const pkg = packageRootOf(deps.here, deps.exists);
636
636
  if (pkg) {
637
- const link = path4.join(pkg, "node_modules", "@antbot", "server");
637
+ const link = path4.join(pkg, "node_modules", "@antbot", "daemon");
638
638
  if (deps.exists(link)) {
639
639
  try {
640
640
  return deps.realpath(link);
@@ -657,7 +657,7 @@ function findServerPackageDir() {
657
657
  async function importServerDependency(specifier) {
658
658
  const serverDir = findServerPackageDir();
659
659
  if (!serverDir) {
660
- throw new Error(`could not locate the @antbot/server package to resolve "${specifier}"`);
660
+ throw new Error(`could not locate the @antbot/daemon package to resolve "${specifier}"`);
661
661
  }
662
662
  const req = createRequire(path4.join(serverDir, "package.json"));
663
663
  const resolved = req.resolve(specifier);
@@ -690,20 +690,20 @@ async function importFirst(specs, what) {
690
690
  throw new Error(`could not load ${what}: ${firstError?.message ?? "not found"}`);
691
691
  }
692
692
  async function startAntbotServer(opts) {
693
- const mod = await importFirst(candidates("@antbot/server", "server.js"), "the ant-bot daemon");
693
+ const mod = await importFirst(candidates("@antbot/daemon", "server.js"), "the ant-bot daemon");
694
694
  if (typeof mod.startServer !== "function") {
695
- throw new Error("@antbot/server does not export startServer() yet.");
695
+ throw new Error("@antbot/daemon does not export startServer() yet.");
696
696
  }
697
697
  return mod.startServer(opts);
698
698
  }
699
699
  async function importSkillSpec() {
700
700
  return await importFirst(
701
- candidates("@antbot/server/skills/spec.js", "skills-spec.js"),
701
+ candidates("@antbot/daemon/skills/spec.js", "skills-spec.js"),
702
702
  "the skill spec validator"
703
703
  );
704
704
  }
705
705
 
706
- // packages/cli/src/color.ts
706
+ // cli/src/color.ts
707
707
  var noColor = Boolean(process.env.NO_COLOR) || !process.stdout.isTTY;
708
708
  function wrap(code) {
709
709
  return (s) => noColor ? s : `\x1B[${code}m${s}\x1B[0m`;
@@ -715,12 +715,12 @@ var green = wrap("32");
715
715
  var yellow = wrap("33");
716
716
  var cyan = wrap("36");
717
717
 
718
- // packages/cli/src/daemon.ts
718
+ // cli/src/daemon.ts
719
719
  import { spawn as spawn2 } from "node:child_process";
720
720
  import fs6 from "node:fs";
721
721
  import path6 from "node:path";
722
722
 
723
- // packages/cli/src/pid.ts
723
+ // cli/src/pid.ts
724
724
  import fs5 from "node:fs";
725
725
  import path5 from "node:path";
726
726
  function pidFilePath(dataDir) {
@@ -757,7 +757,7 @@ function isProcessAlive(pid) {
757
757
  }
758
758
  }
759
759
 
760
- // packages/cli/src/daemon.ts
760
+ // cli/src/daemon.ts
761
761
  function sleep2(ms) {
762
762
  return new Promise((resolve) => setTimeout(resolve, ms));
763
763
  }
@@ -933,7 +933,7 @@ async function cmdOpen() {
933
933
  return 0;
934
934
  }
935
935
 
936
- // packages/cli/src/backup.ts
936
+ // cli/src/backup.ts
937
937
  import fs7 from "node:fs";
938
938
  import path7 from "node:path";
939
939
  function computeBackupItems(input) {
@@ -1007,7 +1007,7 @@ async function restoreBackup(opts) {
1007
1007
  }
1008
1008
  }
1009
1009
 
1010
- // packages/cli/src/skill.ts
1010
+ // cli/src/skill.ts
1011
1011
  import fs8 from "node:fs";
1012
1012
  import path8 from "node:path";
1013
1013
  var USAGE = `Usage:
@@ -1160,13 +1160,13 @@ async function lintSkills(args) {
1160
1160
  return 0;
1161
1161
  }
1162
1162
 
1163
- // packages/cli/src/updateCommand.ts
1163
+ // cli/src/updateCommand.ts
1164
1164
  import fs9 from "node:fs";
1165
1165
  import path10 from "node:path";
1166
1166
  import readline from "node:readline/promises";
1167
1167
  import { fileURLToPath as fileURLToPath3 } from "node:url";
1168
1168
 
1169
- // packages/cli/src/update.ts
1169
+ // cli/src/update.ts
1170
1170
  import path9 from "node:path";
1171
1171
  var PACKAGE_NAME = "@michael-joseph-miller/ant-bot";
1172
1172
  var REGISTRY_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
@@ -1284,7 +1284,7 @@ async function fetchLatestVersion(timeoutMs = 3e3) {
1284
1284
  }
1285
1285
  }
1286
1286
 
1287
- // packages/cli/src/updateCommand.ts
1287
+ // cli/src/updateCommand.ts
1288
1288
  var CACHE_FILE = "update-check.json";
1289
1289
  function cachePath() {
1290
1290
  return path10.join(loadPaths().root, CACHE_FILE);
@@ -1365,7 +1365,7 @@ async function runUpdateCommand(opts) {
1365
1365
  return 0;
1366
1366
  }
1367
1367
 
1368
- // packages/cli/src/index.ts
1368
+ // cli/src/index.ts
1369
1369
  async function runDoctorCommand() {
1370
1370
  const paths = loadPaths();
1371
1371
  const port = 4780;