@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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type CliLocale, type CliMessage } from "../locale.js";
|
|
2
|
+
import type { FinishLabel, FinishPart } from "./finish-line-types.js";
|
|
1
3
|
export { buildExtractFinishLabel, buildSummaryFinishLabel, type ExtractDiagnosticsForFinishLine, } from "./finish-line-labels.js";
|
|
2
4
|
export { buildLengthPartsForFinishLine, type ExtractedForLengths } from "./finish-line-lengths.js";
|
|
3
5
|
export type FinishLineText = {
|
|
@@ -8,12 +10,10 @@ export type FinishLineModel = {
|
|
|
8
10
|
lineParts: string[];
|
|
9
11
|
detailParts: string[];
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
export declare function writeFinishLine({ stderr, elapsedMs, elapsedLabel, label, model, report, costUsd, detailed, extraParts, color, env, }: {
|
|
13
|
-
stderr: NodeJS.WritableStream;
|
|
13
|
+
type FinishLineOptions = {
|
|
14
14
|
elapsedMs: number;
|
|
15
|
-
elapsedLabel?: string | null;
|
|
16
|
-
label?:
|
|
15
|
+
elapsedLabel?: string | CliMessage | null;
|
|
16
|
+
label?: FinishLabel | null;
|
|
17
17
|
model: string | null;
|
|
18
18
|
report: {
|
|
19
19
|
llm: Array<{
|
|
@@ -32,86 +32,25 @@ export declare function writeFinishLine({ stderr, elapsedMs, elapsedLabel, label
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
costUsd: number | null;
|
|
35
|
+
extraParts?: FinishPart[] | null;
|
|
36
|
+
locale?: CliLocale;
|
|
37
|
+
};
|
|
38
|
+
export declare function formatModelLabelForDisplay(model: string): string;
|
|
39
|
+
export declare function writeFinishLine(options: FinishLineOptions & {
|
|
40
|
+
stderr: NodeJS.WritableStream;
|
|
35
41
|
detailed: boolean;
|
|
36
|
-
extraParts?: string[] | null;
|
|
37
42
|
color: boolean;
|
|
38
43
|
env?: Record<string, string | undefined>;
|
|
39
44
|
}): void;
|
|
40
|
-
export declare function buildFinishLineText(
|
|
41
|
-
elapsedMs: number;
|
|
42
|
-
elapsedLabel?: string | null;
|
|
43
|
-
label?: string | null;
|
|
44
|
-
model: string | null;
|
|
45
|
-
report: {
|
|
46
|
-
llm: Array<{
|
|
47
|
-
promptTokens: number | null;
|
|
48
|
-
completionTokens: number | null;
|
|
49
|
-
totalTokens: number | null;
|
|
50
|
-
calls: number;
|
|
51
|
-
}>;
|
|
52
|
-
services: {
|
|
53
|
-
firecrawl: {
|
|
54
|
-
requests: number;
|
|
55
|
-
};
|
|
56
|
-
apify: {
|
|
57
|
-
requests: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
costUsd: number | null;
|
|
45
|
+
export declare function buildFinishLineText(options: FinishLineOptions & {
|
|
62
46
|
detailed: boolean;
|
|
63
|
-
extraParts?: string[] | null;
|
|
64
47
|
}): FinishLineText;
|
|
65
|
-
export declare function buildFinishLineVariants({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
label?: string | null;
|
|
69
|
-
model: string | null;
|
|
70
|
-
report: {
|
|
71
|
-
llm: Array<{
|
|
72
|
-
promptTokens: number | null;
|
|
73
|
-
completionTokens: number | null;
|
|
74
|
-
totalTokens: number | null;
|
|
75
|
-
calls: number;
|
|
76
|
-
}>;
|
|
77
|
-
services: {
|
|
78
|
-
firecrawl: {
|
|
79
|
-
requests: number;
|
|
80
|
-
};
|
|
81
|
-
apify: {
|
|
82
|
-
requests: number;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
costUsd: number | null;
|
|
87
|
-
compactExtraParts?: string[] | null;
|
|
88
|
-
detailedExtraParts?: string[] | null;
|
|
48
|
+
export declare function buildFinishLineVariants({ compactExtraParts, detailedExtraParts, ...options }: Omit<FinishLineOptions, "extraParts"> & {
|
|
49
|
+
compactExtraParts?: FinishPart[] | null;
|
|
50
|
+
detailedExtraParts?: FinishPart[] | null;
|
|
89
51
|
}): {
|
|
90
52
|
compact: FinishLineText;
|
|
91
53
|
detailed: FinishLineText;
|
|
92
54
|
};
|
|
93
55
|
export declare function formatFinishLineText(model: FinishLineModel, detailed: boolean): FinishLineText;
|
|
94
|
-
export declare function buildFinishLineModel({ elapsedMs, elapsedLabel, label, model, report, costUsd, extraParts, }:
|
|
95
|
-
elapsedMs: number;
|
|
96
|
-
elapsedLabel?: string | null;
|
|
97
|
-
label?: string | null;
|
|
98
|
-
model: string | null;
|
|
99
|
-
report: {
|
|
100
|
-
llm: Array<{
|
|
101
|
-
promptTokens: number | null;
|
|
102
|
-
completionTokens: number | null;
|
|
103
|
-
totalTokens: number | null;
|
|
104
|
-
calls: number;
|
|
105
|
-
}>;
|
|
106
|
-
services: {
|
|
107
|
-
firecrawl: {
|
|
108
|
-
requests: number;
|
|
109
|
-
};
|
|
110
|
-
apify: {
|
|
111
|
-
requests: number;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
costUsd: number | null;
|
|
116
|
-
extraParts?: string[] | null;
|
|
117
|
-
}): FinishLineModel;
|
|
56
|
+
export declare function buildFinishLineModel({ elapsedMs, elapsedLabel, label, model, report, costUsd, extraParts, locale, }: FinishLineOptions): FinishLineModel;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Media file transcription handler for local audio/video files.
|
|
3
|
-
* Phase 2: Transcript provider integration
|
|
4
|
-
* Phase 2.2: Local file path handling for transcript caching
|
|
5
|
-
*/
|
|
6
1
|
import { type ExtractedLinkContent } from "../../../content/index.js";
|
|
7
2
|
import type { AssetSummaryContext, AssetSummaryResult, PresentAssetSummaryArgs, SummarizeAssetArgs } from "./types.js";
|
|
8
3
|
export type MediaFileExecutionResult = {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ExtractedLinkContent, FetchLinkContentOptions } from "../../../content/index.js";
|
|
2
|
+
import { type CliLocale } from "../../../locale.js";
|
|
3
|
+
import type { FinishLabel } from "../../finish-line-types.js";
|
|
2
4
|
export type UrlExtractionUi = {
|
|
3
5
|
contentSizeLabel: string;
|
|
4
6
|
viaSourceLabel: string;
|
|
5
7
|
footerParts: string[];
|
|
6
|
-
finishSourceLabel:
|
|
8
|
+
finishSourceLabel: FinishLabel | null;
|
|
7
9
|
};
|
|
8
10
|
export declare function fetchLinkContentWithBirdTip({ client, url, options, env, }: {
|
|
9
11
|
client: {
|
|
@@ -13,7 +15,7 @@ export declare function fetchLinkContentWithBirdTip({ client, url, options, env,
|
|
|
13
15
|
options: FetchLinkContentOptions;
|
|
14
16
|
env: Record<string, string | undefined>;
|
|
15
17
|
}): Promise<ExtractedLinkContent>;
|
|
16
|
-
export declare function deriveExtractionUi(extracted: ExtractedLinkContent): UrlExtractionUi;
|
|
18
|
+
export declare function deriveExtractionUi(extracted: ExtractedLinkContent, locale?: CliLocale): UrlExtractionUi;
|
|
17
19
|
export declare function logExtractionDiagnostics({ extracted, stderr, verbose, verboseColor, env, }: {
|
|
18
20
|
extracted: ExtractedLinkContent;
|
|
19
21
|
stderr: NodeJS.WritableStream;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CliMessageKey } from "../../../locale.js";
|
|
1
2
|
import type { createThemeRenderer } from "../../../tty/theme.js";
|
|
2
3
|
import { type UrlFlowContext } from "./types.js";
|
|
3
4
|
export declare function writeSlidesBackgroundFailureWarning({ ctx, theme, message, }: {
|
|
@@ -19,9 +20,9 @@ export declare function createUrlFlowProgress({ ctx, theme, }: {
|
|
|
19
20
|
};
|
|
20
21
|
hooks: import("./types.js").UrlFlowHooks;
|
|
21
22
|
pauseProgress: () => () => void;
|
|
22
|
-
renderStatus: (
|
|
23
|
+
renderStatus: (key: CliMessageKey) => string;
|
|
23
24
|
renderStatusFromText: (text: string) => string;
|
|
24
|
-
renderStatusWithMeta: (
|
|
25
|
+
renderStatusWithMeta: (key: CliMessageKey, meta: string) => string;
|
|
25
26
|
spinner: {
|
|
26
27
|
stop: () => void;
|
|
27
28
|
clear: () => void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { type CliLocale } from "../../../locale.js";
|
|
1
2
|
import type { OscProgressController } from "../../../tty/osc-progress.js";
|
|
2
|
-
export declare function createUrlProgressStatus({ enabled, spinner, oscProgress, now, }: {
|
|
3
|
+
export declare function createUrlProgressStatus({ enabled, spinner, oscProgress, now, locale, }: {
|
|
4
|
+
locale?: CliLocale;
|
|
3
5
|
enabled: boolean;
|
|
4
6
|
spinner: {
|
|
5
7
|
setText: (text: string) => void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { type CliLocale } from "../../../locale.js";
|
|
1
2
|
import type { SlideExtractionResult } from "../../../slides/index.js";
|
|
2
3
|
import type { SlideState } from "./slides-output-state.js";
|
|
3
|
-
export declare function createInlineSlidesUnsupportedNotifier({ inlineNoticeEnabled, io, richTty, clearProgressForStdout, restoreProgressAfterStdout, }: {
|
|
4
|
+
export declare function createInlineSlidesUnsupportedNotifier({ inlineNoticeEnabled, locale, io, richTty, clearProgressForStdout, restoreProgressAfterStdout, }: {
|
|
4
5
|
inlineNoticeEnabled: boolean;
|
|
6
|
+
locale?: CliLocale;
|
|
5
7
|
io: {
|
|
6
8
|
stderr: NodeJS.WritableStream;
|
|
7
9
|
};
|
|
@@ -9,10 +11,11 @@ export declare function createInlineSlidesUnsupportedNotifier({ inlineNoticeEnab
|
|
|
9
11
|
clearProgressForStdout: () => void;
|
|
10
12
|
restoreProgressAfterStdout?: (() => void) | null;
|
|
11
13
|
}): (nextSlides: SlideExtractionResult) => void;
|
|
12
|
-
export declare function createSlidesTerminalRenderer({ io, flags, inlineEnabled, richTty, inlineRenderer, labelTheme, clearProgressForStdout, restoreProgressAfterStdout, onProgressText, getOrder, getSlide, getSourceUrl, waitForSlide, initialSlides, }: {
|
|
14
|
+
export declare function createSlidesTerminalRenderer({ locale, io, flags, inlineEnabled, richTty, inlineRenderer, labelTheme, clearProgressForStdout, restoreProgressAfterStdout, onProgressText, getOrder, getSlide, getSourceUrl, waitForSlide, initialSlides, }: {
|
|
13
15
|
io: {
|
|
14
16
|
stdout: NodeJS.WritableStream;
|
|
15
17
|
};
|
|
18
|
+
locale?: CliLocale;
|
|
16
19
|
flags: {
|
|
17
20
|
slidesDebug?: boolean;
|
|
18
21
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExtractedLinkContent } from "../../../content/index.js";
|
|
2
|
+
import type { CliMessageKey } from "../../../locale.js";
|
|
2
3
|
import { type SlideExtractionResult } from "../../../slides/index.js";
|
|
3
4
|
import { type SlidesTerminalOutput } from "./slides-output.js";
|
|
4
5
|
import { type UrlFlowContext } from "./types.js";
|
|
@@ -19,7 +20,7 @@ export declare function createUrlSlidesSession({ ctx, url, extracted: initialExt
|
|
|
19
20
|
extracted: ExtractedLinkContent;
|
|
20
21
|
cacheStore: UrlFlowContext["cache"]["store"] | null;
|
|
21
22
|
progressStatus: ProgressStatusLike;
|
|
22
|
-
renderStatus: (
|
|
23
|
+
renderStatus: (key: CliMessageKey) => string;
|
|
23
24
|
renderStatusFromText: (text: string) => string;
|
|
24
25
|
updateSummaryProgress: () => void;
|
|
25
26
|
}): UrlSlidesSession;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { SourceMetrics } from "@steipete/summarize-core/content";
|
|
2
|
-
|
|
2
|
+
import { type CliLocale } from "../../../locale.js";
|
|
3
|
+
export declare function formatSourceMetricsHeader(metrics: SourceMetrics | null | undefined, locale?: CliLocale): string | null;
|
|
@@ -5,5 +5,5 @@ export declare function buildFinishExtras({ extracted, metricsDetailed, transcri
|
|
|
5
5
|
extracted: ExtractedLinkContent;
|
|
6
6
|
metricsDetailed: boolean;
|
|
7
7
|
transcriptionCostLabel: string | null;
|
|
8
|
-
}):
|
|
8
|
+
}): import("../../finish-line-types.js").FinishPart[] | null;
|
|
9
9
|
export declare function pickModelForFinishLine(llmCalls: UrlFlowContext["model"]["llmCalls"], fallback: string | null): string | null;
|
|
@@ -5,6 +5,7 @@ import type { ExtractedLinkContent, LinkPreviewProgressEvent, MediaCache } from
|
|
|
5
5
|
import type { RunMetricsReport } from "../../../costs.js";
|
|
6
6
|
import type { StreamMode } from "../../../flags.js";
|
|
7
7
|
import type { OutputLanguage } from "../../../language.js";
|
|
8
|
+
import type { CliProgressCallback } from "../../../locale.js";
|
|
8
9
|
import type { ExecFileFn } from "../../../markitdown.js";
|
|
9
10
|
import type { SlideExtractionResult, SlideImage, SlideSettings, SlideSourceKind } from "../../../slides/index.js";
|
|
10
11
|
import type { SpeakerIdentificationSettings } from "../../../speaker-identification/index.js";
|
|
@@ -71,7 +72,7 @@ export type UrlFlowHooks = {
|
|
|
71
72
|
onModelChosen?: ((modelId: string) => void) | null;
|
|
72
73
|
onExtracted?: ((extracted: ExtractedLinkContent) => void) | null;
|
|
73
74
|
onSlidesExtracted?: ((slides: SlideExtractionResult) => void) | null;
|
|
74
|
-
onSlidesProgress?:
|
|
75
|
+
onSlidesProgress?: CliProgressCallback | null;
|
|
75
76
|
onSlidesDone?: ((result: {
|
|
76
77
|
ok: boolean;
|
|
77
78
|
error?: string | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ExtractedLinkContent } from "../../../content/index.js";
|
|
2
|
+
import { type CliMessageKey } from "../../../locale.js";
|
|
2
3
|
import type { SlideExtractionResult } from "../../../slides/index.js";
|
|
3
4
|
import type { AssetSummaryResult } from "../asset/types.js";
|
|
4
5
|
import { type UrlExtractionUi } from "./extract.js";
|
|
@@ -20,8 +21,8 @@ export declare function handleVideoOnlyExtractedContent({ ctx, extracted, extrac
|
|
|
20
21
|
isYoutubeUrl: boolean;
|
|
21
22
|
fetchWithCache: (url: string) => Promise<ExtractedLinkContent>;
|
|
22
23
|
runSlidesExtraction: () => Promise<SlideExtractionResult | null>;
|
|
23
|
-
renderStatus: (
|
|
24
|
-
renderStatusWithMeta: (
|
|
24
|
+
renderStatus: (key: CliMessageKey) => string;
|
|
25
|
+
renderStatusWithMeta: (key: CliMessageKey, meta: string) => string;
|
|
25
26
|
spinner: {
|
|
26
27
|
setText: (text: string) => void;
|
|
27
28
|
};
|
|
@@ -2,7 +2,7 @@ export { sumNumbersOrNull } from "../shared/numbers.js";
|
|
|
2
2
|
export { resolveTargetCharacters } from "../shared/summary-length.js";
|
|
3
3
|
export declare function formatOptionalString(value: string | null | undefined): string;
|
|
4
4
|
export declare function formatOptionalNumber(value: number | null | undefined): string;
|
|
5
|
-
export declare function formatUSD(value: number): string;
|
|
5
|
+
export declare function formatUSD(value: number, locale?: string): string;
|
|
6
6
|
export declare function estimateWhisperTranscriptionCostUsd({ transcriptionProvider, transcriptSource, mediaDurationSeconds, openaiWhisperUsdPerMinute, }: {
|
|
7
7
|
transcriptionProvider: string | null;
|
|
8
8
|
transcriptSource: string | null;
|
package/dist/types/run/help.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
|
|
3
|
-
export declare function buildProgram(): Command;
|
|
2
|
+
import { type CliLocale } from "../locale.js";
|
|
3
|
+
export declare function buildProgram(locale?: CliLocale): Command;
|
|
4
4
|
export declare function applyHelpStyle(program: Command, env: Record<string, string | undefined>, stdout: NodeJS.WritableStream): void;
|
|
5
|
-
export declare function buildSlidesProgram(): Command;
|
|
5
|
+
export declare function buildSlidesProgram(locale?: CliLocale): Command;
|
|
6
6
|
export declare function attachRichHelp(program: Command, env: Record<string, string | undefined>, stdout: NodeJS.WritableStream): void;
|
|
7
|
-
export declare function buildConciseHelp(): string;
|
|
8
|
-
export declare function buildRefreshFreeHelp(): string;
|
|
9
|
-
export declare function buildStatusHelp(): string;
|
|
10
|
-
export declare function buildDaemonHelp(): string;
|
|
11
|
-
export declare function buildTranscriberHelp(): string;
|
|
7
|
+
export declare function buildConciseHelp(locale?: CliLocale): string;
|
|
8
|
+
export declare function buildRefreshFreeHelp(locale?: CliLocale): string;
|
|
9
|
+
export declare function buildStatusHelp(locale?: CliLocale): string;
|
|
10
|
+
export declare function buildDaemonHelp(locale?: CliLocale): string;
|
|
11
|
+
export declare function buildTranscriberHelp(locale?: CliLocale): string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type CliLocale } from "../locale.js";
|
|
1
2
|
export declare function prepareRunEnvironment(argv: string[], inputEnv: Record<string, string | undefined>): {
|
|
2
3
|
normalizedArgv: string[];
|
|
3
4
|
preSeparatorArgv: string[];
|
|
4
5
|
envForRun: Record<string, string | undefined>;
|
|
5
6
|
};
|
|
6
7
|
export declare function argvBeforeSeparator(argv: readonly string[]): string[];
|
|
7
|
-
export declare function stripCliLocaleArgs(argv: readonly string[]): string[];
|
|
8
|
+
export declare function stripCliLocaleArgs(argv: readonly string[], locale?: CliLocale): string[];
|
|
8
9
|
export declare function normalizeDiarizeArgv(argv: string[]): string[];
|
|
9
10
|
export declare function handleVersionFlag({ versionRequested, stdout, importMetaUrl, }: {
|
|
10
11
|
versionRequested: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function formatCompactCount(value: number): string;
|
|
1
|
+
export declare function formatCompactCount(value: number, locale?: string): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MediaCache } from "../content/index.js";
|
|
2
|
+
import { type CliProgressCallback } from "../locale.js";
|
|
2
3
|
import type { SlideSettings } from "./settings.js";
|
|
3
4
|
import type { SlideExtractionResult, SlideImage, SlideSource, SlideSourceKind } from "./types.js";
|
|
4
5
|
export { parseShowinfoTimestamp, resolveExtractedTimestamp } from "./scene-detection.js";
|
|
@@ -28,7 +29,7 @@ type ExtractSlidesArgs = {
|
|
|
28
29
|
};
|
|
29
30
|
}) => void;
|
|
30
31
|
onSlidesTimeline?: ((slides: SlideExtractionResult) => void) | null;
|
|
31
|
-
onSlidesProgress?:
|
|
32
|
+
onSlidesProgress?: CliProgressCallback | null;
|
|
32
33
|
onSlidesLog?: ((message: string) => void) | null;
|
|
33
34
|
} | null;
|
|
34
35
|
};
|
|
@@ -19,7 +19,7 @@ export declare function detectSlideTimestamps({ ffmpegPath, ffprobePath, inputPa
|
|
|
19
19
|
autoTune: SlideAutoTune;
|
|
20
20
|
durationSeconds: number | null;
|
|
21
21
|
}>;
|
|
22
|
-
export declare function extractFramesAtTimestamps({ ffmpegPath, inputPath, outputDir, timestamps, segments, durationSeconds, timeoutMs, workers, onProgress,
|
|
22
|
+
export declare function extractFramesAtTimestamps({ ffmpegPath, inputPath, outputDir, timestamps, segments, durationSeconds, timeoutMs, workers, onProgress, onThumbnailProgress, onSlide, logSlides, logSlidesTiming, }: {
|
|
23
23
|
ffmpegPath: ProcessCommand;
|
|
24
24
|
inputPath: string;
|
|
25
25
|
outputDir: string;
|
|
@@ -32,7 +32,7 @@ export declare function extractFramesAtTimestamps({ ffmpegPath, inputPath, outpu
|
|
|
32
32
|
timeoutMs: number;
|
|
33
33
|
workers: number;
|
|
34
34
|
onProgress?: ((completed: number, total: number) => void) | null;
|
|
35
|
-
|
|
35
|
+
onThumbnailProgress?: ((percent: number) => void) | null;
|
|
36
36
|
onSlide?: ((slide: SlideImage) => void) | null;
|
|
37
37
|
logSlides?: ((message: string) => void) | null;
|
|
38
38
|
logSlidesTiming?: ((label: string, startedAt: number) => number) | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MediaCache } from "../content/index.js";
|
|
2
2
|
import type * as downloads from "./download.js";
|
|
3
|
-
import type { SlideSource } from "./types.js";
|
|
4
|
-
export type SlidesIngestProgress = (
|
|
3
|
+
import type { SlideSource, SlideProgressPhase } from "./types.js";
|
|
4
|
+
export type SlidesIngestProgress = (phase: SlideProgressPhase, percent: number, detail?: string) => void;
|
|
5
5
|
export declare function prepareSlidesInput({ source, mediaCache, timeoutMs, fetchImpl, ytDlpPath, allowRemoteUrlFallback, ytDlpCookiesFromBrowser, resolveSlidesYtDlpExtractFormat, resolveSlidesStreamFallback, reportSlidesProgress, logSlidesTiming, downloadYoutubeVideo, downloadRemoteVideo, resolveYoutubeStreamUrl, }: {
|
|
6
6
|
source: SlideSource;
|
|
7
7
|
mediaCache: MediaCache | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type CliProgressCallback } from "../locale.js";
|
|
1
2
|
import type { ProcessCommand } from "./process.js";
|
|
3
|
+
import type { SlideProgressPhase } from "./types.js";
|
|
2
4
|
type SlidesLogger = ((message: string) => void) | null;
|
|
3
5
|
export declare function createSlidesLogger(logger: SlidesLogger): {
|
|
4
6
|
logSlides: (message: string) => void;
|
|
@@ -18,5 +20,5 @@ export declare function resolveRunnableTool(args: ResolveRunnableToolArgs & {
|
|
|
18
20
|
binary: "ffmpeg" | "ffprobe";
|
|
19
21
|
}): Promise<ProcessCommand | null>;
|
|
20
22
|
export declare function resolveRunnableTool(args: ResolveRunnableToolArgs): Promise<string | null>;
|
|
21
|
-
export declare function createSlidesProgress(onSlidesProgress:
|
|
23
|
+
export declare function createSlidesProgress(onSlidesProgress: CliProgressCallback | null | undefined): ((phase: SlideProgressPhase, percent: number, detail?: string) => void) | null;
|
|
22
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function formatElapsedMs(ms: number): string;
|
|
2
|
-
export declare function formatBytes(bytes: number): string;
|
|
3
|
-
export declare function formatBytesPerSecond(bytesPerSecond: number): string;
|
|
4
|
-
export declare function formatMinutesSmart(valueMinutes: number): string;
|
|
5
|
-
export declare function formatDurationSecondsSmart(value: number): string;
|
|
1
|
+
export declare function formatElapsedMs(ms: number, locale?: string): string;
|
|
2
|
+
export declare function formatBytes(bytes: number, locale?: string): string;
|
|
3
|
+
export declare function formatBytesPerSecond(bytesPerSecond: number, locale?: string): string;
|
|
4
|
+
export declare function formatMinutesSmart(valueMinutes: number, locale?: string): string;
|
|
5
|
+
export declare function formatDurationSecondsSmart(value: number, locale?: string): string;
|
|
6
6
|
export { formatCompactCount } from "../shared/format-count.js";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { LinkPreviewProgressEvent } from "@steipete/summarize-core/content";
|
|
2
|
+
import { type CliLocale } from "../../locale.js";
|
|
2
3
|
import type { OscProgressController } from "../osc-progress.js";
|
|
3
4
|
import type { ThemeRenderer } from "../theme.js";
|
|
4
|
-
export declare function createFetchHtmlProgressRenderer({ spinner, oscProgress, theme, }: {
|
|
5
|
+
export declare function createFetchHtmlProgressRenderer({ spinner, oscProgress, theme, locale, }: {
|
|
6
|
+
locale?: CliLocale;
|
|
5
7
|
spinner: {
|
|
6
8
|
setText: (text: string) => void;
|
|
7
9
|
refresh?: () => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LinkPreviewProgressEvent } from "@steipete/summarize-core/content";
|
|
2
|
+
import { type CliLocale } from "../../locale.js";
|
|
2
3
|
import type { ThemeRenderer } from "../theme.js";
|
|
3
4
|
export type TranscriptProgressState = {
|
|
4
5
|
phase: "idle" | "download" | "whisper";
|
|
@@ -16,12 +17,13 @@ export type TranscriptProgressState = {
|
|
|
16
17
|
};
|
|
17
18
|
export declare function createTranscriptProgressState(): TranscriptProgressState;
|
|
18
19
|
export declare function applyTranscriptProgressEvent(state: TranscriptProgressState, event: LinkPreviewProgressEvent, nowMs: number): void;
|
|
19
|
-
export declare function renderTranscriptSimple(state: TranscriptProgressState, theme?: ThemeRenderer | null): string | null;
|
|
20
|
-
export declare function renderTranscriptLine(state: TranscriptProgressState, { nowMs, theme, }: {
|
|
20
|
+
export declare function renderTranscriptSimple(state: TranscriptProgressState, theme?: ThemeRenderer | null, locale?: CliLocale): string | null;
|
|
21
|
+
export declare function renderTranscriptLine(state: TranscriptProgressState, { nowMs, theme, locale, }: {
|
|
21
22
|
nowMs: number;
|
|
22
23
|
theme?: ThemeRenderer | null;
|
|
24
|
+
locale?: CliLocale;
|
|
23
25
|
}): string | null;
|
|
24
|
-
export declare function resolveTranscriptOscPayload(state: TranscriptProgressState): {
|
|
26
|
+
export declare function resolveTranscriptOscPayload(state: TranscriptProgressState, locale?: CliLocale): {
|
|
25
27
|
label: string;
|
|
26
28
|
percent: number | null;
|
|
27
29
|
} | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { LinkPreviewProgressEvent } from "@steipete/summarize-core/content";
|
|
2
|
+
import type { CliLocale } from "../../locale.js";
|
|
2
3
|
import type { OscProgressController } from "../osc-progress.js";
|
|
3
4
|
import type { ThemeRenderer } from "../theme.js";
|
|
4
|
-
export declare function createTranscriptProgressRenderer({ spinner, oscProgress, theme, }: {
|
|
5
|
+
export declare function createTranscriptProgressRenderer({ spinner, oscProgress, theme, locale, }: {
|
|
6
|
+
locale?: CliLocale;
|
|
5
7
|
spinner: {
|
|
6
8
|
setText: (text: string) => void;
|
|
7
9
|
refresh?: () => void;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FALLBACK_VERSION = "0.
|
|
1
|
+
export declare const FALLBACK_VERSION = "0.23.0";
|
|
2
2
|
export declare function resolvePackageVersion(importMetaUrl?: string): string;
|
|
3
3
|
export declare function resolveGitSha(importMetaUrl?: string): string | null;
|
|
4
4
|
export declare function formatVersionLine(importMetaUrl?: string): string;
|
package/docs/README.md
CHANGED
|
@@ -12,6 +12,7 @@ summary: "Docs index for summarize behaviors and modes."
|
|
|
12
12
|
- `docs/engine.md` — headless execution engine architecture
|
|
13
13
|
- `docs/firecrawl.md` — Firecrawl mode + API key
|
|
14
14
|
- `docs/language.md` — output language (`--language` / config `language`)
|
|
15
|
+
- `docs/localization.md` — interface languages, translation catalogs, glossaries, and contributor checks
|
|
15
16
|
- `docs/llm.md` — LLM summarization + model config (Gateway/OpenAI)
|
|
16
17
|
- `docs/manual-tests.md` — manual end-to-end test checklist
|
|
17
18
|
- `docs/model-auto.md` — automatic model selection (`--model auto`)
|
package/docs/cache.md
CHANGED
|
@@ -94,6 +94,7 @@ Media cache eviction:
|
|
|
94
94
|
|
|
95
95
|
- TTL sweep on read/write.
|
|
96
96
|
- Size cap: evict least-recently-used files until under cap.
|
|
97
|
+
- Replacing a URL's cached media removes its previous file, including when the filename extension changes, so obsolete files cannot escape eviction accounting.
|
|
97
98
|
- `verify` controls integrity checks: `size` (default), `hash`, or `none`.
|
|
98
99
|
|
|
99
100
|
## Notes
|
package/docs/config.md
CHANGED
|
@@ -274,6 +274,7 @@ Notes:
|
|
|
274
274
|
- Default: logging is off.
|
|
275
275
|
- `format`: `json` (default) or `pretty`.
|
|
276
276
|
- `maxMb` is per file; `maxFiles` controls rotation (ring).
|
|
277
|
+
- File logging is best-effort: a write or directory-creation failure does not terminate the daemon. Each write ensures its directory exists, including after the directory is removed while the daemon is running.
|
|
277
278
|
- Extension “Extended logging” sends full input/output to daemon logs (large). Cache hits skip content logging.
|
|
278
279
|
|
|
279
280
|
## Presets
|
package/docs/language.md
CHANGED
|
@@ -53,18 +53,10 @@ Legacy (still supported):
|
|
|
53
53
|
|
|
54
54
|
Unknown values are passed through to the model (sanitized).
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Interface language
|
|
57
57
|
|
|
58
|
-
`--language`
|
|
59
|
-
the command-line interface. Use `--locale tr` (or `SUMMARIZE_LOCALE=tr`) for
|
|
60
|
-
Turkish help, progress, and status text. The CLI remains English by default;
|
|
61
|
-
unknown locales fall back to English. Command names, flags, model/provider IDs,
|
|
62
|
-
URLs, paths, and protocol identifiers are never translated.
|
|
63
|
-
Raw diagnostics and provider error messages, including Antigravity command-size errors, retain their original text. Syndication progress labels are included in the Turkish catalogs; uncatalogued status text falls back to English.
|
|
58
|
+
`--language` controls the generated summary independently of the CLI and extension interface. Use `--locale de` (or `SUMMARIZE_LOCALE=de`) for German help, progress, and status text. Without an explicit preference, the CLI follows the system locale; unsupported preferences fall through to the system locale and then English. Command names, flags, model/provider IDs, URLs, paths, and protocol identifiers retain their spelling. Native and provider diagnostics remain opaque; Summarize’s own guidance is localized.
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
In the extension, choose **Interface language** in **Options → UI**. **Automatic** follows the browser’s language preferences. An explicitly saved locale takes precedence, while profiles without one follow the browser. Changing the setting updates an already-open side panel without translating summary content, user data, or diagnostic log payloads.
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
profiles keep English until you choose a locale; fresh installations use the
|
|
69
|
-
browser language. The setting updates an already-open side panel immediately.
|
|
70
|
-
It does not translate summary content, user data, or diagnostic log payloads.
|
|
62
|
+
See [Localization](localization.md) for the complete fourteen-language set, regional fallbacks, catalogs, glossaries, and contributor checks.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "de",
|
|
3
|
+
"summary": "Zusammenfassung",
|
|
4
|
+
"transcript": "Transkript",
|
|
5
|
+
"sidePanel": "Seitenleiste",
|
|
6
|
+
"clipboard": "Zwischenablage",
|
|
7
|
+
"slides": "Folien",
|
|
8
|
+
"provider": "Anbieter",
|
|
9
|
+
"prompt": "Prompt",
|
|
10
|
+
"tone": "Consistent Sie; concise noun labels, natural German developer terminology.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "en",
|
|
3
|
+
"summary": "summary",
|
|
4
|
+
"transcript": "transcript",
|
|
5
|
+
"sidePanel": "side panel",
|
|
6
|
+
"clipboard": "clipboard",
|
|
7
|
+
"slides": "slides",
|
|
8
|
+
"provider": "provider",
|
|
9
|
+
"prompt": "prompt",
|
|
10
|
+
"tone": "Concise, direct imperatives.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "es",
|
|
3
|
+
"summary": "resumen",
|
|
4
|
+
"transcript": "transcripción",
|
|
5
|
+
"sidePanel": "panel lateral",
|
|
6
|
+
"clipboard": "portapapeles",
|
|
7
|
+
"slides": "diapositivas",
|
|
8
|
+
"provider": "proveedor",
|
|
9
|
+
"prompt": "instrucción",
|
|
10
|
+
"tone": "Formal imperatives in guidance; infinitives for option descriptions and actions.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "fr",
|
|
3
|
+
"summary": "résumé",
|
|
4
|
+
"transcript": "transcription",
|
|
5
|
+
"sidePanel": "panneau latéral",
|
|
6
|
+
"clipboard": "presse-papiers",
|
|
7
|
+
"slides": "diapositives",
|
|
8
|
+
"provider": "fournisseur",
|
|
9
|
+
"prompt": "instruction",
|
|
10
|
+
"tone": "Vous in guidance; infinitives for option descriptions and actions.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "it",
|
|
3
|
+
"summary": "riassunto",
|
|
4
|
+
"transcript": "trascrizione",
|
|
5
|
+
"sidePanel": "pannello laterale",
|
|
6
|
+
"clipboard": "appunti",
|
|
7
|
+
"slides": "diapositive",
|
|
8
|
+
"provider": "fornitore",
|
|
9
|
+
"prompt": "prompt",
|
|
10
|
+
"tone": "Direct singular imperatives. Use preelaborazione consistently.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "ja",
|
|
3
|
+
"summary": "要約",
|
|
4
|
+
"transcript": "文字起こし",
|
|
5
|
+
"sidePanel": "サイドパネル",
|
|
6
|
+
"clipboard": "クリップボード",
|
|
7
|
+
"slides": "スライド",
|
|
8
|
+
"provider": "プロバイダー",
|
|
9
|
+
"prompt": "プロンプト",
|
|
10
|
+
"tone": "Polite です/ます guidance; compact noun labels.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "ko",
|
|
3
|
+
"summary": "요약",
|
|
4
|
+
"transcript": "녹취록",
|
|
5
|
+
"sidePanel": "사이드 패널",
|
|
6
|
+
"clipboard": "클립보드",
|
|
7
|
+
"slides": "슬라이드",
|
|
8
|
+
"provider": "제공업체",
|
|
9
|
+
"prompt": "프롬프트",
|
|
10
|
+
"tone": "Polite 하세요/합니다 guidance; compact noun labels.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "nl",
|
|
3
|
+
"summary": "samenvatting",
|
|
4
|
+
"transcript": "transcript",
|
|
5
|
+
"sidePanel": "zijpaneel",
|
|
6
|
+
"clipboard": "klembord",
|
|
7
|
+
"slides": "dia’s",
|
|
8
|
+
"provider": "aanbieder",
|
|
9
|
+
"prompt": "instructie",
|
|
10
|
+
"tone": "Direct imperatives; use u/uw when a pronoun is needed.",
|
|
11
|
+
"productNames": "Keep Summarize, Chrome, Firefox, provider/model names, commands, flags, and environment variables unchanged."
|
|
12
|
+
}
|