forked from theDakshJaitly/mex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·573 lines (492 loc) · 23.6 KB
/
setup.sh
File metadata and controls
executable file
·573 lines (492 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
#!/usr/bin/env bash
set -euo pipefail
# ─────────────────────────────────────────────────────────────
# mex setup — detect project state, copy tool config, populate scaffold
# ─────────────────────────────────────────────────────────────
# Parse flags
DRY_RUN=0
for arg in "$@"; do
case "$arg" in
--dry-run) DRY_RUN=1 ;;
--help|-h)
echo "Usage: .mex/setup.sh [--dry-run]"
echo ""
echo "First-time setup — detect project state, copy tool config, populate scaffold."
echo ""
echo "Options:"
echo " --dry-run Show what would happen without making changes"
echo " --help Show this help"
exit 0
;;
esac
done
# Resolve the directory where this script (and the scaffold files) live.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# The target project root is the current working directory.
PROJECT_DIR="$(pwd)"
# Don't run inside the mex repo itself.
if [ "$SCRIPT_DIR" = "$PROJECT_DIR" ]; then
echo "Error: run this script from your project root, not from inside the mex repo."
echo ""
echo "Usage:"
echo " cd /path/to/your/project"
echo " .mex/setup.sh"
exit 1
fi
# ─────────────────────────────────────────────────────────────
# Helpers
# ─────────────────────────────────────────────────────────────
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m' # No Color
# Royal blue #1944F1 = RGB(25, 68, 241)
ROYAL='\033[38;2;25;68;241m'
info() { printf "${BLUE}→${NC} %s\n" "$1"; }
ok() { printf "${GREEN}✓${NC} %s\n" "$1"; }
warn() { printf "${YELLOW}!${NC} %s\n" "$1"; }
header(){ printf "\n${BOLD}%s${NC}\n" "$1"; }
# Spinner for background tasks
spin() {
local pid=$1 msg=$2
local frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')
local i=0
while kill -0 "$pid" 2>/dev/null; do
printf "\r ${BLUE}${frames[$i]}${NC} %s" "$msg"
i=$(( (i + 1) % ${#frames[@]} ))
sleep 0.1
done
printf "\r\033[2K" # clear the spinner line
}
banner() {
local GRN='\033[38;2;91;140;90m'
local DGR='\033[38;2;74;122;73m'
local ORN='\033[38;2;232;132;92m'
local DRK='\033[38;2;61;61;61m'
printf "\n"
printf "${GRN} ████ ${ROYAL}███╗ ███╗███████╗██╗ ██╗${NC}\n"
printf "${GRN} █${DGR}█${GRN}██${DGR}█${GRN}█ ${ROYAL}████╗ ████║██╔════╝╚██╗██╔╝${NC}\n"
printf "${ORN} ██████████ ${ROYAL}██╔████╔██║█████╗ ╚███╔╝${NC}\n"
printf "${ORN}█ ██${DRK}██${ORN}██${DRK}██${ORN}██ █ ${ROYAL}██║╚██╔╝██║██╔══╝ ██╔██╗${NC}\n"
printf "${ORN}█ ██████████ █ ${ROYAL}██║ ╚═╝ ██║███████╗██╔╝ ██╗${NC}\n"
printf "${ORN} █ █ █ █ ${ROYAL}╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝${NC}\n"
printf "\n"
printf " ${BOLD}universal ai context scaffold${NC}\n"
}
# Copy a file, but ask before overwriting.
safe_copy() {
local src="$1" dest="$2"
if [ "$DRY_RUN" -eq 1 ]; then
if [ -f "$dest" ]; then
warn "(dry run) Would overwrite $dest"
else
ok "(dry run) Would copy $dest"
fi
return 0
fi
if [ -f "$dest" ]; then
printf "${YELLOW}!${NC} %s already exists. Overwrite? [y/N] " "$dest"
read -r answer
if [[ ! "$answer" =~ ^[Yy]$ ]]; then
warn "Skipped $dest"
return 0
fi
fi
cp "$src" "$dest"
ok "Copied $dest"
}
# ─────────────────────────────────────────────────────────────
# Banner
# ─────────────────────────────────────────────────────────────
banner
echo ""
if [ "$DRY_RUN" -eq 1 ]; then
warn "DRY RUN — no files will be created or modified"
echo ""
fi
# ─────────────────────────────────────────────────────────────
# Step 1 — Build CLI engine (if Node available)
# ─────────────────────────────────────────────────────────────
MEX_CMD=""
# Check for global mex command first
if command -v mex &>/dev/null; then
MEX_CMD="mex"
ok "mex CLI found"
elif command -v node &>/dev/null; then
if [ -f "$SCRIPT_DIR/dist/cli.js" ]; then
MEX_CMD="node $SCRIPT_DIR/dist/cli.js"
ok "CLI engine ready"
elif [ -f "$SCRIPT_DIR/package.json" ]; then
info "Building mex CLI engine (first-time setup)..."
BUILD_LOG=$(cd "$SCRIPT_DIR" && npm install 2>&1) || {
warn "npm install failed — continuing without CLI"
warn "Run manually: cd .mex && npm install && npm run build"
}
if [ -d "$SCRIPT_DIR/node_modules" ]; then
BUILD_LOG=$(cd "$SCRIPT_DIR" && npm run build 2>&1) || {
warn "npm build failed — continuing without CLI"
warn "Run manually: cd .mex && npm run build"
}
fi
if [ -f "$SCRIPT_DIR/dist/cli.js" ]; then
MEX_CMD="node $SCRIPT_DIR/dist/cli.js"
ok "CLI engine built — drift detection, pre-analysis, and targeted sync ready"
fi
fi
else
warn "Node.js not found — CLI features unavailable (setup still works)"
fi
echo ""
# ─────────────────────────────────────────────────────────────
# Step 2 — Detect project state
# ─────────────────────────────────────────────────────────────
detect_state() {
local source_file_count scaffold_populated
# Count source files (not config/docs)
source_file_count=$(find "$PROJECT_DIR" -maxdepth 4 \
-type f \( \
-name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.tsx" \
-o -name "*.jsx" -o -name "*.go" -o -name "*.rs" -o -name "*.java" \
-o -name "*.kt" -o -name "*.swift" -o -name "*.rb" -o -name "*.php" \
-o -name "*.c" -o -name "*.cpp" -o -name "*.cs" -o -name "*.ex" \
-o -name "*.exs" -o -name "*.zig" -o -name "*.lua" -o -name "*.dart" \
-o -name "*.scala" -o -name "*.clj" -o -name "*.erl" -o -name "*.hs" \
-o -name "*.ml" -o -name "*.vue" -o -name "*.svelte" \
\) \
! -path "*/node_modules/*" \
! -path "*/.mex/*" \
! -path "*/vendor/*" \
! -path "*/.git/*" \
2>/dev/null | wc -l | tr -d ' ')
# Check if scaffold is already partially populated (annotation comments replaced)
scaffold_populated=0
if [ -f "$PROJECT_DIR/.mex/AGENTS.md" ]; then
if ! grep -q '\[Project Name\]' "$PROJECT_DIR/.mex/AGENTS.md" 2>/dev/null; then
scaffold_populated=1
fi
fi
if [ "$scaffold_populated" -eq 1 ] && [ "$source_file_count" -gt 0 ]; then
echo "partial"
elif [ "$source_file_count" -gt 3 ]; then
echo "existing"
else
echo "fresh"
fi
}
PROJECT_STATE=$(detect_state)
case "$PROJECT_STATE" in
existing)
info "Detected: existing codebase with source files"
info "Mode: populate scaffold from code"
;;
fresh)
info "Detected: fresh project (no source files yet)"
info "Mode: populate scaffold from intent"
;;
partial)
info "Detected: existing codebase with partially populated scaffold"
info "Mode: will populate empty slots, skip what's already filled"
;;
esac
echo ""
# ─────────────────────────────────────────────────────────────
# Step 3 — Tool config selection (copy to project root)
# ─────────────────────────────────────────────────────────────
header "Which AI tool do you use?"
echo ""
echo " 1) Claude Code"
echo " 2) Cursor"
echo " 3) Windsurf"
echo " 4) GitHub Copilot"
echo " 5) Multiple (select next)"
echo " 6) None / other (skip)"
echo ""
printf "Choice [1-6] (default: 1): "
read -r tool_choice
tool_choice="${tool_choice:-1}"
SELECTED_CLAUDE=0
copy_tool_config() {
case "$1" in
1)
safe_copy "$SCRIPT_DIR/.tool-configs/CLAUDE.md" "$PROJECT_DIR/CLAUDE.md"
SELECTED_CLAUDE=1
;;
2)
safe_copy "$SCRIPT_DIR/.tool-configs/.cursorrules" "$PROJECT_DIR/.cursorrules"
;;
3)
safe_copy "$SCRIPT_DIR/.tool-configs/.windsurfrules" "$PROJECT_DIR/.windsurfrules"
;;
4)
[ "$DRY_RUN" -eq 0 ] && mkdir -p "$PROJECT_DIR/.github"
safe_copy "$SCRIPT_DIR/.tool-configs/copilot-instructions.md" "$PROJECT_DIR/.github/copilot-instructions.md"
;;
esac
}
case "$tool_choice" in
1|2|3|4)
copy_tool_config "$tool_choice"
;;
5)
echo ""
printf "Enter tool numbers separated by spaces (e.g. 1 2 4): "
read -r multi_choices
for choice in $multi_choices; do
copy_tool_config "$choice"
done
;;
6|"")
info "Skipped tool config — AGENTS.md in .mex/ works with any tool that can read files"
;;
*)
warn "Unknown choice, skipping tool config"
;;
esac
echo ""
# ─────────────────────────────────────────────────────────────
# Step 4 — Pre-analyze codebase (if CLI available)
# ─────────────────────────────────────────────────────────────
SCANNER_BRIEF=""
if [ "$PROJECT_STATE" != "fresh" ] && [ -n "$MEX_CMD" ]; then
# Run scanner in background with spinner
(cd "$PROJECT_DIR" && $MEX_CMD init --json 2>&1 > /tmp/mex_scanner_$$.json) &
SCANNER_PID=$!
spin $SCANNER_PID "Scanning codebase..."
wait $SCANNER_PID 2>/dev/null && SCANNER_BRIEF=$(cat /tmp/mex_scanner_$$.json) || SCANNER_BRIEF=""
rm -f /tmp/mex_scanner_$$.json
# If the output looks like an error (not JSON), clear it
if [ -n "$SCANNER_BRIEF" ] && ! echo "$SCANNER_BRIEF" | head -1 | grep -q '^{'; then
warn "Scanner error: $(echo "$SCANNER_BRIEF" | head -1)"
SCANNER_BRIEF=""
fi
if [ -n "$SCANNER_BRIEF" ]; then
ok "Pre-analysis complete — AI will reason from brief instead of exploring (~5-8k tokens vs ~50k)"
else
warn "Scanner failed — AI will explore the filesystem directly"
fi
elif [ "$PROJECT_STATE" != "fresh" ]; then
warn "No CLI — AI will explore the filesystem directly"
fi
# ─────────────────────────────────────────────────────────────
# Step 5 — Build the setup prompt
# ─────────────────────────────────────────────────────────────
if [ "$PROJECT_STATE" = "fresh" ]; then
SETUP_PROMPT='You are going to populate an AI context scaffold for a project that
is just starting. Nothing is built yet.
Read the following files in order before doing anything else:
1. .mex/ROUTER.md — understand the scaffold structure
2. All files in .mex/context/ — read the annotation comments in each
Then ask me the following questions one section at a time.
Wait for my answer before moving to the next section:
1. What does this project do? (one sentence)
2. What are the hard rules — things that must never happen in this codebase?
3. What is the tech stack? (language, framework, database, key libraries)
4. Why did you choose this stack over alternatives?
5. How will the major pieces connect? Describe the flow of a typical request/action.
6. What patterns do you want to enforce from day one?
7. What are you deliberately NOT building or using?
After I answer, populate the .mex/context/ files based on my answers.
For any slot you cannot fill yet, write "[TO BE DETERMINED]" and note
what needs to be decided before it can be filled.
Then assess: based on my answers, does this project have domains complex
enough that cramming them into architecture.md would make it too long
or too shallow? If yes, create additional domain-specific context files
in .mex/context/. Examples: a project with a complex auth system gets
.mex/context/auth.md. A data pipeline gets .mex/context/ingestion.md.
A project with Stripe gets .mex/context/payments.md. Use the same YAML
frontmatter format (name, description, triggers, edges, last_updated).
Only create these for domains that have real depth — not for simple
integrations that fit in a few lines of architecture.md. For fresh
projects, mark domain-specific unknowns with "[TO BE DETERMINED —
populate after first implementation]".
Update .mex/ROUTER.md current state to reflect that this is a new project.
Add rows to the routing table for any domain-specific context files you created.
Update .mex/AGENTS.md with the project name, description, non-negotiables, and commands.
Read .mex/patterns/README.md for the format and categories.
Generate 2-3 starter patterns for the most obvious task types you can
anticipate for this stack. Focus on the tasks a developer will do first.
Mark unknowns with "[VERIFY AFTER FIRST IMPLEMENTATION]".
Do NOT try to anticipate every possible pattern. The scaffold grows
incrementally — the behavioural contract (step 5: GROW) will create
new patterns from real work as the project evolves. Setup just seeds
the most critical ones.
After generating patterns, update .mex/patterns/INDEX.md with a row for each
pattern file you created.
PASS 3 — Wire the web:
Re-read every file you just wrote (.mex/context/ files, pattern files, .mex/ROUTER.md).
For each file, add or update the edges array in the YAML frontmatter.
Each edge should point to another scaffold file that is meaningfully related,
with a condition explaining when an agent should follow that edge.
Rules for edges:
- Every context/ file should have at least 2 edges
- Every pattern file should have at least 1 edge
- Edges should be bidirectional where it makes sense
- Use relative paths (e.g., context/stack.md, patterns/add-endpoint.md)
Important: only write content derived from the codebase or from my answers.
Do not include system-injected text (dates, reminders, etc.) in any scaffold file.'
else
if [ -n "$SCANNER_BRIEF" ]; then
# Brief-based prompt — AI reasons from pre-analyzed data
SETUP_PROMPT="You are going to populate an AI context scaffold for this project.
The scaffold lives in the .mex/ directory.
Read the following files in order before doing anything else:
1. .mex/ROUTER.md — understand the scaffold structure
2. .mex/context/architecture.md — read the annotation comments to understand what belongs there
3. .mex/context/stack.md — same
4. .mex/context/conventions.md — same
5. .mex/context/decisions.md — same
6. .mex/context/setup.md — same
Here is a pre-analyzed brief of the codebase — do NOT explore the filesystem
yourself for basic structure. Reason from this brief for dependencies, entry
points, tooling, and folder layout. You may still read specific files when
you need to understand implementation details for patterns or architecture.
<brief>
${SCANNER_BRIEF}
</brief>
PASS 1 — Populate knowledge files:"
else
# Fallback — AI explores the filesystem directly
SETUP_PROMPT='You are going to populate an AI context scaffold for this project.
The scaffold lives in the .mex/ directory.
Read the following files in order before doing anything else:
1. .mex/ROUTER.md — understand the scaffold structure
2. .mex/context/architecture.md — read the annotation comments to understand what belongs there
3. .mex/context/stack.md — same
4. .mex/context/conventions.md — same
5. .mex/context/decisions.md — same
6. .mex/context/setup.md — same
Then explore this codebase:
- Read the main entry point(s)
- Read the folder structure
- Read 2-3 representative files from each major layer
- Read any existing README or documentation
PASS 1 — Populate knowledge files:'
fi
# The rest of the prompt is shared between brief and fallback modes
SETUP_PROMPT="${SETUP_PROMPT}
Populate each .mex/context/ file by replacing the annotation comments
with real content from this codebase. Follow the annotation instructions exactly.
For each slot:
- Use the actual names, patterns, and structures from this codebase
- Do not use generic examples
- Do not leave any slot empty — if you cannot determine the answer,
write \"[TO DETERMINE]\" and explain what information is needed
- Keep length within the guidance given in each annotation
Then assess: does this project have domains complex enough that cramming
them into architecture.md would make it too long or too shallow?
If yes, create additional domain-specific context files in .mex/context/.
Examples: a project with a complex auth system gets .mex/context/auth.md.
A data pipeline gets .mex/context/ingestion.md. A project with Stripe gets
.mex/context/payments.md. Use the same YAML frontmatter format (name,
description, triggers, edges, last_updated). Only create these for
domains that have real depth — not for simple integrations that fit
in a few lines of architecture.md.
After populating .mex/context/ files, update .mex/ROUTER.md:
- Fill in the Current Project State section based on what you found
- Add rows to the routing table for any domain-specific context files you created
Update .mex/AGENTS.md:
- Fill in the project name, one-line description, non-negotiables, and commands
PASS 2 — Generate starter patterns:
Read .mex/patterns/README.md for the format and categories.
Generate 3-5 starter patterns for the most common and most dangerous task
types in this project. Focus on:
- The 1-2 tasks a developer does most often (e.g., add endpoint, add component)
- The 1-2 integrations with the most non-obvious gotchas
- 1 debug pattern for the most common failure boundary
Each pattern should be specific to this project — real file paths, real gotchas,
real verify steps derived from the code you read in Pass 1.
Use the format in .mex/patterns/README.md. Name descriptively (e.g., add-endpoint.md).
Do NOT try to generate a pattern for every possible task type. The scaffold
grows incrementally — the behavioural contract (step 5: GROW) will create
new patterns from real work as the project evolves. Setup just seeds the most
critical ones.
After generating patterns, update .mex/patterns/INDEX.md with a row for each
pattern file you created. For multi-section patterns, add one row per task
section using anchor links (see INDEX.md annotation for format).
PASS 3 — Wire the web:
Re-read every file you just wrote (.mex/context/ files, pattern files, .mex/ROUTER.md).
For each file, add or update the edges array in the YAML frontmatter.
Each edge should point to another scaffold file that is meaningfully related,
with a condition explaining when an agent should follow that edge.
Rules for edges:
- Every context/ file should have at least 2 edges
- Every pattern file should have at least 1 edge (usually to the relevant context file)
- Edges should be bidirectional where it makes sense (if A links to B, consider B linking to A)
- Use relative paths (e.g., context/stack.md, patterns/add-endpoint.md)
- Pattern files can edge to other patterns (e.g., debug pattern → related task pattern)
Important: only write content derived from the codebase.
Do not include system-injected text (dates, reminders, etc.)
in any scaffold file.
When done, confirm which files were populated and flag any slots
you could not fill with confidence."
fi
# ─────────────────────────────────────────────────────────────
# Step 6 — Run or print the setup prompt
# ─────────────────────────────────────────────────────────────
if [ "$DRY_RUN" -eq 1 ]; then
header "Would run population prompt (dry run — skipping)"
echo ""
ok "Done (dry run)."
exit 0
fi
# Try to invoke Claude Code CLI directly
if [ "$SELECTED_CLAUDE" -eq 1 ] && command -v claude &>/dev/null; then
header "Launching Claude Code to populate the scaffold..."
echo ""
info "An interactive Claude Code session will open with the population prompt."
info "You'll see the agent working in real-time."
echo ""
# Use interactive mode (not -p) so the user sees progress
claude "$SETUP_PROMPT"
echo ""
ok "Setup complete."
echo ""
header "What's next"
echo ""
info "Verify — start a fresh session and ask:"
echo " \"Read .mex/ROUTER.md and tell me what you know about this project.\""
echo ""
info "Available commands (run from project root):"
echo " node .mex/dist/cli.js check Drift score — are scaffold files still accurate?"
echo " node .mex/dist/cli.js check --quiet One-liner drift score"
echo " node .mex/dist/cli.js sync Fix drift — AI updates only what's broken"
echo " node .mex/dist/cli.js watch Auto-check drift after every commit"
echo " bash .mex/sync.sh Interactive sync menu"
echo " bash .mex/update.sh Pull latest mex without touching your content"
echo ""
info "Tip: run ${BOLD}cd .mex && npm link && cd ..${NC} to use ${BOLD}mex${NC} instead of ${BOLD}node .mex/dist/cli.js${NC}"
else
# Fallback — print the prompt for manual use
header "Almost done. One more step — populate the scaffold."
echo ""
if command -v claude &>/dev/null; then
# They have Claude CLI but chose a different tool
info "You can run this directly with Claude Code:"
echo ""
echo " claude -p '<the prompt below>'"
echo ""
info "Or paste the prompt below into your AI tool."
else
info "Paste the prompt below into your AI tool."
info "The agent will read your codebase and fill every scaffold file."
fi
echo ""
echo "─────────────────── COPY BELOW THIS LINE ───────────────────"
echo ""
echo "$SETUP_PROMPT"
echo ""
echo "─────────────────── COPY ABOVE THIS LINE ───────────────────"
echo ""
ok "Paste the prompt above into your agent to populate the scaffold."
echo ""
header "After your agent finishes, you can use"
echo ""
echo " node .mex/dist/cli.js check Drift score — are scaffold files still accurate?"
echo " node .mex/dist/cli.js sync Fix drift — AI updates only what's broken"
echo " node .mex/dist/cli.js watch Auto-check drift after every commit"
echo " bash .mex/sync.sh Interactive sync menu"
echo " bash .mex/update.sh Pull latest mex without touching your content"
echo ""
info "Tip: run ${BOLD}cd .mex && npm link && cd ..${NC} to use ${BOLD}mex${NC} instead of ${BOLD}node .mex/dist/cli.js${NC}"
fi