Skip to content

refactor(deadcode): trim msteams private exports#106279

Merged
steipete merged 2 commits into
mainfrom
codex/deadcode-exports-msteams-private
Jul 13, 2026
Merged

refactor(deadcode): trim msteams private exports#106279
steipete merged 2 commits into
mainfrom
codex/deadcode-exports-msteams-private

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Microsoft Teams retained 13 internal exports for private helpers, facade aliases, and a test-only type path. Two feedback-reflection helpers were only reachable from tests and had no production caller.

Related: #105595

Why This Change Was Made

Keep the shipped plugin entrypoint unchanged. Remove private re-export seams, keep helper implementations module-local, delete the unused learning reader and cooldown reset, and move tests to defining modules or public behavior surfaces.

User Impact

No runtime behavior change. This batch removes 13 unused-export findings. After rebasing onto current main, the shrink-only baseline contains 3,307 entries.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams scripts Repository scripts size: M maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof:

Broad CI intentionally not awaited for this internal surface-cleanup batch.

@steipete
steipete merged commit 1577c28 into main Jul 13, 2026
127 of 137 checks passed
@steipete
steipete deleted the codex/deadcode-exports-msteams-private branch July 13, 2026 10:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afceda8a90

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

export function buildMSTeamsAttachmentPlaceholder(
function buildMSTeamsAttachmentPlaceholder(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the now-unused placeholder helper

This helper became an unexported local after all imports/callers were moved to resolveMSTeamsInboundAttachmentPresentation; repo-wide search now finds only this declaration, and tsconfig.extensions.json enables noUnusedLocals for production extension files. Any changed/typecheck lane that includes the Teams extension will fail on this unused declaration, so delete the wrapper instead of only dropping the export.

Useful? React with 👍 / 👎.

steipete added a commit that referenced this pull request Jul 13, 2026
Companion to 4bb4ffc: check-lint (no-unused-vars) still fails on
attachments.helpers.test.ts after #106279 trimmed their usages.
zilokki-bot pushed a commit to zilokki-bot/openclaw that referenced this pull request Jul 13, 2026
Companion to 4bb4ffc: check-lint (no-unused-vars) still fails on
attachments.helpers.test.ts after openclaw#106279 trimmed their usages.
wm0018 pushed a commit to wm0018/openclaw that referenced this pull request Jul 14, 2026
* refactor(deadcode): trim msteams private exports

* chore(deadcode): refresh unused export baseline
wm0018 pushed a commit to wm0018/openclaw that referenced this pull request Jul 14, 2026
Companion to 4bb4ffc: check-lint (no-unused-vars) still fails on
attachments.helpers.test.ts after openclaw#106279 trimmed their usages.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
* refactor(deadcode): trim msteams private exports

* chore(deadcode): refresh unused export baseline
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
Companion to 9082d8b: check-lint (no-unused-vars) still fails on
attachments.helpers.test.ts after openclaw#106279 trimmed their usages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant