MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / formatConfigKeyPath

Function formatConfigKeyPath

src/providers/codex/app_client.ts:2651–2661  ·  view source on GitHub ↗
(segments: string[])

Source from the content-addressed store, hash-verified

2649}
2650
2651function formatConfigKeyPath(segments: string[]): string {
2652 return segments
2653 .map((segment) => {
2654 const value = String(segment ?? '').trim();
2655 if (/^[A-Za-z0-9_]+$/u.test(value)) {
2656 return value;
2657 }
2658 return `"${value.replace(/\\/gu, '\\\\').replace(/"/gu, '\\"')}"`;
2659 })
2660 .join('.');
2661}
2662
2663function serializeCollaborationMode({ collaborationMode, model, effort, developerInstructions = '' }: any) {
2664 if (!collaborationMode) {

Callers 2

setAppEnabledMethod · 0.70
setMcpServerEnabledMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected