MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / toPayload

Function toPayload

static/js/utils.js:535–544  ·  view source on GitHub ↗
(filters = {}, mapping = {})

Source from the content-addressed store, hash-verified

533 },
534
535 toPayload(filters = {}, mapping = {}) {
536 const normalized = this.normalize(filters);
537 const payload = {};
538 Object.entries(normalized).forEach(([key, value]) => {
539 const targetKey = String(mapping[key] || key);
540 if (!targetKey) return;
541 payload[targetKey] = value;
542 });
543 return payload;
544 },
545
546 pickSort(value, allowed = [], fallback = '') {
547 const candidate = String(value || '').trim();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected