Add auto-leave-spaces playbook#65
Merged
Merged
Conversation
Adapts jeokrohn/auto_leave to a Webex Playbook that automatically hides or leaves Webex messaging spaces matching a regex block list via WDM WebSocket events and the Memberships REST API. - README with six required sections, deployment guide, and smoke-test step - APPHUB.yaml (friendly_id: auto-leave-spaces-playbook, product_types: teams) - Mermaid architecture diagram with YAML-flag opt paths for hide vs leave - src/: auto_leave.py (vendored + clean missing-credentials exit), requirements.txt updated for Python 3.13, env.template, yml sample, Dockerfile, docker-compose.yml - .gitignore entries for local runtime artifacts Made-with: Cursor
Playbook Validation ResultsPlaybook:
|
Playbook Details (from APPHUB.yaml)
Auto-generated from APPHUB.yaml. |
Contentstack: Published to integration
|
adamweeks
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the auto-leave-spaces Webex Playbook: a Python utility that monitors Webex messaging (WDM) WebSocket events and automatically hides or leaves spaces whose titles match a regex block list, using the Memberships REST API (
webexapis.com).Adapted from jeokrohn/auto_leave with Playbook scaffolding (README six sections, APPHUB, diagram,
src/,env.template, sample YAML, Docker).Changes
playbooks/auto-leave-spaces/— README, APPHUB (friendly_id:auto-leave-spaces-playbook,product_types: teams), Mermaid architecture diagram (hide_direct/leave_group_spacesopt paths).src/auto_leave.py— vendored logic;_init_monitorcatches missing OAuth env (ValueError) and exits with a short stderr message (no traceback).requirements.txtupdated for Python 3.13;urllib3< 2 forwxc-sdk/requests-toolbeltcompatibility..gitignore— localauto_leave.yml, tokens, log under this playbooksrc/.Validation
./scripts/validate-playbook-local.sh playbooks/auto-leave-spaces— passpython3 src/auto_leave.pywithout.env— clean credential error (exit 1)Checklist
env.templatedocuments OAuth varsMade with Cursor