internal/

directory
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT

Directories

Path Synopsis
Package auth wraps MSAL Go: profiles, the interactive and device-code flows, silent acquisition, the token stores and the friendly errors PLAN.md requires.
Package auth wraps MSAL Go: profiles, the interactive and device-code flows, silent acquisition, the token stores and the friendly errors PLAN.md requires.
tokenstore
Package tokenstore holds the MSAL cache backends.
Package tokenstore holds the MSAL cache backends.
Package cli wires the cobra command tree and the process exit codes.
Package cli wires the cobra command tree and the process exit codes.
Package clock injects time into the CLI so that relative output, `--since` windows, token-expiry checks and retention pruning are deterministic in tests (PLAN.md, Layer 1: "an injected clock keeps relative times and --since deterministic").
Package clock injects time into the CLI so that relative output, `--since` windows, token-expiry checks and retention pruning are deterministic in tests (PLAN.md, Layer 1: "an injected clock keeps relative times and --since deterministic").
Package cloud holds the per-cloud endpoint bases PLAN.md's `cloud` setting selects (global, usgov, china).
Package cloud holds the per-cloud endpoint bases PLAN.md's `cloud` setting selects (global, usgov, china).
Package config loads and validates the TOML config file described in PLAN.md ("Profiles"): a default profile, one section per profile, and the environment overrides that let tests, CI and containers relocate everything.
Package config loads and validates the TOML config file described in PLAN.md ("Profiles"): a default profile, one section per profile, and the environment overrides that let tests, CI and containers relocate everything.
Package format converts Microsoft Teams message bodies into the markdown the CLI renders.
Package format converts Microsoft Teams message bodies into the markdown the CLI renders.
Package graph is the thin, hand-written Microsoft Graph client PLAN.md chooses over msgraph-sdk-go.
Package graph is the thin, hand-written Microsoft Graph client PLAN.md chooses over msgraph-sdk-go.
Package output centralizes everything the CLI writes to a terminal and the process exit codes it uses.
Package output centralizes everything the CLI writes to a terminal and the process exit codes it uses.
Package ref turns the flexible references the CLI accepts into concrete Microsoft Graph ids: Teams deep links, "Team/Channel/Message" name paths, "@person", e-mail addresses, aliases and raw ids.
Package ref turns the flexible references the CLI accepts into concrete Microsoft Graph ids: Teams deep links, "Team/Channel/Message" name paths, "@person", e-mail addresses, aliases and raw ids.
Package store owns the CLI's on-disk layout and the primitives every other package uses to touch it: directory resolution, atomic 0600/0700 writes and a per-profile lock file.
Package store owns the CLI's on-disk layout and the primitives every other package uses to touch it: directory resolution, atomic 0600/0700 writes and a per-profile lock file.
testing
contract
Package contract implements the Layer 6 contract tests: it vendors a trimmed copy of Microsoft's Graph v1.0 OpenAPI description and validates the requests and responses that teams-mcp's Go port actually sends.
Package contract implements the Layer 6 contract tests: it vendors a trimmed copy of Microsoft's Graph v1.0 OpenAPI description and validates the requests and responses that teams-mcp's Go port actually sends.
contract/cmd/gencontract command
Command gencontract regenerates the committed Layer 6 contract artifacts (the trimmed OpenAPI description, the route list and the provenance record) from a local, gitignored refs/ mirror.
Command gencontract regenerates the committed Layer 6 contract artifacts (the trimmed OpenAPI description, the route list and the provenance record) from a local, gitignored refs/ mirror.
coveragecheck command
Command coveragecheck enforces the repo's coverage floor over the paths that count.
Command coveragecheck enforces the repo's coverage floor over the paths that count.
docgen command
Command docgen regenerates docs/commands (per-command markdown), docs/man (man pages) and docs/completion (shell completion scripts) from the cobra command tree, so the documentation cannot drift from the CLI.
Command docgen regenerates docs/commands (per-command markdown), docs/man (man pages) and docs/completion (shell completion scripts) from the cobra command tree, so the documentation cannot drift from the CLI.
docsite command
Command docsite renders the user documentation into a static site.
Command docsite renders the user documentation into a static site.
fakegraph
Package fakegraph is a stateful, in-memory Microsoft Graph server for the teams CLI test suite.
Package fakegraph is a stateful, in-memory Microsoft Graph server for the teams CLI test suite.
fakeidp
Package fakeidp is an in-process fake Microsoft identity platform (Microsoft Entra ID) that MSAL Go can talk to: a TLS httptest server that serves the OIDC metadata document, the device-code endpoint, the token endpoint (device code, auth code + PKCE and refresh grants) and the JWKS document, plus helpers that drive the interactive auth-code flow headlessly.
Package fakeidp is an in-process fake Microsoft identity platform (Microsoft Entra ID) that MSAL Go can talk to: a TLS httptest server that serves the OIDC metadata document, the device-code endpoint, the token endpoint (device code, auth code + PKCE and refresh grants) and the JWKS document, plus helpers that drive the interactive auth-code flow headlessly.
Package update checks GitHub Releases for a newer `teams` and reports it.
Package update checks GitHub Releases for a newer `teams` and reports it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL