@c4a/context-cli 0.7.42 → 0.7.43

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/cli.js CHANGED
@@ -83807,7 +83807,8 @@ async function readArtifact(artifact) {
83807
83807
  }
83808
83808
  const module = new WebAssembly.Module(bytes);
83809
83809
  const metadata = WebAssembly.Module.customSections(module, "sourcegraph.plugin.v1");
83810
- if (metadata.length !== 1 || JSON.parse(new TextDecoder().decode(metadata[0])).name !== "context-evidence") {
83810
+ const declaration = metadata.length === 1 ? JSON.parse(new TextDecoder().decode(metadata[0])) : undefined;
83811
+ if (declaration?.name !== "context-evidence" || declaration.abi_version !== 2) {
83811
83812
  throw new Error("Invalid bundled evidence plugin metadata");
83812
83813
  }
83813
83814
  return { bytes, manifest };
@@ -1,4 +1,7 @@
1
1
  {
2
- "sha256": "2edd8fb97eea337877468d2ff42f8d1973f69d1d29ed8dc60fda13a11572130b",
3
- "previous": []
2
+ "sha256": "ba8455552b7dfeea350b7387c7a52e08e0f71a096ee039571fd50f83617206b3",
3
+ "previous": [
4
+ "d0afc61569c824be6c0f819d3be4a26cab954cba6508ae654b69a9d1c7a43550",
5
+ "2edd8fb97eea337877468d2ff42f8d1973f69d1d29ed8dc60fda13a11572130b"
6
+ ]
4
7
  }