@adep/cli 0.5.4 → 0.5.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/README.md +1 -1
- package/dist/index.js +327 -130
- package/dist/vite.js +134 -11
- package/dist/worker-entry.js +20 -8
- package/package.json +5 -11
package/README.md
CHANGED
|
@@ -276,7 +276,7 @@ adep serve --public-url https://api.example.com # 对外地址(横幅与签
|
|
|
276
276
|
adep serve --parity # 严格同形:沙箱不注入 process、越根引用报错
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
-
- **存量表缺列检测**(sqlite 模式 + `--schema`):`CREATE TABLE IF NOT EXISTS` 对已存在的表是空操作,schema.sql 给存量表新增列不会生效——启动时把 schema.sql 声明的列面与每张存量表实际列面比对(与 `adep db migrate` 同一份解析实现),缺列逐列响亮警告(日志 + 启动横幅),**不阻断启动**。`--schema-fix` 自动 `ADD COLUMN`:`PRIMARY KEY` / 无默认值的 `NOT NULL` 与 `RENAME` / 删列 / 改类型仍只警告并给手工迁移提示。sim 模式不做检测,启动日志显式注明。
|
|
279
|
+
- **存量表缺列检测**(sqlite 模式 + `--schema`):`CREATE TABLE IF NOT EXISTS` 对已存在的表是空操作,schema.sql 给存量表新增列不会生效——启动时把 schema.sql 声明的列面与每张存量表实际列面比对(与 `adep db migrate` 同一份解析实现),缺列逐列响亮警告(日志 + 启动横幅),**不阻断启动**。`--schema-fix` 自动 `ADD COLUMN`:`PRIMARY KEY` / 无默认值的 `NOT NULL` 与 `RENAME` / 删列 / 改类型仍只警告并给手工迁移提示。schema.sql 的 `ALTER TABLE … ADD COLUMN` 自带幂等预检(CLI-108):列已存在自动跳过(`PRAGMA table_info`,大小写不敏感),重复启动不报 `duplicate column`;表不存在原样执行不掩盖真错。sim 模式不做检测,启动日志显式注明。
|
|
280
280
|
|
|
281
281
|
- **对外地址**(`--public-url`,env `ADEP_PUBLIC_URL` 同名生效、旗标优先):设置后启动横幅与存储签名 URL 的基址统一取该值。绑定 `0.0.0.0`(容器 / 局域网自托管)或对外 HTTPS 退出时必设,否则推导出 `http://0.0.0.0:…` 不可达 URL;`--port 0` 取监听确立后的真实端口;非法值(缺协议 / 非 http(s))启动即报错。`adep doctor` 会提示该风险。
|
|
282
282
|
|