@koishi-ce/koishi 1.0.8 → 1.0.10

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/cli/index.mjs CHANGED
@@ -7,7 +7,7 @@ var package_default = {
7
7
  name: "@koishi-ce/koishi",
8
8
  type: "module",
9
9
  description: "Cross-Platform Chatbot Framework Made with Love",
10
- version: "1.0.8",
10
+ version: "1.0.10",
11
11
  main: "lib/index.mjs",
12
12
  module: "lib/index.mjs",
13
13
  types: "lib/index.d.ts",
@@ -58,8 +58,8 @@ var package_default = {
58
58
  "@koishi-ce/plugin-proxy-agent": "workspace:*",
59
59
  "@koishi-ce/plugin-server": "workspace:*",
60
60
  "@koishi-ce/utils": "workspace:*",
61
- "cac": "^7.0.0",
62
- "picocolors": "^1.1.1"
61
+ "picocolors": "^1.1.1",
62
+ "cac": "^7.0.0"
63
63
  }
64
64
  };
65
65
  //#endregion
@@ -123,6 +123,7 @@ function createWorker(options) {
123
123
  ...execArgv
124
124
  ], {
125
125
  ipc: handleMessage,
126
+ env: { ...process.env },
126
127
  stdout: "inherit",
127
128
  stderr: "inherit",
128
129
  onExit: (_, code, signal) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@koishi-ce/koishi",
3
3
  "type": "module",
4
4
  "description": "Cross-Platform Chatbot Framework Made with Love",
5
- "version": "1.0.8",
5
+ "version": "1.0.10",
6
6
  "main": "lib/index.mjs",
7
7
  "module": "lib/index.mjs",
8
8
  "types": "lib/index.d.ts",
@@ -61,13 +61,13 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@koishi-ce/core": "^1.1.0",
64
+ "@koishi-ce/core": "^1.1.1",
65
65
  "@koishi-ce/loader": "^1.0.6",
66
66
  "@koishi-ce/plugin-http": "^1.0.1",
67
67
  "@koishi-ce/plugin-proxy-agent": "^1.0.1",
68
68
  "@koishi-ce/plugin-server": "^1.0.1",
69
69
  "@koishi-ce/utils": "^1.0.0",
70
- "cac": "^7.0.0",
71
- "picocolors": "^1.1.1"
70
+ "picocolors": "^1.1.1",
71
+ "cac": "^7.0.0"
72
72
  }
73
73
  }
package/src/cli/start.ts CHANGED
@@ -128,6 +128,10 @@ function createWorker(options: WorkerOptions) {
128
128
  [process.execPath, worker, ...execArgv],
129
129
  {
130
130
  ipc: handleMessage,
131
+ // Bun.spawn 的默认 env 继承在 win32 只取进程启动时的 OS 环境
132
+ // 快照,运行时经 process.env 赋值的 KOISHI_* 选项(log-level /
133
+ // debug / config-file / shared)到不了子进程,须显式展开传递
134
+ env: { ...process.env },
131
135
  // Bun.spawn 的 stdio 默认为 ignore,须显式继承输出通道,
132
136
  // 否则 worker 的全部日志都会被丢弃
133
137
  stdout: "inherit",