Skip to content

Commit 04e6a17

Browse files
committed
feat: Remove old code used for Actor
1 parent fbf9f11 commit 04e6a17

File tree

10 files changed

+58
-1373
lines changed

10 files changed

+58
-1373
lines changed

package-lock.json

Lines changed: 55 additions & 1221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@
4848
"@types/turndown": "^5.0.5",
4949
"ajv": "^8.17.1",
5050
"algoliasearch": "^5.31.0",
51-
"apify": "^3.4.2",
5251
"apify-client": "^2.12.6",
5352
"cheerio": "^1.1.2",
5453
"dotenv": "^16.4.7",
55-
"express": "^4.21.2",
5654
"mcp-client-capabilities": "^0.0.5",
5755
"to-json-schema": "^0.2.5",
5856
"turndown": "^7.2.0",
@@ -66,7 +64,6 @@
6664
"@apify/tsconfig": "^0.1.0",
6765
"@arizeai/phoenix-client": "^4.2.0",
6866
"@arizeai/phoenix-evals": "^0.2.2",
69-
"@types/express": "^4.0.0",
7067
"@types/to-json-schema": "^0.2.4",
7168
"@types/yargs": "^17.0.33",
7269
"@types/yargs-parser": "^21.0.3",
@@ -79,10 +76,6 @@
7976
"vitest": "^3.0.8"
8077
},
8178
"scripts": {
82-
"start": "npm run start:dev",
83-
"start:prod": "node dist/main.js",
84-
"start:dev": "tsx src/main.ts",
85-
"start:standby": "APIFY_META_ORIGIN=STANDBY npm run start",
8679
"lint": "eslint .",
8780
"lint:fix": "eslint . --fix",
8881
"build": "tsc -b src",

src/actor/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/actor/const.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/actor/types.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/actor/utils.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/apify-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ApifyClientOptions } from 'apify';
1+
import type { ApifyClientOptions } from 'apify-client';
22
import { ApifyClient as _ApifyClient } from 'apify-client';
33
import type { AxiosRequestConfig } from 'axios';
44

src/main.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/utils/actor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function getActorDefinitionStorageFieldNames(storage: ActorDefinitionStor
7575
* Ensures the Actor output items are within the character limit.
7676
*
7777
* First checks if all items fit into the limit, then tries only the important fields and as a last resort
78-
* starts removing items until within the limit. In worst scenario return empty array.
78+
* starts removing items until within the limit. In the worst scenario return empty array.
7979
*
8080
* This is primarily used to ensure the tool output does not exceed the LLM context length or tool output limit.
8181
*/

src/utils/tools-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55

66
import type { ValidateFunction } from 'ajv';
7-
import type { ApifyClient } from 'apify';
87

98
import log from '@apify/log';
109

10+
import type { ApifyClient } from '../apify-client.js';
1111
import { defaults, HelperTools } from '../const.js';
1212
import { callActor } from '../tools/actor.js';
1313
import { getActorOutput } from '../tools/get-actor-output.js';

0 commit comments

Comments
 (0)