machineconfig 5.67__py3-none-any.whl → 5.68__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.

@@ -8,13 +8,13 @@
8
8
  "fileNamePattern": {
9
9
  "amd64": {
10
10
  "linux": "jq-linux-amd64",
11
- "windows": null,
12
- "macos": null
11
+ "windows": "jq-windows-amd64.exe",
12
+ "macos": "jq-macos-amd64"
13
13
  },
14
14
  "arm64": {
15
15
  "linux": "jq-linux-arm64",
16
16
  "windows": null,
17
- "macos": null
17
+ "macos": "jq-macos-arm64"
18
18
  }
19
19
  }
20
20
  },
@@ -15,11 +15,11 @@ def create(
15
15
  provider: PROVIDER = typer.Option(default=..., help=f"Provider to use (for crush agent). One of {', '.join(get_args(PROVIDER)[:3])}"),
16
16
  context_path: Optional[Path] = typer.Option(None, help="Path to the context file/folder, defaults to .ai/todo/"),
17
17
  separator: str = typer.Option("\n", help="Separator for context"),
18
- tasks_per_prompt: int = typer.Option(13, help="Number of tasks per prompt"),
18
+ agent_load: int = typer.Option(13, help="Number of tasks per prompt"),
19
19
  prompt: Optional[str] = typer.Option(None, help="Prompt prefix as string"),
20
20
  prompt_path: Optional[Path] = typer.Option(None, help="Path to prompt file"),
21
21
  job_name: str = typer.Option("AI_Agents", help="Job name"),
22
- separate_prompt_from_context: bool = typer.Option(True, help="Keep prompt material in separate file to the context."),
22
+ separate: bool = typer.Option(True, help="Keep prompt material in separate file to the context."),
23
23
  output_path: Optional[Path] = typer.Option(None, help="Path to write the layout.json file"),
24
24
  agents_dir: Optional[Path] = typer.Option(None, help="Directory to store agent files. If not provided, will be constructed automatically."),
25
25
  ):
@@ -49,7 +49,7 @@ def create(
49
49
  raise typer.BadParameter(f"Path does not exist: {context_path_resolved}")
50
50
 
51
51
  if context_path_resolved.is_file():
52
- prompt_material_re_splitted = chunk_prompts(context_path_resolved, tasks_per_prompt=tasks_per_prompt, joiner=separator)
52
+ prompt_material_re_splitted = chunk_prompts(context_path_resolved, tasks_per_prompt=agent_load, joiner=separator)
53
53
  elif context_path_resolved.is_dir():
54
54
  files = [f for f in context_path_resolved.rglob("*") if f.is_file()]
55
55
  if not files:
@@ -64,14 +64,13 @@ def create(
64
64
  else:
65
65
  prompt_prefix = cast(str, prompt)
66
66
  agent_selected = agent
67
- keep_material_in_separate_file_input = separate_prompt_from_context
68
67
  if agents_dir is None: agents_dir = repo_root / ".ai" / f"tmp_prompts/{job_name}_{randstr()}"
69
68
  else:
70
69
  import shutil
71
70
  if agents_dir.exists():
72
71
  shutil.rmtree(agents_dir)
73
72
  prep_agent_launch(repo_root=repo_root, agents_dir=agents_dir, prompts_material=prompt_material_re_splitted,
74
- keep_material_in_separate_file=keep_material_in_separate_file_input,
73
+ keep_material_in_separate_file=separate,
75
74
  prompt_prefix=prompt_prefix, machine=machine, agent=agent_selected, model=model, provider=provider,
76
75
  job_name=job_name)
77
76
  layoutfile = get_agents_launch_layout(session_root=agents_dir)
@@ -82,9 +81,9 @@ agents create "{context_path_resolved}" \\
82
81
  --agent "{agent_selected}" \\
83
82
  --machine "{machine}" \\
84
83
  --job-name "{job_name}" \\
85
- --tasks-per-prompt {tasks_per_prompt} \\
84
+ --agent_load {agent_load} \\
86
85
  --separator "{separator}" \\
87
- {"--separate-prompt-from-context" if keep_material_in_separate_file_input else ""}
86
+ {"--separate" if separate else ""}
88
87
  """
89
88
  (agents_dir / "aa_agents_relaunch.py").write_text(data=regenerate_py_code, encoding="utf-8")
90
89
  layout_output_path = output_path if output_path is not None else agents_dir / "layout.json"
@@ -12,7 +12,7 @@ import shutil
12
12
 
13
13
  def get_python_files(repo_root: Path, exclude_init: bool = False) -> list[str]:
14
14
  """Get all Python files relative to repo root."""
15
- excluded_parts = {".venv", "__pycache__", ".git", "build", "dist"}
15
+ excluded_parts = {".venv", "__pycache__", ".git", "build", "dist", ".ai"}
16
16
  excluded_patterns = {"*.egg-info"}
17
17
 
18
18
  # Get all .py files recursively
@@ -251,12 +251,12 @@ def main(
251
251
  pattern: Annotated[str, typer.Argument(help="Pattern or keyword to match files by")],
252
252
  repo: Annotated[str, typer.Argument(help="Repository path. Can be any directory within a git repository.")] = str(Path.cwd()),
253
253
  strategy: Annotated[Literal["name", "keywords"], typer.Option("-s", "--strategy", help="Strategy to filter files: 'name' for filename matching, 'keywords' for content matching")] = "name",
254
- exclude_init: Annotated[bool, typer.Option("-e", "--exclude-init", help="Exclude __init__.py files from the checklist")] = False,
254
+ exclude_init: Annotated[bool, typer.Option("-x", "--exclude-init", help="Exclude __init__.py files from the checklist")] = True,
255
255
  include_line_count: Annotated[bool, typer.Option("-l", "--line-count", help="Include line count column in the output")] = False,
256
256
  output_path: Annotated[str, typer.Option("-o", "--output-path", help="Base path for output files relative to repo root")] = ".ai/todo/files",
257
257
  format_type: Annotated[Literal["csv", "md", "txt"], typer.Option("-f", "--format", help="Output format: csv, md (markdown), or txt")] = "md",
258
- split_every: Annotated[Optional[int], typer.Option("--split-every", help="Split output into multiple files, each containing at most this many results")] = None,
259
- split_to: Annotated[Optional[int], typer.Option("--split-to", help="Split output into exactly this many files")] = None,
258
+ split_every: Annotated[Optional[int], typer.Option("--split-every", "-e", help="Split output into multiple files, each containing at most this many results")] = None,
259
+ split_to: Annotated[Optional[int], typer.Option("--split-to", "-t", help="Split output into exactly this many files")] = None,
260
260
  ) -> None:
261
261
  """Generate checklist with Python and shell script files in the repository filtered by pattern."""
262
262
  repo_path = Path(repo).expanduser().absolute()
@@ -48,6 +48,7 @@ def adjust_gitignore(repo_root: Path) -> None:
48
48
  "CLAUDE.md",
49
49
  "CRUSH.md",
50
50
  ".cursor",
51
+ ".clinerules"
51
52
  ".github/instructions",
52
53
  ".github/chatmodes",
53
54
  ".github/prompts",
@@ -150,7 +150,7 @@ from pathlib import Path
150
150
  else:
151
151
  console.print(Panel("❌ Could not determine the local machineconfig repo root. Please ensure the `REPO_ROOT` in `source_of_truth.py` is correctly set to the local path of the machineconfig repo, or do not use the `--local` flag.", title="Error", border_style="red"))
152
152
  return
153
- else: ve_line = "--with machineconfig[plot]>=5.65"
153
+ else: ve_line = "--with machineconfig[plot]>=5.67"
154
154
  fire_line = f"uv run --python 3.14 {ve_line} {interpreter} {interactivity} {profile} {str(pyfile)}"
155
155
 
156
156
  from machineconfig.utils.code import run_shell_script
@@ -48,7 +48,7 @@ def path():
48
48
  from pathlib import Path
49
49
  path = Path(navigator.__file__).resolve().parent.joinpath("path_manager_tui.py")
50
50
  from machineconfig.utils.code import run_shell_script
51
- run_shell_script(f"uv run --with machineconfig>=5.65,textual {path}")
51
+ run_shell_script(f"uv run --with machineconfig>=5.67,textual {path}")
52
52
 
53
53
  @config_apps.command(no_args_is_help=False)
54
54
  def pwsh_theme():
@@ -31,9 +31,9 @@ def install():
31
31
  # main_public_from_parser()
32
32
  import platform
33
33
  if platform.system() == "Windows":
34
- run_shell_script(r"""$HOME\.local\bin\uv.exe tool install machineconfig>=5.65""")
34
+ run_shell_script(r"""$HOME\.local\bin\uv.exe tool install machineconfig>=5.67""")
35
35
  else:
36
- run_shell_script("""$HOME/.local/bin/uv tool install machineconfig>=5.65""")
36
+ run_shell_script("""$HOME/.local/bin/uv tool install machineconfig>=5.67""")
37
37
 
38
38
  @cli_app.command(no_args_is_help=False)
39
39
  def navigate():
@@ -42,7 +42,7 @@ def navigate():
42
42
  from pathlib import Path
43
43
  path = Path(navigator.__file__).resolve().parent.joinpath("devops_navigator.py")
44
44
  from machineconfig.utils.code import run_shell_script
45
- run_shell_script(f"uv run --with machineconfig>=5.65,textual {path}")
45
+ run_shell_script(f"uv run --with machineconfig>=5.67,textual {path}")
46
46
 
47
47
 
48
48
  @cli_app.command(no_args_is_help=True)
@@ -105,7 +105,7 @@ def ftpx(
105
105
  from paramiko.ssh_exception import AuthenticationException # type: ignore
106
106
 
107
107
  try:
108
- ssh = SSH(rf"{machine}")
108
+ ssh = SSH(host=rf"{machine}", username=None, hostname=None, ssh_key_path=None, password=None, port=22, enable_compression=True)
109
109
  except AuthenticationException:
110
110
  console.print(
111
111
  Panel(
@@ -123,7 +123,7 @@ def ftpx(
123
123
  import getpass
124
124
 
125
125
  pwd = getpass.getpass()
126
- ssh = SSH(rf"{machine}", pwd=pwd)
126
+ ssh = SSH(host=rf"{machine}", username=None, hostname=None, ssh_key_path=None, password=pwd, port=22, enable_compression=True)
127
127
 
128
128
  if cloud:
129
129
  console.print(
@@ -133,7 +133,7 @@ def ftpx(
133
133
  border_style="cyan",
134
134
  )
135
135
  )
136
- ssh.run(f"cloud_copy {resolved_source} :^", desc="Uploading from remote to the cloud.").print()
136
+ ssh.run_shell(command=f"cloud_copy {resolved_source} :^", verbose_output=True, description="Uploading from remote to the cloud.", strict_stderr=False, strict_return_code=False)
137
137
  console.print(
138
138
  Panel.fit(
139
139
  "⬇️ Cloud transfer mode — downloading from cloud to local...",
@@ -141,7 +141,7 @@ def ftpx(
141
141
  border_style="cyan",
142
142
  )
143
143
  )
144
- ssh.run_locally(f"cloud_copy :^ {resolved_target}").print()
144
+ ssh.run_locally(command=f"cloud_copy :^ {resolved_target}")
145
145
  received_file = PathExtended(resolved_target) # type: ignore
146
146
  else:
147
147
  if source_is_remote:
@@ -163,7 +163,7 @@ def ftpx(
163
163
  padding=(1, 2),
164
164
  )
165
165
  )
166
- received_file = ssh.copy_to_here(source=resolved_source, target=resolved_target, z=zipFirst, r=recursive)
166
+ received_file = ssh.copy_to_here(source=resolved_source, target=resolved_target, z=zipFirst, r=recursive, init=True)
167
167
  else:
168
168
  assert resolved_source is not None, """
169
169
  ❌ Path Error: Target must be a remote path (machine:path)"""
@@ -183,7 +183,7 @@ def ftpx(
183
183
  padding=(1, 2),
184
184
  )
185
185
  )
186
- received_file = ssh.copy_from_here(source=resolved_source, target=resolved_target, z=zipFirst, r=recursive)
186
+ received_file = ssh.copy_from_here(source_path=resolved_source, target_path=resolved_target, compress_with_zip=zipFirst, recursive=recursive, overwrite_existing=False)
187
187
 
188
188
  if source_is_remote and isinstance(received_file, PathExtended):
189
189
  console.print(
@@ -130,9 +130,9 @@ def execute_installations(selected_options: list[str]) -> None:
130
130
  console.print(Panel("🐍 [bold green]PYTHON ENVIRONMENT[/bold green]\n[italic]Virtual environment setup[/italic]", border_style="green"))
131
131
  import platform
132
132
  if platform.system() == "Windows":
133
- run_shell_script(r"""$HOME\.local\bin\uv.exe tool install machineconfig>=5.65""")
133
+ run_shell_script(r"""$HOME\.local\bin\uv.exe tool install machineconfig>=5.67""")
134
134
  else:
135
- run_shell_script("""$HOME/.local/bin/uv tool install machineconfig>=5.65""")
135
+ run_shell_script("""$HOME/.local/bin/uv tool install machineconfig>=5.67""")
136
136
  if "install_ssh_server" in selected_options:
137
137
  console.print(Panel("🔒 [bold red]SSH SERVER[/bold red]\n[italic]Remote access setup[/italic]", border_style="red"))
138
138
  import platform
@@ -5,7 +5,7 @@
5
5
  # mkdir ~/data/local
6
6
  # sudo mount -o nolock,noatime,nodiratime,proto=tcp,timeo=600,retrans=2,noac alex-p51s-5:/home/alex/data/local ./data/local
7
7
 
8
- uv run --python 3.14 --with machineconfig>=5.65python -m machineconfig.scripts.python.mount_nfs
8
+ uv run --python 3.14 --with machineconfig>=5.67python -m machineconfig.scripts.python.mount_nfs
9
9
  # Check if remote server is reachable and share folder exists
10
10
  if ! ping -c 1 "$remote_server" &> /dev/null; then
11
11
  echo "💥 Error: Remote server $remote_server is not reachable."
@@ -20,8 +20,8 @@ def main():
20
20
  tmp = choose_ssh_host(multi=False)
21
21
  assert isinstance(tmp, str)
22
22
  ssh = SSH(tmp)
23
- default = f"{ssh.hostname}:{ssh.run('echo $HOME').op}/data/share_nfs"
24
- share_info = choose_from_options(msg="📂 Choose a share path:", options=[f"{ssh.hostname}:{item.split(' ')[0]}" for item in ssh.run("cat /etc/exports").op.split("\n") if not item.startswith("#")] + [default], default=default, multi=False)
23
+ default = f"{ssh.hostname}:{ssh.run_shell('echo $HOME').op}/data/share_nfs"
24
+ share_info = choose_from_options(msg="📂 Choose a share path:", options=[f"{ssh.hostname}:{item.split(' ')[0]}" for item in ssh.run_shell("cat /etc/exports").op.split("\n") if not item.startswith("#")] + [default], default=default, multi=False)
25
25
  assert isinstance(share_info, str), f"❌ share_info must be a string. Got {type(share_info)}"
26
26
 
27
27
  remote_server = share_info.split(":")[0]
@@ -19,7 +19,7 @@ def main():
19
19
  tmp = choose_ssh_host(multi=False)
20
20
  assert isinstance(tmp, str)
21
21
  ssh = SSH(host=tmp)
22
- share_info = f"{ssh.username}@{ssh.hostname}:{ssh.run('echo $HOME').op}/data/share_ssh"
22
+ share_info = f"{ssh.username}@{ssh.hostname}:{ssh.run_shell('echo $HOME').op}/data/share_ssh"
23
23
  else:
24
24
  ssh = SSH(share_info.split(":")[0])
25
25
 
@@ -7,7 +7,7 @@ def analyze_repo_development(repo_path: str = typer.Argument(..., help="Path to
7
7
  from pathlib import Path
8
8
  count_lines_path = Path(count_lines.__file__)
9
9
  # --project $HOME/code/ machineconfig --group plot
10
- cmd = f"""uv run --python 3.14 --with machineconfig[plot]>=5.65 {count_lines_path} analyze-over-time {repo_path}"""
10
+ cmd = f"""uv run --python 3.14 --with machineconfig[plot]>=5.67 {count_lines_path} analyze-over-time {repo_path}"""
11
11
  from machineconfig.utils.code import run_shell_script
12
12
  run_shell_script(cmd)
13
13
 
@@ -141,7 +141,7 @@ def get_app():
141
141
  layouts_app.command("create-from-function", no_args_is_help=True, help="Create a layout from a function")(create_from_function)
142
142
  layouts_app.command("run", no_args_is_help=True, help="Run the selected layout(s)")(run)
143
143
  layouts_app.command("balance-load", no_args_is_help=True, help="Balance the load across sessions")(balance_load)
144
- layouts_app.command("kill-process", no_args_is_help=True, help="Choose a process to kill")(kill_process)
144
+ layouts_app.command("kill-process", no_args_is_help=False, help="Choose a process to kill")(kill_process)
145
145
  return layouts_app
146
146
 
147
147
 
@@ -7,7 +7,7 @@ $user = ''
7
7
  $sharePath = ''
8
8
  $driveLetter = ''
9
9
 
10
- uv run --python 3.14 --with machineconfig>=5.65python -m machineconfig.scripts.python.mount_ssh
10
+ uv run --python 3.14 --with machineconfig>=5.67python -m machineconfig.scripts.python.mount_ssh
11
11
 
12
12
  net use T: \\sshfs.kr\$user@$host.local
13
13
  # this worked: net use T: \\sshfs\alex@alex-p51s-5.local
@@ -14,7 +14,6 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
14
14
  echo "🔧 Configuring NVM environment..."
15
15
  export NVM_DIR="$HOME/.nvm"
16
16
  [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
17
- [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
18
17
  echo "📥 Installing latest Node.js..."
19
18
  nvm install node || true
20
19
  echo "📥 Installing SQLite - lightweight SQL database..."
@@ -1,25 +1,25 @@
1
1
  #!/bin/bash
2
2
  . <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/uv.sh")
3
3
  devops() {
4
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65 devops "$@"
4
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67 devops "$@"
5
5
  }
6
6
  agents() {
7
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65 agents "$@"
7
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67 agents "$@"
8
8
  }
9
9
  cloud() {
10
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65 cloud "$@"
10
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67 cloud "$@"
11
11
  }
12
12
  croshell() {
13
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65 croshell "$@"
13
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67 croshell "$@"
14
14
  }
15
15
  fire() {
16
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65fire "$@"
16
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67fire "$@"
17
17
  }
18
18
  ftpx() {
19
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65ftpx "$@"
19
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67ftpx "$@"
20
20
  }
21
21
  sessions() {
22
- "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.65sessions "$@"
22
+ "$HOME/.local/bin/uv" run --python 3.14 --with machineconfig>=5.67sessions "$@"
23
23
  }
24
24
 
25
25
  echo "devops command is now defined in this shell session."
@@ -2,30 +2,30 @@
2
2
 
3
3
  iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/uv.ps1").Content
4
4
  function devops {
5
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 devops $args
5
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 devops $args
6
6
  }
7
7
 
8
8
  function cloud {
9
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 cloud $args
9
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 cloud $args
10
10
  }
11
11
 
12
12
  function croshell {
13
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 croshell $args
13
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 croshell $args
14
14
  }
15
15
 
16
16
  function agents {
17
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 agents $args
17
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 agents $args
18
18
  }
19
19
 
20
20
  function fire {
21
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 fire $args
21
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 fire $args
22
22
  }
23
23
 
24
24
  function ftpx {
25
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 ftpx $args
25
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 ftpx $args
26
26
  }
27
27
 
28
28
  function sessions {
29
- & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.65 sessions $args
29
+ & "$HOME\.local\bin\uv.exe" run --python 3.14 --with machineconfig>=5.67 sessions $args
30
30
  }
31
31