usebeeline 0.1.246-rc.2 → 0.1.247-rc.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.
- package/dist/usebeeline.mjs +30 -15
- package/package.json +1 -1
package/dist/usebeeline.mjs
CHANGED
|
@@ -3182,6 +3182,10 @@ var init_system_message_catalog_voice_service = __esm({
|
|
|
3182
3182
|
parts: ["Continue to ", ""],
|
|
3183
3183
|
variables: ["target_replace_g"]
|
|
3184
3184
|
},
|
|
3185
|
+
"workflow-runs.workflow": { parts: ["Workflow"], variables: [] },
|
|
3186
|
+
"workflow-runs.approval": { parts: ["Approval"], variables: [] },
|
|
3187
|
+
"workflow-runs.timed-out-for": { parts: ["timed out for"], variables: [] },
|
|
3188
|
+
"workflow-runs.timed-out": { parts: ["timed out"], variables: [] },
|
|
3185
3189
|
"workflow-runs.the-workflow": {
|
|
3186
3190
|
parts: ["the workflow"],
|
|
3187
3191
|
variables: []
|
|
@@ -24373,6 +24377,13 @@ var init_walls = __esm({
|
|
|
24373
24377
|
}
|
|
24374
24378
|
});
|
|
24375
24379
|
|
|
24380
|
+
// packages/api-contract/dist/tool-schema-portability.js
|
|
24381
|
+
var init_tool_schema_portability = __esm({
|
|
24382
|
+
"packages/api-contract/dist/tool-schema-portability.js"() {
|
|
24383
|
+
"use strict";
|
|
24384
|
+
}
|
|
24385
|
+
});
|
|
24386
|
+
|
|
24376
24387
|
// packages/api-contract/dist/daemon.js
|
|
24377
24388
|
var init_daemon = __esm({
|
|
24378
24389
|
"packages/api-contract/dist/daemon.js"() {
|
|
@@ -24398,6 +24409,7 @@ var init_daemon = __esm({
|
|
|
24398
24409
|
init_walls();
|
|
24399
24410
|
init_work_board();
|
|
24400
24411
|
init_agent_messaging();
|
|
24412
|
+
init_tool_schema_portability();
|
|
24401
24413
|
}
|
|
24402
24414
|
});
|
|
24403
24415
|
|
|
@@ -25609,7 +25621,7 @@ var init_bridge_launch = __esm({
|
|
|
25609
25621
|
});
|
|
25610
25622
|
|
|
25611
25623
|
// apps/body/dist/session-join/bridge.js
|
|
25612
|
-
import { chmodSync as chmodSync3, closeSync as closeSync4, openSync as openSync4, readFileSync as readFileSync8, renameSync as renameSync4, rmSync as rmSync5, writeFileSync as writeFileSync5 } from "node:fs";
|
|
25624
|
+
import { chmodSync as chmodSync3, closeSync as closeSync4, mkdirSync as mkdirSync5, openSync as openSync4, readFileSync as readFileSync8, renameSync as renameSync4, rmSync as rmSync5, writeFileSync as writeFileSync5 } from "node:fs";
|
|
25613
25625
|
import { createServer as createServer2 } from "node:net";
|
|
25614
25626
|
import { dirname as dirname9, join as join10 } from "node:path";
|
|
25615
25627
|
import { createHash as createHash7 } from "node:crypto";
|
|
@@ -25923,16 +25935,7 @@ async function runBridge(dir, runner2) {
|
|
|
25923
25935
|
});
|
|
25924
25936
|
const sources = machineSources(dir);
|
|
25925
25937
|
const streams = /* @__PURE__ */ new Map();
|
|
25926
|
-
const stopWatching =
|
|
25927
|
-
if (path === null || /^(?:hooks|inbox|deliveries|claude-mcp)(?:\/|$)/.test(path))
|
|
25928
|
-
changed();
|
|
25929
|
-
}, {
|
|
25930
|
-
recursive: true,
|
|
25931
|
-
onError: (error) => {
|
|
25932
|
-
log(dir, `local watcher failed: ${error.message}`);
|
|
25933
|
-
stop();
|
|
25934
|
-
}
|
|
25935
|
-
});
|
|
25938
|
+
const stopWatching = [];
|
|
25936
25939
|
const stop = () => {
|
|
25937
25940
|
if (!activated)
|
|
25938
25941
|
process.exit(0);
|
|
@@ -26024,6 +26027,17 @@ async function runBridge(dir, runner2) {
|
|
|
26024
26027
|
void job.finally(() => jobs.delete(job));
|
|
26025
26028
|
};
|
|
26026
26029
|
try {
|
|
26030
|
+
for (const name of ["hooks", "inbox", "deliveries", "claude-mcp"]) {
|
|
26031
|
+
const path = join10(dir, name);
|
|
26032
|
+
mkdirSync5(path, { recursive: true, mode: 448 });
|
|
26033
|
+
stopWatching.push(watchChanges(path, changed, {
|
|
26034
|
+
recursive: name === "deliveries",
|
|
26035
|
+
onError: (error) => {
|
|
26036
|
+
log(dir, `local watcher failed: ${error.message}`);
|
|
26037
|
+
stop();
|
|
26038
|
+
}
|
|
26039
|
+
}));
|
|
26040
|
+
}
|
|
26027
26041
|
if (staged) {
|
|
26028
26042
|
if (!expected.size)
|
|
26029
26043
|
throw new Error("No joined sessions to activate");
|
|
@@ -26074,7 +26088,8 @@ async function runBridge(dir, runner2) {
|
|
|
26074
26088
|
await owner?.release();
|
|
26075
26089
|
throw error;
|
|
26076
26090
|
} finally {
|
|
26077
|
-
stopWatching
|
|
26091
|
+
for (const close of stopWatching)
|
|
26092
|
+
close();
|
|
26078
26093
|
for (const stream of streams.values()) {
|
|
26079
26094
|
stream.controller.abort();
|
|
26080
26095
|
}
|
|
@@ -26509,7 +26524,7 @@ __export(command_exports, {
|
|
|
26509
26524
|
findOwnSession: () => findOwnSession,
|
|
26510
26525
|
runSessionCommand: () => runSessionCommand
|
|
26511
26526
|
});
|
|
26512
|
-
import { closeSync as closeSync5, constants, copyFileSync as copyFileSync2, existsSync as existsSync7, fsyncSync, mkdirSync as
|
|
26527
|
+
import { closeSync as closeSync5, constants, copyFileSync as copyFileSync2, existsSync as existsSync7, fsyncSync, mkdirSync as mkdirSync6, openSync as openSync5, readFileSync as readFileSync10, readdirSync as readdirSync5, renameSync as renameSync5, rmSync as rmSync7, writeFileSync as writeFileSync6 } from "node:fs";
|
|
26513
26528
|
import { delimiter, dirname as dirname10, join as join13, resolve as resolve15 } from "node:path";
|
|
26514
26529
|
import { createHash as createHash8, randomUUID as randomUUID2 } from "node:crypto";
|
|
26515
26530
|
function writePending(file, pending) {
|
|
@@ -26582,7 +26597,7 @@ function runner(dir, env) {
|
|
|
26582
26597
|
const bundle = join13(dir, "usebeeline.mjs");
|
|
26583
26598
|
const running = resolve15(process.argv[1] ?? "");
|
|
26584
26599
|
if (running !== bundle && running.endsWith(".mjs")) {
|
|
26585
|
-
|
|
26600
|
+
mkdirSync6(dir, { recursive: true, mode: 448 });
|
|
26586
26601
|
try {
|
|
26587
26602
|
copyFileSync2(running, bundle, constants.COPYFILE_EXCL);
|
|
26588
26603
|
} catch (error) {
|
|
@@ -26655,7 +26670,7 @@ async function joinCommand(args, env) {
|
|
|
26655
26670
|
const server = serverUrl(args, env);
|
|
26656
26671
|
const agentBin = sessionAgentBehavior(own2.agent).delivery === "queue" ? which("codex", env) : void 0;
|
|
26657
26672
|
const pendingFile = (state) => {
|
|
26658
|
-
|
|
26673
|
+
mkdirSync6(join13(dir, "pending"), { recursive: true, mode: 448 });
|
|
26659
26674
|
return join13(dir, "pending", `${createHash8("sha256").update(state).digest("hex").slice(0, 24)}.json`);
|
|
26660
26675
|
};
|
|
26661
26676
|
const attachment = flag(args, "--attach");
|