mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-09 06:45:46 +02:00
merge: integrate origin/main (v0.18.3.0) — community wave
Resolves conflicts: - VERSION: kept 0.19.0.0 (feature branch, higher than main's 0.18.3.0) - package.json: kept 0.19.0.0 - CHANGELOG.md: preserved 0.19.0.0 at top, inserted 0.18.3.0 between 0.19.0.0 and 0.18.2.0 Main brought community wave (6 PRs + hardening): - Windows cookie import - Persistent browse server across CLI invocations - One-command OpenCode install - OpenClaw skill frontmatter fixes - Cookie picker UI resilience Auto-merge applied to design.ts, design-consultation/SKILL.md.tmpl, design-shotgun/SKILL.md.tmpl, and plan-design-review/SKILL.md.tmpl — main's UX_PRINCIPLES changes and my TASTE_PROFILE resolver coexist cleanly. Regenerated all SKILL.md files via gen:skill-docs and refreshed ship golden fixtures. 423 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2122,15 +2122,16 @@ describe('setup script validation', () => {
|
||||
expect(fnBody).toContain('rm -f "$target"');
|
||||
});
|
||||
|
||||
test('setup supports --host auto|claude|codex|kiro', () => {
|
||||
test('setup supports --host auto|claude|codex|kiro|opencode', () => {
|
||||
expect(setupContent).toContain('--host');
|
||||
expect(setupContent).toContain('claude|codex|kiro|factory|auto');
|
||||
expect(setupContent).toContain('claude|codex|kiro|factory|opencode|auto');
|
||||
});
|
||||
|
||||
test('auto mode detects claude, codex, and kiro binaries', () => {
|
||||
test('auto mode detects claude, codex, kiro, and opencode binaries', () => {
|
||||
expect(setupContent).toContain('command -v claude');
|
||||
expect(setupContent).toContain('command -v codex');
|
||||
expect(setupContent).toContain('command -v kiro-cli');
|
||||
expect(setupContent).toContain('command -v opencode');
|
||||
});
|
||||
|
||||
// T1: Sidecar skip guard — prevents .agents/skills/gstack from being linked as a skill
|
||||
@@ -2150,7 +2151,6 @@ describe('setup script validation', () => {
|
||||
expect(content).toContain('$GSTACK_BIN/');
|
||||
});
|
||||
|
||||
// T3: Kiro host support in setup script
|
||||
test('setup supports --host kiro with install section and sed rewrites', () => {
|
||||
expect(setupContent).toContain('INSTALL_KIRO=');
|
||||
expect(setupContent).toContain('kiro-cli');
|
||||
@@ -2158,6 +2158,21 @@ describe('setup script validation', () => {
|
||||
expect(setupContent).toContain('~/.kiro/skills/gstack');
|
||||
});
|
||||
|
||||
test('setup supports --host opencode with install section and OpenCode skill path vars', () => {
|
||||
expect(setupContent).toContain('INSTALL_OPENCODE=');
|
||||
expect(setupContent).toContain('OPENCODE_SKILLS="$HOME/.config/opencode/skills"');
|
||||
expect(setupContent).toContain('OPENCODE_GSTACK="$OPENCODE_SKILLS/gstack"');
|
||||
});
|
||||
|
||||
test('setup installs OpenCode skills into a nested gstack runtime root', () => {
|
||||
expect(setupContent).toContain('create_opencode_runtime_root');
|
||||
expect(setupContent).toContain('.opencode/skills');
|
||||
expect(setupContent).toContain('review/specialists');
|
||||
expect(setupContent).toContain('qa/templates');
|
||||
expect(setupContent).toContain('qa/references');
|
||||
expect(setupContent).toContain('dx-hall-of-fame.md');
|
||||
});
|
||||
|
||||
test('create_agents_sidecar links runtime assets', () => {
|
||||
// Sidecar must link bin, browse, review, qa
|
||||
const fnStart = setupContent.indexOf('create_agents_sidecar()');
|
||||
|
||||
Reference in New Issue
Block a user