@open-artifacts/bus 0.141.0 → 0.142.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 +30 -7
- 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.142.0";
|
|
15
15
|
|
|
16
16
|
type Frame = Json & { type: string; id: string };
|
|
17
17
|
type Ctx = {
|
package/assets/openclaw/index.js
CHANGED
|
@@ -28817,7 +28817,7 @@ var base = { v: external_exports.literal(V), id: external_exports.string().min(1
|
|
|
28817
28817
|
var late = { late: external_exports.array(external_exports.string().min(1)).optional() };
|
|
28818
28818
|
var isWellFormed = (s) => s.isWellFormed();
|
|
28819
28819
|
var WELL_FORMED = { message: "text is not well-formed unicode" };
|
|
28820
|
-
var CLIENT_VERSION = true ? "0.
|
|
28820
|
+
var CLIENT_VERSION = true ? "0.142.0" : "0.0.0";
|
|
28821
28821
|
var clientVersion = {
|
|
28822
28822
|
client_version: external_exports.string().min(1).max(64).optional()
|
|
28823
28823
|
};
|
package/dist/index.js
CHANGED
|
@@ -31425,7 +31425,14 @@ var init_caps = __esm({
|
|
|
31425
31425
|
* it (any other gets `bad_frame`, as an old hub would) and lists it in
|
|
31426
31426
|
* `hello_ok.caps`; a client sends them only when it did.
|
|
31427
31427
|
*/
|
|
31428
|
-
follow: "follow"
|
|
31428
|
+
follow: "follow",
|
|
31429
|
+
/**
|
|
31430
|
+
* Session links (#1822): the client may send `link_bind` and decodes
|
|
31431
|
+
* `link_bound`. The hub answers it only on a socket whose hello listed it
|
|
31432
|
+
* (any other gets `bad_frame`, as an old hub would) and lists it in
|
|
31433
|
+
* `hello_ok.caps`; a client sends it only when it did.
|
|
31434
|
+
*/
|
|
31435
|
+
link: "link"
|
|
31429
31436
|
};
|
|
31430
31437
|
MAX_CAPS = 16;
|
|
31431
31438
|
CapTokenSchema = external_exports.string().regex(/^[a-z][a-z0-9_-]{0,31}$/);
|
|
@@ -32185,7 +32192,7 @@ function decode3(raw, schema, caps) {
|
|
|
32185
32192
|
function decodeServerFrame(raw) {
|
|
32186
32193
|
return decode3(raw, ServerFrameSchema, SERVER_CAPS);
|
|
32187
32194
|
}
|
|
32188
|
-
var PING, PONG, isWellFormed, WellFormedText, FrameIdSchema, base, BodySchema, InlineBodySchema, distinct, Hello, AgentUp, AgentDown, Sessions, Send, Ack, Refuse, List, Fetch, Status, Rename, FollowRefSchema, Follow, Unfollow, Following, MAX_FOLLOWS, FollowEntry, Followed, Unfollowed, Follows, HelloOk, AgentOk, Renamed, ReceiptFrame, RosterAgent, Roster, BodyFrame, AGENT_CAP_MESSAGES, ErrorFrame, Notice, Deliver, ReceiptUpdate, RosterChanged, ClientFrameSchema, ServerFrameSchema, FrameSchema, MAX_RAW_FRAME_CHARS, SERVER_CAPS, MAX_OBJECT_TOKENS, ID_PREFIX_RE;
|
|
32195
|
+
var PING, PONG, isWellFormed, WellFormedText, FrameIdSchema, base, BodySchema, InlineBodySchema, distinct, Hello, AgentUp, AgentDown, Sessions, Send, Ack, Refuse, List, Fetch, Status, Rename, FollowRefSchema, Follow, Unfollow, Following, LinkProofSchema, LinkProofHashSchema, LinkBind, LinkBound, MAX_FOLLOWS, FollowEntry, Followed, Unfollowed, Follows, HelloOk, AgentOk, Renamed, ReceiptFrame, RosterAgent, Roster, BodyFrame, AGENT_CAP_MESSAGES, ErrorFrame, Notice, Deliver, ReceiptUpdate, RosterChanged, ClientFrameSchema, ServerFrameSchema, FrameSchema, MAX_RAW_FRAME_CHARS, SERVER_CAPS, MAX_OBJECT_TOKENS, ID_PREFIX_RE;
|
|
32189
32196
|
var init_protocol2 = __esm({
|
|
32190
32197
|
"../bus-protocol/src/protocol.ts"() {
|
|
32191
32198
|
"use strict";
|
|
@@ -32339,6 +32346,18 @@ var init_protocol2 = __esm({
|
|
|
32339
32346
|
type: external_exports.literal("following"),
|
|
32340
32347
|
from_ref: AgentRefSchema
|
|
32341
32348
|
});
|
|
32349
|
+
LinkProofSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{43}$/);
|
|
32350
|
+
LinkProofHashSchema = external_exports.string().regex(/^[0-9a-f]{64}$/);
|
|
32351
|
+
LinkBind = external_exports.strictObject({
|
|
32352
|
+
...base,
|
|
32353
|
+
type: external_exports.literal("link_bind"),
|
|
32354
|
+
agent_ref: AgentRefSchema,
|
|
32355
|
+
hash: LinkProofHashSchema
|
|
32356
|
+
});
|
|
32357
|
+
LinkBound = external_exports.strictObject({
|
|
32358
|
+
...base,
|
|
32359
|
+
type: external_exports.literal("link_bound")
|
|
32360
|
+
});
|
|
32342
32361
|
MAX_FOLLOWS = 200;
|
|
32343
32362
|
FollowEntry = external_exports.strictObject({
|
|
32344
32363
|
artifact_id: external_exports.string().min(1).max(64),
|
|
@@ -32498,7 +32517,8 @@ var init_protocol2 = __esm({
|
|
|
32498
32517
|
Rename,
|
|
32499
32518
|
Follow,
|
|
32500
32519
|
Unfollow,
|
|
32501
|
-
Following
|
|
32520
|
+
Following,
|
|
32521
|
+
LinkBind
|
|
32502
32522
|
]);
|
|
32503
32523
|
ServerFrameSchema = external_exports.discriminatedUnion("type", [
|
|
32504
32524
|
HelloOk,
|
|
@@ -32513,7 +32533,8 @@ var init_protocol2 = __esm({
|
|
|
32513
32533
|
Renamed,
|
|
32514
32534
|
Followed,
|
|
32515
32535
|
Unfollowed,
|
|
32516
|
-
Follows
|
|
32536
|
+
Follows,
|
|
32537
|
+
LinkBound
|
|
32517
32538
|
]);
|
|
32518
32539
|
FrameSchema = external_exports.discriminatedUnion("type", [
|
|
32519
32540
|
Hello,
|
|
@@ -32530,6 +32551,7 @@ var init_protocol2 = __esm({
|
|
|
32530
32551
|
Follow,
|
|
32531
32552
|
Unfollow,
|
|
32532
32553
|
Following,
|
|
32554
|
+
LinkBind,
|
|
32533
32555
|
HelloOk,
|
|
32534
32556
|
AgentOk,
|
|
32535
32557
|
ReceiptFrame,
|
|
@@ -32542,7 +32564,8 @@ var init_protocol2 = __esm({
|
|
|
32542
32564
|
Renamed,
|
|
32543
32565
|
Followed,
|
|
32544
32566
|
Unfollowed,
|
|
32545
|
-
Follows
|
|
32567
|
+
Follows,
|
|
32568
|
+
LinkBound
|
|
32546
32569
|
]);
|
|
32547
32570
|
MAX_RAW_FRAME_CHARS = 2 * LIMITS.maxMessageBytes + 4096;
|
|
32548
32571
|
SERVER_CAPS = { depth: 5, tokens: 65536, structural: 131072 };
|
|
@@ -32616,7 +32639,7 @@ var init_frames = __esm({
|
|
|
32616
32639
|
late = { late: external_exports.array(external_exports.string().min(1)).optional() };
|
|
32617
32640
|
isWellFormed2 = (s) => s.isWellFormed();
|
|
32618
32641
|
WELL_FORMED = { message: "text is not well-formed unicode" };
|
|
32619
|
-
CLIENT_VERSION = true ? "0.
|
|
32642
|
+
CLIENT_VERSION = true ? "0.142.0" : "0.0.0";
|
|
32620
32643
|
clientVersion = {
|
|
32621
32644
|
client_version: external_exports.string().min(1).max(64).optional()
|
|
32622
32645
|
};
|
|
@@ -46596,7 +46619,7 @@ var noService = {
|
|
|
46596
46619
|
remove: async () => ({}),
|
|
46597
46620
|
cli: () => ["oa-bus"]
|
|
46598
46621
|
};
|
|
46599
|
-
var VERSION = true ? "0.
|
|
46622
|
+
var VERSION = true ? "0.142.0" : JSON.parse(
|
|
46600
46623
|
readFileSync13(new URL("../package.json", import.meta.url), "utf8")
|
|
46601
46624
|
).version;
|
|
46602
46625
|
var which = (cmd) => {
|