MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getLastEvent

Method getLastEvent

sdk/e2e/utils/event-collector.ts:64–69  ·  view source on GitHub ↗

Get the last event of a specific type

(
    type: T,
  )

Source from the content-addressed store, hash-verified

62
63 /** Get the last event of a specific type */
64 getLastEvent<T extends PrintModeEvent['type']>(
65 type: T,
66 ): Extract<PrintModeEvent, { type: T }> | undefined {
67 const filtered = this.getEventsByType(type)
68 return filtered[filtered.length - 1]
69 }
70
71 /** Get all text content concatenated */
72 getFullText(): string {

Callers 2

Calls 1

getEventsByTypeMethod · 0.95

Tested by

no test coverage detected