@cotal-ai/connector-opencode 0.90.1 → 0.91.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;AAyG/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,EAAuE,MAAM,gBAAgB,CAAC;AA0G/H;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA+L/B,CAAC"}
package/dist/index.js CHANGED
@@ -23577,9 +23577,10 @@ function listOpenCodeModels(opts = {}) {
23577
23577
  }).trim();
23578
23578
  const line = opencodeLine(versionRaw, "opencode");
23579
23579
  if (line === 2)
23580
- throw new Error(
23581
- "opencode connector: 'cotal models' is not available for OpenCode 2.x (the catalog is served by a running opencode server, not the CLI); pass --model provider/model"
23582
- );
23580
+ return {
23581
+ models: [],
23582
+ unavailable: "OpenCode 2.x serves its model catalog from a running opencode server, not the CLI; pass --model provider/model"
23583
+ };
23583
23584
  const args = ["models", "--pure", "--verbose"];
23584
23585
  if (opts.refresh) args.push("--refresh");
23585
23586
  try {