@cotal-ai/connector-opencode 0.111.1 → 0.113.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.
@@ -1 +1 @@
1
- {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,SAAS,EAAuE,MAAM,gBAAgB,CAAC;AA0G/H;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA+L/B,CAAC"}
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,SAAS,EAA8F,MAAM,gBAAgB,CAAC;AA8GtJ;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA+L/B,CAAC"}
package/dist/index.js CHANGED
@@ -23607,7 +23607,8 @@ function parseModels(stdout) {
23607
23607
  }
23608
23608
  function listOpenCodeModels(opts = {}) {
23609
23609
  const env = discoveryEnv();
23610
- const versionRaw = execFileSync("opencode", ["--version"], {
23610
+ const bin = process.env.COTAL_OPENCODE_BIN?.trim() || opts.resolvedBinaries?.opencode || "opencode";
23611
+ const versionRaw = execFileSync(bin, ["--version"], {
23611
23612
  encoding: "utf8",
23612
23613
  env,
23613
23614
  stdio: ["ignore", "pipe", "pipe"]
@@ -23621,7 +23622,7 @@ function listOpenCodeModels(opts = {}) {
23621
23622
  const args = ["models", "--pure", "--verbose"];
23622
23623
  if (opts.refresh) args.push("--refresh");
23623
23624
  try {
23624
- const stdout = execFileSync("opencode", args, {
23625
+ const stdout = execFileSync(bin, args, {
23625
23626
  encoding: "utf8",
23626
23627
  env,
23627
23628
  stdio: ["ignore", "pipe", "pipe"],