keywordgraph-mcp-server 1.6.1 → 1.6.2

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 (40) hide show
  1. package/README.md +14 -8
  2. package/dist/api/client.d.ts.map +1 -1
  3. package/dist/api/client.js +2 -1
  4. package/dist/api/client.js.map +1 -1
  5. package/dist/config/brand.d.ts +13 -0
  6. package/dist/config/brand.d.ts.map +1 -1
  7. package/dist/config/brand.js +21 -0
  8. package/dist/config/brand.js.map +1 -1
  9. package/dist/http-server.js +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +4 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/resources/about.d.ts.map +1 -1
  14. package/dist/resources/about.js +7 -6
  15. package/dist/resources/about.js.map +1 -1
  16. package/dist/schemas/index.d.ts +46 -6
  17. package/dist/schemas/index.d.ts.map +1 -1
  18. package/dist/schemas/index.js +91 -20
  19. package/dist/schemas/index.js.map +1 -1
  20. package/dist/tools/analyzeLlmResults.d.ts +1 -1
  21. package/dist/tools/analyzeLlmResults.d.ts.map +1 -1
  22. package/dist/tools/analyzeLlmResults.js +46 -19
  23. package/dist/tools/analyzeLlmResults.js.map +1 -1
  24. package/dist/tools/generateOntologyGraph.d.ts +1 -1
  25. package/dist/tools/generateOntologyGraph.d.ts.map +1 -1
  26. package/dist/tools/generateOntologyGraph.js +44 -21
  27. package/dist/tools/generateOntologyGraph.js.map +1 -1
  28. package/dist/tools/generateYoutubeSearchResultsGraph.d.ts +42 -0
  29. package/dist/tools/generateYoutubeSearchResultsGraph.d.ts.map +1 -0
  30. package/dist/tools/generateYoutubeSearchResultsGraph.js +97 -0
  31. package/dist/tools/generateYoutubeSearchResultsGraph.js.map +1 -0
  32. package/dist/tools/index.d.ts +1 -0
  33. package/dist/tools/index.d.ts.map +1 -1
  34. package/dist/tools/index.js +1 -0
  35. package/dist/tools/index.js.map +1 -1
  36. package/dist/utils/transformers.d.ts +1 -1
  37. package/dist/utils/transformers.d.ts.map +1 -1
  38. package/dist/utils/transformers.js +7 -1
  39. package/dist/utils/transformers.js.map +1 -1
  40. package/package.json +2 -1
package/README.md CHANGED
@@ -131,47 +131,53 @@ KeywordGraph MCP Server enables LLM workflows and AI assistants to analyze text
131
131
  - Generate a graph with keywords and topics for Google search results for a certain query
132
132
  - Use it to understand the current informational supply (what people find)
133
133
 
134
- 21. **analyze_related_search_queries**
134
+ 21. **analyze_youtube_search_results**
135
+ - Generate a graph with keywords and topics from YouTube results for a query, channel, or playlist
136
+ - Choose what to pull via `searchMode`: `search` (video metadata for a search term), `comments` (comments on a video), `channel` (a channel's videos — pass a username, URL, or @handle), `playlist` (a playlist's videos — pass a playlist ID or a URL with `list=`), `subtitles` / `subtitlesChannel` / `subtitlesPlaylist` (transcribed subtitles of a video / channel / playlist), or `searchVideos` (analyzes the content of the videos found — limit hard-capped to 20)
137
+ - Control results with `limit` (default 100, max 2000), `sortBy` (`Popular` / `Oldest` / `Latest`), `excludeDescriptions`, `importLanguage`, and `importRegion`
138
+ - Use it to understand the topics, clusters, and content gaps in the discourse around a video, channel, playlist, or search term on YouTube
139
+
140
+ 22. **analyze_related_search_queries**
135
141
  - Generate a graph from the search queries suggested by Google for a certain query
136
142
  - Use it to understand the current informational demand (what people are looking for)
137
143
 
138
- 22. **search_queries_vs_search_results**
144
+ 23. **search_queries_vs_search_results**
139
145
  - Generate a graph of keyword combinations and topics people tend to search for that do not readily appear in the search results for the same queries
140
146
  - Use it to understand what people search for but don't yet find
141
147
 
142
- 23. **generate_seo_report**
148
+ 24. **generate_seo_report**
143
149
  - Analyze content for SEO optimization by comparing it with Google search results and search queries
144
150
  - Identify content gaps and opportunities for better search visibility
145
151
  - Get comprehensive analysis of what's in search results but not in your text
146
152
  - Discover what people search for but don't find in current results
147
153
 
148
- 24. **memory_add_relations**
154
+ 25. **memory_add_relations**
149
155
  - Add relations to the KeywordGraph memory from text
150
156
  - Automatically detect entities or use [[wikilinks]] syntax to mark them
151
157
  - Save memory to a specified graph name for future retrieval
152
158
  - Support automatic entity extraction or manual entity marking
153
159
  - Provide links to created memory graphs for easy access
154
160
 
155
- 25. **memory_get_relations**
161
+ 26. **memory_get_relations**
156
162
  - Retrieve relations from KeywordGraph memory for specific entities
157
163
  - Search for entity relations using [[wikilinks]] syntax
158
164
  - Query specific memory contexts or search across all memory graphs
159
165
  - Extract statements and relationships from stored knowledge graphs
160
166
  - Support both entity-specific searches and full context retrieval
161
167
 
162
- 26. **retrieve_from_knowledge_base**
168
+ 27. **retrieve_from_knowledge_base**
163
169
  - Retrieve context from an existing KeywordGraph knowledge graph using GraphRAG
164
170
  - Query your knowledge base with a natural language prompt to get relevant statements
165
171
  - Include graph summaries for quick overviews of the knowledge structure
166
172
  - Optionally retrieve the full graph, statements, or extended analysis
167
173
  - Ideal for augmenting LLM responses with domain-specific knowledge
168
174
 
169
- 27. **search**
175
+ 28. **search**
170
176
  - Search through existing KeywordGraph graphs
171
177
  - Also use it to search through the public graphs of a specific user
172
178
  - Compatible with ChatGPT Deep Research mode via Developer Mode > Connectors
173
179
 
174
- 28. **fetch**
180
+ 29. **fetch**
175
181
  - Fetch a specific search result for a graph
176
182
  - Can be used in ChatGPT Deep Research mode via Developer Mode > Connectors
177
183
 
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,wBAAsB,qBAAqB,CAC1C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,MAAM,GAAE,MAAe,GACrB,OAAO,CAAC,aAAa,CAAC,CAgCxB"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIlD,wBAAsB,qBAAqB,CAC1C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,MAAM,GAAE,MAAe,GACrB,OAAO,CAAC,aAAa,CAAC,CAgCxB"}
@@ -1,8 +1,9 @@
1
1
  import { getConfig } from "./config-store.js";
2
+ import { brandSource } from "../config/brand.js";
2
3
  export async function makeInfraNodusRequest(endpoint, body, method = "POST") {
3
4
  try {
4
5
  const config = getConfig();
5
- const requestBody = { ...body, modal: "mcp_server" };
6
+ const requestBody = { ...body, modal: "mcp_server", source: brandSource() };
6
7
  const response = await fetch(`${config.apiBase}${endpoint}`, {
7
8
  method,
8
9
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAC1C,QAAgB,EAChB,IAAS,EACT,SAAiB,MAAM;IAEvB,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,MAAM,WAAW,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;QAErD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,GAAG,QAAQ,EAAE,EAAE;YAC5D,MAAM;YACN,OAAO,EAAE;gBACR,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE;aACxC;YACD,GAAG,CAAC,MAAM,KAAK,KAAK,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;SAC9D,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YAClB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,uBAAuB,QAAQ,CAAC,MAAM,MAAM,SAAS,EAAE,CAAC,CA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AAM,MAAM,SAAS,EAAE,CAAC,CAAC;QAC1E,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,iCAAiC;QACjC,IAAI,IAAI,CAAC,wBAAwB,EAAE,CAAC;YACnC,OAAO,IAAI,CAAC,wBAAwB,CAAC;QACtC,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,0DAA0D;QAC1D,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
@@ -53,6 +53,19 @@ export declare const brand: BrandDef;
53
53
  export declare function brandApiKey(): string;
54
54
  /** API base for the active brand: brand-specific env var, else the brand default. */
55
55
  export declare function brandApiBase(): string;
56
+ /**
57
+ * Per-instance source tag sent to the API (as `source`) so analytics can tell
58
+ * deploys apart. Brand alone is not enough: e.g. the ExaltGrowth and
59
+ * KeywordGraph apps both run BRAND=keywordgraph, so they share a brand but are
60
+ * distinct instances.
61
+ *
62
+ * Resolution order:
63
+ * 1. MCP_SOURCE — explicit per-deploy override (set in each fly.*.toml).
64
+ * 2. FLY_APP_NAME — auto-injected by Fly; the trailing `-mcp-server` is
65
+ * stripped so e.g. `exaltgrowth-mcp-server` → `exaltgrowth`.
66
+ * 3. brand.id — final fallback for local/npm/smithery runs.
67
+ */
68
+ export declare function brandSource(): string;
56
69
  /** Whether a tool (by its MCP `name`) is exposed for the active brand. */
57
70
  export declare function isToolEnabled(name: string): boolean;
58
71
  //# sourceMappingURL=brand.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,cAAc,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C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ChB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACF;AAsED,eAAO,MAAM,KAAK,EAAE,QAAyB,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAOpC;AAED,qFAAqF;AACrF,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAQpC;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD"}
@@ -90,6 +90,27 @@ export function brandApiKey() {
90
90
  export function brandApiBase() {
91
91
  return process.env[`${brand.envPrefix}_API_BASE`] || brand.apiBase;
92
92
  }
93
+ /**
94
+ * Per-instance source tag sent to the API (as `source`) so analytics can tell
95
+ * deploys apart. Brand alone is not enough: e.g. the ExaltGrowth and
96
+ * KeywordGraph apps both run BRAND=keywordgraph, so they share a brand but are
97
+ * distinct instances.
98
+ *
99
+ * Resolution order:
100
+ * 1. MCP_SOURCE — explicit per-deploy override (set in each fly.*.toml).
101
+ * 2. FLY_APP_NAME — auto-injected by Fly; the trailing `-mcp-server` is
102
+ * stripped so e.g. `exaltgrowth-mcp-server` → `exaltgrowth`.
103
+ * 3. brand.id — final fallback for local/npm/smithery runs.
104
+ */
105
+ export function brandSource() {
106
+ const explicit = process.env.MCP_SOURCE?.trim();
107
+ if (explicit)
108
+ return explicit;
109
+ const flyApp = process.env.FLY_APP_NAME?.trim();
110
+ if (flyApp)
111
+ return flyApp.replace(/-mcp-server$/, "");
112
+ return brand.id;
113
+ }
93
114
  /** Whether a tool (by its MCP `name`) is exposed for the active brand. */
94
115
  export function isToolEnabled(name) {
95
116
  return !brand.excludedTools.includes(name);
@@ -1 +1 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA;;;;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C;AACpE,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW;IAC1B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC;IAChD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAE9B,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC;IAChD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAEtD,OAAO,KAAK,CAAC,EAAE,CAAC;AACjB,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,aAAa,CAAC,IAAY;IACzC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
@@ -793,7 +793,7 @@ app.get("/", (req, res, next) => {
793
793
  }
794
794
  res.json({
795
795
  name: `${brand.name} MCP Server`,
796
- version: "1.6.1",
796
+ version: "1.6.2",
797
797
  description: `MCP server for ${brand.name} knowledge graph analysis`,
798
798
  endpoints: {
799
799
  oauth: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAc,MAAM,mBAAmB,CAAC;AA0C7D,OAAO,EAAE,YAAY,EAAE,CAAC;AAGxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,MAAM,GACN,EAAE;IACF,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;CACrC;;;;;;;;;;;;;;;;;;;;;;GAwGA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAc,MAAM,mBAAmB,CAAC;AAgD7D,OAAO,EAAE,YAAY,EAAE,CAAC;AAGxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,MAAM,GACN,EAAE;IACF,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;CACrC;;;;;;;;;;;;;;;;;;;;;;GAyGA"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
3
  import { configSchema, serverInfo } from "./config/index.js";
4
- import { brand, brandApiKey, brandApiBase, isToolEnabled } from "./config/brand.js";
5
- import { generateKnowledgeGraphTool, createKnowledgeGraphTool, generateOntologyGraphTool, analyzeLlmResultsTool, addMemoryTool, getMemoryTool, analyzeExistingGraphTool, analyzeTextTool, generateContentGapsTool, generateTopicalClustersTool, generateResearchQuestionsTool, generateResearchIdeasTool, generateResponsesFromGraphTool, generateContextualHintTool, retrieveContextForPromptFromGraphTool, developConceptualBridgesTool, developLatentTopicsTool, optimizeTextStructureTool, listGraphsTool, searchExistingGraphsTool, searchExistingGraphsFetchTool, generateOverlapGraphFromTextsTool, generateMergedGraphFromTextsTool, generateDifferenceGraphFromTextsTool, generateGoogleSearchResultsGraphTool, generateGoogleSearchQueriesGraphTool, generateGoogleResultsVsQueriesGraphTool, generateSEOGraphTool, developTextTool, } from "./tools/index.js";
4
+ import { brand, brandApiKey, brandApiBase, isToolEnabled, } from "./config/brand.js";
5
+ import { generateKnowledgeGraphTool, createKnowledgeGraphTool, generateOntologyGraphTool, analyzeLlmResultsTool, addMemoryTool, getMemoryTool, analyzeExistingGraphTool, analyzeTextTool, generateContentGapsTool, generateTopicalClustersTool, generateResearchQuestionsTool, generateResearchIdeasTool, generateResponsesFromGraphTool, generateContextualHintTool, retrieveContextForPromptFromGraphTool, developConceptualBridgesTool, developLatentTopicsTool, optimizeTextStructureTool, listGraphsTool, searchExistingGraphsTool, searchExistingGraphsFetchTool, generateOverlapGraphFromTextsTool, generateMergedGraphFromTextsTool, generateDifferenceGraphFromTextsTool, generateGoogleSearchResultsGraphTool, generateYoutubeSearchResultsGraphTool, generateGoogleSearchQueriesGraphTool, generateGoogleResultsVsQueriesGraphTool, generateSEOGraphTool, developTextTool, } from "./tools/index.js";
6
6
  import { aboutResource } from "./resources/about.js";
7
7
  import { llmsTxtResource, llmsFullTxtResource } from "./resources/llms-txt.js";
8
8
  import { prompts } from "./prompts/index.js";
@@ -36,7 +36,6 @@ export default function createServer({ config, }) {
36
36
  generateKnowledgeGraphTool,
37
37
  createKnowledgeGraphTool,
38
38
  generateOntologyGraphTool,
39
- analyzeLlmResultsTool,
40
39
  addMemoryTool,
41
40
  getMemoryTool,
42
41
  analyzeExistingGraphTool,
@@ -59,8 +58,10 @@ export default function createServer({ config, }) {
59
58
  generateMergedGraphFromTextsTool,
60
59
  generateDifferenceGraphFromTextsTool,
61
60
  generateGoogleSearchResultsGraphTool,
61
+ generateYoutubeSearchResultsGraphTool,
62
62
  generateGoogleSearchQueriesGraphTool,
63
63
  generateGoogleResultsVsQueriesGraphTool,
64
+ analyzeLlmResultsTool,
64
65
  generateSEOGraphTool,
65
66
  ];
66
67
  // Register tools enabled for the active brand
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,EACN,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB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;;;;CA6DzB,CAAC"}
1
+ {"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../src/resources/about.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CA8DzB,CAAC"}
@@ -30,12 +30,13 @@ Available Tools:
30
30
  10. difference_between_texts - Create knowledge graphs from two or more text and find what's not present in the first graph that's present in the others
31
31
  11. analyze_llm_results - Ask an LLM to describe a topic and turn its answer into a knowledge graph that reveals how the model frames it (main concepts, clusters, content gaps, relations). Useful for probing model bias or comparing how different models describe the same topic. Default model: claude-opus-4.6. Saves by default; returns analytics by default and omits raw graph (includeGraph: false) to keep responses compact
32
32
  12. analyze_google_search_results - Generate a Google search results graph from search queries
33
- 13. analyze_related_search_queries - Generate a graph of search requests related to search queries provided
34
- 14. search_queries_vs_search_results - Find what people search for but don't yet find
35
- 15. generate_seo_report - Analyze content for SEO optimization by comparing it with Google search results and search queries
36
- 16. list_graphs - List all graphs for the currently logged in user with optional filtering by name, type, date, language, or favorite status
37
- 17. search - Search through existing ${brand.name} graphs
38
- 18. fetch - Fetch a specific search result from a ${brand.name} graph
33
+ 13. analyze_youtube_search_results - Generate a knowledge graph from YouTube results (search results, a channel's or playlist's videos, video comments, or transcribed subtitles) to reveal main topics, clusters, and content gaps
34
+ 14. analyze_related_search_queries - Generate a graph of search requests related to search queries provided
35
+ 15. search_queries_vs_search_results - Find what people search for but don't yet find
36
+ 16. generate_seo_report - Analyze content for SEO optimization by comparing it with Google search results and search queries
37
+ 17. list_graphs - List all graphs for the currently logged in user with optional filtering by name, type, date, language, or favorite status
38
+ 18. search - Search through existing ${brand.name} graphs
39
+ 19. fetch - Fetch a specific search result from a ${brand.name} graph
39
40
 
40
41
  Key Features:
41
42
  - Topic modeling and clustering
@@ -1 +1 @@
1
- {"version":3,"file":"about.js","sourceRoot":"","sources":["../../src/resources/about.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,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ACT;oBACC,GAAG,EAAE,cAAc;oBACnB,QAAQ,EAAE,YAAY;oBACtB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI;;wFAEgE,KAAK,CAAC,IAAI;;;oFAGd,KAAK,CAAC,IAAI;;;;;;0DAMpC,KAAK,CAAC,IAAI;;;;;;;;;;;uCAW7B,KAAK,CAAC,IAAI;oDACG,KAAK,CAAC,IAAI;;;;;;;;;;aAUjD,KAAK,CAAC,SAAS;iCACK,KAAK,CAAC,MAAM;;EAE3C,KAAK,CAAC,IAAI;;;;;;;sBAOU,KAAK,CAAC,MAAM,EAAE;iBAC/B;aACD;SACD,CAAC;IACH,CAAC;CACD,CAAC"}
@@ -294,24 +294,24 @@ export declare const GenerateOntologyGraphSchema: z.ZodObject<{
294
294
  prompt: z.ZodString;
295
295
  graphName: z.ZodOptional<z.ZodString>;
296
296
  modelToUse: z.ZodDefault<z.ZodEnum<["claude-opus-4.6", "claude-sonnet-4.6", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "grok-4.1-fast-non-reasoning", "grok-4.1-fast-reasoning", "gpt-4o", "gpt-4o-mini", "gpt-5.4", "gpt-5.4-mini"]>>;
297
- numberOfResults: z.ZodDefault<z.ZodNumber>;
298
297
  saveGraph: z.ZodDefault<z.ZodBoolean>;
299
298
  includeGraph: z.ZodDefault<z.ZodBoolean>;
300
299
  includeAnalytics: z.ZodDefault<z.ZodBoolean>;
300
+ includeStatements: z.ZodDefault<z.ZodBoolean>;
301
301
  }, "strip", z.ZodTypeAny, {
302
+ includeStatements: boolean;
302
303
  includeGraph: boolean;
303
304
  prompt: string;
304
305
  modelToUse: "claude-opus-4.6" | "claude-sonnet-4.6" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "grok-4.1-fast-non-reasoning" | "grok-4.1-fast-reasoning" | "gpt-4o" | "gpt-4o-mini" | "gpt-5.4" | "gpt-5.4-mini";
305
- numberOfResults: number;
306
306
  saveGraph: boolean;
307
307
  includeAnalytics: boolean;
308
308
  graphName?: string | undefined;
309
309
  }, {
310
310
  prompt: string;
311
+ includeStatements?: boolean | undefined;
311
312
  includeGraph?: boolean | undefined;
312
313
  graphName?: string | undefined;
313
314
  modelToUse?: "claude-opus-4.6" | "claude-sonnet-4.6" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "grok-4.1-fast-non-reasoning" | "grok-4.1-fast-reasoning" | "gpt-4o" | "gpt-4o-mini" | "gpt-5.4" | "gpt-5.4-mini" | undefined;
314
- numberOfResults?: number | undefined;
315
315
  saveGraph?: boolean | undefined;
316
316
  includeAnalytics?: boolean | undefined;
317
317
  }>;
@@ -319,27 +319,27 @@ export declare const AnalyzeLlmResultsSchema: z.ZodObject<{
319
319
  prompt: z.ZodString;
320
320
  graphName: z.ZodOptional<z.ZodString>;
321
321
  modelToUse: z.ZodDefault<z.ZodEnum<["claude-opus-4.6", "claude-sonnet-4.6", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "grok-4.1-fast-non-reasoning", "grok-4.1-fast-reasoning", "gpt-4o", "gpt-4o-mini", "gpt-5.4", "gpt-5.4-mini"]>>;
322
- numberOfResults: z.ZodDefault<z.ZodNumber>;
323
322
  modifyAnalyzedText: z.ZodDefault<z.ZodEnum<["none", "detectEntities", "extractEntitiesOnly"]>>;
324
323
  saveGraph: z.ZodDefault<z.ZodBoolean>;
325
324
  includeGraph: z.ZodDefault<z.ZodBoolean>;
326
325
  includeAnalytics: z.ZodDefault<z.ZodBoolean>;
326
+ includeStatements: z.ZodDefault<z.ZodBoolean>;
327
327
  }, "strip", z.ZodTypeAny, {
328
+ includeStatements: boolean;
328
329
  includeGraph: boolean;
329
330
  modifyAnalyzedText: "none" | "detectEntities" | "extractEntitiesOnly";
330
331
  prompt: string;
331
332
  modelToUse: "claude-opus-4.6" | "claude-sonnet-4.6" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "grok-4.1-fast-non-reasoning" | "grok-4.1-fast-reasoning" | "gpt-4o" | "gpt-4o-mini" | "gpt-5.4" | "gpt-5.4-mini";
332
- numberOfResults: number;
333
333
  saveGraph: boolean;
334
334
  includeAnalytics: boolean;
335
335
  graphName?: string | undefined;
336
336
  }, {
337
337
  prompt: string;
338
+ includeStatements?: boolean | undefined;
338
339
  includeGraph?: boolean | undefined;
339
340
  modifyAnalyzedText?: "none" | "detectEntities" | "extractEntitiesOnly" | undefined;
340
341
  graphName?: string | undefined;
341
342
  modelToUse?: "claude-opus-4.6" | "claude-sonnet-4.6" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-lite" | "grok-4.1-fast-non-reasoning" | "grok-4.1-fast-reasoning" | "gpt-4o" | "gpt-4o-mini" | "gpt-5.4" | "gpt-5.4-mini" | undefined;
342
- numberOfResults?: number | undefined;
343
343
  saveGraph?: boolean | undefined;
344
344
  includeAnalytics?: boolean | undefined;
345
345
  }>;
@@ -1000,6 +1000,46 @@ export declare const GenerateGoogleSearchResultsGraphSchema: z.ZodObject<{
1000
1000
  importLanguage?: "EN" | "DE" | "FR" | "ES" | "IT" | "PT" | "RU" | "CN" | "JP" | "NL" | "TW" | "KO" | "AR" | "HE" | undefined;
1001
1001
  importCountry?: "DE" | "FR" | "ES" | "IT" | "PT" | "RU" | "CN" | "JP" | "NL" | "TW" | "AR" | "AU" | "BR" | "CA" | "CH" | "GB" | "HK" | "IN" | "MX" | "NO" | "NZ" | "SV" | "US" | "SG" | "SA" | "AE" | "EG" | "IR" | "IL" | "KR" | undefined;
1002
1002
  }>;
1003
+ export declare const GenerateYoutubeSearchResultsGraphSchema: z.ZodObject<{
1004
+ searchQuery: z.ZodString;
1005
+ searchMode: z.ZodDefault<z.ZodEnum<["search", "comments", "channel", "playlist", "subtitles", "subtitlesChannel", "subtitlesPlaylist", "searchVideos"]>>;
1006
+ limit: z.ZodDefault<z.ZodNumber>;
1007
+ sortBy: z.ZodDefault<z.ZodEnum<["Relevance", "Popular", "Latest"]>>;
1008
+ excludeDescriptions: z.ZodDefault<z.ZodBoolean>;
1009
+ includeSearchResults: z.ZodDefault<z.ZodBoolean>;
1010
+ includeGraph: z.ZodDefault<z.ZodBoolean>;
1011
+ showExtendedGraphInfo: z.ZodDefault<z.ZodBoolean>;
1012
+ includeSearchResultsOnly: z.ZodDefault<z.ZodBoolean>;
1013
+ includeNodesAndEdges: z.ZodDefault<z.ZodBoolean>;
1014
+ importLanguage: z.ZodDefault<z.ZodEnum<["EN", "DE", "FR", "ES", "IT", "PT", "RU", "CN", "JP", "NL", "TW", "KO", "AR", "HE"]>>;
1015
+ importRegion: z.ZodDefault<z.ZodString>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ includeGraph: boolean;
1018
+ includeSearchResults: boolean;
1019
+ showExtendedGraphInfo: boolean;
1020
+ includeSearchResultsOnly: boolean;
1021
+ includeNodesAndEdges: boolean;
1022
+ importLanguage: "EN" | "DE" | "FR" | "ES" | "IT" | "PT" | "RU" | "CN" | "JP" | "NL" | "TW" | "KO" | "AR" | "HE";
1023
+ searchQuery: string;
1024
+ searchMode: "search" | "comments" | "channel" | "playlist" | "subtitles" | "subtitlesChannel" | "subtitlesPlaylist" | "searchVideos";
1025
+ limit: number;
1026
+ sortBy: "Relevance" | "Popular" | "Latest";
1027
+ excludeDescriptions: boolean;
1028
+ importRegion: string;
1029
+ }, {
1030
+ searchQuery: string;
1031
+ includeGraph?: boolean | undefined;
1032
+ includeSearchResults?: boolean | undefined;
1033
+ showExtendedGraphInfo?: boolean | undefined;
1034
+ includeSearchResultsOnly?: boolean | undefined;
1035
+ includeNodesAndEdges?: boolean | undefined;
1036
+ importLanguage?: "EN" | "DE" | "FR" | "ES" | "IT" | "PT" | "RU" | "CN" | "JP" | "NL" | "TW" | "KO" | "AR" | "HE" | undefined;
1037
+ searchMode?: "search" | "comments" | "channel" | "playlist" | "subtitles" | "subtitlesChannel" | "subtitlesPlaylist" | "searchVideos" | undefined;
1038
+ limit?: number | undefined;
1039
+ sortBy?: "Relevance" | "Popular" | "Latest" | undefined;
1040
+ excludeDescriptions?: boolean | undefined;
1041
+ importRegion?: string | undefined;
1042
+ }>;
1003
1043
  export declare const GenerateGoogleSearchQueriesGraphSchema: z.ZodObject<{
1004
1044
  queries: z.ZodArray<z.ZodString, "many">;
1005
1045
  includeSearchQueries: z.ZodDefault<z.ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAsC9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EA0C5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAsC1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA0ChC,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;EAyCzC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAC;AAEzE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAiBrC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;EAa1B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;EAO1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAqBxC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EA2B3C,CAAC;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkGlD,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmGjD,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;EAqFpD,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmGjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EAqDpC,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAsC3B,CAAC"}
@@ -246,25 +246,22 @@ export const GenerateOntologyGraphSchema = z.object({
246
246
  ])
247
247
  .default("claude-opus-4.6")
248
248
  .describe("AI model used to generate the ontology. More capable models (claude-opus-4.6, gpt-5.4) produce richer, more accurate ontologies; the -mini and -lite variants are faster and cheaper. Default: claude-opus-4.6."),
249
- numberOfResults: z
250
- .number()
251
- .int()
252
- .min(1)
253
- .max(40)
254
- .default(40)
255
- .describe("Approximate number of ontology statements / relations to generate. Default: 40 (the maximum), so you get a rich ontology. Hard-capped at 40 — higher values are silently clamped by the backend. Reduce this (e.g. to 20 or 10) if generation takes too long, the request times out, or the model returns errors on complex topics."),
256
249
  saveGraph: z
257
250
  .boolean()
258
251
  .default(true)
259
252
  .describe(`Whether to save the generated ontology as a persistent ${brand.name} graph (true by default). When true, the graph is stored under your account and a link is returned. Set to false if the user explicitly asks not to save, or when you only need a one-off AI ontology overview of a topic for the current context that won't be reused later — in that case the generated ontology statements are returned directly without being persisted.`),
260
253
  includeGraph: z
261
254
  .boolean()
262
- .default(true)
263
- .describe("Include the compact graph structure — nodes (entities), edges (relations between them), and clusters — in the response. True by default, since nodes and edges are the point of an ontology graph. Set to false to save context space when only the ontology statements or analytical insights are needed."),
255
+ .default(false)
256
+ .describe("Include the compact graph structure — nodes (entities), edges (relations between them), and clusters — in the response. False by default to keep the response small; the ontology statements and analytics usually carry what's needed. Set to true when you also want to inspect the node/edge structure or render it."),
264
257
  includeAnalytics: z
265
258
  .boolean()
266
259
  .default(true)
267
- .describe("Include graph analytics — main topical clusters, content gaps, top influential nodes / concepts, top relations, conceptual gateways, and network statistics — derived from the generated ontology. True by default. Use this to get insights from the graph: keep it on when you need to understand the structure, gaps, or key concepts; turn off only if you just need the raw ontology statements."),
260
+ .describe("Include graph analytics — main topical clusters, content gaps, top influential nodes / concepts, top relations, conceptual gateways, and network statistics — derived from the generated ontology. True by default. Use this to get insights from the graph: keep it on when you need to understand the structure, gaps, or key concepts; turn off to save context space when you only need the raw ontology statements (see includeStatements) or the graph link."),
261
+ includeStatements: z
262
+ .boolean()
263
+ .default(true)
264
+ .describe("Include the ontology statements — the entity-relation statements the AI generated, in their final post-processing shape as stored in the graph — in the response (the ontologyStatements array). True by default so you can read the generated ontology. Set to false to save context space when you only need the analytics and/or the saved graph link, not the underlying statements."),
268
265
  });
269
266
  export const AnalyzeLlmResultsSchema = z.object({
270
267
  prompt: z
@@ -291,20 +288,13 @@ export const AnalyzeLlmResultsSchema = z.object({
291
288
  ])
292
289
  .default("claude-opus-4.6")
293
290
  .describe("AI model whose view of the topic is being analyzed. Pick the model the user is curious about — different models surface different framings. Default: claude-opus-4.6."),
294
- numberOfResults: z
295
- .number()
296
- .int()
297
- .min(1)
298
- .max(40)
299
- .default(20)
300
- .describe(`Number of separate LLM completions to generate (NOT statements per completion). Each completion becomes one statement in the graph — together they form the multi-angle view of how the model frames the topic. Default: 20 (matches ${brand.name}' built-in UI). This directly drives cost and latency: 20 = 20 separate model calls (some models like gpt-5.4/gpt-5.4-mini are internally capped at 8). Lower it (e.g. to 10) if the user is cost-sensitive or generation times out; raise it (up to 40) for a richer overview when the model is fast/cheap.`),
301
291
  modifyAnalyzedText: z
302
292
  .enum(["none", "detectEntities", "extractEntitiesOnly"])
303
- .default("detectEntities")
293
+ .default("none")
304
294
  .describe("How the LLM output is parsed into the graph. 'none' = plain word co-occurrence (contextType STANDARD); 'detectEntities' = mix named entities with words (contextType WIKILINKS, default — best balanced overview); 'extractEntitiesOnly' = entity-only graph (contextType WIKILINKS, cleanest entity view)."),
305
295
  saveGraph: z
306
296
  .boolean()
307
- .default(true)
297
+ .default(false)
308
298
  .describe(`Whether to save the LLM overview as a persistent ${brand.name} graph (true by default). Set to false if the user asks not to save, or when you only need a one-off look at how the LLM frames the topic for the current conversation.`),
309
299
  includeGraph: z
310
300
  .boolean()
@@ -313,7 +303,11 @@ export const AnalyzeLlmResultsSchema = z.object({
313
303
  includeAnalytics: z
314
304
  .boolean()
315
305
  .default(true)
316
- .describe("Include graph analytics — main topical clusters, content gaps, top influential nodes / concepts, top relations, conceptual gateways, and network statistics — derived from the LLM output. True by default, because the whole point of this tool is the insights about how the LLM frames the topic. Turn off only if you just need the raw text statements."),
306
+ .describe("Include graph analytics — main topical clusters, content gaps, top influential nodes / concepts, top relations, conceptual gateways, and network statistics — derived from the LLM output. True by default, because the whole point of this tool is the insights about how the LLM frames the topic. Set to false to save context space when you only need the raw LLM statements (see includeStatements) or the graph link."),
307
+ includeStatements: z
308
+ .boolean()
309
+ .default(true)
310
+ .describe("Include the LLM statements — the individual completions the model produced about the topic, in their final post-processing shape as stored in the graph — in the response (the llmStatements array). True by default so you can read what the model actually said. Set to false to save context space when you only need the analytics and/or the saved graph link, not the underlying text."),
317
311
  });
318
312
  export const GenerateTopicalClustersSchemaBase = z.object({
319
313
  text: z
@@ -800,6 +794,83 @@ export const GenerateGoogleSearchResultsGraphSchema = z.object({
800
794
  .default("US")
801
795
  .describe("Country of the search queries, default is United States (US).Use the country most suitable for the language selected."),
802
796
  });
797
+ export const GenerateYoutubeSearchResultsGraphSchema = z.object({
798
+ searchQuery: z
799
+ .string()
800
+ .min(1, "A search query is required for analysis")
801
+ .describe("The search term, a YouTube video ID, a channel username / URL / @handle, or a URL containing list= (playlist) or list ID. What is pulled depends on searchMode."),
802
+ searchMode: z
803
+ .enum([
804
+ "search",
805
+ "comments",
806
+ "channel",
807
+ "playlist",
808
+ "subtitles",
809
+ "subtitlesChannel",
810
+ "subtitlesPlaylist",
811
+ "searchVideos",
812
+ ])
813
+ .default("search")
814
+ .describe("What to pull from YouTube: 'search' (default, video metadata for a search term), 'comments' (comments on a video), 'channel' (videos of a channel — provide a channel username, URL, or @handle), 'playlist' (videos of a playlist — provide a playlist ID or a URL with list=), 'subtitles'/'subtitlesChannel'/'subtitlesPlaylist' (transcribed subtitles of a video / channel / playlist), or 'searchVideos' (analyzes the content of the videos found for a search term; limit is hard-capped to 20). If searchQuery contains list=, 'channel' becomes 'playlist' and 'subtitlesChannel' becomes 'subtitlesPlaylist' automatically."),
815
+ limit: z
816
+ .number()
817
+ .int()
818
+ .min(1)
819
+ .max(2000)
820
+ .default(100)
821
+ .describe("Maximum number of results to pull, default 100, max 2000 (also capped by your plan quota). For searchMode 'searchVideos' the limit is hard-set to 20."),
822
+ sortBy: z
823
+ .enum(["Relevance", "Popular", "Latest"])
824
+ .default("Relevance")
825
+ .describe("Order in which results are pulled: 'Relevance' (default), 'Popular', or 'Latest'."),
826
+ excludeDescriptions: z
827
+ .boolean()
828
+ .default(true)
829
+ .describe("Drop video descriptions from the search-result text (default true)."),
830
+ includeSearchResults: z
831
+ .boolean()
832
+ .default(false)
833
+ .describe("Include search results (statements) in the response"),
834
+ includeGraph: z
835
+ .boolean()
836
+ .default(false)
837
+ .describe("Include the graph structure and keywords in the response (add only if explicitly needed)"),
838
+ showExtendedGraphInfo: z
839
+ .boolean()
840
+ .default(false)
841
+ .describe("Include extended graph information in the response (additional information about the content gaps and main topics)"),
842
+ includeSearchResultsOnly: z
843
+ .boolean()
844
+ .default(false)
845
+ .describe("Only include search results in the response (do not include the knowledge graph, analysis, and keywords)"),
846
+ includeNodesAndEdges: z
847
+ .boolean()
848
+ .default(false)
849
+ .describe("Include nodes and edges in the response (true only if explicitly required)"),
850
+ importLanguage: z
851
+ .enum([
852
+ "EN",
853
+ "DE",
854
+ "FR",
855
+ "ES",
856
+ "IT",
857
+ "PT",
858
+ "RU",
859
+ "CN",
860
+ "JP",
861
+ "NL",
862
+ "TW",
863
+ "KO",
864
+ "AR",
865
+ "HE",
866
+ ])
867
+ .default("EN")
868
+ .describe("Processing language, default is English (EN), use the language of the conversation or requested by user."),
869
+ importRegion: z
870
+ .string()
871
+ .default("US")
872
+ .describe("Region (country code) used to pull YouTube results, default is United States (US)."),
873
+ });
803
874
  export const GenerateGoogleSearchQueriesGraphSchema = z.object({
804
875
  queries: z
805
876
  .array(z.string())