MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / pull

Method pull

packages/core/src/common/stream.ts:189–200  ·  view source on GitHub ↗
(ctrl: any)

Source from the content-addressed store, hash-verified

187 iter = self[Symbol.asyncIterator]();
188 },
189 async pull(ctrl: any) {
190 try {
191 const {value, done} = await iter.next();
192 if (done) return ctrl.close();
193
194 const bytes = encoder.encode(JSON.stringify(value) + '\n');
195
196 ctrl.enqueue(bytes);
197 } catch (err) {
198 ctrl.error(err);
199 }
200 },
201 async cancel() {
202 await iter.return?.();
203 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected