MCPcopy Index your code
hub / github.com/codeaashu/claude-code / schedulePush

Function schedulePush

src/services/teamMemorySync/watcher.ts:132–145  ·  view source on GitHub ↗

* Debounced push: waits for writes to settle, then pushes once.

()

Source from the content-addressed store, hash-verified

130 * Debounced push: waits for writes to settle, then pushes once.
131 */
132function schedulePush(): void {
133 if (pushSuppressedReason !== null) return
134 hasPendingChanges = true
135 if (debounceTimer) {
136 clearTimeout(debounceTimer)
137 }
138 debounceTimer = setTimeout(() => {
139 if (pushInProgress) {
140 schedulePush()
141 return
142 }
143 currentPushPromise = executePush()
144 }, DEBOUNCE_MS)
145}
146
147/**
148 * Start watching the team memory directory for changes.

Callers 2

startFileWatcherFunction · 0.85
notifyTeamMemoryWriteFunction · 0.85

Calls 1

executePushFunction · 0.85

Tested by

no test coverage detected