Repository navigation
Conversation
HTML mode posts caller-owned HTML verbatim (RichText/Html, no <p> wrap); '-' reads stdin; --dry-run prints the exact body without sending. Plain mode byte-for-byte unchanged. Send path split into buildMessageBody (pure) + postMessage (transport) β the foundation for the attachments PR. Implemented via claude relay lane (dispatch 62DFF778), reviewed + live-tested by the calling session (receipt 1792066772884).
Native SP-token ladder (env TEAMS_SP_TOKEN -> cached -> profile localStorage -> /_api/ interception), dynamic tenant/site derivation from token claims, conflictBehavior=rename with server-name use, organization-scoped links by default (--link-scope anon for the field-proven Anyone shape), staged receipts with partial-failure reporting, --dry-run, golden-fixture tests (187 total). Implemented via claude relay lane (dispatch 5553A777), reviewed + live-tested by the calling session: native ladder e2e on test thread, both scopes, properties.files round-trip verified (arrivals 1792067458237, 1792067475606).
This was referenced Oct 15, 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.
Adds
teams send-file <chat> <file> [--caption] [--link-scope org|anon] [--dry-run]: uploads to the user's OneDrive 'Microsoft Teams Chat Files' folder via the v2.1 drive API, mints a share link (organization-scoped by default), and posts the file card through the same message endpoint assend. SP token ladder:TEAMS_SP_TOKENenv β cached β the CLI's own browser profile MSAL cache β/_api/Bearer interception; tenant/site/region derived from token claims (no hardcoded values). Non-destructive by design:conflictBehavior=renamewith the server-returned name used downstream, staged receipts with partial-failure reporting (a failed post tells you the upload/link that needs cleanup), 250 MB single-PUT cap. Golden-fixture tests against the observedproperties.files[]shape. Depends on #31 (buildMessageBody/postMessage).