@tbox.cn/app-cli 0.9.6 → 0.9.8
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 +6 -2
- package/dist/{chunk-E43KTFEN.js → chunk-IYFXN6OS.js} +1 -1
- package/dist/{chunk-M2ZZF6IJ.js → chunk-UOUZPGPV.js} +8 -8
- package/dist/chunk-XQYDQKAD.js +11 -0
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/{declared-JEJ7DGDR.js → declared-TLTQ632U.js} +1 -1
- package/dist/index.js +69 -61
- package/package.json +2 -2
- package/scaffold/theme/README.md +1 -1
- package/scaffold/theme/index.css +1 -1
- package/skills/integration.md +95 -6
- package/skills/provider-custom.md +4 -1
- package/skills/verify.md +2 -0
- package/starter/agent.md +4 -0
- package/dist/chunk-LW7PTMBT.js +0 -11
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @tbox.cn/app-cli
|
|
2
2
|
|
|
3
|
-
tbox-app CLI(公开生成应用面):starter / create / new / skills / schema / module add|remove|list|sync|diff|doctor|inspect|update / provider / theme / miniapp-container(纯函数核心 + commander 薄壳)。
|
|
3
|
+
tbox-app CLI(公开生成应用面):starter / create / new / skills / schema / check / module add|remove|list|sync|diff|doctor|inspect|update / provider / theme / miniapp-container(纯函数核心 + commander 薄壳)。
|
|
4
4
|
|
|
5
|
-
仓内开发命令(dev / new repo 形态 / module pack|publish / start|stop / eval)由私有包 @tbox.cn/app-cli-dev(bin:`tbox-app-dev
|
|
5
|
+
仓内开发命令(dev / new repo 形态 / module pack|publish / start|stop / eval)由私有包 @tbox.cn/app-cli-dev(bin:`tbox-app-dev`)承载——归属判据:公开命令面服务生成应用;完整发现入口为 --help 与 skills list(2026-10-14 cli-dev 拆分,见 Agent Note `.agents/notes/implemented/architecture/2026-10-14-cli-dev-split.md`)。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
@@ -25,6 +25,10 @@ npx --yes @tbox.cn/app-cli module doctor
|
|
|
25
25
|
npx --yes @tbox.cn/app-cli schema config/integrations.json # 配置形状(record/strict/最小示例)
|
|
26
26
|
npx --yes @tbox.cn/app-cli skills get integration # 流程知识(随 CLI 发布,无需安装)
|
|
27
27
|
npx --yes @tbox.cn/app-cli module inspect # 能力/绑定矩阵(--json)
|
|
28
|
+
npx --yes @tbox.cn/app-cli module inspect --all # 批量能力地图与定向阅读入口
|
|
29
|
+
npx --yes @tbox.cn/app-cli schema config/chat.json --json # 应用 SDK 的配置契约
|
|
30
|
+
npx --yes @tbox.cn/app-cli check run test --filter <pkg> # 一次执行并保存退出码与完整诊断
|
|
31
|
+
npx --yes @tbox.cn/app-cli check show last --match FAIL # 读取已保存诊断,不重新执行
|
|
28
32
|
```
|
|
29
33
|
|
|
30
34
|
命令详见 `npx --yes @tbox.cn/app-cli --help`(全局安装后亦可 `tbox-app --help`)。
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{b as s,n as a}from"./chunk-
|
|
2
|
+
import{b as s,n as a}from"./chunk-UOUZPGPV.js";import{existsSync as l}from"fs";import{readFileSync as u}from"fs";import{readdir as d}from"fs/promises";import n from"path";function m(o){let e=n.join(o,"tbox.module.json");if(!l(e))return null;try{let r=s(JSON.parse(u(e,"utf8")));return r.ok?r.value:null}catch{return null}}async function w(o){let e=n.join(o,"packages"),r=[];if(!l(e))return r;let p=await d(e,{withFileTypes:!0});for(let t of p){if(!t.isDirectory())continue;let i=n.join(e,t.name);if(!l(n.join(i,"package.json")))continue;let c=m(i);c&&r.push({id:c.id??t.name,dir:i,descriptor:c})}return r.sort((t,i)=>t.id.localeCompare(i.id))}async function A(o){return a(o)}export{m as a,w as b,A as c};
|