INNER CODE UNIT · TypeScript

extends

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

    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)),
            // Typed as unknown: comparing Workspace to WorkspaceLike makes tsc

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…