create-windy 0.3.0 → 0.3.1
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 +26 -3
- package/dist/cli.js +8077 -3852
- package/package.json +3 -3
- package/template/.windy-template.json +2 -2
- package/template/README.md +25 -3
- package/template/_gitignore +4 -0
- package/template/apps/agent-server/tests/__init__.py +1 -0
- package/template/apps/agent-server/tests/openai_provider_test_support.py +131 -0
- package/template/apps/agent-server/tests/test_openai_provider.py +7 -123
- package/template/apps/server/src/auth/routes.test-support.ts +94 -0
- package/template/apps/server/src/auth/routes.test.ts +20 -88
- package/template/apps/server/src/index.ts +17 -34
- package/template/apps/server/src/mcp/adapter.test.ts +3 -2
- package/template/apps/server/src/mcp/adapter.ts +9 -9
- package/template/apps/server/src/mcp/routes.ts +4 -3
- package/template/apps/server/src/platform-http-runtime.ts +87 -0
- package/template/apps/server/src/system/drizzle-system-configs.ts +319 -0
- package/template/apps/server/src/system/drizzle-system.ts +35 -315
- package/template/apps/server/src/system/resource-routes.ts +270 -0
- package/template/apps/server/src/system/routes.ts +3 -269
- package/template/apps/web/src/pages/system/components/SystemResourceLoadError.vue +21 -0
- package/template/apps/web/src/pages/system/components/SystemResourceLoadError.webtest.ts +17 -0
- package/template/apps/web/src/pages/system/components/SystemResourcePage.vue +5 -10
- package/template/docs/architecture/mcp-business-capabilities.md +107 -0
- package/template/docs/development/custom-login-page.md +3 -3
- package/template/docs/platform/agent-runtime.md +5 -5
- package/template/docs/platform/agent-tools.md +4 -0
- package/template/packages/modules/package.json +1 -1
- package/template/packages/modules/src/composition-fixtures.test-support.ts +164 -0
- package/template/packages/modules/src/composition.test.ts +5 -158
- package/template/packages/modules/src/system-api-operational.ts +234 -0
- package/template/packages/modules/src/system-api-permissions.ts +8 -229
- package/template/packages/modules/src/system-module-tasks.ts +86 -0
- package/template/packages/modules/src/system-modules-access.test.ts +60 -0
- package/template/packages/modules/src/system-modules.test.ts +0 -53
- package/template/packages/modules/src/system-modules.ts +2 -84
- package/template/packages/shared/index.ts +1 -0
- package/template/packages/shared/package.json +1 -1
- package/template/packages/shared/src/mcp.test.ts +12 -0
- package/template/packages/shared/src/mcp.ts +7 -0
package/README.md
CHANGED
|
@@ -19,8 +19,9 @@ yarn dlx create-windy@latest my-dashboard
|
|
|
19
19
|
pnpm dlx create-windy@latest my-dashboard
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
这些入口只负责下载同一个 npm artifact;安装出的 `create-windy` bin 固定由 Bun
|
|
23
|
+
执行,本机需要 Bun 1.3.14 或更高版本。生成项目也固定使用 Bun。创建器默认安装依赖、
|
|
24
|
+
初始化 Git `main` 分支并尝试创建
|
|
24
25
|
`chore: initialize project` 首次提交。
|
|
25
26
|
|
|
26
27
|
不带参数运行时会在同一个列表中交互选择平台模块和 Oxc 基础设施,再选择项目法律
|
|
@@ -129,12 +130,34 @@ bun run windy sync-docker
|
|
|
129
130
|
bun run windy update --check
|
|
130
131
|
bun run windy update --dry-run
|
|
131
132
|
bun run windy update
|
|
133
|
+
bun run windy reconcile --to <精确目标版本>
|
|
132
134
|
```
|
|
133
135
|
|
|
134
136
|
更新器要求 Git 工作区干净,从 npm 历史 artifact 重建 Base,并以
|
|
135
137
|
Base/Ours/Theirs 合并共享脚手架。`package.json` 使用字段级合并;已发布 migration
|
|
136
138
|
只允许追加;冲突发生时不写项目,验证失败则从 `.windy/backups/` 自动回滚。项目锁定
|
|
137
|
-
的 CLI
|
|
139
|
+
的 CLI 检测到新版后,会委托给目标版本生成完整更新计划。受管清单 schema v3 用不含
|
|
140
|
+
hash 的 missing tombstone 记住客户删除的 `project-owned` 路径;后续版本不会把它
|
|
141
|
+
当作首次新增而重建,客户自行恢复文件后则采纳客户实际正文基线。既有 schema v1/v2
|
|
142
|
+
仍可读取,未知或损坏状态会 fail closed。
|
|
143
|
+
|
|
144
|
+
当发布说明明确指出历史受管清单与确定性格式化结果不一致时,可使用
|
|
145
|
+
`reconcile --to <精确目标版本>`。该命令默认只演练;显式增加 `--apply` 后也只更新
|
|
146
|
+
`.windy/files.json` 和无正文报告,不修改项目源码或推进 Project Lock。来源/目标均
|
|
147
|
+
校验公网 npm artifact identity 与 integrity,只有内置不可变 proof 完整命中的
|
|
148
|
+
`windy-managed` 文件可以对账;`shared-scaffold` 也必须精确命中内置 proof,
|
|
149
|
+
`project-owned` 和未知语义差异保持未决。执行前同样要求 Git 工作区干净;中断仍
|
|
150
|
+
通过 `doctor --repair` 恢复事务。
|
|
151
|
+
|
|
152
|
+
公网 `0.3.0` 的默认 Git + Oxc 项目需要先运行
|
|
153
|
+
`create-windy@0.3.1 reconcile --to 0.3.0`,确认后增加 `--apply`,提交生成的清单和
|
|
154
|
+
报告,再运行 `create-windy@0.3.1 update --to 0.3.1`。这里的同版本目标是为了同时
|
|
155
|
+
校验来源与目标均为同一个不可变 `0.3.0` artifact,不会把 Project Lock 提前推进。
|
|
156
|
+
|
|
157
|
+
公网 `0.2.34` 的默认推荐模块项目也先对账到 `0.3.0`。该 profile 只有在 Project
|
|
158
|
+
Lock、Oxfmt 配置、manifest 与来源 artifact 哈希全部精确命中时才启用专属 proof;
|
|
159
|
+
未知 formatter 输出继续保持未决。真实两个默认项目名均为 12 个可证明、0 个未决,
|
|
160
|
+
而非默认的 sharp-sword 仍为 5 个可证明、2 个未决。
|
|
138
161
|
|
|
139
162
|
本地 Web 默认使用 8746;如果该端口属于其它服务,会自动尝试 8747、8748 等端口。
|
|
140
163
|
如果检测到同一个项目已启动,则直接复用现有地址。
|