@keystrokehq/perigon 0.1.5 → 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/get-articles.cjs +1 -0
- package/dist/actions/get-articles.cjs.map +1 -1
- package/dist/actions/get-articles.d.cts +3 -26
- package/dist/actions/get-articles.d.cts.map +1 -1
- package/dist/actions/get-articles.d.mts +3 -26
- package/dist/actions/get-articles.d.mts.map +1 -1
- package/dist/actions/get-articles.mjs +1 -0
- package/dist/actions/get-articles.mjs.map +1 -1
- package/dist/actions/get-companies.cjs +1 -0
- package/dist/actions/get-companies.cjs.map +1 -1
- package/dist/actions/get-companies.d.cts +3 -13
- package/dist/actions/get-companies.d.cts.map +1 -1
- package/dist/actions/get-companies.d.mts +3 -13
- package/dist/actions/get-companies.d.mts.map +1 -1
- package/dist/actions/get-companies.mjs +1 -0
- package/dist/actions/get-companies.mjs.map +1 -1
- package/dist/actions/get-journalists.cjs +1 -0
- package/dist/actions/get-journalists.cjs.map +1 -1
- package/dist/actions/get-journalists.d.cts +3 -18
- package/dist/actions/get-journalists.d.cts.map +1 -1
- package/dist/actions/get-journalists.d.mts +3 -18
- package/dist/actions/get-journalists.d.mts.map +1 -1
- package/dist/actions/get-journalists.mjs +1 -0
- package/dist/actions/get-journalists.mjs.map +1 -1
- package/dist/actions/get-sources.cjs +1 -0
- package/dist/actions/get-sources.cjs.map +1 -1
- package/dist/actions/get-sources.d.cts +3 -26
- package/dist/actions/get-sources.d.cts.map +1 -1
- package/dist/actions/get-sources.d.mts +3 -26
- package/dist/actions/get-sources.d.mts.map +1 -1
- package/dist/actions/get-sources.mjs +1 -0
- package/dist/actions/get-sources.mjs.map +1 -1
- package/dist/actions/get-stories.cjs +1 -0
- package/dist/actions/get-stories.cjs.map +1 -1
- package/dist/actions/get-stories.d.cts +3 -35
- package/dist/actions/get-stories.d.cts.map +1 -1
- package/dist/actions/get-stories.d.mts +3 -35
- package/dist/actions/get-stories.d.mts.map +1 -1
- package/dist/actions/get-stories.mjs +1 -0
- package/dist/actions/get-stories.mjs.map +1 -1
- package/dist/actions/get-topics.cjs +1 -0
- package/dist/actions/get-topics.cjs.map +1 -1
- package/dist/actions/get-topics.d.cts +3 -13
- package/dist/actions/get-topics.d.cts.map +1 -1
- package/dist/actions/get-topics.d.mts +3 -13
- package/dist/actions/get-topics.d.mts.map +1 -1
- package/dist/actions/get-topics.mjs +1 -0
- package/dist/actions/get-topics.mjs.map +1 -1
- package/dist/actions/get-wikipedia.cjs +1 -0
- package/dist/actions/get-wikipedia.cjs.map +1 -1
- package/dist/actions/get-wikipedia.d.cts +3 -18
- package/dist/actions/get-wikipedia.d.cts.map +1 -1
- package/dist/actions/get-wikipedia.d.mts +3 -18
- package/dist/actions/get-wikipedia.d.mts.map +1 -1
- package/dist/actions/get-wikipedia.mjs +1 -0
- package/dist/actions/get-wikipedia.mjs.map +1 -1
- package/dist/actions/vector-search-articles.cjs +1 -0
- package/dist/actions/vector-search-articles.cjs.map +1 -1
- package/dist/actions/vector-search-articles.d.cts +3 -23
- package/dist/actions/vector-search-articles.d.cts.map +1 -1
- package/dist/actions/vector-search-articles.d.mts +3 -23
- package/dist/actions/vector-search-articles.d.mts.map +1 -1
- package/dist/actions/vector-search-articles.mjs +1 -0
- package/dist/actions/vector-search-articles.mjs.map +1 -1
- package/dist/actions/vector-search-wikipedia.cjs +1 -0
- package/dist/actions/vector-search-wikipedia.cjs.map +1 -1
- package/dist/actions/vector-search-wikipedia.d.cts +3 -17
- package/dist/actions/vector-search-wikipedia.d.cts.map +1 -1
- package/dist/actions/vector-search-wikipedia.d.mts +3 -17
- package/dist/actions/vector-search-wikipedia.d.mts.map +1 -1
- package/dist/actions/vector-search-wikipedia.mjs +1 -0
- package/dist/actions/vector-search-wikipedia.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- 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 { perigon } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-topics.d.ts
|
|
@@ -15,19 +17,7 @@ declare const PerigonGetTopicsOutput: z.ZodObject<{
|
|
|
15
17
|
}, z.core.$loose>>;
|
|
16
18
|
total: z.ZodNullable<z.ZodNumber>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const perigonGetTopics:
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const perigonGetTopics: AppAction<typeof PerigonGetTopicsInput, typeof PerigonGetTopicsOutput, typeof perigon.credential>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { perigonGetTopics };
|
|
33
23
|
//# sourceMappingURL=get-topics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-topics.d.mts","names":[],"sources":["../../src/actions/get-topics.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-topics.d.mts","names":[],"sources":["../../src/actions/get-topics.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAYrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-topics.mjs","names":[],"sources":["../../src/actions/get-topics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetTopicsInput = z.object({}).describe(\"Request model for Get Topics action. No parameters are required - returns all available topics.\");\nconst PerigonGetTopics_TopicLabelsSchema = z.object({\n category: z.string().describe(\"Category of the topic\").nullable().optional(),\n subcategory: z.string().describe(\"Subcategory of the topic\").nullable().optional(),\n}).passthrough();\nconst PerigonGetTopics_TopicSchema = z.object({\n id: z.number().int().describe(\"Unique topic identifier\").nullable(),\n name: z.string().describe(\"Display name of the topic\").nullable(),\n labels: PerigonGetTopics_TopicLabelsSchema.nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when topic was created\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when topic was last updated\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetTopicsOutput = z.object({\n data: z.array(PerigonGetTopics_TopicSchema).describe(\"List of topics matching the query\"),\n total: z.number().int().describe(\"Total number of matching topics\").nullable(),\n}).passthrough();\n\nexport const perigonGetTopics = action(\"PERIGON_GET_TOPICS\", {\n slug: \"perigon-get-topics\",\n name: \"Get Topics\",\n description: \"Tool to retrieve all available Perigon news topics. Returns a list of topics that can be used to filter articles or stories. Each topic includes an ID, name, and labels (category/subcategory).\",\n input: PerigonGetTopicsInput,\n output: PerigonGetTopicsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-topics.mjs","names":[],"sources":["../../src/actions/get-topics.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonGetTopicsInput = z.object({}).describe(\"Request model for Get Topics action. No parameters are required - returns all available topics.\");\nconst PerigonGetTopics_TopicLabelsSchema = z.object({\n category: z.string().describe(\"Category of the topic\").nullable().optional(),\n subcategory: z.string().describe(\"Subcategory of the topic\").nullable().optional(),\n}).passthrough();\nconst PerigonGetTopics_TopicSchema = z.object({\n id: z.number().int().describe(\"Unique topic identifier\").nullable(),\n name: z.string().describe(\"Display name of the topic\").nullable(),\n labels: PerigonGetTopics_TopicLabelsSchema.nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when topic was created\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when topic was last updated\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetTopicsOutput = z.object({\n data: z.array(PerigonGetTopics_TopicSchema).describe(\"List of topics matching the query\"),\n total: z.number().int().describe(\"Total number of matching topics\").nullable(),\n}).passthrough();\n\nexport const perigonGetTopics: AppAction<\n typeof PerigonGetTopicsInput,\n typeof PerigonGetTopicsOutput,\n typeof perigon.credential\n> = action(\"PERIGON_GET_TOPICS\", {\n slug: \"perigon-get-topics\",\n name: \"Get Topics\",\n description: \"Tool to retrieve all available Perigon news topics. Returns a list of topics that can be used to filter articles or stories. Each topic includes an ID, name, and labels (category/subcategory).\",\n input: PerigonGetTopicsInput,\n output: PerigonGetTopicsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAC5J,MAAM,qCAAqC,EAAE,OAAO;CAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,mCAAmC;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia: AppAction<\n typeof PerigonGetWikipediaInput,\n typeof PerigonGetWikipediaOutput,\n typeof perigon.credential\n> = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CA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,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,+CAA+C;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-wikipedia.d.ts
|
|
@@ -42,24 +44,7 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const perigonGetWikipedia:
|
|
46
|
-
q: string;
|
|
47
|
-
page?: number | undefined;
|
|
48
|
-
size?: number | undefined;
|
|
49
|
-
language?: string | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
generic_api_key: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const perigonGetWikipedia: AppAction<typeof PerigonGetWikipediaInput, typeof PerigonGetWikipediaOutput, typeof perigon.credential>;
|
|
63
48
|
//#endregion
|
|
64
49
|
export { perigonGetWikipedia };
|
|
65
50
|
//# sourceMappingURL=get-wikipedia.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.d.cts","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-wikipedia.d.cts","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAuCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-wikipedia.d.ts
|
|
@@ -42,24 +44,7 @@ declare const PerigonGetWikipediaOutput: z.ZodObject<{
|
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
numResults: z.ZodNullable<z.ZodNumber>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const perigonGetWikipedia:
|
|
46
|
-
q: string;
|
|
47
|
-
page?: number | undefined;
|
|
48
|
-
size?: number | undefined;
|
|
49
|
-
language?: string | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
generic_api_key: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const perigonGetWikipedia: AppAction<typeof PerigonGetWikipediaInput, typeof PerigonGetWikipediaOutput, typeof perigon.credential>;
|
|
63
48
|
//#endregion
|
|
64
49
|
export { perigonGetWikipedia };
|
|
65
50
|
//# sourceMappingURL=get-wikipedia.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.d.mts","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-wikipedia.d.mts","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAuCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wikipedia.mjs","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-wikipedia.mjs","names":[],"sources":["../../src/actions/get-wikipedia.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonGetWikipediaInput = z.object({\n q: z.string().describe(\"Search query for the Wikipedia articles\"),\n page: z.number().int().default(1).describe(\"Page number for pagination (default: 1)\").optional(),\n size: z.number().int().default(10).describe(\"Number of results per page (default: 10, maximum: 100)\").optional(),\n language: z.string().describe(\"Two-letter Wikipedia language code (e.g., 'en', 'es')\").optional(),\n}).describe(\"Request parameters for searching Wikipedia articles via Perigon API.\");\nconst PerigonGetWikipedia_WikipediaSectionSchema = z.object({\n id: z.string().describe(\"Section ID\").nullable().optional(),\n loc: z.array(z.number().int()).describe(\"Section location indices\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n textRaw: z.string().describe(\"Raw text content of the section\").nullable().optional(),\n styleLevel: z.number().int().describe(\"Section heading level\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({\n label: z.string().describe(\"Label of the instance type\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID of the instance type\").nullable().optional(),\n}).passthrough();\nconst PerigonGetWikipedia_WikipediaArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\").nullable(),\n seeAlso: z.array(z.string()).describe(\"List of related articles\").nullable().optional(),\n summary: z.string().describe(\"Article summary or excerpt\").nullable().optional(),\n sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe(\"List of article sections\").nullable().optional(),\n topImage: z.string().describe(\"URL of the top image\").nullable().optional(),\n wikiCode: z.string().describe(\"Wikipedia language code (e.g., 'enwiki')\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of page views\").nullable().optional(),\n scrapedAt: z.string().describe(\"Timestamp when the article was scraped\").nullable().optional(),\n wikiTitle: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n categories: z.array(z.string()).describe(\"List of categories\").nullable().optional(),\n references: z.array(z.string()).describe(\"List of references\").nullable().optional(),\n wikiPageId: z.number().int().describe(\"Wikipedia page ID\").nullable().optional(),\n wikidataId: z.string().describe(\"Wikidata ID\").nullable().optional(),\n externalLinks: z.array(z.string()).describe(\"List of external links\").nullable().optional(),\n wikiNamespace: z.number().int().describe(\"Wikipedia namespace\").nullable().optional(),\n redirectTitles: z.array(z.string()).describe(\"List of redirect titles\").nullable().optional(),\n wikiRevisionId: z.number().int().describe(\"Wikipedia revision ID\").nullable().optional(),\n wikiRevisionTs: z.string().describe(\"Wikipedia revision timestamp\").nullable().optional(),\n wikidataInstanceOf: z.array(PerigonGetWikipedia_WikidataInstanceOfSchema).describe(\"Wikidata instance types\").nullable().optional(),\n}).passthrough();\nexport const PerigonGetWikipediaOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe(\"List of Wikipedia articles matching the query\"),\n numResults: z.number().int().describe(\"Total number of articles found\").nullable(),\n}).passthrough();\n\nexport const perigonGetWikipedia: AppAction<\n typeof PerigonGetWikipediaInput,\n typeof PerigonGetWikipediaOutput,\n typeof perigon.credential\n> = action(\"PERIGON_GET_WIKIPEDIA\", {\n slug: \"perigon-get-wikipedia\",\n name: \"Get Wikipedia Articles\",\n description: \"Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.\",\n input: PerigonGetWikipediaInput,\n output: PerigonGetWikipediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,S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CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfuC,EAAE,OAAO;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,+CAA+C;EACrH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-articles.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles: AppAction<\n typeof PerigonVectorSearchArticlesInput,\n typeof PerigonVectorSearchArticlesOutput,\n typeof perigon.credential\n> = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO;EACjB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC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AAS,0DAA0D,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,qDAAqD;AACvI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/vector-search-articles.d.ts
|
|
@@ -42,29 +44,7 @@ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
|
|
|
42
44
|
score: z.ZodNullable<z.ZodNumber>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const perigonVectorSearchArticles:
|
|
46
|
-
query: string;
|
|
47
|
-
top_k?: number | undefined;
|
|
48
|
-
filter?: {
|
|
49
|
-
source?: string | undefined;
|
|
50
|
-
category?: string | undefined;
|
|
51
|
-
language?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
vector_options?: Record<string, unknown> | undefined;
|
|
54
|
-
include_vectors?: boolean | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
generic_api_key: z.ZodString;
|
|
61
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
62
|
-
connectionId: z.ZodString;
|
|
63
|
-
entityId: z.ZodString;
|
|
64
|
-
instanceId: z.ZodString;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
generic_api_key: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const perigonVectorSearchArticles: AppAction<typeof PerigonVectorSearchArticlesInput, typeof PerigonVectorSearchArticlesOutput, typeof perigon.credential>;
|
|
68
48
|
//#endregion
|
|
69
49
|
export { perigonVectorSearchArticles };
|
|
70
50
|
//# sourceMappingURL=vector-search-articles.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.d.cts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-articles.d.cts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/vector-search-articles.d.ts
|
|
@@ -42,29 +44,7 @@ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
|
|
|
42
44
|
score: z.ZodNullable<z.ZodNumber>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const perigonVectorSearchArticles:
|
|
46
|
-
query: string;
|
|
47
|
-
top_k?: number | undefined;
|
|
48
|
-
filter?: {
|
|
49
|
-
source?: string | undefined;
|
|
50
|
-
category?: string | undefined;
|
|
51
|
-
language?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
vector_options?: Record<string, unknown> | undefined;
|
|
54
|
-
include_vectors?: boolean | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
generic_api_key: z.ZodString;
|
|
61
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
62
|
-
connectionId: z.ZodString;
|
|
63
|
-
entityId: z.ZodString;
|
|
64
|
-
instanceId: z.ZodString;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
generic_api_key: z.ZodString;
|
|
67
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const perigonVectorSearchArticles: AppAction<typeof PerigonVectorSearchArticlesInput, typeof PerigonVectorSearchArticlesOutput, typeof perigon.credential>;
|
|
68
48
|
//#endregion
|
|
69
49
|
export { perigonVectorSearchArticles };
|
|
70
50
|
//# sourceMappingURL=vector-search-articles.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.d.mts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-articles.d.mts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-articles.mjs","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-articles.mjs","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonVectorSearchArticlesInput = z.object({\n query: z.string().describe(\"Natural language search text to vectorize and find similar articles\"),\n top_k: z.number().int().default(10).describe(\"Number of top results to return, must be >=1\").optional(),\n filter: z.object({\n source: z.string().describe(\"Filter by source domain (e.g., 'cnn.com')\").optional(),\n category: z.string().describe(\"Filter by article category (e.g., 'Environment', 'Sports', 'Tech')\").optional(),\n language: z.string().describe(\"Filter by language code (e.g., 'en')\").optional(),\n}).describe(\"Optional filters to narrow down results (source, category, language)\").optional(),\n vector_options: z.record(z.string(), z.unknown()).describe(\"Advanced vector search options like model override\").optional(),\n include_vectors: z.boolean().default(false).describe(\"Whether to include article vectors in response\").optional(),\n});\nconst PerigonVectorSearchArticles_SourceLocationSchema = z.object({\n city: z.string().describe(\"City of the source location\").nullable().optional(),\n country: z.string().describe(\"Country code of the source location\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n}).passthrough();\nconst PerigonVectorSearchArticles_ArticleDataSchema = z.object({\n url: z.string().describe(\"Canonical URL of the article\").nullable(),\n title: z.string().describe(\"Article title\").nullable(),\n source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),\n topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe(\"Topics associated with the article\").nullable().optional(),\n addDate: z.string().describe(\"Date when article was added to the database\").nullable().optional(),\n country: z.string().describe(\"Country code of the article\").nullable().optional(),\n pubDate: z.string().describe(\"Publish datetime\").nullable().optional(),\n summary: z.string().describe(\"Short summary of article content\").nullable().optional(),\n imageUrl: z.string().describe(\"URL of the article's image\").nullable().optional(),\n language: z.string().describe(\"Language code of the article\").nullable().optional(),\n articleId: z.string().describe(\"Unique article identifier\").nullable(),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n}).passthrough();\nconst PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\").nullable(),\n}).passthrough();\nexport const PerigonVectorSearchArticlesOutput = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n}).passthrough();\n\nexport const perigonVectorSearchArticles: AppAction<\n typeof PerigonVectorSearchArticlesInput,\n typeof PerigonVectorSearchArticlesOutput,\n typeof perigon.credential\n> = action(\"PERIGON_VECTOR_SEARCH_ARTICLES\", {\n slug: \"perigon-vector-search-articles\",\n name: \"Vector Search Articles\",\n description: \"Tool to perform a vector search on Perigon’s real-time news database. Use when you need to retrieve semantically similar news articles given a natural language query.\",\n input: PerigonVectorSearchArticlesInput,\n output: PerigonVectorSearchArticlesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO;EACjB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAm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CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,YAAY,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,8CAA8C,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,qDAAqD;CACvI,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.cjs","names":["z","action"],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia: AppAction<\n typeof PerigonVectorSearchWikipediaInput,\n typeof PerigonVectorSearchWikipediaOutput,\n typeof perigon.credential\n> = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/vector-search-wikipedia.d.ts
|
|
@@ -15,23 +17,7 @@ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
|
|
|
15
17
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const perigonVectorSearchWikipedia:
|
|
19
|
-
query: string;
|
|
20
|
-
limit?: number | undefined;
|
|
21
|
-
include_context?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const perigonVectorSearchWikipedia: AppAction<typeof PerigonVectorSearchWikipediaInput, typeof PerigonVectorSearchWikipediaOutput, typeof perigon.credential>;
|
|
35
21
|
//#endregion
|
|
36
22
|
export { perigonVectorSearchWikipedia };
|
|
37
23
|
//# sourceMappingURL=vector-search-wikipedia.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.d.cts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.d.cts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAYjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { perigon } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/vector-search-wikipedia.d.ts
|
|
@@ -15,23 +17,7 @@ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
|
|
|
15
17
|
snippet: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const perigonVectorSearchWikipedia:
|
|
19
|
-
query: string;
|
|
20
|
-
limit?: number | undefined;
|
|
21
|
-
include_context?: boolean | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"perigon", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const perigonVectorSearchWikipedia: AppAction<typeof PerigonVectorSearchWikipediaInput, typeof PerigonVectorSearchWikipediaOutput, typeof perigon.credential>;
|
|
35
21
|
//#endregion
|
|
36
22
|
export { perigonVectorSearchWikipedia };
|
|
37
23
|
//# sourceMappingURL=vector-search-wikipedia.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.d.mts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.d.mts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAYjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAIlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-search-wikipedia.mjs","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-search-wikipedia.mjs","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { perigon } from \"../app\";\n\nexport const PerigonVectorSearchWikipediaInput = z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (default: 10)\").optional(),\n query: z.string().describe(\"Search query for Wikipedia pages\"),\n include_context: z.boolean().default(false).describe(\"Whether to include context passages in the response\").optional(),\n}).describe(\"Request parameters for performing a vector search over Wikipedia articles.\");\nconst PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\").nullable(),\n score: z.number().describe(\"Similarity score of the match\").nullable(),\n title: z.string().describe(\"Title of the Wikipedia article\").nullable(),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\").nullable(),\n}).passthrough().describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).passthrough().describe(\"Response schema for Wikipedia vector search.\");\n\nexport const perigonVectorSearchWikipedia: AppAction<\n typeof PerigonVectorSearchWikipediaInput,\n typeof PerigonVectorSearchWikipediaOutput,\n typeof perigon.credential\n> = action(\"PERIGON_VECTOR_SEARCH_WIKIPEDIA\", {\n slug: \"perigon-vector-search-wikipedia\",\n name: \"Vector Search Wikipedia\",\n description: \"Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.\",\n input: PerigonVectorSearchWikipediaInput,\n output: PerigonVectorSearchWikipediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,sDAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbgD,EAAE,OAAO,EACzD,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const perigon = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "perigon",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.perigon = perigon;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const perigon = defineApp({\n slug: \"perigon\",\n auth: \"keystroke\",\n credential
|
|
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 perigon: KeystrokeApp<\"perigon\", typeof credential> = defineApp({\n slug: \"perigon\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const perigon: KeystrokeApp<"perigon", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { perigon };
|
|
13
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,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const perigon: KeystrokeApp<"perigon", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { perigon };
|
|
13
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,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.mjs
CHANGED
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\";\nimport { z } from \"zod\";\n\nexport const perigon = defineApp({\n slug: \"perigon\",\n auth: \"keystroke\",\n credential
|
|
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 perigon: KeystrokeApp<\"perigon\", typeof credential> = defineApp({\n slug: \"perigon\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|