@cotal-ai/connector-opencode 0.175.2 → 0.176.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/index.js +3 -3
- package/dist/plugin/docs-bundle.bin +0 -0
- package/dist/plugin/docs-index.bin +0 -0
- package/dist/plugin/index.js +13 -13
- package/dist/plugin2.d.ts.map +1 -1
- package/dist/reply-check.d.ts +31 -0
- package/dist/reply-check.d.ts.map +1 -0
- package/dist/tools.d.ts +3 -2
- package/dist/tools.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/plugin2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin2.d.ts","sourceRoot":"","sources":["../src/plugin2.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,sBAAsB,CAAC;AAwG7E;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,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One re-prompt when a turn that carried a direct message, a role request or an @mention ends
|
|
3
|
+
* cleanly with no Cotal reply sent. Some models answer such a turn in chat only, which reaches
|
|
4
|
+
* nobody. The re-prompt leaves the choice with the model, because a silent acknowledgement is often
|
|
5
|
+
* correct. The connector never sends anything on the model's behalf. A failed or interrupted turn
|
|
6
|
+
* is not re-prompted. Each directed batch gets at most one re-prompt. A re-prompt that goes out with
|
|
7
|
+
* newly arrived directed messages carries their senders, so that turn can earn its own re-prompt.
|
|
8
|
+
* Senders are named as the inbox names them, marked unverified, since a peer chooses its own name.
|
|
9
|
+
*/
|
|
10
|
+
import { type InboxItem } from "@cotal-ai/connector-core";
|
|
11
|
+
export declare const replyCheckPrompt: (senders: readonly string[]) => string;
|
|
12
|
+
export declare class ReplyCheck {
|
|
13
|
+
/** Senders of the directed messages the running submission carries. */
|
|
14
|
+
private directed;
|
|
15
|
+
private replied;
|
|
16
|
+
/** Senders of a turn that ended with no reply, until a submission carries the re-prompt. */
|
|
17
|
+
private waiting;
|
|
18
|
+
get pending(): boolean;
|
|
19
|
+
/** A submission goes out carrying these items. */
|
|
20
|
+
submitted(items: readonly InboxItem[]): void;
|
|
21
|
+
/** A cotal_* tool returned without an error. */
|
|
22
|
+
toolSucceeded(name: string): void;
|
|
23
|
+
/** The running turn ended. Only a clean end with no reply sent waits for the re-prompt. */
|
|
24
|
+
ended(succeeded: boolean): void;
|
|
25
|
+
/** The re-prompt for the next submission, taken out of waiting. */
|
|
26
|
+
take(): {
|
|
27
|
+
text: string;
|
|
28
|
+
restore(): void;
|
|
29
|
+
} | undefined;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=reply-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reply-check.d.ts","sourceRoot":"","sources":["../src/reply-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIjF,eAAO,MAAM,gBAAgB,GAAI,SAAS,SAAS,MAAM,EAAE,KAAG,MAGV,CAAC;AAErD,qBAAa,UAAU;IACrB,uEAAuE;IACvE,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,OAAO,CAAS;IACxB,4FAA4F;IAC5F,OAAO,CAAC,OAAO,CAAuB;IAEtC,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,kDAAkD;IAClD,SAAS,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,IAAI;IAM5C,gDAAgD;IAChD,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIjC,2FAA2F;IAC3F,KAAK,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAK/B,mEAAmE;IACnE,IAAI,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,IAAI,IAAI,CAAA;KAAE,GAAG,SAAS;CAMtD"}
|
package/dist/tools.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare function buildCotalTools(agent: MeshAgent, config: AgentConfig):
|
|
|
25
25
|
* schema goes across unmodified; there is no 1.x-style raw-shape flattening needed here. The
|
|
26
26
|
* closed-object refusal at dispatch is the same guard as {@link buildCotalTools} keeps: this host
|
|
27
27
|
* also hands `execute` the caller's object UNVALIDATED, so a stray `owner`/`actor` is refused by
|
|
28
|
-
* name here too, never silently reaching `run`.
|
|
29
|
-
|
|
28
|
+
* name here too, never silently reaching `run`. `succeeded` hears each tool that returns without
|
|
29
|
+
* an error. */
|
|
30
|
+
export declare function buildCotalTools2(agent: MeshAgent, config: AgentConfig, succeeded: (tool: string) => void): Parameters<OpenCode2ToolEditor["add"]>[0][];
|
|
30
31
|
//# sourceMappingURL=tools.d.ts.map
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAiC,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC3G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA6CrG;AAED
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAiC,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC3G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA6CrG;AAED;;;;;;;gBAOgB;AAChB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAChC,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAuC7C"}
|
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.176.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.176.0",
|
|
25
|
+
"@cotal-ai/connector-core": "0.176.0",
|
|
26
|
+
"@cotal-ai/core": "0.176.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",
|