briyah 2.0.18 → 2.0.20

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.
Files changed (44) hide show
  1. package/dist-sdk/server/src/ai/agent-config.d.ts +2 -0
  2. package/dist-sdk/server/src/ai/agent-store.service.js +4 -0
  3. package/dist-sdk/server/src/ai/agent.d.ts +7 -0
  4. package/dist-sdk/server/src/ai/agent.js +7 -0
  5. package/dist-sdk/server/src/app.service.d.ts +2 -0
  6. package/dist-sdk/server/src/app.service.js +2 -0
  7. package/dist-sdk/server/src/data/change-validation.d.ts +49 -0
  8. package/dist-sdk/server/src/data/change-validation.js +246 -0
  9. package/dist-sdk/server/src/data/data-guide.builder.d.ts +13 -0
  10. package/dist-sdk/server/src/data/data-guide.builder.js +56 -0
  11. package/dist-sdk/server/src/data/data-registry.js +7 -0
  12. package/dist-sdk/server/src/data/data.types.d.ts +98 -0
  13. package/dist-sdk/server/src/data/data.types.js +3 -1
  14. package/dist-sdk/server/src/data/propose-changes.d.ts +19 -0
  15. package/dist-sdk/server/src/data/propose-changes.js +69 -0
  16. package/dist-sdk/server/src/data/query-validation.d.ts +9 -1
  17. package/dist-sdk/server/src/data/query-validation.js +9 -5
  18. package/dist-sdk/server/src/data/run-query.d.ts +14 -0
  19. package/dist-sdk/server/src/data/run-query.js +39 -0
  20. package/dist-sdk/server/src/documents/document-conversion.d.ts +27 -9
  21. package/dist-sdk/server/src/documents/document-conversion.js +131 -10
  22. package/dist-sdk/server/src/documents/html-data.d.ts +49 -0
  23. package/dist-sdk/server/src/documents/html-data.js +120 -0
  24. package/dist-sdk/server/src/documents/html-template.d.ts +108 -0
  25. package/dist-sdk/server/src/documents/html-template.js +332 -0
  26. package/dist-sdk/server/src/documents/library/document.types.d.ts +64 -0
  27. package/dist-sdk/server/src/documents/library/document.types.js +6 -0
  28. package/dist-sdk/server/src/documents/library/html-template-guide.builder.d.ts +13 -0
  29. package/dist-sdk/server/src/documents/library/html-template-guide.builder.js +185 -0
  30. package/dist-sdk/server/src/documents/template-mapping.d.ts +203 -0
  31. package/dist-sdk/server/src/documents/template-mapping.js +452 -0
  32. package/dist-sdk/server/src/room/room.d.ts +2 -1
  33. package/dist-sdk/server/src/room/room.js +7 -3
  34. package/dist-sdk/server/src/sdk/index.d.ts +17 -4
  35. package/dist-sdk/server/src/sdk/index.js +37 -2
  36. package/dist-sdk/server/src/tools/core/data-change.tools.d.ts +19 -0
  37. package/dist-sdk/server/src/tools/core/data-change.tools.js +82 -0
  38. package/dist-sdk/server/src/tools/core/data.tools.js +22 -3
  39. package/dist-sdk/server/src/tools/core/document.tools.d.ts +22 -0
  40. package/dist-sdk/server/src/tools/core/document.tools.js +20 -6
  41. package/dist-sdk/server/src/tools/core/html-template.tools.d.ts +31 -0
  42. package/dist-sdk/server/src/tools/core/html-template.tools.js +494 -0
  43. package/dist-sdk/server/src/tools/core/index.js +4 -0
  44. package/package.json +1 -1
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ /**
3
+ * Renders how to make a new HTML page from a template, as a document to attach
4
+ * to an agent that has `inspect_html_template` and `fill_html_template`.
5
+ *
6
+ * The tools do the copying and run the queries; the hard part is the agent's —
7
+ * working out what an unfamiliar page's data means, field by field, often from
8
+ * abbreviated names, describing how the records it reads come from the data, and
9
+ * replacing every trace of the template's own subject without breaking what the
10
+ * page's code expects. This is the method for that, and it is the same for any
11
+ * template, so it lives here rather than in each host's prompts.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.buildHtmlTemplateGuideMarkdown = buildHtmlTemplateGuideMarkdown;
15
+ /** @returns The guide, as Markdown */
16
+ function buildHtmlTemplateGuideMarkdown() {
17
+ return [
18
+ '# Making Pages From HTML Templates',
19
+ '',
20
+ 'Some documents are HTML pages whose scripts draw everything they show — slides, charts,',
21
+ 'tables, a map — from a block of JSON data embedded in the page. `list_documents` marks them',
22
+ '`htmlTemplate`, and their first page ends with an "About this page" note naming the data',
23
+ 'block. Such a page is a template: another page just like it, about someone else, is made',
24
+ 'by replacing its data and keeping everything else. You never write or change its code.',
25
+ '',
26
+ '## 0. Is a recipe saved?',
27
+ '',
28
+ 'If `list_documents` shows `htmlTemplate.recipe`, the template has been filled before and how',
29
+ 'to fill it was kept. Then you do not work anything out again:',
30
+ '',
31
+ '1. `inspect_html_template` with `recipe: true` and `parameters` (e.g. the customer). It',
32
+ ' returns the parts you must write afresh (`write`, each with a note on what it says) and',
33
+ ' the recipe\'s `facts`, already run for these parameters.',
34
+ '2. Write each part from those facts — and any other query you need — in the template\'s',
35
+ ' voice.',
36
+ '3. `fill_html_template` with `recipe: true`, the same `parameters`, and your written parts',
37
+ ' as `changes`. Every query in the recipe runs again for the new parameters.',
38
+ '4. Check the result as in step 5 below. If the recipe is refused as stale, or its result',
39
+ ' is wrong, fill the template from the beginning and save a new recipe.',
40
+ '',
41
+ '## 1. Inspect before you touch anything',
42
+ '',
43
+ '- `inspect_html_template` with only the documentId shows the data blocks and their shape.',
44
+ '- Then read every part with `paths`, in one or two calls: each settings or narrative object',
45
+ ' whole (`meta`, `story`, `titles`…) and the first few records of each list (`claims`,',
46
+ ' `lines`…). Read further records only when a few do not make a field\'s meaning clear.',
47
+ '- Note what each part is for. Usually there are three kinds:',
48
+ ' - **Subject data** — about the template\'s own client: names, dates, periods, figures,',
49
+ ' lists of records, and the prose written about them (summaries, findings, titles).',
50
+ ' - **Derived data** — totals, counts, ratios, rankings and sentences computed from the',
51
+ ' records. They must be recomputed from the new records, never copied.',
52
+ ' - **Reference data** — the same for anyone: map shapes, state names, labels, display',
53
+ ' settings. Keep it.',
54
+ '',
55
+ '## 2. Work out what every field means',
56
+ '',
57
+ 'Field names are often abbreviated (`pd`, `rs`, `l`, `t`). Decide each one\'s meaning before',
58
+ 'gathering data, from evidence in the template itself:',
59
+ '',
60
+ '- **Values**: dates, codes, a field that only holds 0 to 4 next to a list of 5 (an index).',
61
+ '- **Links**: a field matching the `id` of records in another list, or an index into it.',
62
+ '- **Sums**: a total elsewhere that equals the sum of a field across the records tells you',
63
+ ' which fields add up to what (paid + reserves + expenses − recoveries = incurred, say).',
64
+ '- **Prose**: the summary and findings quote figures; matching them to the data names them.',
65
+ '- **Units and formats**: money may be stored in cents (a premium of 495905900 shown as',
66
+ ' $4.96M), dates as text in one format, percentages as text like "21%". Copy the',
67
+ ' template\'s convention exactly.',
68
+ '',
69
+ 'If a field\'s meaning cannot be settled, keep its convention, fill what you can, and say',
70
+ 'which fields you were unsure of.',
71
+ '',
72
+ '## 3. Describe the data instead of writing it',
73
+ '',
74
+ 'Anything that comes from records — lists of records, totals, counts — is filled by a',
75
+ '**query-backed change**: you say which query and how each row becomes a record, and the',
76
+ 'rows go straight from the data into the page. They never pass through you, so they are',
77
+ 'exact, and a list of thousands costs no more than a list of ten. Write values yourself',
78
+ 'only for what is not in the data: the narrative, and choices like a title.',
79
+ '',
80
+ 'A list of records — `rows` is the query, `each` maps a row to one record:',
81
+ '',
82
+ '```json',
83
+ '{ "path": "claims",',
84
+ ' "rows": { "dataset": "claims",',
85
+ ' "filters": [{ "field": "customer", "op": "eq", "value": { "$param": "customer" } }],',
86
+ ' "select": ["claimNumber", "dateOfLoss", "policyCoverage", "status", "paid"] },',
87
+ ' "joins": [{ "name": "acc", "rows": { "dataset": "accidents", "filters": [ … ] },',
88
+ ' "on": ["dateOfLoss", "accidentDate"] }],',
89
+ ' "each": { "id": { "text": "claim-{index}" },',
90
+ ' "n": "claimNumber",',
91
+ ' "d": { "field": "dateOfLoss", "date": "MM/DD/YYYY" },',
92
+ ' "pd": { "field": "paid", "scale": 100 },',
93
+ ' "o": { "field": "status", "equals": "Open" },',
94
+ ' "l": { "field": "policyCoverage", "indexIn": "lines", "by": "title" },',
95
+ ' "st": "acc.state" } }',
96
+ '```',
97
+ '',
98
+ 'One figure — the first row\'s column `take`, with the same operations:',
99
+ '`{ "path": "meta.premium", "query": { …metrics… }, "take": "sum_annualPremium", "scale": 100 }`.',
100
+ '',
101
+ 'What `each` can say about a key (a string is just a field name):',
102
+ '',
103
+ '- `field` — a row field; a joined query\'s fields as `name.field`.',
104
+ '- `scale` and `round` — numbers: `100` for cents, `-100` for a recovery stored negative.',
105
+ '- `date` — `MM/DD/YYYY`, `YYYY-MM-DD` or `YYYY`.',
106
+ '- `equals` — true when the value equals this; `map` — translate values (`{"Open": "O"}`);',
107
+ ' `default` — for an empty value.',
108
+ '- `text` — a pattern over row fields, keys already mapped and `{index}`; `const` — fixed.',
109
+ '- `ratio` — one field over another, `["tot.sum_incurred", "prem.sum_annualPremium"]`; add',
110
+ ' `percent: true` for text like "21%".',
111
+ '- `object` — an object of mapped keys: `{ "object": { "count": "tot.n", "incurred": {…} } }`.',
112
+ '- `indexIn` with `by` — the value\'s position in another list of the page\'s data, which',
113
+ ' must be filled by an earlier change (fill `lines` before `claims` points into it). The',
114
+ ' path may use keys already mapped: `"indexIn": "lines[{l}].terms", "by": "start"`.',
115
+ '- A nested list — `{ "rows": …, "where": ["coverage", "{title}"], "each": … }`: its query',
116
+ ' runs once and each record gets the rows whose field equals the pattern. A nested list takes',
117
+ ' `joins` too, like a change does.',
118
+ '',
119
+ '**Figures that belong to each record come from joins, never from positions.** A line\'s',
120
+ 'totals are a grouped query (claims by coverage) joined to the line\'s own rows and mapped',
121
+ 'with `object` — not `lines[3].totals` written by hand, which is wrong for the next',
122
+ 'client, whose lines differ. Text you write for each record (a line\'s headline) is fine',
123
+ 'as `lines[0].exec_title`, `lines[1].exec_title`…: a recipe keeps it as `lines[*].exec_title`,',
124
+ 'one for every line the next client has.',
125
+ '',
126
+ 'For example, each line with its totals and loss ratio — premium grouped by coverage, joined',
127
+ 'to claims grouped by coverage:',
128
+ '',
129
+ '```json',
130
+ '{ "path": "lines",',
131
+ ' "rows": { "dataset": "policies", "filters": [ …customer… ], "groupBy": ["coverage"],',
132
+ ' "metrics": [{ "fn": "sum", "field": "annualPremium", "as": "prem" }] },',
133
+ ' "joins": [{ "name": "tot", "on": ["coverage", "policyCoverage"],',
134
+ ' "rows": { "dataset": "claims", "filters": [ …customer… ], "groupBy": ["policyCoverage"],',
135
+ ' "metrics": [{ "fn": "count", "as": "n" }, { "fn": "sum", "field": "incurred", "as": "inc" }] } }],',
136
+ ' "each": { "title": "coverage",',
137
+ ' "totals": { "object": { "count": { "field": "tot.n", "default": 0 },',
138
+ ' "incurred": { "field": "tot.inc", "scale": 100, "default": 0 } } },',
139
+ ' "ratio": { "ratio": ["tot.inc", "prem"], "percent": true } } }',
140
+ '```',
141
+ '',
142
+ 'Write the customer, and anything else that changes from fill to fill, as',
143
+ '`{"$param": "customer"}` — in filters and in plain values (`meta.client`) — and pass the',
144
+ 'values in `parameters`. Changes apply in order, and keys in `each` map in order.',
145
+ '',
146
+ '## 4. Fill it in one call',
147
+ '',
148
+ '- One `fill_html_template` call with every change. A value replaces whatever was at its',
149
+ ' path, so give a list or an object whole; change a single field with a path to it.',
150
+ '- Replace all subject data and recompute all derived data, including the prose: rewrite',
151
+ ' summaries, findings and titles from the new figures, in the template\'s voice and length.',
152
+ '- Mark a plain change that is the same for every client `"keep": true`. Give each part you',
153
+ ' wrote (the narrative) a short `"note"` saying what it is — the next fill writes it from that.',
154
+ '- Keep the records\' shape: the same fields, the same types, the same formats. Keep links',
155
+ ' consistent — every index or id must point at something that exists in your new data.',
156
+ '- Name the new page for whose it is and what, and give it a `title`.',
157
+ '',
158
+ '## 5. Check the result',
159
+ '',
160
+ '- **fromQueries**: each query-backed change\'s row count and its first two records as built.',
161
+ ' Look at them: a wrong field shows up here.',
162
+ '- **warnings**: a type changed, records missing fields the template\'s have, a key empty in',
163
+ ' every record, a position not found, or the page\'s scripts failing when it was loaded. Fix',
164
+ ' each one and fill again with the same name; that replaces the page.',
165
+ '- **untouched**: the top-level parts you did not change. Each must be reference data. If',
166
+ ' one is about the template\'s subject, fill it.',
167
+ '- Before you report, compare your headline figures with the data you queried.',
168
+ '',
169
+ '## 6. Save it as the recipe',
170
+ '',
171
+ 'Once a fill is right and its warnings are cleared, fill once more with `saveRecipe: true`,',
172
+ 'the same changes and parameters, and `facts`: the totals queries you wrote the narrative from',
173
+ '(by year, by line, the loss ratio\'s parts…), with `$param`s like the rest. The recipe is',
174
+ 'kept with the template, so the next fill — for anyone — starts at step 0. Always save one:',
175
+ 'with figures from queries and per-record text kept as `[*]`, a recipe fits any client.',
176
+ '',
177
+ '## Never',
178
+ '',
179
+ '- Leave any of the template client\'s names, figures or prose in the new page.',
180
+ '- Invent a figure, or round one the template shows exactly.',
181
+ '- Copy figures into a change by hand when a query-backed change can supply them.',
182
+ '- Try to change the page\'s scripts, styles or layout — only its data can change.',
183
+ '',
184
+ ].join('\n');
185
+ }
@@ -0,0 +1,203 @@
1
+ /**
2
+ * Filling a template's data from queries instead of from values an agent writes.
3
+ *
4
+ * An agent filling a template by hand copies every figure into its tool call:
5
+ * slow, bounded by what it can write, and exact only as long as it copies
6
+ * exactly. Here it describes the data instead — which query, and how each row
7
+ * becomes one of the template's records — and the rows go from the data source
8
+ * straight into the page, never through the agent.
9
+ *
10
+ * The description is a small closed vocabulary (see {@link ValueSpec}), enough to
11
+ * turn query rows into the records a template's code reads: rename, scale, format a
12
+ * date, test, translate, a text pattern, a constant, the position of a value in
13
+ * another list of the page's data, and nested lists split from one query. A
14
+ * description that works is worth keeping: with its customer (and any other
15
+ * changing value) written as `{"$param": "customer"}`, it fills the same template
16
+ * for anyone — the saved recipe in `html-template.tools.ts`.
17
+ */
18
+ import { DataRow } from '../data/data.types';
19
+ import { TemplateChange } from './html-template';
20
+ /** A query as an agent writes it for `query_data`, possibly with `{"$param": name}` values. */
21
+ export type QuerySpec = Record<string, unknown>;
22
+ /** Another query whose rows are matched to each row by a key, their fields read as `name.field`. */
23
+ export interface JoinSpec {
24
+ name: string;
25
+ rows: QuerySpec;
26
+ /** The row's field, then the joined query's field, compared as keys. */
27
+ on: [string, string];
28
+ }
29
+ /** How one key of a record is made from a row. */
30
+ export type ValueSpec = string | ValueOps | NestedSpec;
31
+ export interface ValueOps {
32
+ /** The row field to start from (joined fields as `name.field`). */
33
+ field?: string;
34
+ /** A pattern: `{field}`, `{name.field}`, `{index}`, or a key already mapped in this record. */
35
+ text?: string;
36
+ /** A fixed value. */
37
+ const?: unknown;
38
+ /** Used when the value is empty (null, undefined or ""). */
39
+ default?: unknown;
40
+ /** A date as `MM/DD/YYYY`, `YYYY-MM-DD` or `YYYY`. */
41
+ date?: string;
42
+ /** Translates a value (compared case-insensitively) to another. */
43
+ map?: Record<string, unknown>;
44
+ /** True when the value equals this (case-insensitively for text). */
45
+ equals?: unknown;
46
+ /** Multiplies a number: 100 for cents, -100 for cents of a negative recovery. */
47
+ scale?: number;
48
+ /** Decimal places to round to after scaling. */
49
+ round?: number;
50
+ /** The value's position in a list of the page's data — a path that may use keys already mapped (`lines[{l}].terms`). */
51
+ indexIn?: string;
52
+ /** The field of that list's items to compare with; omit to compare the items themselves. */
53
+ by?: string;
54
+ /** One field divided by another (`["sum_incurred", "prem.sum_annualPremium"]`); null when the second is 0. */
55
+ ratio?: [string, string];
56
+ /** Writes the number as a percentage — times 100, rounded to `round` places (0 by default), with "%". */
57
+ percent?: boolean;
58
+ /** An object made of mapped keys — a record's totals from joined grouped queries, say. */
59
+ object?: Record<string, ValueSpec>;
60
+ }
61
+ /** A list inside each record, from a query run once and split per record by `where`. */
62
+ export interface NestedSpec {
63
+ rows: QuerySpec;
64
+ joins?: JoinSpec[];
65
+ /** The nested row's field, and a pattern over the parent record (`{title}`) it must equal. */
66
+ where?: [string, string];
67
+ each: Record<string, ValueSpec>;
68
+ }
69
+ /** A change whose value is a list of records built from a query. */
70
+ export interface RowsChange {
71
+ path: string;
72
+ rows: QuerySpec;
73
+ joins?: JoinSpec[];
74
+ each: Record<string, ValueSpec>;
75
+ /** Kept in a saved recipe. Always true for a query-backed change. */
76
+ keep?: boolean;
77
+ }
78
+ /** A change whose value is one figure from a query: its first row's `take`, then the usual operations. */
79
+ export interface QueryValueChange extends Omit<ValueOps, 'field' | 'text' | 'const'> {
80
+ path: string;
81
+ query: QuerySpec;
82
+ take: string;
83
+ keep?: boolean;
84
+ }
85
+ /** A plain change, as before: the value itself. `keep` marks it as the same for every client in a recipe. */
86
+ export interface PlainChange extends TemplateChange {
87
+ keep?: boolean;
88
+ /** For a recipe: what this part says, so the next fill can write it afresh. */
89
+ note?: string;
90
+ }
91
+ export type FillChange = PlainChange | RowsChange | QueryValueChange;
92
+ /** Runs a query with any `$param`s already resolved. */
93
+ export type QueryRunner = (query: QuerySpec) => Promise<{
94
+ ok: true;
95
+ rows: DataRow[];
96
+ } | {
97
+ ok: false;
98
+ error: string;
99
+ available?: string[];
100
+ }>;
101
+ /** What a query-backed change did, for the agent to check its mapping. */
102
+ export interface ChangeReport {
103
+ path: string;
104
+ rows: number;
105
+ records: number;
106
+ /** The first two records as built. */
107
+ sample: unknown[];
108
+ }
109
+ export declare function isRowsChange(change: unknown): change is RowsChange;
110
+ export declare function isQueryValueChange(change: unknown): change is QueryValueChange;
111
+ /** Whether a change comes from a query rather than holding its value. */
112
+ export declare function isQueryBacked(change: unknown): change is RowsChange | QueryValueChange;
113
+ /**
114
+ * A copy with every `{"$param": name}` replaced by its value.
115
+ *
116
+ * @throws {TemplateError} Naming a parameter that was not given
117
+ */
118
+ export declare function resolveParams<T>(value: T, parameters: Record<string, unknown>): T;
119
+ /** The names of every `$param` a value uses. */
120
+ export declare function paramNames(value: unknown, into?: Set<string>): Set<string>;
121
+ /**
122
+ * A query with the values of the given parameters written back as `$param`s
123
+ * wherever they appear as a filter value — so a query made for one customer
124
+ * becomes one for any.
125
+ */
126
+ export declare function parameterizeQuery(spec: QuerySpec, parameters: Record<string, unknown>): QuerySpec;
127
+ /** The change with its queries' parameter values written back as `$param`s (see {@link parameterizeQuery}). */
128
+ export declare function parameterize<T extends FillChange>(change: T, parameters: Record<string, unknown>): T;
129
+ /**
130
+ * The plain change a query-backed one stands for: its queries run, its records built
131
+ * against the data as changed so far.
132
+ *
133
+ * @param maxRows The ceiling a query was run with, to warn when one may have been cut
134
+ * @throws {TemplateError} For a refused query, a malformed mapping, or a missing parameter
135
+ */
136
+ export declare function materializeChange(change: RowsChange | QueryValueChange, data: unknown, run: QueryRunner, parameters: Record<string, unknown>, maxRows: number): Promise<{
137
+ change: TemplateChange;
138
+ report: ChangeReport;
139
+ warnings: string[];
140
+ }>;
141
+ /** A totals query the narrative is written from, run afresh for each fill. */
142
+ export interface RecipeFact {
143
+ name: string;
144
+ query: QuerySpec;
145
+ }
146
+ /**
147
+ * A part of the data the next fill must write itself — the narrative — and what it
148
+ * says. `[*]` in its path means every item of a list the recipe builds:
149
+ * `lines[*].exec_title` is each line's title, however many lines the next client has.
150
+ */
151
+ export interface WrittenPart {
152
+ path: string;
153
+ note?: string;
154
+ }
155
+ /**
156
+ * How to fill a template for anyone: the changes that come from queries (and the
157
+ * fixed ones), with the customer and other changing values as `$param`s; the parts
158
+ * to write afresh each time; and the facts to write them from.
159
+ */
160
+ export interface TemplateRecipe {
161
+ version: 1;
162
+ /** The data block it fills. */
163
+ block: string;
164
+ /** The template's data shape when it was saved; a recipe for a different shape is stale. */
165
+ shape: string;
166
+ parameters: string[];
167
+ changes: FillChange[];
168
+ written: WrittenPart[];
169
+ facts: RecipeFact[];
170
+ notes?: string;
171
+ savedAt: string;
172
+ /** Set by the host that stores it. */
173
+ savedBy?: string;
174
+ }
175
+ /** Whether a change is replayed by a recipe rather than written afresh. */
176
+ export declare function isRecipeChange(change: FillChange): boolean;
177
+ /**
178
+ * The recipe a fill amounts to: query-backed changes, fixed ones (`keep`) and
179
+ * ones that use a `$param` are replayed, with the given parameters written back
180
+ * as `$param`s; every other plain change is a written part, kept as its path and
181
+ * note.
182
+ */
183
+ export declare function buildRecipe(input: {
184
+ block: string;
185
+ templateValue: unknown;
186
+ changes: FillChange[];
187
+ parameters: Record<string, unknown>;
188
+ facts?: RecipeFact[];
189
+ notes?: string;
190
+ }): TemplateRecipe;
191
+ /**
192
+ * A path with an index into a list the fill built from a query written as `[*]`:
193
+ * that list will have other items for the next client, so a part written for one
194
+ * of them is a part written for each.
195
+ */
196
+ export declare function wildcardPath(path: string, builtLists: string[]): string;
197
+ /**
198
+ * The concrete paths a written part stands for in the data as filled: `lines[*].title`
199
+ * is `lines[0].title` … for every line there is. A path without `[*]` stands for itself.
200
+ */
201
+ export declare function expandWrittenPath(path: string, data: unknown): string[];
202
+ /** Whether a change sets this path or something containing it. */
203
+ export declare function coversPath(changePath: string, wantedPath: string): boolean;