MCPcopy Index your code
hub / github.com/continuedev/continue / getConfigYamlRules

Function getConfigYamlRules

extensions/cli/src/systemMessage.ts:63–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61</context>`;
62
63async function getConfigYamlRules(): Promise<string[]> {
64 const configState = await serviceContainer.get<ConfigServiceState>(
65 SERVICE_NAMES.CONFIG,
66 );
67 if (configState.config?.rules) {
68 // Extract systemMessage from the config if it exists
69 const rules = configState.config.rules;
70 return rules
71 .map((rule) => {
72 return typeof rule === "string" ? rule : rule?.rule;
73 })
74 .filter((rule): rule is string => !!rule);
75 }
76
77 return [];
78}
79
80function getRuleNameFromPath(filePath: string): string {
81 const segments = filePath.split(/[/\\]/);

Callers 1

constructSystemMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected