@cotal-ai/connector-opencode 0.100.1 → 0.101.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/plugin2.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import type { OpenCode2Context } from "./opencode2-types.js";
2
2
  /** 2.x model check: `GET /api/model` lists the configured model directly (no `/provider.all`
3
3
  * nesting to walk, unlike 1.x's `verifyServerModel`). Same refusal sentence shape, different
4
- * route and body — measured in fx105/measurements.md (routes). The server answers `/api/model`
5
- * with an empty listing for up to about a second after the location boot its first `/api/config`
6
- * triggers (fx105/brief-g.md measurement), so an empty listing is polled every 200 ms until the
4
+ * route and body. An empty listing during location boot is polled every 200 ms until the
7
5
  * provider appears rather than refused on the first read. The wait is bounded: a server that
8
6
  * never lists anything within the deadline is a real refusal, not a hang. */
9
7
  export declare const MODEL_LIST_SETTLE_MS = 10000;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAiB7E;;;;;;8EAM8E;AAC9E,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAoC3C,4CAA4C;AAC5C,wBAAsB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CA2W7F"}
1
+ {"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAgB7E;;;;8EAI8E;AAC9E,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAoC3C,4CAA4C;AAC5C,wBAAsB,UAAU,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAkX7F"}
package/dist/tools.d.ts CHANGED
@@ -20,7 +20,7 @@ import type { OpenCode2ToolEditor } from "./opencode2-types.js";
20
20
  export declare function buildCotalTools(agent: MeshAgent, config: AgentConfig): Record<string, ToolDefinition>;
21
21
  /** Build the cotal_* tool list for OpenCode 2.x's `ctx.tool.transform(ed => ed.add(...))`, from
22
22
  * the SAME shared specs {@link buildCotalTools} renders for 1.x. 2.x's `Tool.Info.input` accepts
23
- * a zod 4 object directly (a StandardSchema — measured, `fx105/measurements.md`), so the closed
23
+ * a zod 4 object directly (a StandardSchema), so the closed
24
24
  * schema goes across unmodified; there is no 1.x-style raw-shape flattening needed here. The
25
25
  * closed-object refusal at dispatch is the same guard as {@link buildCotalTools} keeps: this host
26
26
  * also hands `execute` the caller's object UNVALIDATED, so a stray `owner`/`actor` is refused by
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.100.1",
4
+ "version": "0.101.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.100.1",
25
- "@cotal-ai/core": "0.100.1",
24
+ "@cotal-ai/connector-core": "0.101.0",
25
+ "@cotal-ai/core": "0.101.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",