INNER CODE UNIT · TypeScript

Computer

pollinations/pollinations · apps/computer-mcp/src/index.ts:96

export class Computer extends withWorkspace(
    class extends DurableObject<Env> {
        // Git reads this object on every commit, so fetch can fill in the
        // caller's GitHub account after the workspace is built.
        gitIdentity: GitIdentity = {
            name: "Pollinations Agent",
            email: "agent@pollinations.ai",
        };
    },
    (self) => {
        const { ctx, env, gitIdentity } = self as unknown as {
            ctx: DurableObjectState;
            env: Env;
            gitIdentity: GitIdentity;
        };
        return {
            storage: ctx.storage as unknown as DurableObjectStorageLike,
            git: createJustGitClient(collectiveCredentials(env)),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…