Skip to content

community_3_cli

grisun0 edited this page Oct 17, 2026 · 3 revisions

cli

Community 3 | 112 files | cohesion 0.54

Definition

This community groups 112 file(s) rooted at tests with dominant language py (cohesion 0.54). Central symbols: AddonCatalog, AddonEntry, AuditConfig, AutoCryptoConfig, AutoCryptoEngine, AutoSuggestEngine, BinarySpec, BinaryStatus. Core file: tests/test_command_palette.py (238 symbols). Documented purpose: LazyOwn CLI infrastructure. Tier 2 introduces a declarative, modular layer above [lazyown.py](https://github.com/grisuno/LazyOwn/blob/2f44e17e04bdafed2bc1a36ee7fe88300d346017/lazyown.py): - [cli/aliases.yaml](https://github.com/grisuno/LazyOwn/blob/2f44e17e04bdafed2bc1a36ee7fe88300d346017/cli/aliases.yaml) and :func:cli.aliases.load_aliases p.

Files

tests (49 files)

File Language Layer Symbols Doc
tests/test_auto_crypto.py py testing 22 yes
tests/test_autosuggest.py py testing 41 yes
tests/test_c2_agent.py py testing 20 yes

cli (45 files)

File Language Layer Symbols Doc
cli/__init__.py py utility 0 yes
cli/auto_crypto.py py utility 13 yes
cli/autosuggest.py py utility 27 yes

core (6 files)

File Language Layer Symbols Doc
core/command_bridge.py py utility 9 yes
core/console.py py utility 11 yes
core/error_advice.py py utility 5 yes

poc_tui (4 files)

File Language Layer Symbols Doc
poc_tui/__main__.py py utility 0 yes
poc_tui/app.py py utility 47 yes
poc_tui/run.py py utility 1 yes

cli/commands (3 files)

File Language Layer Symbols Doc
cli/commands/cli_auth.py py utility 5 yes
cli/commands/help_ui.py py presentation 16 yes
cli/commands/recon.py py utility 14 yes

modules (3 files)

File Language Layer Symbols Doc
modules/cli_auth.py py utility 18 yes
modules/kill_chain_viz.py py utility 5 yes
modules/killchain.py py utility 21 yes

. (1 files)

File Language Layer Symbols Doc
lazyown.py py utility 129 yes

scripts/devtools (1 files)

File Language Layer Symbols Doc
scripts/devtools/command_audit.py py utility 4 yes

... and 92 more files in this community.

Key Symbols

  • AutoCryptoConfig (class, cli/auto_crypto.py:48) class AutoCryptoConfig - Centralised configuration for automatic session encryption.
  • AutoCryptoEngine (class, cli/auto_crypto.py:77) class AutoCryptoEngine - Encrypt and decrypt sensitive session files with a derived key.
  • __init__ (method, cli/auto_crypto.py:85) def __init__(self, config)
  • enabled (method, cli/auto_crypto.py:90) def enabled(self) - Whether the engine performs any I/O.
  • is_encrypted (method, cli/auto_crypto.py:95) def is_encrypted(self) - Check whether session data appears encrypted.
  • encrypt_session (method, cli/auto_crypto.py:124) def encrypt_session(self) - Encrypt all protected session files.
  • decrypt_session (method, cli/auto_crypto.py:174) def decrypt_session(self) - Decrypt all protected session files.
  • has_password (method, cli/auto_crypto.py:239) def has_password(self) - Return True when the configured provider yields a password now.
  • _get_password (method, cli/auto_crypto.py:251) def _get_password(self)
  • _load_or_create_salt (method, cli/auto_crypto.py:260) def _load_or_create_salt(self)
  • _derive_key (method, cli/auto_crypto.py:291) def _derive_key(password, salt)
  • build_password_provider_from_cli_login (function, cli/auto_crypto.py:297) def build_password_provider_from_cli_login() - Return a password provider that reads the CLI login session.
  • _provider (function, cli/auto_crypto.py:310) def _provider()
  • SuggestionContext (class, cli/autosuggest.py:50) class SuggestionContext - Inputs available to every suggestion provider.
  • Suggestion (class, cli/autosuggest.py:71) class Suggestion - One next-command suggestion with its rationale.
  • SuggestionProvider (class, cli/autosuggest.py:92) class SuggestionProvider(Protocol) - Provider contract: examine context, return one suggestion or None.
  • suggest (method, cli/autosuggest.py:95) def suggest(self, context)
  • CompositeProvider (class, cli/autosuggest.py:98) class CompositeProvider - Aggregator that returns the highest-scoring suggestion across providers.
  • __init__ (method, cli/autosuggest.py:105) def __init__(self, providers) - Store the provider chain.
  • suggest (method, cli/autosuggest.py:115) def suggest(self, context) - Return the best suggestion across the chain, or None.
  • KillChainProvider (class, cli/autosuggest.py:134) class KillChainProvider - Provider backed by the static kill-chain adjacency map.
  • __init__ (method, cli/autosuggest.py:143) def __init__(self, chain, phase_priority) - Configure the provider.
  • suggest (method, cli/autosuggest.py:162) def suggest(self, context) - Return the first unseen adjacency, or phase fallback, or None.
  • GraphProvider (class, cli/autosuggest.py:189) class GraphProvider - Provider backed by the graphify knowledge-graph advisor.
  • __init__ (method, cli/autosuggest.py:197) def __init__(self, advisor) - Configure the provider.
  • suggest (method, cli/autosuggest.py:221) def suggest(self, context) - Query the advisor and adapt the top result to a :class:Suggestion.
  • AutoSuggestEngine (class, cli/autosuggest.py:245) class AutoSuggestEngine - Stateful holder for the active ghost-text suggestion.
  • __init__ (method, cli/autosuggest.py:254) def __init__(self, provider) - Store the provider and enabled flag.
  • enabled (method, cli/autosuggest.py:270) def enabled(self) - Whether the engine refreshes suggestions on each command.
  • set_enabled (method, cli/autosuggest.py:274) def set_enabled(self, value) - Toggle the engine without losing the provider chain.

Internal vs External Edges

  • Internal resolved imports (EXTRACTED): 470
  • Cross-boundary resolved imports (EXTRACTED): 302

Connections

  • [EXTRACTED] depends_on community 3 <-> 0 (strength 0.9): Extracted import edge crosses communities: cli/init.py imports cli/aliases.py.
  • [EXTRACTED] depends_on community 3 <-> 1 (strength 0.9): Extracted import edge crosses communities: cli/auto_crypto.py imports core/logging.py.
  • [EXTRACTED] depends_on community 3 <-> 2 (strength 0.9): Extracted import edge crosses communities: cli/command_form.py imports cli/commands/containers.py.
  • [EXTRACTED] depends_on community 6 <-> 3 (strength 0.9): Extracted import edge crosses communities: cli/commands/ai.py imports modules/killchain.py.
  • [EXTRACTED] depends_on community 3 <-> 7 (strength 0.9): Extracted import edge crosses communities: cli/commands/help_ui.py imports cli/assign.py.

Risks

Open Questions

Sources

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally