MCPcopy Create free account

hub / github.com/awesome-opencode/awesome-opencode / functions

Functions24 in github.com/awesome-opencode/awesome-opencode

↓ 3 callersFunctionformatValidationErrors
* Format validation errors for display * @param {object} result - Result from validateEntry * @returns {string} Formatted error message
scripts/utils/validation.js:64
↓ 3 callersFunctionlog
(...args)
scripts/export-json.js:112
↓ 3 callersFunctionvalidateEntry
* Validate an entry against the schema * @param {object} data - Parsed YAML data * @param {string} filePath - File path for error messages * @retur
scripts/utils/validation.js:36
↓ 2 callersFunctionreadYamlDir
* Read all YAML files from a directory * @param {string} dirPath - Directory containing YAML files * @returns {Promise<object[]>} Array of parsed YA
scripts/utils/yaml.js:29
↓ 2 callersFunctionsanitizeArray
(value, fallback)
scripts/export-json.js:35
↓ 1 callersFunctionbuildProductId
(entry)
scripts/export-json.js:25
↓ 1 callersFunctiongenerateCategorySection
* Generate HTML for a single category * @param {string} categoryName - Category directory name * @returns {Promise<string>} Generated HTML for all e
scripts/generate-readme.js:32
↓ 1 callersFunctiongenerateEntryHtml
* Generate HTML for a single entry * @param {object} entry - Parsed YAML data * @returns {string} HTML string for the details element
scripts/utils/template.js:34
↓ 1 callersFunctiongetAllYamlFiles
* Get all YAML files in the data directory * @returns {string[]} Array of file paths
scripts/validate.js:20
↓ 1 callersFunctiongetValidator
* Get the compiled validation function * @returns {Function} AJV validate function
scripts/utils/validation.js:21
↓ 1 callersFunctionloadEntries
()
scripts/export-json.js:75
↓ 1 callersFunctionloadYamlFile
* Load and parse a YAML file * @param {string} filePath - Path to the YAML file * @returns {object|null} Parsed YAML object or null on error
scripts/validate.js:30
↓ 1 callersFunctionmain
* Main function to generate the README
scripts/generate-readme.js:82
↓ 1 callersFunctionmain
* Main validation function
scripts/validate.js:64
↓ 1 callersFunctionmain
()
scripts/export-json.js:109
↓ 1 callersFunctionmapEntry
(entry, category)
scripts/export-json.js:42
↓ 1 callersFunctionparseArgs
(args)
scripts/export-json.js:16
↓ 1 callersFunctionreadTemplate
* Read the README template * @returns {string} Template content
scripts/utils/template.js:12
↓ 1 callersFunctionreadYamlFile
* Read and parse a single YAML file * @param {string} filePath - Path to YAML file * @returns {object} Parsed YAML object
scripts/utils/yaml.js:15
↓ 1 callersFunctionreplacePlaceholder
* Replace a placeholder in the template * @param {string} template - Template content * @param {string} placeholder - Placeholder name (without brac
scripts/utils/template.js:24
↓ 1 callersFunctionslugify
* Convert a name to a filename-safe slug * @param {string} name - Entry name * @returns {string} Slugified filename (without extension)
scripts/utils/yaml.js:45
↓ 1 callersFunctionstripUndefined
(data)
scripts/export-json.js:65
↓ 1 callersFunctionvalidateFile
* Validate a single file * @param {string} filePath - Path to the YAML file * @returns {boolean} True if valid, false otherwise
scripts/validate.js:45
↓ 1 callersFunctionwriteReadme
* Write the final README * @param {string} content - Generated README content
scripts/utils/template.js:75