Skip to content

Pull in Teams integration, mail workflows, and safety improvements from johntheyoung/mogcli - #8

Open
jaredpalmer wants to merge 20 commits into
mainfrom
pull-fork-improvements
Open

Pull in Teams integration, mail workflows, and safety improvements from johntheyoung/mogcli#8
jaredpalmer wants to merge 20 commits into
mainfrom
pull-fork-improvements

Conversation

@jaredpalmer

Copy link
Copy Markdown
Owner

Summary

Merges the improvements from the johntheyoung/mogcli fork (16 commits, preserved with original authorship), reviewed commit-by-commit:

Teams integration

  • teams list, teams channels, teams channel-send with enterprise-delegated-only capability rules
  • teams chats, teams chat-send, teams dm-send (opens/reuses one-on-one chats)
  • teams chat-members, plus @mention support with proper HTML escaping (dry-run output deliberately omits AAD object IDs)
  • teams chat-file-send: guarded file sharing via OneDrive with tenant/guest checks, SHA-256 content verification, permission auditing, no-retry semantics for non-idempotent operations, and rollback on failure

Mail

  • mail folders and --folder-scoped mail list with immutable ID preference
  • mail archive, mail move, mail mark-read with distinct action allowlist entries, disabled auto-retries on moves, and explicit indeterminate-outcome errors
  • Bounded mutation JSON output (excludes body, recipients, and other unbounded/sensitive fields)

Safety / agent controls

  • --enable-commands / --enable-actions runtime allowlists
  • MOG_MANAGED_AUTOMATION fail-closed mode for headless automation
  • Agent skill doc (.agents/skills/mog/SKILL.md)

Calendar

  • --show-as availability on create/update

Conflict resolution: the fork predates #5 (mail draft), so internal/cmd/mail.go, internal/services/mail/service.go, internal/cmd/runtime.go, and tests were merged to keep both feature sets (draft + folders/archive/move/mark-read).

Follow-up commit: generalized SKILL.md, which referenced the fork author's specific deployment (profile names, env paths, gateway tooling), and documented mail draft in it.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... — all packages pass
  • Smoke-tested mog mail --help and mog teams --help on the built binary

Generated with Devin

johntheyoung and others added 20 commits June 18, 2026 19:00
Consolidate Dexterton mog feature stack
Add controlled Outlook mail archive and read workflows
# Conflicts:
#	internal/cmd/mail.go
#	internal/cmd/mail_test.go
#	internal/cmd/runtime.go
#	internal/services/mail/service.go
The mog SKILL.md referenced a specific downstream deployment (profile
names, env file paths, and gateway tooling). Replace those with generic
placeholders so the skill applies to any environment, and document the
mail draft command alongside the other write examples.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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