auto(284e8d004cbb): session end @ 2026-06-29T17:47:59 (+1f)

This commit is contained in:
ssw committed 2026-06-29 17:47:59 +08:00
1 parent a0a51afc78
commit c70ffb7844
1 file changed
+1 -11
+1 -11
View File
@@ -1,20 +1,14 @@
/**
* commands/report/list.ts — 报表列表 (v3.0+ 走 webapi/report 镜像)
* commands/report/list.ts — 报表列表
*
* API: GET /api/extend/ReportManage (走主平台 backend)
* 注: JNPF 报表是只读模板, 列表返回 F_ 前缀字段 (不同于标准 form)
* 见 doc/v0.8-endpoints.md §1.2
*
* v3.0+ (2026-06-29 regression audit P0): 改用 webapi/report.getReportList
* - webapi/report.ts 已存在 (v0.11+ Phase 2, 镜像 jnpf-web-datareport)
* - 但 report/* 命令没 import (CI 关卡 G 识别为 FAIL)
* - 现在显式 import + 调用, 形成完整链路
*/
import { Command } from 'commander'
import { JnpfClient } from '../../core/client.ts'
import { installAiHelpHook } from '../../core/help.ts'
import { log, printJson } from '../../core/log.ts'
import { initWebapi as initReportWebapi } from '../../webapi/report.ts'
interface ReportItem {
F_Id?: string
@@ -41,10 +35,6 @@ export function buildReportListCommand(): Command {
.option('--json', '原始 JSON 输出', false)
.action(async (opts: ListOpts) => {
const c = await JnpfClient.fromToken()
// v3.0+ P0: 调用 webapi/report.initWebapi (虽然走 jnpf-web-datareport, 但 webapi 模块完整镜像)
// 注意: 当前实现仍走 c.get /extend/ReportManage (主平台 backend), 不走 jnpf-web-datareport 端口
// 未来: 扩展 webapi/report 走独立 reportApiURL shim
await initReportWebapi(c)
const r = await c.get<ReportItem[]>(
'/extend/ReportManage',
{ keyword: opts.keyword, category: opts.category },