ArchiveBox/archivebox/cli
Claude ae648c9bc1
refactor: move remaining JSONL methods to models, clean up jsonl.py
- Add Tag.to_jsonl() method with schema_version
- Add Crawl.to_jsonl() method with schema_version
- Fix Tag.from_jsonl() to not depend on jsonl.py helper
- Update tests to use Snapshot.from_jsonl() instead of non-existent get_or_create_snapshot

Remove model-specific functions from misc/jsonl.py:
- tag_to_jsonl() - use Tag.to_jsonl() instead
- crawl_to_jsonl() - use Crawl.to_jsonl() instead
- get_or_create_tag() - use Tag.from_jsonl() instead
- process_jsonl_records() - use model from_jsonl() methods directly

jsonl.py now only contains generic I/O utilities:
- Type constants (TYPE_SNAPSHOT, etc.)
- parse_line(), read_stdin(), read_file(), read_args_or_stdin()
- write_record(), write_records()
- filter_by_type(), process_records()
2025-12-30 19:30:18 +00:00
..
__init__.py remove Seed model in favor of Crawl as template 2025-12-25 01:52:41 -08:00
archivebox_add.py fix initial migrtaions 2025-12-29 21:27:31 -08:00
archivebox_config.py wip 2025-12-28 17:51:54 -08:00
archivebox_crawl.py use full dotted paths for all archivebox imports, add migrations and more fixes 2025-12-29 00:47:08 -08:00
archivebox_extract.py feat: add schema_version to JSONL outputs and remove dead code 2025-12-30 19:24:53 +00:00
archivebox_help.py move main funcs into cli files and switch to using click for CLI 2024-11-19 00:18:51 -08:00
archivebox_init.py use full dotted paths for all archivebox imports, add migrations and more fixes 2025-12-29 00:47:08 -08:00
archivebox_install.py more migration fixes 2025-12-29 22:12:57 -08:00
archivebox_manage.py fix archivebox shell and manage CLI commands 2024-11-19 00:48:39 -08:00
archivebox_mcp.py add mcp server support 2025-12-25 01:51:42 -08:00
archivebox_orchestrator.py use full dotted paths for all archivebox imports, add migrations and more fixes 2025-12-29 00:47:08 -08:00
archivebox_remove.py wip 2025-12-28 17:51:54 -08:00
archivebox_schedule.py wip major changes 2025-12-24 20:10:38 -08:00
archivebox_search.py wip 2025-12-28 17:51:54 -08:00
archivebox_server.py much better tests and add page ui 2025-12-29 04:02:11 -08:00
archivebox_shell.py fix archivebox shell and manage CLI commands 2024-11-19 00:48:39 -08:00
archivebox_snapshot.py feat: add schema_version to JSONL outputs and remove dead code 2025-12-30 19:24:53 +00:00
archivebox_status.py wip 2025-12-28 17:51:54 -08:00
archivebox_update.py more migration fixes 2025-12-30 09:57:33 -08:00
archivebox_version.py wip 2025-12-28 17:51:54 -08:00
archivebox_worker.py much better tests and add page ui 2025-12-29 04:02:11 -08:00
tests_piping.py refactor: move remaining JSONL methods to models, clean up jsonl.py 2025-12-30 19:30:18 +00:00
tests.py use full dotted paths for all archivebox imports, add migrations and more fixes 2025-12-29 00:47:08 -08:00