dsh-memory-core 0.1.1 → 0.1.2
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/CHANGELOG.md +5 -0
- package/lib/schema.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
- 修复:`lib/schema.js` 用 `z.enum(...)`(zod 的写法,`@deepseek-ai/schemastery` 没有这个方法),包一 import 就抛 `TypeError: z.enum is not a function`。内核 Loader 的 `_init()` 捕获 import 错误后不建 fiber,于是 preset 里这一行只显示「never started」,日志里不落错。改为 `z.union([z.const("lite"), z.const("full")])`。
|
|
6
|
+
- `_dryrun.mjs` 的依赖 stub 从「万能 Proxy」改为严格白名单:只认 schemastery 真实存在的构造器与实例方法,出现 `z.enum` 这类不存在的名字立即抛错。原先的万能 Proxy 把这类错误吞掉了,dryrun 63 项全过、真机却起不来。
|
|
7
|
+
|
|
3
8
|
## 0.1.1
|
|
4
9
|
|
|
5
10
|
- 文案修正:旧名「companion」统一改为 `dsh-memory-core`(README、package.json 的 description 与 keywords、源码注释、日志前缀)。
|
package/lib/schema.js
CHANGED
|
@@ -5,7 +5,7 @@ import z from "@deepseek-ai/schemastery";
|
|
|
5
5
|
import { DEFAULTS } from "./defaults.js";
|
|
6
6
|
|
|
7
7
|
export const Config = z.object({
|
|
8
|
-
memoryTracks: z.
|
|
8
|
+
memoryTracks: z.union([z.const("lite"), z.const("full")]).default(DEFAULTS.memoryTracks),
|
|
9
9
|
presetName: z.string().default(DEFAULTS.presetName),
|
|
10
10
|
memoryDir: z.string().default(DEFAULTS.memoryDir),
|
|
11
11
|
writeGuard: z.boolean().default(DEFAULTS.writeGuard),
|
package/package.json
CHANGED