MCPcopy Create free account

hub / github.com/PicoCreator/smol-dev-js / functions

Functions31 in github.com/PicoCreator/smol-dev-js

↓ 32 callersFunctiongetPromptBlock
* Wrap the prompt data within a block delimiter, * adapted according to the input data, to avoid accidental "block escape" * * @param {String} lab
src/prompt/builder/getPromptBlock.js:11
↓ 6 callersFunctionnormalizeString
* Ensure a string output, and if the input is a function, execute it expecting a string output
src/cli/OutputHandler.js:37
↓ 4 callersFunctioncstyle_simpleCodeReduction
* Perform the reduction of whitespaces safely, * We can assume there is no "strings" or "comments" in the data * @param {string} inData * @returns
src/prompt/filter/simpleAndSafeMinify.js:50
↓ 4 callersMethodstandard
* Standard output log, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:384
↓ 4 callersMethodstandardRed
* Standard output log varient for red color, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:420
↓ 3 callersMethodfatalError
* Generic handler error, which would terminate the CLI * * @param {String|Function} mainError message to send * @param {Error} errObj to stack
src/cli/OutputHandler.js:255
↓ 3 callersFunctionfixedWidthString
* Clamp the string for CLI output * @param {String} input * @param {int} len * * @return normalized string
src/cli/OutputHandler.js:81
↓ 2 callersMethodcliArgumentError
* argument handling error, * This is used for exceptions thrown while processing and validating command line arguments * * Note that argument e
src/cli/OutputHandler.js:243
↓ 2 callersFunctioncomputeActionCost
(rObj)
src/util/computeTokenCost.js:92
↓ 2 callersFunctiondashLineString
* Return a line of dashes "-" of a fixed length * @param {int} len * * @return normalized string
src/cli/OutputHandler.js:113
↓ 2 callersFunctionisFunction
(functionToCheck)
src/cli/OutputHandler.js:23
↓ 2 callersMethodstandardTableRow
* Standard output log, in a row format, this is used together with standardHeader * * This is enabled if either standard, or table mode is enable
src/cli/OutputHandler.js:650
↓ 1 callersFunctioncstyle_minify
* Handle minification of cstyle code * * @param {string} inData - The code to minify * * @returns {string} The minified code
src/prompt/filter/simpleAndSafeMinify.js:83
↓ 1 callersFunctionisJavascriptError
(mainError)
src/cli/OutputHandler.js:30
↓ 1 callersFunctionnestedFileObjToStrFormat
* Utility function, used to convert nested file object to string format * @param {Object} nestedFileObj * @param {String} prefixTab * @returns
src/util/scanDirectory.js:10
↓ 1 callersFunctionnormalizeObject
* Ensure an object output, and if the input is a function, execute it expecting an object output
src/cli/OutputHandler.js:64
↓ 1 callersMethodstandardGreen
* Standard output log varient for green color, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:402
↓ 1 callersMethodstandardTable
* Standard output log, in a table format * * This is enabled if either standard, or table mode is enabled * * @param {Array<Object>} table
src/cli/OutputHandler.js:499
↓ 1 callersMethodstandardTableHeader
* Standard output log, in a header format * * This is enabled if either standard, or table mode is enabled * * @param {Array<String>} heade
src/cli/OutputHandler.js:611
↓ 1 callersFunctionupdateSpecSrcFilePair
* Update the source code file or spec file based on the other file.
src/ai/seq/updateSpecSrcFilePair.js:14
↓ 1 callersFunctionxml_minify
* Handle minification of XML code * * @param {string} inData - The code to minify * * @returns {string} The minified code
src/prompt/filter/simpleAndSafeMinify.js:31
MethodargsSetup_output
* Setup the required arguments for sywac to process output configurations * * @param {sywac} main
src/cli/OutputHandler.js:158
Methodconstructor
* Constructor for the OutputHandler
src/cli/OutputHandler.js:142
Methoddebug
* Output the debug/trace log, only if the respective --trace flag is enabled * * @param {String|Function} log to output * @param {Error} errObj
src/cli/OutputHandler.js:319
MethoddebugBlock
* Output the debug/trace log, only if the respective --trace flag is enabled * * @param {String|Function} log to output, inside a "---" line bloc
src/cli/OutputHandler.js:342
MethoderrorMessage
* Output an error message, without exiting * * @param {String} mainError message to send
src/cli/OutputHandler.js:226
MethodifStandard
* Triggers the provided function, if standard output is enabled * Else does nothing. * * @param {Function} func to execute
src/cli/OutputHandler.js:370
Methodjson
* JSON output, to be handled if the respective mode is enabled * * @param {Object} data to json output
src/cli/OutputHandler.js:689
Methodtable
* Table output format * * This is enabled only when table mode is enabled * * @param {Array<Object>} table collection of objects, to output
src/cli/OutputHandler.js:446
MethodtableHeader
* Table header output format * * This is enabled only when table mode is enabled * * @param {Array<String>} headerArray containing header na
src/cli/OutputHandler.js:462
MethodtableRow
* Table row output format * * This is enabled only when table mode is enabled * * @param {Array<String>} dataArray * @param {Array<Int>}
src/cli/OutputHandler.js:478