gaunt-sloth-assistant
Version:
> ⚠️ **`gaunt-sloth-assistant` has been renamed to [`gaunt-sloth`](https://www.npmjs.com/package/gaunt-sloth).** > The `1.5.x` series is the final release under the old name — active development continues under > the new package. To switch: > > ```bash >
24 lines (23 loc) • 1.35 kB
TypeScript
import type { GthConfig } from '@gaunt-sloth/core/config.js';
/**
* Requirements providers. Aliases are mapped to actual package paths.
*/
export declare const REQUIREMENTS_PROVIDERS: {
readonly 'jira-legacy': "@gaunt-sloth/review/sources/jiraIssueLegacySource.js";
readonly jira: "@gaunt-sloth/review/sources/jiraIssueSource.js";
readonly github: "@gaunt-sloth/review/sources/ghIssueSource.js";
readonly text: "@gaunt-sloth/review/sources/textSource.js";
readonly file: "@gaunt-sloth/review/sources/fileSource.js";
};
export type RequirementsProviderType = keyof typeof REQUIREMENTS_PROVIDERS;
/**
* Content providers. Aliases are mapped to actual package paths.
*/
export declare const CONTENT_PROVIDERS: {
readonly github: "@gaunt-sloth/review/sources/ghPrDiffSource.js";
readonly text: "@gaunt-sloth/review/sources/textSource.js";
readonly file: "@gaunt-sloth/review/sources/fileSource.js";
};
export type ContentProviderType = keyof typeof CONTENT_PROVIDERS;
export declare function getRequirementsFromProvider(requirementsProvider: RequirementsProviderType | undefined, requirementsId: string | undefined, config: GthConfig): Promise<string>;
export declare function getContentFromProvider(contentProvider: ContentProviderType | undefined, contentId: string | undefined, config: GthConfig): Promise<string>;