Root cause (24/33): JnpfResp<T> envelope treated as inner type.
- form/_ai.ts: callNcpfBackendWithRetry returns JnpfResp<AiFormResponse>
(body already reads .code/.msg/.data); callAiForm r typed as envelope,
unwrap data explicitly; drop as-unknown-as casts; fix stale workflow log fields
- form/create.ts: infer-category postJson generic was double-wrapped envelope
→ pass inner {id,fullName}; add columnNaming to CreateOpts (option existed)
- form/bindflow.ts: workflow Info get<> passed envelope shape → inner type,
flowNodes typed string|Record instead of any-ized {data?:any}
Stragglers:
- _precheck.ts: await fromToken() before initWebapi
- verify-runner.ts: import currentBaseUrl (was undefined name, real bug); +warn? on VerifyResult
- codegen.ts: ctx.addFix → addSuggestion (only method on ctx)
- audit.ts: source.blindspot → ref (fits type)
- test/render.ts: componentOk widened to number|boolean (holds false|count)
- log.ts: raw writer param (s:string) → (...a) to match writer map contravariance
- kb/_client.ts: install @types/pg (also P4)
Verified: tsc src=0 (total 51→18, rest in tests/); vitest unit 361 pass /
19 fail (fail set == pre-existing blindspot_guards + doc-md-slice, audit §12.2;
no regression in touched files).
Co-Authored-By: Claude <[email protected]>
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"name": "dacli",
|
|
"version": "0.1.0",
|
|
"description": "TypeScript-based dacli CLI for JNPF platform — 0 差错 baseline replication.",
|
|
"type": "module",
|
|
"private": true,
|
|
"bin": {
|
|
"dacli": "src/cli.ts"
|
|
},
|
|
"scripts": {
|
|
"dacli": "tsx src/cli.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"verify:baseline": "bash .claude/skills/dacli/examples/baseline/all.sh",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@vue/compiler-sfc": "^3.5.0",
|
|
"better-sqlite3": "^11.10.0",
|
|
"bpmn-moddle": "^10.0.0",
|
|
"commander": "^12.1.0",
|
|
"crypto-js": "^4.2.0",
|
|
"dotenv": "^16.6.1",
|
|
"pg": "^8.22.0",
|
|
"vue": "^3.5.0",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.61.1",
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/bpmn-moddle": "^10.0.0",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@types/node": "^22.0.0",
|
|
"@types/pg": "^8.20.0",
|
|
"pixelmatch": "^6.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^2.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|