@nyssance/codex-acp-v2 0.7.5 → 0.7.6
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/CHANGELOG.md +9 -0
- package/dist/index.js +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.6 — 2026-10-08
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- The `_meta` of a `session/prompt` is echoed once on the `user_message` reported under the same receipt id
|
|
8
|
+
(`_meta.alwith.messageId`), merged with the adapter's own `_meta.codex`. A host can therefore attach its own
|
|
9
|
+
per-message metadata (canvas references, attachments, a skill name) and get it back from the live stream and
|
|
10
|
+
from the Runtime's session event log on replay. Codex's own history snapshots (`session/load`) do not carry it.
|
|
11
|
+
|
|
3
12
|
## 0.7.5 — 2026-10-08
|
|
4
13
|
|
|
5
14
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -22046,7 +22046,7 @@ var package_default = {
|
|
|
22046
22046
|
publishConfig: {
|
|
22047
22047
|
access: "public"
|
|
22048
22048
|
},
|
|
22049
|
-
version: "0.7.
|
|
22049
|
+
version: "0.7.6",
|
|
22050
22050
|
description: "Native ACP v2 agent for the OpenAI Codex app-server",
|
|
22051
22051
|
packageManager: "bun@1.4.0",
|
|
22052
22052
|
engines: {
|
|
@@ -23896,6 +23896,7 @@ class EventBridge {
|
|
|
23896
23896
|
openToolCalls = new Set;
|
|
23897
23897
|
announcedTools = new Set;
|
|
23898
23898
|
messagePhases = new Map;
|
|
23899
|
+
promptMeta = new Map;
|
|
23899
23900
|
reasoningWithDeltas = new Set;
|
|
23900
23901
|
terminalItems = new Set;
|
|
23901
23902
|
imageGenerations = new Set;
|
|
@@ -23911,6 +23912,9 @@ class EventBridge {
|
|
|
23911
23912
|
this.client = client;
|
|
23912
23913
|
this.session = session;
|
|
23913
23914
|
}
|
|
23915
|
+
rememberPromptMeta(messageId, meta) {
|
|
23916
|
+
this.promptMeta.set(messageId, meta);
|
|
23917
|
+
}
|
|
23914
23918
|
beginTurn() {
|
|
23915
23919
|
this.lastError = null;
|
|
23916
23920
|
this.completedPlan = null;
|
|
@@ -24192,7 +24196,12 @@ ${details}` : summary)];
|
|
|
24192
24196
|
return [compactionUpdate(item.id, "in_progress")];
|
|
24193
24197
|
case "userMessage": {
|
|
24194
24198
|
const content = item.content.flatMap(fromUserInput);
|
|
24195
|
-
|
|
24199
|
+
if (content.length === 0)
|
|
24200
|
+
return [];
|
|
24201
|
+
const messageId = item.clientId ?? item.id;
|
|
24202
|
+
const meta = this.promptMeta.get(messageId);
|
|
24203
|
+
this.promptMeta.delete(messageId);
|
|
24204
|
+
return [{ sessionUpdate: "user_message", messageId, content, ...meta ? { _meta: meta } : {} }];
|
|
24196
24205
|
}
|
|
24197
24206
|
case "hookPrompt":
|
|
24198
24207
|
case "functionCallOutput":
|
|
@@ -27925,6 +27934,8 @@ class CodexAgent {
|
|
|
27925
27934
|
throw RequestError.invalidParams(undefined, "prompt must contain at least one content block");
|
|
27926
27935
|
}
|
|
27927
27936
|
const { session } = runtime;
|
|
27937
|
+
if (params._meta && typeof params._meta === "object")
|
|
27938
|
+
runtime.bridge.rememberPromptMeta(messageId, params._meta);
|
|
27928
27939
|
this.providers.upstreamModel(session.model.model);
|
|
27929
27940
|
const model = findModel(session.catalog, session.model.model);
|
|
27930
27941
|
if (!modelSupportsImages(model) && params.prompt.some((block) => block.type === "image")) {
|