@get-bb/plugin-sdk 0.4.87 → 0.4.88

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.
@@ -344,6 +344,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
344
344
  changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
345
345
  "host-connected": "host-connected";
346
346
  "host-disconnected": "host-disconnected";
347
+ "provider-model-catalog-changed": "provider-model-catalog-changed";
347
348
  }>>>;
348
349
  entity: z$1.ZodLiteral<"host">;
349
350
  id: z$1.ZodOptional<z$1.ZodString>;
@@ -3760,9 +3760,11 @@ async function resolveExecutablePath(command) {
3760
3760
  }
3761
3761
  async function readCliVersion(command) {
3762
3762
  try {
3763
- const { stdout, stderr } = await execFileAsync(command, ["--version"], {
3763
+ const probe = execFileAsync(command, ["--version"], {
3764
3764
  timeout: CLI_PROBE_TIMEOUT_MS
3765
3765
  });
3766
+ probe.child.stdin?.end();
3767
+ const { stdout, stderr } = await probe;
3766
3768
  return `${stdout}
3767
3769
  ${stderr}`.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/u)?.[0] ?? null;
3768
3770
  } catch {
@@ -3870,9 +3870,11 @@ function versionFrom(value) {
3870
3870
  }
3871
3871
  async function readCliVersion(command) {
3872
3872
  try {
3873
- const { stdout, stderr } = await execFileAsync(command, ["--version"], {
3873
+ const probe = execFileAsync(command, ["--version"], {
3874
3874
  timeout: CLI_PROBE_TIMEOUT_MS
3875
3875
  });
3876
+ probe.child.stdin?.end();
3877
+ const { stdout, stderr } = await probe;
3876
3878
  return `${stdout}
3877
3879
  ${stderr}`.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/u)?.[0] ?? null;
3878
3880
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.4.87",
3
+ "version": "0.4.88",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"