Skip to content

Commit 0a836c9

Browse files
committed
move defaults from actors/ to consts in src/
1 parent d8e7294 commit 0a836c9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/actor/const.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
*/
44
export const HEADER_READINESS_PROBE = 'x-apify-container-server-readiness-probe';
55

6-
export const defaults = {
7-
actors: [
8-
'apify/instagram-scraper',
9-
'apify/rag-web-browser',
10-
'lukaskrivka/google-maps-with-contact-details',
11-
],
12-
enableActorAutoLoading: false,
13-
maxMemoryMbytes: 4096,
14-
};
15-
166
export enum Routes {
177
ROOT = '/',
188
SSE = '/sse',

src/const.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,13 @@ export enum HelperTools {
2727
REMOVE_TOOL = 'remove-tool',
2828
GET_TOOL_DETAILS = 'get-tool-details',
2929
}
30+
31+
export const defaults = {
32+
actors: [
33+
'apify/instagram-scraper',
34+
'apify/rag-web-browser',
35+
'lukaskrivka/google-maps-with-contact-details',
36+
],
37+
enableActorAutoLoading: false,
38+
maxMemoryMbytes: 4096,
39+
};

src/mcp-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from './const.js';
1818
import { actorDefinitionTool, callActorGetDataset, getActorsAsTools, searchTool } from './tools/index.js';
1919
import type { ActorTool, HelperTool, ToolWrap } from './types.js';
20-
import { defaults } from './actor/const.js';
20+
import { defaults } from './const.js';
2121
import { actorNameToToolName } from './tools/utils.js';
2222
import { processParamsGetTools } from './actor/utils.js';
2323

src/stdio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import minimist from 'minimist';
1717

1818
import log from '@apify/log';
1919

20-
import { defaults } from './actor/const.js';
20+
import { defaults } from './const.js';
2121
import { ActorsMcpServer } from './mcp-server.js';
2222
import { addTool, removeTool, getActorsAsTools } from './tools/index.js';
2323

0 commit comments

Comments
 (0)