MCPcopy Index your code
hub / github.com/TanStack/ai / deleteSentinel

Method deleteSentinel

packages/ai-sandbox-sprites/src/client.ts:514–524  ·  view source on GitHub ↗
(name: string, path: string)

Source from the content-addressed store, hash-verified

512 }
513
514 private async deleteSentinel(name: string, path: string): Promise<void> {
515 const res = await fetch(
516 this.spritePath(name, `/fs/write?path=${encodeURIComponent(path)}`),
517 {
518 method: 'PUT',
519 headers: this.headers({ 'content-type': 'application/octet-stream' }),
520 body: new Uint8Array(0),
521 },
522 ).catch(() => undefined)
523 await res?.body?.cancel()
524 }
525
526 private async killSession(name: string, sessionId: string): Promise<void> {
527 const response = await fetch(

Callers 1

waitUntilReadyMethod · 0.95

Calls 4

spritePathMethod · 0.95
headersMethod · 0.95
cancelMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected