@keystrokehq/sourcegraph 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.cjs +1 -0
- package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.cts +3 -15
- package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.mts +3 -15
- package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.mjs +1 -0
- package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -1
- package/dist/actions/compare-commits.cjs +1 -0
- package/dist/actions/compare-commits.cjs.map +1 -1
- package/dist/actions/compare-commits.d.cts +3 -19
- package/dist/actions/compare-commits.d.cts.map +1 -1
- package/dist/actions/compare-commits.d.mts +3 -19
- package/dist/actions/compare-commits.d.mts.map +1 -1
- package/dist/actions/compare-commits.mjs +1 -0
- package/dist/actions/compare-commits.mjs.map +1 -1
- package/dist/actions/get-commit-details.cjs +1 -0
- package/dist/actions/get-commit-details.cjs.map +1 -1
- package/dist/actions/get-commit-details.d.cts +3 -18
- package/dist/actions/get-commit-details.d.cts.map +1 -1
- package/dist/actions/get-commit-details.d.mts +3 -18
- package/dist/actions/get-commit-details.d.mts.map +1 -1
- package/dist/actions/get-commit-details.mjs +1 -0
- package/dist/actions/get-commit-details.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +1 -0
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +3 -15
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +3 -15
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +1 -0
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-file-contents.cjs +1 -0
- package/dist/actions/get-file-contents.cjs.map +1 -1
- package/dist/actions/get-file-contents.d.cts +3 -18
- package/dist/actions/get-file-contents.d.cts.map +1 -1
- package/dist/actions/get-file-contents.d.mts +3 -18
- package/dist/actions/get-file-contents.d.mts.map +1 -1
- package/dist/actions/get-file-contents.mjs +1 -0
- package/dist/actions/get-file-contents.mjs.map +1 -1
- package/dist/actions/list-repositories.cjs +1 -0
- package/dist/actions/list-repositories.cjs.map +1 -1
- package/dist/actions/list-repositories.d.cts +3 -18
- package/dist/actions/list-repositories.d.cts.map +1 -1
- package/dist/actions/list-repositories.d.mts +3 -18
- package/dist/actions/list-repositories.d.mts.map +1 -1
- package/dist/actions/list-repositories.mjs +1 -0
- package/dist/actions/list-repositories.mjs.map +1 -1
- package/dist/actions/list-repository-files.cjs +1 -0
- package/dist/actions/list-repository-files.cjs.map +1 -1
- package/dist/actions/list-repository-files.d.cts +3 -20
- package/dist/actions/list-repository-files.d.cts.map +1 -1
- package/dist/actions/list-repository-files.d.mts +3 -20
- package/dist/actions/list-repository-files.d.mts.map +1 -1
- package/dist/actions/list-repository-files.mjs +1 -0
- package/dist/actions/list-repository-files.mjs.map +1 -1
- package/dist/actions/list-repository-languages.cjs +1 -0
- package/dist/actions/list-repository-languages.cjs.map +1 -1
- package/dist/actions/list-repository-languages.d.cts +3 -17
- package/dist/actions/list-repository-languages.d.cts.map +1 -1
- package/dist/actions/list-repository-languages.d.mts +3 -17
- package/dist/actions/list-repository-languages.d.mts.map +1 -1
- package/dist/actions/list-repository-languages.mjs +1 -0
- package/dist/actions/list-repository-languages.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-contents.d.mts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-file-contents.d.mts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphGetFileContentsInput,\n typeof SourcegraphGetFileContentsOutput,\n typeof sourcegraph.credential\n> = 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":";;;AAcA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EAaH;CACP,QAb8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"list-repositories.cjs","names":["z","action"],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoriesInput,\n typeof SourcegraphListRepositoriesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,8BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repositories.d.ts
|
|
@@ -16,24 +18,7 @@ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
|
|
|
16
18
|
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const sourcegraphListRepositories:
|
|
20
|
-
first: number;
|
|
21
|
-
after?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
full: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
full: z.ZodString;
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const sourcegraphListRepositories: AppAction<typeof SourcegraphListRepositoriesInput, typeof SourcegraphListRepositoriesOutput, typeof sourcegraph.credential>;
|
|
37
22
|
//#endregion
|
|
38
23
|
export { sourcegraphListRepositories };
|
|
39
24
|
//# sourceMappingURL=list-repositories.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repositories.d.cts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-repositories.d.cts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAahC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repositories.d.ts
|
|
@@ -16,24 +18,7 @@ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
|
|
|
16
18
|
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const sourcegraphListRepositories:
|
|
20
|
-
first: number;
|
|
21
|
-
after?: string | undefined;
|
|
22
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
full: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
full: z.ZodString;
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const sourcegraphListRepositories: AppAction<typeof SourcegraphListRepositoriesInput, typeof SourcegraphListRepositoriesOutput, typeof sourcegraph.credential>;
|
|
37
22
|
//#endregion
|
|
38
23
|
export { sourcegraphListRepositories };
|
|
39
24
|
//# sourceMappingURL=list-repositories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repositories.d.mts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-repositories.d.mts","names":[],"sources":["../../src/actions/list-repositories.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAahC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"list-repositories.mjs","names":[],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoriesInput,\n typeof SourcegraphListRepositoriesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,8BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;EACrG,UAAU,2CAA2C,SAAS;CAChE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"list-repository-files.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoryFilesInput,\n typeof SourcegraphListRepositoryFilesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repository-files.d.ts
|
|
@@ -14,26 +16,7 @@ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
|
|
|
14
16
|
isDirectory: z.ZodNullable<z.ZodBoolean>;
|
|
15
17
|
}, z.core.$loose>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sourcegraphListRepositoryFiles:
|
|
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<"sourcegraph", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
full: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
full: z.ZodString;
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const sourcegraphListRepositoryFiles: AppAction<typeof SourcegraphListRepositoryFilesInput, typeof SourcegraphListRepositoryFilesOutput, typeof sourcegraph.credential>;
|
|
37
20
|
//#endregion
|
|
38
21
|
export { sourcegraphListRepositoryFiles };
|
|
39
22
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"list-repository-files.d.cts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repository-files.d.ts
|
|
@@ -14,26 +16,7 @@ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
|
|
|
14
16
|
isDirectory: z.ZodNullable<z.ZodBoolean>;
|
|
15
17
|
}, z.core.$loose>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sourcegraphListRepositoryFiles:
|
|
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<"sourcegraph", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
full: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
full: z.ZodString;
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const sourcegraphListRepositoryFiles: AppAction<typeof SourcegraphListRepositoryFilesInput, typeof SourcegraphListRepositoryFilesOutput, typeof sourcegraph.credential>;
|
|
37
20
|
//#endregion
|
|
38
21
|
export { sourcegraphListRepositoryFiles };
|
|
39
22
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"list-repository-files.d.mts","names":[],"sources":["../../src/actions/list-repository-files.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"list-repository-files.mjs","names":[],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoryFilesInput,\n typeof SourcegraphListRepositoryFilesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,iCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkD,EAAE,OAAO,EAC3D,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"list-repository-languages.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoryLanguagesInput,\n typeof SourcegraphListRepositoryLanguagesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,qCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repository-languages.d.ts
|
|
@@ -12,23 +14,7 @@ declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
|
|
|
12
14
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const sourcegraphListRepositoryLanguages:
|
|
16
|
-
repoName: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
full: z.ZodString;
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
full: z.ZodString;
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const sourcegraphListRepositoryLanguages: AppAction<typeof SourcegraphListRepositoryLanguagesInput, typeof SourcegraphListRepositoryLanguagesOutput, typeof sourcegraph.credential>;
|
|
32
18
|
//#endregion
|
|
33
19
|
export { sourcegraphListRepositoryLanguages };
|
|
34
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":"
|
|
1
|
+
{"version":3,"file":"list-repository-languages.d.cts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-repository-languages.d.ts
|
|
@@ -12,23 +14,7 @@ declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
|
|
|
12
14
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const sourcegraphListRepositoryLanguages:
|
|
16
|
-
repoName: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
full: z.ZodString;
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
full: z.ZodString;
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const sourcegraphListRepositoryLanguages: AppAction<typeof SourcegraphListRepositoryLanguagesInput, typeof SourcegraphListRepositoryLanguagesOutput, typeof sourcegraph.credential>;
|
|
32
18
|
//#endregion
|
|
33
19
|
export { sourcegraphListRepositoryLanguages };
|
|
34
20
|
//# sourceMappingURL=list-repository-languages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-languages.d.mts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-repository-languages.d.mts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1 +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.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":"
|
|
1
|
+
{"version":3,"file":"list-repository-languages.mjs","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\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: AppAction<\n typeof SourcegraphListRepositoryLanguagesInput,\n typeof SourcegraphListRepositoryLanguagesOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAsD,EAAE,OAAO,EACnE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,0DAA0D,EAAE,OAAO;CACvE,QAAQ,oDAAoD,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,MAAa,qCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsD,EAAE,OAAO,EAC/D,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/app.ts
|
|
4
|
+
const credential = {
|
|
5
|
+
full: zod.z.string(),
|
|
6
|
+
generic_api_key: zod.z.string()
|
|
7
|
+
};
|
|
4
8
|
const sourcegraph = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
9
|
slug: "sourcegraph",
|
|
6
10
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
8
|
-
full: zod.z.string(),
|
|
9
|
-
generic_api_key: zod.z.string()
|
|
10
|
-
}
|
|
11
|
+
credential
|
|
11
12
|
});
|
|
12
13
|
//#endregion
|
|
13
14
|
exports.sourcegraph = sourcegraph;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const sourcegraph = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n full: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const sourcegraph: KeystrokeApp<\"sourcegraph\", typeof credential> = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,MAAMA,IAAAA,EAAE,OAAO;CACf,iBAAiBA,IAAAA,EAAE,OAAO;AAC5B;AAEA,MAAa,eAAA,GAAA,2BAAA,UAAA,CAAwE;CACnF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
full: z.ZodString;
|
|
10
7
|
generic_api_key: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const sourcegraph: KeystrokeApp<"sourcegraph", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { sourcegraph };
|
|
14
12
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;QAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
full: z.ZodString;
|
|
10
7
|
generic_api_key: z.ZodString;
|
|
11
|
-
}
|
|
8
|
+
};
|
|
9
|
+
declare const sourcegraph: KeystrokeApp<"sourcegraph", typeof credential>;
|
|
12
10
|
//#endregion
|
|
13
11
|
export { sourcegraph };
|
|
14
12
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;QAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,WAAA,EAAa,YAAY,uBAAuB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const sourcegraph = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n full: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const sourcegraph: KeystrokeApp<\"sourcegraph\", typeof credential> = defineApp({\n slug: \"sourcegraph\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,cAA8D,UAAU;CACnF,MAAM;CACN,MAAM;CACN;EAPA,MAAM,EAAE,OAAO;EACf,iBAAiB,EAAE,OAAO;CAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sourcegraph } from "./app.cjs";
|
|
1
2
|
import { sourcegraphCheckSiteSettingsEditPermission } from "./actions/check-site-settings-edit-permission.cjs";
|
|
2
3
|
import { sourcegraphCompareCommits } from "./actions/compare-commits.cjs";
|
|
3
4
|
import { sourcegraphGetCommitDetails } from "./actions/get-commit-details.cjs";
|
|
@@ -6,6 +7,5 @@ import { sourcegraphGetFileContents } from "./actions/get-file-contents.cjs";
|
|
|
6
7
|
import { sourcegraphListRepositories } from "./actions/list-repositories.cjs";
|
|
7
8
|
import { sourcegraphListRepositoryFiles } from "./actions/list-repository-files.cjs";
|
|
8
9
|
import { sourcegraphListRepositoryLanguages } from "./actions/list-repository-languages.cjs";
|
|
9
|
-
import { sourcegraph } from "./app.cjs";
|
|
10
10
|
import { sourcegraphCatalog } from "./catalog.cjs";
|
|
11
11
|
export { sourcegraph, sourcegraphCatalog, sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sourcegraph } from "./app.mjs";
|
|
1
2
|
import { sourcegraphCheckSiteSettingsEditPermission } from "./actions/check-site-settings-edit-permission.mjs";
|
|
2
3
|
import { sourcegraphCompareCommits } from "./actions/compare-commits.mjs";
|
|
3
4
|
import { sourcegraphGetCommitDetails } from "./actions/get-commit-details.mjs";
|
|
@@ -6,6 +7,5 @@ import { sourcegraphGetFileContents } from "./actions/get-file-contents.mjs";
|
|
|
6
7
|
import { sourcegraphListRepositories } from "./actions/list-repositories.mjs";
|
|
7
8
|
import { sourcegraphListRepositoryFiles } from "./actions/list-repository-files.mjs";
|
|
8
9
|
import { sourcegraphListRepositoryLanguages } from "./actions/list-repository-languages.mjs";
|
|
9
|
-
import { sourcegraph } from "./app.mjs";
|
|
10
10
|
import { sourcegraphCatalog } from "./catalog.mjs";
|
|
11
11
|
export { sourcegraph, sourcegraphCatalog, sourcegraphCheckSiteSettingsEditPermission, sourcegraphCompareCommits, sourcegraphGetCommitDetails, sourcegraphGetCurrentUser, sourcegraphGetFileContents, sourcegraphListRepositories, sourcegraphListRepositoryFiles, sourcegraphListRepositoryLanguages };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/sourcegraph",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|