@keystrokehq/sourcegraph 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.cjs +1 -0
- package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.cts +3 -15
- package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.mts +3 -15
- package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.mjs +1 -0
- package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -1
- package/dist/actions/compare-commits.cjs +1 -0
- package/dist/actions/compare-commits.cjs.map +1 -1
- package/dist/actions/compare-commits.d.cts +3 -19
- package/dist/actions/compare-commits.d.cts.map +1 -1
- package/dist/actions/compare-commits.d.mts +3 -19
- package/dist/actions/compare-commits.d.mts.map +1 -1
- package/dist/actions/compare-commits.mjs +1 -0
- package/dist/actions/compare-commits.mjs.map +1 -1
- package/dist/actions/get-commit-details.cjs +1 -0
- package/dist/actions/get-commit-details.cjs.map +1 -1
- package/dist/actions/get-commit-details.d.cts +3 -18
- package/dist/actions/get-commit-details.d.cts.map +1 -1
- package/dist/actions/get-commit-details.d.mts +3 -18
- package/dist/actions/get-commit-details.d.mts.map +1 -1
- package/dist/actions/get-commit-details.mjs +1 -0
- package/dist/actions/get-commit-details.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +1 -0
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +3 -15
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +3 -15
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +1 -0
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-file-contents.cjs +1 -0
- package/dist/actions/get-file-contents.cjs.map +1 -1
- package/dist/actions/get-file-contents.d.cts +3 -18
- package/dist/actions/get-file-contents.d.cts.map +1 -1
- package/dist/actions/get-file-contents.d.mts +3 -18
- package/dist/actions/get-file-contents.d.mts.map +1 -1
- package/dist/actions/get-file-contents.mjs +1 -0
- package/dist/actions/get-file-contents.mjs.map +1 -1
- package/dist/actions/list-repositories.cjs +1 -0
- package/dist/actions/list-repositories.cjs.map +1 -1
- package/dist/actions/list-repositories.d.cts +3 -18
- package/dist/actions/list-repositories.d.cts.map +1 -1
- package/dist/actions/list-repositories.d.mts +3 -18
- package/dist/actions/list-repositories.d.mts.map +1 -1
- package/dist/actions/list-repositories.mjs +1 -0
- package/dist/actions/list-repositories.mjs.map +1 -1
- package/dist/actions/list-repository-files.cjs +1 -0
- package/dist/actions/list-repository-files.cjs.map +1 -1
- package/dist/actions/list-repository-files.d.cts +3 -20
- package/dist/actions/list-repository-files.d.cts.map +1 -1
- package/dist/actions/list-repository-files.d.mts +3 -20
- package/dist/actions/list-repository-files.d.mts.map +1 -1
- package/dist/actions/list-repository-files.mjs +1 -0
- package/dist/actions/list-repository-files.mjs.map +1 -1
- package/dist/actions/list-repository-languages.cjs +1 -0
- package/dist/actions/list-repository-languages.cjs.map +1 -1
- package/dist/actions/list-repository-languages.d.cts +3 -17
- package/dist/actions/list-repository-languages.d.cts.map +1 -1
- package/dist/actions/list-repository-languages.d.mts +3 -17
- package/dist/actions/list-repository-languages.d.mts.map +1 -1
- package/dist/actions/list-repository-languages.mjs +1 -0
- package/dist/actions/list-repository-languages.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sourcegraph","executeSourcegraphTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sourcegraph.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,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.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sourcegraph.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAO2D;CAC3D,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"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.cjs","names":["z","action"],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphCheckSiteSettingsEditPermissionInput,\n typeof SourcegraphCheckSiteSettingsEditPermissionOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,6CAITC,eAAAA,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/check-site-settings-edit-permission.d.ts
|
|
@@ -9,21 +11,7 @@ declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodObject<{
|
|
|
9
11
|
}, z.core.$loose>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sourcegraphCheckSiteSettingsEditPermission:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
full: z.ZodString;
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
full: z.ZodString;
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const sourcegraphCheckSiteSettingsEditPermission: AppAction<typeof SourcegraphCheckSiteSettingsEditPermissionInput, typeof SourcegraphCheckSiteSettingsEditPermissionOutput, typeof sourcegraph.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
29
17
|
//# sourceMappingURL=check-site-settings-edit-permission.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-site-settings-edit-permission.d.cts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.d.cts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;cAIhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/check-site-settings-edit-permission.d.ts
|
|
@@ -9,21 +11,7 @@ declare const SourcegraphCheckSiteSettingsEditPermissionOutput: z.ZodObject<{
|
|
|
9
11
|
}, z.core.$loose>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sourcegraphCheckSiteSettingsEditPermission:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
full: z.ZodString;
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
full: z.ZodString;
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const sourcegraphCheckSiteSettingsEditPermission: AppAction<typeof SourcegraphCheckSiteSettingsEditPermissionInput, typeof SourcegraphCheckSiteSettingsEditPermissionOutput, typeof sourcegraph.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { sourcegraphCheckSiteSettingsEditPermission };
|
|
29
17
|
//# sourceMappingURL=check-site-settings-edit-permission.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-site-settings-edit-permission.d.mts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.d.mts","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"mappings":";;;;;cAMa,+CAAA,EAA+C,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;cAIhD,0CAAA,EAA4C,SAAA,QAChD,+CAAA,SACA,gDAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"check-site-settings-edit-permission.mjs","names":[],"sources":["../../src/actions/check-site-settings-edit-permission.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphCheckSiteSettingsEditPermissionInput,\n typeof SourcegraphCheckSiteSettingsEditPermissionOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,6CAIT,OAAO,mDAAmD;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8D,EAAE,OAAO,EACvE,MAAM,6FAA6F,SAAS,EAC9G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"compare-commits.cjs","names":["z","action"],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphCompareCommitsInput,\n typeof SourcegraphCompareCommitsOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/compare-commits.d.ts
|
|
@@ -23,25 +25,7 @@ declare const SourcegraphCompareCommitsOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sourcegraphCompareCommits:
|
|
27
|
-
base: string;
|
|
28
|
-
head: string;
|
|
29
|
-
repo: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
full: z.ZodString;
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
full: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sourcegraphCompareCommits: AppAction<typeof SourcegraphCompareCommitsInput, typeof SourcegraphCompareCommitsOutput, typeof sourcegraph.credential>;
|
|
45
29
|
//#endregion
|
|
46
30
|
export { sourcegraphCompareCommits };
|
|
47
31
|
//# sourceMappingURL=compare-commits.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-commits.d.cts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compare-commits.d.cts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAyB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/compare-commits.d.ts
|
|
@@ -23,25 +25,7 @@ declare const SourcegraphCompareCommitsOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sourcegraphCompareCommits:
|
|
27
|
-
base: string;
|
|
28
|
-
head: string;
|
|
29
|
-
repo: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
full: z.ZodString;
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
full: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sourcegraphCompareCommits: AppAction<typeof SourcegraphCompareCommitsInput, typeof SourcegraphCompareCommitsOutput, typeof sourcegraph.credential>;
|
|
45
29
|
//#endregion
|
|
46
30
|
export { sourcegraphCompareCommits };
|
|
47
31
|
//# sourceMappingURL=compare-commits.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare-commits.d.mts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"compare-commits.d.mts","names":[],"sources":["../../src/actions/compare-commits.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAyB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"compare-commits.mjs","names":[],"sources":["../../src/actions/compare-commits.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphCompareCommitsInput,\n typeof SourcegraphCompareCommitsOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,MAAM,qCAAqC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-commit-details.cjs","names":["z","action"],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphGetCommitDetailsInput,\n typeof SourcegraphGetCommitDetailsOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-commit-details.d.ts
|
|
@@ -28,24 +30,7 @@ declare const SourcegraphGetCommitDetailsOutput: z.ZodObject<{
|
|
|
28
30
|
}, z.core.$loose>>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const sourcegraphGetCommitDetails:
|
|
32
|
-
rev: string;
|
|
33
|
-
repo: string;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
full: z.ZodString;
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
full: z.ZodString;
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const sourcegraphGetCommitDetails: AppAction<typeof SourcegraphGetCommitDetailsInput, typeof SourcegraphGetCommitDetailsOutput, typeof sourcegraph.credential>;
|
|
49
34
|
//#endregion
|
|
50
35
|
export { sourcegraphGetCommitDetails };
|
|
51
36
|
//# sourceMappingURL=get-commit-details.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commit-details.d.cts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-commit-details.d.cts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cA8BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-commit-details.d.ts
|
|
@@ -28,24 +30,7 @@ declare const SourcegraphGetCommitDetailsOutput: z.ZodObject<{
|
|
|
28
30
|
}, z.core.$loose>>>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const sourcegraphGetCommitDetails:
|
|
32
|
-
rev: string;
|
|
33
|
-
repo: string;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
full: z.ZodString;
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
full: z.ZodString;
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const sourcegraphGetCommitDetails: AppAction<typeof SourcegraphGetCommitDetailsInput, typeof SourcegraphGetCommitDetailsOutput, typeof sourcegraph.credential>;
|
|
49
34
|
//#endregion
|
|
50
35
|
export { sourcegraphGetCommitDetails };
|
|
51
36
|
//# sourceMappingURL=get-commit-details.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-commit-details.d.mts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-commit-details.d.mts","names":[],"sources":["../../src/actions/get-commit-details.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cA8BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-commit-details.mjs","names":[],"sources":["../../src/actions/get-commit-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphGetCommitDetailsInput,\n typeof SourcegraphGetCommitDetailsOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+C,EAAE,OAAO,EACxD,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphGetCurrentUserInput,\n typeof SourcegraphGetCurrentUserOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-current-user.d.ts
|
|
@@ -9,21 +11,7 @@ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
|
|
|
9
11
|
}, z.core.$loose>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sourcegraphGetCurrentUser:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
full: z.ZodString;
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
full: z.ZodString;
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const sourcegraphGetCurrentUser: AppAction<typeof SourcegraphGetCurrentUserInput, typeof SourcegraphGetCurrentUserOutput, typeof sourcegraph.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { sourcegraphGetCurrentUser };
|
|
29
17
|
//# sourceMappingURL=get-current-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-current-user.d.ts
|
|
@@ -9,21 +11,7 @@ declare const SourcegraphGetCurrentUserOutput: z.ZodObject<{
|
|
|
9
11
|
}, z.core.$loose>>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sourcegraphGetCurrentUser:
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
full: z.ZodString;
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
full: z.ZodString;
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const sourcegraphGetCurrentUser: AppAction<typeof SourcegraphGetCurrentUserInput, typeof SourcegraphGetCurrentUserOutput, typeof sourcegraph.credential>;
|
|
27
15
|
//#endregion
|
|
28
16
|
export { sourcegraphGetCurrentUser };
|
|
29
17
|
//# sourceMappingURL=get-current-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAI/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const 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: AppAction<\n typeof SourcegraphGetCurrentUserInput,\n typeof SourcegraphGetCurrentUserOutput,\n typeof sourcegraph.credential\n> = 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":";;;;AAMA,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,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6C,EAAE,OAAO,EACtD,MAAM,2DAA2D,SAAS,EAC5E,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-file-contents.cjs","names":["z","action"],"sources":["../../src/actions/get-file-contents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sourcegraph } from \"../app\";\n\nexport const SourcegraphGetFileContentsInput = z.object({\n file_path: z.string().describe(\"Path to the file in the repository, relative to the root, e.g., 'README.md'.\"),\n repo_name: z.string().describe(\"Full repository name, including host and path, e.g., 'github.com/uber/react-map-gl'.\"),\n}).describe(\"Request model for fetching file contents from a repository's default branch.\");\nexport const SourcegraphGetFileContentsOutput = z.object({\n content: z.string().describe(\"The raw text contents of the specified file on the repository's default branch.\").nullable(),\n}).passthrough().describe(\"Response model containing the content of the file.\");\n\nexport const sourcegraphGetFileContents: AppAction<\n typeof SourcegraphGetFileContentsInput,\n typeof SourcegraphGetFileContentsOutput,\n typeof sourcegraph.credential\n> = action(\"SOURCEGRAPH_GET_FILE_CONTENTS\", {\n slug: \"sourcegraph-get-file-contents\",\n name: \"Get File Contents\",\n description: \"Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.\",\n input: SourcegraphGetFileContentsInput,\n output: SourcegraphGetFileContentsOutput,\n});\n"],"mappings":";;;;AAMA,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,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-file-contents.d.ts
|
|
@@ -8,24 +10,7 @@ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
|
|
|
8
10
|
declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
|
|
9
11
|
content: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const sourcegraphGetFileContents:
|
|
12
|
-
file_path: string;
|
|
13
|
-
repo_name: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
full: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
full: z.ZodString;
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const sourcegraphGetFileContents: AppAction<typeof SourcegraphGetFileContentsInput, typeof SourcegraphGetFileContentsOutput, typeof sourcegraph.credential>;
|
|
29
14
|
//#endregion
|
|
30
15
|
export { sourcegraphGetFileContents };
|
|
31
16
|
//# sourceMappingURL=get-file-contents.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-contents.d.cts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-file-contents.d.cts","names":[],"sources":["../../src/actions/get-file-contents.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,WAAA,CAAY,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sourcegraph } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-file-contents.d.ts
|
|
@@ -8,24 +10,7 @@ declare const SourcegraphGetFileContentsInput: z.ZodObject<{
|
|
|
8
10
|
declare const SourcegraphGetFileContentsOutput: z.ZodObject<{
|
|
9
11
|
content: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const sourcegraphGetFileContents:
|
|
12
|
-
file_path: string;
|
|
13
|
-
repo_name: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
full: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sourcegraph", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
full: z.ZodString;
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const sourcegraphGetFileContents: AppAction<typeof SourcegraphGetFileContentsInput, typeof SourcegraphGetFileContentsOutput, typeof sourcegraph.credential>;
|
|
29
14
|
//#endregion
|
|
30
15
|
export { sourcegraphGetFileContents };
|
|
31
16
|
//# sourceMappingURL=get-file-contents.d.mts.map
|