@spotpatch/agent 1.2.2 → 1.2.4
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 +4 -3
- package/dist/index.cjs +553 -178
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +549 -174
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## English
|
|
4
4
|
|
|
5
|
-
The Node-only Agent engine used by SpotPatch framework adapters. It owns OpenAI-compatible provider sessions, capability
|
|
5
|
+
The Node-only Agent engine used by SpotPatch framework adapters. It owns OpenAI-compatible provider sessions, explicit and inline capability proof, bounded project-convention context and file tools, isolated Git worktrees, deduplicated validation checks, Diff review, Apply, and conflict-safe Revert.
|
|
6
6
|
|
|
7
7
|
Applications should enable this capability through a framework adapter such as [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite). This package is public so the adapter dependency graph can be installed and versioned; it is not a standalone UI integration.
|
|
8
8
|
|
|
@@ -11,6 +11,7 @@ Security boundaries:
|
|
|
11
11
|
- no model-controlled arbitrary shell;
|
|
12
12
|
- no browser-side API keys;
|
|
13
13
|
- bounded paths, reads, writes, Diff sizes, turns, and tool calls;
|
|
14
|
+
- rejected read paths stay unread and unmodified while the bounded Agent loop can recover through allowed discovery results;
|
|
14
15
|
- no implicit stash, reset, commit, push, publish, or deployment;
|
|
15
16
|
- review is the default apply mode.
|
|
16
17
|
|
|
@@ -18,11 +19,11 @@ Requires Node.js `>=20.19.0`.
|
|
|
18
19
|
|
|
19
20
|
## 简体中文
|
|
20
21
|
|
|
21
|
-
这是 SpotPatch 框架适配器使用的 Node-only Agent 引擎,负责 OpenAI-compatible Provider
|
|
22
|
+
这是 SpotPatch 框架适配器使用的 Node-only Agent 引擎,负责 OpenAI-compatible Provider 会话、显式/内联能力证明、有界项目规范上下文与文件工具、隔离 Git worktree、去重后的项目检查、Diff 审阅、Apply 和冲突安全的 Revert。
|
|
22
23
|
|
|
23
24
|
业务应用应通过 [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite) 等框架适配器启用该能力。本包公开发布是为了形成可安装、可版本化的依赖图,不是独立 UI 接入入口。
|
|
24
25
|
|
|
25
|
-
安全边界包括:不向模型开放任意 Shell、不把 API Key 放入浏览器、限制路径/读写/Diff
|
|
26
|
+
安全边界包括:不向模型开放任意 Shell、不把 API Key 放入浏览器、限制路径/读写/Diff/轮次/工具调用;只读路径被拒绝时保持零读取、零修改,并允许 Agent 在既有边界内改用合法发现结果继续执行;不隐式执行 stash、reset、commit、push、发包或部署。默认应用模式必须经过审阅。
|
|
26
27
|
|
|
27
28
|
要求 Node.js `>=20.19.0`。
|
|
28
29
|
|