@cotal-ai/connector-opencode 0.172.1 → 0.173.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/failure-condition.d.ts +21 -0
- package/dist/failure-condition.d.ts.map +1 -0
- package/dist/index.js +22 -22
- package/dist/plugin/docs-bundle.bin +0 -0
- package/dist/plugin/docs-index.bin +0 -0
- package/dist/plugin/index.js +39 -39
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin2.d.ts.map +1 -1
- package/dist/reconnect-command.d.ts +18 -0
- package/dist/reconnect-command.d.ts.map +1 -0
- package/package.json +4 -4
package/dist/plugin.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/plugin2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAuG7E;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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/reconnect`, the manual recovery surface for a wedged mesh link. OpenCode has no host reconnect
|
|
3
|
+
* (unlike Claude Code's /mcp reconnect), and a plugin can't register a slash command via the Hooks
|
|
4
|
+
* API, so the launch injects it through the config layer the connector already owns. It's a
|
|
5
|
+
* TOOL-FORCING template: the human types /reconnect → one model turn whose only move is to call
|
|
6
|
+
* `cotal_reconnect` (in-process, local — it never rides the wedged link). The leading
|
|
7
|
+
* "Reconnecting…" reads as immediate TUI status; the rest is the imperative.
|
|
8
|
+
*
|
|
9
|
+
* It is for the agent's own terminal only. Sent through the agent endpoint it cannot help: a broken
|
|
10
|
+
* link never delivers it, and on a working link it drops the connection its answer needs. So the 2.x
|
|
11
|
+
* plugin leaves it out of the endpoint's `commands` list and refuses it on `command`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RECONNECT_COMMAND: {
|
|
14
|
+
readonly name: "reconnect";
|
|
15
|
+
readonly description: "Rebuild this session's Cotal mesh connection (recovery from a wedged link)";
|
|
16
|
+
readonly template: "Reconnecting to the Cotal mesh… Call the cotal_reconnect tool now — do not explain, do not ask, just invoke it. Do not summarize — the tool reports its own status.";
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=reconnect-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconnect-command.d.ts","sourceRoot":"","sources":["../src/reconnect-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB;;;;CAKpB,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.
|
|
4
|
+
"version": "0.173.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.
|
|
25
|
-
"@cotal-ai/connector-core": "0.
|
|
26
|
-
"@cotal-ai/core": "0.
|
|
24
|
+
"@cotal-ai/auth": "0.173.0",
|
|
25
|
+
"@cotal-ai/connector-core": "0.173.0",
|
|
26
|
+
"@cotal-ai/core": "0.173.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",
|