@open-artifacts/bus 0.233.0 → 0.235.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 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.233.0";
14
+ const CLIENT_VERSION = "0.235.0";
15
15
 
16
16
  type Frame = Json & { type: string; id: string };
17
17
  type Ctx = {
@@ -27876,7 +27876,7 @@ var base2 = { v: external_exports.literal(V), id: external_exports.string().min(
27876
27876
  var late = { late: external_exports.array(external_exports.string().min(1)).optional() };
27877
27877
  var isWellFormed2 = (s) => s.isWellFormed();
27878
27878
  var WELL_FORMED = { message: "text is not well-formed unicode" };
27879
- var CLIENT_VERSION = true ? "0.233.0" : "0.0.0";
27879
+ var CLIENT_VERSION = true ? "0.235.0" : "0.0.0";
27880
27880
  var clientVersion = {
27881
27881
  client_version: external_exports.string().min(1).max(64).optional()
27882
27882
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-bus",
3
- "version": "0.233.0",
3
+ "version": "0.235.0",
4
4
  "type": "module",
5
5
  "openclaw": {
6
6
  "extensions": [
package/dist/index.js CHANGED
@@ -32905,7 +32905,7 @@ var init_frames = __esm({
32905
32905
  late = { late: external_exports.array(external_exports.string().min(1)).optional() };
32906
32906
  isWellFormed2 = (s) => s.isWellFormed();
32907
32907
  WELL_FORMED = { message: "text is not well-formed unicode" };
32908
- CLIENT_VERSION = true ? "0.233.0" : "0.0.0";
32908
+ CLIENT_VERSION = true ? "0.235.0" : "0.0.0";
32909
32909
  clientVersion = {
32910
32910
  client_version: external_exports.string().min(1).max(64).optional()
32911
32911
  };
@@ -55033,6 +55033,7 @@ async function runDaemon(deps2 = {}) {
55033
55033
  const codexReplayLink = /* @__PURE__ */ new Map();
55034
55034
  let ownerAwayUntil;
55035
55035
  const awayUntil = () => ownerAwayUntil !== void 0 && Date.parse(ownerAwayUntil) > Date.now() ? ownerAwayUntil : void 0;
55036
+ const takesInstance = () => deps2.update?.defaultHome ?? isDefaultHome();
55036
55037
  const switchAcks = /* @__PURE__ */ new Map();
55037
55038
  let updaterRef;
55038
55039
  function flushUpdateReports() {
@@ -55177,7 +55178,7 @@ async function runDaemon(deps2 = {}) {
55177
55178
  return;
55178
55179
  // #2552: only from a hub that listed the cap; anything else is ignored.
55179
55180
  case "run_version":
55180
- if (lane.runCap) {
55181
+ if (lane.main && lane.runCap && takesInstance()) {
55181
55182
  if (frame.run_version === null) updaterRef?.clearNamed();
55182
55183
  else
55183
55184
  void updaterRef?.instructFromInstance(frame.run_version).catch((e) => log(`update: ${errText(e)}`));
@@ -55187,7 +55188,7 @@ async function runDaemon(deps2 = {}) {
55187
55188
  ownerAwayUntil = frame.until ?? void 0;
55188
55189
  return;
55189
55190
  case "install_now":
55190
- if (lane.runCap)
55191
+ if (lane.main && lane.runCap && takesInstance())
55191
55192
  void updaterRef?.installNowFromInstance().catch((e) => log(`update: ${errText(e)}`));
55192
55193
  return;
55193
55194
  case "update_ack":
@@ -55215,9 +55216,11 @@ async function runDaemon(deps2 = {}) {
55215
55216
  if (g.instance === lane.name) announceGuest(g);
55216
55217
  if (lane.main) ownerAwayUntil = frame.owner_away_until ?? void 0;
55217
55218
  if (lane.main && lane.runCap) {
55218
- if (frame.run_version === null) updaterRef?.clearNamed();
55219
- else if (frame.run_version !== void 0)
55220
- void updaterRef?.instructFromInstance(frame.run_version).catch((e) => log(`update: ${errText(e)}`));
55219
+ if (takesInstance()) {
55220
+ if (frame.run_version === null) updaterRef?.clearNamed();
55221
+ else if (frame.run_version !== void 0)
55222
+ void updaterRef?.instructFromInstance(frame.run_version).catch((e) => log(`update: ${errText(e)}`));
55223
+ }
55221
55224
  flushUpdateReports();
55222
55225
  }
55223
55226
  for (const rec of agents.all())
@@ -59458,7 +59461,7 @@ var noService = {
59458
59461
  remove: async () => ({}),
59459
59462
  cli: () => ["oa-bus"]
59460
59463
  };
59461
- var VERSION = true ? "0.233.0" : JSON.parse(
59464
+ var VERSION = true ? "0.235.0" : JSON.parse(
59462
59465
  readFileSync23(new URL("../package.json", import.meta.url), "utf8")
59463
59466
  ).version;
59464
59467
  var which = (cmd) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@open-artifacts/bus",
3
3
  "type": "module",
4
- "version": "0.233.0",
4
+ "version": "0.235.0",
5
5
  "description": "The Open Artifacts bus: your AI agents reach each other across machines.",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -29,6 +29,6 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "oaBus": {
32
- "commit": "81ca2366b8e039817da51d8b78eb356dec9fdaa1"
32
+ "commit": "ed15ddab68795c0fc684b6aea179d898db6cfdd2"
33
33
  }
34
34
  }