@cotal-ai/connector-opencode 0.176.6 → 0.178.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":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAwG7E;0FAC0F;AAC1F,wBAAsB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAsB7F"}
1
+ {"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAqF7E;0FAC0F;AAC1F,wBAAsB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAsB7F"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Reads an OpenCode 2.x server's model list once the server's plugins have loaded, and returns the
3
+ * reply's `data`. Until then `GET /api/model` answers 200 with an empty or partial list (measured on
4
+ * 2.4.1: nothing, then one provider's models, then every model at the moment `GET /api/plugin` first
5
+ * lists anything). OpenCode's own `opencode models` waits the same way. The plugin list includes
6
+ * OpenCode's built-in plugins, so it fills on every install. Throws when either route answers
7
+ * anything but a 200 list, or when the wait outlasts `timeoutMs`.
8
+ */
9
+ export declare function readSettledModels(serverUrl: string, authorization: string, timeoutMs: number): Promise<unknown[]>;
10
+ //# sourceMappingURL=settled-models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settled-models.d.ts","sourceRoot":"","sources":["../src/settled-models.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA0BvH"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-opencode",
3
3
  "description": "Cotal connector for OpenCode: a native in-process plugin that joins a session to the mesh.",
4
- "version": "0.176.6",
4
+ "version": "0.178.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,9 +21,9 @@
21
21
  "@cotal-ai/core": ">=0.1.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@cotal-ai/auth": "0.176.6",
25
- "@cotal-ai/connector-core": "0.176.6",
26
- "@cotal-ai/core": "0.176.6",
24
+ "@cotal-ai/auth": "0.178.0",
25
+ "@cotal-ai/connector-core": "0.178.0",
26
+ "@cotal-ai/core": "0.178.0",
27
27
  "@cotal-ai/smoke-kit": "0.0.0",
28
28
  "@nats-io/transport-node": "3.4.0",
29
29
  "@opencode-ai/plugin": "^1.16.2",