Skip to content

feat: add gstack-cursor-install and gstack-cloud-bootstrap for Cloud … - #2364

Draft
ljluestc wants to merge 1 commit into
garrytan:mainfrom
ljluestc:fix/cloud-agent-cursor-install
Draft

feat: add gstack-cursor-install and gstack-cloud-bootstrap for Cloud …#2364
ljluestc wants to merge 1 commit into
garrytan:mainfrom
ljluestc:fix/cloud-agent-cursor-install

Conversation

@ljluestc

Copy link
Copy Markdown

…Agent VMs

Add bun-free skill installation for Cursor / Cloud Agent VMs:

  • bin/gstack-cursor-install: installs gstack skills into .cursor/skills/ via sed path rewrites. No bun required. Falls back from pre-generated .agents/skills/ to source SKILL.md files automatically.

  • bin/gstack-cloud-bootstrap: VM-startup bootstrap that clones gstack once and calls gstack-cursor-install. Idempotent; configurable via GSTACK_CACHE_DIR, GSTACK_AUTOUPDATE, GSTACK_SKILLS_DIR, GSTACK_MIN_SKILLS.

  • setup --host cursor: new early-exit path that delegates to gstack-cursor-install and skips all bun-dependent steps.

  • AGENTS.md: new 'Cloud Agent bootstrap' section with one-liner, cached-clone, and setup --host cursor variants.

  • test/cursor-install.test.ts: 25 tests covering existence, executability, no-bun contract, >=10 skills, path rewrites, quiet mode, idempotency, and full bootstrap round-trip.

Closes #2322

…Agent VMs

Add bun-free skill installation for Cursor / Cloud Agent VMs:

- bin/gstack-cursor-install: installs gstack skills into .cursor/skills/
  via sed path rewrites. No bun required. Falls back from pre-generated
  .agents/skills/ to source SKILL.md files automatically.

- bin/gstack-cloud-bootstrap: VM-startup bootstrap that clones gstack
  once and calls gstack-cursor-install. Idempotent; configurable via
  GSTACK_CACHE_DIR, GSTACK_AUTOUPDATE, GSTACK_SKILLS_DIR, GSTACK_MIN_SKILLS.

- setup --host cursor: new early-exit path that delegates to
  gstack-cursor-install and skips all bun-dependent steps.

- AGENTS.md: new 'Cloud Agent bootstrap' section with one-liner,
  cached-clone, and setup --host cursor variants.

- test/cursor-install.test.ts: 25 tests covering existence,
  executability, no-bun contract, >=10 skills, path rewrites,
  quiet mode, idempotency, and full bootstrap round-trip.

Closes garrytan#2322
@trunk-io

trunk-io Bot commented Jul 27, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

安装 gstack skills 供 Cloud Agent 全局使用

1 participant