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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. 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(process.env.HOME),
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),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-terminal",
3
3
  "description": "通过 QQ 运行持久的 Shell 终端",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "main": "lib/index.js",
6
6
  "author": {
7
7
  "email": "ygong68@wisc.edu",