@cotal-ai/connector-opencode 0.11.6 → 0.13.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/extension.d.ts.map +1 -1
- package/dist/index.js +35 -20
- package/dist/plugin.bundle.js +8979 -8108
- package/dist/plugin.d.ts.map +1 -1
- package/dist/tools.d.ts +9 -3
- package/dist/tools.d.ts.map +1 -1
- package/package.json +5 -8
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,qBAAqB,CAAC;AAiBzD,eAAO,MAAM,KAAK,EAAE,MAibnB,CAAC"}
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The Cotal tool surface for OpenCode, rendered from the **shared** {@link cotalToolSpecs}
|
|
3
3
|
* (the same source the Claude Code MCP connector renders) as OpenCode-native plugin
|
|
4
|
-
* tools (
|
|
5
|
-
* adapters: an OpenCode peer gets the same tools (incl. channels / join / leave / channel_info).
|
|
4
|
+
* tools ({@link ToolDefinition} literals). One source of truth → the cotal_* surface can't drift
|
|
5
|
+
* across adapters: an OpenCode peer gets the same tools (incl. channels / join / leave / channel_info).
|
|
6
6
|
*
|
|
7
7
|
* The one OpenCode-specific tool is `cotal_inbox`: automatic traffic remains owned by the driver,
|
|
8
8
|
* while the tool destructively pulls only quiet ambient (plus read-only focus recall).
|
|
9
|
+
*
|
|
10
|
+
* The definitions are plain literals, NOT OpenCode's `tool()` helper: `tool()` is an identity
|
|
11
|
+
* function for type inference only, so importing it would make `@opencode-ai/plugin` a RUNTIME
|
|
12
|
+
* dependency of this bundle. It resolves from the host's opencode process, not ours, and an
|
|
13
|
+
* installed extension has no copy of it, so the import fails and OpenCode skips the plugin
|
|
14
|
+
* silently. A type-only import keeps the bundle self-contained.
|
|
9
15
|
*/
|
|
10
|
-
import {
|
|
16
|
+
import type { ToolDefinition } from "@opencode-ai/plugin";
|
|
11
17
|
import { type MeshAgent, type AgentConfig } from "@cotal-ai/connector-core";
|
|
12
18
|
/** Build the cotal_* tool map wired to one mesh agent, rendered from the shared specs. */
|
|
13
19
|
export declare function buildCotalTools(agent: MeshAgent, config: AgentConfig): Record<string, ToolDefinition>;
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5F,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA0BrG"}
|
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.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -18,17 +18,14 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@cotal-ai/core": ">=0.1.0"
|
|
22
|
-
"@opencode-ai/plugin": "^1.16.2",
|
|
23
|
-
"@opencode-ai/sdk": "^1.16.2"
|
|
21
|
+
"@cotal-ai/core": ">=0.1.0"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"@opencode-ai/plugin": "^1.16.2",
|
|
27
|
-
"@opencode-ai/sdk": "^1.16.2",
|
|
28
25
|
"esbuild": "^0.28.0",
|
|
29
26
|
"tsx": "^4.22.4",
|
|
30
|
-
"@cotal-ai/core": "0.
|
|
31
|
-
"@cotal-ai/connector-core": "0.
|
|
27
|
+
"@cotal-ai/core": "0.13.0",
|
|
28
|
+
"@cotal-ai/connector-core": "0.13.0"
|
|
32
29
|
},
|
|
33
30
|
"files": [
|
|
34
31
|
"dist"
|
|
@@ -39,6 +36,6 @@
|
|
|
39
36
|
"scripts": {
|
|
40
37
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
41
38
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json --emitDeclarationOnly && pnpm run bundle",
|
|
42
|
-
"bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --external:@cotal-ai/core
|
|
39
|
+
"bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --external:@cotal-ai/core && esbuild src/plugin.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/plugin.bundle.js && esbuild src/serve.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/serve.js"
|
|
43
40
|
}
|
|
44
41
|
}
|