forked from MjrTom/deebo-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen.sh
More file actions
executable file
·53 lines (43 loc) · 1.55 KB
/
gen.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.55 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
#!/bin/bash
MODE=${1:-core}
add_file_content() {
if [ -f "$1" ]; then
echo -e "\n=== $1 ===\n" >> core-files.txt
cat "$1" >> core-files.txt
else
echo "Warning: File $1 not found, skipping." >&2
fi
}
# Clear existing output file
> core-files.txt
echo "Generating core-files.txt in mode: $MODE"
# Core source files
add_file_content "src/index.ts"
add_file_content "src/util/mcp.ts"
add_file_content "config/tools.json"
add_file_content "src/util/sanitize.ts"
add_file_content "src/util/reports.ts"
add_file_content "src/util/branch-manager.ts"
add_file_content "src/util/agent-utils.ts"
add_file_content "src/util/logger.ts"
add_file_content "src/util/membank.ts"
add_file_content "src/util/observations.ts"
add_file_content "src/mother-agent.ts"
add_file_content "src/scenario-agent.ts"
# Only include packages if full mode is requested (just for deebo devs to look at installer stuff)
if [ "$MODE" = "full" ]; then
echo "Including package files..."
add_file_content "packages/deebo-setup/src/utils.ts"
add_file_content "packages/deebo-setup/src/types.ts"
add_file_content "packages/deebo-setup/src/index.ts"
add_file_content "packages/deebo-setup/package.json"
add_file_content "packages/deebo-doctor/src/types.ts"
add_file_content "packages/deebo-doctor/src/checks.ts"
add_file_content "packages/deebo-doctor/src/index.ts"
add_file_content "packages/deebo-doctor/package.json"
fi
# Config files
add_file_content "package.json"
add_file_content "tsconfig.json"
add_file_content "README.md"
echo "Done. Output written to core-files.txt."