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

Function refreshRules

src/core/webview/rulesMessageHandler.ts:120–125  ·  view source on GitHub ↗
(provider: ClineProvider, cwd: string)

Source from the content-addressed store, hash-verified

118}
119
120async function refreshRules(provider: ClineProvider, cwd: string): Promise<RuleMetadata[]> {
121 const modes = await provider.getModes()
122 const rules = await getRules(cwd, { modes })
123 await provider.postMessageToWebview({ type: "rules", rules })
124 return rules
125}
126
127function parseCreateRuleInput(message: WebviewMessage): CreateRuleInput {
128 const values = message.values ?? {}

Callers 2

handleCreateRuleFunction · 0.85
handleDeleteRuleFunction · 0.85

Calls 3

getRulesFunction · 0.90
postMessageToWebviewMethod · 0.80
getModesMethod · 0.65

Tested by

no test coverage detected