MCPcopy Create free account
hub / github.com/Noumena-Network/code / removeSessionCronTasks

Function removeSessionCronTasks

src/bootstrap/state.ts:1323–1331  ·  view source on GitHub ↗
(ids: readonly string[])

Source from the content-addressed store, hash-verified

1321 * were accounted for here.
1322 */
1323export function removeSessionCronTasks(ids: readonly string[]): number {
1324 if (ids.length === 0) return 0
1325 const idSet = new Set(ids)
1326 const remaining = STATE.sessionCronTasks.filter(t => !idSet.has(t.id))
1327 const removed = STATE.sessionCronTasks.length - remaining.length
1328 if (removed === 0) return 0
1329 STATE.sessionCronTasks = remaining
1330 return removed
1331}
1332
1333export function setSessionTrustAccepted(accepted: boolean): void {
1334 STATE.sessionTrustAccepted = accepted

Callers 2

removeCronTasksFunction · 0.85
processFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected