@rzx/ohs 1.0.7 → 1.1.0
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 +3 -3
- package/dist/frontend/index.js +20 -4
- package/dist/frontend/index.js.map +3 -3
- package/dist/index.js +5780 -5047
- package/dist/index.js.map +68 -60
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ OpenHarness-ts 终端 CLI:在终端里跑 AI Agent。默认进入交互式 TUI
|
|
|
8
8
|
|
|
9
9
|
- Node.js >= 20
|
|
10
10
|
- 交互式 TUI:额外安装 [Bun](https://bun.sh)
|
|
11
|
-
- 可选:
|
|
11
|
+
- 可选:SRT(启用本机 sandbox 时);Windows 可选择 WSL 作为 Agent 运行环境
|
|
12
12
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
@@ -88,7 +88,7 @@ ohs auth status
|
|
|
88
88
|
ohs provider list|use|add|edit|remove
|
|
89
89
|
ohs mcp list|add|remove
|
|
90
90
|
ohs plugin list|install|uninstall|enable|disable
|
|
91
|
-
ohs sandbox
|
|
91
|
+
ohs sandbox enable|disable|status|check
|
|
92
92
|
ohs daemon start|status|stop|install|uninstall
|
|
93
93
|
ohs config show
|
|
94
94
|
ohs config set <key> <value>
|
|
@@ -117,4 +117,4 @@ ohs config set daemon.autoStart true
|
|
|
117
117
|
- 项目文档:[https://github.com/rzx007/openharness-ts/tree/main/docs](https://github.com/rzx007/openharness-ts/tree/main/docs)
|
|
118
118
|
- 问题反馈:[https://github.com/rzx007/openharness-ts/issues](https://github.com/rzx007/openharness-ts/issues)
|
|
119
119
|
|
|
120
|
-
本地从源码开发请看仓库根目录 `README.md`。
|
|
120
|
+
本地从源码开发请看仓库根目录 `README.md`。
|
package/dist/frontend/index.js
CHANGED
|
@@ -504,13 +504,29 @@ function decodeJobWaitResult(value) {
|
|
|
504
504
|
}
|
|
505
505
|
function decodeTerminalSessionInfo(value) {
|
|
506
506
|
const terminal = object(value, "terminal");
|
|
507
|
-
for (const field of ["id", "name", "
|
|
507
|
+
for (const field of ["id", "name", "cwd", "shell", "createdAt"]) {
|
|
508
508
|
stringField(terminal, field, "terminal");
|
|
509
509
|
}
|
|
510
|
-
|
|
510
|
+
const scope = recordField(terminal, "scope", "terminal");
|
|
511
|
+
const scopeKind = enumField(scope, "kind", "terminal.scope", ["project", "session"]);
|
|
512
|
+
if (scopeKind === "project") {
|
|
513
|
+
const projectId = stringField(scope, "projectId", "terminal.scope");
|
|
514
|
+
optionalString(terminal, "projectId", "terminal");
|
|
515
|
+
if (terminal.projectId !== undefined && terminal.projectId !== projectId) {
|
|
516
|
+
throw new ProtocolDataError("terminal.projectId must match terminal.scope.projectId", "terminal.projectId");
|
|
517
|
+
}
|
|
518
|
+
} else {
|
|
519
|
+
const sessionId = stringField(scope, "sessionId", "terminal.scope");
|
|
520
|
+
optionalString(terminal, "sessionId", "terminal");
|
|
521
|
+
if (terminal.sessionId !== undefined && terminal.sessionId !== sessionId) {
|
|
522
|
+
throw new ProtocolDataError("terminal.sessionId must match terminal.scope.sessionId", "terminal.sessionId");
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
optionalString(terminal, "projectId", "terminal");
|
|
526
|
+
optionalString(terminal, "sessionId", "terminal");
|
|
527
|
+
enumField(terminal, "runtime", "terminal", ["local", "environment"]);
|
|
511
528
|
enumField(terminal, "source", "terminal", ["user", "agent"]);
|
|
512
529
|
enumField(terminal, "status", "terminal", ["running", "stopping", "completed", "killed", "failed"]);
|
|
513
|
-
optionalString(terminal, "sessionId", "terminal");
|
|
514
530
|
numberField(terminal, "cols", "terminal");
|
|
515
531
|
numberField(terminal, "rows", "terminal");
|
|
516
532
|
optionalString(terminal, "exitedAt", "terminal");
|
|
@@ -8056,4 +8072,4 @@ try {
|
|
|
8056
8072
|
process.exit(1);
|
|
8057
8073
|
}
|
|
8058
8074
|
|
|
8059
|
-
//# debugId=
|
|
8075
|
+
//# debugId=373EC5803051920364756E2164756E21
|