@engineeros/connector 0.12.2 → 0.12.4
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/bin/engineeros-connector.mjs +799 -791
- package/package.json +36 -36
- package/src/acp-client.mjs +5 -1
- package/src/codex-app-server.mjs +6 -3
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@engineeros/connector",
|
|
3
|
-
"version": "0.12.
|
|
4
|
-
"description": "Connect a local coding agent to EngineerOS, using ACP when supported.",
|
|
5
|
-
"private": false,
|
|
6
|
-
"type": "module",
|
|
7
|
-
"license": "UNLICENSED",
|
|
8
|
-
"files": [
|
|
9
|
-
"bin",
|
|
10
|
-
"src",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"bin": {
|
|
14
|
-
"engineeros-connector": "bin/engineeros-connector.mjs"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"start": "node ./bin/engineeros-connector.mjs",
|
|
18
|
-
"prepublishOnly": "node ./scripts/release.mjs check",
|
|
19
|
-
"release:patch": "node ./scripts/release.mjs patch",
|
|
20
|
-
"test": "node --test --test-concurrency=1",
|
|
21
|
-
"type-check": "node --check ./bin/engineeros-connector.mjs && node --check ./scripts/release.mjs && node --check ./src/acp-client.mjs && node --check ./src/agent-harness.mjs && node --check ./src/agent-registry.mjs && node --check ./src/capabilities.mjs && node --check ./src/cli-args.mjs && node --check ./src/codex-app-server.mjs && node --check ./src/config.mjs && node --check ./src/connection.mjs && node --check ./src/mcp-server.mjs && node --check ./src/runner.mjs"
|
|
22
|
-
},
|
|
23
|
-
"engines": {
|
|
24
|
-
"node": ">=22"
|
|
25
|
-
},
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/vinpuli/engineerosv2.git",
|
|
29
|
-
"directory": "packages/engineeros-connector"
|
|
30
|
-
},
|
|
31
|
-
"bugs": {
|
|
32
|
-
"url": "https://github.com/vinpuli/engineerosv2/issues"
|
|
33
|
-
},
|
|
34
|
-
"publishConfig": {
|
|
35
|
-
"access": "public"
|
|
36
|
-
},
|
|
1
|
+
{
|
|
2
|
+
"name": "@engineeros/connector",
|
|
3
|
+
"version": "0.12.4",
|
|
4
|
+
"description": "Connect a local coding agent to EngineerOS, using ACP when supported.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "UNLICENSED",
|
|
8
|
+
"files": [
|
|
9
|
+
"bin",
|
|
10
|
+
"src",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"bin": {
|
|
14
|
+
"engineeros-connector": "bin/engineeros-connector.mjs"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"start": "node ./bin/engineeros-connector.mjs",
|
|
18
|
+
"prepublishOnly": "node ./scripts/release.mjs check",
|
|
19
|
+
"release:patch": "node ./scripts/release.mjs patch",
|
|
20
|
+
"test": "node --test --test-concurrency=1",
|
|
21
|
+
"type-check": "node --check ./bin/engineeros-connector.mjs && node --check ./scripts/release.mjs && node --check ./src/acp-client.mjs && node --check ./src/agent-harness.mjs && node --check ./src/agent-registry.mjs && node --check ./src/capabilities.mjs && node --check ./src/cli-args.mjs && node --check ./src/codex-app-server.mjs && node --check ./src/config.mjs && node --check ./src/connection.mjs && node --check ./src/mcp-server.mjs && node --check ./src/runner.mjs"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/vinpuli/engineerosv2.git",
|
|
29
|
+
"directory": "packages/engineeros-connector"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/vinpuli/engineerosv2/issues"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@agentclientprotocol/sdk": "1.3.0",
|
|
39
39
|
"zod": "3.25.76"
|
package/src/acp-client.mjs
CHANGED
|
@@ -424,7 +424,11 @@ export function normalizeTokenUsage(value) {
|
|
|
424
424
|
input_tokens: number("inputTokens", "input_tokens"),
|
|
425
425
|
output_tokens: number("outputTokens", "output_tokens"),
|
|
426
426
|
cache_read_tokens: number("cachedReadTokens", "cachedInputTokens", "cache_read_input_tokens"),
|
|
427
|
-
cache_write_tokens: number(
|
|
427
|
+
cache_write_tokens: number(
|
|
428
|
+
"cachedWriteTokens",
|
|
429
|
+
"cacheWriteInputTokens",
|
|
430
|
+
"cache_creation_input_tokens",
|
|
431
|
+
),
|
|
428
432
|
reasoning_tokens: number("reasoningTokens", "reasoningOutputTokens", "reasoning_tokens"),
|
|
429
433
|
};
|
|
430
434
|
usage.total_tokens = number("totalTokens", "total_tokens") ||
|
package/src/codex-app-server.mjs
CHANGED
|
@@ -157,11 +157,14 @@ export function launchCodexAppServer({
|
|
|
157
157
|
if (message.method === "item/agentMessage/delta" && typeof params.delta === "string") {
|
|
158
158
|
finalMessage += params.delta;
|
|
159
159
|
callbacks.onEvent?.({ type: "codex.agent_message_delta", delta: params.delta });
|
|
160
|
-
} else if (message.method === "item/started" || message.method === "item/completed") {
|
|
161
|
-
callbacks.onEvent?.({ type: `codex.${message.method}`, item: params.item });
|
|
160
|
+
} else if (message.method === "item/started" || message.method === "item/completed") {
|
|
161
|
+
callbacks.onEvent?.({ type: `codex.${message.method}`, item: params.item });
|
|
162
162
|
} else if (message.method === "thread/tokenUsage/updated") {
|
|
163
|
+
const tokenUsage = params.tokenUsage || params.usage || params;
|
|
163
164
|
usage = normalizeTokenUsage(
|
|
164
|
-
|
|
165
|
+
previousSessionId
|
|
166
|
+
? tokenUsage.last || params.last || tokenUsage
|
|
167
|
+
: tokenUsage.total || params.total || tokenUsage.last || params.last || tokenUsage,
|
|
165
168
|
);
|
|
166
169
|
callbacks.onEvent?.({ type: "codex.usage", update: params });
|
|
167
170
|
if (usage && completionTimer) {
|