zapagent 1.14.26 → 1.14.27
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/LICENSE +2 -3
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/SECURITY.md +3 -2
- package/THIRD_PARTY_NOTICES.md +4 -8
- package/bundled-dependencies.json +204 -204
- package/package.json +1 -1
- package/src/App.tsx +19 -6
- package/src/agent/remote-agent.ts +150 -0
- package/src/agent/remote-turn.ts +72 -0
- package/src/agent/wireRunHandlers.ts +5 -2
- package/src/agent-factory.ts +19 -2
- package/src/approval-facts.ts +20 -3
- package/src/commands/dispatcher.ts +47 -3
- package/src/commands.ts +4 -0
- package/src/config.ts +13 -2
- package/src/execution-environment.ts +20 -2
- package/src/goal-command.ts +6 -3
- package/src/goal-session.ts +1 -1
- package/src/goal-turn.ts +1 -1
- package/src/headless/runHeadless.ts +2 -1
- package/src/hooks/useAgentObjects.ts +8 -0
- package/src/hooks/useAgentRunner.ts +50 -1
- package/src/permission-policy.ts +5 -2
- package/src/permissions.ts +19 -12
- package/src/singletons.ts +21 -3
- package/src/tool-grants.ts +2 -2
- package/src/ui/Transcript.tsx +2 -1
- package/src/ui/dialog-approval.tsx +1 -1
- package/src/ui/dialog-tool-grant.tsx +2 -2
- package/src/ui/footer.tsx +4 -1
- package/src/ui/group-logs.ts +1 -1
- package/src/ui/live-activity.tsx +1 -1
- package/src/ui/slash-palette.tsx +1 -0
- package/src/ui/transcript-format.ts +5 -1
- package/zapsdk/acp-client/connection.ts +228 -0
- package/zapsdk/acp-client/detect.ts +28 -0
- package/zapsdk/acp-client/event-mapper.ts +231 -0
- package/zapsdk/acp-client/host-handlers.ts +225 -0
- package/zapsdk/acp-client/index.ts +6 -0
- package/zapsdk/acp-client/run.ts +169 -0
- package/zapsdk/acp-client/types.ts +52 -0
- package/zapsdk/builtin-tools/acp-agent.ts +188 -0
- package/zapsdk/builtin-tools/delegate-detect.ts +1 -1
- package/zapsdk/builtin-tools/index.ts +9 -0
- package/zapsdk/execution/process.ts +1 -1
- package/zapsdk/execution/sandbox.ts +6 -4
- package/zapsdk/execution/types.ts +3 -0
- package/zapsdk/goal/git-history-snapshot.ts +3 -1
package/LICENSE
CHANGED
|
@@ -20,6 +20,5 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
copyright and permission notices are retained in THIRD_PARTY_NOTICES.md.
|
|
23
|
+
Third-party components retain their own licenses. Prior copyright and
|
|
24
|
+
permission notices are retained in THIRD_PARTY_NOTICES.md.
|
package/README.md
CHANGED
|
@@ -170,7 +170,7 @@ The host starts a run through `AgentRuntime`. `LoopAgent` manages the model/tool
|
|
|
170
170
|
| :--- | :--- |
|
|
171
171
|
| [`src/`](src/) | Terminal UI, provider setup, sessions, headless/ACP hosts, and Watch. |
|
|
172
172
|
| [`zapsdk/`](zapsdk/) | TypeScript agent runtime: model loop, orchestration, tools, permissions, workspaces, merge, context, memory, and events. |
|
|
173
|
-
| [
|
|
173
|
+
| [zapVM](https://github.com/JackCaow/zapVM) (separate repository) | Optional Go VM runtime, installed separately. Zap connects to an installed runtime through the SDK protocol; the VM does not own agent prompts, permissions, or completion decisions. |
|
|
174
174
|
|
|
175
175
|
Git workspaces use private clones of a working-tree snapshot, including eligible uncommitted changes. Non-Git projects use controlled copy snapshots. Read-only agents can share the parent workspace view.
|
|
176
176
|
|
|
@@ -186,8 +186,8 @@ bun test
|
|
|
186
186
|
bun run build
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md), [open issues](https://github.com/JackCaow/zapagent/issues), and [SECURITY.md](SECURITY.md).
|
|
190
190
|
|
|
191
191
|
## License
|
|
192
192
|
|
|
193
|
-
CLI and SDK: [MIT](LICENSE).
|
|
193
|
+
CLI and SDK: [MIT](LICENSE). See [third-party notices](THIRD_PARTY_NOTICES.md) and [visual asset notes](docs/images/readme/README.md).
|
package/README.zh-CN.md
CHANGED
|
@@ -167,7 +167,7 @@ zap --watch -p "分析当前目录的数据并生成报告" --output-format stre
|
|
|
167
167
|
| :--- | :--- |
|
|
168
168
|
| [`src/`](src/) | 终端交互、模型配置、会话、Headless/ACP 宿主和 Watch。 |
|
|
169
169
|
| [`zapsdk/`](zapsdk/) | TypeScript agent 运行时:模型循环、协作、工具、权限、工作区、合并、上下文、记忆与事件。 |
|
|
170
|
-
| [
|
|
170
|
+
| [zapVM](https://github.com/JackCaow/zapVM)(独立仓库) | 可选的 Go VM 运行时,需单独安装;zap 通过 SDK 协议连接已安装的运行时,VM 不负责 agent 提示词、权限或完成判定。 |
|
|
171
171
|
|
|
172
172
|
Git 项目使用工作树快照的私有克隆,包含符合规则的未提交修改;非 Git 项目使用受控复制快照。只读 agent 可以共享父工作区视图。
|
|
173
173
|
|
|
@@ -183,8 +183,8 @@ bun test
|
|
|
183
183
|
bun run build
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
详见 [CONTRIBUTING.md](CONTRIBUTING.md)、[Issues](https://github.com/JackCaow/zapagent/issues) 和 [SECURITY.md](SECURITY.md)。
|
|
187
187
|
|
|
188
188
|
## 许可证
|
|
189
189
|
|
|
190
|
-
CLI 与 SDK:[MIT](LICENSE)
|
|
190
|
+
CLI 与 SDK:[MIT](LICENSE)。另见[第三方声明](THIRD_PARTY_NOTICES.md)与[配图说明](docs/images/readme/README.md)。
|
package/SECURITY.md
CHANGED
|
@@ -23,8 +23,9 @@ mode, reproduction steps, impact, and redacted diagnostics.
|
|
|
23
23
|
|
|
24
24
|
- Local execution is the default. Shell sandbox enforcement is platform-specific;
|
|
25
25
|
check the execution diagnostics rather than assuming a VM is active.
|
|
26
|
-
- VM execution is
|
|
27
|
-
|
|
26
|
+
- VM execution is currently disabled in zap; commands run on the local backend.
|
|
27
|
+
When enabled, it is opt-in and isolates guest commands, not the entire host Agent
|
|
28
|
+
process. See the VM threat model in [the zapVM repository](https://github.com/JackCaow/zapVM/blob/main/docs/threat-model.md).
|
|
28
29
|
- Explicitly approved unsandboxed execution runs with the user's host privileges.
|
|
29
30
|
Permission to call a tool is not proof that its OS sandbox is enforced.
|
|
30
31
|
- Provider APIs receive prompts and selected repository/tool content. MCP servers
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
[NOTICE](zapvm/NOTICE). Dependencies retain their respective licenses.
|
|
3
|
+
The CLI and SDK use MIT. Dependencies retain their respective licenses.
|
|
5
4
|
|
|
6
|
-
The exact JavaScript dependency versions are recorded in `bun.lock
|
|
7
|
-
dependencies are recorded in `zapvm/go.mod` and `zapvm/go.sum`. These manifests
|
|
5
|
+
The exact JavaScript dependency versions are recorded in `bun.lock`. This manifest
|
|
8
6
|
are inventories, not substitutes for license texts. Standalone binaries bundle
|
|
9
7
|
Bun and JavaScript dependencies, including native components. Release maintainers
|
|
10
8
|
must inventory the actual shipped components and include required attribution,
|
|
@@ -17,10 +15,8 @@ versions, declared licenses, and hashes of the included notices. The upstream
|
|
|
17
15
|
the original [v3.2.1 license](https://github.com/facebook/yoga/blob/v3.2.1/LICENSE)
|
|
18
16
|
from [the retained notice](third_party/yoga-layout/LICENSE).
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
SPDX SBOM and satisfy corresponding-source requirements. Do not publish an image
|
|
23
|
-
with unknown licenses or missing required notices/source.
|
|
18
|
+
zapVM and its images are distributed from [their own repository](https://github.com/JackCaow/zapVM) with
|
|
19
|
+
their own Apache-2.0 license and notices.
|
|
24
20
|
|
|
25
21
|
## Modified Ink component
|
|
26
22
|
|