Skip to content

fix: add backward-compatible gt/bd command fallbacks#24

Merged
web3dev1337 merged 2 commits intomasterfrom
fix/cli-compat-fallbacks
Mar 27, 2026
Merged

fix: add backward-compatible gt/bd command fallbacks#24
web3dev1337 merged 2 commits intomasterfrom
fix/cli-compat-fallbacks

Conversation

@web3dev1337
Copy link
Copy Markdown
Owner

Summary

  • add backward-compatible polecat lifecycle command fallbacks in server.js
    • prefer modern gt session start/restart <rig>/<polecat>
    • fallback to gt polecat wake <rig>/<polecat> where available
    • fallback to legacy gt sling --rig <rig> --agent <name>
  • add backward-compatible rig bootstrap agent-bead creation fallback
    • first try legacy bd create --agent-rig --role-type
    • on unknown-flag errors, retry with modern-compatible bd create --type agent + description/labels
  • add real-server integration coverage for both fallback paths and update codebase docs

Why

Upstream gt/bd command surfaces changed between older and newer releases.
Without fallback behavior, GUI operations can fail depending on installed CLI version.
This patch keeps behavior working across both old and current command variants.

Validation

  • npm test -- test/integration/cli-compatibility.test.js
  • npm test
  • npm run test:e2e
  • npm run build (expected fail: no build script in this repo)

Notes

@web3dev1337 web3dev1337 merged commit 21af0a8 into master Mar 27, 2026
5 checks passed
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.

1 participant