abtars 0.3.4-alpha.6 → 0.3.4-alpha.7
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-VN2OU54H.js → _registry.generated-WGR4WOPT.js} +2 -2
- package/bundle/abtars-cli.js +4 -4
- package/bundle/abtars.js +47 -27
- package/bundle/abtars.js.map +2 -2
- package/bundle/{agent-api-adapter-PTJYZKQK.js → agent-api-adapter-YAHKQMMZ.js} +2 -2
- package/bundle/{agent-registry-OXFVXBOO.js → agent-registry-GI6CLT3Z.js} +2 -2
- package/bundle/{bootstrap-XBTZIGKC.js → bootstrap-X2QYIZIJ.js} +2 -2
- package/bundle/{browser-EJNS35NT.js → browser-DMARZJIN.js} +2 -2
- package/bundle/{chunk-Q33GFBXL.js → chunk-3AAENI2K.js} +4 -4
- package/bundle/{chunk-AW2FTHQO.js → chunk-4UL3KINB.js} +2 -2
- package/bundle/{chunk-7Z3HBPRY.js → chunk-5B5B6EHL.js} +2 -2
- package/bundle/{chunk-NC72HN4Y.js → chunk-BROFMHC2.js} +61 -25
- package/bundle/chunk-BROFMHC2.js.map +7 -0
- package/bundle/{chunk-V3DZFJZ2.js → chunk-GXL7HJPT.js} +2 -2
- package/bundle/{chunk-IRZOWJ5S.js → chunk-HKRSMUXJ.js} +16 -16
- package/bundle/{chunk-MGHNCO5V.js → chunk-LDUOOKQY.js} +4 -3
- package/bundle/chunk-LDUOOKQY.js.map +7 -0
- package/bundle/{chunk-AO32N2VB.js → chunk-ONBF5DDU.js} +28 -52
- package/bundle/chunk-ONBF5DDU.js.map +7 -0
- package/bundle/{chunk-XGLBEDRG.js → chunk-SIFPBTI4.js} +2 -2
- package/bundle/{chunk-44JSAOAU.js → chunk-UPRZDU6T.js} +3 -3
- package/bundle/{chunk-56SV72K4.js → chunk-W4EA4GCA.js} +10 -24
- package/bundle/chunk-W4EA4GCA.js.map +7 -0
- package/bundle/{chunk-PROPYS3P.js → chunk-XWRADSXO.js} +2 -2
- package/bundle/{chunk-7YQGRUXI.js → chunk-YRU2K3O6.js} +40 -58
- package/bundle/chunk-YRU2K3O6.js.map +7 -0
- package/bundle/{commands-BARN6XQ7.js → commands-XYEGVUZF.js} +2 -2
- package/bundle/{delegation-tools-O7WLLYVP.js → delegation-tools-QKNYQGTQ.js} +3 -3
- package/bundle/{deploy-L6EASMTO.js → deploy-EPDWNHJU.js} +2 -2
- package/bundle/{direct-api-transport-LGYYBJNR.js → direct-api-transport-E3LNDBJT.js} +5 -5
- package/bundle/{discord-adapter-6GRRMO4M.js → discord-adapter-IT3KP3VB.js} +2 -2
- package/bundle/{health-check-YKWFD2LZ.js → health-check-BUA36UAQ.js} +2 -2
- package/bundle/{health-check-YKWFD2LZ.js.map → health-check-BUA36UAQ.js.map} +1 -1
- package/bundle/{heartbeat-system-OATYKHRV.js → heartbeat-system-MVTRS4GP.js} +2 -2
- package/bundle/{heartbeat-tier3-JT422XQ4.js → heartbeat-tier3-ABWL3P7M.js} +8 -8
- package/bundle/{install-C2WDC4WT.js → install-OS3CU7NF.js} +2 -2
- package/bundle/{message-pipeline-X6ENVZBZ.js → message-pipeline-P5GAQU4Z.js} +2 -2
- package/bundle/meta.json +262 -268
- package/bundle/{orc-tools-A3G7WCSJ.js → orc-tools-4CHEFWSN.js} +2 -2
- package/bundle/{phase-transport-R6L6EYAD.js → phase-transport-PGKU2KD4.js} +5 -4
- package/bundle/{reconciler-FHESO6OC.js → reconciler-EBKH3JNU.js} +2 -2
- package/bundle/{skill-session-AXBDQSLQ.js → skill-session-BMSRQSHV.js} +2 -2
- package/bundle/{spin-IMW2MZOH.js → spin-TI3TSVVT.js} +2 -2
- package/bundle/{subagent-runtime-HLCDLHK5.js → subagent-runtime-5QUVES3W.js} +2 -2
- package/bundle/{system-status-FDVKSAFK.js → system-status-JZU5FO7B.js} +3 -3
- package/bundle/{telegram-adapter-SIW2DMQX.js → telegram-adapter-H6PMFPMB.js} +4 -4
- package/bundle/{tool-registry-DDFUKQY7.js → tool-registry-IZX2IOBM.js} +5 -5
- package/bundle/{update-EZWBQTLI.js → update-MESYO4LO.js} +3 -3
- package/package.json +1 -1
- package/templates/skills/skill-authoring/SKILL.md +6 -6
- package/bundle/chunk-56SV72K4.js.map +0 -7
- package/bundle/chunk-7YQGRUXI.js.map +0 -7
- package/bundle/chunk-AO32N2VB.js.map +0 -7
- package/bundle/chunk-MGHNCO5V.js.map +0 -7
- package/bundle/chunk-NC72HN4Y.js.map +0 -7
- /package/bundle/{_registry.generated-VN2OU54H.js.map → _registry.generated-WGR4WOPT.js.map} +0 -0
- /package/bundle/{agent-api-adapter-PTJYZKQK.js.map → agent-api-adapter-YAHKQMMZ.js.map} +0 -0
- /package/bundle/{agent-registry-OXFVXBOO.js.map → agent-registry-GI6CLT3Z.js.map} +0 -0
- /package/bundle/{bootstrap-XBTZIGKC.js.map → bootstrap-X2QYIZIJ.js.map} +0 -0
- /package/bundle/{browser-EJNS35NT.js.map → browser-DMARZJIN.js.map} +0 -0
- /package/bundle/{chunk-Q33GFBXL.js.map → chunk-3AAENI2K.js.map} +0 -0
- /package/bundle/{chunk-AW2FTHQO.js.map → chunk-4UL3KINB.js.map} +0 -0
- /package/bundle/{chunk-7Z3HBPRY.js.map → chunk-5B5B6EHL.js.map} +0 -0
- /package/bundle/{chunk-V3DZFJZ2.js.map → chunk-GXL7HJPT.js.map} +0 -0
- /package/bundle/{chunk-IRZOWJ5S.js.map → chunk-HKRSMUXJ.js.map} +0 -0
- /package/bundle/{chunk-XGLBEDRG.js.map → chunk-SIFPBTI4.js.map} +0 -0
- /package/bundle/{chunk-44JSAOAU.js.map → chunk-UPRZDU6T.js.map} +0 -0
- /package/bundle/{chunk-PROPYS3P.js.map → chunk-XWRADSXO.js.map} +0 -0
- /package/bundle/{commands-BARN6XQ7.js.map → commands-XYEGVUZF.js.map} +0 -0
- /package/bundle/{delegation-tools-O7WLLYVP.js.map → delegation-tools-QKNYQGTQ.js.map} +0 -0
- /package/bundle/{deploy-L6EASMTO.js.map → deploy-EPDWNHJU.js.map} +0 -0
- /package/bundle/{direct-api-transport-LGYYBJNR.js.map → direct-api-transport-E3LNDBJT.js.map} +0 -0
- /package/bundle/{discord-adapter-6GRRMO4M.js.map → discord-adapter-IT3KP3VB.js.map} +0 -0
- /package/bundle/{heartbeat-system-OATYKHRV.js.map → heartbeat-system-MVTRS4GP.js.map} +0 -0
- /package/bundle/{heartbeat-tier3-JT422XQ4.js.map → heartbeat-tier3-ABWL3P7M.js.map} +0 -0
- /package/bundle/{install-C2WDC4WT.js.map → install-OS3CU7NF.js.map} +0 -0
- /package/bundle/{message-pipeline-X6ENVZBZ.js.map → message-pipeline-P5GAQU4Z.js.map} +0 -0
- /package/bundle/{orc-tools-A3G7WCSJ.js.map → orc-tools-4CHEFWSN.js.map} +0 -0
- /package/bundle/{phase-transport-R6L6EYAD.js.map → phase-transport-PGKU2KD4.js.map} +0 -0
- /package/bundle/{reconciler-FHESO6OC.js.map → reconciler-EBKH3JNU.js.map} +0 -0
- /package/bundle/{skill-session-AXBDQSLQ.js.map → skill-session-BMSRQSHV.js.map} +0 -0
- /package/bundle/{spin-IMW2MZOH.js.map → spin-TI3TSVVT.js.map} +0 -0
- /package/bundle/{subagent-runtime-HLCDLHK5.js.map → subagent-runtime-5QUVES3W.js.map} +0 -0
- /package/bundle/{system-status-FDVKSAFK.js.map → system-status-JZU5FO7B.js.map} +0 -0
- /package/bundle/{telegram-adapter-SIW2DMQX.js.map → telegram-adapter-H6PMFPMB.js.map} +0 -0
- /package/bundle/{tool-registry-DDFUKQY7.js.map → tool-registry-IZX2IOBM.js.map} +0 -0
- /package/bundle/{update-EZWBQTLI.js.map → update-MESYO4LO.js.map} +0 -0
|
@@ -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
|
browser_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5B5B6EHL.js";
|
|
6
6
|
import {
|
|
7
7
|
sleep_exports
|
|
8
8
|
} from "./chunk-LGP6TYFI.js";
|
|
@@ -33,4 +33,4 @@ var capabilities = [
|
|
|
33
33
|
export {
|
|
34
34
|
capabilities
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=_registry.generated-
|
|
36
|
+
//# sourceMappingURL=_registry.generated-WGR4WOPT.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-UPRZDU6T.js";
|
|
6
|
+
import "./chunk-SIFPBTI4.js";
|
|
7
7
|
import {
|
|
8
8
|
rollback
|
|
9
9
|
} from "./chunk-HZDLFLRP.js";
|
|
@@ -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-MESYO4LO.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-EPDWNHJU.js");
|
|
1422
1422
|
return await deployActivationCli(flags);
|
|
1423
1423
|
}
|
|
1424
1424
|
case "rollback":
|
package/bundle/abtars.js
CHANGED
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
createSkillStatsFlushTask,
|
|
20
20
|
createUpdateCheckTask,
|
|
21
21
|
phasePipelineDeps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HKRSMUXJ.js";
|
|
23
23
|
import {
|
|
24
24
|
loadNLMConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BROFMHC2.js";
|
|
26
26
|
import "./chunk-63A7ZRIH.js";
|
|
27
27
|
import "./chunk-OKAQICWY.js";
|
|
28
28
|
import {
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
init_heartbeat_system,
|
|
32
32
|
init_platform_detect,
|
|
33
33
|
setHeartbeatInstance
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LDUOOKQY.js";
|
|
35
35
|
import {
|
|
36
36
|
sendNotification
|
|
37
37
|
} from "./chunk-7BSQ5UQO.js";
|
|
38
38
|
import {
|
|
39
39
|
phaseTransport
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YRU2K3O6.js";
|
|
41
41
|
import {
|
|
42
42
|
resetAllCtxStarts
|
|
43
43
|
} from "./chunk-JQDJPUHM.js";
|
|
@@ -45,11 +45,11 @@ import "./chunk-ZAA7B5BN.js";
|
|
|
45
45
|
import {
|
|
46
46
|
loadAndValidateConfig
|
|
47
47
|
} from "./chunk-NDCRWEEJ.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-GXL7HJPT.js";
|
|
49
49
|
import "./chunk-5QUTMUIK.js";
|
|
50
50
|
import {
|
|
51
51
|
SubagentRuntime
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-3AAENI2K.js";
|
|
53
53
|
import {
|
|
54
54
|
createCapabilityRegistry
|
|
55
55
|
} from "./chunk-XX6BGTPO.js";
|
|
@@ -60,16 +60,16 @@ import {
|
|
|
60
60
|
} from "./chunk-YRSMGJFP.js";
|
|
61
61
|
import {
|
|
62
62
|
setPeerActivityCallback
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-W4EA4GCA.js";
|
|
64
|
+
import "./chunk-4UL3KINB.js";
|
|
65
65
|
import "./chunk-MV6CJFWR.js";
|
|
66
66
|
import "./chunk-URQPDCK5.js";
|
|
67
67
|
import "./chunk-VOLAZHA2.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-XWRADSXO.js";
|
|
69
69
|
import {
|
|
70
70
|
init_spin,
|
|
71
71
|
spin
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ONBF5DDU.js";
|
|
73
73
|
import "./chunk-FRKW6LWB.js";
|
|
74
74
|
import "./chunk-YWZPKBO6.js";
|
|
75
75
|
import {
|
|
@@ -1059,6 +1059,30 @@ async function phaseMemory(ctx) {
|
|
|
1059
1059
|
await memory.initialize();
|
|
1060
1060
|
ctx.memory = memory;
|
|
1061
1061
|
logDebug("main", `\u{1F9E0} Memory enabled (dir=${ctx.memoryConfig.memoryDir})`);
|
|
1062
|
+
const { setMemoryBackend } = await import("./tool-registry-IZX2IOBM.js");
|
|
1063
|
+
const mm = ctx.memory;
|
|
1064
|
+
const backend = {
|
|
1065
|
+
initialize: async () => {
|
|
1066
|
+
},
|
|
1067
|
+
close: () => {
|
|
1068
|
+
},
|
|
1069
|
+
instantStore: (p) => mm.editor.instantStore(p),
|
|
1070
|
+
editMemory: (p) => mm.editor.editMemory(p),
|
|
1071
|
+
reclassifyMemory: (id, level, uo) => {
|
|
1072
|
+
mm.editor.reclassifyMemory(id, level, uo);
|
|
1073
|
+
return Promise.resolve();
|
|
1074
|
+
},
|
|
1075
|
+
adjustRelevance: (id, delta) => {
|
|
1076
|
+
mm.editor.adjustRelevance(id, delta);
|
|
1077
|
+
return Promise.resolve();
|
|
1078
|
+
},
|
|
1079
|
+
mergeMemories: (a, b) => mm.editor.mergeMemories(a, b),
|
|
1080
|
+
cascadeDelete: (ids, uid) => mm.editor.cascadeDelete(ids, uid),
|
|
1081
|
+
recall: (p) => mm.recallSearch(p),
|
|
1082
|
+
rebuildFtsIndexes: () => mm.rebuildFtsIndexes()
|
|
1083
|
+
};
|
|
1084
|
+
setMemoryBackend(backend);
|
|
1085
|
+
logInfo("main", "\u{1F9E0} In-process memory wired to tool registry (shared handle)");
|
|
1062
1086
|
return "ran";
|
|
1063
1087
|
} catch (err) {
|
|
1064
1088
|
logWarn("main", `\u26A0\uFE0F Memory init failed: ${err instanceof Error ? err.message : String(err)}. Running without persistent memory.`);
|
|
@@ -1147,7 +1171,7 @@ async function phasePlatformsConnect(ctx) {
|
|
|
1147
1171
|
registry.register("telegram", {
|
|
1148
1172
|
configured: Boolean(config.telegram.botToken && config.telegram.allowedUserIds.size > 0),
|
|
1149
1173
|
async create() {
|
|
1150
|
-
const { TelegramAdapter } = await import("./telegram-adapter-
|
|
1174
|
+
const { TelegramAdapter } = await import("./telegram-adapter-H6PMFPMB.js");
|
|
1151
1175
|
const adapter = new TelegramAdapter(
|
|
1152
1176
|
{ botToken: config.telegram.botToken, allowedUserIds: config.telegram.allowedUserIds, pollTimeoutS: config.telegram.pollTimeoutS },
|
|
1153
1177
|
{ pipeline: { handleInbound: (msg) => recovery.handle(msg, adapter) }, conversationBuffer: ctx.conversationBuffer, transport: null, memory: null, sessionManager: ctx.sessionManager, actionGate: ctx.actionGate }
|
|
@@ -1179,7 +1203,7 @@ async function phasePlatformsConnect(ctx) {
|
|
|
1179
1203
|
if (!config.discord.appId || !isValidSnowflake(config.discord.appId)) {
|
|
1180
1204
|
throw new Error("DISCORD_APP_ID missing or invalid \u2014 Discord disabled");
|
|
1181
1205
|
}
|
|
1182
|
-
const { DiscordAdapter } = await import("./discord-adapter-
|
|
1206
|
+
const { DiscordAdapter } = await import("./discord-adapter-IT3KP3VB.js");
|
|
1183
1207
|
const adapter = new DiscordAdapter(
|
|
1184
1208
|
{ botToken: config.discord.botToken, appId: config.discord.appId, allowedUserIds: config.discord.allowedUserIds },
|
|
1185
1209
|
{ pipeline: { handleInbound: (msg) => recovery.handle(msg, adapter) }, transport: null, memory: null, conversationBuffer: ctx.conversationBuffer }
|
|
@@ -1257,13 +1281,13 @@ async function phaseCapabilities(ctx) {
|
|
|
1257
1281
|
let loaded = [];
|
|
1258
1282
|
let staticCaps;
|
|
1259
1283
|
try {
|
|
1260
|
-
({ capabilities: staticCaps } = await import("./_registry.generated-
|
|
1284
|
+
({ capabilities: staticCaps } = await import("./_registry.generated-WGR4WOPT.js"));
|
|
1261
1285
|
} catch (err) {
|
|
1262
1286
|
logError("capabilities", `Registry import failed: ${err instanceof Error ? err.message : String(err)}. Loading individually.`);
|
|
1263
1287
|
staticCaps = [];
|
|
1264
1288
|
const individualCaps = [
|
|
1265
1289
|
{ name: "hotskills", load: () => import("./hotskills-FWX4QI7V.js") },
|
|
1266
|
-
{ name: "browser", load: () => import("./browser-
|
|
1290
|
+
{ name: "browser", load: () => import("./browser-DMARZJIN.js") }
|
|
1267
1291
|
];
|
|
1268
1292
|
for (const { name, load } of individualCaps) {
|
|
1269
1293
|
if (disabled.has(name)) continue;
|
|
@@ -1401,16 +1425,12 @@ async function phaseHeartbeat(ctx) {
|
|
|
1401
1425
|
}
|
|
1402
1426
|
}
|
|
1403
1427
|
});
|
|
1404
|
-
const { spin: spin2 } = await import("./spin-
|
|
1428
|
+
const { spin: spin2 } = await import("./spin-TI3TSVVT.js");
|
|
1405
1429
|
const masterUser = loadUsers().users.find((u) => u.role === "master");
|
|
1406
1430
|
const masterUserId = masterUser?.userId ?? "master";
|
|
1407
1431
|
ctx.sendSystemMessage = async (prompt) => {
|
|
1408
1432
|
try {
|
|
1409
|
-
|
|
1410
|
-
if (response) {
|
|
1411
|
-
const { sendNotification: sendNotification2 } = await import("./notification-BFSIEECG.js");
|
|
1412
|
-
sendNotification2(ctx, response);
|
|
1413
|
-
}
|
|
1433
|
+
await spin2.injectGreeting(masterUserId, `[SYSTEM] ${prompt}`);
|
|
1414
1434
|
} catch (err) {
|
|
1415
1435
|
logWarn("main", `System message failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
1416
1436
|
}
|
|
@@ -1430,7 +1450,7 @@ async function phaseSleep(ctx) {
|
|
|
1430
1450
|
return "skipped";
|
|
1431
1451
|
}
|
|
1432
1452
|
const { createSleepHandle } = await import("./sleep-36XS6MHJ.js");
|
|
1433
|
-
const { killWakeInhibit } = await import("./commands-
|
|
1453
|
+
const { killWakeInhibit } = await import("./commands-XYEGVUZF.js");
|
|
1434
1454
|
const SLEEP_HOUR = parseInt(readEnvWithDefault("BED_TIME", "2", "bedtime hour").split(":")[0] ?? "2", 10);
|
|
1435
1455
|
let subagent = null;
|
|
1436
1456
|
const { getEnv: getEnv2 } = await import("./env-schema-4JXQUOH4.js");
|
|
@@ -2610,7 +2630,7 @@ var AgentApiServer = class {
|
|
|
2610
2630
|
if (!ws || ws.readyState !== ws.OPEN) return;
|
|
2611
2631
|
let result = { error: "unknown method" };
|
|
2612
2632
|
if (msg.method === "delegate") {
|
|
2613
|
-
const { spin: spin2 } = await import("./spin-
|
|
2633
|
+
const { spin: spin2 } = await import("./spin-TI3TSVVT.js");
|
|
2614
2634
|
const p = msg.payload;
|
|
2615
2635
|
const { cardId } = spin2.dispatch({ type: "W", goal: p.goal, title: p.goal.slice(0, 60), source: "peer", priority: p.priority ?? "MEDIUM" });
|
|
2616
2636
|
result = { ok: true, taskId: cardId };
|
|
@@ -2777,7 +2797,7 @@ var AgentApiServer = class {
|
|
|
2777
2797
|
}
|
|
2778
2798
|
async handleOrcRoute(url, method, req, res) {
|
|
2779
2799
|
try {
|
|
2780
|
-
const { getOrcTools } = await import("./orc-tools-
|
|
2800
|
+
const { getOrcTools } = await import("./orc-tools-4CHEFWSN.js");
|
|
2781
2801
|
if (url === "/v1/orc/spawn" && method === "POST") {
|
|
2782
2802
|
const body = JSON.parse(await readBody(req));
|
|
2783
2803
|
const tool = getOrcTools().find((t) => t.name === "spawn_worker");
|
|
@@ -3040,7 +3060,7 @@ var AgentApiServer = class {
|
|
|
3040
3060
|
res.writeHead(400, { "Content-Type": "application/json" }).end(JSON.stringify(openaiError("Missing 'goal' field", "invalid_request_error", "missing_field")));
|
|
3041
3061
|
return;
|
|
3042
3062
|
}
|
|
3043
|
-
const { spin: spin2 } = await import("./spin-
|
|
3063
|
+
const { spin: spin2 } = await import("./spin-TI3TSVVT.js");
|
|
3044
3064
|
const { cardId, sessionId } = spin2.dispatch({
|
|
3045
3065
|
type: "O",
|
|
3046
3066
|
goal: body.context ? `${goal}
|
|
@@ -3184,7 +3204,7 @@ Context: ${body.context}` : goal,
|
|
|
3184
3204
|
kanbanAddTokens(card.id, body.tokens_used);
|
|
3185
3205
|
}
|
|
3186
3206
|
try {
|
|
3187
|
-
const { spin: spin2 } = await import("./spin-
|
|
3207
|
+
const { spin: spin2 } = await import("./spin-TI3TSVVT.js");
|
|
3188
3208
|
const meta = JSON.parse(card.notes ?? "{}");
|
|
3189
3209
|
if (meta.remote_session_id) {
|
|
3190
3210
|
const hollow = spin2.listAllSessions().find((s) => s.peer === caller && s.remoteSessionId === meta.remote_session_id);
|
|
@@ -3219,7 +3239,7 @@ async function phaseAgentApi(ctx) {
|
|
|
3219
3239
|
sendNotification(ctx, msg);
|
|
3220
3240
|
};
|
|
3221
3241
|
setPeerActivityCallback(notifyPeer);
|
|
3222
|
-
const { AgentApiAdapter } = await import("./agent-api-adapter-
|
|
3242
|
+
const { AgentApiAdapter } = await import("./agent-api-adapter-YAHKQMMZ.js");
|
|
3223
3243
|
const a2aAdapter = new AgentApiAdapter();
|
|
3224
3244
|
registry.register("agent-api", {
|
|
3225
3245
|
configured: Boolean(agentConfig.port),
|
|
@@ -3524,7 +3544,7 @@ ${lines.join("\n")}`);
|
|
|
3524
3544
|
}
|
|
3525
3545
|
}
|
|
3526
3546
|
if (ctx.telegramAdapter) {
|
|
3527
|
-
const { spin: spin2 } = await import("./spin-
|
|
3547
|
+
const { spin: spin2 } = await import("./spin-TI3TSVVT.js");
|
|
3528
3548
|
spin2.setGreetingAdapter(ctx.telegramAdapter);
|
|
3529
3549
|
}
|
|
3530
3550
|
return bridge.waitForExit();
|