@supa-media/tex-contract 0.2.7 → 0.3.1
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 +29 -0
- package/package.json +1 -1
- package/texContract/capabilities.cjs +47 -0
- package/texContract/capabilities.d.cts +27 -0
- package/texContract/capabilities.generated.json +77 -0
- package/texContract/reactEmoji.cjs +79 -0
- package/texContract/reactEmoji.d.cts +2 -0
- package/texContract/texNumber.cjs +20 -0
- package/texContract/texNumber.d.cts +3 -0
- package/texContract/texSettings.cjs +22 -0
- package/texContract/texSettings.d.cts +20 -0
- package/texContract/texSettings.generated.json +25 -0
- package/texContract/texStateFiles.cjs +22 -0
- package/texContract/texStateFiles.d.cts +9 -0
- package/texContract/texSteps.cjs +27 -0
- package/texContract/texSteps.d.cts +14 -0
- package/texContract/texSteps.generated.json +41 -0
- package/texShared/displayText.cjs +139 -0
- package/texShared/flags.cjs +35 -0
- package/texShared/flags.d.cts +2 -0
- package/texShared/githubOidc.ts +29 -11
- package/texShared/searchConfig.cjs +158 -0
- package/texShared/searchConfig.d.cts +11 -0
- package/texShared/searchConfig.json +645 -0
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
{
|
|
2
|
+
"searchConfig": 1,
|
|
3
|
+
"about": "Search's own config (Dev2, 2026-11-21: \"not only Tex uses search\"): every step a search runs, its settings and the wires between them. Read by the gateway's search for every caller (an AI client's search_notes, the app's search bar, Tex) through searchConfig.cjs, and edited in the Lab on the Search page. A Lab Promote changes this file in a pull request.",
|
|
4
|
+
"nodes": [
|
|
5
|
+
{
|
|
6
|
+
"id": "search",
|
|
7
|
+
"label": "Query",
|
|
8
|
+
"goal": "A search arrives (an AI client's search_notes, the app's search bar, Tex): pick the workspaces it asks, every one the person reaches unless a folder, a scope or the person's setting narrows it.",
|
|
9
|
+
"on": true,
|
|
10
|
+
"model": "code",
|
|
11
|
+
"kind": "input",
|
|
12
|
+
"icon": "door",
|
|
13
|
+
"file": "apps/mcp/src/search/config/nodes.js",
|
|
14
|
+
"x": 0,
|
|
15
|
+
"y": 0,
|
|
16
|
+
"settings": {},
|
|
17
|
+
"inSchema": [
|
|
18
|
+
{ "name": "query", "type": "text" },
|
|
19
|
+
{ "name": "prefix", "type": "text" },
|
|
20
|
+
{ "name": "only", "type": "list", "optional": true },
|
|
21
|
+
{ "name": "boost", "type": "text", "optional": true }
|
|
22
|
+
],
|
|
23
|
+
"outSchema": [
|
|
24
|
+
{ "name": "to", "type": "choice", "options": "open, none" },
|
|
25
|
+
{ "name": "query", "type": "text" },
|
|
26
|
+
{ "name": "prefix", "type": "text" },
|
|
27
|
+
{ "name": "names", "type": "ids" },
|
|
28
|
+
{ "name": "here", "type": "yesno" },
|
|
29
|
+
{ "name": "boost", "type": "text", "optional": true }
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "open",
|
|
34
|
+
"label": "Open as you",
|
|
35
|
+
"goal": "Open every workspace asked the way a tool call naming it does: the person's role there and its own privacy rules. One that cannot be opened now is left out and named unreached, never guessed at.",
|
|
36
|
+
"on": true,
|
|
37
|
+
"model": "code",
|
|
38
|
+
"icon": "shield",
|
|
39
|
+
"file": "apps/mcp/src/search/config/nodes.js · privacy/state.js",
|
|
40
|
+
"x": 240,
|
|
41
|
+
"y": 0,
|
|
42
|
+
"settings": {},
|
|
43
|
+
"inSchema": [
|
|
44
|
+
{ "name": "to", "type": "text", "optional": true },
|
|
45
|
+
{ "name": "query", "type": "text" },
|
|
46
|
+
{ "name": "prefix", "type": "text" },
|
|
47
|
+
{ "name": "names", "type": "ids" },
|
|
48
|
+
{ "name": "here", "type": "yesno" },
|
|
49
|
+
{ "name": "boost", "type": "text", "optional": true }
|
|
50
|
+
],
|
|
51
|
+
"outSchema": [
|
|
52
|
+
{ "name": "query", "type": "text" },
|
|
53
|
+
{ "name": "prefix", "type": "text" },
|
|
54
|
+
{ "name": "several", "type": "yesno" },
|
|
55
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
56
|
+
{ "name": "workspaces", "type": "list" },
|
|
57
|
+
{ "name": "unreached", "type": "ids" }
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "words",
|
|
62
|
+
"label": "Words",
|
|
63
|
+
"goal": "Nominates: notes holding the query's words in every workspace at once, ranked by the word index (BM25, titles and headings weighted), retried with any word when no note holds them all (those are marked loose). contentWords 1: where some note holds every word, the notes holding every word that is not filler (\"what did we\") are the hits instead. Only notes the person may see.",
|
|
64
|
+
"on": true,
|
|
65
|
+
"model": "code",
|
|
66
|
+
"icon": "text",
|
|
67
|
+
"file": "apps/mcp/src/search/visibleNotes.js · objectSearch.js",
|
|
68
|
+
"x": 480,
|
|
69
|
+
"y": -110,
|
|
70
|
+
"settings": { "contentWords": 1 },
|
|
71
|
+
"inSchema": [
|
|
72
|
+
{ "name": "query", "type": "text" },
|
|
73
|
+
{ "name": "prefix", "type": "text" },
|
|
74
|
+
{ "name": "several", "type": "yesno" },
|
|
75
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
76
|
+
{ "name": "workspaces", "type": "list" },
|
|
77
|
+
{ "name": "unreached", "type": "ids" },
|
|
78
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
79
|
+
],
|
|
80
|
+
"outSchema": [
|
|
81
|
+
{ "name": "query", "type": "text" },
|
|
82
|
+
{ "name": "prefix", "type": "text" },
|
|
83
|
+
{ "name": "several", "type": "yesno" },
|
|
84
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
85
|
+
{ "name": "workspaces", "type": "list" },
|
|
86
|
+
{ "name": "unreached", "type": "ids" },
|
|
87
|
+
{ "name": "byWords", "type": "object" }
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "rerankWords",
|
|
92
|
+
"label": "Rerank word hits",
|
|
93
|
+
"goal": "Ranks: each workspace’s first word hits (rerankTop, rerankChars of each) read beside the query by the cross-encoder one call per workspace, sent by Words the moment that workspace answers, while the others and Meaning still run, so its time hides behind theirs; each hit keeps its score for Rerank, which then reads it no more. Never adds or drops a note.",
|
|
94
|
+
"on": true,
|
|
95
|
+
"model": "code",
|
|
96
|
+
"icon": "star",
|
|
97
|
+
"file": "apps/mcp/src/search/rerank.js",
|
|
98
|
+
"x": 480,
|
|
99
|
+
"y": -270,
|
|
100
|
+
"settings": { "rerankTop": 8, "rerankChars": 400, "waitAfterMeaning": 5000 },
|
|
101
|
+
"inSchema": [
|
|
102
|
+
{ "name": "query", "type": "text" },
|
|
103
|
+
{ "name": "workspace", "type": "text" },
|
|
104
|
+
{ "name": "found", "type": "object" }
|
|
105
|
+
],
|
|
106
|
+
"outSchema": [
|
|
107
|
+
{ "name": "found", "type": "object" }
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "meaning",
|
|
112
|
+
"label": "Meaning",
|
|
113
|
+
"goal": "Nominates: the nearest passages to the query's embedding (embedded once per search) in every workspace at once, at least minScore close. Only notes the person may see; never plumbing or a search probe.",
|
|
114
|
+
"on": true,
|
|
115
|
+
"model": "code",
|
|
116
|
+
"icon": "star",
|
|
117
|
+
"file": "apps/mcp/src/search/meaning/serve.js meaningMatches",
|
|
118
|
+
"x": 480,
|
|
119
|
+
"y": 110,
|
|
120
|
+
"settings": { "minScore": 0.4 },
|
|
121
|
+
"inSchema": [
|
|
122
|
+
{ "name": "query", "type": "text" },
|
|
123
|
+
{ "name": "prefix", "type": "text" },
|
|
124
|
+
{ "name": "several", "type": "yesno" },
|
|
125
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
126
|
+
{ "name": "workspaces", "type": "list" },
|
|
127
|
+
{ "name": "unreached", "type": "ids" },
|
|
128
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
129
|
+
],
|
|
130
|
+
"outSchema": [
|
|
131
|
+
{ "name": "query", "type": "text" },
|
|
132
|
+
{ "name": "prefix", "type": "text" },
|
|
133
|
+
{ "name": "several", "type": "yesno" },
|
|
134
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
135
|
+
{ "name": "workspaces", "type": "list" },
|
|
136
|
+
{ "name": "unreached", "type": "ids" },
|
|
137
|
+
{ "name": "byMeaning", "type": "object" }
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "visible",
|
|
142
|
+
"label": "Only what you may see",
|
|
143
|
+
"goal": "Filters: both lists side by side per workspace, every note checked once more against the person's access there. A workspace whose word search failed is left out and named unreached.",
|
|
144
|
+
"on": true,
|
|
145
|
+
"model": "code",
|
|
146
|
+
"icon": "shield",
|
|
147
|
+
"file": "apps/mcp/src/search/config/nodes.js visibleStep",
|
|
148
|
+
"x": 720,
|
|
149
|
+
"y": 0,
|
|
150
|
+
"settings": {},
|
|
151
|
+
"inSchema": [
|
|
152
|
+
{ "name": "query", "type": "text" },
|
|
153
|
+
{ "name": "prefix", "type": "text" },
|
|
154
|
+
{ "name": "several", "type": "yesno" },
|
|
155
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
156
|
+
{ "name": "workspaces", "type": "list" },
|
|
157
|
+
{ "name": "unreached", "type": "ids" },
|
|
158
|
+
{ "name": "to", "type": "text", "optional": true },
|
|
159
|
+
{ "name": "byWords", "type": "object", "optional": true },
|
|
160
|
+
{ "name": "byMeaning", "type": "object", "optional": true }
|
|
161
|
+
],
|
|
162
|
+
"outSchema": [
|
|
163
|
+
{ "name": "query", "type": "text" },
|
|
164
|
+
{ "name": "prefix", "type": "text" },
|
|
165
|
+
{ "name": "several", "type": "yesno" },
|
|
166
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
167
|
+
{ "name": "workspaces", "type": "list" },
|
|
168
|
+
{ "name": "unreached", "type": "ids" }
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "probes",
|
|
173
|
+
"label": "Drop search probes",
|
|
174
|
+
"goal": "Filters: a benchmark's search-probe note is never an answer.",
|
|
175
|
+
"on": true,
|
|
176
|
+
"model": "code",
|
|
177
|
+
"icon": "trash",
|
|
178
|
+
"file": "apps/mcp/src/search/stages.js dropProbes",
|
|
179
|
+
"x": 960,
|
|
180
|
+
"y": 0,
|
|
181
|
+
"settings": {},
|
|
182
|
+
"inSchema": [
|
|
183
|
+
{ "name": "query", "type": "text" },
|
|
184
|
+
{ "name": "prefix", "type": "text" },
|
|
185
|
+
{ "name": "several", "type": "yesno" },
|
|
186
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
187
|
+
{ "name": "workspaces", "type": "list" },
|
|
188
|
+
{ "name": "unreached", "type": "ids" },
|
|
189
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
190
|
+
],
|
|
191
|
+
"outSchema": [
|
|
192
|
+
{ "name": "query", "type": "text" },
|
|
193
|
+
{ "name": "prefix", "type": "text" },
|
|
194
|
+
{ "name": "several", "type": "yesno" },
|
|
195
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
196
|
+
{ "name": "workspaces", "type": "list" },
|
|
197
|
+
{ "name": "unreached", "type": "ids" }
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "floor",
|
|
202
|
+
"label": "Close meaning only",
|
|
203
|
+
"goal": "Filters: once the words found a note with every word, a note only meaning found must be at least meaningFloor close.",
|
|
204
|
+
"on": true,
|
|
205
|
+
"model": "code",
|
|
206
|
+
"icon": "trash",
|
|
207
|
+
"file": "apps/mcp/src/search/stages.js closeMeaning",
|
|
208
|
+
"x": 1200,
|
|
209
|
+
"y": 0,
|
|
210
|
+
"settings": { "meaningFloor": 0.5 },
|
|
211
|
+
"inSchema": [
|
|
212
|
+
{ "name": "query", "type": "text" },
|
|
213
|
+
{ "name": "prefix", "type": "text" },
|
|
214
|
+
{ "name": "several", "type": "yesno" },
|
|
215
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
216
|
+
{ "name": "workspaces", "type": "list" },
|
|
217
|
+
{ "name": "unreached", "type": "ids" },
|
|
218
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
219
|
+
],
|
|
220
|
+
"outSchema": [
|
|
221
|
+
{ "name": "query", "type": "text" },
|
|
222
|
+
{ "name": "prefix", "type": "text" },
|
|
223
|
+
{ "name": "several", "type": "yesno" },
|
|
224
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
225
|
+
{ "name": "workspaces", "type": "list" },
|
|
226
|
+
{ "name": "unreached", "type": "ids" }
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "merge",
|
|
231
|
+
"label": "Merge",
|
|
232
|
+
"goal": "Merges: one row per note from the word list and the meaning list, each adding 1 / (rrfK + rank + 1), so a note both find rises. A hit whose words sit only in a link counts as loose, and loose hits go last. No merge when meaning found nothing: the word hits stand as they are.",
|
|
233
|
+
"on": true,
|
|
234
|
+
"model": "code",
|
|
235
|
+
"icon": "wire",
|
|
236
|
+
"file": "apps/mcp/src/search/stages.js mergeLists",
|
|
237
|
+
"x": 1440,
|
|
238
|
+
"y": 0,
|
|
239
|
+
"settings": { "rrfK": 60 },
|
|
240
|
+
"inSchema": [
|
|
241
|
+
{ "name": "query", "type": "text" },
|
|
242
|
+
{ "name": "prefix", "type": "text" },
|
|
243
|
+
{ "name": "several", "type": "yesno" },
|
|
244
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
245
|
+
{ "name": "workspaces", "type": "list" },
|
|
246
|
+
{ "name": "unreached", "type": "ids" },
|
|
247
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
248
|
+
],
|
|
249
|
+
"outSchema": [
|
|
250
|
+
{ "name": "query", "type": "text" },
|
|
251
|
+
{ "name": "prefix", "type": "text" },
|
|
252
|
+
{ "name": "several", "type": "yesno" },
|
|
253
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
254
|
+
{ "name": "workspaces", "type": "list" },
|
|
255
|
+
{ "name": "unreached", "type": "ids" }
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "title",
|
|
260
|
+
"label": "Title and phrase",
|
|
261
|
+
"goal": "Ranks: a word hit gains titleWeight for each share of the query's terms its title or file name holds, and phraseBonus when the whole query is a phrase in its title or file name (snippetPhraseBonus when only in its text). Only when one workspace is searched; across several, Merge across workspaces does it.",
|
|
262
|
+
"on": true,
|
|
263
|
+
"model": "code",
|
|
264
|
+
"icon": "queue",
|
|
265
|
+
"file": "apps/mcp/src/search/stages.js addEvidence · evidence.js",
|
|
266
|
+
"x": 1680,
|
|
267
|
+
"y": 0,
|
|
268
|
+
"settings": { "phraseBonus": 0.00819672131147541, "snippetPhraseBonus": 0, "titleWeight": 0.003278688524590164 },
|
|
269
|
+
"inSchema": [
|
|
270
|
+
{ "name": "query", "type": "text" },
|
|
271
|
+
{ "name": "prefix", "type": "text" },
|
|
272
|
+
{ "name": "several", "type": "yesno" },
|
|
273
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
274
|
+
{ "name": "workspaces", "type": "list" },
|
|
275
|
+
{ "name": "unreached", "type": "ids" },
|
|
276
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
277
|
+
],
|
|
278
|
+
"outSchema": [
|
|
279
|
+
{ "name": "query", "type": "text" },
|
|
280
|
+
{ "name": "prefix", "type": "text" },
|
|
281
|
+
{ "name": "several", "type": "yesno" },
|
|
282
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
283
|
+
{ "name": "workspaces", "type": "list" },
|
|
284
|
+
{ "name": "unreached", "type": "ids" }
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "prior",
|
|
289
|
+
"label": "Lower logs and archive",
|
|
290
|
+
"goal": "Ranks: an archived note or a log (Inbox captures, Tex's own logs, review logs, retired setups) scores logPrior of a live note with the same evidence. A note still unfiled in the Inbox scores inboxPrior.",
|
|
291
|
+
"on": true,
|
|
292
|
+
"model": "code",
|
|
293
|
+
"icon": "queue",
|
|
294
|
+
"file": "apps/mcp/src/search/stages.js lowerByPath · priors.js",
|
|
295
|
+
"x": 1920,
|
|
296
|
+
"y": 0,
|
|
297
|
+
"settings": { "inboxPrior": 0.5, "logPrior": 0.5 },
|
|
298
|
+
"inSchema": [
|
|
299
|
+
{ "name": "query", "type": "text" },
|
|
300
|
+
{ "name": "prefix", "type": "text" },
|
|
301
|
+
{ "name": "several", "type": "yesno" },
|
|
302
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
303
|
+
{ "name": "workspaces", "type": "list" },
|
|
304
|
+
{ "name": "unreached", "type": "ids" },
|
|
305
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
306
|
+
],
|
|
307
|
+
"outSchema": [
|
|
308
|
+
{ "name": "query", "type": "text" },
|
|
309
|
+
{ "name": "prefix", "type": "text" },
|
|
310
|
+
{ "name": "several", "type": "yesno" },
|
|
311
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
312
|
+
{ "name": "workspaces", "type": "list" },
|
|
313
|
+
{ "name": "unreached", "type": "ids" }
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "opens",
|
|
318
|
+
"label": "Opened before",
|
|
319
|
+
"goal": "Ranks: a note people open rises, counted in the note's own workspace: the searcher's own opens in the app (openMine), everyone else's (openPeople) and AI clients' reads (openAi), each apart and each as weight x log2(1 + opens), and only for a note holding every word, so opens order the notes a query is about and never lift one it merely brushes. Being listed by a search never counts, only an open.",
|
|
320
|
+
"on": true,
|
|
321
|
+
"model": "code",
|
|
322
|
+
"icon": "star",
|
|
323
|
+
"file": "apps/mcp/src/search/stages.js byOpens · opens.js · workspaceStore/opens.js",
|
|
324
|
+
"x": 2160,
|
|
325
|
+
"y": 0,
|
|
326
|
+
"settings": { "openMine": 0.3, "openPeople": 0.1, "openAi": 0.02 },
|
|
327
|
+
"inSchema": [
|
|
328
|
+
{ "name": "query", "type": "text" },
|
|
329
|
+
{ "name": "prefix", "type": "text" },
|
|
330
|
+
{ "name": "several", "type": "yesno" },
|
|
331
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
332
|
+
{ "name": "workspaces", "type": "list" },
|
|
333
|
+
{ "name": "unreached", "type": "ids" },
|
|
334
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
335
|
+
],
|
|
336
|
+
"outSchema": [
|
|
337
|
+
{ "name": "query", "type": "text" },
|
|
338
|
+
{ "name": "prefix", "type": "text" },
|
|
339
|
+
{ "name": "several", "type": "yesno" },
|
|
340
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
341
|
+
{ "name": "workspaces", "type": "list" },
|
|
342
|
+
{ "name": "unreached", "type": "ids" }
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"id": "budget",
|
|
347
|
+
"label": "Meaning-only budget",
|
|
348
|
+
"goal": "Filters: every word hit stays; of the notes only meaning found, the best extraNotes (looseReads when no note held every word).",
|
|
349
|
+
"on": true,
|
|
350
|
+
"model": "code",
|
|
351
|
+
"icon": "trash",
|
|
352
|
+
"file": "apps/mcp/src/search/stages.js meaningBudget",
|
|
353
|
+
"x": 2400,
|
|
354
|
+
"y": 0,
|
|
355
|
+
"settings": { "extraNotes": 3, "looseReads": 6 },
|
|
356
|
+
"inSchema": [
|
|
357
|
+
{ "name": "query", "type": "text" },
|
|
358
|
+
{ "name": "prefix", "type": "text" },
|
|
359
|
+
{ "name": "several", "type": "yesno" },
|
|
360
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
361
|
+
{ "name": "workspaces", "type": "list" },
|
|
362
|
+
{ "name": "unreached", "type": "ids" },
|
|
363
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
364
|
+
],
|
|
365
|
+
"outSchema": [
|
|
366
|
+
{ "name": "query", "type": "text" },
|
|
367
|
+
{ "name": "prefix", "type": "text" },
|
|
368
|
+
{ "name": "several", "type": "yesno" },
|
|
369
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
370
|
+
{ "name": "workspaces", "type": "list" },
|
|
371
|
+
{ "name": "unreached", "type": "ids" }
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "snippets",
|
|
376
|
+
"label": "Read snippets",
|
|
377
|
+
"goal": "Each kept note only meaning found is read for its title and the passage that matched, snippetChars long, all at once.",
|
|
378
|
+
"on": true,
|
|
379
|
+
"model": "code",
|
|
380
|
+
"icon": "card",
|
|
381
|
+
"file": "apps/mcp/src/search/meaning/serve.js readMeaningOnly",
|
|
382
|
+
"x": 2640,
|
|
383
|
+
"y": 0,
|
|
384
|
+
"settings": { "snippetChars": 200 },
|
|
385
|
+
"inSchema": [
|
|
386
|
+
{ "name": "query", "type": "text" },
|
|
387
|
+
{ "name": "prefix", "type": "text" },
|
|
388
|
+
{ "name": "several", "type": "yesno" },
|
|
389
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
390
|
+
{ "name": "workspaces", "type": "list" },
|
|
391
|
+
{ "name": "unreached", "type": "ids" },
|
|
392
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
393
|
+
],
|
|
394
|
+
"outSchema": [
|
|
395
|
+
{ "name": "query", "type": "text" },
|
|
396
|
+
{ "name": "prefix", "type": "text" },
|
|
397
|
+
{ "name": "several", "type": "yesno" },
|
|
398
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
399
|
+
{ "name": "workspaces", "type": "list" },
|
|
400
|
+
{ "name": "unreached", "type": "ids" }
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"id": "rerank",
|
|
405
|
+
"label": "Rerank",
|
|
406
|
+
"goal": "Ranks: each workspace’s first rows (rerankTop, rerankChars of each) read beside the query by a cross-encoder, every workspace in one call; a row Rerank word hits already scored is not read again, and with readLate 0 the rest keep their places unread (no call here). Each adds a part for its place (rerankWeight, as one more reciprocal-rank list, under the path prior) and keeps the model’s score, which Rank across workspaces ranks together. Never adds or drops a note. Off on main until a Lab draft shows it helps.",
|
|
407
|
+
"on": true,
|
|
408
|
+
"model": "code",
|
|
409
|
+
"icon": "star",
|
|
410
|
+
"file": "apps/mcp/src/search/rerank.js",
|
|
411
|
+
"x": 2880,
|
|
412
|
+
"y": 0,
|
|
413
|
+
"settings": { "readLate": 0, "rerankChars": 400, "rerankTop": 8, "rerankWeight": 1 },
|
|
414
|
+
"inSchema": [
|
|
415
|
+
{ "name": "query", "type": "text" },
|
|
416
|
+
{ "name": "prefix", "type": "text" },
|
|
417
|
+
{ "name": "several", "type": "yesno" },
|
|
418
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
419
|
+
{ "name": "workspaces", "type": "list" },
|
|
420
|
+
{ "name": "unreached", "type": "ids" }
|
|
421
|
+
],
|
|
422
|
+
"outSchema": [
|
|
423
|
+
{ "name": "query", "type": "text" },
|
|
424
|
+
{ "name": "prefix", "type": "text" },
|
|
425
|
+
{ "name": "several", "type": "yesno" },
|
|
426
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
427
|
+
{ "name": "workspaces", "type": "list" },
|
|
428
|
+
{ "name": "unreached", "type": "ids" }
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "code",
|
|
433
|
+
"label": "Drop code passages",
|
|
434
|
+
"goal": "Filters: a code passage found only by meaning is not offered for a question in prose (one workspace; across several, Merge across workspaces does it), and a note that could not be read is dropped.",
|
|
435
|
+
"on": true,
|
|
436
|
+
"model": "code",
|
|
437
|
+
"icon": "trash",
|
|
438
|
+
"file": "apps/mcp/src/search/stages.js answerHits",
|
|
439
|
+
"x": 3120,
|
|
440
|
+
"y": 0,
|
|
441
|
+
"settings": {},
|
|
442
|
+
"inSchema": [
|
|
443
|
+
{ "name": "query", "type": "text" },
|
|
444
|
+
{ "name": "prefix", "type": "text" },
|
|
445
|
+
{ "name": "several", "type": "yesno" },
|
|
446
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
447
|
+
{ "name": "workspaces", "type": "list" },
|
|
448
|
+
{ "name": "unreached", "type": "ids" },
|
|
449
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
450
|
+
],
|
|
451
|
+
"outSchema": [
|
|
452
|
+
{ "name": "query", "type": "text" },
|
|
453
|
+
{ "name": "prefix", "type": "text" },
|
|
454
|
+
{ "name": "several", "type": "yesno" },
|
|
455
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
456
|
+
{ "name": "workspaces", "type": "list" },
|
|
457
|
+
{ "name": "unreached", "type": "ids" },
|
|
458
|
+
{ "name": "to", "type": "choice", "options": "one, several" }
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"id": "fuse",
|
|
463
|
+
"label": "Merge across workspaces",
|
|
464
|
+
"goal": "Merges and ranks when several workspaces answered: one list ranked by evidence rather than by workspace: word rank (a loose hit counted lower), rank among every meaning match, title and phrase evidence, the path prior and a named workspace's boost; the meaning-only budget once for the whole answer; at most hits shown.",
|
|
465
|
+
"on": true,
|
|
466
|
+
"model": "code",
|
|
467
|
+
"icon": "wire",
|
|
468
|
+
"file": "apps/mcp/src/search/config/nodes.js · tools/search.js",
|
|
469
|
+
"x": 3360,
|
|
470
|
+
"y": 110,
|
|
471
|
+
"settings": {
|
|
472
|
+
"boostFactor": 1.2,
|
|
473
|
+
"hits": 12,
|
|
474
|
+
"inboxPrior": 0.5,
|
|
475
|
+
"logPrior": 0.5,
|
|
476
|
+
"loosePenalty": 10,
|
|
477
|
+
"looseReads": 6,
|
|
478
|
+
"meaningFloor": 0.5,
|
|
479
|
+
"phraseBonus": 0.00819672131147541,
|
|
480
|
+
"rrfK": 60,
|
|
481
|
+
"snippetPhraseBonus": 0,
|
|
482
|
+
"titleWeight": 0.003278688524590164,
|
|
483
|
+
"rerankWeight": 1,
|
|
484
|
+
"sharedWords": 2,
|
|
485
|
+
"workspaceWeight": 0,
|
|
486
|
+
"openMine": 0.3,
|
|
487
|
+
"openPeople": 0.1,
|
|
488
|
+
"openAi": 0.02
|
|
489
|
+
},
|
|
490
|
+
"inSchema": [
|
|
491
|
+
{ "name": "query", "type": "text" },
|
|
492
|
+
{ "name": "prefix", "type": "text" },
|
|
493
|
+
{ "name": "several", "type": "yesno" },
|
|
494
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
495
|
+
{ "name": "workspaces", "type": "list" },
|
|
496
|
+
{ "name": "unreached", "type": "ids" },
|
|
497
|
+
{ "name": "to", "type": "text", "optional": true }
|
|
498
|
+
],
|
|
499
|
+
"outSchema": [
|
|
500
|
+
{ "name": "answer", "type": "object" }
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"id": "answer",
|
|
505
|
+
"label": "Answer",
|
|
506
|
+
"goal": "The fused list across workspaces, or the one workspace's, with who answered and who could not be reached.",
|
|
507
|
+
"on": true,
|
|
508
|
+
"model": "code",
|
|
509
|
+
"icon": "send",
|
|
510
|
+
"file": "apps/mcp/src/search/config/nodes.js answerStep",
|
|
511
|
+
"x": 3600,
|
|
512
|
+
"y": 0,
|
|
513
|
+
"settings": {},
|
|
514
|
+
"inSchema": [
|
|
515
|
+
{ "name": "query", "type": "text", "optional": true },
|
|
516
|
+
{ "name": "prefix", "type": "text", "optional": true },
|
|
517
|
+
{ "name": "several", "type": "yesno", "optional": true },
|
|
518
|
+
{ "name": "boost", "type": "text", "optional": true },
|
|
519
|
+
{ "name": "workspaces", "type": "list", "optional": true },
|
|
520
|
+
{ "name": "unreached", "type": "ids", "optional": true },
|
|
521
|
+
{ "name": "to", "type": "text", "optional": true },
|
|
522
|
+
{ "name": "answer", "type": "object", "optional": true }
|
|
523
|
+
],
|
|
524
|
+
"outSchema": [
|
|
525
|
+
{ "name": "answer", "type": "object" }
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"edges": [
|
|
530
|
+
{
|
|
531
|
+
"from": "search",
|
|
532
|
+
"to": "open",
|
|
533
|
+
"mode": "wait",
|
|
534
|
+
"when": ["open"]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"from": "open",
|
|
538
|
+
"to": "words",
|
|
539
|
+
"mode": "wait",
|
|
540
|
+
"when": ["*"]
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"from": "open",
|
|
544
|
+
"to": "meaning",
|
|
545
|
+
"mode": "wait",
|
|
546
|
+
"when": ["*"]
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"from": "words",
|
|
550
|
+
"to": "rerankWords",
|
|
551
|
+
"mode": "uses",
|
|
552
|
+
"when": ["*"]
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"from": "words",
|
|
556
|
+
"to": "visible",
|
|
557
|
+
"mode": "wait",
|
|
558
|
+
"when": ["*"]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"from": "meaning",
|
|
562
|
+
"to": "visible",
|
|
563
|
+
"mode": "wait",
|
|
564
|
+
"when": ["*"]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"from": "visible",
|
|
568
|
+
"to": "probes",
|
|
569
|
+
"mode": "wait",
|
|
570
|
+
"when": ["*"]
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"from": "probes",
|
|
574
|
+
"to": "floor",
|
|
575
|
+
"mode": "wait",
|
|
576
|
+
"when": ["*"]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"from": "floor",
|
|
580
|
+
"to": "merge",
|
|
581
|
+
"mode": "wait",
|
|
582
|
+
"when": ["*"]
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"from": "merge",
|
|
586
|
+
"to": "title",
|
|
587
|
+
"mode": "wait",
|
|
588
|
+
"when": ["*"]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"from": "title",
|
|
592
|
+
"to": "prior",
|
|
593
|
+
"mode": "wait",
|
|
594
|
+
"when": ["*"]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"from": "prior",
|
|
598
|
+
"to": "opens",
|
|
599
|
+
"mode": "wait",
|
|
600
|
+
"when": ["*"]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"from": "opens",
|
|
604
|
+
"to": "budget",
|
|
605
|
+
"mode": "wait",
|
|
606
|
+
"when": ["*"]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"from": "budget",
|
|
610
|
+
"to": "snippets",
|
|
611
|
+
"mode": "wait",
|
|
612
|
+
"when": ["*"]
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"from": "snippets",
|
|
616
|
+
"to": "rerank",
|
|
617
|
+
"mode": "wait",
|
|
618
|
+
"when": ["*"]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"from": "rerank",
|
|
622
|
+
"to": "code",
|
|
623
|
+
"mode": "wait",
|
|
624
|
+
"when": ["*"]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"from": "code",
|
|
628
|
+
"to": "fuse",
|
|
629
|
+
"mode": "wait",
|
|
630
|
+
"when": ["several"]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"from": "code",
|
|
634
|
+
"to": "answer",
|
|
635
|
+
"mode": "wait",
|
|
636
|
+
"when": ["one"]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"from": "fuse",
|
|
640
|
+
"to": "answer",
|
|
641
|
+
"mode": "wait",
|
|
642
|
+
"when": ["*"]
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
}
|