fix(src): reroute 45 broken cmd-review/drift refs to archive paths (2026-07-23)
清理 src/ 注释 + DacliHelp ref 字段里指向 cmd-review/ + drift/Rxx 的 broken 引用, 全部改指到 archive/ 子目录 (随上一轮 cmd-review/drift 整体归档):
A. 8 处 DacliHelp 'ref:' 字段 (改 archive 路径, 保留 AI 溯源):
- src/commands/bigscreen/{list,info,release}.ts → archive/review/v0.14-webapi-rollout-plan.md §2.1
- src/commands/bigscreen/{construct,_validate}.ts → archive/review/v0.13-webapi-form-workflow-refactor.md §8.2.4
- src/commands/msg/templatecreate.ts → archive/cmd-review-2026-07/msg.md
- src/commands/integration/{smstest,webhooktest}.ts → archive/cmd-review-2026-07/integration.md
B. 16 处 anti-patterns.ts 'source: drift/Rxx' (改 archive 路径, 保持源唯一):
- R5/R9/R12/R17/R12-fix-batch1/R12-fix-batch2 → archive/drift-rounds-2026-07/<对应文件>
- BS-新38 / column_drift / F3 / BS-DI-1/2/3 子标签保留
C. 21 处注释里 broken 引用清理:
- 具体路径 (app/{list,info}, datascreen, print/create, regression-2026-06-29) → 改 archive 路径
- 通用引用 ('cmd-review/app.md 已识别' / 'cmd-review 已知 X') → 改 'v3.0+ 评审已识别/已知'
- 孤儿引用 (config.ts v0.15-token-home.md 不存在) → 改 archive/review/regression-2026-06-29.md (实际决策文件)
- 移除 '/cmd-review/xxx' path 引用, 保留描述信息
最终:
- src/ 只剩 3 处 'archive/cmd-review-2026-07/*' 引用 (正确指向 archive)
- tsc --noEmit 未引入新错误 (3 处现有 ts 错都在 tests/unit/, audit-2026-07-23-deep 已记录)
- 下一轮 anti-patterns.md 自动重生成会反映新的 archive 路径
Co-Authored-By: Claude <[email protected]>
This commit is contained in:
1 parent
0bb32d5ae2
commit
76c2937020
24 files changed
+45
-45
No files matched your search
@@ -43,7 +43,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'f_user_id (BIGINT 必填, 未指定FK关联关系)',
|
||||
right: 'f_user_id (BIGINT FK 必填 relationForm 关联 user 表 显示字段 f_user_name)',
|
||||
rationale: 'AI 默认推成 inputNumber, 列表显示 ID 数字而非名称',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0001-fk-relation-form-required'],
|
||||
},
|
||||
{
|
||||
@@ -52,7 +52,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'f_status (int 必填)',
|
||||
right: 'f_status (int 字典 userstatus:0正常/1冻结, 必填 select 组件)',
|
||||
rationale: 'int + dictType 不会自动转 select 组件 (BS-新117 限制 1)',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0002-form-create-ai-4-limitations'],
|
||||
},
|
||||
{
|
||||
@@ -61,7 +61,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'f_create_time (datetime 必填)',
|
||||
right: 'f_create_time (datetime 必填 datePicker 列 format=yyyy-MM-dd HH:mm:ss)',
|
||||
rationale: '列缺 format 时显示 ISO 时间戳 (BS-新117 限制 2)',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0002-form-create-ai-4-limitations'],
|
||||
},
|
||||
{
|
||||
@@ -70,7 +70,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '1 句话建多表 (含 FK 字段)',
|
||||
right: '拆步: 先建被关联表 (不含 FK), 再 form update --fields 补 FK',
|
||||
rationale: '主表先建时 FK 字段无 modelId, step machine 校验失败',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0007-dacli-form-ai-not-in-dependency'],
|
||||
},
|
||||
{
|
||||
@@ -87,7 +87,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'AI 描述未提 FK 处理',
|
||||
right: 'AI 描述结尾加 "本表不建FK字段"',
|
||||
rationale: '物理表缺 varchar FK 列, form POST 报 "Field cannot be empty"',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0003-form-update-fields-no-alter-table'],
|
||||
},
|
||||
{
|
||||
@@ -96,7 +96,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '--enCode 含 - / _ / 空格 / 括号',
|
||||
right: 'camelCase 无下划线, 例: tdsmyform / tdscompetition',
|
||||
rationale: 'BS-56 正则 `[一-龥a-z0-9]+` 严格, 不允许这些字符',
|
||||
source: 'drift/R12 BS-新38',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round12-fix-batch1.md §BS-新38',
|
||||
},
|
||||
{
|
||||
id: 'AP-fc-8',
|
||||
@@ -104,7 +104,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '建表后未跑 dacli form info 验证',
|
||||
right: '必跑 `dacli form info <enCode>` 验证 4 项 (字段数/jnpfKey/relationForm/required)',
|
||||
rationale: 'BS-新117 4 限制入生产会报 "Field cannot be empty"',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
crossRefs: ['decisions/0002-form-create-ai-4-limitations'],
|
||||
},
|
||||
],
|
||||
@@ -114,7 +114,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'form update --fields 加 FK 字段 (varchar)',
|
||||
right: 'form import --autoTable 重建物理表 / dm drop + form delete + form create 重建',
|
||||
rationale: 'form update --fields 不会 ALTER 物理表 (BS-新117 限制 4)',
|
||||
source: 'drift/R12',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round12-summary.md',
|
||||
crossRefs: ['decisions/0003-form-update-fields-no-alter-table'],
|
||||
},
|
||||
{
|
||||
@@ -122,7 +122,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '--fields 字段名不带 F_ 前缀',
|
||||
right: '所有字段名必带 F_ 前缀',
|
||||
rationale: '列名缺 F_ 前缀, 列表显示异常',
|
||||
source: 'drift/R12 column_drift',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round12-summary.md §column_drift',
|
||||
},
|
||||
{
|
||||
id: 'AP-fu-3', severity: 'P2',
|
||||
@@ -138,7 +138,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '建表后未跑 form info 验证',
|
||||
right: '必跑 `dacli form info <enCode>` 检查字段数/jnpfKey/relationForm/required 4 项',
|
||||
rationale: 'BS-新117 4 限制只能通过 form info 验证, 提前发现问题',
|
||||
source: 'drift/R17',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round17-plan.md',
|
||||
},
|
||||
],
|
||||
'form delete': [
|
||||
@@ -156,7 +156,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'menu create --type=3 不传 moduleId',
|
||||
right: '必传 --moduleId=<formId>',
|
||||
rationale: '后端 400 (BS-drift-M-1)',
|
||||
source: 'drift/R5',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-14-round5-menu-workflow-summary.md',
|
||||
crossRefs: ['decisions/0004-menu-create-type3-moduleid'],
|
||||
},
|
||||
{
|
||||
@@ -171,7 +171,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: '跨 app 引用未传 --urlAddress',
|
||||
right: '传 --urlAddress=model/<formEnCode>',
|
||||
rationale: 'SPA 找不到 form 路由 404',
|
||||
source: 'drift/R5',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-14-round5-menu-workflow-summary.md',
|
||||
},
|
||||
],
|
||||
'dict typeCreate': [
|
||||
@@ -198,7 +198,7 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'workflow create --ai 不传 --flowXml',
|
||||
right: '传 --flowXml=完整 BPMN XML',
|
||||
rationale: 'AI 默认生 trivial 3-node BPMN, 不实用',
|
||||
source: 'drift/R12 F3',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-15-round12-fix-batch2.md §F3',
|
||||
},
|
||||
],
|
||||
'dm create': [
|
||||
@@ -216,21 +216,21 @@ export const ANTI_PATTERNS: Record<CommandKey, AntiPattern[]> = {
|
||||
wrong: 'di create 不传 --fieldJson',
|
||||
right: '传 --fieldJson=<完整 schema JSON>',
|
||||
rationale: '后端拿不到字段定义, 报 400',
|
||||
source: 'drift/R9 BS-DI-1',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-14-round9-dict-di-drift-summary.md §BS-DI-1',
|
||||
},
|
||||
{
|
||||
id: 'AP-di-2', severity: 'P0',
|
||||
wrong: 'di create 不传 --parameterJson',
|
||||
right: '传 --parameterJson=<参数 JSON>',
|
||||
rationale: '后端拿不到参数定义',
|
||||
source: 'drift/R9 BS-DI-2',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-14-round9-dict-di-drift-summary.md §BS-DI-2',
|
||||
},
|
||||
{
|
||||
id: 'AP-di-3', severity: 'P0',
|
||||
wrong: 'di create 不传 --dataConfigJson',
|
||||
right: '传 --dataConfigJson=<数据配置 JSON>',
|
||||
rationale: '后端拿不到数据源配置',
|
||||
source: 'drift/R9 BS-DI-3',
|
||||
source: 'archive/drift-rounds-2026-07/2026-07-14-round9-dict-di-drift-summary.md §BS-DI-3',
|
||||
},
|
||||
],
|
||||
'test run': [
|
||||
|
||||
@@ -180,7 +180,7 @@ export function buildApisSearchCommand(): Command {
|
||||
'dacli apis search --field=enCode --exact',
|
||||
],
|
||||
notes: [
|
||||
'v0.11+ 新增, 解决 Phase 1 审计 (cmd-review/apis.md) 标记的 P0 字段盲猜痛点',
|
||||
'v0.11+ 新增, 解决 Phase 1 审计 (历史) 标记的 P0 字段盲猜痛点',
|
||||
'默认模糊匹配 (--field=enCode 匹配 fullName/enCode/encode 等), --exact 精确',
|
||||
],
|
||||
})
|
||||
|
||||
@@ -27,7 +27,7 @@ import { buildAppLogoutCommand } from './logout.ts' // v3.0+ 新增 (regression
|
||||
import { buildAppStatusCommand } from './status.ts'
|
||||
import { buildAppSwitchCommand } from './switch.ts'
|
||||
import { buildAppContextCommand } from './context.ts'
|
||||
import { buildAppUseCommand } from './use.ts' // v3.0+ 新增 (cmd-review/app.md P1)
|
||||
import { buildAppUseCommand } from './use.ts' // v3.0+ 新增 (审计 P1)
|
||||
|
||||
export function buildAppCommand(): Command {
|
||||
const cmd = new Command('app').description('应用 (JNPF 多 app 生命周期, appCenter, v3.0+ 一体化 use)')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* commands/app/info.ts — 应用详情 (v3.0+ 走 webapi/system 镜像)
|
||||
*
|
||||
* v3.0+ (2026-06-29 regression audit P0): 改用 webapi/system.getInfo
|
||||
* - cmd-review/app.md 已识别: 旧实现直接 c.get('/system/System/{id}')
|
||||
* - v3.0+ 评审已识别: 旧实现直接 c.get('/system/System/{id}')
|
||||
* - 现在 webapi 镜像: 复用 web 端 getInfo
|
||||
*
|
||||
* API: GET /api/system/System/{id} (镜像 web getInfo)
|
||||
@@ -51,7 +51,7 @@ export function buildAppInfoCommand(): Command {
|
||||
'v3.0+ P0 (regression audit 2026-06-29): webapi 镜像化',
|
||||
' 旧实现: 直接 c.get(\'/system/System/{id}\'), 与 web 端 schema 漂移风险',
|
||||
' 新实现: 复用 web 端 getInfo',
|
||||
' 详见 dacli/docs/cmd-review/regression-2026-06-29.md',
|
||||
' 详见 dacli/docs/archive/review/regression-2026-06-29.md',
|
||||
],
|
||||
})
|
||||
return cmd
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* commands/app/list.ts — 应用列表 (v3.0+ 走 webapi/system 镜像)
|
||||
*
|
||||
* v3.0+ (2026-06-29 regression audit P0): 改用 webapi/system.getSystemList
|
||||
* - cmd-review/app.md 已识别: 旧实现直接 c.get('/system/System')
|
||||
* - v3.0+ 评审已识别: 旧实现直接 c.get('/system/System')
|
||||
* - 现在 webapi 镜像: 复用 web 端 getSystemList (含 query 参数处理 + 错误响应)
|
||||
* - 同时保留选项卡格式输出
|
||||
*
|
||||
@@ -96,7 +96,7 @@ export function buildAppListCommand(): Command {
|
||||
'v3.0+ P0 (regression audit 2026-06-29): webapi 镜像化',
|
||||
' 旧实现: 直接 c.get(\'/system/System\'), 与 web 端 schema 漂移风险',
|
||||
' 新实现: 复用 web 端 getSystemList (含 query 参数处理 + 错误响应)',
|
||||
' 详见 dacli/docs/cmd-review/regression-2026-06-29.md',
|
||||
' 详见 dacli/docs/archive/review/regression-2026-06-29.md',
|
||||
],
|
||||
})
|
||||
return cmd
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* commands/app/logout.ts — 退出登录 (v3.0+ 新增, regression audit P2)
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - cmd-review/app.md 已识别: 当前无 logout 命令, web 端有 logoutApi
|
||||
* - v3.0+ 评审已识别: 当前无 logout 命令, web 端有 logoutApi
|
||||
* - webapi/auth.ts 已镜像 web 端 logoutApi (v3.0+ P0 新增 webapi 模块)
|
||||
* - 用户需求: "切换账号 / 退出登录 / 清本地 token"
|
||||
*
|
||||
@@ -98,7 +98,7 @@ export function buildAppLogoutCommand(): Command {
|
||||
})
|
||||
|
||||
installHelpHook(cmd, {
|
||||
purpose: '退出登录 (走 webapi/auth.logoutApi + 清本地 token). v3.0+ 新增 (cmd-review/app.md 识别)',
|
||||
purpose: '退出登录 (走 webapi/auth.logoutApi + 清本地 token). v3.0+ 新增 (审计 P2 补缺)',
|
||||
optional: {
|
||||
'--no-remote-logout': '跳过 web logoutApi, 仅清本地 token',
|
||||
'--json': '原始 JSON 输出',
|
||||
@@ -114,7 +114,7 @@ export function buildAppLogoutCommand(): Command {
|
||||
notes: [
|
||||
'v3.0+ P2 (regression audit 2026-06-29): 新增 logout 命令',
|
||||
' 之前缺口: web 端有 logoutApi, dacli 无 logout 命令',
|
||||
' cmd-review/app.md 已识别: "dacli app logout" 当前无登出命令',
|
||||
' v3.0+ 评审已识别缺口: "dacli app logout" 之前无登出命令',
|
||||
'**webapi 镜像**: webapi/auth.logoutApi (复用 web 端 POST /api/oauth/Logout + withCredentials)',
|
||||
'**dacli 独有**: clearToken (清本地 ~/.dacli-token/{appCode}.json, web 端用 cookie 不需要)',
|
||||
'**容错**: web logoutApi 失败非致命, 仍清本地 token',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* commands/app/use.ts — `dacli app use <code>` (v3.0+ 新增, 一体化命令)
|
||||
*
|
||||
* cmd-review/app.md P1 建议: AI 工作流痛点是切换 appCode 需要 2 步:
|
||||
* v3.0+ P1 建议 (评审): AI 工作流痛点是切换 appCode 需要 2 步:
|
||||
* 1. `dacli app switch --appCode=X` (重新登录)
|
||||
* 2. `dacli app context --json` (拿环境快照)
|
||||
*
|
||||
@@ -188,7 +188,7 @@ export function buildAppUseCommand(): Command {
|
||||
api: 'POST /oauth/Login + GET /oauth/CurrentUser + 多 API 聚合',
|
||||
},
|
||||
notes: [
|
||||
'v3.0+ P1 (cmd-review/app.md): 替代 2 步调用 (switch + context)',
|
||||
'v3.0+ P1 (审计): 替代 2 步调用 (switch + context)',
|
||||
'**3 步合一**: 1. 重新登录 → 2. 拉 context → 3. CurrentUser 验证',
|
||||
'**AI 友好**: --json 输出完整 AppContext + currentUser, 一次拿全',
|
||||
'**CurrentUser 关键**: 服务器端确认 token+appCode+用户身份, 防止本地 token 与服务器不一致',
|
||||
|
||||
@@ -126,7 +126,7 @@ export function validateUniqueness(opts: BigscreenOpts): StepValidation {
|
||||
|
||||
// =====================================================================
|
||||
// Phase 4: 镜像 web 端 construct 校验 (build.vue:666-692 + header.vue:200-211)
|
||||
// 详见 dacli/docs/cmd-review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 4
|
||||
// 详见 dacli/docs/archive/review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 4
|
||||
//
|
||||
// 镜像源:
|
||||
// - jnpf/前端/jnpf-web-datascreen-vue3/src/page/build.vue:666-689 (isStatic/isApi/isSql/... dataType 0-7)
|
||||
|
||||
@@ -188,7 +188,7 @@ export function buildBigscreenConstructCommand(): Command {
|
||||
source: {
|
||||
web: 'jnpf/前端/jnpf-web-datascreen-vue3/src/page/group/header.vue:200-211 (save formdata) + src/api/visual.js: addObj/updateObj',
|
||||
api: 'POST /api/blade-visual/visual/save (addObj) + POST /api/blade-visual/visual/update (updateObj)',
|
||||
ref: 'dacli/docs/cmd-review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 5',
|
||||
ref: 'dacli/docs/archive/review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 5',
|
||||
},
|
||||
notes: [
|
||||
'v0.13+ NEW (2026-07-01): 镜像 web 端 save formdata 一键构造大屏',
|
||||
|
||||
@@ -68,7 +68,7 @@ export function buildBigscreenInfoCommand(): Command {
|
||||
source: {
|
||||
web: 'jnpf/前端/jnpf-web-datascreen-vue3/src/api/visual.js getObj',
|
||||
api: 'GET /api/blade-visual/visual/detail',
|
||||
ref: 'dacli/docs/cmd-review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
ref: 'dacli/docs/archive/review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
},
|
||||
})
|
||||
return cmd
|
||||
|
||||
@@ -82,7 +82,7 @@ export function buildBigscreenListCommand(): Command {
|
||||
source: {
|
||||
web: 'jnpf/前端/jnpf-web-datascreen-vue3/src/api/visual.js getList',
|
||||
api: 'GET /api/blade-visual/visual/list',
|
||||
ref: 'dacli/docs/cmd-review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
ref: 'dacli/docs/archive/review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
},
|
||||
})
|
||||
return cmd
|
||||
|
||||
@@ -81,7 +81,7 @@ export function buildBigscreenReleaseCommand(): Command {
|
||||
source: {
|
||||
web: 'jnpf/前端/jnpf-web-datascreen-vue3/src/api/visual.js updateObj + getObj',
|
||||
api: 'POST /api/blade-visual/visual/update (visual.status=1)',
|
||||
ref: 'dacli/docs/cmd-review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
ref: 'dacli/docs/archive/review/v0.14-webapi-rollout-plan.md §2.1',
|
||||
},
|
||||
notes: [
|
||||
'v0.14+ (2026-07-01): 改 webapi/visualdata.updateObj',
|
||||
|
||||
@@ -88,7 +88,7 @@ export function buildIntegrationSmsTestCommand(): Command {
|
||||
source: {
|
||||
web: 'web/apps/jnpf-web-apps-main/src/api/msgCenter/accountConfig.ts:29 testConfig()',
|
||||
api: 'POST /api/message/AccountConfig/testSendSms',
|
||||
ref: 'dacli/docs/cmd-review/integration.md §端点错误',
|
||||
ref: 'dacli/docs/archive/cmd-review-2026-07/integration.md §端点错误',
|
||||
},
|
||||
notes: ['v0.10 端点 `/system/SmsTemplate/testSent` 已被 web 端废弃, v0.11+ 修复'],
|
||||
})
|
||||
|
||||
@@ -108,7 +108,7 @@ export function buildIntegrationWebhookTestCommand(): Command {
|
||||
source: {
|
||||
web: 'web/apps/jnpf-web-apps-main/src/api/msgCenter/accountConfig.ts:29 testConfig()',
|
||||
api: 'POST /api/message/AccountConfig/testSendWebhook',
|
||||
ref: 'dacli/docs/cmd-review/integration.md §端点错误',
|
||||
ref: 'dacli/docs/archive/cmd-review-2026-07/integration.md §端点错误',
|
||||
},
|
||||
})
|
||||
return cmd
|
||||
|
||||
@@ -125,7 +125,7 @@ export function buildMsgTemplateCreateCommand(): Command {
|
||||
source: {
|
||||
web: 'web/apps/jnpf-web-apps-main/src/api/msgCenter/msgTemplate.ts:14 create()',
|
||||
api: 'POST /api/message/MessageTemplateConfig',
|
||||
ref: 'dacli/docs/cmd-review/msg.md §端点错误',
|
||||
ref: 'dacli/docs/archive/cmd-review-2026-07/msg.md §端点错误',
|
||||
},
|
||||
notes: ['v0.10 端点 `/api/system/MessageTemplate` 已被 web 端废弃, v0.11+ 修复'],
|
||||
})
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* v3.0+ (2026-06-29) 重要重构:
|
||||
* - 改用独立 _validate.ts (不再复用 report/_validate.ts)
|
||||
* - 回归审计发现 print 有 8 字段, report 只有 2-4 字段, 借用导致校验不全
|
||||
* - 详见 dacli/docs/cmd-review/regression-2026-06-29.md
|
||||
* - 详见 dacli/docs/archive/review/regression-2026-06-29.md
|
||||
*
|
||||
* v2.1+ (2026-07-21) 三层接入 (跨命令 auto-fix 模式, 参照 dict/typecreate.ts):
|
||||
* L1: --verbose / --json 三模式 (commands/_output_filter.ts:setupOutputFilter)
|
||||
|
||||
@@ -50,7 +50,7 @@ export function buildReportListCommand(): Command {
|
||||
.option('--currentPage <p>', '页码', '1')
|
||||
.option('--pageSize <s>', '每页', '50')
|
||||
// v0.15+ (P2-1): 兼容旧版选项, 转发到 keyword 模糊搜索 + deprecation warn
|
||||
// 旧版 (cmd-review/report.md § 1) 有 --category --type, v0.14 切 webapi 静默丢失
|
||||
// 旧版 (v3.0+ 评审报告) 有 --category --type, v0.14 切 webapi 静默丢失
|
||||
.option('--category <c>', '[已弃用] 按分类过滤, 改用 --keyword=<分类名/enCode>')
|
||||
.option('--type <t>', '[已弃用] 按报表类型过滤, 改用 --keyword=<类型>')
|
||||
addOutputOptions(cmd)
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
* (./.dacli-token/, ./dacli/.dacli-token/, ./test/.dacli-token/,
|
||||
* ./boot/jnpf-admin/.dacli-token/, ./skills/.dacli-token/ 等)
|
||||
* 跟 docs/尚数网基本开发规范v3.0.md "配置 ~/.dacli-token/" 不一致。
|
||||
* v0.15 (2026-07-01) 统一到 home。详见 dacli/docs/cmd-review/v0.15-token-home.md
|
||||
* v0.15 (2026-07-01) 统一到 home (regression audit 决策, 见 dacli/docs/archive/review/regression-2026-06-29.md)
|
||||
*
|
||||
* 覆盖: DACLI_TOKEN_DIR env 变量可自定义路径 (多账号 / CI / 测试场景)
|
||||
*/
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
* loginApi, saasLoginApi, getTenantMobileCode, applySaasApi, logoutApi
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - cmd-review/app.md 已识别: app/login.ts 当前 0 webapi 引用, 直接 c.postJson
|
||||
* - v3.0+ 评审已识别: app/login.ts 之前 0 webapi 引用, 直接 c.postJson
|
||||
* - 应 webapi 镜像, 复用 web 端 loginApi 完整参数链 (account/password/code/origin/timestamp/jnpf_ticket/grant_type)
|
||||
* - v0.11e+ Phase E: 登录后 base_system 存在性检测逻辑保留 (dacli 特有, web 端无)
|
||||
*
|
||||
|
||||
@@ -30,7 +30,7 @@ const DATASCREEN_OPTION_COMPONENTS_DIR = '/home/ubuntu/ccWorkDir/jnpf/前端/jnp
|
||||
|
||||
// =====================================================================
|
||||
// Phase 1+2: 镜像 option/config.js (基础配置) + option/components/*.vue (组件元数据)
|
||||
// 详见 dacli/docs/cmd-review/v0.13-webapi-form-workflow-refactor.md §8.2
|
||||
// 详见 dacli/docs/archive/review/v0.13-webapi-form-workflow-refactor.md §8.2
|
||||
// =====================================================================
|
||||
|
||||
/**
|
||||
@@ -332,7 +332,7 @@ export function getValidProps(): string[] {
|
||||
|
||||
// =====================================================================
|
||||
// Phase 3: 镜像 save 数据结构 (header.vue:200-211) → constructConfigDetail + constructComponentJson
|
||||
// 详见 dacli/docs/cmd-review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 3
|
||||
// 详见 dacli/docs/archive/review/v0.13-webapi-form-workflow-refactor.md §8.2.4 阶段 3
|
||||
//
|
||||
// 镜像源:
|
||||
// - jnpf/前端/jnpf-web-datascreen-vue3/src/page/group/header.vue:200-211 (save 按钮 formdata)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - CI 关卡 G 标识 org 0 webapi 引用为 FAIL
|
||||
* - cmd-review 已知 org 是"经验复刻", 应 webapi 镜像
|
||||
* - v3.0+ 评审已知 org 是"经验复刻", 应 webapi 镜像
|
||||
*/
|
||||
import { JnpfClient } from '../core/client.ts'
|
||||
import { loadWebModule } from './_loader.ts'
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - CI 关卡 G 标识 portal 0 webapi 引用为 FAIL
|
||||
* - cmd-review 已知 portal 是"经验复刻", 应 webapi 镜像
|
||||
* - v3.0+ 评审已知 portal 是"经验复刻", 应 webapi 镜像
|
||||
*/
|
||||
import { JnpfClient } from '../core/client.ts'
|
||||
import { loadWebModule } from './_loader.ts'
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - CI 关卡 G 标识 print 0 webapi 引用为 FAIL
|
||||
* - cmd-review 已知 print 是"经验复刻"源, 应 webapi 镜像
|
||||
* - v3.0+ 评审已知 print 是"经验复刻"源, 应 webapi 镜像
|
||||
* - print/create.ts 已用 _validate.ts (BS-56), 现在补 webapi
|
||||
*/
|
||||
import { JnpfClient } from '../core/client.ts'
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* getDevUser, getSystemSelector, getSystemlist, setPin
|
||||
*
|
||||
* v3.0+ (2026-06-29) 新增原因:
|
||||
* - cmd-review/app.md 已识别: app/list.ts, app/info.ts, app/create.ts 当前 0 webapi 引用, 直接 c.get/postJson
|
||||
* - v3.0+ 评审已识别: app/list.ts, app/info.ts, app/create.ts 之前 0 webapi 引用, 直接 c.get/postJson
|
||||
* - 应 webapi 镜像, 复用 web 端 15 个 API (CRUD + Copy/Export + Auth + Selector)
|
||||
* - 之前缺失的能力 (copySystem / exportSystem / getAppAuth / saveAppAuth / changeAppAuth / setPin) 一并恢复
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user