@keystrokehq/sourcegraph 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/check-site-settings-edit-permission.cjs +3 -3
- package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.cts +3 -3
- package/dist/actions/check-site-settings-edit-permission.d.mts +3 -3
- package/dist/actions/check-site-settings-edit-permission.mjs +3 -3
- package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -1
- package/dist/actions/compare-commits.cjs +7 -7
- package/dist/actions/compare-commits.cjs.map +1 -1
- package/dist/actions/compare-commits.d.cts +7 -7
- package/dist/actions/compare-commits.d.mts +7 -7
- package/dist/actions/compare-commits.mjs +7 -7
- package/dist/actions/compare-commits.mjs.map +1 -1
- package/dist/actions/get-commit-details.cjs +7 -7
- package/dist/actions/get-commit-details.cjs.map +1 -1
- package/dist/actions/get-commit-details.d.cts +7 -7
- package/dist/actions/get-commit-details.d.mts +7 -7
- package/dist/actions/get-commit-details.mjs +7 -7
- package/dist/actions/get-commit-details.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +3 -3
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +3 -3
- package/dist/actions/get-current-user.d.mts +3 -3
- package/dist/actions/get-current-user.mjs +3 -3
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-file-contents.cjs +1 -1
- package/dist/actions/get-file-contents.cjs.map +1 -1
- package/dist/actions/get-file-contents.d.cts +1 -1
- package/dist/actions/get-file-contents.d.mts +1 -1
- package/dist/actions/get-file-contents.mjs +1 -1
- package/dist/actions/get-file-contents.mjs.map +1 -1
- package/dist/actions/list-repositories.cjs +3 -3
- package/dist/actions/list-repositories.cjs.map +1 -1
- package/dist/actions/list-repositories.d.cts +3 -3
- package/dist/actions/list-repositories.d.mts +3 -3
- package/dist/actions/list-repositories.mjs +3 -3
- package/dist/actions/list-repositories.mjs.map +1 -1
- package/dist/actions/list-repository-files.cjs +2 -2
- package/dist/actions/list-repository-files.cjs.map +1 -1
- package/dist/actions/list-repository-files.d.cts +2 -2
- package/dist/actions/list-repository-files.d.mts +2 -2
- package/dist/actions/list-repository-files.mjs +2 -2
- package/dist/actions/list-repository-files.mjs.map +1 -1
- package/dist/actions/list-repository-languages.cjs +3 -3
- package/dist/actions/list-repository-languages.cjs.map +1 -1
- package/dist/actions/list-repository-languages.d.cts +3 -3
- package/dist/actions/list-repository-languages.d.mts +3 -3
- package/dist/actions/list-repository-languages.mjs +3 -3
- package/dist/actions/list-repository-languages.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/check-site-settings-edit-permission.ts
|
|
4
4
|
const SourcegraphCheckSiteSettingsEditPermissionInput = zod.z.object({}).describe("Empty request model for CheckSiteSettingsEditPermission action.");
|
|
5
|
-
const SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = zod.z.object({ allowSiteSettingsEdits: zod.z.boolean().describe("Whether site settings edits are allowed via the API.").nullable() });
|
|
6
|
-
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = zod.z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() });
|
|
7
|
-
const SourcegraphCheckSiteSettingsEditPermissionOutput = zod.z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() });
|
|
5
|
+
const SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = zod.z.object({ allowSiteSettingsEdits: zod.z.boolean().describe("Whether site settings edits are allowed via the API.").nullable() }).passthrough();
|
|
6
|
+
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = zod.z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() }).passthrough();
|
|
7
|
+
const SourcegraphCheckSiteSettingsEditPermissionOutput = zod.z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() }).passthrough();
|
|
8
8
|
const sourcegraphCheckSiteSettingsEditPermission = require_action.action("SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION", {
|
|
9
9
|
slug: "sourcegraph-check-site-settings-edit-permission",
|
|
10
10
|
name: "Check Site Settings Edit Permission",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-site-settings-edit-permission.cjs","names":["z","action"],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCheckSiteSettingsEditPermissionInput = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\").nullable(),\n});\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n});\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput = z.object({\n data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphCheckSiteSettingsEditPermission = action(\"SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION\", {\n slug: \"sourcegraph-check-site-settings-edit-permission\",\n name: \"Check Site Settings Edit Permission\",\n description: \"Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.\",\n input: SourcegraphCheckSiteSettingsEditPermissionInput,\n output: SourcegraphCheckSiteSettingsEditPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACtJ,MAAM,8EAA8EA,IAAAA,EAAE,OAAO,EAC3F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChH,CAAC;
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.cjs","names":["z","action"],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCheckSiteSettingsEditPermissionInput = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\").nullable(),\n}).passthrough();\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n}).passthrough();\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput = z.object({\n data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphCheckSiteSettingsEditPermission = action(\"SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION\", {\n slug: \"sourcegraph-check-site-settings-edit-permission\",\n name: \"Check Site Settings Edit Permission\",\n description: \"Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.\",\n input: SourcegraphCheckSiteSettingsEditPermissionInput,\n output: SourcegraphCheckSiteSettingsEditPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACtJ,MAAM,8EAA8EA,IAAAA,EAAE,OAAO,EAC3F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+FA,IAAAA,EAAE,OAAO,EAC5G,MAAM,4EAA4E,SAAS,EAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,mDAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodObject<{
|
|
|
6
6
|
data: z.ZodNullable<z.ZodObject<{
|
|
7
7
|
site: z.ZodNullable<z.ZodObject<{
|
|
8
8
|
allowSiteSettingsEdits: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const sourcegraphCheckSiteSettingsEditPermission: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
@@ -6,9 +6,9 @@ declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodObject<{
|
|
|
6
6
|
data: z.ZodNullable<z.ZodObject<{
|
|
7
7
|
site: z.ZodNullable<z.ZodObject<{
|
|
8
8
|
allowSiteSettingsEdits: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const sourcegraphCheckSiteSettingsEditPermission: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
@@ -2,14 +2,14 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/check-site-settings-edit-permission.ts
|
|
4
4
|
const SourcegraphCheckSiteSettingsEditPermissionInput = z.object({}).describe("Empty request model for CheckSiteSettingsEditPermission action.");
|
|
5
|
-
const SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({ allowSiteSettingsEdits: z.boolean().describe("Whether site settings edits are allowed via the API.").nullable() });
|
|
6
|
-
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() });
|
|
5
|
+
const SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({ allowSiteSettingsEdits: z.boolean().describe("Whether site settings edits are allowed via the API.").nullable() }).passthrough();
|
|
6
|
+
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() }).passthrough();
|
|
7
7
|
const sourcegraphCheckSiteSettingsEditPermission = action("SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION", {
|
|
8
8
|
slug: "sourcegraph-check-site-settings-edit-permission",
|
|
9
9
|
name: "Check Site Settings Edit Permission",
|
|
10
10
|
description: "Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.",
|
|
11
11
|
input: SourcegraphCheckSiteSettingsEditPermissionInput,
|
|
12
|
-
output: z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() })
|
|
12
|
+
output: z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() }).passthrough()
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-site-settings-edit-permission.mjs","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCheckSiteSettingsEditPermissionInput = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\").nullable(),\n});\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n});\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput = z.object({\n data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphCheckSiteSettingsEditPermission = action(\"SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION\", {\n slug: \"sourcegraph-check-site-settings-edit-permission\",\n name: \"Check Site Settings Edit Permission\",\n description: \"Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.\",\n input: SourcegraphCheckSiteSettingsEditPermissionInput,\n output: SourcegraphCheckSiteSettingsEditPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACtJ,MAAM,8EAA8E,EAAE,OAAO,EAC3F,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChH,CAAC;
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.mjs","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCheckSiteSettingsEditPermissionInput = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\").nullable(),\n}).passthrough();\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n}).passthrough();\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput = z.object({\n data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphCheckSiteSettingsEditPermission = action(\"SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION\", {\n slug: \"sourcegraph-check-site-settings-edit-permission\",\n name: \"Check Site Settings Edit Permission\",\n description: \"Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.\",\n input: SourcegraphCheckSiteSettingsEditPermissionInput,\n output: SourcegraphCheckSiteSettingsEditPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACtJ,MAAM,8EAA8E,EAAE,OAAO,EAC3F,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,EAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+FAA+F,EAAE,OAAO,EAC5G,MAAM,4EAA4E,SAAS,EAC7F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,17 +6,17 @@ const SourcegraphCompareCommitsInput = zod.z.object({
|
|
|
6
6
|
head: zod.z.string().describe("Head commit SHA or ref to compare to"),
|
|
7
7
|
repo: zod.z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
8
8
|
}).describe("Request model for comparing two commits in a repository");
|
|
9
|
-
const SourcegraphCompareCommits_HunkSchema = zod.z.object({ body: zod.z.string().describe("Diff hunk body text").nullable() }).describe("Model for a diff hunk");
|
|
9
|
+
const SourcegraphCompareCommits_HunkSchema = zod.z.object({ body: zod.z.string().describe("Diff hunk body text").nullable() }).passthrough().describe("Model for a diff hunk");
|
|
10
10
|
const SourcegraphCompareCommits_FileDiffNodeSchema = zod.z.object({
|
|
11
11
|
hunks: zod.z.array(SourcegraphCompareCommits_HunkSchema).describe("List of diff hunks"),
|
|
12
12
|
newPath: zod.z.string().describe("New file path after changes").nullable().optional(),
|
|
13
13
|
oldPath: zod.z.string().describe("Original file path before changes").nullable().optional()
|
|
14
|
-
}).describe("Model for a file diff node");
|
|
15
|
-
const SourcegraphCompareCommits_FileDiffsSchema = zod.z.object({ nodes: zod.z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe("List of file diff nodes") }).describe("Wrapper for file diffs");
|
|
16
|
-
const SourcegraphCompareCommits_ComparisonSchema = zod.z.object({ fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable() }).describe("Comparison payload between two commits");
|
|
17
|
-
const SourcegraphCompareCommits_RepositorySchema = zod.z.object({ comparison: SourcegraphCompareCommits_ComparisonSchema.nullable() }).describe("Repository containing the comparison");
|
|
18
|
-
const SourcegraphCompareCommits_DataSchema = zod.z.object({ repository: SourcegraphCompareCommits_RepositorySchema.nullable() }).describe("Data wrapper for GraphQL response");
|
|
19
|
-
const SourcegraphCompareCommitsOutput = zod.z.object({ data: SourcegraphCompareCommits_DataSchema.nullable() }).describe("Response model containing comparison data");
|
|
14
|
+
}).passthrough().describe("Model for a file diff node");
|
|
15
|
+
const SourcegraphCompareCommits_FileDiffsSchema = zod.z.object({ nodes: zod.z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe("List of file diff nodes") }).passthrough().describe("Wrapper for file diffs");
|
|
16
|
+
const SourcegraphCompareCommits_ComparisonSchema = zod.z.object({ fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable() }).passthrough().describe("Comparison payload between two commits");
|
|
17
|
+
const SourcegraphCompareCommits_RepositorySchema = zod.z.object({ comparison: SourcegraphCompareCommits_ComparisonSchema.nullable() }).passthrough().describe("Repository containing the comparison");
|
|
18
|
+
const SourcegraphCompareCommits_DataSchema = zod.z.object({ repository: SourcegraphCompareCommits_RepositorySchema.nullable() }).passthrough().describe("Data wrapper for GraphQL response");
|
|
19
|
+
const SourcegraphCompareCommitsOutput = zod.z.object({ data: SourcegraphCompareCommits_DataSchema.nullable() }).passthrough().describe("Response model containing comparison data");
|
|
20
20
|
const sourcegraphCompareCommits = require_action.action("SOURCEGRAPH_COMPARE_COMMITS", {
|
|
21
21
|
slug: "sourcegraph-compare-commits",
|
|
22
22
|
name: "Compare Commits",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-commits.cjs","names":["z","action"],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCompareCommitsInput = z.object({\n base: z.string().describe(\"Base commit SHA or ref to compare from\"),\n head: z.string().describe(\"Head commit SHA or ref to compare to\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for comparing two commits in a repository\");\nconst SourcegraphCompareCommits_HunkSchema = z.object({\n body: z.string().describe(\"Diff hunk body text\").nullable(),\n}).describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema = z.object({\n hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe(\"List of diff hunks\"),\n newPath: z.string().describe(\"New file path after changes\").nullable().optional(),\n oldPath: z.string().describe(\"Original file path before changes\").nullable().optional(),\n}).describe(\"Model for a file diff node\");\nconst SourcegraphCompareCommits_FileDiffsSchema = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput = z.object({\n data: SourcegraphCompareCommits_DataSchema.nullable(),\n}).describe(\"Response model containing comparison data\");\n\nexport const sourcegraphCompareCommits = action(\"SOURCEGRAPH_COMPARE_COMMITS\", {\n slug: \"sourcegraph-compare-commits\",\n name: \"Compare Commits\",\n description: \"Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.\",\n input: SourcegraphCompareCommitsInput,\n output: SourcegraphCompareCommitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,uBAAuB;
|
|
1
|
+
{"version":3,"file":"compare-commits.cjs","names":["z","action"],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCompareCommitsInput = z.object({\n base: z.string().describe(\"Base commit SHA or ref to compare from\"),\n head: z.string().describe(\"Head commit SHA or ref to compare to\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for comparing two commits in a repository\");\nconst SourcegraphCompareCommits_HunkSchema = z.object({\n body: z.string().describe(\"Diff hunk body text\").nullable(),\n}).passthrough().describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema = z.object({\n hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe(\"List of diff hunks\"),\n newPath: z.string().describe(\"New file path after changes\").nullable().optional(),\n oldPath: z.string().describe(\"Original file path before changes\").nullable().optional(),\n}).passthrough().describe(\"Model for a file diff node\");\nconst SourcegraphCompareCommits_FileDiffsSchema = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).passthrough().describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).passthrough().describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).passthrough().describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).passthrough().describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput = z.object({\n data: SourcegraphCompareCommits_DataSchema.nullable(),\n}).passthrough().describe(\"Response model containing comparison data\");\n\nexport const sourcegraphCompareCommits = action(\"SOURCEGRAPH_COMPARE_COMMITS\", {\n slug: \"sourcegraph-compare-commits\",\n name: \"Compare Commits\",\n description: \"Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.\",\n input: SourcegraphCompareCommitsInput,\n output: SourcegraphCompareCommitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oBAAoB;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,WAAW,0CAA0C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,uCAAuCA,IAAAA,EAAE,OAAO,EACpD,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,15 +14,15 @@ declare const SourcegraphCompareCommitsOutput: z.ZodObject<{
|
|
|
14
14
|
nodes: z.ZodArray<z.ZodObject<{
|
|
15
15
|
hunks: z.ZodArray<z.ZodObject<{
|
|
16
16
|
body: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
newPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const sourcegraphCompareCommits: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
base: string;
|
|
28
28
|
head: string;
|
|
@@ -14,15 +14,15 @@ declare const SourcegraphCompareCommitsOutput: z.ZodObject<{
|
|
|
14
14
|
nodes: z.ZodArray<z.ZodObject<{
|
|
15
15
|
hunks: z.ZodArray<z.ZodObject<{
|
|
16
16
|
body: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
newPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
oldPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
21
|
-
}, z.core.$
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const sourcegraphCompareCommits: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
base: string;
|
|
28
28
|
head: string;
|
|
@@ -6,22 +6,22 @@ const SourcegraphCompareCommitsInput = z.object({
|
|
|
6
6
|
head: z.string().describe("Head commit SHA or ref to compare to"),
|
|
7
7
|
repo: z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
8
8
|
}).describe("Request model for comparing two commits in a repository");
|
|
9
|
-
const SourcegraphCompareCommits_HunkSchema = z.object({ body: z.string().describe("Diff hunk body text").nullable() }).describe("Model for a diff hunk");
|
|
9
|
+
const SourcegraphCompareCommits_HunkSchema = z.object({ body: z.string().describe("Diff hunk body text").nullable() }).passthrough().describe("Model for a diff hunk");
|
|
10
10
|
const SourcegraphCompareCommits_FileDiffNodeSchema = z.object({
|
|
11
11
|
hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe("List of diff hunks"),
|
|
12
12
|
newPath: z.string().describe("New file path after changes").nullable().optional(),
|
|
13
13
|
oldPath: z.string().describe("Original file path before changes").nullable().optional()
|
|
14
|
-
}).describe("Model for a file diff node");
|
|
15
|
-
const SourcegraphCompareCommits_FileDiffsSchema = z.object({ nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe("List of file diff nodes") }).describe("Wrapper for file diffs");
|
|
16
|
-
const SourcegraphCompareCommits_ComparisonSchema = z.object({ fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable() }).describe("Comparison payload between two commits");
|
|
17
|
-
const SourcegraphCompareCommits_RepositorySchema = z.object({ comparison: SourcegraphCompareCommits_ComparisonSchema.nullable() }).describe("Repository containing the comparison");
|
|
18
|
-
const SourcegraphCompareCommits_DataSchema = z.object({ repository: SourcegraphCompareCommits_RepositorySchema.nullable() }).describe("Data wrapper for GraphQL response");
|
|
14
|
+
}).passthrough().describe("Model for a file diff node");
|
|
15
|
+
const SourcegraphCompareCommits_FileDiffsSchema = z.object({ nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe("List of file diff nodes") }).passthrough().describe("Wrapper for file diffs");
|
|
16
|
+
const SourcegraphCompareCommits_ComparisonSchema = z.object({ fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable() }).passthrough().describe("Comparison payload between two commits");
|
|
17
|
+
const SourcegraphCompareCommits_RepositorySchema = z.object({ comparison: SourcegraphCompareCommits_ComparisonSchema.nullable() }).passthrough().describe("Repository containing the comparison");
|
|
18
|
+
const SourcegraphCompareCommits_DataSchema = z.object({ repository: SourcegraphCompareCommits_RepositorySchema.nullable() }).passthrough().describe("Data wrapper for GraphQL response");
|
|
19
19
|
const sourcegraphCompareCommits = action("SOURCEGRAPH_COMPARE_COMMITS", {
|
|
20
20
|
slug: "sourcegraph-compare-commits",
|
|
21
21
|
name: "Compare Commits",
|
|
22
22
|
description: "Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.",
|
|
23
23
|
input: SourcegraphCompareCommitsInput,
|
|
24
|
-
output: z.object({ data: SourcegraphCompareCommits_DataSchema.nullable() }).describe("Response model containing comparison data")
|
|
24
|
+
output: z.object({ data: SourcegraphCompareCommits_DataSchema.nullable() }).passthrough().describe("Response model containing comparison data")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { sourcegraphCompareCommits };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-commits.mjs","names":[],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCompareCommitsInput = z.object({\n base: z.string().describe(\"Base commit SHA or ref to compare from\"),\n head: z.string().describe(\"Head commit SHA or ref to compare to\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for comparing two commits in a repository\");\nconst SourcegraphCompareCommits_HunkSchema = z.object({\n body: z.string().describe(\"Diff hunk body text\").nullable(),\n}).describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema = z.object({\n hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe(\"List of diff hunks\"),\n newPath: z.string().describe(\"New file path after changes\").nullable().optional(),\n oldPath: z.string().describe(\"Original file path before changes\").nullable().optional(),\n}).describe(\"Model for a file diff node\");\nconst SourcegraphCompareCommits_FileDiffsSchema = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput = z.object({\n data: SourcegraphCompareCommits_DataSchema.nullable(),\n}).describe(\"Response model containing comparison data\");\n\nexport const sourcegraphCompareCommits = action(\"SOURCEGRAPH_COMPARE_COMMITS\", {\n slug: \"sourcegraph-compare-commits\",\n name: \"Compare Commits\",\n description: \"Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.\",\n input: SourcegraphCompareCommitsInput,\n output: SourcegraphCompareCommitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,uCAAuC,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,uBAAuB;
|
|
1
|
+
{"version":3,"file":"compare-commits.mjs","names":[],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphCompareCommitsInput = z.object({\n base: z.string().describe(\"Base commit SHA or ref to compare from\"),\n head: z.string().describe(\"Head commit SHA or ref to compare to\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for comparing two commits in a repository\");\nconst SourcegraphCompareCommits_HunkSchema = z.object({\n body: z.string().describe(\"Diff hunk body text\").nullable(),\n}).passthrough().describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema = z.object({\n hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe(\"List of diff hunks\"),\n newPath: z.string().describe(\"New file path after changes\").nullable().optional(),\n oldPath: z.string().describe(\"Original file path before changes\").nullable().optional(),\n}).passthrough().describe(\"Model for a file diff node\");\nconst SourcegraphCompareCommits_FileDiffsSchema = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).passthrough().describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).passthrough().describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).passthrough().describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).passthrough().describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput = z.object({\n data: SourcegraphCompareCommits_DataSchema.nullable(),\n}).passthrough().describe(\"Response model containing comparison data\");\n\nexport const sourcegraphCompareCommits = action(\"SOURCEGRAPH_COMPARE_COMMITS\", {\n slug: \"sourcegraph-compare-commits\",\n name: \"Compare Commits\",\n description: \"Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.\",\n input: SourcegraphCompareCommitsInput,\n output: SourcegraphCompareCommitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,uCAAuC,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oBAAoB;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,4CAA4C,EAAE,OAAO,EACzD,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,6CAA6C,EAAE,OAAO,EAC1D,WAAW,0CAA0C,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,6CAA6C,EAAE,OAAO,EAC1D,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,uCAAuC,EAAE,OAAO,EACpD,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -9,23 +9,23 @@ const SourcegraphGetCommitDetails_AuthorSchema = zod.z.object({
|
|
|
9
9
|
date: zod.z.string().describe("Author date in ISO format").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Author name").nullable(),
|
|
11
11
|
email: zod.z.string().describe("Author email address").nullable()
|
|
12
|
-
}).describe("Model for commit author information");
|
|
13
|
-
const SourcegraphGetCommitDetails_ParentCommitSchema = zod.z.object({ oid: zod.z.string().describe("Parent commit SHA").nullable() }).describe("Model for parent commit reference");
|
|
12
|
+
}).passthrough().describe("Model for commit author information");
|
|
13
|
+
const SourcegraphGetCommitDetails_ParentCommitSchema = zod.z.object({ oid: zod.z.string().describe("Parent commit SHA").nullable() }).passthrough().describe("Model for parent commit reference");
|
|
14
14
|
const SourcegraphGetCommitDetails_CommitterSchema = zod.z.object({
|
|
15
15
|
date: zod.z.string().describe("Committer date in ISO format").nullable(),
|
|
16
16
|
name: zod.z.string().describe("Committer name").nullable(),
|
|
17
17
|
email: zod.z.string().describe("Committer email address").nullable()
|
|
18
|
-
}).describe("Model for commit committer information");
|
|
18
|
+
}).passthrough().describe("Model for commit committer information");
|
|
19
19
|
const SourcegraphGetCommitDetails_GitCommitSchema = zod.z.object({
|
|
20
20
|
oid: zod.z.string().describe("Commit SHA").nullable(),
|
|
21
21
|
author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),
|
|
22
22
|
message: zod.z.string().describe("Commit message").nullable(),
|
|
23
23
|
parents: zod.z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe("List of parent commits"),
|
|
24
24
|
committer: SourcegraphGetCommitDetails_CommitterSchema.nullable()
|
|
25
|
-
}).describe("Model for Git commit details");
|
|
26
|
-
const SourcegraphGetCommitDetails_RepositorySchema = zod.z.object({ commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional() }).describe("Repository containing the commit");
|
|
27
|
-
const SourcegraphGetCommitDetails_DataSchema = zod.z.object({ repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional() }).describe("Data wrapper for GraphQL response");
|
|
28
|
-
const SourcegraphGetCommitDetailsOutput = zod.z.object({ data: SourcegraphGetCommitDetails_DataSchema.nullable() }).describe("Response model containing commit details");
|
|
25
|
+
}).passthrough().describe("Model for Git commit details");
|
|
26
|
+
const SourcegraphGetCommitDetails_RepositorySchema = zod.z.object({ commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional() }).passthrough().describe("Repository containing the commit");
|
|
27
|
+
const SourcegraphGetCommitDetails_DataSchema = zod.z.object({ repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional() }).passthrough().describe("Data wrapper for GraphQL response");
|
|
28
|
+
const SourcegraphGetCommitDetailsOutput = zod.z.object({ data: SourcegraphGetCommitDetails_DataSchema.nullable() }).passthrough().describe("Response model containing commit details");
|
|
29
29
|
const sourcegraphGetCommitDetails = require_action.action("SOURCEGRAPH_GET_COMMIT_DETAILS", {
|
|
30
30
|
slug: "sourcegraph-get-commit-details",
|
|
31
31
|
name: "Get Commit Details",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commit-details.cjs","names":["z","action"],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCommitDetailsInput = z.object({\n rev: z.string().describe(\"Commit SHA, branch name, or tag to get details for\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for getting commit details from a repository\");\nconst SourcegraphGetCommitDetails_AuthorSchema = z.object({\n date: z.string().describe(\"Author date in ISO format\").nullable(),\n name: z.string().describe(\"Author name\").nullable(),\n email: z.string().describe(\"Author email address\").nullable(),\n}).describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema = z.object({\n oid: z.string().describe(\"Parent commit SHA\").nullable(),\n}).describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema = z.object({\n date: z.string().describe(\"Committer date in ISO format\").nullable(),\n name: z.string().describe(\"Committer name\").nullable(),\n email: z.string().describe(\"Committer email address\").nullable(),\n}).describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema = z.object({\n oid: z.string().describe(\"Commit SHA\").nullable(),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\").nullable(),\n parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe(\"List of parent commits\"),\n committer: SourcegraphGetCommitDetails_CommitterSchema.nullable(),\n}).describe(\"Model for Git commit details\");\nconst SourcegraphGetCommitDetails_RepositorySchema = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput = z.object({\n data: SourcegraphGetCommitDetails_DataSchema.nullable(),\n}).describe(\"Response model containing commit details\");\n\nexport const sourcegraphGetCommitDetails = action(\"SOURCEGRAPH_GET_COMMIT_DETAILS\", {\n slug: \"sourcegraph-get-commit-details\",\n name: \"Get Commit Details\",\n description: \"Get detailed information about a specific commit in a repository.\",\n input: SourcegraphGetCommitDetailsInput,\n output: SourcegraphGetCommitDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"get-commit-details.cjs","names":["z","action"],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCommitDetailsInput = z.object({\n rev: z.string().describe(\"Commit SHA, branch name, or tag to get details for\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for getting commit details from a repository\");\nconst SourcegraphGetCommitDetails_AuthorSchema = z.object({\n date: z.string().describe(\"Author date in ISO format\").nullable(),\n name: z.string().describe(\"Author name\").nullable(),\n email: z.string().describe(\"Author email address\").nullable(),\n}).passthrough().describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema = z.object({\n oid: z.string().describe(\"Parent commit SHA\").nullable(),\n}).passthrough().describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema = z.object({\n date: z.string().describe(\"Committer date in ISO format\").nullable(),\n name: z.string().describe(\"Committer name\").nullable(),\n email: z.string().describe(\"Committer email address\").nullable(),\n}).passthrough().describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema = z.object({\n oid: z.string().describe(\"Commit SHA\").nullable(),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\").nullable(),\n parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe(\"List of parent commits\"),\n committer: SourcegraphGetCommitDetails_CommitterSchema.nullable(),\n}).passthrough().describe(\"Model for Git commit details\");\nconst SourcegraphGetCommitDetails_RepositorySchema = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).passthrough().describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).passthrough().describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput = z.object({\n data: SourcegraphGetCommitDetails_DataSchema.nullable(),\n}).passthrough().describe(\"Response model containing commit details\");\n\nexport const sourcegraphGetCommitDetails = action(\"SOURCEGRAPH_GET_COMMIT_DETAILS\", {\n slug: \"sourcegraph-get-commit-details\",\n name: \"Get Commit Details\",\n description: \"Get detailed information about a specific commit in a repository.\",\n input: SourcegraphGetCommitDetailsInput,\n output: SourcegraphGetCommitDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAChD,QAAQ,yCAAyC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wBAAwB;CAClG,WAAW,4CAA4C,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,20 +14,20 @@ declare const SourcegraphGetCommitDetailsOutput: z.ZodObject<{
|
|
|
14
14
|
date: z.ZodNullable<z.ZodString>;
|
|
15
15
|
name: z.ZodNullable<z.ZodString>;
|
|
16
16
|
email: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
message: z.ZodNullable<z.ZodString>;
|
|
19
19
|
parents: z.ZodArray<z.ZodObject<{
|
|
20
20
|
oid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
committer: z.ZodNullable<z.ZodObject<{
|
|
23
23
|
date: z.ZodNullable<z.ZodString>;
|
|
24
24
|
name: z.ZodNullable<z.ZodString>;
|
|
25
25
|
email: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
30
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const sourcegraphGetCommitDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
rev: string;
|
|
33
33
|
repo: string;
|
|
@@ -14,20 +14,20 @@ declare const SourcegraphGetCommitDetailsOutput: z.ZodObject<{
|
|
|
14
14
|
date: z.ZodNullable<z.ZodString>;
|
|
15
15
|
name: z.ZodNullable<z.ZodString>;
|
|
16
16
|
email: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
message: z.ZodNullable<z.ZodString>;
|
|
19
19
|
parents: z.ZodArray<z.ZodObject<{
|
|
20
20
|
oid: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
committer: z.ZodNullable<z.ZodObject<{
|
|
23
23
|
date: z.ZodNullable<z.ZodString>;
|
|
24
24
|
name: z.ZodNullable<z.ZodString>;
|
|
25
25
|
email: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
30
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const sourcegraphGetCommitDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
32
|
rev: string;
|
|
33
33
|
repo: string;
|
|
@@ -9,28 +9,28 @@ const SourcegraphGetCommitDetails_AuthorSchema = z.object({
|
|
|
9
9
|
date: z.string().describe("Author date in ISO format").nullable(),
|
|
10
10
|
name: z.string().describe("Author name").nullable(),
|
|
11
11
|
email: z.string().describe("Author email address").nullable()
|
|
12
|
-
}).describe("Model for commit author information");
|
|
13
|
-
const SourcegraphGetCommitDetails_ParentCommitSchema = z.object({ oid: z.string().describe("Parent commit SHA").nullable() }).describe("Model for parent commit reference");
|
|
12
|
+
}).passthrough().describe("Model for commit author information");
|
|
13
|
+
const SourcegraphGetCommitDetails_ParentCommitSchema = z.object({ oid: z.string().describe("Parent commit SHA").nullable() }).passthrough().describe("Model for parent commit reference");
|
|
14
14
|
const SourcegraphGetCommitDetails_CommitterSchema = z.object({
|
|
15
15
|
date: z.string().describe("Committer date in ISO format").nullable(),
|
|
16
16
|
name: z.string().describe("Committer name").nullable(),
|
|
17
17
|
email: z.string().describe("Committer email address").nullable()
|
|
18
|
-
}).describe("Model for commit committer information");
|
|
18
|
+
}).passthrough().describe("Model for commit committer information");
|
|
19
19
|
const SourcegraphGetCommitDetails_GitCommitSchema = z.object({
|
|
20
20
|
oid: z.string().describe("Commit SHA").nullable(),
|
|
21
21
|
author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),
|
|
22
22
|
message: z.string().describe("Commit message").nullable(),
|
|
23
23
|
parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe("List of parent commits"),
|
|
24
24
|
committer: SourcegraphGetCommitDetails_CommitterSchema.nullable()
|
|
25
|
-
}).describe("Model for Git commit details");
|
|
26
|
-
const SourcegraphGetCommitDetails_RepositorySchema = z.object({ commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional() }).describe("Repository containing the commit");
|
|
27
|
-
const SourcegraphGetCommitDetails_DataSchema = z.object({ repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional() }).describe("Data wrapper for GraphQL response");
|
|
25
|
+
}).passthrough().describe("Model for Git commit details");
|
|
26
|
+
const SourcegraphGetCommitDetails_RepositorySchema = z.object({ commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional() }).passthrough().describe("Repository containing the commit");
|
|
27
|
+
const SourcegraphGetCommitDetails_DataSchema = z.object({ repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional() }).passthrough().describe("Data wrapper for GraphQL response");
|
|
28
28
|
const sourcegraphGetCommitDetails = action("SOURCEGRAPH_GET_COMMIT_DETAILS", {
|
|
29
29
|
slug: "sourcegraph-get-commit-details",
|
|
30
30
|
name: "Get Commit Details",
|
|
31
31
|
description: "Get detailed information about a specific commit in a repository.",
|
|
32
32
|
input: SourcegraphGetCommitDetailsInput,
|
|
33
|
-
output: z.object({ data: SourcegraphGetCommitDetails_DataSchema.nullable() }).describe("Response model containing commit details")
|
|
33
|
+
output: z.object({ data: SourcegraphGetCommitDetails_DataSchema.nullable() }).passthrough().describe("Response model containing commit details")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { sourcegraphGetCommitDetails };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commit-details.mjs","names":[],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCommitDetailsInput = z.object({\n rev: z.string().describe(\"Commit SHA, branch name, or tag to get details for\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for getting commit details from a repository\");\nconst SourcegraphGetCommitDetails_AuthorSchema = z.object({\n date: z.string().describe(\"Author date in ISO format\").nullable(),\n name: z.string().describe(\"Author name\").nullable(),\n email: z.string().describe(\"Author email address\").nullable(),\n}).describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema = z.object({\n oid: z.string().describe(\"Parent commit SHA\").nullable(),\n}).describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema = z.object({\n date: z.string().describe(\"Committer date in ISO format\").nullable(),\n name: z.string().describe(\"Committer name\").nullable(),\n email: z.string().describe(\"Committer email address\").nullable(),\n}).describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema = z.object({\n oid: z.string().describe(\"Commit SHA\").nullable(),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\").nullable(),\n parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe(\"List of parent commits\"),\n committer: SourcegraphGetCommitDetails_CommitterSchema.nullable(),\n}).describe(\"Model for Git commit details\");\nconst SourcegraphGetCommitDetails_RepositorySchema = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput = z.object({\n data: SourcegraphGetCommitDetails_DataSchema.nullable(),\n}).describe(\"Response model containing commit details\");\n\nexport const sourcegraphGetCommitDetails = action(\"SOURCEGRAPH_GET_COMMIT_DETAILS\", {\n slug: \"sourcegraph-get-commit-details\",\n name: \"Get Commit Details\",\n description: \"Get detailed information about a specific commit in a repository.\",\n input: SourcegraphGetCommitDetailsInput,\n output: SourcegraphGetCommitDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"get-commit-details.mjs","names":[],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCommitDetailsInput = z.object({\n rev: z.string().describe(\"Commit SHA, branch name, or tag to get details for\"),\n repo: z.string().describe(\"Repository name in format 'github.com/owner/repo'\"),\n}).describe(\"Request model for getting commit details from a repository\");\nconst SourcegraphGetCommitDetails_AuthorSchema = z.object({\n date: z.string().describe(\"Author date in ISO format\").nullable(),\n name: z.string().describe(\"Author name\").nullable(),\n email: z.string().describe(\"Author email address\").nullable(),\n}).passthrough().describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema = z.object({\n oid: z.string().describe(\"Parent commit SHA\").nullable(),\n}).passthrough().describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema = z.object({\n date: z.string().describe(\"Committer date in ISO format\").nullable(),\n name: z.string().describe(\"Committer name\").nullable(),\n email: z.string().describe(\"Committer email address\").nullable(),\n}).passthrough().describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema = z.object({\n oid: z.string().describe(\"Commit SHA\").nullable(),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\").nullable(),\n parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe(\"List of parent commits\"),\n committer: SourcegraphGetCommitDetails_CommitterSchema.nullable(),\n}).passthrough().describe(\"Model for Git commit details\");\nconst SourcegraphGetCommitDetails_RepositorySchema = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).passthrough().describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).passthrough().describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput = z.object({\n data: SourcegraphGetCommitDetails_DataSchema.nullable(),\n}).passthrough().describe(\"Response model containing commit details\");\n\nexport const sourcegraphGetCommitDetails = action(\"SOURCEGRAPH_GET_COMMIT_DETAILS\", {\n slug: \"sourcegraph-get-commit-details\",\n name: \"Get Commit Details\",\n description: \"Get detailed information about a specific commit in a repository.\",\n input: SourcegraphGetCommitDetailsInput,\n output: SourcegraphGetCommitDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,iDAAiD,EAAE,OAAO,EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAChD,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wBAAwB;CAClG,WAAW,4CAA4C,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,+CAA+C,EAAE,OAAO,EAC5D,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,yCAAyC,EAAE,OAAO,EACtD,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -2,9 +2,9 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-current-user.ts
|
|
4
4
|
const SourcegraphGetCurrentUserInput = zod.z.object({}).describe("Empty request model for GetCurrentUser action.");
|
|
5
|
-
const SourcegraphGetCurrentUser_CurrentUserSchema = zod.z.object({ username: zod.z.string().describe("The username of the currently authenticated user.").nullable() });
|
|
6
|
-
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = zod.z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() });
|
|
7
|
-
const SourcegraphGetCurrentUserOutput = zod.z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() });
|
|
5
|
+
const SourcegraphGetCurrentUser_CurrentUserSchema = zod.z.object({ username: zod.z.string().describe("The username of the currently authenticated user.").nullable() }).passthrough();
|
|
6
|
+
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = zod.z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() }).passthrough();
|
|
7
|
+
const SourcegraphGetCurrentUserOutput = zod.z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() }).passthrough();
|
|
8
8
|
const sourcegraphGetCurrentUser = require_action.action("SOURCEGRAPH_GET_CURRENT_USER", {
|
|
9
9
|
slug: "sourcegraph-get-current-user",
|
|
10
10
|
name: "Get Current User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC;
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n}).passthrough();\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n}).passthrough();\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6DAA6DA,IAAAA,EAAE,OAAO,EAC1E,aAAa,4CAA4C,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,2DAA2D,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
|
|
|
6
6
|
data: z.ZodNullable<z.ZodObject<{
|
|
7
7
|
currentUser: z.ZodNullable<z.ZodObject<{
|
|
8
8
|
username: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { sourcegraphGetCurrentUser };
|
|
@@ -6,9 +6,9 @@ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
|
|
|
6
6
|
data: z.ZodNullable<z.ZodObject<{
|
|
7
7
|
currentUser: z.ZodNullable<z.ZodObject<{
|
|
8
8
|
username: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { sourcegraphGetCurrentUser };
|
|
@@ -2,14 +2,14 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/get-current-user.ts
|
|
4
4
|
const SourcegraphGetCurrentUserInput = z.object({}).describe("Empty request model for GetCurrentUser action.");
|
|
5
|
-
const SourcegraphGetCurrentUser_CurrentUserSchema = z.object({ username: z.string().describe("The username of the currently authenticated user.").nullable() });
|
|
6
|
-
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() });
|
|
5
|
+
const SourcegraphGetCurrentUser_CurrentUserSchema = z.object({ username: z.string().describe("The username of the currently authenticated user.").nullable() }).passthrough();
|
|
6
|
+
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() }).passthrough();
|
|
7
7
|
const sourcegraphGetCurrentUser = action("SOURCEGRAPH_GET_CURRENT_USER", {
|
|
8
8
|
slug: "sourcegraph-get-current-user",
|
|
9
9
|
name: "Get Current User",
|
|
10
10
|
description: "Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.",
|
|
11
11
|
input: SourcegraphGetCurrentUserInput,
|
|
12
|
-
output: z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() })
|
|
12
|
+
output: z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() }).passthrough()
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { sourcegraphGetCurrentUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8C,EAAE,OAAO,EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC;
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\").nullable(),\n}).passthrough();\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n}).passthrough();\nexport const SourcegraphGetCurrentUserOutput = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpH,MAAM,8CAA8C,EAAE,OAAO,EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6DAA6D,EAAE,OAAO,EAC1E,aAAa,4CAA4C,SAAS,EACpE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,MAAM,2DAA2D,SAAS,EAC5E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const SourcegraphGetFileContentsInput = zod.z.object({
|
|
|
5
5
|
file_path: zod.z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
|
|
6
6
|
repo_name: zod.z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
|
|
7
7
|
}).describe("Request model for fetching file contents from a repository's default branch.");
|
|
8
|
-
const SourcegraphGetFileContentsOutput = zod.z.object({ content: zod.z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).describe("Response model containing the content of the file.");
|
|
8
|
+
const SourcegraphGetFileContentsOutput = zod.z.object({ content: zod.z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).passthrough().describe("Response model containing the content of the file.");
|
|
9
9
|
const sourcegraphGetFileContents = require_action.action("SOURCEGRAPH_GET_FILE_CONTENTS", {
|
|
10
10
|
slug: "sourcegraph-get-file-contents",
|
|
11
11
|
name: "Get File Contents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.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}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACvH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\").nullable(),\n}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACvH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
|
|
9
9
|
content: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
file_path: string;
|
|
13
13
|
repo_name: string;
|
|
@@ -7,7 +7,7 @@ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
|
|
9
9
|
content: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
file_path: string;
|
|
13
13
|
repo_name: string;
|
|
@@ -8,7 +8,7 @@ const sourcegraphGetFileContents = action("SOURCEGRAPH_GET_FILE_CONTENTS", {
|
|
|
8
8
|
file_path: z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
|
|
9
9
|
repo_name: z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
|
|
10
10
|
}).describe("Request model for fetching file contents from a repository's default branch."),
|
|
11
|
-
output: z.object({ content: z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).describe("Response model containing the content of the file.")
|
|
11
|
+
output: z.object({ content: z.string().describe("The raw text contents of the specified file on the repository's default branch.").nullable() }).passthrough().describe("Response model containing the content of the file.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { sourcegraphGetFileContents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.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}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\").nullable(),\n}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,EAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -9,15 +9,15 @@ const SourcegraphListRepositories_RepositoryNodeSchema = zod.z.object({
|
|
|
9
9
|
url: zod.z.string().describe("Web URL of the repository.").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.").nullable(),
|
|
11
11
|
description: zod.z.string().describe("Description of the repository.").nullable().optional()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const SourcegraphListRepositories_PageInfoSchema = zod.z.object({
|
|
14
14
|
endCursor: zod.z.string().describe("Cursor for fetching next page.").nullable().optional(),
|
|
15
15
|
hasNextPage: zod.z.boolean().describe("True if more pages of results are available.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SourcegraphListRepositoriesOutput = zod.z.object({
|
|
18
18
|
nodes: zod.z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
|
|
19
19
|
pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const sourcegraphListRepositories = require_action.action("SOURCEGRAPH_LIST_REPOSITORIES", {
|
|
22
22
|
slug: "sourcegraph-list-repositories",
|
|
23
23
|
name: "List Repositories",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repositories.cjs","names":["z","action"],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.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});\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});\nexport const SourcegraphListRepositoriesOutput = 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,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;
|
|
1
|
+
{"version":3,"file":"list-repositories.cjs","names":["z","action"],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema = z.object({\n url: z.string().describe(\"Web URL of the repository.\").nullable(),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\").nullable(),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n}).passthrough();\nconst SourcegraphListRepositories_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoriesOutput = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;CACrG,UAAU,2CAA2C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,12 +10,12 @@ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
|
|
|
10
10
|
url: z.ZodNullable<z.ZodString>;
|
|
11
11
|
name: z.ZodNullable<z.ZodString>;
|
|
12
12
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
pageInfo: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
first: number;
|
|
21
21
|
after?: string | undefined;
|
|
@@ -10,12 +10,12 @@ declare const SourcegraphListRepositoriesOutput: z.ZodObject<{
|
|
|
10
10
|
url: z.ZodNullable<z.ZodString>;
|
|
11
11
|
name: z.ZodNullable<z.ZodString>;
|
|
12
12
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
pageInfo: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const sourcegraphListRepositories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
first: number;
|
|
21
21
|
after?: string | undefined;
|
|
@@ -9,11 +9,11 @@ const SourcegraphListRepositories_RepositoryNodeSchema = z.object({
|
|
|
9
9
|
url: z.string().describe("Web URL of the repository.").nullable(),
|
|
10
10
|
name: z.string().describe("Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.").nullable(),
|
|
11
11
|
description: z.string().describe("Description of the repository.").nullable().optional()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const SourcegraphListRepositories_PageInfoSchema = z.object({
|
|
14
14
|
endCursor: z.string().describe("Cursor for fetching next page.").nullable().optional(),
|
|
15
15
|
hasNextPage: z.boolean().describe("True if more pages of results are available.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const sourcegraphListRepositories = action("SOURCEGRAPH_LIST_REPOSITORIES", {
|
|
18
18
|
slug: "sourcegraph-list-repositories",
|
|
19
19
|
name: "List Repositories",
|
|
@@ -22,7 +22,7 @@ const sourcegraphListRepositories = action("SOURCEGRAPH_LIST_REPOSITORIES", {
|
|
|
22
22
|
output: z.object({
|
|
23
23
|
nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe("List of repository nodes."),
|
|
24
24
|
pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable()
|
|
25
|
-
})
|
|
25
|
+
}).passthrough()
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { sourcegraphListRepositories };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repositories.mjs","names":[],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.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});\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});\nexport const SourcegraphListRepositoriesOutput = 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,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;
|
|
1
|
+
{"version":3,"file":"list-repositories.mjs","names":[],"sources":["../../src/actions/list-repositories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoriesInput = z.object({\n after: z.string().describe(\"Pagination cursor returned from previous page; omit for first page.\").optional(),\n first: z.number().int().describe(\"Number of repositories to retrieve (1-1000).\"),\n});\nconst SourcegraphListRepositories_RepositoryNodeSchema = z.object({\n url: z.string().describe(\"Web URL of the repository.\").nullable(),\n name: z.string().describe(\"Repository name, e.g., 'github.com/sourcegraph/sourcegraph'.\").nullable(),\n description: z.string().describe(\"Description of the repository.\").nullable().optional(),\n}).passthrough();\nconst SourcegraphListRepositories_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor for fetching next page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if more pages of results are available.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoriesOutput = z.object({\n nodes: z.array(SourcegraphListRepositories_RepositoryNodeSchema).describe(\"List of repository nodes.\"),\n pageInfo: SourcegraphListRepositories_PageInfoSchema.nullable(),\n}).passthrough();\n\nexport const sourcegraphListRepositories = action(\"SOURCEGRAPH_LIST_REPOSITORIES\", {\n slug: \"sourcegraph-list-repositories\",\n name: \"List Repositories\",\n description: \"Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.\",\n input: SourcegraphListRepositoriesInput,\n output: SourcegraphListRepositoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACjF,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,2BAA2B;EACrG,UAAU,2CAA2C,SAAS;CAChE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,8 +11,8 @@ const SourcegraphListRepositoryFiles_RepositoryEntrySchema = zod.z.object({
|
|
|
11
11
|
url: zod.z.string().describe("URL to access the file or directory.").nullable(),
|
|
12
12
|
path: zod.z.string().describe("Path relative to the repository root.").nullable(),
|
|
13
13
|
isDirectory: zod.z.boolean().describe("True if the entry is a directory.").nullable()
|
|
14
|
-
});
|
|
15
|
-
const SourcegraphListRepositoryFilesOutput = zod.z.object({ entries: zod.z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") });
|
|
14
|
+
}).passthrough();
|
|
15
|
+
const SourcegraphListRepositoryFilesOutput = zod.z.object({ entries: zod.z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") }).passthrough();
|
|
16
16
|
const sourcegraphListRepositoryFiles = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
|
|
17
17
|
slug: "sourcegraph-list-repository-files",
|
|
18
18
|
name: "List Repository Files",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-files.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.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});\nexport const SourcegraphListRepositoryFilesOutput = 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,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;
|
|
1
|
+
{"version":3,"file":"list-repository-files.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({\n url: z.string().describe(\"URL to access the file or directory.\").nullable(),\n path: z.string().describe(\"Path relative to the repository root.\").nullable(),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoryFilesOutput = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n}).passthrough();\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,8 +12,8 @@ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
|
|
|
12
12
|
url: z.ZodNullable<z.ZodString>;
|
|
13
13
|
path: z.ZodNullable<z.ZodString>;
|
|
14
14
|
isDirectory: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
repo_name: string;
|
|
19
19
|
rev?: string | undefined;
|
|
@@ -12,8 +12,8 @@ declare const SourcegraphListRepositoryFilesOutput: z.ZodObject<{
|
|
|
12
12
|
url: z.ZodNullable<z.ZodString>;
|
|
13
13
|
path: z.ZodNullable<z.ZodString>;
|
|
14
14
|
isDirectory: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$
|
|
16
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const sourcegraphListRepositoryFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
repo_name: string;
|
|
19
19
|
rev?: string | undefined;
|
|
@@ -11,13 +11,13 @@ const SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({
|
|
|
11
11
|
url: z.string().describe("URL to access the file or directory.").nullable(),
|
|
12
12
|
path: z.string().describe("Path relative to the repository root.").nullable(),
|
|
13
13
|
isDirectory: z.boolean().describe("True if the entry is a directory.").nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const sourcegraphListRepositoryFiles = action("SOURCEGRAPH_LIST_REPOSITORY_FILES", {
|
|
16
16
|
slug: "sourcegraph-list-repository-files",
|
|
17
17
|
name: "List Repository Files",
|
|
18
18
|
description: "Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.",
|
|
19
19
|
input: SourcegraphListRepositoryFilesInput,
|
|
20
|
-
output: z.object({ entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") })
|
|
20
|
+
output: z.object({ entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe("List of files and directories.") }).passthrough()
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { sourcegraphListRepositoryFiles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-files.mjs","names":[],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.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});\nexport const SourcegraphListRepositoryFilesOutput = 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,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;
|
|
1
|
+
{"version":3,"file":"list-repository-files.mjs","names":[],"sources":["../../src/actions/list-repository-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryFilesInput = z.object({\n rev: z.string().default(\"HEAD\").describe(\"Git ref (branch, tag, or commit SHA). Defaults to HEAD.\").optional(),\n path: z.string().default(\"\").describe(\"Path within the repository. Defaults to root ('').\").optional(),\n recursive: z.boolean().default(true).describe(\"Whether to list files recursively. Defaults to True.\").optional(),\n repo_name: z.string().describe(\"Full repository name, e.g., 'github.com/owner/repo'\"),\n});\nconst SourcegraphListRepositoryFiles_RepositoryEntrySchema = z.object({\n url: z.string().describe(\"URL to access the file or directory.\").nullable(),\n path: z.string().describe(\"Path relative to the repository root.\").nullable(),\n isDirectory: z.boolean().describe(\"True if the entry is a directory.\").nullable(),\n}).passthrough();\nexport const SourcegraphListRepositoryFilesOutput = z.object({\n entries: z.array(SourcegraphListRepositoryFiles_RepositoryEntrySchema).describe(\"List of files and directories.\"),\n}).passthrough();\n\nexport const sourcegraphListRepositoryFiles = action(\"SOURCEGRAPH_LIST_REPOSITORY_FILES\", {\n slug: \"sourcegraph-list-repository-files\",\n name: \"List Repository Files\",\n description: \"Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.\",\n input: SourcegraphListRepositoryFilesInput,\n output: SourcegraphListRepositoryFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;AACtF,CAAC;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,gCAAgC,EAClH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,12 +2,12 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/list-repository-languages.ts
|
|
4
4
|
const SourcegraphListRepositoryLanguagesInput = zod.z.object({ repoName: zod.z.string().describe("Full name of the repository (e.g., 'github.com/gorilla/mux').") }).describe("Request model for listing the languages of a repository.");
|
|
5
|
-
const SourcegraphListRepositoryLanguages_CommitDataSchema = zod.z.object({ languages: zod.z.array(zod.z.string()).describe("All languages used in the repository's HEAD commit.") }).describe("All languages present in the HEAD commit of the repository.");
|
|
5
|
+
const SourcegraphListRepositoryLanguages_CommitDataSchema = zod.z.object({ languages: zod.z.array(zod.z.string()).describe("All languages used in the repository's HEAD commit.") }).passthrough().describe("All languages present in the HEAD commit of the repository.");
|
|
6
6
|
const SourcegraphListRepositoryLanguages_RepositoryDataSchema = zod.z.object({
|
|
7
7
|
commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
|
|
8
8
|
language: zod.z.string().describe("Primary language of the repository; null if unset.").nullable().optional()
|
|
9
|
-
}).describe("Repository language information.");
|
|
10
|
-
const SourcegraphListRepositoryLanguagesOutput = zod.z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).describe("Response model for repository languages.");
|
|
9
|
+
}).passthrough().describe("Repository language information.");
|
|
10
|
+
const SourcegraphListRepositoryLanguagesOutput = zod.z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).passthrough().describe("Response model for repository languages.");
|
|
11
11
|
const sourcegraphListRepositoryLanguages = require_action.action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
|
|
12
12
|
slug: "sourcegraph-list-repository-languages",
|
|
13
13
|
name: "List repository languages",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-languages.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput = z.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}).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}).describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput = 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,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,SAAS,6DAA6D;
|
|
1
|
+
{"version":3,"file":"list-repository-languages.cjs","names":["z","action"],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput = z.object({\n repoName: z.string().describe(\"Full name of the repository (e.g., 'github.com/gorilla/mux').\"),\n}).describe(\"Request model for listing the languages of a repository.\");\nconst SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({\n languages: z.array(z.string()).describe(\"All languages used in the repository's HEAD commit.\"),\n}).passthrough().describe(\"All languages present in the HEAD commit of the repository.\");\nconst SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({\n commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),\n language: z.string().describe(\"Primary language of the repository; null if unset.\").nullable().optional(),\n}).passthrough().describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput = z.object({\n repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for repository languages.\");\n\nexport const sourcegraphListRepositoryLanguages = action(\"SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES\", {\n slug: \"sourcegraph-list-repository-languages\",\n name: \"List repository languages\",\n description: \"Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.\",\n input: SourcegraphListRepositoryLanguagesInput,\n output: SourcegraphListRepositoryLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,QAAQ,oDAAoD,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,10 +8,10 @@ declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
|
|
|
8
8
|
repository: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
commit: z.ZodNullable<z.ZodObject<{
|
|
10
10
|
languages: z.ZodArray<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const sourcegraphListRepositoryLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
repoName: string;
|
|
17
17
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,10 +8,10 @@ declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
|
|
|
8
8
|
repository: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
commit: z.ZodNullable<z.ZodObject<{
|
|
10
10
|
languages: z.ZodArray<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
14
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const sourcegraphListRepositoryLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
repoName: string;
|
|
17
17
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,17 +2,17 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/list-repository-languages.ts
|
|
4
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.");
|
|
5
|
+
const SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({ languages: z.array(z.string()).describe("All languages used in the repository's HEAD commit.") }).passthrough().describe("All languages present in the HEAD commit of the repository.");
|
|
6
6
|
const SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({
|
|
7
7
|
commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
|
|
8
8
|
language: z.string().describe("Primary language of the repository; null if unset.").nullable().optional()
|
|
9
|
-
}).describe("Repository language information.");
|
|
9
|
+
}).passthrough().describe("Repository language information.");
|
|
10
10
|
const sourcegraphListRepositoryLanguages = action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
|
|
11
11
|
slug: "sourcegraph-list-repository-languages",
|
|
12
12
|
name: "List repository languages",
|
|
13
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
14
|
input: SourcegraphListRepositoryLanguagesInput,
|
|
15
|
-
output: z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).describe("Response model for repository languages.")
|
|
15
|
+
output: z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).passthrough().describe("Response model for repository languages.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { sourcegraphListRepositoryLanguages };
|
|
@@ -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}).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}).describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput = 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,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,SAAS,6DAA6D;
|
|
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":";;;AAIA,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,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|