profound-mcp 0.3.0 → 0.5.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/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
- package/src/tools/logs/raw/bots-logs-raw.ts +1 -1
- package/src/tools/reports/citations-reports.ts +25 -3
- package/tools/logs/raw/bots-logs-raw.js +1 -1
- package/tools/logs/raw/bots-logs-raw.js.map +1 -1
- package/tools/logs/raw/bots-logs-raw.mjs +1 -1
- package/tools/logs/raw/bots-logs-raw.mjs.map +1 -1
- package/tools/reports/citations-reports.d.mts.map +1 -1
- package/tools/reports/citations-reports.d.ts.map +1 -1
- package/tools/reports/citations-reports.js +24 -3
- package/tools/reports/citations-reports.js.map +1 -1
- package/tools/reports/citations-reports.mjs +24 -3
- package/tools/reports/citations-reports.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "profound-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The official MCP Server for the Profound API",
|
|
5
5
|
"author": "Profound <support@tryprofound.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"fix": "eslint --fix --ext ts,js ."
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"profoundai": "^0.
|
|
30
|
+
"profoundai": "^0.5.0",
|
|
31
31
|
"@cloudflare/cabidela": "^0.2.4",
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.11.5",
|
|
33
33
|
"@valtown/deno-http-worker": "^0.0.21",
|
package/server.js
CHANGED
|
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
|
|
|
22
22
|
Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
|
|
23
23
|
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
24
24
|
name: 'profoundai_api',
|
|
25
|
-
version: '0.
|
|
25
|
+
version: '0.5.0',
|
|
26
26
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
27
27
|
exports.newMcpServer = newMcpServer;
|
|
28
28
|
// Create server instance
|
package/server.mjs
CHANGED
|
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
|
|
|
11
11
|
export { endpoints } from "./tools.mjs";
|
|
12
12
|
export const newMcpServer = () => new McpServer({
|
|
13
13
|
name: 'profoundai_api',
|
|
14
|
-
version: '0.
|
|
14
|
+
version: '0.5.0',
|
|
15
15
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
16
16
|
// Create server instance
|
|
17
17
|
export const server = newMcpServer();
|
package/src/server.ts
CHANGED
|
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
|
|
|
18
18
|
export const tool: Tool = {
|
|
19
19
|
name: 'bots_logs_raw',
|
|
20
20
|
description:
|
|
21
|
-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
21
|
+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index',\n 'ai_agent'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
22
22
|
inputSchema: {
|
|
23
23
|
type: 'object',
|
|
24
24
|
properties: {
|
|
@@ -60,7 +60,18 @@ export const tool: Tool = {
|
|
|
60
60
|
description: 'Dimensions to group the report by.',
|
|
61
61
|
items: {
|
|
62
62
|
type: 'string',
|
|
63
|
-
enum: [
|
|
63
|
+
enum: [
|
|
64
|
+
'hostname',
|
|
65
|
+
'path',
|
|
66
|
+
'date',
|
|
67
|
+
'region',
|
|
68
|
+
'topic',
|
|
69
|
+
'model',
|
|
70
|
+
'tag',
|
|
71
|
+
'prompt',
|
|
72
|
+
'url',
|
|
73
|
+
'root_domain',
|
|
74
|
+
],
|
|
64
75
|
},
|
|
65
76
|
},
|
|
66
77
|
filters: {
|
|
@@ -69,12 +80,23 @@ export const tool: Tool = {
|
|
|
69
80
|
description: 'List of filters to apply to the report. Each filter has an operator, field, and value.',
|
|
70
81
|
items: {
|
|
71
82
|
type: 'object',
|
|
72
|
-
title:
|
|
83
|
+
title:
|
|
84
|
+
"Filter[Literal['hostname', 'path', 'region', 'topic', 'model', 'tag', 'url', 'root_domain', 'prompt_type']]",
|
|
73
85
|
properties: {
|
|
74
86
|
field: {
|
|
75
87
|
type: 'string',
|
|
76
88
|
title: 'Field',
|
|
77
|
-
enum: [
|
|
89
|
+
enum: [
|
|
90
|
+
'hostname',
|
|
91
|
+
'path',
|
|
92
|
+
'region',
|
|
93
|
+
'topic',
|
|
94
|
+
'model',
|
|
95
|
+
'tag',
|
|
96
|
+
'url',
|
|
97
|
+
'root_domain',
|
|
98
|
+
'prompt_type',
|
|
99
|
+
],
|
|
78
100
|
},
|
|
79
101
|
operator: {
|
|
80
102
|
type: 'string',
|
|
@@ -14,7 +14,7 @@ exports.metadata = {
|
|
|
14
14
|
};
|
|
15
15
|
exports.tool = {
|
|
16
16
|
name: 'bots_logs_raw',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index',\n 'ai_agent'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
18
18
|
inputSchema: {
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bots-logs-raw.js","sourceRoot":"","sources":["../../../src/tools/logs/raw/bots-logs-raw.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAqD;AACrD,oDAAyE;AAK5D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,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AAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const metadata = {
|
|
|
11
11
|
};
|
|
12
12
|
export const tool = {
|
|
13
13
|
name: 'bots_logs_raw',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet identified bot logs with filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/raw_bots_response',\n $defs: {\n raw_bots_response: {\n anyOf: [ {\n type: 'array',\n title: 'LogVisitBotList',\n items: {\n type: 'object',\n title: 'LogVisitBot',\n description: 'DB Model for a bot visit.',\n properties: {\n bot_name: {\n type: 'string',\n title: 'Bot Name'\n },\n bot_provider: {\n type: 'string',\n title: 'Bot Provider'\n },\n bot_types: {\n type: 'array',\n title: 'Bot Types',\n items: {\n type: 'string',\n enum: [ 'ai_assistant',\n 'ai_training',\n 'index',\n 'ai_agent'\n ]\n }\n },\n host: {\n type: 'string',\n title: 'Host'\n },\n ip: {\n type: 'string',\n title: 'Ip'\n },\n method: {\n type: 'string',\n title: 'Method'\n },\n org_id: {\n type: 'string',\n title: 'Org Id'\n },\n path: {\n type: 'string',\n title: 'Path'\n },\n status_code: {\n type: 'integer',\n title: 'Status Code'\n },\n timestamp: {\n type: 'string',\n title: 'Timestamp',\n format: 'date-time'\n },\n user_agent: {\n type: 'string',\n title: 'User Agent'\n },\n bytes_sent: {\n type: 'integer',\n title: 'Bytes Sent'\n },\n duration_ms: {\n type: 'integer',\n title: 'Duration Ms'\n },\n query_params: {\n type: 'object',\n title: 'Query Params',\n additionalProperties: true\n },\n referer: {\n type: 'string',\n title: 'Referer'\n }\n },\n required: [ 'bot_name',\n 'bot_provider',\n 'bot_types',\n 'host',\n 'ip',\n 'method',\n 'org_id',\n 'path',\n 'status_code',\n 'timestamp',\n 'user_agent'\n ]\n }\n },\n {\n $ref: '#/$defs/report_response'\n }\n ],\n title: 'Response Get Bots V1 Logs Raw Bots Post',\n description: 'Base response model for reports.'\n },\n report_response: {\n type: 'object',\n title: 'Response',\n description: 'Base response model for reports.',\n properties: {\n data: {\n type: 'array',\n title: 'Data',\n items: {\n $ref: '#/$defs/report_result'\n }\n },\n info: {\n $ref: '#/$defs/report_info'\n }\n },\n required: [ 'data',\n 'info'\n ]\n },\n report_result: {\n type: 'object',\n title: 'Result',\n description: 'Base model for report results.',\n properties: {\n dimensions: {\n type: 'array',\n title: 'Dimensions',\n items: {\n type: 'string'\n }\n },\n metrics: {\n type: 'array',\n title: 'Metrics',\n items: {\n type: 'number'\n }\n }\n },\n required: [ 'dimensions',\n 'metrics'\n ]\n },\n report_info: {\n type: 'object',\n title: 'Info',\n description: 'Base model for report information.',\n properties: {\n total_rows: {\n type: 'integer',\n title: 'Total Rows'\n },\n query: {\n type: 'object',\n title: 'Query',\n additionalProperties: true\n }\n },\n required: [ 'total_rows'\n ]\n }\n }\n}\n```",
|
|
15
15
|
inputSchema: {
|
|
16
16
|
type: 'object',
|
|
17
17
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bots-logs-raw.mjs","sourceRoot":"","sources":["../../../src/tools/logs/raw/bots-logs-raw.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,wBAAwB;OAC7C,EAAY,mBAAmB,EAAE,MAAM,0BAA0B;AAKxE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"bots-logs-raw.mjs","sourceRoot":"","sources":["../../../src/tools/logs/raw/bots-logs-raw.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,wBAAwB;OAC7C,EAAY,mBAAmB,EAAE,MAAM,0BAA0B;AAKxE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,gCAAgC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,k/IAAk/I;IACp/I,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,2BAA2B;aACzC;YACD,OAAO,EAAE;gBAC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B,WAAW,EAAE,0BAA0B;gBACvC,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,4EAA4E;qBAC1F;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,8CAA8C;qBAC5D;iBACF;aACF;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations-reports.d.mts","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,0BAA0B;OAEjE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"citations-reports.d.mts","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,0BAA0B;OAEjE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0KlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+DAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations-reports.d.ts","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,0BAA0B;OAEjE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"citations-reports.d.ts","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,0BAA0B;OAEjE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,YAAY;AAEjC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0KlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+DAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -54,7 +54,18 @@ exports.tool = {
|
|
|
54
54
|
description: 'Dimensions to group the report by.',
|
|
55
55
|
items: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
enum: [
|
|
57
|
+
enum: [
|
|
58
|
+
'hostname',
|
|
59
|
+
'path',
|
|
60
|
+
'date',
|
|
61
|
+
'region',
|
|
62
|
+
'topic',
|
|
63
|
+
'model',
|
|
64
|
+
'tag',
|
|
65
|
+
'prompt',
|
|
66
|
+
'url',
|
|
67
|
+
'root_domain',
|
|
68
|
+
],
|
|
58
69
|
},
|
|
59
70
|
},
|
|
60
71
|
filters: {
|
|
@@ -63,12 +74,22 @@ exports.tool = {
|
|
|
63
74
|
description: 'List of filters to apply to the report. Each filter has an operator, field, and value.',
|
|
64
75
|
items: {
|
|
65
76
|
type: 'object',
|
|
66
|
-
title: "Filter[Literal['hostname', 'path', 'region', 'topic', 'model', 'tag']]",
|
|
77
|
+
title: "Filter[Literal['hostname', 'path', 'region', 'topic', 'model', 'tag', 'url', 'root_domain', 'prompt_type']]",
|
|
67
78
|
properties: {
|
|
68
79
|
field: {
|
|
69
80
|
type: 'string',
|
|
70
81
|
title: 'Field',
|
|
71
|
-
enum: [
|
|
82
|
+
enum: [
|
|
83
|
+
'hostname',
|
|
84
|
+
'path',
|
|
85
|
+
'region',
|
|
86
|
+
'topic',
|
|
87
|
+
'model',
|
|
88
|
+
'tag',
|
|
89
|
+
'url',
|
|
90
|
+
'root_domain',
|
|
91
|
+
'prompt_type',
|
|
92
|
+
],
|
|
72
93
|
},
|
|
73
94
|
operator: {
|
|
74
95
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations-reports.js","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAqD;AACrD,oDAAyE;AAK5D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,2CAA2C;CACzD,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,8oDAA8oD;IAChpD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU;gBACjB,WAAW,EACT,gGAAgG;gBAClG,MAAM,EAAE,WAAW;aACpB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC;iBAClC;aACF;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,kGAAkG;gBACpG,MAAM,EAAE,WAAW;aACpB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,+DAA+D;gBAC5E,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;aACvC;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"citations-reports.js","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAqD;AACrD,oDAAyE;AAK5D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC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3B;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;QAC9D,KAAK,EAAE;YACL,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,0BAA0B;gBACvC,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,4EAA4E;qBAC1F;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,8CAA8C;qBAC5D;iBACF;aACF;SACF;KACF;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -51,7 +51,18 @@ export const tool = {
|
|
|
51
51
|
description: 'Dimensions to group the report by.',
|
|
52
52
|
items: {
|
|
53
53
|
type: 'string',
|
|
54
|
-
enum: [
|
|
54
|
+
enum: [
|
|
55
|
+
'hostname',
|
|
56
|
+
'path',
|
|
57
|
+
'date',
|
|
58
|
+
'region',
|
|
59
|
+
'topic',
|
|
60
|
+
'model',
|
|
61
|
+
'tag',
|
|
62
|
+
'prompt',
|
|
63
|
+
'url',
|
|
64
|
+
'root_domain',
|
|
65
|
+
],
|
|
55
66
|
},
|
|
56
67
|
},
|
|
57
68
|
filters: {
|
|
@@ -60,12 +71,22 @@ export const tool = {
|
|
|
60
71
|
description: 'List of filters to apply to the report. Each filter has an operator, field, and value.',
|
|
61
72
|
items: {
|
|
62
73
|
type: 'object',
|
|
63
|
-
title: "Filter[Literal['hostname', 'path', 'region', 'topic', 'model', 'tag']]",
|
|
74
|
+
title: "Filter[Literal['hostname', 'path', 'region', 'topic', 'model', 'tag', 'url', 'root_domain', 'prompt_type']]",
|
|
64
75
|
properties: {
|
|
65
76
|
field: {
|
|
66
77
|
type: 'string',
|
|
67
78
|
title: 'Field',
|
|
68
|
-
enum: [
|
|
79
|
+
enum: [
|
|
80
|
+
'hostname',
|
|
81
|
+
'path',
|
|
82
|
+
'region',
|
|
83
|
+
'topic',
|
|
84
|
+
'model',
|
|
85
|
+
'tag',
|
|
86
|
+
'url',
|
|
87
|
+
'root_domain',
|
|
88
|
+
'prompt_type',
|
|
89
|
+
],
|
|
69
90
|
},
|
|
70
91
|
operator: {
|
|
71
92
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations-reports.mjs","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,wBAAwB;OAC7C,EAAY,mBAAmB,EAAE,MAAM,0BAA0B;AAKxE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,2CAA2C;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,8oDAA8oD;IAChpD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,aAAa;aACrB;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU;gBACjB,WAAW,EACT,gGAAgG;gBAClG,MAAM,EAAE,WAAW;aACpB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC;iBAClC;aACF;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,kGAAkG;gBACpG,MAAM,EAAE,WAAW;aACpB;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,+DAA+D;gBAC5E,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;aACvC;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"citations-reports.mjs","sourceRoot":"","sources":["../../src/tools/reports/citations-reports.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,wBAAwB;OAC7C,EAAY,mBAAmB,EAAE,MAAM,0BAA0B;AAKxE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB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