antechamber 2.0.4 → 2.0.5

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 CHANGED
@@ -7,6 +7,10 @@ and this project uses [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.5] - 2026-11-19
11
+
12
+ - fix(v2): open a turn for a ! shell command in OpenChamber 2.x (#92)
13
+
10
14
  ## [2.0.4] - 2026-11-19
11
15
 
12
16
  ### Fixed
@@ -16,6 +20,9 @@ and this project uses [Semantic Versioning](https://semver.org/).
16
20
  - A `!` shell command shows one card in OpenChamber 2.5, not two. The adapter no longer sends `session.shell.started`
17
21
  and `session.shell.ended`, which OpenChamber draws as a second shell row; the remaining `bash` card is the one that
18
22
  shows output while the command runs.
23
+ - Show a `!` shell command as its own turn at the end of the conversation in OpenChamber 2.x, instead of inside the
24
+ agent's previous turn. antechamber announced the command's user turn with `session.prompted`, which OpenChamber 2.5
25
+ does not handle, so the shell card joined the last turn it knew; it now uses the inbox events OpenChamber reads.
19
26
 
20
27
  ## [2.0.3] - 2026-11-17
21
28
 
package/dist/v2.js CHANGED
@@ -574,15 +574,18 @@ export class V2EventTranslator {
574
574
  return part.type === "tool" ? this.onToolPart(directory, part) : this.onTextPart(directory, part, delta);
575
575
  }
576
576
  onTextPart(directory, part, delta) {
577
- // Shell creates this user turn on the server; there is no optimistic prompt.
577
+ // Shell creates this user turn on the server; there is no optimistic prompt. OpenChamber 2.5 maps no
578
+ // `session.prompted` (packages/ui/src/lib/opencode/events.ts), so it learns of the turn from the inbox events;
579
+ // without them the shell card joins the previous turn. Both keep the message's own time, ahead of its card.
578
580
  if (part.type === "text" && part.synthetic) {
581
+ const created = part.time?.start ?? Date.now();
579
582
  return [
580
- this.frame(directory, "session.prompted", {
583
+ this.frame(directory, "session.inbox.enqueued", {
581
584
  sessionID: part.sessionID,
582
- messageID: part.messageID,
583
- prompt: { text: part.text },
584
- delivery: "queue",
585
- }),
585
+ inboxID: part.messageID,
586
+ item: { type: "user", delivery: "queue", payload: { text: part.text } },
587
+ }, created),
588
+ this.frame(directory, "session.inbox.delivered", { sessionID: part.sessionID, inboxID: part.messageID }, created),
586
589
  ];
587
590
  }
588
591
  const kind = part.type;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antechamber-openchamber",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "OpenChamber extension for antechamber: installs and pins the antechamber server and OmO, draws the OmO Graph and the OmO Work section, and titles OmO tool cards",
5
5
  "private": true,
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antechamber",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "OpenCode-compatible HTTP/SSE server that lets OpenChamber drive the pi coding agent (and OmO) over RPC",
5
5
  "type": "module",
6
6
  "license": "MIT",