@get-bb/plugin-sdk 0.4.24 → 0.4.27

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.
@@ -610,12 +610,7 @@ function readBoundedLines(args) {
610
610
  }
611
611
 
612
612
  // ../provider-bridge-protocol/src/bridge-kit/bridge-recorder.ts
613
- import {
614
- closeSync,
615
- mkdirSync,
616
- openSync,
617
- writeSync
618
- } from "node:fs";
613
+ import { closeSync, mkdirSync, openSync, writeSync } from "node:fs";
619
614
  import { join as join2, resolve } from "node:path";
620
615
  import { StringDecoder as StringDecoder2 } from "node:string_decoder";
621
616
  var PROVIDER_BRIDGE_RECORD_DIR_ENV = "BB_PROVIDER_BRIDGE_RECORD_DIR";
@@ -698,7 +693,10 @@ function createBridgeRecorder(args) {
698
693
  }
699
694
  const scopeDir = join2(dir, scope);
700
695
  mkdirSync(scopeDir, { recursive: true });
701
- const fd = openSync(join2(scopeDir, bridgeRecordingFileName(direction)), "a");
696
+ const fd = openSync(
697
+ join2(scopeDir, bridgeRecordingFileName(direction)),
698
+ "a"
699
+ );
702
700
  fds.set(key, fd);
703
701
  return fd;
704
702
  }
@@ -749,13 +747,21 @@ function createBridgeRecorder(args) {
749
747
  const { stdin, stdout } = child;
750
748
  if (stdout) {
751
749
  const splitter = createRecordingLineSplitter(
752
- (line) => record({ direction: "provider\u2192bridge", line, threadId: scope.threadId })
750
+ (line) => record({
751
+ direction: "provider\u2192bridge",
752
+ line,
753
+ threadId: scope.threadId
754
+ })
753
755
  );
754
756
  stdout.on("data", (chunk) => splitter.push(chunk));
755
757
  }
756
758
  if (stdin) {
757
759
  const splitter = createRecordingLineSplitter(
758
- (line) => record({ direction: "bridge\u2192provider", line, threadId: scope.threadId })
760
+ (line) => record({
761
+ direction: "bridge\u2192provider",
762
+ line,
763
+ threadId: scope.threadId
764
+ })
759
765
  );
760
766
  const originalWrite = stdin.write.bind(stdin);
761
767
  stdin.write = ((chunk, ...rest) => {