MCPcopy Create free account
hub / github.com/cremich/promptz / createEmptyLibrary

Function createEmptyLibrary

scripts/generate-library-data.ts:727–737  ·  view source on GitHub ↗

* Create an empty library structure * Replicates logic from lib/content-service.ts

(name: string, path: string)

Source from the content-addressed store, hash-verified

725 * Replicates logic from lib/content-service.ts
726 */
727function createEmptyLibrary(name: string, path: string): Library {
728 return {
729 name,
730 path,
731 prompts: [],
732 agents: [],
733 powers: [],
734 steering: [],
735 hooks: []
736 }
737}
738
739// Execute the main function
740if (require.main === module) {

Callers 6

generateLibraryDataFunction · 0.85
readPromptzLibraryFunction · 0.85
readKiroLibraryFunction · 0.85
readProductTeamsLibraryFunction · 0.85
readGenaiStartupsLibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected