mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-05 16:34:00 +01:00
fix(build): an install renders skills only for the hosts installed from it (#1694)
./setup ran gen:skill-docs --host all inside the install, so a global Claude install at ~/.claude/skills/gstack carried 632 SKILL.md files (34.7 MB) where 56 are its own; Claude Code and Cursor-agent scan that tree, and Cursor-agent freezes above roughly 11 MB. setup now keeps an additive record of the hosts it installs from a checkout (.gstack-installed-hosts, owned by bin/gstack-host-renders.sh), seeded from installs that predate it: registry rows, install roots that resolve to the checkout, host skills that link into its renders, and legacy skill copies with no runtime root. scripts/build.sh renders claude plus the recorded hosts and prints which hosts and why. A checkout with no record (development) or GSTACK_RENDER_HOSTS=all renders every host. The Codex .agents/ render runs only when Codex is installed or recorded; bin/dev-setup records Codex because it serves the repo's .agents/. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
34b6d3e4e1
commit
f2012f3ab3
7 files changed
+367
-5
No files matched your search
+14
-1
@@ -36,7 +36,20 @@ esac
|
||||
# inside untrusted repos, and dotenv could set security switches such as
|
||||
# GSTACK_CHROMIUM_NO_SANDBOX while a bunfig preload runs arbitrary code (D0).
|
||||
"$BUN_CMD" run vendor:xterm
|
||||
"$BUN_CMD" run gen:skill-docs --host all
|
||||
# Inside an install, render only the hosts setup installed from this checkout
|
||||
# (#1694): every host's render under ~/.claude/skills/gstack is scanned by
|
||||
# Claude Code and Cursor. bin/gstack-host-renders.sh owns the record.
|
||||
. "$ROOT/bin/gstack-host-renders.sh"
|
||||
gstack_render_hosts_select "$ROOT"
|
||||
if [ "$GSTACK_RENDER_HOST_LIST" = all ]; then
|
||||
echo "Rendering skills for every host: $GSTACK_RENDER_HOST_REASON"
|
||||
"$BUN_CMD" run gen:skill-docs --host all
|
||||
else
|
||||
echo "Rendering skills for: $GSTACK_RENDER_HOST_LIST ($GSTACK_RENDER_HOST_REASON)"
|
||||
for render_host in $GSTACK_RENDER_HOST_LIST; do
|
||||
"$BUN_CMD" run gen:skill-docs --host "$render_host"
|
||||
done
|
||||
fi
|
||||
"$BUN_CMD" build --compile --no-compile-autoload-dotenv --no-compile-autoload-bunfig browse/src/cli.ts --outfile browse/dist/browse
|
||||
"$BUN_CMD" build --compile --no-compile-autoload-dotenv --no-compile-autoload-bunfig browse/src/find-browse.ts --outfile browse/dist/find-browse
|
||||
"$BUN_CMD" build --compile --no-compile-autoload-dotenv --no-compile-autoload-bunfig design/src/cli.ts --outfile design/dist/design
|
||||
|
||||
Reference in new issue
Block a user