@keystrokehq/openperplex 0.1.4 → 0.1.6
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/custom-search-stream.cjs +1 -0
- package/dist/actions/custom-search-stream.cjs.map +1 -1
- package/dist/actions/custom-search-stream.d.cts +3 -12
- package/dist/actions/custom-search-stream.d.cts.map +1 -1
- package/dist/actions/custom-search-stream.d.mts +3 -12
- package/dist/actions/custom-search-stream.d.mts.map +1 -1
- package/dist/actions/custom-search-stream.mjs +1 -0
- package/dist/actions/custom-search-stream.mjs.map +1 -1
- package/dist/actions/custom-search.cjs +1 -0
- package/dist/actions/custom-search.cjs.map +1 -1
- package/dist/actions/custom-search.d.cts +3 -9
- package/dist/actions/custom-search.d.cts.map +1 -1
- package/dist/actions/custom-search.d.mts +3 -9
- package/dist/actions/custom-search.d.mts.map +1 -1
- package/dist/actions/custom-search.mjs +1 -0
- package/dist/actions/custom-search.mjs.map +1 -1
- package/dist/actions/get-website-markdown.cjs +1 -0
- package/dist/actions/get-website-markdown.cjs.map +1 -1
- package/dist/actions/get-website-markdown.d.cts +3 -4
- package/dist/actions/get-website-markdown.d.cts.map +1 -1
- package/dist/actions/get-website-markdown.d.mts +3 -4
- package/dist/actions/get-website-markdown.d.mts.map +1 -1
- package/dist/actions/get-website-markdown.mjs +1 -0
- package/dist/actions/get-website-markdown.mjs.map +1 -1
- package/dist/actions/get-website-screenshot.cjs +1 -0
- package/dist/actions/get-website-screenshot.cjs.map +1 -1
- package/dist/actions/get-website-screenshot.d.cts +3 -6
- package/dist/actions/get-website-screenshot.d.cts.map +1 -1
- package/dist/actions/get-website-screenshot.d.mts +3 -6
- package/dist/actions/get-website-screenshot.d.mts.map +1 -1
- package/dist/actions/get-website-screenshot.mjs +1 -0
- package/dist/actions/get-website-screenshot.mjs.map +1 -1
- package/dist/actions/get-website-text.cjs +1 -0
- package/dist/actions/get-website-text.cjs.map +1 -1
- package/dist/actions/get-website-text.d.cts +3 -6
- package/dist/actions/get-website-text.d.cts.map +1 -1
- package/dist/actions/get-website-text.d.mts +3 -6
- package/dist/actions/get-website-text.d.mts.map +1 -1
- package/dist/actions/get-website-text.mjs +1 -0
- package/dist/actions/get-website-text.mjs.map +1 -1
- package/dist/actions/query-from-url.cjs +1 -0
- package/dist/actions/query-from-url.cjs.map +1 -1
- package/dist/actions/query-from-url.d.cts +4 -8
- package/dist/actions/query-from-url.d.cts.map +1 -1
- package/dist/actions/query-from-url.d.mts +4 -8
- package/dist/actions/query-from-url.d.mts.map +1 -1
- package/dist/actions/query-from-url.mjs +1 -0
- package/dist/actions/query-from-url.mjs.map +1 -1
- package/dist/actions/search-stream.cjs +1 -0
- package/dist/actions/search-stream.cjs.map +1 -1
- package/dist/actions/search-stream.d.cts +4 -14
- package/dist/actions/search-stream.d.cts.map +1 -1
- package/dist/actions/search-stream.d.mts +4 -14
- package/dist/actions/search-stream.d.mts.map +1 -1
- package/dist/actions/search-stream.mjs +1 -0
- package/dist/actions/search-stream.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +4 -14
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +4 -14
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["openperplex","executeOpenperplexTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["openperplex","executeOpenperplexTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof openperplex.credential> {\n return openperplex.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 executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,OAAOA,YAAAA,YAAY,OAAO;EACxB,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,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { openperplex } from \"./app\";\nimport { executeOpenperplexTool } 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof openperplex.credential> {\n return openperplex.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 executeOpenperplexTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search-stream.cjs","names":["z","action"],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream: AppAction<\n typeof OpenperplexCustomSearchStreamInput,\n typeof OpenperplexCustomSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/custom-search-stream.d.ts
|
|
@@ -32,18 +34,7 @@ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>>>;
|
|
33
35
|
response_text: z.ZodNullable<z.ZodString>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const openperplexCustomSearchStream:
|
|
36
|
-
user_prompt: string;
|
|
37
|
-
system_prompt: string;
|
|
38
|
-
model?: string | undefined;
|
|
39
|
-
top_p?: number | undefined;
|
|
40
|
-
location?: string | undefined;
|
|
41
|
-
search_type?: "general" | "news" | undefined;
|
|
42
|
-
temperature?: number | undefined;
|
|
43
|
-
return_images?: boolean | undefined;
|
|
44
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
45
|
-
return_sources?: boolean | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const openperplexCustomSearchStream: AppAction<typeof OpenperplexCustomSearchStreamInput, typeof OpenperplexCustomSearchStreamOutput, typeof openperplex.credential>;
|
|
47
38
|
//#endregion
|
|
48
39
|
export { openperplexCustomSearchStream };
|
|
49
40
|
//# sourceMappingURL=custom-search-stream.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.d.cts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search-stream.d.cts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/custom-search-stream.d.ts
|
|
@@ -32,18 +34,7 @@ declare const OpenperplexCustomSearchStreamOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>>>;
|
|
33
35
|
response_text: z.ZodNullable<z.ZodString>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const openperplexCustomSearchStream:
|
|
36
|
-
user_prompt: string;
|
|
37
|
-
system_prompt: string;
|
|
38
|
-
model?: string | undefined;
|
|
39
|
-
top_p?: number | undefined;
|
|
40
|
-
location?: string | undefined;
|
|
41
|
-
search_type?: "general" | "news" | undefined;
|
|
42
|
-
temperature?: number | undefined;
|
|
43
|
-
return_images?: boolean | undefined;
|
|
44
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
45
|
-
return_sources?: boolean | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const openperplexCustomSearchStream: AppAction<typeof OpenperplexCustomSearchStreamInput, typeof OpenperplexCustomSearchStreamOutput, typeof openperplex.credential>;
|
|
47
38
|
//#endregion
|
|
48
39
|
export { openperplexCustomSearchStream };
|
|
49
40
|
//# sourceMappingURL=custom-search-stream.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.d.mts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search-stream.d.mts","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAiBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search-stream.mjs","names":[],"sources":["../../src/actions/custom-search-stream.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexCustomSearchStreamInput = z.object({\n model: z.string().describe(\"Model to use for the search. Options: 'gpt-4o-mini' (default), 'gpt-4o', 'o3-mini-high', 'o3-mini-medium', 'gemini-2.0-flash'.\").optional(),\n top_p: z.number().describe(\"Top-p for output diversity (0.0-1.0, default 0.9).\").optional(),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n temperature: z.number().describe(\"Temperature for output randomness (0.0-1.0 exclusive, default 0.2).\").optional(),\n user_prompt: z.string().describe(\"User prompt specifying the search query. Be specific as this is used for web search.\"),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\n system_prompt: z.string().describe(\"System prompt defining assistant behavior and response format.\"),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).describe(\"Filter results by recency: 'hour', 'day', 'week', 'month', 'year', or 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Whether to include sources in the response.\").optional(),\n}).describe(\"Parameters for performing a custom streaming search using OpenPerplex API.\\nAllows custom system and user prompts for more specific queries.\");\nconst OpenperplexCustomSearchStream_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source.\").nullable().optional(),\n title: z.string().describe(\"Title of the source.\").nullable().optional(),\n snippet: z.string().describe(\"Snippet or description from the source.\").nullable().optional(),\n}).passthrough().describe(\"A source item from the search results.\");\nexport const OpenperplexCustomSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Response model for custom streaming search.\");\n\nexport const openperplexCustomSearchStream: AppAction<\n typeof OpenperplexCustomSearchStreamInput,\n typeof OpenperplexCustomSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_CUSTOM_SEARCH_STREAM\", {\n slug: \"openperplex-custom-search-stream\",\n name: \"Custom Search Stream\",\n description: \"Tool to perform custom streaming search with custom prompts. Use when you need AI-powered search responses with custom system and user prompts for more specific or tailored queries. Returns aggregated text response along with optional sources and images.\",\n input: OpenperplexCustomSearchStreamInput,\n output: OpenperplexCustomSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACnG,gBAAgB,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAAS;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClL,gBAAgB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAC1J,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAOlE,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfiD,EAAE,OAAO;EAC1D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search.cjs","names":["z","action"],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch: AppAction<\n typeof OpenperplexCustomSearchInput,\n typeof OpenperplexCustomSearchOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/custom-search.d.ts
|
|
@@ -21,15 +23,7 @@ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
|
|
|
21
23
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
22
24
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const openperplexCustomSearch:
|
|
25
|
-
query: string;
|
|
26
|
-
user_prompt: string;
|
|
27
|
-
system_prompt: string;
|
|
28
|
-
size?: number | undefined;
|
|
29
|
-
filter?: Record<string, unknown> | undefined;
|
|
30
|
-
exclude_fields?: string[] | undefined;
|
|
31
|
-
include_fields?: string[] | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const openperplexCustomSearch: AppAction<typeof OpenperplexCustomSearchInput, typeof OpenperplexCustomSearchOutput, typeof openperplex.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { openperplexCustomSearch };
|
|
35
29
|
//# sourceMappingURL=custom-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.d.cts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search.d.cts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/custom-search.d.ts
|
|
@@ -21,15 +23,7 @@ declare const OpenperplexCustomSearchOutput: z.ZodObject<{
|
|
|
21
23
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
22
24
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const openperplexCustomSearch:
|
|
25
|
-
query: string;
|
|
26
|
-
user_prompt: string;
|
|
27
|
-
system_prompt: string;
|
|
28
|
-
size?: number | undefined;
|
|
29
|
-
filter?: Record<string, unknown> | undefined;
|
|
30
|
-
exclude_fields?: string[] | undefined;
|
|
31
|
-
include_fields?: string[] | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const openperplexCustomSearch: AppAction<typeof OpenperplexCustomSearchInput, typeof OpenperplexCustomSearchOutput, typeof openperplex.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { openperplexCustomSearch };
|
|
35
29
|
//# sourceMappingURL=custom-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.d.mts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search.d.mts","names":[],"sources":["../../src/actions/custom-search.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAc5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-search.mjs","names":[],"sources":["../../src/actions/custom-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexCustomSearchInput = z.object({\n size: z.number().int().describe(\"Number of desired results (must be ≥ 1).\").optional(),\n query: z.string().describe(\"The search query string.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply on the search results.\").optional(),\n user_prompt: z.string().describe(\"User prompt for guiding the search.\"),\n system_prompt: z.string().describe(\"System prompt for guiding the search.\"),\n exclude_fields: z.array(z.string()).describe(\"Fields to exclude from results.\").optional(),\n include_fields: z.array(z.string()).describe(\"Fields to include in results.\").optional(),\n}).describe(\"Request model for the CUSTOM_SEARCH action.\");\nconst OpenperplexCustomSearch_SourceItemSchema = z.object({\n url: z.string().describe(\"URL of the source\").nullable().optional(),\n title: z.string().describe(\"Title of the source\").nullable().optional(),\n snippet: z.string().describe(\"Snippet from the source\").nullable().optional(),\n}).passthrough().describe(\"A source item in the search response.\");\nexport const OpenperplexCustomSearchOutput = z.object({\n error: z.string().describe(\"Error message if any error occurred during the search.\").nullable().optional(),\n images: z.array(z.string()).describe(\"List of image URLs found in the search.\").nullable().optional(),\n sources: z.array(OpenperplexCustomSearch_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n llm_response: z.string().describe(\"The LLM-generated response based on the search results.\").nullable(),\n response_time: z.number().describe(\"The time taken to generate the response in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the CUSTOM_SEARCH action.\");\n\nexport const openperplexCustomSearch: AppAction<\n typeof OpenperplexCustomSearchInput,\n typeof OpenperplexCustomSearchOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_CUSTOM_SEARCH\", {\n slug: \"openperplex-custom-search\",\n name: \"Custom Search\",\n description: \"Tool to perform a custom search with optional filtering and field selection. Use when you need tailored results based on query, filters, size, or fields.\",\n input: OpenperplexCustomSearchInput,\n output: OpenperplexCustomSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AASjE,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACtG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-markdown.cjs","names":["z","action"],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown: AppAction<\n typeof OpenperplexGetWebsiteMarkdownInput,\n typeof OpenperplexGetWebsiteMarkdownOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-markdown.d.ts
|
|
@@ -12,10 +14,7 @@ declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
|
|
|
12
14
|
markdown: z.ZodNullable<z.ZodString>;
|
|
13
15
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const openperplexGetWebsiteMarkdown:
|
|
16
|
-
url: string;
|
|
17
|
-
markdown_format?: "gfm" | "commonmark" | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const openperplexGetWebsiteMarkdown: AppAction<typeof OpenperplexGetWebsiteMarkdownInput, typeof OpenperplexGetWebsiteMarkdownOutput, typeof openperplex.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { openperplexGetWebsiteMarkdown };
|
|
21
20
|
//# sourceMappingURL=get-website-markdown.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.d.cts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-markdown.d.cts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-markdown.d.ts
|
|
@@ -12,10 +14,7 @@ declare const OpenperplexGetWebsiteMarkdownOutput: z.ZodObject<{
|
|
|
12
14
|
markdown: z.ZodNullable<z.ZodString>;
|
|
13
15
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const openperplexGetWebsiteMarkdown:
|
|
16
|
-
url: string;
|
|
17
|
-
markdown_format?: "gfm" | "commonmark" | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const openperplexGetWebsiteMarkdown: AppAction<typeof OpenperplexGetWebsiteMarkdownInput, typeof OpenperplexGetWebsiteMarkdownOutput, typeof openperplex.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { openperplexGetWebsiteMarkdown };
|
|
21
20
|
//# sourceMappingURL=get-website-markdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.d.mts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-markdown.d.mts","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;cAIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-markdown.mjs","names":[],"sources":["../../src/actions/get-website-markdown.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteMarkdownInput = z.object({\n url: z.string().describe(\"The full URL of the website to fetch and convert to markdown\"),\n markdown_format: z.enum([\"gfm\", \"commonmark\"]).describe(\"The target markdown standard/format\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_MARKDOWN action.\");\nexport const OpenperplexGetWebsiteMarkdownOutput = z.object({\n markdown: z.string().describe(\"The resulting markdown content of the provided website\").nullable(),\n response_time: z.number().describe(\"The time taken to process the request in seconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_MARKDOWN action.\");\n\nexport const openperplexGetWebsiteMarkdown: AppAction<\n typeof OpenperplexGetWebsiteMarkdownInput,\n typeof OpenperplexGetWebsiteMarkdownOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_MARKDOWN\", {\n slug: \"openperplex-get-website-markdown\",\n name: \"Get Website Markdown\",\n description: \"Tool to retrieve the markdown content of a specified website. Use after confirming the URL. Supports optional formats like 'gfm' or 'commonmark'.\",\n input: OpenperplexGetWebsiteMarkdownInput,\n output: OpenperplexGetWebsiteMarkdownOutput,\n});\n"],"mappings":";;;AAeA,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACvF,iBAAiB,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,iDAcH;CACP,QAdiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot: AppAction<\n typeof OpenperplexGetWebsiteScreenshotInput,\n typeof OpenperplexGetWebsiteScreenshotOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-screenshot.d.ts
|
|
@@ -11,12 +13,7 @@ declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
|
|
|
11
13
|
url: z.ZodNullable<z.ZodString>;
|
|
12
14
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const openperplexGetWebsiteScreenshot:
|
|
15
|
-
url: string;
|
|
16
|
-
full_page?: boolean | undefined;
|
|
17
|
-
viewport_width?: number | undefined;
|
|
18
|
-
viewport_height?: number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const openperplexGetWebsiteScreenshot: AppAction<typeof OpenperplexGetWebsiteScreenshotInput, typeof OpenperplexGetWebsiteScreenshotOutput, typeof openperplex.credential>;
|
|
20
17
|
//#endregion
|
|
21
18
|
export { openperplexGetWebsiteScreenshot };
|
|
22
19
|
//# sourceMappingURL=get-website-screenshot.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.d.cts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.d.cts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cAMpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-screenshot.d.ts
|
|
@@ -11,12 +13,7 @@ declare const OpenperplexGetWebsiteScreenshotOutput: z.ZodObject<{
|
|
|
11
13
|
url: z.ZodNullable<z.ZodString>;
|
|
12
14
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const openperplexGetWebsiteScreenshot:
|
|
15
|
-
url: string;
|
|
16
|
-
full_page?: boolean | undefined;
|
|
17
|
-
viewport_width?: number | undefined;
|
|
18
|
-
viewport_height?: number | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const openperplexGetWebsiteScreenshot: AppAction<typeof OpenperplexGetWebsiteScreenshotInput, typeof OpenperplexGetWebsiteScreenshotOutput, typeof openperplex.credential>;
|
|
20
17
|
//#endregion
|
|
21
18
|
export { openperplexGetWebsiteScreenshot };
|
|
22
19
|
//# sourceMappingURL=get-website-screenshot.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.d.mts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.d.mts","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;cAMpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-screenshot.mjs","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-screenshot.mjs","names":[],"sources":["../../src/actions/get-website-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteScreenshotInput = z.object({\n url: z.string().describe(\"The website URL to capture.\"),\n full_page: z.boolean().default(false).describe(\"Whether to capture the entire scrollable page.\").optional(),\n viewport_width: z.number().int().describe(\"Width of the browser viewport in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Height of the browser viewport in pixels.\").optional(),\n}).describe(\"Request schema for GET_WEBSITE_SCREENSHOT.\");\nexport const OpenperplexGetWebsiteScreenshotOutput = z.object({\n url: z.string().describe(\"The URL to the screenshot image stored in cloud storage.\").nullable(),\n response_time: z.number().describe(\"The time taken to capture the screenshot in seconds.\").nullable(),\n}).passthrough().describe(\"Response schema for GET_WEBSITE_SCREENSHOT.\");\n\nexport const openperplexGetWebsiteScreenshot: AppAction<\n typeof OpenperplexGetWebsiteScreenshotInput,\n typeof OpenperplexGetWebsiteScreenshotOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_SCREENSHOT\", {\n slug: \"openperplex-get-website-screenshot\",\n name: \"Get Website Screenshot\",\n description: \"Tool to capture a screenshot of a website. Use after confirming the target URL is reachable.\",\n input: OpenperplexGetWebsiteScreenshotInput,\n output: OpenperplexGetWebsiteScreenshotOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,kCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACtD,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,4CAcH;CACP,QAdmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.cjs","names":["z","action"],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.cjs","names":["z","action"],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText: AppAction<\n typeof OpenperplexGetWebsiteTextInput,\n typeof OpenperplexGetWebsiteTextOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-text.d.ts
|
|
@@ -15,12 +17,7 @@ declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
|
15
17
|
text: z.ZodNullable<z.ZodString>;
|
|
16
18
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openperplexGetWebsiteText:
|
|
19
|
-
url: string;
|
|
20
|
-
clean?: boolean | undefined;
|
|
21
|
-
max_length?: number | undefined;
|
|
22
|
-
return_type?: "markdown" | "html" | "plain" | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const openperplexGetWebsiteText: AppAction<typeof OpenperplexGetWebsiteTextInput, typeof OpenperplexGetWebsiteTextOutput, typeof openperplex.credential>;
|
|
24
21
|
//#endregion
|
|
25
22
|
export { openperplexGetWebsiteText };
|
|
26
23
|
//# sourceMappingURL=get-website-text.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.d.cts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.d.cts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openperplex } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-website-text.d.ts
|
|
@@ -15,12 +17,7 @@ declare const OpenperplexGetWebsiteTextOutput: z.ZodObject<{
|
|
|
15
17
|
text: z.ZodNullable<z.ZodString>;
|
|
16
18
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openperplexGetWebsiteText:
|
|
19
|
-
url: string;
|
|
20
|
-
clean?: boolean | undefined;
|
|
21
|
-
max_length?: number | undefined;
|
|
22
|
-
return_type?: "markdown" | "html" | "plain" | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const openperplexGetWebsiteText: AppAction<typeof OpenperplexGetWebsiteTextInput, typeof OpenperplexGetWebsiteTextOutput, typeof openperplex.credential>;
|
|
24
21
|
//#endregion
|
|
25
22
|
export { openperplexGetWebsiteText };
|
|
26
23
|
//# sourceMappingURL=get-website-text.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.d.mts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.d.mts","names":[],"sources":["../../src/actions/get-website-text.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAM9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-website-text.mjs","names":[],"sources":["../../src/actions/get-website-text.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexGetWebsiteTextInput = z.object({\n url: z.string().describe(\"The URL of the web page to extract text from.\"),\n clean: z.boolean().default(false).describe(\"If true, returns cleaner and more concise text.\").optional(),\n max_length: z.number().int().describe(\"Maximum number of characters to extract.\").optional(),\n return_type: z.enum([\"plain\", \"html\", \"markdown\"]).default(\"plain\").describe(\"Format of the returned text: 'plain', 'html', or 'markdown'.\").optional(),\n}).describe(\"Parameters for extracting text from a website.\");\nexport const OpenperplexGetWebsiteTextOutput = z.object({\n text: z.string().describe(\"Extracted main text content from the web page.\").nullable(),\n response_time: z.number().describe(\"Time taken to process the request in seconds.\").nullable().optional(),\n}).passthrough();\n\nexport const openperplexGetWebsiteText: AppAction<\n typeof OpenperplexGetWebsiteTextInput,\n typeof OpenperplexGetWebsiteTextOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_GET_WEBSITE_TEXT\", {\n slug: \"openperplex-get-website-text\",\n name: \"Get Website Text\",\n description: \"Tool to retrieve the main text content of a specified website URL. Use when you need content extraction from online articles or pages. Use after confirming the URL is publicly accessible.\",\n input: OpenperplexGetWebsiteTextInput,\n output: OpenperplexGetWebsiteTextOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACxE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,KAAK;GAAC;GAAS;GAAQ;EAAU,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,gDAcH;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.cjs","names":["z","action"],"sources":["../../src/actions/query-from-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openperplex } from \"../app\";\n\nexport const OpenperplexQueryFromUrlInput = z.object({\n url: z.string().describe(\"The URL of the website you want to interact with.\"),\n model: z.string().describe(\"LLM model to use. Options: o3-mini-high, o3-mini-medium, gpt-4o, gpt-4o-mini, gemini-2.0-flash. Default is gpt-4o-mini.\").optional(),\n query: z.string().describe(\"The question you want to ask about the content at the URL.\"),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'. Default is 'text'.\").optional(),\n response_language: z.string().describe(\"Language code for the response. 'auto' will auto-detect based on the query. Supported: auto, en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Input parameters for querying content from a URL.\");\nexport const OpenperplexQueryFromUrlOutput = z.object({\n llm_response: z.string().describe(\"The LLM-generated response to the query based on the URL content.\").nullable(),\n response_time: z.number().describe(\"Time taken to generate the response in seconds.\").nullable(),\n}).passthrough().describe(\"Response model containing the LLM-generated answer from the URL content.\");\n\nexport const openperplexQueryFromUrl: AppAction<\n typeof OpenperplexQueryFromUrlInput,\n typeof OpenperplexQueryFromUrlOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_QUERY_FROM_URL\", {\n slug: \"openperplex-query-from-url\",\n name: \"Query from URL\",\n description: \"Tool to query documents from a URL. Use when you need to fetch and interrogate web-hosted content with a natural language question.\",\n input: OpenperplexQueryFromUrlInput,\n output: OpenperplexQueryFromUrlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CAC/J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;AAC1M,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|