abtars 0.1.0-alpha.17 → 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.
- package/bundle/abtars-cli.js +34 -5
- package/bundle/abtars-cli.js.map +2 -2
- package/bundle/abtars.js +17 -17
- package/bundle/agent-registry-VJMNIQ5W.js +19 -0
- package/bundle/agent-registry-VJMNIQ5W.js.map +7 -0
- package/bundle/chunk-2F6XKG7Y.js +414 -0
- package/bundle/chunk-2F6XKG7Y.js.map +7 -0
- package/bundle/chunk-FVQGP5YO.js +185 -0
- package/bundle/chunk-FVQGP5YO.js.map +7 -0
- package/bundle/chunk-HFNXPEBL.js +645 -0
- package/bundle/chunk-HFNXPEBL.js.map +7 -0
- package/bundle/chunk-LD5BMLHG.js +160 -0
- package/bundle/chunk-LD5BMLHG.js.map +7 -0
- package/bundle/chunk-MTTSX3AS.js +3707 -0
- package/bundle/chunk-MTTSX3AS.js.map +7 -0
- package/bundle/chunk-PF5UQ64X.js +224 -0
- package/bundle/chunk-PF5UQ64X.js.map +7 -0
- package/bundle/chunk-WX7GHGFX.js +15903 -0
- package/bundle/chunk-WX7GHGFX.js.map +7 -0
- package/bundle/chunk-YHWZNCKL.js +645 -0
- package/bundle/chunk-YHWZNCKL.js.map +7 -0
- package/bundle/commands-XFVQDUJL.js +32 -0
- package/bundle/commands-XFVQDUJL.js.map +7 -0
- package/bundle/config-C6VHRJQ7.js +20 -0
- package/bundle/config-C6VHRJQ7.js.map +7 -0
- package/bundle/daemon-3VQ7YYKG.js +289 -0
- package/bundle/daemon-3VQ7YYKG.js.map +7 -0
- package/bundle/discord-adapter-MIJAO7QB.js +585 -0
- package/bundle/discord-adapter-MIJAO7QB.js.map +7 -0
- package/bundle/message-pipeline-GPAGX4RS.js +34 -0
- package/bundle/message-pipeline-GPAGX4RS.js.map +7 -0
- package/bundle/meta.json +132 -122
- package/bundle/phase-transport-ICMXDO3D.js +23 -0
- package/bundle/phase-transport-ICMXDO3D.js.map +7 -0
- package/bundle/phase-transport-O3N4SANJ.js +23 -0
- package/bundle/phase-transport-O3N4SANJ.js.map +7 -0
- package/bundle/subagent-runtime-XS2ZXYOZ.js +13 -0
- package/bundle/subagent-runtime-XS2ZXYOZ.js.map +7 -0
- package/bundle/system-status-2CR5OUDY.js +190 -0
- package/bundle/system-status-2CR5OUDY.js.map +7 -0
- package/bundle/telegram-adapter-EI3TXGGO.js +1061 -0
- package/bundle/telegram-adapter-EI3TXGGO.js.map +7 -0
- package/bundle/transport-config-ANPS2RYT.js +58 -0
- package/bundle/transport-config-ANPS2RYT.js.map +7 -0
- package/package.json +1 -1
- package/scripts/abtars-daemon.service +1 -0
package/bundle/abtars-cli.js
CHANGED
|
@@ -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);
|
|
@@ -1735,10 +1763,11 @@ Update complete: ${staged.version}
|
|
|
1735
1763
|
const destConfig = join9(paths.home, "config");
|
|
1736
1764
|
if (existsSync7(releaseConfig)) {
|
|
1737
1765
|
for (const f of readdirSync3(releaseConfig)) {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1766
|
+
const src = join9(releaseConfig, f);
|
|
1767
|
+
if (f.endsWith(".example")) {
|
|
1768
|
+
cpSync(src, join9(destConfig, f));
|
|
1769
|
+
const target = join9(destConfig, f.replace(".example", ""));
|
|
1770
|
+
if (!existsSync7(target)) cpSync(src, target);
|
|
1742
1771
|
}
|
|
1743
1772
|
}
|
|
1744
1773
|
const defaultTransport = join9(releaseConfig, "transport.default.json");
|
|
@@ -1928,7 +1957,7 @@ async function main(argv) {
|
|
|
1928
1957
|
return await startCmd();
|
|
1929
1958
|
}
|
|
1930
1959
|
case "daemon": {
|
|
1931
|
-
const { daemon: daemonCmd } = await import("./daemon-
|
|
1960
|
+
const { daemon: daemonCmd } = await import("./daemon-3VQ7YYKG.js");
|
|
1932
1961
|
return await daemonCmd(argv.slice(1));
|
|
1933
1962
|
}
|
|
1934
1963
|
case "logs": {
|