zapagent 1.14.28 → 1.14.30
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/README.md +2 -4
- package/README.zh-CN.md +1 -3
- package/bundled-dependencies.json +197 -197
- package/package.json +1 -1
- package/src/App.tsx +20 -16
- package/src/acp/agent.ts +2 -1
- package/src/agent/cacheScope.ts +11 -0
- package/src/agent/claude-code.ts +160 -0
- package/src/agent/official-agents.ts +83 -0
- package/src/agent/outputThroughput.ts +27 -0
- package/src/agent/remote-agent.ts +5 -2
- package/src/agent/remote-turn.ts +42 -6
- package/src/agent/wireRunHandlers.ts +6 -7
- package/src/agent-factory.ts +3 -15
- package/src/codex-auth-command.ts +14 -27
- package/src/codex-auth.ts +25 -227
- package/src/codex-provider.ts +9 -11
- package/src/commands/dispatcher.ts +26 -9
- package/src/commands/status.ts +9 -7
- package/src/config.ts +18 -4
- package/src/headless/runHeadless.ts +9 -0
- package/src/hooks/useAgentRunner.ts +25 -6
- package/src/index.tsx +2 -2
- package/src/ui/dialog-codex-login.tsx +15 -19
- package/src/ui/dialog-config.tsx +3 -1
- package/src/ui/dialog-connect.tsx +9 -5
- package/src/ui/dialog-model.tsx +82 -22
- package/src/ui/footer.tsx +10 -8
- package/src/ui/provider-directory.tsx +5 -3
- package/zapsdk/acp-client/event-mapper.ts +9 -2
- package/zapsdk/acp-client/host-handlers.ts +18 -4
- package/zapsdk/acp-client/run.ts +6 -1
- package/zapsdk/acp-client/types.ts +2 -0
- package/zapsdk/execution/process.ts +9 -2
package/README.md
CHANGED
|
@@ -70,9 +70,7 @@ Interact in the terminal and follow task progress in the live browser view.
|
|
|
70
70
|
|
|
71
71
|
On first use, enter `/connect` and follow the setup prompts to connect your model service. Then describe what you want: “Read the materials in this folder, summarize the key points, and write a report.”
|
|
72
72
|
|
|
73
|
-
Use
|
|
74
|
-
to sign in with a ChatGPT account using OAuth. Codex connections also support image generation: ask Zap to create an image and save it to a new `.png` file. [Image generation](docs/usage.md#image-generation-with-codex). Usage and model access depend on
|
|
75
|
-
your provider/account. [Connection guide](docs/usage.md#getting-started).
|
|
73
|
+
Use an API key for Zap's own agent, or choose **OpenAI Codex (ChatGPT)** or **Claude Code** to run the installed agent inside Zap. The local CLI handles authentication and model requests. [Connection guide](docs/usage.md#local-codex-and-claude-code-sessions).
|
|
76
74
|
|
|
77
75
|
Update from your terminal with `zap update` (or `zap update --yes` for unattended installation).
|
|
78
76
|
|
|
@@ -97,7 +95,7 @@ Git workspaces also require [Git](https://git-scm.com).
|
|
|
97
95
|
| Linux | [ARM64](https://github.com/JackCaow/zapagent/releases/latest/download/zap-linux-arm64) · [x64](https://github.com/JackCaow/zapagent/releases/latest/download/zap-linux-x64) |
|
|
98
96
|
| Windows | [x64](https://github.com/JackCaow/zapagent/releases/latest/download/zap-windows-x64.exe) |
|
|
99
97
|
|
|
100
|
-
**Model configuration** — use `/model` to choose a model and `/effort` to adjust supported reasoning settings. For custom services, enter the Base URL and API key in `/connect` and select the service's API protocol; choose **OpenAI Responses** for a Responses endpoint. [Responses configuration](docs/usage.md#openai-responses-api).
|
|
98
|
+
**Model configuration** — use `/model` to choose a model and `/effort` to adjust supported reasoning settings. For custom services, enter the Base URL and API key in `/connect` and select the service's API protocol; choose **OpenAI Responses** for a Responses endpoint. [Responses configuration](docs/usage.md#openai-responses-api). Zap reads Codex reasoning levels and defaults from the local CLI catalog. Choices are saved per model; **default** (or `/effort off`) lets the server choose. Saved capabilities remain available offline. [Terminal recording](docs/recordings/model-effort.cast).
|
|
101
99
|
|
|
102
100
|
**From source** — the repository pins Bun 1.3.14:
|
|
103
101
|
|
package/README.zh-CN.md
CHANGED
|
@@ -68,9 +68,7 @@ zap --watch
|
|
|
68
68
|
|
|
69
69
|
**3. 连接模型,描述任务**
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
可以使用模型服务账号和 API Key,也可以通过 OAuth 登录 ChatGPT 账号使用 Codex;可用模型和用量取决于所选服务及账号。[连接指南](docs/usage.md#getting-started)。
|
|
71
|
+
首次使用时输入 `/connect`。选择 API Key 连接可使用 Zap 自己的工具和 `/goal`。选择 **OpenAI Codex (ChatGPT)** 或 **Claude Code**,即可在 Zap 终端内与本机安装的官方 agent 对话。登录凭据和模型请求由对应 CLI 处理。[安装与连接指南](docs/usage.md#local-codex-and-claude-code-sessions)。
|
|
74
72
|
|
|
75
73
|
在终端执行 `zap update` 检查并确认更新;脚本中可用 `zap update --yes` 跳过交互确认。
|
|
76
74
|
|