machineconfig 5.64__py3-none-any.whl → 5.66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of machineconfig might be problematic. Click here for more details.
- machineconfig/scripts/python/agents.py +12 -48
- machineconfig/scripts/python/ai/generate_files.py +197 -42
- machineconfig/scripts/python/croshell.py +5 -5
- machineconfig/scripts/python/devops_helpers/cli_config.py +1 -1
- machineconfig/scripts/python/devops_helpers/cli_self.py +3 -3
- machineconfig/scripts/python/devops_navigator.py +1 -890
- machineconfig/scripts/python/entry.py +17 -12
- machineconfig/scripts/python/fire_jobs.py +4 -4
- machineconfig/scripts/python/ftpx.py +4 -4
- machineconfig/scripts/python/helper_navigator/__init__.py +20 -0
- machineconfig/scripts/python/helper_navigator/command_builder.py +111 -0
- machineconfig/scripts/python/helper_navigator/command_detail.py +44 -0
- machineconfig/scripts/python/helper_navigator/command_tree.py +470 -0
- machineconfig/scripts/python/helper_navigator/data_models.py +28 -0
- machineconfig/scripts/python/helper_navigator/main_app.py +262 -0
- machineconfig/scripts/python/helper_navigator/search_bar.py +15 -0
- machineconfig/scripts/python/helpers_fire/template.sh +1 -0
- machineconfig/scripts/python/interactive.py +2 -2
- machineconfig/scripts/python/nw/mount_nfs +1 -1
- machineconfig/scripts/python/repos_helpers/count_lines_frontend.py +1 -1
- machineconfig/scripts/python/sessions.py +1 -1
- machineconfig/scripts/windows/mounts/mount_ssh.ps1 +1 -1
- machineconfig/setup_linux/web_shortcuts/interactive.sh +7 -7
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +7 -7
- machineconfig/utils/ssh.py +2 -2
- {machineconfig-5.64.dist-info → machineconfig-5.66.dist-info}/METADATA +1 -2
- {machineconfig-5.64.dist-info → machineconfig-5.66.dist-info}/RECORD +30 -24
- machineconfig-5.66.dist-info/entry_points.txt +9 -0
- machineconfig/utils/ai/generate_file_checklist.py +0 -68
- machineconfig-5.64.dist-info/entry_points.txt +0 -9
- {machineconfig-5.64.dist-info → machineconfig-5.66.dist-info}/WHEEL +0 -0
- {machineconfig-5.64.dist-info → machineconfig-5.66.dist-info}/top_level.txt +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import List, Optional, Union, Annotated
|
|
5
|
-
from rich.console import Console
|
|
6
|
-
from rich.panel import Panel
|
|
7
|
-
|
|
8
|
-
import typer
|
|
9
|
-
|
|
10
|
-
def generate_file_checklist(repo_root: Union[str, Path], exclude_dirs: Optional[List[str]] = None) -> Path:
|
|
11
|
-
actual_exclude_dirs: List[str] = [".venv", ".git", "__pycache__", "build", "dist", "*.egg-info"]
|
|
12
|
-
if exclude_dirs is not None:
|
|
13
|
-
actual_exclude_dirs = exclude_dirs
|
|
14
|
-
repo_root = Path(repo_root).expanduser().absolute()
|
|
15
|
-
output_path: Path = repo_root / ".ai" / "repo_task" / "file_checklist.md"
|
|
16
|
-
py_files: List[Path] = []
|
|
17
|
-
for filepath in repo_root.glob("**/*.py"):
|
|
18
|
-
if any(excl in filepath.parts for excl in actual_exclude_dirs) or any(filepath.match(f"**/{excl}/**") for excl in actual_exclude_dirs) or filepath.name == "__init__.py":
|
|
19
|
-
continue
|
|
20
|
-
py_files.append(filepath.relative_to(repo_root))
|
|
21
|
-
|
|
22
|
-
sh_files: List[Path] = []
|
|
23
|
-
for filepath in repo_root.glob("**/*.sh"):
|
|
24
|
-
if any(excl in filepath.parts for excl in actual_exclude_dirs) or any(filepath.match(f"**/{excl}/**") for excl in actual_exclude_dirs):
|
|
25
|
-
continue
|
|
26
|
-
sh_files.append(filepath.relative_to(repo_root))
|
|
27
|
-
|
|
28
|
-
py_files.sort()
|
|
29
|
-
sh_files.sort()
|
|
30
|
-
|
|
31
|
-
markdown_content: str = "# File Checklist\n\n"
|
|
32
|
-
|
|
33
|
-
markdown_content += "## Python Files\n\n"
|
|
34
|
-
for py_file in py_files:
|
|
35
|
-
markdown_content += f"- [ ] {py_file}\n"
|
|
36
|
-
|
|
37
|
-
markdown_content += "\n## Shell Script Files\n\n"
|
|
38
|
-
for sh_file in sh_files:
|
|
39
|
-
markdown_content += f"- [ ] {sh_file}\n"
|
|
40
|
-
Path(output_path).parent.mkdir(parents=True, exist_ok=True)
|
|
41
|
-
Path(output_path).write_text(markdown_content, encoding="utf-8")
|
|
42
|
-
|
|
43
|
-
print(f"📋 Checklist generated at: {output_path}")
|
|
44
|
-
return output_path
|
|
45
|
-
def main(
|
|
46
|
-
repo: Annotated[str, typer.Argument(help="Repository root path. Defaults to current working directory.")] = str(Path.cwd()),
|
|
47
|
-
exclude: Annotated[Optional[List[str]], typer.Option("--exclude", "-e", help="Additional directories to exclude (by default excludes .venv, .git, __pycache__, build, dist, *.egg-info)")] = None,
|
|
48
|
-
) -> None:
|
|
49
|
-
exclude_dirs: List[str] = [".venv", ".git", "__pycache__", "build", "dist", "*.egg-info"]
|
|
50
|
-
if exclude:
|
|
51
|
-
exclude_dirs.extend(exclude)
|
|
52
|
-
if repo == "":
|
|
53
|
-
print("Error: Repository path cannot be empty.")
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
output_path = generate_file_checklist(repo, exclude_dirs)
|
|
57
|
-
console = Console()
|
|
58
|
-
console.print(Panel(f"✅ SUCCESS | Markdown checklist generated successfully!\n📄 File Location: {output_path}", border_style="bold blue", expand=False))
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def main_from_parser():
|
|
62
|
-
typer.run(main)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if __name__ == "__main__":
|
|
68
|
-
main_from_parser()
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[console_scripts]
|
|
2
|
-
agents = machineconfig.scripts.python.agents:main_from_parser
|
|
3
|
-
cloud = machineconfig.scripts.python.cloud:main
|
|
4
|
-
croshell = machineconfig.scripts.python.croshell:arg_parser
|
|
5
|
-
devops = machineconfig.scripts.python.devops:main
|
|
6
|
-
fire = machineconfig.scripts.python.fire_jobs:main_from_parser
|
|
7
|
-
ftpx = machineconfig.scripts.python.ftpx:main_from_parser
|
|
8
|
-
mcfg = machineconfig.scripts.python.entry:app
|
|
9
|
-
sessions = machineconfig.scripts.python.sessions:main_from_parser
|
|
File without changes
|
|
File without changes
|