@aipt/cli 0.1.26 → 0.1.30
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 +40 -5
- package/dist/application-runner.js +242 -220
- package/dist/application.js +122 -106
- package/dist/chunk.js +9 -5
- package/dist/optional-runtime.js +24 -24
- package/dist/package-releases/aipt--cli/0.1.28/release.json +29 -0
- package/dist/package-releases/aipt--cli/0.1.29/release.json +29 -0
- package/dist/package-releases/aipt--cli/0.1.30/release.json +29 -0
- package/dist/package-releases/aipt--idp-setup/0.1.4/release.json +31 -0
- package/dist/package-releases/aipt--platform-kernel/0.1.8/release.json +33 -0
- package/docs/bootstrap.md +1 -1
- package/docs/vibe-coding-guide.md +2 -5
- package/documentation-manifest.json +3 -3
- package/package.json +21 -25
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Dyyto Engineering Platform 的正式命令行 Composition Root。CLI 负责工
|
|
|
13
13
|
`C:\Users\<用户名>\Desktop\works\sources`。注意命令中必须输入半角 ASCII `~`,不能输入中文全角“~”。
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
corepack pnpm dlx @aipt/idp-setup@0.1.
|
|
16
|
+
corepack pnpm dlx @aipt/idp-setup@0.1.4 init \
|
|
17
17
|
--root ~/Desktop/works/sources
|
|
18
18
|
|
|
19
19
|
source ~/Desktop/works/sources/config/idp/generated/sources.env
|
|
@@ -26,12 +26,9 @@ idp-setup doctor --root ~/Desktop/works/sources
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
idp-setup bootstrap --project /absolute/workspace-or-project
|
|
29
|
-
|
|
30
|
-
dyyto context --project /absolute/workspace-or-project
|
|
31
|
-
dyyto doctor --project /absolute/workspace-or-project
|
|
32
29
|
```
|
|
33
30
|
|
|
34
|
-
Bootstrap 安装并锁定精确 `dyyto`、`idp`、`idpctl`
|
|
31
|
+
Bootstrap 安装并锁定精确 `dyyto`、`idp`、`idpctl` 版本,生成 Codex、Claude Code、Cursor 与 Antigravity 的薄 Agent 入口,并统一完成上下文、配置与 Doctor 就绪检查。安装完成后只使用 npm package 声明的 bin:
|
|
35
32
|
|
|
36
33
|
```bash
|
|
37
34
|
dyyto --version --json
|
|
@@ -197,6 +194,32 @@ corepack pnpm add --ignore-scripts /absolute/path/to/aipt-cli-<version>.tgz
|
|
|
197
194
|
|
|
198
195
|
## 6. Package 流程
|
|
199
196
|
|
|
197
|
+
发布必须使用 `idp-setup` 初始化并加载的外部 `IDP_CONFIG_DIR`,Registry URL 与 Token
|
|
198
|
+
不得通过命令行传入。私有凭据读取 `components/dyyto/.env` 中的 `DYYTO_NPMRC_FILE`,
|
|
199
|
+
公共凭据读取 `secrets/npm-public/npmrc`。
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
source "$IDP_CONFIG_DIR/generated/sources.env"
|
|
203
|
+
|
|
204
|
+
dyyto package publish plan \
|
|
205
|
+
--package-dir ./packages/example \
|
|
206
|
+
--target all \
|
|
207
|
+
--json
|
|
208
|
+
|
|
209
|
+
dyyto package publish apply \
|
|
210
|
+
--package-dir ./packages/example \
|
|
211
|
+
--approve 'sha256:<完整Plan ID>' \
|
|
212
|
+
--json
|
|
213
|
+
|
|
214
|
+
dyyto package publish inspect \
|
|
215
|
+
--package-dir ./packages/example \
|
|
216
|
+
--plan 'sha256:<完整Plan ID>' \
|
|
217
|
+
--json
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
`plan` 只生成按摘要寻址的 tarball 与不可变 Plan;`apply` 重新验证 `package.json`
|
|
221
|
+
Preimage、tarball digest 和远程冲突后才发布;`inspect` 只读核对两个 Registry。
|
|
222
|
+
|
|
200
223
|
创建独立 npm 包:
|
|
201
224
|
|
|
202
225
|
```bash
|
|
@@ -263,6 +286,18 @@ Web Application 锁定 React 19、Vite 8 和 TypeScript 6 的精确版本。Veri
|
|
|
263
286
|
|
|
264
287
|
本地 Application 配置先通过 `idpctl app config-init` 物化到 `$APP_CONFIG_DIR`,然后再生成和应用部署 Plan:
|
|
265
288
|
|
|
289
|
+
只读检查应优先使用正式 Readiness 命令;它在配置尚未完成时仍返回结构化状态,不创建目录或 Secret:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
export APP_CONFIG_DIR=/absolute/config/app
|
|
293
|
+
dyyto config readiness --project /absolute/workspace/apps/api --json
|
|
294
|
+
dyyto config readiness --workspace /absolute/workspace --json
|
|
295
|
+
dyyto config readiness --workspace /absolute/workspace --check --json
|
|
296
|
+
dyyto config inspect --project /absolute/workspace/apps/api --json
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
`readiness` 用于判断 `not-declared | missing | incomplete | ready | invalid`;工作区模式按 `pnpm-workspace.yaml` 和每个 Unit Manifest 稳定发现全部 Application,单项失败不阻断其他结果。`--check` 在全部就绪时退出 0,存在待配置项时退出 3,存在无效配置时退出 4。`inspect` 是严格投影,配置不完整时以非零状态退出。`.env.example` 只用于未迁移历史项目的兼容维护提示,不是正式配置事实源。
|
|
300
|
+
|
|
266
301
|
```bash
|
|
267
302
|
idpctl app config-init \
|
|
268
303
|
--project /absolute/workspace/apps/api \
|