oh-my-opencode 3.8.4 → 3.8.5
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.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +3 -3
- package/README.zh-cn.md +3 -3
- package/dist/cli/index.js +8 -8
- package/dist/index.js +384 -463
- package/dist/tools/hashline-edit/constants.d.ts +0 -1
- package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +0 -2
- package/dist/tools/hashline-edit/edit-operations.d.ts +0 -1
- package/dist/tools/hashline-edit/edit-ordering.d.ts +1 -0
- package/dist/tools/hashline-edit/index.d.ts +2 -2
- package/dist/tools/hashline-edit/normalize-edits.d.ts +6 -9
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -1
- package/dist/tools/hashline-edit/types.d.ts +17 -41
- package/package.json +8 -8
package/README.ja.md
CHANGED
|
@@ -217,9 +217,9 @@ MCPサーバーがあなたのコンテキスト予算を食いつぶしてい
|
|
|
217
217
|
[oh-my-pi](https://github.com/can1357/oh-my-pi) に触発され、**Hashline**を実装しました。エージェントが読むすべての行にコンテンツハッシュがタグ付けされて返されます:
|
|
218
218
|
|
|
219
219
|
```
|
|
220
|
-
11#VK
|
|
221
|
-
22#XJ
|
|
222
|
-
33#MB
|
|
220
|
+
11#VK| function hello() {
|
|
221
|
+
22#XJ| return "world";
|
|
222
|
+
33#MB| }
|
|
223
223
|
```
|
|
224
224
|
|
|
225
225
|
エージェントはこのタグを参照して編集します。最後に読んだ後でファイルが変更されていた場合、ハッシュが一致せず、コードが壊れる前に編集が拒否されます。空白を正確に再現する必要もなく、間違った行を編集するエラー (stale-line) もありません。
|
package/README.ko.md
CHANGED
|
@@ -216,9 +216,9 @@ MCP 서버들이 당신의 컨텍스트 예산을 다 잡아먹죠. 우리가
|
|
|
216
216
|
[oh-my-pi](https://github.com/can1357/oh-my-pi)에서 영감을 받아, **Hashline**을 구현했습니다. 에이전트가 읽는 모든 줄에는 콘텐츠 해시 태그가 붙어 나옵니다:
|
|
217
217
|
|
|
218
218
|
```
|
|
219
|
-
11#VK
|
|
220
|
-
22#XJ
|
|
221
|
-
33#MB
|
|
219
|
+
11#VK| function hello() {
|
|
220
|
+
22#XJ| return "world";
|
|
221
|
+
33#MB| }
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
에이전트는 이 태그를 참조해서 편집합니다. 마지막으로 읽은 후 파일이 변경되었다면 해시가 일치하지 않아 코드가 망가지기 전에 편집이 거부됩니다. 공백을 똑같이 재현할 필요도 없고, 엉뚱한 줄을 수정하는 에러(stale-line)도 없습니다.
|
package/README.md
CHANGED
|
@@ -220,9 +220,9 @@ The harness problem is real. Most agent failures aren't the model. It's the edit
|
|
|
220
220
|
Inspired by [oh-my-pi](https://github.com/can1357/oh-my-pi), we implemented **Hashline**. Every line the agent reads comes back tagged with a content hash:
|
|
221
221
|
|
|
222
222
|
```
|
|
223
|
-
11#VK
|
|
224
|
-
22#XJ
|
|
225
|
-
33#MB
|
|
223
|
+
11#VK| function hello() {
|
|
224
|
+
22#XJ| return "world";
|
|
225
|
+
33#MB| }
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
The agent edits by referencing those tags. If the file changed since the last read, the hash won't match and the edit is rejected before corruption. No whitespace reproduction. No stale-line errors.
|
package/README.zh-cn.md
CHANGED
|
@@ -218,9 +218,9 @@ Harness 问题是真的。绝大多数所谓的 Agent 故障,其实并不是
|
|
|
218
218
|
受 [oh-my-pi](https://github.com/can1357/oh-my-pi) 的启发,我们实现了 **Hashline** 技术。Agent 读到的每一行代码,末尾都会打上一个强绑定的内容哈希值:
|
|
219
219
|
|
|
220
220
|
```
|
|
221
|
-
11#VK
|
|
222
|
-
22#XJ
|
|
223
|
-
33#MB
|
|
221
|
+
11#VK| function hello() {
|
|
222
|
+
22#XJ| return "world";
|
|
223
|
+
33#MB| }
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
Agent 发起修改时,必须通过这些标签引用目标行。如果在此期间文件发生过变化,哈希验证就会失败,从而在代码被污染前直接驳回。不再有缩进空格错乱,彻底告别改错行的惨剧。
|
package/dist/cli/index.js
CHANGED
|
@@ -9248,7 +9248,7 @@ var {
|
|
|
9248
9248
|
// package.json
|
|
9249
9249
|
var package_default = {
|
|
9250
9250
|
name: "oh-my-opencode",
|
|
9251
|
-
version: "3.8.
|
|
9251
|
+
version: "3.8.5",
|
|
9252
9252
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
9253
9253
|
main: "dist/index.js",
|
|
9254
9254
|
types: "dist/index.d.ts",
|
|
@@ -9322,13 +9322,13 @@ var package_default = {
|
|
|
9322
9322
|
typescript: "^5.7.3"
|
|
9323
9323
|
},
|
|
9324
9324
|
optionalDependencies: {
|
|
9325
|
-
"oh-my-opencode-darwin-arm64": "3.8.
|
|
9326
|
-
"oh-my-opencode-darwin-x64": "3.8.
|
|
9327
|
-
"oh-my-opencode-linux-arm64": "3.8.
|
|
9328
|
-
"oh-my-opencode-linux-arm64-musl": "3.8.
|
|
9329
|
-
"oh-my-opencode-linux-x64": "3.8.
|
|
9330
|
-
"oh-my-opencode-linux-x64-musl": "3.8.
|
|
9331
|
-
"oh-my-opencode-windows-x64": "3.8.
|
|
9325
|
+
"oh-my-opencode-darwin-arm64": "3.8.5",
|
|
9326
|
+
"oh-my-opencode-darwin-x64": "3.8.5",
|
|
9327
|
+
"oh-my-opencode-linux-arm64": "3.8.5",
|
|
9328
|
+
"oh-my-opencode-linux-arm64-musl": "3.8.5",
|
|
9329
|
+
"oh-my-opencode-linux-x64": "3.8.5",
|
|
9330
|
+
"oh-my-opencode-linux-x64-musl": "3.8.5",
|
|
9331
|
+
"oh-my-opencode-windows-x64": "3.8.5"
|
|
9332
9332
|
},
|
|
9333
9333
|
trustedDependencies: [
|
|
9334
9334
|
"@ast-grep/cli",
|