MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / createRuleId

Function createRuleId

src/services/rules/rules.ts:387–389  ·  view source on GitHub ↗
(scope: RuleScope, kind: RuleKind, modeSlug: string | undefined, relativePath: string)

Source from the content-addressed store, hash-verified

385}
386
387function createRuleId(scope: RuleScope, kind: RuleKind, modeSlug: string | undefined, relativePath: string): string {
388 return [scope, kind, modeSlug ?? "generic", relativePath].join(":")
389}
390
391function createRuleTemplate(fileName: string, input: CreateRuleInput): string {
392 const title = path.basename(fileName, ".md")

Callers 1

scanRuleDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected