MCPcopy Create free account
hub / github.com/cloudflare/agents / emit

Method emit

packages/shell/src/filesystem.ts:307–313  ·  view source on GitHub ↗
(
    type: WorkspaceChangeType,
    path: string,
    entryType: EntryType
  )

Source from the content-addressed store, hash-verified

305 }
306
307 private emit(
308 type: WorkspaceChangeType,
309 path: string,
310 entryType: EntryType
311 ): void {
312 if (this.onChange) this.onChange({ type, path, entryType });
313 }
314
315 private _observe(type: string, payload: Record<string, unknown>): void {
316 wsChannel.publish({

Callers 9

symlinkMethod · 0.95
writeFileBytesMethod · 0.95
writeFileMethod · 0.95
appendFileMethod · 0.95
deleteFileMethod · 0.95
mkdirMethod · 0.95
rmMethod · 0.95
mvMethod · 0.95
ensureParentDirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected