@steipete/summarize 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +6 -6
- package/dist/esm/application/asset-execution.js +4 -3
- package/dist/esm/application/asset-execution.js.map +1 -1
- package/dist/esm/application/config-state.js +2 -1
- package/dist/esm/application/config-state.js.map +1 -1
- package/dist/esm/application/execute-summarize.js +5 -4
- package/dist/esm/application/execute-summarize.js.map +1 -1
- package/dist/esm/application/execution-input.js +4 -3
- package/dist/esm/application/execution-input.js.map +1 -1
- package/dist/esm/application/execution-resources.js +1 -1
- package/dist/esm/application/execution-resources.js.map +1 -1
- package/dist/esm/application/model-selection.js +8 -2
- package/dist/esm/application/model-selection.js.map +1 -1
- package/dist/esm/application/run-spec.js +1 -1
- package/dist/esm/application/run-spec.js.map +1 -1
- package/dist/esm/application/stdin-input.js +5 -4
- package/dist/esm/application/stdin-input.js.map +1 -1
- package/dist/esm/cache-database.js +2 -1
- package/dist/esm/cache-database.js.map +1 -1
- package/dist/esm/cache-store.js +2 -1
- package/dist/esm/cache-store.js.map +1 -1
- package/dist/esm/cli-main.js +5 -2
- package/dist/esm/cli-main.js.map +1 -1
- package/dist/esm/cli.js +2 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/config.js +5 -4
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/content/asset.js +1 -0
- package/dist/esm/content/asset.js.map +1 -1
- package/dist/esm/daemon/agent-request.js +1 -0
- package/dist/esm/daemon/agent-request.js.map +1 -1
- package/dist/esm/daemon/agent.js +1 -0
- package/dist/esm/daemon/agent.js.map +1 -1
- package/dist/esm/daemon/cli-entrypoint.js +3 -2
- package/dist/esm/daemon/cli-entrypoint.js.map +1 -1
- package/dist/esm/daemon/cli-health.js +3 -2
- package/dist/esm/daemon/cli-health.js.map +1 -1
- package/dist/esm/daemon/cli-service.js +5 -3
- package/dist/esm/daemon/cli-service.js.map +1 -1
- package/dist/esm/daemon/cli.js +55 -54
- package/dist/esm/daemon/cli.js.map +1 -1
- package/dist/esm/daemon/command.js +10 -0
- package/dist/esm/daemon/command.js.map +1 -1
- package/dist/esm/daemon/launchd.js +18 -13
- package/dist/esm/daemon/launchd.js.map +1 -1
- package/dist/esm/daemon/meta.js +2 -0
- package/dist/esm/daemon/meta.js.map +1 -1
- package/dist/esm/daemon/models.js +27 -20
- package/dist/esm/daemon/models.js.map +1 -1
- package/dist/esm/daemon/native-messaging-install.js +1 -0
- package/dist/esm/daemon/native-messaging-install.js.map +1 -1
- package/dist/esm/daemon/schtasks.js +20 -16
- package/dist/esm/daemon/schtasks.js.map +1 -1
- package/dist/esm/daemon/server-agent-route.js +2 -2
- package/dist/esm/daemon/server-agent-route.js.map +1 -1
- package/dist/esm/daemon/server-http.js +1 -0
- package/dist/esm/daemon/server-http.js.map +1 -1
- package/dist/esm/daemon/server-refresh-route.js +12 -32
- package/dist/esm/daemon/server-refresh-route.js.map +1 -1
- package/dist/esm/daemon/server-session-routes.js +6 -1
- package/dist/esm/daemon/server-session-routes.js.map +1 -1
- package/dist/esm/daemon/server-session.js +16 -5
- package/dist/esm/daemon/server-session.js.map +1 -1
- package/dist/esm/daemon/server-sse.js +1 -0
- package/dist/esm/daemon/server-sse.js.map +1 -1
- package/dist/esm/daemon/server-summarize-events.js +26 -14
- package/dist/esm/daemon/server-summarize-events.js.map +1 -1
- package/dist/esm/daemon/server-summarize-execution.js +4 -3
- package/dist/esm/daemon/server-summarize-execution.js.map +1 -1
- package/dist/esm/daemon/server-summarize-route.js +3 -2
- package/dist/esm/daemon/server-summarize-route.js.map +1 -1
- package/dist/esm/daemon/summarize-presentation.js +22 -4
- package/dist/esm/daemon/summarize-presentation.js.map +1 -1
- package/dist/esm/daemon/summarize-progress.js +46 -39
- package/dist/esm/daemon/summarize-progress.js.map +1 -1
- package/dist/esm/daemon/systemd.js +23 -16
- package/dist/esm/daemon/systemd.js.map +1 -1
- package/dist/esm/engine/model-attempts.js +1 -1
- package/dist/esm/engine/model-attempts.js.map +1 -1
- package/dist/esm/engine/streaming.js +2 -0
- package/dist/esm/engine/streaming.js.map +1 -1
- package/dist/esm/engine/summary-execution.js +4 -2
- package/dist/esm/engine/summary-execution.js.map +1 -1
- package/dist/esm/engine/summary-timestamps.js +1 -0
- package/dist/esm/engine/summary-timestamps.js.map +1 -1
- package/dist/esm/flags.js +62 -26
- package/dist/esm/flags.js.map +1 -1
- package/dist/esm/llm/generate-text-shared.js +6 -0
- package/dist/esm/llm/generate-text-shared.js.map +1 -1
- package/dist/esm/llm/generate-text-stream.js +2 -1
- package/dist/esm/llm/generate-text-stream.js.map +1 -1
- package/dist/esm/llm/model-id.js +5 -4
- package/dist/esm/llm/model-id.js.map +1 -1
- package/dist/esm/llm/providers/google.js +2 -1
- package/dist/esm/llm/providers/google.js.map +1 -1
- package/dist/esm/locale.js +92 -727
- package/dist/esm/locale.js.map +1 -1
- package/dist/esm/localization/de.json +262 -0
- package/dist/esm/localization/en.json +262 -0
- package/dist/esm/localization/es.json +262 -0
- package/dist/esm/localization/fr.json +262 -0
- package/dist/esm/localization/it.json +262 -0
- package/dist/esm/localization/ja.json +262 -0
- package/dist/esm/localization/ko.json +262 -0
- package/dist/esm/localization/nl.json +262 -0
- package/dist/esm/localization/pl.json +262 -0
- package/dist/esm/localization/pt-BR.json +262 -0
- package/dist/esm/localization/ru.json +262 -0
- package/dist/esm/localization/tr.json +262 -0
- package/dist/esm/localization/zh-Hans.json +262 -0
- package/dist/esm/localization/zh-Hant.json +262 -0
- package/dist/esm/logging/daemon.js +2 -0
- package/dist/esm/logging/daemon.js.map +1 -1
- package/dist/esm/logging/ring-file.js +6 -9
- package/dist/esm/logging/ring-file.js.map +1 -1
- package/dist/esm/markitdown.js +3 -1
- package/dist/esm/markitdown.js.map +1 -1
- package/dist/esm/media-cache.js +4 -0
- package/dist/esm/media-cache.js.map +1 -1
- package/dist/esm/refresh-free/benchmark.js +11 -7
- package/dist/esm/refresh-free/benchmark.js.map +1 -1
- package/dist/esm/refresh-free/catalog.js +2 -1
- package/dist/esm/refresh-free/catalog.js.map +1 -1
- package/dist/esm/refresh-free/config.js +14 -5
- package/dist/esm/refresh-free/config.js.map +1 -1
- package/dist/esm/refresh-free/presentation.js +61 -61
- package/dist/esm/refresh-free/presentation.js.map +1 -1
- package/dist/esm/refresh-free.js +12 -8
- package/dist/esm/refresh-free.js.map +1 -1
- package/dist/esm/run/attachments.js +7 -5
- package/dist/esm/run/attachments.js.map +1 -1
- package/dist/esm/run/bird/exec.js +2 -1
- package/dist/esm/run/bird/exec.js.map +1 -1
- package/dist/esm/run/bird/parse.js +15 -12
- package/dist/esm/run/bird/parse.js.map +1 -1
- package/dist/esm/run/bird.js +34 -17
- package/dist/esm/run/bird.js.map +1 -1
- package/dist/esm/run/cli-input-progress.js +27 -38
- package/dist/esm/run/cli-input-progress.js.map +1 -1
- package/dist/esm/run/cli-preflight.js +16 -15
- package/dist/esm/run/cli-preflight.js.map +1 -1
- package/dist/esm/run/cli-summarize-command.js +9 -8
- package/dist/esm/run/cli-summarize-command.js.map +1 -1
- package/dist/esm/run/constants.js +3 -2
- package/dist/esm/run/constants.js.map +1 -1
- package/dist/esm/run/cookies/twitter.js +3 -0
- package/dist/esm/run/cookies/twitter.js.map +1 -1
- package/dist/esm/run/finish-line-labels.js +29 -30
- package/dist/esm/run/finish-line-labels.js.map +1 -1
- package/dist/esm/run/finish-line-lengths.js +29 -17
- package/dist/esm/run/finish-line-lengths.js.map +1 -1
- package/dist/esm/run/finish-line-types.js +2 -0
- package/dist/esm/run/finish-line-types.js.map +1 -0
- package/dist/esm/run/finish-line.js +120 -148
- package/dist/esm/run/finish-line.js.map +1 -1
- package/dist/esm/run/flows/asset/content.js +14 -7
- package/dist/esm/run/flows/asset/content.js.map +1 -1
- package/dist/esm/run/flows/asset/extract.js +11 -5
- package/dist/esm/run/flows/asset/extract.js.map +1 -1
- package/dist/esm/run/flows/asset/media.js +20 -43
- package/dist/esm/run/flows/asset/media.js.map +1 -1
- package/dist/esm/run/flows/asset/output.js +1 -0
- package/dist/esm/run/flows/asset/output.js.map +1 -1
- package/dist/esm/run/flows/asset/preprocess.js +15 -9
- package/dist/esm/run/flows/asset/preprocess.js.map +1 -1
- package/dist/esm/run/flows/asset/summary.js +19 -11
- package/dist/esm/run/flows/asset/summary.js.map +1 -1
- package/dist/esm/run/flows/url/extract.js +7 -5
- package/dist/esm/run/flows/url/extract.js.map +1 -1
- package/dist/esm/run/flows/url/extraction-session.js +2 -2
- package/dist/esm/run/flows/url/extraction-session.js.map +1 -1
- package/dist/esm/run/flows/url/flow-progress.js +26 -21
- package/dist/esm/run/flows/url/flow-progress.js.map +1 -1
- package/dist/esm/run/flows/url/flow.js +18 -15
- package/dist/esm/run/flows/url/flow.js.map +1 -1
- package/dist/esm/run/flows/url/markdown.js +9 -8
- package/dist/esm/run/flows/url/markdown.js.map +1 -1
- package/dist/esm/run/flows/url/progress-status.js +6 -4
- package/dist/esm/run/flows/url/progress-status.js.map +1 -1
- package/dist/esm/run/flows/url/slides-output-render.js +17 -10
- package/dist/esm/run/flows/url/slides-output-render.js.map +1 -1
- package/dist/esm/run/flows/url/slides-output.js +3 -0
- package/dist/esm/run/flows/url/slides-output.js.map +1 -1
- package/dist/esm/run/flows/url/slides-session.js +10 -4
- package/dist/esm/run/flows/url/slides-session.js.map +1 -1
- package/dist/esm/run/flows/url/source-metrics.js +6 -4
- package/dist/esm/run/flows/url/source-metrics.js.map +1 -1
- package/dist/esm/run/flows/url/summary.js +20 -6
- package/dist/esm/run/flows/url/summary.js.map +1 -1
- package/dist/esm/run/flows/url/types.js.map +1 -1
- package/dist/esm/run/flows/url/video-only.js +12 -5
- package/dist/esm/run/flows/url/video-only.js.map +1 -1
- package/dist/esm/run/format.js +8 -2
- package/dist/esm/run/format.js.map +1 -1
- package/dist/esm/run/help.js +220 -200
- package/dist/esm/run/help.js.map +1 -1
- package/dist/esm/run/perf-trace.js +1 -0
- package/dist/esm/run/perf-trace.js.map +1 -1
- package/dist/esm/run/run-input.js +3 -3
- package/dist/esm/run/run-input.js.map +1 -1
- package/dist/esm/run/run-settings-parse.js +4 -3
- package/dist/esm/run/run-settings-parse.js.map +1 -1
- package/dist/esm/run/run-settings.js +6 -5
- package/dist/esm/run/run-settings.js.map +1 -1
- package/dist/esm/run/runner-setup.js +25 -20
- package/dist/esm/run/runner-setup.js.map +1 -1
- package/dist/esm/run/runner.js +6 -5
- package/dist/esm/run/runner.js.map +1 -1
- package/dist/esm/run/slides-cli.js +28 -31
- package/dist/esm/run/slides-cli.js.map +1 -1
- package/dist/esm/run/slides-render.js +4 -2
- package/dist/esm/run/slides-render.js.map +1 -1
- package/dist/esm/run/status-cli.js +43 -38
- package/dist/esm/run/status-cli.js.map +1 -1
- package/dist/esm/run/tips.js +8 -4
- package/dist/esm/run/tips.js.map +1 -1
- package/dist/esm/run/transcriber-cli.js +25 -26
- package/dist/esm/run/transcriber-cli.js.map +1 -1
- package/dist/esm/shared/format-count.js +6 -4
- package/dist/esm/shared/format-count.js.map +1 -1
- package/dist/esm/slides/extract.js +11 -10
- package/dist/esm/slides/extract.js.map +1 -1
- package/dist/esm/slides/frame-extraction.js +4 -4
- package/dist/esm/slides/frame-extraction.js.map +1 -1
- package/dist/esm/slides/ingest.js +5 -5
- package/dist/esm/slides/ingest.js.map +1 -1
- package/dist/esm/slides/runtime.js +11 -4
- package/dist/esm/slides/runtime.js.map +1 -1
- package/dist/esm/speaker-identification/identify.js +1 -0
- package/dist/esm/speaker-identification/identify.js.map +1 -1
- package/dist/esm/tty/format.js +21 -18
- package/dist/esm/tty/format.js.map +1 -1
- package/dist/esm/tty/progress/fetch-html.js +19 -15
- package/dist/esm/tty/progress/fetch-html.js.map +1 -1
- package/dist/esm/tty/progress/transcript-state.js +43 -30
- package/dist/esm/tty/progress/transcript-state.js.map +1 -1
- package/dist/esm/tty/progress/transcript.js +4 -3
- package/dist/esm/tty/progress/transcript.js.map +1 -1
- package/dist/esm/tty/spinner.js +1 -0
- package/dist/esm/tty/spinner.js.map +1 -1
- package/dist/esm/tty/website-progress.js +60 -46
- package/dist/esm/tty/website-progress.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/application/summarize-contracts.d.ts +2 -0
- package/dist/types/daemon/command.d.ts +4 -0
- package/dist/types/daemon/launchd.d.ts +2 -1
- package/dist/types/daemon/meta.d.ts +4 -7
- package/dist/types/daemon/models.d.ts +2 -0
- package/dist/types/daemon/server-session.d.ts +9 -2
- package/dist/types/daemon/server-summarize-events.d.ts +2 -1
- package/dist/types/daemon/summarize-presentation.d.ts +6 -1
- package/dist/types/daemon/summarize-progress.d.ts +2 -0
- package/dist/types/daemon/systemd.d.ts +2 -1
- package/dist/types/locale.d.ts +470 -10
- package/dist/types/refresh-free/presentation.d.ts +4 -2
- package/dist/types/refresh-free.d.ts +3 -1
- package/dist/types/run/constants.d.ts +3 -3
- package/dist/types/run/finish-line-labels.d.ts +3 -2
- package/dist/types/run/finish-line-lengths.d.ts +2 -1
- package/dist/types/run/finish-line-types.d.ts +22 -0
- package/dist/types/run/finish-line.d.ts +16 -77
- package/dist/types/run/flows/asset/media.d.ts +0 -5
- package/dist/types/run/flows/url/extract.d.ts +4 -2
- package/dist/types/run/flows/url/flow-progress.d.ts +3 -2
- package/dist/types/run/flows/url/progress-status.d.ts +3 -1
- package/dist/types/run/flows/url/slides-output-render.d.ts +5 -2
- package/dist/types/run/flows/url/slides-session.d.ts +2 -1
- package/dist/types/run/flows/url/source-metrics.d.ts +2 -1
- package/dist/types/run/flows/url/summary-finish.d.ts +1 -1
- package/dist/types/run/flows/url/types.d.ts +2 -1
- package/dist/types/run/flows/url/video-only.d.ts +3 -2
- package/dist/types/run/format.d.ts +1 -1
- package/dist/types/run/help.d.ts +8 -8
- package/dist/types/run/runner-setup.d.ts +2 -1
- package/dist/types/shared/format-count.d.ts +1 -1
- package/dist/types/slides/extract.d.ts +2 -1
- package/dist/types/slides/frame-extraction.d.ts +2 -2
- package/dist/types/slides/ingest.d.ts +2 -2
- package/dist/types/slides/runtime.d.ts +3 -1
- package/dist/types/slides/types.d.ts +1 -0
- package/dist/types/tty/format.d.ts +5 -5
- package/dist/types/tty/progress/fetch-html.d.ts +3 -1
- package/dist/types/tty/progress/transcript-state.d.ts +5 -3
- package/dist/types/tty/progress/transcript.d.ts +3 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/README.md +1 -0
- package/docs/cache.md +1 -0
- package/docs/config.md +1 -0
- package/docs/language.md +4 -12
- package/docs/localization/glossaries/de.json +12 -0
- package/docs/localization/glossaries/en.json +12 -0
- package/docs/localization/glossaries/es.json +12 -0
- package/docs/localization/glossaries/fr.json +12 -0
- package/docs/localization/glossaries/it.json +12 -0
- package/docs/localization/glossaries/ja.json +12 -0
- package/docs/localization/glossaries/ko.json +12 -0
- package/docs/localization/glossaries/nl.json +12 -0
- package/docs/localization/glossaries/pl.json +12 -0
- package/docs/localization/glossaries/pt-BR.json +12 -0
- package/docs/localization/glossaries/ru.json +12 -0
- package/docs/localization/glossaries/tr.json +12 -0
- package/docs/localization/glossaries/zh-Hans.json +12 -0
- package/docs/localization/glossaries/zh-Hant.json +12 -0
- package/docs/localization.md +105 -0
- package/docs/releasing.md +1 -1
- package/package.json +13 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "pl",
|
|
3
|
+
"summary": "podsumowanie",
|
|
4
|
+
"transcript": "transkrypcja",
|
|
5
|
+
"sidePanel": "panel boczny",
|
|
6
|
+
"clipboard": "schowek",
|
|
7
|
+
"slides": "slajdy",
|
|
8
|
+
"provider": "dostawca",
|
|
9
|
+
"prompt": "instrukcja",
|
|
10
|
+
"tone": "Direct singular imperatives; Polish one/few/many/other plurals.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "pt-BR",
|
|
3
|
+
"summary": "resumo",
|
|
4
|
+
"transcript": "transcrição",
|
|
5
|
+
"sidePanel": "painel lateral",
|
|
6
|
+
"clipboard": "área de transferência",
|
|
7
|
+
"slides": "slides",
|
|
8
|
+
"provider": "provedor",
|
|
9
|
+
"prompt": "prompt",
|
|
10
|
+
"tone": "Brazilian Portuguese; você/Use/Instale, infinitives for controls.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "ru",
|
|
3
|
+
"summary": "сводка",
|
|
4
|
+
"transcript": "расшифровка",
|
|
5
|
+
"sidePanel": "боковая панель",
|
|
6
|
+
"clipboard": "буфер обмена",
|
|
7
|
+
"slides": "слайды",
|
|
8
|
+
"provider": "провайдер",
|
|
9
|
+
"prompt": "инструкция",
|
|
10
|
+
"tone": "Polite plural imperatives; Russian one/few/many/other plurals.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "tr",
|
|
3
|
+
"summary": "özet",
|
|
4
|
+
"transcript": "transkript",
|
|
5
|
+
"sidePanel": "yan panel",
|
|
6
|
+
"clipboard": "pano",
|
|
7
|
+
"slides": "slaytlar",
|
|
8
|
+
"provider": "sağlayıcı",
|
|
9
|
+
"prompt": "istem",
|
|
10
|
+
"tone": "Polite guidance; preserve Turkish-specific casing and existing contributor terminology.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "zh-Hans",
|
|
3
|
+
"summary": "摘要",
|
|
4
|
+
"transcript": "转录文本",
|
|
5
|
+
"sidePanel": "侧边栏",
|
|
6
|
+
"clipboard": "剪贴板",
|
|
7
|
+
"slides": "幻灯片",
|
|
8
|
+
"provider": "服务提供商",
|
|
9
|
+
"prompt": "提示词",
|
|
10
|
+
"tone": "Simplified Chinese; 缓存, 守护进程, 日志; distinguish model 词元 from auth 令牌.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "zh-Hant",
|
|
3
|
+
"summary": "摘要",
|
|
4
|
+
"transcript": "逐字稿",
|
|
5
|
+
"sidePanel": "側邊欄",
|
|
6
|
+
"clipboard": "剪貼簿",
|
|
7
|
+
"slides": "投影片",
|
|
8
|
+
"provider": "服務供應商",
|
|
9
|
+
"prompt": "提示詞",
|
|
10
|
+
"tone": "Traditional Chinese; 快取, 常駐程式, 記錄; distinguish model 詞元 from auth 權杖.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "UI locale selection, message catalogs, translation rules, and completeness checks."
|
|
3
|
+
read_when:
|
|
4
|
+
- "Adding or changing CLI or extension interface text"
|
|
5
|
+
- "Adding a UI language or troubleshooting locale selection"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Localization
|
|
9
|
+
|
|
10
|
+
Summarize localizes its CLI and Chrome/Firefox extension interface in English, German, French, Spanish, Italian, Brazilian Portuguese, Dutch, Polish, Russian, Japanese, Simplified Chinese, Traditional Chinese, Korean, and Turkish. Summary and transcript content remain independent of the interface language.
|
|
11
|
+
|
|
12
|
+
## Choosing a language
|
|
13
|
+
|
|
14
|
+
| Locale | Language |
|
|
15
|
+
| --------- | --------------------------- |
|
|
16
|
+
| `en` | English (base and fallback) |
|
|
17
|
+
| `de` | German |
|
|
18
|
+
| `fr` | French |
|
|
19
|
+
| `es` | Spanish |
|
|
20
|
+
| `it` | Italian |
|
|
21
|
+
| `pt-BR` | Portuguese (Brazil) |
|
|
22
|
+
| `nl` | Dutch |
|
|
23
|
+
| `pl` | Polish |
|
|
24
|
+
| `ru` | Russian |
|
|
25
|
+
| `ja` | Japanese |
|
|
26
|
+
| `zh-Hans` | Simplified Chinese |
|
|
27
|
+
| `zh-Hant` | Traditional Chinese |
|
|
28
|
+
| `ko` | Korean |
|
|
29
|
+
| `tr` | Turkish |
|
|
30
|
+
|
|
31
|
+
Use `summarize --locale de --help` or `SUMMARIZE_LOCALE=de` for the CLI. In the extension, choose **Interface language** in **Options → UI**. An explicit selection takes precedence over the operating system or browser preferences. `auto` follows those preferences, with English as the final fallback. The CLI reads `LC_ALL`, `LC_MESSAGES`, then `LANG`, or the platform locale when those are absent. `--locale` takes precedence over `SUMMARIZE_LOCALE`.
|
|
32
|
+
|
|
33
|
+
Regional and script variants negotiate to a registered catalog: `de-AT` becomes `de`, Portuguese locales use `pt-BR`, `zh-TW` and `zh-HK` use `zh-Hant`, and `zh-CN` uses `zh-Hans`. Explicit Chinese script tags take precedence over the region. Only fully registered locales appear in the interface selector or CLI help.
|
|
34
|
+
|
|
35
|
+
`--language` and the extension’s summary language setting control generated content, independently of UI locale. For example:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
summarize --locale de --language japanese "https://example.com/article"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This uses German controls and progress messages while requesting a Japanese summary. Extracted article text, user prompts, skill names, file paths, URLs, provider/model identifiers, and native/provider diagnostics retain their original content.
|
|
42
|
+
|
|
43
|
+
## Catalog ownership
|
|
44
|
+
|
|
45
|
+
English is the base catalog. There are two effective surface catalogs, composed from shared messages plus surface-specific messages:
|
|
46
|
+
|
|
47
|
+
| Catalog group | Location | Owner |
|
|
48
|
+
| ------------- | ------------------------------------------------------- | -------------------------------------------------------------------- |
|
|
49
|
+
| Shared | `packages/core/src/localization/catalogs/<locale>.json` | Messages used by both surfaces or carried across the daemon boundary |
|
|
50
|
+
| CLI | `src/localization/<locale>.json` | Help, terminal presentation, and CLI-only commands |
|
|
51
|
+
| Extension | `apps/chrome-extension/src/localization/<locale>.json` | Options, side panel, and browser-owned interface messages |
|
|
52
|
+
|
|
53
|
+
A shared key must not be duplicated in either surface catalog. Both surfaces use `createTranslator` from `@steipete/summarize-core/localization`. `sharedMessageCatalogs` is the locale registry; each adapter must load a catalog for every registered locale. The English catalog defines the TypeScript key union, so callers do not maintain a second key list.
|
|
54
|
+
|
|
55
|
+
New keys describe intent, such as `service.commandError`, `skills.deleteConfirm`, or `progress.panelExtract`. Keep keys stable when wording changes. Some existing keys derive from older English copy; use semantic names for new messages. Separate product branding (`brand.name`) from the summarization action (`summarize`). Product and provider names stay unchanged in each locale’s explicit entry.
|
|
56
|
+
|
|
57
|
+
## Writing messages
|
|
58
|
+
|
|
59
|
+
Translate complete messages. Pass user data as values, rather than concatenating translated fragments or searching for English text to replace. ICU `plural` and `select` expressions let translators control word order, grammar, and optional clauses:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"files.ready": "{count, plural, one {# file ready} other {# files ready}}",
|
|
64
|
+
"job.state": "{state, select, running {Running} other {Waiting}}"
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Keep placeholder names and types consistent. Preserve exact plural cases such as `=0` and offsets; add the plural categories required by the target language. Polish and Russian need more categories than English, while Japanese and Chinese generally use `other`. Do not translate selector identifiers, flags, environment variable names, model IDs, or literal command placeholders. ICU quoting preserves literal braces, for example `'{input}'`.
|
|
69
|
+
|
|
70
|
+
Use ICU number/date arguments or `Intl` formatting at the rendering boundary. Keep numbers numeric in messages sent between processes. CLI emphasis uses the reserved `<uiLabel>`, `<uiDetail>`, and `<uiValue>` tags; these style complete messages without interpreting interpolated data as markup.
|
|
71
|
+
|
|
72
|
+
Use typed helpers (`cliMessage`, `sharedMessage`, or extension `message`) for descriptors. CLI `CliError` and extension `LocalizedError` retain owned error descriptors through catches. Nested owned errors stay structured until the final UI renders them; opaque provider or operating-system details stay literal. Daemon and background events carry optional localization descriptors alongside compatibility text. Validate incoming descriptors with `readLocalizedMessage` before rendering.
|
|
73
|
+
|
|
74
|
+
For extension DOM text, use `setText`, `setLocalizedAttribute`, `LocalizedText`, or `data-i18n` bindings. Attribute bindings include titles, placeholders, accessible labels, and visible `value`/`label` attributes. Use `localizedHtml` when an existing template needs a localized text node; it escapes text and values. Source and user content belongs in the literal-content path, with `data-locale-ignore` where needed. Locale changes must not rewrite that content.
|
|
75
|
+
|
|
76
|
+
Use logical CSS properties (`padding-inline`, `margin-inline`, `text-align: start`) and isolate URLs, code, and tokens from surrounding text direction. The root direction is derived from the locale; user content can use `dir="auto"`. Check long labels at normal options and side-panel widths.
|
|
77
|
+
|
|
78
|
+
## Adding a language
|
|
79
|
+
|
|
80
|
+
1. Add the language tag to `UI_LOCALES` and update negotiation only if its region/script rules require it.
|
|
81
|
+
2. Create `<locale>.json` in all three catalog groups, translating every English key. Consult the per-locale glossaries in `docs/localization/glossaries/` and add a glossary for the new locale.
|
|
82
|
+
3. Import and register the shared catalog in `packages/core/src/localization/messages.ts`, and import the surface catalogs in the CLI and extension adapters. Their exhaustive registry types prevent partially loaded languages.
|
|
83
|
+
4. Test explicit selection, platform negotiation, region/script fallback, plural branches, and independence from summary language. Build the CLI and both extension targets. Inspect options and the side panel, including long labels and translated errors.
|
|
84
|
+
5. Run `pnpm check:localization` and `pnpm check`. Include synthetic UI proof when changing the extension, and update the language list and changelog.
|
|
85
|
+
|
|
86
|
+
## Completeness enforcement
|
|
87
|
+
|
|
88
|
+
`pnpm check:localization` runs the same check used by CI and `pnpm check`. It rejects missing or unregistered locale files, missing or stale keys, malformed ICU, placeholder/type/selector mismatches, duplicate shared keys, unused keys, unknown keys, and references to keys owned only by the other surface.
|
|
89
|
+
|
|
90
|
+
The source audit checks static HTML and JSX bindings, embedded markup, visible DOM attributes, display calls, and local values passed into presentation code. It follows common constants, aliases, object members, and destructuring, and rejects English-text matching used as a translation mechanism. Tests cover deliberate bypasses, including a deliberately incomplete catalog that must make the check exit unsuccessfully.
|
|
91
|
+
|
|
92
|
+
Some strings are executable syntax, model instructions, external diagnostics, or source data. Keep exceptions narrow and adjacent to the expression, using an `i18n-ignore:` comment that explains the boundary. A comment cannot exempt an entire function or control-flow block. `data-locale-ignore` protects runtime source content; it is not permission to put uncatalogued interface copy in static HTML.
|
|
93
|
+
|
|
94
|
+
An intentionally untranslated message can use an explicit marker:
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"example.message": {
|
|
99
|
+
"fallback": "en",
|
|
100
|
+
"reason": "Explain the specific reviewed exception."
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The marker requires a nonempty reason and renders using English grammar. Reviewers must assess the exception; missing translations cannot silently pass CI. The shipped language catalogs are complete translations and do not need fallback markers.
|
package/docs/releasing.md
CHANGED
|
@@ -15,7 +15,7 @@ summary: "Release checklist, Chrome Web Store submission, and Homebrew/core veri
|
|
|
15
15
|
|
|
16
16
|
## Checklist
|
|
17
17
|
|
|
18
|
-
1. `scripts/release.sh all` (gates → build
|
|
18
|
+
1. `scripts/release.sh all` (gates → build proof artifacts → pack verify → npm publish → smoke → tag). The tag-triggered Release workflow then builds, signs, notarizes, verifies, and publishes the GitHub release assets.
|
|
19
19
|
2. Verify the GitHub release notes and uploaded Bun/extension assets.
|
|
20
20
|
3. Submit the Chrome extension update:
|
|
21
21
|
- Skip this step only when every shipped change is daemon-side and the packaged extension and its companion contract are unchanged.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steipete/summarize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Link → clean text → summary.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"summarize": "./dist/cli.js",
|
|
@@ -34,25 +34,25 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@earendil-works/pi-ai": "^0.85.1",
|
|
37
|
-
"@steipete/summarize-core": "0.
|
|
37
|
+
"@steipete/summarize-core": "0.23.0",
|
|
38
38
|
"bpe-lite": "^0.5.2",
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
|
-
"file-type": "^22.0
|
|
40
|
+
"file-type": "^22.1.0",
|
|
41
41
|
"json5": "^2.2.3",
|
|
42
|
-
"markdansi": "^0.3.
|
|
42
|
+
"markdansi": "^0.3.4",
|
|
43
43
|
"mime": "^4.1.0",
|
|
44
|
-
"osc-progress": "^0.3.
|
|
45
|
-
"tokentally": "^0.1.
|
|
44
|
+
"osc-progress": "^0.3.4",
|
|
45
|
+
"tokentally": "^0.1.7",
|
|
46
46
|
"undici": "8.10.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^24.13.
|
|
49
|
+
"@types/node": "^24.13.4",
|
|
50
50
|
"@types/sanitize-html": "^2.16.1",
|
|
51
51
|
"@vitest/coverage-v8": "^5.0.0",
|
|
52
|
-
"happy-dom": "^20.14.
|
|
53
|
-
"oxc-parser": "^0.
|
|
54
|
-
"oxfmt": "0.
|
|
55
|
-
"oxlint": "^1.
|
|
52
|
+
"happy-dom": "^20.14.5",
|
|
53
|
+
"oxc-parser": "^0.150.0",
|
|
54
|
+
"oxfmt": "0.68.0",
|
|
55
|
+
"oxlint": "^1.83.0",
|
|
56
56
|
"oxlint-tsgolint": "^7.0.2001",
|
|
57
57
|
"typescript": "^7.0.2",
|
|
58
58
|
"vitest": "^5.0.0"
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"build:bun:test": "pnpm -C packages/core build && bun scripts/build-bun.js --test",
|
|
67
67
|
"build:cli": "node scripts/build-cli.mjs",
|
|
68
68
|
"build:lib": "tsc -p tsconfig.build.json",
|
|
69
|
-
"check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm test:coverage",
|
|
69
|
+
"check": "pnpm format:check && pnpm check:localization && pnpm lint && pnpm typecheck && pnpm test:coverage",
|
|
70
|
+
"check:localization": "node --import ./scripts/register-typescript.mjs scripts/check-localization.mjs",
|
|
70
71
|
"clean": "node scripts/clean.mjs dist packages/core/dist",
|
|
71
72
|
"dev:cli": "node --import ./scripts/register-typescript.mjs src/cli.ts",
|
|
72
73
|
"docs:build": "node scripts/build-docs-site.mjs",
|