File size: 1,127 Bytes
bea26c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env bash
# Bundle the modeling-tools deliverable into a clean zip.
#
# What's included: everything Aditya owns or touched + the test suite +
# the offline demo. Excludes generated artifacts, caches, the bundled
# PKDD source tree, and the original zip.
#
# Usage:
#   bash scripts/package.sh                 # writes ./dist/lexsi_ds_agent-modeling.zip
#   OUT=/tmp/foo.zip bash scripts/package.sh

set -euo pipefail

REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
OUT="${OUT:-$REPO_ROOT/dist/lexsi_ds_agent-modeling.zip}"

mkdir -p "$(dirname "$OUT")"
rm -f "$OUT"

cd "$REPO_ROOT"
zip -r "$OUT" \
  README.md \
  pyproject.toml \
  docs/ \
  knowledge/ \
  lexsi_ds/ \
  app/ \
  tests/ \
  scripts/ \
  HANDOFF.md \
  MODELING_TOOLS.md \
  -x "*/__pycache__/*" \
     "*/.pytest_cache/*" \
     "*/.ruff_cache/*" \
     "*/.mypy_cache/*" \
     "*.egg-info/*" \
     "*/node_modules/*" \
     ".cache/*" \
     ".local/*" \
     ".npm/*" \
     ".npm-global/*" \
     ".npmrc" \
     "artifacts/sessions/*" \
     "artifacts/runs/*" \
     "uv.lock" \
     "*.duckdb"

echo "wrote $OUT ($(du -h "$OUT" | cut -f1))"