@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
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 = "textrazor";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeTextrazorTool(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 { executeTextrazorTool };
|
|
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 = \"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,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,18 @@
|
|
|
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_account_info = require("./actions/account-info.cjs");
|
|
5
|
+
const require_classify_text = require("./actions/classify-text.cjs");
|
|
6
|
+
const require_custom_classifier_manager = require("./actions/custom-classifier-manager.cjs");
|
|
7
|
+
const require_dictionary_manager = require("./actions/dictionary-manager.cjs");
|
|
8
|
+
const require_extract_entities = require("./actions/extract-entities.cjs");
|
|
9
|
+
const require_text_razor_analyze_content = require("./actions/text-razor-analyze-content.cjs");
|
|
10
|
+
require("./actions/index.cjs");
|
|
11
|
+
exports.textrazor = require_app.textrazor;
|
|
12
|
+
exports.textrazorAccountInfo = require_account_info.textrazorAccountInfo;
|
|
13
|
+
exports.textrazorCatalog = require_catalog.textrazorCatalog;
|
|
14
|
+
exports.textrazorClassifyText = require_classify_text.textrazorClassifyText;
|
|
15
|
+
exports.textrazorCustomClassifierManager = require_custom_classifier_manager.textrazorCustomClassifierManager;
|
|
16
|
+
exports.textrazorDictionaryManager = require_dictionary_manager.textrazorDictionaryManager;
|
|
17
|
+
exports.textrazorExtractEntities = require_extract_entities.textrazorExtractEntities;
|
|
18
|
+
exports.textrazorTextRazorAnalyzeContent = require_text_razor_analyze_content.textrazorTextRazorAnalyzeContent;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { textrazorAccountInfo } from "./actions/account-info.cjs";
|
|
2
|
+
import { textrazorClassifyText } from "./actions/classify-text.cjs";
|
|
3
|
+
import { textrazorCustomClassifierManager } from "./actions/custom-classifier-manager.cjs";
|
|
4
|
+
import { textrazorDictionaryManager } from "./actions/dictionary-manager.cjs";
|
|
5
|
+
import { textrazorExtractEntities } from "./actions/extract-entities.cjs";
|
|
6
|
+
import { textrazorTextRazorAnalyzeContent } from "./actions/text-razor-analyze-content.cjs";
|
|
7
|
+
import { textrazor } from "./app.cjs";
|
|
8
|
+
import { textrazorCatalog } from "./catalog.cjs";
|
|
9
|
+
export { textrazor, textrazorAccountInfo, textrazorCatalog, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { textrazorAccountInfo } from "./actions/account-info.mjs";
|
|
2
|
+
import { textrazorClassifyText } from "./actions/classify-text.mjs";
|
|
3
|
+
import { textrazorCustomClassifierManager } from "./actions/custom-classifier-manager.mjs";
|
|
4
|
+
import { textrazorDictionaryManager } from "./actions/dictionary-manager.mjs";
|
|
5
|
+
import { textrazorExtractEntities } from "./actions/extract-entities.mjs";
|
|
6
|
+
import { textrazorTextRazorAnalyzeContent } from "./actions/text-razor-analyze-content.mjs";
|
|
7
|
+
import { textrazor } from "./app.mjs";
|
|
8
|
+
import { textrazorCatalog } from "./catalog.mjs";
|
|
9
|
+
export { textrazor, textrazorAccountInfo, textrazorCatalog, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { textrazor } from "./app.mjs";
|
|
2
|
+
import { textrazorCatalog } from "./catalog.mjs";
|
|
3
|
+
import { textrazorAccountInfo } from "./actions/account-info.mjs";
|
|
4
|
+
import { textrazorClassifyText } from "./actions/classify-text.mjs";
|
|
5
|
+
import { textrazorCustomClassifierManager } from "./actions/custom-classifier-manager.mjs";
|
|
6
|
+
import { textrazorDictionaryManager } from "./actions/dictionary-manager.mjs";
|
|
7
|
+
import { textrazorExtractEntities } from "./actions/extract-entities.mjs";
|
|
8
|
+
import { textrazorTextRazorAnalyzeContent } from "./actions/text-razor-analyze-content.mjs";
|
|
9
|
+
import "./actions/index.mjs";
|
|
10
|
+
export { textrazor, textrazorAccountInfo, textrazorCatalog, textrazorClassifyText, textrazorCustomClassifierManager, textrazorDictionaryManager, textrazorExtractEntities, textrazorTextRazorAnalyzeContent };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/textrazor",
|
|
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/textrazor"
|
|
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
|
+
}
|