MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createThread

Function createThread

apps/web/src/lib/bot/platforms/github.test.ts:81–101  ·  view source on GitHub ↗
(params: { id: string; threadMessages?: Message[] })

Source from the content-addressed store, hash-verified

79 throw new Error('not implemented');
80 },
81 };
82}
83
84async function* messages(items: Message[]): AsyncIterable<Message> {
85 for (const item of items) yield item;
86}
87
88function createThread(params: { id: string; threadMessages?: Message[] }): Thread {
89 return {
90 id: params.id,
91 adapter: { name: 'github' },
92 isDM: false,
93 channel: {
94 fetchMetadata: async () => ({
95 id: 'github:Kilo-Org/on-call',
96 isDM: false,
97 metadata: {},
98 name: 'Kilo-Org/on-call',
99 }),
100 get messages() {
101 return messages([]);
102 },
103 },
104 get messages() {

Callers 1

github.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected