@newses/plugin-digest-summary 0.1.1 → 0.3.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/README.md +127 -29
- package/dist/digest.d.ts +125 -26
- package/dist/digest.js +344 -104
- package/dist/index.d.ts +33 -4
- package/dist/index.js +63 -26
- package/dist/prompts.d.ts +115 -53
- package/dist/prompts.js +231 -67
- package/dist/{claude.d.ts → providers/anthropic.d.ts} +9 -1
- package/dist/providers/anthropic.js +108 -0
- package/dist/providers/http.d.ts +24 -0
- package/dist/providers/http.js +77 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/index.js +11 -0
- package/dist/providers/ollama.d.ts +9 -0
- package/dist/providers/ollama.js +137 -0
- package/dist/providers/openai.d.ts +9 -0
- package/dist/providers/openai.js +116 -0
- package/dist/providers/types.d.ts +65 -0
- package/dist/providers/types.js +1 -0
- package/dist/settings.d.ts +86 -4
- package/dist/settings.js +81 -8
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +2 -0
- package/package.json +8 -5
- package/dist/claude.js +0 -49
package/dist/index.js
CHANGED
|
@@ -1,60 +1,100 @@
|
|
|
1
1
|
import { definePlugin, DIGEST_LIMITS } from '@newses/plugin-api';
|
|
2
|
-
import { API_HOST, clientFor, failureText } from './claude.js';
|
|
3
2
|
import { compose, estimate } from './digest.js';
|
|
3
|
+
import { providerFor } from './providers/index.js';
|
|
4
|
+
import { API_HOST } from './providers/anthropic.js';
|
|
4
5
|
import { instanceSettings, userSettings } from './settings.js';
|
|
5
6
|
import { usedThisMonth } from './usage.js';
|
|
6
7
|
/** Of the digest's time, what is left unused, for counting what came back. */
|
|
7
8
|
const MARGIN_MS = 3_000;
|
|
8
9
|
const formatted = (tokens) => new Intl.NumberFormat('en').format(tokens);
|
|
10
|
+
/** The host a self-hosted Ollama has on the Docker network of the plugin's compose example. */
|
|
11
|
+
const OLLAMA_HOST = 'ollama';
|
|
9
12
|
/**
|
|
10
|
-
* Opens each user's email digest with an overview of what their unread articles are about,
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
+
* Opens each user's email digest with an overview of what their unread articles are about, in
|
|
14
|
+
* topic sections whose points link the articles they draw on, written by Claude through the
|
|
15
|
+
* Anthropic API or by a self-hosted model (Ollama, or a server with the OpenAI chat completions
|
|
16
|
+
* API) from the titles and excerpts of the unread articles the digest counts, of the feeds the
|
|
17
|
+
* user chooses, with the sections, length, style, and instructions the user chooses.
|
|
13
18
|
*/
|
|
14
19
|
export default definePlugin({
|
|
15
20
|
id: 'digest-summary',
|
|
16
21
|
// Keep in step with package.json; a test checks they match.
|
|
17
|
-
version: '0.
|
|
18
|
-
apiVersion: '^0.1.
|
|
22
|
+
version: '0.3.0',
|
|
23
|
+
apiVersion: '^0.1.3',
|
|
19
24
|
scopes: ['user'],
|
|
20
|
-
hosts: [API_HOST],
|
|
25
|
+
hosts: [API_HOST, OLLAMA_HOST],
|
|
21
26
|
settings: { instance: instanceSettings, user: userSettings },
|
|
22
27
|
messages: {
|
|
23
28
|
en: {
|
|
24
29
|
name: 'Digest summary',
|
|
25
|
-
description: 'Opens your email digest with an overview of what your unread articles are about: their common themes, then
|
|
30
|
+
description: 'Opens your email digest with an overview of what your unread articles are about, written by an AI model: a lead on their common themes, then topic sections whose points link the articles they draw on. The title, feed name, and first lines of the unread articles of the feeds you choose go, with your sections and instructions, to the model the server’s admin chose: Claude through Anthropic (api.anthropic.com), with the server’s API key under Anthropic’s commercial terms, or a model the server’s operator runs, at the address the admin set. Articles from feeds with a login, and pages you published, are never sent, nor are links.',
|
|
31
|
+
'settings.provider': 'Model from',
|
|
32
|
+
'settings.provider.hint': 'Anthropic bills each request to the API key. A self-hosted model runs on a server you run, such as the Ollama of the plugin’s Docker example, and needs its host approved above.',
|
|
33
|
+
'settings.provider.option.anthropic': 'Anthropic (Claude)',
|
|
34
|
+
'settings.provider.option.ollama': 'Ollama, self-hosted',
|
|
35
|
+
'settings.provider.option.openai': 'Self-hosted server with the OpenAI API (llama.cpp, vLLM, LM Studio…)',
|
|
26
36
|
'settings.apiKey': 'Anthropic API key',
|
|
27
|
-
'settings.apiKey.hint': 'From the Claude Console (platform.claude.com), under API keys
|
|
28
|
-
'settings.model': '
|
|
37
|
+
'settings.apiKey.hint': 'From the Claude Console (platform.claude.com), under API keys: every request is billed to it. Sent only to Anthropic. Stored as a secret.',
|
|
38
|
+
'settings.model': 'Claude model',
|
|
29
39
|
'settings.model.hint': 'Opus writes best, Haiku costs least.',
|
|
30
40
|
'settings.model.option.claude-opus-5-5': 'Claude Opus 5.5',
|
|
31
41
|
'settings.model.option.claude-sonnet-5-5': 'Claude Sonnet 5.5',
|
|
32
42
|
'settings.model.option.claude-haiku-5-5': 'Claude Haiku 5.5',
|
|
33
|
-
'settings.effort': '
|
|
34
|
-
'settings.effort.hint': 'How much
|
|
43
|
+
'settings.effort': 'Claude effort',
|
|
44
|
+
'settings.effort.hint': 'How much Claude thinks before it writes; more costs more tokens and takes longer, and a digest waits at most five minutes.',
|
|
35
45
|
'settings.effort.option.low': 'Low',
|
|
36
46
|
'settings.effort.option.medium': 'Medium',
|
|
37
47
|
'settings.effort.option.high': 'High',
|
|
48
|
+
'settings.baseUrl': 'Self-hosted server’s URL',
|
|
49
|
+
'settings.baseUrl.hint': 'Ollama’s, such as http://ollama:11434; or the OpenAI API’s, ending in /v1, such as http://llama:8080/v1. Its host must be approved above, and, on a private network, listed in the server’s PLUGIN_TRUSTED_HOSTS.',
|
|
50
|
+
'settings.localApiKey': 'Self-hosted server’s key',
|
|
51
|
+
'settings.localApiKey.hint': 'Only if the server asks for one, such as a server with the OpenAI API started with a key, or an Ollama behind a proxy that checks a bearer token. Sent as a bearer token. Stored as a secret.',
|
|
52
|
+
'settings.localModel': 'Self-hosted model',
|
|
53
|
+
'settings.localModel.hint': 'As the server names it, such as qwen3:8b on Ollama. Pull it there first; Send test checks it.',
|
|
54
|
+
'settings.contextTokens': 'Context, in tokens',
|
|
55
|
+
'settings.contextTokens.hint': 'What the model reads and writes in one request: the newest articles that fit are read, in up to 6 requests and one more for the overview. Sent to Ollama with each request; a server with the OpenAI API must be started with at least this much (llama.cpp’s -c). More reads more articles, takes more memory, and takes longer.',
|
|
56
|
+
'settings.parallelRequests': 'Requests at once',
|
|
57
|
+
'settings.parallelRequests.hint': 'Parts of a large digest read together. Keep to what the server runs at once (Ollama’s OLLAMA_NUM_PARALLEL), or they wait their turn.',
|
|
58
|
+
'settings.thinking': 'Let the self-hosted model think first',
|
|
59
|
+
'settings.thinking.hint': 'For Ollama models that think, such as Qwen 3: the model thinks before writing the overview (parts of a large digest are read without), from the answer’s room and time, so overviews take longer. Off by default, which writes faster.',
|
|
38
60
|
'settings.monthlyTokens': 'Tokens a month, for the server',
|
|
39
|
-
'settings.monthlyTokens.hint': 'Once used, no more overviews are written until the month ends (UTC). Send test shows how many are used.',
|
|
61
|
+
'settings.monthlyTokens.hint': 'Once used, no more overviews are written until the month ends (UTC). Self-hosted models count too. Send test shows how many are used.',
|
|
40
62
|
'settings.userMonthlyTokens': 'Tokens a month, for each user',
|
|
41
63
|
'settings.userMonthlyTokens.hint': 'A digest of 1,000 unread articles reads about 100,000 tokens.',
|
|
64
|
+
'settings.allowInstructions': 'Users may add their own instructions',
|
|
65
|
+
'settings.allowInstructions.hint': 'When off, the instructions users wrote under For me are kept but not sent.',
|
|
42
66
|
'settings.feedChoice': 'Feeds to read',
|
|
43
67
|
'settings.feedChoice.option.all': 'All my feeds',
|
|
44
68
|
'settings.feedChoice.option.only': 'Only the feeds below',
|
|
45
69
|
'settings.feedChoice.option.except': 'All but the feeds below',
|
|
46
70
|
'settings.feeds': 'Feeds',
|
|
47
71
|
'settings.feeds.hint': 'Used when only some feeds are read, or all but some.',
|
|
72
|
+
'settings.sections': 'Sections',
|
|
73
|
+
'settings.sections.hint': 'The topics stories are sorted into, in this order; sections nothing fits are left out. Name a section in any language: its heading is written in your digest’s. With none, the default sections are used.',
|
|
74
|
+
'settings.sections.item.name': 'Name',
|
|
75
|
+
'settings.sections.item.about': 'What goes in it',
|
|
76
|
+
'settings.length': 'Length',
|
|
77
|
+
'settings.length.hint': 'Longer overviews cost more tokens.',
|
|
78
|
+
'settings.length.option.brief': 'Brief: up to 2 short points a section',
|
|
79
|
+
'settings.length.option.standard': 'Standard: up to 3 points a section',
|
|
80
|
+
'settings.length.option.detailed': 'Detailed: up to 5 longer points a section',
|
|
81
|
+
'settings.style': 'Points shown as',
|
|
82
|
+
'settings.style.option.paragraphs': 'Paragraphs',
|
|
83
|
+
'settings.style.option.bullets': 'Bullets',
|
|
84
|
+
'settings.lead': 'Open with a lead on the common themes',
|
|
85
|
+
'settings.instructions': 'Your instructions',
|
|
86
|
+
'settings.instructions.hint': 'What to focus on, leave out, or how to write, such as “Skip celebrity news; explain jargon.” Up to 1,000 characters, sent to the model with your articles. They cannot change what is sent or the overview’s format.',
|
|
48
87
|
'action.estimate': 'Estimate cost',
|
|
49
|
-
'action.estimate.hint': 'What the overview of a test digest of your unread articles from the last day would cost now, without sending it.',
|
|
88
|
+
'action.estimate.hint': 'What the overview of a test digest of your unread articles from the last day would read and cost now, and with a self-hosted model how long it would take, without sending it.',
|
|
50
89
|
},
|
|
51
90
|
},
|
|
52
91
|
hooks: {
|
|
53
92
|
'digest.compose': {
|
|
54
93
|
async run(input, context) {
|
|
55
94
|
const started = Date.now();
|
|
56
|
-
const
|
|
57
|
-
|
|
95
|
+
const provider = providerFor(context.settings, context.fetch);
|
|
96
|
+
const { overview, sections, outcome } = await compose({
|
|
97
|
+
provider,
|
|
58
98
|
settings: context.settings,
|
|
59
99
|
userSettings: context.userSettings ?? userSettings.parse({}),
|
|
60
100
|
input,
|
|
@@ -65,25 +105,21 @@ export default definePlugin({
|
|
|
65
105
|
deadline: started + DIGEST_LIMITS.timeoutSeconds * 1000 - MARGIN_MS,
|
|
66
106
|
now: () => new Date(),
|
|
67
107
|
});
|
|
68
|
-
context.logger.info('digest composed', { outcome });
|
|
69
|
-
return { overview };
|
|
108
|
+
context.logger.info('digest composed', { outcome, provider: provider.name });
|
|
109
|
+
return { overview, sections };
|
|
70
110
|
},
|
|
71
111
|
},
|
|
72
112
|
test: {
|
|
73
113
|
async run(context) {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
79
|
-
return { ok: false, message: failureText(error) };
|
|
80
|
-
}
|
|
114
|
+
const checked = await providerFor(context.settings, context.fetch).check(context.signal);
|
|
115
|
+
if (!checked.ok)
|
|
116
|
+
return checked;
|
|
81
117
|
const now = new Date();
|
|
82
118
|
const server = await usedThisMonth(context.storage, now);
|
|
83
119
|
const mine = context.userStorage ? await usedThisMonth(context.userStorage, now) : 0;
|
|
84
120
|
return {
|
|
85
121
|
ok: true,
|
|
86
|
-
message:
|
|
122
|
+
message: `${checked.message} Tokens this month: yours ${formatted(mine)} of ${formatted(context.settings.userMonthlyTokens)}, the server's ${formatted(server)} of ${formatted(context.settings.monthlyTokens)}.`,
|
|
87
123
|
};
|
|
88
124
|
},
|
|
89
125
|
},
|
|
@@ -96,6 +132,7 @@ export default definePlugin({
|
|
|
96
132
|
ok: true,
|
|
97
133
|
message: digest
|
|
98
134
|
? await estimate({
|
|
135
|
+
provider: providerFor(context.settings, context.fetch),
|
|
99
136
|
settings: context.settings,
|
|
100
137
|
userSettings: context.userSettings ?? userSettings.parse({}),
|
|
101
138
|
input: digest,
|
package/dist/prompts.d.ts
CHANGED
|
@@ -1,8 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { Section, UserSettings } from './settings.js';
|
|
2
|
+
/**
|
|
3
|
+
* Points a section holds at most, how long each is at most in sentences and words, and the
|
|
4
|
+
* lead's words, by length.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LENGTH_LIMITS: {
|
|
7
|
+
readonly brief: {
|
|
8
|
+
readonly points: 2;
|
|
9
|
+
readonly sentences: "one sentence";
|
|
10
|
+
readonly pointWords: 30;
|
|
11
|
+
readonly leadWords: 40;
|
|
12
|
+
};
|
|
13
|
+
readonly standard: {
|
|
14
|
+
readonly points: 3;
|
|
15
|
+
readonly sentences: "up to two sentences";
|
|
16
|
+
readonly pointWords: 50;
|
|
17
|
+
readonly leadWords: 60;
|
|
18
|
+
};
|
|
19
|
+
readonly detailed: {
|
|
20
|
+
readonly points: 5;
|
|
21
|
+
readonly sentences: "up to four sentences";
|
|
22
|
+
readonly pointWords: 80;
|
|
23
|
+
readonly leadWords: 90;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Themes one part of a large digest gives a section at least room for, and refs a theme or point
|
|
28
|
+
* cites; a length with more points a section gives its parts as many themes.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PART_THEMES = 4;
|
|
31
|
+
/** Themes one part may give a section: enough for the overview's points at its length. */
|
|
32
|
+
export declare const partThemes: (length: UserSettings["length"]) => number;
|
|
33
|
+
export declare const THEME_REFS = 5;
|
|
6
34
|
/** The system prompt of a digest read in one request. */
|
|
7
35
|
export declare const OVERVIEW_SYSTEM: string;
|
|
8
36
|
/** The system prompt of one part of a digest too large for one request. */
|
|
@@ -11,8 +39,9 @@ export declare const PART_SYSTEM: string;
|
|
|
11
39
|
export declare const MERGE_SYSTEM: string;
|
|
12
40
|
/** Text a reader or a feed wrote, made safe to place between tags. */
|
|
13
41
|
export declare const escapeText: (text: string) => string;
|
|
14
|
-
/** An article as the requests give it: its title and the start of its text. */
|
|
42
|
+
/** An article as the requests give it: its ref, title, and the start of its text. */
|
|
15
43
|
export interface Article {
|
|
44
|
+
ref: string;
|
|
16
45
|
title: string;
|
|
17
46
|
excerpt: string | null;
|
|
18
47
|
}
|
|
@@ -23,6 +52,25 @@ export interface FeedArticles {
|
|
|
23
52
|
}
|
|
24
53
|
/** The articles, grouped by feed, as the user turn gives them. */
|
|
25
54
|
export declare function articlesText(feeds: readonly FeedArticles[]): string;
|
|
55
|
+
/**
|
|
56
|
+
* The user's sections, by name, once each (ignoring case), at most `DIGEST_LIMITS.sections`; the
|
|
57
|
+
* default ones when they removed every section.
|
|
58
|
+
*/
|
|
59
|
+
export declare function sectionsOf(settings: Pick<UserSettings, 'sections'>, fallback: readonly Section[]): {
|
|
60
|
+
name: string;
|
|
61
|
+
about: string;
|
|
62
|
+
}[];
|
|
63
|
+
/**
|
|
64
|
+
* The reader's preferences, as the second system block: sections, length, lead, and their
|
|
65
|
+
* instructions when the server allows them. `forParts` leaves out what only the overview uses.
|
|
66
|
+
*/
|
|
67
|
+
export declare function preferencesText(options: {
|
|
68
|
+
sections: readonly Section[];
|
|
69
|
+
length: UserSettings['length'];
|
|
70
|
+
lead: boolean;
|
|
71
|
+
instructions: string | null;
|
|
72
|
+
forParts?: boolean;
|
|
73
|
+
}): string;
|
|
26
74
|
/** The user turn of a digest read in one request. */
|
|
27
75
|
export declare function overviewPrompt(request: {
|
|
28
76
|
language: string;
|
|
@@ -35,13 +83,16 @@ export declare function partPrompt(request: {
|
|
|
35
83
|
language: string;
|
|
36
84
|
feeds: readonly FeedArticles[];
|
|
37
85
|
}): string;
|
|
38
|
-
/** The themes
|
|
86
|
+
/** The themes one part gave, by section name. */
|
|
39
87
|
export interface PartThemes {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
88
|
+
sections: {
|
|
89
|
+
section: string;
|
|
90
|
+
themes: {
|
|
91
|
+
theme: string;
|
|
92
|
+
articles: number;
|
|
93
|
+
refs: string[];
|
|
94
|
+
}[];
|
|
43
95
|
}[];
|
|
44
|
-
notable: string[];
|
|
45
96
|
}
|
|
46
97
|
/** The user turn writing the overview from the parts' themes. */
|
|
47
98
|
export declare function mergePrompt(request: {
|
|
@@ -53,56 +104,67 @@ export declare function mergePrompt(request: {
|
|
|
53
104
|
total: number;
|
|
54
105
|
parts: readonly PartThemes[];
|
|
55
106
|
}): string;
|
|
56
|
-
/** The format the overview is written in. */
|
|
57
|
-
export declare
|
|
107
|
+
/** The format the overview is written in: the section names are the reader's, so it varies. */
|
|
108
|
+
export declare function sectionsFormat(names: readonly string[]): {
|
|
58
109
|
readonly type: "json_schema";
|
|
59
110
|
readonly schema: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
readonly required: readonly ["overview"];
|
|
67
|
-
readonly additionalProperties: false;
|
|
111
|
+
type: string;
|
|
112
|
+
properties: Record<string, unknown>;
|
|
113
|
+
required: string[];
|
|
114
|
+
additionalProperties: boolean;
|
|
68
115
|
};
|
|
69
116
|
};
|
|
70
117
|
/** The format one part's themes are given in. */
|
|
71
|
-
export declare
|
|
118
|
+
export declare function partFormat(names: readonly string[]): {
|
|
72
119
|
readonly type: "json_schema";
|
|
73
120
|
readonly schema: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
readonly items: {
|
|
79
|
-
readonly type: "object";
|
|
80
|
-
readonly properties: {
|
|
81
|
-
readonly theme: {
|
|
82
|
-
readonly type: "string";
|
|
83
|
-
};
|
|
84
|
-
readonly articles: {
|
|
85
|
-
readonly type: "integer";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
readonly required: readonly ["theme", "articles"];
|
|
89
|
-
readonly additionalProperties: false;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
readonly notable: {
|
|
93
|
-
readonly type: "array";
|
|
94
|
-
readonly items: {
|
|
95
|
-
readonly type: "string";
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
readonly required: readonly ["themes", "notable"];
|
|
100
|
-
readonly additionalProperties: false;
|
|
121
|
+
type: string;
|
|
122
|
+
properties: Record<string, unknown>;
|
|
123
|
+
required: string[];
|
|
124
|
+
additionalProperties: boolean;
|
|
101
125
|
};
|
|
102
126
|
};
|
|
127
|
+
export type OutputFormat = ReturnType<typeof sectionsFormat> | ReturnType<typeof partFormat>;
|
|
128
|
+
/**
|
|
129
|
+
* Text without the refs a model wrote into it, and those refs, for the citations they belong
|
|
130
|
+
* in. Only brackets holding refs given (`known`) are taken, so text such as "(A1)" stays.
|
|
131
|
+
*/
|
|
132
|
+
export declare function withoutRefs(text: string, known: ReadonlyMap<string, number>): {
|
|
133
|
+
text: string;
|
|
134
|
+
refs: string[];
|
|
135
|
+
};
|
|
103
136
|
/** Plain text a digest takes: control characters gone but line breaks, at most `limit` long. */
|
|
104
137
|
export declare function plain(text: string, limit: number): string;
|
|
105
|
-
/**
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
138
|
+
/** A point as the digest takes it: its text, and the entry ids it cites. */
|
|
139
|
+
export interface Point {
|
|
140
|
+
text: string;
|
|
141
|
+
entries: number[];
|
|
142
|
+
}
|
|
143
|
+
/** The overview as the plugin returns it, before the digest's own types. */
|
|
144
|
+
export interface Overview {
|
|
145
|
+
lead: string;
|
|
146
|
+
sections: {
|
|
147
|
+
heading: string;
|
|
148
|
+
points: Point[];
|
|
149
|
+
}[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* An overview's answer within the digest's limits: sections in the reader's order (one named
|
|
153
|
+
* twice is joined), points cut to the length's count, cited refs as entry ids; then points from
|
|
154
|
+
* the end until the sections fit `DIGEST_LIMITS.sectionsText`. Null when it is not the format
|
|
155
|
+
* asked for, or has neither lead nor points.
|
|
156
|
+
*/
|
|
157
|
+
export declare function readSections(text: string, options: {
|
|
158
|
+
names: readonly string[];
|
|
159
|
+
length: UserSettings['length'];
|
|
160
|
+
ids: ReadonlyMap<string, number>;
|
|
161
|
+
}): Overview | null;
|
|
162
|
+
/**
|
|
163
|
+
* A part's answer, within its limits: sections the reader has, themes with text, at most
|
|
164
|
+
* `themes` a section, refs only of articles given. Null when it is not the format asked for.
|
|
165
|
+
*/
|
|
166
|
+
export declare function readPart(text: string, options: {
|
|
167
|
+
names: readonly string[];
|
|
168
|
+
ids: ReadonlyMap<string, number>;
|
|
169
|
+
themes: number;
|
|
170
|
+
}): PartThemes | null;
|