@keystrokehq/perigon 0.1.0 → 0.1.3

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 +11 -11
  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 +11 -11
  10. package/dist/actions/get-articles.mjs.map +1 -1
  11. package/dist/actions/get-companies.cjs +8 -8
  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 +8 -8
  18. package/dist/actions/get-companies.mjs.map +1 -1
  19. package/dist/actions/get-journalists.cjs +20 -20
  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 +20 -20
  26. package/dist/actions/get-journalists.mjs.map +1 -1
  27. package/dist/actions/get-sources.cjs +12 -12
  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 +12 -12
  34. package/dist/actions/get-sources.mjs.map +1 -1
  35. package/dist/actions/get-stories.cjs +19 -19
  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 +19 -19
  42. package/dist/actions/get-stories.mjs.map +1 -1
  43. package/dist/actions/get-topics.cjs +6 -6
  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 +6 -6
  50. package/dist/actions/get-topics.mjs.map +1 -1
  51. package/dist/actions/get-wikipedia.cjs +8 -8
  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 +8 -8
  58. package/dist/actions/get-wikipedia.mjs.map +1 -1
  59. package/dist/actions/vector-search-articles.cjs +13 -13
  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 +13 -13
  66. package/dist/actions/vector-search-articles.mjs.map +1 -1
  67. package/dist/actions/vector-search-wikipedia.cjs +6 -6
  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 +6 -6
  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
@@ -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.$loose>>>;
27
+ }, z.core.$loose>>>;
28
+ topics: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
29
+ name: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>>>;
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.$loose>>>>;
41
+ }, z.core.$loose>>;
42
+ score: z.ZodNullable<z.ZodNumber>;
43
+ }, z.core.$loose>>;
44
+ }, z.core.$loose>;
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"}
@@ -15,16 +15,16 @@ const PerigonVectorSearchArticlesInput = z.object({
15
15
  const PerigonVectorSearchArticles_SourceLocationSchema = z.object({
16
16
  city: z.string().describe("City of the source location").nullable().optional(),
17
17
  country: z.string().describe("Country code of the source location").nullable().optional()
18
- });
18
+ }).passthrough();
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
- });
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") });
22
+ }).passthrough();
23
+ const PerigonVectorSearchArticles_TopicSchema = z.object({ name: z.string().describe("Name of the topic").nullable() }).passthrough();
24
+ const PerigonVectorSearchArticles_CategorySchema = z.object({ name: z.string().describe("Name of the category").nullable() }).passthrough();
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,22 +33,22 @@ 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
+ }).passthrough();
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)")
42
- });
41
+ score: z.number().describe("Relevance score of the article (higher is more relevant)").nullable()
42
+ }).passthrough();
43
43
  const perigonVectorSearchArticles = action("PERIGON_VECTOR_SEARCH_ARTICLES", {
44
44
  slug: "perigon-vector-search-articles",
45
45
  name: "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
+ }).passthrough()
52
52
  });
53
53
  //#endregion
54
54
  export { perigonVectorSearchArticles };
@@ -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":"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"}
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":"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"}
@@ -7,13 +7,13 @@ 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")
15
- }).describe("One matched Wikipedia article from vector search.");
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.");
14
+ snippet: zod.z.string().describe("Passage or summary of the article").nullable()
15
+ }).passthrough().describe("One matched Wikipedia article from vector search.");
16
+ const PerigonVectorSearchWikipediaOutput = zod.z.object({ results: zod.z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).passthrough().describe("Response schema for Wikipedia vector search.");
17
17
  const perigonVectorSearchWikipedia = require_action.action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
18
18
  slug: "perigon-vector-search-wikipedia",
19
19
  name: "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}).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":";;;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,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,+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.$loose>>;
17
+ }, z.core.$loose>;
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.$loose>>;
17
+ }, z.core.$loose>;
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,18 +7,18 @@ 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")
15
- }).describe("One matched Wikipedia article from vector search.");
14
+ snippet: z.string().describe("Passage or summary of the article").nullable()
15
+ }).passthrough().describe("One matched Wikipedia article from vector search.");
16
16
  const perigonVectorSearchWikipedia = action("PERIGON_VECTOR_SEARCH_WIKIPEDIA", {
17
17
  slug: "perigon-vector-search-wikipedia",
18
18
  name: "Vector Search Wikipedia",
19
19
  description: "Tool to perform semantic retrieval of Wikipedia pages using vector search. Use after obtaining a search query to find relevant Wikipedia articles.",
20
20
  input: PerigonVectorSearchWikipediaInput,
21
- output: z.object({ results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).describe("Response schema for Wikipedia vector search.")
21
+ output: z.object({ results: z.array(PerigonVectorSearchWikipedia_WikipediaArticleSchema).describe("List of matched Wikipedia articles, ordered by relevance") }).passthrough().describe("Response schema for Wikipedia vector search.")
22
22
  });
23
23
  //#endregion
24
24
  export { perigonVectorSearchWikipedia };
@@ -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}).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":";;;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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,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,YAAY,CAAC,CAAC,SAAS,8CAOhB;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.3",
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": {