Refactor material-pack: [附件] column prefix + @ dir annotation + strict path validation
- 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
This commit is contained in:
1 parent
2ab4e69122
commit
081ff0f8aa
18 files changed
+1334
-378
No files matched your search
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.1.0",
|
||||
"info": {
|
||||
"title": "seal-use Wrapped API",
|
||||
"version": "0.10.11",
|
||||
"version": "0.10.12",
|
||||
"description": "Planned HTTP contract for the seal-use wrapped backend API.\n\nThese endpoints describe the intended stable API for frontend developers and agents once\nthe HTTP adapter is implemented.\nThey are not the raw downstream Seal endpoints. seal-use is responsible for enterprise\nselection, source authentication, response compaction, and diagnostics-friendly fields.\n"
|
||||
},
|
||||
"servers": [
|
||||
|
||||
Reference in new issue
Block a user