Skeleton: roledesk on desk and pipeline from ../news

Package layers models, config, storage, jobs, web, cli, held by
tests/test_architecture.py with desk and pipeline as external trees and
plugins/ limited to desk. roles.yaml is the default config, roledesk.db
its own file, port 8790. create_app mounts pipeline.web.connect over
Jobs(config.database); `roledesk job pull` drains a no-op pull and
`roledesk db init` creates the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-23 10:59:17 +02:00
commit 36dbcbb29e
20 files changed
+2320

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
"""`pull`: read every configured plugin. A no-op until the first plugin lands."""
from __future__ import annotations
import logging
from typing import Any
from pipeline import NULL, RunContext, job
from roledesk.config import Config
from roledesk.storage import Store
log = logging.getLogger(__name__)
@job("pull", "Reading every board", resource="http", solo=True)
def run(config: Config, store: Store, *, context: RunContext = NULL) -> dict[str, Any]:
log.info("pull: no plugin is installed yet")
return {"sources": 0, "seen": 0, "new": 0}