@keystrokehq/sourcegraph 0.1.0

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 (98) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/check-site-settings-edit-permission.cjs +18 -0
  7. package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -0
  8. package/dist/actions/check-site-settings-edit-permission.d.cts +9 -0
  9. package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -0
  10. package/dist/actions/check-site-settings-edit-permission.d.mts +9 -0
  11. package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -0
  12. package/dist/actions/check-site-settings-edit-permission.mjs +17 -0
  13. package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -0
  14. package/dist/actions/compare-commits.cjs +30 -0
  15. package/dist/actions/compare-commits.cjs.map +1 -0
  16. package/dist/actions/compare-commits.d.cts +9 -0
  17. package/dist/actions/compare-commits.d.cts.map +1 -0
  18. package/dist/actions/compare-commits.d.mts +9 -0
  19. package/dist/actions/compare-commits.d.mts.map +1 -0
  20. package/dist/actions/compare-commits.mjs +29 -0
  21. package/dist/actions/compare-commits.mjs.map +1 -0
  22. package/dist/actions/get-commit-details.cjs +39 -0
  23. package/dist/actions/get-commit-details.cjs.map +1 -0
  24. package/dist/actions/get-commit-details.d.cts +9 -0
  25. package/dist/actions/get-commit-details.d.cts.map +1 -0
  26. package/dist/actions/get-commit-details.d.mts +9 -0
  27. package/dist/actions/get-commit-details.d.mts.map +1 -0
  28. package/dist/actions/get-commit-details.mjs +38 -0
  29. package/dist/actions/get-commit-details.mjs.map +1 -0
  30. package/dist/actions/get-current-user.cjs +18 -0
  31. package/dist/actions/get-current-user.cjs.map +1 -0
  32. package/dist/actions/get-current-user.d.cts +9 -0
  33. package/dist/actions/get-current-user.d.cts.map +1 -0
  34. package/dist/actions/get-current-user.d.mts +9 -0
  35. package/dist/actions/get-current-user.d.mts.map +1 -0
  36. package/dist/actions/get-current-user.mjs +17 -0
  37. package/dist/actions/get-current-user.mjs.map +1 -0
  38. package/dist/actions/get-file-contents.cjs +19 -0
  39. package/dist/actions/get-file-contents.cjs.map +1 -0
  40. package/dist/actions/get-file-contents.d.cts +9 -0
  41. package/dist/actions/get-file-contents.d.cts.map +1 -0
  42. package/dist/actions/get-file-contents.d.mts +9 -0
  43. package/dist/actions/get-file-contents.d.mts.map +1 -0
  44. package/dist/actions/get-file-contents.mjs +16 -0
  45. package/dist/actions/get-file-contents.mjs.map +1 -0
  46. package/dist/actions/index.cjs +17 -0
  47. package/dist/actions/index.d.cts +9 -0
  48. package/dist/actions/index.d.mts +9 -0
  49. package/dist/actions/index.mjs +9 -0
  50. package/dist/actions/list-repositories.cjs +31 -0
  51. package/dist/actions/list-repositories.cjs.map +1 -0
  52. package/dist/actions/list-repositories.d.cts +9 -0
  53. package/dist/actions/list-repositories.d.cts.map +1 -0
  54. package/dist/actions/list-repositories.d.mts +9 -0
  55. package/dist/actions/list-repositories.d.mts.map +1 -0
  56. package/dist/actions/list-repositories.mjs +30 -0
  57. package/dist/actions/list-repositories.mjs.map +1 -0
  58. package/dist/actions/list-repository-files.cjs +26 -0
  59. package/dist/actions/list-repository-files.cjs.map +1 -0
  60. package/dist/actions/list-repository-files.d.cts +9 -0
  61. package/dist/actions/list-repository-files.d.cts.map +1 -0
  62. package/dist/actions/list-repository-files.d.mts +9 -0
  63. package/dist/actions/list-repository-files.d.mts.map +1 -0
  64. package/dist/actions/list-repository-files.mjs +25 -0
  65. package/dist/actions/list-repository-files.mjs.map +1 -0
  66. package/dist/actions/list-repository-languages.cjs +21 -0
  67. package/dist/actions/list-repository-languages.cjs.map +1 -0
  68. package/dist/actions/list-repository-languages.d.cts +9 -0
  69. package/dist/actions/list-repository-languages.d.cts.map +1 -0
  70. package/dist/actions/list-repository-languages.d.mts +9 -0
  71. package/dist/actions/list-repository-languages.d.mts.map +1 -0
  72. package/dist/actions/list-repository-languages.mjs +20 -0
  73. package/dist/actions/list-repository-languages.mjs.map +1 -0
  74. package/dist/app.cjs +9 -0
  75. package/dist/app.cjs.map +1 -0
  76. package/dist/app.d.cts +5 -0
  77. package/dist/app.d.cts.map +1 -0
  78. package/dist/app.d.mts +5 -0
  79. package/dist/app.d.mts.map +1 -0
  80. package/dist/app.mjs +10 -0
  81. package/dist/app.mjs.map +1 -0
  82. package/dist/catalog.cjs +15 -0
  83. package/dist/catalog.cjs.map +1 -0
  84. package/dist/catalog.d.cts +14 -0
  85. package/dist/catalog.d.cts.map +1 -0
  86. package/dist/catalog.d.mts +14 -0
  87. package/dist/catalog.d.mts.map +1 -0
  88. package/dist/catalog.mjs +15 -0
  89. package/dist/catalog.mjs.map +1 -0
  90. package/dist/execute.cjs +18 -0
  91. package/dist/execute.cjs.map +1 -0
  92. package/dist/execute.mjs +18 -0
  93. package/dist/execute.mjs.map +1 -0
  94. package/dist/index.cjs +22 -0
  95. package/dist/index.d.cts +11 -0
  96. package/dist/index.d.mts +11 -0
  97. package/dist/index.mjs +12 -0
  98. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./check-site-settings-edit-permission.cjs";
2
+ import { sourcegraphCompareCommits } from "./compare-commits.cjs";
3
+ import { sourcegraphGetCommitDetails } from "./get-commit-details.cjs";
4
+ import { sourcegraphGetCurrentUser } from "./get-current-user.cjs";
5
+ import { sourcegraphGetFileContents } from "./get-file-contents.cjs";
6
+ import { sourcegraphListRepositories } from "./list-repositories.cjs";
7
+ import { sourcegraphListRepositoryFiles } from "./list-repository-files.cjs";
8
+ import { sourcegraphListRepositoryLanguages } from "./list-repository-languages.cjs";
9
+ export { sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
@@ -0,0 +1,9 @@
1
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./check-site-settings-edit-permission.mjs";
2
+ import { sourcegraphCompareCommits } from "./compare-commits.mjs";
3
+ import { sourcegraphGetCommitDetails } from "./get-commit-details.mjs";
4
+ import { sourcegraphGetCurrentUser } from "./get-current-user.mjs";
5
+ import { sourcegraphGetFileContents } from "./get-file-contents.mjs";
6
+ import { sourcegraphListRepositories } from "./list-repositories.mjs";
7
+ import { sourcegraphListRepositoryFiles } from "./list-repository-files.mjs";
8
+ import { sourcegraphListRepositoryLanguages } from "./list-repository-languages.mjs";
9
+ export { sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
@@ -0,0 +1,9 @@
1
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./check-site-settings-edit-permission.mjs";
2
+ import { sourcegraphCompareCommits } from "./compare-commits.mjs";
3
+ import { sourcegraphGetCommitDetails } from "./get-commit-details.mjs";
4
+ import { sourcegraphGetCurrentUser } from "./get-current-user.mjs";
5
+ import { sourcegraphGetFileContents } from "./get-file-contents.mjs";
6
+ import { sourcegraphListRepositories } from "./list-repositories.mjs";
7
+ import { sourcegraphListRepositoryFiles } from "./list-repository-files.mjs";
8
+ import { sourcegraphListRepositoryLanguages } from "./list-repository-languages.mjs";
9
+ export { sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
@@ -0,0 +1,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-repositories.ts
4
+ const SourcegraphListRepositoriesInput = zod.z.object({
5
+ after: zod.z.string().describe("Pagination cursor returned from previous page; omit for first page.").optional(),
6
+ first: zod.z.number().int().describe("Number of repositories to retrieve (1-1000).")
7
+ });
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'."),
11
+ description: zod.z.string().describe("Description of the repository.").nullable().optional()
12
+ });
13
+ const SourcegraphListRepositories_PageInfoSchema = zod.z.object({
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
+ });
17
+ const SourcegraphListRepositoriesOutput = zod.z.object({
18
+ nodes: zod.z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
19
+ pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
20
+ });
21
+ const sourcegraphListRepositories = require_action.action("SOURCEGRAPH_LIST_REPOSITORIES", {
22
+ slug: "sourcegraph-list-repositories",
23
+ name: "List Repositories",
24
+ description: "Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.",
25
+ input: SourcegraphListRepositoriesInput,
26
+ output: SourcegraphListRepositoriesOutput
27
+ });
28
+ //#endregion
29
+ exports.sourcegraphListRepositories = sourcegraphListRepositories;
30
+
31
+ //# sourceMappingURL=list-repositories.cjs.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositories };
9
+ //# sourceMappingURL=list-repositories.d.cts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositories };
9
+ //# sourceMappingURL=list-repositories.d.mts.map
@@ -0,0 +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"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-repositories.ts
4
+ const SourcegraphListRepositoriesInput = z.object({
5
+ after: z.string().describe("Pagination cursor returned from previous page; omit for first page.").optional(),
6
+ first: z.number().int().describe("Number of repositories to retrieve (1-1000).")
7
+ });
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'."),
11
+ description: z.string().describe("Description of the repository.").nullable().optional()
12
+ });
13
+ const SourcegraphListRepositories_PageInfoSchema = z.object({
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
+ });
17
+ const sourcegraphListRepositories = action("SOURCEGRAPH_LIST_REPOSITORIES", {
18
+ slug: "sourcegraph-list-repositories",
19
+ name: "List Repositories",
20
+ description: "Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.",
21
+ input: SourcegraphListRepositoriesInput,
22
+ output: z.object({
23
+ nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
24
+ pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
25
+ })
26
+ });
27
+ //#endregion
28
+ export { sourcegraphListRepositories };
29
+
30
+ //# sourceMappingURL=list-repositories.mjs.map
@@ -0,0 +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"}
@@ -0,0 +1,26 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-repository-files.ts
4
+ const SourcegraphListRepositoryFilesInput = zod.z.object({
5
+ rev: zod.z.string().default("HEAD").describe("Git ref (branch, tag, or commit SHA). Defaults to HEAD.").optional(),
6
+ path: zod.z.string().default("").describe("Path within the repository. Defaults to root ('').").optional(),
7
+ recursive: zod.z.boolean().default(true).describe("Whether to list files recursively. Defaults to True.").optional(),
8
+ repo_name: zod.z.string().describe("Full repository name, e.g., 'github.com/owner/repo'")
9
+ });
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.") });
16
+ const sourcegraphListRepositoryFiles = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
17
+ slug: "sourcegraph-list-repository-files",
18
+ name: "List Repository Files",
19
+ description: "Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.",
20
+ input: SourcegraphListRepositoryFilesInput,
21
+ output: SourcegraphListRepositoryFilesOutput
22
+ });
23
+ //#endregion
24
+ exports.sourcegraphListRepositoryFiles = sourcegraphListRepositoryFiles;
25
+
26
+ //# sourceMappingURL=list-repository-files.cjs.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositoryFiles };
9
+ //# sourceMappingURL=list-repository-files.d.cts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositoryFiles };
9
+ //# sourceMappingURL=list-repository-files.d.mts.map
@@ -0,0 +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"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-repository-files.ts
4
+ const SourcegraphListRepositoryFilesInput = z.object({
5
+ rev: z.string().default("HEAD").describe("Git ref (branch, tag, or commit SHA). Defaults to HEAD.").optional(),
6
+ path: z.string().default("").describe("Path within the repository. Defaults to root ('').").optional(),
7
+ recursive: z.boolean().default(true).describe("Whether to list files recursively. Defaults to True.").optional(),
8
+ repo_name: z.string().describe("Full repository name, e.g., 'github.com/owner/repo'")
9
+ });
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
+ });
15
+ const sourcegraphListRepositoryFiles = action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
16
+ slug: "sourcegraph-list-repository-files",
17
+ name: "List Repository Files",
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
+ input: SourcegraphListRepositoryFilesInput,
20
+ output: z.object({ entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") })
21
+ });
22
+ //#endregion
23
+ export { sourcegraphListRepositoryFiles };
24
+
25
+ //# sourceMappingURL=list-repository-files.mjs.map
@@ -0,0 +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"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-repository-languages.ts
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.");
6
+ const SourcegraphListRepositoryLanguages_RepositoryDataSchema = zod.z.object({
7
+ commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
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.");
11
+ const sourcegraphListRepositoryLanguages = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
12
+ slug: "sourcegraph-list-repository-languages",
13
+ name: "List repository languages",
14
+ 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.",
15
+ input: SourcegraphListRepositoryLanguagesInput,
16
+ output: SourcegraphListRepositoryLanguagesOutput
17
+ });
18
+ //#endregion
19
+ exports.sourcegraphListRepositoryLanguages = sourcegraphListRepositoryLanguages;
20
+
21
+ //# sourceMappingURL=list-repository-languages.cjs.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositoryLanguages };
9
+ //# sourceMappingURL=list-repository-languages.d.cts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
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]>;
7
+ //#endregion
8
+ export { sourcegraphListRepositoryLanguages };
9
+ //# sourceMappingURL=list-repository-languages.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-repository-languages.d.mts","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"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-repository-languages.ts
4
+ const SourcegraphListRepositoryLanguagesInput = z.object({ repoName: 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 = z.object({ languages: z.array(z.string()).describe("All languages used in the repository's HEAD commit.") }).describe("All languages present in the HEAD commit of the repository.");
6
+ const SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({
7
+ commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
8
+ language: z.string().describe("Primary language of the repository; null if unset.").nullable().optional()
9
+ }).describe("Repository language information.");
10
+ const sourcegraphListRepositoryLanguages = action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
11
+ slug: "sourcegraph-list-repository-languages",
12
+ name: "List repository languages",
13
+ 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.",
14
+ input: SourcegraphListRepositoryLanguagesInput,
15
+ output: z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).describe("Response model for repository languages.")
16
+ });
17
+ //#endregion
18
+ export { sourcegraphListRepositoryLanguages };
19
+
20
+ //# sourceMappingURL=list-repository-languages.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-repository-languages.mjs","names":[],"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,0CAAwD,EAAE,OAAO,EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAoE,EAAE,OAAO,EACjF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,0DAAwE,EAAE,OAAO;CACrF,QAAQ,oDAAoD,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAK9C,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const sourcegraph = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "sourcegraph",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.sourcegraph = sourcegraph;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const sourcegraph = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,eAAA,uCAAA,CAAA,CAAA,UAAA,CAAwB;CACnC,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const sourcegraph: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { sourcegraph };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,WAAA,6BAAW,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const sourcegraph: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { sourcegraph };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,WAAA,6BAAW,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const sourcegraph = defineApp({
4
+ slug: "sourcegraph",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { sourcegraph };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const sourcegraph = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,cAAc,UAAU;CACnC,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const sourcegraphCatalog = {
4
+ "slug": "sourcegraph",
5
+ "name": "Sourcegraph",
6
+ "description": "Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/sourcegraph",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.sourcegraphCatalog = sourcegraphCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const sourcegraphCatalog: {
4
+ readonly slug: "sourcegraph";
5
+ readonly name: "Sourcegraph";
6
+ readonly description: "Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/sourcegraph";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { sourcegraphCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,kBAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const sourcegraphCatalog: {
4
+ readonly slug: "sourcegraph";
5
+ readonly name: "Sourcegraph";
6
+ readonly description: "Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/sourcegraph";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { sourcegraphCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,kBAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const sourcegraphCatalog = {
4
+ "slug": "sourcegraph",
5
+ "name": "Sourcegraph",
6
+ "description": "Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/sourcegraph",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { sourcegraphCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "sourcegraph";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeSourcegraphTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeSourcegraphTool = executeSourcegraphTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sourcegraph\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSourcegraphTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,uBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "sourcegraph";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeSourcegraphTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeSourcegraphTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sourcegraph\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSourcegraphTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,uBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_check_site_settings_edit_permission = require("./actions/check-site-settings-edit-permission.cjs");
5
+ const require_compare_commits = require("./actions/compare-commits.cjs");
6
+ const require_get_commit_details = require("./actions/get-commit-details.cjs");
7
+ const require_get_current_user = require("./actions/get-current-user.cjs");
8
+ const require_get_file_contents = require("./actions/get-file-contents.cjs");
9
+ const require_list_repositories = require("./actions/list-repositories.cjs");
10
+ const require_list_repository_files = require("./actions/list-repository-files.cjs");
11
+ const require_list_repository_languages = require("./actions/list-repository-languages.cjs");
12
+ require("./actions/index.cjs");
13
+ exports.sourcegraph = require_app.sourcegraph;
14
+ exports.sourcegraphCatalog = require_catalog.sourcegraphCatalog;
15
+ exports.sourcegraphCheckSiteSettingsEditPermission = require_check_site_settings_edit_permission.sourcegraphCheckSiteSettingsEditPermission;
16
+ exports.sourcegraphCompareCommits = require_compare_commits.sourcegraphCompareCommits;
17
+ exports.sourcegraphGetCommitDetails = require_get_commit_details.sourcegraphGetCommitDetails;
18
+ exports.sourcegraphGetCurrentUser = require_get_current_user.sourcegraphGetCurrentUser;
19
+ exports.sourcegraphGetFileContents = require_get_file_contents.sourcegraphGetFileContents;
20
+ exports.sourcegraphListRepositories = require_list_repositories.sourcegraphListRepositories;
21
+ exports.sourcegraphListRepositoryFiles = require_list_repository_files.sourcegraphListRepositoryFiles;
22
+ exports.sourcegraphListRepositoryLanguages = require_list_repository_languages.sourcegraphListRepositoryLanguages;
@@ -0,0 +1,11 @@
1
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./actions/check-site-settings-edit-permission.cjs";
2
+ import { sourcegraphCompareCommits } from "./actions/compare-commits.cjs";
3
+ import { sourcegraphGetCommitDetails } from "./actions/get-commit-details.cjs";
4
+ import { sourcegraphGetCurrentUser } from "./actions/get-current-user.cjs";
5
+ import { sourcegraphGetFileContents } from "./actions/get-file-contents.cjs";
6
+ import { sourcegraphListRepositories } from "./actions/list-repositories.cjs";
7
+ import { sourcegraphListRepositoryFiles } from "./actions/list-repository-files.cjs";
8
+ import { sourcegraphListRepositoryLanguages } from "./actions/list-repository-languages.cjs";
9
+ import { sourcegraph } from "./app.cjs";
10
+ import { sourcegraphCatalog } from "./catalog.cjs";
11
+ export { sourcegraph, sourcegraphCatalog, sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
@@ -0,0 +1,11 @@
1
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./actions/check-site-settings-edit-permission.mjs";
2
+ import { sourcegraphCompareCommits } from "./actions/compare-commits.mjs";
3
+ import { sourcegraphGetCommitDetails } from "./actions/get-commit-details.mjs";
4
+ import { sourcegraphGetCurrentUser } from "./actions/get-current-user.mjs";
5
+ import { sourcegraphGetFileContents } from "./actions/get-file-contents.mjs";
6
+ import { sourcegraphListRepositories } from "./actions/list-repositories.mjs";
7
+ import { sourcegraphListRepositoryFiles } from "./actions/list-repository-files.mjs";
8
+ import { sourcegraphListRepositoryLanguages } from "./actions/list-repository-languages.mjs";
9
+ import { sourcegraph } from "./app.mjs";
10
+ import { sourcegraphCatalog } from "./catalog.mjs";
11
+ export { sourcegraph, sourcegraphCatalog, sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
package/dist/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import { sourcegraph } from "./app.mjs";
2
+ import { sourcegraphCatalog } from "./catalog.mjs";
3
+ import { sourcegraphCheckSiteSettingsEditPermission } from "./actions/check-site-settings-edit-permission.mjs";
4
+ import { sourcegraphCompareCommits } from "./actions/compare-commits.mjs";
5
+ import { sourcegraphGetCommitDetails } from "./actions/get-commit-details.mjs";
6
+ import { sourcegraphGetCurrentUser } from "./actions/get-current-user.mjs";
7
+ import { sourcegraphGetFileContents } from "./actions/get-file-contents.mjs";
8
+ import { sourcegraphListRepositories } from "./actions/list-repositories.mjs";
9
+ import { sourcegraphListRepositoryFiles } from "./actions/list-repository-files.mjs";
10
+ import { sourcegraphListRepositoryLanguages } from "./actions/list-repository-languages.mjs";
11
+ import "./actions/index.mjs";
12
+ export { sourcegraph, sourcegraphCatalog, sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };