MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getPrompt

Function getPrompt

out/cli.cjs:84988–84997  ·  view source on GitHub ↗
(ruleName, ruleConfig, prompt)

Source from the content-addressed store, hash-verified

84986 "subject-max-length": (applicable, value) => llmReadableRules.maxLengthRule("subject", applicable, value),
84987 "subject-min-length": (applicable, value) => llmReadableRules.minLengthRule("subject", applicable, value),
84988 "type-case": (applicable, value) => llmReadableRules.caseRule("type", applicable, value),
84989 "type-empty": (applicable) => llmReadableRules.emptyRule("type", applicable, void 0),
84990 "type-enum": (applicable, value, prompt) => llmReadableRules.enumTypeRule("type", applicable, value, prompt),
84991 "type-max-length": (applicable, value) => llmReadableRules.maxLengthRule("type", applicable, value),
84992 "type-min-length": (applicable, value) => llmReadableRules.minLengthRule("type", applicable, value)
84993};
84994var getPrompt = (ruleName, ruleConfig, prompt) => {
84995 const [severity, applicable, value] = ruleConfig;
84996 if (severity === import_types.RuleConfigSeverity.Disabled) return null;
84997 const promptFn = rulesPrompts[ruleName];
84998 if (promptFn) {
84999 return promptFn(applicable, value, prompt);
85000 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected