feat(core): jobs, scheduler, plugin registry, connections

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Sonnet 5.5 committed 2026-10-30 20:39:17 +01:00
1 parent 207c92bb4d
commit 166b8ecb5e
20 files changed
+744 -10

No files matched your search

+1 -2
View File
@@ -4,8 +4,6 @@ import { gql, LISTS_QUERY, PAGE_SIZE, SEARCH_QUERY, USER_BOOKS_QUERY } from "./s
import { mapList, mapUserBook } from "./src/map.ts";
import type { HcList, HcUserBook } from "./src/map.ts";
export { RATE_PER_MINUTE } from "./src/graphql.ts";
async function* pageUserBooks(ctx: PluginContext, where: Record<string, unknown> | null): AsyncGenerator<HcUserBook> {
for (let offset = 0; ; offset += PAGE_SIZE) {
const d = await gql<{ me: { user_books: HcUserBook[] }[] }>(ctx, USER_BOOKS_QUERY, { limit: PAGE_SIZE, offset, where });
@@ -45,6 +43,7 @@ export default definePlugin({
name: "Hardcover",
version: "0.1.0",
sdkVersion: 1,
rateLimit: { perMinute: 50 },
mediaTypes: ["book"],
capabilities: ["pull", "pullChanges", "lookup"],
config: [{ key: "token", label: "Personal access token", type: "secret", required: true }],