Repository navigation
community_16_scripts_journal
grisun0 edited this page Oct 16, 2026
·
5 revisions
Community 16 | 3 files | cohesion 1.00
This community groups 3 file(s) rooted at scripts with dominant language py (cohesion 1.00). Central symbols: FakeRunner, Journal, JournalConfig, JournalError, __call__, __init__, _build_parser, _default_runner. Core file: scripts/journal.py (14 symbols). Documented purpose: Read-before-you-write journal over GitHub Discussions. I keep a durable engineering journal in a GitHub Discussion category. Every unit of work appends one ent.
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
scripts/journal.py |
py | utility | 14 | yes |
scripts/read_journal.py |
py | utility | 2 | yes |
tests/test_journal.py |
py | testing | 10 | yes |
-
JournalError(class,scripts/journal.py:48)class JournalError(RuntimeError)- Raised when the GitHub API call fails or the category is missing. -
JournalConfig(class,scripts/journal.py:53)class JournalConfig- Configuration for the engineering journal. -
from_git_remote(method,scripts/journal.py:71)def from_git_remote(cls, remote, category)- Build a config from theoriginremote of the current checkout. -
_run_git(function,scripts/journal.py:90)def _run_git(args)- Run a git command and return its standard output. -
_git_remote_slug(function,scripts/journal.py:114)def _git_remote_slug()- Return theowner/nameslug of theoriginremote. -
_default_runner(function,scripts/journal.py:124)def _default_runner(args)- Runghwith an argument list and return its standard output. -
Journal(class,scripts/journal.py:149)class Journal- GitHub Discussions backed journal. -
_graphql(method,scripts/journal.py:163)def _graphql(self, query, variables)- Run a GraphQL query throughghand return thedatapayload. -
repo_id(method,scripts/journal.py:184)def repo_id(self)- The GraphQL node id of the repository. -
category_id(method,scripts/journal.py:192)def category_id(self)- The GraphQL node id of the journal category. -
post(method,scripts/journal.py:206)def post(self, title, body)- Create a journal entry and return its number, url, and title. -
entries(method,scripts/journal.py:223)def entries(self, limit)- Return the most recently updated journal entries. -
_build_parser(function,scripts/journal.py:245)def _build_parser()- Build the command line parser. -
main(function,scripts/journal.py:264)def main(argv)- Run the journal CLI and return the process exit code. -
_build_parser(function,scripts/read_journal.py:19)def _build_parser()- Build the command line parser. -
main(function,scripts/read_journal.py:29)def main(argv)- Print the recent journal entries and return the process exit code. -
FakeRunner(class,tests/test_journal.py:16)class FakeRunner- Return canned GraphQL payloads keyed by a query fragment. -
__init__(method,tests/test_journal.py:19)def __init__(self, responses)- Store the responses keyed by a fragment of the query string. -
__call__(method,tests/test_journal.py:24)def __call__(self, args)- Record the call and return the matching payload as JSON. -
_success_responses(function,tests/test_journal.py:34)def _success_responses() -
test_config_from_remote_slug(function,tests/test_journal.py:51)def test_config_from_remote_slug()- A repository slug resolves without touching git. -
test_config_rejects_bare_name(function,tests/test_journal.py:58)def test_config_rejects_bare_name()- A slug without a separator is rejected. -
test_post_entry_uses_resolved_ids(function,tests/test_journal.py:64)def test_post_entry_uses_resolved_ids()- The create mutation receives the repository and category ids. -
test_entries_returns_nodes(function,tests/test_journal.py:73)def test_entries_returns_nodes()- Reading returns the discussion nodes. -
test_missing_category_raises(function,tests/test_journal.py:81)def test_missing_category_raises()- A category that is not present raises instead of silently posting. -
test_graphql_errors_raise(function,tests/test_journal.py:93)def test_graphql_errors_raise()- A GraphQL error payload raises a JournalError.
- Internal resolved imports (EXTRACTED): 2
- Cross-boundary resolved imports (EXTRACTED): 0
- No cross-community bridges recorded. This community is self-contained.
- No scoped security, taint, cycle, or layer risks.
- What would break if the most connected file in scripts: journal changed?
- Should scripts: journal be split, given cohesion 1.00?
Generated offline by readmenator from commit 146a52570ef7. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_opsec_scorer
- community_11_modules_finding_lifecycle
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_cli
- community_3_modules_autonomous_daemon
- community_4_modules_lazy_loop
- community_5_lazygui_panels
- community_6_skills_claude_md_orchestrator
- community_7_static_js
- community_8_modules_llm_budget
- community_9_modules_atomic_exploit_bridge
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes