@cotal-ai/connector-codex 0.20.1 → 0.22.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/app-server.d.ts +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +20 -84
- package/dist/index.js +46 -35
- package/package.json +4 -4
- package/dist/transcript.d.ts +0 -22
- package/dist/transcript.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/connector-codex",
|
|
3
3
|
"description": "Cotal connector for OpenAI Codex: a host-mode peer driving codex app-server, with Codex's own TUI attached and the cotal_* tools served over a loopback MCP endpoint.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"tsx": "^4.22.4",
|
|
28
28
|
"ws": "^8.21.0",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@cotal-ai/connector-core": "0.
|
|
31
|
-
"@cotal-ai/
|
|
32
|
-
"@cotal-ai/
|
|
30
|
+
"@cotal-ai/connector-core": "0.22.0",
|
|
31
|
+
"@cotal-ai/core": "0.22.0",
|
|
32
|
+
"@cotal-ai/smoke-kit": "0.0.0"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist"
|
package/dist/transcript.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Codex transcript mirror — publishes the agent's OWN thread output to the per-agent
|
|
3
|
-
* `tr-<name>` channel (assistant text in full, commands/tool calls as one-liners,
|
|
4
|
-
* reasoning omitted), at parity with the Claude Code and OpenCode mirrors.
|
|
5
|
-
*
|
|
6
|
-
* EVENT-DRIVEN off the app-server notification stream the host already consumes:
|
|
7
|
-
* • observe(item) ← item/completed: condense the item NOW and buffer its lines;
|
|
8
|
-
* • flush() ← turn end: publish the turn's settled lines, then clear.
|
|
9
|
-
* Snapshot-then-clear before the await means a duplicate turn-end can't republish.
|
|
10
|
-
* Best-effort at the publish boundary: the host keeps a transport error OFF the turn
|
|
11
|
-
* loop (logged, never wedging the agent); durability/replay is the channel's job.
|
|
12
|
-
*/
|
|
13
|
-
import type { MeshAgent } from "@cotal-ai/connector-core";
|
|
14
|
-
import type { ThreadItem } from "./app-server.js";
|
|
15
|
-
export interface TranscriptMirror {
|
|
16
|
-
/** item/completed → buffer the item's condensed lines (preview-truncated at buffer time). */
|
|
17
|
-
observe(item: ThreadItem): void;
|
|
18
|
-
/** turn end → publish the turn's lines to the channel, then clear. */
|
|
19
|
-
flush(): Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
export declare function createTranscriptMirror(agent: MeshAgent, channel: string): TranscriptMirror;
|
|
22
|
-
//# sourceMappingURL=transcript.d.ts.map
|
package/dist/transcript.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../src/transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAuDlD,MAAM,WAAW,gBAAgB;IAC/B,6FAA6F;IAC7F,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAChC,sEAAsE;IACtE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAY1F"}
|