fix: 显式标注 multicall 入口身份并补齐目录文档

- CliRuntime 新增 app?: "hose-use" | "hose-aipro",由 runCli 与
  runAiProCli 各自标注;skill.ts 优先用它判断调用方,修复
  hose-aipro skill dump 误输出 hose-use Skill 的既有 bug——根因是
  multicall 二进制的 argv0 不会进入 parsed.raw。保留 raw 里的历史
  aipro 标记作为兼容。
- 新增 skill.test.ts 覆盖两个入口与历史兼容三条路径。
- 补齐 4 份目录 README(scripts/build、cli/commands/aipro、web、
  web/src):web/ 文件在 #177 合入后由 untracked 转为 tracked,
  才被 check:readme 纳入扫描,暴露出 4 个目录缺文档。

校验:bun test 1111 pass / 0 fail,bun run check 通过,
check:readme 36/36 通过;编译产物实测 hose-aipro skill dump
返回 AI PRO Skill、hose-use 返回平台 Skill。
This commit is contained in:
gitea committed 2026-11-05 19:36:49 +08:00
1 parent 50362c2937
commit 55573de6a8
9 files changed
+99

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ export async function handleSkillCommand(
): Promise<CliResult> {
const action = parsed.action || "status";
const isAiProCaller =
runtime.app === "hose-aipro" ||
parsed.area === "hose-aipro" ||
parsed.raw.some((arg) => arg.includes("hose-aipro") || arg === "aipro");