@apify/actors-mcp-server 0.9.20 → 0.9.21-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/dist/apify_client.js +1 -4
- package/dist/apify_client.js.map +1 -1
- package/dist/const.js +1 -4
- package/dist/const.js.map +1 -1
- package/dist/dev_server.d.ts.map +1 -1
- package/dist/dev_server.js +38 -45
- 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 +2 -3
- package/dist/index_internals.d.ts.map +1 -1
- package/dist/index_internals.js +2 -6
- package/dist/index_internals.js.map +1 -1
- 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/mcp/actors.js +1 -4
- 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 +44 -17
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +180 -65
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/utils.d.ts +2 -1
- package/dist/mcp/utils.d.ts.map +1 -1
- package/dist/mcp/utils.js +3 -5
- package/dist/mcp/utils.js.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.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.js +1 -4
- package/dist/payments/types.js.map +1 -1
- package/dist/payments/x402.js +1 -4
- package/dist/payments/x402.js.map +1 -1
- package/dist/prompts/index.js +1 -4
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/latest_news_on_topic.js +1 -4
- package/dist/prompts/latest_news_on_topic.js.map +1 -1
- package/dist/resources/resource_service.d.ts +9 -2
- package/dist/resources/resource_service.d.ts.map +1 -1
- package/dist/resources/resource_service.js +5 -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.js +1 -4
- package/dist/state.js.map +1 -1
- package/dist/stdio.js +15 -28
- package/dist/stdio.js.map +1 -1
- package/dist/telemetry.js +1 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/tools/{openai → apps}/actor_executor.d.ts +2 -2
- package/dist/tools/apps/actor_executor.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/actor_executor.js +3 -6
- package/dist/tools/apps/actor_executor.js.map +1 -0
- package/dist/tools/{openai → apps}/call_actor.d.ts +2 -2
- package/dist/tools/apps/call_actor.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/call_actor.js +7 -10
- package/dist/tools/apps/call_actor.js.map +1 -0
- package/dist/tools/apps/fetch_actor_details.d.ts +7 -0
- package/dist/tools/apps/fetch_actor_details.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/fetch_actor_details.js +4 -7
- package/dist/tools/apps/fetch_actor_details.js.map +1 -0
- package/dist/tools/apps/fetch_actor_details_internal.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/fetch_actor_details_internal.js +3 -6
- package/dist/tools/apps/fetch_actor_details_internal.js.map +1 -0
- package/dist/tools/{openai → apps}/get_actor_run.d.ts +2 -2
- package/dist/tools/apps/get_actor_run.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/get_actor_run.js +3 -6
- package/dist/tools/apps/get_actor_run.js.map +1 -0
- package/dist/tools/apps/search_actors.d.ts +7 -0
- package/dist/tools/apps/search_actors.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/search_actors.js +4 -7
- package/dist/tools/apps/search_actors.js.map +1 -0
- package/dist/tools/apps/search_actors_internal.d.ts.map +1 -0
- package/dist/tools/{openai → apps}/search_actors_internal.js +3 -6
- package/dist/tools/apps/search_actors_internal.js.map +1 -0
- package/dist/tools/build.js +1 -4
- package/dist/tools/build.js.map +1 -1
- package/dist/tools/categories.d.ts +10 -10
- package/dist/tools/categories.d.ts.map +1 -1
- package/dist/tools/categories.js +18 -21
- package/dist/tools/categories.js.map +1 -1
- package/dist/tools/common/abort_actor_run.js +1 -4
- package/dist/tools/common/abort_actor_run.js.map +1 -1
- package/dist/tools/common/add_actor.js +1 -4
- package/dist/tools/common/add_actor.js.map +1 -1
- package/dist/tools/common/dataset_collection.js +1 -4
- package/dist/tools/common/dataset_collection.js.map +1 -1
- package/dist/tools/common/fetch_apify_docs.js +1 -4
- package/dist/tools/common/fetch_apify_docs.js.map +1 -1
- package/dist/tools/common/get_actor_output.js +1 -4
- package/dist/tools/common/get_actor_output.js.map +1 -1
- package/dist/tools/common/get_actor_run_log.js +1 -4
- package/dist/tools/common/get_actor_run_log.js.map +1 -1
- package/dist/tools/common/get_dataset.js +1 -4
- package/dist/tools/common/get_dataset.js.map +1 -1
- package/dist/tools/common/get_dataset_items.js +1 -4
- package/dist/tools/common/get_dataset_items.js.map +1 -1
- package/dist/tools/common/get_dataset_schema.js +1 -4
- package/dist/tools/common/get_dataset_schema.js.map +1 -1
- package/dist/tools/common/get_key_value_store.js +1 -4
- package/dist/tools/common/get_key_value_store.js.map +1 -1
- package/dist/tools/common/get_key_value_store_keys.js +1 -4
- package/dist/tools/common/get_key_value_store_keys.js.map +1 -1
- package/dist/tools/common/get_key_value_store_record.js +1 -4
- package/dist/tools/common/get_key_value_store_record.js.map +1 -1
- package/dist/tools/common/key_value_store_collection.js +1 -4
- package/dist/tools/common/key_value_store_collection.js.map +1 -1
- package/dist/tools/common/run_collection.js +1 -4
- package/dist/tools/common/run_collection.js.map +1 -1
- package/dist/tools/common/search_apify_docs.js +1 -4
- package/dist/tools/common/search_apify_docs.js.map +1 -1
- package/dist/tools/core/actor_execution.js +1 -4
- package/dist/tools/core/actor_execution.js.map +1 -1
- package/dist/tools/core/actor_response.js +1 -4
- package/dist/tools/core/actor_response.js.map +1 -1
- package/dist/tools/core/actor_tools_factory.js +2 -5
- package/dist/tools/core/actor_tools_factory.js.map +1 -1
- package/dist/tools/core/call_actor_common.d.ts +2 -2
- package/dist/tools/core/call_actor_common.js +3 -6
- package/dist/tools/core/call_actor_common.js.map +1 -1
- package/dist/tools/core/fetch_actor_details_common.d.ts +2 -2
- package/dist/tools/core/fetch_actor_details_common.js +4 -7
- package/dist/tools/core/fetch_actor_details_common.js.map +1 -1
- package/dist/tools/core/get_actor_run_common.d.ts +3 -3
- package/dist/tools/core/get_actor_run_common.js +5 -8
- package/dist/tools/core/get_actor_run_common.js.map +1 -1
- package/dist/tools/core/search_actors_common.d.ts +2 -2
- package/dist/tools/core/search_actors_common.js +4 -7
- package/dist/tools/core/search_actors_common.js.map +1 -1
- package/dist/tools/default/actor_executor.js +1 -4
- package/dist/tools/default/actor_executor.js.map +1 -1
- package/dist/tools/default/call_actor.js +2 -5
- package/dist/tools/default/call_actor.js.map +1 -1
- package/dist/tools/default/fetch_actor_details.js +1 -4
- 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 +2 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/structured_output_schemas.js +3 -6
- package/dist/tools/structured_output_schemas.js.map +1 -1
- package/dist/tools/utils.js +1 -4
- package/dist/tools/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +41 -23
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +52 -15
- package/dist/types.js.map +1 -1
- package/dist/utils/actor.js +1 -4
- package/dist/utils/actor.js.map +1 -1
- package/dist/utils/actor_card.js +1 -4
- package/dist/utils/actor_card.js.map +1 -1
- package/dist/utils/actor_details.d.ts +1 -1
- package/dist/utils/actor_details.js +2 -5
- package/dist/utils/actor_details.js.map +1 -1
- package/dist/utils/actor_search.js +1 -4
- package/dist/utils/actor_search.js.map +1 -1
- package/dist/utils/ajv.js +1 -4
- package/dist/utils/ajv.js.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.js +1 -4
- 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.js +1 -4
- 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.js +1 -4
- package/dist/utils/payment_errors.js.map +1 -1
- package/dist/utils/pricing_info.js +1 -4
- package/dist/utils/pricing_info.js.map +1 -1
- package/dist/utils/progress.js +1 -4
- package/dist/utils/progress.js.map +1 -1
- package/dist/utils/schema_generation.js +1 -4
- package/dist/utils/schema_generation.js.map +1 -1
- package/dist/utils/server-instructions/index.d.ts +16 -4
- package/dist/utils/server-instructions/index.d.ts.map +1 -1
- package/dist/utils/server-instructions/index.js +75 -16
- package/dist/utils/server-instructions/index.js.map +1 -1
- package/dist/utils/tool_categories_helpers.js +1 -4
- package/dist/utils/tool_categories_helpers.js.map +1 -1
- package/dist/utils/tool_status.js +1 -4
- package/dist/utils/tool_status.js.map +1 -1
- package/dist/utils/tools.d.ts +2 -1
- package/dist/utils/tools.d.ts.map +1 -1
- package/dist/utils/tools.js +4 -6
- package/dist/utils/tools.js.map +1 -1
- package/dist/utils/tools_loader.d.ts +11 -13
- package/dist/utils/tools_loader.d.ts.map +1 -1
- package/dist/utils/tools_loader.js +126 -89
- 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.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 +0 -2
- package/dist/web/dist/actor-run-widget.js +0 -2
- package/dist/web/dist/search-actors-widget.js +0 -2
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
- package/dist/tools/openai/actor_executor.d.ts.map +0 -1
- package/dist/tools/openai/actor_executor.js.map +0 -1
- package/dist/tools/openai/call_actor.d.ts.map +0 -1
- package/dist/tools/openai/call_actor.js.map +0 -1
- package/dist/tools/openai/fetch_actor_details.d.ts +0 -7
- package/dist/tools/openai/fetch_actor_details.d.ts.map +0 -1
- package/dist/tools/openai/fetch_actor_details.js.map +0 -1
- package/dist/tools/openai/fetch_actor_details_internal.d.ts.map +0 -1
- package/dist/tools/openai/fetch_actor_details_internal.js.map +0 -1
- package/dist/tools/openai/get_actor_run.d.ts.map +0 -1
- package/dist/tools/openai/get_actor_run.js.map +0 -1
- package/dist/tools/openai/search_actors.d.ts +0 -7
- package/dist/tools/openai/search_actors.d.ts.map +0 -1
- package/dist/tools/openai/search_actors.js.map +0 -1
- package/dist/tools/openai/search_actors_internal.d.ts.map +0 -1
- package/dist/tools/openai/search_actors_internal.js.map +0 -1
- package/dist/utils/server-instructions/common.d.ts +0 -19
- package/dist/utils/server-instructions/common.d.ts.map +0 -1
- package/dist/utils/server-instructions/common.js +0 -61
- package/dist/utils/server-instructions/common.js.map +0 -1
- package/dist/utils/server-instructions/default.d.ts +0 -6
- package/dist/utils/server-instructions/default.d.ts.map +0 -1
- package/dist/utils/server-instructions/default.js +0 -17
- package/dist/utils/server-instructions/default.js.map +0 -1
- package/dist/utils/server-instructions/openai.d.ts +0 -7
- package/dist/utils/server-instructions/openai.d.ts.map +0 -1
- package/dist/utils/server-instructions/openai.js +0 -33
- package/dist/utils/server-instructions/openai.js.map +0 -1
- /package/dist/tools/{openai → apps}/fetch_actor_details_internal.d.ts +0 -0
- /package/dist/tools/{openai → apps}/search_actors_internal.d.ts +0 -0
package/dist/stdio.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Sentry must be imported before all other modules to ensure early initialization
|
|
3
|
-
|
|
4
|
-
!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]="2c4e3aed-471f-5ae0-9205-7e530cc9224e")}catch(e){}}();
|
|
5
3
|
import './instrument.js';
|
|
6
4
|
/**
|
|
7
5
|
* This script initializes and starts the Apify MCP server using the Stdio transport.
|
|
@@ -32,10 +30,9 @@ import { DEFAULT_TELEMETRY_ENV, TELEMETRY_ENV } from './const.js';
|
|
|
32
30
|
import { processInput } from './input.js';
|
|
33
31
|
import { ActorsMcpServer } from './mcp/server.js';
|
|
34
32
|
import { getTelemetryEnv } from './telemetry.js';
|
|
35
|
-
import {
|
|
33
|
+
import { parseServerMode } from './types.js';
|
|
36
34
|
import { isApiTokenRequired } from './utils/auth.js';
|
|
37
35
|
import { parseCommaSeparatedList } from './utils/generic.js';
|
|
38
|
-
import { loadToolsFromInput } from './utils/tools_loader.js';
|
|
39
36
|
/**
|
|
40
37
|
* Attempts to read Apify token from ~/.apify/auth.json file
|
|
41
38
|
* Returns the token if found, undefined otherwise
|
|
@@ -104,11 +101,12 @@ Only used when --telemetry-enabled is true`,
|
|
|
104
101
|
coerce: (arg) => {
|
|
105
102
|
// Normalize: bare --ui flag (boolean true) or empty string both mean 'true'
|
|
106
103
|
const normalized = arg === true || arg === '' ? 'true' : arg;
|
|
107
|
-
return
|
|
104
|
+
return parseServerMode(normalized || process.env.UI_MODE);
|
|
108
105
|
},
|
|
109
|
-
describe: `
|
|
110
|
-
--ui
|
|
111
|
-
|
|
106
|
+
describe: `Server mode. Can also be set via UI_MODE environment variable.
|
|
107
|
+
--ui apps | --ui true | --ui on : force MCP Apps widget rendering
|
|
108
|
+
--ui default | --ui false | --ui off : force standard tool set
|
|
109
|
+
--ui auto (default) : resolve from client capabilities`,
|
|
112
110
|
})
|
|
113
111
|
.help('help')
|
|
114
112
|
.alias('h', 'help')
|
|
@@ -145,7 +143,6 @@ if (requiresAuthentication && !apifyToken) {
|
|
|
145
143
|
process.exit(1);
|
|
146
144
|
}
|
|
147
145
|
async function main() {
|
|
148
|
-
var _a;
|
|
149
146
|
// Node.js version guard — surface a clear error instead of cryptic failures
|
|
150
147
|
const [major] = process.versions.node.split('.').map(Number);
|
|
151
148
|
if (major < 20) {
|
|
@@ -161,7 +158,7 @@ async function main() {
|
|
|
161
158
|
env: getTelemetryEnv(argv.telemetryEnv),
|
|
162
159
|
},
|
|
163
160
|
token: apifyToken,
|
|
164
|
-
|
|
161
|
+
serverMode: argv.ui,
|
|
165
162
|
allowUnauthMode: !requiresAuthentication,
|
|
166
163
|
});
|
|
167
164
|
// Create an Input object from CLI arguments
|
|
@@ -173,26 +170,21 @@ async function main() {
|
|
|
173
170
|
// Normalize (merges actors into tools for backward compatibility)
|
|
174
171
|
const normalizedInput = processInput(input);
|
|
175
172
|
const apifyClient = new ApifyClient({ token: apifyToken });
|
|
176
|
-
//
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
// Fetch actor metadata and queue mode-agnostic sources. Sources are composed
|
|
174
|
+
// with the final mode inside the initialize request handler once the client's
|
|
175
|
+
// capabilities are known (see src/mcp/server.ts#setupInitializeHandler).
|
|
176
|
+
await mcpServer.loadToolsFromInput(normalizedInput, apifyClient);
|
|
179
177
|
// Start server
|
|
180
178
|
const transport = new StdioServerTransport();
|
|
181
179
|
// Generate a unique session ID for this stdio connection
|
|
182
180
|
// Note: stdio transport does not have a strict session ID concept like HTTP transports,
|
|
183
181
|
// so we generate a UUID4 to represent this single session interaction for telemetry tracking
|
|
184
182
|
const mcpSessionId = randomUUID();
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const originalOnMessage = transport.onmessage;
|
|
183
|
+
await mcpServer.connect(transport);
|
|
184
|
+
const sdkOnMessage = transport.onmessage;
|
|
188
185
|
transport.onmessage = (message) => {
|
|
189
186
|
var _a;
|
|
190
|
-
// Extract client information from initialize message
|
|
191
187
|
const msgRecord = message;
|
|
192
|
-
if (msgRecord.method === 'initialize') {
|
|
193
|
-
// Update mcpServer options with initialize request data
|
|
194
|
-
mcpServer.options.initializeRequestData = msgRecord;
|
|
195
|
-
}
|
|
196
188
|
// Inject session ID into all requests for task isolation and session tracking.
|
|
197
189
|
// CRITICAL: Always create params object if missing (some requests like listTasks/getTasks don't have params),
|
|
198
190
|
// otherwise mcpSessionId injection fails, breaking session isolation in multi-node setups.
|
|
@@ -200,12 +192,8 @@ async function main() {
|
|
|
200
192
|
(_a = params._meta) !== null && _a !== void 0 ? _a : (params._meta = {});
|
|
201
193
|
params._meta.mcpSessionId = mcpSessionId;
|
|
202
194
|
msgRecord.params = params;
|
|
203
|
-
|
|
204
|
-
if (originalOnMessage) {
|
|
205
|
-
originalOnMessage(message);
|
|
206
|
-
}
|
|
195
|
+
sdkOnMessage === null || sdkOnMessage === void 0 ? void 0 : sdkOnMessage(message);
|
|
207
196
|
};
|
|
208
|
-
await mcpServer.connect(transport);
|
|
209
197
|
}
|
|
210
198
|
main().catch(async (error) => {
|
|
211
199
|
log.error('Server error', { error });
|
|
@@ -214,5 +202,4 @@ main().catch(async (error) => {
|
|
|
214
202
|
await Sentry.flush(5000);
|
|
215
203
|
process.exit(1);
|
|
216
204
|
});
|
|
217
|
-
//# sourceMappingURL=stdio.js.map
|
|
218
|
-
//# debugId=2c4e3aed-471f-5ae0-9205-7e530cc9224e
|
|
205
|
+
//# sourceMappingURL=stdio.js.map
|
package/dist/stdio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.js","sources":["../src/stdio.ts"],"
|
|
1
|
+
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../src/stdio.ts"],"names":[],"mappings":";AAEA,kFAAkF;AAClF,OAAO,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,yEAAyE;AACzE,6EAA6E;AAC7E,6CAA6C;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AA2B7D;;;GAGG;AACH,SAAS,oBAAoB;IACzB,IAAI,CAAC;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AAM,CAAC;QAE1B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,OAAO,CAAC,CAAC;IAC5B,CAAC,CAAC;AACN,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;IACzB,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5C,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
|
package/dist/telemetry.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]="67888c7f-3923-5994-9023-9e471164f4f2")}catch(e){}}();
|
|
3
1
|
import * as crypto from 'node:crypto';
|
|
4
2
|
import { Analytics } from '@segment/analytics-node';
|
|
5
3
|
import log from '@apify/log';
|
|
@@ -70,5 +68,4 @@ export function trackToolCall(userId, telemetryEnv, properties) {
|
|
|
70
68
|
log.error('Failed to track tool call event', { error, userId, toolName: properties.tool_name });
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
|
-
//# sourceMappingURL=telemetry.js.map
|
|
74
|
-
//# debugId=67888c7f-3923-5994-9023-9e471164f4f2
|
|
71
|
+
//# sourceMappingURL=telemetry.js.map
|
package/dist/telemetry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sources":["../src/telemetry.ts"],"
|
|
1
|
+
{"version":3,"file":"telemetry.js","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A+B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IACD,OAAO,eAAe,CAAC;AAC3B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CACzB,MAAqB,EACrB,YAA0B,EAC1B,UAAuC;IAEvC,MAAM,MAAM,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC;IAEtD,IAAI,CAAC;QACD,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC;YACV,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;YAC/D,KAAK,EAAE,cAAc,CAAC,SAAS;YAC/B,UAAU;SACb,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,GAAG,CAAC,KAAK,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC;IACpG,CAAC;AACL,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ActorExecutor } from '../../types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Apps-mode actor executor.
|
|
4
4
|
* Runs actors asynchronously — starts the run and returns immediately with widget metadata.
|
|
5
5
|
* The widget automatically tracks progress and updates the UI.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const appsActorExecutor: ActorExecutor;
|
|
8
8
|
//# sourceMappingURL=actor_executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor_executor.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/actor_executor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA8C,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGhG;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAsB/B,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
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]="c37eb1d7-bb7e-57e7-a0e9-b1b4830bb518")}catch(e){}}();
|
|
3
1
|
import log from '@apify/log';
|
|
4
2
|
import { buildStartAsyncResponse } from '../core/call_actor_common.js';
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* Apps-mode actor executor.
|
|
7
5
|
* Runs actors asynchronously — starts the run and returns immediately with widget metadata.
|
|
8
6
|
* The widget automatically tracks progress and updates the UI.
|
|
9
7
|
*/
|
|
10
|
-
export const
|
|
8
|
+
export const appsActorExecutor = {
|
|
11
9
|
async executeActorTool(params) {
|
|
12
10
|
var _a;
|
|
13
11
|
if ((_a = params.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
|
|
@@ -28,5 +26,4 @@ export const openaiActorExecutor = {
|
|
|
28
26
|
});
|
|
29
27
|
},
|
|
30
28
|
};
|
|
31
|
-
//# sourceMappingURL=actor_executor.js.map
|
|
32
|
-
//# debugId=c37eb1d7-bb7e-57e7-a0e9-b1b4830bb518
|
|
29
|
+
//# sourceMappingURL=actor_executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor_executor.js","sourceRoot":"","sources":["../../../src/tools/apps/actor_executor.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAG7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC5C,KAAK,CAAC,gBAAgB,CAAC,MAA4B;;QAC/C,IAAI,MAAA,MAAM,CAAC,WAAW,0CAAE,OAAO,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAE3E,GAAG,CAAC,KAAK,CAAC,8CAA8C,EAAE;YACtD,SAAS,EAAE,MAAM,CAAC,aAAa;YAC/B,KAAK,EAAE,QAAQ,CAAC,EAAE;YAClB,YAAY,EAAE,MAAM,CAAC,YAAY;SACpC,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;YAC3B,SAAS,EAAE,MAAM,CAAC,aAAa;YAC/B,QAAQ;YACR,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,IAAI;SACf,CAAC,CAAC;IACP,CAAC;CACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ToolEntry } from '../../types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Apps mode call-actor tool.
|
|
4
4
|
* Always runs asynchronously — starts the run and returns immediately with widget metadata.
|
|
5
5
|
* The widget automatically tracks progress and updates the UI.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const appsCallActor: ToolEntry;
|
|
8
8
|
//# sourceMappingURL=call_actor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call_actor.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/call_actor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAoBlE;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,SAoEjB,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]="eabdd8b4-db8d-514d-9732-4d96e263f2e4")}catch(e){}}();
|
|
3
1
|
var _a;
|
|
4
2
|
import log from '@apify/log';
|
|
5
3
|
import { HelperTools } from '../../const.js';
|
|
@@ -7,26 +5,26 @@ import { getWidgetConfig, WIDGET_URIS } from '../../resources/widgets.js';
|
|
|
7
5
|
import { extractActorId } from '../../utils/tools.js';
|
|
8
6
|
import { buildCallActorDescription, buildCallActorErrorResponse, buildStartAsyncResponse, callActorAjvValidate, callActorInputSchema, callActorPreExecute, resolveAndValidateActor, } from '../core/call_actor_common.js';
|
|
9
7
|
import { callActorOutputSchema } from '../structured_output_schemas.js';
|
|
10
|
-
const
|
|
8
|
+
const CALL_ACTOR_APPS_DESCRIPTION = buildCallActorDescription({
|
|
11
9
|
actorGetDetailsTool: HelperTools.ACTOR_GET_DETAILS_INTERNAL,
|
|
12
10
|
storeSearchTool: HelperTools.STORE_SEARCH_INTERNAL,
|
|
13
11
|
useInternalSearchWarning: true,
|
|
14
12
|
alwaysAsync: true,
|
|
15
13
|
});
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
15
|
+
* Apps mode call-actor tool.
|
|
18
16
|
* Always runs asynchronously — starts the run and returns immediately with widget metadata.
|
|
19
17
|
* The widget automatically tracks progress and updates the UI.
|
|
20
18
|
*/
|
|
21
|
-
export const
|
|
19
|
+
export const appsCallActor = Object.freeze({
|
|
22
20
|
type: 'internal',
|
|
23
21
|
name: HelperTools.ACTOR_CALL,
|
|
24
|
-
description:
|
|
22
|
+
description: CALL_ACTOR_APPS_DESCRIPTION,
|
|
25
23
|
inputSchema: callActorInputSchema,
|
|
26
24
|
outputSchema: callActorOutputSchema,
|
|
27
25
|
ajvValidate: callActorAjvValidate,
|
|
28
26
|
paymentRequired: true,
|
|
29
|
-
//
|
|
27
|
+
// apps-only tool; apps-mode _meta (ui/* and openai/* keys) stripped in non-apps mode by stripWidgetMeta() in src/utils/tools.ts
|
|
30
28
|
_meta: {
|
|
31
29
|
...(_a = getWidgetConfig(WIDGET_URIS.ACTOR_RUN)) === null || _a === void 0 ? void 0 : _a.meta,
|
|
32
30
|
},
|
|
@@ -56,7 +54,7 @@ export const openaiCallActor = Object.freeze({
|
|
|
56
54
|
}
|
|
57
55
|
resolvedActorId = extractActorId(resolution.actor);
|
|
58
56
|
const { apifyClient } = toolArgs;
|
|
59
|
-
//
|
|
57
|
+
// Apps mode always runs asynchronously
|
|
60
58
|
const actorClient = apifyClient.actor(baseActorName);
|
|
61
59
|
const actorRun = await actorClient.start(input, callOptions);
|
|
62
60
|
log.debug('Started Actor run (async)', { actorName: baseActorName, runId: actorRun.id, mcpSessionId: toolArgs.mcpSessionId });
|
|
@@ -84,5 +82,4 @@ export const openaiCallActor = Object.freeze({
|
|
|
84
82
|
}
|
|
85
83
|
},
|
|
86
84
|
});
|
|
87
|
-
//# sourceMappingURL=call_actor.js.map
|
|
88
|
-
//# debugId=eabdd8b4-db8d-514d-9732-4d96e263f2e4
|
|
85
|
+
//# sourceMappingURL=call_actor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call_actor.js","sourceRoot":"","sources":["../../../src/tools/apps/call_actor.ts"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACH,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBA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YACH,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;gBACxB,OAAO,UAAU,CAAC,KAAK,CAAC;YAC5B,CAAC;YAED,eAAe,GAAG,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACnD,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC;YAEjC,uCAAuC;YACvC,MAAM,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YAC7D,GAAG,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC;YAC9H,MAAM,QAAQ,GAAG,uBAAuB,CAAC;gBACrC,SAAS,EAAE,aAAa;gBACxB,QAAQ;gBACR,KAAK;gBACL,MAAM,EAAE,IAAI;aACf,CAAC,CAAC;YACH,OAAO;gBACH,GAAG,QAAQ;gBACX,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;aAC9C,CAAC;QACN,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,2BAA2B,CAAC;gBAC/B,SAAS,EAAE,aAAa;gBACxB,KAAK;gBACL,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,QAAQ,CAAC,YAAY;gBACnC,mBAAmB,EAAE,WAAW,CAAC,0BAA0B;gBAC3D,eAAe,EAAE,WAAW,CAAC,qBAAqB;aACrD,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACK,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ToolEntry } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Apps mode fetch-actor-details tool.
|
|
4
|
+
* Returns simplified structured content with interactive widget metadata.
|
|
5
|
+
*/
|
|
6
|
+
export declare const appsFetchActorDetails: ToolEntry;
|
|
7
|
+
//# sourceMappingURL=fetch_actor_details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch_actor_details.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAgBlE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SA6CzB,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]="9a849f2a-cdc3-5b82-9051-d3e09198d20a")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { ApifyClient } from '../../apify_client.js';
|
|
5
3
|
import { getWidgetConfig, WIDGET_URIS } from '../../resources/widgets.js';
|
|
@@ -9,10 +7,10 @@ import { getUserInfoCached } from '../../utils/userid_cache.js';
|
|
|
9
7
|
import { fixActorNameInputAndLog } from '../core/actor_tools_factory.js';
|
|
10
8
|
import { buildActorNotFoundResponse, fetchActorDetailsMetadata, fetchActorDetailsToolArgsSchema, resolveOutputOptions, } from '../core/fetch_actor_details_common.js';
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
10
|
+
* Apps mode fetch-actor-details tool.
|
|
13
11
|
* Returns simplified structured content with interactive widget metadata.
|
|
14
12
|
*/
|
|
15
|
-
export const
|
|
13
|
+
export const appsFetchActorDetails = Object.freeze({
|
|
16
14
|
...fetchActorDetailsMetadata,
|
|
17
15
|
call: async (toolArgs) => {
|
|
18
16
|
const { args, apifyToken, mcpSessionId } = toolArgs;
|
|
@@ -46,7 +44,7 @@ export const openaiFetchActorDetails = Object.freeze({
|
|
|
46
44
|
return buildMCPResponse({
|
|
47
45
|
texts,
|
|
48
46
|
structuredContent,
|
|
49
|
-
// Response-level meta; only returned in
|
|
47
|
+
// Response-level meta; only returned in apps mode (this handler is apps-only)
|
|
50
48
|
_meta: {
|
|
51
49
|
...widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.meta,
|
|
52
50
|
'openai/widgetDescription': `Actor details for ${actorName} from Apify Store`,
|
|
@@ -54,5 +52,4 @@ export const openaiFetchActorDetails = Object.freeze({
|
|
|
54
52
|
});
|
|
55
53
|
},
|
|
56
54
|
});
|
|
57
|
-
//# sourceMappingURL=fetch_actor_details.js.map
|
|
58
|
-
//# debugId=9a849f2a-cdc3-5b82-9051-d3e09198d20a
|
|
55
|
+
//# sourceMappingURL=fetch_actor_details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch_actor_details.js","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EACH,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,GACvB,MAAM,uCAAuC,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAc,MAAM,CAAC,MAAM,CAAC;IAC1D,GAAG,yBAAyB;IAC5B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EH,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAChE,OAAO,gBAAgB,CAAC;YACpB,KAAK;YACL,iBAAiB;YACjB,8EAA8E;YAC9E,KAAK,EAAE;gBACH,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI;gBACrB,0BAA0B,EAAE,qBAAqB,SAAS,mBAAmB;aAChF;SACJ,CAAC,CAAC;IACP,CAAC;CACK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch_actor_details_internal.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details_internal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AAQjE,eAAO,MAAM,6BAA6B,EAAE,SA4BjC,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]="6a1243b0-fa3e-5880-a0e5-826f1574416a")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { z } from 'zod';
|
|
5
3
|
import { HelperTools } from '../../const.js';
|
|
@@ -10,9 +8,9 @@ export const fetchActorDetailsInternalTool = Object.freeze({
|
|
|
10
8
|
type: 'internal',
|
|
11
9
|
name: HelperTools.ACTOR_GET_DETAILS_INTERNAL,
|
|
12
10
|
description: dedent `
|
|
13
|
-
Fetch Actor details with flexible output options (
|
|
11
|
+
Fetch Actor details with flexible output options (apps mode internal tool).
|
|
14
12
|
|
|
15
|
-
This tool is available because the LLM is operating in
|
|
13
|
+
This tool is available because the LLM is operating in apps mode. Use it for internal lookups
|
|
16
14
|
where data presentation to the user is NOT needed - this tool does NOT render a widget.
|
|
17
15
|
|
|
18
16
|
Use 'output' parameter with boolean flags to control returned information:
|
|
@@ -35,5 +33,4 @@ export const fetchActorDetailsInternalTool = Object.freeze({
|
|
|
35
33
|
},
|
|
36
34
|
call: async (toolArgs) => buildFetchActorDetailsResult(toolArgs, HelperTools.ACTOR_GET_DETAILS_INTERNAL),
|
|
37
35
|
});
|
|
38
|
-
//# sourceMappingURL=fetch_actor_details_internal.js.map
|
|
39
|
-
//# debugId=6a1243b0-fa3e-5880-a0e5-826f1574416a
|
|
36
|
+
//# sourceMappingURL=fetch_actor_details_internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch_actor_details_internal.js","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details_internal.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACH,4BAA4B,EAC5B,+BAA+B,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,CAAC,MAAM,6BAA6B,GAAc,MAAM,CAAC,MAAM,CAAC;IAClE,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW,CAAC,0BAA0B;IAC5C,WAAW,EAAE,MAAM,CAAA;;;;;;;;;;;;;KAalB;IACD,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,+BAA+B,CAAoB;IAC/E,YAAY,EAAE,wBAAwB;IACtC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,+BAA+B,CAAC,CAAC;IAC3E,WAAW,EAAE;QACT,KAAK,EAAE,8BAA8B;QACrC,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACvB;IACD,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,4BAA4B,CAAC,QAAQ,EAAE,WAAW,CAAC,0BAA0B,CAAC;CAClG,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ToolEntry } from '../../types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Apps mode get-actor-run tool.
|
|
4
4
|
* Returns abbreviated text with widget metadata for interactive progress display.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const appsGetActorRun: ToolEntry;
|
|
7
7
|
//# sourceMappingURL=get_actor_run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_actor_run.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/get_actor_run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAUlE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAuBnB,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
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]="012f6caf-8c09-50ed-89c1-545fffdbf34f")}catch(e){}}();
|
|
3
1
|
import { logHttpError } from '../../utils/logging.js';
|
|
4
2
|
import { buildGetActorRunError, buildGetActorRunSuccessResponse, fetchActorRunData, getActorRunArgs, getActorRunMetadata, } from '../core/get_actor_run_common.js';
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* Apps mode get-actor-run tool.
|
|
7
5
|
* Returns abbreviated text with widget metadata for interactive progress display.
|
|
8
6
|
*/
|
|
9
|
-
export const
|
|
7
|
+
export const appsGetActorRun = Object.freeze({
|
|
10
8
|
...getActorRunMetadata,
|
|
11
9
|
call: async (toolArgs) => {
|
|
12
10
|
const { args, apifyClient: client, mcpSessionId } = toolArgs;
|
|
@@ -28,5 +26,4 @@ export const openaiGetActorRun = Object.freeze({
|
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
});
|
|
31
|
-
//# sourceMappingURL=get_actor_run.js.map
|
|
32
|
-
//# debugId=012f6caf-8c09-50ed-89c1-545fffdbf34f
|
|
29
|
+
//# sourceMappingURL=get_actor_run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_actor_run.js","sourceRoot":"","sources":["../../../src/tools/apps/get_actor_run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EACH,qBAAqB,EACrB,+BAA+B,EAC/B,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACtB,MAAM,iCAAiC,CAAC;AAEzC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAc,MAAM,CAAC,MAAM,CAAC;IACpD,GAAG,mBAAmB;IACtB,IAAI,EAAE,KAAK,EAAE,QAA0B,EAAE,EAAE;QACvC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;QAC7D,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,MAAM;gBACN,YAAY;aACf,CAAC,CAAC;YAEH,IAAI,OAAO,IAAI,WAAW,EAAE,CAAC;gBACzB,OAAO,WAAW,CAAC,KAAK,CAAC;YAC7B,CAAC;YAED,OAAO,+BAA+B,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACpF,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search_actors.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/search_actors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOlE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAsFpB,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]="c0af625e-fd55-532a-a6a7-10ddba3ab044")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { HelperTools } from '../../const.js';
|
|
5
3
|
import { getWidgetConfig, WIDGET_URIS } from '../../resources/widgets.js';
|
|
@@ -9,10 +7,10 @@ import { buildMCPResponse } from '../../utils/mcp.js';
|
|
|
9
7
|
import { getUserInfoCached } from '../../utils/userid_cache.js';
|
|
10
8
|
import { buildSearchActorsEmptyResponse, buildSearchActorsResult, searchActorsArgsSchema, searchActorsMetadata } from '../core/search_actors_common.js';
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
10
|
+
* Apps mode search-actors tool.
|
|
13
11
|
* Returns widget-formatted actors with interactive widget metadata.
|
|
14
12
|
*/
|
|
15
|
-
export const
|
|
13
|
+
export const appsSearchActors = Object.freeze({
|
|
16
14
|
...searchActorsMetadata,
|
|
17
15
|
call: async (toolArgs) => {
|
|
18
16
|
const { args, apifyToken, apifyClient, userRentedActorIds, apifyMcpServer } = toolArgs;
|
|
@@ -80,7 +78,7 @@ export const openaiSearchActors = Object.freeze({
|
|
|
80
78
|
return buildMCPResponse({
|
|
81
79
|
texts,
|
|
82
80
|
structuredContent,
|
|
83
|
-
// Response-level meta; only returned in
|
|
81
|
+
// Response-level meta; only returned in apps mode (this handler is apps-only)
|
|
84
82
|
_meta: {
|
|
85
83
|
...widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.meta,
|
|
86
84
|
'openai/widgetDescription': `Interactive actor search results showing ${actors.length} actors from Apify Store`,
|
|
@@ -88,5 +86,4 @@ export const openaiSearchActors = Object.freeze({
|
|
|
88
86
|
});
|
|
89
87
|
},
|
|
90
88
|
});
|
|
91
|
-
//# sourceMappingURL=search_actors.js.map
|
|
92
|
-
//# debugId=c0af625e-fd55-532a-a6a7-10ddba3ab044
|
|
89
|
+
//# sourceMappingURL=search_actors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search_actors.js","sourceRoot":"","sources":["../../../src/tools/apps/search_actors.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAExJ;;;GAGG;AACH,MAAM,CAA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K,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;QAElG,MAAM,KAAK,GAAG,CAAC,MAAM,CAAA;;kCAEK,MAAM,CAAC,QAAQ;4CACL,MAAM,CAAC,MAAM;;;;;;;;cAQ3C,aAAa;;;oBAGP,WAAW,CAAC,iBAAiB;;;oBAG7B,WAAW,CAAC,0BAA0B;;;;;;;;SAQjD,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAChE,OAAO,gBAAgB,CAAC;YACpB,KAAK;YACL,iBAAiB;YACjB,8EAA8E;YAC9E,KAAK,EAAE;gBACH,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI;gBACrB,0BAA0B,EAAE,4CAA4C,MAAM,CAAC,MAAM,0BAA0B;aAClH;SACJ,CAAC,CAAC;IACP,CAAC;CACK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search_actors_internal.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/search_actors_internal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AASnF,eAAO,MAAM,wBAAwB,EAAE,SAwDrC,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]="3439a5fd-9ee6-5bd0-bd61-9ab2e3ba00a3")}catch(e){}}();
|
|
3
1
|
import dedent from 'dedent';
|
|
4
2
|
import { z } from 'zod';
|
|
5
3
|
import { HelperTools } from '../../const.js';
|
|
@@ -13,9 +11,9 @@ export const searchActorsInternalTool = Object.freeze({
|
|
|
13
11
|
type: 'internal',
|
|
14
12
|
name: HelperTools.STORE_SEARCH_INTERNAL,
|
|
15
13
|
description: dedent `
|
|
16
|
-
Search Actors internally (
|
|
14
|
+
Search Actors internally (apps mode internal tool).
|
|
17
15
|
|
|
18
|
-
This tool is available because the LLM is operating in
|
|
16
|
+
This tool is available because the LLM is operating in apps mode. Use it for internal lookups
|
|
19
17
|
where data presentation to the user is NOT needed - this tool does NOT render a widget.
|
|
20
18
|
|
|
21
19
|
Use this instead of ${HelperTools.STORE_SEARCH} when you need to find an Actor but the user
|
|
@@ -64,5 +62,4 @@ export const searchActorsInternalTool = Object.freeze({
|
|
|
64
62
|
});
|
|
65
63
|
},
|
|
66
64
|
});
|
|
67
|
-
//# sourceMappingURL=search_actors_internal.js.map
|
|
68
|
-
//# debugId=3439a5fd-9ee6-5bd0-bd61-9ab2e3ba00a3
|
|
65
|
+
//# sourceMappingURL=search_actors_internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search_actors_internal.js","sourceRoot":"","sources":["../../../src/tools/apps/search_actors_internal.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAElF,MAAM,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,wBAAwB,GAAc,MAAM,CAAC,MAAM,CAAC;IAC7D,IAAI,EAA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,MAAM,CAAC,QAAQ,EAAE;gBAC3B,wBAAwB,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,UAAU;aAClE;YACD,iBAAiB,EAAE;gBACf,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,MAAM,CAAC,QAAQ;gBACtB,KAAK,EAAE,aAAa,CAAC,MAAM;aAC9B;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAC,CAAC"}
|
package/dist/tools/build.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]="64945933-ee90-51da-819d-af59d06b55a5")}catch(e){}}();
|
|
3
1
|
import { ACTOR_README_MAX_LENGTH } from '../const.js';
|
|
4
2
|
/**
|
|
5
3
|
* Get Actor input schema by Actor name.
|
|
@@ -89,5 +87,4 @@ function truncateActorReadme(readme, limit = ACTOR_README_MAX_LENGTH) {
|
|
|
89
87
|
const prunedReadme = lines.filter((line) => line.startsWith('#'));
|
|
90
88
|
return `${readmeFirst}\n\nREADME was truncated because it was too long. Remaining headers:\n${prunedReadme.join(', ')}`;
|
|
91
89
|
}
|
|
92
|
-
//# sourceMappingURL=build.js.map
|
|
93
|
-
//# debugId=64945933-ee90-51da-819d-af59d06b55a5
|
|
90
|
+
//# sourceMappingURL=build.js.map
|
package/dist/tools/build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sources":["../../src/tools/build.ts"],"
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/tools/build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAQtD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,aAAqB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AAE,YAAY,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAgC,CAAC,CAAC,CAAC,SAAS;KAC/F,CAAC;AACN,CAAC;AACD;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,MAAc,EAAE,KAAK,GAAG,uBAAuB;IACxE,IAAI,MAAM,CAAC,MAAM,IAAI,KAAK,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,OAAO,GAAG,WAAW,yEAAyE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AAC5H,CAAC"}
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Each tool entry can be:
|
|
12
12
|
* - A plain ToolEntry — mode-independent, always included
|
|
13
|
-
* - A mode map (e.g. { default: ToolEntry,
|
|
14
|
-
* - A partial mode map (e.g. {
|
|
13
|
+
* - A mode map (e.g. { default: ToolEntry, apps: ToolEntry }) — resolver picks entry[mode]
|
|
14
|
+
* - A partial mode map (e.g. { apps: ToolEntry }) — included only for listed modes
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { ToolEntry } from '../types.js';
|
|
17
|
+
import { ServerMode } from '../types.js';
|
|
17
18
|
/**
|
|
18
19
|
* Unified tool category definitions — single source of truth.
|
|
19
20
|
*
|
|
@@ -26,15 +27,15 @@ export declare const toolCategories: {
|
|
|
26
27
|
experimental: ToolEntry[];
|
|
27
28
|
actors: {
|
|
28
29
|
default: ToolEntry;
|
|
29
|
-
|
|
30
|
+
apps: ToolEntry;
|
|
30
31
|
}[];
|
|
31
32
|
ui: {
|
|
32
|
-
|
|
33
|
+
apps: ToolEntry;
|
|
33
34
|
}[];
|
|
34
35
|
docs: ToolEntry[];
|
|
35
36
|
runs: (import("../types.js").HelperTool | import("../types.js").ActorTool | import("../types.js").ActorMcpTool | {
|
|
36
37
|
default: ToolEntry;
|
|
37
|
-
|
|
38
|
+
apps: ToolEntry;
|
|
38
39
|
})[];
|
|
39
40
|
storage: ToolEntry[];
|
|
40
41
|
dev: never[];
|
|
@@ -50,12 +51,11 @@ export type ToolCategoryMap = Record<(typeof CATEGORY_NAMES)[number], ToolEntry[
|
|
|
50
51
|
/**
|
|
51
52
|
* Resolve tool categories for a given server mode.
|
|
52
53
|
*
|
|
53
|
-
* Returns mode-resolved tool variants:
|
|
54
|
+
* Returns mode-resolved tool variants: apps mode gets MCP-Apps-specific implementations
|
|
54
55
|
* (async execution, widget metadata), default mode gets standard implementations.
|
|
55
|
-
*
|
|
56
|
+
* Apps-only tools are excluded in default mode.
|
|
56
57
|
*
|
|
57
|
-
* @param mode -
|
|
58
|
-
* Made explicit (no default value) to prevent accidentally serving wrong-mode tools.
|
|
58
|
+
* @param mode - Optional. Use `'default'` or `'apps'`. Defaults to `ServerMode.DEFAULT` when omitted.
|
|
59
59
|
*/
|
|
60
60
|
export declare function getCategoryTools(mode?: ServerMode): ToolCategoryMap;
|
|
61
61
|
export declare const toolCategoriesEnabledByDefault: (typeof CATEGORY_NAMES)[number][];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA0CzC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAoCoB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAkC,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;AAE7F,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAmC,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAwBnF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,UAA+B,GAAG,eAAe,CAIvF;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAG3E,CAAC"}
|