@keystrokehq/sourcegraph 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.cjs +3 -3
- package/dist/actions/check-site-settings-edit-permission.cjs.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.cts +9 -3
- package/dist/actions/check-site-settings-edit-permission.d.cts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.d.mts +9 -3
- package/dist/actions/check-site-settings-edit-permission.d.mts.map +1 -1
- package/dist/actions/check-site-settings-edit-permission.mjs +3 -3
- package/dist/actions/check-site-settings-edit-permission.mjs.map +1 -1
- package/dist/actions/compare-commits.cjs +7 -7
- package/dist/actions/compare-commits.cjs.map +1 -1
- package/dist/actions/compare-commits.d.cts +27 -3
- package/dist/actions/compare-commits.d.cts.map +1 -1
- package/dist/actions/compare-commits.d.mts +27 -3
- package/dist/actions/compare-commits.d.mts.map +1 -1
- package/dist/actions/compare-commits.mjs +7 -7
- package/dist/actions/compare-commits.mjs.map +1 -1
- package/dist/actions/get-commit-details.cjs +15 -15
- package/dist/actions/get-commit-details.cjs.map +1 -1
- package/dist/actions/get-commit-details.d.cts +31 -3
- package/dist/actions/get-commit-details.d.cts.map +1 -1
- package/dist/actions/get-commit-details.d.mts +31 -3
- package/dist/actions/get-commit-details.d.mts.map +1 -1
- package/dist/actions/get-commit-details.mjs +15 -15
- package/dist/actions/get-commit-details.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +3 -3
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +9 -3
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +9 -3
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +3 -3
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-file-contents.cjs +1 -1
- package/dist/actions/get-file-contents.cjs.map +1 -1
- package/dist/actions/get-file-contents.d.cts +11 -3
- package/dist/actions/get-file-contents.d.cts.map +1 -1
- package/dist/actions/get-file-contents.d.mts +11 -3
- package/dist/actions/get-file-contents.d.mts.map +1 -1
- package/dist/actions/get-file-contents.mjs +1 -1
- package/dist/actions/get-file-contents.mjs.map +1 -1
- package/dist/actions/list-repositories.cjs +6 -6
- package/dist/actions/list-repositories.cjs.map +1 -1
- package/dist/actions/list-repositories.d.cts +19 -3
- package/dist/actions/list-repositories.d.cts.map +1 -1
- package/dist/actions/list-repositories.d.mts +19 -3
- package/dist/actions/list-repositories.d.mts.map +1 -1
- package/dist/actions/list-repositories.mjs +6 -6
- package/dist/actions/list-repositories.mjs.map +1 -1
- package/dist/actions/list-repository-files.cjs +5 -5
- package/dist/actions/list-repository-files.cjs.map +1 -1
- package/dist/actions/list-repository-files.d.cts +19 -3
- package/dist/actions/list-repository-files.d.cts.map +1 -1
- package/dist/actions/list-repository-files.d.mts +19 -3
- package/dist/actions/list-repository-files.d.mts.map +1 -1
- package/dist/actions/list-repository-files.mjs +5 -5
- package/dist/actions/list-repository-files.mjs.map +1 -1
- package/dist/actions/list-repository-languages.cjs +3 -3
- package/dist/actions/list-repository-languages.cjs.map +1 -1
- package/dist/actions/list-repository-languages.d.cts +14 -3
- package/dist/actions/list-repository-languages.d.cts.map +1 -1
- package/dist/actions/list-repository-languages.d.mts +14 -3
- package/dist/actions/list-repository-languages.d.mts.map +1 -1
- package/dist/actions/list-repository-languages.mjs +3 -3
- package/dist/actions/list-repository-languages.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-repository-languages.d.ts
|
|
4
|
-
declare const SourcegraphListRepositoryLanguagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SourcegraphListRepositoryLanguagesInput: z.ZodObject<{
|
|
5
|
+
repoName: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SourcegraphListRepositoryLanguagesOutput: z.ZodObject<{
|
|
8
|
+
repository: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
+
commit: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
languages: z.ZodArray<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
declare const sourcegraphListRepositoryLanguages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
repoName: string;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { sourcegraphListRepositoryLanguages };
|
|
9
20
|
//# sourceMappingURL=list-repository-languages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-languages.d.mts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"list-repository-languages.d.mts","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAUvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -2,17 +2,17 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/list-repository-languages.ts
|
|
4
4
|
const SourcegraphListRepositoryLanguagesInput = z.object({ repoName: z.string().describe("Full name of the repository (e.g., 'github.com/gorilla/mux').") }).describe("Request model for listing the languages of a repository.");
|
|
5
|
-
const SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({ languages: z.array(z.string()).describe("All languages used in the repository's HEAD commit.") }).describe("All languages present in the HEAD commit of the repository.");
|
|
5
|
+
const SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({ languages: z.array(z.string()).describe("All languages used in the repository's HEAD commit.") }).passthrough().describe("All languages present in the HEAD commit of the repository.");
|
|
6
6
|
const SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({
|
|
7
7
|
commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),
|
|
8
8
|
language: z.string().describe("Primary language of the repository; null if unset.").nullable().optional()
|
|
9
|
-
}).describe("Repository language information.");
|
|
9
|
+
}).passthrough().describe("Repository language information.");
|
|
10
10
|
const sourcegraphListRepositoryLanguages = action("SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES", {
|
|
11
11
|
slug: "sourcegraph-list-repository-languages",
|
|
12
12
|
name: "List repository languages",
|
|
13
13
|
description: "Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.",
|
|
14
14
|
input: SourcegraphListRepositoryLanguagesInput,
|
|
15
|
-
output: z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).describe("Response model for repository languages.")
|
|
15
|
+
output: z.object({ repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional() }).passthrough().describe("Response model for repository languages.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { sourcegraphListRepositoryLanguages };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-languages.mjs","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput
|
|
1
|
+
{"version":3,"file":"list-repository-languages.mjs","names":[],"sources":["../../src/actions/list-repository-languages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SourcegraphListRepositoryLanguagesInput = z.object({\n repoName: z.string().describe(\"Full name of the repository (e.g., 'github.com/gorilla/mux').\"),\n}).describe(\"Request model for listing the languages of a repository.\");\nconst SourcegraphListRepositoryLanguages_CommitDataSchema = z.object({\n languages: z.array(z.string()).describe(\"All languages used in the repository's HEAD commit.\"),\n}).passthrough().describe(\"All languages present in the HEAD commit of the repository.\");\nconst SourcegraphListRepositoryLanguages_RepositoryDataSchema = z.object({\n commit: SourcegraphListRepositoryLanguages_CommitDataSchema.nullable(),\n language: z.string().describe(\"Primary language of the repository; null if unset.\").nullable().optional(),\n}).passthrough().describe(\"Repository language information.\");\nexport const SourcegraphListRepositoryLanguagesOutput = z.object({\n repository: SourcegraphListRepositoryLanguages_RepositoryDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for repository languages.\");\n\nexport const sourcegraphListRepositoryLanguages = action(\"SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES\", {\n slug: \"sourcegraph-list-repository-languages\",\n name: \"List repository languages\",\n description: \"Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.\",\n input: SourcegraphListRepositoryLanguagesInput,\n output: SourcegraphListRepositoryLanguagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO,EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sDAAsD,EAAE,OAAO,EACnE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,0DAA0D,EAAE,OAAO;CACvE,QAAQ,oDAAoD,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,YAAY,wDAAwD,SAAS,CAAC,CAAC,SAAS,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,20 @@ const sourcegraphCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/sourcegraph",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Sourcegraph Instance URL",
|
|
14
|
+
"description": "The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.",
|
|
15
|
+
"default": "https://sourcegraph.com"
|
|
16
|
+
},
|
|
17
|
+
"access_token": {
|
|
18
|
+
"label": "Access Token",
|
|
19
|
+
"secret": true,
|
|
20
|
+
"description": "The personal access token generated from your Sourcegraph user settings."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"credentialScheme": "API_KEY"
|
|
11
24
|
};
|
|
12
25
|
//#endregion
|
|
13
26
|
exports.sourcegraphCatalog = sourcegraphCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Sourcegraph Instance URL\",\n \"description\": \"The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.\",\n \"default\": \"https://sourcegraph.com\"\n },\n \"access_token\": {\n \"label\": \"Access Token\",\n \"secret\": true,\n \"description\": \"The personal access token generated from your Sourcegraph user settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,19 @@ declare const sourcegraphCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/sourcegraph";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Sourcegraph Instance URL";
|
|
14
|
+
readonly description: "The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.";
|
|
15
|
+
readonly default: "https://sourcegraph.com";
|
|
16
|
+
};
|
|
17
|
+
readonly access_token: {
|
|
18
|
+
readonly label: "Access Token";
|
|
19
|
+
readonly secret: true;
|
|
20
|
+
readonly description: "The personal access token generated from your Sourcegraph user settings.";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly credentialScheme: "API_KEY";
|
|
11
24
|
};
|
|
12
25
|
//#endregion
|
|
13
26
|
export { sourcegraphCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,19 @@ declare const sourcegraphCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/sourcegraph";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Sourcegraph Instance URL";
|
|
14
|
+
readonly description: "The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.";
|
|
15
|
+
readonly default: "https://sourcegraph.com";
|
|
16
|
+
};
|
|
17
|
+
readonly access_token: {
|
|
18
|
+
readonly label: "Access Token";
|
|
19
|
+
readonly secret: true;
|
|
20
|
+
readonly description: "The personal access token generated from your Sourcegraph user settings.";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly credentialScheme: "API_KEY";
|
|
11
24
|
};
|
|
12
25
|
//#endregion
|
|
13
26
|
export { sourcegraphCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,20 @@ const sourcegraphCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/sourcegraph",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Sourcegraph Instance URL",
|
|
14
|
+
"description": "The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.",
|
|
15
|
+
"default": "https://sourcegraph.com"
|
|
16
|
+
},
|
|
17
|
+
"access_token": {
|
|
18
|
+
"label": "Access Token",
|
|
19
|
+
"secret": true,
|
|
20
|
+
"description": "The personal access token generated from your Sourcegraph user settings."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"credentialScheme": "API_KEY"
|
|
11
24
|
};
|
|
12
25
|
//#endregion
|
|
13
26
|
export { sourcegraphCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sourcegraphCatalog = {\n \"slug\": \"sourcegraph\",\n \"name\": \"Sourcegraph\",\n \"description\": \"Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sourcegraph\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Sourcegraph Instance URL\",\n \"description\": \"The base URL of your Sourcegraph instance (with protocol), e.g., 'https://sourcegraph.example.com' or 'https://sourcegraph.com'.\",\n \"default\": \"https://sourcegraph.com\"\n },\n \"access_token\": {\n \"label\": \"Access Token\",\n \"secret\": true,\n \"description\": \"The personal access token generated from your Sourcegraph user settings.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,qBAAqB;CAChC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/sourcegraph",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|