@open-artifacts/bus 0.237.0 → 0.238.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.237.0";
14
+ const CLIENT_VERSION = "0.238.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.237.0" : "0.0.0";
27879
+ var CLIENT_VERSION = true ? "0.238.0" : "0.0.0";
27880
27880
  var clientVersion = {
27881
27881
  client_version: external_exports.string().min(1).max(64).optional()
27882
27882
  };
@@ -28099,6 +28099,8 @@ var AgentInfo = external_exports.object({
28099
28099
  namespace: external_exports.string(),
28100
28100
  /** `self` only (#1570). */
28101
28101
  namespace_source: NamespaceSource.optional(),
28102
+ /** Codex self: local delivery attempts awaiting a turn; excludes mail still at the hub. */
28103
+ codex_pending_local: external_exports.number().int().nonnegative().optional(),
28102
28104
  kind: KIND_TOKEN,
28103
28105
  /** `state === "live"`; kept for older adapters. */
28104
28106
  live: external_exports.boolean(),
@@ -30486,7 +30488,10 @@ async function run(name, args, request) {
30486
30488
  if (name === "self") {
30487
30489
  const r = await request({ type: "self", row: true });
30488
30490
  if (r.type !== "agent") return failed(r);
30489
- return text(selfText(r.agent));
30491
+ const entry = selfText(r.agent);
30492
+ return text(
30493
+ r.agent?.kind === "codex" ? entry + "\n\nBus messages arrive in this chat. This response does not count mail still at the hub." : entry
30494
+ );
30490
30495
  }
30491
30496
  return text(`oa-bus: unknown tool ${name}`, true);
30492
30497
  } catch (e) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-bus",
3
- "version": "0.237.0",
3
+ "version": "0.238.0",
4
4
  "type": "module",
5
5
  "openclaw": {
6
6
  "extensions": [