feat: publication IA (magazine/brief/essay) + fixes critique
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m22s
CI / Deploy production (on server) (push) Has been skipped

Publication IA:
- 4 templates (magazine, brief, essay, simple) avec CSS riche
- Rewrite IA (article/exercises/tutorial/reference/mixed)
- Modération avec timeout 12s + fallback safe
- Quotas publish_enhance par tier (basic=2, pro=15, business=100)
- Détection contenu stale (hash)
- Migration DB publishedContent/publishedTemplate/publishedSourceHash

Fixes:
- cheerio v1.2: Element -> AnyNode (domhandler), decodeEntities cast
- _isShared ajouté au type Note (champ virtuel serveur)
- callout colors PDF export: extraction fonction pure testable
- admin/published: guard note.userId null
- Cmd+S fonctionne en mode dialog (pas seulement fullPage)

i18n:
- 23 clés publish* traduites dans les 15 locales
- Extension Web Clipper: 13 locales mise à jour

Tests:
- callout-colors.test.ts (6 tests)
- note-visible-in-view.test.ts (5 tests)
- entitlements.test.ts + byok-entitlements.test.ts: mock usageLog + unstubAllEnvs
- 199/199 tests passent

Tracker: user-stories.md sync avec sprint-status.yaml
This commit is contained in:
Antigravity
2026-06-28 07:32:57 +00:00
parent 902fe95a69
commit 96e7902f01
169 changed files with 5382 additions and 1527 deletions

View File

@@ -1,9 +1,9 @@
{
"extName": {
"message": "Momento 网页剪辑器"
"message": "Memento 网页剪辑器"
},
"extDescription": {
"message": "将网页和突出显示的文本捕获到您的 Momento 笔记本中 — 连接到您自己的 Momento 服务器。"
"message": "将网页和突出显示的文本捕获到您的 Memento 笔记本中 — 连接到您自己的 Memento 服务器。"
},
"extActionTitle": {
"message": "剪辑到时刻"
@@ -21,7 +21,7 @@
"message": "时刻网址"
},
"instanceUrlLabel": {
"message": "您的 Momento 实例 URL"
"message": "您的 Memento 实例 URL"
},
"presetProduction": {
"message": "制作预设 · memento-note.com"
@@ -33,13 +33,13 @@
"message": "打开时刻"
},
"settingsHint": {
"message": "粘贴 Momento 服务器的 HTTPS或 LANURL。此浏览器中的 Cookie 处理登录。"
"message": "粘贴 Memento 服务器的 HTTPS或 LANURL。此浏览器中的 Cookie 处理登录。"
},
"footerVersion": {
"message": "Momento Web Clipper <<<版本>>>"
"message": "Memento Web Clipper <<<版本>>>"
},
"errPermissionDenied": {
"message": "Momento 无法访问此选项卡。检查键盘/站点扩展权限 - 或打开侧面板。"
"message": "Memento 无法访问此选项卡。检查键盘/站点扩展权限 - 或打开侧面板。"
},
"notebookUnnamed": {
"message": "无标题笔记本"
@@ -81,7 +81,7 @@
"message": "此处无法剪辑 — 此页面阻止扩展程序访问。"
},
"errLoginRequired": {
"message": "请先在此浏览器中登录 Momento。"
"message": "请先在此浏览器中登录 Memento。"
},
"errLoadNotebooks": {
"message": "无法加载笔记本。尝试重新连接。"
@@ -102,7 +102,7 @@
}
},
"restrictedPage": {
"message": "受限页面 — 通过 Momento 工具栏或侧面板进行剪辑。"
"message": "受限页面 — 通过 Memento 工具栏或侧面板进行剪辑。"
},
"destinationNotebook": {
"message": "目的地笔记本"
@@ -150,7 +150,7 @@
}
},
"viewInMomento": {
"message": "在 Momento 中查看"
"message": "在 Memento 中查看"
},
"clipAnother": {
"message": "剪辑另一页"
@@ -159,7 +159,7 @@
"message": "无法完成"
},
"genericError": {
"message": "您的 Momento 实例出现问题。"
"message": "您的 Memento 实例出现问题。"
},
"retry": {
"message": "重试"
@@ -174,7 +174,7 @@
"message": "无法保存您的笔记。"
},
"errNetwork": {
"message": "网络问题 — 检查您的连接和 Momento URL。"
"message": "网络问题 — 检查您的连接和 Memento URL。"
},
"bannerPickText": {
"message": "突出显示页面上的文本,或剪辑整个页面。"