Skip to content

refactor: reorganize aish package structure#100

Merged
F16shen merged 2 commits intoAI-Shell-Team:mainfrom
F16shen:refactor/module-structure-layout
Apr 10, 2026
Merged

refactor: reorganize aish package structure#100
F16shen merged 2 commits intoAI-Shell-Team:mainfrom
F16shen:refactor/module-structure-layout

Conversation

@F16shen
Copy link
Copy Markdown
Collaborator

@F16shen F16shen commented Apr 9, 2026

Summary

  • reorganize core modules into clearer package boundaries under llm, state, terminal, shell/commands, and scripts/themes
  • restore root-level cli.py, config.py, system_info.py, sandboxd.py, and keep prompts.py at the package root
  • realign packaging and test layout so imports, build paths, and spec files match the new structure

Details

  • move provider and session code under src/aish/llm and move runtime/session helpers under src/aish/state
  • move PTY and interaction code under src/aish/terminal while keeping shell-specific pieces under src/aish/shell
  • rename scripts/prompts to scripts/themes and reorganize tests by feature area
  • update Makefile, aish.spec, pyproject.toml, and affected imports for the new module layout

Testing

  • /home/lixin/workspace/aishell/aish/.venv/bin/python -m pytest
    • 486 passed, 15 skipped

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Thanks for the pull request. A maintainer will review it when available.

Please keep the PR focused, explain the why in the description, and make sure local checks pass before requesting review.

Contribution guide: https://github.com/AI-Shell-Team/aish/blob/main/CONTRIBUTING.md

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file docs security packaging Packaging or installation issue core agent Agent or LLM workflow issue tools sandbox config cli tests builtin labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

This pull request description looks incomplete. Please update the missing sections below before review.

Missing items:

  • User-visible Changes
  • Compatibility
  • Change Type
  • Scope

@F16shen F16shen merged commit 5c85869 into AI-Shell-Team:main Apr 10, 2026
10 checks passed
@F16shen F16shen deleted the refactor/module-structure-layout branch April 14, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Agent or LLM workflow issue builtin cli config core dependencies Pull requests that update a dependency file docs experienced-contributor packaging Packaging or installation issue sandbox security size: XL tests tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants