@zvada/agent-server 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zvada/agent-server",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Harness-agnostic agent execution engine: run Claude Code, Codex (SDK/CLI + app-server), and any ACP agent behind one interface with a normalized event stream, multi-turn sessions, and resume. Root export is the wire contract; /core, /server, /client are the seats.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -144,7 +144,11 @@ export class CodexAppServerTransformer implements EventTransformer<unknown> {
144
144
  (item.type === "agentMessage"
145
145
  ? createTextPart(this.ctx, item.text ?? "", true)
146
146
  : createReasoningPart(this.ctx, item.text ?? "", true))) as TextPart | ReasoningPart;
147
- if (item.text !== undefined) p.text = item.text;
147
+ // Reasoning items complete with text:"" while their thought content
148
+ // streamed via item/reasoning/summaryTextDelta — an empty completed
149
+ // text must not clobber the accumulated delta text (consumers persist
150
+ // the terminal snapshot).
151
+ if (item.text) p.text = item.text;
148
152
  p.state = "done";
149
153
  if (!part) this.partByItem.set(item.id, p);
150
154
  return [{ kind: "part-update", part: p }];
@@ -1,4 +1,4 @@
1
- // @agent-server/core/proxy — optional BYOK Anthropic proxy building block.
1
+ // @zvada/agent-server/core/proxy — optional BYOK Anthropic proxy building block.
2
2
  export { type ApiKeyEntry, ApiKeyStore, apiKeyStore } from "./api-key-store.ts";
3
3
  export {
4
4
  type AnthropicProxyOptions,