@cotal-ai/connector-opencode 0.90.1 → 0.92.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
@@ -21758,7 +21758,7 @@ config(en_default());
21758
21758
  import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken3, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked, EpEnvelopeError as EpEnvelopeError3, LANG_PROBLEM_DETAIL_KIND, formatAge, presenceAges, presenceText } from "@cotal-ai/core";
21759
21759
 
21760
21760
  // ../connector-core/dist/orientation.js
21761
- import { peerLabel as peerLabel3 } from "@cotal-ai/core";
21761
+ import { parsePrincipalKey as parsePrincipalKey2, peerLabel as peerLabel3 } from "@cotal-ai/core";
21762
21762
 
21763
21763
  // ../connector-core/dist/docs.js
21764
21764
  var STOP = new Set("a an and are as at be by do for from has how in is it of on or that the this to use using was what when where which who with you your".split(" "));
@@ -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 {