haiyaozhuang 0.2.1 → 0.3.0
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 +2 -1
- package/dist/npm/cli.js +831 -8
- package/dist/npm/cli.js.map +8 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,6 +116,7 @@ Run the compiled binary on any Mac or Windows machine and open `http://127.0.0.1
|
|
|
116
116
|
- 首次连接自动幂等灌入 schema(`cloudbase/sql/schema.sql`:8 表 + `api_*` 函数 + 索引,`CREATE ... IF NOT EXISTS` 语义,空库与已就绪库均可安全重放);连接串校验失败按 `auth` / `network` / `schema` 分类报错,响应与日志绝不回显连接串。
|
|
117
117
|
- 连接串仅存本机 `~/.skill-hub/config.json`(`dbBackend: "pg"` + `pgConnString`),绝不下发浏览器。
|
|
118
118
|
- **数据可达性**:跨设备同步要求**所有设备都能直达该 PG 实例**(同内网、公网白名单或 VPN 均可)——数据只落在这一个库里,设备 A 导入的包,设备 B 要能读到同一份,就必须连得上。CloudBase 路径无此要求(网关公网可达)。
|
|
119
|
+
- **数据迁移入口**:可在「设置 → 从远端迁移到 PG」或初始化向导选中「自有 PostgreSQL」时打开迁移弹窗,将 **CloudBase** 或 **远程 PostgreSQL** 的包、全量版本、二进制文件、设备安装记录及可选历史趋势迁入本地/自有 PG(支持预检、SSE 实时进度、按包幂等合并与二次确认全量覆盖,并可选迁后自动切换)。
|
|
119
120
|
- 0.2.0 版本变更:`haiyaozhuang` 0.2.0 新增自有 PG 后端;CloudBase 路径行为零变化(API 契约逐字段一致)。
|
|
120
121
|
|
|
121
122
|
## Verification
|
|
@@ -123,7 +124,7 @@ Run the compiled binary on any Mac or Windows machine and open `http://127.0.0.1
|
|
|
123
124
|
```bash
|
|
124
125
|
bun run typecheck
|
|
125
126
|
bun test
|
|
126
|
-
bun run verify:npm # npm 分发通道全链验收(
|
|
127
|
+
bun run verify:npm # npm 分发通道全链验收(17 步:构建产物黑盒 + 发布链闭环 + 15/16 generic-PG 全链 + 17 PG 迁移全链,全程 /tmp,无发布动作)
|
|
127
128
|
```
|
|
128
129
|
|
|
129
130
|
> `bun test` 直接跑在 CloudBase 云端环境(凭据取自 `TEST_CLOUDBASE_ENV_ID` / `TEST_CLOUDBASE_API_KEY`,未设置时回退 `~/.skill-hub/config.json`),需要网络可达网关;测试数据以 slug 前缀隔离并在云端留痕,测试完可用管理面清理。
|