@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
|
@@ -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/query-from-url.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
8
|
model: z.ZodOptional<z.ZodString>;
|
|
7
9
|
query: z.ZodString;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>;
|
|
13
15
|
response_language: z.ZodOptional<z.ZodString>;
|
|
@@ -16,13 +18,7 @@ declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
|
16
18
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
19
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const openperplexQueryFromUrl:
|
|
20
|
-
url: string;
|
|
21
|
-
query: string;
|
|
22
|
-
model?: string | undefined;
|
|
23
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
24
|
-
response_language?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const openperplexQueryFromUrl: AppAction<typeof OpenperplexQueryFromUrlInput, typeof OpenperplexQueryFromUrlOutput, typeof openperplex.credential>;
|
|
26
22
|
//#endregion
|
|
27
23
|
export { openperplexQueryFromUrl };
|
|
28
24
|
//# sourceMappingURL=query-from-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.d.cts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.d.cts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,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/query-from-url.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexQueryFromUrlInput: z.ZodObject<{
|
|
|
6
8
|
model: z.ZodOptional<z.ZodString>;
|
|
7
9
|
query: z.ZodString;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>;
|
|
13
15
|
response_language: z.ZodOptional<z.ZodString>;
|
|
@@ -16,13 +18,7 @@ declare const OpenperplexQueryFromUrlOutput: z.ZodObject<{
|
|
|
16
18
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
17
19
|
response_time: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const openperplexQueryFromUrl:
|
|
20
|
-
url: string;
|
|
21
|
-
query: string;
|
|
22
|
-
model?: string | undefined;
|
|
23
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
24
|
-
response_language?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const openperplexQueryFromUrl: AppAction<typeof OpenperplexQueryFromUrlInput, typeof OpenperplexQueryFromUrlOutput, typeof openperplex.credential>;
|
|
26
22
|
//#endregion
|
|
27
23
|
export { openperplexQueryFromUrl };
|
|
28
24
|
//# sourceMappingURL=query-from-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.d.mts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-from-url.d.mts","names":[],"sources":["../../src/actions/query-from-url.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-from-url.mjs","names":[],"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.mjs","names":[],"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":";;;AAkBA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;EAC/J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,aAAa,EAAE,KAAK;GAAC;GAAQ;GAAY;EAAM,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EACxJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC1M,CAAC,CAAC,CAAC,SAAS,mDAcH;CACP,QAd2C,EAAE,OAAO;EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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 OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.cjs","names":["z","action"],"sources":["../../src/actions/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 OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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 OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream: AppAction<\n typeof OpenperplexSearchStreamInput,\n typeof OpenperplexSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,KA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,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,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/search-stream.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -38,19 +40,7 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
38
40
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
41
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const openperplexSearchStream:
|
|
42
|
-
query: string;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
location?: string | undefined;
|
|
45
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
46
|
-
search_type?: "general" | "news" | undefined;
|
|
47
|
-
date_context?: string | undefined;
|
|
48
|
-
return_images?: boolean | undefined;
|
|
49
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
50
|
-
return_sources?: boolean | undefined;
|
|
51
|
-
return_citations?: boolean | undefined;
|
|
52
|
-
response_language?: string | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const openperplexSearchStream: AppAction<typeof OpenperplexSearchStreamInput, typeof OpenperplexSearchStreamOutput, typeof openperplex.credential>;
|
|
54
44
|
//#endregion
|
|
55
45
|
export { openperplexSearchStream };
|
|
56
46
|
//# sourceMappingURL=search-stream.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.d.cts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.d.cts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAO7B,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/search-stream.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexSearchStreamInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -38,19 +40,7 @@ declare const OpenperplexSearchStreamOutput: z.ZodObject<{
|
|
|
38
40
|
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
39
41
|
response_text: z.ZodNullable<z.ZodString>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const openperplexSearchStream:
|
|
42
|
-
query: string;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
location?: string | undefined;
|
|
45
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
46
|
-
search_type?: "general" | "news" | undefined;
|
|
47
|
-
date_context?: string | undefined;
|
|
48
|
-
return_images?: boolean | undefined;
|
|
49
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
50
|
-
return_sources?: boolean | undefined;
|
|
51
|
-
return_citations?: boolean | undefined;
|
|
52
|
-
response_language?: string | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const openperplexSearchStream: AppAction<typeof OpenperplexSearchStreamInput, typeof OpenperplexSearchStreamOutput, typeof openperplex.credential>;
|
|
54
44
|
//#endregion
|
|
55
45
|
export { openperplexSearchStream };
|
|
56
46
|
//# sourceMappingURL=search-stream.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.d.mts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.d.mts","names":[],"sources":["../../src/actions/search-stream.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/search-stream.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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 OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-stream.mjs","names":[],"sources":["../../src/actions/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 OpenperplexSearchStreamInput = 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 query: z.string().describe(\"Search query string.\"),\n location: z.string().default(\"us\").describe(\"Two-letter country code for localized results, e.g., 'us', 'uk', 'fr', 'de', 'jp'.\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date context string, e.g., 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. Uses server date if not provided.\").optional(),\n return_images: z.boolean().default(false).describe(\"Whether to include images in the response.\").optional(),\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 return_citations: z.boolean().default(false).describe(\"Whether to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for response. 'auto' auto-detects based on query. Options: en, fr, es, de, it, pt, nl, ja, ko, zh, ar, ru, tr, hi.\").optional(),\n}).describe(\"Parameters for streaming search using OpenPerplex API.\");\nconst OpenperplexSearchStream_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 OpenperplexSearchStreamOutput = z.object({\n images: z.array(z.string()).describe(\"List of image URLs if return_images was enabled.\").nullable().optional(),\n sources: z.array(OpenperplexSearchStream_SourceItemSchema).describe(\"List of sources used to generate the response.\").nullable().optional(),\n citations: z.array(z.string()).describe(\"List of citations if return_citations was enabled.\").nullable().optional(),\n response_text: z.string().describe(\"The full response text aggregated from LLM streaming chunks.\").nullable(),\n}).passthrough().describe(\"Aggregated response for streaming search.\");\n\nexport const openperplexSearchStream: AppAction<\n typeof OpenperplexSearchStreamInput,\n typeof OpenperplexSearchStreamOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH_STREAM\", {\n slug: \"openperplex-search-stream\",\n name: \"Search Stream\",\n description: \"Tool to stream search results from OpenPerplex. Use when real-time AI-powered search responses are needed. Returns aggregated text response along with optional sources, images, and citations.\",\n input: OpenperplexSearchStreamInput,\n output: OpenperplexSearchStreamOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACtK,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,UAAU,EAAE,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AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB2C,EAAE,OAAO;EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
package/dist/actions/search.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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 OpenperplexSearchOutput = 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(OpenperplexSearch_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 a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/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 OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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 OpenperplexSearchOutput = 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(OpenperplexSearch_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 a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch: AppAction<\n typeof OpenperplexSearchInput,\n typeof OpenperplexSearchOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAClI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;CAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrJ,aAAaA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACvN,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAQ;EAA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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,iEAAiE;AAE3F,MAAa,oBAITC,eAAAA,OAAO,sBAAsB;CAC/B,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/search.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -39,19 +41,7 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
39
41
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
42
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const openperplexSearch:
|
|
43
|
-
query: string;
|
|
44
|
-
model?: string | undefined;
|
|
45
|
-
location?: string | undefined;
|
|
46
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
47
|
-
search_type?: "general" | "news" | undefined;
|
|
48
|
-
date_context?: string | undefined;
|
|
49
|
-
return_images?: boolean | undefined;
|
|
50
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
51
|
-
return_sources?: boolean | undefined;
|
|
52
|
-
return_citations?: boolean | undefined;
|
|
53
|
-
response_language?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const openperplexSearch: AppAction<typeof OpenperplexSearchInput, typeof OpenperplexSearchOutput, typeof openperplex.credential>;
|
|
55
45
|
//#endregion
|
|
56
46
|
export { openperplexSearch };
|
|
57
47
|
//# sourceMappingURL=search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.cts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/search.d.ts
|
|
@@ -6,8 +8,8 @@ declare const OpenperplexSearchInput: z.ZodObject<{
|
|
|
6
8
|
query: z.ZodString;
|
|
7
9
|
location: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8
10
|
answer_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
markdown: "markdown";
|
|
10
11
|
text: "text";
|
|
12
|
+
markdown: "markdown";
|
|
11
13
|
html: "html";
|
|
12
14
|
}>>>;
|
|
13
15
|
search_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -39,19 +41,7 @@ declare const OpenperplexSearchOutput: z.ZodObject<{
|
|
|
39
41
|
llm_response: z.ZodNullable<z.ZodString>;
|
|
40
42
|
response_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const openperplexSearch:
|
|
43
|
-
query: string;
|
|
44
|
-
model?: string | undefined;
|
|
45
|
-
location?: string | undefined;
|
|
46
|
-
answer_type?: "markdown" | "text" | "html" | undefined;
|
|
47
|
-
search_type?: "general" | "news" | undefined;
|
|
48
|
-
date_context?: string | undefined;
|
|
49
|
-
return_images?: boolean | undefined;
|
|
50
|
-
recency_filter?: "hour" | "day" | "week" | "month" | "year" | "anytime" | undefined;
|
|
51
|
-
return_sources?: boolean | undefined;
|
|
52
|
-
return_citations?: boolean | undefined;
|
|
53
|
-
response_language?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const openperplexSearch: AppAction<typeof OpenperplexSearchInput, typeof OpenperplexSearchOutput, typeof openperplex.credential>;
|
|
55
45
|
//#endregion
|
|
56
46
|
export { openperplexSearch };
|
|
57
47
|
//# sourceMappingURL=search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../src/actions/search.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,WAAA,CAAY,UAAA"}
|
package/dist/actions/search.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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 OpenperplexSearchOutput = 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(OpenperplexSearch_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 a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../src/actions/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 OpenperplexSearchInput = z.object({\n model: z.string().default(\"gpt-4o-mini\").describe(\"Model to use for generating responses. Options: 'o3-mini-high', 'o3-mini-medium', 'gpt-4o', 'gpt-4o-mini', 'gemini-2.0-flash'.\").optional(),\n query: z.string().describe(\"The search query or question you want to ask. This is the primary input for your search.\"),\n location: z.string().default(\"us\").describe(\"Country code for localized search results (e.g., 'us', 'jp', 'br', 'fr').\").optional(),\n answer_type: z.enum([\"text\", \"markdown\", \"html\"]).default(\"text\").describe(\"Format of the answer. Options: 'text', 'markdown', or 'html'.\").optional(),\n search_type: z.enum([\"general\", \"news\"]).default(\"general\").describe(\"Type of search to perform. Options: 'general' or 'news'.\").optional(),\n date_context: z.string().describe(\"Optional date for context. Format example: 'Today is Monday 16 of September 2024 and the time is 6:36 PM'. If not provided, the API uses the current date of the server.\").optional(),\n return_images: z.boolean().default(false).describe(\"Set to True to include images in the result.\").optional(),\n recency_filter: z.enum([\"hour\", \"day\", \"week\", \"month\", \"year\", \"anytime\"]).default(\"anytime\").describe(\"Filter results by recency. Options: 'hour', 'day', 'week', 'month', 'year', 'anytime'.\").optional(),\n return_sources: z.boolean().default(false).describe(\"Set to True to include sources in the result.\").optional(),\n return_citations: z.boolean().default(false).describe(\"Set to True to include citations in the response.\").optional(),\n response_language: z.string().default(\"auto\").describe(\"Language code for the response. Use 'auto' to auto-detect based on the query.\").optional(),\n}).describe(\"Parameters for performing a search query using the OpenPerplex API.\");\nconst OpenperplexSearch_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 OpenperplexSearchOutput = 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(OpenperplexSearch_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 a search operation from the OpenPerplex API.\");\n\nexport const openperplexSearch: AppAction<\n typeof OpenperplexSearchInput,\n typeof OpenperplexSearchOutput,\n typeof openperplex.credential\n> = action(\"OPENPERPLEX_SEARCH\", {\n slug: \"openperplex-search\",\n name: \"Search Documents\",\n description: \"Tool to search documents using query parameters. Use when you have a search query and optional filters ready.\",\n input: OpenperplexSearchInput,\n output: OpenperplexSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAA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CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AASjE,MAAa,oBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqC,EAAE,OAAO;EAC9C,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,kCAAkC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,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,iEAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const openperplex = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "openperplex",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.openperplex = openperplex;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const openperplex = defineApp({\n slug: \"openperplex\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,eAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const openperplex: KeystrokeApp<\"openperplex\", typeof credential> = defineApp({\n slug: \"openperplex\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,eAAA,GAAA,2BAAA,UAAA,CAAwE;CACnF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const openperplex: KeystrokeApp<"openperplex", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { openperplex };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const openperplex: KeystrokeApp<"openperplex", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { openperplex };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const openperplex = defineApp({
|
|
4
4
|
slug: "openperplex",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_api_key: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { openperplex };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const openperplex = defineApp({\n slug: \"openperplex\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const openperplex: KeystrokeApp<\"openperplex\", typeof credential> = defineApp({\n slug: \"openperplex\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,cAA8D,UAAU;CACnF,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { openperplex } from "./app.cjs";
|
|
1
2
|
import { openperplexCustomSearch } from "./actions/custom-search.cjs";
|
|
2
3
|
import { openperplexCustomSearchStream } from "./actions/custom-search-stream.cjs";
|
|
3
4
|
import { openperplexGetWebsiteMarkdown } from "./actions/get-website-markdown.cjs";
|
|
@@ -6,6 +7,5 @@ import { openperplexGetWebsiteText } from "./actions/get-website-text.cjs";
|
|
|
6
7
|
import { openperplexQueryFromUrl } from "./actions/query-from-url.cjs";
|
|
7
8
|
import { openperplexSearch } from "./actions/search.cjs";
|
|
8
9
|
import { openperplexSearchStream } from "./actions/search-stream.cjs";
|
|
9
|
-
import { openperplex } from "./app.cjs";
|
|
10
10
|
import { openperplexCatalog } from "./catalog.cjs";
|
|
11
11
|
export { openperplex, openperplexCatalog, openperplexCustomSearch, openperplexCustomSearchStream, openperplexGetWebsiteMarkdown, openperplexGetWebsiteScreenshot, openperplexGetWebsiteText, openperplexQueryFromUrl, openperplexSearch, openperplexSearchStream };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { openperplex } from "./app.mjs";
|
|
1
2
|
import { openperplexCustomSearch } from "./actions/custom-search.mjs";
|
|
2
3
|
import { openperplexCustomSearchStream } from "./actions/custom-search-stream.mjs";
|
|
3
4
|
import { openperplexGetWebsiteMarkdown } from "./actions/get-website-markdown.mjs";
|
|
@@ -6,6 +7,5 @@ import { openperplexGetWebsiteText } from "./actions/get-website-text.mjs";
|
|
|
6
7
|
import { openperplexQueryFromUrl } from "./actions/query-from-url.mjs";
|
|
7
8
|
import { openperplexSearch } from "./actions/search.mjs";
|
|
8
9
|
import { openperplexSearchStream } from "./actions/search-stream.mjs";
|
|
9
|
-
import { openperplex } from "./app.mjs";
|
|
10
10
|
import { openperplexCatalog } from "./catalog.mjs";
|
|
11
11
|
export { openperplex, openperplexCatalog, openperplexCustomSearch, openperplexCustomSearchStream, openperplexGetWebsiteMarkdown, openperplexGetWebsiteScreenshot, openperplexGetWebsiteText, openperplexQueryFromUrl, openperplexSearch, openperplexSearchStream };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/openperplex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|