@cotal-ai/connector-opencode 0.165.3 → 0.166.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.
package/dist/plugin.d.ts CHANGED
@@ -26,15 +26,6 @@ export declare function verifyServerModel(serverUrl: string, serverAuth: string,
26
26
  */
27
27
  declare function settleWithin(work: Promise<unknown> | undefined, ms: number, what: string): Promise<boolean>;
28
28
  export { settleWithin };
29
- /**
30
- * The buffered-inbox + pending-run-turn composition that goes out ahead of a native prompt, read by
31
- * {@link SurfacedBatch.inject}. Returns `undefined` when there is nothing to prepend.
32
- */
33
- export declare function computeInjection(agent: MeshAgent): {
34
- prefix: string;
35
- surfacedIds: string[];
36
- turnIds: string[];
37
- } | undefined;
38
29
  /**
39
30
  * The inbox batch a turn carries, by receive key: THE SEAT'S ACK BOUNDARY, defined here once and
40
31
  * driven by both adapters (the 1.x hooks below and `plugin2.ts`), so they cannot drift on what is
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAuCA,OAAO,EAIL,SAAS,EAoBV,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,MAAM,EAAyB,MAAM,qBAAqB,CAAC;AAgBzE;;;0EAG0E;AAC1E,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAC5D;iEACiE;AACjE,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAChD;;gCAEgC;AAChC,eAAO,MAAM,QAAQ,sBAAsB,CAAC;AAC5C;;0EAE0E;AAC1E,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAElF;AACD,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,I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ists the configured model directly (no `/provider.all`
3
- * nesting to walk, unlike 1.x's `verifyServerModel`). Same refusal sentence shape, different
4
- * route and body. An empty listing during location boot is polled every 200 ms until the
5
- * provider appears rather than refused on the first read. The wait is bounded: a server that
6
- * never lists anything within the deadline is a real refusal, not a hang. */
7
- export declare const MODEL_LIST_SETTLE_MS = 10000;
8
2
  /** The 2.x `setup(context)` entry point. Concurrent callers share the attempt's result. A refused
9
3
  * attempt releases its slot; a completed one owns it until its teardown has finished. */
10
4
  export declare function setupCotal(ctx: OpenCode2Context): Promise<(() => Promise<void>) | void>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAgB7E;;;;8EAI8E;AAC9E,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAuC3C;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":"AAqCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AA4D7E;0FAC0F;AAC1F,wBAAsB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAsB7F"}
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.165.3",
4
+ "version": "0.166.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "@cotal-ai/core": ">=0.1.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@cotal-ai/connector-core": "0.165.3",
25
- "@cotal-ai/core": "0.165.3",
24
+ "@cotal-ai/connector-core": "0.166.0",
25
+ "@cotal-ai/core": "0.166.0",
26
26
  "@cotal-ai/smoke-kit": "0.0.0",
27
27
  "@nats-io/transport-node": "3.4.0",
28
28
  "@opencode-ai/plugin": "^1.16.2",