@keystrokehq/textrazor 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/account-info.cjs +22 -0
- package/dist/actions/account-info.cjs.map +1 -0
- package/dist/actions/account-info.d.cts +9 -0
- package/dist/actions/account-info.d.cts.map +1 -0
- package/dist/actions/account-info.d.mts +9 -0
- package/dist/actions/account-info.d.mts.map +1 -0
- package/dist/actions/account-info.mjs +19 -0
- package/dist/actions/account-info.mjs.map +1 -0
- package/dist/actions/classify-text.cjs +39 -0
- package/dist/actions/classify-text.cjs.map +1 -0
- package/dist/actions/classify-text.d.cts +9 -0
- package/dist/actions/classify-text.d.cts.map +1 -0
- package/dist/actions/classify-text.d.mts +9 -0
- package/dist/actions/classify-text.d.mts.map +1 -0
- package/dist/actions/classify-text.mjs +38 -0
- package/dist/actions/classify-text.mjs.map +1 -0
- package/dist/actions/custom-classifier-manager.cjs +46 -0
- package/dist/actions/custom-classifier-manager.cjs.map +1 -0
- package/dist/actions/custom-classifier-manager.d.cts +9 -0
- package/dist/actions/custom-classifier-manager.d.cts.map +1 -0
- package/dist/actions/custom-classifier-manager.d.mts +9 -0
- package/dist/actions/custom-classifier-manager.d.mts.map +1 -0
- package/dist/actions/custom-classifier-manager.mjs +45 -0
- package/dist/actions/custom-classifier-manager.mjs.map +1 -0
- package/dist/actions/dictionary-manager.cjs +36 -0
- package/dist/actions/dictionary-manager.cjs.map +1 -0
- package/dist/actions/dictionary-manager.d.cts +9 -0
- package/dist/actions/dictionary-manager.d.cts.map +1 -0
- package/dist/actions/dictionary-manager.d.mts +9 -0
- package/dist/actions/dictionary-manager.d.mts.map +1 -0
- package/dist/actions/dictionary-manager.mjs +33 -0
- package/dist/actions/dictionary-manager.mjs.map +1 -0
- package/dist/actions/extract-entities.cjs +46 -0
- package/dist/actions/extract-entities.cjs.map +1 -0
- package/dist/actions/extract-entities.d.cts +9 -0
- package/dist/actions/extract-entities.d.cts.map +1 -0
- package/dist/actions/extract-entities.d.mts +9 -0
- package/dist/actions/extract-entities.d.mts.map +1 -0
- package/dist/actions/extract-entities.mjs +45 -0
- package/dist/actions/extract-entities.mjs.map +1 -0
- package/dist/actions/index.cjs +13 -0
- package/dist/actions/index.d.cts +7 -0
- package/dist/actions/index.d.mts +7 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/text-razor-analyze-content.cjs +78 -0
- package/dist/actions/text-razor-analyze-content.cjs.map +1 -0
- package/dist/actions/text-razor-analyze-content.d.cts +9 -0
- package/dist/actions/text-razor-analyze-content.d.cts.map +1 -0
- package/dist/actions/text-razor-analyze-content.d.mts +9 -0
- package/dist/actions/text-razor-analyze-content.d.mts.map +1 -0
- package/dist/actions/text-razor-analyze-content.mjs +77 -0
- package/dist/actions/text-razor-analyze-content.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 +18 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +10 -0
- package/package.json +49 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/extract-entities.ts
|
|
4
|
+
const TextrazorExtractEntitiesInput = zod.z.object({
|
|
5
|
+
text: zod.z.string().describe("The text to analyze for entity extraction (max 200kb)"),
|
|
6
|
+
cleanup_mode: zod.z.string().default("raw").describe("Controls preprocessing cleanup mode").optional(),
|
|
7
|
+
language_override: zod.z.string().describe("ISO-639-2 language code to force analysis in a specific language").optional(),
|
|
8
|
+
entities_allow_overlap: zod.z.boolean().default(true).describe("When True, entities in response may overlap").optional(),
|
|
9
|
+
entities_filter_dbpedia_types: zod.z.array(zod.z.string()).describe("List of DBPedia types to filter entities").optional(),
|
|
10
|
+
entities_filter_freebase_types: zod.z.array(zod.z.string()).describe("List of Freebase types to filter entities").optional()
|
|
11
|
+
}).describe("Request model for entity extraction.");
|
|
12
|
+
const TextrazorExtractEntities_EntitySchema = zod.z.object({
|
|
13
|
+
type: zod.z.array(zod.z.string()).describe("List of DBpedia types for this entity").nullable().optional(),
|
|
14
|
+
entityId: zod.z.string().describe("The disambiguated Wikipedia ID for this entity").nullable().optional(),
|
|
15
|
+
wikiLink: zod.z.string().describe("Link to Wikipedia page for this entity").nullable().optional(),
|
|
16
|
+
wikidataId: zod.z.string().describe("The Wikidata QID for this entity if available").nullable().optional(),
|
|
17
|
+
matchedText: zod.z.string().describe("The original text that matched this entity"),
|
|
18
|
+
freebaseTypes: zod.z.array(zod.z.string()).describe("List of Freebase types for this entity").nullable().optional(),
|
|
19
|
+
matchingTokens: zod.z.array(zod.z.number().int()).describe("Token positions in the text").nullable().optional(),
|
|
20
|
+
relevanceScore: zod.z.number().describe("Relevance score for this entity (0 to 1)"),
|
|
21
|
+
confidenceScore: zod.z.number().describe("Confidence score for this entity (typically 0.5 to 10)"),
|
|
22
|
+
entityEnglishId: zod.z.string().describe("The English Wikipedia ID where available").nullable().optional()
|
|
23
|
+
}).describe("Model representing a named entity extracted from text.");
|
|
24
|
+
const TextrazorExtractEntities_ResponseDataSchema = zod.z.object({
|
|
25
|
+
entities: zod.z.array(TextrazorExtractEntities_EntitySchema).describe("List of extracted entities with disambiguation and metadata").nullable().optional(),
|
|
26
|
+
language: zod.z.string().describe("Detected ISO-639-2 language code of the analyzed text").nullable().optional(),
|
|
27
|
+
languageIsReliable: zod.z.boolean().describe("Whether the language detection is reliable").nullable().optional()
|
|
28
|
+
}).describe("The analysis response data structure.");
|
|
29
|
+
const TextrazorExtractEntitiesOutput = zod.z.object({
|
|
30
|
+
ok: zod.z.boolean().describe("True if TextRazor successfully analyzed the document"),
|
|
31
|
+
time: zod.z.number().describe("Total time in seconds TextRazor took to process this request"),
|
|
32
|
+
error: zod.z.string().describe("Error message if any problems occurred during analysis").nullable().optional(),
|
|
33
|
+
message: zod.z.string().describe("Any warning or informational messages").nullable().optional(),
|
|
34
|
+
response: TextrazorExtractEntities_ResponseDataSchema.nullable()
|
|
35
|
+
}).describe("Response model for entity extraction.");
|
|
36
|
+
const textrazorExtractEntities = require_action.action("TEXTRAZOR_EXTRACT_ENTITIES", {
|
|
37
|
+
slug: "textrazor-extract-entities",
|
|
38
|
+
name: "Extract Named Entities from Text",
|
|
39
|
+
description: "Extract named entities (people, places, companies, etc.) from text using TextRazor's entity extraction API. The tool will identify and classify named entities within the provided text, returning detailed information about each entity including its type, confidence score, and relevance score. The API returns many entities by default; filter by `relevanceScore` and `confidenceScore` thresholds to retain only meaningful results.",
|
|
40
|
+
input: TextrazorExtractEntitiesInput,
|
|
41
|
+
output: TextrazorExtractEntitiesOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.textrazorExtractEntities = textrazorExtractEntities;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=extract-entities.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-entities.cjs","names":["z","action"],"sources":["../../src/actions/extract-entities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextrazorExtractEntitiesInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text to analyze for entity extraction (max 200kb)\"),\n cleanup_mode: z.string().default(\"raw\").describe(\"Controls preprocessing cleanup mode\").optional(),\n language_override: z.string().describe(\"ISO-639-2 language code to force analysis in a specific language\").optional(),\n entities_allow_overlap: z.boolean().default(true).describe(\"When True, entities in response may overlap\").optional(),\n entities_filter_dbpedia_types: z.array(z.string()).describe(\"List of DBPedia types to filter entities\").optional(),\n entities_filter_freebase_types: z.array(z.string()).describe(\"List of Freebase types to filter entities\").optional(),\n}).describe(\"Request model for entity extraction.\");\nconst TextrazorExtractEntities_EntitySchema: z.ZodTypeAny = z.object({\n type: z.array(z.string()).describe(\"List of DBpedia types for this entity\").nullable().optional(),\n entityId: z.string().describe(\"The disambiguated Wikipedia ID for this entity\").nullable().optional(),\n wikiLink: z.string().describe(\"Link to Wikipedia page for this entity\").nullable().optional(),\n wikidataId: z.string().describe(\"The Wikidata QID for this entity if available\").nullable().optional(),\n matchedText: z.string().describe(\"The original text that matched this entity\"),\n freebaseTypes: z.array(z.string()).describe(\"List of Freebase types for this entity\").nullable().optional(),\n matchingTokens: z.array(z.number().int()).describe(\"Token positions in the text\").nullable().optional(),\n relevanceScore: z.number().describe(\"Relevance score for this entity (0 to 1)\"),\n confidenceScore: z.number().describe(\"Confidence score for this entity (typically 0.5 to 10)\"),\n entityEnglishId: z.string().describe(\"The English Wikipedia ID where available\").nullable().optional(),\n}).describe(\"Model representing a named entity extracted from text.\");\nconst TextrazorExtractEntities_ResponseDataSchema: z.ZodTypeAny = z.object({\n entities: z.array(TextrazorExtractEntities_EntitySchema).describe(\"List of extracted entities with disambiguation and metadata\").nullable().optional(),\n language: z.string().describe(\"Detected ISO-639-2 language code of the analyzed text\").nullable().optional(),\n languageIsReliable: z.boolean().describe(\"Whether the language detection is reliable\").nullable().optional(),\n}).describe(\"The analysis response data structure.\");\nexport const TextrazorExtractEntitiesOutput: z.ZodTypeAny = z.object({\n ok: z.boolean().describe(\"True if TextRazor successfully analyzed the document\"),\n time: z.number().describe(\"Total time in seconds TextRazor took to process this request\"),\n error: z.string().describe(\"Error message if any problems occurred during analysis\").nullable().optional(),\n message: z.string().describe(\"Any warning or informational messages\").nullable().optional(),\n response: TextrazorExtractEntities_ResponseDataSchema.nullable(),\n}).describe(\"Response model for entity extraction.\");\n\nexport const textrazorExtractEntities = action(\"TEXTRAZOR_EXTRACT_ENTITIES\", {\n slug: \"textrazor-extract-entities\",\n name: \"Extract Named Entities from Text\",\n description: \"Extract named entities (people, places, companies, etc.) from text using TextRazor's entity extraction API. The tool will identify and classify named entities within the provided text, returning detailed information about each entity including its type, confidence score, and relevance score. The API returns many entities by default; filter by `relevanceScore` and `confidenceScore` thresholds to retain only meaningful results.\",\n input: TextrazorExtractEntitiesInput,\n output: TextrazorExtractEntitiesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACpH,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnH,+BAA+BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjH,gCAAgCA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,M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G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,UAAU,4CAA4C,SAAS;AACjE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,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/extract-entities.d.ts
|
|
4
|
+
declare const TextrazorExtractEntitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextrazorExtractEntitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textrazorExtractEntities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textrazorExtractEntities };
|
|
9
|
+
//# sourceMappingURL=extract-entities.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-entities.d.cts","names":[],"sources":["../../src/actions/extract-entities.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAOK;AAAA,cAkBtC,8BAAA,EAAgC,CAAA,CAAE,UAMK;AAAA,cAEvC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-entities.d.ts
|
|
4
|
+
declare const TextrazorExtractEntitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextrazorExtractEntitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textrazorExtractEntities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textrazorExtractEntities };
|
|
9
|
+
//# sourceMappingURL=extract-entities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-entities.d.mts","names":[],"sources":["../../src/actions/extract-entities.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAOK;AAAA,cAkBtC,8BAAA,EAAgC,CAAA,CAAE,UAMK;AAAA,cAEvC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/extract-entities.ts
|
|
4
|
+
const TextrazorExtractEntitiesInput = z.object({
|
|
5
|
+
text: z.string().describe("The text to analyze for entity extraction (max 200kb)"),
|
|
6
|
+
cleanup_mode: z.string().default("raw").describe("Controls preprocessing cleanup mode").optional(),
|
|
7
|
+
language_override: z.string().describe("ISO-639-2 language code to force analysis in a specific language").optional(),
|
|
8
|
+
entities_allow_overlap: z.boolean().default(true).describe("When True, entities in response may overlap").optional(),
|
|
9
|
+
entities_filter_dbpedia_types: z.array(z.string()).describe("List of DBPedia types to filter entities").optional(),
|
|
10
|
+
entities_filter_freebase_types: z.array(z.string()).describe("List of Freebase types to filter entities").optional()
|
|
11
|
+
}).describe("Request model for entity extraction.");
|
|
12
|
+
const TextrazorExtractEntities_EntitySchema = z.object({
|
|
13
|
+
type: z.array(z.string()).describe("List of DBpedia types for this entity").nullable().optional(),
|
|
14
|
+
entityId: z.string().describe("The disambiguated Wikipedia ID for this entity").nullable().optional(),
|
|
15
|
+
wikiLink: z.string().describe("Link to Wikipedia page for this entity").nullable().optional(),
|
|
16
|
+
wikidataId: z.string().describe("The Wikidata QID for this entity if available").nullable().optional(),
|
|
17
|
+
matchedText: z.string().describe("The original text that matched this entity"),
|
|
18
|
+
freebaseTypes: z.array(z.string()).describe("List of Freebase types for this entity").nullable().optional(),
|
|
19
|
+
matchingTokens: z.array(z.number().int()).describe("Token positions in the text").nullable().optional(),
|
|
20
|
+
relevanceScore: z.number().describe("Relevance score for this entity (0 to 1)"),
|
|
21
|
+
confidenceScore: z.number().describe("Confidence score for this entity (typically 0.5 to 10)"),
|
|
22
|
+
entityEnglishId: z.string().describe("The English Wikipedia ID where available").nullable().optional()
|
|
23
|
+
}).describe("Model representing a named entity extracted from text.");
|
|
24
|
+
const TextrazorExtractEntities_ResponseDataSchema = z.object({
|
|
25
|
+
entities: z.array(TextrazorExtractEntities_EntitySchema).describe("List of extracted entities with disambiguation and metadata").nullable().optional(),
|
|
26
|
+
language: z.string().describe("Detected ISO-639-2 language code of the analyzed text").nullable().optional(),
|
|
27
|
+
languageIsReliable: z.boolean().describe("Whether the language detection is reliable").nullable().optional()
|
|
28
|
+
}).describe("The analysis response data structure.");
|
|
29
|
+
const textrazorExtractEntities = action("TEXTRAZOR_EXTRACT_ENTITIES", {
|
|
30
|
+
slug: "textrazor-extract-entities",
|
|
31
|
+
name: "Extract Named Entities from Text",
|
|
32
|
+
description: "Extract named entities (people, places, companies, etc.) from text using TextRazor's entity extraction API. The tool will identify and classify named entities within the provided text, returning detailed information about each entity including its type, confidence score, and relevance score. The API returns many entities by default; filter by `relevanceScore` and `confidenceScore` thresholds to retain only meaningful results.",
|
|
33
|
+
input: TextrazorExtractEntitiesInput,
|
|
34
|
+
output: z.object({
|
|
35
|
+
ok: z.boolean().describe("True if TextRazor successfully analyzed the document"),
|
|
36
|
+
time: z.number().describe("Total time in seconds TextRazor took to process this request"),
|
|
37
|
+
error: z.string().describe("Error message if any problems occurred during analysis").nullable().optional(),
|
|
38
|
+
message: z.string().describe("Any warning or informational messages").nullable().optional(),
|
|
39
|
+
response: TextrazorExtractEntities_ResponseDataSchema.nullable()
|
|
40
|
+
}).describe("Response model for entity extraction.")
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { textrazorExtractEntities };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=extract-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-entities.mjs","names":[],"sources":["../../src/actions/extract-entities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextrazorExtractEntitiesInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text to analyze for entity extraction (max 200kb)\"),\n cleanup_mode: z.string().default(\"raw\").describe(\"Controls preprocessing cleanup mode\").optional(),\n language_override: z.string().describe(\"ISO-639-2 language code to force analysis in a specific language\").optional(),\n entities_allow_overlap: z.boolean().default(true).describe(\"When True, entities in response may overlap\").optional(),\n entities_filter_dbpedia_types: z.array(z.string()).describe(\"List of DBPedia types to filter entities\").optional(),\n entities_filter_freebase_types: z.array(z.string()).describe(\"List of Freebase types to filter entities\").optional(),\n}).describe(\"Request model for entity extraction.\");\nconst TextrazorExtractEntities_EntitySchema: z.ZodTypeAny = z.object({\n type: z.array(z.string()).describe(\"List of DBpedia types for this entity\").nullable().optional(),\n entityId: z.string().describe(\"The disambiguated Wikipedia ID for this entity\").nullable().optional(),\n wikiLink: z.string().describe(\"Link to Wikipedia page for this entity\").nullable().optional(),\n wikidataId: z.string().describe(\"The Wikidata QID for this entity if available\").nullable().optional(),\n matchedText: z.string().describe(\"The original text that matched this entity\"),\n freebaseTypes: z.array(z.string()).describe(\"List of Freebase types for this entity\").nullable().optional(),\n matchingTokens: z.array(z.number().int()).describe(\"Token positions in the text\").nullable().optional(),\n relevanceScore: z.number().describe(\"Relevance score for this entity (0 to 1)\"),\n confidenceScore: z.number().describe(\"Confidence score for this entity (typically 0.5 to 10)\"),\n entityEnglishId: z.string().describe(\"The English Wikipedia ID where available\").nullable().optional(),\n}).describe(\"Model representing a named entity extracted from text.\");\nconst TextrazorExtractEntities_ResponseDataSchema: z.ZodTypeAny = z.object({\n entities: z.array(TextrazorExtractEntities_EntitySchema).describe(\"List of extracted entities with disambiguation and metadata\").nullable().optional(),\n language: z.string().describe(\"Detected ISO-639-2 language code of the analyzed text\").nullable().optional(),\n languageIsReliable: z.boolean().describe(\"Whether the language detection is reliable\").nullable().optional(),\n}).describe(\"The analysis response data structure.\");\nexport const TextrazorExtractEntitiesOutput: z.ZodTypeAny = z.object({\n ok: z.boolean().describe(\"True if TextRazor successfully analyzed the document\"),\n time: z.number().describe(\"Total time in seconds TextRazor took to process this request\"),\n error: z.string().describe(\"Error message if any problems occurred during analysis\").nullable().optional(),\n message: z.string().describe(\"Any warning or informational messages\").nullable().optional(),\n response: TextrazorExtractEntities_ResponseDataSchema.nullable(),\n}).describe(\"Response model for entity extraction.\");\n\nexport const textrazorExtractEntities = action(\"TEXTRAZOR_EXTRACT_ENTITIES\", {\n slug: \"textrazor-extract-entities\",\n name: \"Extract Named Entities from Text\",\n description: \"Extract named entities (people, places, companies, etc.) from text using TextRazor's entity extraction API. The tool will identify and classify named entities within the provided text, returning detailed information about each entity including its type, confidence score, and relevance score. The API returns many entities by default; filter by `relevanceScore` and `confidenceScore` thresholds to retain only meaningful results.\",\n input: TextrazorExtractEntitiesInput,\n output: TextrazorExtractEntitiesOutput,\n});\n"],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S,CAAC,CAAC,SAAS;CACtG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8CAA4D,EAAE,OAAO;CACzE,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AASnD,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb0D,EAAE,OAAO;EACnE,IAAI,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,UAAU,4CAA4C,SAAS;CACjE,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_account_info = require("./account-info.cjs");
|
|
3
|
+
const require_classify_text = require("./classify-text.cjs");
|
|
4
|
+
const require_custom_classifier_manager = require("./custom-classifier-manager.cjs");
|
|
5
|
+
const require_dictionary_manager = require("./dictionary-manager.cjs");
|
|
6
|
+
const require_extract_entities = require("./extract-entities.cjs");
|
|
7
|
+
const require_text_razor_analyze_content = require("./text-razor-analyze-content.cjs");
|
|
8
|
+
exports.textrazorAccountInfo = require_account_info.textrazorAccountInfo;
|
|
9
|
+
exports.textrazorClassifyText = require_classify_text.textrazorClassifyText;
|
|
10
|
+
exports.textrazorCustomClassifierManager = require_custom_classifier_manager.textrazorCustomClassifierManager;
|
|
11
|
+
exports.textrazorDictionaryManager = require_dictionary_manager.textrazorDictionaryManager;
|
|
12
|
+
exports.textrazorExtractEntities = require_extract_entities.textrazorExtractEntities;
|
|
13
|
+
exports.textrazorTextRazorAnalyzeContent = require_text_razor_analyze_content.textrazorTextRazorAnalyzeContent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { textrazorAccountInfo } from "./account-info.cjs";
|
|
2
|
+
import { textrazorClassifyText } from "./classify-text.cjs";
|
|
3
|
+
import { textrazorCustomClassifierManager } from "./custom-classifier-manager.cjs";
|
|
4
|
+
import { textrazorDictionaryManager } from "./dictionary-manager.cjs";
|
|
5
|
+
import { textrazorExtractEntities } from "./extract-entities.cjs";
|
|
6
|
+
import { textrazorTextRazorAnalyzeContent } from "./text-razor-analyze-content.cjs";
|
|
7
|
+
export { textrazorAccountInfo, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { textrazorAccountInfo } from "./account-info.mjs";
|
|
2
|
+
import { textrazorClassifyText } from "./classify-text.mjs";
|
|
3
|
+
import { textrazorCustomClassifierManager } from "./custom-classifier-manager.mjs";
|
|
4
|
+
import { textrazorDictionaryManager } from "./dictionary-manager.mjs";
|
|
5
|
+
import { textrazorExtractEntities } from "./extract-entities.mjs";
|
|
6
|
+
import { textrazorTextRazorAnalyzeContent } from "./text-razor-analyze-content.mjs";
|
|
7
|
+
export { textrazorAccountInfo, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { textrazorAccountInfo } from "./account-info.mjs";
|
|
2
|
+
import { textrazorClassifyText } from "./classify-text.mjs";
|
|
3
|
+
import { textrazorCustomClassifierManager } from "./custom-classifier-manager.mjs";
|
|
4
|
+
import { textrazorDictionaryManager } from "./dictionary-manager.mjs";
|
|
5
|
+
import { textrazorExtractEntities } from "./extract-entities.mjs";
|
|
6
|
+
import { textrazorTextRazorAnalyzeContent } from "./text-razor-analyze-content.mjs";
|
|
7
|
+
export { textrazorAccountInfo, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/text-razor-analyze-content.ts
|
|
4
|
+
const TextrazorTextRazorAnalyzeContentInput = zod.z.object({
|
|
5
|
+
text: zod.z.string().describe("The text content to be analyzed (up to 200kb UTF-8 encoded)"),
|
|
6
|
+
extractors: zod.z.array(zod.z.string()).default([
|
|
7
|
+
"entities",
|
|
8
|
+
"topics",
|
|
9
|
+
"words",
|
|
10
|
+
"phrases",
|
|
11
|
+
"dependency-trees",
|
|
12
|
+
"relations",
|
|
13
|
+
"entailments",
|
|
14
|
+
"senses"
|
|
15
|
+
]).describe("List of analysis features to perform Only extractors explicitly listed will run; omitted extractors produce no output in the response. Accepted values are exactly: 'entities', 'topics', 'words', 'phrases', 'dependency-trees', 'relations', 'entailments', 'senses'. Unsupported names cause an invalid request error.").optional(),
|
|
16
|
+
cleanup_mode: zod.z.string().default("stripTags").describe("Controls preprocessing cleanup mode").optional(),
|
|
17
|
+
language_override: zod.z.string().describe("ISO-639-2 language code to force analysis in a specific language").optional(),
|
|
18
|
+
cleanup_use_metadata: zod.z.boolean().default(true).describe("Use document metadata in analysis").optional(),
|
|
19
|
+
cleanup_return_cleaned: zod.z.boolean().default(false).describe("Return the cleaned text in response").optional()
|
|
20
|
+
}).describe("Request model for analyzing content using TextRazor.");
|
|
21
|
+
const TextrazorTextRazorAnalyzeContent_TopicSchema = zod.z.object({
|
|
22
|
+
label: zod.z.string().describe("Label for this topic"),
|
|
23
|
+
score: zod.z.number().describe("The relevance of this topic to the document"),
|
|
24
|
+
wikiLink: zod.z.string().describe("Link to Wikipedia for this topic").nullable().optional()
|
|
25
|
+
}).describe("Topic object in the response.");
|
|
26
|
+
const TextrazorTextRazorAnalyzeContent_EntitySchema = zod.z.object({
|
|
27
|
+
type: zod.z.array(zod.z.string()).describe("List of Dbpedia types for this entity").nullable().optional(),
|
|
28
|
+
entityId: zod.z.string().describe("The disambiguated ID for this entity").nullable().optional(),
|
|
29
|
+
wikiLink: zod.z.string().describe("Link to Wikipedia for this entity").nullable().optional(),
|
|
30
|
+
matchedText: zod.z.string().describe("Source text string that matched this entity"),
|
|
31
|
+
matchingTokens: zod.z.array(zod.z.number().int()).describe("List of token positions in the sentence"),
|
|
32
|
+
relevanceScore: zod.z.number().describe("Relevance score for the entity in the text").nullable().optional(),
|
|
33
|
+
confidenceScore: zod.z.number().describe("Confidence score for the entity extraction").nullable().optional(),
|
|
34
|
+
entityEnglishId: zod.z.string().describe("The disambiguated entityId in the English Wikipedia").nullable().optional()
|
|
35
|
+
}).describe("Entity object in the response.");
|
|
36
|
+
const TextrazorTextRazorAnalyzeContent_RelationParamSchema = zod.z.object({
|
|
37
|
+
relation: zod.z.string().describe("Relation of this param to the predicate"),
|
|
38
|
+
wordPositions: zod.z.array(zod.z.number().int()).describe("List of positions of the words in this param")
|
|
39
|
+
}).describe("Relation parameter object in the response.");
|
|
40
|
+
const TextrazorTextRazorAnalyzeContent_RelationSchema = zod.z.object({
|
|
41
|
+
params: zod.z.array(TextrazorTextRazorAnalyzeContent_RelationParamSchema).describe("List of relation parameters"),
|
|
42
|
+
wordPositions: zod.z.array(zod.z.number().int()).describe("List of positions of the predicate words")
|
|
43
|
+
}).describe("Relation object in the response.");
|
|
44
|
+
const TextrazorTextRazorAnalyzeContent_WordSchema = zod.z.object({
|
|
45
|
+
lemma: zod.z.string().describe("Morphological root of this word").nullable().optional(),
|
|
46
|
+
token: zod.z.string().describe("Raw token string from the source text"),
|
|
47
|
+
position: zod.z.number().int().describe("Position of this word in its sentence"),
|
|
48
|
+
endingPos: zod.z.number().int().describe("End offset in the input text"),
|
|
49
|
+
startingPos: zod.z.number().int().describe("Start offset in the input text"),
|
|
50
|
+
partOfSpeech: zod.z.string().describe("Part of Speech tag").nullable().optional()
|
|
51
|
+
}).describe("Word object in the response.");
|
|
52
|
+
const TextrazorTextRazorAnalyzeContent_SentenceSchema = zod.z.object({ words: zod.z.array(TextrazorTextRazorAnalyzeContent_WordSchema).describe("List of words in the sentence") }).describe("Sentence object in the response.");
|
|
53
|
+
const TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema = zod.z.object({
|
|
54
|
+
topics: zod.z.array(TextrazorTextRazorAnalyzeContent_TopicSchema).describe("List of extracted topics").nullable().optional(),
|
|
55
|
+
entities: zod.z.array(TextrazorTextRazorAnalyzeContent_EntitySchema).describe("List of extracted entities").nullable().optional(),
|
|
56
|
+
language: zod.z.string().describe("The ISO-639-2 language code used for analysis"),
|
|
57
|
+
relations: zod.z.array(TextrazorTextRazorAnalyzeContent_RelationSchema).describe("List of relations").nullable().optional(),
|
|
58
|
+
sentences: zod.z.array(TextrazorTextRazorAnalyzeContent_SentenceSchema).describe("List of sentences").nullable().optional(),
|
|
59
|
+
cleanedText: zod.z.string().describe("The cleaned text if requested").nullable().optional(),
|
|
60
|
+
languageIsReliable: zod.z.boolean().describe("Whether language detection was confident")
|
|
61
|
+
}).describe("Inner response object containing analysis results.");
|
|
62
|
+
const TextrazorTextRazorAnalyzeContentOutput = zod.z.object({
|
|
63
|
+
ok: zod.z.boolean().describe("Whether the analysis was successful"),
|
|
64
|
+
time: zod.z.number().describe("Time taken for analysis in seconds"),
|
|
65
|
+
error: zod.z.string().describe("Error message if analysis failed").nullable().optional(),
|
|
66
|
+
response: TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema.nullable().optional()
|
|
67
|
+
}).describe("Response model for content analysis.");
|
|
68
|
+
const textrazorTextRazorAnalyzeContent = require_action.action("TEXTRAZOR_TEXT_RAZOR_ANALYZE_CONTENT", {
|
|
69
|
+
slug: "textrazor-text-razor-analyze-content",
|
|
70
|
+
name: "Analyze Content with TextRazor",
|
|
71
|
+
description: "A comprehensive content analysis tool that combines multiple TextRazor extractors to perform a complete analysis of the input text. This action allows users to analyze text content with multiple extractors in a single API call.",
|
|
72
|
+
input: TextrazorTextRazorAnalyzeContentInput,
|
|
73
|
+
output: TextrazorTextRazorAnalyzeContentOutput
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
exports.textrazorTextRazorAnalyzeContent = textrazorTextRazorAnalyzeContent;
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=text-razor-analyze-content.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-razor-analyze-content.cjs","names":["z","action"],"sources":["../../src/actions/text-razor-analyze-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextrazorTextRazorAnalyzeContentInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content to be analyzed (up to 200kb UTF-8 encoded)\"),\n extractors: z.array(z.string()).default([\"entities\",\"topics\",\"words\",\"phrases\",\"dependency-trees\",\"relations\",\"entailments\",\"senses\"]).describe(\"List of analysis features to perform Only extractors explicitly listed will run; omitted extractors produce no output in the response. Accepted values are exactly: 'entities', 'topics', 'words', 'phrases', 'dependency-trees', 'relations', 'entailments', 'senses'. Unsupported names cause an invalid request error.\").optional(),\n cleanup_mode: z.string().default(\"stripTags\").describe(\"Controls preprocessing cleanup mode\").optional(),\n language_override: z.string().describe(\"ISO-639-2 language code to force analysis in a specific language\").optional(),\n cleanup_use_metadata: z.boolean().default(true).describe(\"Use document metadata in analysis\").optional(),\n cleanup_return_cleaned: z.boolean().default(false).describe(\"Return the cleaned text in response\").optional(),\n}).describe(\"Request model for analyzing content using TextRazor.\");\nconst TextrazorTextRazorAnalyzeContent_TopicSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label for this topic\"),\n score: z.number().describe(\"The relevance of this topic to the document\"),\n wikiLink: z.string().describe(\"Link to Wikipedia for this topic\").nullable().optional(),\n}).describe(\"Topic object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_EntitySchema: z.ZodTypeAny = z.object({\n type: z.array(z.string()).describe(\"List of Dbpedia types for this entity\").nullable().optional(),\n entityId: z.string().describe(\"The disambiguated ID for this entity\").nullable().optional(),\n wikiLink: z.string().describe(\"Link to Wikipedia for this entity\").nullable().optional(),\n matchedText: z.string().describe(\"Source text string that matched this entity\"),\n matchingTokens: z.array(z.number().int()).describe(\"List of token positions in the sentence\"),\n relevanceScore: z.number().describe(\"Relevance score for the entity in the text\").nullable().optional(),\n confidenceScore: z.number().describe(\"Confidence score for the entity extraction\").nullable().optional(),\n entityEnglishId: z.string().describe(\"The disambiguated entityId in the English Wikipedia\").nullable().optional(),\n}).describe(\"Entity object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_RelationParamSchema: z.ZodTypeAny = z.object({\n relation: z.string().describe(\"Relation of this param to the predicate\"),\n wordPositions: z.array(z.number().int()).describe(\"List of positions of the words in this param\"),\n}).describe(\"Relation parameter object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_RelationSchema: z.ZodTypeAny = z.object({\n params: z.array(TextrazorTextRazorAnalyzeContent_RelationParamSchema).describe(\"List of relation parameters\"),\n wordPositions: z.array(z.number().int()).describe(\"List of positions of the predicate words\"),\n}).describe(\"Relation object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_WordSchema: z.ZodTypeAny = z.object({\n lemma: z.string().describe(\"Morphological root of this word\").nullable().optional(),\n token: z.string().describe(\"Raw token string from the source text\"),\n position: z.number().int().describe(\"Position of this word in its sentence\"),\n endingPos: z.number().int().describe(\"End offset in the input text\"),\n startingPos: z.number().int().describe(\"Start offset in the input text\"),\n partOfSpeech: z.string().describe(\"Part of Speech tag\").nullable().optional(),\n}).describe(\"Word object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_SentenceSchema: z.ZodTypeAny = z.object({\n words: z.array(TextrazorTextRazorAnalyzeContent_WordSchema).describe(\"List of words in the sentence\"),\n}).describe(\"Sentence object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema: z.ZodTypeAny = z.object({\n topics: z.array(TextrazorTextRazorAnalyzeContent_TopicSchema).describe(\"List of extracted topics\").nullable().optional(),\n entities: z.array(TextrazorTextRazorAnalyzeContent_EntitySchema).describe(\"List of extracted entities\").nullable().optional(),\n language: z.string().describe(\"The ISO-639-2 language code used for analysis\"),\n relations: z.array(TextrazorTextRazorAnalyzeContent_RelationSchema).describe(\"List of relations\").nullable().optional(),\n sentences: z.array(TextrazorTextRazorAnalyzeContent_SentenceSchema).describe(\"List of sentences\").nullable().optional(),\n cleanedText: z.string().describe(\"The cleaned text if requested\").nullable().optional(),\n languageIsReliable: z.boolean().describe(\"Whether language detection was confident\"),\n}).describe(\"Inner response object containing analysis results.\");\nexport const TextrazorTextRazorAnalyzeContentOutput: z.ZodTypeAny = z.object({\n ok: z.boolean().describe(\"Whether the analysis was successful\"),\n time: z.number().describe(\"Time taken for analysis in seconds\"),\n error: z.string().describe(\"Error message if analysis failed\").nullable().optional(),\n response: TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema.nullable().optional(),\n}).describe(\"Response model for content analysis.\");\n\nexport const textrazorTextRazorAnalyzeContent = action(\"TEXTRAZOR_TEXT_RAZOR_ANALYZE_CONTENT\", {\n slug: \"textrazor-text-razor-analyze-content\",\n name: \"Analyze Content with TextRazor\",\n description: \"A comprehensive content analysis tool that combines multiple TextRazor extractors to perform a complete analysis of the input text. This action allows users to analyze text content with multiple extractors in a single API call.\",\n input: TextrazorTextRazorAnalyzeContentInput,\n output: TextrazorTextRazorAnalyzeContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ;EAAC;EAAW;EAAS;EAAQ;EAAU;EAAmB;EAAY;EAAc;CAAQ,CAAC,CAAC,CAAC,SAAS,2TAA2T,CAAC,CAAC,SAAS;CACtd,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACpH,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,gDAA8DA,IAAAA,EAAE,OAA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MAAM,+CAA+C,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AACrF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,wDAAwD,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,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/text-razor-analyze-content.d.ts
|
|
4
|
+
declare const TextrazorTextRazorAnalyzeContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextrazorTextRazorAnalyzeContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textrazorTextRazorAnalyzeContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textrazorTextRazorAnalyzeContent };
|
|
9
|
+
//# sourceMappingURL=text-razor-analyze-content.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-razor-analyze-content.d.cts","names":[],"sources":["../../src/actions/text-razor-analyze-content.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOa;AAAA,cA4CtD,sCAAA,EAAwC,CAAA,CAAE,UAKJ;AAAA,cAEtC,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/text-razor-analyze-content.d.ts
|
|
4
|
+
declare const TextrazorTextRazorAnalyzeContentInput: z.ZodTypeAny;
|
|
5
|
+
declare const TextrazorTextRazorAnalyzeContentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const textrazorTextRazorAnalyzeContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { textrazorTextRazorAnalyzeContent };
|
|
9
|
+
//# sourceMappingURL=text-razor-analyze-content.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-razor-analyze-content.d.mts","names":[],"sources":["../../src/actions/text-razor-analyze-content.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOa;AAAA,cA4CtD,sCAAA,EAAwC,CAAA,CAAE,UAKJ;AAAA,cAEtC,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/text-razor-analyze-content.ts
|
|
4
|
+
const TextrazorTextRazorAnalyzeContentInput = z.object({
|
|
5
|
+
text: z.string().describe("The text content to be analyzed (up to 200kb UTF-8 encoded)"),
|
|
6
|
+
extractors: z.array(z.string()).default([
|
|
7
|
+
"entities",
|
|
8
|
+
"topics",
|
|
9
|
+
"words",
|
|
10
|
+
"phrases",
|
|
11
|
+
"dependency-trees",
|
|
12
|
+
"relations",
|
|
13
|
+
"entailments",
|
|
14
|
+
"senses"
|
|
15
|
+
]).describe("List of analysis features to perform Only extractors explicitly listed will run; omitted extractors produce no output in the response. Accepted values are exactly: 'entities', 'topics', 'words', 'phrases', 'dependency-trees', 'relations', 'entailments', 'senses'. Unsupported names cause an invalid request error.").optional(),
|
|
16
|
+
cleanup_mode: z.string().default("stripTags").describe("Controls preprocessing cleanup mode").optional(),
|
|
17
|
+
language_override: z.string().describe("ISO-639-2 language code to force analysis in a specific language").optional(),
|
|
18
|
+
cleanup_use_metadata: z.boolean().default(true).describe("Use document metadata in analysis").optional(),
|
|
19
|
+
cleanup_return_cleaned: z.boolean().default(false).describe("Return the cleaned text in response").optional()
|
|
20
|
+
}).describe("Request model for analyzing content using TextRazor.");
|
|
21
|
+
const TextrazorTextRazorAnalyzeContent_TopicSchema = z.object({
|
|
22
|
+
label: z.string().describe("Label for this topic"),
|
|
23
|
+
score: z.number().describe("The relevance of this topic to the document"),
|
|
24
|
+
wikiLink: z.string().describe("Link to Wikipedia for this topic").nullable().optional()
|
|
25
|
+
}).describe("Topic object in the response.");
|
|
26
|
+
const TextrazorTextRazorAnalyzeContent_EntitySchema = z.object({
|
|
27
|
+
type: z.array(z.string()).describe("List of Dbpedia types for this entity").nullable().optional(),
|
|
28
|
+
entityId: z.string().describe("The disambiguated ID for this entity").nullable().optional(),
|
|
29
|
+
wikiLink: z.string().describe("Link to Wikipedia for this entity").nullable().optional(),
|
|
30
|
+
matchedText: z.string().describe("Source text string that matched this entity"),
|
|
31
|
+
matchingTokens: z.array(z.number().int()).describe("List of token positions in the sentence"),
|
|
32
|
+
relevanceScore: z.number().describe("Relevance score for the entity in the text").nullable().optional(),
|
|
33
|
+
confidenceScore: z.number().describe("Confidence score for the entity extraction").nullable().optional(),
|
|
34
|
+
entityEnglishId: z.string().describe("The disambiguated entityId in the English Wikipedia").nullable().optional()
|
|
35
|
+
}).describe("Entity object in the response.");
|
|
36
|
+
const TextrazorTextRazorAnalyzeContent_RelationParamSchema = z.object({
|
|
37
|
+
relation: z.string().describe("Relation of this param to the predicate"),
|
|
38
|
+
wordPositions: z.array(z.number().int()).describe("List of positions of the words in this param")
|
|
39
|
+
}).describe("Relation parameter object in the response.");
|
|
40
|
+
const TextrazorTextRazorAnalyzeContent_RelationSchema = z.object({
|
|
41
|
+
params: z.array(TextrazorTextRazorAnalyzeContent_RelationParamSchema).describe("List of relation parameters"),
|
|
42
|
+
wordPositions: z.array(z.number().int()).describe("List of positions of the predicate words")
|
|
43
|
+
}).describe("Relation object in the response.");
|
|
44
|
+
const TextrazorTextRazorAnalyzeContent_WordSchema = z.object({
|
|
45
|
+
lemma: z.string().describe("Morphological root of this word").nullable().optional(),
|
|
46
|
+
token: z.string().describe("Raw token string from the source text"),
|
|
47
|
+
position: z.number().int().describe("Position of this word in its sentence"),
|
|
48
|
+
endingPos: z.number().int().describe("End offset in the input text"),
|
|
49
|
+
startingPos: z.number().int().describe("Start offset in the input text"),
|
|
50
|
+
partOfSpeech: z.string().describe("Part of Speech tag").nullable().optional()
|
|
51
|
+
}).describe("Word object in the response.");
|
|
52
|
+
const TextrazorTextRazorAnalyzeContent_SentenceSchema = z.object({ words: z.array(TextrazorTextRazorAnalyzeContent_WordSchema).describe("List of words in the sentence") }).describe("Sentence object in the response.");
|
|
53
|
+
const TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema = z.object({
|
|
54
|
+
topics: z.array(TextrazorTextRazorAnalyzeContent_TopicSchema).describe("List of extracted topics").nullable().optional(),
|
|
55
|
+
entities: z.array(TextrazorTextRazorAnalyzeContent_EntitySchema).describe("List of extracted entities").nullable().optional(),
|
|
56
|
+
language: z.string().describe("The ISO-639-2 language code used for analysis"),
|
|
57
|
+
relations: z.array(TextrazorTextRazorAnalyzeContent_RelationSchema).describe("List of relations").nullable().optional(),
|
|
58
|
+
sentences: z.array(TextrazorTextRazorAnalyzeContent_SentenceSchema).describe("List of sentences").nullable().optional(),
|
|
59
|
+
cleanedText: z.string().describe("The cleaned text if requested").nullable().optional(),
|
|
60
|
+
languageIsReliable: z.boolean().describe("Whether language detection was confident")
|
|
61
|
+
}).describe("Inner response object containing analysis results.");
|
|
62
|
+
const textrazorTextRazorAnalyzeContent = action("TEXTRAZOR_TEXT_RAZOR_ANALYZE_CONTENT", {
|
|
63
|
+
slug: "textrazor-text-razor-analyze-content",
|
|
64
|
+
name: "Analyze Content with TextRazor",
|
|
65
|
+
description: "A comprehensive content analysis tool that combines multiple TextRazor extractors to perform a complete analysis of the input text. This action allows users to analyze text content with multiple extractors in a single API call.",
|
|
66
|
+
input: TextrazorTextRazorAnalyzeContentInput,
|
|
67
|
+
output: z.object({
|
|
68
|
+
ok: z.boolean().describe("Whether the analysis was successful"),
|
|
69
|
+
time: z.number().describe("Time taken for analysis in seconds"),
|
|
70
|
+
error: z.string().describe("Error message if analysis failed").nullable().optional(),
|
|
71
|
+
response: TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema.nullable().optional()
|
|
72
|
+
}).describe("Response model for content analysis.")
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { textrazorTextRazorAnalyzeContent };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=text-razor-analyze-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-razor-analyze-content.mjs","names":[],"sources":["../../src/actions/text-razor-analyze-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TextrazorTextRazorAnalyzeContentInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content to be analyzed (up to 200kb UTF-8 encoded)\"),\n extractors: z.array(z.string()).default([\"entities\",\"topics\",\"words\",\"phrases\",\"dependency-trees\",\"relations\",\"entailments\",\"senses\"]).describe(\"List of analysis features to perform Only extractors explicitly listed will run; omitted extractors produce no output in the response. Accepted values are exactly: 'entities', 'topics', 'words', 'phrases', 'dependency-trees', 'relations', 'entailments', 'senses'. Unsupported names cause an invalid request error.\").optional(),\n cleanup_mode: z.string().default(\"stripTags\").describe(\"Controls preprocessing cleanup mode\").optional(),\n language_override: z.string().describe(\"ISO-639-2 language code to force analysis in a specific language\").optional(),\n cleanup_use_metadata: z.boolean().default(true).describe(\"Use document metadata in analysis\").optional(),\n cleanup_return_cleaned: z.boolean().default(false).describe(\"Return the cleaned text in response\").optional(),\n}).describe(\"Request model for analyzing content using TextRazor.\");\nconst TextrazorTextRazorAnalyzeContent_TopicSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label for this topic\"),\n score: z.number().describe(\"The relevance of this topic to the document\"),\n wikiLink: z.string().describe(\"Link to Wikipedia for this topic\").nullable().optional(),\n}).describe(\"Topic object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_EntitySchema: z.ZodTypeAny = z.object({\n type: z.array(z.string()).describe(\"List of Dbpedia types for this entity\").nullable().optional(),\n entityId: z.string().describe(\"The disambiguated ID for this entity\").nullable().optional(),\n wikiLink: z.string().describe(\"Link to Wikipedia for this entity\").nullable().optional(),\n matchedText: z.string().describe(\"Source text string that matched this entity\"),\n matchingTokens: z.array(z.number().int()).describe(\"List of token positions in the sentence\"),\n relevanceScore: z.number().describe(\"Relevance score for the entity in the text\").nullable().optional(),\n confidenceScore: z.number().describe(\"Confidence score for the entity extraction\").nullable().optional(),\n entityEnglishId: z.string().describe(\"The disambiguated entityId in the English Wikipedia\").nullable().optional(),\n}).describe(\"Entity object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_RelationParamSchema: z.ZodTypeAny = z.object({\n relation: z.string().describe(\"Relation of this param to the predicate\"),\n wordPositions: z.array(z.number().int()).describe(\"List of positions of the words in this param\"),\n}).describe(\"Relation parameter object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_RelationSchema: z.ZodTypeAny = z.object({\n params: z.array(TextrazorTextRazorAnalyzeContent_RelationParamSchema).describe(\"List of relation parameters\"),\n wordPositions: z.array(z.number().int()).describe(\"List of positions of the predicate words\"),\n}).describe(\"Relation object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_WordSchema: z.ZodTypeAny = z.object({\n lemma: z.string().describe(\"Morphological root of this word\").nullable().optional(),\n token: z.string().describe(\"Raw token string from the source text\"),\n position: z.number().int().describe(\"Position of this word in its sentence\"),\n endingPos: z.number().int().describe(\"End offset in the input text\"),\n startingPos: z.number().int().describe(\"Start offset in the input text\"),\n partOfSpeech: z.string().describe(\"Part of Speech tag\").nullable().optional(),\n}).describe(\"Word object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_SentenceSchema: z.ZodTypeAny = z.object({\n words: z.array(TextrazorTextRazorAnalyzeContent_WordSchema).describe(\"List of words in the sentence\"),\n}).describe(\"Sentence object in the response.\");\nconst TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema: z.ZodTypeAny = z.object({\n topics: z.array(TextrazorTextRazorAnalyzeContent_TopicSchema).describe(\"List of extracted topics\").nullable().optional(),\n entities: z.array(TextrazorTextRazorAnalyzeContent_EntitySchema).describe(\"List of extracted entities\").nullable().optional(),\n language: z.string().describe(\"The ISO-639-2 language code used for analysis\"),\n relations: z.array(TextrazorTextRazorAnalyzeContent_RelationSchema).describe(\"List of relations\").nullable().optional(),\n sentences: z.array(TextrazorTextRazorAnalyzeContent_SentenceSchema).describe(\"List of sentences\").nullable().optional(),\n cleanedText: z.string().describe(\"The cleaned text if requested\").nullable().optional(),\n languageIsReliable: z.boolean().describe(\"Whether language detection was confident\"),\n}).describe(\"Inner response object containing analysis results.\");\nexport const TextrazorTextRazorAnalyzeContentOutput: z.ZodTypeAny = z.object({\n ok: z.boolean().describe(\"Whether the analysis was successful\"),\n time: z.number().describe(\"Time taken for analysis in seconds\"),\n error: z.string().describe(\"Error message if analysis failed\").nullable().optional(),\n response: TextrazorTextRazorAnalyzeContent_AnalysisResponseSchema.nullable().optional(),\n}).describe(\"Response model for content analysis.\");\n\nexport const textrazorTextRazorAnalyzeContent = action(\"TEXTRAZOR_TEXT_RAZOR_ANALYZE_CONTENT\", {\n slug: \"textrazor-text-razor-analyze-content\",\n name: \"Analyze Content with TextRazor\",\n description: \"A comprehensive content analysis tool that combines multiple TextRazor extractors to perform a complete analysis of the input text. This action allows users to analyze text content with multiple extractors in a single API call.\",\n input: TextrazorTextRazorAnalyzeContentInput,\n output: TextrazorTextRazorAnalyzeContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACvF,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ;EAAC;EAAW;EAAS;EAAQ;EAAU;EAAmB;EAAY;EAAc;CAAQ,CAAC,CAAC,CAAC,SAAS,2TAA2T,CAAC,CAAC,SAAS;CACtd,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACpH,sBAAsB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC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,0CAA0C;AACrF,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAQhE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkE,EAAE,OAAO;EAC3E,IAAI,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,UAAU,wDAAwD,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,SAAS,sCAOF;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 textrazor = defineApp({\n slug: \"textrazor\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,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,SAAA,6BAAS,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,SAAA,6BAAS,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 textrazor = defineApp({\n slug: \"textrazor\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,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 textrazorCatalog = {
|
|
4
|
+
"slug": "textrazor",
|
|
5
|
+
"name": "TextRazor",
|
|
6
|
+
"description": "TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/textrazor",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.textrazorCatalog = textrazorCatalog;
|
|
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 textrazorCatalog = {\n \"slug\": \"textrazor\",\n \"name\": \"TextRazor\",\n \"description\": \"TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/textrazor\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,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 textrazorCatalog: {
|
|
4
|
+
readonly slug: "textrazor";
|
|
5
|
+
readonly name: "TextRazor";
|
|
6
|
+
readonly description: "TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/textrazor";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { textrazorCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const textrazorCatalog: {
|
|
4
|
+
readonly slug: "textrazor";
|
|
5
|
+
readonly name: "TextRazor";
|
|
6
|
+
readonly description: "TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/textrazor";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { textrazorCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;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 textrazorCatalog = {
|
|
4
|
+
"slug": "textrazor",
|
|
5
|
+
"name": "TextRazor",
|
|
6
|
+
"description": "TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/textrazor",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { textrazorCatalog };
|
|
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 textrazorCatalog = {\n \"slug\": \"textrazor\",\n \"name\": \"TextRazor\",\n \"description\": \"TextRazor is a natural language processing API that extracts meaning, entities, and relationships from text, powering advanced content analysis and sentiment detection\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/textrazor\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,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 = "textrazor";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeTextrazorTool(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.executeTextrazorTool = executeTextrazorTool;
|
|
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 = \"textrazor\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeTextrazorTool(\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,qBACpB,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"}
|