- Replace filename-heuristic attachment matching with explicit [附件] column declaration - AttachmentGroup replaces MaterialAttachmentEntry: uses paths[] instead of entries[] - parseMaterialWorkbook now exports DeclaredAttachment and full Parsed type including documentAttachments, expenseAttachments, personAttachments per row - buildAttachmentPlans enforces strict bidirectional validation: 1. Every Excel [附件] path must exist in ZIP 2. Every ZIP file must be declared in some [附件] column - validateDocIdDirectories now strips @annotation suffix when matching documentIds - injectAttachmentPlan updated to work with new AttachmentGroup.paths API - pushMaterialPack iterates group.paths for uploads, adding stderr diagnostics - Key deduplication applied at parse time (deduplicateKeys) - Tests updated: [附件] column fixtures, bidirectional validation error tests, @ annotation matching test, preview injection test - Skill docs updated: Material Pack Workflow section in references/cli.md - Version bumped to 0.10.12
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "seal-use",
|
|
"version": "0.10.12",
|
|
"type": "module",
|
|
"module": "src/server.ts",
|
|
"bin": {
|
|
"seal-use": "src/cli.ts",
|
|
"seal-home": "src/cli.ts"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run --watch src/server.ts",
|
|
"start": "bun run src/server.ts",
|
|
"probe": "bun run src/probe.ts",
|
|
"cli": "bun run src/cli.ts",
|
|
"check": "tsc --noEmit",
|
|
"build:binary": "node scripts/build-binary.mjs",
|
|
"build:plugin": "node scripts/build-plugin.mjs",
|
|
"bump": "bun run scripts/bump-version.ts",
|
|
"openapi:bundle": "bun run scripts/bundle-openapi.ts",
|
|
"openapi:raw": "bun run scripts/generate-raw-openapi.ts",
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"exceljs": "^4.4.0",
|
|
"iconv-lite": "^0.7.3",
|
|
"ky": "^2.0.2",
|
|
"pinyin-pro": "^3.29.3",
|
|
"yauzl": "^3.4.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.14",
|
|
"@types/yauzl": "^3.4.0",
|
|
"bun-types": "^1.3.14",
|
|
"typescript": "^5.9.3",
|
|
"yaml": "^2.9.0"
|
|
}
|
|
}
|