@keystrokehq/parsera 0.1.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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-scraper.cjs +16 -0
- package/dist/actions/create-scraper.cjs.map +1 -0
- package/dist/actions/create-scraper.d.cts +9 -0
- package/dist/actions/create-scraper.d.cts.map +1 -0
- package/dist/actions/create-scraper.d.mts +9 -0
- package/dist/actions/create-scraper.d.mts.map +1 -0
- package/dist/actions/create-scraper.mjs +13 -0
- package/dist/actions/create-scraper.mjs.map +1 -0
- package/dist/actions/delete-scraper.cjs +16 -0
- package/dist/actions/delete-scraper.cjs.map +1 -0
- package/dist/actions/delete-scraper.d.cts +9 -0
- package/dist/actions/delete-scraper.d.cts.map +1 -0
- package/dist/actions/delete-scraper.d.mts +9 -0
- package/dist/actions/delete-scraper.d.mts.map +1 -0
- package/dist/actions/delete-scraper.mjs +13 -0
- package/dist/actions/delete-scraper.mjs.map +1 -0
- package/dist/actions/extract-data.cjs +23 -0
- package/dist/actions/extract-data.cjs.map +1 -0
- package/dist/actions/extract-data.d.cts +9 -0
- package/dist/actions/extract-data.d.cts.map +1 -0
- package/dist/actions/extract-data.d.mts +9 -0
- package/dist/actions/extract-data.d.mts.map +1 -0
- package/dist/actions/extract-data.mjs +20 -0
- package/dist/actions/extract-data.mjs.map +1 -0
- package/dist/actions/extract-markdown.cjs +27 -0
- package/dist/actions/extract-markdown.cjs.map +1 -0
- package/dist/actions/extract-markdown.d.cts +9 -0
- package/dist/actions/extract-markdown.d.cts.map +1 -0
- package/dist/actions/extract-markdown.d.mts +9 -0
- package/dist/actions/extract-markdown.d.mts.map +1 -0
- package/dist/actions/extract-markdown.mjs +24 -0
- package/dist/actions/extract-markdown.mjs.map +1 -0
- package/dist/actions/get-llm-specs.cjs +48 -0
- package/dist/actions/get-llm-specs.cjs.map +1 -0
- package/dist/actions/get-llm-specs.d.cts +9 -0
- package/dist/actions/get-llm-specs.d.cts.map +1 -0
- package/dist/actions/get-llm-specs.d.mts +9 -0
- package/dist/actions/get-llm-specs.d.mts.map +1 -0
- package/dist/actions/get-llm-specs.mjs +47 -0
- package/dist/actions/get-llm-specs.mjs.map +1 -0
- package/dist/actions/get-proxy-countries.cjs +20 -0
- package/dist/actions/get-proxy-countries.cjs.map +1 -0
- package/dist/actions/get-proxy-countries.d.cts +9 -0
- package/dist/actions/get-proxy-countries.d.cts.map +1 -0
- package/dist/actions/get-proxy-countries.d.mts +9 -0
- package/dist/actions/get-proxy-countries.d.mts.map +1 -0
- package/dist/actions/get-proxy-countries.mjs +19 -0
- package/dist/actions/get-proxy-countries.mjs.map +1 -0
- package/dist/actions/health-check.cjs +16 -0
- package/dist/actions/health-check.cjs.map +1 -0
- package/dist/actions/health-check.d.cts +9 -0
- package/dist/actions/health-check.d.cts.map +1 -0
- package/dist/actions/health-check.d.mts +9 -0
- package/dist/actions/health-check.d.mts.map +1 -0
- package/dist/actions/health-check.mjs +13 -0
- package/dist/actions/health-check.mjs.map +1 -0
- package/dist/actions/index.cjs +27 -0
- package/dist/actions/index.d.cts +14 -0
- package/dist/actions/index.d.mts +14 -0
- package/dist/actions/index.mjs +14 -0
- package/dist/actions/list-agents.cjs +20 -0
- package/dist/actions/list-agents.cjs.map +1 -0
- package/dist/actions/list-agents.d.cts +9 -0
- package/dist/actions/list-agents.d.cts.map +1 -0
- package/dist/actions/list-agents.d.mts +9 -0
- package/dist/actions/list-agents.d.mts.map +1 -0
- package/dist/actions/list-agents.mjs +19 -0
- package/dist/actions/list-agents.mjs.map +1 -0
- package/dist/actions/list-scrapers.cjs +20 -0
- package/dist/actions/list-scrapers.cjs.map +1 -0
- package/dist/actions/list-scrapers.d.cts +9 -0
- package/dist/actions/list-scrapers.d.cts.map +1 -0
- package/dist/actions/list-scrapers.d.mts +9 -0
- package/dist/actions/list-scrapers.d.mts.map +1 -0
- package/dist/actions/list-scrapers.mjs +19 -0
- package/dist/actions/list-scrapers.mjs.map +1 -0
- package/dist/actions/parse-content2.cjs +39 -0
- package/dist/actions/parse-content2.cjs.map +1 -0
- package/dist/actions/parse-content2.d.cts +9 -0
- package/dist/actions/parse-content2.d.cts.map +1 -0
- package/dist/actions/parse-content2.d.mts +9 -0
- package/dist/actions/parse-content2.d.mts.map +1 -0
- package/dist/actions/parse-content2.mjs +36 -0
- package/dist/actions/parse-content2.mjs.map +1 -0
- package/dist/actions/remove-agent.cjs +19 -0
- package/dist/actions/remove-agent.cjs.map +1 -0
- package/dist/actions/remove-agent.d.cts +9 -0
- package/dist/actions/remove-agent.d.cts.map +1 -0
- package/dist/actions/remove-agent.d.mts +9 -0
- package/dist/actions/remove-agent.d.mts.map +1 -0
- package/dist/actions/remove-agent.mjs +16 -0
- package/dist/actions/remove-agent.mjs.map +1 -0
- package/dist/actions/run-scraper-template.cjs +25 -0
- package/dist/actions/run-scraper-template.cjs.map +1 -0
- package/dist/actions/run-scraper-template.d.cts +9 -0
- package/dist/actions/run-scraper-template.d.cts.map +1 -0
- package/dist/actions/run-scraper-template.d.mts +9 -0
- package/dist/actions/run-scraper-template.d.mts.map +1 -0
- package/dist/actions/run-scraper-template.mjs +22 -0
- package/dist/actions/run-scraper-template.mjs.map +1 -0
- package/dist/actions/scrape-with-agent.cjs +21 -0
- package/dist/actions/scrape-with-agent.cjs.map +1 -0
- package/dist/actions/scrape-with-agent.d.cts +9 -0
- package/dist/actions/scrape-with-agent.d.cts.map +1 -0
- package/dist/actions/scrape-with-agent.d.mts +9 -0
- package/dist/actions/scrape-with-agent.d.mts.map +1 -0
- package/dist/actions/scrape-with-agent.mjs +18 -0
- package/dist/actions/scrape-with-agent.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +17 -0
- package/package.json +49 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/run-scraper-template.ts
|
|
4
|
+
const ParseraRunScraperTemplateInput = zod.z.object({
|
|
5
|
+
url: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).optional(),
|
|
6
|
+
cookies: zod.z.array(zod.z.object({
|
|
7
|
+
name: zod.z.string().describe("Cookie name."),
|
|
8
|
+
value: zod.z.string().describe("Cookie value."),
|
|
9
|
+
domain: zod.z.string().describe("Domain for which the cookie is valid.")
|
|
10
|
+
}).describe("Represents a browser cookie to include with the request.")).describe("Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.").optional(),
|
|
11
|
+
template_id: zod.z.string().describe("Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions."),
|
|
12
|
+
proxy_country: zod.z.string().describe("Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.").optional()
|
|
13
|
+
});
|
|
14
|
+
const ParseraRunScraperTemplateOutput = zod.z.unknown();
|
|
15
|
+
const parseraRunScraperTemplate = require_action.action("PARSERA_RUN_SCRAPER_TEMPLATE", {
|
|
16
|
+
slug: "parsera-run-scraper-template",
|
|
17
|
+
name: "Run Scraper Template",
|
|
18
|
+
description: "Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.",
|
|
19
|
+
input: ParseraRunScraperTemplateInput,
|
|
20
|
+
output: ParseraRunScraperTemplateOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.parseraRunScraperTemplate = parseraRunScraperTemplate;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=run-scraper-template.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-scraper-template.cjs","names":["z","action"],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRunScraperTemplateInput: z.ZodTypeAny = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraRunScraperTemplate = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACzD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACjM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;CAC3M,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;AAC9N,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,QAAQ;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-scraper-template.d.ts
|
|
4
|
+
declare const ParseraRunScraperTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraRunScraperTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraRunScraperTemplate };
|
|
9
|
+
//# sourceMappingURL=run-scraper-template.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-scraper-template.d.cts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAS7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-scraper-template.d.ts
|
|
4
|
+
declare const ParseraRunScraperTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraRunScraperTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraRunScraperTemplate };
|
|
9
|
+
//# sourceMappingURL=run-scraper-template.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-scraper-template.d.mts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAS7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraRunScraperTemplate = action("PARSERA_RUN_SCRAPER_TEMPLATE", {
|
|
4
|
+
slug: "parsera-run-scraper-template",
|
|
5
|
+
name: "Run Scraper Template",
|
|
6
|
+
description: "Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.union([z.string(), z.array(z.string())]).optional(),
|
|
9
|
+
cookies: z.array(z.object({
|
|
10
|
+
name: z.string().describe("Cookie name."),
|
|
11
|
+
value: z.string().describe("Cookie value."),
|
|
12
|
+
domain: z.string().describe("Domain for which the cookie is valid.")
|
|
13
|
+
}).describe("Represents a browser cookie to include with the request.")).describe("Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.").optional(),
|
|
14
|
+
template_id: z.string().describe("Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions."),
|
|
15
|
+
proxy_country: z.string().describe("Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.").optional()
|
|
16
|
+
}),
|
|
17
|
+
output: z.unknown()
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { parseraRunScraperTemplate };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=run-scraper-template.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-scraper-template.mjs","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRunScraperTemplateInput: z.ZodTypeAny = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraRunScraperTemplate = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":";;AAgBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0D,EAAE,OAAO;EACnE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;GACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;GAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACjM,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;EAC3M,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,CAOS;CACP,QAP2D,EAAE,QAOrD;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/scrape-with-agent.ts
|
|
4
|
+
const ParseraScrapeWithAgentInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("The webpage URL where data extraction will occur."),
|
|
6
|
+
name: zod.z.string().describe("Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase')."),
|
|
7
|
+
cookies: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.").optional(),
|
|
8
|
+
proxy_country: zod.z.string().describe("Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.").optional()
|
|
9
|
+
}).describe("Request model for POST /v1/scrape endpoint.");
|
|
10
|
+
const ParseraScrapeWithAgentOutput = zod.z.unknown();
|
|
11
|
+
const parseraScrapeWithAgent = require_action.action("PARSERA_SCRAPE_WITH_AGENT", {
|
|
12
|
+
slug: "parsera-scrape-with-agent",
|
|
13
|
+
name: "Scrape With Agent",
|
|
14
|
+
description: "Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.",
|
|
15
|
+
input: ParseraScrapeWithAgentInput,
|
|
16
|
+
output: ParseraScrapeWithAgentOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.parseraScrapeWithAgent = parseraScrapeWithAgent;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=scrape-with-agent.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.cjs","names":["z","action"],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CAClK,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC/L,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,QAAQ;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/scrape-with-agent.d.ts
|
|
4
|
+
declare const ParseraScrapeWithAgentInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraScrapeWithAgentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraScrapeWithAgent };
|
|
9
|
+
//# sourceMappingURL=scrape-with-agent.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAAwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/scrape-with-agent.d.ts
|
|
4
|
+
declare const ParseraScrapeWithAgentInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraScrapeWithAgentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraScrapeWithAgent };
|
|
9
|
+
//# sourceMappingURL=scrape-with-agent.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAAwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraScrapeWithAgent = action("PARSERA_SCRAPE_WITH_AGENT", {
|
|
4
|
+
slug: "parsera-scrape-with-agent",
|
|
5
|
+
name: "Scrape With Agent",
|
|
6
|
+
description: "Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.string().describe("The webpage URL where data extraction will occur."),
|
|
9
|
+
name: z.string().describe("Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase')."),
|
|
10
|
+
cookies: z.array(z.record(z.string(), z.unknown())).describe("Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.").optional(),
|
|
11
|
+
proxy_country: z.string().describe("Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.").optional()
|
|
12
|
+
}).describe("Request model for POST /v1/scrape endpoint."),
|
|
13
|
+
output: z.unknown()
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { parseraScrapeWithAgent };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=scrape-with-agent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.mjs","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EAClK,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC/L,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACzJ,CAAC,CAAC,CAAC,SAAS,6CAOH;CACP,QAPwD,EAAE,QAOlD;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const parseraCatalog = {
|
|
4
|
+
"slug": "parsera",
|
|
5
|
+
"name": "Parsera",
|
|
6
|
+
"description": "Parsera is a lightweight Python library for scraping websites using large language models (LLMs).",
|
|
7
|
+
"category": "AI Web Scraping",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/parsera",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.parseraCatalog = parseraCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parseraCatalog = {\n \"slug\": \"parsera\",\n \"name\": \"Parsera\",\n \"description\": \"Parsera is a lightweight Python library for scraping websites using large language models (LLMs).\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsera\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const parseraCatalog: {
|
|
4
|
+
readonly slug: "parsera";
|
|
5
|
+
readonly name: "Parsera";
|
|
6
|
+
readonly description: "Parsera is a lightweight Python library for scraping websites using large language models (LLMs).";
|
|
7
|
+
readonly category: "AI Web Scraping";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/parsera";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { parseraCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const parseraCatalog: {
|
|
4
|
+
readonly slug: "parsera";
|
|
5
|
+
readonly name: "Parsera";
|
|
6
|
+
readonly description: "Parsera is a lightweight Python library for scraping websites using large language models (LLMs).";
|
|
7
|
+
readonly category: "AI Web Scraping";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/parsera";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { parseraCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const parseraCatalog = {
|
|
4
|
+
"slug": "parsera",
|
|
5
|
+
"name": "Parsera",
|
|
6
|
+
"description": "Parsera is a lightweight Python library for scraping websites using large language models (LLMs).",
|
|
7
|
+
"category": "AI Web Scraping",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/parsera",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { parseraCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parseraCatalog = {\n \"slug\": \"parsera\",\n \"name\": \"Parsera\",\n \"description\": \"Parsera is a lightweight Python library for scraping websites using large language models (LLMs).\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsera\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "parsera";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeParseraTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeParseraTool = executeParseraTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"parsera\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeParseraTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "parsera";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeParseraTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeParseraTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"parsera\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeParseraTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_create_scraper = require("./actions/create-scraper.cjs");
|
|
5
|
+
const require_delete_scraper = require("./actions/delete-scraper.cjs");
|
|
6
|
+
const require_extract_data = require("./actions/extract-data.cjs");
|
|
7
|
+
const require_extract_markdown = require("./actions/extract-markdown.cjs");
|
|
8
|
+
const require_get_llm_specs = require("./actions/get-llm-specs.cjs");
|
|
9
|
+
const require_get_proxy_countries = require("./actions/get-proxy-countries.cjs");
|
|
10
|
+
const require_health_check = require("./actions/health-check.cjs");
|
|
11
|
+
const require_list_agents = require("./actions/list-agents.cjs");
|
|
12
|
+
const require_list_scrapers = require("./actions/list-scrapers.cjs");
|
|
13
|
+
const require_parse_content2 = require("./actions/parse-content2.cjs");
|
|
14
|
+
const require_remove_agent = require("./actions/remove-agent.cjs");
|
|
15
|
+
const require_run_scraper_template = require("./actions/run-scraper-template.cjs");
|
|
16
|
+
const require_scrape_with_agent = require("./actions/scrape-with-agent.cjs");
|
|
17
|
+
require("./actions/index.cjs");
|
|
18
|
+
exports.parsera = require_app.parsera;
|
|
19
|
+
exports.parseraCatalog = require_catalog.parseraCatalog;
|
|
20
|
+
exports.parseraCreateScraper = require_create_scraper.parseraCreateScraper;
|
|
21
|
+
exports.parseraDeleteScraper = require_delete_scraper.parseraDeleteScraper;
|
|
22
|
+
exports.parseraExtractData = require_extract_data.parseraExtractData;
|
|
23
|
+
exports.parseraExtractMarkdown = require_extract_markdown.parseraExtractMarkdown;
|
|
24
|
+
exports.parseraGetLlmSpecs = require_get_llm_specs.parseraGetLlmSpecs;
|
|
25
|
+
exports.parseraGetProxyCountries = require_get_proxy_countries.parseraGetProxyCountries;
|
|
26
|
+
exports.parseraHealthCheck = require_health_check.parseraHealthCheck;
|
|
27
|
+
exports.parseraListAgents = require_list_agents.parseraListAgents;
|
|
28
|
+
exports.parseraListScrapers = require_list_scrapers.parseraListScrapers;
|
|
29
|
+
exports.parseraParseContent2 = require_parse_content2.parseraParseContent2;
|
|
30
|
+
exports.parseraRemoveAgent = require_remove_agent.parseraRemoveAgent;
|
|
31
|
+
exports.parseraRunScraperTemplate = require_run_scraper_template.parseraRunScraperTemplate;
|
|
32
|
+
exports.parseraScrapeWithAgent = require_scrape_with_agent.parseraScrapeWithAgent;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { parseraCreateScraper } from "./actions/create-scraper.cjs";
|
|
2
|
+
import { parseraDeleteScraper } from "./actions/delete-scraper.cjs";
|
|
3
|
+
import { parseraExtractData } from "./actions/extract-data.cjs";
|
|
4
|
+
import { parseraExtractMarkdown } from "./actions/extract-markdown.cjs";
|
|
5
|
+
import { parseraGetLlmSpecs } from "./actions/get-llm-specs.cjs";
|
|
6
|
+
import { parseraGetProxyCountries } from "./actions/get-proxy-countries.cjs";
|
|
7
|
+
import { parseraHealthCheck } from "./actions/health-check.cjs";
|
|
8
|
+
import { parseraListAgents } from "./actions/list-agents.cjs";
|
|
9
|
+
import { parseraListScrapers } from "./actions/list-scrapers.cjs";
|
|
10
|
+
import { parseraParseContent2 } from "./actions/parse-content2.cjs";
|
|
11
|
+
import { parseraRemoveAgent } from "./actions/remove-agent.cjs";
|
|
12
|
+
import { parseraRunScraperTemplate } from "./actions/run-scraper-template.cjs";
|
|
13
|
+
import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.cjs";
|
|
14
|
+
import { parsera } from "./app.cjs";
|
|
15
|
+
import { parseraCatalog } from "./catalog.cjs";
|
|
16
|
+
export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { parseraCreateScraper } from "./actions/create-scraper.mjs";
|
|
2
|
+
import { parseraDeleteScraper } from "./actions/delete-scraper.mjs";
|
|
3
|
+
import { parseraExtractData } from "./actions/extract-data.mjs";
|
|
4
|
+
import { parseraExtractMarkdown } from "./actions/extract-markdown.mjs";
|
|
5
|
+
import { parseraGetLlmSpecs } from "./actions/get-llm-specs.mjs";
|
|
6
|
+
import { parseraGetProxyCountries } from "./actions/get-proxy-countries.mjs";
|
|
7
|
+
import { parseraHealthCheck } from "./actions/health-check.mjs";
|
|
8
|
+
import { parseraListAgents } from "./actions/list-agents.mjs";
|
|
9
|
+
import { parseraListScrapers } from "./actions/list-scrapers.mjs";
|
|
10
|
+
import { parseraParseContent2 } from "./actions/parse-content2.mjs";
|
|
11
|
+
import { parseraRemoveAgent } from "./actions/remove-agent.mjs";
|
|
12
|
+
import { parseraRunScraperTemplate } from "./actions/run-scraper-template.mjs";
|
|
13
|
+
import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.mjs";
|
|
14
|
+
import { parsera } from "./app.mjs";
|
|
15
|
+
import { parseraCatalog } from "./catalog.mjs";
|
|
16
|
+
export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { parsera } from "./app.mjs";
|
|
2
|
+
import { parseraCatalog } from "./catalog.mjs";
|
|
3
|
+
import { parseraCreateScraper } from "./actions/create-scraper.mjs";
|
|
4
|
+
import { parseraDeleteScraper } from "./actions/delete-scraper.mjs";
|
|
5
|
+
import { parseraExtractData } from "./actions/extract-data.mjs";
|
|
6
|
+
import { parseraExtractMarkdown } from "./actions/extract-markdown.mjs";
|
|
7
|
+
import { parseraGetLlmSpecs } from "./actions/get-llm-specs.mjs";
|
|
8
|
+
import { parseraGetProxyCountries } from "./actions/get-proxy-countries.mjs";
|
|
9
|
+
import { parseraHealthCheck } from "./actions/health-check.mjs";
|
|
10
|
+
import { parseraListAgents } from "./actions/list-agents.mjs";
|
|
11
|
+
import { parseraListScrapers } from "./actions/list-scrapers.mjs";
|
|
12
|
+
import { parseraParseContent2 } from "./actions/parse-content2.mjs";
|
|
13
|
+
import { parseraRemoveAgent } from "./actions/remove-agent.mjs";
|
|
14
|
+
import { parseraRunScraperTemplate } from "./actions/run-scraper-template.mjs";
|
|
15
|
+
import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.mjs";
|
|
16
|
+
import "./actions/index.mjs";
|
|
17
|
+
export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/parsera",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/parsera"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|