@cotal-ai/connector-codex 0.78.1 → 0.81.1
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/host.d.ts.map +1 -1
- package/dist/host.js +834 -370
- package/dist/index.js +10 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { DEFAULT_SERVER, DEV_OWNER, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV2,
|
|
|
17
17
|
import { LAUNCH_MATERIAL_ENV, readLaunchMaterial } from "@cotal-ai/core/launch-material";
|
|
18
18
|
|
|
19
19
|
// ../connector-core/dist/agent.js
|
|
20
|
-
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, acquireLocalConsumer, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken2, EpEnvelopeError as EpEnvelopeError2, isPublishPermissionDenied, unansweredRequest,
|
|
20
|
+
import { normalizeMentions, RUN_LAUNCH_DEADLINE_MS, subjectMatches, isConcreteChannel as isConcreteChannel2, assertValidChannel as assertValidChannel2, channelInAllow as channelInAllow2, resolvePeer as resolvePeerInRoster, peerLabel as peerLabel2, CotalEndpoint, acquireLocalConsumer, BASELINE_LIFECYCLE_ENDPOINT as BASELINE_LIFECYCLE_ENDPOINT2, BIND_SPLIT_REISSUES, assertLifecycleToken as assertLifecycleToken2, EpEnvelopeError as EpEnvelopeError2, isPublishPermissionDenied, unansweredRequest, controlReplyFrom, controlReplyFromThrown, runAgentBearer, partsToText, assertValidRole } from "@cotal-ai/core";
|
|
21
21
|
|
|
22
22
|
// ../connector-core/dist/framing.js
|
|
23
23
|
import { peerLabel } from "@cotal-ai/core";
|
|
@@ -25,6 +25,10 @@ import { peerLabel } from "@cotal-ai/core";
|
|
|
25
25
|
// ../connector-core/dist/manager-call.js
|
|
26
26
|
import { BASELINE_LIFECYCLE_ENDPOINT, EpEnvelopeError, dialerFor, goalFollowRefusal, invokeCommand, isPermissionDenied, issuedUserCaller, managerCallerBinding, replyRefusedBeforeEffect, resolveService, standaloneConnectOpts } from "@cotal-ai/core";
|
|
27
27
|
|
|
28
|
+
// ../connector-core/dist/agent.js
|
|
29
|
+
var MAX_INBOX = 200;
|
|
30
|
+
var MAX_IN_FLIGHT = MAX_INBOX * 2;
|
|
31
|
+
|
|
28
32
|
// ../connector-core/dist/runtime.js
|
|
29
33
|
import { tmpdir } from "node:os";
|
|
30
34
|
import { join } from "node:path";
|
|
@@ -194,7 +198,6 @@ var EGRESS_FORBIDDEN_TYPES = /* @__PURE__ */ new Set([
|
|
|
194
198
|
AGUI_EVENT_TYPE2.TOOL_CALL_ARGS,
|
|
195
199
|
AGUI_EVENT_TYPE2.TOOL_CALL_RESULT
|
|
196
200
|
]);
|
|
197
|
-
var KNOWN_AGUI_EVENT_TYPES = new Set(Object.values(AGUI_EVENT_TYPE2));
|
|
198
201
|
var KNOWN_EVENT_KEYS_BY_TYPE = /* @__PURE__ */ new Map([
|
|
199
202
|
[AGUI_EVENT_TYPE2.RUN_STARTED, /* @__PURE__ */ new Set(["type", "timestamp", "rawEvent", "threadId", "runId", "parentRunId", "input", "cotal"])],
|
|
200
203
|
[AGUI_EVENT_TYPE2.RUN_FINISHED, /* @__PURE__ */ new Set(["type", "timestamp", "rawEvent", "threadId", "runId", "result", "outcome", "cotal"])],
|
|
@@ -14862,7 +14865,7 @@ function date4(params) {
|
|
|
14862
14865
|
config(en_default());
|
|
14863
14866
|
|
|
14864
14867
|
// ../connector-core/dist/tool-specs.js
|
|
14865
|
-
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken3, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked
|
|
14868
|
+
import { isConcreteChannel as isConcreteChannel3, channelInAllow as channelInAllow3, AmbiguousPeerError, peerLabel as peerLabel4, assertLifecycleToken as assertLifecycleToken3, isPermissionDenied as isPermissionDenied2, renderLifecycleBlocked, EpEnvelopeError as EpEnvelopeError3, LANG_PROBLEM_DETAIL_KIND, formatAge, presenceAges } from "@cotal-ai/core";
|
|
14866
14869
|
|
|
14867
14870
|
// ../connector-core/dist/orientation.js
|
|
14868
14871
|
import { peerLabel as peerLabel3 } from "@cotal-ai/core";
|
|
@@ -14929,6 +14932,10 @@ async function listCodexModels() {
|
|
|
14929
14932
|
clearTimeout(timer);
|
|
14930
14933
|
reject(new Error(`codex app-server exited (${code}) before model/list answered`));
|
|
14931
14934
|
});
|
|
14935
|
+
child.stdin.on("error", (e) => {
|
|
14936
|
+
clearTimeout(timer);
|
|
14937
|
+
reject(new Error(`codex app-server stdin failed before model/list answered (${e.message})`));
|
|
14938
|
+
});
|
|
14932
14939
|
child.stdin.write(
|
|
14933
14940
|
JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { clientInfo: { name: "cotal", title: "Cotal", version: "0.0.0" } } }) + "\n"
|
|
14934
14941
|
);
|
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.81.1",
|
|
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.
|
|
25
|
-
"@cotal-ai/core": "0.
|
|
24
|
+
"@cotal-ai/connector-core": "0.81.1",
|
|
25
|
+
"@cotal-ai/core": "0.81.1",
|
|
26
26
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
28
28
|
"@nats-io/transport-node": "^3.4.0",
|