@cotal-ai/connector-opencode 0.175.1 → 0.175.2

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The standalone I/O helpers of the OpenCode 1.x plugin (`plugin.ts`): the retired-session WAL reap,
3
+ * the authenticated OpenCode HTTP client, and the two `session.error` readers. They close over only
4
+ * values `cotal` fixes before it builds them, so they live here behind an explicit deps object.
5
+ */
6
+ import { type AgentConfig, type MeshAgent } from "@cotal-ai/connector-core";
7
+ /** What the helpers read from `cotal`: all four are fixed before `pluginIo` is called and never rebound. */
8
+ export interface PluginIoDeps {
9
+ agent: MeshAgent;
10
+ config: AgentConfig;
11
+ serverUrl: string;
12
+ serverAuth: string;
13
+ }
14
+ export interface PluginIo {
15
+ reapRetiredWal(threadId: string, drained: boolean): Promise<void>;
16
+ opencodeApi<T>(path: string, init?: RequestInit, timeoutMs?: number): Promise<T>;
17
+ isMessageAbortedError(error: unknown): boolean;
18
+ runErrorOf(error: unknown): {
19
+ message: string;
20
+ code?: string;
21
+ };
22
+ }
23
+ export declare function pluginIo(deps: PluginIoDeps): PluginIo;
24
+ //# sourceMappingURL=plugin-io.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-io.d.ts","sourceRoot":"","sources":["../src/plugin-io.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAsD,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAKhI,4GAA4G;AAC5G,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACjF,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/C,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChE;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,CAsHrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,MAAM,EAAyB,MAAM,qBAAqB,CAAC;AAczE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,aAAa,GACd,MAAM,mBAAmB,CAAC;AAW3B,eAAO,MAAM,KAAK,EAAE,MAo1CnB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,MAAM,EAAyB,MAAM,qBAAqB,CAAC;AAazE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,aAAa,GACd,MAAM,mBAAmB,CAAC;AAW3B,eAAO,MAAM,KAAK,EAAE,MAmuCnB,CAAC"}
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.175.1",
4
+ "version": "0.175.2",
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.175.1",
25
- "@cotal-ai/connector-core": "0.175.1",
26
- "@cotal-ai/core": "0.175.1",
24
+ "@cotal-ai/auth": "0.175.2",
25
+ "@cotal-ai/connector-core": "0.175.2",
26
+ "@cotal-ai/core": "0.175.2",
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",