@wirecat/cli-core 0.431.0 → 0.433.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cli/messenger/conversation-answers.d.ts +1 -0
  3. package/dist/cli/messenger/conversations-command.js +11 -3
  4. package/dist/cli/messenger/message-answers.d.ts +1 -0
  5. package/dist/cli/messenger/message-writes.d.ts +2 -0
  6. package/dist/cli/messenger/messages-search-command.js +11 -1
  7. package/dist/cli/messenger/search-answers.js +13 -0
  8. package/dist/cli/steps.js +6 -0
  9. package/dist/cli/upgrade-command.js +1 -1
  10. package/dist/entities/conversation-preparation.d.ts +10 -0
  11. package/dist/entities/conversation-preparation.js +2 -0
  12. package/dist/entities/conversation-results.d.ts +10 -0
  13. package/dist/entities/evidence.d.ts +8 -0
  14. package/dist/entities/index.d.ts +45 -0
  15. package/dist/entities/listener.d.ts +4 -0
  16. package/dist/entities/message-context.d.ts +3 -0
  17. package/dist/entities/message-transfer.d.ts +8 -0
  18. package/dist/entities/message-write.d.ts +4 -0
  19. package/dist/entities/message.d.ts +2 -0
  20. package/dist/entities/message.js +2 -0
  21. package/dist/entities/store-records.d.ts +5 -0
  22. package/dist/models/anthropic.js +2 -4
  23. package/dist/services/embeddings-maintenance.js +71 -2
  24. package/dist/services/embeddings-search.js +3 -1
  25. package/dist/services/embeddings.d.ts +7 -0
  26. package/dist/services/messages-archive-search.d.ts +2 -1
  27. package/dist/services/messages-archive-search.js +4 -4
  28. package/dist/services/messages-discovery.d.ts +24 -1
  29. package/dist/services/messages-discovery.js +61 -4
  30. package/dist/services/messages-meaning.d.ts +7 -0
  31. package/dist/services/messages-meaning.js +53 -0
  32. package/dist/services/messages-search.d.ts +5 -0
  33. package/dist/services/messages.d.ts +5 -0
  34. package/dist/services/messages.js +2 -1
  35. package/dist/services/search-catchup.js +1 -0
  36. package/dist/store/drivers/node-sqlite.js +1 -0
  37. package/dist/store/sqlite/drizzle/bun.js +58 -14
  38. package/dist/store/sqlite/drizzle/bun.js.map +3 -3
  39. package/dist/store/sqlite/drizzle/core.js +173 -7
  40. package/dist/store/sqlite/drizzle/core.js.map +4 -4
  41. package/dist/store/sqlite/drizzle/node.js +57 -13
  42. package/dist/store/sqlite/drizzle/node.js.map +3 -3
  43. package/dist/store/sqlite/drizzle/shared-55XJMTPA.js +6514 -0
  44. package/dist/store/sqlite/drizzle/shared-55XJMTPA.js.map +7 -0
  45. package/dist/store/sqlite/message-chunks.d.ts +44 -0
  46. package/dist/store/sqlite/message-chunks.js +76 -0
  47. package/dist/store/sqlite/open.js +1 -0
  48. package/dist/store/sqlite/schema/canonical-tags.d.ts +1 -0
  49. package/dist/store/sqlite/schema/document-index-pending.d.ts +1 -0
  50. package/dist/store/sqlite/schema/document-transfers.d.ts +1 -0
  51. package/dist/store/sqlite/schema/tag-consolidations.d.ts +2 -0
  52. package/dist/store/sqlite/schema.d.ts +97 -0
  53. package/dist/store/sqlite/vectors.js +4 -1
  54. package/dist/store/vectors.d.ts +36 -0
  55. package/dist/store/vectors.js +54 -0
  56. package/package.json +23 -24
  57. package/dist/store/sqlite/drizzle/shared-HKXF6HKX.js +0 -4846
  58. package/dist/store/sqlite/drizzle/shared-HKXF6HKX.js.map +0 -7
package/CHANGELOG.md CHANGED
@@ -7,6 +7,28 @@ shape of this file.
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.433.0 — 25.10.2026
11
+
12
+ ### Changed — may break callers
13
+
14
+ - **`upgrade`'s help shows only `<cli> upgrade --check` as an example.** The bare `<cli> upgrade` example is gone
15
+ from it: copied and run, it upgraded. A CLI that keeps help or `commands --json` snapshots refreshes them once;
16
+ in tg, max and wa only this example changes. A CLI that sets its own `examples` on the shared command overrides
17
+ these, and cli-core's shared-command check then refuses its program when the two differ.
18
+ - **The Anthropic adapter takes only `stop_sequences` as an option.** `@anthropic-ai/sdk` 1.x sends API version
19
+ 2026-10-21, which refuses `temperature`, `top_p` and `top_k` on every model, so the adapter now refuses them
20
+ before any request. The SDK also sends the key as `Authorization: Bearer` instead of `X-Api-Key`: a custom
21
+ Anthropic base URL whose gateway reads `X-Api-Key` must read `Authorization` instead.
22
+ - **`@modelcontextprotocol/server` is `^2.4.0`** (was exactly 2.3.0), so a CLI on server 2.4.x shares one copy with cli-core.
23
+ - **Dependencies moved to their latest majors:** `@anthropic-ai/sdk` 1.3, `sherpa-onnx` 2.0, `drizzle-orm` 1.0.0-rc.5.
24
+
25
+ ## 0.432.0 — 25.10.2026
26
+
27
+ ### Added
28
+
29
+ - **`search messages --discover` also searches by meaning, on its own, once it can.** When e5-small is downloaded and messages have their own vectors, discovery adds the 100 messages nearest in meaning to its word matches and merges the two lists by reciprocal rank fusion (k = 60), as arm A2 of the [evidence-pipeline benchmark](https://github.com/WireCatLabs/cli-testing/tree/main/performance/search/evidence-pipeline) did. The question's filters apply to both. Each hit's `discovery.found_by` says which list found it, and `score` is then the fused score. Otherwise discovery searches by words exactly as before and says why meaning was not used: a `meaning search not used: …` note in the terminal, and `missing`/`next` (`models.download` or `conversations.rebuild`) in `--json` and MCP. A search never downloads a model and never sends text anywhere. `--exact`, `--newest` and strict queries are untouched.
30
+ - **`conversations rebuild`, and `conversations embed` without `--chat`, give each message its own vector** with the default local model, within the same `--max-chunks` bound; the answer's `messages` says how many were embedded and how many are left. Messages edited since are embedded again, and deleted ones lose their vectors. A search's catch-up never does this.
31
+
10
32
  ## 0.431.0 — 25.10.2026
11
33
 
12
34
  ### Added
@@ -65,6 +65,7 @@ export declare const conversationShown: (account: AccountKey, { summary, message
65
65
  matched_terms: string[];
66
66
  missing_terms: string[];
67
67
  parent?: string | undefined;
68
+ found_by?: ("meaning" | "words")[] | undefined;
68
69
  } | undefined;
69
70
  context?: {
70
71
  ref: string;
@@ -339,7 +339,8 @@ export const conversationsCommand = (messenger) => {
339
339
  }))
340
340
  .summary("build and embed the chats that changed, on this machine only")
341
341
  .description("build, then embed with the model on this machine, the chats that changed since their build and the group " +
342
- "chats never built — or only --chat; bounded per run, so run it again for the rest; never asks the " +
342
+ "chats never built — or only --chat; with the default model, also each message on its own, which " +
343
+ "`search messages --discover` reads; bounded per run, so run it again for the rest; never asks the " +
343
344
  "messenger, downloads no model and sends no text anywhere")
344
345
  .option("--chat <chat>", messenger.chatArgument)).action(async function () {
345
346
  const options = this.optsWithGlobals();
@@ -429,8 +430,14 @@ const renderRefreshed = (command, context, refreshed) => {
429
430
  context.streams.data([
430
431
  ...refreshed.built.map((one) => `${one.chat} built: ${one.messages} messages → ${one.conversations} conversations\n`),
431
432
  ...refreshed.embedded.map((one) => `${one.chat} ${one.embedded} chunks embedded with ${one.model}\n`),
433
+ refreshed.messages?.embedded
434
+ ? `${refreshed.messages.embedded} messages embedded with ${refreshed.model}\n`
435
+ : "",
432
436
  ].join(""));
433
- if (refreshed.built.length + refreshed.embedded.length === 0 && refreshed.left.length === 0) {
437
+ if (refreshed.built.length + refreshed.embedded.length === 0 &&
438
+ refreshed.left.length === 0 &&
439
+ !refreshed.messages?.embedded &&
440
+ !refreshed.messages?.left) {
434
441
  context.renderer.note("every chat is up to date");
435
442
  }
436
443
  }
@@ -444,7 +451,7 @@ const notDownloaded = (root, model, lead) => {
444
451
  const [step] = runnable(root, [nextStep("models.download", { args: { model } })]);
445
452
  return `${lead}: ${model} is not downloaded${step?.kind === "command" ? ` — \`${stepLine(root, step)}\`` : ""}`;
446
453
  };
447
- const leftNotes = ({ model, modelAvailable, embedded, left }, root) => {
454
+ const leftNotes = ({ model, modelAvailable, embedded, left, messages }, root) => {
448
455
  const of = (needs) => left.filter((one) => one.needs === needs).map(({ chat }) => chat);
449
456
  const build = of("build");
450
457
  const embed = of("embed");
@@ -454,6 +461,7 @@ const leftNotes = ({ model, modelAvailable, embedded, left }, root) => {
454
461
  ? `still to embed: chat ${embed.join(", ")} — run it again, or raise --max-chats and --max-chunks`
455
462
  : "",
456
463
  embed.length > 0 && !modelAvailable && embedded.length === 0 ? notDownloaded(root, model, "nothing embedded") : "",
464
+ messages?.left ? `still to embed: ${messages.left} messages — run it again, or raise --max-chunks` : "",
457
465
  ].filter(Boolean);
458
466
  };
459
467
  const choiceOf = (options, messenger, context, extra) => embeddingChoice(options, messenger.app, context.settings, context.env, { ...extra, keyring: context.keyring });
@@ -42,6 +42,7 @@ export declare const threadAnswer: ({ items, ...thread }: ThreadContext, reader:
42
42
  matched_terms: string[];
43
43
  missing_terms: string[];
44
44
  parent?: string | undefined;
45
+ found_by?: ("meaning" | "words")[] | undefined;
45
46
  } | undefined;
46
47
  context?: {
47
48
  ref: string;
@@ -46,6 +46,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
46
46
  matched_terms: string[];
47
47
  missing_terms: string[];
48
48
  parent?: string | undefined;
49
+ found_by?: ("meaning" | "words")[] | undefined;
49
50
  } | undefined;
50
51
  context?: {
51
52
  ref: string;
@@ -234,6 +235,7 @@ export declare const writtenAnswer: ({ operationId, sendId, message, messages, s
234
235
  matched_terms: string[];
235
236
  missing_terms: string[];
236
237
  parent?: string | undefined;
238
+ found_by?: ("meaning" | "words")[] | undefined;
237
239
  } | undefined;
238
240
  context?: {
239
241
  ref: string;
@@ -38,7 +38,8 @@ export const messagesSearchCommand = (messenger) => {
38
38
  .option("--newest", "newest first instead of best first")
39
39
  .option("--exact", "bare words and quotes match their exact form only, as exact:word does; text: still matches every form")
40
40
  .option("--context <n>", "messages before and after each hit; 2 in the terminal, 0 otherwise", wholeCount)
41
- .option("--discover", "find partial lexical matches and eligible replies in the local archive; results are evidence, not confirmed answers")
41
+ .option("--discover", "find partial word matches, eligible replies and, once messages have vectors, messages close in meaning in the " +
42
+ "local archive; results are evidence, not confirmed answers")
42
43
  .option("--timezone <zone>", "the IANA timezone for calendar date boundaries")
43
44
  .addHelpText("after", SAVE_HELP)
44
45
  .addHelpText("after", `${syncsFirst(messenger)
@@ -129,6 +130,15 @@ const searchAction = (messenger) => async function (given) {
129
130
  context.renderer.note(`${from} → ${to.join(", ")}`);
130
131
  for (const { source, reason } of found.skipped ?? [])
131
132
  context.renderer.note(`${source} not searched: ${reason}`);
133
+ const meaning = found.meaningSkipped;
134
+ if (meaning) {
135
+ const step = meaning.step === "models.download"
136
+ ? ` — \`${command} models download ${meaning.model}\`, then \`${command} conversations rebuild\` gives messages their vectors`
137
+ : meaning.step === "conversations.rebuild"
138
+ ? ` — \`${command} conversations rebuild\` gives messages their vectors, a batch a run`
139
+ : "";
140
+ context.renderer.note(`meaning search not used: ${meaning.reason}${step}`);
141
+ }
132
142
  if (found.picturesSkipped && found.picturesModel === undefined)
133
143
  context.renderer.note(`pictures not searched: ${found.picturesSkipped}`);
134
144
  const stemming = found.query?.stemming;
@@ -30,6 +30,7 @@ export const messageHitItem = (hit, query = "") => {
30
30
  matched_terms: hit.discovery.matchedTerms,
31
31
  missing_terms: hit.discovery.missingTerms,
32
32
  parent: hit.discovery.parent,
33
+ found_by: hit.discovery.foundBy,
33
34
  })
34
35
  : undefined,
35
36
  email: hit.email
@@ -100,6 +101,18 @@ const gapsOf = (found) => {
100
101
  step: "store.migrate",
101
102
  });
102
103
  }
104
+ const meaning = found.meaningSkipped;
105
+ if (meaning) {
106
+ if (meaning.step === "models.download")
107
+ next.push(nextStep("models.download", { args: { model: meaning.model } }));
108
+ if (meaning.step === "conversations.rebuild")
109
+ next.push(nextStep("conversations.rebuild", { args: {} }));
110
+ missing.push({
111
+ field: "discovery",
112
+ why: `searched by words only: ${meaning.reason}`,
113
+ ...(meaning.step ? { step: meaning.step } : {}),
114
+ });
115
+ }
103
116
  if (found.picturesModel !== undefined) {
104
117
  next.push(nextStep("models.download-image", { args: { model: found.picturesModel } }));
105
118
  missing.push({
package/dist/cli/steps.js CHANGED
@@ -144,6 +144,12 @@ export const STEPS = defineSteps([
144
144
  args: [{ name: "chat", required: true }],
145
145
  why: "the chat's conversations are not searchable by meaning yet; this embeds them",
146
146
  },
147
+ {
148
+ id: "conversations.rebuild",
149
+ command: "conversations rebuild",
150
+ args: [],
151
+ why: "messages have no vectors yet, so discovery searched by words alone; this embeds them, a bounded batch a run",
152
+ },
147
153
  {
148
154
  id: "stats.evidence",
149
155
  command: "*",
@@ -33,7 +33,7 @@ export const restartServers = (app, script, env, spawn) => {
33
33
  export const upgradeCommand = (app, packageName, contextFor) => grantsAuthority(annotate(new Command("upgrade"), {
34
34
  effects: LOCAL_WRITE,
35
35
  offline: false,
36
- examples: [`${app.command} upgrade --check`, `${app.command} upgrade`],
36
+ examples: [`${app.command} upgrade --check`],
37
37
  }), { unless: "check" })
38
38
  .description(`upgrade ${app.command} with the package manager that installed it; --check only looks`)
39
39
  .option("--check", "say whether a newer version exists, and install nothing")
@@ -34,6 +34,11 @@ export declare const conversationPreparation: v.StrictObjectSchema<{
34
34
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
35
35
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
36
36
  }, undefined>, undefined>;
37
+ /** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
38
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
39
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
40
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
41
+ }, undefined>, undefined>;
37
42
  }, undefined>;
38
43
  export declare const catchUpPreparation: v.StrictObjectSchema<{
39
44
  readonly complete: v.BooleanSchema<undefined>;
@@ -59,5 +64,10 @@ export declare const catchUpPreparation: v.StrictObjectSchema<{
59
64
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
60
65
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
61
66
  }, undefined>, undefined>;
67
+ /** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
68
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
69
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
70
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
71
+ }, undefined>, undefined>;
62
72
  }, undefined>, undefined>;
63
73
  }, undefined>;
@@ -15,6 +15,8 @@ export const conversationPreparation = v.strictObject({
15
15
  built: v.array(conversationBuild),
16
16
  embedded: v.array(chatEmbedding),
17
17
  left: v.array(v.strictObject({ chat: id, needs: v.picklist(["build", "embed"]) })),
18
+ /** Messages given their own vector, which `search messages --discover` reads, and how many still lack one. */
19
+ messages: v.optional(v.strictObject({ embedded: count, left: count })),
18
20
  });
19
21
  export const catchUpPreparation = v.strictObject({
20
22
  complete: v.boolean(),
@@ -41,6 +41,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
41
41
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
42
42
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
43
43
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
44
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
44
45
  }, undefined>, undefined>;
45
46
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
46
47
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -227,6 +228,7 @@ export declare const conversationDetails: v.UnionSchema<[v.StrictObjectSchema<{
227
228
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
228
229
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
229
230
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
231
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
230
232
  }, undefined>, undefined>;
231
233
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
232
234
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -446,6 +448,10 @@ export declare const conversationBuildResult: v.UnionSchema<[v.StrictObjectSchem
446
448
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
447
449
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
448
450
  }, undefined>, undefined>;
451
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
452
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
453
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
454
+ }, undefined>, undefined>;
449
455
  }, undefined>, v.StrictObjectSchema<{
450
456
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
451
457
  readonly model: v.StringSchema<undefined>;
@@ -497,6 +503,10 @@ export declare const conversationEmbedding: v.UnionSchema<[v.StrictObjectSchema<
497
503
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
498
504
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
499
505
  }, undefined>, undefined>;
506
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
507
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
508
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
509
+ }, undefined>, undefined>;
500
510
  }, undefined>], undefined>;
501
511
  export declare const conversationChange: v.UnionSchema<[v.StrictObjectSchema<{
502
512
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -32,6 +32,7 @@ export declare const contribution: v.StrictObjectSchema<{
32
32
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
33
33
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
34
34
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
35
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
35
36
  }, undefined>, undefined>;
36
37
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
37
38
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -218,6 +219,7 @@ export declare const contribution: v.StrictObjectSchema<{
218
219
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
219
220
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
220
221
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
222
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
221
223
  }, undefined>, undefined>;
222
224
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
223
225
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -442,6 +444,7 @@ export declare const contribution: v.StrictObjectSchema<{
442
444
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
443
445
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
444
446
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
447
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
445
448
  }, undefined>, undefined>;
446
449
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
447
450
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -628,6 +631,7 @@ export declare const contribution: v.StrictObjectSchema<{
628
631
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
629
632
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
630
633
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
634
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
631
635
  }, undefined>, undefined>;
632
636
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
633
637
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -888,6 +892,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
888
892
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
889
893
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
890
894
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
895
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
891
896
  }, undefined>, undefined>;
892
897
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
893
898
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1074,6 +1079,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1074
1079
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1075
1080
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1076
1081
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1082
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1077
1083
  }, undefined>, undefined>;
1078
1084
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1079
1085
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1298,6 +1304,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1298
1304
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1299
1305
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1300
1306
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1307
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1301
1308
  }, undefined>, undefined>;
1302
1309
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1303
1310
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1484,6 +1491,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
1484
1491
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1485
1492
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1486
1493
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1494
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1487
1495
  }, undefined>, undefined>;
1488
1496
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1489
1497
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -254,6 +254,7 @@ export declare const ENTITIES: {
254
254
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
255
255
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
256
256
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
257
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
257
258
  }, undefined>, undefined>;
258
259
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
259
260
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -440,6 +441,7 @@ export declare const ENTITIES: {
440
441
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
441
442
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
442
443
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
444
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
443
445
  }, undefined>, undefined>;
444
446
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
445
447
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -631,6 +633,7 @@ export declare const ENTITIES: {
631
633
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
632
634
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
633
635
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
636
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
634
637
  }, undefined>, undefined>;
635
638
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
636
639
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -987,6 +990,10 @@ export declare const ENTITIES: {
987
990
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
988
991
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
989
992
  }, undefined>, undefined>;
993
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
994
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
995
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
996
+ }, undefined>, undefined>;
990
997
  }, undefined>, undefined>;
991
998
  }, undefined>, undefined>;
992
999
  readonly window_complete: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -1091,6 +1098,7 @@ export declare const ENTITIES: {
1091
1098
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1092
1099
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1093
1100
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1101
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1094
1102
  }, undefined>, undefined>;
1095
1103
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1096
1104
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1277,6 +1285,7 @@ export declare const ENTITIES: {
1277
1285
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1278
1286
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1279
1287
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1288
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1280
1289
  }, undefined>, undefined>;
1281
1290
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1282
1291
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1451,6 +1460,7 @@ export declare const ENTITIES: {
1451
1460
  matched_terms: string[];
1452
1461
  missing_terms: string[];
1453
1462
  parent?: string | undefined;
1463
+ found_by?: ("meaning" | "words")[] | undefined;
1454
1464
  } | undefined;
1455
1465
  context?: {
1456
1466
  ref: string;
@@ -1514,6 +1524,7 @@ export declare const ENTITIES: {
1514
1524
  matched_terms: string[];
1515
1525
  missing_terms: string[];
1516
1526
  parent?: string | undefined;
1527
+ found_by?: ("meaning" | "words")[] | undefined;
1517
1528
  } | undefined;
1518
1529
  context?: {
1519
1530
  ref: string;
@@ -1578,6 +1589,7 @@ export declare const ENTITIES: {
1578
1589
  matched_terms: string[];
1579
1590
  missing_terms: string[];
1580
1591
  parent?: string | undefined;
1592
+ found_by?: ("meaning" | "words")[] | undefined;
1581
1593
  } | undefined;
1582
1594
  context?: {
1583
1595
  ref: string;
@@ -1643,6 +1655,7 @@ export declare const ENTITIES: {
1643
1655
  matched_terms: string[];
1644
1656
  missing_terms: string[];
1645
1657
  parent?: string | undefined;
1658
+ found_by?: ("meaning" | "words")[] | undefined;
1646
1659
  } | undefined;
1647
1660
  context?: {
1648
1661
  ref: string;
@@ -1707,6 +1720,7 @@ export declare const ENTITIES: {
1707
1720
  matched_terms: string[];
1708
1721
  missing_terms: string[];
1709
1722
  parent?: string | undefined;
1723
+ found_by?: ("meaning" | "words")[] | undefined;
1710
1724
  } | undefined;
1711
1725
  context?: {
1712
1726
  ref: string;
@@ -1786,6 +1800,7 @@ export declare const ENTITIES: {
1786
1800
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1787
1801
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1788
1802
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1803
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1789
1804
  }, undefined>, undefined>;
1790
1805
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1791
1806
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1972,6 +1987,7 @@ export declare const ENTITIES: {
1972
1987
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1973
1988
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1974
1989
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1990
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1975
1991
  }, undefined>, undefined>;
1976
1992
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1977
1993
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -2349,6 +2365,7 @@ export declare const ENTITIES: {
2349
2365
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2350
2366
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2351
2367
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
2368
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
2352
2369
  }, undefined>, undefined>;
2353
2370
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2354
2371
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -2535,6 +2552,7 @@ export declare const ENTITIES: {
2535
2552
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2536
2553
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2537
2554
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
2555
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
2538
2556
  }, undefined>, undefined>;
2539
2557
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2540
2558
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -2725,6 +2743,7 @@ export declare const ENTITIES: {
2725
2743
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2726
2744
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2727
2745
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
2746
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
2728
2747
  }, undefined>, undefined>;
2729
2748
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2730
2749
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -2911,6 +2930,7 @@ export declare const ENTITIES: {
2911
2930
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2912
2931
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2913
2932
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
2933
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
2914
2934
  }, undefined>, undefined>;
2915
2935
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
2916
2936
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -7310,6 +7330,7 @@ export declare const ENTITIES: {
7310
7330
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7311
7331
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7312
7332
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
7333
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
7313
7334
  }, undefined>, undefined>;
7314
7335
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
7315
7336
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -7496,6 +7517,7 @@ export declare const ENTITIES: {
7496
7517
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7497
7518
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7498
7519
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
7520
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
7499
7521
  }, undefined>, undefined>;
7500
7522
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
7501
7523
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -7679,6 +7701,10 @@ export declare const ENTITIES: {
7679
7701
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7680
7702
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
7681
7703
  }, undefined>, undefined>;
7704
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
7705
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7706
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7707
+ }, undefined>, undefined>;
7682
7708
  }, undefined>, v.StrictObjectSchema<{
7683
7709
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7684
7710
  readonly model: v.StringSchema<undefined>;
@@ -7794,6 +7820,10 @@ export declare const ENTITIES: {
7794
7820
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7795
7821
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
7796
7822
  }, undefined>, undefined>;
7823
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
7824
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7825
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7826
+ }, undefined>, undefined>;
7797
7827
  }, undefined>], undefined>;
7798
7828
  readonly conversation_embedding_status: v.StrictObjectSchema<{
7799
7829
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
@@ -7829,6 +7859,10 @@ export declare const ENTITIES: {
7829
7859
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
7830
7860
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
7831
7861
  }, undefined>, undefined>;
7862
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
7863
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7864
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
7865
+ }, undefined>, undefined>;
7832
7866
  }, undefined>;
7833
7867
  readonly conversation_hit: v.StrictObjectSchema<{
7834
7868
  readonly source: v.OptionalSchema<v.StrictObjectSchema<{
@@ -7913,6 +7947,7 @@ export declare const ENTITIES: {
7913
7947
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7914
7948
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
7915
7949
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
7950
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
7916
7951
  }, undefined>, undefined>;
7917
7952
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
7918
7953
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -8390,6 +8425,7 @@ export declare const ENTITIES: {
8390
8425
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
8391
8426
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
8392
8427
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
8428
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
8393
8429
  }, undefined>, undefined>;
8394
8430
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
8395
8431
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -9043,6 +9079,7 @@ export declare const ENTITIES: {
9043
9079
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
9044
9080
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
9045
9081
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
9082
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
9046
9083
  }, undefined>, undefined>;
9047
9084
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
9048
9085
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -9340,6 +9377,10 @@ export declare const ENTITIES: {
9340
9377
  readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
9341
9378
  readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
9342
9379
  }, undefined>, undefined>;
9380
+ readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
9381
+ readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
9382
+ readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
9383
+ }, undefined>, undefined>;
9343
9384
  }, undefined>, undefined>;
9344
9385
  }, undefined>, undefined>;
9345
9386
  readonly stopped: v.OptionalSchema<v.PicklistSchema<["bound", "partial_or_inaccessible", "fetch_failed"], undefined>, undefined>;
@@ -10625,6 +10666,7 @@ export declare const ENTITIES: {
10625
10666
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
10626
10667
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
10627
10668
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
10669
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
10628
10670
  }, undefined>, undefined>;
10629
10671
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
10630
10672
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -10811,6 +10853,7 @@ export declare const ENTITIES: {
10811
10853
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
10812
10854
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
10813
10855
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
10856
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
10814
10857
  }, undefined>, undefined>;
10815
10858
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
10816
10859
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -11035,6 +11078,7 @@ export declare const ENTITIES: {
11035
11078
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
11036
11079
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
11037
11080
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
11081
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
11038
11082
  }, undefined>, undefined>;
11039
11083
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
11040
11084
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -11221,6 +11265,7 @@ export declare const ENTITIES: {
11221
11265
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
11222
11266
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
11223
11267
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
11268
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
11224
11269
  }, undefined>, undefined>;
11225
11270
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
11226
11271
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -31,6 +31,7 @@ export declare const watchedMessage: v.StrictObjectSchema<{
31
31
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
32
32
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
33
33
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
34
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
34
35
  }, undefined>, undefined>;
35
36
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
36
37
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -509,6 +510,7 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
509
510
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
510
511
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
511
512
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
513
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
512
514
  }, undefined>, undefined>;
513
515
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
514
516
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1094,6 +1096,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1094
1096
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1095
1097
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1096
1098
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1099
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1097
1100
  }, undefined>, undefined>;
1098
1101
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1099
1102
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
@@ -1571,6 +1574,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
1571
1574
  readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1572
1575
  readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1573
1576
  readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
1577
+ readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
1574
1578
  }, undefined>, undefined>;
1575
1579
  readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
1576
1580
  readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;