Skip to content

docs: sync mppx request preparation - #976

Merged
brendanjryan merged 1 commit into
mainfrom
automation/daily-mppx-docs-sync-20260915
Sep 15, 2026
Merged

brendanjryan merged 1 commit into
mainfrom
automation/daily-mppx-docs-sync-20260915

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Keep the TypeScript docs aligned with upstream request-aware payment preparation and validation output.

Summary

  • document Mppx.prepareRequest and safe redirect handling
  • document non-blocking /llms.txt validation suggestions
  • update the mppx snapshot dependency and sync bookmark

Key design considerations

  • recommend request-bound preparation for manual Node.js payment approval
  • retain preparePayment for transport-level Challenge inspection

@vercel

vercel Bot commented Sep 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mpp Ready Ready Preview Sep 15, 2026 1:24pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-15T13:27:16.664784Z e91e124 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@socket-security

socket-security Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedmppx@​0.0.0-main-20260911134810 ⏵ 0.0.0-main-202609141914429925100 +198100

View full report

@socket-security

socket-security Bot commented Sep 15, 2026

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • mppx@0.0.0-main-20260914191442

View full report

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

Copy link
Copy Markdown

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: e91e124872

ℹ️ 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".

@@ -0,0 +1,153 @@
# `Mppx.prepareRequest` [Prepare a request-bound payment]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add the required social-card frontmatter

Add description and imageDescription frontmatter before this H1. Without these fields, sharing the new reference page uses generic metadata and the OG-description generator has no page-specific card text to render.

AGENTS.md reference: AGENTS.md:L241-L246

Useful? React with 👍 / 👎.

Comment on lines +29 to +30
console.log(payment.challenge.request)
console.log(payment.redirects)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add expected output for the inspection logs

Add a // @log: result after each of these calls, or remove the calls if their output isn't useful. As written, readers can't see what the documented Challenge request and redirect records look like, and the repository requires console output in examples to be shown inline.

AGENTS.md reference: AGENTS.md:L297-L300

Useful? React with 👍 / 👎.

url: 'https://api.example.com',
})

console.log(result.summary.suggested)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Show the validation summary output

Add a // @log: comment showing an expected suggested count after this call. The example introduces programmatic validation specifically to demonstrate the structured result, but currently omits the required inline output and leaves readers without a concrete result shape.

AGENTS.md reference: AGENTS.md:L297-L300

Useful? React with 👍 / 👎.

Comment on lines +62 to +66
const payment = await mppx.prepareRequest(
'https://api.example.com/paid',
undefined,
{
acceptPayment: 'tempo/charge;q=1, tempo/session;q=0',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Highlight the request-local options

Add block highlight markers around the request-local options argument being demonstrated here. This long snippet currently has no highlighted lines, so the relevant override is buried among setup code despite the repository requirement that code blocks longer than five lines highlight their critical section.

AGENTS.md reference: AGENTS.md:L311-L315

Useful? React with 👍 / 👎.

@brendanjryan

Copy link
Copy Markdown
Collaborator Author

@SocketSecurity ignore npm/mppx@0.0.0-main-20260914191442

@brendanjryan
brendanjryan merged commit db54245 into main Sep 15, 2026
14 checks passed
@brendanjryan
brendanjryan deleted the automation/daily-mppx-docs-sync-20260915 branch September 15, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant