An EmDash plugin (native, content:write only) with one admin page: a diigo username and an ISO week. It reads diigo-cache's public page (?in=<week>&by=created) as microformats, follows rel=next, and creates a draft in issues shaped like seed/issues.json. Transport is a DIIGO_CACHE service binding rather than ctx.http.fetch: EmDash's SSRF guard refuses localhost, and the binding names one worker. Logic lives in src/week.ts with the fetcher passed in; tests read fixtures in diigo-cache's markup. The checklist's goal 2 now names potluck; DiigoBridge waits. Generated-by: Claude Opus 5.5
25 lines
397 B
JSON
25 lines
397 B
JSON
{
|
|
"name": "diigo-week",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"lint": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"emdash": "1.2.0",
|
|
"microformats-parser": "^2.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"@emdash-cms/blocks": "^1.2.0",
|
|
"typescript": "^7.0.2",
|
|
"vitest": "^5.0.3"
|
|
}
|
|
}
|