opencode-devin 0.2.10 → 0.2.11

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.
@@ -662,8 +662,11 @@ function createLanguageModel(options) {
662
662
  controller.close();
663
663
  }
664
664
  catch (cause) {
665
- if (!cancelled)
666
- controller.error(hintUnlistedModel(cause, modelId, knownToCatalog));
665
+ if (cancelled)
666
+ return;
667
+ controller.enqueue({ type: "error", error: hintUnlistedModel(cause, modelId, knownToCatalog) });
668
+ controller.enqueue({ type: "finish", finishReason: { unified: "error", raw: "error" }, usage: DEFAULT_USAGE });
669
+ controller.close();
667
670
  }
668
671
  },
669
672
  async cancel() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-devin",
4
- "version": "0.2.10",
4
+ "version": "0.2.11",
5
5
  "description": "OpenCode v2 plugin: connect your Devin subscription to opencode with native /connect login and devin/* models",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "@ai-sdk/provider": "3.0.8",
49
49
  "@opencode/plugin": "2.4.1",
50
50
  "devin-core": "0.0.7",
51
- "devin-engine": "0.0.11"
51
+ "devin-engine": "0.0.12"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/bun": "1.4.4",