MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / saveConfig

Function saveConfig

src/pack-config.ts:138–142  ·  view source on GitHub ↗
(workDir: string, config: PackConfig)

Source from the content-addressed store, hash-verified

136}
137
138export function saveConfig(workDir: string, config: PackConfig): void {
139 const filePath = getPackPath(workDir);
140 validateConfigShape(config, filePath);
141 fs.writeFileSync(filePath, JSON.stringify(config, null, 2) + "\n", "utf-8");
142}
143
144export function configExists(workDir: string): boolean {
145 return fs.existsSync(getPackPath(workDir));

Callers 8

removeSkillFunction · 0.85
zipCommandFunction · 0.85
runCommandFunction · 0.85
initFromConfigFunction · 0.85
interactiveCreateFunction · 0.85
createPackFunction · 0.85
zip.test.tsFile · 0.85

Calls 2

getPackPathFunction · 0.85
validateConfigShapeFunction · 0.85

Tested by 1

createPackFunction · 0.68