commit ca70d8d70d098c975c0ca726f2d463603e0f4aee Author: astar76 Date: Tue Nov 24 23:03:59 2026 -0600 S000: workflow scaffold Co-Authored-By: Claude Opus 5.5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e652bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/target +/dist +/releases +*.swp diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..1a1506c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,84 @@ +# Medlar + +Medlar is a download manager for Linux in Rust and egui: all of Free Download Manager's features and more, downloads split into dynamic parts, limits, priorities, queues, torrents, video sites, a local port that takes downloads from browsers, and a Material You (M3 Expressive) interface with spring motion and wavy progress bars. What it must do: [docs/FEATURES.md](docs/FEATURES.md). Final deliverable: a tested AppImage and tar.gz plus the browser extension, for the user and for release on Astar Hub. Vision: [PLAN.md](PLAN.md). + +## 0. Session rules — read first + +0. If `docs/HANDOFF.md` exists, read it and `docs/STATUS.md` first. +1. You are started with **one plan**: `Plans//SNNN-*.md`. Read only: this file, **your plan**, the **last 3 entries** of `docs/PROGRESS.md`, and the files/sections your plan names. +2. **Do not open other files in `Plans/`** (nor `ORCHESTRATOR.md`, nor all of `PLAN.md`). +3. **Tick each checkbox in your plan file the moment it is done**, one by one, never in batches. Right after each tick, sync the tracker (§Tracker). An interrupted plan resumes at its first unchecked box. +4. **Stay in scope.** Out-of-scope ideas go to `docs/PROGRESS.md` (“Later”), not into the code. +5. **Invent nothing**: check the code/docs; if a fact is still missing, ask — the **orchestrator** if you were started by one (never the user directly), otherwise the user. +6. **End of session**: (a) end criteria verified **by commands**, not memory; (b) `docs/PROGRESS.md` entry (≤ 15 lines: done, not done, later); (c) `docs/DECISIONS.md` if a decision binds later plans; (d) tick your line in `Plans/INDEX.md` (no commentary); (e) commit `SNNN: …` and push to `origin` if it is set; (f) short report: done, not done, what the user/orchestrator must do, and any instruction that cost more than it gave. +7. **Languages**: answer in English, short (the user is on a tight budget). Code, comments and user-facing text in English. Internal docs (`CLAUDE.md`, `Plans/`, `PROGRESS.md`) in English. + +## Tracker + +Live checklist of every plan: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H (collection `plans`, one doc per plan id). +After ticking a box: `ArtifactData` `update` with `url` = the tracker, `collection: "plans"`, `doc_id: "SNNN"`, `data: {"status": "running" or "done" (all boxes ticked), "items": [{"text": "", "done": true/false}, … every checkbox of the plan in order], "updated": ""}` and `if_version` = the version returned by your previous write (first time: `get` the doc once to read it; a doc that doesn't exist yet takes no `if_version`). Load the tool with ToolSearch `select:ArtifactData` once. If the tracker call fails, keep working and say so in the report: the plan file is the source of truth. + +## 1. Repository layout + +Root: the folder holding this file +``` +Planned (the Foundation plans create it; keep this list true): +crates/core/ engine, limits, queues, store, connector server; no UI code +crates/app/ egui app: theme, motion, widgets, views, dialogs, tray +crates/cli/ medlar command line and headless mode +crates/testserver/ local server with faults for tests (ranges, throttle, cuts, expiry, logins) +extension/ browser extension, one source for Firefox and Chromium +tools/ screenshot, hidden-run, icon and packaging scripts +assets/ icon, fonts, Material Symbols +docs/ FEATURES, PROGRESS, DECISIONS, STATUS, CONNECTOR; tracker.html is the tracker page's source +Plans/ one plan per session +``` +Never modify: everything outside this folder. `~/Projects/*` is read-only reference (copy code in, never edit there). `~/.abdm` and the running AB Download Manager are the user's: never stop, read or reconfigure them. + +## 2. Facts + +- Reuse (the user's own code, read-only): Damson `src/motion.rs` (spring presets), `src/theme.rs` (OKLCH roles from a seed); Mulberry `src/ui/shape.rs` (morphing shapes), `src/ui/widgets.rs` (`wavy_slider`, buttons, menus), `src/tray.rs`; Nacre `tools/nested-session.sh`, `tools/hidden.sh` (hidden nested niri runs) and `src/net/dlm.rs` (`custom_body`: the JSON Nacre posts). +- Seen on crates.io 2026-11-24: eframe/egui_kittest 0.37.0, tokio 1.54.1, hyper 1.13.0, reqwest 0.13.5, axum 0.8.9, librqbit 9.1.0, suppaftp 13.0.0, russh 0.65.4, rusqlite 0.43.0, ksni 0.3.7. Check the docs of the pinned version before using an API. +- This PC: Arch Linux, niri (Wayland), 4 cores, 16 GB, Rust 1.99.1. No node or npm: the extension is plain JavaScript with no build step. +- No Firefox or Chromium was found in /usr/bin. Browser tests need a portable browser (ask through the orchestrator before downloading one) or a script that speaks the protocol. +- The line is slow: never download large files for tests. All engine tests use `crates/testserver` on 127.0.0.1. +- Ports: Medlar 17616 (D-006). 15151 and 38151 belong to the user's AB Download Manager. + +## 3. Code rules + +- Write like the neighbouring code. KISS, DRY, YAGNI; no abstraction without ≥ 2 uses. +- New pure logic gets a test; a bug fix gets a regression test when feasible. +- UI work loads the `app-taste` skill first and follows it; motion work also loads `animate`. Interface colours, radii, spacing, type and motion come from tokens only. +- Wavy bars and other motion run only while something really changes; idle draws no frames. +- `core` never depends on egui. Every engine behaviour has a test against `testserver`, including the failure paths. +- Errors reach the user as plain words: what failed, then why. Every user string goes through the string catalogue (FEATURES 8.5). +- Follow the pattern of real products only for mechanics; the look, name, icon and copy are Medlar's own. + +## 4. Domain pitfalls (all agents) + +- Never connect to Tor or public proxies, and never join public torrent swarms, trackers or DHT in tests. Torrents are tested in a loopback swarm, proxies against a local stub. +- Any web page can reach 127.0.0.1: check `Host` and `Origin`, require the pairing token, no CORS wildcard, and an unpaired add (no `Origin`, for example Nacre) always shows the Add dialog. +- File names come from servers and pages: strip path parts, control characters and leading dots, cap the length, never overwrite silently. +- Child processes (yt-dlp, ffmpeg) get user links: use `--`, never a shell. Cookies and logins never appear in logs or process arguments. +- HTTP/2 puts all parts on one connection: force HTTP/1.1 for segments. A 200 answer to a range request means no resume; never write it at an offset. +- Content-Encoding breaks ranges: ask for `identity` and check. +- Run apps hidden (kittest or nested niri) with a throwaway `XDG_*` home unless the user asks to watch. Power actions are tested against a fake logind only. +- DRM, captchas and paywalls are never worked around. + +## 5. Verification tools + +| Tool | Role | Available after | +|---|---|---| +| `nice cargo test -j 2` | unit and engine tests | 01 Foundation | +| `nice cargo build --release -j 2` | release build (never at the same time as the tests) | 01 Foundation | +| `ssh root@192.168.1.71 hub-release` | release notes on Astar Hub (release only, after the user's yes) | now | + +Don't assume a tool exists: check first. When your plan creates a tool, add its row here. + +## 6. Git + +Remote: Astar Hub only (`forgejo:astar76/Medlar.git`, see the user's global CLAUDE.md). Commit locally always; push only if `origin` is set. Never GitHub. Releases only through `releases/v/` after the user says yes. One commit per logical step, message `SNNN: …` in English. No `reset --hard` / force push without an explicit request. + +## 7. Definition of done + +A plan is done when: all end criteria are **verified by command or test**; planned builds/tests are green; nothing regressed; `PROGRESS` / `DECISIONS` are up to date; the INDEX line and tracker are ticked; the work is committed. Say explicitly what was **not** done or verified. diff --git a/ORCHESTRATOR.md b/ORCHESTRATOR.md new file mode 100644 index 0000000..d791ba9 --- /dev/null +++ b/ORCHESTRATOR.md @@ -0,0 +1,36 @@ +# Orchestrator — Medlar + +You are the **orchestrator**. You do not do the plans' work yourself: you launch, unblock and validate the sessions that do. Read `CLAUDE.md`, then `Plans/INDEX.md`, then the last 3 entries of `docs/PROGRESS.md`. Start from the **first unchecked plan** in INDEX. + +## Files + +- Plans: `Plans//SNNN-*.md`, one folder per category (header gives model, effort, dependencies, files touched, 🧑). Index: `Plans/INDEX.md`. +- Logs: `docs/PROGRESS.md`, `docs/DECISIONS.md`. Vision: `PLAN.md`. +- Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H — sessions update it themselves; you only check it matches the plan files (`ArtifactData list plans` vs. the plans' checkboxes; `update` to repair). + +## Launching sessions + +**Look-ahead rule (check it after EVERY event: start, GO, validation, answer to a session):** count the sessions you started that are *waiting for GO* (not running, not done). If fewer than **3** and unchecked plans remain in scope, start waiting sessions for the next plans in INDEX order right now, until the count is reached. Waiting sessions cost almost nothing and don't touch files: preparing them is never “running in parallel”, and dependencies only gate the GO, not the preparation. Say the count in each status line (`waiting: S014, S015, S016`). + +1. Prepare each look-ahead plan as a nested session (`start_session`, `initiation: "user_asked"`, same folder) with the plan's model and effort. Brief: *“Read CLAUDE.md and Plans//SNNN-xxx.md only. Do not start: wait for GO from the orchestrator.”* plus “Use the caveman skill (`caveman:caveman`) for all replies; code, docs and commits stay normal English.” plus anything the plan cannot know (state of previous plans, tags, decisions taken since). Do not repeat CLAUDE.md rules. +2. Send **GO** (`SendMessage` to its `local_…` id) when its dependencies are validated. +3. **Parallel** only if the plans are consecutive, none depends on another, their “files touched” don't overlap, and at most two run at once, only one of them builds or runs tests at a time (4 cores, 16 GB). Otherwise one at a time. + +## Answering sessions + +Sessions talk to **you**, never to the user. Answer from the project goal, `PLAN.md`, `DECISIONS.md` and the code. The user does not want to be stopped (D-004): take the recommended choice yourself and record it. Disturb them only for a real necessity (a release, 🧑 steps, irreversible or outward-facing actions, a decision that changes the goal); then stop and tell them exactly what to look at, how, and what to answer. Record any decision you take in `docs/DECISIONS.md`. + +## Validating a plan (when its session ends) + +Check with commands, not its report: plan checkboxes all ticked; end criteria hold (rerun only **targeted** tests for what changed); PROGRESS entry present; INDEX line ticked; commit (pushed if `origin` is set) present; working tree clean; tracker doc matches. If something is missing, send it back to the same session. Then GO the next one and apply the look-ahead rule. + +Relay to the user any remark that an instruction costs more than it gives, with an alternative. + +## Context and stop + +- Near ~300K context: finish validating the current plan, then tell the user to open a new session with `/orchestrate` (you resume from INDEX). +- If the user says **STOP**: stop the running sessions and your follow-up; on resume, message the same sessions to continue from their first unchecked box. + +## End of a phase / project + +Short report: what changed (before/after), what was verified, what remains, what the user must do. diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..6d85c5a --- /dev/null +++ b/PLAN.md @@ -0,0 +1,26 @@ +# Medlar — vision + +## Goal +A download manager for Linux that does everything Free Download Manager does and more: dynamic parts, limits, priorities, +queues, scheduling, torrents, video sites, and a local port that takes downloads from browsers. Its Material You interface +uses M3 Expressive shapes, spring motion and wavy progress bars that show what the engine is really doing. +Recipient: the user, as their daily download manager, then anyone who gets a release from Astar Hub. +Done means every item in [docs/FEATURES.md](docs/FEATURES.md) §1–9 works and has been tested. + +## Current state +New project. No code yet. Reusable code of the user's own: Damson (motion, theme, kittest screenshots), Mulberry (shapes, wavy +slider, widgets, tray), Nacre (hidden nested session, hand-off format). + +## Phases +1. **Foundation** — workspace, store, settings, the local test server with faults, the screenshot and hidden-run tools. +2. **Engine** — HTTP with dynamic parts, resume, retries, mirrors, checksums; FTP, FTPS, SFTP; HLS and DASH. CLI-testable without UI. +3. **Interface** — tokens, motion, wavy bars, parts map, main window, add dialog, details, settings. +4. **Control** — limits, modes, priorities, queues, scheduler, power actions, quota, automatic limiter. +5. **Connector** — port, pairing, Firefox and Chromium extension, media detection, Nacre, native messaging. +6. **Torrents and media** — torrent engine and views, yt-dlp, preview, conversion. +7. **Library and tools** — rules, batch, grabber, site explorer, archive peek, unpack, statistics, import, CLI, web remote, tray. +8. **Motion and polish** — `/improve-animations` audit, its fixes, an app-taste pass over every screen, performance. +9. **Release** — AppImage and tar.gz, older-distro test, docs, repo page. Publishing needs the user's yes. + +## Out of scope +FEATURES §10. diff --git a/Plans/01 Foundation/.gitkeep b/Plans/01 Foundation/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/02 Engine/.gitkeep b/Plans/02 Engine/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/03 Interface/.gitkeep b/Plans/03 Interface/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/04 Control/.gitkeep b/Plans/04 Control/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/05 Connector/.gitkeep b/Plans/05 Connector/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/06 Torrents and media/.gitkeep b/Plans/06 Torrents and media/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/07 Library and tools/.gitkeep b/Plans/07 Library and tools/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/08 Motion and polish/.gitkeep b/Plans/08 Motion and polish/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/09 Release/.gitkeep b/Plans/09 Release/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Plans/INDEX.md b/Plans/INDEX.md new file mode 100644 index 0000000..ffe7cee --- /dev/null +++ b/Plans/INDEX.md @@ -0,0 +1,23 @@ +# Plans — index + +One session = one plan. Plans live in category folders `Plans//SNNN-slug.md`; one `##` heading per folder below. Start: `Read CLAUDE.md then execute Plans//SNNN-xxx.md (only that one).` — or let the orchestrator run them (`/orchestrate` in a new session). Sessions tick their line here, without commentary. 🧑 = needs the user. + +Tracker: https://claude.ai/artifact/XouimfVJS6FYVKskGJ8s7H + +## 01 Foundation + +## 02 Engine + +## 03 Interface + +## 04 Control + +## 05 Connector + +## 06 Torrents and media + +## 07 Library and tools + +## 08 Motion and polish + +## 09 Release diff --git a/Plans/_TEMPLATE.md b/Plans/_TEMPLATE.md new file mode 100644 index 0000000..d27f400 --- /dev/null +++ b/Plans/_TEMPLATE.md @@ -0,0 +1,24 @@ +# SNNN — {{TITLE}} + +> Category {{NN Category}} · Model: {{Sonnet|Opus}} · Effort: {{medium|high}} · Depends on: {{SNNN|—}} · Size: {{S|M|L}} · Human: {{no|🧑 what}} +> Files touched: {{paths/globs}} + +## Goal +{{What, why, and the AUDIT/PLAN references it handles.}} + +## Read +{{Exact files or sections to read — nothing more.}} + +## Steps +- [ ] {{step}} +- [ ] {{step}} +- [ ] PROGRESS entry, INDEX line, commit `SNNN: …` + +## End criteria +{{Each one checkable by a command or test.}} + +## Pitfalls +{{Known traps.}} + +## Handoff (→ PROGRESS.md) +{{What the next plans need to know.}} diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md new file mode 100644 index 0000000..d8507e6 --- /dev/null +++ b/docs/DECISIONS.md @@ -0,0 +1,13 @@ +# Decisions + +`D-NNN — date — decision — why — plans affected`. Never rewrite an entry; supersede it with a new one. + +- D-001 — 2026-11-24 — The app is called Medlar (binary `medlar`). — User's choice. — all +- D-002 — 2026-11-24 — Linux only: AppImage and tar.gz. — User's choice. — all +- D-003 — 2026-11-24 — Own browser extension and own protocol; no AB Download Manager protocol. Nacre's existing "custom manager" JSON is accepted as it is, so Nacre needs no change. — User chose "own extension only"; Nacre already posts this format (`~/Projects/Nacre/src/net/dlm.rs`, `custom_body`). — 05 +- D-004 — 2026-11-24 — No user stops during the work. The user is asked only before a release, and for things only they can do. — User's choice. — all +- D-005 — 2026-11-24 — Rust, egui/eframe 0.37 (glow), tokio. Motion starts from Damson's `src/motion.rs`, colour from Damson's `src/theme.rs`, shapes and the wavy line from Mulberry's `src/ui/shape.rs` and `src/ui/widgets.rs` (the user's own MIT code). — Same stack as the user's other apps. — all +- D-006 — 2026-11-24 — Default port 17616, 127.0.0.1 only. ABDM keeps 15151 on this PC and is left alone. — Free on this PC; no clash. — 05 +- D-007 — 2026-11-24 — Torrent engine is librqbit if it passes a spike (features in FEATURES 5, loopback swarm); otherwise libtorrent-rasterbar through a small C++ bridge. — Pure Rust is easier to bundle. — 06 +- D-008 — 2026-11-24 — The `/improve-animations` audit runs after the interface exists (category 08). Its "ask which findings" step is answered in advance: plan every HIGH and MEDIUM finding. Its plans go to `animation-plans/`. `AUDIT.md`, `PLAN-TEMPLATE.md` and `review-animations` are not installed with that skill, so the audit uses the eight categories named in its SKILL.md plus the motion rules in app-taste. — D-004. — 08 +- D-009 — 2026-11-24 — `yt-dlp` and `ffmpeg` ship with the app; nothing tells the user to install something. — User's standing preference. — 06, 09 diff --git a/docs/FEATURES.md b/docs/FEATURES.md new file mode 100644 index 0000000..f311ea7 --- /dev/null +++ b/docs/FEATURES.md @@ -0,0 +1,102 @@ +# Features + +The contract for "done". Plans cite these ids; a feature is done when its plan's end criteria pass. Tags: **F** = a Free +Download Manager feature (current or 3.9; from freedownloadmanager.org and Wikipedia, read 2026-11-24, plus general knowledge +of the app, so not every tag is sourced), **+** = from other +managers or our own idea. Nothing here is dropped without an entry in `DECISIONS.md`. + +## 1 Engine +- 1.1 F Segmented HTTP/HTTPS: many connections per file, resume after pause, crash, reboot or lost network. +- 1.2 + **Dynamic parts**: an idle connection takes half of the slowest remaining part (by estimated time left), down to a + minimum part size. Parts are merged and split live; no fixed count. +- 1.3 + **Adaptive connections**: start low, add a connection while total speed still rises, drop it when it doesn't or when the + server answers 429/503. Remember what each host tolerates. +- 1.4 F User cap on parts per download, per host and in total; 1 part when the server has no ranges. +- 1.5 + Validator check on resume (ETag, Last-Modified, length, overlap bytes); a changed file asks before restarting. +- 1.6 + Retries with backoff and jitter, stall detection, per-part error isolation, Retry-After honoured. +- 1.7 + Crash-safe state: preallocated or sparse file, part journal, final atomic rename, disk-full handled before and during. +- 1.8 F Mirrors: several URLs for one file, parts spread by measured speed. + Metalink (v3, v4, HTTP header). +- 1.9 F FTP, FTPS. + SFTP. Resume and segments where the server allows it. +- 1.10 F RTSP and MMS streams, recorded through ffmpeg. +- 1.11 + HLS and DASH (unencrypted) with parallel fragments, joined by ffmpeg. +- 1.12 + Refresh an expired link: reopen the source page, take the new address, keep the parts. +- 1.13 + Checksums: MD5, SHA-1, SHA-256, SHA-512, BLAKE3; read from metalink, sidecar file, header or paste. +- 1.14 + HTTP/2 and HTTP/3 are used only when they beat parallel HTTP/1.1 (one connection, no segments). +- 1.15 + Proxies (HTTP, SOCKS5, system) per app, host or download. Tested only against a local stub. +- 1.16 F Logins: Basic, Digest, FTP, cookies; saved per site in the Secret Service keyring. + +## 2 Limits, priority, queues, time +- 2.1 F Three traffic modes (low, medium, high), each editable, switchable from tray and toolbar. + "Snail" one-click mode. +- 2.2 F Limits: global, per queue, per host, per download, down and up. Change live, no reconnect. +- 2.3 + **Priority** per download (lowest to highest, plus "only this one"): weighted share of bandwidth and of connections. +- 2.4 + **Automatic limiter**: measures latency and backs off when the line is busy with something else. +- 2.5 + Quota: per day or month cap with warning and stop. Metered connection (NetworkManager) pauses or limits. +- 2.6 F Queues/groups, each with its own folder, limit, number of active downloads, order, schedule. Drag to reorder. +- 2.7 F Scheduler: start/stop at times and weekdays, speed mode by time, run a program, power action. +- 2.8 F When done: shut down, suspend, hibernate, log out, lock, quit, run command. Countdown with cancel. +- 2.9 + Dependencies: start B after A. Delayed start. Inhibit suspend while downloading. + +## 3 Adding +- 3.1 F Add dialog: URL(s), name, folder, queue, priority, limit, parts, headers, cookies, login, mirrors, checksum; probes size, + type and resume support as you type. Remembers folders. +- 3.2 F Batch: paste lists, import from clipboard or file, numbered patterns `[001-120]`, `{a,b}`, dates. +- 3.3 F Drag and drop of links, files and .torrent/.metalink onto the window. F Floating drop target with live speed. +- 3.4 + Clipboard watcher (off, ask, add), filter by extension and host. +- 3.5 F Site grabber (HTML spider): depth, host, extension and size filters, tree preview, optional link rewrite. +- 3.6 F Site explorer: browse FTP/SFTP/open HTTP directory listings and pick files. +- 3.7 F Archive peek: list a remote ZIP (+ TAR when seekable) and fetch chosen files only. +- 3.8 + Duplicate detection (URL, name, checksum): resume, rename, skip or show existing. +- 3.9 F Rules: by extension, MIME, host, size → folder, queue, tags, priority, name template. + +## 4 Browser connector +- 4.1 F Extension for Firefox and Chromium family: intercept downloads, context menu on links, images, selections, "all links". +- 4.2 + Local port (default 17616, loopback only, changeable): HTTP JSON and WebSocket, documented in `CONNECTOR.md`. +- 4.3 + Pairing: extension gets a token after a code is accepted in Medlar. Host and Origin checked; a web page can't add downloads. +- 4.4 + Hand-off carries cookies, referrer, user agent, headers, POST body, suggested name. Falls back to the browser if Medlar is off. +- 4.5 + Rules in the extension: minimum size, types, sites, hold a key to bypass, per-site off switch. +- 4.6 + Media detection on the page (video, audio, HLS/DASH lists) with a popup list of qualities. DRM is never touched. +- 4.7 + Live progress in the extension popup, with pause and resume. +- 4.8 + Nacre's "custom manager" JSON (`POST /`, `GET /` as ping) works unchanged; unpaired adds always show the Add dialog. +- 4.9 + Wakes Medlar through native messaging or `medlar:` links. Also handles `magnet:`, .torrent, .metalink. + +## 5 Torrents +- 5.1 F .torrent and magnet, file selection with priorities, sequential mode, DHT, PEX, LSD, UPnP. 5.2 F Seeding by ratio/time, + limits, peers, trackers, piece map. 5.3 + Create torrents, web seeds, RSS with filters, watch folder, recheck, move data, + IP filter, encryption, bind to an interface. v1, v2 and hybrid where the library supports it. + +## 6 Media +- 6.1 F Video sites through yt-dlp (bundled, self-updating): quality, audio only, subtitles, playlists, chapters. +- 6.2 F Preview unfinished media, pictures and archives; sequential-first option for media. +- 6.3 F Convert after download (ffmpeg, bundled): presets, extract audio, remux. + +## 7 Library and files +- 7.1 F List with search, filters (state, type, queue, tag, host, date), sort, columns, groups, multi-select, compact and card views. +- 7.2 F Details: parts map, speed graph, log, headers, peers, mirrors, files. 7.3 F Move, rename, delete (bin or keep), open, show + in folder, redownload, copy link. 7.4 + Tags, notes, history, "file is gone" state, undo for removal. +- 7.5 + Unpack archives after download (with password list), join split files, scan hook (clamscan or any command). +- 7.6 + Statistics: by day, host, type; average speed; time saved. +- 7.7 F Import/export lists and settings. + Import from aria2, AB Download Manager, FDM exports where the format is documented. +- 7.8 + Pick up another manager's partial file when its part list is readable. + +## 8 Outside the window +- 8.1 F Tray with speed, modes, pause all. + Notifications with actions. + Launcher progress badge (Unity API). +- 8.2 F Remote control: web page (phone-friendly, LAN, password, off by default). + REST API with the same token system. +- 8.3 + CLI: `medlar add|list|pause|resume|limit|…`, headless mode, shell completions. Single instance. +- 8.4 F Portable mode. + Autostart, start minimised. + Keyboard shortcuts for everything and a command palette (Ctrl+K). +- 8.5 F Languages: every string goes through a catalogue; English first, others can be dropped in. + +## 9 Interface (Material You, M3 Expressive) +- 9.1 Dynamic colour from wallpaper/desktop scheme or a seed, light, dark, AMOLED, contrast levels, scheme variants. +- 9.2 **Wavy progress**: linear and circular. Amplitude follows speed, flattens when paused, turns to error/verify states, and the + part gaps travel with the dynamic parts. Moves only while bytes arrive. +- 9.3 **Parts map**: live blocks that split, hand over and merge with springs (1.2 made visible). Torrent piece map in the same style. +- 9.4 Expressive shapes: morphing loading indicator, shape per file type, button press morphs, connected button groups, split + buttons, FAB menu, floating toolbar, sliding selection. +- 9.5 Speed graph and big speed number with rolling tabular digits. Limit dial with spring-loaded handle. +- 9.6 Completion moment: wave settles, shape morphs to a tick, row moves to Done. Short, interruptible, once. +- 9.7 Every state designed (empty, loading, error, disabled, focus, selected, too long), 480 px to ultrawide, keyboard complete. +- 9.8 Motion levels: off, reduced, normal, expressive. Idle app uses no CPU and draws no frames. + +## 10 Not included +Community comments and file ratings from FDM (they need a public server), Tor, DRM or captcha bypass, a Windows, macOS or +Android build (Linux only, D-002; phones use the web remote). diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md new file mode 100644 index 0000000..59aed4c --- /dev/null +++ b/docs/PROGRESS.md @@ -0,0 +1,6 @@ +# Progress + +One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later. + +## Later +- diff --git a/docs/STATUS.md b/docs/STATUS.md new file mode 100644 index 0000000..bf3fef3 --- /dev/null +++ b/docs/STATUS.md @@ -0,0 +1,4 @@ +# Status + +Frame set up on 2026-11-24, no plans written yet, no code yet. Next: `/plan-generate`, then `/orchestrate` in a new session. +The current plan is the first unchecked line in `Plans/INDEX.md`. diff --git a/docs/tracker.html b/docs/tracker.html new file mode 100644 index 0000000..a2c0685 --- /dev/null +++ b/docs/tracker.html @@ -0,0 +1,94 @@ +Medlar tracker + + +
+

Medlar

+

Loading plans…

+
+
+
+
+