abtars 0.1.0-alpha.21 → 0.1.0-alpha.23
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.
- package/bundle/_registry.generated-6GO2PAMD.js +36 -0
- package/bundle/_registry.generated-6GO2PAMD.js.map +7 -0
- package/bundle/abtars-browser.js +2 -2
- package/bundle/abtars-cli.js +22 -33
- package/bundle/abtars-cli.js.map +3 -3
- package/bundle/abtars.js +80 -71
- package/bundle/abtars.js.map +3 -3
- package/bundle/agent-api-rate-limit-C25WGSFF.js +39 -0
- package/bundle/agent-api-rate-limit-C25WGSFF.js.map +7 -0
- package/bundle/agent-registry-SYUFNSVB.js +19 -0
- package/bundle/agent-registry-SYUFNSVB.js.map +7 -0
- package/bundle/browser-5H2Q7GEC.js +19 -0
- package/bundle/browser-5H2Q7GEC.js.map +7 -0
- package/bundle/capability-ILW3D5HS.js +18 -0
- package/bundle/capability-ILW3D5HS.js.map +7 -0
- package/bundle/chunk-4KJ76TTE.js +73 -0
- package/bundle/chunk-4KJ76TTE.js.map +7 -0
- package/bundle/chunk-7STAQF5O.js +183 -0
- package/bundle/chunk-7STAQF5O.js.map +7 -0
- package/bundle/chunk-A5OJYQNU.js +645 -0
- package/bundle/chunk-A5OJYQNU.js.map +7 -0
- package/bundle/chunk-GBBTK6H2.js +94 -0
- package/bundle/chunk-GBBTK6H2.js.map +7 -0
- package/bundle/chunk-GZUQQWBZ.js +131 -0
- package/bundle/chunk-GZUQQWBZ.js.map +7 -0
- package/bundle/chunk-ITG6XGBS.js +414 -0
- package/bundle/chunk-ITG6XGBS.js.map +7 -0
- package/bundle/chunk-KFENC7BM.js +19 -0
- package/bundle/chunk-KFENC7BM.js.map +7 -0
- package/bundle/chunk-KSEIWT4T.js +759 -0
- package/bundle/chunk-KSEIWT4T.js.map +7 -0
- package/bundle/chunk-KWBGYWDO.js +216 -0
- package/bundle/chunk-KWBGYWDO.js.map +7 -0
- package/bundle/chunk-LKGDCU4A.js +3709 -0
- package/bundle/chunk-LKGDCU4A.js.map +7 -0
- package/bundle/chunk-OOKLEC6V.js +89 -0
- package/bundle/chunk-OOKLEC6V.js.map +7 -0
- package/bundle/chunk-OZ4IZFV4.js +126 -0
- package/bundle/chunk-OZ4IZFV4.js.map +7 -0
- package/bundle/chunk-PZE3J7ER.js +299 -0
- package/bundle/chunk-PZE3J7ER.js.map +7 -0
- package/bundle/chunk-Q62SXS73.js +224 -0
- package/bundle/chunk-Q62SXS73.js.map +7 -0
- package/bundle/chunk-RV54J75Q.js +15903 -0
- package/bundle/chunk-RV54J75Q.js.map +7 -0
- package/bundle/chunk-TOUZC6NR.js +215 -0
- package/bundle/chunk-TOUZC6NR.js.map +7 -0
- package/bundle/chunk-TYVI3ZWA.js +55 -0
- package/bundle/chunk-TYVI3ZWA.js.map +7 -0
- package/bundle/chunk-X5FBUA53.js +982 -0
- package/bundle/chunk-X5FBUA53.js.map +7 -0
- package/bundle/chunk-ZVDVNSXK.js +189 -0
- package/bundle/chunk-ZVDVNSXK.js.map +7 -0
- package/bundle/commands-WBJ6KTDC.js +33 -0
- package/bundle/commands-WBJ6KTDC.js.map +7 -0
- package/bundle/config-DQIGDX4W.js +20 -0
- package/bundle/config-DQIGDX4W.js.map +7 -0
- package/bundle/delegation-tools-6FICZQ5G.js +28 -0
- package/bundle/delegation-tools-6FICZQ5G.js.map +7 -0
- package/bundle/deps-HN6CEXA4.js +105 -0
- package/bundle/deps-HN6CEXA4.js.map +7 -0
- package/bundle/direct-api-transport-TRV45NO6.js +861 -0
- package/bundle/direct-api-transport-TRV45NO6.js.map +7 -0
- package/bundle/discord-adapter-C6XHJMMG.js +586 -0
- package/bundle/discord-adapter-C6XHJMMG.js.map +7 -0
- package/bundle/discord-adapter-Q3GANMYV.js +586 -0
- package/bundle/discord-adapter-Q3GANMYV.js.map +7 -0
- package/bundle/env-schema-XCPAJ6IZ.js +20 -0
- package/bundle/env-schema-XCPAJ6IZ.js.map +7 -0
- package/bundle/lazy-require-UFYFFX2R.js +18 -0
- package/bundle/lazy-require-UFYFFX2R.js.map +7 -0
- package/bundle/media-utils-MOE36VWY.js +4748 -0
- package/bundle/media-utils-MOE36VWY.js.map +7 -0
- package/bundle/message-pipeline-PND4JICD.js +35 -0
- package/bundle/message-pipeline-PND4JICD.js.map +7 -0
- package/bundle/meta.json +2362 -8676
- package/bundle/notification-U6F5ZBSG.js +14 -0
- package/bundle/notification-U6F5ZBSG.js.map +7 -0
- package/bundle/openrouter-credits-7XXO6QGQ.js +33 -0
- package/bundle/openrouter-credits-7XXO6QGQ.js.map +7 -0
- package/bundle/phase-transport-FEZ4SIJJ.js +23 -0
- package/bundle/phase-transport-FEZ4SIJJ.js.map +7 -0
- package/bundle/sleep-BPWX3FCN.js +20 -0
- package/bundle/sleep-BPWX3FCN.js.map +7 -0
- package/bundle/soul-bundle-BRIUDEQ2.js +15 -0
- package/bundle/soul-bundle-BRIUDEQ2.js.map +7 -0
- package/bundle/soul-loader-GBXJ7EBH.js +18 -0
- package/bundle/soul-loader-GBXJ7EBH.js.map +7 -0
- package/bundle/subagent-runtime-MDBO6LHS.js +13 -0
- package/bundle/subagent-runtime-MDBO6LHS.js.map +7 -0
- package/bundle/system-status-WAY63BYC.js +190 -0
- package/bundle/system-status-WAY63BYC.js.map +7 -0
- package/bundle/telegram-adapter-F2OS2FAM.js +1062 -0
- package/bundle/telegram-adapter-F2OS2FAM.js.map +7 -0
- package/bundle/telegram-adapter-FS6WU2HS.js +1062 -0
- package/bundle/telegram-adapter-FS6WU2HS.js.map +7 -0
- package/bundle/tool-registry-T7XLTI2Q.js +39 -0
- package/bundle/tool-registry-T7XLTI2Q.js.map +7 -0
- package/bundle/transport-config-G5NKQXPJ.js +58 -0
- package/bundle/transport-config-G5NKQXPJ.js.map +7 -0
- package/bundle/user-registry-NUVNEHJU.js +17 -0
- package/bundle/user-registry-NUVNEHJU.js.map +7 -0
- package/package.json +11 -12
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
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
|
+
import {
|
|
4
|
+
browser_exports
|
|
5
|
+
} from "./chunk-GZUQQWBZ.js";
|
|
6
|
+
import "./chunk-K7P74UNQ.js";
|
|
7
|
+
import {
|
|
8
|
+
hotskills_exports
|
|
9
|
+
} from "./chunk-RE3F3CFW.js";
|
|
10
|
+
import {
|
|
11
|
+
sleep_exports
|
|
12
|
+
} from "./chunk-KWBGYWDO.js";
|
|
13
|
+
import "./chunk-PQ62LZNA.js";
|
|
14
|
+
import "./chunk-JAJ3DUQ2.js";
|
|
15
|
+
import "./chunk-BYDUMHXT.js";
|
|
16
|
+
import "./chunk-UDZIZB5F.js";
|
|
17
|
+
import "./chunk-TBLYGCPQ.js";
|
|
18
|
+
import "./chunk-XLLSPBBT.js";
|
|
19
|
+
import "./chunk-MZWMYN4O.js";
|
|
20
|
+
import "./chunk-KSEIWT4T.js";
|
|
21
|
+
import "./chunk-EX2SRTUE.js";
|
|
22
|
+
import "./chunk-PZE3J7ER.js";
|
|
23
|
+
import "./chunk-2BY6I4P5.js";
|
|
24
|
+
import "./chunk-MJ6PHMOK.js";
|
|
25
|
+
import "./chunk-7K2YZTLD.js";
|
|
26
|
+
|
|
27
|
+
// src/capabilities/_registry.generated.ts
|
|
28
|
+
var capabilities = [
|
|
29
|
+
{ name: "browser", module: browser_exports },
|
|
30
|
+
{ name: "hotskills", module: hotskills_exports },
|
|
31
|
+
{ name: "sleep", module: sleep_exports }
|
|
32
|
+
];
|
|
33
|
+
export {
|
|
34
|
+
capabilities
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=_registry.generated-6GO2PAMD.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/capabilities/_registry.generated.ts"],
|
|
4
|
+
"sourcesContent": ["// AUTO-GENERATED by esbuild.config.js \u2014 do not edit\n// Static capability registry for bundled builds\n\nimport * as cap0 from \"./browser/index.js\";\nimport * as cap1 from \"./hotskills/index.js\";\nimport * as cap2 from \"./sleep/index.js\";\n\nexport const capabilities = [\n { name: \"browser\", module: cap0 },\n { name: \"hotskills\", module: cap1 },\n { name: \"sleep\", module: cap2 },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAM,eAAe;AAAA,EAC1B,EAAE,MAAM,WAAW,QAAQ,gBAAK;AAAA,EAChC,EAAE,MAAM,aAAa,QAAQ,kBAAK;AAAA,EAClC,EAAE,MAAM,SAAS,QAAQ,cAAK;AAChC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/bundle/abtars-browser.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
BrowserTool,
|
|
7
7
|
DomainAllowlist,
|
|
8
8
|
getDefaultSocketPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KSEIWT4T.js";
|
|
10
10
|
import "./chunk-EX2SRTUE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PZE3J7ER.js";
|
|
12
12
|
import "./chunk-2BY6I4P5.js";
|
|
13
13
|
import "./chunk-MJ6PHMOK.js";
|
|
14
14
|
import "./chunk-7K2YZTLD.js";
|
package/bundle/abtars-cli.js
CHANGED
|
@@ -535,7 +535,7 @@ async function runInteractive(existing) {
|
|
|
535
535
|
if (telegramToken && telegramToken.trim() && !detectedChatId) {
|
|
536
536
|
const botUrl = `https://api.telegram.org/bot${telegramToken.trim()}`;
|
|
537
537
|
try {
|
|
538
|
-
await fetch(`${botUrl}/deleteWebhook
|
|
538
|
+
await fetch(`${botUrl}/deleteWebhook`);
|
|
539
539
|
} catch {
|
|
540
540
|
}
|
|
541
541
|
process.stdout.write("\nSend /start to your bot on Telegram now... (waiting 30s)\n");
|
|
@@ -1069,23 +1069,6 @@ Next: run 'abtars update' to stage the release, then start the bridge.
|
|
|
1069
1069
|
`);
|
|
1070
1070
|
return 0;
|
|
1071
1071
|
}
|
|
1072
|
-
try {
|
|
1073
|
-
const { spawnSync: spawnSync4 } = await import("node:child_process");
|
|
1074
|
-
const which = spawnSync4("which", ["abmind"], { encoding: "utf-8" });
|
|
1075
|
-
if (which.status === 0) {
|
|
1076
|
-
process.stdout.write(`
|
|
1077
|
-
\u2500\u2500 Running 'abmind install' \u2500\u2500
|
|
1078
|
-
`);
|
|
1079
|
-
const r = spawnSync4("abmind", ["install"], { stdio: "inherit" });
|
|
1080
|
-
if (r.status !== 0) process.stdout.write(`\u26A0 abmind install exited with code ${r.status}
|
|
1081
|
-
`);
|
|
1082
|
-
} else {
|
|
1083
|
-
process.stdout.write(`
|
|
1084
|
-
\u2139\uFE0F abmind not installed. Run 'npm install -g abmind && abmind install' later to enable persistent memory.
|
|
1085
|
-
`);
|
|
1086
|
-
}
|
|
1087
|
-
} catch {
|
|
1088
|
-
}
|
|
1089
1072
|
const { confirm: confirm2 } = await import("./dist-J3T4XVKX.js");
|
|
1090
1073
|
const startCmds = [];
|
|
1091
1074
|
if (answers.installMode === "simple") {
|
|
@@ -1602,27 +1585,29 @@ Use --source local (default) or --source npm.
|
|
|
1602
1585
|
const entry = existsSync8(join9(staged.stagedPath, "bundle", "abtars.js")) ? "bundle/abtars.js" : "dist/main.js";
|
|
1603
1586
|
symlinkSync(entry, mainLink);
|
|
1604
1587
|
}
|
|
1605
|
-
const { existsSync: ex2,
|
|
1606
|
-
const
|
|
1607
|
-
const preservedLinks = [];
|
|
1608
|
-
if (ex2(oldNm)) {
|
|
1609
|
-
for (const name of ["abmind", "better-sqlite3"]) {
|
|
1610
|
-
const p = join9(oldNm, name);
|
|
1611
|
-
try {
|
|
1612
|
-
if (ex2(p) && lstatSync(p).isSymbolicLink()) preservedLinks.push({ name, target: readlinkSync2(p) });
|
|
1613
|
-
} catch {
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1588
|
+
const { existsSync: ex2, symlinkSync: sl2, mkdirSync: mk2, unlinkSync: ul2 } = await import("node:fs");
|
|
1589
|
+
const { dirname: dn2 } = await import("node:path");
|
|
1617
1590
|
await activate(paths.current, staged.version);
|
|
1618
1591
|
process.stdout.write(`\u2713 current -> releases/${staged.version}
|
|
1619
1592
|
`);
|
|
1620
|
-
|
|
1593
|
+
const globalModules = join9(dn2(process.execPath), "..", "lib", "node_modules");
|
|
1594
|
+
const abmindHome = process.env["ABMIND_HOME"] ?? join9(process.env["HOME"] ?? "", ".abmind");
|
|
1595
|
+
const links = [];
|
|
1596
|
+
const globalAbmind = join9(globalModules, "abmind");
|
|
1597
|
+
if (ex2(globalAbmind)) links.push({ name: "abmind", target: globalAbmind });
|
|
1598
|
+
const bsq3 = join9(abmindHome, "lib", "node_modules", "better-sqlite3");
|
|
1599
|
+
if (ex2(bsq3)) links.push({ name: "better-sqlite3", target: bsq3 });
|
|
1600
|
+
if (links.length > 0) {
|
|
1621
1601
|
const newNm = join9(paths.home, "current", "node_modules");
|
|
1622
1602
|
mk2(newNm, { recursive: true });
|
|
1623
|
-
for (const { name, target } of
|
|
1603
|
+
for (const { name, target } of links) {
|
|
1604
|
+
const dest = join9(newNm, name);
|
|
1624
1605
|
try {
|
|
1625
|
-
|
|
1606
|
+
if (ex2(dest)) ul2(dest);
|
|
1607
|
+
} catch {
|
|
1608
|
+
}
|
|
1609
|
+
try {
|
|
1610
|
+
sl2(target, dest);
|
|
1626
1611
|
} catch {
|
|
1627
1612
|
}
|
|
1628
1613
|
}
|
|
@@ -1969,6 +1954,10 @@ async function main(argv) {
|
|
|
1969
1954
|
const { daemon: daemonCmd } = await import("./daemon-NPKYZ3CJ.js");
|
|
1970
1955
|
return await daemonCmd(argv.slice(1));
|
|
1971
1956
|
}
|
|
1957
|
+
case "deps": {
|
|
1958
|
+
const { deps: depsCmd } = await import("./deps-HN6CEXA4.js");
|
|
1959
|
+
return await depsCmd(argv.slice(1));
|
|
1960
|
+
}
|
|
1972
1961
|
case "logs": {
|
|
1973
1962
|
const { logs } = await import("./logs-EK4HYRKR.js");
|
|
1974
1963
|
return await logs();
|