@open-artifacts/bus 0.246.0 → 0.247.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.246.0";
14
+ const CLIENT_VERSION = "0.247.0";
15
15
 
16
16
  type Frame = Json & { type: string; id: string };
17
17
  type Ctx = {
@@ -27204,7 +27204,8 @@ var AGENT_KINDS = [
27204
27204
  "omp",
27205
27205
  "hermes",
27206
27206
  "openclaw",
27207
- "codex"
27207
+ "codex",
27208
+ "antigravity"
27208
27209
  ];
27209
27210
  var AgentKindSchema = external_exports.enum(AGENT_KINDS);
27210
27211
  var KindTokenSchema = external_exports.string().regex(/^[a-z][a-z0-9-]{0,31}$/);
@@ -27876,7 +27877,7 @@ var base2 = { v: external_exports.literal(V), id: external_exports.string().min(
27876
27877
  var late = { late: external_exports.array(external_exports.string().min(1)).optional() };
27877
27878
  var isWellFormed2 = (s) => s.isWellFormed();
27878
27879
  var WELL_FORMED = { message: "text is not well-formed unicode" };
27879
- var CLIENT_VERSION = true ? "0.246.0" : "0.0.0";
27880
+ var CLIENT_VERSION = true ? "0.247.0" : "0.0.0";
27880
27881
  var clientVersion = {
27881
27882
  client_version: external_exports.string().min(1).max(64).optional()
27882
27883
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-bus",
3
- "version": "0.246.0",
3
+ "version": "0.247.0",
4
4
  "type": "module",
5
5
  "openclaw": {
6
6
  "extensions": [
package/dist/index.js CHANGED
@@ -31944,7 +31944,8 @@ var init_kinds = __esm({
31944
31944
  "omp",
31945
31945
  "hermes",
31946
31946
  "openclaw",
31947
- "codex"
31947
+ "codex",
31948
+ "antigravity"
31948
31949
  ];
31949
31950
  AgentKindSchema = external_exports.enum(AGENT_KINDS);
31950
31951
  KindTokenSchema = external_exports.string().regex(/^[a-z][a-z0-9-]{0,31}$/);
@@ -32923,7 +32924,7 @@ var init_frames = __esm({
32923
32924
  late = { late: external_exports.array(external_exports.string().min(1)).optional() };
32924
32925
  isWellFormed2 = (s) => s.isWellFormed();
32925
32926
  WELL_FORMED = { message: "text is not well-formed unicode" };
32926
- CLIENT_VERSION = true ? "0.246.0" : "0.0.0";
32927
+ CLIENT_VERSION = true ? "0.247.0" : "0.0.0";
32927
32928
  clientVersion = {
32928
32929
  client_version: external_exports.string().min(1).max(64).optional()
32929
32930
  };
@@ -44497,6 +44498,43 @@ var init_codex_main = __esm({
44497
44498
  }
44498
44499
  });
44499
44500
 
44501
+ // ../bus-adapter-claude-code/src/antigravity.ts
44502
+ function antigravityServer() {
44503
+ const server4 = new Server(
44504
+ { name: "oa_bus", version: "0.1.0" },
44505
+ { capabilities: { tools: {} } }
44506
+ );
44507
+ server4.setRequestHandler(ListToolsRequestSchema, async () => ({
44508
+ tools: [...TOOLS]
44509
+ }));
44510
+ server4.setRequestHandler(CallToolRequestSchema, async () => ({
44511
+ content: [{ type: "text", text: AGY_NOT_YET }],
44512
+ isError: true
44513
+ }));
44514
+ return server4;
44515
+ }
44516
+ var AGY_NOT_YET;
44517
+ var init_antigravity = __esm({
44518
+ "../bus-adapter-claude-code/src/antigravity.ts"() {
44519
+ "use strict";
44520
+ init_server2();
44521
+ init_types();
44522
+ init_tools();
44523
+ AGY_NOT_YET = "Antigravity can't use the bus yet. A later oa-bus update turns it on.";
44524
+ }
44525
+ });
44526
+
44527
+ // ../bus-adapter-claude-code/src/antigravity-main.ts
44528
+ var antigravity_main_exports = {};
44529
+ var init_antigravity_main = __esm({
44530
+ async "../bus-adapter-claude-code/src/antigravity-main.ts"() {
44531
+ "use strict";
44532
+ init_stdio2();
44533
+ init_antigravity();
44534
+ await antigravityServer().connect(new StdioServerTransport());
44535
+ }
44536
+ });
44537
+
44500
44538
  // ../bus-adapter-claude-code/src/codex-proxy.ts
44501
44539
  import { createHash as createHash13, randomBytes as randomBytes11 } from "node:crypto";
44502
44540
  var EXEC_CALL2, CodexProxy;
@@ -46424,6 +46462,8 @@ function attest(hello, deps2 = {}) {
46424
46462
  }
46425
46463
  return { ok: true };
46426
46464
  }
46465
+ case "antigravity":
46466
+ return attestAntigravity(hello, deps2);
46427
46467
  case "codex":
46428
46468
  if (deps2.codex) return deps2.codex.attestNow(hello);
46429
46469
  defaultCodex ??= codexAttestor();
@@ -46459,6 +46499,18 @@ function attestClaude(hello, deps2) {
46459
46499
  }
46460
46500
  return { ok: false, reason: "no Claude session in the ancestry" };
46461
46501
  }
46502
+ function attestAntigravity(hello, deps2) {
46503
+ if (!hello.attest.proc_start)
46504
+ return { ok: false, reason: "antigravity hello has no proc_start" };
46505
+ if (basename3((deps2.comm ?? commOf)(hello.pid) ?? "") !== "agy")
46506
+ return { ok: false, reason: "antigravity pid does not run agy" };
46507
+ const start = (deps2.procStart ?? procStartOf)(hello.pid);
46508
+ if (!start)
46509
+ return { ok: false, reason: "antigravity process is not running" };
46510
+ if (hello.attest.proc_start !== start)
46511
+ return { ok: false, reason: "antigravity process start time moved" };
46512
+ return { ok: true };
46513
+ }
46462
46514
  function attestOpenCode(hello, deps2) {
46463
46515
  if (!hello.attest.session_id)
46464
46516
  return { ok: false, reason: "opencode hello has no session_id" };
@@ -56896,7 +56948,8 @@ var HARNESS_LABEL = {
56896
56948
  omp: "oh-my-pi",
56897
56949
  codex: "Codex",
56898
56950
  hermes: "Hermes",
56899
- openclaw: "OpenClaw"
56951
+ openclaw: "OpenClaw",
56952
+ antigravity: "Antigravity"
56900
56953
  };
56901
56954
  var KIND_LABEL = {
56902
56955
  "claude-code": "Claude Code",
@@ -56905,7 +56958,8 @@ var KIND_LABEL = {
56905
56958
  omp: "oh-my-pi",
56906
56959
  hermes: "Hermes",
56907
56960
  openclaw: "OpenClaw",
56908
- codex: "Codex"
56961
+ codex: "Codex",
56962
+ antigravity: "Antigravity"
56909
56963
  };
56910
56964
  var kindLabel = (kind4) => Object.hasOwn(KIND_LABEL, kind4) ? KIND_LABEL[kind4] : displayKind(kind4);
56911
56965
  var sourceText = (source) => source === "config" ? "an approved .oa-bus.json" : source === "git" ? "the git remote" : source === "dir" ? "the git folder's name" : "the folder's name";
@@ -57498,6 +57552,16 @@ function copy(style, bus = BUS_CMD, approve) {
57498
57552
  fail3(`${HARNESS_LABEL[h]} is not wired`),
57499
57553
  next(`Run ${bus} to wire it.`)
57500
57554
  ],
57555
+ // Doctor, when agy's MCP config can't be read: install skips it.
57556
+ agyMalformed: (file2) => [
57557
+ fail3(`Antigravity is not wired: ${clip(file2, 33)} isn't valid JSON`),
57558
+ next(`Fix that file, then run ${bus} again.`)
57559
+ ],
57560
+ // Doctor, when our entry is in agy's config but turned off there.
57561
+ agyDisabled: () => [
57562
+ warn("Antigravity has the bus turned off"),
57563
+ next("Turn it on with: agy mcp enable oa_bus")
57564
+ ],
57501
57565
  claudeAccepts: () => done("Claude Code accepts messages from other machines"),
57502
57566
  claudeIsolates: (settings) => [
57503
57567
  warn("Claude Code ignores messages from other machines"),
@@ -59814,7 +59878,7 @@ var noService = {
59814
59878
  remove: async () => ({}),
59815
59879
  cli: () => ["oa-bus"]
59816
59880
  };
59817
- var VERSION = true ? "0.246.0" : JSON.parse(
59881
+ var VERSION = true ? "0.247.0" : JSON.parse(
59818
59882
  readFileSync24(new URL("../package.json", import.meta.url), "utf8")
59819
59883
  ).version;
59820
59884
  var which = (cmd) => {
@@ -61210,6 +61274,63 @@ function removePlugin(text3, pluginPath) {
61210
61274
  list.filter((e) => !names(e, pluginPath))
61211
61275
  );
61212
61276
  }
61277
+ var BOM2 = "\uFEFF";
61278
+ function withoutBom(text3, edit2) {
61279
+ if (!text3.startsWith(BOM2)) return edit2(text3);
61280
+ return BOM2 + edit2(text3.slice(BOM2.length));
61281
+ }
61282
+ function parseAgyMcp(text3, where2) {
61283
+ return parseJsonc(text3.startsWith(BOM2) ? text3.slice(1) : text3, where2);
61284
+ }
61285
+ function upsertAgyMcp(text3, name, server4, home2) {
61286
+ return withoutBom(text3, (body) => {
61287
+ const doc = parseJsonc(body, "mcp_config.json");
61288
+ const servers4 = record4(doc.mcpServers, "mcpServers");
61289
+ const at = ["mcpServers", name];
61290
+ const entry = record4(servers4?.[name], `mcpServers.${name}`);
61291
+ if (entry === void 0) {
61292
+ const want = {
61293
+ ...server4,
61294
+ ...home2 === void 0 ? {} : { env: { OA_BUS_HOME: home2 } }
61295
+ };
61296
+ return verified(insert(body, at, want), at, want);
61297
+ }
61298
+ let out = body;
61299
+ for (const k of ["url", "serverUrl"])
61300
+ if (entry[k] !== void 0) out = removeAt(out, [...at, k]);
61301
+ if (!same2(entry.command, server4.command))
61302
+ out = insert(out, [...at, "command"], server4.command);
61303
+ if (!same2(entry.args, server4.args))
61304
+ out = insert(out, [...at, "args"], server4.args);
61305
+ const env2 = record4(entry.env, `mcpServers.${name}.env`);
61306
+ if (home2 !== void 0 && env2?.OA_BUS_HOME !== home2)
61307
+ out = insert(out, [...at, "env", "OA_BUS_HOME"], home2);
61308
+ if (home2 === void 0 && env2?.OA_BUS_HOME !== void 0) {
61309
+ out = removeAt(out, [...at, "env", "OA_BUS_HOME"]);
61310
+ out = removeIfEmpty(out, [...at, "env"]);
61311
+ }
61312
+ verified(out, [...at, "command"], server4.command);
61313
+ verified(out, [...at, "env", "OA_BUS_HOME"], home2);
61314
+ return verified(out, [...at, "args"], server4.args);
61315
+ });
61316
+ }
61317
+ function removeAgyMcp(text3, name) {
61318
+ return withoutBom(text3, (body) => {
61319
+ const servers4 = record4(
61320
+ parseJsonc(body, "mcp_config.json").mcpServers,
61321
+ "mcpServers"
61322
+ );
61323
+ if (servers4?.[name] === void 0) return body;
61324
+ return verified(
61325
+ removeAt(body, ["mcpServers", name]),
61326
+ ["mcpServers", name],
61327
+ void 0
61328
+ );
61329
+ });
61330
+ }
61331
+ function removeAgyIfEmpty(text3, path) {
61332
+ return withoutBom(text3, (body) => removeIfEmpty(body, path));
61333
+ }
61213
61334
 
61214
61335
  // ../bus-adapter-mcp-json/src/index.ts
61215
61336
  var isRecord3 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
@@ -62614,14 +62735,17 @@ var installCodex = (deps2, folder, text3, written, notes) => {
62614
62735
  async function installSkill(deps2, origin, harnesses) {
62615
62736
  const written = [];
62616
62737
  const notes = [];
62617
- if (harnesses.length === 0) return { written, notes };
62738
+ const skilled = harnesses.filter(
62739
+ (h) => h !== "antigravity"
62740
+ );
62741
+ if (skilled.length === 0) return { written, notes };
62618
62742
  if (!origin) {
62619
62743
  notes.push(
62620
62744
  "Skipped the skill file: this machine isn't approved on an instance yet. Rerun the install once it is."
62621
62745
  );
62622
62746
  return { written, notes };
62623
62747
  }
62624
- for (const h of harnesses) {
62748
+ for (const h of skilled) {
62625
62749
  const url2 = `${origin}/skill.md?harness=${h}`;
62626
62750
  let text3;
62627
62751
  try {
@@ -62757,6 +62881,7 @@ var codexSkillState = (deps2) => {
62757
62881
  return out;
62758
62882
  };
62759
62883
  var savedSkill = (deps2, h, folder) => {
62884
+ if (h === "antigravity") return void 0;
62760
62885
  if (h === "codex") {
62761
62886
  const st = codexSkillState(deps2);
62762
62887
  return st.file ?? st.block;
@@ -63906,11 +64031,11 @@ var PI_ENTRY_FILE = "pi-mcp-entry.json";
63906
64031
  var OMP_ORIGIN_FILE = "omp-mcp-origin.json";
63907
64032
  var PI_MIN_VERSION = "1.5.0";
63908
64033
  var isRecord7 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
63909
- var BOM2 = "\uFEFF";
64034
+ var BOM3 = "\uFEFF";
63910
64035
  function readConfig2(file2) {
63911
64036
  if (!existsSync16(file2)) return null;
63912
64037
  const raw = readFileSync32(file2, "utf8");
63913
- const bom = raw.startsWith(BOM2);
64038
+ const bom = raw.startsWith(BOM3);
63914
64039
  const text3 = bom ? raw.slice(1) : raw;
63915
64040
  const parsed = JSON.parse(text3);
63916
64041
  if (!isRecord7(parsed) || parsed.mcpServers !== void 0 && !isRecord7(parsed.mcpServers))
@@ -63924,7 +64049,7 @@ function readConfig2(file2) {
63924
64049
  }
63925
64050
  var writeConfig = (io, c, servers4) => io.write(
63926
64051
  io.file,
63927
- `${c.bom ? BOM2 : ""}${JSON.stringify({ ...c.parsed, mcpServers: servers4 }, null, c.indent)}
64052
+ `${c.bom ? BOM3 : ""}${JSON.stringify({ ...c.parsed, mcpServers: servers4 }, null, c.indent)}
63928
64053
  `
63929
64054
  );
63930
64055
  function findEntry(servers4, origin) {
@@ -64010,8 +64135,16 @@ var HARNESSES = [
64010
64135
  "omp",
64011
64136
  "codex",
64012
64137
  "hermes",
64013
- "openclaw"
64138
+ "openclaw",
64139
+ "antigravity"
64014
64140
  ];
64141
+ var AGY_FLAG = "OA_BUS_EXPERIMENTAL_AGY";
64142
+ var agyOn = (env2) => env2?.[AGY_FLAG] === "1";
64143
+ var hasAgy = (deps2) => deps2.which("agy") || present2(join38(deps2.home, ".gemini", "antigravity-cli")) || present2(join38(deps2.home, ".gemini", "antigravity"));
64144
+ var agyServer = (busBin) => ({
64145
+ command: busBin[0],
64146
+ args: [...busBin.slice(1), "mcp", "antigravity"]
64147
+ });
64015
64148
  var readAssets = () => ({
64016
64149
  pi: readFileSync33(PI_EXTENSION, "utf8"),
64017
64150
  opencodePlugin: readFileSync33(OPENCODE_TUI_PLUGIN, "utf8"),
@@ -64061,6 +64194,9 @@ var paths = (deps2) => {
64061
64194
  codexBin: codexBinFile(busDir),
64062
64195
  // #1856: where install keeps the Codex entry it swapped for the proxy.
64063
64196
  codexEntry: join38(busDir, CODEX_PROXY_ENTRY_FILE),
64197
+ // agy 1.5's user-level MCP config (`agy mcp add` writes it; the older
64198
+ // ~/.gemini/antigravity/mcp_config.json is the legacy path it migrated from).
64199
+ agyMcp: join38(deps2.home, ".gemini", "config", "mcp_config.json"),
64064
64200
  busDir
64065
64201
  };
64066
64202
  };
@@ -64190,6 +64326,34 @@ var listed = (doc, plugin) => Array.isArray(doc.plugins) && doc.plugins.some(
64190
64326
  );
64191
64327
  var json2 = (v) => `${JSON.stringify(v, null, 2)}
64192
64328
  `;
64329
+ function readAgy(path) {
64330
+ let text3;
64331
+ try {
64332
+ text3 = readFileSync33(path, "utf8");
64333
+ } catch (e) {
64334
+ if (e.code === "ENOENT") return "";
64335
+ throw e;
64336
+ }
64337
+ parseAgyMcp(text3, path);
64338
+ return text3;
64339
+ }
64340
+ function saveAgy(path, before, next, ok) {
64341
+ if (next === before) return false;
64342
+ if (!ok(parseAgyMcp(next, path)))
64343
+ throw new Error(`editing ${path} went wrong; left it untouched`);
64344
+ writeAtomic2(path, next);
64345
+ return true;
64346
+ }
64347
+ function agyEntryIs(doc, server4, home2) {
64348
+ const e = doc.mcpServers?.[NAME];
64349
+ if (e === void 0 || typeof e !== "object" || e === null) return false;
64350
+ const env2 = e.env;
64351
+ if (env2?.OA_BUS_HOME !== home2) return false;
64352
+ if (server4 !== void 0)
64353
+ return e.command === server4.command && isDeepStrictEqual(e.args, server4.args) && e.url === void 0 && e.serverUrl === void 0;
64354
+ const args = e.args;
64355
+ return typeof e.command === "string" && Array.isArray(args) && isDeepStrictEqual(args.slice(-2), ["mcp", "antigravity"]);
64356
+ }
64193
64357
  function save(path, before, next) {
64194
64358
  if (JSON.stringify(before) === JSON.stringify(next)) return false;
64195
64359
  writeAtomic2(path, json2(next));
@@ -64565,6 +64729,23 @@ var install = {
64565
64729
  // OpenClaw loads a native plugin folder; its own CLI installs and enables it.
64566
64730
  async openclaw(deps2, notes) {
64567
64731
  return installOpenclaw(deps2, notes, habitsOptedOut(paths(deps2).busDir));
64732
+ },
64733
+ // agy's mcp_config.json is JSONC: only our entry is edited, the rest stays
64734
+ // byte for byte. `agy mcp add` would rewrite the whole file.
64735
+ async antigravity(deps2) {
64736
+ if (!agyOn(deps2.env) || !hasAgy(deps2)) return "absent";
64737
+ const p = paths(deps2);
64738
+ const text3 = readAgy(p.agyMcp);
64739
+ const server4 = agyServer(deps2.busBin);
64740
+ const home2 = movedHome(deps2);
64741
+ const next = upsertAgyMcp(text3, NAME, server4, home2);
64742
+ target(p.agyMcp);
64743
+ const record7 = readRecord2(p.record);
64744
+ const made = missing(text3.replace(/^\uFEFF/, ""), [["mcpServers"]]);
64745
+ if (made.length > 0 && record7[p.agyMcp] === void 0)
64746
+ writeRecord2(p.record, record7, { ...record7, [p.agyMcp]: made });
64747
+ saveAgy(p.agyMcp, text3, next, (d) => agyEntryIs(d, server4, home2));
64748
+ return "done";
64568
64749
  }
64569
64750
  };
64570
64751
  var uninstall = {
@@ -64690,6 +64871,27 @@ var uninstall = {
64690
64871
  },
64691
64872
  async openclaw(deps2, notes) {
64692
64873
  return uninstallOpenclaw(deps2, notes);
64874
+ },
64875
+ async antigravity(deps2) {
64876
+ const p = paths(deps2);
64877
+ if (!present2(p.agyMcp)) return "none";
64878
+ const before = readAgy(p.agyMcp);
64879
+ const record7 = readRecord2(p.record);
64880
+ const next = (record7[p.agyMcp] ?? []).reduce(
64881
+ removeAgyIfEmpty,
64882
+ removeAgyMcp(before, NAME)
64883
+ );
64884
+ const saved = saveAgy(
64885
+ p.agyMcp,
64886
+ before,
64887
+ next,
64888
+ (d) => d.mcpServers?.[NAME] === void 0
64889
+ );
64890
+ if (record7[p.agyMcp] !== void 0) {
64891
+ const { [p.agyMcp]: _, ...left } = record7;
64892
+ writeRecord2(p.record, record7, left);
64893
+ }
64894
+ return saved ? "done" : "none";
64693
64895
  }
64694
64896
  };
64695
64897
  async function each(steps, deps2, notes) {
@@ -64781,7 +64983,7 @@ function checkAdapters(deps2) {
64781
64983
  const state = (h, ok) => !(h === "omp" ? hasOmp(deps2) : h === "codex" ? codexHere(deps2) : h === "openclaw" ? (
64782
64984
  // Plugin commands are off in Nix mode: nothing here to wire.
64783
64985
  deps2.which(h) && !openclawNix(deps2.env)
64784
- ) : deps2.which(h)) ? "absent" : safely(ok) ? "configured" : "missing";
64986
+ ) : h === "antigravity" ? agyOn(deps2.env) && hasAgy(deps2) : deps2.which(h)) ? "absent" : safely(ok) ? "configured" : "missing";
64785
64987
  return {
64786
64988
  claude: state("claude", () => {
64787
64989
  const e = readDoc(p.claude).mcpServers?.[NAME];
@@ -64828,9 +65030,34 @@ function checkAdapters(deps2) {
64828
65030
  openclawPluginDir(deps2.home, deps2.env ?? {}),
64829
65031
  deps2.openclawPlugin ?? OPENCLAW_PLUGIN
64830
65032
  ) === "current"
65033
+ ),
65034
+ antigravity: state(
65035
+ "antigravity",
65036
+ () => agyEntryIs(
65037
+ parseAgyMcp(readFileSync33(p.agyMcp, "utf8"), p.agyMcp),
65038
+ deps2.busBin === void 0 ? void 0 : agyServer(deps2.busBin),
65039
+ movedHome(deps2)
65040
+ )
64831
65041
  )
64832
65042
  };
64833
65043
  }
65044
+ function agyProblem(deps2) {
65045
+ const file2 = paths(deps2).agyMcp;
65046
+ if (!present2(file2)) return void 0;
65047
+ try {
65048
+ const doc = parseAgyMcp(readFileSync33(file2, "utf8"), file2);
65049
+ const servers4 = doc.mcpServers;
65050
+ if (servers4 !== void 0 && (typeof servers4 !== "object" || servers4 === null || Array.isArray(servers4)))
65051
+ return { file: file2, problem: "malformed" };
65052
+ const e = servers4?.[NAME];
65053
+ if (e !== void 0 && (typeof e !== "object" || e === null))
65054
+ return { file: file2, problem: "malformed" };
65055
+ if (e?.disabled === true) return { file: file2, problem: "disabled" };
65056
+ return void 0;
65057
+ } catch {
65058
+ return { file: file2, problem: "malformed" };
65059
+ }
65060
+ }
64834
65061
  function codexProxyProblem(deps2) {
64835
65062
  const p = paths(deps2);
64836
65063
  if (!present2(p.codex)) return void 0;
@@ -67432,7 +67659,8 @@ function leftoverTargets(deps2) {
67432
67659
  join50(codexHome2(deps2.home, env2), "AGENTS.md"),
67433
67660
  p.codex,
67434
67661
  ...p.opencodeConfigs,
67435
- p.opencodeCli
67662
+ p.opencodeCli,
67663
+ p.agyMcp
67436
67664
  ],
67437
67665
  dirs: [
67438
67666
  skill2("claude"),
@@ -67443,7 +67671,10 @@ function leftoverTargets(deps2) {
67443
67671
  join50(ompAgentDir(deps2.home, env2), "extensions"),
67444
67672
  join50(piDir, "extensions"),
67445
67673
  skill2("opencode"),
67446
- skill2("openclaw")
67674
+ skill2("openclaw"),
67675
+ // agy's config folders, when install made them for its mcp_config.json.
67676
+ join50(deps2.home, ".gemini", "config"),
67677
+ join50(deps2.home, ".gemini")
67447
67678
  ]
67448
67679
  };
67449
67680
  }
@@ -68337,9 +68568,24 @@ async function doctor(ctx) {
68337
68568
  "omp",
68338
68569
  "codex",
68339
68570
  "hermes",
68340
- "openclaw"
68571
+ "openclaw",
68572
+ "antigravity"
68341
68573
  ]) {
68342
68574
  if (wiring[h] === "absent") continue;
68575
+ if (h === "antigravity") {
68576
+ const bad2 = agyProblem({
68577
+ home: ctx.userHome,
68578
+ busHome: ctx.home,
68579
+ env: ctx.env
68580
+ });
68581
+ if (bad2?.problem === "malformed")
68582
+ fail3(c.agyMalformed(tilde(ctx, bad2.file)));
68583
+ else if (wiring[h] === "configured") pass(c.wired(h));
68584
+ else fail3(c.notWired(h));
68585
+ if (bad2?.problem === "disabled" && wiring[h] === "configured")
68586
+ warn(c.agyDisabled());
68587
+ continue;
68588
+ }
68343
68589
  let version2;
68344
68590
  if (h === "opencode") {
68345
68591
  version2 = await opencodeVersion(ctx.exec);
@@ -68832,7 +69078,8 @@ async function logs(ctx) {
68832
69078
  var MCP_SERVER = {
68833
69079
  claude: () => init_main().then(() => main_exports),
68834
69080
  opencode: () => init_main2().then(() => main_exports2),
68835
- codex: () => init_codex_main().then(() => codex_main_exports)
69081
+ codex: () => init_codex_main().then(() => codex_main_exports),
69082
+ antigravity: () => init_antigravity_main().then(() => antigravity_main_exports)
68836
69083
  };
68837
69084
  async function mcp(harness, ctx, load2 = (h) => MCP_SERVER[h]()) {
68838
69085
  if (harness === "pi") {
@@ -69716,7 +69963,7 @@ var COMMANDS = /* @__PURE__ */ new Set([
69716
69963
  "upgrade",
69717
69964
  "version"
69718
69965
  ]);
69719
- var HARNESSES2 = ["claude", "opencode", "codex", "pi"];
69966
+ var HARNESSES2 = ["claude", "opencode", "codex", "pi", "antigravity"];
69720
69967
  var GLOBAL_USAGE = `usage: ${BUS_CMD} global <add|rm> <dir>, or global list`;
69721
69968
  var LINK_USAGE = `usage: ${BUS_CMD} link <dir> <dir>, ${BUS_CMD} unlink <dir> <dir>, or link list`;
69722
69969
  var LEADS_USAGE = `usage: ${BUS_CMD} leads check [name]`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@open-artifacts/bus",
3
3
  "type": "module",
4
- "version": "0.246.0",
4
+ "version": "0.247.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": "a057efbbaa60d9cc3b504d167a147172d8ea754c"
32
+ "commit": "5e31c524273e06ec68512405c9061627244ec246"
33
33
  }
34
34
  }