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

Files changed (268) hide show
  1. machineconfig/cluster/cloud_manager.py +22 -29
  2. machineconfig/cluster/data_transfer.py +2 -3
  3. machineconfig/cluster/distribute.py +0 -2
  4. machineconfig/cluster/file_manager.py +4 -5
  5. machineconfig/cluster/job_params.py +1 -4
  6. machineconfig/cluster/loader_runner.py +8 -11
  7. machineconfig/cluster/remote_machine.py +4 -5
  8. machineconfig/cluster/script_execution.py +2 -2
  9. machineconfig/cluster/script_notify_upon_completion.py +0 -1
  10. machineconfig/cluster/sessions_managers/archive/create_zellij_template.py +4 -6
  11. machineconfig/cluster/sessions_managers/archive/session_managers.py +0 -1
  12. machineconfig/cluster/sessions_managers/enhanced_command_runner.py +35 -75
  13. machineconfig/cluster/sessions_managers/wt_local.py +113 -185
  14. machineconfig/cluster/sessions_managers/wt_local_manager.py +127 -197
  15. machineconfig/cluster/sessions_managers/wt_remote.py +60 -67
  16. machineconfig/cluster/sessions_managers/wt_remote_manager.py +110 -149
  17. machineconfig/cluster/sessions_managers/wt_utils/layout_generator.py +61 -64
  18. machineconfig/cluster/sessions_managers/wt_utils/process_monitor.py +72 -172
  19. machineconfig/cluster/sessions_managers/wt_utils/remote_executor.py +27 -60
  20. machineconfig/cluster/sessions_managers/wt_utils/session_manager.py +58 -137
  21. machineconfig/cluster/sessions_managers/wt_utils/status_reporter.py +46 -74
  22. machineconfig/cluster/sessions_managers/zellij_local.py +91 -147
  23. machineconfig/cluster/sessions_managers/zellij_local_manager.py +165 -190
  24. machineconfig/cluster/sessions_managers/zellij_remote.py +51 -58
  25. machineconfig/cluster/sessions_managers/zellij_remote_manager.py +40 -46
  26. machineconfig/cluster/sessions_managers/zellij_utils/example_usage.py +19 -17
  27. machineconfig/cluster/sessions_managers/zellij_utils/layout_generator.py +30 -31
  28. machineconfig/cluster/sessions_managers/zellij_utils/process_monitor.py +64 -134
  29. machineconfig/cluster/sessions_managers/zellij_utils/remote_executor.py +7 -11
  30. machineconfig/cluster/sessions_managers/zellij_utils/session_manager.py +27 -55
  31. machineconfig/cluster/sessions_managers/zellij_utils/status_reporter.py +14 -13
  32. machineconfig/cluster/templates/cli_click.py +0 -1
  33. machineconfig/cluster/templates/cli_gooey.py +0 -2
  34. machineconfig/cluster/templates/cli_trogon.py +0 -1
  35. machineconfig/cluster/templates/run_cloud.py +0 -1
  36. machineconfig/cluster/templates/run_cluster.py +0 -1
  37. machineconfig/cluster/templates/run_remote.py +0 -1
  38. machineconfig/cluster/templates/utils.py +27 -11
  39. machineconfig/jobs/__pycache__/__init__.cpython-313.pyc +0 -0
  40. machineconfig/jobs/linux/msc/cli_agents.sh +16 -0
  41. machineconfig/jobs/python/check_installations.py +9 -9
  42. machineconfig/jobs/python/create_bootable_media.py +0 -2
  43. machineconfig/jobs/python/python_cargo_build_share.py +2 -2
  44. machineconfig/jobs/python/python_ve_symlink.py +9 -11
  45. machineconfig/jobs/python/tasks.py +0 -1
  46. machineconfig/jobs/python/vscode/api.py +5 -5
  47. machineconfig/jobs/python/vscode/link_ve.py +20 -21
  48. machineconfig/jobs/python/vscode/select_interpreter.py +28 -29
  49. machineconfig/jobs/python/vscode/sync_code.py +14 -18
  50. machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-313.pyc +0 -0
  51. machineconfig/jobs/python_custom_installers/archive/ngrok.py +15 -15
  52. machineconfig/jobs/python_custom_installers/dev/aider.py +10 -18
  53. machineconfig/jobs/python_custom_installers/dev/alacritty.py +12 -21
  54. machineconfig/jobs/python_custom_installers/dev/brave.py +13 -22
  55. machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +13 -20
  56. machineconfig/jobs/python_custom_installers/dev/code.py +17 -24
  57. machineconfig/jobs/python_custom_installers/dev/cursor.py +10 -21
  58. machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +12 -11
  59. machineconfig/jobs/python_custom_installers/dev/espanso.py +19 -23
  60. machineconfig/jobs/python_custom_installers/dev/goes.py +9 -16
  61. machineconfig/jobs/python_custom_installers/dev/lvim.py +13 -21
  62. machineconfig/jobs/python_custom_installers/dev/nerdfont.py +15 -22
  63. machineconfig/jobs/python_custom_installers/dev/redis.py +15 -23
  64. machineconfig/jobs/python_custom_installers/dev/wezterm.py +15 -22
  65. machineconfig/jobs/python_custom_installers/dev/winget.py +32 -50
  66. machineconfig/jobs/python_custom_installers/docker.py +15 -24
  67. machineconfig/jobs/python_custom_installers/gh.py +18 -26
  68. machineconfig/jobs/python_custom_installers/hx.py +33 -17
  69. machineconfig/jobs/python_custom_installers/warp-cli.py +15 -23
  70. machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-313.pyc +0 -0
  71. machineconfig/jobs/python_generic_installers/config.json +412 -389
  72. machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-313.pyc +0 -0
  73. machineconfig/jobs/python_windows_installers/dev/config.json +1 -1
  74. machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +1 -1
  75. machineconfig/jobs/windows/msc/cli_agents.bat +0 -0
  76. machineconfig/jobs/windows/msc/cli_agents.ps1 +0 -0
  77. machineconfig/jobs/windows/start_terminal.ps1 +1 -1
  78. machineconfig/logger.py +50 -0
  79. machineconfig/profile/create.py +50 -36
  80. machineconfig/profile/create_hardlinks.py +33 -26
  81. machineconfig/profile/shell.py +87 -60
  82. machineconfig/scripts/__pycache__/__init__.cpython-313.pyc +0 -0
  83. machineconfig/scripts/cloud/init.sh +2 -2
  84. machineconfig/scripts/linux/checkout_versions +1 -1
  85. machineconfig/scripts/linux/choose_wezterm_theme +1 -1
  86. machineconfig/scripts/linux/cloud_copy +1 -1
  87. machineconfig/scripts/linux/cloud_manager +1 -1
  88. machineconfig/scripts/linux/cloud_mount +1 -1
  89. machineconfig/scripts/linux/cloud_repo_sync +1 -1
  90. machineconfig/scripts/linux/cloud_sync +1 -1
  91. machineconfig/scripts/linux/croshell +1 -1
  92. machineconfig/scripts/linux/devops +3 -5
  93. machineconfig/scripts/linux/fire +2 -1
  94. machineconfig/scripts/linux/fire_agents +3 -3
  95. machineconfig/scripts/linux/ftpx +1 -1
  96. machineconfig/scripts/linux/gh_models +1 -1
  97. machineconfig/scripts/linux/kill_process +1 -1
  98. machineconfig/scripts/linux/mcinit +2 -2
  99. machineconfig/scripts/linux/repos +1 -1
  100. machineconfig/scripts/linux/scheduler +1 -1
  101. machineconfig/scripts/linux/start_slidev +1 -1
  102. machineconfig/scripts/linux/start_terminals +1 -1
  103. machineconfig/scripts/linux/url2md +1 -1
  104. machineconfig/scripts/linux/warp-cli.sh +122 -0
  105. machineconfig/scripts/linux/wifi_conn +1 -1
  106. machineconfig/scripts/python/__pycache__/__init__.cpython-313.pyc +0 -0
  107. machineconfig/scripts/python/__pycache__/croshell.cpython-313.pyc +0 -0
  108. machineconfig/scripts/python/__pycache__/devops.cpython-313.pyc +0 -0
  109. machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-313.pyc +0 -0
  110. machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-313.pyc +0 -0
  111. machineconfig/scripts/python/__pycache__/fire_jobs.cpython-313.pyc +0 -0
  112. machineconfig/scripts/python/ai/__init__.py +0 -0
  113. machineconfig/scripts/python/ai/__pycache__/__init__.cpython-313.pyc +0 -0
  114. machineconfig/scripts/python/ai/__pycache__/generate_files.cpython-313.pyc +0 -0
  115. machineconfig/scripts/python/ai/__pycache__/mcinit.cpython-313.pyc +0 -0
  116. machineconfig/scripts/python/ai/chatmodes/Thinking-Beast-Mode.chatmode.md +337 -0
  117. machineconfig/scripts/python/ai/chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md +644 -0
  118. machineconfig/scripts/python/ai/chatmodes/deepResearch.chatmode.md +81 -0
  119. machineconfig/scripts/python/ai/configs/.gemini/settings.json +81 -0
  120. machineconfig/scripts/python/ai/generate_files.py +84 -0
  121. machineconfig/scripts/python/ai/instructions/python/dev.instructions.md +45 -0
  122. machineconfig/scripts/python/ai/mcinit.py +107 -0
  123. machineconfig/scripts/python/ai/prompts/allLintersAndTypeCheckers.prompt.md +5 -0
  124. machineconfig/scripts/python/ai/prompts/research-report-skeleton.prompt.md +38 -0
  125. machineconfig/scripts/python/ai/scripts/lint_and_type_check.sh +52 -0
  126. machineconfig/scripts/python/archive/tmate_conn.py +5 -5
  127. machineconfig/scripts/python/archive/tmate_start.py +3 -3
  128. machineconfig/scripts/python/choose_wezterm_theme.py +2 -2
  129. machineconfig/scripts/python/cloud_copy.py +20 -19
  130. machineconfig/scripts/python/cloud_mount.py +10 -8
  131. machineconfig/scripts/python/cloud_repo_sync.py +15 -15
  132. machineconfig/scripts/python/cloud_sync.py +1 -1
  133. machineconfig/scripts/python/croshell.py +18 -16
  134. machineconfig/scripts/python/devops.py +6 -6
  135. machineconfig/scripts/python/devops_add_identity.py +9 -7
  136. machineconfig/scripts/python/devops_add_ssh_key.py +19 -19
  137. machineconfig/scripts/python/devops_backup_retrieve.py +14 -14
  138. machineconfig/scripts/python/devops_devapps_install.py +3 -3
  139. machineconfig/scripts/python/devops_update_repos.py +141 -53
  140. machineconfig/scripts/python/dotfile.py +3 -3
  141. machineconfig/scripts/python/fire_agents.py +202 -41
  142. machineconfig/scripts/python/fire_jobs.py +20 -21
  143. machineconfig/scripts/python/ftpx.py +4 -3
  144. machineconfig/scripts/python/gh_models.py +94 -94
  145. machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-313.pyc +0 -0
  146. machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-313.pyc +0 -0
  147. machineconfig/scripts/python/helpers/cloud_helpers.py +3 -3
  148. machineconfig/scripts/python/helpers/helpers2.py +3 -3
  149. machineconfig/scripts/python/helpers/helpers4.py +8 -7
  150. machineconfig/scripts/python/helpers/helpers5.py +7 -7
  151. machineconfig/scripts/python/helpers/repo_sync_helpers.py +2 -2
  152. machineconfig/scripts/python/mount_nfs.py +4 -3
  153. machineconfig/scripts/python/mount_nw_drive.py +4 -4
  154. machineconfig/scripts/python/mount_ssh.py +4 -3
  155. machineconfig/scripts/python/repos.py +9 -9
  156. machineconfig/scripts/python/scheduler.py +1 -1
  157. machineconfig/scripts/python/start_slidev.py +9 -8
  158. machineconfig/scripts/python/start_terminals.py +1 -1
  159. machineconfig/scripts/python/viewer.py +40 -40
  160. machineconfig/scripts/python/wifi_conn.py +65 -66
  161. machineconfig/scripts/python/wsl_windows_transfer.py +2 -2
  162. machineconfig/scripts/windows/checkout_version.ps1 +1 -3
  163. machineconfig/scripts/windows/choose_wezterm_theme.ps1 +1 -3
  164. machineconfig/scripts/windows/cloud_copy.ps1 +2 -6
  165. machineconfig/scripts/windows/cloud_manager.ps1 +1 -1
  166. machineconfig/scripts/windows/cloud_repo_sync.ps1 +1 -2
  167. machineconfig/scripts/windows/cloud_sync.ps1 +2 -2
  168. machineconfig/scripts/windows/croshell.ps1 +2 -2
  169. machineconfig/scripts/windows/devops.ps1 +1 -4
  170. machineconfig/scripts/windows/dotfile.ps1 +1 -3
  171. machineconfig/scripts/windows/fire.ps1 +1 -1
  172. machineconfig/scripts/windows/ftpx.ps1 +2 -2
  173. machineconfig/scripts/windows/gpt.ps1 +1 -1
  174. machineconfig/scripts/windows/kill_process.ps1 +1 -2
  175. machineconfig/scripts/windows/mcinit.ps1 +2 -2
  176. machineconfig/scripts/windows/mount_nfs.ps1 +1 -1
  177. machineconfig/scripts/windows/mount_ssh.ps1 +1 -1
  178. machineconfig/scripts/windows/pomodoro.ps1 +1 -1
  179. machineconfig/scripts/windows/py2exe.ps1 +1 -3
  180. machineconfig/scripts/windows/repos.ps1 +1 -1
  181. machineconfig/scripts/windows/scheduler.ps1 +1 -1
  182. machineconfig/scripts/windows/snapshot.ps1 +2 -2
  183. machineconfig/scripts/windows/start_slidev.ps1 +1 -1
  184. machineconfig/scripts/windows/start_terminals.ps1 +1 -1
  185. machineconfig/scripts/windows/wifi_conn.ps1 +1 -1
  186. machineconfig/scripts/windows/wsl_windows_transfer.ps1 +1 -3
  187. machineconfig/settings/lf/linux/lfrc +1 -1
  188. machineconfig/settings/linters/.ruff.toml +2 -2
  189. machineconfig/settings/linters/.ruff_cache/.gitignore +2 -0
  190. machineconfig/settings/linters/.ruff_cache/CACHEDIR.TAG +1 -0
  191. machineconfig/settings/lvim/windows/archive/config_additional.lua +1 -1
  192. machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +71 -71
  193. machineconfig/settings/shells/wt/settings.json +8 -8
  194. machineconfig/settings/svim/linux/init.toml +1 -1
  195. machineconfig/settings/svim/windows/init.toml +1 -1
  196. machineconfig/setup_linux/web_shortcuts/croshell.sh +0 -54
  197. machineconfig/setup_linux/web_shortcuts/interactive.sh +6 -6
  198. machineconfig/setup_linux/web_shortcuts/tmp.sh +2 -0
  199. machineconfig/setup_windows/web_shortcuts/all.ps1 +2 -2
  200. machineconfig/setup_windows/web_shortcuts/ascii_art.ps1 +1 -1
  201. machineconfig/setup_windows/web_shortcuts/croshell.ps1 +1 -1
  202. machineconfig/setup_windows/web_shortcuts/interactive.ps1 +5 -5
  203. machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1 +51 -15
  204. machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +75 -18
  205. machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +52 -42
  206. machineconfig/utils/ai/browser_user_wrapper.py +5 -5
  207. machineconfig/utils/ai/generate_file_checklist.py +19 -22
  208. machineconfig/utils/ai/url2md.py +5 -3
  209. machineconfig/utils/cloud/onedrive/setup_oauth.py +5 -4
  210. machineconfig/utils/cloud/onedrive/transaction.py +192 -227
  211. machineconfig/utils/code.py +71 -43
  212. machineconfig/utils/installer.py +77 -85
  213. machineconfig/utils/installer_utils/installer_abc.py +29 -17
  214. machineconfig/utils/installer_utils/installer_class.py +188 -83
  215. machineconfig/utils/io_save.py +3 -15
  216. machineconfig/utils/links.py +22 -11
  217. machineconfig/utils/notifications.py +197 -0
  218. machineconfig/utils/options.py +38 -25
  219. machineconfig/utils/path.py +18 -6
  220. machineconfig/utils/path_reduced.py +637 -316
  221. machineconfig/utils/procs.py +69 -63
  222. machineconfig/utils/scheduling.py +11 -13
  223. machineconfig/utils/ssh.py +351 -0
  224. machineconfig/utils/terminal.py +225 -0
  225. machineconfig/utils/utils.py +13 -12
  226. machineconfig/utils/utils2.py +43 -10
  227. machineconfig/utils/utils5.py +242 -46
  228. machineconfig/utils/ve.py +11 -6
  229. {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/METADATA +15 -9
  230. {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/RECORD +232 -235
  231. machineconfig/cluster/self_ssh.py +0 -57
  232. machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
  233. machineconfig/jobs/python/__pycache__/__init__.cpython-311.pyc +0 -0
  234. machineconfig/jobs/python/archive/python_tools.txt +0 -12
  235. machineconfig/jobs/python/vscode/__pycache__/select_interpreter.cpython-311.pyc +0 -0
  236. machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-311.pyc +0 -0
  237. machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
  238. machineconfig/jobs/python_generic_installers/update.py +0 -3
  239. machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
  240. machineconfig/profile/__pycache__/__init__.cpython-311.pyc +0 -0
  241. machineconfig/profile/__pycache__/create.cpython-311.pyc +0 -0
  242. machineconfig/profile/__pycache__/shell.cpython-311.pyc +0 -0
  243. machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
  244. machineconfig/scripts/linux/activate_ve +0 -87
  245. machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
  246. machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
  247. machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
  248. machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
  249. machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
  250. machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
  251. machineconfig/scripts/python/__pycache__/devops_backup_retrieve.cpython-311.pyc +0 -0
  252. machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
  253. machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
  254. machineconfig/scripts/python/__pycache__/fire_agents.cpython-311.pyc +0 -0
  255. machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
  256. machineconfig/scripts/python/__pycache__/get_zellij_cmd.cpython-311.pyc +0 -0
  257. machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
  258. machineconfig/scripts/python/ai/__pycache__/init.cpython-311.pyc +0 -0
  259. machineconfig/scripts/python/ai/init.py +0 -56
  260. machineconfig/scripts/python/ai/rules/python/dev.md +0 -31
  261. machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
  262. machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
  263. machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
  264. machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
  265. machineconfig/scripts/python/helpers/__pycache__/repo_sync_helpers.cpython-311.pyc +0 -0
  266. machineconfig/scripts/windows/activate_ve.ps1 +0 -54
  267. {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/WHEEL +0 -0
  268. {machineconfig-1.97.dist-info → machineconfig-2.1.dist-info}/top_level.txt +0 -0
@@ -59,7 +59,7 @@ curl bit.ly/cfgvelinux -L | bash
59
59
 
60
60
  # Activate virtual environment
61
61
  echo "🚀 Activating Python virtual environment..."
62
- . $HOME/venvs/ve/bin/activate
62
+ . $HOME/code/machineconfig/.venv/bin/activate
63
63
 
64
64
  # Clone repositories
65
65
  echo "📋 Setting up code repositories..."
@@ -94,7 +94,7 @@ echo """#=======================================================================
94
94
 
95
95
  # Activate virtual environment
96
96
  echo "🚀 Activating Python virtual environment..."
97
- . $HOME/scripts/activate_ve 've'
97
+ . $HOME/scripts/activate_ve '.venv'
98
98
 
99
99
  # Install all essential development applications
100
100
  echo "📥 Installing essential development applications..."
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
  python -m fire machineconfig.jobs.python.checkout_version main
5
5
  if [ -n "$VIRTUAL_ENV" ]; then
6
6
  deactivate || true
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
  python -m fire machineconfig.scripts.python.choose_wezterm_theme main
5
5
  source ~/.bashrc # reload the profile
6
6
  if [ -n "$VIRTUAL_ENV" ]; then
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  python -m machineconfig.scripts.python.cloud_copy "$@"
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve ve
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
  python -i -m machineconfig.scripts.python.cloud_manager "$@"
5
5
 
6
6
  if [ -n "$VIRTUAL_ENV" ]; then
@@ -2,7 +2,7 @@
2
2
 
3
3
  # check below if VIRTUAL_ENV is set
4
4
  # if [ -z "$VIRTUAL_ENV" ]; then
5
- source $HOME/scripts/activate_ve 've'
5
+ source ~/code/machineconfig/.venv/bin/activate
6
6
  # fi
7
7
 
8
8
  op_script=$HOME/tmp_results/shells/python_return_command.sh
@@ -6,7 +6,7 @@ if [ -f "$op_script" ]; then
6
6
  fi
7
7
 
8
8
 
9
- . $HOME/scripts/activate_ve 've'
9
+ source ~/code/machineconfig/.venv/bin/activate
10
10
 
11
11
  python $(dirname $(dirname $0))/python/cloud_repo_sync.py "$@"
12
12
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # check below if VIRTUAL_ENV is set
4
4
  # if [ -z "$VIRTUAL_ENV" ]; then
5
- source $HOME/scripts/activate_ve 've'
5
+ source ~/code/machineconfig/.venv/bin/activate
6
6
  # fi
7
7
 
8
8
  op_script=$HOME/tmp_results/shells/python_return_command.sh
@@ -6,7 +6,7 @@ if [ -f "$op_script" ]; then
6
6
  rm $op_script
7
7
  fi
8
8
 
9
- source $HOME/scripts/activate_ve 've'
9
+ source ~/code/machineconfig/.venv/bin/activate
10
10
 
11
11
  python -m machineconfig.scripts.python.croshell "$@"
12
12
  # python $(dirname $(dirname $0))/python/fire_jobs.py "$@"
@@ -1,17 +1,15 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # check below if VIRTUAL_ENV is set
4
- # if [ -z "$VIRTUAL_ENV" ]; then
5
- # source ~/scripts/activate_ve ''
6
- # fi
7
- source ~/scripts/activate_ve ve # this script only works under ve default ve.
3
+ source ~/code/machineconfig/.venv/bin/activate
8
4
 
9
5
  op_script=$HOME/tmp_results/shells/python_return_command.sh
10
6
  if [ -f "$op_script" ]; then
11
7
  rm $op_script
12
8
  fi
13
9
 
10
+ # uv run --no-dev --project ~/code/machineconfig python -m machineconfig.scripts.python.devops "$@"
14
11
  python -m machineconfig.scripts.python.devops "$@"
12
+
15
13
  if [ -f "$op_script" ]; then
16
14
  chmod +x $op_script
17
15
  source $op_script
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  # Generate random string of length 5
6
6
  random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
@@ -14,6 +14,7 @@ fi
14
14
 
15
15
  python -m machineconfig.scripts.python.fire_jobs "$@"
16
16
 
17
+
17
18
  if [ -f "$op_script" ]; then
18
19
  echo "Running $op_script"
19
20
  chmod +x $op_script
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
+
4
5
 
5
6
  # Generate random string of length 5
6
7
  random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
@@ -11,14 +12,13 @@ if [ -f "$op_script" ]; then
11
12
  rm $op_script
12
13
  fi
13
14
 
14
-
15
15
  python -m machineconfig.scripts.python.fire_agents "$@"
16
16
 
17
17
  if [ -f "$op_script" ]; then
18
18
  echo "Running $op_script"
19
19
  chmod +x $op_script
20
20
  set -- # clear all positional parameters
21
- source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it contains activate_ve and it doesn't understand first.sh arguments.
21
+ source $op_script # sourcing the script means the args passed to the this script are passed to the sourced script which cofuses the sources script as it and it doesn't understand first.sh arguments.
22
22
  fi
23
23
 
24
24
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
  python $(dirname $(dirname $0))/python/ftpx.py "$@"
5
5
  if [ -n "$VIRTUAL_ENV" ]; then
6
6
  deactivate || true
@@ -1,7 +1,7 @@
1
1
 
2
2
  #!/usr/bin/env bash
3
3
 
4
- . $HOME/scripts/activate_ve 've'
4
+ source ~/code/machineconfig/.venv/bin/activate
5
5
 
6
6
  python -m machineconfig.scripts.python.gh_models "$@"
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  python -c "from machineconfig.utils.procs import ProcessManager; ProcessManager().choose_and_kill()"
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ . $HOME/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  # Generate random string of length 5
6
6
  random_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
@@ -12,7 +12,7 @@ if [ -f "$op_script" ]; then
12
12
  fi
13
13
 
14
14
 
15
- python -m machineconfig.scripts.python.ai.init "$@"
15
+ python -m machineconfig.scripts.python.ai.mcinit "$@"
16
16
 
17
17
  if [ -f "$op_script" ]; then
18
18
  echo "Running $op_script"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # check below if VIRTUAL_ENV is set
4
4
  # if [ -z "$VIRTUAL_ENV" ]; then
5
- source $HOME/scripts/activate_ve 've'
5
+ source ~/code/machineconfig/.venv/bin/activate
6
6
  # fi
7
7
 
8
8
  op_script=$HOME/tmp_results/shells/python_return_command.sh
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
  python -m machineconfig.scripts.python.scheduler "$@"
5
5
  if [ -n "$VIRTUAL_ENV" ]; then
6
6
  deactivate || true
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  op_script=$HOME/tmp_results/shells/python_return_command.sh
6
6
  if [ -f "$op_script" ]; then
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  python -m machineconfig.jobs.python.create_zellij_template
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- . $HOME/scripts/activate_ve 've'
3
+ source ~/code/machineconfig/.venv/bin/activate
4
4
 
5
5
  python -m machineconfig.utils.ai.url2md "$@"
6
6
 
@@ -0,0 +1,122 @@
1
+ #!/usr/bin/env bash
2
+ # Installs Cloudflare WARP (warp-cli) on supported Ubuntu / Debian systems.
3
+ # Usage: sudo ./warp-cli.sh [--allow-unsupported] [--force-reinstall]
4
+
5
+ set -euo pipefail
6
+
7
+ ALLOW_UNSUPPORTED=0
8
+ FORCE_REINSTALL=0
9
+
10
+ for arg in "$@"; do
11
+ case "$arg" in
12
+ --allow-unsupported) ALLOW_UNSUPPORTED=1 ;;
13
+ --force-reinstall) FORCE_REINSTALL=1 ;;
14
+ -h|--help)
15
+ printf "Usage: %s [--allow-unsupported] [--force-reinstall]\n" "$0"
16
+ exit 0
17
+ ;;
18
+ *)
19
+ printf "Unknown argument: %s\n" "$arg" >&2
20
+ exit 2
21
+ ;;
22
+ esac
23
+ done
24
+
25
+ require_root() {
26
+ if [ "${EUID}" -ne 0 ]; then
27
+ printf "Please run as root (use sudo).\n" >&2
28
+ exit 1
29
+ fi
30
+ }
31
+
32
+ have_cmd() { command -v "$1" >/dev/null 2>&1; }
33
+
34
+ detect_os() {
35
+ if have_cmd lsb_release; then
36
+ DIST_ID=$(lsb_release -si 2>/dev/null | tr '[:upper:]' '[:lower:]')
37
+ CODENAME=$(lsb_release -sc 2>/dev/null | tr '[:upper:]' '[:lower:]')
38
+ elif [ -f /etc/os-release ]; then
39
+ # shellcheck disable=SC1091
40
+ . /etc/os-release
41
+ DIST_ID=$(printf "%s" "${ID:-}" | tr '[:upper:]' '[:lower:]')
42
+ CODENAME=$(printf "%s" "${VERSION_CODENAME:-}" | tr '[:upper:]' '[:lower:]')
43
+ else
44
+ printf "Cannot detect distribution. Install lsb_release or provide /etc/os-release.\n" >&2
45
+ exit 1
46
+ fi
47
+ }
48
+
49
+ is_supported() {
50
+ case "$DIST_ID" in
51
+ ubuntu)
52
+ # Supported: noble jammy focal (older: bionic xenial)
53
+ case "$CODENAME" in
54
+ noble|jammy|focal|bionic|xenial) return 0 ;; esac ;;
55
+ debian)
56
+ # Supported: bookworm bullseye buster (older: stretch)
57
+ case "$CODENAME" in
58
+ bookworm|bullseye|buster|stretch) return 0 ;; esac ;;
59
+ esac
60
+ return 1
61
+ }
62
+
63
+ add_key() {
64
+ local key_path="/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg"
65
+ if [ -s "$key_path" ]; then
66
+ return 0
67
+ fi
68
+ curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output "$key_path"
69
+ }
70
+
71
+ add_repo() {
72
+ local list_file="/etc/apt/sources.list.d/cloudflare-client.list"
73
+ if grep -q "pkg.cloudflareclient.com" "$list_file" 2>/dev/null; then
74
+ return 0
75
+ fi
76
+ echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ ${CODENAME} main" > "$list_file"
77
+ }
78
+
79
+ need_update=0
80
+ install_package() {
81
+ if dpkg -s cloudflare-warp >/dev/null 2>&1; then
82
+ if [ "$FORCE_REINSTALL" -eq 1 ]; then
83
+ apt-get install --reinstall -y cloudflare-warp
84
+ else
85
+ printf "cloudflare-warp already installed. Use --force-reinstall to reinstall.\n"
86
+ fi
87
+ else
88
+ apt-get install -y cloudflare-warp
89
+ fi
90
+ }
91
+
92
+ main() {
93
+ require_root
94
+ if ! have_cmd apt-get; then
95
+ printf "apt-get not found. This script supports only Debian/Ubuntu.\n" >&2
96
+ exit 1
97
+ fi
98
+ detect_os
99
+ if ! is_supported; then
100
+ if [ "$ALLOW_UNSUPPORTED" -ne 1 ]; then
101
+ printf "Distribution %s (%s) not in supported list. Use --allow-unsupported to proceed.\n" "$DIST_ID" "$CODENAME" >&2
102
+ exit 3
103
+ else
104
+ printf "Proceeding on unsupported distribution %s (%s).\n" "$DIST_ID" "$CODENAME"
105
+ fi
106
+ fi
107
+ pre_key_checksum=$( [ -f /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg ] && sha256sum /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg | cut -d' ' -f1 || true )
108
+ add_key
109
+ post_key_checksum=$(sha256sum /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg | cut -d' ' -f1)
110
+ if [ "$pre_key_checksum" != "$post_key_checksum" ]; then need_update=1; fi
111
+ repo_before=$(grep -R "pkg.cloudflareclient.com" /etc/apt/sources.list.d 2>/dev/null || true)
112
+ add_repo
113
+ repo_after=$(grep -R "pkg.cloudflareclient.com" /etc/apt/sources.list.d 2>/dev/null || true)
114
+ if [ "$repo_before" != "$repo_after" ]; then need_update=1; fi
115
+ if [ "$need_update" -eq 1 ]; then
116
+ apt-get update
117
+ fi
118
+ install_package
119
+ printf "Done. Basic usage: 'warp-cli register' then 'warp-cli connect'. For account: 'warp-cli set-mode warp'.\n"
120
+ }
121
+
122
+ main "$@"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # check below if VIRTUAL_ENV is set
4
4
  # if [ -z "$VIRTUAL_ENV" ]; then
5
- source $HOME/scripts/activate_ve 've'
5
+ source ~/code/machineconfig/.venv/bin/activate
6
6
  # fi
7
7
 
8
8
  op_script=$HOME/tmp_results/shells/python_return_command.sh
File without changes