koishi-plugin-terminal 1.0.5 → 1.0.6
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/lib/index.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -113,10 +113,11 @@ __name(isInteractiveCommand, "isInteractiveCommand");
|
|
|
113
113
|
|
|
114
114
|
// src/config.ts
|
|
115
115
|
var import_koishi = require("koishi");
|
|
116
|
+
var os = __toESM(require("node:os"));
|
|
116
117
|
var Config = import_koishi.Schema.object({
|
|
117
118
|
admin: import_koishi.Schema.array(String).description("超级管理员用户名单").default([]),
|
|
118
119
|
auth: import_koishi.Schema.number().description("使用本插件所需的最低权限,此外,用户也需要在超级管理员名单中。").min(1).max(4).step(1).default(4),
|
|
119
|
-
root: import_koishi.Schema.string().description("初始工作路径").default(
|
|
120
|
+
root: import_koishi.Schema.string().description("初始工作路径").default(os.homedir()),
|
|
120
121
|
shell: import_koishi.Schema.string().description("Shell路径,留空则自动检测系统默认Shell"),
|
|
121
122
|
timeout: import_koishi.Schema.number().description("超时时长").default(import_koishi.Time.minute),
|
|
122
123
|
cols: import_koishi.Schema.number().description("终端列数").default(80),
|