chenggouCursor 开放 sdk 中发帖

Cursor 开放了:@cursor/sdk。使用typescript 编写。 
最小 demo 大概是这样:
import { Agent } from "@cursor/sdk";

const agent = await Agent.create({
apiKey: process.env.CURSOR_API_KEY!,
model: { id: "composer-2" },
local: { cwd: process.cwd() },
});

const run = await agent.send("Summarize what this repository does");

for await (const event of run.stream()) {
console.log(event);
}

同时还开放了一个 cursor/cookbook ...