From 9e82b1657a4de4ff5761c763edaee2286c0b8bfe Mon Sep 17 00:00:00 2001 From: ssw Date: Thu, 16 Jul 2026 21:47:09 +0800 Subject: [PATCH] refactor(dacli): migrate form/create.ts to installHelpHook (proof for Task 1.5) --- src/commands/form/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/form/create.ts b/src/commands/form/create.ts index 8c41403..044d58f 100644 --- a/src/commands/form/create.ts +++ b/src/commands/form/create.ts @@ -9,7 +9,7 @@ */ import { Command } from 'commander' import { JnpfClient } from '../../core/client.ts' -import { installAiHelpHook } from '../../core/help.ts' +import { installHelpHook } from '../../core/help.ts' import { log, printJson } from '../../core/log.ts' import { homedir } from 'node:os' import { join } from 'node:path' @@ -1445,7 +1445,7 @@ export function buildFormCreateCommand(): Command { } }) - installAiHelpHook(cmd, { + installHelpHook(cmd, { purpose: '创建表单. 默认 type=4 (视图) 兜底, 不会 Database exception. 业务建议 clone', required: { '--fullName | --ai': '中文名, 或传 --ai 由平台 AI 自动生成' }, optional: {