fix: route document naming through the canonical namer; sanitize LLM-chosen names
Stop self-naming in the document generators and defer to NetworkStorageIntegration's single namer (rule N1): - FreeDocumentGenerator and GenericTemplateGenerator no longer bake in a date prefix, em-dash or contact name. They set the clean subject, upload explicitly to the case folder (the AfterSave hook fires before the Case link exists), then realign the Document + Attachment names to the canonical stored name returned by the upload. - CaseFolderManager sanitizes every model-chosen name server-side: writeFile splits dir/basename and de-duplicates via buildStoredFileName; createFolder, renameItem and moveItem sanitize their final segment. The LLM can no longer pick a raw filename. Refs Task Master #7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -3,11 +3,11 @@
|
||||
"module": "SmartAssistant",
|
||||
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration",
|
||||
"author": "klear",
|
||||
"version": "2.10.4",
|
||||
"version": "2.10.5",
|
||||
"acceptableVersions": [
|
||||
">=8.0.0"
|
||||
],
|
||||
"releaseDate": "2026-05-27",
|
||||
"releaseDate": "2026-06-03",
|
||||
"php": [
|
||||
">=8.1"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user