MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / sendCheckpointInitWarn

Function sendCheckpointInitWarn

src/core/checkpoints/index.ts:21–26  ·  view source on GitHub ↗
(task: Task, type?: "WAIT_TIMEOUT" | "INIT_TIMEOUT", timeout?: number)

Source from the content-addressed store, hash-verified

19const WARNING_THRESHOLD_MS = 5000
20
21function sendCheckpointInitWarn(task: Task, type?: "WAIT_TIMEOUT" | "INIT_TIMEOUT", timeout?: number) {
22 task.providerRef.deref()?.postMessageToWebview({
23 type: "checkpointInitWarning",
24 checkpointWarning: type && timeout ? { type, timeout } : undefined,
25 })
26}
27
28export async function getCheckpointService(task: Task, { interval = 250 }: { interval?: number } = {}) {
29 if (!task.enableCheckpoints) {

Callers 2

getCheckpointServiceFunction · 0.85
checkGitInstallationFunction · 0.85

Calls 1

postMessageToWebviewMethod · 0.80

Tested by

no test coverage detected