chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:52:40 +08:00
commit 9c06d70b3c
3233 changed files with 672160 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { Agent } from "@cline/sdk";
const agent = new Agent({
providerId: "cline",
modelId: "anthropic/claude-sonnet-4.6",
apiKey: process.env.CLINE_API_KEY,
maxIterations: 1,
});
agent.subscribe((event) => {
if (event.type === "assistant-text-delta") {
process.stdout.write(event.text);
}
});
const result = await agent.run("Explain what an SDK is in two sentences.");
console.log(
`\n\nDone (${result.iterations} iteration, ${result.usage.outputTokens} output tokens)`,
);