noverload-mcp 0.8.4 ā 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +39 -19
- package/dist/index.js.map +1 -1
- package/dist/tools/implementations/_archived/estimate-tokens.d.ts +3 -0
- package/dist/tools/implementations/_archived/estimate-tokens.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/estimate-tokens.js +54 -0
- package/dist/tools/implementations/_archived/estimate-tokens.js.map +1 -0
- package/dist/tools/implementations/_archived/expand-search.d.ts +3 -0
- package/dist/tools/implementations/_archived/expand-search.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/expand-search.js +400 -0
- package/dist/tools/implementations/_archived/expand-search.js.map +1 -0
- package/dist/tools/implementations/_archived/extract-insights.d.ts +3 -0
- package/dist/tools/implementations/_archived/extract-insights.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/extract-insights.js +130 -0
- package/dist/tools/implementations/_archived/extract-insights.js.map +1 -0
- package/dist/tools/implementations/_archived/find-connections.d.ts +3 -0
- package/dist/tools/implementations/_archived/find-connections.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/find-connections.js +106 -0
- package/dist/tools/implementations/_archived/find-connections.js.map +1 -0
- package/dist/tools/implementations/_archived/instructions.d.ts +3 -0
- package/dist/tools/implementations/_archived/instructions.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/instructions.js +88 -0
- package/dist/tools/implementations/_archived/instructions.js.map +1 -0
- package/dist/tools/implementations/_archived/knowledge-graph.d.ts +3 -0
- package/dist/tools/implementations/_archived/knowledge-graph.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/knowledge-graph.js +278 -0
- package/dist/tools/implementations/_archived/knowledge-graph.js.map +1 -0
- package/dist/tools/implementations/_archived/plan-query.d.ts +3 -0
- package/dist/tools/implementations/_archived/plan-query.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/plan-query.js +63 -0
- package/dist/tools/implementations/_archived/plan-query.js.map +1 -0
- package/dist/tools/implementations/_archived/raw-content.d.ts +3 -0
- package/dist/tools/implementations/_archived/raw-content.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/raw-content.js +210 -0
- package/dist/tools/implementations/_archived/raw-content.js.map +1 -0
- package/dist/tools/implementations/_archived/similar-content.d.ts +3 -0
- package/dist/tools/implementations/_archived/similar-content.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/similar-content.js +64 -0
- package/dist/tools/implementations/_archived/similar-content.js.map +1 -0
- package/dist/tools/implementations/_archived/smart-sections.d.ts +3 -0
- package/dist/tools/implementations/_archived/smart-sections.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/smart-sections.js +471 -0
- package/dist/tools/implementations/_archived/smart-sections.js.map +1 -0
- package/dist/tools/implementations/_archived/synthesize.d.ts +3 -0
- package/dist/tools/implementations/_archived/synthesize.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/synthesize.js +193 -0
- package/dist/tools/implementations/_archived/synthesize.js.map +1 -0
- package/dist/tools/implementations/_archived/timeline.d.ts +3 -0
- package/dist/tools/implementations/_archived/timeline.d.ts.map +1 -0
- package/dist/tools/implementations/_archived/timeline.js +191 -0
- package/dist/tools/implementations/_archived/timeline.js.map +1 -0
- package/dist/tools/index.d.ts +3 -15
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +31 -57
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const inputSchema = z.object({
|
|
3
|
+
contentId: z.string().describe("ID of the content to section"),
|
|
4
|
+
query: z
|
|
5
|
+
.string()
|
|
6
|
+
.optional()
|
|
7
|
+
.describe("Optional: Extract specific section matching this query"),
|
|
8
|
+
maxSections: z
|
|
9
|
+
.number()
|
|
10
|
+
.optional()
|
|
11
|
+
.default(10)
|
|
12
|
+
.describe("Maximum number of sections to return"),
|
|
13
|
+
sectionType: z
|
|
14
|
+
.enum([
|
|
15
|
+
"all",
|
|
16
|
+
"introduction",
|
|
17
|
+
"methods",
|
|
18
|
+
"results",
|
|
19
|
+
"examples",
|
|
20
|
+
"conclusion",
|
|
21
|
+
"code",
|
|
22
|
+
"steps",
|
|
23
|
+
])
|
|
24
|
+
.optional()
|
|
25
|
+
.default("all")
|
|
26
|
+
.describe("Type of sections to extract"),
|
|
27
|
+
});
|
|
28
|
+
// Pattern definitions for different section types
|
|
29
|
+
const SECTION_PATTERNS = {
|
|
30
|
+
introduction: {
|
|
31
|
+
patterns: [
|
|
32
|
+
/^#+\s*(introduction|intro|overview|background|abstract)/im,
|
|
33
|
+
/^(In this (article|post|guide|tutorial|video|document))/im,
|
|
34
|
+
/^(This (article|post|guide|tutorial) (covers|explains|discusses))/im,
|
|
35
|
+
],
|
|
36
|
+
keywords: [
|
|
37
|
+
"introduction",
|
|
38
|
+
"overview",
|
|
39
|
+
"background",
|
|
40
|
+
"summary",
|
|
41
|
+
"abstract",
|
|
42
|
+
"preface",
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
patterns: [
|
|
47
|
+
/^#+\s*(method|methodology|approach|implementation|how to|steps)/im,
|
|
48
|
+
/^(Step \d+[:.])/im,
|
|
49
|
+
/^(\d+\.\s+)/m,
|
|
50
|
+
],
|
|
51
|
+
keywords: [
|
|
52
|
+
"method",
|
|
53
|
+
"approach",
|
|
54
|
+
"process",
|
|
55
|
+
"procedure",
|
|
56
|
+
"technique",
|
|
57
|
+
"algorithm",
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
results: {
|
|
61
|
+
patterns: [
|
|
62
|
+
/^#+\s*(results?|findings?|outcomes?|performance|metrics)/im,
|
|
63
|
+
/(achieved|reached|resulted in|showed|demonstrated)/i,
|
|
64
|
+
],
|
|
65
|
+
keywords: [
|
|
66
|
+
"results",
|
|
67
|
+
"findings",
|
|
68
|
+
"outcomes",
|
|
69
|
+
"performance",
|
|
70
|
+
"metrics",
|
|
71
|
+
"data",
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
examples: {
|
|
75
|
+
patterns: [
|
|
76
|
+
/^#+\s*(examples?|case stud|use cases?|scenarios?|demonstrations?)/im,
|
|
77
|
+
/(for example|for instance|such as|consider|let's say)/i,
|
|
78
|
+
],
|
|
79
|
+
keywords: [
|
|
80
|
+
"example",
|
|
81
|
+
"case",
|
|
82
|
+
"instance",
|
|
83
|
+
"scenario",
|
|
84
|
+
"demonstration",
|
|
85
|
+
"illustration",
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
conclusion: {
|
|
89
|
+
patterns: [
|
|
90
|
+
/^#+\s*(conclusion|summary|final thoughts|takeaways?|wrap.?up)/im,
|
|
91
|
+
/^(In conclusion|To conclude|In summary|To sum up)/im,
|
|
92
|
+
],
|
|
93
|
+
keywords: [
|
|
94
|
+
"conclusion",
|
|
95
|
+
"summary",
|
|
96
|
+
"takeaway",
|
|
97
|
+
"final",
|
|
98
|
+
"closing",
|
|
99
|
+
"recap",
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
code: {
|
|
103
|
+
patterns: [/```[\s\S]*?```/g, /^```(\w+)?\n([\s\S]*?)^```/gm],
|
|
104
|
+
keywords: [
|
|
105
|
+
"code",
|
|
106
|
+
"snippet",
|
|
107
|
+
"implementation",
|
|
108
|
+
"function",
|
|
109
|
+
"class",
|
|
110
|
+
"script",
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
steps: {
|
|
114
|
+
patterns: [
|
|
115
|
+
/^(Step \d+[:.])/im,
|
|
116
|
+
/^(\d+\.\s+)/m,
|
|
117
|
+
/^(First|Second|Third|Next|Then|Finally|Lastly)/im,
|
|
118
|
+
],
|
|
119
|
+
keywords: [
|
|
120
|
+
"step",
|
|
121
|
+
"phase",
|
|
122
|
+
"stage",
|
|
123
|
+
"instruction",
|
|
124
|
+
"direction",
|
|
125
|
+
"procedure",
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
function detectSections(content, sectionType) {
|
|
130
|
+
const sections = [];
|
|
131
|
+
const lines = content.split("\n");
|
|
132
|
+
// Try to detect natural boundaries
|
|
133
|
+
let currentSection = null;
|
|
134
|
+
let sectionId = 0;
|
|
135
|
+
for (let i = 0; i < lines.length; i++) {
|
|
136
|
+
const line = lines[i];
|
|
137
|
+
const linePosition = lines.slice(0, i).join("\n").length;
|
|
138
|
+
// Check for headers (markdown style)
|
|
139
|
+
const headerMatch = line.match(/^(#{1,6})\s+(.+)/);
|
|
140
|
+
if (headerMatch) {
|
|
141
|
+
// Save previous section if exists
|
|
142
|
+
if (currentSection && currentSection.content) {
|
|
143
|
+
sections.push(currentSection);
|
|
144
|
+
}
|
|
145
|
+
// Start new section
|
|
146
|
+
currentSection = {
|
|
147
|
+
id: `section-${++sectionId}`,
|
|
148
|
+
type: detectSectionType(headerMatch[2]),
|
|
149
|
+
title: headerMatch[2],
|
|
150
|
+
content: "",
|
|
151
|
+
startPosition: linePosition,
|
|
152
|
+
endPosition: linePosition,
|
|
153
|
+
tokenCount: 0,
|
|
154
|
+
metadata: {},
|
|
155
|
+
};
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
// Check for numbered lists as potential steps
|
|
159
|
+
const numberedMatch = line.match(/^(\d+)\.\s+(.+)/);
|
|
160
|
+
if (numberedMatch && (sectionType === "all" || sectionType === "steps")) {
|
|
161
|
+
if (!currentSection || currentSection.type !== "steps") {
|
|
162
|
+
if (currentSection && currentSection.content) {
|
|
163
|
+
sections.push(currentSection);
|
|
164
|
+
}
|
|
165
|
+
currentSection = {
|
|
166
|
+
id: `section-${++sectionId}`,
|
|
167
|
+
type: "steps",
|
|
168
|
+
title: "Steps",
|
|
169
|
+
content: "",
|
|
170
|
+
startPosition: linePosition,
|
|
171
|
+
endPosition: linePosition,
|
|
172
|
+
tokenCount: 0,
|
|
173
|
+
metadata: { hasSteps: true },
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// Add content to current section
|
|
178
|
+
if (currentSection) {
|
|
179
|
+
currentSection.content += line + "\n";
|
|
180
|
+
currentSection.endPosition = linePosition + line.length;
|
|
181
|
+
}
|
|
182
|
+
else if (sections.length === 0) {
|
|
183
|
+
// Create initial section if no headers found yet
|
|
184
|
+
currentSection = {
|
|
185
|
+
id: `section-${++sectionId}`,
|
|
186
|
+
type: "introduction",
|
|
187
|
+
title: "Content",
|
|
188
|
+
content: line + "\n",
|
|
189
|
+
startPosition: 0,
|
|
190
|
+
endPosition: line.length,
|
|
191
|
+
tokenCount: 0,
|
|
192
|
+
metadata: {},
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Don't forget the last section
|
|
197
|
+
if (currentSection && currentSection.content) {
|
|
198
|
+
sections.push(currentSection);
|
|
199
|
+
}
|
|
200
|
+
// Calculate token counts and detect metadata
|
|
201
|
+
for (const section of sections) {
|
|
202
|
+
section.tokenCount = Math.ceil(section.content.length / 4); // Rough estimate
|
|
203
|
+
// Detect metadata
|
|
204
|
+
section.metadata = {
|
|
205
|
+
hasCode: /```[\s\S]*?```/.test(section.content),
|
|
206
|
+
hasSteps: /^(\d+\.\s+|Step \d+)/m.test(section.content),
|
|
207
|
+
hasExamples: /(example|instance|such as|for instance)/i.test(section.content),
|
|
208
|
+
keyTopics: extractKeyTopics(section.content),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
return sections;
|
|
212
|
+
}
|
|
213
|
+
function detectSectionType(title) {
|
|
214
|
+
const titleLower = title.toLowerCase();
|
|
215
|
+
for (const [type, config] of Object.entries(SECTION_PATTERNS)) {
|
|
216
|
+
for (const keyword of config.keywords) {
|
|
217
|
+
if (titleLower.includes(keyword)) {
|
|
218
|
+
return type;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return "content";
|
|
223
|
+
}
|
|
224
|
+
function extractKeyTopics(content) {
|
|
225
|
+
// Simple topic extraction based on capitalized phrases and repeated terms
|
|
226
|
+
const topics = new Set();
|
|
227
|
+
// Find capitalized phrases (potential topics)
|
|
228
|
+
const capitalizedPhrases = content.match(/[A-Z][a-z]+(?:\s+[A-Z][a-z]+)*/g);
|
|
229
|
+
if (capitalizedPhrases) {
|
|
230
|
+
capitalizedPhrases.forEach((phrase) => {
|
|
231
|
+
if (phrase.length > 3 &&
|
|
232
|
+
!phrase.match(/^(The|This|That|These|Those|A|An)$/)) {
|
|
233
|
+
topics.add(phrase);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
return Array.from(topics).slice(0, 5);
|
|
238
|
+
}
|
|
239
|
+
function findSectionByQuery(sections, query) {
|
|
240
|
+
const queryLower = query.toLowerCase();
|
|
241
|
+
const queryWords = queryLower.split(/\s+/);
|
|
242
|
+
// Score each section based on query relevance
|
|
243
|
+
const scoredSections = sections.map((section) => {
|
|
244
|
+
let score = 0;
|
|
245
|
+
const sectionLower = (section.title + " " + section.content).toLowerCase();
|
|
246
|
+
// Check for exact phrase match
|
|
247
|
+
if (sectionLower.includes(queryLower)) {
|
|
248
|
+
score += 10;
|
|
249
|
+
}
|
|
250
|
+
// Check for individual word matches
|
|
251
|
+
for (const word of queryWords) {
|
|
252
|
+
if (sectionLower.includes(word)) {
|
|
253
|
+
score += 2;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
// Bonus for title matches
|
|
257
|
+
if (section.title.toLowerCase().includes(queryLower)) {
|
|
258
|
+
score += 5;
|
|
259
|
+
}
|
|
260
|
+
return { section, score };
|
|
261
|
+
});
|
|
262
|
+
// Sort by score and return top matches
|
|
263
|
+
return scoredSections
|
|
264
|
+
.filter((s) => s.score > 0)
|
|
265
|
+
.sort((a, b) => b.score - a.score)
|
|
266
|
+
.map((s) => ({ ...s.section, relevance: s.score }));
|
|
267
|
+
}
|
|
268
|
+
export const smartSectionsTool = {
|
|
269
|
+
name: "noverload_smart_sections",
|
|
270
|
+
description: "Extract and navigate specific sections from large documents. Finds natural content boundaries, identifies section types, and retrieves specific parts by semantic meaning.",
|
|
271
|
+
inputSchema: {
|
|
272
|
+
type: "object",
|
|
273
|
+
properties: {
|
|
274
|
+
contentId: {
|
|
275
|
+
type: "string",
|
|
276
|
+
description: "ID of the content to section",
|
|
277
|
+
},
|
|
278
|
+
query: {
|
|
279
|
+
type: "string",
|
|
280
|
+
description: "Optional: Extract specific section matching this query",
|
|
281
|
+
},
|
|
282
|
+
maxSections: {
|
|
283
|
+
type: "number",
|
|
284
|
+
default: 10,
|
|
285
|
+
description: "Maximum number of sections to return",
|
|
286
|
+
},
|
|
287
|
+
sectionType: {
|
|
288
|
+
type: "string",
|
|
289
|
+
enum: [
|
|
290
|
+
"all",
|
|
291
|
+
"introduction",
|
|
292
|
+
"methods",
|
|
293
|
+
"results",
|
|
294
|
+
"examples",
|
|
295
|
+
"conclusion",
|
|
296
|
+
"code",
|
|
297
|
+
"steps",
|
|
298
|
+
],
|
|
299
|
+
default: "all",
|
|
300
|
+
description: "Type of sections to extract",
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
required: ["contentId"],
|
|
304
|
+
},
|
|
305
|
+
modifies: false,
|
|
306
|
+
handler: async (client, args) => {
|
|
307
|
+
const input = inputSchema.parse(args);
|
|
308
|
+
try {
|
|
309
|
+
// Get the content
|
|
310
|
+
let content = await client.getContent(input.contentId);
|
|
311
|
+
if (!content) {
|
|
312
|
+
return {
|
|
313
|
+
content: [
|
|
314
|
+
{
|
|
315
|
+
type: "text",
|
|
316
|
+
text: `ā Content not found with ID: ${input.contentId}`,
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
error: true,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
// Get the raw text for sectioning - try enriched API if not available
|
|
323
|
+
let rawText = content.rawText || "";
|
|
324
|
+
if (!rawText) {
|
|
325
|
+
// Try to get raw content through v2 API with enrichment
|
|
326
|
+
try {
|
|
327
|
+
const enrichedResult = await client.getEnrichedContent([input.contentId], true);
|
|
328
|
+
if (enrichedResult && enrichedResult.length > 0 && enrichedResult[0].rawText) {
|
|
329
|
+
rawText = enrichedResult[0].rawText;
|
|
330
|
+
content = { ...content, rawText };
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
catch (e) {
|
|
334
|
+
// Ignore enrichment errors, continue with what we have
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (!rawText) {
|
|
338
|
+
return {
|
|
339
|
+
content: [
|
|
340
|
+
{
|
|
341
|
+
type: "text",
|
|
342
|
+
text: `ā ļø No text content available for sectioning in this item. The content may still be processing or does not contain extractable text.`,
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
data: {
|
|
346
|
+
contentId: input.contentId,
|
|
347
|
+
sections: [],
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
// Detect sections
|
|
352
|
+
let sections = detectSections(rawText, input.sectionType);
|
|
353
|
+
// Filter by type if specified
|
|
354
|
+
if (input.sectionType !== "all") {
|
|
355
|
+
sections = sections.filter((s) => s.type === input.sectionType);
|
|
356
|
+
}
|
|
357
|
+
// Find specific sections by query if provided
|
|
358
|
+
if (input.query) {
|
|
359
|
+
sections = findSectionByQuery(sections, input.query);
|
|
360
|
+
}
|
|
361
|
+
// Limit sections
|
|
362
|
+
sections = sections.slice(0, input.maxSections);
|
|
363
|
+
// Format response
|
|
364
|
+
let responseText = `š **Content Sections**\n\n`;
|
|
365
|
+
responseText += `*${content.title || "Untitled"}*\n`;
|
|
366
|
+
const icon = content.contentType === "youtube"
|
|
367
|
+
? "šŗ"
|
|
368
|
+
: content.contentType === "x_twitter"
|
|
369
|
+
? "š"
|
|
370
|
+
: content.contentType === "reddit"
|
|
371
|
+
? "š "
|
|
372
|
+
: content.contentType === "pdf"
|
|
373
|
+
? "š"
|
|
374
|
+
: "š";
|
|
375
|
+
responseText += `${icon} [View Original](${content.url})\n\n`;
|
|
376
|
+
if (input.query) {
|
|
377
|
+
responseText += `š Searching for: "${input.query}"\n\n`;
|
|
378
|
+
}
|
|
379
|
+
responseText += `Found ${sections.length} section${sections.length !== 1 ? "s" : ""}:\n\n`;
|
|
380
|
+
// Display sections
|
|
381
|
+
for (const section of sections) {
|
|
382
|
+
const sectionIcon = section.type === "introduction"
|
|
383
|
+
? "š"
|
|
384
|
+
: section.type === "methods"
|
|
385
|
+
? "āļø"
|
|
386
|
+
: section.type === "results"
|
|
387
|
+
? "š"
|
|
388
|
+
: section.type === "examples"
|
|
389
|
+
? "š”"
|
|
390
|
+
: section.type === "conclusion"
|
|
391
|
+
? "šÆ"
|
|
392
|
+
: section.type === "code"
|
|
393
|
+
? "š»"
|
|
394
|
+
: section.type === "steps"
|
|
395
|
+
? "š"
|
|
396
|
+
: "š";
|
|
397
|
+
responseText += `## ${sectionIcon} ${section.title}\n`;
|
|
398
|
+
responseText += `*Type: ${section.type} | ~${section.tokenCount} tokens*\n`;
|
|
399
|
+
if (section.relevance) {
|
|
400
|
+
responseText += `*Relevance: ${section.relevance}/20*\n`;
|
|
401
|
+
}
|
|
402
|
+
// Add metadata badges
|
|
403
|
+
if (section.metadata) {
|
|
404
|
+
const badges = [];
|
|
405
|
+
if (section.metadata.hasCode)
|
|
406
|
+
badges.push("Has Code");
|
|
407
|
+
if (section.metadata.hasSteps)
|
|
408
|
+
badges.push("Has Steps");
|
|
409
|
+
if (section.metadata.hasExamples)
|
|
410
|
+
badges.push("Has Examples");
|
|
411
|
+
if (badges.length > 0) {
|
|
412
|
+
responseText += `*Features: ${badges.join(" | ")}*\n`;
|
|
413
|
+
}
|
|
414
|
+
if (section.metadata.keyTopics &&
|
|
415
|
+
section.metadata.keyTopics.length > 0) {
|
|
416
|
+
responseText += `*Topics: ${section.metadata.keyTopics.join(", ")}*\n`;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
responseText += `\n`;
|
|
420
|
+
// Show content preview (first 500 chars)
|
|
421
|
+
const preview = section.content.substring(0, 500);
|
|
422
|
+
responseText += `${preview}${section.content.length > 500 ? "..." : ""}\n\n`;
|
|
423
|
+
responseText += `---\n\n`;
|
|
424
|
+
}
|
|
425
|
+
// Add summary
|
|
426
|
+
responseText += `**š Summary:**\n`;
|
|
427
|
+
responseText += `- Total sections: ${sections.length}\n`;
|
|
428
|
+
responseText += `- Total tokens: ~${sections.reduce((sum, s) => sum + s.tokenCount, 0)}\n`;
|
|
429
|
+
const sectionTypes = [...new Set(sections.map((s) => s.type))];
|
|
430
|
+
responseText += `- Section types: ${sectionTypes.join(", ")}\n`;
|
|
431
|
+
if (sections.length === 0 && input.query) {
|
|
432
|
+
responseText += `\nš” **Tip:** Try a broader search term or browse all sections without a query.`;
|
|
433
|
+
}
|
|
434
|
+
return {
|
|
435
|
+
content: [
|
|
436
|
+
{
|
|
437
|
+
type: "text",
|
|
438
|
+
text: responseText,
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
data: {
|
|
442
|
+
contentId: input.contentId,
|
|
443
|
+
contentTitle: content.title,
|
|
444
|
+
sections: sections.map((s) => ({
|
|
445
|
+
id: s.id,
|
|
446
|
+
type: s.type,
|
|
447
|
+
title: s.title,
|
|
448
|
+
tokenCount: s.tokenCount,
|
|
449
|
+
relevance: s.relevance,
|
|
450
|
+
metadata: s.metadata,
|
|
451
|
+
})),
|
|
452
|
+
totalSections: sections.length,
|
|
453
|
+
query: input.query,
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
catch (error) {
|
|
458
|
+
console.error("Smart sections error:", error);
|
|
459
|
+
return {
|
|
460
|
+
content: [
|
|
461
|
+
{
|
|
462
|
+
type: "text",
|
|
463
|
+
text: `ā Error extracting sections: ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
error: true,
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
};
|
|
471
|
+
//# sourceMappingURL=smart-sections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-sections.js","sourceRoot":"","sources":["../../../../src/tools/implementations/_archived/smart-sections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC9D,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,sCAAsC,CAAC;IACnD,WAAW,EAAE,CAAC;SACX,IAAI,CAAC;QACJ,KAAK;QACL,cAAc;QACd,SAAS;QACT,SAAS;QACT,UAAU;QACV,YAAY;QACZ,MAAM;QACN,OAAO;KACR,CAAC;SACD,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,6BAA6B,CAAC;CAC3C,CAAC,CAAC;AAmBH,kDAAkD;AAClD,MAAM,gBAAgB,GAAG;IACvB,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,2DAA2D;YAC3D,2DAA2D;YAC3D,qEAAqE;SACtE;QACD,QAAQ,EAAE;YACR,cAAc;YACd,UAAU;YACV,YAAY;YACZ,SAAS;YACT,UAAU;YACV,SAAS;SACV;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAE;YACR,mEAAmE;YACnE,mBAAmB;YACnB,cAAc;SACf;QACD,QAAQ,EAAE;YACR,QAAQ;YACR,UAAU;YACV,SAAS;YACT,WAAW;YACX,WAAW;YACX,WAAW;SACZ;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAE;YACR,4DAA4D;YAC5D,qDAAqD;SACtD;QACD,QAAQ,EAAE;YACR,SAAS;YACT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AAE,CAAC,CAAC,UAAU;wBACxB,SAAS,EAAE,CAAC,CAAC,SAAS;wBACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ;qBACrB,CAAC,CAAC;oBACH,aAAa,EAAE,QAAQ,CAAC,MAAM;oBAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;iBACnB;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;YAE9C,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,gCAAgC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE;qBACjG;iBACF;gBACD,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synthesize.d.ts","sourceRoot":"","sources":["../../../../src/tools/implementations/_archived/synthesize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,eAAO,MAAM,qBAAqB,EAAE,IA4MnC,CAAC"}
|