Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PicoCreator/smol-dev-js
/ functions
Functions
31 in github.com/PicoCreator/smol-dev-js
⨍
Functions
31
◇
Types & classes
2
↓ 32 callers
Function
getPromptBlock
* 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 callers
Function
normalizeString
* Ensure a string output, and if the input is a function, execute it expecting a string output
src/cli/OutputHandler.js:37
↓ 4 callers
Function
cstyle_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 callers
Method
standard
* Standard output log, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:384
↓ 4 callers
Method
standardRed
* Standard output log varient for red color, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:420
↓ 3 callers
Method
fatalError
* 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 callers
Function
fixedWidthString
* Clamp the string for CLI output * @param {String} input * @param {int} len * * @return normalized string
src/cli/OutputHandler.js:81
↓ 2 callers
Method
cliArgumentError
* 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 callers
Function
computeActionCost
(rObj)
src/util/computeTokenCost.js:92
↓ 2 callers
Function
dashLineString
* Return a line of dashes "-" of a fixed length * @param {int} len * * @return normalized string
src/cli/OutputHandler.js:113
↓ 2 callers
Function
isFunction
(functionToCheck)
src/cli/OutputHandler.js:23
↓ 2 callers
Method
standardTableRow
* 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 callers
Function
cstyle_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 callers
Function
isJavascriptError
(mainError)
src/cli/OutputHandler.js:30
↓ 1 callers
Function
nestedFileObjToStrFormat
* Utility function, used to convert nested file object to string format * @param {Object} nestedFileObj * @param {String} prefixTab * @returns
src/util/scanDirectory.js:10
↓ 1 callers
Function
normalizeObject
* Ensure an object output, and if the input is a function, execute it expecting an object output
src/cli/OutputHandler.js:64
↓ 1 callers
Method
standardGreen
* Standard output log varient for green color, enabled unless --silent is used * * @param {String|Function} log to output
src/cli/OutputHandler.js:402
↓ 1 callers
Method
standardTable
* 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 callers
Method
standardTableHeader
* 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 callers
Function
updateSpecSrcFilePair
* Update the source code file or spec file based on the other file.
src/ai/seq/updateSpecSrcFilePair.js:14
↓ 1 callers
Function
xml_minify
* Handle minification of XML code * * @param {string} inData - The code to minify * * @returns {string} The minified code
src/prompt/filter/simpleAndSafeMinify.js:31
Method
argsSetup_output
* Setup the required arguments for sywac to process output configurations * * @param {sywac} main
src/cli/OutputHandler.js:158
Method
constructor
* Constructor for the OutputHandler
src/cli/OutputHandler.js:142
Method
debug
* 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
Method
debugBlock
* 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
Method
errorMessage
* Output an error message, without exiting * * @param {String} mainError message to send
src/cli/OutputHandler.js:226
Method
ifStandard
* Triggers the provided function, if standard output is enabled * Else does nothing. * * @param {Function} func to execute
src/cli/OutputHandler.js:370
Method
json
* JSON output, to be handled if the respective mode is enabled * * @param {Object} data to json output
src/cli/OutputHandler.js:689
Method
table
* 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
Method
tableHeader
* 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
Method
tableRow
* 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