MCPcopy Create free account
hub / github.com/neomjs/neo / leafDefaultSortKey

Function leafDefaultSortKey

ai/scripts/setup/initServerConfigs.mjs:219–221  ·  view source on GitHub ↗

* Builds a stable sort key for projected leaf-default descriptors. * * @param {{key: String, env: String, type: String, default: String}} leaf Leaf-default descriptor. * @returns {String}

(leaf)

Source from the content-addressed store, hash-verified

217 * @returns {String}
218 */
219function leafDefaultSortKey(leaf) {
220 return `${leafDefaultIdentity(leaf)}:${leaf.default}`
221}
222
223/**
224 * Projects env-bound `key: leaf(default, 'ENV', 'type')` calls from config source text.

Callers 1

projectLeafDefaultsFunction · 0.85

Calls 1

leafDefaultIdentityFunction · 0.85

Tested by

no test coverage detected