@apify/actors-mcp-server 0.10.10 → 0.10.11-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apify_client.js +1 -4
- package/dist/apify_client.js.map +1 -1
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js +9 -17
- package/dist/const.js.map +1 -1
- package/dist/dev_server.d.ts.map +1 -1
- package/dist/dev_server.js +10 -8
- package/dist/dev_server.js.map +1 -1
- package/dist/errors.js +1 -4
- package/dist/errors.js.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index_internals.d.ts.map +1 -1
- package/dist/index_internals.js +2 -5
- package/dist/index_internals.js.map +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +6 -8
- package/dist/input.js.map +1 -1
- package/dist/instrument.js +4 -7
- package/dist/instrument.js.map +1 -1
- package/dist/mcp/actors.d.ts +4 -4
- package/dist/mcp/actors.d.ts.map +1 -1
- package/dist/mcp/actors.js +7 -9
- package/dist/mcp/actors.js.map +1 -1
- package/dist/mcp/client.d.ts.map +1 -1
- package/dist/mcp/client.js +2 -8
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/const.js +1 -4
- package/dist/mcp/const.js.map +1 -1
- package/dist/mcp/proxy.d.ts.map +1 -1
- package/dist/mcp/proxy.js +1 -4
- package/dist/mcp/proxy.js.map +1 -1
- package/dist/mcp/server.d.ts +17 -17
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +90 -55
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/utils.js +1 -4
- package/dist/mcp/utils.js.map +1 -1
- package/dist/payments/const.js +1 -4
- package/dist/payments/const.js.map +1 -1
- package/dist/payments/helpers.d.ts.map +1 -1
- package/dist/payments/helpers.js +1 -4
- package/dist/payments/helpers.js.map +1 -1
- package/dist/payments/index.js +1 -4
- package/dist/payments/index.js.map +1 -1
- package/dist/payments/resolve.d.ts.map +1 -1
- package/dist/payments/resolve.js +1 -4
- package/dist/payments/resolve.js.map +1 -1
- package/dist/payments/skyfire.js +1 -4
- package/dist/payments/skyfire.js.map +1 -1
- package/dist/payments/types.d.ts.map +1 -1
- package/dist/payments/types.js +1 -4
- package/dist/payments/types.js.map +1 -1
- package/dist/payments/x402.d.ts.map +1 -1
- package/dist/payments/x402.js +6 -6
- package/dist/payments/x402.js.map +1 -1
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +2 -7
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/latest_news_on_topic.d.ts.map +1 -1
- package/dist/prompts/latest_news_on_topic.js +6 -6
- package/dist/prompts/latest_news_on_topic.js.map +1 -1
- package/dist/resources/resource_service.d.ts.map +1 -1
- package/dist/resources/resource_service.js +19 -14
- package/dist/resources/resource_service.js.map +1 -1
- package/dist/resources/widgets.d.ts.map +1 -1
- package/dist/resources/widgets.js +1 -4
- package/dist/resources/widgets.js.map +1 -1
- package/dist/server_card.js +1 -4
- package/dist/server_card.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +1 -4
- package/dist/state.js.map +1 -1
- package/dist/stdio.js +5 -8
- package/dist/stdio.js.map +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +2 -5
- package/dist/telemetry.js.map +1 -1
- package/dist/tools/actor_executor.d.ts.map +1 -1
- package/dist/tools/actor_executor.js +1 -4
- package/dist/tools/actor_executor.js.map +1 -1
- package/dist/tools/apps/call_actor.js +1 -4
- package/dist/tools/apps/call_actor.js.map +1 -1
- package/dist/tools/apps/call_actor_widget.d.ts.map +1 -1
- package/dist/tools/apps/call_actor_widget.js +15 -11
- package/dist/tools/apps/call_actor_widget.js.map +1 -1
- package/dist/tools/apps/fetch_actor_details_widget.d.ts.map +1 -1
- package/dist/tools/apps/fetch_actor_details_widget.js +17 -12
- package/dist/tools/apps/fetch_actor_details_widget.js.map +1 -1
- package/dist/tools/apps/get_actor_run_widget.d.ts.map +1 -1
- package/dist/tools/apps/get_actor_run_widget.js +7 -10
- package/dist/tools/apps/get_actor_run_widget.js.map +1 -1
- package/dist/tools/apps/search_actors_widget.d.ts.map +1 -1
- package/dist/tools/apps/search_actors_widget.js +6 -7
- package/dist/tools/apps/search_actors_widget.js.map +1 -1
- package/dist/tools/build.d.ts.map +1 -1
- package/dist/tools/build.js +5 -8
- package/dist/tools/build.js.map +1 -1
- package/dist/tools/categories.d.ts.map +1 -1
- package/dist/tools/categories.js +5 -21
- package/dist/tools/categories.js.map +1 -1
- package/dist/tools/common/abort_actor_run.d.ts.map +1 -1
- package/dist/tools/common/abort_actor_run.js +6 -8
- package/dist/tools/common/abort_actor_run.js.map +1 -1
- package/dist/tools/common/add_actor.d.ts.map +1 -1
- package/dist/tools/common/add_actor.js +4 -6
- package/dist/tools/common/add_actor.js.map +1 -1
- package/dist/tools/common/dataset_collection.d.ts.map +1 -1
- package/dist/tools/common/dataset_collection.js +9 -8
- package/dist/tools/common/dataset_collection.js.map +1 -1
- package/dist/tools/common/fetch_apify_docs.d.ts.map +1 -1
- package/dist/tools/common/fetch_apify_docs.js +18 -10
- package/dist/tools/common/fetch_apify_docs.js.map +1 -1
- package/dist/tools/common/get_actor_output.d.ts.map +1 -1
- package/dist/tools/common/get_actor_output.js +10 -22
- package/dist/tools/common/get_actor_output.js.map +1 -1
- package/dist/tools/common/get_actor_run_log.d.ts.map +1 -1
- package/dist/tools/common/get_actor_run_log.js +3 -9
- package/dist/tools/common/get_actor_run_log.js.map +1 -1
- package/dist/tools/common/get_dataset.d.ts.map +1 -1
- package/dist/tools/common/get_dataset.js +2 -7
- package/dist/tools/common/get_dataset.js.map +1 -1
- package/dist/tools/common/get_dataset_items.d.ts.map +1 -1
- package/dist/tools/common/get_dataset_items.js +25 -25
- package/dist/tools/common/get_dataset_items.js.map +1 -1
- package/dist/tools/common/get_dataset_schema.d.ts.map +1 -1
- package/dist/tools/common/get_dataset_schema.js +8 -9
- package/dist/tools/common/get_dataset_schema.js.map +1 -1
- package/dist/tools/common/get_key_value_store.d.ts.map +1 -1
- package/dist/tools/common/get_key_value_store.js +2 -7
- package/dist/tools/common/get_key_value_store.js.map +1 -1
- package/dist/tools/common/get_key_value_store_keys.d.ts.map +1 -1
- package/dist/tools/common/get_key_value_store_keys.js +5 -12
- package/dist/tools/common/get_key_value_store_keys.js.map +1 -1
- package/dist/tools/common/get_key_value_store_record.d.ts.map +1 -1
- package/dist/tools/common/get_key_value_store_record.js +3 -10
- package/dist/tools/common/get_key_value_store_record.js.map +1 -1
- package/dist/tools/common/key_value_store_collection.d.ts.map +1 -1
- package/dist/tools/common/key_value_store_collection.js +9 -8
- package/dist/tools/common/key_value_store_collection.js.map +1 -1
- package/dist/tools/common/run_collection.d.ts.map +1 -1
- package/dist/tools/common/run_collection.js +12 -9
- package/dist/tools/common/run_collection.js.map +1 -1
- package/dist/tools/common/search_apify_docs.d.ts.map +1 -1
- package/dist/tools/common/search_apify_docs.js +13 -15
- package/dist/tools/common/search_apify_docs.js.map +1 -1
- package/dist/tools/core/actor_run_response.d.ts.map +1 -1
- package/dist/tools/core/actor_run_response.js +38 -12
- package/dist/tools/core/actor_run_response.js.map +1 -1
- package/dist/tools/core/actor_tools_factory.d.ts.map +1 -1
- package/dist/tools/core/actor_tools_factory.js +14 -14
- package/dist/tools/core/actor_tools_factory.js.map +1 -1
- package/dist/tools/core/call_actor_common.d.ts.map +1 -1
- package/dist/tools/core/call_actor_common.js +34 -38
- package/dist/tools/core/call_actor_common.js.map +1 -1
- package/dist/tools/core/fetch_actor_details_common.d.ts.map +1 -1
- package/dist/tools/core/fetch_actor_details_common.js +23 -22
- package/dist/tools/core/fetch_actor_details_common.js.map +1 -1
- package/dist/tools/core/get_actor_run_common.d.ts.map +1 -1
- package/dist/tools/core/get_actor_run_common.js +8 -20
- package/dist/tools/core/get_actor_run_common.js.map +1 -1
- package/dist/tools/core/search_actors_common.d.ts.map +1 -1
- package/dist/tools/core/search_actors_common.js +9 -14
- package/dist/tools/core/search_actors_common.js.map +1 -1
- package/dist/tools/default/call_actor.js +1 -4
- package/dist/tools/default/call_actor.js.map +1 -1
- package/dist/tools/default/fetch_actor_details.d.ts.map +1 -1
- package/dist/tools/default/fetch_actor_details.js +2 -5
- package/dist/tools/default/fetch_actor_details.js.map +1 -1
- package/dist/tools/default/get_actor_run.js +1 -4
- package/dist/tools/default/get_actor_run.js.map +1 -1
- package/dist/tools/default/search_actors.js +1 -4
- package/dist/tools/default/search_actors.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -5
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/structured_output_schemas.d.ts.map +1 -1
- package/dist/tools/structured_output_schemas.js +48 -23
- package/dist/tools/structured_output_schemas.js.map +1 -1
- package/dist/tools/utils.d.ts.map +1 -1
- package/dist/tools/utils.js +7 -10
- package/dist/tools/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -4
- package/dist/types.js.map +1 -1
- package/dist/utils/actor.d.ts.map +1 -1
- package/dist/utils/actor.js +5 -8
- package/dist/utils/actor.js.map +1 -1
- package/dist/utils/actor_card.d.ts.map +1 -1
- package/dist/utils/actor_card.js +9 -17
- package/dist/utils/actor_card.js.map +1 -1
- package/dist/utils/actor_details.d.ts.map +1 -1
- package/dist/utils/actor_details.js +1 -4
- package/dist/utils/actor_details.js.map +1 -1
- package/dist/utils/actor_search.d.ts.map +1 -1
- package/dist/utils/actor_search.js +1 -4
- package/dist/utils/actor_search.js.map +1 -1
- package/dist/utils/ajv.d.ts.map +1 -1
- package/dist/utils/ajv.js +1 -4
- package/dist/utils/ajv.js.map +1 -1
- package/dist/utils/apify_docs.d.ts.map +1 -1
- package/dist/utils/apify_docs.js +1 -4
- package/dist/utils/apify_docs.js.map +1 -1
- package/dist/utils/apify_properties.d.ts.map +1 -1
- package/dist/utils/apify_properties.js +7 -47
- package/dist/utils/apify_properties.js.map +1 -1
- package/dist/utils/auth.js +1 -4
- package/dist/utils/auth.js.map +1 -1
- package/dist/utils/generic.d.ts.map +1 -1
- package/dist/utils/generic.js +8 -8
- package/dist/utils/generic.js.map +1 -1
- package/dist/utils/logging.js +1 -4
- package/dist/utils/logging.js.map +1 -1
- package/dist/utils/mcp.js +1 -4
- package/dist/utils/mcp.js.map +1 -1
- package/dist/utils/mcp_clients.js +1 -4
- package/dist/utils/mcp_clients.js.map +1 -1
- package/dist/utils/payment_errors.d.ts.map +1 -1
- package/dist/utils/payment_errors.js +2 -8
- package/dist/utils/payment_errors.js.map +1 -1
- package/dist/utils/pricing_info.d.ts +1 -1
- package/dist/utils/pricing_info.d.ts.map +1 -1
- package/dist/utils/pricing_info.js +17 -26
- package/dist/utils/pricing_info.js.map +1 -1
- package/dist/utils/progress.d.ts.map +1 -1
- package/dist/utils/progress.js +2 -7
- package/dist/utils/progress.js.map +1 -1
- package/dist/utils/schema_generation.d.ts.map +1 -1
- package/dist/utils/schema_generation.js +2 -7
- package/dist/utils/schema_generation.js.map +1 -1
- package/dist/utils/server-instructions/index.d.ts.map +1 -1
- package/dist/utils/server-instructions/index.js +9 -8
- package/dist/utils/server-instructions/index.js.map +1 -1
- package/dist/utils/server_mode.d.ts.map +1 -1
- package/dist/utils/server_mode.js +1 -4
- package/dist/utils/server_mode.js.map +1 -1
- package/dist/utils/tool_categories_helpers.d.ts.map +1 -1
- package/dist/utils/tool_categories_helpers.js +2 -6
- package/dist/utils/tool_categories_helpers.js.map +1 -1
- package/dist/utils/tool_status.d.ts.map +1 -1
- package/dist/utils/tool_status.js +4 -5
- package/dist/utils/tool_status.js.map +1 -1
- package/dist/utils/tools.d.ts.map +1 -1
- package/dist/utils/tools.js +10 -14
- package/dist/utils/tools.js.map +1 -1
- package/dist/utils/tools_loader.d.ts.map +1 -1
- package/dist/utils/tools_loader.js +1 -4
- package/dist/utils/tools_loader.js.map +1 -1
- package/dist/utils/ttl_lru.js +1 -4
- package/dist/utils/ttl_lru.js.map +1 -1
- package/dist/utils/userid_cache.d.ts.map +1 -1
- package/dist/utils/userid_cache.js +1 -4
- package/dist/utils/userid_cache.js.map +1 -1
- package/dist/utils/version.js +1 -4
- package/dist/utils/version.js.map +1 -1
- package/dist/web/dist/actor-detail-widget.js +357 -359
- package/dist/web/dist/actor-run-widget.js +51 -53
- package/dist/web/dist/search-actors-widget.js +453 -455
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="63c46dce-5e28-58d9-8ecf-07c97a3768f6")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { z } from 'zod';
|
|
5
3
|
import { FAILURE_CATEGORY, HelperTools, TOOL_STATUS } from '../../const.js';
|
|
@@ -21,10 +19,19 @@ export const actorDetailsOutputOptionsSchema = z.object({
|
|
|
21
19
|
stats: z.boolean().optional().describe('Include usage statistics (users, runs, success rate).'),
|
|
22
20
|
pricing: z.boolean().optional().describe('Include pricing model and costs.'),
|
|
23
21
|
rating: z.boolean().optional().describe('Include user rating (out of 5 stars).'),
|
|
24
|
-
metadata: z
|
|
22
|
+
metadata: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Include developer, categories, last modified date, and deprecation status.'),
|
|
25
26
|
inputSchema: z.boolean().optional().describe('Include required input parameters schema.'),
|
|
26
|
-
readme: z
|
|
27
|
-
|
|
27
|
+
readme: z
|
|
28
|
+
.boolean()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Include Actor README documentation (summary when available, full otherwise).'),
|
|
31
|
+
outputSchema: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Include inferred output schema from recent successful runs (TypeScript type).'),
|
|
28
35
|
mcpTools: z.boolean().optional().describe('List available tools (only for MCP server Actors).'),
|
|
29
36
|
});
|
|
30
37
|
export const actorDetailsOutputDefaults = {
|
|
@@ -66,10 +73,12 @@ export function resolveOutputOptions(output) {
|
|
|
66
73
|
* `src/tools/apps/fetch_actor_details_widget.ts`.
|
|
67
74
|
*/
|
|
68
75
|
export const fetchActorDetailsToolArgsSchema = z.object({
|
|
69
|
-
actor: z
|
|
76
|
+
actor: z
|
|
77
|
+
.string()
|
|
70
78
|
.min(1)
|
|
71
79
|
.describe(`Actor ID or full name in the format "username/name", e.g., "apify/rag-web-browser".`),
|
|
72
|
-
output: actorDetailsOutputOptionsSchema
|
|
80
|
+
output: actorDetailsOutputOptionsSchema
|
|
81
|
+
.optional()
|
|
73
82
|
.describe('Specify which information to include in the response to save tokens.'),
|
|
74
83
|
});
|
|
75
84
|
const FETCH_ACTOR_DETAILS_DESCRIPTION = `Get detailed information about an Actor by its ID or full name (format: "username/name", e.g., "apify/rag-web-browser").
|
|
@@ -111,11 +120,13 @@ export const fetchActorDetailsMetadata = {
|
|
|
111
120
|
*/
|
|
112
121
|
export function buildActorNotFoundResponse(actorName) {
|
|
113
122
|
return buildMCPResponse({
|
|
114
|
-
texts: [
|
|
123
|
+
texts: [
|
|
124
|
+
dedent `
|
|
115
125
|
Actor information for '${actorName}' was not found.
|
|
116
126
|
Please verify Actor ID or name format and ensure that the Actor exists.
|
|
117
127
|
You can search for available Actors using the tool: ${HelperTools.STORE_SEARCH}.
|
|
118
|
-
|
|
128
|
+
`,
|
|
129
|
+
],
|
|
119
130
|
isError: true,
|
|
120
131
|
telemetry: { toolStatus: TOOL_STATUS.SOFT_FAIL, failureCategory: FAILURE_CATEGORY.INVALID_INPUT },
|
|
121
132
|
});
|
|
@@ -128,11 +139,7 @@ export function buildActorDetailsTextResponse(options) {
|
|
|
128
139
|
const { details, output, actorOutputSchema, mcpToolsMessage } = options;
|
|
129
140
|
const actorUrl = `https://apify.com/${details.actorInfo.username}/${details.actorInfo.name}`;
|
|
130
141
|
const texts = [];
|
|
131
|
-
const needsCard = output.description
|
|
132
|
-
|| output.stats
|
|
133
|
-
|| output.pricing
|
|
134
|
-
|| output.rating
|
|
135
|
-
|| output.metadata;
|
|
142
|
+
const needsCard = output.description || output.stats || output.pricing || output.rating || output.metadata;
|
|
136
143
|
if (needsCard) {
|
|
137
144
|
texts.push(`# Actor information\n${details.actorCard}`);
|
|
138
145
|
}
|
|
@@ -141,12 +148,7 @@ export function buildActorDetailsTextResponse(options) {
|
|
|
141
148
|
texts.push(`${resolvedReadme.heading}\n${resolvedReadme.content}`);
|
|
142
149
|
}
|
|
143
150
|
if (output.inputSchema) {
|
|
144
|
-
texts.push([
|
|
145
|
-
`# [Input schema](${actorUrl}/input)`,
|
|
146
|
-
'```json',
|
|
147
|
-
JSON.stringify(details.inputSchema),
|
|
148
|
-
'```',
|
|
149
|
-
].join('\n'));
|
|
151
|
+
texts.push([`# [Input schema](${actorUrl}/input)`, '```json', JSON.stringify(details.inputSchema), '```'].join('\n'));
|
|
150
152
|
}
|
|
151
153
|
if (output.outputSchema) {
|
|
152
154
|
if (actorOutputSchema && Object.keys(actorOutputSchema).length > 0) {
|
|
@@ -218,5 +220,4 @@ export async function buildFetchActorDetailsResult(toolArgs) {
|
|
|
218
220
|
});
|
|
219
221
|
return buildMCPResponse({ texts, structuredContent });
|
|
220
222
|
}
|
|
221
|
-
//# sourceMappingURL=fetch_actor_details_common.js.map
|
|
222
|
-
//# debugId=63c46dce-5e28-58d9-8ecf-07c97a3768f6
|
|
223
|
+
//# sourceMappingURL=fetch_actor_details_common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch_actor_details_common.js","sources":["../../../src/tools/core/fetch_actor_details_common.ts"],"
|
|
1
|
+
{"version":3,"file":"fetch_actor_details_common.js","sourceRoot":"","sources":["../../../src/tools/core/fetch_actor_details_common.ts"],"names":[],"mappings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AAe,EACvC,YAAY,CACf;QACH,CAAC,CAAC,SAAS,CAAC;IAEhB,0FAA0F;IAC1F,sFAAsF;IACtF,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,6BAA6B,CAAC;QAC/D,OAAO;QACP,MAAM,EAAE,cAAc;QACtB,iBAAiB;QACjB,eAAe;KAClB,CAAC,CAAC;IAEH,OAAO,gBAAgB,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_actor_run_common.d.ts","sourceRoot":"","sources":["../../../src/tools/core/get_actor_run_common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,KAAK,mBAAmB,EAA2C,MAAM,yBAAyB,CAAC;AAE5G,iHAAiH;AACjH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,eAAe;;;
|
|
1
|
+
{"version":3,"file":"get_actor_run_common.d.ts","sourceRoot":"","sources":["../../../src/tools/core/get_actor_run_common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,KAAK,mBAAmB,EAA2C,MAAM,yBAAyB,CAAC;AAE5G,iHAAiH;AACjH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,eAAe;;;iBAM1B,CAAC;AAkBH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAiBxD,CAAC;AAMF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAYxG;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC3C,MAAM,EAAE,mBAAmB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAClD,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAyBrC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4f8588f9-9843-5991-8342-b84181faab7b")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { z } from 'zod';
|
|
5
3
|
import { HelperTools, TOOL_STATUS } from '../../const.js';
|
|
@@ -14,16 +12,8 @@ export const WAIT_SECS_DEFAULT = 30;
|
|
|
14
12
|
* Zod schema for `get-actor-run` arguments — shared between default and widget variants.
|
|
15
13
|
*/
|
|
16
14
|
export const getActorRunArgs = z.object({
|
|
17
|
-
runId: z.string()
|
|
18
|
-
|
|
19
|
-
.describe('The ID of the Actor run.'),
|
|
20
|
-
waitSecs: z.number()
|
|
21
|
-
.int()
|
|
22
|
-
.min(0)
|
|
23
|
-
.max(WAIT_SECS_MAX)
|
|
24
|
-
.optional()
|
|
25
|
-
.default(WAIT_SECS_DEFAULT)
|
|
26
|
-
.describe(dedent `
|
|
15
|
+
runId: z.string().min(1).describe('The ID of the Actor run.'),
|
|
16
|
+
waitSecs: z.number().int().min(0).max(WAIT_SECS_MAX).optional().default(WAIT_SECS_DEFAULT).describe(dedent `
|
|
27
17
|
Maximum seconds to wait for the run to reach a terminal state (SUCCEEDED, FAILED, ABORTED, TIMED-OUT).
|
|
28
18
|
0 returns immediately with the current status. Cap: ${WAIT_SECS_MAX}. Default: ${WAIT_SECS_DEFAULT}.
|
|
29
19
|
`),
|
|
@@ -71,10 +61,12 @@ export const getActorRunMetadata = {
|
|
|
71
61
|
export function buildGetActorRunError(runId, error) {
|
|
72
62
|
const errMsg = error instanceof Error ? error.message : String(error);
|
|
73
63
|
return buildMCPResponse({
|
|
74
|
-
texts: [
|
|
64
|
+
texts: [
|
|
65
|
+
dedent `
|
|
75
66
|
Failed to get Actor run '${runId}': ${errMsg}.
|
|
76
67
|
Please verify the run ID and ensure that the run exists.
|
|
77
|
-
|
|
68
|
+
`,
|
|
69
|
+
],
|
|
78
70
|
isError: true,
|
|
79
71
|
telemetry: { toolStatus: TOOL_STATUS.SOFT_FAIL },
|
|
80
72
|
});
|
|
@@ -89,10 +81,7 @@ export function buildGetActorRunSuccessResponse(params) {
|
|
|
89
81
|
const { run, structuredContent, widget } = params;
|
|
90
82
|
if (!widget) {
|
|
91
83
|
return buildMCPResponse({
|
|
92
|
-
texts: [
|
|
93
|
-
JSON.stringify(structuredContent),
|
|
94
|
-
`${structuredContent.summary}\n${structuredContent.nextStep}`,
|
|
95
|
-
],
|
|
84
|
+
texts: [JSON.stringify(structuredContent), `${structuredContent.summary}\n${structuredContent.nextStep}`],
|
|
96
85
|
structuredContent,
|
|
97
86
|
_meta: buildUsageMeta(run),
|
|
98
87
|
});
|
|
@@ -112,5 +101,4 @@ export function buildGetActorRunSuccessResponse(params) {
|
|
|
112
101
|
},
|
|
113
102
|
});
|
|
114
103
|
}
|
|
115
|
-
//# sourceMappingURL=get_actor_run_common.js.map
|
|
116
|
-
//# debugId=4f8588f9-9843-5991-8342-b84181faab7b
|
|
104
|
+
//# sourceMappingURL=get_actor_run_common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_actor_run_common.js","sources":["../../../src/tools/core/get_actor_run_common.ts"],"
|
|
1
|
+
{"version":3,"file":"get_actor_run_common.js","s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EAAE,CAAC;YACzG,iBAAiB;YACjB,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC;SAC7B,CAAC,CAAC;IACP,CAAC;IAED,oGAAoG;IACpG,MAAM,aAAa,GAAG,EAAE,GAAG,iBAAiB,EAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACnF,OAAO,gBAAgB,CAAC;QACpB,KAAK,EAAE;YACH,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;YAC7B,aAAa,iBAAiB,CAAC,KAAK,YAAY,iBAAiB,CAAC,MAAM,mCAAmC;SAC9G;QACD,iBAAiB,EAAE,aAAa;QAChC,KAAK,EAAE;YACH,GAAG,CAAC,MAAA,MAAA,eAAe,CAAC,WAAW,CAAC,SAAS,CAAC,0CAAE,IAAI,mCAAI,EAAE,CAAC;YACvD,GAAG,CAAC,MAAA,cAAc,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC;YAC9B,0BAA0B,EAAE,0BAA0B,MAAA,iBAAiB,CAAC,SAAS,mCAAI,iBAAiB,CAAC,KAAK,EAAE;SACjH;KACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search_actors_common.d.ts","sourceRoot":"","sources":["../../../src/tools/core/search_actors_common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,mBAAmB,EAAmB,MAAM,gBAAgB,CAAC;AAGvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;
|
|
1
|
+
{"version":3,"file":"search_actors_common.d.ts","sourceRoot":"","sources":["../../../src/tools/core/search_actors_common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,mBAAmB,EAAmB,MAAM,gBAAgB,CAAC;AAGvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;iBAmCrC,CAAC;AAyCH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAczD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;CAC9C,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,WAAW,GAAG,kBAAkB,CAM3G;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAWjG"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="17aedca1-9e5a-5ca5-b901-42060322c25b")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { z } from 'zod';
|
|
5
3
|
import { HelperTools, MAX_LIMIT_WITH_INPUT_SCHEMA } from '../../const.js';
|
|
@@ -12,9 +10,7 @@ import { actorSearchOutputSchema } from '../structured_output_schemas.js';
|
|
|
12
10
|
* widget variants — the widget variant calls `.strict()` on it.
|
|
13
11
|
*/
|
|
14
12
|
export const searchActorsBaseArgsSchema = z.object({
|
|
15
|
-
keywords: z.string()
|
|
16
|
-
.default('')
|
|
17
|
-
.describe(dedent `
|
|
13
|
+
keywords: z.string().default('').describe(dedent `
|
|
18
14
|
Space-separated keywords used to search pre-built solutions (Actors) in the Apify Store.
|
|
19
15
|
The search engine searches across the Actor's name, description, username, and README content.
|
|
20
16
|
|
|
@@ -40,17 +36,14 @@ export const searchActorsBaseArgsSchema = z.object({
|
|
|
40
36
|
❌ "top popular actors", "best scrapers", "trending" — ranking words aren't Actor keywords; pass "" instead
|
|
41
37
|
❌ "scraper", "extractor", "web crawler" — bare task words aren't Actor keywords; pass "" instead
|
|
42
38
|
`),
|
|
43
|
-
limit: z
|
|
39
|
+
limit: z
|
|
40
|
+
.number()
|
|
44
41
|
.int()
|
|
45
42
|
.min(1)
|
|
46
43
|
.max(MAX_LIMIT_WITH_INPUT_SCHEMA)
|
|
47
44
|
.default(5)
|
|
48
45
|
.describe(`The maximum number of Actors to return (max = ${MAX_LIMIT_WITH_INPUT_SCHEMA}, default = 5).`),
|
|
49
|
-
offset: z.number()
|
|
50
|
-
.int()
|
|
51
|
-
.min(0)
|
|
52
|
-
.default(0)
|
|
53
|
-
.describe('The number of elements to skip from the start (default = 0)'),
|
|
46
|
+
offset: z.number().int().min(0).default(0).describe('The number of elements to skip from the start (default = 0)'),
|
|
54
47
|
});
|
|
55
48
|
const SEARCH_ACTORS_DESCRIPTION = `
|
|
56
49
|
Search the Apify Store to FIND and DISCOVER what scraping tools/Actors exist for specific platforms or use cases.
|
|
@@ -122,7 +115,9 @@ export function buildSearchActorsEmptyResponse(query) {
|
|
|
122
115
|
You MUST retry with broader, more generic keywords - use just the platform name
|
|
123
116
|
(e.g., "TikTok" instead of "TikTok posts") before concluding no Actor exists.
|
|
124
117
|
`;
|
|
125
|
-
return buildMCPResponse({
|
|
118
|
+
return buildMCPResponse({
|
|
119
|
+
texts: [instructions],
|
|
120
|
+
structuredContent: { actors: [], query, count: 0, instructions },
|
|
121
|
+
});
|
|
126
122
|
}
|
|
127
|
-
//# sourceMappingURL=search_actors_common.js.map
|
|
128
|
-
//# debugId=17aedca1-9e5a-5ca5-b901-42060322c25b
|
|
123
|
+
//# sourceMappingURL=search_actors_common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search_actors_common.js","sources":["../../../src/tools/core/search_actors_common.ts"],"
|
|
1
|
+
{"version":3,"file":"search_actors_common.js","sourceRoot":"","sources":["../../../src/tools/core/search_actors_common.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;SAyB3C,CAAC;IACN,KAAK,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,2BAA2B,CAAC;SAChC,OAAO,CAAC,CAAC,CAAC;SACV,QAAQ,CAAC,iDAAiD,2BAA2B,iBAAiB,CAAC;IAC5G,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,6DAA6D,CAAC;CACrH,CAAC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EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE;KACnE,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8af307e7-e677-5ad1-890f-1c4d1f034d64")}catch(e){}}();
|
|
3
1
|
import { HelperTools } from '../../const.js';
|
|
4
2
|
import { buildCallActorDescription, callActorAjvValidate, callActorInputSchema, executeCallActor, } from '../core/call_actor_common.js';
|
|
5
3
|
import { getActorRunOutputSchema } from '../structured_output_schemas.js';
|
|
@@ -28,5 +26,4 @@ export const defaultCallActor = Object.freeze({
|
|
|
28
26
|
},
|
|
29
27
|
call: async (toolArgs) => executeCallActor(toolArgs),
|
|
30
28
|
});
|
|
31
|
-
//# sourceMappingURL=call_actor.js.map
|
|
32
|
-
//# debugId=8af307e7-e677-5ad1-890f-1c4d1f034d64
|
|
29
|
+
//# sourceMappingURL=call_actor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call_actor.js","sources":["../../../src/tools/default/call_actor.ts"],"
|
|
1
|
+
{"version":3,"file":"call_actor.js","sourceRoot":"","sources":["../../../src/tools/default/call_actor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,8BAA8B,GAAG,yBAAyB,EAAE,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAc,MAAM,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW,CAAC,UAAU;IAC5B,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,uBAAuB;IACrC,WAAW,EAAE,oBAAoB;IACjC,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE;QACT,KAAK,EAAE,YAAY;QACnB,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACtB;IACD,SAAS,EAAE;QACP,6BAA6B;QAC7B,WAAW,EAAE,UAAU;KAC1B;IACD,IAAI,EAAE,KAAK,EAAE,QAA0B,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC;CAChE,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch_actor_details.d.ts","sourceRoot":"","sources":["../../../src/tools/default/fetch_actor_details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch_actor_details.d.ts","sourceRoot":"","sources":["../../../src/tools/default/fetch_actor_details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAG5B,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1b06c445-7ff3-59eb-a0ee-c922f33c92a4")}catch(e){}}();
|
|
3
|
-
import { buildFetchActorDetailsResult, fetchActorDetailsMetadata, } from '../core/fetch_actor_details_common.js';
|
|
1
|
+
import { buildFetchActorDetailsResult, fetchActorDetailsMetadata } from '../core/fetch_actor_details_common.js';
|
|
4
2
|
/**
|
|
5
3
|
* Default mode fetch-actor-details tool.
|
|
6
4
|
* Returns full text response with output schema fetch.
|
|
@@ -9,5 +7,4 @@ export const defaultFetchActorDetails = Object.freeze({
|
|
|
9
7
|
...fetchActorDetailsMetadata,
|
|
10
8
|
call: async (toolArgs) => buildFetchActorDetailsResult(toolArgs),
|
|
11
9
|
});
|
|
12
|
-
//# sourceMappingURL=fetch_actor_details.js.map
|
|
13
|
-
//# debugId=1b06c445-7ff3-59eb-a0ee-c922f33c92a4
|
|
10
|
+
//# sourceMappingURL=fetch_actor_details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch_actor_details.js","sources":["../../../src/tools/default/fetch_actor_details.ts"],"
|
|
1
|
+
{"version":3,"file":"fetch_actor_details.js","sourceRoot":"","sources":["../../../src/tools/default/fetch_actor_details.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAEhH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAc,MAAM,CAAC,MAAM,CAAC;IAC7D,GAAG,yBAAyB;IAC5B,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,4BAA4B,CAAC,QAAQ,CAAC;CAC1D,CAAC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3e0c9082-eb67-5721-88d5-5f70e4d40ea2")}catch(e){}}();
|
|
3
1
|
import { logHttpError } from '../../utils/logging.js';
|
|
4
2
|
import { fetchActorRunData } from '../core/actor_run_response.js';
|
|
5
3
|
import { buildGetActorRunError, buildGetActorRunSuccessResponse, getActorRunArgs, getActorRunMetadata, } from '../core/get_actor_run_common.js';
|
|
@@ -34,5 +32,4 @@ export const defaultGetActorRun = Object.freeze({
|
|
|
34
32
|
}
|
|
35
33
|
},
|
|
36
34
|
});
|
|
37
|
-
//# sourceMappingURL=get_actor_run.js.map
|
|
38
|
-
//# debugId=3e0c9082-eb67-5721-88d5-5f70e4d40ea2
|
|
35
|
+
//# sourceMappingURL=get_actor_run.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_actor_run.js","sources":["../../../src/tools/default/get_actor_run.ts"],"
|
|
1
|
+
{"version":3,"file":"get_actor_run.js","sourceRoot":"","sources":["../../../src/tools/default/get_actor_run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACH,qBAAqB,EACrB,+BAA+B,EAC/B,eAAe,EACf,mBAAmB,GACtB,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAc,MAAM,CAAC,MAAM,CAAC;IACvD,GAAG,mBAAmB;IACtB,IAAI,EAAE,KAAK,EAAE,QAA0B,EAAE,EAAE;QACvC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;QACrF,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC;gBACxC,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM;gBAC1B,YAAY;aACf,CAAC,CAAC;YAEH,8EAA8E;YAC9E,wFAAwF;YACxF,IAAI,SAAS,IAAI,WAAW;gBAAE,OAAO,EAAE,CAAC;YACxC,IAAI,OAAO,IAAI,WAAW;gBAAE,OAAO,WAAW,CAAC,KAAK,CAAC;YAErD,OAAO,+BAA+B,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QACrF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,YAAY,CAAC,KAAK,EAAE,yBAAyB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;YACxE,OAAO,qBAAqB,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACtD,CAAC;IACL,CAAC;CACK,CAAC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0201e061-c115-52ab-b2b5-15ad1724d740")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { HelperTools } from '../../const.js';
|
|
5
3
|
import { searchAgentSafeActors } from '../../utils/actor_search.js';
|
|
@@ -67,5 +65,4 @@ export const defaultSearchActors = Object.freeze({
|
|
|
67
65
|
return buildMCPResponse({ texts, structuredContent });
|
|
68
66
|
},
|
|
69
67
|
});
|
|
70
|
-
//# sourceMappingURL=search_actors.js.map
|
|
71
|
-
//# debugId=0201e061-c115-52ab-b2b5-15ad1724d740
|
|
68
|
+
//# sourceMappingURL=search_actors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search_actors.js","sources":["../../../src/tools/default/search_actors.ts"],"
|
|
1
|
+
{"version":3,"file":"search_actors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AAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,uBAAuB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QAC7F,MAAM,iBAAiB,GAAG;YACtB,MAAM,EAAE,mBAAmB;YAC3B,KAAK,EAAE,MAAM,CAAC,QAAQ;YACtB,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,YAAY,EAAE,MAAM,CAAA;;uEAEuC,WAAW,CAAC,iBAAiB;;;;;aAKvF;SACJ,CAAC;QAEF,8EAA8E;QAC9E,8EAA8E;QAC9E,+EAA+E;QAC/E,4BAA4B;QAC5B,MAAM,MAAM,GAAG,MAAM,CAAA;;kCAEK,MAAM,CAAC,QAAQ;4CACL,MAAM,CAAC,MAAM;;;SAGhD,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,CAAA;;sDAEyB,WAAW,CAAC,iBAAiB;;;;;SAK1E,CAAC;QACF,MAAM,KAAK,GAAG,CAAC,GAAG,MAAM,OAAO,aAAa,OAAO,MAAM,EAAE,CAAC,CAAC;QAC7D,OAAO,gBAAgB,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAC1D,CAAC;CACK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,8BAA8B,EACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAKtC,CAAC;AAIF,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,8BAA8B,EAAE,CAAC;AAE/G;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,GAAE,UAA+B,GAAG,SAAS,EAAE,CAElF;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,YAAY,EAAE,CAM/D;AAGD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="50761776-b606-5e9d-8ecd-47b4bd43a4ac")}catch(e){}}();
|
|
3
1
|
import { HelperTools } from '../const.js';
|
|
4
2
|
import { ServerMode } from '../types.js';
|
|
5
3
|
import { getExpectedToolsByCategories } from '../utils/tool_categories_helpers.js';
|
|
6
|
-
import { CATEGORY_NAME_SET, CATEGORY_NAMES, getCategoryTools, toolCategories, toolCategoriesEnabledByDefault } from './categories.js';
|
|
4
|
+
import { CATEGORY_NAME_SET, CATEGORY_NAMES, getCategoryTools, toolCategories, toolCategoriesEnabledByDefault, } from './categories.js';
|
|
7
5
|
import { getActorsAsTools } from './core/actor_tools_factory.js';
|
|
8
6
|
// Use string constants instead of tool object imports to avoid circular dependencies
|
|
9
7
|
export const unauthEnabledTools = [
|
|
@@ -36,5 +34,4 @@ export function getUnauthEnabledToolCategories() {
|
|
|
36
34
|
}
|
|
37
35
|
// Export actor-related tools
|
|
38
36
|
export { getActorsAsTools };
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
|
40
|
-
//# debugId=50761776-b606-5e9d-8ecd-47b4bd43a4ac
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/tools/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EACH,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,8BAA8B,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAa;IACxC,WAAW,CAAC,WAAW;IACvB,WAAW,CAAC,UAAU;IACtB,WAAW,CAAC,YAAY;IACxB,WAAW,CAAC,iBAAiB;CAChC,CAAC;AAEF,+BAA+B;AAC/B,8DAA8D;AAC9D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,8BAA8B,EAAE,CAAC;AAE/G;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,OAAmB,UAAU,CAAC,OAAO;IACjE,OAAO,4BAA4B,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;AAC9E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,8BAA8B;IAC1C,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC1D,MAAM,UAAU,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACxD,OAAQ,MAAM,CAAC,OAAO,CAAC,UAAU,CAAmC;SAC/D,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAClF,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,6BAA6B;AAC7B,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured_output_schemas.d.ts","sourceRoot":"","sources":["../../src/tools/structured_output_schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6DH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"structured_output_schemas.d.ts","sourceRoot":"","sources":["../../src/tools/structured_output_schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6DH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAQvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B3C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAO1C,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGnC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oCAAoC,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB3F;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWpC,CAAC"}
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Schema for developer information
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="44d47005-530f-5f5b-8047-99ebeb763024")}catch(e){}}();
|
|
10
8
|
const developerSchema = {
|
|
11
9
|
type: 'object', // Literal type required for MCP SDK type compatibility
|
|
12
10
|
properties: {
|
|
@@ -81,8 +79,8 @@ export const pricingSchema = {
|
|
|
81
79
|
events: pricingEventsSchema,
|
|
82
80
|
pricingNote: {
|
|
83
81
|
type: 'string',
|
|
84
|
-
description: 'Note naming the resolved tier; only emitted in simplified mode '
|
|
85
|
-
|
|
82
|
+
description: 'Note naming the resolved tier; only emitted in simplified mode ' +
|
|
83
|
+
'when the actor has multiple tiers and they resolve consistently',
|
|
86
84
|
},
|
|
87
85
|
eventDescriptionsOmitted: {
|
|
88
86
|
type: 'boolean',
|
|
@@ -178,7 +176,10 @@ export const actorDetailsOutputSchema = {
|
|
|
178
176
|
type: 'object', // Literal type required for MCP SDK type compatibility
|
|
179
177
|
properties: {
|
|
180
178
|
actorInfo: actorInfoSchema,
|
|
181
|
-
readme: {
|
|
179
|
+
readme: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'Actor README summary when available, otherwise the full README documentation.',
|
|
182
|
+
},
|
|
182
183
|
inputSchema: { type: 'object', description: 'Actor input schema.' }, // Literal type required for MCP SDK type compatibility
|
|
183
184
|
outputSchema: { type: 'object', description: 'Output schema inferred from successful runs.' },
|
|
184
185
|
mcpTools: {
|
|
@@ -199,7 +200,10 @@ export const actorDetailsWidgetOutputSchema = {
|
|
|
199
200
|
actorDetails: {
|
|
200
201
|
type: 'object', // Literal type required for MCP SDK type compatibility
|
|
201
202
|
properties: {
|
|
202
|
-
actorInfo: {
|
|
203
|
+
actorInfo: {
|
|
204
|
+
type: 'object',
|
|
205
|
+
description: 'Widget-formatted Actor info (tier-aware pricing, widget display fields).',
|
|
206
|
+
},
|
|
203
207
|
actorCard: { type: 'string', description: 'Rendered Actor card markdown for widget display.' },
|
|
204
208
|
readme: { type: 'string', description: 'Formatted Actor README for widget display.' },
|
|
205
209
|
},
|
|
@@ -223,7 +227,10 @@ export const actorSearchOutputSchema = {
|
|
|
223
227
|
},
|
|
224
228
|
query: { type: 'string', description: 'The search query used' },
|
|
225
229
|
count: { type: 'number', description: 'Number of Actors returned' },
|
|
226
|
-
instructions: {
|
|
230
|
+
instructions: {
|
|
231
|
+
type: 'string',
|
|
232
|
+
description: 'Additional instructions for the LLM to follow when processing the search results.',
|
|
233
|
+
},
|
|
227
234
|
},
|
|
228
235
|
required: ['actors', 'query', 'count'],
|
|
229
236
|
};
|
|
@@ -245,7 +252,10 @@ export const actorSearchWidgetOutputSchema = {
|
|
|
245
252
|
count: { type: 'number', description: 'Number of Actors returned' },
|
|
246
253
|
widgetActors: {
|
|
247
254
|
type: 'array',
|
|
248
|
-
items: {
|
|
255
|
+
items: {
|
|
256
|
+
type: 'object',
|
|
257
|
+
description: 'Widget-formatted Actor (tier-aware pricing, widget display fields).',
|
|
258
|
+
},
|
|
249
259
|
description: 'Widget-formatted Actor list for UI rendering',
|
|
250
260
|
},
|
|
251
261
|
},
|
|
@@ -259,13 +269,22 @@ export const searchApifyDocsToolOutputSchema = {
|
|
|
259
269
|
items: {
|
|
260
270
|
type: 'object', // Literal type required for MCP SDK type compatibility
|
|
261
271
|
properties: {
|
|
262
|
-
url: {
|
|
263
|
-
|
|
272
|
+
url: {
|
|
273
|
+
type: 'string',
|
|
274
|
+
description: 'URL of the documentation page, may include anchor (e.g., #section-name).',
|
|
275
|
+
},
|
|
276
|
+
content: {
|
|
277
|
+
type: 'string',
|
|
278
|
+
description: 'A limited piece of content that matches the search query.',
|
|
279
|
+
},
|
|
264
280
|
},
|
|
265
281
|
required: ['url'],
|
|
266
282
|
},
|
|
267
283
|
},
|
|
268
|
-
instructions: {
|
|
284
|
+
instructions: {
|
|
285
|
+
type: 'string',
|
|
286
|
+
description: 'Additional instructions for the LLM to follow when processing the search results.',
|
|
287
|
+
},
|
|
269
288
|
},
|
|
270
289
|
required: ['results'],
|
|
271
290
|
};
|
|
@@ -284,9 +303,15 @@ export const getActorRunOutputSchema = {
|
|
|
284
303
|
runId: { type: 'string', description: 'Actor run ID' },
|
|
285
304
|
actorId: { type: 'string', description: 'Stable Apify Actor ID from the run record' },
|
|
286
305
|
actorName: { type: 'string', description: '"username/actor-name"' },
|
|
287
|
-
status: {
|
|
306
|
+
status: {
|
|
307
|
+
type: 'string',
|
|
308
|
+
description: 'Run status: READY | RUNNING | TIMING-OUT | TIMED-OUT | ABORTING | ABORTED | SUCCEEDED | FAILED',
|
|
309
|
+
},
|
|
288
310
|
statusMessage: { type: 'string', description: 'Pass-through from Apify run.statusMessage' },
|
|
289
|
-
exitCode: {
|
|
311
|
+
exitCode: {
|
|
312
|
+
type: 'number',
|
|
313
|
+
description: 'Actor process exit code; populated for terminal states (especially FAILED)',
|
|
314
|
+
},
|
|
290
315
|
startedAt: { type: 'string', description: 'ISO timestamp when the run started' },
|
|
291
316
|
finishedAt: { type: 'string', description: 'ISO timestamp when the run finished (terminal states only)' },
|
|
292
317
|
stats: {
|
|
@@ -342,7 +367,10 @@ export const getActorRunOutputSchema = {
|
|
|
342
367
|
id: { type: 'string', description: 'Key-value store ID' },
|
|
343
368
|
name: { type: 'string' },
|
|
344
369
|
title: { type: 'string' },
|
|
345
|
-
keyCount: {
|
|
370
|
+
keyCount: {
|
|
371
|
+
type: 'number',
|
|
372
|
+
description: 'Total number of keys (omitted when truncated)',
|
|
373
|
+
},
|
|
346
374
|
keys: {
|
|
347
375
|
type: 'array',
|
|
348
376
|
items: { type: 'string' },
|
|
@@ -382,10 +410,10 @@ export const getActorRunOutputSchema = {
|
|
|
382
410
|
export function buildEnrichedDirectActorOutputSchema(itemProperties) {
|
|
383
411
|
const itemsSchema = {
|
|
384
412
|
type: 'object',
|
|
385
|
-
description: 'JSON Schema for rows in the dataset at `storages.datasets.default.id` — describes row '
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
413
|
+
description: 'JSON Schema for rows in the dataset at `storages.datasets.default.id` — describes row ' +
|
|
414
|
+
'shape only; the rows themselves are NOT returned inline in this response. Inferred from this ' +
|
|
415
|
+
"Actor's historical successful runs. To fetch actual rows, call `get-dataset-items` with the " +
|
|
416
|
+
'dataset id and a `fields` projection drawn from this schema.',
|
|
389
417
|
properties: itemProperties,
|
|
390
418
|
};
|
|
391
419
|
const clone = structuredClone(getActorRunOutputSchema);
|
|
@@ -401,9 +429,7 @@ export const datasetItemsOutputSchema = {
|
|
|
401
429
|
type: 'object',
|
|
402
430
|
properties: {
|
|
403
431
|
datasetId: { type: 'string', description: 'Dataset ID' },
|
|
404
|
-
items: { type: 'array',
|
|
405
|
-
items: { type: 'object' },
|
|
406
|
-
description: 'Dataset items' },
|
|
432
|
+
items: { type: 'array', items: { type: 'object' }, description: 'Dataset items' },
|
|
407
433
|
itemCount: { type: 'number', description: 'Number of items returned' },
|
|
408
434
|
totalItemCount: { type: 'number', description: 'Total items in dataset' },
|
|
409
435
|
offset: { type: 'number', description: 'Offset used for pagination' },
|
|
@@ -411,5 +437,4 @@ export const datasetItemsOutputSchema = {
|
|
|
411
437
|
},
|
|
412
438
|
required: ['datasetId', 'items', 'itemCount'],
|
|
413
439
|
};
|
|
414
|
-
//# sourceMappingURL=structured_output_schemas.js.map
|
|
415
|
-
//# debugId=44d47005-530f-5f5b-8047-99ebeb763024
|
|
440
|
+
//# sourceMappingURL=structured_output_schemas.js.map
|