MCPcopy Create free account
hub / github.com/error311/FileRise / cloneContextPacket

Function cloneContextPacket

public/js/aiChat.js:98–107  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

96}
97
98function cloneContextPacket(value) {
99 if (!value || typeof value !== 'object' || Array.isArray(value)) {
100 return null;
101 }
102 try {
103 return JSON.parse(JSON.stringify(value));
104 } catch (e) {
105 return null;
106 }
107}
108
109function normalizeFolderPath(value) {
110 let v = String(value || '').trim();

Callers 1

createChatUiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected