@open-artifacts/bus 0.174.0 → 0.175.0
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/assets/oa-bus.ts +1 -1
- package/assets/openclaw/index.js +1 -1
- package/assets/openclaw/package.json +1 -1
- package/dist/index.js +8 -5
- package/package.json +1 -1
package/assets/oa-bus.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { StringDecoder } from "node:string_decoder";
|
|
|
11
11
|
type Json = Record<string, unknown>;
|
|
12
12
|
|
|
13
13
|
/** The IPC marker (CONTRACT.md): the package version, stamped by the CLI's bundler. */
|
|
14
|
-
const CLIENT_VERSION = "0.
|
|
14
|
+
const CLIENT_VERSION = "0.175.0";
|
|
15
15
|
|
|
16
16
|
type Frame = Json & { type: string; id: string };
|
|
17
17
|
type Ctx = {
|
package/assets/openclaw/index.js
CHANGED
|
@@ -27744,7 +27744,7 @@ var base2 = { v: external_exports.literal(V), id: external_exports.string().min(
|
|
|
27744
27744
|
var late = { late: external_exports.array(external_exports.string().min(1)).optional() };
|
|
27745
27745
|
var isWellFormed2 = (s) => s.isWellFormed();
|
|
27746
27746
|
var WELL_FORMED = { message: "text is not well-formed unicode" };
|
|
27747
|
-
var CLIENT_VERSION = true ? "0.
|
|
27747
|
+
var CLIENT_VERSION = true ? "0.175.0" : "0.0.0";
|
|
27748
27748
|
var clientVersion = {
|
|
27749
27749
|
client_version: external_exports.string().min(1).max(64).optional()
|
|
27750
27750
|
};
|
package/dist/index.js
CHANGED
|
@@ -32729,7 +32729,7 @@ var init_frames = __esm({
|
|
|
32729
32729
|
late = { late: external_exports.array(external_exports.string().min(1)).optional() };
|
|
32730
32730
|
isWellFormed2 = (s) => s.isWellFormed();
|
|
32731
32731
|
WELL_FORMED = { message: "text is not well-formed unicode" };
|
|
32732
|
-
CLIENT_VERSION = true ? "0.
|
|
32732
|
+
CLIENT_VERSION = true ? "0.175.0" : "0.0.0";
|
|
32733
32733
|
clientVersion = {
|
|
32734
32734
|
client_version: external_exports.string().min(1).max(64).optional()
|
|
32735
32735
|
};
|
|
@@ -40538,13 +40538,16 @@ function lockHoldersLinux(files2, procRoot = "/proc") {
|
|
|
40538
40538
|
});
|
|
40539
40539
|
return out;
|
|
40540
40540
|
}
|
|
40541
|
+
var REAL_LOCKS = /* @__PURE__ */ new Set(["FLOCK", "POSIX", "OFDLCK"]);
|
|
40541
40542
|
function fdHoldsLock(procRoot, pid, fd, st) {
|
|
40542
40543
|
try {
|
|
40543
40544
|
const { major, minor } = devParts(st.dev);
|
|
40544
40545
|
const want = `${major}:${minor}:${st.ino}`;
|
|
40545
40546
|
return readFileSync4(join5(procRoot, String(pid), "fdinfo", fd), "utf8").split("\n").some((l) => {
|
|
40546
40547
|
if (!l.startsWith("lock:")) return false;
|
|
40547
|
-
const
|
|
40548
|
+
const f = l.trim().split(/\s+/);
|
|
40549
|
+
if (!REAL_LOCKS.has(f[2] ?? "")) return false;
|
|
40550
|
+
const [maj, min, ino] = (f[6] ?? "").split(":");
|
|
40548
40551
|
if (!maj || !min || !ino) return false;
|
|
40549
40552
|
if (!/^[0-9a-f]+$/i.test(maj + min) || !/^\d+$/.test(ino)) return false;
|
|
40550
40553
|
return `${BigInt(`0x${maj}`)}:${BigInt(`0x${min}`)}:${ino}` === want;
|
|
@@ -45464,7 +45467,7 @@ function createEventLog(file2, opts = {}) {
|
|
|
45464
45467
|
const again = await lstat(dir);
|
|
45465
45468
|
if (again.isSymbolicLink() || again.dev !== st.dev || again.ino !== st.ino)
|
|
45466
45469
|
throw new Error("folder changed");
|
|
45467
|
-
await dh.chmod(448);
|
|
45470
|
+
if ((st.mode & 511) !== 448) await dh.chmod(448);
|
|
45468
45471
|
return { dev: st.dev, ino: st.ino };
|
|
45469
45472
|
} finally {
|
|
45470
45473
|
await dh.close();
|
|
@@ -45483,7 +45486,7 @@ function createEventLog(file2, opts = {}) {
|
|
|
45483
45486
|
);
|
|
45484
45487
|
try {
|
|
45485
45488
|
if (!(await fh.stat()).isFile()) throw new Error("not a regular file");
|
|
45486
|
-
await fh.chmod(384);
|
|
45489
|
+
if (((await fh.stat()).mode & 511) !== 384) await fh.chmod(384);
|
|
45487
45490
|
return fh;
|
|
45488
45491
|
} catch (e) {
|
|
45489
45492
|
await fh.close();
|
|
@@ -50265,7 +50268,7 @@ var noService = {
|
|
|
50265
50268
|
remove: async () => ({}),
|
|
50266
50269
|
cli: () => ["oa-bus"]
|
|
50267
50270
|
};
|
|
50268
|
-
var VERSION = true ? "0.
|
|
50271
|
+
var VERSION = true ? "0.175.0" : JSON.parse(
|
|
50269
50272
|
readFileSync15(new URL("../package.json", import.meta.url), "utf8")
|
|
50270
50273
|
).version;
|
|
50271
50274
|
var which = (cmd) => {
|