@keystrokehq/tisane 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/analyze-text.cjs +29 -0
- package/dist/actions/analyze-text.cjs.map +1 -0
- package/dist/actions/analyze-text.d.cts +9 -0
- package/dist/actions/analyze-text.d.cts.map +1 -0
- package/dist/actions/analyze-text.d.mts +9 -0
- package/dist/actions/analyze-text.d.mts.map +1 -0
- package/dist/actions/analyze-text.mjs +26 -0
- package/dist/actions/analyze-text.mjs.map +1 -0
- package/dist/actions/calculate-similarity.cjs +22 -0
- package/dist/actions/calculate-similarity.cjs.map +1 -0
- package/dist/actions/calculate-similarity.d.cts +9 -0
- package/dist/actions/calculate-similarity.d.cts.map +1 -0
- package/dist/actions/calculate-similarity.d.mts +9 -0
- package/dist/actions/calculate-similarity.d.mts.map +1 -0
- package/dist/actions/calculate-similarity.mjs +19 -0
- package/dist/actions/calculate-similarity.mjs.map +1 -0
- package/dist/actions/compare-entities.cjs +30 -0
- package/dist/actions/compare-entities.cjs.map +1 -0
- package/dist/actions/compare-entities.d.cts +9 -0
- package/dist/actions/compare-entities.d.cts.map +1 -0
- package/dist/actions/compare-entities.d.mts +9 -0
- package/dist/actions/compare-entities.d.mts.map +1 -0
- package/dist/actions/compare-entities.mjs +29 -0
- package/dist/actions/compare-entities.mjs.map +1 -0
- package/dist/actions/detect-language.cjs +19 -0
- package/dist/actions/detect-language.cjs.map +1 -0
- package/dist/actions/detect-language.d.cts +9 -0
- package/dist/actions/detect-language.d.cts.map +1 -0
- package/dist/actions/detect-language.d.mts +9 -0
- package/dist/actions/detect-language.d.mts.map +1 -0
- package/dist/actions/detect-language.mjs +16 -0
- package/dist/actions/detect-language.mjs.map +1 -0
- package/dist/actions/extract-text.cjs +16 -0
- package/dist/actions/extract-text.cjs.map +1 -0
- package/dist/actions/extract-text.d.cts +9 -0
- package/dist/actions/extract-text.d.cts.map +1 -0
- package/dist/actions/extract-text.d.mts +9 -0
- package/dist/actions/extract-text.d.mts.map +1 -0
- package/dist/actions/extract-text.mjs +13 -0
- package/dist/actions/extract-text.mjs.map +1 -0
- package/dist/actions/get-family-details.cjs +24 -0
- package/dist/actions/get-family-details.cjs.map +1 -0
- package/dist/actions/get-family-details.d.cts +9 -0
- package/dist/actions/get-family-details.d.cts.map +1 -0
- package/dist/actions/get-family-details.d.mts +9 -0
- package/dist/actions/get-family-details.d.mts.map +1 -0
- package/dist/actions/get-family-details.mjs +21 -0
- package/dist/actions/get-family-details.mjs.map +1 -0
- package/dist/actions/get-supported-languages.cjs +25 -0
- package/dist/actions/get-supported-languages.cjs.map +1 -0
- package/dist/actions/get-supported-languages.d.cts +9 -0
- package/dist/actions/get-supported-languages.d.cts.map +1 -0
- package/dist/actions/get-supported-languages.d.mts +9 -0
- package/dist/actions/get-supported-languages.d.mts.map +1 -0
- package/dist/actions/get-supported-languages.mjs +24 -0
- package/dist/actions/get-supported-languages.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-feature-values.cjs +24 -0
- package/dist/actions/list-feature-values.cjs.map +1 -0
- package/dist/actions/list-feature-values.d.cts +9 -0
- package/dist/actions/list-feature-values.d.cts.map +1 -0
- package/dist/actions/list-feature-values.d.mts +9 -0
- package/dist/actions/list-feature-values.d.mts.map +1 -0
- package/dist/actions/list-feature-values.mjs +21 -0
- package/dist/actions/list-feature-values.mjs.map +1 -0
- package/dist/actions/list-hypernyms.cjs +24 -0
- package/dist/actions/list-hypernyms.cjs.map +1 -0
- package/dist/actions/list-hypernyms.d.cts +9 -0
- package/dist/actions/list-hypernyms.d.cts.map +1 -0
- package/dist/actions/list-hypernyms.d.mts +9 -0
- package/dist/actions/list-hypernyms.d.mts.map +1 -0
- package/dist/actions/list-hypernyms.mjs +23 -0
- package/dist/actions/list-hypernyms.mjs.map +1 -0
- package/dist/actions/list-hyponyms.cjs +24 -0
- package/dist/actions/list-hyponyms.cjs.map +1 -0
- package/dist/actions/list-hyponyms.d.cts +9 -0
- package/dist/actions/list-hyponyms.d.cts.map +1 -0
- package/dist/actions/list-hyponyms.d.mts +9 -0
- package/dist/actions/list-hyponyms.d.mts.map +1 -0
- package/dist/actions/list-hyponyms.mjs +23 -0
- package/dist/actions/list-hyponyms.mjs.map +1 -0
- package/dist/actions/list-inflections.cjs +29 -0
- package/dist/actions/list-inflections.cjs.map +1 -0
- package/dist/actions/list-inflections.d.cts +9 -0
- package/dist/actions/list-inflections.d.cts.map +1 -0
- package/dist/actions/list-inflections.d.mts +9 -0
- package/dist/actions/list-inflections.d.mts.map +1 -0
- package/dist/actions/list-inflections.mjs +28 -0
- package/dist/actions/list-inflections.mjs.map +1 -0
- package/dist/actions/list-word-senses.cjs +42 -0
- package/dist/actions/list-word-senses.cjs.map +1 -0
- package/dist/actions/list-word-senses.d.cts +9 -0
- package/dist/actions/list-word-senses.d.cts.map +1 -0
- package/dist/actions/list-word-senses.d.mts +9 -0
- package/dist/actions/list-word-senses.d.mts.map +1 -0
- package/dist/actions/list-word-senses.mjs +41 -0
- package/dist/actions/list-word-senses.mjs.map +1 -0
- package/dist/actions/transform-text.cjs +21 -0
- package/dist/actions/transform-text.cjs.map +1 -0
- package/dist/actions/transform-text.d.cts +9 -0
- package/dist/actions/transform-text.d.cts.map +1 -0
- package/dist/actions/transform-text.d.mts +9 -0
- package/dist/actions/transform-text.d.mts.map +1 -0
- package/dist/actions/transform-text.mjs +18 -0
- package/dist/actions/transform-text.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
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/tisane
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `tisane`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 13
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { tisaneAnalyzeText } from "@keystrokehq/tisane/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "tisane-agent",
|
|
15
|
+
tools: [tisaneAnalyzeText],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.tisane.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeTisaneTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["tisane","executeTisaneTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { tisane } from \"./app\";\nimport { executeTisaneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return tisane.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTisaneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tisane } from "./app.mjs";
|
|
2
|
+
import { executeTisaneTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return tisane.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeTisaneTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { tisane } from \"./app\";\nimport { executeTisaneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return tisane.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTisaneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/analyze-text.ts
|
|
4
|
+
const TisaneAnalyzeTextInput = zod.z.object({
|
|
5
|
+
content: zod.z.string().describe("Text content to be analyzed"),
|
|
6
|
+
language: zod.z.string().describe("IETF BCP-47 language tag for the input text"),
|
|
7
|
+
settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional analysis settings. Empty dict for defaults (see Tisane API Configuration Guide).").optional()
|
|
8
|
+
}).describe("Request model for the Tisane `/parse` (analyze text) endpoint.");
|
|
9
|
+
const TisaneAnalyzeTextOutput = zod.z.object({
|
|
10
|
+
text: zod.z.string().describe("Original input text"),
|
|
11
|
+
abuse: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of problematic content items detected").nullable().optional(),
|
|
12
|
+
memory: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Memory analysis output").nullable().optional(),
|
|
13
|
+
topics: zod.z.array(zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())])).describe("Detected topics as strings or detailed objects").nullable().optional(),
|
|
14
|
+
language: zod.z.string().describe("Detected language code, only present if language identification was invoked").nullable().optional(),
|
|
15
|
+
sentence_list: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Sentence-level analysis results").nullable().optional(),
|
|
16
|
+
entities_summary: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Summary of named entities detected").nullable().optional(),
|
|
17
|
+
sentiment_expressions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Extracted sentiment snippets").nullable().optional()
|
|
18
|
+
}).describe("Response model for `/parse` endpoint. Contains major NLU analysis outputs.");
|
|
19
|
+
const tisaneAnalyzeText = require_action.action("TISANE_ANALYZE_TEXT", {
|
|
20
|
+
slug: "tisane-analyze-text",
|
|
21
|
+
name: "Analyze Text",
|
|
22
|
+
description: "Tool to analyze input text for detailed NLU insights. Use after preparing text when you need to detect sentiment, entities, topics, and other linguistic features.",
|
|
23
|
+
input: TisaneAnalyzeTextInput,
|
|
24
|
+
output: TisaneAnalyzeTextOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.tisaneAnalyzeText = tisaneAnalyzeText;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=analyze-text.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-text.cjs","names":["z","action"],"sources":["../../src/actions/analyze-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneAnalyzeTextInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"Text content to be analyzed\"),\n language: z.string().describe(\"IETF BCP-47 language tag for the input text\"),\n settings: z.record(z.string(), z.unknown()).describe(\"Optional analysis settings. Empty dict for defaults (see Tisane API Configuration Guide).\").optional(),\n}).describe(\"Request model for the Tisane `/parse` (analyze text) endpoint.\");\nexport const TisaneAnalyzeTextOutput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Original input text\"),\n abuse: z.array(z.record(z.string(), z.unknown())).describe(\"List of problematic content items detected\").nullable().optional(),\n memory: z.record(z.string(), z.unknown()).describe(\"Memory analysis output\").nullable().optional(),\n topics: z.array(z.union([z.string(), z.record(z.string(), z.unknown())])).describe(\"Detected topics as strings or detailed objects\").nullable().optional(),\n language: z.string().describe(\"Detected language code, only present if language identification was invoked\").nullable().optional(),\n sentence_list: z.array(z.record(z.string(), z.unknown())).describe(\"Sentence-level analysis results\").nullable().optional(),\n entities_summary: z.array(z.record(z.string(), z.unknown())).describe(\"Summary of named entities detected\").nullable().optional(),\n sentiment_expressions: z.array(z.record(z.string(), z.unknown())).describe(\"Extracted sentiment snippets\").nullable().optional(),\n}).describe(\"Response model for `/parse` endpoint. Contains major NLU analysis outputs.\");\n\nexport const tisaneAnalyzeText = action(\"TISANE_ANALYZE_TEXT\", {\n slug: \"tisane-analyze-text\",\n name: \"Analyze Text\",\n description: \"Tool to analyze input text for detailed NLU insights. Use after preparing text when you need to detect sentiment, entities, topics, and other linguistic features.\",\n input: TisaneAnalyzeTextInput,\n output: TisaneAnalyzeTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,4EAA4E;AAExF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,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/analyze-text.d.ts
|
|
4
|
+
declare const TisaneAnalyzeTextInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneAnalyzeTextOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneAnalyzeText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneAnalyzeText };
|
|
9
|
+
//# sourceMappingURL=analyze-text.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-text.d.cts","names":[],"sources":["../../src/actions/analyze-text.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIsC;AAAA,cAChE,uBAAA,EAAyB,CAAA,CAAE,UASiD;AAAA,cAE5E,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/analyze-text.d.ts
|
|
4
|
+
declare const TisaneAnalyzeTextInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneAnalyzeTextOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneAnalyzeText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneAnalyzeText };
|
|
9
|
+
//# sourceMappingURL=analyze-text.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-text.d.mts","names":[],"sources":["../../src/actions/analyze-text.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIsC;AAAA,cAChE,uBAAA,EAAyB,CAAA,CAAE,UASiD;AAAA,cAE5E,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const tisaneAnalyzeText = action("TISANE_ANALYZE_TEXT", {
|
|
4
|
+
slug: "tisane-analyze-text",
|
|
5
|
+
name: "Analyze Text",
|
|
6
|
+
description: "Tool to analyze input text for detailed NLU insights. Use after preparing text when you need to detect sentiment, entities, topics, and other linguistic features.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
content: z.string().describe("Text content to be analyzed"),
|
|
9
|
+
language: z.string().describe("IETF BCP-47 language tag for the input text"),
|
|
10
|
+
settings: z.record(z.string(), z.unknown()).describe("Optional analysis settings. Empty dict for defaults (see Tisane API Configuration Guide).").optional()
|
|
11
|
+
}).describe("Request model for the Tisane `/parse` (analyze text) endpoint."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
text: z.string().describe("Original input text"),
|
|
14
|
+
abuse: z.array(z.record(z.string(), z.unknown())).describe("List of problematic content items detected").nullable().optional(),
|
|
15
|
+
memory: z.record(z.string(), z.unknown()).describe("Memory analysis output").nullable().optional(),
|
|
16
|
+
topics: z.array(z.union([z.string(), z.record(z.string(), z.unknown())])).describe("Detected topics as strings or detailed objects").nullable().optional(),
|
|
17
|
+
language: z.string().describe("Detected language code, only present if language identification was invoked").nullable().optional(),
|
|
18
|
+
sentence_list: z.array(z.record(z.string(), z.unknown())).describe("Sentence-level analysis results").nullable().optional(),
|
|
19
|
+
entities_summary: z.array(z.record(z.string(), z.unknown())).describe("Summary of named entities detected").nullable().optional(),
|
|
20
|
+
sentiment_expressions: z.array(z.record(z.string(), z.unknown())).describe("Extracted sentiment snippets").nullable().optional()
|
|
21
|
+
}).describe("Response model for `/parse` endpoint. Contains major NLU analysis outputs.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { tisaneAnalyzeText };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=analyze-text.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze-text.mjs","names":[],"sources":["../../src/actions/analyze-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneAnalyzeTextInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"Text content to be analyzed\"),\n language: z.string().describe(\"IETF BCP-47 language tag for the input text\"),\n settings: z.record(z.string(), z.unknown()).describe(\"Optional analysis settings. Empty dict for defaults (see Tisane API Configuration Guide).\").optional(),\n}).describe(\"Request model for the Tisane `/parse` (analyze text) endpoint.\");\nexport const TisaneAnalyzeTextOutput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Original input text\"),\n abuse: z.array(z.record(z.string(), z.unknown())).describe(\"List of problematic content items detected\").nullable().optional(),\n memory: z.record(z.string(), z.unknown()).describe(\"Memory analysis output\").nullable().optional(),\n topics: z.array(z.union([z.string(), z.record(z.string(), z.unknown())])).describe(\"Detected topics as strings or detailed objects\").nullable().optional(),\n language: z.string().describe(\"Detected language code, only present if language identification was invoked\").nullable().optional(),\n sentence_list: z.array(z.record(z.string(), z.unknown())).describe(\"Sentence-level analysis results\").nullable().optional(),\n entities_summary: z.array(z.record(z.string(), z.unknown())).describe(\"Summary of named entities detected\").nullable().optional(),\n sentiment_expressions: z.array(z.record(z.string(), z.unknown())).describe(\"Extracted sentiment snippets\").nullable().optional(),\n}).describe(\"Response model for `/parse` endpoint. Contains major NLU analysis outputs.\");\n\nexport const tisaneAnalyzeText = action(\"TISANE_ANALYZE_TEXT\", {\n slug: \"tisane-analyze-text\",\n name: \"Analyze Text\",\n description: \"Tool to analyze input text for detailed NLU insights. Use after preparing text when you need to detect sentiment, entities, topics, and other linguistic features.\",\n input: TisaneAnalyzeTextInput,\n output: TisaneAnalyzeTextOutput,\n});\n"],"mappings":";;AAoBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBkD,EAAE,OAAO;EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC7J,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,uBAAuB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,SAAS,4EAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/calculate-similarity.ts
|
|
4
|
+
const TisaneCalculateSimilarityInput = zod.z.object({
|
|
5
|
+
content1: zod.z.string().describe("First text fragment to compare."),
|
|
6
|
+
content2: zod.z.string().describe("Second text fragment to compare."),
|
|
7
|
+
settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional settings for similarity calculation, leave empty for defaults.").optional(),
|
|
8
|
+
language1: zod.z.string().describe("IETF language code for content1 (e.g., 'en')."),
|
|
9
|
+
language2: zod.z.string().describe("IETF language code for content2 (e.g., 'en').")
|
|
10
|
+
});
|
|
11
|
+
const TisaneCalculateSimilarityOutput = zod.z.object({ similarity: zod.z.number().describe("Semantic similarity score between 0.0 and 1.0.") });
|
|
12
|
+
const tisaneCalculateSimilarity = require_action.action("TISANE_CALCULATE_SIMILARITY", {
|
|
13
|
+
slug: "tisane-calculate-similarity",
|
|
14
|
+
name: "Calculate Semantic Similarity",
|
|
15
|
+
description: "Tool to calculate semantic similarity between two text fragments. Use when you need a numeric similarity score (0-1) for two texts.",
|
|
16
|
+
input: TisaneCalculateSimilarityInput,
|
|
17
|
+
output: TisaneCalculateSimilarityOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.tisaneCalculateSimilarity = tisaneCalculateSimilarity;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=calculate-similarity.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-similarity.cjs","names":["z","action"],"sources":["../../src/actions/calculate-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneCalculateSimilarityInput: z.ZodTypeAny = z.object({\n content1: z.string().describe(\"First text fragment to compare.\"),\n content2: z.string().describe(\"Second text fragment to compare.\"),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for similarity calculation, leave empty for defaults.\").optional(),\n language1: z.string().describe(\"IETF language code for content1 (e.g., 'en').\"),\n language2: z.string().describe(\"IETF language code for content2 (e.g., 'en').\"),\n});\nexport const TisaneCalculateSimilarityOutput: z.ZodTypeAny = z.object({\n similarity: z.number().describe(\"Semantic similarity score between 0.0 and 1.0.\"),\n});\n\nexport const tisaneCalculateSimilarity = action(\"TISANE_CALCULATE_SIMILARITY\", {\n slug: \"tisane-calculate-similarity\",\n name: \"Calculate Semantic Similarity\",\n description: \"Tool to calculate semantic similarity between two text fragments. Use when you need a numeric similarity score (0-1) for two texts.\",\n input: TisaneCalculateSimilarityInput,\n output: TisaneCalculateSimilarityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC3I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,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/calculate-similarity.d.ts
|
|
4
|
+
declare const TisaneCalculateSimilarityInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneCalculateSimilarityOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneCalculateSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneCalculateSimilarity };
|
|
9
|
+
//# sourceMappingURL=calculate-similarity.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-similarity.d.cts","names":[],"sources":["../../src/actions/calculate-similarity.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAM7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/calculate-similarity.d.ts
|
|
4
|
+
declare const TisaneCalculateSimilarityInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneCalculateSimilarityOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneCalculateSimilarity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneCalculateSimilarity };
|
|
9
|
+
//# sourceMappingURL=calculate-similarity.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-similarity.d.mts","names":[],"sources":["../../src/actions/calculate-similarity.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAM7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const tisaneCalculateSimilarity = action("TISANE_CALCULATE_SIMILARITY", {
|
|
4
|
+
slug: "tisane-calculate-similarity",
|
|
5
|
+
name: "Calculate Semantic Similarity",
|
|
6
|
+
description: "Tool to calculate semantic similarity between two text fragments. Use when you need a numeric similarity score (0-1) for two texts.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
content1: z.string().describe("First text fragment to compare."),
|
|
9
|
+
content2: z.string().describe("Second text fragment to compare."),
|
|
10
|
+
settings: z.record(z.string(), z.unknown()).describe("Additional settings for similarity calculation, leave empty for defaults.").optional(),
|
|
11
|
+
language1: z.string().describe("IETF language code for content1 (e.g., 'en')."),
|
|
12
|
+
language2: z.string().describe("IETF language code for content2 (e.g., 'en').")
|
|
13
|
+
}),
|
|
14
|
+
output: z.object({ similarity: z.number().describe("Semantic similarity score between 0.0 and 1.0.") })
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { tisaneCalculateSimilarity };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=calculate-similarity.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-similarity.mjs","names":[],"sources":["../../src/actions/calculate-similarity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneCalculateSimilarityInput: z.ZodTypeAny = z.object({\n content1: z.string().describe(\"First text fragment to compare.\"),\n content2: z.string().describe(\"Second text fragment to compare.\"),\n settings: z.record(z.string(), z.unknown()).describe(\"Additional settings for similarity calculation, leave empty for defaults.\").optional(),\n language1: z.string().describe(\"IETF language code for content1 (e.g., 'en').\"),\n language2: z.string().describe(\"IETF language code for content2 (e.g., 'en').\"),\n});\nexport const TisaneCalculateSimilarityOutput: z.ZodTypeAny = z.object({\n similarity: z.number().describe(\"Semantic similarity score between 0.0 and 1.0.\"),\n});\n\nexport const tisaneCalculateSimilarity = action(\"TISANE_CALCULATE_SIMILARITY\", {\n slug: \"tisane-calculate-similarity\",\n name: \"Calculate Semantic Similarity\",\n description: \"Tool to calculate semantic similarity between two text fragments. Use when you need a numeric similarity score (0-1) for two texts.\",\n input: TisaneCalculateSimilarityInput,\n output: TisaneCalculateSimilarityOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf0D,EAAE,OAAO;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAChE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAC3I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,CASS;CACP,QAT2D,EAAE,OAAO,EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAClF,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/compare-entities.ts
|
|
4
|
+
const TisaneCompareEntitiesInput = zod.z.object({
|
|
5
|
+
type: zod.z.enum(["person"]).describe("The entity type to compare. Currently only 'person' is supported."),
|
|
6
|
+
entity1: zod.z.string().describe("The first entity to compare."),
|
|
7
|
+
entity2: zod.z.string().describe("The second entity to compare."),
|
|
8
|
+
language1: zod.z.string().describe("IETF language tag for the first entity (e.g., 'en', 'fr')."),
|
|
9
|
+
language2: zod.z.string().describe("IETF language tag for the second entity (e.g., 'en', 'fr').")
|
|
10
|
+
});
|
|
11
|
+
const TisaneCompareEntities_ComparisonResultSchema = zod.z.enum([
|
|
12
|
+
"no_single_entity",
|
|
13
|
+
"same",
|
|
14
|
+
"different"
|
|
15
|
+
]).describe("Result of entity comparison.");
|
|
16
|
+
const TisaneCompareEntitiesOutput = zod.z.object({
|
|
17
|
+
result: TisaneCompareEntities_ComparisonResultSchema.nullable(),
|
|
18
|
+
differences: zod.z.array(zod.z.string()).describe("List of detected differences: given_name, surname, title, social_role, suffix, variation. Only present when result is 'different'.").nullable().optional()
|
|
19
|
+
});
|
|
20
|
+
const tisaneCompareEntities = require_action.action("TISANE_COMPARE_ENTITIES", {
|
|
21
|
+
slug: "tisane-compare-entities",
|
|
22
|
+
name: "Compare Entities",
|
|
23
|
+
description: "Tool to compare two compound named entities and identify differences. Currently only supports person entity type. Use when you need to determine if two person names refer to the same individual or identify specific differences.",
|
|
24
|
+
input: TisaneCompareEntitiesInput,
|
|
25
|
+
output: TisaneCompareEntitiesOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.tisaneCompareEntities = tisaneCompareEntities;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=compare-entities.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-entities.cjs","names":["z","action"],"sources":["../../src/actions/compare-entities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneCompareEntitiesInput: z.ZodTypeAny = z.object({\n type: z.enum([\"person\"]).describe(\"The entity type to compare. Currently only 'person' is supported.\"),\n entity1: z.string().describe(\"The first entity to compare.\"),\n entity2: z.string().describe(\"The second entity to compare.\"),\n language1: z.string().describe(\"IETF language tag for the first entity (e.g., 'en', 'fr').\"),\n language2: z.string().describe(\"IETF language tag for the second entity (e.g., 'en', 'fr').\"),\n});\nconst TisaneCompareEntities_ComparisonResultSchema: z.ZodTypeAny = z.enum([\"no_single_entity\", \"same\", \"different\"]).describe(\"Result of entity comparison.\");\nexport const TisaneCompareEntitiesOutput: z.ZodTypeAny = z.object({\n result: TisaneCompareEntities_ComparisonResultSchema.nullable(),\n differences: z.array(z.string()).describe(\"List of detected differences: given_name, surname, title, social_role, suffix, variation. Only present when result is 'different'.\").nullable().optional(),\n});\n\nexport const tisaneCompareEntities = action(\"TISANE_COMPARE_ENTITIES\", {\n slug: \"tisane-compare-entities\",\n name: \"Compare Entities\",\n description: \"Tool to compare two compound named entities and identify differences. Currently only supports person entity type. Use when you need to determine if two person names refer to the same individual or identify specific differences.\",\n input: TisaneCompareEntitiesInput,\n output: TisaneCompareEntitiesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAC9F,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,KAAK;CAAC;CAAoB;CAAQ;AAAW,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC5J,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQ,6CAA6C,SAAS;CAC9D,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtM,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/compare-entities.d.ts
|
|
4
|
+
declare const TisaneCompareEntitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneCompareEntitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneCompareEntities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneCompareEntities };
|
|
9
|
+
//# sourceMappingURL=compare-entities.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-entities.d.cts","names":[],"sources":["../../src/actions/compare-entities.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMzC;AAAA,cAEW,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/compare-entities.d.ts
|
|
4
|
+
declare const TisaneCompareEntitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneCompareEntitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneCompareEntities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneCompareEntities };
|
|
9
|
+
//# sourceMappingURL=compare-entities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-entities.d.mts","names":[],"sources":["../../src/actions/compare-entities.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMzC;AAAA,cAEW,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/compare-entities.ts
|
|
4
|
+
const TisaneCompareEntitiesInput = z.object({
|
|
5
|
+
type: z.enum(["person"]).describe("The entity type to compare. Currently only 'person' is supported."),
|
|
6
|
+
entity1: z.string().describe("The first entity to compare."),
|
|
7
|
+
entity2: z.string().describe("The second entity to compare."),
|
|
8
|
+
language1: z.string().describe("IETF language tag for the first entity (e.g., 'en', 'fr')."),
|
|
9
|
+
language2: z.string().describe("IETF language tag for the second entity (e.g., 'en', 'fr').")
|
|
10
|
+
});
|
|
11
|
+
const TisaneCompareEntities_ComparisonResultSchema = z.enum([
|
|
12
|
+
"no_single_entity",
|
|
13
|
+
"same",
|
|
14
|
+
"different"
|
|
15
|
+
]).describe("Result of entity comparison.");
|
|
16
|
+
const tisaneCompareEntities = action("TISANE_COMPARE_ENTITIES", {
|
|
17
|
+
slug: "tisane-compare-entities",
|
|
18
|
+
name: "Compare Entities",
|
|
19
|
+
description: "Tool to compare two compound named entities and identify differences. Currently only supports person entity type. Use when you need to determine if two person names refer to the same individual or identify specific differences.",
|
|
20
|
+
input: TisaneCompareEntitiesInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
result: TisaneCompareEntities_ComparisonResultSchema.nullable(),
|
|
23
|
+
differences: z.array(z.string()).describe("List of detected differences: given_name, surname, title, social_role, suffix, variation. Only present when result is 'different'.").nullable().optional()
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { tisaneCompareEntities };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=compare-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-entities.mjs","names":[],"sources":["../../src/actions/compare-entities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneCompareEntitiesInput: z.ZodTypeAny = z.object({\n type: z.enum([\"person\"]).describe(\"The entity type to compare. Currently only 'person' is supported.\"),\n entity1: z.string().describe(\"The first entity to compare.\"),\n entity2: z.string().describe(\"The second entity to compare.\"),\n language1: z.string().describe(\"IETF language tag for the first entity (e.g., 'en', 'fr').\"),\n language2: z.string().describe(\"IETF language tag for the second entity (e.g., 'en', 'fr').\"),\n});\nconst TisaneCompareEntities_ComparisonResultSchema: z.ZodTypeAny = z.enum([\"no_single_entity\", \"same\", \"different\"]).describe(\"Result of entity comparison.\");\nexport const TisaneCompareEntitiesOutput: z.ZodTypeAny = z.object({\n result: TisaneCompareEntities_ComparisonResultSchema.nullable(),\n differences: z.array(z.string()).describe(\"List of detected differences: given_name, surname, title, social_role, suffix, variation. Only present when result is 'different'.\").nullable().optional(),\n});\n\nexport const tisaneCompareEntities = action(\"TISANE_COMPARE_ENTITIES\", {\n slug: \"tisane-compare-entities\",\n name: \"Compare Entities\",\n description: \"Tool to compare two compound named entities and identify differences. Currently only supports person entity type. Use when you need to determine if two person names refer to the same individual or identify specific differences.\",\n input: TisaneCompareEntitiesInput,\n output: TisaneCompareEntitiesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAC9F,CAAC;AACD,MAAM,+CAA6D,EAAE,KAAK;CAAC;CAAoB;CAAQ;AAAW,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAM5J,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,QAAQ,6CAA6C,SAAS;EAC9D,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtM,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/detect-language.ts
|
|
4
|
+
const TisaneDetectLanguageInput = zod.z.object({ text: zod.z.string().describe("The text whose language needs to be detected.") });
|
|
5
|
+
const TisaneDetectLanguageOutput = zod.z.object({
|
|
6
|
+
score: zod.z.number().describe("Confidence score for the detected language, range 0.0 to 1.0."),
|
|
7
|
+
language: zod.z.string().describe("Detected language code, e.g., 'en', 'fr'.")
|
|
8
|
+
});
|
|
9
|
+
const tisaneDetectLanguage = require_action.action("TISANE_DETECT_LANGUAGE", {
|
|
10
|
+
slug: "tisane-detect-language",
|
|
11
|
+
name: "Detect Language",
|
|
12
|
+
description: "Tool to detect the language of the provided text. Use when you need to identify the language code.",
|
|
13
|
+
input: TisaneDetectLanguageInput,
|
|
14
|
+
output: TisaneDetectLanguageOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.tisaneDetectLanguage = tisaneDetectLanguage;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=detect-language.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-language.cjs","names":["z","action"],"sources":["../../src/actions/detect-language.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneDetectLanguageInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text whose language needs to be detected.\"),\n});\nexport const TisaneDetectLanguageOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Confidence score for the detected language, range 0.0 to 1.0.\"),\n language: z.string().describe(\"Detected language code, e.g., 'en', 'fr'.\"),\n});\n\nexport const tisaneDetectLanguage = action(\"TISANE_DETECT_LANGUAGE\", {\n slug: \"tisane-detect-language\",\n name: \"Detect Language\",\n description: \"Tool to detect the language of the provided text. Use when you need to identify the language code.\",\n input: TisaneDetectLanguageInput,\n output: TisaneDetectLanguageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC3E,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/detect-language.d.ts
|
|
4
|
+
declare const TisaneDetectLanguageInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneDetectLanguageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneDetectLanguage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneDetectLanguage };
|
|
9
|
+
//# sourceMappingURL=detect-language.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-language.d.cts","names":[],"sources":["../../src/actions/detect-language.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/detect-language.d.ts
|
|
4
|
+
declare const TisaneDetectLanguageInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneDetectLanguageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneDetectLanguage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneDetectLanguage };
|
|
9
|
+
//# sourceMappingURL=detect-language.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-language.d.mts","names":[],"sources":["../../src/actions/detect-language.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const tisaneDetectLanguage = action("TISANE_DETECT_LANGUAGE", {
|
|
4
|
+
slug: "tisane-detect-language",
|
|
5
|
+
name: "Detect Language",
|
|
6
|
+
description: "Tool to detect the language of the provided text. Use when you need to identify the language code.",
|
|
7
|
+
input: z.object({ text: z.string().describe("The text whose language needs to be detected.") }),
|
|
8
|
+
output: z.object({
|
|
9
|
+
score: z.number().describe("Confidence score for the detected language, range 0.0 to 1.0."),
|
|
10
|
+
language: z.string().describe("Detected language code, e.g., 'en', 'fr'.")
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { tisaneDetectLanguage };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=detect-language.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-language.mjs","names":[],"sources":["../../src/actions/detect-language.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneDetectLanguageInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text whose language needs to be detected.\"),\n});\nexport const TisaneDetectLanguageOutput: z.ZodTypeAny = z.object({\n score: z.number().describe(\"Confidence score for the detected language, range 0.0 to 1.0.\"),\n language: z.string().describe(\"Detected language code, e.g., 'en', 'fr'.\"),\n});\n\nexport const tisaneDetectLanguage = action(\"TISANE_DETECT_LANGUAGE\", {\n slug: \"tisane-detect-language\",\n name: \"Detect Language\",\n description: \"Tool to detect the language of the provided text. Use when you need to identify the language code.\",\n input: TisaneDetectLanguageInput,\n output: TisaneDetectLanguageOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC3E,CAUS;CACP,QAVsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/extract-text.ts
|
|
4
|
+
const TisaneExtractTextInput = zod.z.object({ content: zod.z.string().describe("The markup (HTML, CSS, JS, JSON) to strip and decode into plain text. Must be UTF-8 text; binary content is not supported.") }).describe("Request schema for extracting text. Contains the raw markup content to clean.");
|
|
5
|
+
const TisaneExtractTextOutput = zod.z.object({ text: zod.z.string().describe("The extracted plain text from the provided content.") }).describe("Response schema for extract text: the cleaned plain text.");
|
|
6
|
+
const tisaneExtractText = require_action.action("TISANE_EXTRACT_TEXT", {
|
|
7
|
+
slug: "tisane-extract-text",
|
|
8
|
+
name: "Extract Text",
|
|
9
|
+
description: "Tool to extract raw text from markup content. Use when cleaning HTML, CSS, JS, or JSON to get pure decoded text. Use after confirming the input is UTF-8 text; this does not process binary content.",
|
|
10
|
+
input: TisaneExtractTextInput,
|
|
11
|
+
output: TisaneExtractTextOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.tisaneExtractText = tisaneExtractText;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=extract-text.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-text.cjs","names":["z","action"],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneExtractTextInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The markup (HTML, CSS, JS, JSON) to strip and decode into plain text. Must be UTF-8 text; binary content is not supported.\"),\n}).describe(\"Request schema for extracting text. Contains the raw markup content to clean.\");\nexport const TisaneExtractTextOutput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The extracted plain text from the provided content.\"),\n}).describe(\"Response schema for extract text: the cleaned plain text.\");\n\nexport const tisaneExtractText = action(\"TISANE_EXTRACT_TEXT\", {\n slug: \"tisane-extract-text\",\n name: \"Extract Text\",\n description: \"Tool to extract raw text from markup content. Use when cleaning HTML, CSS, JS, or JSON to get pure decoded text. Use after confirming the input is UTF-8 text; this does not process binary content.\",\n input: TisaneExtractTextInput,\n output: TisaneExtractTextOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,EAC3J,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACjF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,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-text.d.ts
|
|
4
|
+
declare const TisaneExtractTextInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneExtractTextOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneExtractText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneExtractText };
|
|
9
|
+
//# sourceMappingURL=extract-text.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-text.d.cts","names":[],"sources":["../../src/actions/extract-text.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEqD;AAAA,cAC/E,uBAAA,EAAyB,CAAA,CAAE,UAEgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-text.d.ts
|
|
4
|
+
declare const TisaneExtractTextInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneExtractTextOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneExtractText: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneExtractText };
|
|
9
|
+
//# sourceMappingURL=extract-text.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-text.d.mts","names":[],"sources":["../../src/actions/extract-text.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEqD;AAAA,cAC/E,uBAAA,EAAyB,CAAA,CAAE,UAEgC;AAAA,cAE3D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const tisaneExtractText = action("TISANE_EXTRACT_TEXT", {
|
|
4
|
+
slug: "tisane-extract-text",
|
|
5
|
+
name: "Extract Text",
|
|
6
|
+
description: "Tool to extract raw text from markup content. Use when cleaning HTML, CSS, JS, or JSON to get pure decoded text. Use after confirming the input is UTF-8 text; this does not process binary content.",
|
|
7
|
+
input: z.object({ content: z.string().describe("The markup (HTML, CSS, JS, JSON) to strip and decode into plain text. Must be UTF-8 text; binary content is not supported.") }).describe("Request schema for extracting text. Contains the raw markup content to clean."),
|
|
8
|
+
output: z.object({ text: z.string().describe("The extracted plain text from the provided content.") }).describe("Response schema for extract text: the cleaned plain text.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { tisaneExtractText };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=extract-text.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-text.mjs","names":[],"sources":["../../src/actions/extract-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneExtractTextInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The markup (HTML, CSS, JS, JSON) to strip and decode into plain text. Must be UTF-8 text; binary content is not supported.\"),\n}).describe(\"Request schema for extracting text. Contains the raw markup content to clean.\");\nexport const TisaneExtractTextOutput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The extracted plain text from the provided content.\"),\n}).describe(\"Response schema for extract text: the cleaned plain text.\");\n\nexport const tisaneExtractText = action(\"TISANE_EXTRACT_TEXT\", {\n slug: \"tisane-extract-text\",\n name: \"Extract Text\",\n description: \"Tool to extract raw text from markup content. Use when cleaning HTML, CSS, JS, or JSON to get pure decoded text. Use after confirming the input is UTF-8 text; this does not process binary content.\",\n input: TisaneExtractTextInput,\n output: TisaneExtractTextOutput,\n});\n"],"mappings":";;AAWA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,EAC3J,CAAC,CAAC,CAAC,SAAS,+EASH;CACP,QATmD,EAAE,OAAO,EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACjF,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-family-details.ts
|
|
4
|
+
const TisaneGetFamilyDetailsInput = zod.z.object({ id: zod.z.string().describe("Numeric identifier of the family to retrieve details for") });
|
|
5
|
+
const TisaneGetFamilyDetailsOutput = zod.z.object({
|
|
6
|
+
permId: zod.z.string().describe("Permanent identifier for the family").nullable().optional(),
|
|
7
|
+
wikidata: zod.z.string().describe("Wikidata identifier for the family concept (e.g., 'Q1321123')").nullable().optional(),
|
|
8
|
+
hypernyms: zod.z.array(zod.z.array(zod.z.number())).describe("List of hypernym relationships, each represented as [family_id, distance]").nullable().optional(),
|
|
9
|
+
requestId: zod.z.string().describe("Unique identifier for this API request").nullable().optional(),
|
|
10
|
+
wordnet30: zod.z.string().describe("WordNet 3.0 identifier for the family concept").nullable().optional(),
|
|
11
|
+
definition: zod.z.string().describe("Definition of the family concept").nullable().optional(),
|
|
12
|
+
description: zod.z.string().describe("Brief description or label for the family").nullable().optional()
|
|
13
|
+
}).describe("Response model containing family metadata from Tisane language models.");
|
|
14
|
+
const tisaneGetFamilyDetails = require_action.action("TISANE_GET_FAMILY_DETAILS", {
|
|
15
|
+
slug: "tisane-get-family-details",
|
|
16
|
+
name: "Get Family Details",
|
|
17
|
+
description: "Tool to fetch metadata for a family from Tisane language models, including definition, description, hypernyms, and external references (Wikidata, WordNet). Use when you need detailed information about a specific family concept by its numeric identifier.",
|
|
18
|
+
input: TisaneGetFamilyDetailsInput,
|
|
19
|
+
output: TisaneGetFamilyDetailsOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.tisaneGetFamilyDetails = tisaneGetFamilyDetails;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=get-family-details.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-family-details.cjs","names":["z","action"],"sources":["../../src/actions/get-family-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TisaneGetFamilyDetailsInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Numeric identifier of the family to retrieve details for\"),\n});\nexport const TisaneGetFamilyDetailsOutput: z.ZodTypeAny = z.object({\n permId: z.string().describe(\"Permanent identifier for the family\").nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier for the family concept (e.g., 'Q1321123')\").nullable().optional(),\n hypernyms: z.array(z.array(z.number())).describe(\"List of hypernym relationships, each represented as [family_id, distance]\").nullable().optional(),\n requestId: z.string().describe(\"Unique identifier for this API request\").nullable().optional(),\n wordnet30: z.string().describe(\"WordNet 3.0 identifier for the family concept\").nullable().optional(),\n definition: z.string().describe(\"Definition of the family concept\").nullable().optional(),\n description: z.string().describe(\"Brief description or label for the family\").nullable().optional(),\n}).describe(\"Response model containing family metadata from Tisane language models.\");\n\nexport const tisaneGetFamilyDetails = action(\"TISANE_GET_FAMILY_DETAILS\", {\n slug: \"tisane-get-family-details\",\n name: \"Get Family Details\",\n description: \"Tool to fetch metadata for a family from Tisane language models, including definition, description, hypernyms, and external references (Wikidata, WordNet). Use when you need detailed information about a specific family concept by its numeric identifier.\",\n input: TisaneGetFamilyDetailsInput,\n output: TisaneGetFamilyDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,EACpF,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,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/get-family-details.d.ts
|
|
4
|
+
declare const TisaneGetFamilyDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneGetFamilyDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneGetFamilyDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneGetFamilyDetails };
|
|
9
|
+
//# sourceMappingURL=get-family-details.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-family-details.d.cts","names":[],"sources":["../../src/actions/get-family-details.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAQwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-family-details.d.ts
|
|
4
|
+
declare const TisaneGetFamilyDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const TisaneGetFamilyDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const tisaneGetFamilyDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tisaneGetFamilyDetails };
|
|
9
|
+
//# sourceMappingURL=get-family-details.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-family-details.d.mts","names":[],"sources":["../../src/actions/get-family-details.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAE1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAQwC;AAAA,cAExE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|