Skip to content

Add auto-leave-spaces playbook#65

Merged
fortunesmith merged 1 commit into
mainfrom
playbook/auto-leave-spaces
Apr 2, 2026
Merged

Add auto-leave-spaces playbook#65
fortunesmith merged 1 commit into
mainfrom
playbook/auto-leave-spaces

Conversation

@fortunesmith
Copy link
Copy Markdown
Collaborator

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

  • Playbook: playbooks/auto-leave-spaces/ — README, APPHUB (friendly_id: auto-leave-spaces-playbook, product_types: teams), Mermaid architecture diagram (hide_direct / leave_group_spaces opt paths).
  • Code: src/auto_leave.py — vendored logic; _init_monitor catches missing OAuth env (ValueError) and exits with a short stderr message (no traceback).
  • Deps: requirements.txt updated for Python 3.13; urllib3 < 2 for wxc-sdk / requests-toolbelt compatibility.
  • Ignore: .gitignore — local auto_leave.yml, tokens, log under this playbook src/.

Validation

  • ./scripts/validate-playbook-local.sh playbooks/auto-leave-spaces — pass
  • Local smoke: python3 src/auto_leave.py without .env — clean credential error (exit 1)

Checklist

  • Playbook folder structure per AGENTS.md
  • No hardcoded secrets; env.template documents OAuth vars
  • README uses Webex messaging/spaces wording (not "Webex Teams"

Made with Cursor

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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Playbook Validation Results

Playbook: playbooks/auto-leave-spaces

  • README.md exists
  • README.md contains all 6 required section headers
  • APPHUB.yaml exists
  • No prohibited competitor as primary integration target (APPHUB metadata)
  • All required APPHUB.yaml fields present and non-empty
  • APPHUB.yaml categories has at least one value
  • APPHUB.yaml friendly_id ends with -playbook
  • APPHUB.yaml tag_line is valid (88/128 chars)
  • APPHUB.yaml product_types is valid
  • /diagrams/ folder exists
  • /src/ folder exists
  • Folder name is kebab-case

Validation passed.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Playbook Details (from APPHUB.yaml)

Field Value
Playbook title Auto Leave Unwanted Webex Spaces
Third-party tool
Categories productivity, developer-tools, collaboration-management
Estimated implementation time 2-4 hours

Auto-generated from APPHUB.yaml.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

Contentstack: Published to integration

auto-leave-spaces-playbook


Published playbooks are available in the integration environment.

@fortunesmith fortunesmith merged commit a4818af into main Apr 2, 2026
3 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.

2 participants