@open-artifacts/bus 0.137.0 → 0.138.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 +2 -2
- package/assets/oa_bus/copy.py +1 -1
- package/dist/index.js +10 -4
- 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.138.0";
|
|
15
15
|
|
|
16
16
|
type Frame = Json & { type: string; id: string };
|
|
17
17
|
type Ctx = {
|
|
@@ -195,7 +195,7 @@ function receiptText(
|
|
|
195
195
|
const tail = (v: string) =>
|
|
196
196
|
r.reason === "recipient_closed"
|
|
197
197
|
? `was not delivered because ${v} closed first.`
|
|
198
|
-
: `was not
|
|
198
|
+
: `was not confirmed as delivered. Mail waits at most ${RETAIN}.`;
|
|
199
199
|
const head = (v: string) => `× Expired: your message to ${v}`;
|
|
200
200
|
if (!quote) return fitLine((v) => `${head(v)} ${tail(v)}`, to);
|
|
201
201
|
return fitLine((v) => quoted(head(v), quote, tail(v)), to);
|
package/assets/oa_bus/copy.py
CHANGED
|
@@ -142,7 +142,7 @@ def receipt_text(r, sent_to, namespaces=None, excerpt=None, moved_to=None, linke
|
|
|
142
142
|
def tail(v):
|
|
143
143
|
if reason == "recipient_closed":
|
|
144
144
|
return f"was not delivered because {v} closed first."
|
|
145
|
-
return f"was not
|
|
145
|
+
return f"was not confirmed as delivered. Mail waits at most {RETAIN}."
|
|
146
146
|
|
|
147
147
|
def head(v):
|
|
148
148
|
return f"× Expired: your message to {v}"
|
package/dist/index.js
CHANGED
|
@@ -32066,6 +32066,7 @@ var init_protocol2 = __esm({
|
|
|
32066
32066
|
init_ids();
|
|
32067
32067
|
init_kinds();
|
|
32068
32068
|
init_limits();
|
|
32069
|
+
init_meta();
|
|
32069
32070
|
init_names();
|
|
32070
32071
|
init_namespace();
|
|
32071
32072
|
init_receipts();
|
|
@@ -32289,7 +32290,12 @@ var init_protocol2 = __esm({
|
|
|
32289
32290
|
type: external_exports.literal("deliver"),
|
|
32290
32291
|
msg_id: MsgIdSchema,
|
|
32291
32292
|
to_ref: AgentRefSchema,
|
|
32292
|
-
|
|
32293
|
+
/**
|
|
32294
|
+
* The sender's name, or the instance's reserved sender (#1317: the hub's
|
|
32295
|
+
* server notices). Only a server frame carries the reserved name: every
|
|
32296
|
+
* name an agent can send or register still refuses it (BusNameSchema).
|
|
32297
|
+
*/
|
|
32298
|
+
from_name: external_exports.union([BusNameSchema, external_exports.literal(INSTANCE_SENDER_NAME)]),
|
|
32293
32299
|
/** The sender's agent id on the hub: a reply names it as `to_id`. */
|
|
32294
32300
|
from_id: IdSchema.optional(),
|
|
32295
32301
|
/** The SENDER's namespace, so a reply can set `to_namespace` from it. */
|
|
@@ -32428,7 +32434,7 @@ var init_frames = __esm({
|
|
|
32428
32434
|
late = { late: external_exports.array(external_exports.string().min(1)).optional() };
|
|
32429
32435
|
isWellFormed2 = (s) => s.isWellFormed();
|
|
32430
32436
|
WELL_FORMED = { message: "text is not well-formed unicode" };
|
|
32431
|
-
CLIENT_VERSION = true ? "0.
|
|
32437
|
+
CLIENT_VERSION = true ? "0.138.0" : "0.0.0";
|
|
32432
32438
|
clientVersion = {
|
|
32433
32439
|
client_version: external_exports.string().min(1).max(64).optional()
|
|
32434
32440
|
};
|
|
@@ -33019,7 +33025,7 @@ function receiptText(r, sentTo, namespaces, excerpt, movedTo2, linkedNs) {
|
|
|
33019
33025
|
case "delivered":
|
|
33020
33026
|
return fitLine((v) => `\u2713 Delivered to ${v}.`, to);
|
|
33021
33027
|
case "expired": {
|
|
33022
|
-
const tail = (v) => r.reason === "recipient_closed" ? `was not delivered because ${v} closed first.` : `was not
|
|
33028
|
+
const tail = (v) => r.reason === "recipient_closed" ? `was not delivered because ${v} closed first.` : `was not confirmed as delivered. Mail waits at most ${RETAIN}.`;
|
|
33023
33029
|
const head = (v) => `\xD7 Expired: your message to ${v}`;
|
|
33024
33030
|
if (!quote) return fitLine((v) => `${head(v)} ${tail(v)}`, to);
|
|
33025
33031
|
return fitLine((v) => quoted(head(v), quote, tail(v)), to);
|
|
@@ -45721,7 +45727,7 @@ var noService = {
|
|
|
45721
45727
|
remove: async () => ({}),
|
|
45722
45728
|
cli: () => ["oa-bus"]
|
|
45723
45729
|
};
|
|
45724
|
-
var VERSION = true ? "0.
|
|
45730
|
+
var VERSION = true ? "0.138.0" : JSON.parse(
|
|
45725
45731
|
readFileSync13(new URL("../package.json", import.meta.url), "utf8")
|
|
45726
45732
|
).version;
|
|
45727
45733
|
var which = (cmd) => {
|