machineconfig 5.25__py3-none-any.whl → 5.27__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/jobs/installer/custom/hx.py +1 -1
- machineconfig/jobs/installer/custom_dev/alacritty.py +4 -4
- machineconfig/jobs/installer/installer_data.json +17 -0
- machineconfig/jobs/installer/linux_scripts/wezterm.sh +1 -1
- machineconfig/jobs/installer/package_groups.py +70 -111
- machineconfig/scripts/python/agents.py +4 -4
- machineconfig/scripts/python/choose_wezterm_theme.py +2 -2
- machineconfig/scripts/python/devops.py +6 -6
- machineconfig/scripts/python/{devops_update_repos.py → devops_helpers/devops_update_repos.py} +1 -1
- machineconfig/scripts/python/fire_jobs.py +3 -3
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +14 -1
- machineconfig/scripts/python/helpers_fire/__init__.py +0 -0
- machineconfig/scripts/python/{fire_agents_help_launch.py → helpers_fire/fire_agents_help_launch.py} +1 -1
- machineconfig/scripts/python/helpers_fire_command/__init__.py +0 -0
- machineconfig/scripts/python/helpers_fire_command/fire_jobs_streamlit_helper.py +0 -0
- machineconfig/scripts/python/helpers_repos/grource.py +341 -0
- machineconfig/scripts/python/interactive.py +1 -1
- machineconfig/scripts/python/repos.py +75 -73
- machineconfig/scripts/python/{count_lines_frontend.py → repos_helpers/count_lines_frontend.py} +1 -1
- machineconfig/scripts/python/{repos_helper.py → repos_helpers/repos_helper.py} +4 -12
- machineconfig/scripts/python/{repos_helper_action.py → repos_helpers/repos_helper_action.py} +1 -1
- machineconfig/scripts/python/sessions_multiprocess.py +1 -1
- machineconfig/utils/files/ouch/__init__.py +0 -0
- machineconfig/utils/files/ouch/decompress.py +45 -0
- machineconfig/utils/schemas/fire_agents/fire_agents_input.py +1 -1
- machineconfig/utils/source_of_truth.py +0 -1
- machineconfig/utils/ssh.py +33 -19
- {machineconfig-5.25.dist-info → machineconfig-5.27.dist-info}/METADATA +3 -1
- {machineconfig-5.25.dist-info → machineconfig-5.27.dist-info}/RECORD +48 -44
- machineconfig/scripts/python/get_zellij_cmd.py +0 -15
- machineconfig/scripts/python/t4.py +0 -17
- /machineconfig/jobs/{python → installer}/check_installations.py +0 -0
- /machineconfig/scripts/python/{fire_jobs_streamlit_helper.py → devops_helpers/__init__.py} +0 -0
- /machineconfig/scripts/python/{devops_add_identity.py → devops_helpers/devops_add_identity.py} +0 -0
- /machineconfig/scripts/python/{devops_add_ssh_key.py → devops_helpers/devops_add_ssh_key.py} +0 -0
- /machineconfig/scripts/python/{devops_backup_retrieve.py → devops_helpers/devops_backup_retrieve.py} +0 -0
- /machineconfig/scripts/python/{devops_status.py → devops_helpers/devops_status.py} +0 -0
- /machineconfig/scripts/python/{fire_agents_help_search.py → helpers_fire/fire_agents_help_search.py} +0 -0
- /machineconfig/scripts/python/{fire_agents_helper_types.py → helpers_fire/fire_agents_helper_types.py} +0 -0
- /machineconfig/scripts/python/{fire_agents_load_balancer.py → helpers_fire/fire_agents_load_balancer.py} +0 -0
- /machineconfig/scripts/python/{cloud_manager.py → helpers_fire_command/cloud_manager.py} +0 -0
- /machineconfig/scripts/python/{fire_jobs_args_helper.py → helpers_fire_command/fire_jobs_args_helper.py} +0 -0
- /machineconfig/scripts/python/{fire_jobs_route_helper.py → helpers_fire_command/fire_jobs_route_helper.py} +0 -0
- /machineconfig/scripts/python/{count_lines.py → repos_helpers/count_lines.py} +0 -0
- /machineconfig/scripts/python/{repos_helper_clone.py → repos_helpers/repos_helper_clone.py} +0 -0
- /machineconfig/scripts/python/{repos_helper_record.py → repos_helpers/repos_helper_record.py} +0 -0
- /machineconfig/scripts/python/{repos_helper_update.py → repos_helpers/repos_helper_update.py} +0 -0
- {machineconfig-5.25.dist-info → machineconfig-5.27.dist-info}/WHEEL +0 -0
- {machineconfig-5.25.dist-info → machineconfig-5.27.dist-info}/entry_points.txt +0 -0
- {machineconfig-5.25.dist-info → machineconfig-5.27.dist-info}/top_level.txt +0 -0
|
@@ -77,7 +77,7 @@ def main(version: Optional[str], install_lib: bool = False):
|
|
|
77
77
|
print(f" ✨ Cleaned '{runtime_path}' and '{contrib_path}'.")
|
|
78
78
|
|
|
79
79
|
print("\n📦 [Step 4/5] Installing Helix components...")
|
|
80
|
-
target_config_dir = PathExtended("
|
|
80
|
+
target_config_dir = PathExtended.home().joinpath(".config/helix").expanduser()
|
|
81
81
|
target_config_dir.mkdir(parents=True, exist_ok=True)
|
|
82
82
|
|
|
83
83
|
if platform.system() in ["Linux", "Darwin"]:
|
|
@@ -30,8 +30,8 @@ def main(installer_data: InstallerData, version: Optional[str]) -> None:
|
|
|
30
30
|
program = """
|
|
31
31
|
|
|
32
32
|
cargo install alacritty
|
|
33
|
-
mkdir -p
|
|
34
|
-
git clone https://github.com/alacritty/alacritty-theme
|
|
33
|
+
mkdir -p $HOME/.config/alacritty/themes
|
|
34
|
+
git clone https://github.com/alacritty/alacritty-theme $HOME/.config/alacritty/themes
|
|
35
35
|
|
|
36
36
|
"""
|
|
37
37
|
elif platform.system() in ["Linux", "Darwin"]:
|
|
@@ -41,8 +41,8 @@ git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/theme
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
cargo install alacritty
|
|
44
|
-
mkdir -p
|
|
45
|
-
git clone https://github.com/alacritty/alacritty-theme
|
|
44
|
+
mkdir -p $HOME/.config/alacritty/themes
|
|
45
|
+
git clone https://github.com/alacritty/alacritty-theme $HOME/.config/alacritty/themes
|
|
46
46
|
|
|
47
47
|
"""
|
|
48
48
|
else:
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1",
|
|
3
3
|
"installers": [
|
|
4
|
+
{
|
|
5
|
+
"appName": "jq",
|
|
6
|
+
"repoURL": "https://github.com/jqlang/jq",
|
|
7
|
+
"doc": "🧙♂️ Command-line JSON processor",
|
|
8
|
+
"fileNamePattern": {
|
|
9
|
+
"amd64": {
|
|
10
|
+
"linux": "jq-linux-amd64",
|
|
11
|
+
"windows": null,
|
|
12
|
+
"macos": null
|
|
13
|
+
},
|
|
14
|
+
"arm64": {
|
|
15
|
+
"linux": "jq-linux-arm64",
|
|
16
|
+
"windows": null,
|
|
17
|
+
"macos": null
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
4
21
|
{
|
|
5
22
|
"appName": "speedtest",
|
|
6
23
|
"repoURL": "CMD",
|
|
@@ -36,5 +36,5 @@ echo """#=======================================================================
|
|
|
36
36
|
#=======================================================================
|
|
37
37
|
"""
|
|
38
38
|
echo "🚀 You can now launch WezTerm from your applications menu or by typing 'wezterm' in terminal"
|
|
39
|
-
echo "💡 Configure WezTerm by editing
|
|
39
|
+
echo "💡 Configure WezTerm by editing $HOME/.config/wezterm/wezterm.lua"
|
|
40
40
|
echo "🔗 For more information and configuration options, visit: https://wezfurlong.org/wezterm/"
|
|
@@ -16,13 +16,6 @@ PACKAGES_AI_TOOLS = [
|
|
|
16
16
|
"auggie",
|
|
17
17
|
]
|
|
18
18
|
|
|
19
|
-
# Tunneling/Port Forwarding - Tools for exposing local services
|
|
20
|
-
PACKAGES_TUNNELING = [
|
|
21
|
-
"ngrok",
|
|
22
|
-
"devtunnel",
|
|
23
|
-
"cloudflared",
|
|
24
|
-
"forward-cli",
|
|
25
|
-
]
|
|
26
19
|
|
|
27
20
|
# Terminal Emulators & Shells - Terminal applications, emulators, and shell environments
|
|
28
21
|
PACKAGES_TERMINAL_EMULATORS = [
|
|
@@ -41,6 +34,8 @@ PACKAGES_BROWSERS = [
|
|
|
41
34
|
"bypass-paywalls-chrome",
|
|
42
35
|
"browsh",
|
|
43
36
|
"carbonyl",
|
|
37
|
+
"m365",
|
|
38
|
+
"zoomit",
|
|
44
39
|
]
|
|
45
40
|
|
|
46
41
|
# Code Editors & IDEs - Code editing tools
|
|
@@ -51,16 +46,7 @@ PACKAGES_CODE_EDITORS = [
|
|
|
51
46
|
"lvim",
|
|
52
47
|
]
|
|
53
48
|
|
|
54
|
-
|
|
55
|
-
PACKAGES_PRESENTATION = [
|
|
56
|
-
"patat",
|
|
57
|
-
"marp",
|
|
58
|
-
"presenterm",
|
|
59
|
-
"glow",
|
|
60
|
-
"gum",
|
|
61
|
-
"boxes",
|
|
62
|
-
"hx",
|
|
63
|
-
]
|
|
49
|
+
|
|
64
50
|
|
|
65
51
|
# Database Tools - Database clients and visualizers
|
|
66
52
|
PACKAGES_DATABASE = [
|
|
@@ -70,12 +56,6 @@ PACKAGES_DATABASE = [
|
|
|
70
56
|
"duckdb",
|
|
71
57
|
]
|
|
72
58
|
|
|
73
|
-
# Documentation & Conversion - Document conversion, diagram tools, and fast file operations
|
|
74
|
-
PACKAGES_DOC_CONVERSION = [
|
|
75
|
-
"mermaid-cli",
|
|
76
|
-
"html2markdown",
|
|
77
|
-
"pandoc",
|
|
78
|
-
]
|
|
79
59
|
|
|
80
60
|
# Media & Entertainment - Music players and media tools
|
|
81
61
|
PACKAGES_MEDIA = [
|
|
@@ -88,8 +68,10 @@ PACKAGES_MEDIA = [
|
|
|
88
68
|
|
|
89
69
|
# File Sharing & Cloud - File sharing, transfer, backup, sync, and QR tools
|
|
90
70
|
PACKAGES_FILE_SHARING = [
|
|
91
|
-
"
|
|
92
|
-
"
|
|
71
|
+
"ngrok",
|
|
72
|
+
"devtunnel",
|
|
73
|
+
"cloudflared",
|
|
74
|
+
"forward-cli",
|
|
93
75
|
"ffsend",
|
|
94
76
|
"portal",
|
|
95
77
|
"qrcp",
|
|
@@ -108,14 +90,6 @@ PACKAGES_FILE_SHARING = [
|
|
|
108
90
|
]
|
|
109
91
|
|
|
110
92
|
|
|
111
|
-
# Git & Docker Tools - Version control and container utilities
|
|
112
|
-
PACKAGES_GIT_DOCKER_TOOLS = [
|
|
113
|
-
"lazygit",
|
|
114
|
-
"onefetch",
|
|
115
|
-
"gitcs",
|
|
116
|
-
"lazydocker",
|
|
117
|
-
]
|
|
118
|
-
|
|
119
93
|
# Development Tools - Various development utilities
|
|
120
94
|
PACKAGES_DEV_UTILS = [
|
|
121
95
|
"devcontainer",
|
|
@@ -126,6 +100,10 @@ PACKAGES_DEV_UTILS = [
|
|
|
126
100
|
|
|
127
101
|
# Code Analysis, Git & Docs - Code analysis, statistics, documentation, and Git tools
|
|
128
102
|
PACKAGES_CODE_ANALYSIS = [
|
|
103
|
+
"lazygit",
|
|
104
|
+
"onefetch",
|
|
105
|
+
"gitcs",
|
|
106
|
+
"lazydocker",
|
|
129
107
|
"hyperfine",
|
|
130
108
|
"kondo",
|
|
131
109
|
"tokei",
|
|
@@ -134,6 +112,8 @@ PACKAGES_CODE_ANALYSIS = [
|
|
|
134
112
|
"gitui",
|
|
135
113
|
"delta",
|
|
136
114
|
"gh",
|
|
115
|
+
"watchexec",
|
|
116
|
+
"jq",
|
|
137
117
|
]
|
|
138
118
|
|
|
139
119
|
# Productivity & Utilities - Productivity tools, security, remote access, and terminal enhancements
|
|
@@ -141,16 +121,25 @@ PACKAGES_PRODUCTIVITY = [
|
|
|
141
121
|
"espanso",
|
|
142
122
|
"bitwarden",
|
|
143
123
|
"openpomodoro-cli",
|
|
144
|
-
"just",
|
|
145
124
|
"rustdesk",
|
|
125
|
+
"mermaid-cli",
|
|
126
|
+
"html2markdown",
|
|
127
|
+
"pandoc",
|
|
128
|
+
"patat",
|
|
129
|
+
"marp",
|
|
130
|
+
"presenterm",
|
|
131
|
+
"glow",
|
|
132
|
+
"gum",
|
|
133
|
+
"hx",
|
|
146
134
|
]
|
|
147
135
|
|
|
148
136
|
# Miscellaneous Tools - Other tools
|
|
149
137
|
PACKAGES_MISC_DEV = [
|
|
138
|
+
"lolcatjs",
|
|
139
|
+
"figlet-cli",
|
|
140
|
+
"boxes",
|
|
150
141
|
"Gorilla",
|
|
151
|
-
"nerdfont",
|
|
152
142
|
"Redis",
|
|
153
|
-
"winget",
|
|
154
143
|
"transmission",
|
|
155
144
|
"exa",
|
|
156
145
|
"bytehound",
|
|
@@ -162,24 +151,6 @@ PACKAGES_MISC_DEV = [
|
|
|
162
151
|
"nnn",
|
|
163
152
|
]
|
|
164
153
|
|
|
165
|
-
# Main DEV package list - combines all subgroups
|
|
166
|
-
PACKAGES_NAMES_DEV = [
|
|
167
|
-
*PACKAGES_AI_TOOLS,
|
|
168
|
-
*PACKAGES_TUNNELING,
|
|
169
|
-
*PACKAGES_TERMINAL_EMULATORS,
|
|
170
|
-
*PACKAGES_BROWSERS,
|
|
171
|
-
*PACKAGES_CODE_EDITORS,
|
|
172
|
-
*PACKAGES_PRESENTATION,
|
|
173
|
-
*PACKAGES_DATABASE,
|
|
174
|
-
*PACKAGES_DOC_CONVERSION,
|
|
175
|
-
*PACKAGES_MEDIA,
|
|
176
|
-
*PACKAGES_FILE_SHARING,
|
|
177
|
-
*PACKAGES_GIT_DOCKER_TOOLS,
|
|
178
|
-
*PACKAGES_DEV_UTILS,
|
|
179
|
-
*PACKAGES_CODE_ANALYSIS,
|
|
180
|
-
*PACKAGES_PRODUCTIVITY,
|
|
181
|
-
*PACKAGES_MISC_DEV,
|
|
182
|
-
]
|
|
183
154
|
|
|
184
155
|
# System & Network Monitoring - System resource monitors, process viewers, network analysis, and system info tools
|
|
185
156
|
PACKAGES_SYSTEM_MONITORS = [
|
|
@@ -193,33 +164,16 @@ PACKAGES_SYSTEM_MONITORS = [
|
|
|
193
164
|
"cpufetch",
|
|
194
165
|
"fastfetch",
|
|
195
166
|
"topgrade",
|
|
167
|
+
"speedtest",
|
|
196
168
|
]
|
|
197
169
|
|
|
198
170
|
|
|
199
|
-
# File Tools - File browsing, navigation, listing, directory jumping, and disk usage analysis
|
|
200
|
-
PACKAGES_FILE_TOOLS = [
|
|
201
|
-
"xplr",
|
|
202
|
-
"joshuto",
|
|
203
|
-
"lf",
|
|
204
|
-
"tere",
|
|
205
|
-
"yazi",
|
|
206
|
-
"lsd",
|
|
207
|
-
"zoxide",
|
|
208
|
-
"diskonaut",
|
|
209
|
-
"dua",
|
|
210
|
-
"dust",
|
|
211
|
-
]
|
|
212
|
-
|
|
213
|
-
# File Viewers - File preview and viewing tools
|
|
214
|
-
PACKAGES_FILE_VIEWERS = [
|
|
215
|
-
"pistol",
|
|
216
|
-
"bat",
|
|
217
|
-
"viu",
|
|
218
|
-
]
|
|
219
171
|
|
|
220
172
|
|
|
221
173
|
# Search & Archive Tools - File and content search utilities, archive management
|
|
222
|
-
|
|
174
|
+
PACKAGES_FILE = [
|
|
175
|
+
"nerdfont",
|
|
176
|
+
"winget",
|
|
223
177
|
"fd",
|
|
224
178
|
"fzf",
|
|
225
179
|
"broot",
|
|
@@ -227,6 +181,21 @@ PACKAGES_SEARCH = [
|
|
|
227
181
|
"rga",
|
|
228
182
|
"ugrep",
|
|
229
183
|
"ouch",
|
|
184
|
+
"pistol",
|
|
185
|
+
"bat",
|
|
186
|
+
"viu",
|
|
187
|
+
"xplr",
|
|
188
|
+
"joshuto",
|
|
189
|
+
"lf",
|
|
190
|
+
"tere",
|
|
191
|
+
"yazi",
|
|
192
|
+
"lsd",
|
|
193
|
+
"zoxide",
|
|
194
|
+
"diskonaut",
|
|
195
|
+
"dua",
|
|
196
|
+
"dust",
|
|
197
|
+
"cpz",
|
|
198
|
+
"rmz",
|
|
230
199
|
]
|
|
231
200
|
|
|
232
201
|
# Terminal & Shell Enhancements - Terminal multiplexers, shell history, and prompts
|
|
@@ -235,41 +204,14 @@ PACKAGES_TERMINAL_SHELL = [
|
|
|
235
204
|
"mprocs",
|
|
236
205
|
"mcfly",
|
|
237
206
|
"starship",
|
|
238
|
-
"lolcatjs",
|
|
239
|
-
"figlet-cli",
|
|
240
|
-
]
|
|
241
|
-
# Web Sharing - Share terminal over web
|
|
242
|
-
PACKAGES_WEB_TERMINAL = [
|
|
243
207
|
"gotty",
|
|
244
208
|
"ttyd",
|
|
245
|
-
]
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
# Cloud & Utilities - Cloud storage, file watching, web terminal, and presentation tools
|
|
249
|
-
PACKAGES_CLOUD_UTILS = [
|
|
250
209
|
"rclone",
|
|
251
|
-
"watchexec",
|
|
252
|
-
"m365",
|
|
253
|
-
"zoomit",
|
|
254
|
-
"speedtest",
|
|
255
210
|
]
|
|
256
211
|
|
|
257
212
|
|
|
258
213
|
|
|
259
214
|
|
|
260
|
-
# Main ESSENTIAL package list - combines all subgroups
|
|
261
|
-
PACKAGES_NAMES_ESSENTIAL = [
|
|
262
|
-
*PACKAGES_CODE_ANALYSIS,
|
|
263
|
-
*PACKAGES_PRESENTATION,
|
|
264
|
-
*PACKAGES_FILE_VIEWERS,
|
|
265
|
-
*PACKAGES_FILE_TOOLS,
|
|
266
|
-
*PACKAGES_SYSTEM_MONITORS,
|
|
267
|
-
*PACKAGES_WEB_TERMINAL,
|
|
268
|
-
*PACKAGES_TERMINAL_SHELL,
|
|
269
|
-
*PACKAGES_SEARCH,
|
|
270
|
-
*PACKAGES_AI_TOOLS,
|
|
271
|
-
*PACKAGES_CLOUD_UTILS,
|
|
272
|
-
]
|
|
273
215
|
|
|
274
216
|
PACKAGE_GROUPS: TypeAlias = Literal[
|
|
275
217
|
"ESSENTIAL",
|
|
@@ -297,31 +239,48 @@ PACKAGE_GROUPS: TypeAlias = Literal[
|
|
|
297
239
|
"CLOUD_UTILS",
|
|
298
240
|
"WEB_TERMINAL",
|
|
299
241
|
]
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
# Main ESSENTIAL package list - combines all subgroups
|
|
246
|
+
PACKAGES_NAMES_ESSENTIAL = [
|
|
247
|
+
*PACKAGES_CODE_ANALYSIS,
|
|
248
|
+
*PACKAGES_SYSTEM_MONITORS,
|
|
249
|
+
*PACKAGES_TERMINAL_SHELL,
|
|
250
|
+
*PACKAGES_FILE,
|
|
251
|
+
*PACKAGES_AI_TOOLS,
|
|
252
|
+
]
|
|
253
|
+
PACKAGES_NAMES_DEV = [
|
|
254
|
+
*PACKAGES_AI_TOOLS,
|
|
255
|
+
*PACKAGES_TERMINAL_EMULATORS,
|
|
256
|
+
*PACKAGES_BROWSERS,
|
|
257
|
+
*PACKAGES_CODE_EDITORS,
|
|
258
|
+
*PACKAGES_DATABASE,
|
|
259
|
+
*PACKAGES_MEDIA,
|
|
260
|
+
*PACKAGES_FILE_SHARING,
|
|
261
|
+
*PACKAGES_DEV_UTILS,
|
|
262
|
+
*PACKAGES_CODE_ANALYSIS,
|
|
263
|
+
*PACKAGES_PRODUCTIVITY,
|
|
264
|
+
*PACKAGES_MISC_DEV,
|
|
265
|
+
]
|
|
266
|
+
|
|
300
267
|
PACKAGE_GROUP2NAMES: dict[PACKAGE_GROUPS, list[str]] = {
|
|
301
268
|
"ESSENTIAL": PACKAGES_NAMES_ESSENTIAL,
|
|
302
269
|
"DEV": PACKAGES_NAMES_DEV,
|
|
303
270
|
"AI_TOOLS": PACKAGES_AI_TOOLS,
|
|
304
|
-
"TUNNELING": PACKAGES_TUNNELING,
|
|
305
271
|
"TERMINAL_EMULATORS": PACKAGES_TERMINAL_EMULATORS,
|
|
306
272
|
"BROWSERS": PACKAGES_BROWSERS,
|
|
307
273
|
"CODE_EDITORS": PACKAGES_CODE_EDITORS,
|
|
308
|
-
"PRESENTATION": PACKAGES_PRESENTATION,
|
|
309
274
|
"DATABASE": PACKAGES_DATABASE,
|
|
310
|
-
"DOC_CONVERSION": PACKAGES_DOC_CONVERSION,
|
|
311
275
|
"MEDIA": PACKAGES_MEDIA,
|
|
312
276
|
"FILE_SHARING": PACKAGES_FILE_SHARING,
|
|
313
|
-
"GIT_DOCKER_TOOLS": PACKAGES_GIT_DOCKER_TOOLS,
|
|
314
277
|
"DEV_UTILS": PACKAGES_DEV_UTILS,
|
|
315
278
|
"CODE_ANALYSIS": PACKAGES_CODE_ANALYSIS,
|
|
316
279
|
"PRODUCTIVITY": PACKAGES_PRODUCTIVITY,
|
|
317
280
|
"MISC_DEV": PACKAGES_MISC_DEV,
|
|
318
281
|
"SYSTEM_MONITORS": PACKAGES_SYSTEM_MONITORS,
|
|
319
|
-
"
|
|
320
|
-
"FILE_VIEWERS": PACKAGES_FILE_VIEWERS,
|
|
321
|
-
"SEARCH": PACKAGES_SEARCH,
|
|
282
|
+
"SEARCH": PACKAGES_FILE,
|
|
322
283
|
"TERMINAL_SHELL": PACKAGES_TERMINAL_SHELL,
|
|
323
|
-
"CLOUD_UTILS": PACKAGES_CLOUD_UTILS,
|
|
324
|
-
"WEB_TERMINAL": PACKAGES_WEB_TERMINAL,
|
|
325
284
|
}
|
|
326
285
|
|
|
327
286
|
_ = Union, Literal
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from typing import cast, Iterable, Optional, get_args
|
|
7
7
|
import typer
|
|
8
|
-
from machineconfig.scripts.python.fire_agents_helper_types import AGENTS
|
|
8
|
+
from machineconfig.scripts.python.helpers_fire.fire_agents_helper_types import AGENTS
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def _write_list_file(target: Path, files: Iterable[Path]) -> None:
|
|
@@ -28,9 +28,9 @@ def create(
|
|
|
28
28
|
agents_dir: Optional[Path] = typer.Option(None, help="Directory to store agent files. If not provided, will be constructed automatically."),
|
|
29
29
|
):
|
|
30
30
|
|
|
31
|
-
from machineconfig.scripts.python.fire_agents_help_launch import prep_agent_launch, get_agents_launch_layout
|
|
32
|
-
from machineconfig.scripts.python.fire_agents_help_search import search_files_by_pattern, search_python_files
|
|
33
|
-
from machineconfig.scripts.python.fire_agents_load_balancer import chunk_prompts
|
|
31
|
+
from machineconfig.scripts.python.helpers_fire.fire_agents_help_launch import prep_agent_launch, get_agents_launch_layout
|
|
32
|
+
from machineconfig.scripts.python.helpers_fire.fire_agents_help_search import search_files_by_pattern, search_python_files
|
|
33
|
+
from machineconfig.scripts.python.helpers_fire.fire_agents_load_balancer import chunk_prompts
|
|
34
34
|
from machineconfig.utils.accessories import get_repo_root, randstr
|
|
35
35
|
import json
|
|
36
36
|
|
|
@@ -52,14 +52,14 @@ def main2():
|
|
|
52
52
|
|
|
53
53
|
def set_theme(theme: str):
|
|
54
54
|
print(f"🔄 Setting WezTerm theme to: {theme}")
|
|
55
|
-
txt_lines = PathExtended("
|
|
55
|
+
txt_lines = PathExtended.home().joinpath(".config/wezterm/wezterm.lua").expanduser().read_text(encoding="utf-8").splitlines()
|
|
56
56
|
res_lines = []
|
|
57
57
|
for line in txt_lines:
|
|
58
58
|
if "config.color_scheme = " in line:
|
|
59
59
|
res_lines.append(f"config.color_scheme = '{theme}'")
|
|
60
60
|
else:
|
|
61
61
|
res_lines.append(line)
|
|
62
|
-
PathExtended("
|
|
62
|
+
PathExtended.home().joinpath(".config/wezterm/wezterm.lua").expanduser().write_text("\n".join(res_lines), encoding="utf-8")
|
|
63
63
|
time.sleep(0.1)
|
|
64
64
|
print("💾 Configuration saved")
|
|
65
65
|
|
|
@@ -34,7 +34,7 @@ app.add_typer(self_app, name="self")
|
|
|
34
34
|
@self_app.command()
|
|
35
35
|
def update():
|
|
36
36
|
"""🔄 UPDATE essential repos"""
|
|
37
|
-
import machineconfig.scripts.python.devops_update_repos as helper
|
|
37
|
+
import machineconfig.scripts.python.devops_helpers.devops_update_repos as helper
|
|
38
38
|
helper.main()
|
|
39
39
|
@self_app.command()
|
|
40
40
|
def interactive():
|
|
@@ -44,7 +44,7 @@ def interactive():
|
|
|
44
44
|
@self_app.command()
|
|
45
45
|
def status():
|
|
46
46
|
"""📊 STATUS of machine, shell profile, apps, symlinks, dotfiles, etc."""
|
|
47
|
-
import machineconfig.scripts.python.devops_status as helper
|
|
47
|
+
import machineconfig.scripts.python.devops_helpers.devops_status as helper
|
|
48
48
|
helper.main()
|
|
49
49
|
@self_app.command()
|
|
50
50
|
def clone():
|
|
@@ -100,12 +100,12 @@ def shell(method: Annotated[Literal["copy", "reference"], typer.Argument(help="C
|
|
|
100
100
|
@nw_apps.command()
|
|
101
101
|
def add_key():
|
|
102
102
|
"""🔑 SSH add pub key to this machine"""
|
|
103
|
-
import machineconfig.scripts.python.devops_add_ssh_key as helper
|
|
103
|
+
import machineconfig.scripts.python.devops_helpers.devops_add_ssh_key as helper
|
|
104
104
|
helper.main()
|
|
105
105
|
@nw_apps.command()
|
|
106
106
|
def add_identity():
|
|
107
107
|
"""🗝️ SSH add identity (private key) to this machine"""
|
|
108
|
-
import machineconfig.scripts.python.devops_add_identity as helper
|
|
108
|
+
import machineconfig.scripts.python.devops_helpers.devops_add_identity as helper
|
|
109
109
|
helper.main()
|
|
110
110
|
@nw_apps.command()
|
|
111
111
|
def connect():
|
|
@@ -131,14 +131,14 @@ def setup():
|
|
|
131
131
|
@app_data.command()
|
|
132
132
|
def backup():
|
|
133
133
|
"""💾 BACKUP"""
|
|
134
|
-
from machineconfig.scripts.python.devops_backup_retrieve import main_backup_retrieve
|
|
134
|
+
from machineconfig.scripts.python.devops_helpers.devops_backup_retrieve import main_backup_retrieve
|
|
135
135
|
main_backup_retrieve(direction="BACKUP")
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
@app_data.command()
|
|
139
139
|
def retrieve():
|
|
140
140
|
"""📥 RETRIEVE"""
|
|
141
|
-
from machineconfig.scripts.python.devops_backup_retrieve import main_backup_retrieve
|
|
141
|
+
from machineconfig.scripts.python.devops_helpers.devops_backup_retrieve import main_backup_retrieve
|
|
142
142
|
main_backup_retrieve(direction="RETRIEVE")
|
|
143
143
|
|
|
144
144
|
|
machineconfig/scripts/python/{devops_update_repos.py → devops_helpers/devops_update_repos.py}
RENAMED
|
@@ -8,7 +8,7 @@ from rich.panel import Panel
|
|
|
8
8
|
from rich.table import Table
|
|
9
9
|
from rich.text import Text
|
|
10
10
|
|
|
11
|
-
from machineconfig.scripts.python.repos_helper_update import RepositoryUpdateResult, run_uv_sync, update_repository
|
|
11
|
+
from machineconfig.scripts.python.repos_helpers.repos_helper_update import RepositoryUpdateResult, run_uv_sync, update_repository
|
|
12
12
|
from machineconfig.utils.io import read_ini
|
|
13
13
|
from machineconfig.utils.source_of_truth import DEFAULTS_PATH
|
|
14
14
|
|
|
@@ -12,7 +12,7 @@ from machineconfig.utils.options import choose_from_options
|
|
|
12
12
|
from machineconfig.utils.path_helper import match_file_name, sanitize_path
|
|
13
13
|
from machineconfig.utils.path_extended import PathExtended
|
|
14
14
|
from machineconfig.utils.accessories import get_repo_root, randstr
|
|
15
|
-
from machineconfig.scripts.python.fire_jobs_args_helper import FireJobArgs, extract_kwargs, parse_fire_args_from_context
|
|
15
|
+
from machineconfig.scripts.python.helpers_fire_command.fire_jobs_args_helper import FireJobArgs, extract_kwargs, parse_fire_args_from_context
|
|
16
16
|
|
|
17
17
|
import platform
|
|
18
18
|
from typing import Optional, Annotated
|
|
@@ -55,13 +55,13 @@ def route(args: FireJobArgs, fire_args: str = "") -> None:
|
|
|
55
55
|
# ========================= choosing function to run
|
|
56
56
|
choice_function: Optional[str] = None # Initialize to avoid unbound variable
|
|
57
57
|
if args.choose_function:
|
|
58
|
-
from machineconfig.scripts.python.fire_jobs_route_helper import choose_function_or_lines
|
|
58
|
+
from machineconfig.scripts.python.helpers_fire_command.fire_jobs_route_helper import choose_function_or_lines
|
|
59
59
|
choice_function, choice_file, kwargs_dict = choose_function_or_lines(choice_file, kwargs_dict)
|
|
60
60
|
else:
|
|
61
61
|
choice_function = args.function
|
|
62
62
|
|
|
63
63
|
if choice_file.suffix == ".py":
|
|
64
|
-
from machineconfig.scripts.python.fire_jobs_route_helper import get_command_streamlit
|
|
64
|
+
from machineconfig.scripts.python.helpers_fire_command.fire_jobs_route_helper import get_command_streamlit
|
|
65
65
|
if args.streamlit: exe = get_command_streamlit(choice_file, args.environment, repo_root)
|
|
66
66
|
elif args.interactive is False: exe = "python"
|
|
67
67
|
elif args.jupyter: exe = "jupyter-lab"
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
from machineconfig.utils.path_extended import PathExtended
|
|
2
|
-
from machineconfig.scripts.python.get_zellij_cmd import get_zellij_cmd
|
|
3
2
|
from machineconfig.utils.code import write_shell_script_to_file
|
|
4
3
|
import platform
|
|
4
|
+
from pathlib import Path
|
|
5
5
|
from rich.console import Console
|
|
6
6
|
from rich.panel import Panel
|
|
7
7
|
|
|
8
8
|
console = Console()
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
def get_zellij_cmd(wd1: Path, wd2: Path) -> str:
|
|
12
|
+
_ = wd1, wd2
|
|
13
|
+
lines = [
|
|
14
|
+
""" zellij action new-tab --name gitdiff""",
|
|
15
|
+
"""zellij action new-pane --direction down --name local --cwd ./data """,
|
|
16
|
+
"""zellij action write-chars "cd '{wd1}'; git status" """,
|
|
17
|
+
"""zellij action move-focus up; zellij action close-pane """,
|
|
18
|
+
"""zellij action new-pane --direction down --name remote --cwd code """,
|
|
19
|
+
"""zellij action write-chars "cd '{wd2}' """,
|
|
20
|
+
"""git status" """,
|
|
21
|
+
]
|
|
22
|
+
return "; ".join(lines)
|
|
23
|
+
|
|
11
24
|
def delete_remote_repo_copy_and_push_local(remote_repo: str, local_repo: str, cloud: str):
|
|
12
25
|
console.print(Panel("🗑️ Deleting remote repo copy and pushing local copy", title="[bold blue]Repo Sync[/bold blue]", border_style="blue"))
|
|
13
26
|
repo_sync_root = PathExtended(remote_repo).expanduser().absolute()
|
|
File without changes
|
machineconfig/scripts/python/{fire_agents_help_launch.py → helpers_fire/fire_agents_help_launch.py}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import random
|
|
3
3
|
import shlex
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from machineconfig.scripts.python.fire_agents_helper_types import AGENTS, AGENT_NAME_FORMATTER
|
|
5
|
+
from machineconfig.scripts.python.helpers_fire.fire_agents_helper_types import AGENTS, AGENT_NAME_FORMATTER
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def get_gemini_api_keys() -> list[str]:
|
|
File without changes
|
|
File without changes
|