@keystrokehq/perigon 0.1.0 → 0.1.2

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.
Files changed (81) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-articles.cjs +4 -4
  4. package/dist/actions/get-articles.cjs.map +1 -1
  5. package/dist/actions/get-articles.d.cts +88 -3
  6. package/dist/actions/get-articles.d.cts.map +1 -1
  7. package/dist/actions/get-articles.d.mts +88 -3
  8. package/dist/actions/get-articles.d.mts.map +1 -1
  9. package/dist/actions/get-articles.mjs +4 -4
  10. package/dist/actions/get-articles.mjs.map +1 -1
  11. package/dist/actions/get-companies.cjs +4 -4
  12. package/dist/actions/get-companies.cjs.map +1 -1
  13. package/dist/actions/get-companies.d.cts +58 -3
  14. package/dist/actions/get-companies.d.cts.map +1 -1
  15. package/dist/actions/get-companies.d.mts +58 -3
  16. package/dist/actions/get-companies.d.mts.map +1 -1
  17. package/dist/actions/get-companies.mjs +4 -4
  18. package/dist/actions/get-companies.mjs.map +1 -1
  19. package/dist/actions/get-journalists.cjs +13 -13
  20. package/dist/actions/get-journalists.cjs.map +1 -1
  21. package/dist/actions/get-journalists.d.cts +58 -3
  22. package/dist/actions/get-journalists.d.cts.map +1 -1
  23. package/dist/actions/get-journalists.d.mts +58 -3
  24. package/dist/actions/get-journalists.d.mts.map +1 -1
  25. package/dist/actions/get-journalists.mjs +13 -13
  26. package/dist/actions/get-journalists.mjs.map +1 -1
  27. package/dist/actions/get-sources.cjs +6 -6
  28. package/dist/actions/get-sources.cjs.map +1 -1
  29. package/dist/actions/get-sources.d.cts +92 -3
  30. package/dist/actions/get-sources.d.cts.map +1 -1
  31. package/dist/actions/get-sources.d.mts +92 -3
  32. package/dist/actions/get-sources.d.mts.map +1 -1
  33. package/dist/actions/get-sources.mjs +6 -6
  34. package/dist/actions/get-sources.mjs.map +1 -1
  35. package/dist/actions/get-stories.cjs +8 -8
  36. package/dist/actions/get-stories.cjs.map +1 -1
  37. package/dist/actions/get-stories.d.cts +136 -3
  38. package/dist/actions/get-stories.d.cts.map +1 -1
  39. package/dist/actions/get-stories.d.mts +136 -3
  40. package/dist/actions/get-stories.d.mts.map +1 -1
  41. package/dist/actions/get-stories.mjs +8 -8
  42. package/dist/actions/get-stories.mjs.map +1 -1
  43. package/dist/actions/get-topics.cjs +3 -3
  44. package/dist/actions/get-topics.cjs.map +1 -1
  45. package/dist/actions/get-topics.d.cts +15 -3
  46. package/dist/actions/get-topics.d.cts.map +1 -1
  47. package/dist/actions/get-topics.d.mts +15 -3
  48. package/dist/actions/get-topics.d.mts.map +1 -1
  49. package/dist/actions/get-topics.mjs +3 -3
  50. package/dist/actions/get-topics.mjs.map +1 -1
  51. package/dist/actions/get-wikipedia.cjs +4 -4
  52. package/dist/actions/get-wikipedia.cjs.map +1 -1
  53. package/dist/actions/get-wikipedia.d.cts +47 -3
  54. package/dist/actions/get-wikipedia.d.cts.map +1 -1
  55. package/dist/actions/get-wikipedia.d.mts +47 -3
  56. package/dist/actions/get-wikipedia.d.mts.map +1 -1
  57. package/dist/actions/get-wikipedia.mjs +4 -4
  58. package/dist/actions/get-wikipedia.mjs.map +1 -1
  59. package/dist/actions/vector-search-articles.cjs +8 -8
  60. package/dist/actions/vector-search-articles.cjs.map +1 -1
  61. package/dist/actions/vector-search-articles.d.cts +52 -3
  62. package/dist/actions/vector-search-articles.d.cts.map +1 -1
  63. package/dist/actions/vector-search-articles.d.mts +52 -3
  64. package/dist/actions/vector-search-articles.d.mts.map +1 -1
  65. package/dist/actions/vector-search-articles.mjs +8 -8
  66. package/dist/actions/vector-search-articles.mjs.map +1 -1
  67. package/dist/actions/vector-search-wikipedia.cjs +4 -4
  68. package/dist/actions/vector-search-wikipedia.cjs.map +1 -1
  69. package/dist/actions/vector-search-wikipedia.d.cts +19 -3
  70. package/dist/actions/vector-search-wikipedia.d.cts.map +1 -1
  71. package/dist/actions/vector-search-wikipedia.d.mts +19 -3
  72. package/dist/actions/vector-search-wikipedia.d.mts.map +1 -1
  73. package/dist/actions/vector-search-wikipedia.mjs +4 -4
  74. package/dist/actions/vector-search-wikipedia.mjs.map +1 -1
  75. package/dist/catalog.cjs +7 -1
  76. package/dist/catalog.cjs.map +1 -1
  77. package/dist/catalog.d.cts +8 -0
  78. package/dist/catalog.d.mts +8 -0
  79. package/dist/catalog.mjs +7 -1
  80. package/dist/catalog.mjs.map +1 -1
  81. package/package.json +2 -2
@@ -20,7 +20,7 @@ const PerigonGetWikipedia_WikidataInstanceOfSchema = z.object({
20
20
  });
21
21
  const PerigonGetWikipedia_WikipediaArticleSchema = z.object({
22
22
  id: z.string().describe("Unique identifier for the Wikipedia article").nullable().optional(),
23
- url: z.string().describe("Direct Wikipedia link"),
23
+ url: z.string().describe("Direct Wikipedia link").nullable(),
24
24
  seeAlso: z.array(z.string()).describe("List of related articles").nullable().optional(),
25
25
  summary: z.string().describe("Article summary or excerpt").nullable().optional(),
26
26
  sections: z.array(PerigonGetWikipedia_WikipediaSectionSchema).describe("List of article sections").nullable().optional(),
@@ -28,7 +28,7 @@ const PerigonGetWikipedia_WikipediaArticleSchema = z.object({
28
28
  wikiCode: z.string().describe("Wikipedia language code (e.g., 'enwiki')").nullable().optional(),
29
29
  pageviews: z.number().int().describe("Number of page views").nullable().optional(),
30
30
  scrapedAt: z.string().describe("Timestamp when the article was scraped").nullable().optional(),
31
- wikiTitle: z.string().describe("Title of the Wikipedia article"),
31
+ wikiTitle: z.string().describe("Title of the Wikipedia article").nullable(),
32
32
  categories: z.array(z.string()).describe("List of categories").nullable().optional(),
33
33
  references: z.array(z.string()).describe("List of references").nullable().optional(),
34
34
  wikiPageId: z.number().int().describe("Wikipedia page ID").nullable().optional(),
@@ -46,9 +46,9 @@ const perigonGetWikipedia = action("PERIGON_GET_WIKIPEDIA", {
46
46
  description: "Tool to search and filter Wikipedia pages. Use when you have a search query ready and want to retrieve relevant Wikipedia articles.",
47
47
  input: PerigonGetWikipediaInput,
48
48
  output: z.object({
49
- status: z.number().int().describe("HTTP status code of the response"),
49
+ status: z.number().int().describe("HTTP status code of the response").nullable(),
50
50
  results: z.array(PerigonGetWikipedia_WikipediaArticleSchema).describe("List of Wikipedia articles matching the query"),
51
- numResults: z.number().int().describe("Total number of articles found")
51
+ numResults: z.number().int().describe("Total number of articles found").nullable()
52
52
  })
53
53
  });
54
54
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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});\nconst PerigonGetWikipedia_WikidataInstanceOfSchema: z.ZodTypeAny = 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});\nconst PerigonGetWikipedia_WikipediaArticleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the Wikipedia article\").nullable().optional(),\n url: z.string().describe(\"Direct Wikipedia link\"),\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\"),\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});\nexport const PerigonGetWikipediaOutput: z.ZodTypeAny = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\"),\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\"),\n});\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":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;C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AAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC;AAOD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACpE,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,+CAA+C;EACrH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACxE,CAOU;AACV,CAAC"}
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});\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});\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});\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});\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":";;;AAIA,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,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAA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,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,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,CAOU;AACV,CAAC"}
@@ -17,14 +17,14 @@ const PerigonVectorSearchArticles_SourceLocationSchema = zod.z.object({
17
17
  country: zod.z.string().describe("Country code of the source location").nullable().optional()
18
18
  });
19
19
  const PerigonVectorSearchArticles_ArticleSourceSchema = zod.z.object({
20
- domain: zod.z.string().describe("Domain of the article source"),
20
+ domain: zod.z.string().describe("Domain of the article source").nullable(),
21
21
  location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional()
22
22
  });
23
- const PerigonVectorSearchArticles_TopicSchema = zod.z.object({ name: zod.z.string().describe("Name of the topic") });
24
- const PerigonVectorSearchArticles_CategorySchema = zod.z.object({ name: zod.z.string().describe("Name of the category") });
23
+ const PerigonVectorSearchArticles_TopicSchema = zod.z.object({ name: zod.z.string().describe("Name of the topic").nullable() });
24
+ const PerigonVectorSearchArticles_CategorySchema = zod.z.object({ name: zod.z.string().describe("Name of the category").nullable() });
25
25
  const PerigonVectorSearchArticles_ArticleDataSchema = zod.z.object({
26
- url: zod.z.string().describe("Canonical URL of the article"),
27
- title: zod.z.string().describe("Article title"),
26
+ url: zod.z.string().describe("Canonical URL of the article").nullable(),
27
+ title: zod.z.string().describe("Article title").nullable(),
28
28
  source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),
29
29
  topics: zod.z.array(PerigonVectorSearchArticles_TopicSchema).describe("Topics associated with the article").nullable().optional(),
30
30
  addDate: zod.z.string().describe("Date when article was added to the database").nullable().optional(),
@@ -33,15 +33,15 @@ const PerigonVectorSearchArticles_ArticleDataSchema = zod.z.object({
33
33
  summary: zod.z.string().describe("Short summary of article content").nullable().optional(),
34
34
  imageUrl: zod.z.string().describe("URL of the article's image").nullable().optional(),
35
35
  language: zod.z.string().describe("Language code of the article").nullable().optional(),
36
- articleId: zod.z.string().describe("Unique article identifier"),
36
+ articleId: zod.z.string().describe("Unique article identifier").nullable(),
37
37
  categories: zod.z.array(PerigonVectorSearchArticles_CategorySchema).describe("Categories of the article").nullable().optional()
38
38
  });
39
39
  const PerigonVectorSearchArticles_VectorSearchResultSchema = zod.z.object({
40
40
  data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),
41
- score: zod.z.number().describe("Relevance score of the article (higher is more relevant)")
41
+ score: zod.z.number().describe("Relevance score of the article (higher is more relevant)").nullable()
42
42
  });
43
43
  const PerigonVectorSearchArticlesOutput = zod.z.object({
44
- status: zod.z.number().int().describe("HTTP status code of the response"),
44
+ status: zod.z.number().int().describe("HTTP status code of the response").nullable(),
45
45
  results: zod.z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe("List of search results with scores and article data")
46
46
  });
47
47
  const perigonVectorSearchArticles = require_action.action("PERIGON_VECTOR_SEARCH_ARTICLES", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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});\nconst PerigonVectorSearchArticles_ArticleSourceSchema: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain of the article source\"),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the topic\"),\n});\nconst PerigonVectorSearchArticles_CategorySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the category\"),\n});\nconst PerigonVectorSearchArticles_ArticleDataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Canonical URL of the article\"),\n title: z.string().describe(\"Article title\"),\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\"),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_VectorSearchResultSchema: z.ZodTypeAny = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\"),\n});\nexport const PerigonVectorSearchArticlesOutput: z.ZodTypeAny = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\"),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n});\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":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,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,CAAC,SAAS;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAA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B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC1D,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC;AACD,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,MAAM,8CAA8C,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACvF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACpE,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,qDAAqD;AACvI,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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});\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n});\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n});\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});\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});\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});\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":";;;AAIA,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,CAAC,SAAS;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAClH,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,C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AO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAM,8CAA8C,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAClG,CAAC;AACD,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;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/vector-search-articles.d.ts
4
- declare const PerigonVectorSearchArticlesInput: z.ZodTypeAny;
5
- declare const PerigonVectorSearchArticlesOutput: z.ZodTypeAny;
6
- declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PerigonVectorSearchArticlesInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ filter: z.ZodOptional<z.ZodObject<{
8
+ source: z.ZodOptional<z.ZodString>;
9
+ category: z.ZodOptional<z.ZodString>;
10
+ language: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ vector_options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ include_vectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ }, z.core.$strip>;
15
+ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
16
+ status: z.ZodNullable<z.ZodNumber>;
17
+ results: z.ZodArray<z.ZodObject<{
18
+ data: z.ZodNullable<z.ZodObject<{
19
+ url: z.ZodNullable<z.ZodString>;
20
+ title: z.ZodNullable<z.ZodString>;
21
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ domain: z.ZodNullable<z.ZodString>;
23
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>>;
27
+ }, z.core.$strip>>>;
28
+ topics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
29
+ name: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>>>;
31
+ addDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ pubDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ articleId: z.ZodNullable<z.ZodString>;
38
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
39
+ name: z.ZodNullable<z.ZodString>;
40
+ }, z.core.$strip>>>>;
41
+ }, z.core.$strip>>;
42
+ score: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { perigonVectorSearchArticles };
9
58
  //# 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":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAU/C;AAAA,cAiCW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"vector-search-articles.d.cts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA;;;;;;;;mBAMtC,MAAA"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/vector-search-articles.d.ts
4
- declare const PerigonVectorSearchArticlesInput: z.ZodTypeAny;
5
- declare const PerigonVectorSearchArticlesOutput: z.ZodTypeAny;
6
- declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PerigonVectorSearchArticlesInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ filter: z.ZodOptional<z.ZodObject<{
8
+ source: z.ZodOptional<z.ZodString>;
9
+ category: z.ZodOptional<z.ZodString>;
10
+ language: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ vector_options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ include_vectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14
+ }, z.core.$strip>;
15
+ declare const PerigonVectorSearchArticlesOutput: z.ZodObject<{
16
+ status: z.ZodNullable<z.ZodNumber>;
17
+ results: z.ZodArray<z.ZodObject<{
18
+ data: z.ZodNullable<z.ZodObject<{
19
+ url: z.ZodNullable<z.ZodString>;
20
+ title: z.ZodNullable<z.ZodString>;
21
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ domain: z.ZodNullable<z.ZodString>;
23
+ location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>>;
27
+ }, z.core.$strip>>>;
28
+ topics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
29
+ name: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>>>;
31
+ addDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ pubDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ articleId: z.ZodNullable<z.ZodString>;
38
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
39
+ name: z.ZodNullable<z.ZodString>;
40
+ }, z.core.$strip>>>>;
41
+ }, z.core.$strip>>;
42
+ score: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
45
+ declare const perigonVectorSearchArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { perigonVectorSearchArticles };
9
58
  //# 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":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAU/C;AAAA,cAiCW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"vector-search-articles.d.mts","names":[],"sources":["../../src/actions/vector-search-articles.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;cA2ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA;;;;;;;;mBAMtC,MAAA"}
@@ -17,14 +17,14 @@ const PerigonVectorSearchArticles_SourceLocationSchema = z.object({
17
17
  country: z.string().describe("Country code of the source location").nullable().optional()
18
18
  });
19
19
  const PerigonVectorSearchArticles_ArticleSourceSchema = z.object({
20
- domain: z.string().describe("Domain of the article source"),
20
+ domain: z.string().describe("Domain of the article source").nullable(),
21
21
  location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional()
22
22
  });
23
- const PerigonVectorSearchArticles_TopicSchema = z.object({ name: z.string().describe("Name of the topic") });
24
- const PerigonVectorSearchArticles_CategorySchema = z.object({ name: z.string().describe("Name of the category") });
23
+ const PerigonVectorSearchArticles_TopicSchema = z.object({ name: z.string().describe("Name of the topic").nullable() });
24
+ const PerigonVectorSearchArticles_CategorySchema = z.object({ name: z.string().describe("Name of the category").nullable() });
25
25
  const PerigonVectorSearchArticles_ArticleDataSchema = z.object({
26
- url: z.string().describe("Canonical URL of the article"),
27
- title: z.string().describe("Article title"),
26
+ url: z.string().describe("Canonical URL of the article").nullable(),
27
+ title: z.string().describe("Article title").nullable(),
28
28
  source: PerigonVectorSearchArticles_ArticleSourceSchema.nullable().optional(),
29
29
  topics: z.array(PerigonVectorSearchArticles_TopicSchema).describe("Topics associated with the article").nullable().optional(),
30
30
  addDate: z.string().describe("Date when article was added to the database").nullable().optional(),
@@ -33,12 +33,12 @@ const PerigonVectorSearchArticles_ArticleDataSchema = z.object({
33
33
  summary: z.string().describe("Short summary of article content").nullable().optional(),
34
34
  imageUrl: z.string().describe("URL of the article's image").nullable().optional(),
35
35
  language: z.string().describe("Language code of the article").nullable().optional(),
36
- articleId: z.string().describe("Unique article identifier"),
36
+ articleId: z.string().describe("Unique article identifier").nullable(),
37
37
  categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe("Categories of the article").nullable().optional()
38
38
  });
39
39
  const PerigonVectorSearchArticles_VectorSearchResultSchema = z.object({
40
40
  data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),
41
- score: z.number().describe("Relevance score of the article (higher is more relevant)")
41
+ score: z.number().describe("Relevance score of the article (higher is more relevant)").nullable()
42
42
  });
43
43
  const perigonVectorSearchArticles = action("PERIGON_VECTOR_SEARCH_ARTICLES", {
44
44
  slug: "perigon-vector-search-articles",
@@ -46,7 +46,7 @@ const perigonVectorSearchArticles = action("PERIGON_VECTOR_SEARCH_ARTICLES", {
46
46
  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.",
47
47
  input: PerigonVectorSearchArticlesInput,
48
48
  output: z.object({
49
- status: z.number().int().describe("HTTP status code of the response"),
49
+ status: z.number().int().describe("HTTP status code of the response").nullable(),
50
50
  results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe("List of search results with scores and article data")
51
51
  })
52
52
  });
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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});\nconst PerigonVectorSearchArticles_ArticleSourceSchema: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain of the article source\"),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the topic\"),\n});\nconst PerigonVectorSearchArticles_CategorySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the category\"),\n});\nconst PerigonVectorSearchArticles_ArticleDataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Canonical URL of the article\"),\n title: z.string().describe(\"Article title\"),\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\"),\n categories: z.array(PerigonVectorSearchArticles_CategorySchema).describe(\"Categories of the article\").nullable().optional(),\n});\nconst PerigonVectorSearchArticles_VectorSearchResultSchema: z.ZodTypeAny = z.object({\n data: PerigonVectorSearchArticles_ArticleDataSchema.nullable(),\n score: z.number().describe(\"Relevance score of the article (higher is more relevant)\"),\n});\nexport const PerigonVectorSearchArticlesOutput: z.ZodTypeAny = z.object({\n status: z.number().int().describe(\"HTTP status code of the response\"),\n results: z.array(PerigonVectorSearchArticles_VectorSearchResultSchema).describe(\"List of search results with scores and article data\"),\n});\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":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAChG,OAAO,EAAE,OAAO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I,CAOU;AACV,CAAC"}
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});\nconst PerigonVectorSearchArticles_ArticleSourceSchema = z.object({\n domain: z.string().describe(\"Domain of the article source\").nullable(),\n location: PerigonVectorSearchArticles_SourceLocationSchema.nullable().optional(),\n});\nconst PerigonVectorSearchArticles_TopicSchema = z.object({\n name: z.string().describe(\"Name of the topic\").nullable(),\n});\nconst PerigonVectorSearchArticles_CategorySchema = z.object({\n name: z.string().describe(\"Name of the category\").nullable(),\n});\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});\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});\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});\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":";;;AAIA,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,gBAA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AO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,8CAA8C,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAClG,CAAC;AAMD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+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,CAOU;AACV,CAAC"}
@@ -7,11 +7,11 @@ const PerigonVectorSearchWikipediaInput = zod.z.object({
7
7
  include_context: zod.z.boolean().default(false).describe("Whether to include context passages in the response").optional()
8
8
  }).describe("Request parameters for performing a vector search over Wikipedia articles.");
9
9
  const PerigonVectorSearchWikipedia_WikipediaArticleSchema = zod.z.object({
10
- url: zod.z.string().describe("Link to the Wikipedia article"),
11
- score: zod.z.number().describe("Similarity score of the match"),
12
- title: zod.z.string().describe("Title of the Wikipedia article"),
10
+ url: zod.z.string().describe("Link to the Wikipedia article").nullable(),
11
+ score: zod.z.number().describe("Similarity score of the match").nullable(),
12
+ title: zod.z.string().describe("Title of the Wikipedia article").nullable(),
13
13
  context: zod.z.string().describe("Additional context passage (if requested)").nullable().optional(),
14
- snippet: zod.z.string().describe("Passage or summary of the article")
14
+ snippet: zod.z.string().describe("Passage or summary of the article").nullable()
15
15
  }).describe("One matched Wikipedia article from vector search.");
16
16
  const PerigonVectorSearchWikipediaOutput = zod.z.object({ results: zod.z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).describe("Response schema for Wikipedia vector search.");
17
17
  const perigonVectorSearchWikipedia = require_action.action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\"),\n score: z.number().describe(\"Similarity score of the match\"),\n title: z.string().describe(\"Title of the Wikipedia article\"),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\"),\n}).describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput: z.ZodTypeAny = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).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":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,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,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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}).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}).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":";;;AAIA,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,SAAS,mDAAmD;AAC/D,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/vector-search-wikipedia.d.ts
4
- declare const PerigonVectorSearchWikipediaInput: z.ZodTypeAny;
5
- declare const PerigonVectorSearchWikipediaOutput: z.ZodTypeAny;
6
- declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PerigonVectorSearchWikipediaInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ query: z.ZodString;
7
+ include_context: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ }, z.core.$strip>;
9
+ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
10
+ results: z.ZodArray<z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ score: z.ZodNullable<z.ZodNumber>;
13
+ title: z.ZodNullable<z.ZodString>;
14
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ snippet: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ query: string;
20
+ limit?: number | undefined;
21
+ include_context?: boolean | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { perigonVectorSearchWikipedia };
9
25
  //# 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":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAIuC;AAAA,cAQ5E,kCAAA,EAAoC,CAAA,CAAE,UAEQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"vector-search-wikipedia.d.cts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAYjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/vector-search-wikipedia.d.ts
4
- declare const PerigonVectorSearchWikipediaInput: z.ZodTypeAny;
5
- declare const PerigonVectorSearchWikipediaOutput: z.ZodTypeAny;
6
- declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PerigonVectorSearchWikipediaInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ query: z.ZodString;
7
+ include_context: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ }, z.core.$strip>;
9
+ declare const PerigonVectorSearchWikipediaOutput: z.ZodObject<{
10
+ results: z.ZodArray<z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ score: z.ZodNullable<z.ZodNumber>;
13
+ title: z.ZodNullable<z.ZodString>;
14
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ snippet: z.ZodNullable<z.ZodString>;
16
+ }, z.core.$strip>>;
17
+ }, z.core.$strip>;
18
+ declare const perigonVectorSearchWikipedia: import("@keystrokehq/action").WorkflowActionDefinition<{
19
+ query: string;
20
+ limit?: number | undefined;
21
+ include_context?: boolean | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { perigonVectorSearchWikipedia };
9
25
  //# 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":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAIuC;AAAA,cAQ5E,kCAAA,EAAoC,CAAA,CAAE,UAEQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"vector-search-wikipedia.d.mts","names":[],"sources":["../../src/actions/vector-search-wikipedia.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAYjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -7,11 +7,11 @@ const PerigonVectorSearchWikipediaInput = z.object({
7
7
  include_context: z.boolean().default(false).describe("Whether to include context passages in the response").optional()
8
8
  }).describe("Request parameters for performing a vector search over Wikipedia articles.");
9
9
  const PerigonVectorSearchWikipedia_WikipediaArticleSchema = z.object({
10
- url: z.string().describe("Link to the Wikipedia article"),
11
- score: z.number().describe("Similarity score of the match"),
12
- title: z.string().describe("Title of the Wikipedia article"),
10
+ url: z.string().describe("Link to the Wikipedia article").nullable(),
11
+ score: z.number().describe("Similarity score of the match").nullable(),
12
+ title: z.string().describe("Title of the Wikipedia article").nullable(),
13
13
  context: z.string().describe("Additional context passage (if requested)").nullable().optional(),
14
- snippet: z.string().describe("Passage or summary of the article")
14
+ snippet: z.string().describe("Passage or summary of the article").nullable()
15
15
  }).describe("One matched Wikipedia article from vector search.");
16
16
  const perigonVectorSearchWikipedia = action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
17
17
  slug: "perigon-vector-search-wikipedia",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the Wikipedia article\"),\n score: z.number().describe(\"Similarity score of the match\"),\n title: z.string().describe(\"Title of the Wikipedia article\"),\n context: z.string().describe(\"Additional context passage (if requested)\").nullable().optional(),\n snippet: z.string().describe(\"Passage or summary of the article\"),\n}).describe(\"One matched Wikipedia article from vector search.\");\nexport const PerigonVectorSearchWikipediaOutput: z.ZodTypeAny = z.object({\n results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe(\"List of matched Wikipedia articles, ordered by relevance\"),\n}).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":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,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,sDAAoE,EAAE,OAAO;CACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
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}).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}).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":";;;AAIA,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,SAAS,mDAAmD;AAK/D,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,0DAA0D,EAC3I,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const perigonCatalog = {
7
7
  "category": "News & Lifestyle",
8
8
  "logo": "https://logos.composio.dev/api/perigon",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Perigon API Key",
13
+ "secret": true,
14
+ "description": "Your Perigon API key obtained from your account dashboard."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.perigonCatalog = perigonCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Perigon API Key\",\n \"secret\": true,\n \"description\": \"Your Perigon API key obtained from your account dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const perigonCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/perigon";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Perigon API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Perigon API key obtained from your account dashboard.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { perigonCatalog };
@@ -8,6 +8,14 @@ declare const perigonCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/perigon";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Perigon API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Perigon API key obtained from your account dashboard.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { perigonCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const perigonCatalog = {
7
7
  "category": "News & Lifestyle",
8
8
  "logo": "https://logos.composio.dev/api/perigon",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Perigon API Key",
13
+ "secret": true,
14
+ "description": "Your Perigon API key obtained from your account dashboard."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { perigonCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const perigonCatalog = {\n \"slug\": \"perigon\",\n \"name\": \"Perigon\",\n \"description\": \"Perigon provides an HTTP REST API for retrieving news and web content data, offering structured data suitable for various applications.\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/perigon\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Perigon API Key\",\n \"secret\": true,\n \"description\": \"Your Perigon API key obtained from your account dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/perigon",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {