@zergai/ztc 0.24.0-beta.1 → 0.25.0-beta.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.
Files changed (40) hide show
  1. package/README.md +29 -0
  2. package/bin/zmux-darwin-arm64 +0 -0
  3. package/bin/ztc-audio-darwin-arm64 +0 -0
  4. package/bin/ztc-capture-darwin-arm64 +0 -0
  5. package/bin/ztc-tui-darwin-arm64 +0 -0
  6. package/bin/zterm-darwin-arm64 +2 -2
  7. package/dist/App.js +4 -0
  8. package/dist/agent/agent.js +5 -2
  9. package/dist/agent/backends/anthropic.js +4 -1
  10. package/dist/agent/backends/bedrock.js +4 -1
  11. package/dist/agent/backends/codex_app_server.js +6 -2
  12. package/dist/agent/backends/gemini.d.ts +9 -0
  13. package/dist/agent/backends/gemini.js +77 -39
  14. package/dist/agent/backends/openai_format.d.ts +17 -1
  15. package/dist/agent/backends/openai_format.js +122 -24
  16. package/dist/agent/backends/openai_responses.d.ts +15 -3
  17. package/dist/agent/backends/openai_responses.js +32 -8
  18. package/dist/agent/backends/request_metrics.js +7 -6
  19. package/dist/agent/backends/tool_result_images.d.ts +114 -0
  20. package/dist/agent/backends/tool_result_images.js +201 -0
  21. package/dist/agent/backends/types.d.ts +5 -0
  22. package/dist/agent/backends/zerg-api.js +4 -2
  23. package/dist/agent/backends/zrouter_stream.d.ts +47 -0
  24. package/dist/agent/backends/zrouter_stream.js +244 -54
  25. package/dist/agent/request_encoder.d.ts +6 -2
  26. package/dist/agent/request_encoder.js +24 -34
  27. package/dist/agent/runtime/evidence.d.ts +6 -0
  28. package/dist/agent/runtime/evidence.js +23 -1
  29. package/dist/agent/runtime/tool_runtime.js +30 -17
  30. package/dist/agent/subagent.js +7 -8
  31. package/dist/agent/tool_response_store.js +3 -3
  32. package/dist/agent/tool_result_parsing.d.ts +22 -0
  33. package/dist/agent/tool_result_parsing.js +51 -0
  34. package/dist/agent/tools/recall_tool_response.js +24 -0
  35. package/dist/cli_ratatui.js +4 -0
  36. package/dist/headless.js +6 -0
  37. package/dist/types.d.ts +5 -0
  38. package/dist/utils/compaction.js +30 -4
  39. package/dist/zlm-embed.mjs +651 -194
  40. package/package.json +9 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zergai/ztc",
3
- "version": "0.24.0-beta.1",
3
+ "version": "0.25.0-beta.1",
4
4
  "description": "Zerg Terminal Client - CLI agent for continual AI systems",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://zergai.com/docs/ztc",
@@ -285,43 +285,18 @@
285
285
  "zergRelease": {
286
286
  "branch": "main",
287
287
  "channel": "next",
288
- "sourceCommit": "ca23b60a3d4136f87548a5e1c1c656993b3a344d",
288
+ "sourceCommit": "0ce51c097abf97a57a15730443ac8fc401dc14ec",
289
289
  "sourceVersion": "0.2.0-canary.2",
290
290
  "whatsNew": [
291
- "Resume, continue or fork your Claude Code and Codex sessions: /claude resume and /codex resume list them, in this folder or all of them.",
292
- "Main answers a Claude Code or Codex pane once the work on its message is done, and the pane sets how many answers come without you.",
293
- "Close a desktop tab with its ×, a middle-click, its menu or ⌥⌘W, and you're asked first if closing it would stop work running in it.",
294
- "File tools and patches stay in the folders your permission profile allows: a path sent as a list can no longer skip the folder rules."
291
+ "Images that MCP and other tools return now reach models that take images; others get a short placeholder instead of pages of text.",
292
+ "Each request sends only your latest 3 tool images, so a long session's screenshots don't pile up in every request.",
293
+ "The desktop app now finds updates on zergai.com, so new releases no longer wait on GitHub Pages; older apps need one update by hand."
295
294
  ],
296
295
  "changes": [
297
- "Main answers an agent's message once it has finished, with its answer.",
298
- "Two messages typed into a Claude Code or Codex pane in a row arrive as two.",
299
- "What ZTC types into a Claude Code or Codex pane carries no control characters.",
300
- "Main's messages carry the name its pane goes by.",
301
- "Closing a prompt that opened in Main by itself says what it closed.",
302
- "A line ZTC shows only in this terminal stays out of the turn's recap.",
303
- "/help shows every command as you type it.",
304
- "A Router key that is stored broken, or that its provider refused, says so in Router's words.",
305
- "A request Zerg Router fails says what failed, with its HTTP status.",
306
- "A session whose diagnostics were masked differently between checkpoints loads again.",
307
- "Resume your Claude Code and Codex sessions.",
308
- "/claude -- TEXT and /codex -- TEXT start a fresh session with the text as its prompt, word for word",
309
- "The pane that starts an exchange with Main chooses how long Main answers it by itself.",
310
- "Close a tab in the desktop app.",
311
- "The desktop app's mirror answers only the link ZTC gives.",
312
- "A pane's own credential no longer types as you, or into a shell or a command pane.",
313
- "A message for a ZTC pane that is still starting waits for it, and is never typed in.",
314
- "The pane relay forwards only what a pane may send.",
315
- "On Linux the pane relay's socket is yours alone.",
316
- "apply_patch reads a diff's names exactly as git does, NUL bytes and all.",
317
- "A confined write cannot build a new git directory.",
318
- "A path or patch must be well-formed Unicode text.",
319
- "apply_patch writes only where a permission profile allows.",
320
- "git no longer runs a command a confined agent planted.",
321
- "apply_patch no longer shows a file outside the root through a link it made.",
322
- "A Codex apply_patch heredoc is a file write.",
323
- "A denied path is denied however it's spelled.",
324
- "A file tool reads only a path the profile checked."
296
+ "A model that takes images now sees the images your tools return.",
297
+ "A tool's image no longer reaches the model as text.",
298
+ "The desktop app finds new releases without GitHub Pages.",
299
+ "The desktop app also takes its downloads from zergai.com."
325
300
  ]
326
301
  },
327
302
  "publishConfig": {