@miraland-labs/conduit-bridge 0.16.118 → 0.16.119

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.
@@ -437,9 +437,19 @@ function probeFilename(language) {
437
437
  const extension = language === "ts" ? "mts" : language === "py" ? "py" : "sh";
438
438
  return `.conduit-probe-${crypto.randomUUID()}.${extension}`;
439
439
  }
440
+ /**
441
+ * A probe that reads Conduit's own database could not run: `node:sqlite` is behind a flag, and the
442
+ * probe runner started Node without it, so five of seven probes on one delivery came back
443
+ * unverifiable with ERR_UNKNOWN_BUILTIN_MODULE. The flag exists from Node 22; on an older runtime it
444
+ * would be a bad option, so it is passed only where it is understood.
445
+ */
446
+ export function probeNodeFlags(version = process.versions.node) {
447
+ const major = Number.parseInt(version.split(".")[0] ?? "", 10);
448
+ return Number.isFinite(major) && major >= 22 ? ["--experimental-sqlite"] : [];
449
+ }
440
450
  function probeArgv(language, file) {
441
451
  if (language === "ts")
442
- return ["node", "--import", tsxLoader, file];
452
+ return ["node", ...probeNodeFlags(), "--import", tsxLoader, file];
443
453
  if (language === "py")
444
454
  return ["python3", file];
445
455
  return ["bash", file];
@@ -622,7 +632,7 @@ export async function runDeliveredProbeInstrument(input) {
622
632
  const entry = join(input.workspace, PROBE_RUN_ENTRY);
623
633
  const timeoutMs = PROBE_TIMEOUT_MS * (input.probes.length + 1);
624
634
  const stdin = JSON.stringify({ probes: input.probes });
625
- const argv = ["node", "--import", tsxLoader, entry];
635
+ const argv = ["node", ...probeNodeFlags(), "--import", tsxLoader, entry];
626
636
  const result = await (input.exec ?? execDeliveredProbeRun)(argv, stdin, input.workspace, timeoutMs);
627
637
  if (result.code !== 0) {
628
638
  throw new Error(result.stderr.trim() || `delivered probe-run exited ${result.code}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miraland-labs/conduit-bridge",
3
- "version": "0.16.118",
3
+ "version": "0.16.119",
4
4
  "description": "Conduit Bridge CLI \u2014 join, connect, disconnect, multi-driver lanes, and run Claude Code / Codex / Cursor / OpenCode / Pi / Kiro / Antigravity / Grok Build agents for a Conduit organization",
5
5
  "type": "module",
6
6
  "bin": {