@apify/actors-mcp-server 0.9.2 → 0.9.3-beta.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/README.md +2 -2
- package/dist/actor/const.js +1 -4
- package/dist/actor/const.js.map +1 -1
- package/dist/actor/server.d.ts.map +1 -1
- package/dist/actor/server.js +11 -15
- package/dist/actor/server.js.map +1 -1
- package/dist/actor/types.js +1 -4
- package/dist/actor/types.js.map +1 -1
- package/dist/actor/utils.js +1 -4
- package/dist/actor/utils.js.map +1 -1
- package/dist/{apify-client.d.ts → apify_client.d.ts} +1 -1
- package/dist/{apify-client.d.ts.map → apify_client.d.ts.map} +1 -1
- package/dist/{apify-client.js → apify_client.js} +1 -4
- package/dist/apify_client.js.map +1 -0
- package/dist/const.d.ts +1 -1
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js +4 -7
- package/dist/const.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 +16 -0
- package/dist/index_internals.d.ts.map +1 -0
- package/dist/index_internals.js +18 -0
- package/dist/index_internals.js.map +1 -0
- package/dist/input.js +1 -4
- package/dist/input.js.map +1 -1
- package/dist/instrument.js +1 -4
- package/dist/instrument.js.map +1 -1
- package/dist/main.js +2 -5
- package/dist/main.js.map +1 -1
- package/dist/mcp/actors.js +2 -5
- package/dist/mcp/actors.js.map +1 -1
- package/dist/mcp/client.js +1 -4
- 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.js +1 -4
- package/dist/mcp/proxy.js.map +1 -1
- package/dist/mcp/server.d.ts +6 -2
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +72 -91
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/utils.d.ts +4 -3
- package/dist/mcp/utils.d.ts.map +1 -1
- package/dist/mcp/utils.js +6 -8
- package/dist/mcp/utils.js.map +1 -1
- package/dist/prompts/index.js +2 -5
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/{latest-news-on-topic.d.ts → latest_news_on_topic.d.ts} +1 -1
- package/dist/prompts/latest_news_on_topic.d.ts.map +1 -0
- package/dist/prompts/{latest-news-on-topic.js → latest_news_on_topic.js} +1 -4
- package/dist/prompts/latest_news_on_topic.js.map +1 -0
- package/dist/resources/resource_service.d.ts +2 -2
- package/dist/resources/resource_service.d.ts.map +1 -1
- package/dist/resources/resource_service.js +4 -7
- package/dist/resources/resource_service.js.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 +1 -1
- package/dist/state.js +2 -5
- package/dist/state.js.map +1 -1
- package/dist/stdio.js +5 -7
- package/dist/stdio.js.map +1 -1
- package/dist/telemetry.js +1 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/tools/build.d.ts +1 -1
- package/dist/tools/build.js +1 -4
- package/dist/tools/build.js.map +1 -1
- package/dist/tools/categories.d.ts +49 -9
- package/dist/tools/categories.d.ts.map +1 -1
- package/dist/tools/categories.js +86 -26
- package/dist/tools/categories.js.map +1 -1
- package/dist/tools/common/abort_actor_run.d.ts +6 -0
- package/dist/tools/common/abort_actor_run.d.ts.map +1 -0
- package/dist/tools/common/abort_actor_run.js +48 -0
- package/dist/tools/common/abort_actor_run.js.map +1 -0
- package/dist/tools/{helpers.d.ts → common/add_actor.d.ts} +2 -2
- package/dist/tools/common/add_actor.d.ts.map +1 -0
- package/dist/tools/{helpers.js → common/add_actor.js} +7 -10
- package/dist/tools/common/add_actor.js.map +1 -0
- package/dist/tools/{dataset_collection.d.ts → common/dataset_collection.d.ts} +1 -1
- package/dist/tools/common/dataset_collection.d.ts.map +1 -0
- package/dist/tools/{dataset_collection.js → common/dataset_collection.js} +6 -9
- package/dist/tools/common/dataset_collection.js.map +1 -0
- package/dist/tools/common/fetch_apify_docs.d.ts +3 -0
- package/dist/tools/common/fetch_apify_docs.d.ts.map +1 -0
- package/dist/tools/{fetch-apify-docs.js → common/fetch_apify_docs.js} +10 -13
- package/dist/tools/common/fetch_apify_docs.js.map +1 -0
- package/dist/tools/{get-actor-output.d.ts → common/get_actor_output.d.ts} +2 -2
- package/dist/tools/common/get_actor_output.d.ts.map +1 -0
- package/dist/tools/{get-actor-output.js → common/get_actor_output.js} +9 -12
- package/dist/tools/common/get_actor_output.js.map +1 -0
- package/dist/tools/common/get_actor_run_log.d.ts +7 -0
- package/dist/tools/common/get_actor_run_log.d.ts.map +1 -0
- package/dist/tools/common/get_actor_run_log.js +52 -0
- package/dist/tools/common/get_actor_run_log.js.map +1 -0
- package/dist/tools/common/get_dataset.d.ts +6 -0
- package/dist/tools/common/get_dataset.d.ts.map +1 -0
- package/dist/tools/common/get_dataset.js +55 -0
- package/dist/tools/common/get_dataset.js.map +1 -0
- package/dist/tools/common/get_dataset_items.d.ts +6 -0
- package/dist/tools/common/get_dataset_items.d.ts.map +1 -0
- package/dist/tools/common/get_dataset_items.js +98 -0
- package/dist/tools/common/get_dataset_items.js.map +1 -0
- package/dist/tools/common/get_dataset_schema.d.ts +6 -0
- package/dist/tools/common/get_dataset_schema.d.ts.map +1 -0
- package/dist/tools/common/get_dataset_schema.js +91 -0
- package/dist/tools/common/get_dataset_schema.js.map +1 -0
- package/dist/tools/common/get_html_skeleton.d.ts +3 -0
- package/dist/tools/common/get_html_skeleton.d.ts.map +1 -0
- package/dist/tools/{get-html-skeleton.js → common/get_html_skeleton.js} +10 -13
- package/dist/tools/common/get_html_skeleton.js.map +1 -0
- package/dist/tools/common/get_key_value_store.d.ts +6 -0
- package/dist/tools/common/get_key_value_store.d.ts.map +1 -0
- package/dist/tools/common/get_key_value_store.js +45 -0
- package/dist/tools/common/get_key_value_store.js.map +1 -0
- package/dist/tools/common/get_key_value_store_keys.d.ts +6 -0
- package/dist/tools/common/get_key_value_store_keys.d.ts.map +1 -0
- package/dist/tools/common/get_key_value_store_keys.js +56 -0
- package/dist/tools/common/get_key_value_store_keys.js.map +1 -0
- package/dist/tools/common/get_key_value_store_record.d.ts +6 -0
- package/dist/tools/common/get_key_value_store_record.d.ts.map +1 -0
- package/dist/tools/common/get_key_value_store_record.js +48 -0
- package/dist/tools/common/get_key_value_store_record.js.map +1 -0
- package/dist/tools/{key_value_store_collection.d.ts → common/key_value_store_collection.d.ts} +1 -1
- package/dist/tools/common/key_value_store_collection.d.ts.map +1 -0
- package/dist/tools/{key_value_store_collection.js → common/key_value_store_collection.js} +6 -9
- package/dist/tools/common/key_value_store_collection.js.map +1 -0
- package/dist/tools/{run_collection.d.ts → common/run_collection.d.ts} +1 -1
- package/dist/tools/common/run_collection.d.ts.map +1 -0
- package/dist/tools/{run_collection.js → common/run_collection.js} +7 -10
- package/dist/tools/common/run_collection.js.map +1 -0
- package/dist/tools/common/search_apify_docs.d.ts +3 -0
- package/dist/tools/common/search_apify_docs.d.ts.map +1 -0
- package/dist/tools/{search-apify-docs.js → common/search_apify_docs.js} +8 -11
- package/dist/tools/common/search_apify_docs.js.map +1 -0
- package/dist/tools/core/actor_execution.d.ts +40 -0
- package/dist/tools/core/actor_execution.d.ts.map +1 -0
- package/dist/tools/core/actor_execution.js +87 -0
- package/dist/tools/core/actor_execution.js.map +1 -0
- package/dist/{utils/actor-response.d.ts → tools/core/actor_response.d.ts} +3 -3
- package/dist/tools/core/actor_response.d.ts.map +1 -0
- package/dist/{utils/actor-response.js → tools/core/actor_response.js} +1 -4
- package/dist/tools/core/actor_response.js.map +1 -0
- package/dist/tools/core/actor_tools_factory.d.ts +37 -0
- package/dist/tools/core/actor_tools_factory.d.ts.map +1 -0
- package/dist/tools/core/actor_tools_factory.js +218 -0
- package/dist/tools/core/actor_tools_factory.js.map +1 -0
- package/dist/tools/core/call_actor_common.d.ts +95 -0
- package/dist/tools/core/call_actor_common.d.ts.map +1 -0
- package/dist/tools/core/call_actor_common.js +227 -0
- package/dist/tools/core/call_actor_common.js.map +1 -0
- package/dist/tools/core/fetch_actor_details_common.d.ts +25 -0
- package/dist/tools/core/fetch_actor_details_common.d.ts.map +1 -0
- package/dist/tools/core/fetch_actor_details_common.js +54 -0
- package/dist/tools/core/fetch_actor_details_common.js.map +1 -0
- package/dist/tools/core/get_actor_run_common.d.ts +54 -0
- package/dist/tools/core/get_actor_run_common.d.ts.map +1 -0
- package/dist/tools/core/get_actor_run_common.js +111 -0
- package/dist/tools/core/get_actor_run_common.js.map +1 -0
- package/dist/tools/core/search_actors_common.d.ts +17 -0
- package/dist/tools/core/search_actors_common.d.ts.map +1 -0
- package/dist/tools/core/search_actors_common.js +103 -0
- package/dist/tools/core/search_actors_common.js.map +1 -0
- package/dist/tools/default/actor_executor.d.ts +7 -0
- package/dist/tools/default/actor_executor.d.ts.map +1 -0
- package/dist/tools/default/actor_executor.js +31 -0
- package/dist/tools/default/actor_executor.js.map +1 -0
- package/dist/tools/default/call_actor.d.ts +8 -0
- package/dist/tools/default/call_actor.d.ts.map +1 -0
- package/dist/tools/default/call_actor.js +132 -0
- package/dist/tools/default/call_actor.js.map +1 -0
- package/dist/tools/default/fetch_actor_details.d.ts +7 -0
- package/dist/tools/default/fetch_actor_details.d.ts.map +1 -0
- package/dist/tools/default/fetch_actor_details.js +42 -0
- package/dist/tools/default/fetch_actor_details.js.map +1 -0
- package/dist/tools/default/get_actor_run.d.ts +7 -0
- package/dist/tools/default/get_actor_run.d.ts.map +1 -0
- package/dist/tools/default/get_actor_run.js +46 -0
- package/dist/tools/default/get_actor_run.js.map +1 -0
- package/dist/tools/default/search_actors.d.ts +7 -0
- package/dist/tools/default/search_actors.d.ts.map +1 -0
- package/dist/tools/default/search_actors.js +62 -0
- package/dist/tools/default/search_actors.js.map +1 -0
- package/dist/tools/index.d.ts +11 -5
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +17 -11
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/openai/actor_executor.d.ts +8 -0
- package/dist/tools/openai/actor_executor.d.ts.map +1 -0
- package/dist/tools/openai/actor_executor.js +49 -0
- package/dist/tools/openai/actor_executor.js.map +1 -0
- package/dist/tools/openai/call_actor.d.ts +8 -0
- package/dist/tools/openai/call_actor.d.ts.map +1 -0
- package/dist/tools/openai/call_actor.js +117 -0
- package/dist/tools/openai/call_actor.js.map +1 -0
- package/dist/tools/openai/fetch_actor_details.d.ts +7 -0
- package/dist/tools/openai/fetch_actor_details.d.ts.map +1 -0
- package/dist/tools/openai/fetch_actor_details.js +47 -0
- package/dist/tools/openai/fetch_actor_details.js.map +1 -0
- package/dist/tools/openai/fetch_actor_details_internal.d.ts +3 -0
- package/dist/tools/openai/fetch_actor_details_internal.d.ts.map +1 -0
- package/dist/tools/{fetch-actor-details-internal.js → openai/fetch_actor_details_internal.js} +9 -13
- package/dist/tools/openai/fetch_actor_details_internal.js.map +1 -0
- package/dist/tools/openai/get_actor_run.d.ts +7 -0
- package/dist/tools/openai/get_actor_run.d.ts.map +1 -0
- package/dist/tools/openai/get_actor_run.js +53 -0
- package/dist/tools/openai/get_actor_run.js.map +1 -0
- package/dist/tools/openai/search_actors.d.ts +7 -0
- package/dist/tools/openai/search_actors.d.ts.map +1 -0
- package/dist/tools/openai/search_actors.js +76 -0
- package/dist/tools/openai/search_actors.js.map +1 -0
- package/dist/tools/openai/search_actors_internal.d.ts +3 -0
- package/dist/tools/openai/search_actors_internal.d.ts.map +1 -0
- package/dist/tools/{search-actors-internal.js → openai/search_actors_internal.js} +10 -14
- package/dist/tools/openai/search_actors_internal.js.map +1 -0
- package/dist/tools/{structured-output-schemas.d.ts → structured_output_schemas.d.ts} +1 -1
- package/dist/tools/{structured-output-schemas.d.ts.map → structured_output_schemas.d.ts.map} +1 -1
- package/dist/tools/{structured-output-schemas.js → structured_output_schemas.js} +1 -4
- package/dist/tools/structured_output_schemas.js.map +1 -0
- package/dist/tools/utils.js +2 -5
- package/dist/tools/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +76 -8
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +12 -5
- package/dist/types.js.map +1 -1
- package/dist/utils/actor.d.ts +1 -1
- package/dist/utils/actor.js +1 -4
- package/dist/utils/actor.js.map +1 -1
- package/dist/utils/{actor-card.d.ts → actor_card.d.ts} +2 -2
- package/dist/utils/{actor-card.d.ts.map → actor_card.d.ts.map} +1 -1
- package/dist/utils/{actor-card.js → actor_card.js} +2 -5
- package/dist/utils/actor_card.js.map +1 -0
- package/dist/utils/{actor-details.d.ts → actor_details.d.ts} +3 -3
- package/dist/utils/{actor-details.d.ts.map → actor_details.d.ts.map} +1 -1
- package/dist/utils/{actor-details.js → actor_details.js} +3 -6
- package/dist/utils/actor_details.js.map +1 -0
- package/dist/utils/{actor-search.d.ts → actor_search.d.ts} +13 -1
- package/dist/utils/actor_search.d.ts.map +1 -0
- package/dist/utils/{actor-search.js → actor_search.js} +19 -6
- package/dist/utils/actor_search.js.map +1 -0
- package/dist/utils/ajv.js +1 -4
- package/dist/utils/ajv.js.map +1 -1
- package/dist/utils/{apify-docs.d.ts → apify_docs.d.ts} +1 -1
- package/dist/utils/{apify-docs.d.ts.map → apify_docs.d.ts.map} +1 -1
- package/dist/utils/{apify-docs.js → apify_docs.js} +1 -4
- package/dist/utils/apify_docs.js.map +1 -0
- package/dist/utils/{apify-properties.d.ts → apify_properties.d.ts} +1 -1
- package/dist/utils/{apify-properties.d.ts.map → apify_properties.d.ts.map} +1 -1
- package/dist/utils/{apify-properties.js → apify_properties.js} +1 -4
- package/dist/utils/apify_properties.js.map +1 -0
- package/dist/utils/auth.d.ts +2 -0
- package/dist/utils/auth.d.ts.map +1 -1
- package/dist/utils/auth.js +5 -6
- package/dist/utils/auth.js.map +1 -1
- package/dist/utils/generic.js +1 -4
- package/dist/utils/generic.js.map +1 -1
- package/dist/utils/html.js +1 -4
- package/dist/utils/html.js.map +1 -1
- package/dist/utils/{html-to-md.d.ts → html_to_md.d.ts} +1 -1
- package/dist/utils/html_to_md.d.ts.map +1 -0
- package/dist/utils/{html-to-md.js → html_to_md.js} +1 -4
- package/dist/utils/html_to_md.js.map +1 -0
- 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.d.ts → mcp_clients.d.ts} +1 -1
- package/dist/utils/mcp_clients.d.ts.map +1 -0
- package/dist/utils/{mcp-clients.js → mcp_clients.js} +1 -4
- package/dist/utils/mcp_clients.js.map +1 -0
- package/dist/utils/{pricing-info.d.ts → pricing_info.d.ts} +1 -1
- package/dist/utils/{pricing-info.d.ts.map → pricing_info.d.ts.map} +1 -1
- package/dist/utils/{pricing-info.js → pricing_info.js} +1 -4
- package/dist/utils/pricing_info.js.map +1 -0
- package/dist/utils/progress.d.ts +1 -1
- package/dist/utils/progress.js +1 -4
- package/dist/utils/progress.js.map +1 -1
- package/dist/utils/{schema-generation.d.ts → schema_generation.d.ts} +1 -1
- package/dist/utils/{schema-generation.d.ts.map → schema_generation.d.ts.map} +1 -1
- package/dist/utils/{schema-generation.js → schema_generation.js} +1 -4
- package/dist/utils/schema_generation.js.map +1 -0
- package/dist/utils/server-instructions/common.d.ts +19 -0
- package/dist/utils/server-instructions/common.d.ts.map +1 -0
- package/dist/utils/{server-instructions.js → server-instructions/common.js} +10 -42
- package/dist/utils/server-instructions/common.js.map +1 -0
- package/dist/utils/server-instructions/default.d.ts +6 -0
- package/dist/utils/server-instructions/default.d.ts.map +1 -0
- package/dist/utils/server-instructions/default.js +14 -0
- package/dist/utils/server-instructions/default.js.map +1 -0
- package/dist/utils/server-instructions/index.d.ts +10 -0
- package/dist/utils/server-instructions/index.d.ts.map +1 -0
- package/dist/utils/server-instructions/index.js +18 -0
- package/dist/utils/server-instructions/index.js.map +1 -0
- package/dist/utils/server-instructions/openai.d.ts +7 -0
- package/dist/utils/server-instructions/openai.d.ts.map +1 -0
- package/dist/utils/server-instructions/openai.js +30 -0
- package/dist/utils/server-instructions/openai.js.map +1 -0
- package/dist/utils/skyfire.js +1 -4
- package/dist/utils/skyfire.js.map +1 -1
- package/dist/utils/tool_categories_helpers.d.ts +11 -0
- package/dist/utils/tool_categories_helpers.d.ts.map +1 -0
- package/dist/utils/tool_categories_helpers.js +21 -0
- package/dist/utils/tool_categories_helpers.js.map +1 -0
- package/dist/utils/{tool-status.d.ts → tool_status.d.ts} +1 -1
- package/dist/utils/tool_status.d.ts.map +1 -0
- package/dist/utils/{tool-status.js → tool_status.js} +1 -4
- package/dist/utils/tool_status.js.map +1 -0
- package/dist/utils/tools.d.ts +12 -2
- package/dist/utils/tools.d.ts.map +1 -1
- package/dist/utils/tools.js +38 -6
- package/dist/utils/tools.js.map +1 -1
- package/dist/utils/{tools-loader.d.ts → tools_loader.d.ts} +5 -4
- package/dist/utils/tools_loader.d.ts.map +1 -0
- package/dist/utils/{tools-loader.js → tools_loader.js} +66 -69
- package/dist/utils/tools_loader.js.map +1 -0
- package/dist/utils/{ttl-lru.d.ts → ttl_lru.d.ts} +1 -1
- package/dist/utils/{ttl-lru.d.ts.map → ttl_lru.d.ts.map} +1 -1
- package/dist/utils/{ttl-lru.js → ttl_lru.js} +1 -4
- package/dist/utils/ttl_lru.js.map +1 -0
- package/dist/utils/{userid-cache.d.ts → userid_cache.d.ts} +2 -2
- package/dist/utils/userid_cache.d.ts.map +1 -0
- package/dist/utils/{userid-cache.js → userid_cache.js} +2 -5
- package/dist/utils/userid_cache.js.map +1 -0
- package/dist/utils/version.js +1 -4
- package/dist/utils/version.js.map +1 -1
- package/dist/web/dist/actor-detail-widget.js +62 -59
- package/dist/web/dist/actor-run-widget.js +116 -118
- package/dist/web/dist/search-actors-widget.js +91 -88
- package/manifest.json +1 -1
- package/package.json +8 -8
- package/server.json +1 -1
- package/dist/apify-client.js.map +0 -1
- package/dist/index-internals.d.ts +0 -15
- package/dist/index-internals.d.ts.map +0 -1
- package/dist/index-internals.js +0 -20
- package/dist/index-internals.js.map +0 -1
- package/dist/prompts/latest-news-on-topic.d.ts.map +0 -1
- package/dist/prompts/latest-news-on-topic.js.map +0 -1
- package/dist/tools/actor.d.ts +0 -73
- package/dist/tools/actor.d.ts.map +0 -1
- package/dist/tools/actor.js +0 -596
- package/dist/tools/actor.js.map +0 -1
- package/dist/tools/dataset.d.ts +0 -14
- package/dist/tools/dataset.d.ts.map +0 -1
- package/dist/tools/dataset.js +0 -235
- package/dist/tools/dataset.js.map +0 -1
- package/dist/tools/dataset_collection.d.ts.map +0 -1
- package/dist/tools/dataset_collection.js.map +0 -1
- package/dist/tools/fetch-actor-details-internal.d.ts +0 -3
- package/dist/tools/fetch-actor-details-internal.d.ts.map +0 -1
- package/dist/tools/fetch-actor-details-internal.js.map +0 -1
- package/dist/tools/fetch-actor-details.d.ts +0 -3
- package/dist/tools/fetch-actor-details.d.ts.map +0 -1
- package/dist/tools/fetch-actor-details.js +0 -103
- package/dist/tools/fetch-actor-details.js.map +0 -1
- package/dist/tools/fetch-apify-docs.d.ts +0 -3
- package/dist/tools/fetch-apify-docs.d.ts.map +0 -1
- package/dist/tools/fetch-apify-docs.js.map +0 -1
- package/dist/tools/get-actor-output.d.ts.map +0 -1
- package/dist/tools/get-actor-output.js.map +0 -1
- package/dist/tools/get-html-skeleton.d.ts +0 -3
- package/dist/tools/get-html-skeleton.d.ts.map +0 -1
- package/dist/tools/get-html-skeleton.js.map +0 -1
- package/dist/tools/helpers.d.ts.map +0 -1
- package/dist/tools/helpers.js.map +0 -1
- package/dist/tools/key_value_store.d.ts +0 -14
- package/dist/tools/key_value_store.d.ts.map +0 -1
- package/dist/tools/key_value_store.js +0 -142
- package/dist/tools/key_value_store.js.map +0 -1
- package/dist/tools/key_value_store_collection.d.ts.map +0 -1
- package/dist/tools/key_value_store_collection.js.map +0 -1
- package/dist/tools/run.d.ts +0 -15
- package/dist/tools/run.d.ts.map +0 -1
- package/dist/tools/run.js +0 -231
- package/dist/tools/run.js.map +0 -1
- package/dist/tools/run_collection.d.ts.map +0 -1
- package/dist/tools/run_collection.js.map +0 -1
- package/dist/tools/search-actors-internal.d.ts +0 -3
- package/dist/tools/search-actors-internal.d.ts.map +0 -1
- package/dist/tools/search-actors-internal.js.map +0 -1
- package/dist/tools/search-apify-docs.d.ts +0 -3
- package/dist/tools/search-apify-docs.d.ts.map +0 -1
- package/dist/tools/search-apify-docs.js.map +0 -1
- package/dist/tools/store_collection.d.ts +0 -26
- package/dist/tools/store_collection.d.ts.map +0 -1
- package/dist/tools/store_collection.js +0 -198
- package/dist/tools/store_collection.js.map +0 -1
- package/dist/tools/structured-output-schemas.js.map +0 -1
- package/dist/utils/actor-card.js.map +0 -1
- package/dist/utils/actor-details.js.map +0 -1
- package/dist/utils/actor-response.d.ts.map +0 -1
- package/dist/utils/actor-response.js.map +0 -1
- package/dist/utils/actor-search.d.ts.map +0 -1
- package/dist/utils/actor-search.js.map +0 -1
- package/dist/utils/apify-docs.js.map +0 -1
- package/dist/utils/apify-properties.js.map +0 -1
- package/dist/utils/html-to-md.d.ts.map +0 -1
- package/dist/utils/html-to-md.js.map +0 -1
- package/dist/utils/mcp-clients.d.ts.map +0 -1
- package/dist/utils/mcp-clients.js.map +0 -1
- package/dist/utils/pricing-info.js.map +0 -1
- package/dist/utils/schema-generation.js.map +0 -1
- package/dist/utils/server-instructions.d.ts +0 -14
- package/dist/utils/server-instructions.d.ts.map +0 -1
- package/dist/utils/server-instructions.js.map +0 -1
- package/dist/utils/tool-categories-helpers.d.ts +0 -10
- package/dist/utils/tool-categories-helpers.d.ts.map +0 -1
- package/dist/utils/tool-categories-helpers.js +0 -22
- package/dist/utils/tool-categories-helpers.js.map +0 -1
- package/dist/utils/tool-status.d.ts.map +0 -1
- package/dist/utils/tool-status.js.map +0 -1
- package/dist/utils/tools-loader.d.ts.map +0 -1
- package/dist/utils/tools-loader.js.map +0 -1
- package/dist/utils/ttl-lru.js.map +0 -1
- package/dist/utils/userid-cache.d.ts.map +0 -1
- package/dist/utils/userid-cache.js.map +0 -1
package/dist/utils/generic.js
CHANGED
|
@@ -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]="fa234229-55b1-5059-bb71-4e31f695c535")}catch(e){}}();
|
|
3
1
|
import { readFileSync } from 'node:fs';
|
|
4
2
|
import { dirname, resolve } from 'node:path';
|
|
5
3
|
import { fileURLToPath } from 'node:url';
|
|
@@ -102,5 +100,4 @@ export function isValidHttpUrl(urlString) {
|
|
|
102
100
|
return false;
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
|
-
//# sourceMappingURL=generic.js.map
|
|
106
|
-
//# debugId=fa234229-55b1-5059-bb71-4e31f695c535
|
|
103
|
+
//# sourceMappingURL=generic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.js","sources":["../../src/utils/generic.ts"],"
|
|
1
|
+
{"version":3,"file":"generic.js","sourceRoot":"","sources":["../../src/utils/generic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAc,aAAqB,EAAE,YAAoB;IACjF,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAC9E,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAM,CAAC;AAC5D,CAAC;AAED;;;;;;;;;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YAC5D,CAAC;iBAAM,CAAC;gBACJ,OAAO,GAAG,SAAS,CAAC;gBACpB,MAAM;YACV,CAAC;QACL,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;IAC1B,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB;IAC5C,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,IAAI,CAAC;QACD,2BAA2B;QAC3B,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC"}
|
package/dist/utils/html.js
CHANGED
|
@@ -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]="8ebf5207-58ab-560a-8b56-dca2bd87fcf4")}catch(e){}}();
|
|
3
1
|
import * as cheerio from 'cheerio';
|
|
4
2
|
/**
|
|
5
3
|
* Strips HTML and keeps only the structure.
|
|
@@ -47,5 +45,4 @@ export function stripHtml(html) {
|
|
|
47
45
|
result = result.replace(/\s+/g, ' ').replace(/>\s+</g, '><').trim();
|
|
48
46
|
return result;
|
|
49
47
|
}
|
|
50
|
-
//# sourceMappingURL=html.js.map
|
|
51
|
-
//# debugId=8ebf5207-58ab-560a-8b56-dca2bd87fcf4
|
|
48
|
+
//# sourceMappingURL=html.js.map
|
package/dist/utils/html.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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EAAE,OAAO,EAAE,EAAE,CAAE,OAAoB,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;IAE5F,+BAA+B;IAC/B,CAAC,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC;IAEtC,IAAI,MAAM,CAAC;IACX,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACrB,MAAM,GAAG,EAAE,CAAC;IAChB,CAAC;SAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAChC,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;SAAM,CAAC;QACJ,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;IACpC,CAAC;IAED,0EAA0E;IAC1E,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;IACpE,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html_to_md.d.ts","sourceRoot":"","sources":["../../src/utils/html_to_md.ts"],"names":[],"mappings":"AAiCA;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
@@ -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]="70021b52-bbd1-59cd-8c6f-151e69e8d5de")}catch(e){}}();
|
|
3
1
|
import TurndownService from 'turndown';
|
|
4
2
|
const turndown = new TurndownService();
|
|
5
3
|
// Remove non-visible elements
|
|
@@ -32,5 +30,4 @@ turndown.remove('footer');
|
|
|
32
30
|
export function htmlToMarkdown(html) {
|
|
33
31
|
return turndown.turndown(html);
|
|
34
32
|
}
|
|
35
|
-
//# sourceMappingURL=
|
|
36
|
-
//# debugId=70021b52-bbd1-59cd-8c6f-151e69e8d5de
|
|
33
|
+
//# sourceMappingURL=html_to_md.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html_to_md.js","sourceRoot":"","sources":["../../src/utils/html_to_md.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,UAAU,CAAC;AAEvC,MAAM,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;AAEvC,8BAA8B;AAC9B,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAE5B,6BAA6B;AAC7B,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAE3B,8BAA8B;AAC9B,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAEzB,kBAAkB;AAClB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAE1B,wCAAwC;AACxC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACvC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/utils/logging.js
CHANGED
|
@@ -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]="48574348-3158-568d-b914-38760365c868")}catch(e){}}();
|
|
3
1
|
import log from '@apify/log';
|
|
4
2
|
/**
|
|
5
3
|
* Safely extract HTTP status code from errors.
|
|
@@ -71,5 +69,4 @@ export function redactSkyfirePayId(params) {
|
|
|
71
69
|
}
|
|
72
70
|
return { ...params, [SKYFIRE_PAY_ID_KEY]: REDACTED_VALUE };
|
|
73
71
|
}
|
|
74
|
-
//# sourceMappingURL=logging.js.map
|
|
75
|
-
//# debugId=48574348-3158-568d-b914-38760365c868
|
|
72
|
+
//# sourceMappingURL=logging.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","sources":["../../src/utils/logging.ts"],"
|
|
1
|
+
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/utils/logging.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAC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AM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;SAAM,CAAC;QACJ,0CAA0C;QAC1C,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;AACL,CAAC;AAED,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAC5C,MAAM,cAAc,GAAG,YAAY,CAAC;AAEpC,MAAM,aAAa,GAAG,CAAC,KAAc,EAAoC,EAAE;IACvE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAChF,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAe;IAC9C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,kBAAkB,IAAI,MAAM,CAAC,EAAE,CAAC;QAC5D,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,MAAM,CAAC,kBAAkB,CAAC,KAAK,cAAc,EAAE,CAAC;QAChD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,GAAG,MAAM,EAAE,CAAC,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAC;AAC/D,CAAC"}
|
package/dist/utils/mcp.js
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* @param source.usageUsd - Breakdown of costs by resource type (optional)
|
|
7
7
|
* @returns Usage metadata object or undefined if no usage data is available
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
!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]="3f84bc00-5558-5c82-b415-799f93a228b8")}catch(e){}}();
|
|
11
9
|
export function buildUsageMeta(source) {
|
|
12
10
|
const { usageTotalUsd, usageUsd } = source;
|
|
13
11
|
return usageTotalUsd !== undefined
|
|
@@ -49,5 +47,4 @@ export function buildMCPResponse(options) {
|
|
|
49
47
|
}
|
|
50
48
|
return response;
|
|
51
49
|
}
|
|
52
|
-
//# sourceMappingURL=mcp.js.map
|
|
53
|
-
//# debugId=3f84bc00-5558-5c82-b415-799f93a228b8
|
|
50
|
+
//# sourceMappingURL=mcp.js.map
|
package/dist/utils/mcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sources":["../../src/utils/mcp.ts"],"
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/utils/mcp.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,MAG9B;IACG,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAC3C,OAAO,aAAa,KAAK,SAAS;QAC9B,CAAC,CAAC;YACE,aAAa;YACb,QAAQ;SACX;QACD,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAMhC;IACG,MAAM,EACF,KAAK,EACL,OAAO,GAAG,KAAK,EACf,UAAU,EACV,iBAAiB,EACjB,KAAK,GACR,GAAG,OAAO,CAAC;IAEZ,MAAM,QAAQ,GAMV;QACA,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACtD,OAAO;KACV,CAAC;IAEF,2EAA2E;IAC3E,IAAI,UAAU,EAAE,CAAC;QACb,QAAQ,CAAC,kBAAkB,GAAG,UAAU,CAAC;IAC7C,CAAC;IAED,qCAAqC;IACrC,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;QAClC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IACnD,CAAC;IAED,wDAAwD;IACxD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -3,4 +3,4 @@ import type { InitializeRequest } from '@modelcontextprotocol/sdk/types.js';
|
|
|
3
3
|
* Determines if the MCP client supports dynamic tools based on the InitializeRequest data.
|
|
4
4
|
*/
|
|
5
5
|
export declare function doesMcpClientSupportDynamicTools(initializeRequestData?: InitializeRequest): boolean;
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=mcp_clients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp_clients.d.ts","sourceRoot":"","sources":["../../src/utils/mcp_clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAgBnG"}
|
|
@@ -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]="56b7fd27-e393-5bd1-b11a-5f5ca8a15530")}catch(e){}}();
|
|
3
1
|
import { mcpClients } from 'mcp-client-capabilities';
|
|
4
2
|
/**
|
|
5
3
|
* Determines if the MCP client supports dynamic tools based on the InitializeRequest data.
|
|
@@ -20,5 +18,4 @@ export function doesMcpClientSupportDynamicTools(initializeRequestData) {
|
|
|
20
18
|
}
|
|
21
19
|
return ((_d = clientCapabilities.tools) === null || _d === void 0 ? void 0 : _d.listChanged) === true;
|
|
22
20
|
}
|
|
23
|
-
//# sourceMappingURL=
|
|
24
|
-
//# debugId=56b7fd27-e393-5bd1-b11a-5f5ca8a15530
|
|
21
|
+
//# sourceMappingURL=mcp_clients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp_clients.js","sourceRoot":"","sources":["../../src/utils/mcp_clients.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,qBAAyC;;IACtF,MAAM,UAAU,GAAG,MAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,0CAAE,UAAU,0CAAE,IAAI,CAAC;IACnE,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACxD,IAAI,CAAC,kBAAkB;QAAE,OAAO,KAAK,CAAC;IAEtC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,eAAe,CAAC;IACjE,MAAM,oBAAoB,GAAG,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,0CAAE,eAAe,CAAC;IAE5E,mEAAmE;IACnE,wGAAwG;IACxG,IAAI,qBAAqB,KAAK,oBAAoB,EAAE,CAAC;QACjD,+FAA+F;QAC/F,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,CAAA,MAAA,kBAAkB,CAAC,KAAK,0CAAE,WAAW,MAAK,IAAI,CAAC;AAC1D,CAAC"}
|
|
@@ -38,4 +38,4 @@ export declare function pricingInfoToString(pricingInfo: PricingInfo | null): st
|
|
|
38
38
|
* instead of just dumping raw API data - ensures consistency across structured & unstructured modes.
|
|
39
39
|
*/
|
|
40
40
|
export declare function pricingInfoToStructured(pricingInfo: PricingInfo | null): StructuredPricingInfo;
|
|
41
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=pricing_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"pricing_info.d.ts","sourceRoot":"","sources":["../../src/utils/pricing_info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;IACJ,MAAM,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,CAAC;SACpB,EAAE,CAAC;KACP,EAAE,CAAC;CACP,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,GAAG,WAAW,GAAG,IAAI,CAmBhG;AA4CD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,CAgC3E;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,qBAAqB,CAoD9F"}
|
|
@@ -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]="80d1c196-e80b-553c-87fc-05e1fcfbd5ed")}catch(e){}}();
|
|
3
1
|
import { ACTOR_PRICING_MODEL } from '../const.js';
|
|
4
2
|
/**
|
|
5
3
|
* Returns the most recent valid pricing information from a list of pricing infos,
|
|
@@ -159,5 +157,4 @@ export function pricingInfoToStructured(pricingInfo) {
|
|
|
159
157
|
}
|
|
160
158
|
return structuredPricing;
|
|
161
159
|
}
|
|
162
|
-
//# sourceMappingURL=
|
|
163
|
-
//# debugId=80d1c196-e80b-553c-87fc-05e1fcfbd5ed
|
|
160
|
+
//# sourceMappingURL=pricing_info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing_info.js","sourceRoot":"","sources":["../../src/utils/pricing_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA4BlD;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAA2B,EAAE,GAAS;IACxE,iEAAiE;IACjE,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QACnD,IAAI,CAAC,IAAI,CAAC,SAAS;YAAE,OAAO,KAAK,CAAC;QAClC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,OAAO,SAAS,IAAI,GAAG,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,+CAA+C;IAC/C,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC5B,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC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C,CAAC;4BACrB,IAAI;4BACJ,QAAQ,EAAE,KAAK,CAAC,mBAAmB;yBACtC,CAAC,CAAC;wBACP,CAAC,CAAC,SAAS;iBAClB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC7B,CAAC"}
|
package/dist/utils/progress.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProgressNotification } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import type { ApifyClient } from '../
|
|
2
|
+
import type { ApifyClient } from '../apify_client.js';
|
|
3
3
|
export declare class ProgressTracker {
|
|
4
4
|
private progressToken;
|
|
5
5
|
private sendNotification;
|
package/dist/utils/progress.js
CHANGED
|
@@ -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]="9d319b8e-614d-5256-8114-784168743c69")}catch(e){}}();
|
|
3
1
|
import { PROGRESS_NOTIFICATION_INTERVAL_MS } from '../const.js';
|
|
4
2
|
export class ProgressTracker {
|
|
5
3
|
constructor(progressToken, sendNotification, taskId) {
|
|
@@ -104,5 +102,4 @@ export function createProgressTracker(progressToken, sendNotification, taskId) {
|
|
|
104
102
|
}
|
|
105
103
|
return new ProgressTracker(progressToken, sendNotification, taskId);
|
|
106
104
|
}
|
|
107
|
-
//# sourceMappingURL=progress.js.map
|
|
108
|
-
//# debugId=9d319b8e-614d-5256-8114-784168743c69
|
|
105
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sources":["../../src/utils/progress.ts"],"
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/utils/progress.ts"],"names":[],"mappings":"AAGA,OAA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AC;AACxE,CAAC"}
|
|
@@ -37,4 +37,4 @@ export declare function removeEmptyArrays(obj: unknown): unknown;
|
|
|
37
37
|
* @returns JSON schema object or null if generation fails
|
|
38
38
|
*/
|
|
39
39
|
export declare function generateSchemaFromItems(datasetItems: unknown[], options?: SchemaGenerationOptions): JsonSchemaArray | null;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=schema_generation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"schema_generation.d.ts","sourceRoot":"","sources":["../../src/utils/schema_generation.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,gBAAgB,GAAG,kBAAkB,CAAC;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mFAAmF;IACnF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mHAAmH;IACnH,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAuBvD;AAGD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,YAAY,EAAE,OAAO,EAAE,EACvB,OAAO,GAAE,uBAA4B,GACtC,eAAe,GAAG,IAAI,CAkCxB"}
|
|
@@ -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]="a96d66d2-086e-5ad8-b708-7ec947c59d91")}catch(e){}}();
|
|
3
1
|
import toJsonSchema from 'to-json-schema';
|
|
4
2
|
/**
|
|
5
3
|
* Function to recursively remove empty arrays from an object
|
|
@@ -59,5 +57,4 @@ export function generateSchemaFromItems(datasetItems, options = {}) {
|
|
|
59
57
|
// If all attempts fail, return null
|
|
60
58
|
return null;
|
|
61
59
|
}
|
|
62
|
-
//# sourceMappingURL=
|
|
63
|
-
//# debugId=a96d66d2-086e-5ad8-b708-7ec947c59d91
|
|
60
|
+
//# sourceMappingURL=schema_generation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema_generation.js","sourceRoot":"","sources":["../../src/utils/schema_generation.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAiC1C;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAY;IAC1C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,+EAA+E;QAC/E,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC1C,2CAA2C;QAC3C,OAAO,GAAG,CAAC;IACf,CAAC;IAED,sEAAsE;IACtE,OA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AAC,cAAc,EAAE;YAChC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC5B,CAAoB,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;IAExB,oCAAoC;IACpC,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared server instructions — mode-independent content about Actors, discovery,
|
|
3
|
+
* execution workflow, storage, and tool disambiguation.
|
|
4
|
+
*/
|
|
5
|
+
type CommonInstructionsInput = {
|
|
6
|
+
/** Mode-specific hint for which tool to use to obtain the Actor's input schema. */
|
|
7
|
+
schemaToolHint: string;
|
|
8
|
+
/** Mode-specific workflow rules inserted before the tool dependencies section. */
|
|
9
|
+
workflowRules: string;
|
|
10
|
+
/** Mode-specific tool disambiguation content appended to the disambiguation section. */
|
|
11
|
+
toolDisambiguation: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Returns the common server instructions shared across all modes.
|
|
15
|
+
* Mode-specific content is injected via the input object at designated insertion points.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCommonInstructions(input: CommonInstructionsInput): string;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,KAAK,uBAAuB,GAAG;IAC3B,mFAAmF;IACnF,cAAc,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,aAAa,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CA+C5E"}
|
|
@@ -1,44 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Shared server instructions — mode-independent content about Actors, discovery,
|
|
3
|
+
* execution workflow, storage, and tool disambiguation.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
!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]="351feb28-39cc-52cc-b121-8c02a1e4e379")}catch(e){}}();
|
|
7
|
-
import { HelperTools, RAG_WEB_BROWSER } from '../const.js';
|
|
5
|
+
import { HelperTools, RAG_WEB_BROWSER } from '../../const.js';
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @param uiMode - The UI mode ('openai' or undefined)
|
|
13
|
-
* @returns Server instructions string
|
|
7
|
+
* Returns the common server instructions shared across all modes.
|
|
8
|
+
* Mode-specific content is injected via the input object at designated insertion points.
|
|
14
9
|
*/
|
|
15
|
-
export function
|
|
16
|
-
const isUiMode = uiMode === 'openai';
|
|
17
|
-
// Tool dependency hint - different based on mode
|
|
18
|
-
const schemaToolHint = isUiMode
|
|
19
|
-
? `Use \`${HelperTools.ACTOR_GET_DETAILS_INTERNAL}\` first to obtain the Actor's input schema`
|
|
20
|
-
: `Use \`${HelperTools.ACTOR_GET_DETAILS}\` first to obtain the Actor's input schema`;
|
|
21
|
-
// UI Mode workflow rules - only in UI mode
|
|
22
|
-
const uiModeWorkflowRules = isUiMode
|
|
23
|
-
? `
|
|
24
|
-
## CRITICAL: UI Mode Workflow Rules
|
|
25
|
-
|
|
26
|
-
**NEVER call \`${HelperTools.ACTOR_RUNS_GET}\` after \`${HelperTools.ACTOR_CALL}\` in UI mode.**
|
|
27
|
-
|
|
28
|
-
When you call \`${HelperTools.ACTOR_CALL}\` in async mode (UI mode), the response will include a widget that automatically polls for status updates. You must NOT call \`${HelperTools.ACTOR_RUNS_GET}\` or any other tool after this - your task is complete. The widget handles everything automatically.
|
|
29
|
-
|
|
30
|
-
This is FORBIDDEN and will result in unnecessary duplicate polling. Always stop after receiving the \`${HelperTools.ACTOR_CALL}\` response in UI mode.
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
: '';
|
|
34
|
-
// Internal vs public tools section - only in UI mode
|
|
35
|
-
const internalToolsSection = isUiMode
|
|
36
|
-
? `
|
|
37
|
-
- **Internal vs public Actor tools:**
|
|
38
|
-
- \`${HelperTools.STORE_SEARCH_INTERNAL}\` is for silent name resolution; \`${HelperTools.STORE_SEARCH}\` is for user-facing discovery
|
|
39
|
-
- \`${HelperTools.ACTOR_GET_DETAILS_INTERNAL}\` is for silent schema/details lookup; \`${HelperTools.ACTOR_GET_DETAILS}\` is for user-facing details
|
|
40
|
-
- When the next step is running an Actor, ALWAYS use \`${HelperTools.STORE_SEARCH_INTERNAL}\` for name resolution, never \`${HelperTools.STORE_SEARCH}\``
|
|
41
|
-
: '';
|
|
10
|
+
export function getCommonInstructions(input) {
|
|
42
11
|
return `
|
|
43
12
|
Apify is the world's largest marketplace of tools for web scraping, data extraction, and web automation.
|
|
44
13
|
These tools are called **Actors**. They enable you to extract structured data from social media, e-commerce, search engines, maps, travel sites, and many other sources.
|
|
@@ -64,11 +33,11 @@ These tools are called **Actors**. They enable you to extract structured data fr
|
|
|
64
33
|
## Storage types
|
|
65
34
|
- **Dataset:** Structured, append-only storage ideal for tabular or list data (e.g., scraped items).
|
|
66
35
|
- **Key-value store:** Flexible storage for unstructured data or auxiliary files.
|
|
67
|
-
${
|
|
36
|
+
${input.workflowRules}## Tool dependencies and disambiguation
|
|
68
37
|
|
|
69
38
|
### Tool dependencies
|
|
70
39
|
- \`${HelperTools.ACTOR_CALL}\`:
|
|
71
|
-
- ${schemaToolHint}
|
|
40
|
+
- ${input.schemaToolHint}
|
|
72
41
|
- Then call with proper input to execute the Actor
|
|
73
42
|
- For MCP server Actors, use format "actorName:toolName" to call specific tools
|
|
74
43
|
- Supports async execution via the \`async\` parameter:
|
|
@@ -79,12 +48,11 @@ ${uiModeWorkflowRules}## Tool dependencies and disambiguation
|
|
|
79
48
|
- **${HelperTools.ACTOR_OUTPUT_GET} vs ${HelperTools.DATASET_GET_ITEMS}:**
|
|
80
49
|
Use \`${HelperTools.ACTOR_OUTPUT_GET}\` for Actor run outputs and \`${HelperTools.DATASET_GET_ITEMS}\` for direct dataset access.
|
|
81
50
|
- **${HelperTools.STORE_SEARCH} vs ${HelperTools.ACTOR_GET_DETAILS}:**
|
|
82
|
-
\`${HelperTools.STORE_SEARCH}\` finds Actors; \`${HelperTools.ACTOR_GET_DETAILS}\` retrieves detailed info, README, and schema for a specific Actor.${
|
|
51
|
+
\`${HelperTools.STORE_SEARCH}\` finds Actors; \`${HelperTools.ACTOR_GET_DETAILS}\` retrieves detailed info, README, and schema for a specific Actor.${input.toolDisambiguation}
|
|
83
52
|
- **${HelperTools.STORE_SEARCH} vs ${RAG_WEB_BROWSER}:**
|
|
84
53
|
\`${HelperTools.STORE_SEARCH}\` finds robust and reliable Actors for specific websites; ${RAG_WEB_BROWSER} is a general and versatile web scraping tool.
|
|
85
54
|
- **Dedicated Actor tools (e.g. ${RAG_WEB_BROWSER}) vs ${HelperTools.ACTOR_CALL}:**
|
|
86
55
|
Prefer dedicated tools when available; use \`${HelperTools.ACTOR_CALL}\` only when no specialized tool exists in Apify store.
|
|
87
56
|
`;
|
|
88
57
|
}
|
|
89
|
-
//# sourceMappingURL=
|
|
90
|
-
//# debugId=351feb28-39cc-52cc-b121-8c02a1e4e379
|
|
58
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/common.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAW9D;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAA8B;IAChE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;EAyBT,KAAK,CAAC,aAAa;;;MAGf,WAAW,CAAC,UAAU;MACtB,KAAK,CAAC,cAAc;;;;;;;;MAQpB,WAAW,CAAC,gBAAgB,OAAO,WAAW,CAAC,iBAAiB;UAC5D,WAAW,CAAC,gBAAgB,kCAAkC,WAAW,CAAC,iBAAiB;MAC/F,WAAW,CAAC,YAAY,OAAO,WAAW,CAAC,iBAAiB;MAC5D,WAAW,CAAC,YAAY,sBAAsB,WAAW,CAAC,iBAAiB,uEAAuE,KAAK,CAAC,kBAAkB;MAC1K,WAAW,CAAC,YAAY,OAAO,eAAe;MAC9C,WAAW,CAAC,YAAY,8DAA8D,eAAe;kCACzE,eAAe,QAAQ,WAAW,CAAC,UAAU;iDAC9B,WAAW,CAAC,UAAU;CACtE,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/default.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,6DAA6D;AAC7D,wBAAgB,sBAAsB,IAAI,MAAM,CAM/C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default mode server instructions — standard tool references without UI-specific rules.
|
|
3
|
+
*/
|
|
4
|
+
import { HelperTools } from '../../const.js';
|
|
5
|
+
import { getCommonInstructions } from './common.js';
|
|
6
|
+
/** Returns server instructions for default (non-UI) mode. */
|
|
7
|
+
export function getDefaultInstructions() {
|
|
8
|
+
return getCommonInstructions({
|
|
9
|
+
schemaToolHint: `Use \`${HelperTools.ACTOR_GET_DETAILS}\` first to obtain the Actor's input schema`,
|
|
10
|
+
workflowRules: '',
|
|
11
|
+
toolDisambiguation: '',
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/default.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,6DAA6D;AAC7D,MAAM,UAAU,sBAAsB;IAClC,OAAO,qBAAqB,CAAC;QACzB,cAAc,EAAE,SAAS,WAAW,CAAC,iBAAiB,6CAA6C;QACnG,aAAa,EAAE,EAAE;QACjB,kBAAkB,EAAE,EAAE;KACzB,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server instructions entry point.
|
|
3
|
+
* Selects the appropriate instructions based on server mode.
|
|
4
|
+
*/
|
|
5
|
+
import type { ServerMode } from '../../types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Build server instructions for the given server mode.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getServerInstructions(mode?: ServerMode): string;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAUjD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,UAAsB,GAAG,MAAM,CAE1E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server instructions entry point.
|
|
3
|
+
* Selects the appropriate instructions based on server mode.
|
|
4
|
+
*/
|
|
5
|
+
import { getDefaultInstructions } from './default.js';
|
|
6
|
+
import { getOpenaiInstructions } from './openai.js';
|
|
7
|
+
/** Mode → instructions builder. Add new modes here. */
|
|
8
|
+
const instructionsByMode = {
|
|
9
|
+
default: getDefaultInstructions,
|
|
10
|
+
openai: getOpenaiInstructions,
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Build server instructions for the given server mode.
|
|
14
|
+
*/
|
|
15
|
+
export function getServerInstructions(mode = 'default') {
|
|
16
|
+
return instructionsByMode[mode]();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,uDAAuD;AACvD,MAAM,kBAAkB,GAAqC;IACzD,OAAO,EAAE,sBAAsB;IAC/B,MAAM,EAAE,qBAAqB;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAmB,SAAS;IAC9D,OAAO,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI UI mode server instructions — includes widget workflow rules and
|
|
3
|
+
* internal vs public tool disambiguation.
|
|
4
|
+
*/
|
|
5
|
+
/** Returns server instructions for OpenAI UI mode. */
|
|
6
|
+
export declare function getOpenaiInstructions(): string;
|
|
7
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/openai.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,sDAAsD;AACtD,wBAAgB,qBAAqB,IAAI,MAAM,CAM9C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI UI mode server instructions — includes widget workflow rules and
|
|
3
|
+
* internal vs public tool disambiguation.
|
|
4
|
+
*/
|
|
5
|
+
import { HelperTools } from '../../const.js';
|
|
6
|
+
import { getCommonInstructions } from './common.js';
|
|
7
|
+
const WORKFLOW_RULES = `
|
|
8
|
+
## CRITICAL: UI Mode Workflow Rules
|
|
9
|
+
|
|
10
|
+
**NEVER call \`${HelperTools.ACTOR_RUNS_GET}\` after \`${HelperTools.ACTOR_CALL}\` in UI mode.**
|
|
11
|
+
|
|
12
|
+
When you call \`${HelperTools.ACTOR_CALL}\` in async mode (UI mode), the response will include a widget that automatically polls for status updates. You must NOT call \`${HelperTools.ACTOR_RUNS_GET}\` or any other tool after this - your task is complete. The widget handles everything automatically.
|
|
13
|
+
|
|
14
|
+
This is FORBIDDEN and will result in unnecessary duplicate polling. Always stop after receiving the \`${HelperTools.ACTOR_CALL}\` response in UI mode.
|
|
15
|
+
|
|
16
|
+
`;
|
|
17
|
+
const TOOL_DISAMBIGUATION = `
|
|
18
|
+
- **Internal vs public Actor tools:**
|
|
19
|
+
- \`${HelperTools.STORE_SEARCH_INTERNAL}\` is for silent name resolution; \`${HelperTools.STORE_SEARCH}\` is for user-facing discovery
|
|
20
|
+
- \`${HelperTools.ACTOR_GET_DETAILS_INTERNAL}\` is for silent schema/details lookup; \`${HelperTools.ACTOR_GET_DETAILS}\` is for user-facing details
|
|
21
|
+
- When the next step is running an Actor, ALWAYS use \`${HelperTools.STORE_SEARCH_INTERNAL}\` for name resolution, never \`${HelperTools.STORE_SEARCH}\``;
|
|
22
|
+
/** Returns server instructions for OpenAI UI mode. */
|
|
23
|
+
export function getOpenaiInstructions() {
|
|
24
|
+
return getCommonInstructions({
|
|
25
|
+
schemaToolHint: `Use \`${HelperTools.ACTOR_GET_DETAILS_INTERNAL}\` first to obtain the Actor's input schema`,
|
|
26
|
+
workflowRules: WORKFLOW_RULES,
|
|
27
|
+
toolDisambiguation: TOOL_DISAMBIGUATION,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=openai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/openai.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,cAAc,GAAG;;;iBAGN,WAAW,CAAC,cAAc,cAAc,WAAW,CAAC,UAAU;;kBAE7D,WAAW,CAAC,UAAU,mIAAmI,WAAW,CAAC,cAAc;;wGAE7F,WAAW,CAAC,UAAU;;CAE7H,CAAC;AAEF,MAAM,mBAAmB,GAAG;;QAEpB,WAAW,CAAC,qBAAqB,uCAAuC,WAAW,CAAC,YAAY;QAChG,WAAW,CAAC,0BAA0B,6CAA6C,WAAW,CAAC,iBAAiB;2DAC7D,WAAW,CAAC,qBAAqB,mCAAmC,WAAW,CAAC,YAAY,IAAI,CAAC;AAE5J,sDAAsD;AACtD,MAAM,UAAU,qBAAqB;IACjC,OAAO,qBAAqB,CAAC;QACzB,cAAc,EAAE,SAAS,WAAW,CAAC,0BAA0B,6CAA6C;QAC5G,aAAa,EAAE,cAAc;QAC7B,kBAAkB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AACP,CAAC"}
|
package/dist/utils/skyfire.js
CHANGED
|
@@ -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]="3f0b0d1d-67a5-56c6-adc0-eb8d72827f2b")}catch(e){}}();
|
|
3
1
|
import { SKYFIRE_TOOL_INSTRUCTIONS } from '../const.js';
|
|
4
2
|
import { buildMCPResponse } from './mcp.js';
|
|
5
3
|
/**
|
|
@@ -18,5 +16,4 @@ export function validateSkyfirePayId(apifyMcpServer, args) {
|
|
|
18
16
|
}
|
|
19
17
|
return null;
|
|
20
18
|
}
|
|
21
|
-
//# sourceMappingURL=skyfire.js.map
|
|
22
|
-
//# debugId=3f0b0d1d-67a5-56c6-adc0-eb8d72827f2b
|
|
19
|
+
//# sourceMappingURL=skyfire.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyfire.js","sources":["../../src/utils/skyfire.ts"],"
|
|
1
|
+
{"version":3,"file":"skyfire.js","sourceRoot":"","sources":["../../src/utils/skyfire.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAChC,cAA+B,EAC/B,IAA6B;IAE7B,IAAI,cAAc,CAAC,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;QAC7E,OAAO,gBAAgB,CAAC;YACpB,KAAK,EAAE,CAAC,yBAAyB,CAAC;SACrC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ServerMode, ToolCategory, ToolEntry } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the tool objects for the given category names resolved for the specified mode.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getExpectedToolsByCategories(categories: ToolCategory[], mode: ServerMode): ToolEntry[];
|
|
6
|
+
/**
|
|
7
|
+
* Returns the tool names for the given category names.
|
|
8
|
+
* Tool names are identical across all server modes, so no mode parameter is needed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getExpectedToolNamesByCategories(categories: ToolCategory[]): string[];
|
|
11
|
+
//# sourceMappingURL=tool_categories_helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool_categories_helpers.d.ts","sourceRoot":"","sources":["../../src/utils/tool_categories_helpers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvE;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,UAAU,GAAG,SAAS,EAAE,CAItG;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAErF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper functions for working with tool categories.
|
|
3
|
+
* Separated from tools.ts to break circular dependency: tools/index.ts → utils/tools.ts → tools/categories.ts → tools/index.ts
|
|
4
|
+
*/
|
|
5
|
+
import { getCategoryTools } from '../tools/categories.js';
|
|
6
|
+
/**
|
|
7
|
+
* Returns the tool objects for the given category names resolved for the specified mode.
|
|
8
|
+
*/
|
|
9
|
+
export function getExpectedToolsByCategories(categories, mode) {
|
|
10
|
+
const resolved = getCategoryTools(mode);
|
|
11
|
+
return categories
|
|
12
|
+
.flatMap((category) => resolved[category] || []);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the tool names for the given category names.
|
|
16
|
+
* Tool names are identical across all server modes, so no mode parameter is needed.
|
|
17
|
+
*/
|
|
18
|
+
export function getExpectedToolNamesByCategories(categories) {
|
|
19
|
+
return getExpectedToolsByCategories(categories, 'default').map((tool) => tool.name);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=tool_categories_helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool_categories_helpers.js","sourceRoot":"","sources":["../../src/utils/tool_categories_helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,UAA0B,EAAE,IAAgB;IACrF,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,UAAU;SACZ,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gCAAgC,CAAC,UAA0B;IACvE,OAAO,4BAA4B,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -7,4 +7,4 @@ import type { ToolStatus } from '../types.js';
|
|
|
7
7
|
* - TOOL_STATUS.FAILED → Server errors (HTTP 5xx, unknown, or unexpected exceptions).
|
|
8
8
|
*/
|
|
9
9
|
export declare function getToolStatusFromError(error: unknown, isAborted: boolean): ToolStatus;
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=tool_status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool_status.d.ts","sourceRoot":"","sources":["../../src/utils/tool_status.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,CAmBrF"}
|
|
@@ -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]="754215d4-49b4-5a5a-9b5d-ae320d553163")}catch(e){}}();
|
|
3
1
|
import { ErrorCode, McpError } from '@modelcontextprotocol/sdk/types.js';
|
|
4
2
|
import { TOOL_STATUS } from '../const.js';
|
|
5
3
|
import { getHttpStatusCode } from './logging.js';
|
|
@@ -26,5 +24,4 @@ export function getToolStatusFromError(error, isAborted) {
|
|
|
26
24
|
// Everything else is considered a server / unexpected failure
|
|
27
25
|
return TOOL_STATUS.FAILED;
|
|
28
26
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
30
|
-
//# debugId=754215d4-49b4-5a5a-9b5d-ae320d553163
|
|
27
|
+
//# sourceMappingURL=tool_status.js.map
|