@keystrokehq/sourcegraph 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 (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/check-site-settings-edit-permission.cjs +3 -3
  4. package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -1
  5. package/dist/actions/check-site-settings-edit-permission.d.cts +9 -3
  6. package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -1
  7. package/dist/actions/check-site-settings-edit-permission.d.mts +9 -3
  8. package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -1
  9. package/dist/actions/check-site-settings-edit-permission.mjs +3 -3
  10. package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -1
  11. package/dist/actions/compare-commits.cjs +7 -7
  12. package/dist/actions/compare-commits.cjs.map +1 -1
  13. package/dist/actions/compare-commits.d.cts +27 -3
  14. package/dist/actions/compare-commits.d.cts.map +1 -1
  15. package/dist/actions/compare-commits.d.mts +27 -3
  16. package/dist/actions/compare-commits.d.mts.map +1 -1
  17. package/dist/actions/compare-commits.mjs +7 -7
  18. package/dist/actions/compare-commits.mjs.map +1 -1
  19. package/dist/actions/get-commit-details.cjs +15 -15
  20. package/dist/actions/get-commit-details.cjs.map +1 -1
  21. package/dist/actions/get-commit-details.d.cts +31 -3
  22. package/dist/actions/get-commit-details.d.cts.map +1 -1
  23. package/dist/actions/get-commit-details.d.mts +31 -3
  24. package/dist/actions/get-commit-details.d.mts.map +1 -1
  25. package/dist/actions/get-commit-details.mjs +15 -15
  26. package/dist/actions/get-commit-details.mjs.map +1 -1
  27. package/dist/actions/get-current-user.cjs +3 -3
  28. package/dist/actions/get-current-user.cjs.map +1 -1
  29. package/dist/actions/get-current-user.d.cts +9 -3
  30. package/dist/actions/get-current-user.d.cts.map +1 -1
  31. package/dist/actions/get-current-user.d.mts +9 -3
  32. package/dist/actions/get-current-user.d.mts.map +1 -1
  33. package/dist/actions/get-current-user.mjs +3 -3
  34. package/dist/actions/get-current-user.mjs.map +1 -1
  35. package/dist/actions/get-file-contents.cjs +1 -1
  36. package/dist/actions/get-file-contents.cjs.map +1 -1
  37. package/dist/actions/get-file-contents.d.cts +11 -3
  38. package/dist/actions/get-file-contents.d.cts.map +1 -1
  39. package/dist/actions/get-file-contents.d.mts +11 -3
  40. package/dist/actions/get-file-contents.d.mts.map +1 -1
  41. package/dist/actions/get-file-contents.mjs +1 -1
  42. package/dist/actions/get-file-contents.mjs.map +1 -1
  43. package/dist/actions/list-repositories.cjs +6 -6
  44. package/dist/actions/list-repositories.cjs.map +1 -1
  45. package/dist/actions/list-repositories.d.cts +19 -3
  46. package/dist/actions/list-repositories.d.cts.map +1 -1
  47. package/dist/actions/list-repositories.d.mts +19 -3
  48. package/dist/actions/list-repositories.d.mts.map +1 -1
  49. package/dist/actions/list-repositories.mjs +6 -6
  50. package/dist/actions/list-repositories.mjs.map +1 -1
  51. package/dist/actions/list-repository-files.cjs +5 -5
  52. package/dist/actions/list-repository-files.cjs.map +1 -1
  53. package/dist/actions/list-repository-files.d.cts +19 -3
  54. package/dist/actions/list-repository-files.d.cts.map +1 -1
  55. package/dist/actions/list-repository-files.d.mts +19 -3
  56. package/dist/actions/list-repository-files.d.mts.map +1 -1
  57. package/dist/actions/list-repository-files.mjs +5 -5
  58. package/dist/actions/list-repository-files.mjs.map +1 -1
  59. package/dist/actions/list-repository-languages.cjs +3 -3
  60. package/dist/actions/list-repository-languages.cjs.map +1 -1
  61. package/dist/actions/list-repository-languages.d.cts +14 -3
  62. package/dist/actions/list-repository-languages.d.cts.map +1 -1
  63. package/dist/actions/list-repository-languages.d.mts +14 -3
  64. package/dist/actions/list-repository-languages.d.mts.map +1 -1
  65. package/dist/actions/list-repository-languages.mjs +3 -3
  66. package/dist/actions/list-repository-languages.mjs.map +1 -1
  67. package/dist/catalog.cjs +14 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +13 -0
  70. package/dist/catalog.d.mts +13 -0
  71. package/dist/catalog.mjs +14 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\"),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema: z.ZodTypeAny = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput: z.ZodTypeAny = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAClI,MAAM,8CAA4DA,IAAAA,EAAE,OAAO,EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACnF,CAAC;AACD,MAAM,6DAA2EA,IAAAA,EAAE,OAAO,EACxF,aAAa,4CAA4C,SAAS,EACpE,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAM,2DAA2D,SAAS,EAC5E,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n}).passthrough();\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n}).passthrough();\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6DAA6DA,IAAAA,EAAE,OAAO,EAC1E,aAAa,4CAA4C,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,2DAA2D,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-current-user.d.ts
4
- declare const SourcegraphGetCurrentUserInput: z.ZodTypeAny;
5
- declare const SourcegraphGetCurrentUserOutput: z.ZodTypeAny;
6
- declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphGetCurrentUserInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
6
+ data: z.ZodNullable<z.ZodObject<{
7
+ currentUser: z.ZodNullable<z.ZodObject<{
8
+ username: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>>;
11
+ }, z.core.$loose>;
12
+ declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { sourcegraphGetCurrentUser };
9
15
  //# sourceMappingURL=get-current-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAoF;AAAA,cAOtH,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-current-user.d.ts
4
- declare const SourcegraphGetCurrentUserInput: z.ZodTypeAny;
5
- declare const SourcegraphGetCurrentUserOutput: z.ZodTypeAny;
6
- declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphGetCurrentUserInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
6
+ data: z.ZodNullable<z.ZodObject<{
7
+ currentUser: z.ZodNullable<z.ZodObject<{
8
+ username: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>>;
11
+ }, z.core.$loose>;
12
+ declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { sourcegraphGetCurrentUser };
9
15
  //# sourceMappingURL=get-current-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAoF;AAAA,cAOtH,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -2,14 +2,14 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-current-user.ts
4
4
  const SourcegraphGetCurrentUserInput = z.object({}).describe("Empty request model for GetCurrentUser action.");
5
- const SourcegraphGetCurrentUser_CurrentUserSchema = z.object({ username: z.string().describe("The username of the currently authenticated user.") });
6
- const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() });
5
+ const SourcegraphGetCurrentUser_CurrentUserSchema = z.object({ username: z.string().describe("The username of the currently authenticated user.").nullable() }).passthrough();
6
+ const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() }).passthrough();
7
7
  const sourcegraphGetCurrentUser = action("SOURCEGRAPH_GET_CURRENT_USER", {
8
8
  slug: "sourcegraph-get-current-user",
9
9
  name: "Get Current User",
10
10
  description: "Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.",
11
11
  input: SourcegraphGetCurrentUserInput,
12
- output: z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() })
12
+ output: z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() }).passthrough()
13
13
  });
14
14
  //#endregion
15
15
  export { sourcegraphGetCurrentUser };
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\"),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema: z.ZodTypeAny = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput: z.ZodTypeAny = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAClI,MAAM,8CAA4D,EAAE,OAAO,EACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACnF,CAAC;AACD,MAAM,6DAA2E,EAAE,OAAO,EACxF,aAAa,4CAA4C,SAAS,EACpE,CAAC;AAKD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,2DAA2D,SAAS,EAC5E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n}).passthrough();\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n}).passthrough();\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8C,EAAE,OAAO,EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6DAA6D,EAAE,OAAO,EAC1E,aAAa,4CAA4C,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,2DAA2D,SAAS,EAC5E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,7 +5,7 @@ const SourcegraphGetFileContentsInput = zod.z.object({
5
5
  file_path: zod.z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
6
6
  repo_name: zod.z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
7
7
  }).describe("Request model for fetching file contents from a repository's default branch.");
8
- const SourcegraphGetFileContentsOutput = zod.z.object({ content: zod.z.string().describe("The raw text contents of the specified file on the repository's default branch.") }).describe("Response model containing the content of the file.");
8
+ const SourcegraphGetFileContentsOutput = zod.z.object({ content: zod.z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).passthrough().describe("Response model containing the content of the file.");
9
9
  const sourcegraphGetFileContents = require_action.action("SOURCEGRAPH_GET_FILE_CONTENTS", {
10
10
  slug: "sourcegraph-get-file-contents",
11
11
  name: "Get File Contents",
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput: z.ZodTypeAny = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\"),\n}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACvH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\").nullable(),\n}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACvH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-file-contents.d.ts
4
- declare const SourcegraphGetFileContentsInput: z.ZodTypeAny;
5
- declare const SourcegraphGetFileContentsOutput: z.ZodTypeAny;
6
- declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
5
+ file_path: z.ZodString;
6
+ repo_name: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
9
+ content: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ file_path: string;
13
+ repo_name: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { sourcegraphGetFileContents };
9
17
  //# sourceMappingURL=get-file-contents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-contents.d.cts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG2C;AAAA,cAC9E,gCAAA,EAAkC,CAAA,CAAE,UAEgB;AAAA,cAEpD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-file-contents.d.cts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-file-contents.d.ts
4
- declare const SourcegraphGetFileContentsInput: z.ZodTypeAny;
5
- declare const SourcegraphGetFileContentsOutput: z.ZodTypeAny;
6
- declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
5
+ file_path: z.ZodString;
6
+ repo_name: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
9
+ content: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ file_path: string;
13
+ repo_name: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { sourcegraphGetFileContents };
9
17
  //# sourceMappingURL=get-file-contents.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-contents.d.mts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG2C;AAAA,cAC9E,gCAAA,EAAkC,CAAA,CAAE,UAEgB;AAAA,cAEpD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-file-contents.d.mts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -8,7 +8,7 @@ const sourcegraphGetFileContents = action("SOURCEGRAPH_GET_FILE_CONTENTS", {
8
8
  file_path: z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
9
9
  repo_name: z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
10
10
  }).describe("Request model for fetching file contents from a repository's default branch."),
11
- output: z.object({ content: z.string().describe("The raw text contents of the specified file on the repository's default branch.") }).describe("Response model containing the content of the file.")
11
+ output: z.object({ content: z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).passthrough().describe("Response model containing the content of the file.")
12
12
  });
13
13
  //#endregion
14
14
  export { sourcegraphGetFileContents };
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput: z.ZodTypeAny = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\"),\n}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2D,EAAE,OAAO;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QAT4D,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\").nullable(),\n}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -6,18 +6,18 @@ const SourcegraphListRepositoriesInput = zod.z.object({
6
6
  first: zod.z.number().int().describe("Number of repositories to retrieve (1-1000).")
7
7
  });
8
8
  const SourcegraphListRepositories_RepositoryNodeSchema = zod.z.object({
9
- url: zod.z.string().describe("Web URL of the repository."),
10
- name: zod.z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'."),
9
+ url: zod.z.string().describe("Web URL of the repository.").nullable(),
10
+ name: zod.z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.").nullable(),
11
11
  description: zod.z.string().describe("Description of the repository.").nullable().optional()
12
- });
12
+ }).passthrough();
13
13
  const SourcegraphListRepositories_PageInfoSchema = zod.z.object({
14
14
  endCursor: zod.z.string().describe("Cursor for fetching next page.").nullable().optional(),
15
- hasNextPage: zod.z.boolean().describe("True if more pages of results are available.")
16
- });
15
+ hasNextPage: zod.z.boolean().describe("True if more pages of results are available.").nullable()
16
+ }).passthrough();
17
17
  const SourcegraphListRepositoriesOutput = zod.z.object({
18
18
  nodes: zod.z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
19
19
  pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
20
- });
20
+ }).passthrough();
21
21
  const sourcegraphListRepositories = require_action.action("SOURCEGRAPH_LIST_REPOSITORIES", {
22
22
  slug: "sourcegraph-list-repositories",
23
23
  name: "List Repositories",
@@ -1 +1 @@
1
- {"version":3,"file":"list-repositories.cjs","names":["z","action"],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Web URL of the repository.\"),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\"),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n});\nconst SourcegraphListRepositories_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\"),\n});\nexport const SourcegraphListRepositoriesOutput: z.ZodTypeAny = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n});\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;AAClF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;CACrG,UAAU,2CAA2C,SAAS;AAChE,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-repositories.cjs","names":["z","action"],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema = z.object({\n url: z.string().describe(\"Web URL of the repository.\").nullable(),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\").nullable(),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n}).passthrough();\nconst SourcegraphListRepositories_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoriesOutput = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;CACrG,UAAU,2CAA2C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,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/list-repositories.d.ts
4
- declare const SourcegraphListRepositoriesInput: z.ZodTypeAny;
5
- declare const SourcegraphListRepositoriesOutput: z.ZodTypeAny;
6
- declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphListRepositoriesInput: z.ZodObject<{
5
+ after: z.ZodOptional<z.ZodString>;
6
+ first: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
9
+ nodes: z.ZodArray<z.ZodObject<{
10
+ url: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>>;
14
+ pageInfo: z.ZodNullable<z.ZodObject<{
15
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
+ declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ first: number;
21
+ after?: string | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { sourcegraphListRepositories };
9
25
  //# sourceMappingURL=list-repositories.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-repositories.d.cts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAG/C;AAAA,cAUW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-repositories.d.cts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAahC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-repositories.d.ts
4
- declare const SourcegraphListRepositoriesInput: z.ZodTypeAny;
5
- declare const SourcegraphListRepositoriesOutput: z.ZodTypeAny;
6
- declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphListRepositoriesInput: z.ZodObject<{
5
+ after: z.ZodOptional<z.ZodString>;
6
+ first: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
9
+ nodes: z.ZodArray<z.ZodObject<{
10
+ url: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>>;
14
+ pageInfo: z.ZodNullable<z.ZodObject<{
15
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
17
+ }, z.core.$loose>>;
18
+ }, z.core.$loose>;
19
+ declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ first: number;
21
+ after?: string | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { sourcegraphListRepositories };
9
25
  //# sourceMappingURL=list-repositories.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-repositories.d.mts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAG/C;AAAA,cAUW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-repositories.d.mts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAahC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -6,14 +6,14 @@ const SourcegraphListRepositoriesInput = z.object({
6
6
  first: z.number().int().describe("Number of repositories to retrieve (1-1000).")
7
7
  });
8
8
  const SourcegraphListRepositories_RepositoryNodeSchema = z.object({
9
- url: z.string().describe("Web URL of the repository."),
10
- name: z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'."),
9
+ url: z.string().describe("Web URL of the repository.").nullable(),
10
+ name: z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.").nullable(),
11
11
  description: z.string().describe("Description of the repository.").nullable().optional()
12
- });
12
+ }).passthrough();
13
13
  const SourcegraphListRepositories_PageInfoSchema = z.object({
14
14
  endCursor: z.string().describe("Cursor for fetching next page.").nullable().optional(),
15
- hasNextPage: z.boolean().describe("True if more pages of results are available.")
16
- });
15
+ hasNextPage: z.boolean().describe("True if more pages of results are available.").nullable()
16
+ }).passthrough();
17
17
  const sourcegraphListRepositories = action("SOURCEGRAPH_LIST_REPOSITORIES", {
18
18
  slug: "sourcegraph-list-repositories",
19
19
  name: "List Repositories",
@@ -22,7 +22,7 @@ const sourcegraphListRepositories = action("SOURCEGRAPH_LIST_REPOSITORIES", {
22
22
  output: z.object({
23
23
  nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
24
24
  pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
25
- })
25
+ }).passthrough()
26
26
  });
27
27
  //#endregion
28
28
  export { sourcegraphListRepositories };
@@ -1 +1 @@
1
- {"version":3,"file":"list-repositories.mjs","names":[],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Web URL of the repository.\"),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\"),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n});\nconst SourcegraphListRepositories_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\"),\n});\nexport const SourcegraphListRepositoriesOutput: z.ZodTypeAny = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n});\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;AAClF,CAAC;AAMD,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6D,EAAE,OAAO;EACtE,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;EACrG,UAAU,2CAA2C,SAAS;CAChE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-repositories.mjs","names":[],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema = z.object({\n url: z.string().describe(\"Web URL of the repository.\").nullable(),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\").nullable(),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n}).passthrough();\nconst SourcegraphListRepositories_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoriesOutput = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;EACrG,UAAU,2CAA2C,SAAS;CAChE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,11 +8,11 @@ const SourcegraphListRepositoryFilesInput = zod.z.object({
8
8
  repo_name: zod.z.string().describe("Full repository name, e.g., 'github.com/owner/repo'")
9
9
  });
10
10
  const SourcegraphListRepositoryFiles_RepositoryEntrySchema = zod.z.object({
11
- url: zod.z.string().describe("URL to access the file or directory."),
12
- path: zod.z.string().describe("Path relative to the repository root."),
13
- isDirectory: zod.z.boolean().describe("True if the entry is a directory.")
14
- });
15
- const SourcegraphListRepositoryFilesOutput = zod.z.object({ entries: zod.z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") });
11
+ url: zod.z.string().describe("URL to access the file or directory.").nullable(),
12
+ path: zod.z.string().describe("Path relative to the repository root.").nullable(),
13
+ isDirectory: zod.z.boolean().describe("True if the entry is a directory.").nullable()
14
+ }).passthrough();
15
+ const SourcegraphListRepositoryFilesOutput = zod.z.object({ entries: zod.z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") }).passthrough();
16
16
  const sourcegraphListRepositoryFiles = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
17
17
  slug: "sourcegraph-list-repository-files",
18
18
  name: "List Repository Files",
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-files.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput: z.ZodTypeAny = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to access the file or directory.\"),\n path: z.string().describe(\"Path relative to the repository root.\"),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\"),\n});\nexport const SourcegraphListRepositoryFilesOutput: z.ZodTypeAny = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n});\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;AACvE,CAAC;AACD,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC;AAED,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-repository-files.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({\n url: z.string().describe(\"URL to access the file or directory.\").nullable(),\n path: z.string().describe(\"Path relative to the repository root.\").nullable(),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoryFilesOutput = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n}).passthrough();\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,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/list-repository-files.d.ts
4
- declare const SourcegraphListRepositoryFilesInput: z.ZodTypeAny;
5
- declare const SourcegraphListRepositoryFilesOutput: z.ZodTypeAny;
6
- declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphListRepositoryFilesInput: z.ZodObject<{
5
+ rev: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ path: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ recursive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ repo_name: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
11
+ entries: z.ZodArray<z.ZodObject<{
12
+ url: z.ZodNullable<z.ZodString>;
13
+ path: z.ZodNullable<z.ZodString>;
14
+ isDirectory: z.ZodNullable<z.ZodBoolean>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ repo_name: string;
19
+ rev?: string | undefined;
20
+ path?: string | undefined;
21
+ recursive?: boolean | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { sourcegraphListRepositoryFiles };
9
25
  //# sourceMappingURL=list-repository-files.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-files.d.cts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAKlD;AAAA,cAMW,oCAAA,EAAsC,CAAA,CAAE,UAEnD;AAAA,cAEW,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-repository-files.d.cts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-repository-files.d.ts
4
- declare const SourcegraphListRepositoryFilesInput: z.ZodTypeAny;
5
- declare const SourcegraphListRepositoryFilesOutput: z.ZodTypeAny;
6
- declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphListRepositoryFilesInput: z.ZodObject<{
5
+ rev: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ path: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ recursive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
8
+ repo_name: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
11
+ entries: z.ZodArray<z.ZodObject<{
12
+ url: z.ZodNullable<z.ZodString>;
13
+ path: z.ZodNullable<z.ZodString>;
14
+ isDirectory: z.ZodNullable<z.ZodBoolean>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ repo_name: string;
19
+ rev?: string | undefined;
20
+ path?: string | undefined;
21
+ recursive?: boolean | undefined;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { sourcegraphListRepositoryFiles };
9
25
  //# sourceMappingURL=list-repository-files.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-files.d.mts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAKlD;AAAA,cAMW,oCAAA,EAAsC,CAAA,CAAE,UAEnD;AAAA,cAEW,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-repository-files.d.mts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
@@ -8,16 +8,16 @@ const SourcegraphListRepositoryFilesInput = z.object({
8
8
  repo_name: z.string().describe("Full repository name, e.g., 'github.com/owner/repo'")
9
9
  });
10
10
  const SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({
11
- url: z.string().describe("URL to access the file or directory."),
12
- path: z.string().describe("Path relative to the repository root."),
13
- isDirectory: z.boolean().describe("True if the entry is a directory.")
14
- });
11
+ url: z.string().describe("URL to access the file or directory.").nullable(),
12
+ path: z.string().describe("Path relative to the repository root.").nullable(),
13
+ isDirectory: z.boolean().describe("True if the entry is a directory.").nullable()
14
+ }).passthrough();
15
15
  const sourcegraphListRepositoryFiles = action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
16
16
  slug: "sourcegraph-list-repository-files",
17
17
  name: "List Repository Files",
18
18
  description: "Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.",
19
19
  input: SourcegraphListRepositoryFilesInput,
20
- output: z.object({ entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") })
20
+ output: z.object({ entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") }).passthrough()
21
21
  });
22
22
  //#endregion
23
23
  export { sourcegraphListRepositoryFiles };
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-files.mjs","names":[],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput: z.ZodTypeAny = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to access the file or directory.\"),\n path: z.string().describe(\"Path relative to the repository root.\"),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\"),\n});\nexport const SourcegraphListRepositoryFilesOutput: z.ZodTypeAny = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n});\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAqE,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;AACvE,CAAC;AAKD,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgE,EAAE,OAAO,EACzE,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-repository-files.mjs","names":[],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({\n url: z.string().describe(\"URL to access the file or directory.\").nullable(),\n path: z.string().describe(\"Path relative to the repository root.\").nullable(),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoryFilesOutput = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n}).passthrough();\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -2,12 +2,12 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/list-repository-languages.ts
4
4
  const SourcegraphListRepositoryLanguagesInput = zod.z.object({ repoName: zod.z.string().describe("Full name of the repository (e.g., 'github.com/gorilla/mux').") }).describe("Request model for listing the languages of a repository.");
5
- const SourcegraphListRepositoryLanguages_CommitDataSchema = zod.z.object({ languages: zod.z.array(zod.z.string()).describe("All languages used in the repository's HEAD commit.") }).describe("All languages present in the HEAD commit of the repository.");
5
+ const SourcegraphListRepositoryLanguages_CommitDataSchema = zod.z.object({ languages: zod.z.array(zod.z.string()).describe("All languages used in the repository's HEAD commit.") }).passthrough().describe("All languages present in the HEAD commit of the repository.");
6
6
  const SourcegraphListRepositoryLanguages_RepositoryDataSchema = zod.z.object({
7
7
  commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
8
8
  language: zod.z.string().describe("Primary language of the repository; null if unset.").nullable().optional()
9
- }).describe("Repository language information.");
10
- const SourcegraphListRepositoryLanguagesOutput = zod.z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).describe("Response model for repository languages.");
9
+ }).passthrough().describe("Repository language information.");
10
+ const SourcegraphListRepositoryLanguagesOutput = zod.z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).passthrough().describe("Response model for repository languages.");
11
11
  const sourcegraphListRepositoryLanguages = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
12
12
  slug: "sourcegraph-list-repository-languages",
13
13
  name: "List repository languages",
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-languages.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput: z.ZodTypeAny = z.object({\n repoName: z.string().describe(\"Full name of the repository (e.g., 'github.com/gorilla/mux').\"),\n}).describe(\"Request model for listing the languages of a repository.\");\nconst SourcegraphListRepositoryLanguages_CommitDataSchema: z.ZodTypeAny = z.object({\n languages: z.array(z.string()).describe(\"All languages used in the repository's HEAD commit.\"),\n}).describe(\"All languages present in the HEAD commit of the repository.\");\nconst SourcegraphListRepositoryLanguages_RepositoryDataSchema: z.ZodTypeAny = z.object({\n commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),\n language: z.string().describe(\"Primary language of the repository; null if unset.\").nullable().optional(),\n}).describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput: z.ZodTypeAny = z.object({\n repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional(),\n}).describe(\"Response model for repository languages.\");\n\nexport const sourcegraphListRepositoryLanguages = action(\"SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES\", {\n slug: \"sourcegraph-list-repository-languages\",\n name: \"List repository languages\",\n description: \"Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.\",\n input: SourcegraphListRepositoryLanguagesInput,\n output: SourcegraphListRepositoryLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAoEA,IAAAA,EAAE,OAAO,EACjF,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,QAAQ,oDAAoD,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-repository-languages.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput = z.object({\n repoName: z.string().describe(\"Full name of the repository (e.g., 'github.com/gorilla/mux').\"),\n}).describe(\"Request model for listing the languages of a repository.\");\nconst SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({\n languages: z.array(z.string()).describe(\"All languages used in the repository's HEAD commit.\"),\n}).passthrough().describe(\"All languages present in the HEAD commit of the repository.\");\nconst SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({\n commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),\n language: z.string().describe(\"Primary language of the repository; null if unset.\").nullable().optional(),\n}).passthrough().describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput = z.object({\n repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for repository languages.\");\n\nexport const sourcegraphListRepositoryLanguages = action(\"SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES\", {\n slug: \"sourcegraph-list-repository-languages\",\n name: \"List repository languages\",\n description: \"Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.\",\n input: SourcegraphListRepositoryLanguagesInput,\n output: SourcegraphListRepositoryLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,QAAQ,oDAAoD,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-repository-languages.d.ts
4
- declare const SourcegraphListRepositoryLanguagesInput: z.ZodTypeAny;
5
- declare const SourcegraphListRepositoryLanguagesOutput: z.ZodTypeAny;
6
- declare const sourcegraphListRepositoryLanguages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SourcegraphListRepositoryLanguagesInput: z.ZodObject<{
5
+ repoName: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
8
+ repository: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ commit: z.ZodNullable<z.ZodObject<{
10
+ languages: z.ZodArray<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>>>;
14
+ }, z.core.$loose>;
15
+ declare const sourcegraphListRepositoryLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ repoName: string;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { sourcegraphListRepositoryLanguages };
9
20
  //# sourceMappingURL=list-repository-languages.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-repository-languages.d.cts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAEe;AAAA,cAQ1D,wCAAA,EAA0C,CAAA,CAAE,UAEF;AAAA,cAE1C,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-repository-languages.d.cts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}