abtars 0.3.4-alpha.4 → 0.3.4-alpha.6
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-NTYSLLKQ.js → _registry.generated-VN2OU54H.js} +4 -4
- package/bundle/abtars-cli.js +5 -5
- package/bundle/abtars.js +17 -60
- package/bundle/abtars.js.map +3 -3
- package/bundle/{agent-registry-GVPWTW77.js → agent-registry-OXFVXBOO.js} +3 -3
- package/bundle/{bootstrap-IXSBJZHN.js → bootstrap-XBTZIGKC.js} +2 -2
- package/bundle/{chunk-JQRHSGEA.js → chunk-44JSAOAU.js} +3 -3
- package/bundle/{chunk-5WCURRN3.js → chunk-4MULJ5SS.js} +62 -12
- package/bundle/chunk-4MULJ5SS.js.map +7 -0
- package/bundle/{chunk-ZXTNCV5J.js → chunk-56SV72K4.js} +4 -21
- package/bundle/{chunk-ZXTNCV5J.js.map → chunk-56SV72K4.js.map} +3 -3
- package/bundle/{chunk-QTNVZ4EW.js → chunk-5QUTMUIK.js} +1 -1
- package/bundle/{chunk-DM22Z3EJ.js → chunk-7YQGRUXI.js} +6 -6
- package/bundle/{chunk-YS47BYOJ.js → chunk-IRZOWJ5S.js} +10 -10
- package/bundle/{chunk-GP4XUKI5.js → chunk-MGHNCO5V.js} +78 -2
- package/bundle/chunk-MGHNCO5V.js.map +7 -0
- package/bundle/{chunk-DO3A52JX.js → chunk-NC72HN4Y.js} +7 -7
- package/bundle/{chunk-4JXC3WTP.js → chunk-Q33GFBXL.js} +4 -4
- package/bundle/{chunk-FALOOWB5.js → chunk-V3DZFJZ2.js} +3 -3
- package/bundle/{chunk-MTTROAAW.js → chunk-XGLBEDRG.js} +1 -1
- package/bundle/{commands-CFJML6XV.js → commands-BARN6XQ7.js} +3 -3
- package/bundle/{deploy-C2EYONHC.js → deploy-L6EASMTO.js} +2 -2
- package/bundle/{direct-api-transport-PA3QR37C.js → direct-api-transport-LGYYBJNR.js} +2 -2
- package/bundle/{discord-adapter-AAY6RVVS.js → discord-adapter-6GRRMO4M.js} +3 -3
- package/bundle/{doctor-probes-4FAM4PTN.js → doctor-probes-B54JFIW3.js} +2 -2
- package/bundle/{heartbeat-system-TDDIOVTC.js → heartbeat-system-OATYKHRV.js} +3 -2
- package/bundle/{heartbeat-tier3-5YOVJT2Z.js → heartbeat-tier3-JT422XQ4.js} +5 -5
- package/bundle/{message-pipeline-ACTOBZDO.js → message-pipeline-X6ENVZBZ.js} +3 -3
- package/bundle/meta.json +748 -646
- package/bundle/{phase-transport-2LEJGF2I.js → phase-transport-R6L6EYAD.js} +4 -4
- package/bundle/secrets-F3IBPUD2.js +101 -0
- package/bundle/secrets-F3IBPUD2.js.map +7 -0
- package/bundle/{subagent-runtime-QHFOQFUS.js → subagent-runtime-HLCDLHK5.js} +2 -2
- package/bundle/{system-status-ATGKRRQI.js → system-status-FDVKSAFK.js} +2 -2
- package/bundle/{telegram-adapter-7TZN3BEX.js → telegram-adapter-SIW2DMQX.js} +4 -4
- package/bundle/{tool-registry-Q74FWBEG.js → tool-registry-DDFUKQY7.js} +2 -2
- package/bundle/{update-JBTTDVDD.js → update-EZWBQTLI.js} +3 -3
- package/package.json +1 -1
- package/scripts/abtars-watchdog.sh +4 -1
- package/scripts/abtars-watchdog.test.sh +72 -0
- package/bundle/chunk-5WCURRN3.js.map +0 -7
- package/bundle/chunk-GP4XUKI5.js.map +0 -7
- /package/bundle/{_registry.generated-NTYSLLKQ.js.map → _registry.generated-VN2OU54H.js.map} +0 -0
- /package/bundle/{agent-registry-GVPWTW77.js.map → agent-registry-OXFVXBOO.js.map} +0 -0
- /package/bundle/{bootstrap-IXSBJZHN.js.map → bootstrap-XBTZIGKC.js.map} +0 -0
- /package/bundle/{chunk-JQRHSGEA.js.map → chunk-44JSAOAU.js.map} +0 -0
- /package/bundle/{chunk-QTNVZ4EW.js.map → chunk-5QUTMUIK.js.map} +0 -0
- /package/bundle/{chunk-DM22Z3EJ.js.map → chunk-7YQGRUXI.js.map} +0 -0
- /package/bundle/{chunk-YS47BYOJ.js.map → chunk-IRZOWJ5S.js.map} +0 -0
- /package/bundle/{chunk-DO3A52JX.js.map → chunk-NC72HN4Y.js.map} +0 -0
- /package/bundle/{chunk-4JXC3WTP.js.map → chunk-Q33GFBXL.js.map} +0 -0
- /package/bundle/{chunk-FALOOWB5.js.map → chunk-V3DZFJZ2.js.map} +0 -0
- /package/bundle/{chunk-MTTROAAW.js.map → chunk-XGLBEDRG.js.map} +0 -0
- /package/bundle/{commands-CFJML6XV.js.map → commands-BARN6XQ7.js.map} +0 -0
- /package/bundle/{deploy-C2EYONHC.js.map → deploy-L6EASMTO.js.map} +0 -0
- /package/bundle/{direct-api-transport-PA3QR37C.js.map → direct-api-transport-LGYYBJNR.js.map} +0 -0
- /package/bundle/{discord-adapter-AAY6RVVS.js.map → discord-adapter-6GRRMO4M.js.map} +0 -0
- /package/bundle/{doctor-probes-4FAM4PTN.js.map → doctor-probes-B54JFIW3.js.map} +0 -0
- /package/bundle/{heartbeat-system-TDDIOVTC.js.map → heartbeat-system-OATYKHRV.js.map} +0 -0
- /package/bundle/{heartbeat-tier3-5YOVJT2Z.js.map → heartbeat-tier3-JT422XQ4.js.map} +0 -0
- /package/bundle/{message-pipeline-ACTOBZDO.js.map → message-pipeline-X6ENVZBZ.js.map} +0 -0
- /package/bundle/{phase-transport-2LEJGF2I.js.map → phase-transport-R6L6EYAD.js.map} +0 -0
- /package/bundle/{subagent-runtime-QHFOQFUS.js.map → subagent-runtime-HLCDLHK5.js.map} +0 -0
- /package/bundle/{system-status-ATGKRRQI.js.map → system-status-FDVKSAFK.js.map} +0 -0
- /package/bundle/{telegram-adapter-7TZN3BEX.js.map → telegram-adapter-SIW2DMQX.js.map} +0 -0
- /package/bundle/{tool-registry-Q74FWBEG.js.map → tool-registry-DDFUKQY7.js.map} +0 -0
- /package/bundle/{update-JBTTDVDD.js.map → update-EZWBQTLI.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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
|
-
import {
|
|
4
|
-
sleep_exports
|
|
5
|
-
} from "./chunk-LGP6TYFI.js";
|
|
6
3
|
import {
|
|
7
4
|
browser_exports
|
|
8
5
|
} from "./chunk-7Z3HBPRY.js";
|
|
6
|
+
import {
|
|
7
|
+
sleep_exports
|
|
8
|
+
} from "./chunk-LGP6TYFI.js";
|
|
9
9
|
import {
|
|
10
10
|
hotskills_exports,
|
|
11
11
|
init_hotskills
|
|
@@ -33,4 +33,4 @@ var capabilities = [
|
|
|
33
33
|
export {
|
|
34
34
|
capabilities
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=_registry.generated-
|
|
36
|
+
//# sourceMappingURL=_registry.generated-VN2OU54H.js.map
|
package/bundle/abtars-cli.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
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
|
update
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-44JSAOAU.js";
|
|
6
|
+
import "./chunk-XGLBEDRG.js";
|
|
7
7
|
import {
|
|
8
8
|
rollback
|
|
9
9
|
} from "./chunk-HZDLFLRP.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
renderJson,
|
|
13
13
|
runAllProbes,
|
|
14
14
|
runFixes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4MULJ5SS.js";
|
|
16
16
|
import {
|
|
17
17
|
deriveFromPassphrase,
|
|
18
18
|
deriveKey,
|
|
@@ -1171,7 +1171,7 @@ async function onboard(opts) {
|
|
|
1171
1171
|
process.stdout.write(`
|
|
1172
1172
|
Running abtars update...
|
|
1173
1173
|
`);
|
|
1174
|
-
const { update: update2 } = await import("./update-
|
|
1174
|
+
const { update: update2 } = await import("./update-EZWBQTLI.js");
|
|
1175
1175
|
return await update2({ source: opts.source ?? "alpha", localDir: opts.localDir, skipFreshness: true, allowAbmindMismatch: false });
|
|
1176
1176
|
}
|
|
1177
1177
|
async function seedDefaultTasks(_chatId, abtarsHome2) {
|
|
@@ -1418,7 +1418,7 @@ async function main(argv) {
|
|
|
1418
1418
|
});
|
|
1419
1419
|
}
|
|
1420
1420
|
case "__deploy": {
|
|
1421
|
-
const { deployActivationCli } = await import("./deploy-
|
|
1421
|
+
const { deployActivationCli } = await import("./deploy-L6EASMTO.js");
|
|
1422
1422
|
return await deployActivationCli(flags);
|
|
1423
1423
|
}
|
|
1424
1424
|
case "rollback":
|
package/bundle/abtars.js
CHANGED
|
@@ -19,23 +19,25 @@ import {
|
|
|
19
19
|
createSkillStatsFlushTask,
|
|
20
20
|
createUpdateCheckTask,
|
|
21
21
|
phasePipelineDeps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IRZOWJ5S.js";
|
|
23
23
|
import {
|
|
24
24
|
loadNLMConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NC72HN4Y.js";
|
|
26
26
|
import "./chunk-63A7ZRIH.js";
|
|
27
27
|
import "./chunk-OKAQICWY.js";
|
|
28
28
|
import {
|
|
29
29
|
HeartbeatSystem,
|
|
30
|
+
classifyResume,
|
|
30
31
|
init_heartbeat_system,
|
|
32
|
+
init_platform_detect,
|
|
31
33
|
setHeartbeatInstance
|
|
32
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MGHNCO5V.js";
|
|
33
35
|
import {
|
|
34
36
|
sendNotification
|
|
35
37
|
} from "./chunk-7BSQ5UQO.js";
|
|
36
38
|
import {
|
|
37
39
|
phaseTransport
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7YQGRUXI.js";
|
|
39
41
|
import {
|
|
40
42
|
resetAllCtxStarts
|
|
41
43
|
} from "./chunk-JQDJPUHM.js";
|
|
@@ -43,11 +45,11 @@ import "./chunk-ZAA7B5BN.js";
|
|
|
43
45
|
import {
|
|
44
46
|
loadAndValidateConfig
|
|
45
47
|
} from "./chunk-NDCRWEEJ.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-V3DZFJZ2.js";
|
|
49
|
+
import "./chunk-5QUTMUIK.js";
|
|
48
50
|
import {
|
|
49
51
|
SubagentRuntime
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Q33GFBXL.js";
|
|
51
53
|
import {
|
|
52
54
|
createCapabilityRegistry
|
|
53
55
|
} from "./chunk-XX6BGTPO.js";
|
|
@@ -58,7 +60,7 @@ import {
|
|
|
58
60
|
} from "./chunk-YRSMGJFP.js";
|
|
59
61
|
import {
|
|
60
62
|
setPeerActivityCallback
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-56SV72K4.js";
|
|
62
64
|
import "./chunk-AW2FTHQO.js";
|
|
63
65
|
import "./chunk-MV6CJFWR.js";
|
|
64
66
|
import "./chunk-URQPDCK5.js";
|
|
@@ -1145,7 +1147,7 @@ async function phasePlatformsConnect(ctx) {
|
|
|
1145
1147
|
registry.register("telegram", {
|
|
1146
1148
|
configured: Boolean(config.telegram.botToken && config.telegram.allowedUserIds.size > 0),
|
|
1147
1149
|
async create() {
|
|
1148
|
-
const { TelegramAdapter } = await import("./telegram-adapter-
|
|
1150
|
+
const { TelegramAdapter } = await import("./telegram-adapter-SIW2DMQX.js");
|
|
1149
1151
|
const adapter = new TelegramAdapter(
|
|
1150
1152
|
{ botToken: config.telegram.botToken, allowedUserIds: config.telegram.allowedUserIds, pollTimeoutS: config.telegram.pollTimeoutS },
|
|
1151
1153
|
{ pipeline: { handleInbound: (msg) => recovery.handle(msg, adapter) }, conversationBuffer: ctx.conversationBuffer, transport: null, memory: null, sessionManager: ctx.sessionManager, actionGate: ctx.actionGate }
|
|
@@ -1177,7 +1179,7 @@ async function phasePlatformsConnect(ctx) {
|
|
|
1177
1179
|
if (!config.discord.appId || !isValidSnowflake(config.discord.appId)) {
|
|
1178
1180
|
throw new Error("DISCORD_APP_ID missing or invalid \u2014 Discord disabled");
|
|
1179
1181
|
}
|
|
1180
|
-
const { DiscordAdapter } = await import("./discord-adapter-
|
|
1182
|
+
const { DiscordAdapter } = await import("./discord-adapter-6GRRMO4M.js");
|
|
1181
1183
|
const adapter = new DiscordAdapter(
|
|
1182
1184
|
{ botToken: config.discord.botToken, appId: config.discord.appId, allowedUserIds: config.discord.allowedUserIds },
|
|
1183
1185
|
{ pipeline: { handleInbound: (msg) => recovery.handle(msg, adapter) }, transport: null, memory: null, conversationBuffer: ctx.conversationBuffer }
|
|
@@ -1255,7 +1257,7 @@ async function phaseCapabilities(ctx) {
|
|
|
1255
1257
|
let loaded = [];
|
|
1256
1258
|
let staticCaps;
|
|
1257
1259
|
try {
|
|
1258
|
-
({ capabilities: staticCaps } = await import("./_registry.generated-
|
|
1260
|
+
({ capabilities: staticCaps } = await import("./_registry.generated-VN2OU54H.js"));
|
|
1259
1261
|
} catch (err) {
|
|
1260
1262
|
logError("capabilities", `Registry import failed: ${err instanceof Error ? err.message : String(err)}. Loading individually.`);
|
|
1261
1263
|
staticCaps = [];
|
|
@@ -1301,53 +1303,7 @@ async function phaseCapabilities(ctx) {
|
|
|
1301
1303
|
// src/boot/phase-heartbeat.ts
|
|
1302
1304
|
init_log_and_swallow();
|
|
1303
1305
|
init_heartbeat_system();
|
|
1304
|
-
|
|
1305
|
-
// src/components/platform-detect.ts
|
|
1306
|
-
init_log_and_swallow();
|
|
1307
|
-
init_env_schema();
|
|
1308
|
-
init_bridge_lock_transport();
|
|
1309
|
-
import { execSync } from "node:child_process";
|
|
1310
|
-
import { platform } from "node:os";
|
|
1311
|
-
function classifyResume() {
|
|
1312
|
-
const status = readBridgeLockField("sleepStatus");
|
|
1313
|
-
if (status === "hw_sleep") {
|
|
1314
|
-
const hour = (/* @__PURE__ */ new Date()).getHours();
|
|
1315
|
-
const WAKE_HOUR = getEnv().wakeTime.hour;
|
|
1316
|
-
const BED_HOUR = getEnv().bedTime.hour;
|
|
1317
|
-
const inSleepWindow = BED_HOUR < WAKE_HOUR ? hour >= BED_HOUR && hour < WAKE_HOUR : hour >= BED_HOUR || hour < WAKE_HOUR;
|
|
1318
|
-
return inSleepWindow ? "dark" : "full";
|
|
1319
|
-
}
|
|
1320
|
-
const os = platform();
|
|
1321
|
-
if (os === "darwin") return classifyMacOS();
|
|
1322
|
-
if (os === "linux") return classifyLinux();
|
|
1323
|
-
return "unknown";
|
|
1324
|
-
}
|
|
1325
|
-
function classifyMacOS() {
|
|
1326
|
-
try {
|
|
1327
|
-
const out = execSync("pmset -g log 2>/dev/null", { timeout: 3e3, encoding: "utf-8" });
|
|
1328
|
-
const lines = out.split("\n").filter((l) => /\bDarkWake\b|\bWake\b/.test(l) && !l.includes("Notification"));
|
|
1329
|
-
const last = lines.at(-1) ?? "";
|
|
1330
|
-
if (last.includes("DarkWake")) return "dark";
|
|
1331
|
-
if (last.includes("Wake")) return "full";
|
|
1332
|
-
} catch (err) {
|
|
1333
|
-
logAndSwallow("platform_detect", "op", err);
|
|
1334
|
-
}
|
|
1335
|
-
return "unknown";
|
|
1336
|
-
}
|
|
1337
|
-
function classifyLinux() {
|
|
1338
|
-
try {
|
|
1339
|
-
const out = execSync(
|
|
1340
|
-
"journalctl -b -u systemd-suspend.service --since '5 min ago' --no-pager -q 2>/dev/null",
|
|
1341
|
-
{ timeout: 3e3, encoding: "utf-8" }
|
|
1342
|
-
);
|
|
1343
|
-
if (out.trim().length > 0) return "full";
|
|
1344
|
-
} catch (err) {
|
|
1345
|
-
logAndSwallow("platform_detect", "op", err);
|
|
1346
|
-
}
|
|
1347
|
-
return "unknown";
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
// src/boot/phase-heartbeat.ts
|
|
1306
|
+
init_platform_detect();
|
|
1351
1307
|
init_bridge_lock_transport();
|
|
1352
1308
|
init_user_registry();
|
|
1353
1309
|
init_logger();
|
|
@@ -1355,6 +1311,7 @@ init_logger();
|
|
|
1355
1311
|
// src/boot/heartbeat-watchdog.ts
|
|
1356
1312
|
init_logger();
|
|
1357
1313
|
init_bridge_lock_transport();
|
|
1314
|
+
init_platform_detect();
|
|
1358
1315
|
var WD_CHECK_INTERVAL = 6e4;
|
|
1359
1316
|
var WD_UNKNOWN_SUPPRESS_MS = 60 * 6e4;
|
|
1360
1317
|
var CIRCUIT_BREAKER_MAX = 3;
|
|
@@ -1473,7 +1430,7 @@ async function phaseSleep(ctx) {
|
|
|
1473
1430
|
return "skipped";
|
|
1474
1431
|
}
|
|
1475
1432
|
const { createSleepHandle } = await import("./sleep-36XS6MHJ.js");
|
|
1476
|
-
const { killWakeInhibit } = await import("./commands-
|
|
1433
|
+
const { killWakeInhibit } = await import("./commands-BARN6XQ7.js");
|
|
1477
1434
|
const SLEEP_HOUR = parseInt(readEnvWithDefault("BED_TIME", "2", "bedtime hour").split(":")[0] ?? "2", 10);
|
|
1478
1435
|
let subagent = null;
|
|
1479
1436
|
const { getEnv: getEnv2 } = await import("./env-schema-4JXQUOH4.js");
|
|
@@ -3512,7 +3469,7 @@ async function startBridge() {
|
|
|
3512
3469
|
}
|
|
3513
3470
|
}
|
|
3514
3471
|
try {
|
|
3515
|
-
const { runFixes } = await import("./doctor-probes-
|
|
3472
|
+
const { runFixes } = await import("./doctor-probes-B54JFIW3.js");
|
|
3516
3473
|
await runFixes();
|
|
3517
3474
|
} catch {
|
|
3518
3475
|
}
|