@apify/actors-mcp-server 0.10.12-beta.4 → 0.10.12-beta.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/actors-mcp-server",
3
- "version": "0.10.12-beta.4",
3
+ "version": "0.10.12-beta.6",
4
4
  "type": "module",
5
5
  "description": "Apify MCP Server",
6
6
  "mcpName": "com.apify/apify-mcp-server",
@@ -1,6 +0,0 @@
1
- import type { PromptBase } from '../types.js';
2
- /**
3
- * Actual prompt definition.
4
- */
5
- export declare const latestNewsOnTopicPrompt: PromptBase;
6
- //# sourceMappingURL=latest_news_on_topic.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"latest_news_on_topic.d.ts","sourceRoot":"","sources":["../../src/prompts/latest_news_on_topic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAuC9C;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAUrC,CAAC"}
@@ -1,48 +0,0 @@
1
- import { fixedAjvCompile } from '../tools/utils.js';
2
- import { ajv } from '../utils/ajv.js';
3
- /**
4
- * Prompt MCP arguments list.
5
- */
6
- const args = [
7
- {
8
- name: 'topic',
9
- description: 'The topic to retrieve the latest news on.',
10
- required: true,
11
- },
12
- {
13
- name: 'timespan',
14
- description: 'The timespan for which to retrieve news articles. Defaults to "7 days". For example "1 day", "3 days", "7 days", "1 month", etc.',
15
- required: false,
16
- },
17
- ];
18
- /**
19
- * Prompt AJV arguments schema for validation.
20
- */
21
- const argsSchema = fixedAjvCompile(ajv, {
22
- type: 'object',
23
- properties: {
24
- ...Object.fromEntries(args.map((arg) => [
25
- arg.name,
26
- {
27
- type: 'string',
28
- description: arg.description,
29
- },
30
- ])),
31
- },
32
- required: [...args.filter((arg) => arg.required).map((arg) => arg.name)],
33
- });
34
- /**
35
- * Actual prompt definition.
36
- */
37
- export const latestNewsOnTopicPrompt = {
38
- name: 'GetLatestNewsOnTopic',
39
- description: 'This prompt retrieves the latest news articles on a selected topic.',
40
- arguments: args,
41
- ajvValidate: argsSchema,
42
- render: (data) => {
43
- const currentDateUtc = new Date().toISOString().split('T')[0];
44
- const timespan = data.timespan && data.timespan.trim() !== '' ? data.timespan : '7 days';
45
- return `I want you to use the RAG web browser to search the web for the latest news on the "${data.topic}" topic. Retrieve news from the last ${timespan}. The RAG web browser accepts a query parameter that supports all Google input, including filters and flags—be sure to use them to accomplish my goal. Today is ${currentDateUtc} UTC.`;
46
- },
47
- };
48
- //# sourceMappingURL=latest_news_on_topic.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"latest_news_on_topic.js","sourceRoot":"","sources":["../../src/prompts/latest_news_on_topic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC;;GAEG;AACH,MAAM,IAAI,GAAqB;IAC3B;QACI,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,2CAA2C;QACxD,QAAQ,EAAE,IAAI;KACjB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,WAAW,EACP,kIAAkI;QACtI,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,EAAE;IACpC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,GAAG,MAAM,CAAC,WAAW,CACjB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;YACd,GAAG,CAAC,IAAI;YACR;gBACI,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,GAAG,CAAC,WAAW;aAC/B;SACJ,CAAC,CACL;KACJ;IACD,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,C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