@keystrokehq/sourcegraph 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/check-site-settings-edit-permission.cjs +18 -0
- package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -0
- package/dist/actions/check-site-settings-edit-permission.d.cts +9 -0
- package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -0
- package/dist/actions/check-site-settings-edit-permission.d.mts +9 -0
- package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -0
- package/dist/actions/check-site-settings-edit-permission.mjs +17 -0
- package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -0
- package/dist/actions/compare-commits.cjs +30 -0
- package/dist/actions/compare-commits.cjs.map +1 -0
- package/dist/actions/compare-commits.d.cts +9 -0
- package/dist/actions/compare-commits.d.cts.map +1 -0
- package/dist/actions/compare-commits.d.mts +9 -0
- package/dist/actions/compare-commits.d.mts.map +1 -0
- package/dist/actions/compare-commits.mjs +29 -0
- package/dist/actions/compare-commits.mjs.map +1 -0
- package/dist/actions/get-commit-details.cjs +39 -0
- package/dist/actions/get-commit-details.cjs.map +1 -0
- package/dist/actions/get-commit-details.d.cts +9 -0
- package/dist/actions/get-commit-details.d.cts.map +1 -0
- package/dist/actions/get-commit-details.d.mts +9 -0
- package/dist/actions/get-commit-details.d.mts.map +1 -0
- package/dist/actions/get-commit-details.mjs +38 -0
- package/dist/actions/get-commit-details.mjs.map +1 -0
- package/dist/actions/get-current-user.cjs +18 -0
- package/dist/actions/get-current-user.cjs.map +1 -0
- package/dist/actions/get-current-user.d.cts +9 -0
- package/dist/actions/get-current-user.d.cts.map +1 -0
- package/dist/actions/get-current-user.d.mts +9 -0
- package/dist/actions/get-current-user.d.mts.map +1 -0
- package/dist/actions/get-current-user.mjs +17 -0
- package/dist/actions/get-current-user.mjs.map +1 -0
- package/dist/actions/get-file-contents.cjs +19 -0
- package/dist/actions/get-file-contents.cjs.map +1 -0
- package/dist/actions/get-file-contents.d.cts +9 -0
- package/dist/actions/get-file-contents.d.cts.map +1 -0
- package/dist/actions/get-file-contents.d.mts +9 -0
- package/dist/actions/get-file-contents.d.mts.map +1 -0
- package/dist/actions/get-file-contents.mjs +16 -0
- package/dist/actions/get-file-contents.mjs.map +1 -0
- package/dist/actions/index.cjs +17 -0
- package/dist/actions/index.d.cts +9 -0
- package/dist/actions/index.d.mts +9 -0
- package/dist/actions/index.mjs +9 -0
- package/dist/actions/list-repositories.cjs +31 -0
- package/dist/actions/list-repositories.cjs.map +1 -0
- package/dist/actions/list-repositories.d.cts +9 -0
- package/dist/actions/list-repositories.d.cts.map +1 -0
- package/dist/actions/list-repositories.d.mts +9 -0
- package/dist/actions/list-repositories.d.mts.map +1 -0
- package/dist/actions/list-repositories.mjs +30 -0
- package/dist/actions/list-repositories.mjs.map +1 -0
- package/dist/actions/list-repository-files.cjs +26 -0
- package/dist/actions/list-repository-files.cjs.map +1 -0
- package/dist/actions/list-repository-files.d.cts +9 -0
- package/dist/actions/list-repository-files.d.cts.map +1 -0
- package/dist/actions/list-repository-files.d.mts +9 -0
- package/dist/actions/list-repository-files.d.mts.map +1 -0
- package/dist/actions/list-repository-files.mjs +25 -0
- package/dist/actions/list-repository-files.mjs.map +1 -0
- package/dist/actions/list-repository-languages.cjs +21 -0
- package/dist/actions/list-repository-languages.cjs.map +1 -0
- package/dist/actions/list-repository-languages.d.cts +9 -0
- package/dist/actions/list-repository-languages.d.cts.map +1 -0
- package/dist/actions/list-repository-languages.d.mts +9 -0
- package/dist/actions/list-repository-languages.d.mts.map +1 -0
- package/dist/actions/list-repository-languages.mjs +20 -0
- package/dist/actions/list-repository-languages.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +22 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +12 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/sourcegraph
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `sourcegraph`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 8
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { sourcegraphCheckSiteSettingsEditPermission } from "@keystrokehq/sourcegraph/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "sourcegraph-agent",
|
|
15
|
+
tools: [sourcegraphCheckSiteSettingsEditPermission],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.sourcegraph.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSourcegraphTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sourcegraph","executeSourcegraphTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sourcegraph } from \"./app\";\nimport { executeSourcegraphTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return sourcegraph.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSourcegraphTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { sourcegraph } from "./app.mjs";
|
|
2
|
+
import { executeSourcegraphTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return sourcegraph.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSourcegraphTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sourcegraph } from \"./app\";\nimport { executeSourcegraphTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return sourcegraph.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSourcegraphTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/check-site-settings-edit-permission.ts
|
|
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.") });
|
|
6
|
+
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = zod.z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() });
|
|
7
|
+
const SourcegraphCheckSiteSettingsEditPermissionOutput = zod.z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() });
|
|
8
|
+
const sourcegraphCheckSiteSettingsEditPermission = require_action.action("SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION", {
|
|
9
|
+
slug: "sourcegraph-check-site-settings-edit-permission",
|
|
10
|
+
name: "Check Site Settings Edit Permission",
|
|
11
|
+
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.",
|
|
12
|
+
input: SourcegraphCheckSiteSettingsEditPermissionInput,
|
|
13
|
+
output: SourcegraphCheckSiteSettingsEditPermissionOutput
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.sourcegraphCheckSiteSettingsEditPermission = sourcegraphCheckSiteSettingsEditPermission;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=check-site-settings-edit-permission.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema: z.ZodTypeAny = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\"),\n});\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema: z.ZodTypeAny = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n});\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodTypeAny = 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,kDAAgEA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACpK,MAAM,8EAA4FA,IAAAA,EAAE,OAAO,EACzG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,EACrG,CAAC;AACD,MAAM,+FAA6GA,IAAAA,EAAE,OAAO,EAC1H,MAAM,4EAA4E,SAAS,EAC7F,CAAC;AACD,MAAa,mDAAiEA,IAAAA,EAAE,OAAO,EACrF,MAAM,6FAA6F,SAAS,EAC9G,CAAC;AAED,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/check-site-settings-edit-permission.d.ts
|
|
4
|
+
declare const SourcegraphCheckSiteSettingsEditPermissionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphCheckSiteSettingsEditPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
9
|
+
//# sourceMappingURL=check-site-settings-edit-permission.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.d.cts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAAqG;AAAA,cAOxJ,gDAAA,EAAkD,CAAA,CAAE,UAE/D;AAAA,cAEW,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/check-site-settings-edit-permission.d.ts
|
|
4
|
+
declare const SourcegraphCheckSiteSettingsEditPermissionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphCheckSiteSettingsEditPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
9
|
+
//# sourceMappingURL=check-site-settings-edit-permission.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.d.mts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAAqG;AAAA,cAOxJ,gDAAA,EAAkD,CAAA,CAAE,UAE/D;AAAA,cAEW,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/check-site-settings-edit-permission.ts
|
|
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.") });
|
|
6
|
+
const SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema = z.object({ site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable() });
|
|
7
|
+
const sourcegraphCheckSiteSettingsEditPermission = action("SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION", {
|
|
8
|
+
slug: "sourcegraph-check-site-settings-edit-permission",
|
|
9
|
+
name: "Check Site Settings Edit Permission",
|
|
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
|
+
input: SourcegraphCheckSiteSettingsEditPermissionInput,
|
|
12
|
+
output: z.object({ data: SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema.nullable() })
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=check-site-settings-edit-permission.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Empty request model for CheckSiteSettingsEditPermission action.\");\nconst SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema: z.ZodTypeAny = z.object({\n allowSiteSettingsEdits: z.boolean().describe(\"Whether site settings edits are allowed via the API.\"),\n});\nconst SourcegraphCheckSiteSettingsEditPermission_CheckSiteSettingsEditPermissionResponseDataSchema: z.ZodTypeAny = z.object({\n site: SourcegraphCheckSiteSettingsEditPermission_SiteSettingsEditPermissionSchema.nullable(),\n});\nexport const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodTypeAny = 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,kDAAgE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AACpK,MAAM,8EAA4F,EAAE,OAAO,EACzG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,EACrG,CAAC;AACD,MAAM,+FAA6G,EAAE,OAAO,EAC1H,MAAM,4EAA4E,SAAS,EAC7F,CAAC;AAKD,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4E,EAAE,OAAO,EACrF,MAAM,6FAA6F,SAAS,EAC9G,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/compare-commits.ts
|
|
4
|
+
const SourcegraphCompareCommitsInput = zod.z.object({
|
|
5
|
+
base: zod.z.string().describe("Base commit SHA or ref to compare from"),
|
|
6
|
+
head: zod.z.string().describe("Head commit SHA or ref to compare to"),
|
|
7
|
+
repo: zod.z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
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") }).describe("Model for a diff hunk");
|
|
10
|
+
const SourcegraphCompareCommits_FileDiffNodeSchema = zod.z.object({
|
|
11
|
+
hunks: zod.z.array(SourcegraphCompareCommits_HunkSchema).describe("List of diff hunks"),
|
|
12
|
+
newPath: zod.z.string().describe("New file path after changes").nullable().optional(),
|
|
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");
|
|
20
|
+
const sourcegraphCompareCommits = require_action.action("SOURCEGRAPH_COMPARE_COMMITS", {
|
|
21
|
+
slug: "sourcegraph-compare-commits",
|
|
22
|
+
name: "Compare Commits",
|
|
23
|
+
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.",
|
|
24
|
+
input: SourcegraphCompareCommitsInput,
|
|
25
|
+
output: SourcegraphCompareCommitsOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.sourcegraphCompareCommits = sourcegraphCompareCommits;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=compare-commits.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n body: z.string().describe(\"Diff hunk body text\"),\n}).describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema: z.ZodTypeAny = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema: z.ZodTypeAny = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema: z.ZodTypeAny = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput: z.ZodTypeAny = 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,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,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,uCAAqDA,IAAAA,EAAE,OAAO,EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,EACjD,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,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,SAAS,4BAA4B;AACxC,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,EACvE,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,EACjG,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,WAAW,0CAA0C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,uCAAqDA,IAAAA,EAAE,OAAO,EAClE,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/compare-commits.d.ts
|
|
4
|
+
declare const SourcegraphCompareCommitsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphCompareCommitsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphCompareCommits: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphCompareCommits };
|
|
9
|
+
//# sourceMappingURL=compare-commits.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-commits.d.cts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIuB;AAAA,cAqBzD,+BAAA,EAAiC,CAAA,CAAE,UAEQ;AAAA,cAE3C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/compare-commits.d.ts
|
|
4
|
+
declare const SourcegraphCompareCommitsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphCompareCommitsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphCompareCommits: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphCompareCommits };
|
|
9
|
+
//# sourceMappingURL=compare-commits.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-commits.d.mts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIuB;AAAA,cAqBzD,+BAAA,EAAiC,CAAA,CAAE,UAEQ;AAAA,cAE3C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/compare-commits.ts
|
|
4
|
+
const SourcegraphCompareCommitsInput = z.object({
|
|
5
|
+
base: z.string().describe("Base commit SHA or ref to compare from"),
|
|
6
|
+
head: z.string().describe("Head commit SHA or ref to compare to"),
|
|
7
|
+
repo: z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
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") }).describe("Model for a diff hunk");
|
|
10
|
+
const SourcegraphCompareCommits_FileDiffNodeSchema = z.object({
|
|
11
|
+
hunks: z.array(SourcegraphCompareCommits_HunkSchema).describe("List of diff hunks"),
|
|
12
|
+
newPath: z.string().describe("New file path after changes").nullable().optional(),
|
|
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");
|
|
19
|
+
const sourcegraphCompareCommits = action("SOURCEGRAPH_COMPARE_COMMITS", {
|
|
20
|
+
slug: "sourcegraph-compare-commits",
|
|
21
|
+
name: "Compare Commits",
|
|
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
|
+
input: SourcegraphCompareCommitsInput,
|
|
24
|
+
output: z.object({ data: SourcegraphCompareCommits_DataSchema.nullable() }).describe("Response model containing comparison data")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { sourcegraphCompareCommits };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=compare-commits.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n body: z.string().describe(\"Diff hunk body text\"),\n}).describe(\"Model for a diff hunk\");\nconst SourcegraphCompareCommits_FileDiffNodeSchema: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n nodes: z.array(SourcegraphCompareCommits_FileDiffNodeSchema).describe(\"List of file diff nodes\"),\n}).describe(\"Wrapper for file diffs\");\nconst SourcegraphCompareCommits_ComparisonSchema: z.ZodTypeAny = z.object({\n fileDiffs: SourcegraphCompareCommits_FileDiffsSchema.nullable(),\n}).describe(\"Comparison payload between two commits\");\nconst SourcegraphCompareCommits_RepositorySchema: z.ZodTypeAny = z.object({\n comparison: SourcegraphCompareCommits_ComparisonSchema.nullable(),\n}).describe(\"Repository containing the comparison\");\nconst SourcegraphCompareCommits_DataSchema: z.ZodTypeAny = z.object({\n repository: SourcegraphCompareCommits_RepositorySchema.nullable(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphCompareCommitsOutput: z.ZodTypeAny = 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,iCAA+C,EAAE,OAAO;CACnE,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,uCAAqD,EAAE,OAAO,EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,EACjD,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAM,+CAA6D,EAAE,OAAO;CAC1E,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,SAAS,4BAA4B;AACxC,MAAM,4CAA0D,EAAE,OAAO,EACvE,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB,EACjG,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,6CAA2D,EAAE,OAAO,EACxE,WAAW,0CAA0C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,6CAA2D,EAAE,OAAO,EACxE,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,uCAAqD,EAAE,OAAO,EAClE,YAAY,2CAA2C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAK/C,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-commit-details.ts
|
|
4
|
+
const SourcegraphGetCommitDetailsInput = zod.z.object({
|
|
5
|
+
rev: zod.z.string().describe("Commit SHA, branch name, or tag to get details for"),
|
|
6
|
+
repo: zod.z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
7
|
+
}).describe("Request model for getting commit details from a repository");
|
|
8
|
+
const SourcegraphGetCommitDetails_AuthorSchema = zod.z.object({
|
|
9
|
+
date: zod.z.string().describe("Author date in ISO format"),
|
|
10
|
+
name: zod.z.string().describe("Author name"),
|
|
11
|
+
email: zod.z.string().describe("Author email address")
|
|
12
|
+
}).describe("Model for commit author information");
|
|
13
|
+
const SourcegraphGetCommitDetails_ParentCommitSchema = zod.z.object({ oid: zod.z.string().describe("Parent commit SHA") }).describe("Model for parent commit reference");
|
|
14
|
+
const SourcegraphGetCommitDetails_CommitterSchema = zod.z.object({
|
|
15
|
+
date: zod.z.string().describe("Committer date in ISO format"),
|
|
16
|
+
name: zod.z.string().describe("Committer name"),
|
|
17
|
+
email: zod.z.string().describe("Committer email address")
|
|
18
|
+
}).describe("Model for commit committer information");
|
|
19
|
+
const SourcegraphGetCommitDetails_GitCommitSchema = zod.z.object({
|
|
20
|
+
oid: zod.z.string().describe("Commit SHA"),
|
|
21
|
+
author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),
|
|
22
|
+
message: zod.z.string().describe("Commit message"),
|
|
23
|
+
parents: zod.z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe("List of parent commits"),
|
|
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");
|
|
29
|
+
const sourcegraphGetCommitDetails = require_action.action("SOURCEGRAPH_GET_COMMIT_DETAILS", {
|
|
30
|
+
slug: "sourcegraph-get-commit-details",
|
|
31
|
+
name: "Get Commit Details",
|
|
32
|
+
description: "Get detailed information about a specific commit in a repository.",
|
|
33
|
+
input: SourcegraphGetCommitDetailsInput,
|
|
34
|
+
output: SourcegraphGetCommitDetailsOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.sourcegraphGetCommitDetails = sourcegraphGetCommitDetails;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-commit-details.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n date: z.string().describe(\"Author date in ISO format\"),\n name: z.string().describe(\"Author name\"),\n email: z.string().describe(\"Author email address\"),\n}).describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema: z.ZodTypeAny = z.object({\n oid: z.string().describe(\"Parent commit SHA\"),\n}).describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Committer date in ISO format\"),\n name: z.string().describe(\"Committer name\"),\n email: z.string().describe(\"Committer email address\"),\n}).describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema: z.ZodTypeAny = z.object({\n oid: z.string().describe(\"Commit SHA\"),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\"),\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.ZodTypeAny = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema: z.ZodTypeAny = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput: z.ZodTypeAny = 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,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,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,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACnD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAC9C,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACtD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACrC,QAAQ,yCAAyC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC7C,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wBAAwB;CAClG,WAAW,4CAA4C,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,+CAA6DA,IAAAA,EAAE,OAAO,EAC1E,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,yCAAuDA,IAAAA,EAAE,OAAO,EACpE,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-commit-details.d.ts
|
|
4
|
+
declare const SourcegraphGetCommitDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetCommitDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetCommitDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetCommitDetails };
|
|
9
|
+
//# sourceMappingURL=get-commit-details.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-commit-details.d.cts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGwB;AAAA,cA2B5D,iCAAA,EAAmC,CAAA,CAAE,UAEK;AAAA,cAE1C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-commit-details.d.ts
|
|
4
|
+
declare const SourcegraphGetCommitDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetCommitDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetCommitDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetCommitDetails };
|
|
9
|
+
//# sourceMappingURL=get-commit-details.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-commit-details.d.mts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGwB;AAAA,cA2B5D,iCAAA,EAAmC,CAAA,CAAE,UAEK;AAAA,cAE1C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-commit-details.ts
|
|
4
|
+
const SourcegraphGetCommitDetailsInput = z.object({
|
|
5
|
+
rev: z.string().describe("Commit SHA, branch name, or tag to get details for"),
|
|
6
|
+
repo: z.string().describe("Repository name in format 'github.com/owner/repo'")
|
|
7
|
+
}).describe("Request model for getting commit details from a repository");
|
|
8
|
+
const SourcegraphGetCommitDetails_AuthorSchema = z.object({
|
|
9
|
+
date: z.string().describe("Author date in ISO format"),
|
|
10
|
+
name: z.string().describe("Author name"),
|
|
11
|
+
email: z.string().describe("Author email address")
|
|
12
|
+
}).describe("Model for commit author information");
|
|
13
|
+
const SourcegraphGetCommitDetails_ParentCommitSchema = z.object({ oid: z.string().describe("Parent commit SHA") }).describe("Model for parent commit reference");
|
|
14
|
+
const SourcegraphGetCommitDetails_CommitterSchema = z.object({
|
|
15
|
+
date: z.string().describe("Committer date in ISO format"),
|
|
16
|
+
name: z.string().describe("Committer name"),
|
|
17
|
+
email: z.string().describe("Committer email address")
|
|
18
|
+
}).describe("Model for commit committer information");
|
|
19
|
+
const SourcegraphGetCommitDetails_GitCommitSchema = z.object({
|
|
20
|
+
oid: z.string().describe("Commit SHA"),
|
|
21
|
+
author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),
|
|
22
|
+
message: z.string().describe("Commit message"),
|
|
23
|
+
parents: z.array(SourcegraphGetCommitDetails_ParentCommitSchema).describe("List of parent commits"),
|
|
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");
|
|
28
|
+
const sourcegraphGetCommitDetails = action("SOURCEGRAPH_GET_COMMIT_DETAILS", {
|
|
29
|
+
slug: "sourcegraph-get-commit-details",
|
|
30
|
+
name: "Get Commit Details",
|
|
31
|
+
description: "Get detailed information about a specific commit in a repository.",
|
|
32
|
+
input: SourcegraphGetCommitDetailsInput,
|
|
33
|
+
output: z.object({ data: SourcegraphGetCommitDetails_DataSchema.nullable() }).describe("Response model containing commit details")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { sourcegraphGetCommitDetails };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-commit-details.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n date: z.string().describe(\"Author date in ISO format\"),\n name: z.string().describe(\"Author name\"),\n email: z.string().describe(\"Author email address\"),\n}).describe(\"Model for commit author information\");\nconst SourcegraphGetCommitDetails_ParentCommitSchema: z.ZodTypeAny = z.object({\n oid: z.string().describe(\"Parent commit SHA\"),\n}).describe(\"Model for parent commit reference\");\nconst SourcegraphGetCommitDetails_CommitterSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Committer date in ISO format\"),\n name: z.string().describe(\"Committer name\"),\n email: z.string().describe(\"Committer email address\"),\n}).describe(\"Model for commit committer information\");\nconst SourcegraphGetCommitDetails_GitCommitSchema: z.ZodTypeAny = z.object({\n oid: z.string().describe(\"Commit SHA\"),\n author: SourcegraphGetCommitDetails_AuthorSchema.nullable(),\n message: z.string().describe(\"Commit message\"),\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.ZodTypeAny = z.object({\n commit: SourcegraphGetCommitDetails_GitCommitSchema.nullable().optional(),\n}).describe(\"Repository containing the commit\");\nconst SourcegraphGetCommitDetails_DataSchema: z.ZodTypeAny = z.object({\n repository: SourcegraphGetCommitDetails_RepositorySchema.nullable().optional(),\n}).describe(\"Data wrapper for GraphQL response\");\nexport const SourcegraphGetCommitDetailsOutput: z.ZodTypeAny = 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,mCAAiD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AACnD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,iDAA+D,EAAE,OAAO,EAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAC9C,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACtD,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA4D,EAAE,OAAO;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACrC,QAAQ,yCAAyC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC7C,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wBAAwB;CAClG,WAAW,4CAA4C,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAM,+CAA6D,EAAE,OAAO,EAC1E,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,yCAAuD,EAAE,OAAO,EACpE,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAK/C,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-current-user.ts
|
|
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.") });
|
|
6
|
+
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = zod.z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() });
|
|
7
|
+
const SourcegraphGetCurrentUserOutput = zod.z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() });
|
|
8
|
+
const sourcegraphGetCurrentUser = require_action.action("SOURCEGRAPH_GET_CURRENT_USER", {
|
|
9
|
+
slug: "sourcegraph-get-current-user",
|
|
10
|
+
name: "Get Current User",
|
|
11
|
+
description: "Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.",
|
|
12
|
+
input: SourcegraphGetCurrentUserInput,
|
|
13
|
+
output: SourcegraphGetCurrentUserOutput
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.sourcegraphGetCurrentUser = sourcegraphGetCurrentUser;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=get-current-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\"),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema: z.ZodTypeAny = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput: z.ZodTypeAny = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAClI,MAAM,8CAA4DA,IAAAA,EAAE,OAAO,EACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACnF,CAAC;AACD,MAAM,6DAA2EA,IAAAA,EAAE,OAAO,EACxF,aAAa,4CAA4C,SAAS,EACpE,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,MAAM,2DAA2D,SAAS,EAC5E,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-current-user.d.ts
|
|
4
|
+
declare const SourcegraphGetCurrentUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetCurrentUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetCurrentUser };
|
|
9
|
+
//# sourceMappingURL=get-current-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAoF;AAAA,cAOtH,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-current-user.d.ts
|
|
4
|
+
declare const SourcegraphGetCurrentUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetCurrentUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetCurrentUser };
|
|
9
|
+
//# sourceMappingURL=get-current-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAoF;AAAA,cAOtH,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-current-user.ts
|
|
4
|
+
const SourcegraphGetCurrentUserInput = z.object({}).describe("Empty request model for GetCurrentUser action.");
|
|
5
|
+
const SourcegraphGetCurrentUser_CurrentUserSchema = z.object({ username: z.string().describe("The username of the currently authenticated user.") });
|
|
6
|
+
const SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema = z.object({ currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable() });
|
|
7
|
+
const sourcegraphGetCurrentUser = action("SOURCEGRAPH_GET_CURRENT_USER", {
|
|
8
|
+
slug: "sourcegraph-get-current-user",
|
|
9
|
+
name: "Get Current User",
|
|
10
|
+
description: "Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.",
|
|
11
|
+
input: SourcegraphGetCurrentUserInput,
|
|
12
|
+
output: z.object({ data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable() })
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { sourcegraphGetCurrentUser };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=get-current-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Empty request model for GetCurrentUser action.\");\nconst SourcegraphGetCurrentUser_CurrentUserSchema: z.ZodTypeAny = z.object({\n username: z.string().describe(\"The username of the currently authenticated user.\"),\n});\nconst SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema: z.ZodTypeAny = z.object({\n currentUser: SourcegraphGetCurrentUser_CurrentUserSchema.nullable(),\n});\nexport const SourcegraphGetCurrentUserOutput: z.ZodTypeAny = z.object({\n data: SourcegraphGetCurrentUser_GetCurrentUserResponseDataSchema.nullable(),\n});\n\nexport const sourcegraphGetCurrentUser = action(\"SOURCEGRAPH_GET_CURRENT_USER\", {\n slug: \"sourcegraph-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.\",\n input: SourcegraphGetCurrentUserInput,\n output: SourcegraphGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAClI,MAAM,8CAA4D,EAAE,OAAO,EACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EACnF,CAAC;AACD,MAAM,6DAA2E,EAAE,OAAO,EACxF,aAAa,4CAA4C,SAAS,EACpE,CAAC;AAKD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,MAAM,2DAA2D,SAAS,EAC5E,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-file-contents.ts
|
|
4
|
+
const SourcegraphGetFileContentsInput = zod.z.object({
|
|
5
|
+
file_path: zod.z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
|
|
6
|
+
repo_name: zod.z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
|
|
7
|
+
}).describe("Request model for fetching file contents from a repository's default branch.");
|
|
8
|
+
const SourcegraphGetFileContentsOutput = zod.z.object({ content: zod.z.string().describe("The raw text contents of the specified file on the repository's default branch.") }).describe("Response model containing the content of the file.");
|
|
9
|
+
const sourcegraphGetFileContents = require_action.action("SOURCEGRAPH_GET_FILE_CONTENTS", {
|
|
10
|
+
slug: "sourcegraph-get-file-contents",
|
|
11
|
+
name: "Get File Contents",
|
|
12
|
+
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.",
|
|
13
|
+
input: SourcegraphGetFileContentsInput,
|
|
14
|
+
output: SourcegraphGetFileContentsOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.sourcegraphGetFileContents = sourcegraphGetFileContents;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-file-contents.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput: z.ZodTypeAny = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\"),\n}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACvH,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-file-contents.d.ts
|
|
4
|
+
declare const SourcegraphGetFileContentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetFileContentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetFileContents };
|
|
9
|
+
//# sourceMappingURL=get-file-contents.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file-contents.d.cts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG2C;AAAA,cAC9E,gCAAA,EAAkC,CAAA,CAAE,UAEgB;AAAA,cAEpD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-file-contents.d.ts
|
|
4
|
+
declare const SourcegraphGetFileContentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SourcegraphGetFileContentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sourcegraphGetFileContents: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sourcegraphGetFileContents };
|
|
9
|
+
//# sourceMappingURL=get-file-contents.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file-contents.d.mts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG2C;AAAA,cAC9E,gCAAA,EAAkC,CAAA,CAAE,UAEgB;AAAA,cAEpD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sourcegraphGetFileContents = action("SOURCEGRAPH_GET_FILE_CONTENTS", {
|
|
4
|
+
slug: "sourcegraph-get-file-contents",
|
|
5
|
+
name: "Get File Contents",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
file_path: z.string().describe("Path to the file in the repository, relative to the root, e.g., 'README.md'."),
|
|
9
|
+
repo_name: z.string().describe("Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.")
|
|
10
|
+
}).describe("Request model for fetching file contents from a repository's default branch."),
|
|
11
|
+
output: z.object({ content: z.string().describe("The raw text contents of the specified file on the repository's default branch.") }).describe("Response model containing the content of the file.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { sourcegraphGetFileContents };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-file-contents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file-contents.mjs","names":[],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphGetFileContentsInput: z.ZodTypeAny = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\"),\n}).describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2D,EAAE,OAAO;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACvH,CAAC,CAAC,CAAC,SAAS,8EASH;CACP,QAT4D,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_check_site_settings_edit_permission = require("./check-site-settings-edit-permission.cjs");
|
|
3
|
+
const require_compare_commits = require("./compare-commits.cjs");
|
|
4
|
+
const require_get_commit_details = require("./get-commit-details.cjs");
|
|
5
|
+
const require_get_current_user = require("./get-current-user.cjs");
|
|
6
|
+
const require_get_file_contents = require("./get-file-contents.cjs");
|
|
7
|
+
const require_list_repositories = require("./list-repositories.cjs");
|
|
8
|
+
const require_list_repository_files = require("./list-repository-files.cjs");
|
|
9
|
+
const require_list_repository_languages = require("./list-repository-languages.cjs");
|
|
10
|
+
exports.sourcegraphCheckSiteSettingsEditPermission = require_check_site_settings_edit_permission.sourcegraphCheckSiteSettingsEditPermission;
|
|
11
|
+
exports.sourcegraphCompareCommits = require_compare_commits.sourcegraphCompareCommits;
|
|
12
|
+
exports.sourcegraphGetCommitDetails = require_get_commit_details.sourcegraphGetCommitDetails;
|
|
13
|
+
exports.sourcegraphGetCurrentUser = require_get_current_user.sourcegraphGetCurrentUser;
|
|
14
|
+
exports.sourcegraphGetFileContents = require_get_file_contents.sourcegraphGetFileContents;
|
|
15
|
+
exports.sourcegraphListRepositories = require_list_repositories.sourcegraphListRepositories;
|
|
16
|
+
exports.sourcegraphListRepositoryFiles = require_list_repository_files.sourcegraphListRepositoryFiles;
|
|
17
|
+
exports.sourcegraphListRepositoryLanguages = require_list_repository_languages.sourcegraphListRepositoryLanguages;
|