MCPcopy Create free account
hub / github.com/OperationT00/T-Code / events

Method events

clients/t-code-cli/src/runtime-client.ts:54–63  ·  view source on GitHub ↗
(threadId: string, after = 0)

Source from the content-addressed store, hash-verified

52 }
53
54 async events(threadId: string, after = 0): Promise<RuntimeEvent[]> {
55 const response = await this.retrier.run(() => fetch(
56 `${this.baseUrl}/v1/threads/${threadId}/events?after=${after}`,
57 { headers: this.headers() },
58 ));
59 if (!response.ok) {
60 throw await runtimeApiError(response);
61 }
62 return parseSse(await response.text());
63 }
64
65 async pendingApprovals(): Promise<PendingApproval[]> {
66 const body = await this.retrier.run(() => this.requestJson("/v1/approvals", { method: "GET" }));

Callers 2

printTurnFunction · 0.45

Calls 5

headersMethod · 0.95
runtimeApiErrorFunction · 0.85
parseSseFunction · 0.85
runMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected