modu-platform 0.1.8 → 0.1.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/README.md +29 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -48,6 +48,35 @@ modu hub --project ../demo-app --port 3300 # 工作台,另开一个终
|
|
|
48
48
|
|
|
49
49
|
打开 <http://127.0.0.1:3300> → 用上一步的账号登录(口令由服务端校验,拿到 JWT)。
|
|
50
50
|
|
|
51
|
+
## 0.1.10(2026-11-19 发布)
|
|
52
|
+
|
|
53
|
+
新增 **`modu model`**:业务模型的设计面与建表面(都不启动 serve)。
|
|
54
|
+
|
|
55
|
+
| 命令 | 作用 |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `modu model get --project . [--json]` | 看模型:每张表的列/类型/必填/关系 + 校验结果 |
|
|
58
|
+
| `modu model apply --project . --file models.json [--dry]` | 校验后整体替换(写前备份 + 原子替换) |
|
|
59
|
+
| `modu model migrate --project . [--dsn <url>] [--json]` | **把模型迁移成真表**(幂等;只执行安全变更,破坏性变更列出来等人确认) |
|
|
60
|
+
|
|
61
|
+
MCP 侧对应:`logic_apply(kind:"models")` 设计模型、`model_get` 查看、`model_migrate` 建表
|
|
62
|
+
(内部调 `modu model migrate`;PGlite 需先停 serve,DSN 可直接迁)。
|
|
63
|
+
|
|
64
|
+
安全迁移纪律(与 0.1.10 前的引擎行为一致,只是现在能独立触发):新表/可空列/索引自动执行;
|
|
65
|
+
改列类型、改枚举、删列、删表**一律不自动**,只列 SQL 等人工确认。
|
|
66
|
+
|
|
67
|
+
## 0.1.9(2026-11-19 发布)
|
|
68
|
+
|
|
69
|
+
`/docs` 再加一层保险:**CDN 全不可达时切内置离线渲染器**。
|
|
70
|
+
|
|
71
|
+
0.1.8 修了「脚本没加载」的引号 bug,但如果部署环境完全拿不到 CDN(内网/断网),
|
|
72
|
+
页面还是只剩一句提示。0.1.9 内置了一个零依赖渲染器:
|
|
73
|
+
|
|
74
|
+
| 场景 | 行为 |
|
|
75
|
+
|---|---|
|
|
76
|
+
| 能连 CDN | Swagger UI(和 0.1.8 一样:分组、参数、Try it out、Authorize) |
|
|
77
|
+
| 三源都连不上(npmmirror / unpkg / jsdelivr) | **自动切换内置渲染器**:端点按资源分组、参数表、API Key 输入(存 localStorage)、每个操作可展开试调并显示状态码与响应 JSON;顶部标注「离线模式」 |
|
|
78
|
+
| 想固定用自建 Swagger UI | `MODU_API_DOCS_CDN=<镜像基址>`(目录下需有 `swagger-ui.css` 与 `swagger-ui-bundle.js`) |
|
|
79
|
+
|
|
51
80
|
## 0.1.8(2026-11-19 发布)
|
|
52
81
|
|
|
53
82
|
修 **0.1.7 的 `/docs` 白屏**(这一版务必升):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modu-platform",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "modu 命令行:低代码业务平台的二进制命令面(MCP 启动 · 项目建立 · 研发 · 运维)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"modu-platform-darwin-arm64": "0.1.
|
|
18
|
-
"modu-platform-linux-x64": "0.1.
|
|
19
|
-
"modu-platform-windows-x64": "0.1.
|
|
17
|
+
"modu-platform-darwin-arm64": "0.1.10",
|
|
18
|
+
"modu-platform-linux-x64": "0.1.10",
|
|
19
|
+
"modu-platform-windows-x64": "0.1.10"
|
|
20
20
|
}
|
|
21
21
|
}
|